lynx-client 0.0.1-beta.9 → 0.0.2
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 +392 -3
- package/dist/cjs/index.js +8 -0
- 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 +15 -0
- package/dist/cjs/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.js +42 -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 +64 -0
- package/dist/cjs/lib/contractsIntegration/TradersPortalService/index.js +19 -0
- package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.js +61 -0
- package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +147 -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 +158 -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/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/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/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +1 -1
- package/dist/cjs/lib/utils/ethersTypes.js +29 -6
- package/dist/esm/index.d.ts +7 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +8 -0
- 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 +20 -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 +42 -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 +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 +76 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.js +61 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts +16 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +147 -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 +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/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/TradingFloorLens.d.ts +1 -3
- package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts.map +1 -1
- 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/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 +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +1 -1
- 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/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 +7 -0
- package/dist/types/index.d.ts.map +1 -1
- 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 +20 -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 +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 +76 -0
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts +16 -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 +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/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/TradingFloorLens.d.ts +1 -3
- package/dist/types/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts.map +1 -1
- 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/LexLens__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +1 -1
- 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
|
};
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrderBookProxy__factory = void 0;
|
|
4
|
+
/* Autogenerated file. Do not edit manually. */
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [
|
|
11
|
+
{
|
|
12
|
+
internalType: "address",
|
|
13
|
+
name: "_registry",
|
|
14
|
+
type: "address",
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
stateMutability: "nonpayable",
|
|
18
|
+
type: "constructor",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
anonymous: false,
|
|
22
|
+
inputs: [
|
|
23
|
+
{
|
|
24
|
+
indexed: false,
|
|
25
|
+
internalType: "address",
|
|
26
|
+
name: "oldAdmin",
|
|
27
|
+
type: "address",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
indexed: false,
|
|
31
|
+
internalType: "address",
|
|
32
|
+
name: "newAdmin",
|
|
33
|
+
type: "address",
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
name: "NewAdmin",
|
|
37
|
+
type: "event",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
anonymous: false,
|
|
41
|
+
inputs: [
|
|
42
|
+
{
|
|
43
|
+
indexed: false,
|
|
44
|
+
internalType: "address",
|
|
45
|
+
name: "oldImplementation",
|
|
46
|
+
type: "address",
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
indexed: false,
|
|
50
|
+
internalType: "address",
|
|
51
|
+
name: "newImplementation",
|
|
52
|
+
type: "address",
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
name: "NewImplementation",
|
|
56
|
+
type: "event",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
anonymous: false,
|
|
60
|
+
inputs: [
|
|
61
|
+
{
|
|
62
|
+
indexed: false,
|
|
63
|
+
internalType: "address",
|
|
64
|
+
name: "oldPendingAdmin",
|
|
65
|
+
type: "address",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
indexed: false,
|
|
69
|
+
internalType: "address",
|
|
70
|
+
name: "newPendingAdmin",
|
|
71
|
+
type: "address",
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
name: "NewPendingAdmin",
|
|
75
|
+
type: "event",
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
anonymous: false,
|
|
79
|
+
inputs: [
|
|
80
|
+
{
|
|
81
|
+
indexed: false,
|
|
82
|
+
internalType: "address",
|
|
83
|
+
name: "oldPendingImplementation",
|
|
84
|
+
type: "address",
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
indexed: false,
|
|
88
|
+
internalType: "address",
|
|
89
|
+
name: "newPendingImplementation",
|
|
90
|
+
type: "address",
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
name: "NewPendingImplementation",
|
|
94
|
+
type: "event",
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
stateMutability: "payable",
|
|
98
|
+
type: "fallback",
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
inputs: [],
|
|
102
|
+
name: "CONTRACT_NAME_HASH",
|
|
103
|
+
outputs: [
|
|
104
|
+
{
|
|
105
|
+
internalType: "bytes32",
|
|
106
|
+
name: "",
|
|
107
|
+
type: "bytes32",
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
stateMutability: "view",
|
|
111
|
+
type: "function",
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
inputs: [],
|
|
115
|
+
name: "_acceptAdmin",
|
|
116
|
+
outputs: [],
|
|
117
|
+
stateMutability: "nonpayable",
|
|
118
|
+
type: "function",
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
inputs: [],
|
|
122
|
+
name: "_acceptImplementation",
|
|
123
|
+
outputs: [
|
|
124
|
+
{
|
|
125
|
+
internalType: "uint256",
|
|
126
|
+
name: "",
|
|
127
|
+
type: "uint256",
|
|
128
|
+
},
|
|
129
|
+
],
|
|
130
|
+
stateMutability: "nonpayable",
|
|
131
|
+
type: "function",
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
inputs: [
|
|
135
|
+
{
|
|
136
|
+
internalType: "address",
|
|
137
|
+
name: "newPendingAdmin",
|
|
138
|
+
type: "address",
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
name: "_setPendingAdmin",
|
|
142
|
+
outputs: [],
|
|
143
|
+
stateMutability: "nonpayable",
|
|
144
|
+
type: "function",
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
inputs: [
|
|
148
|
+
{
|
|
149
|
+
internalType: "address",
|
|
150
|
+
name: "newPendingImplementation",
|
|
151
|
+
type: "address",
|
|
152
|
+
},
|
|
153
|
+
],
|
|
154
|
+
name: "_setPendingImplementation",
|
|
155
|
+
outputs: [],
|
|
156
|
+
stateMutability: "nonpayable",
|
|
157
|
+
type: "function",
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
inputs: [],
|
|
161
|
+
name: "admin",
|
|
162
|
+
outputs: [
|
|
163
|
+
{
|
|
164
|
+
internalType: "address",
|
|
165
|
+
name: "",
|
|
166
|
+
type: "address",
|
|
167
|
+
},
|
|
168
|
+
],
|
|
169
|
+
stateMutability: "view",
|
|
170
|
+
type: "function",
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
inputs: [],
|
|
174
|
+
name: "implementation",
|
|
175
|
+
outputs: [
|
|
176
|
+
{
|
|
177
|
+
internalType: "address",
|
|
178
|
+
name: "",
|
|
179
|
+
type: "address",
|
|
180
|
+
},
|
|
181
|
+
],
|
|
182
|
+
stateMutability: "view",
|
|
183
|
+
type: "function",
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
inputs: [],
|
|
187
|
+
name: "pendingAdmin",
|
|
188
|
+
outputs: [
|
|
189
|
+
{
|
|
190
|
+
internalType: "address",
|
|
191
|
+
name: "",
|
|
192
|
+
type: "address",
|
|
193
|
+
},
|
|
194
|
+
],
|
|
195
|
+
stateMutability: "view",
|
|
196
|
+
type: "function",
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
inputs: [],
|
|
200
|
+
name: "pendingImplementation",
|
|
201
|
+
outputs: [
|
|
202
|
+
{
|
|
203
|
+
internalType: "address",
|
|
204
|
+
name: "",
|
|
205
|
+
type: "address",
|
|
206
|
+
},
|
|
207
|
+
],
|
|
208
|
+
stateMutability: "view",
|
|
209
|
+
type: "function",
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
inputs: [],
|
|
213
|
+
name: "registry",
|
|
214
|
+
outputs: [
|
|
215
|
+
{
|
|
216
|
+
internalType: "address",
|
|
217
|
+
name: "",
|
|
218
|
+
type: "address",
|
|
219
|
+
},
|
|
220
|
+
],
|
|
221
|
+
stateMutability: "view",
|
|
222
|
+
type: "function",
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
stateMutability: "payable",
|
|
226
|
+
type: "receive",
|
|
227
|
+
},
|
|
228
|
+
];
|
|
229
|
+
const _bytecode = "0x60a060405234801561001057600080fd5b5060405161092738038061092783398101604081905261002f916100f7565b60408051808201825260098152684f72646572426f6f6b60b81b602080830191909152600080546001600160a01b03199081163391821617811782558451918252918101829052849382917ff9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc910160405180910390a150600480546001600160a01b0319166001600160a01b0385161790556040516100d2908390602001610127565b60408051601f1981840301815291905280516020909101206080525061015692505050565b60006020828403121561010957600080fd5b81516001600160a01b038116811461012057600080fd5b9392505050565b6000825160005b81811015610148576020818601810151858301520161012e565b506000920191825250919050565b6080516107af610178600039600081816101a8015261068b01526107af6000f3fe6080604052600436106100955760003560e01c8063b71d1a0c11610059578063b71d1a0c146101f8578063c1e8033414610218578063e992a0411461022d578063e9c714f21461024d578063f851a440146102625761009c565b80632678224714610119578063396f7b23146101565780635c60da1b1461017657806368c63188146101965780637b103999146101d85761009c565b3661009c57005b6002546040516000916001600160a01b0316906100bc9083903690610717565b600060405180830381855af49150503d80600081146100f7576040519150601f19603f3d011682016040523d82523d6000602084013e6100fc565b606091505b505090506040513d6000823e818015610113573d82f35b3d82fd5b005b34801561012557600080fd5b50600154610139906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561016257600080fd5b50600354610139906001600160a01b031681565b34801561018257600080fd5b50600254610139906001600160a01b031681565b3480156101a257600080fd5b506101ca7f000000000000000000000000000000000000000000000000000000000000000081565b60405190815260200161014d565b3480156101e457600080fd5b50600454610139906001600160a01b031681565b34801561020457600080fd5b50610117610213366004610727565b610282565b34801561022457600080fd5b506101ca61032f565b34801561023957600080fd5b50610117610248366004610727565b61046c565b34801561025957600080fd5b5061011761055a565b34801561026e57600080fd5b50600054610139906001600160a01b031681565b6000546001600160a01b031633146102cd5760405162461bcd60e51b81526020600482015260096024820152682737ba1020b236b4b760b91b60448201526064015b60405180910390fd5b600180546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a991015b60405180910390a15050565b6003546000906001600160a01b03163314801561035657506003546001600160a01b031615155b6103b25760405162461bcd60e51b815260206004820152602760248201527f4e6f7420746865204558495354494e472070656e64696e6720696d706c656d65604482015266373a30ba34b7b760c91b60648201526084016102c4565b60028054600380546001600160a01b038082166001600160a01b031980861682179096559490911690915560408051919092168082526020820184905292917fd604de94d45953f9138079ec1b82d533cb2160c906d1076d1f7ed54befbca97a910160405180910390a1600354604080516001600160a01b03808516825290921660208301527fe945ccee5d701fc83f9b8aa8ca94ea4219ec1fcbd4f4cab4f0ea57c5c3e1d815910160405180910390a160009250505090565b6000546001600160a01b031633146104b25760405162461bcd60e51b81526020600482015260096024820152683737ba1030b236b4b760b91b60448201526064016102c4565b6104bb81610678565b6105005760405162461bcd60e51b815260206004820152601660248201527524a72b20a624a22fa4a6a82622a6a2a72a20aa24a7a760511b60448201526064016102c4565b600380546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527fe945ccee5d701fc83f9b8aa8ca94ea4219ec1fcbd4f4cab4f0ea57c5c3e1d8159101610323565b6001546001600160a01b03163314801561057e57506001546001600160a01b031615155b6105ca5760405162461bcd60e51b815260206004820152601e60248201527f4e6f7420746865204558495354494e472070656e64696e672061646d696e000060448201526064016102c4565b60008054600180546001600160a01b038082166001600160a01b031980861682179096559490911690915560408051919092168082526020820184905292917ff9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc910160405180910390a1600154604080516001600160a01b03808516825290921660208301527fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a99101610323565b60048054604051631e58694360e01b81527f0000000000000000000000000000000000000000000000000000000000000000928101929092526001600160a01b038381166024840152600092911690631e58694390604401602060405180830381865afa1580156106ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107119190610757565b92915050565b8183823760009101908152919050565b60006020828403121561073957600080fd5b81356001600160a01b038116811461075057600080fd5b9392505050565b60006020828403121561076957600080fd5b8151801515811461075057600080fdfea2646970667358221220868bde3db0d344ea6df802526acbefcf09679035b0003bbcd7227e8ed295c26a64736f6c63430008180033";
|
|
230
|
+
const isSuperArgs = (xs) => xs.length > 1;
|
|
231
|
+
class OrderBookProxy__factory extends ethers_1.ContractFactory {
|
|
232
|
+
constructor(...args) {
|
|
233
|
+
if (isSuperArgs(args)) {
|
|
234
|
+
super(...args);
|
|
235
|
+
}
|
|
236
|
+
else {
|
|
237
|
+
super(_abi, _bytecode, args[0]);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
getDeployTransaction(_registry, overrides) {
|
|
241
|
+
return super.getDeployTransaction(_registry, overrides || {});
|
|
242
|
+
}
|
|
243
|
+
deploy(_registry, overrides) {
|
|
244
|
+
return super.deploy(_registry, overrides || {});
|
|
245
|
+
}
|
|
246
|
+
connect(runner) {
|
|
247
|
+
return super.connect(runner);
|
|
248
|
+
}
|
|
249
|
+
static createInterface() {
|
|
250
|
+
return new ethers_1.Interface(_abi);
|
|
251
|
+
}
|
|
252
|
+
static connect(address, runner) {
|
|
253
|
+
return new ethers_1.Contract(address, _abi, runner);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
exports.OrderBookProxy__factory = OrderBookProxy__factory;
|
|
257
|
+
OrderBookProxy__factory.bytecode = _bytecode;
|
|
258
|
+
OrderBookProxy__factory.abi = _abi;
|