lynx-client 0.0.1-beta.9 → 0.0.3
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/README.md +391 -3
- package/dist/cjs/index.js +9 -0
- package/dist/cjs/lib/addresses/lensAddresses.js +16 -16
- package/dist/cjs/lib/chains/chainMappings.js +17 -0
- package/dist/cjs/lib/constants/contractEnums.js +1 -0
- package/dist/cjs/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.js +2 -0
- package/dist/cjs/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.js +22 -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 +250 -0
- package/dist/cjs/lib/contractsIntegration/LexLensService/index.js +18 -0
- package/dist/cjs/lib/contractsIntegration/OrderBookService/IOrderBookService.js +2 -0
- package/dist/cjs/lib/contractsIntegration/OrderBookService/OrderBookService.js +92 -0
- package/dist/cjs/lib/contractsIntegration/TradersPortalService/ITradersPortalService.js +2 -0
- package/dist/cjs/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +157 -0
- package/dist/cjs/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.js +63 -0
- package/dist/cjs/lib/contractsIntegration/TradersPortalService/index.js +19 -0
- package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.js +57 -0
- package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +111 -0
- package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/index.js +18 -0
- package/dist/cjs/lib/contractsIntegration/TradingFloorService/ITradingFloorService.js +2 -0
- package/dist/cjs/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +177 -0
- package/dist/cjs/lib/contractsIntegration/TradingFloorService/index.js +5 -0
- package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.js +30 -0
- package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.js +58 -0
- package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/index.js +18 -0
- package/dist/cjs/lib/contractsIntegration/TriggersService/ITriggersService.js +2 -0
- package/dist/cjs/lib/contractsIntegration/TriggersService/TriggersService.js +188 -0
- package/dist/cjs/lib/contractsIntegration/deployedContractsConnector.js +119 -8
- package/dist/cjs/lib/devex/getChainAddresses.js +65 -0
- package/dist/cjs/lib/devex/getSupportedEngineChains.js +45 -0
- package/dist/cjs/lib/devex/index.js +9 -0
- package/dist/cjs/lib/devex/types.js +2 -0
- package/dist/cjs/lib/lynxSystem/hashes.js +9 -0
- package/dist/cjs/lib/lynxSystem/lynxScalesUtils.js +8 -0
- package/dist/cjs/lib/lynxSystem/registry/registryReading.js +38 -0
- package/dist/cjs/lib/priceFeeds/pyth/pythFeedConstants.js +1 -2
- package/dist/cjs/lib/typechain/contracts/Lynx/Lex/LexPool/LexPoolV1.js +2 -0
- package/dist/cjs/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.js +2 -0
- package/dist/cjs/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.js +2 -0
- package/dist/cjs/lib/typechain/contracts/Lynx/Registry/RegistryProxy.js +2 -0
- package/dist/cjs/lib/typechain/contracts/Lynx/Registry/RegistryV1.js +2 -0
- package/dist/cjs/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.js +2 -0
- package/dist/cjs/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.js +2 -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/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor.js +2 -0
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.js +1854 -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 +1038 -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 +1991 -0
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +1459 -0
- package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.js +10 -109
- package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +51 -594
- package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor__factory.js +334 -0
- package/dist/cjs/lib/utils/ethersTypes.js +29 -6
- package/dist/esm/index.d.ts +8 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +9 -0
- package/dist/esm/lib/addresses/lensAddresses.d.ts +16 -16
- package/dist/esm/lib/addresses/lensAddresses.js +16 -16
- package/dist/esm/lib/chains/chainMappings.d.ts +13 -0
- package/dist/esm/lib/chains/chainMappings.d.ts.map +1 -0
- package/dist/esm/lib/chains/chainMappings.js +17 -0
- package/dist/esm/lib/chains/chainTypes.d.ts +3 -0
- package/dist/esm/lib/chains/chainTypes.d.ts.map +1 -1
- package/dist/esm/lib/constants/contractEnums.d.ts.map +1 -1
- package/dist/esm/lib/constants/contractEnums.js +1 -0
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts +7 -0
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.js +2 -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 +22 -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 +34 -0
- package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.js +250 -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 +40 -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 +12 -0
- package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.js +92 -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 +31 -0
- package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.js +63 -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 +65 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.js +57 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts +13 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +111 -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 +89 -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 +86 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +177 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorService/index.d.ts +3 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorService/index.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorService/index.js +5 -0
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts +33 -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 +58 -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 +44 -5
- package/dist/esm/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/deployedContractsConnector.js +119 -8
- package/dist/esm/lib/devex/getChainAddresses.d.ts +20 -0
- package/dist/esm/lib/devex/getChainAddresses.d.ts.map +1 -0
- package/dist/esm/lib/devex/getChainAddresses.js +65 -0
- package/dist/esm/lib/devex/getSupportedEngineChains.d.ts +37 -0
- package/dist/esm/lib/devex/getSupportedEngineChains.d.ts.map +1 -0
- package/dist/esm/lib/devex/getSupportedEngineChains.js +45 -0
- package/dist/esm/lib/devex/index.d.ts +5 -0
- package/dist/esm/lib/devex/index.d.ts.map +1 -0
- package/dist/esm/lib/devex/index.js +9 -0
- package/dist/esm/lib/devex/types.d.ts +20 -0
- package/dist/esm/lib/devex/types.d.ts.map +1 -0
- package/dist/esm/lib/devex/types.js +2 -0
- package/dist/esm/lib/lynxSystem/hashes.d.ts +6 -0
- package/dist/esm/lib/lynxSystem/hashes.d.ts.map +1 -1
- package/dist/esm/lib/lynxSystem/hashes.js +9 -0
- package/dist/esm/lib/lynxSystem/lynxScalesUtils.d.ts +2 -0
- package/dist/esm/lib/lynxSystem/lynxScalesUtils.d.ts.map +1 -1
- package/dist/esm/lib/lynxSystem/lynxScalesUtils.js +8 -0
- 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 -1
- package/dist/esm/lib/priceFeeds/pyth/pythFeedConstants.js +1 -2
- package/dist/esm/lib/typechain/common.d.ts.map +1 -1
- package/dist/esm/lib/typechain/contracts/Lynx/Lex/LexPool/LexPoolV1.d.ts +1084 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Lex/LexPool/LexPoolV1.d.ts.map +1 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Lex/LexPool/LexPoolV1.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 +607 -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 +1251 -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 +10 -65
- package/dist/esm/lib/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.d.ts.map +1 -1
- package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts +34 -114
- package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts.map +1 -1
- package/dist/esm/lib/typechain/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor.d.ts +158 -0
- package/dist/esm/lib/typechain/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor.d.ts.map +1 -0
- package/dist/esm/lib/typechain/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor.js +2 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts +1425 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts.map +1 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.js +1854 -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 +800 -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 +1038 -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 +1536 -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 +1991 -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 +10 -85
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.d.ts.map +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.js +10 -109
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +13 -442
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts.map +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +51 -594
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor__factory.d.ts +251 -0
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor__factory.d.ts.map +1 -0
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor__factory.js +334 -0
- package/dist/esm/lib/utils/ethersTypes.d.ts +2 -2
- package/dist/esm/lib/utils/ethersTypes.d.ts.map +1 -1
- package/dist/esm/lib/utils/ethersTypes.js +29 -6
- package/dist/types/index.d.ts +8 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/lib/addresses/lensAddresses.d.ts +16 -16
- package/dist/types/lib/chains/chainMappings.d.ts +13 -0
- package/dist/types/lib/chains/chainMappings.d.ts.map +1 -0
- package/dist/types/lib/chains/chainTypes.d.ts +3 -0
- package/dist/types/lib/chains/chainTypes.d.ts.map +1 -1
- package/dist/types/lib/constants/contractEnums.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts +7 -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 +34 -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 +40 -0
- package/dist/types/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts +12 -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 +31 -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 +65 -0
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts +13 -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 +89 -0
- package/dist/types/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts +86 -0
- package/dist/types/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/TradingFloorService/index.d.ts +3 -0
- package/dist/types/lib/contractsIntegration/TradingFloorService/index.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts +33 -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 +44 -5
- package/dist/types/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -1
- package/dist/types/lib/devex/getChainAddresses.d.ts +20 -0
- package/dist/types/lib/devex/getChainAddresses.d.ts.map +1 -0
- package/dist/types/lib/devex/getSupportedEngineChains.d.ts +37 -0
- package/dist/types/lib/devex/getSupportedEngineChains.d.ts.map +1 -0
- package/dist/types/lib/devex/index.d.ts +5 -0
- package/dist/types/lib/devex/index.d.ts.map +1 -0
- package/dist/types/lib/devex/types.d.ts +20 -0
- package/dist/types/lib/devex/types.d.ts.map +1 -0
- package/dist/types/lib/lynxSystem/hashes.d.ts +6 -0
- package/dist/types/lib/lynxSystem/hashes.d.ts.map +1 -1
- package/dist/types/lib/lynxSystem/lynxScalesUtils.d.ts +2 -0
- package/dist/types/lib/lynxSystem/lynxScalesUtils.d.ts.map +1 -1
- 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 -1
- package/dist/types/lib/typechain/common.d.ts.map +1 -1
- package/dist/types/lib/typechain/contracts/Lynx/Lex/LexPool/LexPoolV1.d.ts +1084 -0
- package/dist/types/lib/typechain/contracts/Lynx/Lex/LexPool/LexPoolV1.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 +607 -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 +1251 -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 +10 -65
- package/dist/types/lib/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.d.ts.map +1 -1
- package/dist/types/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts +34 -114
- package/dist/types/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts.map +1 -1
- package/dist/types/lib/typechain/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor.d.ts +158 -0
- package/dist/types/lib/typechain/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor.d.ts.map +1 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts +1425 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.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 +800 -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 +1536 -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 +10 -85
- package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.d.ts.map +1 -1
- package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +13 -442
- package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts.map +1 -1
- package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor__factory.d.ts +251 -0
- package/dist/types/lib/typechain/factories/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor__factory.d.ts.map +1 -0
- package/dist/types/lib/utils/ethersTypes.d.ts +2 -2
- package/dist/types/lib/utils/ethersTypes.d.ts.map +1 -1
- package/package.json +7 -7
|
@@ -1,22 +1,133 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.connectToRegistryProxyForSigner = connectToRegistryProxyForSigner;
|
|
4
|
+
exports.connectToLatestRegistryForSigner = connectToLatestRegistryForSigner;
|
|
5
|
+
exports.connectToLatestRegistry = connectToLatestRegistry;
|
|
6
|
+
exports.connectToTradingFloorProxyForSigner = connectToTradingFloorProxyForSigner;
|
|
7
|
+
exports.connectToTradingFloorProxy = connectToTradingFloorProxy;
|
|
8
|
+
exports.connectToLatestTradingFloorForSigner = connectToLatestTradingFloorForSigner;
|
|
9
|
+
exports.connectToLatestTradingFloor = connectToLatestTradingFloor;
|
|
10
|
+
exports.connectToOrderBookProxyForSigner = connectToOrderBookProxyForSigner;
|
|
11
|
+
exports.connectToOrderBookProxy = connectToOrderBookProxy;
|
|
12
|
+
exports.connectToLatestOrderBookForSigner = connectToLatestOrderBookForSigner;
|
|
13
|
+
exports.connectToLatestOrderBook = connectToLatestOrderBook;
|
|
14
|
+
exports.connectToLatestTradersPortalForSigner = connectToLatestTradersPortalForSigner;
|
|
15
|
+
exports.connectToLatestTradersPortal = connectToLatestTradersPortal;
|
|
16
|
+
exports.connectToLatestTriggersForSigner = connectToLatestTriggersForSigner;
|
|
17
|
+
exports.connectToLatestTriggers = connectToLatestTriggers;
|
|
3
18
|
exports.connectToTradingFloorLens = connectToTradingFloorLens;
|
|
4
19
|
exports.connectToLeXLens = connectToLeXLens;
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
20
|
+
exports.createIntentsVerifierLensService = createIntentsVerifierLensService;
|
|
21
|
+
exports.createTriggersAndPortalLensService = createTriggersAndPortalLensService;
|
|
22
|
+
exports.createTradingFloorLensService = createTradingFloorLensService;
|
|
23
|
+
exports.createLexLensService = createLexLensService;
|
|
7
24
|
const TradingFloorLens__factory_1 = require("../typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory");
|
|
8
25
|
const LexLens__factory_1 = require("../typechain/factories/contracts/Peripheral/Lens/LexLens__factory");
|
|
9
|
-
const
|
|
10
|
-
const
|
|
26
|
+
const RegistryProxy__factory_1 = require("../typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory");
|
|
27
|
+
const RegistryV1__factory_1 = require("../typechain/factories/contracts/Lynx/Registry/RegistryV1__factory");
|
|
28
|
+
const TradingFloorProxy__factory_1 = require("../typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory");
|
|
29
|
+
const TradingFloorV1__factory_1 = require("../typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory");
|
|
30
|
+
const OrderBookProxy__factory_1 = require("../typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory");
|
|
31
|
+
const OrderBookV1__factory_1 = require("../typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory");
|
|
32
|
+
const TradersPortalV1__factory_1 = require("../typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory");
|
|
33
|
+
const TriggersV1__factory_1 = require("../typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory");
|
|
34
|
+
const IntentsVerifierLensService_1 = require("./IntentsVerifierLensService");
|
|
35
|
+
const TriggersAndPortalLensService_1 = require("./TriggersAndPortalLensService");
|
|
36
|
+
const TradingFloorLensService_1 = require("./TradingFloorLensService");
|
|
37
|
+
const LexLensService_1 = require("./LexLensService");
|
|
38
|
+
//
|
|
39
|
+
// ***** Registry & Proxy *****
|
|
40
|
+
//
|
|
41
|
+
function connectToRegistryProxyForSigner(signer, address) {
|
|
42
|
+
return RegistryProxy__factory_1.RegistryProxy__factory.connect(address, signer);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* To be used with the proxy address and the implementation ABI
|
|
46
|
+
*/
|
|
47
|
+
function connectToLatestRegistryForSigner(signer, address) {
|
|
48
|
+
return RegistryV1__factory_1.RegistryV1__factory.connect(address, signer);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* To be used with the proxy address and the implementation ABI
|
|
52
|
+
*/
|
|
53
|
+
function connectToLatestRegistry(provider, address) {
|
|
54
|
+
return RegistryV1__factory_1.RegistryV1__factory.connect(address, provider);
|
|
55
|
+
}
|
|
56
|
+
//
|
|
57
|
+
// ***** Trading Floor & Proxy *****
|
|
58
|
+
//
|
|
59
|
+
function connectToTradingFloorProxyForSigner(signer, address) {
|
|
60
|
+
return TradingFloorProxy__factory_1.TradingFloorProxy__factory.connect(address, signer);
|
|
61
|
+
}
|
|
62
|
+
function connectToTradingFloorProxy(provider, address) {
|
|
63
|
+
return TradingFloorProxy__factory_1.TradingFloorProxy__factory.connect(address, provider);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* To be used with the proxy address and the implementation ABI
|
|
67
|
+
*/
|
|
68
|
+
function connectToLatestTradingFloorForSigner(signer, address) {
|
|
69
|
+
return TradingFloorV1__factory_1.TradingFloorV1__factory.connect(address, signer);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* To be used with the proxy address and the implementation ABI
|
|
73
|
+
*/
|
|
74
|
+
function connectToLatestTradingFloor(provider, address) {
|
|
75
|
+
return TradingFloorV1__factory_1.TradingFloorV1__factory.connect(address, provider);
|
|
76
|
+
}
|
|
77
|
+
//
|
|
78
|
+
// ***** Order Book Proxy *****
|
|
79
|
+
//
|
|
80
|
+
function connectToOrderBookProxyForSigner(signer, address) {
|
|
81
|
+
return OrderBookProxy__factory_1.OrderBookProxy__factory.connect(address, signer);
|
|
82
|
+
}
|
|
83
|
+
function connectToOrderBookProxy(provider, address) {
|
|
84
|
+
return OrderBookProxy__factory_1.OrderBookProxy__factory.connect(address, provider);
|
|
85
|
+
}
|
|
86
|
+
//
|
|
87
|
+
// ***** Order Book *****
|
|
88
|
+
//
|
|
89
|
+
function connectToLatestOrderBookForSigner(signer, address) {
|
|
90
|
+
return OrderBookV1__factory_1.OrderBookV1__factory.connect(address, signer);
|
|
91
|
+
}
|
|
92
|
+
function connectToLatestOrderBook(provider, address) {
|
|
93
|
+
return OrderBookV1__factory_1.OrderBookV1__factory.connect(address, provider);
|
|
94
|
+
}
|
|
95
|
+
//
|
|
96
|
+
// Trading
|
|
97
|
+
//
|
|
98
|
+
function connectToLatestTradersPortalForSigner(signer, address) {
|
|
99
|
+
return TradersPortalV1__factory_1.TradersPortalV1__factory.connect(address, signer);
|
|
100
|
+
}
|
|
101
|
+
function connectToLatestTradersPortal(provider, address) {
|
|
102
|
+
return TradersPortalV1__factory_1.TradersPortalV1__factory.connect(address, provider);
|
|
103
|
+
}
|
|
104
|
+
//
|
|
105
|
+
// Triggers
|
|
106
|
+
//
|
|
107
|
+
function connectToLatestTriggersForSigner(signer, address) {
|
|
108
|
+
return TriggersV1__factory_1.TriggersV1__factory.connect(address, signer);
|
|
109
|
+
}
|
|
110
|
+
function connectToLatestTriggers(provider, address) {
|
|
111
|
+
return TriggersV1__factory_1.TriggersV1__factory.connect(address, provider);
|
|
112
|
+
}
|
|
11
113
|
function connectToTradingFloorLens(provider, address) {
|
|
12
114
|
return TradingFloorLens__factory_1.TradingFloorLens__factory.connect(address, provider);
|
|
13
115
|
}
|
|
14
116
|
function connectToLeXLens(provider, address) {
|
|
15
117
|
return LexLens__factory_1.LexLens__factory.connect(address, provider);
|
|
16
118
|
}
|
|
17
|
-
|
|
18
|
-
|
|
119
|
+
//
|
|
120
|
+
// ***** Lens Services *****
|
|
121
|
+
//
|
|
122
|
+
function createIntentsVerifierLensService(signerOrProvider, address) {
|
|
123
|
+
return new IntentsVerifierLensService_1.IntentsVerifierLensService(signerOrProvider, address);
|
|
124
|
+
}
|
|
125
|
+
function createTriggersAndPortalLensService(signerOrProvider, address) {
|
|
126
|
+
return new TriggersAndPortalLensService_1.TriggersAndPortalLensService(signerOrProvider, address);
|
|
127
|
+
}
|
|
128
|
+
function createTradingFloorLensService(signerOrProvider, address) {
|
|
129
|
+
return new TradingFloorLensService_1.TradingFloorLensService(signerOrProvider, address);
|
|
19
130
|
}
|
|
20
|
-
function
|
|
21
|
-
return
|
|
131
|
+
function createLexLensService(signerOrProvider, address) {
|
|
132
|
+
return new LexLensService_1.LexLensService(signerOrProvider, address);
|
|
22
133
|
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getChainAddresses = getChainAddresses;
|
|
4
|
+
const systemAddresses_1 = require("../addresses/systemAddresses");
|
|
5
|
+
const lensAddresses_1 = require("../addresses/lensAddresses");
|
|
6
|
+
const deployedContractsConnector_1 = require("../contractsIntegration/deployedContractsConnector");
|
|
7
|
+
const chainMappings_1 = require("../chains/chainMappings");
|
|
8
|
+
/**
|
|
9
|
+
* Get all Lynx system contract addresses for a specific chain
|
|
10
|
+
* @param options - Chain ID and provider
|
|
11
|
+
* @returns Promise<ILynxChainAddresses> - All system contract addresses
|
|
12
|
+
* @throws Error if chain is not supported
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import { getChainAddresses } from 'lynx-client/devex';
|
|
17
|
+
* import { ethers } from 'ethers';
|
|
18
|
+
*
|
|
19
|
+
* const provider = new ethers.JsonRpcProvider('https://rpc.example.com');
|
|
20
|
+
* const addresses = await getChainAddresses({ chainId: 146, provider });
|
|
21
|
+
*
|
|
22
|
+
* console.log(addresses.tradingFloorAddress); // Address of TradingFloor contract
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
async function getChainAddresses(options) {
|
|
26
|
+
const { chainId, provider } = options;
|
|
27
|
+
// Find the chain configuration
|
|
28
|
+
const chainEntry = Object.entries(chainMappings_1.ENGINE_CHAIN_ID_BY_NAME).find(([_, id]) => id === chainId);
|
|
29
|
+
if (!chainEntry) {
|
|
30
|
+
throw new Error(`Chain ID ${chainId} is not supported by Lynx protocol engine chains`);
|
|
31
|
+
}
|
|
32
|
+
const [chainKey] = chainEntry;
|
|
33
|
+
const addresses = systemAddresses_1.LynxSystemAddresses[chainKey];
|
|
34
|
+
const lensAddresses = lensAddresses_1.LensAddresses[chainKey];
|
|
35
|
+
const chainName = chainMappings_1.ENGINE_CHAIN_DISPLAY_NAME[chainKey];
|
|
36
|
+
// Connect to registry to get current implementation addresses
|
|
37
|
+
const registry = (0, deployedContractsConnector_1.connectToLatestRegistry)(provider, addresses.registryProxyAddress);
|
|
38
|
+
try {
|
|
39
|
+
// Fetch all contract addresses from registry
|
|
40
|
+
const [tradersPortal, orderBook, triggers,] = await Promise.all([
|
|
41
|
+
registry.tradersPortal(),
|
|
42
|
+
registry.orderBook(),
|
|
43
|
+
registry.triggers(),
|
|
44
|
+
]);
|
|
45
|
+
// Get registry implementation
|
|
46
|
+
const registryImplementation = await registry.implementation();
|
|
47
|
+
return {
|
|
48
|
+
chainId,
|
|
49
|
+
chainName,
|
|
50
|
+
registryProxyAddress: addresses.registryProxyAddress,
|
|
51
|
+
registryImplementationAddress: registryImplementation,
|
|
52
|
+
tradersPortalAddress: tradersPortal,
|
|
53
|
+
tradingFloorAddress: addresses.tradingFloorProxyAddress,
|
|
54
|
+
orderBookAddress: orderBook,
|
|
55
|
+
triggersAddress: triggers,
|
|
56
|
+
lexLensAddress: lensAddresses.lexLens,
|
|
57
|
+
tradingFloorLensAddress: lensAddresses.tradingFloorLensLens,
|
|
58
|
+
intentsVerifierLensAddress: lensAddresses.intentsVerifierLens,
|
|
59
|
+
triggersAndPortalLensAddress: lensAddresses.triggersAndPortalLens,
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
catch (error) {
|
|
63
|
+
throw new Error(`Failed to fetch addresses from registry on chain ${chainId}: ${error instanceof Error ? error.message : 'Unknown error'}`);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getSupportedEngineChains = getSupportedEngineChains;
|
|
4
|
+
exports.isEngineChainId = isEngineChainId;
|
|
5
|
+
const systemAddresses_1 = require("../addresses/systemAddresses");
|
|
6
|
+
const chainMappings_1 = require("../chains/chainMappings");
|
|
7
|
+
/**
|
|
8
|
+
* Get all chains supported by the Lynx protocol
|
|
9
|
+
* @returns Array of supported chains with their details
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import { getSupportedChains } from 'lynx-client/devex';
|
|
14
|
+
*
|
|
15
|
+
* const chains = getSupportedChains();
|
|
16
|
+
* chains.forEach(chain => {
|
|
17
|
+
* console.log(`${chain.chainName} (${chain.chainId}): ${chain.registryProxyAddress}`);
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
function getSupportedEngineChains() {
|
|
22
|
+
return Object.entries(systemAddresses_1.LynxSystemAddresses).map(([chainKey, config]) => ({
|
|
23
|
+
chainId: chainMappings_1.ENGINE_CHAIN_ID_BY_NAME[chainKey],
|
|
24
|
+
chainName: chainMappings_1.ENGINE_CHAIN_DISPLAY_NAME[chainKey] || chainKey,
|
|
25
|
+
chainKey,
|
|
26
|
+
registryProxyAddress: config.registryProxyAddress,
|
|
27
|
+
}));
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Check if a chain is supported by the Lynx protocol
|
|
31
|
+
* @param chainId - The chain ID to check
|
|
32
|
+
* @returns boolean - true if supported, false otherwise
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```typescript
|
|
36
|
+
* import { isChainSupported } from 'lynx-client/devex';
|
|
37
|
+
*
|
|
38
|
+
* if (isChainSupported(146)) {
|
|
39
|
+
* console.log('Sonic chain is supported!');
|
|
40
|
+
* }
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
function isEngineChainId(chainId) {
|
|
44
|
+
return Object.values(chainMappings_1.ENGINE_CHAIN_ID_BY_NAME).includes(chainId);
|
|
45
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isEngineChainId = exports.getSupportedEngineChains = exports.getChainAddresses = void 0;
|
|
4
|
+
// Developer Experience utilities
|
|
5
|
+
var getChainAddresses_1 = require("./getChainAddresses");
|
|
6
|
+
Object.defineProperty(exports, "getChainAddresses", { enumerable: true, get: function () { return getChainAddresses_1.getChainAddresses; } });
|
|
7
|
+
var getSupportedEngineChains_1 = require("./getSupportedEngineChains");
|
|
8
|
+
Object.defineProperty(exports, "getSupportedEngineChains", { enumerable: true, get: function () { return getSupportedEngineChains_1.getSupportedEngineChains; } });
|
|
9
|
+
Object.defineProperty(exports, "isEngineChainId", { enumerable: true, get: function () { return getSupportedEngineChains_1.isEngineChainId; } });
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.hashContractName = hashContractName;
|
|
4
|
+
exports.hashRoleName = hashRoleName;
|
|
4
5
|
const ethers_1 = require("ethers");
|
|
5
6
|
function hashContractName(contractName) {
|
|
6
7
|
const contractNameHash = ethers_1.ethers.solidityPackedKeccak256(["string"], [contractName]);
|
|
7
8
|
return contractNameHash;
|
|
8
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* Helper function to hash role names for use in role-based access control tests
|
|
12
|
+
* @param roleName The human-readable role name
|
|
13
|
+
* @returns The keccak256 hash of the role name as a hex string
|
|
14
|
+
*/
|
|
15
|
+
function hashRoleName(roleName) {
|
|
16
|
+
return ethers_1.ethers.keccak256(ethers_1.ethers.toUtf8Bytes(roleName));
|
|
17
|
+
}
|
|
@@ -4,6 +4,8 @@ exports.precisionBnToFloat = precisionBnToFloat;
|
|
|
4
4
|
exports.floatToPrecisionBn = floatToPrecisionBn;
|
|
5
5
|
exports.priceBnToFloat = priceBnToFloat;
|
|
6
6
|
exports.floatToPriceBn = floatToPriceBn;
|
|
7
|
+
exports.fractionBnToFloat = fractionBnToFloat;
|
|
8
|
+
exports.floatToFractionBn = floatToFractionBn;
|
|
7
9
|
const scales_1 = require("../constants/scales");
|
|
8
10
|
const bignumbers_1 = require("../utils/bignumbers");
|
|
9
11
|
function precisionBnToFloat(precisionBn) {
|
|
@@ -18,3 +20,9 @@ function priceBnToFloat(pricesBn) {
|
|
|
18
20
|
function floatToPriceBn(priceUnits) {
|
|
19
21
|
return (0, bignumbers_1.floatToUnitsBn)(priceUnits, scales_1.PRICES_SCALE);
|
|
20
22
|
}
|
|
23
|
+
function fractionBnToFloat(fractionBn) {
|
|
24
|
+
return Number(fractionBn) / Number(scales_1.FRACTION_MULTIPLIER_SCALE);
|
|
25
|
+
}
|
|
26
|
+
function floatToFractionBn(fractionUnits) {
|
|
27
|
+
return BigInt(Math.round(fractionUnits * Number(scales_1.FRACTION_MULTIPLIER_SCALE)));
|
|
28
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.readTradersPortalAddress = readTradersPortalAddress;
|
|
4
|
+
exports.readTriggersAddress = readTriggersAddress;
|
|
5
|
+
exports.readChipsFactoryAddress = readChipsFactoryAddress;
|
|
6
|
+
exports.readLexProxiesFactoryAddress = readLexProxiesFactoryAddress;
|
|
7
|
+
exports.readChipsIntentsVerifierAddress = readChipsIntentsVerifierAddress;
|
|
8
|
+
exports.readLiquidityIntentsVerifierAddress = readLiquidityIntentsVerifierAddress;
|
|
9
|
+
exports.readTradeIntentsVerifierAddress = readTradeIntentsVerifierAddress;
|
|
10
|
+
const deployedContractsConnector_1 = require("../../contractsIntegration/deployedContractsConnector");
|
|
11
|
+
async function readTradersPortalAddress(provider, registryProxyAddress) {
|
|
12
|
+
const registry = (0, deployedContractsConnector_1.connectToLatestRegistry)(provider, registryProxyAddress);
|
|
13
|
+
return await registry.tradersPortal();
|
|
14
|
+
}
|
|
15
|
+
async function readTriggersAddress(provider, registryProxyAddress) {
|
|
16
|
+
const registry = (0, deployedContractsConnector_1.connectToLatestRegistry)(provider, registryProxyAddress);
|
|
17
|
+
return await registry.triggers();
|
|
18
|
+
}
|
|
19
|
+
async function readChipsFactoryAddress(provider, registryProxyAddress) {
|
|
20
|
+
const registry = (0, deployedContractsConnector_1.connectToLatestRegistry)(provider, registryProxyAddress);
|
|
21
|
+
return await registry.chipsFactory();
|
|
22
|
+
}
|
|
23
|
+
async function readLexProxiesFactoryAddress(provider, registryProxyAddress) {
|
|
24
|
+
const registry = (0, deployedContractsConnector_1.connectToLatestRegistry)(provider, registryProxyAddress);
|
|
25
|
+
return await registry.lexProxiesFactory();
|
|
26
|
+
}
|
|
27
|
+
async function readChipsIntentsVerifierAddress(provider, registryProxyAddress) {
|
|
28
|
+
const registry = (0, deployedContractsConnector_1.connectToLatestRegistry)(provider, registryProxyAddress);
|
|
29
|
+
return await registry.chipsIntentsVerifier();
|
|
30
|
+
}
|
|
31
|
+
async function readLiquidityIntentsVerifierAddress(provider, registryProxyAddress) {
|
|
32
|
+
const registry = (0, deployedContractsConnector_1.connectToLatestRegistry)(provider, registryProxyAddress);
|
|
33
|
+
return await registry.liquidityIntentsVerifier();
|
|
34
|
+
}
|
|
35
|
+
async function readTradeIntentsVerifierAddress(provider, registryProxyAddress) {
|
|
36
|
+
const registry = (0, deployedContractsConnector_1.connectToLatestRegistry)(provider, registryProxyAddress);
|
|
37
|
+
return await registry.tradeIntentsVerifier();
|
|
38
|
+
}
|
|
@@ -43,6 +43,7 @@ exports.PYTH_PAIRS_PRICE_FEED_IDS = {
|
|
|
43
43
|
[pairIds_1.PAIR_CONFIGS_IDS.FTM_USD]: "0xf490b178d0c85683b7a0f2388b40af2e6f7c90cbe0f96b31f315f08d0e5a2d6d",
|
|
44
44
|
[pairIds_1.PAIR_CONFIGS_IDS.SOL_USD]: "0xef0d8b6fda2ceba41da15d4095d1da392a0d2f8ed0c6c7bc0f4cfac8c280b56d",
|
|
45
45
|
[pairIds_1.PAIR_CONFIGS_IDS.S_USD]: "0xf490b178d0c85683b7a0f2388b40af2e6f7c90cbe0f96b31f315f08d0e5a2d6d",
|
|
46
|
+
[pairIds_1.PAIR_CONFIGS_IDS.FLR_USD]: "0x035aa8d0a2d74e19438f2c1440edff9f3b95f915ca65f681a25ed0bad3dc228d",
|
|
46
47
|
[pairIds_1.PAIR_CONFIGS_IDS.EUR_USD]: "0xa995d00bb36a63cef7fd2c287dc105fc8f3d93779f062f09551b0af3e81ec30b",
|
|
47
48
|
[pairIds_1.PAIR_CONFIGS_IDS.GBP_USD]: "0x84c2dde9633d93d1bcad84e7dc41c9d56578b7ec52fabedc1f335d673df0a7c1",
|
|
48
49
|
[pairIds_1.PAIR_CONFIGS_IDS.AUD_USD]: "0x67a6f93030420c1c9e3fe37c1ab6b77966af82f995944a9fefce357a22854a80",
|
|
@@ -58,6 +59,4 @@ exports.PYTH_PAIRS_PRICE_FEED_IDS = {
|
|
|
58
59
|
[pairIds_1.PAIR_CONFIGS_IDS.NZD_USD_CAT]: "",
|
|
59
60
|
[pairIds_1.PAIR_CONFIGS_IDS.USD_JPY_CAT]: "",
|
|
60
61
|
[pairIds_1.PAIR_CONFIGS_IDS.USD_CHF_CAT]: "",
|
|
61
|
-
// Pairs Unsupported by pyth
|
|
62
|
-
[pairIds_1.PAIR_CONFIGS_IDS.FLR_USD]: "",
|
|
63
62
|
};
|