lynx-client 0.0.1-beta.1 → 0.0.1-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +37 -30
- package/dist/cjs/{addresses → lib/addresses}/lensAddresses.js +2 -2
- package/dist/cjs/lib/addresses/systemAddresses.js +25 -0
- package/dist/cjs/lib/chains/chainConstants.js +20 -0
- package/dist/cjs/lib/chains/chainTypes.js +23 -0
- package/dist/{esm/common → cjs/lib}/constants/contractEnums.js +37 -35
- package/dist/{esm/common → cjs/lib}/constants/scales.js +1 -6
- package/dist/cjs/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.js +15 -0
- package/dist/cjs/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.js +27 -0
- package/dist/cjs/lib/contractsIntegration/IntentsVerifierLensService/index.js +18 -0
- package/dist/cjs/lib/contractsIntegration/LexLensService/ILexLensService.js +137 -0
- package/dist/cjs/lib/contractsIntegration/LexLensService/LexLensService.js +270 -0
- package/dist/cjs/lib/contractsIntegration/LexLensService/index.js +18 -0
- package/dist/cjs/lib/contractsIntegration/OrderBookService/OrderBookService.js +47 -0
- package/dist/cjs/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +157 -0
- package/dist/cjs/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.js +64 -0
- package/dist/cjs/lib/contractsIntegration/TradersPortalService/index.js +19 -0
- package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +49 -0
- package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/index.js +18 -0
- package/dist/cjs/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +158 -0
- package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.js +30 -0
- package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.js +28 -0
- package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/index.js +18 -0
- package/dist/cjs/lib/contractsIntegration/TriggersService/TriggersService.js +188 -0
- package/dist/cjs/lib/contractsIntegration/deployedContractsConnector.js +135 -0
- package/dist/cjs/{utils → lib/lynxSystem}/chipsCalculationsUtils.js +2 -2
- package/dist/cjs/lib/lynxSystem/hashes.js +17 -0
- package/dist/cjs/{utils → lib/lynxSystem}/leverageCalculationsUtils.js +1 -1
- package/dist/{esm/utils → cjs/lib/lynxSystem}/lynxScalesUtils.js +10 -2
- package/dist/cjs/lib/lynxSystem/registry/registryReading.js +38 -0
- package/dist/cjs/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.js +2 -0
- package/dist/cjs/lib/typechain/contracts/Lynx/Triggers/TriggersV1.js +2 -0
- package/dist/cjs/lib/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.js +2 -0
- package/dist/cjs/lib/typechain/contracts/Peripheral/Lens/LexLens.js +2 -0
- package/dist/cjs/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.js +2 -0
- package/dist/cjs/lib/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.js +2 -0
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.js +258 -0
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +539 -0
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.js +226 -0
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.js +1108 -0
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +966 -0
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.js +258 -0
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +1774 -0
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +1459 -0
- package/dist/cjs/{common → lib}/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +1 -1
- package/dist/cjs/{common → lib}/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +1 -1
- package/dist/cjs/{common → lib}/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +1 -1
- package/dist/cjs/lib/utils/enumTypes.js +2 -0
- package/dist/{esm → cjs/lib}/utils/ethersTypes.js +29 -6
- package/dist/esm/index.d.ts +37 -29
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +37 -30
- package/dist/{types → esm/lib}/addresses/lensAddresses.d.ts +2 -2
- package/dist/esm/lib/addresses/lensAddresses.d.ts.map +1 -0
- package/dist/esm/{addresses → lib/addresses}/lensAddresses.js +2 -2
- package/dist/esm/lib/addresses/systemAddresses.d.ts +23 -0
- package/dist/esm/lib/addresses/systemAddresses.d.ts.map +1 -0
- package/dist/esm/lib/addresses/systemAddresses.js +25 -0
- package/dist/esm/lib/chains/chainConstants.d.ts +18 -0
- package/dist/esm/lib/chains/chainConstants.d.ts.map +1 -0
- package/dist/esm/lib/chains/chainConstants.js +20 -0
- package/dist/esm/lib/chains/chainTypes.d.ts +10 -0
- package/dist/esm/lib/chains/chainTypes.d.ts.map +1 -0
- package/dist/esm/lib/chains/chainTypes.js +23 -0
- package/dist/{types/common → esm/lib}/constants/contractEnums.d.ts +37 -36
- package/dist/esm/lib/constants/contractEnums.d.ts.map +1 -0
- package/dist/{cjs/common → esm/lib}/constants/contractEnums.js +37 -35
- package/dist/esm/lib/constants/feeIds.d.ts.map +1 -0
- package/dist/esm/lib/constants/generalConstants.d.ts.map +1 -0
- package/dist/esm/{common → lib}/constants/groupIds.d.ts +1 -1
- package/dist/esm/lib/constants/groupIds.d.ts.map +1 -0
- package/dist/{types/common → esm/lib}/constants/pairIds.d.ts +1 -1
- package/dist/esm/lib/constants/pairIds.d.ts.map +1 -0
- package/dist/esm/{common → lib}/constants/scales.d.ts +0 -1
- package/dist/esm/lib/constants/scales.d.ts.map +1 -0
- package/dist/{cjs/common → esm/lib}/constants/scales.js +1 -6
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts +14 -0
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.js +15 -0
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts +11 -0
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.js +27 -0
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/index.d.ts +3 -0
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/index.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/index.js +18 -0
- package/dist/esm/lib/contractsIntegration/LexLensService/ILexLensService.d.ts +85 -0
- package/dist/esm/lib/contractsIntegration/LexLensService/ILexLensService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/LexLensService/ILexLensService.js +137 -0
- package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.d.ts +35 -0
- package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.js +270 -0
- package/dist/esm/lib/contractsIntegration/LexLensService/index.d.ts +3 -0
- package/dist/esm/lib/contractsIntegration/LexLensService/index.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/LexLensService/index.js +18 -0
- package/dist/esm/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts +14 -0
- package/dist/esm/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/OrderBookService/IOrderBookService.js +2 -0
- package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts +19 -0
- package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.js +47 -0
- package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts +61 -0
- package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.js +2 -0
- package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts +14 -0
- package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +157 -0
- package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.d.ts +32 -0
- package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.js +64 -0
- package/dist/esm/lib/contractsIntegration/TradersPortalService/index.d.ts +4 -0
- package/dist/esm/lib/contractsIntegration/TradersPortalService/index.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/TradersPortalService/index.js +19 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +15 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.js +2 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts +19 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +49 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/index.d.ts +3 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/index.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/index.js +18 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts +83 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.js +2 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts +80 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +158 -0
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts +15 -0
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.js +30 -0
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts +11 -0
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.js +28 -0
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/index.d.ts +3 -0
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/index.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/index.js +18 -0
- package/dist/esm/lib/contractsIntegration/TriggersService/ITriggersService.d.ts +73 -0
- package/dist/esm/lib/contractsIntegration/TriggersService/ITriggersService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/TriggersService/ITriggersService.js +2 -0
- package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.d.ts +18 -0
- package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.js +188 -0
- package/dist/esm/lib/contractsIntegration/deployedContractsConnector.d.ts +49 -0
- package/dist/esm/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/deployedContractsConnector.js +135 -0
- package/dist/esm/lib/lynxSystem/chipsCalculationsUtils.d.ts.map +1 -0
- package/dist/esm/{utils → lib/lynxSystem}/chipsCalculationsUtils.js +2 -2
- package/dist/esm/lib/lynxSystem/hashes.d.ts +8 -0
- package/dist/esm/lib/lynxSystem/hashes.d.ts.map +1 -0
- package/dist/esm/lib/lynxSystem/hashes.js +17 -0
- package/dist/esm/lib/lynxSystem/leverageCalculationsUtils.d.ts.map +1 -0
- package/dist/esm/{utils → lib/lynxSystem}/leverageCalculationsUtils.js +1 -1
- package/dist/esm/{utils → lib/lynxSystem}/lynxScalesUtils.d.ts +2 -0
- package/dist/esm/lib/lynxSystem/lynxScalesUtils.d.ts.map +1 -0
- package/dist/{cjs/utils → esm/lib/lynxSystem}/lynxScalesUtils.js +10 -2
- package/dist/esm/lib/lynxSystem/registry/registryReading.d.ts +9 -0
- package/dist/esm/lib/lynxSystem/registry/registryReading.d.ts.map +1 -0
- package/dist/esm/lib/lynxSystem/registry/registryReading.js +38 -0
- package/dist/esm/lib/priceFeeds/pyth/pythFeedConstants.d.ts.map +1 -0
- package/dist/esm/lib/priceFeeds/pyth/pythFeedFunctions.d.ts.map +1 -0
- package/dist/esm/lib/typechain/common.d.ts.map +1 -0
- package/dist/esm/lib/typechain/common.js +2 -0
- package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.d.ts +151 -0
- package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.d.ts.map +1 -0
- package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.js +2 -0
- package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.d.ts +268 -0
- package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.d.ts.map +1 -0
- package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.js +2 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryProxy.d.ts +143 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryProxy.d.ts.map +1 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryProxy.js +2 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryV1.d.ts +603 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryV1.d.ts.map +1 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryV1.js +2 -0
- package/dist/esm/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts +571 -0
- package/dist/esm/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts.map +1 -0
- package/dist/esm/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.js +2 -0
- package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.d.ts +151 -0
- package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.d.ts.map +1 -0
- package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.js +2 -0
- package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts +1160 -0
- package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts.map +1 -0
- package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.js +2 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts +977 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts.map +1 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.js +2 -0
- package/dist/esm/lib/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.d.ts.map +1 -0
- package/dist/esm/lib/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.js +2 -0
- package/dist/esm/lib/typechain/contracts/Peripheral/Lens/LexLens.d.ts.map +1 -0
- package/dist/esm/lib/typechain/contracts/Peripheral/Lens/LexLens.js +2 -0
- package/dist/{types/common → esm/lib}/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts +1 -3
- package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts.map +1 -0
- package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.js +2 -0
- package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts.map +1 -0
- package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.js +2 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.d.ts +193 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.d.ts.map +1 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.js +258 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +407 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts.map +1 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +539 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.d.ts +169 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.d.ts.map +1 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.js +226 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts +841 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts.map +1 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.js +1108 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +745 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts.map +1 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +966 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.d.ts +193 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.d.ts.map +1 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.js +258 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +1374 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +1774 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +1135 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts.map +1 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +1459 -0
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.d.ts.map +1 -0
- package/dist/{types/common → esm/lib}/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +1 -1
- package/dist/esm/{common → lib}/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts.map +1 -1
- package/dist/esm/{common → lib}/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +1 -1
- package/dist/esm/{common → lib}/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts.map +1 -0
- package/dist/esm/{common → lib}/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +1 -1
- package/dist/esm/{common → lib}/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts.map +1 -0
- package/dist/esm/{common → lib}/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +1 -1
- package/dist/esm/lib/utils/addresses.d.ts.map +1 -0
- package/dist/esm/lib/utils/bignumbers.d.ts.map +1 -0
- package/dist/esm/lib/utils/cloning.d.ts.map +1 -0
- package/dist/esm/lib/utils/enumTypes.d.ts.map +1 -0
- package/dist/esm/lib/utils/enumTypes.js +2 -0
- package/dist/esm/{utils → lib/utils}/ethersTypes.d.ts +2 -2
- package/dist/esm/lib/utils/ethersTypes.d.ts.map +1 -0
- package/dist/{cjs → esm/lib}/utils/ethersTypes.js +29 -6
- package/dist/esm/lib/utils/types.d.ts.map +1 -0
- package/dist/types/index.d.ts +37 -29
- package/dist/types/index.d.ts.map +1 -1
- package/dist/{esm → types/lib}/addresses/lensAddresses.d.ts +2 -2
- package/dist/types/lib/addresses/lensAddresses.d.ts.map +1 -0
- package/dist/types/lib/addresses/systemAddresses.d.ts +23 -0
- package/dist/types/lib/addresses/systemAddresses.d.ts.map +1 -0
- package/dist/types/lib/chains/chainConstants.d.ts +18 -0
- package/dist/types/lib/chains/chainConstants.d.ts.map +1 -0
- package/dist/types/lib/chains/chainTypes.d.ts +10 -0
- package/dist/types/lib/chains/chainTypes.d.ts.map +1 -0
- package/dist/{esm/common → types/lib}/constants/contractEnums.d.ts +37 -36
- package/dist/types/lib/constants/contractEnums.d.ts.map +1 -0
- package/dist/types/lib/constants/feeIds.d.ts.map +1 -0
- package/dist/types/lib/constants/generalConstants.d.ts.map +1 -0
- package/dist/types/{common → lib}/constants/groupIds.d.ts +1 -1
- package/dist/types/lib/constants/groupIds.d.ts.map +1 -0
- package/dist/{esm/common → types/lib}/constants/pairIds.d.ts +1 -1
- package/dist/types/lib/constants/pairIds.d.ts.map +1 -0
- package/dist/types/{common → lib}/constants/scales.d.ts +0 -1
- package/dist/types/lib/constants/scales.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts +14 -0
- package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts +11 -0
- package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/index.d.ts +3 -0
- package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/index.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/LexLensService/ILexLensService.d.ts +85 -0
- package/dist/types/lib/contractsIntegration/LexLensService/ILexLensService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/LexLensService/LexLensService.d.ts +35 -0
- package/dist/types/lib/contractsIntegration/LexLensService/LexLensService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/LexLensService/index.d.ts +3 -0
- package/dist/types/lib/contractsIntegration/LexLensService/index.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts +14 -0
- package/dist/types/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts +19 -0
- package/dist/types/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts +61 -0
- package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts +14 -0
- package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.d.ts +32 -0
- package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/TradersPortalService/index.d.ts +4 -0
- package/dist/types/lib/contractsIntegration/TradersPortalService/index.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +15 -0
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts +19 -0
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/index.d.ts +3 -0
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/index.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts +83 -0
- package/dist/types/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts +80 -0
- package/dist/types/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts +15 -0
- package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts +11 -0
- package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/index.d.ts +3 -0
- package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/index.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/TriggersService/ITriggersService.d.ts +73 -0
- package/dist/types/lib/contractsIntegration/TriggersService/ITriggersService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/TriggersService/TriggersService.d.ts +18 -0
- package/dist/types/lib/contractsIntegration/TriggersService/TriggersService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/deployedContractsConnector.d.ts +49 -0
- package/dist/types/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -0
- package/dist/types/lib/lynxSystem/chipsCalculationsUtils.d.ts.map +1 -0
- package/dist/types/lib/lynxSystem/hashes.d.ts +8 -0
- package/dist/types/lib/lynxSystem/hashes.d.ts.map +1 -0
- package/dist/types/lib/lynxSystem/leverageCalculationsUtils.d.ts.map +1 -0
- package/dist/types/{utils → lib/lynxSystem}/lynxScalesUtils.d.ts +2 -0
- package/dist/types/lib/lynxSystem/lynxScalesUtils.d.ts.map +1 -0
- package/dist/types/lib/lynxSystem/registry/registryReading.d.ts +9 -0
- package/dist/types/lib/lynxSystem/registry/registryReading.d.ts.map +1 -0
- package/dist/types/lib/priceFeeds/pyth/pythFeedConstants.d.ts.map +1 -0
- package/dist/types/lib/priceFeeds/pyth/pythFeedFunctions.d.ts.map +1 -0
- package/dist/types/lib/typechain/common.d.ts.map +1 -0
- package/dist/types/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.d.ts +151 -0
- package/dist/types/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.d.ts.map +1 -0
- package/dist/types/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.d.ts +268 -0
- package/dist/types/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.d.ts.map +1 -0
- package/dist/types/lib/typechain/contracts/Lynx/Registry/RegistryProxy.d.ts +143 -0
- package/dist/types/lib/typechain/contracts/Lynx/Registry/RegistryProxy.d.ts.map +1 -0
- package/dist/types/lib/typechain/contracts/Lynx/Registry/RegistryV1.d.ts +603 -0
- package/dist/types/lib/typechain/contracts/Lynx/Registry/RegistryV1.d.ts.map +1 -0
- package/dist/types/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts +571 -0
- package/dist/types/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts.map +1 -0
- package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.d.ts +151 -0
- package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.d.ts.map +1 -0
- package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts +1160 -0
- package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts.map +1 -0
- package/dist/types/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts +977 -0
- package/dist/types/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts.map +1 -0
- package/dist/types/lib/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.d.ts.map +1 -0
- package/dist/types/lib/typechain/contracts/Peripheral/Lens/LexLens.d.ts.map +1 -0
- package/dist/{esm/common → types/lib}/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts +1 -3
- package/dist/types/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts.map +1 -0
- package/dist/types/lib/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts.map +1 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.d.ts +193 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.d.ts.map +1 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +407 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts.map +1 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.d.ts +169 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.d.ts.map +1 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts +841 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts.map +1 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +745 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts.map +1 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.d.ts +193 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.d.ts.map +1 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +1374 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +1135 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts.map +1 -0
- package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.d.ts.map +1 -0
- package/dist/{esm/common → types/lib}/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +1 -1
- package/dist/types/{common → lib}/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts.map +1 -1
- package/dist/types/{common → lib}/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts.map +1 -0
- package/dist/types/{common → lib}/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts.map +1 -0
- package/dist/types/lib/utils/addresses.d.ts.map +1 -0
- package/dist/types/lib/utils/bignumbers.d.ts.map +1 -0
- package/dist/types/lib/utils/cloning.d.ts.map +1 -0
- package/dist/types/lib/utils/enumTypes.d.ts.map +1 -0
- package/dist/types/{utils → lib/utils}/ethersTypes.d.ts +2 -2
- package/dist/types/lib/utils/ethersTypes.d.ts.map +1 -0
- package/dist/types/lib/utils/types.d.ts.map +1 -0
- package/package.json +2 -1
- package/dist/cjs/common/contractsIntegration/deployedContractsConnector.js +0 -16
- package/dist/cjs/utils/chainTypes.js +0 -20
- package/dist/cjs/utils/hashes.js +0 -8
- package/dist/esm/addresses/lensAddresses.d.ts.map +0 -1
- package/dist/esm/common/constants/contractEnums.d.ts.map +0 -1
- package/dist/esm/common/constants/feeIds.d.ts.map +0 -1
- package/dist/esm/common/constants/generalConstants.d.ts.map +0 -1
- package/dist/esm/common/constants/groupIds.d.ts.map +0 -1
- package/dist/esm/common/constants/pairIds.d.ts.map +0 -1
- package/dist/esm/common/constants/scales.d.ts.map +0 -1
- package/dist/esm/common/contractsIntegration/deployedContractsConnector.d.ts +0 -7
- package/dist/esm/common/contractsIntegration/deployedContractsConnector.d.ts.map +0 -1
- package/dist/esm/common/contractsIntegration/deployedContractsConnector.js +0 -16
- package/dist/esm/common/priceFeeds/pyth/pythFeedConstants.d.ts.map +0 -1
- package/dist/esm/common/priceFeeds/pyth/pythFeedFunctions.d.ts.map +0 -1
- package/dist/esm/common/typechain/common.d.ts.map +0 -1
- package/dist/esm/common/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.d.ts.map +0 -1
- package/dist/esm/common/typechain/contracts/Peripheral/Lens/LexLens.d.ts.map +0 -1
- package/dist/esm/common/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts.map +0 -1
- package/dist/esm/common/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts.map +0 -1
- package/dist/esm/common/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.d.ts.map +0 -1
- package/dist/esm/common/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts.map +0 -1
- package/dist/esm/common/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts.map +0 -1
- package/dist/esm/utils/addresses.d.ts.map +0 -1
- package/dist/esm/utils/bignumbers.d.ts.map +0 -1
- package/dist/esm/utils/chainTypes.d.ts +0 -137
- package/dist/esm/utils/chainTypes.d.ts.map +0 -1
- package/dist/esm/utils/chainTypes.js +0 -20
- package/dist/esm/utils/chipsCalculationsUtils.d.ts.map +0 -1
- package/dist/esm/utils/cloning.d.ts.map +0 -1
- package/dist/esm/utils/enumTypes.d.ts.map +0 -1
- package/dist/esm/utils/ethersTypes.d.ts.map +0 -1
- package/dist/esm/utils/hashes.d.ts +0 -2
- package/dist/esm/utils/hashes.d.ts.map +0 -1
- package/dist/esm/utils/hashes.js +0 -8
- package/dist/esm/utils/leverageCalculationsUtils.d.ts.map +0 -1
- package/dist/esm/utils/lynxScalesUtils.d.ts.map +0 -1
- package/dist/esm/utils/types.d.ts.map +0 -1
- package/dist/types/addresses/lensAddresses.d.ts.map +0 -1
- package/dist/types/common/constants/contractEnums.d.ts.map +0 -1
- package/dist/types/common/constants/feeIds.d.ts.map +0 -1
- package/dist/types/common/constants/generalConstants.d.ts.map +0 -1
- package/dist/types/common/constants/groupIds.d.ts.map +0 -1
- package/dist/types/common/constants/pairIds.d.ts.map +0 -1
- package/dist/types/common/constants/scales.d.ts.map +0 -1
- package/dist/types/common/contractsIntegration/deployedContractsConnector.d.ts +0 -7
- package/dist/types/common/contractsIntegration/deployedContractsConnector.d.ts.map +0 -1
- package/dist/types/common/priceFeeds/pyth/pythFeedConstants.d.ts.map +0 -1
- package/dist/types/common/priceFeeds/pyth/pythFeedFunctions.d.ts.map +0 -1
- package/dist/types/common/typechain/common.d.ts.map +0 -1
- package/dist/types/common/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.d.ts.map +0 -1
- package/dist/types/common/typechain/contracts/Peripheral/Lens/LexLens.d.ts.map +0 -1
- package/dist/types/common/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts.map +0 -1
- package/dist/types/common/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts.map +0 -1
- package/dist/types/common/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.d.ts.map +0 -1
- package/dist/types/common/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts.map +0 -1
- package/dist/types/common/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts.map +0 -1
- package/dist/types/utils/addresses.d.ts.map +0 -1
- package/dist/types/utils/bignumbers.d.ts.map +0 -1
- package/dist/types/utils/chainTypes.d.ts +0 -137
- package/dist/types/utils/chainTypes.d.ts.map +0 -1
- package/dist/types/utils/chipsCalculationsUtils.d.ts.map +0 -1
- package/dist/types/utils/cloning.d.ts.map +0 -1
- package/dist/types/utils/enumTypes.d.ts.map +0 -1
- package/dist/types/utils/ethersTypes.d.ts.map +0 -1
- package/dist/types/utils/hashes.d.ts +0 -2
- package/dist/types/utils/hashes.d.ts.map +0 -1
- package/dist/types/utils/leverageCalculationsUtils.d.ts.map +0 -1
- package/dist/types/utils/lynxScalesUtils.d.ts.map +0 -1
- package/dist/types/utils/types.d.ts.map +0 -1
- /package/dist/cjs/{common → lib}/constants/feeIds.js +0 -0
- /package/dist/cjs/{common → lib}/constants/generalConstants.js +0 -0
- /package/dist/cjs/{common → lib}/constants/groupIds.js +0 -0
- /package/dist/cjs/{common → lib}/constants/pairIds.js +0 -0
- /package/dist/cjs/{common/typechain/common.js → lib/contractsIntegration/OrderBookService/IOrderBookService.js} +0 -0
- /package/dist/cjs/{common/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.js → lib/contractsIntegration/TradersPortalService/ITradersPortalService.js} +0 -0
- /package/dist/cjs/{common/typechain/contracts/Peripheral/Lens/LexLens.js → lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.js} +0 -0
- /package/dist/cjs/{common/typechain/contracts/Peripheral/Lens/TradingFloorLens.js → lib/contractsIntegration/TradingFloorService/ITradingFloorService.js} +0 -0
- /package/dist/cjs/{common/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.js → lib/contractsIntegration/TriggersService/ITriggersService.js} +0 -0
- /package/dist/cjs/{common → lib}/priceFeeds/pyth/pythFeedConstants.js +0 -0
- /package/dist/cjs/{common → lib}/priceFeeds/pyth/pythFeedFunctions.js +0 -0
- /package/dist/{esm/common → cjs/lib}/typechain/common.js +0 -0
- /package/dist/cjs/{utils/enumTypes.js → lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.js} +0 -0
- /package/dist/{esm/common/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.js → cjs/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.js} +0 -0
- /package/dist/{esm/common/typechain/contracts/Peripheral/Lens/LexLens.js → cjs/lib/typechain/contracts/Lynx/Registry/RegistryProxy.js} +0 -0
- /package/dist/{esm/common/typechain/contracts/Peripheral/Lens/TradingFloorLens.js → cjs/lib/typechain/contracts/Lynx/Registry/RegistryV1.js} +0 -0
- /package/dist/{esm/common/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.js → cjs/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.js} +0 -0
- /package/dist/{esm/utils/enumTypes.js → cjs/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.js} +0 -0
- /package/dist/cjs/{common → lib}/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.js +0 -0
- /package/dist/cjs/{utils → lib/utils}/addresses.js +0 -0
- /package/dist/cjs/{utils → lib/utils}/bignumbers.js +0 -0
- /package/dist/cjs/{utils → lib/utils}/cloning.js +0 -0
- /package/dist/cjs/{utils → lib/utils}/types.js +0 -0
- /package/dist/esm/{common → lib}/constants/feeIds.d.ts +0 -0
- /package/dist/esm/{common → lib}/constants/feeIds.js +0 -0
- /package/dist/esm/{common → lib}/constants/generalConstants.d.ts +0 -0
- /package/dist/esm/{common → lib}/constants/generalConstants.js +0 -0
- /package/dist/esm/{common → lib}/constants/groupIds.js +0 -0
- /package/dist/esm/{common → lib}/constants/pairIds.js +0 -0
- /package/dist/esm/{utils → lib/lynxSystem}/chipsCalculationsUtils.d.ts +0 -0
- /package/dist/esm/{utils → lib/lynxSystem}/leverageCalculationsUtils.d.ts +0 -0
- /package/dist/esm/{common → lib}/priceFeeds/pyth/pythFeedConstants.d.ts +0 -0
- /package/dist/esm/{common → lib}/priceFeeds/pyth/pythFeedConstants.js +0 -0
- /package/dist/esm/{common → lib}/priceFeeds/pyth/pythFeedFunctions.d.ts +0 -0
- /package/dist/esm/{common → lib}/priceFeeds/pyth/pythFeedFunctions.js +0 -0
- /package/dist/esm/{common → lib}/typechain/common.d.ts +0 -0
- /package/dist/esm/{common → lib}/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.d.ts +0 -0
- /package/dist/esm/{common → lib}/typechain/contracts/Peripheral/Lens/LexLens.d.ts +0 -0
- /package/dist/esm/{common → lib}/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts +0 -0
- /package/dist/esm/{common → lib}/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.d.ts +0 -0
- /package/dist/esm/{common → lib}/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.js +0 -0
- /package/dist/esm/{utils → lib/utils}/addresses.d.ts +0 -0
- /package/dist/esm/{utils → lib/utils}/addresses.js +0 -0
- /package/dist/esm/{utils → lib/utils}/bignumbers.d.ts +0 -0
- /package/dist/esm/{utils → lib/utils}/bignumbers.js +0 -0
- /package/dist/esm/{utils → lib/utils}/cloning.d.ts +0 -0
- /package/dist/esm/{utils → lib/utils}/cloning.js +0 -0
- /package/dist/esm/{utils → lib/utils}/enumTypes.d.ts +0 -0
- /package/dist/esm/{utils → lib/utils}/types.d.ts +0 -0
- /package/dist/esm/{utils → lib/utils}/types.js +0 -0
- /package/dist/types/{common → lib}/constants/feeIds.d.ts +0 -0
- /package/dist/types/{common → lib}/constants/generalConstants.d.ts +0 -0
- /package/dist/types/{utils → lib/lynxSystem}/chipsCalculationsUtils.d.ts +0 -0
- /package/dist/types/{utils → lib/lynxSystem}/leverageCalculationsUtils.d.ts +0 -0
- /package/dist/types/{common → lib}/priceFeeds/pyth/pythFeedConstants.d.ts +0 -0
- /package/dist/types/{common → lib}/priceFeeds/pyth/pythFeedFunctions.d.ts +0 -0
- /package/dist/types/{common → lib}/typechain/common.d.ts +0 -0
- /package/dist/types/{common → lib}/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.d.ts +0 -0
- /package/dist/types/{common → lib}/typechain/contracts/Peripheral/Lens/LexLens.d.ts +0 -0
- /package/dist/types/{common → lib}/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts +0 -0
- /package/dist/types/{common → lib}/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.d.ts +0 -0
- /package/dist/types/{utils → lib/utils}/addresses.d.ts +0 -0
- /package/dist/types/{utils → lib/utils}/bignumbers.d.ts +0 -0
- /package/dist/types/{utils → lib/utils}/cloning.d.ts +0 -0
- /package/dist/types/{utils → lib/utils}/enumTypes.d.ts +0 -0
- /package/dist/types/{utils → lib/utils}/types.d.ts +0 -0
package/dist/cjs/index.js
CHANGED
|
@@ -14,33 +14,40 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
18
|
-
__exportStar(require("./
|
|
19
|
-
__exportStar(require("./utils/
|
|
20
|
-
__exportStar(require("./utils/
|
|
21
|
-
__exportStar(require("./
|
|
22
|
-
__exportStar(require("./
|
|
23
|
-
__exportStar(require("./utils/
|
|
24
|
-
__exportStar(require("./utils/
|
|
25
|
-
__exportStar(require("./utils/
|
|
26
|
-
__exportStar(require("./
|
|
27
|
-
__exportStar(require("./
|
|
28
|
-
__exportStar(require("./
|
|
29
|
-
__exportStar(require("./
|
|
30
|
-
__exportStar(require("./
|
|
31
|
-
__exportStar(require("./
|
|
32
|
-
__exportStar(require("./
|
|
33
|
-
__exportStar(require("./
|
|
34
|
-
__exportStar(require("./
|
|
35
|
-
__exportStar(require("./
|
|
36
|
-
|
|
37
|
-
__exportStar(require("./
|
|
38
|
-
__exportStar(require("./
|
|
39
|
-
__exportStar(require("./
|
|
40
|
-
__exportStar(require("./
|
|
41
|
-
__exportStar(require("./
|
|
42
|
-
__exportStar(require("./
|
|
43
|
-
__exportStar(require("./
|
|
44
|
-
__exportStar(require("./
|
|
45
|
-
__exportStar(require("./
|
|
46
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./lib/chains/chainConstants"), exports);
|
|
18
|
+
__exportStar(require("./lib/chains/chainTypes"), exports);
|
|
19
|
+
__exportStar(require("./lib/utils/addresses"), exports);
|
|
20
|
+
__exportStar(require("./lib/utils/bignumbers"), exports);
|
|
21
|
+
__exportStar(require("./lib/lynxSystem/chipsCalculationsUtils"), exports);
|
|
22
|
+
__exportStar(require("./lib/lynxSystem/leverageCalculationsUtils"), exports);
|
|
23
|
+
__exportStar(require("./lib/utils/cloning"), exports);
|
|
24
|
+
__exportStar(require("./lib/utils/enumTypes"), exports);
|
|
25
|
+
__exportStar(require("./lib/utils/ethersTypes"), exports);
|
|
26
|
+
__exportStar(require("./lib/lynxSystem/hashes"), exports);
|
|
27
|
+
__exportStar(require("./lib/lynxSystem/lynxScalesUtils"), exports);
|
|
28
|
+
__exportStar(require("./lib/utils/types"), exports);
|
|
29
|
+
__exportStar(require("./lib/lynxSystem/registry/registryReading"), exports);
|
|
30
|
+
__exportStar(require("./lib/constants/contractEnums"), exports);
|
|
31
|
+
__exportStar(require("./lib/constants/generalConstants"), exports);
|
|
32
|
+
__exportStar(require("./lib/constants/scales"), exports);
|
|
33
|
+
__exportStar(require("./lib/constants/pairIds"), exports);
|
|
34
|
+
__exportStar(require("./lib/constants/groupIds"), exports);
|
|
35
|
+
__exportStar(require("./lib/constants/feeIds"), exports);
|
|
36
|
+
__exportStar(require("./lib/priceFeeds/pyth/pythFeedConstants"), exports);
|
|
37
|
+
__exportStar(require("./lib/priceFeeds/pyth/pythFeedFunctions"), exports);
|
|
38
|
+
__exportStar(require("./lib/addresses/lensAddresses"), exports);
|
|
39
|
+
__exportStar(require("./lib/addresses/systemAddresses"), exports);
|
|
40
|
+
__exportStar(require("./lib/contractsIntegration/deployedContractsConnector"), exports);
|
|
41
|
+
__exportStar(require("./lib/contractsIntegration/TradersPortalService"), exports);
|
|
42
|
+
__exportStar(require("./lib/contractsIntegration/IntentsVerifierLensService"), exports);
|
|
43
|
+
__exportStar(require("./lib/contractsIntegration/TriggersAndPortalLensService"), exports);
|
|
44
|
+
__exportStar(require("./lib/contractsIntegration/TradingFloorLensService"), exports);
|
|
45
|
+
__exportStar(require("./lib/contractsIntegration/LexLensService"), exports);
|
|
46
|
+
__exportStar(require("./lib/typechain/contracts/Peripheral/Lens/IntentsVerifierLens"), exports);
|
|
47
|
+
__exportStar(require("./lib/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens"), exports);
|
|
48
|
+
__exportStar(require("./lib/typechain/contracts/Peripheral/Lens/LexLens"), exports);
|
|
49
|
+
__exportStar(require("./lib/typechain/contracts/Peripheral/Lens/TradingFloorLens"), exports);
|
|
50
|
+
__exportStar(require("./lib/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory"), exports);
|
|
51
|
+
__exportStar(require("./lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory"), exports);
|
|
52
|
+
__exportStar(require("./lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory"), exports);
|
|
53
|
+
__exportStar(require("./lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory"), exports);
|
|
@@ -16,8 +16,8 @@ exports.LensAddresses = {
|
|
|
16
16
|
},
|
|
17
17
|
fantom: {
|
|
18
18
|
lexLens: "0xB5A5041654391a720953D346367D3A3BE9c3d47B",
|
|
19
|
-
tradingFloorLensLens: "
|
|
20
|
-
intentsVerifierLens: "
|
|
19
|
+
tradingFloorLensLens: "0x2B913d10452c93Bb7184B5B4fb7e3724452fE0fB",
|
|
20
|
+
intentsVerifierLens: "0x5cf3613de36106C10674778C5748FAf9630c3D94",
|
|
21
21
|
triggersAndPortalLens: "0x9544C73C97BD292a1F09ef671A5f8CcDf9Ff5429",
|
|
22
22
|
},
|
|
23
23
|
flare: {
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LynxSystemAddresses = void 0;
|
|
4
|
+
exports.LynxSystemAddresses = {
|
|
5
|
+
sonic: {
|
|
6
|
+
registryProxyAddress: "0x4CF3d61165a6Be8FF741320ad27Cab57faE5c207",
|
|
7
|
+
tradingFloorProxyAddress: "0x37792EecFA985D0b00a51864c970e7df406AA868",
|
|
8
|
+
orderBookProxyAddress: "0x08422B1cA26c4B6e28bd8635cABB03bC1DBe5D62",
|
|
9
|
+
},
|
|
10
|
+
boba: {
|
|
11
|
+
registryProxyAddress: "0xC5E782E2A4E2cFCb7eD454CF5a7b6aa2bB424B90",
|
|
12
|
+
tradingFloorProxyAddress: "0x87525b5542DbF7302cd95D82388d28e44ec9289D",
|
|
13
|
+
orderBookProxyAddress: "0xD22c72aB0f4967edB876d84773BfF0b60A92e51a",
|
|
14
|
+
},
|
|
15
|
+
flare: {
|
|
16
|
+
registryProxyAddress: "0x4CF3d61165a6Be8FF741320ad27Cab57faE5c207",
|
|
17
|
+
tradingFloorProxyAddress: "0x37792EecFA985D0b00a51864c970e7df406AA868",
|
|
18
|
+
orderBookProxyAddress: "0x08422B1cA26c4B6e28bd8635cABB03bC1DBe5D62",
|
|
19
|
+
},
|
|
20
|
+
fantom: {
|
|
21
|
+
registryProxyAddress: "0x3b7ED1cDF0Fc64d95c0D0428b9Cc99b6A9a5CB94",
|
|
22
|
+
tradingFloorProxyAddress: "0x0420D838a2227727F2555aa54F0164A73c05C16b",
|
|
23
|
+
orderBookProxyAddress: "0x3552fE61af3F6d3235Dd1CB75402d4281d1FbaC6",
|
|
24
|
+
},
|
|
25
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CHAIN_ID_ZIRCUIT = exports.CHAIN_ID_LINEA = exports.CHAIN_ID_CELO = exports.CHAIN_ID_ARBITRUM = exports.CHAIN_ID_MODE = exports.CHAIN_ID_BASE = exports.CHAIN_ID_MANTLE = exports.CHAIN_ID_GOAT = exports.CHAIN_ID_BOBA = exports.CHAIN_ID_FUSE = exports.CHAIN_ID_FANTOM = exports.CHAIN_ID_SONIC = exports.CHAIN_ID_POLYGON = exports.CHAIN_ID_BSC = exports.CHAIN_ID_FLARE = exports.CHAIN_ID_OPTIMISM = exports.CHAIN_ID_ETHEREUM = void 0;
|
|
4
|
+
exports.CHAIN_ID_ETHEREUM = 1;
|
|
5
|
+
exports.CHAIN_ID_OPTIMISM = 10;
|
|
6
|
+
exports.CHAIN_ID_FLARE = 14;
|
|
7
|
+
exports.CHAIN_ID_BSC = 56;
|
|
8
|
+
exports.CHAIN_ID_POLYGON = 137;
|
|
9
|
+
exports.CHAIN_ID_SONIC = 146;
|
|
10
|
+
exports.CHAIN_ID_FANTOM = 250;
|
|
11
|
+
exports.CHAIN_ID_FUSE = 122;
|
|
12
|
+
exports.CHAIN_ID_BOBA = 288;
|
|
13
|
+
exports.CHAIN_ID_GOAT = 2345;
|
|
14
|
+
exports.CHAIN_ID_MANTLE = 5000;
|
|
15
|
+
exports.CHAIN_ID_BASE = 8453;
|
|
16
|
+
exports.CHAIN_ID_MODE = 34443;
|
|
17
|
+
exports.CHAIN_ID_ARBITRUM = 42161;
|
|
18
|
+
exports.CHAIN_ID_CELO = 42220;
|
|
19
|
+
exports.CHAIN_ID_LINEA = 59144;
|
|
20
|
+
exports.CHAIN_ID_ZIRCUIT = 48900;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CHAIN_ID_TO_NAME = void 0;
|
|
4
|
+
const chainConstants_1 = require("./chainConstants");
|
|
5
|
+
exports.CHAIN_ID_TO_NAME = {
|
|
6
|
+
[chainConstants_1.CHAIN_ID_ETHEREUM]: "ethereum",
|
|
7
|
+
[chainConstants_1.CHAIN_ID_OPTIMISM]: "optimism",
|
|
8
|
+
[chainConstants_1.CHAIN_ID_BSC]: "bsc",
|
|
9
|
+
[chainConstants_1.CHAIN_ID_FANTOM]: "fantom",
|
|
10
|
+
[chainConstants_1.CHAIN_ID_POLYGON]: "polygon",
|
|
11
|
+
[chainConstants_1.CHAIN_ID_BOBA]: "boba",
|
|
12
|
+
[chainConstants_1.CHAIN_ID_MANTLE]: "mantle",
|
|
13
|
+
[chainConstants_1.CHAIN_ID_LINEA]: "linea",
|
|
14
|
+
[chainConstants_1.CHAIN_ID_FUSE]: "fuse",
|
|
15
|
+
[chainConstants_1.CHAIN_ID_ARBITRUM]: "arbitrum",
|
|
16
|
+
[chainConstants_1.CHAIN_ID_CELO]: "celo",
|
|
17
|
+
[chainConstants_1.CHAIN_ID_MODE]: "mode",
|
|
18
|
+
[chainConstants_1.CHAIN_ID_ZIRCUIT]: "zircuit",
|
|
19
|
+
[chainConstants_1.CHAIN_ID_BASE]: "base",
|
|
20
|
+
[chainConstants_1.CHAIN_ID_GOAT]: "goat",
|
|
21
|
+
[chainConstants_1.CHAIN_ID_SONIC]: "sonic",
|
|
22
|
+
[chainConstants_1.CHAIN_ID_FLARE]: "flare",
|
|
23
|
+
};
|
|
@@ -3,12 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.GeneralTokenDispenserPusherLevelEnums = exports.ChipsIntentsVerifierActionsEnums = exports.LiquidityIntentsVerifierActionsEnums = exports.TradeIntentsVerifierActionsEnums = exports.ChipSpenderRolesEnums = exports.ChipModeEnums = exports.TradersPortalActionEnums = exports.UpdatePositionFieldOrderTypeEnums = exports.LexPoolNumberEnums = exports.LexPoolAddressesEnums = exports.PoolAccountantNumberEnums = exports.PoolAccountantAddressesEnums = exports.AdminNumericParam = exports.PositionCloseTypeEnums = exports.PositionFieldEnums = exports.FeeTypeEnums = exports.LimitTriggerEnums = exports.CloseOrderTypeEnums = exports.OpenOrderTypeEnums = exports.PositionPhaseEnums = void 0;
|
|
4
4
|
// ****** Trading Floor ******
|
|
5
5
|
exports.PositionPhaseEnums = {
|
|
6
|
-
NONE:
|
|
7
|
-
OPEN_MARKET:
|
|
8
|
-
OPEN_LIMIT:
|
|
9
|
-
OPENED:
|
|
10
|
-
CLOSE_MARKET:
|
|
11
|
-
CLOSED:
|
|
6
|
+
NONE: 0,
|
|
7
|
+
OPEN_MARKET: 1,
|
|
8
|
+
OPEN_LIMIT: 2,
|
|
9
|
+
OPENED: 3,
|
|
10
|
+
CLOSE_MARKET: 4,
|
|
11
|
+
CLOSED: 5,
|
|
12
12
|
};
|
|
13
13
|
exports.OpenOrderTypeEnums = {
|
|
14
14
|
NONE: 0,
|
|
@@ -31,23 +31,24 @@ exports.FeeTypeEnums = {
|
|
|
31
31
|
CLOSE_FEE: 2,
|
|
32
32
|
TRIGGER_FEE: 3,
|
|
33
33
|
};
|
|
34
|
+
// TODO : Can probably delete this type and const (as we have TUpdatePositionFieldOrderType)
|
|
34
35
|
exports.PositionFieldEnums = {
|
|
35
36
|
NONE: 0n,
|
|
36
37
|
TP: 1n,
|
|
37
38
|
SL: 2n,
|
|
38
39
|
};
|
|
39
40
|
exports.PositionCloseTypeEnums = {
|
|
40
|
-
NONE:
|
|
41
|
-
TP:
|
|
42
|
-
SL:
|
|
43
|
-
LIQ:
|
|
44
|
-
MARKET:
|
|
41
|
+
NONE: 0,
|
|
42
|
+
TP: 1,
|
|
43
|
+
SL: 2,
|
|
44
|
+
LIQ: 3,
|
|
45
|
+
MARKET: 4,
|
|
45
46
|
};
|
|
46
47
|
exports.AdminNumericParam = {
|
|
47
|
-
NONE:
|
|
48
|
-
MAX_TRADES_PER_PAIR:
|
|
49
|
-
MAX_SL_F:
|
|
50
|
-
MAX_SANITY_PROFIT_F:
|
|
48
|
+
NONE: 0,
|
|
49
|
+
MAX_TRADES_PER_PAIR: 1,
|
|
50
|
+
MAX_SL_F: 2,
|
|
51
|
+
MAX_SANITY_PROFIT_F: 3,
|
|
51
52
|
};
|
|
52
53
|
// ****** Lex ******
|
|
53
54
|
exports.PoolAccountantAddressesEnums = {
|
|
@@ -84,10 +85,10 @@ exports.LexPoolNumberEnums = {
|
|
|
84
85
|
};
|
|
85
86
|
// ****** Order Book ******
|
|
86
87
|
exports.UpdatePositionFieldOrderTypeEnums = {
|
|
87
|
-
NONE:
|
|
88
|
-
UPDATE_TP:
|
|
89
|
-
UPDATE_SL:
|
|
90
|
-
UPDATE_TP_AND_SL:
|
|
88
|
+
NONE: 0,
|
|
89
|
+
UPDATE_TP: 1,
|
|
90
|
+
UPDATE_SL: 2,
|
|
91
|
+
UPDATE_TP_AND_SL: 3,
|
|
91
92
|
};
|
|
92
93
|
// ****** Traders Portal ******
|
|
93
94
|
exports.TradersPortalActionEnums = {
|
|
@@ -99,10 +100,10 @@ exports.TradersPortalActionEnums = {
|
|
|
99
100
|
};
|
|
100
101
|
// ****** Base Chip ******
|
|
101
102
|
exports.ChipModeEnums = {
|
|
102
|
-
NONE:
|
|
103
|
-
LOCAL:
|
|
104
|
-
REMOTE:
|
|
105
|
-
HYBRID:
|
|
103
|
+
NONE: 0,
|
|
104
|
+
LOCAL: 1,
|
|
105
|
+
REMOTE: 2,
|
|
106
|
+
HYBRID: 3,
|
|
106
107
|
};
|
|
107
108
|
exports.ChipSpenderRolesEnums = {
|
|
108
109
|
TradingFloor: "TradingFloor",
|
|
@@ -112,24 +113,25 @@ exports.ChipSpenderRolesEnums = {
|
|
|
112
113
|
};
|
|
113
114
|
// ****** Trade Intents Verifier ******
|
|
114
115
|
exports.TradeIntentsVerifierActionsEnums = {
|
|
115
|
-
NONE:
|
|
116
|
-
REQUEST_POSITION_OPEN:
|
|
117
|
-
REQUEST_POSITION_MARKET_CLOSE:
|
|
118
|
-
REQUEST_POSITION_SINGLE_FIELD_UPDATE:
|
|
119
|
-
REQUEST_POSITION_DOUBLE_FIELD_UPDATE:
|
|
120
|
-
DIRECT_UPDATE_PENDING_LIMIT_POSITION:
|
|
121
|
-
DIRECT_CANCEL_PENDING_LIMIT_POSITION:
|
|
116
|
+
NONE: 0,
|
|
117
|
+
REQUEST_POSITION_OPEN: 1,
|
|
118
|
+
REQUEST_POSITION_MARKET_CLOSE: 2,
|
|
119
|
+
REQUEST_POSITION_SINGLE_FIELD_UPDATE: 3,
|
|
120
|
+
REQUEST_POSITION_DOUBLE_FIELD_UPDATE: 4,
|
|
121
|
+
DIRECT_UPDATE_PENDING_LIMIT_POSITION: 5,
|
|
122
|
+
DIRECT_CANCEL_PENDING_LIMIT_POSITION: 6,
|
|
122
123
|
};
|
|
123
124
|
// ****** Liquidity Intents Verifier ******
|
|
124
125
|
exports.LiquidityIntentsVerifierActionsEnums = {
|
|
125
|
-
NONE:
|
|
126
|
-
REQUEST_EPOCH_DEPOSIT:
|
|
127
|
-
REQUEST_EPOCH_REDEEM:
|
|
126
|
+
NONE: 0,
|
|
127
|
+
REQUEST_EPOCH_DEPOSIT: 1,
|
|
128
|
+
REQUEST_EPOCH_REDEEM: 2,
|
|
128
129
|
};
|
|
129
130
|
// ****** Chips Intents Verifier ******
|
|
130
131
|
exports.ChipsIntentsVerifierActionsEnums = {
|
|
131
|
-
NONE:
|
|
132
|
-
CHIP_OUT_LZ:
|
|
132
|
+
NONE: 0,
|
|
133
|
+
CHIP_OUT_LZ: 1,
|
|
134
|
+
CHIP_OUT_LZ_UNWRAP: 2n,
|
|
133
135
|
};
|
|
134
136
|
// ****** General Token Dispenser ******
|
|
135
137
|
exports.GeneralTokenDispenserPusherLevelEnums = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CONTRACT_VERSION_SCALE = exports.PROXY_VERSION_SCALE = exports.
|
|
3
|
+
exports.CONTRACT_VERSION_SCALE = exports.PROXY_VERSION_SCALE = exports.LEX_TOKEN_UNIT = exports.LEX_TOKEN_SCALE = exports.ACCURACY_IMPROVEMENT_UNIT = exports.ACCURACY_IMPROVEMENT_SCALE = exports.FRACTION_UNIT = exports.FRACTION_MULTIPLIER_SCALE = exports.LEVERAGE_UNIT = exports.LEVERAGE_MULTIPLIER_SCALE = exports.PRICES_SCALE = exports.PRECISION_UNIT = exports.PRECISION_SCALE = exports.CHIP_DECIMALS = void 0;
|
|
4
4
|
exports.CHIP_DECIMALS = 18;
|
|
5
5
|
exports.PRECISION_SCALE = 18n;
|
|
6
6
|
exports.PRECISION_UNIT = 10n ** exports.PRECISION_SCALE;
|
|
@@ -15,10 +15,5 @@ exports.ACCURACY_IMPROVEMENT_SCALE = 9n;
|
|
|
15
15
|
exports.ACCURACY_IMPROVEMENT_UNIT = 10n ** exports.ACCURACY_IMPROVEMENT_SCALE;
|
|
16
16
|
exports.LEX_TOKEN_SCALE = 18n;
|
|
17
17
|
exports.LEX_TOKEN_UNIT = 10n ** exports.LEX_TOKEN_SCALE;
|
|
18
|
-
exports.LEX_TOKEN_INITIAL_EXCHANGE_RATE_UNITS = 1;
|
|
19
|
-
// export const LEX_TOKEN_INITIAL_EXCHANGE_RATE = floatToUnitsBn(
|
|
20
|
-
// 0.02,
|
|
21
|
-
// LEX_TOKEN_SCALE
|
|
22
|
-
// );
|
|
23
18
|
exports.PROXY_VERSION_SCALE = 1000; // 1,000 = 1.00, 1,120 = 1.12
|
|
24
19
|
exports.CONTRACT_VERSION_SCALE = 1000; // 1,000 = 1.00, 1,120 = 1.12
|
package/dist/cjs/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EMPTY_HASH_BASED_INTENTS_VERIFIER_REQUEST_BUILDING_INFO = exports.EMPTY_ACCOUNT_BASED_INTENTS_VERIFIER_REQUEST_BUILDING_INFO = void 0;
|
|
4
|
+
exports.EMPTY_ACCOUNT_BASED_INTENTS_VERIFIER_REQUEST_BUILDING_INFO = {
|
|
5
|
+
verifier: "",
|
|
6
|
+
account: "",
|
|
7
|
+
actionType: 0n,
|
|
8
|
+
currentNonce: 0n,
|
|
9
|
+
};
|
|
10
|
+
exports.EMPTY_HASH_BASED_INTENTS_VERIFIER_REQUEST_BUILDING_INFO = {
|
|
11
|
+
verifier: "",
|
|
12
|
+
hash: "",
|
|
13
|
+
actionType: 0n,
|
|
14
|
+
currentNonce: 0n,
|
|
15
|
+
};
|
package/dist/cjs/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IntentsVerifierLensService = void 0;
|
|
4
|
+
const IntentsVerifierLens__factory_1 = require("../../typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory");
|
|
5
|
+
const ethersTypes_1 = require("../../utils/ethersTypes");
|
|
6
|
+
const IIntentsVerifierLensService_1 = require("./IIntentsVerifierLensService");
|
|
7
|
+
class IntentsVerifierLensService {
|
|
8
|
+
constructor(provider, address) {
|
|
9
|
+
this.contract = IntentsVerifierLens__factory_1.IntentsVerifierLens__factory.connect(address, provider);
|
|
10
|
+
}
|
|
11
|
+
async getRequestBuildingInfoForChipsIntentsVerifier(account, actionType) {
|
|
12
|
+
const result = await this.contract.getRequestBuildingInfoForChipsIntentsVerifier(account, BigInt(actionType));
|
|
13
|
+
return (0, ethersTypes_1.ethersStructResponseToObject)(result, IIntentsVerifierLensService_1.EMPTY_ACCOUNT_BASED_INTENTS_VERIFIER_REQUEST_BUILDING_INFO);
|
|
14
|
+
}
|
|
15
|
+
async getRequestBuildingInfoForLiquidityIntentsVerifier(account, actionType) {
|
|
16
|
+
const result = await this.contract.getRequestBuildingInfoForLiquidityIntentsVerifier(account, BigInt(actionType));
|
|
17
|
+
return (0, ethersTypes_1.ethersStructResponseToObject)(result, IIntentsVerifierLensService_1.EMPTY_ACCOUNT_BASED_INTENTS_VERIFIER_REQUEST_BUILDING_INFO);
|
|
18
|
+
}
|
|
19
|
+
async getRequestBuildingInfoForTradeIntentsVerifier(positionId, actionType) {
|
|
20
|
+
const result = await this.contract.getRequestBuildingInfoForTradeIntentsVerifier(positionId, BigInt(actionType));
|
|
21
|
+
return (0, ethersTypes_1.ethersStructResponseToObject)(result, IIntentsVerifierLensService_1.EMPTY_HASH_BASED_INTENTS_VERIFIER_REQUEST_BUILDING_INFO);
|
|
22
|
+
}
|
|
23
|
+
async registry() {
|
|
24
|
+
return await this.contract.registry();
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.IntentsVerifierLensService = IntentsVerifierLensService;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./IIntentsVerifierLensService"), exports);
|
|
18
|
+
__exportStar(require("./IntentsVerifierLensService"), exports);
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EMPTY_SINGLE_POSITION_OUTPUT = exports.EMPTY_COMPLETE_LEX_CONFIGS = exports.EMPTY_COMPLETE_LEX_STATE = exports.EMPTY_POOL_ACCOUNTANT_CONFIGURATIONS_LENS = exports.EMPTY_POOL_ACCOUNTANT_STATE_LENS = exports.EMPTY_LEX_POOL_SUPPLIER_LENS_STATE = exports.EMPTY_LEX_GROUP_STATE_LENS = exports.EMPTY_LEX_PAIR_STATE_LENS = exports.EMPTY_GROUP_CONFIGS_LENS = exports.EMPTY_FEE_CONFIGS_LENS = exports.EMPTY_PAIR_CONFIGS_LENS = exports.EMPTY_LEX_POOL_LENS_CONFIGS = exports.EMPTY_LEX_POOL_LENS_STATE = exports.EMPTY_LEX_POOL_LENS_PARAMS = exports.EMPTY_PENDING_EPOCH_REDEEM = exports.EMPTY_PENDING_EPOCH_DEPOSIT = void 0;
|
|
4
|
+
// Empty constants
|
|
5
|
+
exports.EMPTY_PENDING_EPOCH_DEPOSIT = {
|
|
6
|
+
account: "",
|
|
7
|
+
amount: 0n,
|
|
8
|
+
epochNumber: 0n,
|
|
9
|
+
minAmountOut: 0n,
|
|
10
|
+
};
|
|
11
|
+
exports.EMPTY_PENDING_EPOCH_REDEEM = {
|
|
12
|
+
account: "",
|
|
13
|
+
amount: 0n,
|
|
14
|
+
epochNumber: 0n,
|
|
15
|
+
maxAmountOut: 0n,
|
|
16
|
+
minAmountOut: 0n,
|
|
17
|
+
};
|
|
18
|
+
exports.EMPTY_LEX_POOL_LENS_PARAMS = {
|
|
19
|
+
lexToken: "",
|
|
20
|
+
name: "",
|
|
21
|
+
symbol: "",
|
|
22
|
+
underlying: "",
|
|
23
|
+
};
|
|
24
|
+
exports.EMPTY_LEX_POOL_LENS_STATE = {
|
|
25
|
+
currentVirtualUtilization: 0n,
|
|
26
|
+
nextEpochStartMin: 0n,
|
|
27
|
+
poolBalance: 0n,
|
|
28
|
+
totalPendingDeposits: 0n,
|
|
29
|
+
totalPendingWithdrawals: 0n,
|
|
30
|
+
totalSupply: 0n,
|
|
31
|
+
virtualBalanceForUtilization: 0n,
|
|
32
|
+
lexPool: "",
|
|
33
|
+
cash: 0n,
|
|
34
|
+
connectedToCenter: false,
|
|
35
|
+
currentEpochNumber: 0n,
|
|
36
|
+
currentExchangeRate: 0n,
|
|
37
|
+
};
|
|
38
|
+
exports.EMPTY_LEX_POOL_LENS_CONFIGS = {
|
|
39
|
+
lexPool: "",
|
|
40
|
+
epochLength: 0n,
|
|
41
|
+
minDepositAmount: 0n,
|
|
42
|
+
epochsDelayDeposit: 0n,
|
|
43
|
+
epochsDelayRedeem: 0n,
|
|
44
|
+
immediateDepositAllowed: false,
|
|
45
|
+
};
|
|
46
|
+
exports.EMPTY_PAIR_CONFIGS_LENS = {
|
|
47
|
+
feeId: 0,
|
|
48
|
+
groupId: 0,
|
|
49
|
+
maxBorrowF: 0n,
|
|
50
|
+
maxGain: 0n,
|
|
51
|
+
maxLeverage: 0n,
|
|
52
|
+
maxOpenInterest: 0n,
|
|
53
|
+
maxPositionSize: 0n,
|
|
54
|
+
maxSkew: 0n,
|
|
55
|
+
minLeverage: 0n,
|
|
56
|
+
pairId: 0,
|
|
57
|
+
minPerformanceFee: 0n,
|
|
58
|
+
minOpenFee: 0n,
|
|
59
|
+
};
|
|
60
|
+
exports.EMPTY_FEE_CONFIGS_LENS = {
|
|
61
|
+
feeId: 0,
|
|
62
|
+
openFeeF: 0,
|
|
63
|
+
closeFeeF: 0,
|
|
64
|
+
performanceFeeF: 0,
|
|
65
|
+
};
|
|
66
|
+
exports.EMPTY_GROUP_CONFIGS_LENS = {
|
|
67
|
+
groupId: 0,
|
|
68
|
+
maxBorrowF: 0,
|
|
69
|
+
maxLeverage: 0n,
|
|
70
|
+
maxPositionSize: 0n,
|
|
71
|
+
minLeverage: 0n,
|
|
72
|
+
};
|
|
73
|
+
exports.EMPTY_LEX_PAIR_STATE_LENS = {
|
|
74
|
+
fundingRate: 0n,
|
|
75
|
+
lexPool: "",
|
|
76
|
+
openInterestLong: 0n,
|
|
77
|
+
openInterestShort: 0n,
|
|
78
|
+
pairId: 0,
|
|
79
|
+
tradersPairGains: 0n,
|
|
80
|
+
pairBorrows: 0n,
|
|
81
|
+
};
|
|
82
|
+
exports.EMPTY_LEX_GROUP_STATE_LENS = {
|
|
83
|
+
lexPool: "",
|
|
84
|
+
groupId: 0,
|
|
85
|
+
groupBorrows: 0n,
|
|
86
|
+
};
|
|
87
|
+
exports.EMPTY_LEX_POOL_SUPPLIER_LENS_STATE = {
|
|
88
|
+
allowanceForLexPool: 0n,
|
|
89
|
+
lexPool: "",
|
|
90
|
+
lxpBalance: 0n,
|
|
91
|
+
lxpBalanceInUnderlying: 0n,
|
|
92
|
+
pendingEpochDeposits: [],
|
|
93
|
+
pendingEpochRedeems: [],
|
|
94
|
+
supplier: "",
|
|
95
|
+
underlyingBalance: 0n,
|
|
96
|
+
};
|
|
97
|
+
exports.EMPTY_POOL_ACCOUNTANT_STATE_LENS = {
|
|
98
|
+
accountant: "",
|
|
99
|
+
borrowRatePerSecond: 0n,
|
|
100
|
+
interestShare: 0n,
|
|
101
|
+
matchingPool: "",
|
|
102
|
+
totalBorrows: 0n,
|
|
103
|
+
unrealizedFunding: 0n,
|
|
104
|
+
fundingShare: 0n,
|
|
105
|
+
};
|
|
106
|
+
exports.EMPTY_POOL_ACCOUNTANT_CONFIGURATIONS_LENS = {
|
|
107
|
+
accountant: "",
|
|
108
|
+
fundingRateModel: "",
|
|
109
|
+
interestRateModel: "",
|
|
110
|
+
interestShareFactor: 0n,
|
|
111
|
+
matchingPool: "",
|
|
112
|
+
minOpenFee: 0n,
|
|
113
|
+
lexPartF: 0n,
|
|
114
|
+
liquidationThresholdF: 0n,
|
|
115
|
+
liquidationFeeF: 0n,
|
|
116
|
+
supportedPairIds: [],
|
|
117
|
+
};
|
|
118
|
+
exports.EMPTY_COMPLETE_LEX_STATE = {
|
|
119
|
+
lexPoolState: exports.EMPTY_LEX_POOL_LENS_STATE,
|
|
120
|
+
poolAccountantState: exports.EMPTY_POOL_ACCOUNTANT_STATE_LENS,
|
|
121
|
+
pairsStates: [],
|
|
122
|
+
groupsStates: [],
|
|
123
|
+
};
|
|
124
|
+
exports.EMPTY_COMPLETE_LEX_CONFIGS = {
|
|
125
|
+
lexPoolParams: exports.EMPTY_LEX_POOL_LENS_PARAMS,
|
|
126
|
+
lexPoolConfigurations: exports.EMPTY_LEX_POOL_LENS_CONFIGS,
|
|
127
|
+
poolAccountantConfigurations: exports.EMPTY_POOL_ACCOUNTANT_CONFIGURATIONS_LENS,
|
|
128
|
+
groupsConfigs: [],
|
|
129
|
+
pairsConfigs: [],
|
|
130
|
+
feesConfigs: [],
|
|
131
|
+
};
|
|
132
|
+
exports.EMPTY_SINGLE_POSITION_OUTPUT = {
|
|
133
|
+
totalValue: 0n,
|
|
134
|
+
safeClosingFee: 0n,
|
|
135
|
+
interest: 0n,
|
|
136
|
+
funding: 0n,
|
|
137
|
+
};
|