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
package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js
ADDED
|
@@ -0,0 +1,1991 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TradingFloorV1__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: "target",
|
|
14
|
+
type: "address",
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
name: "AddressEmptyCode",
|
|
18
|
+
type: "error",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
inputs: [
|
|
22
|
+
{
|
|
23
|
+
internalType: "address",
|
|
24
|
+
name: "account",
|
|
25
|
+
type: "address",
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
name: "AddressInsufficientBalance",
|
|
29
|
+
type: "error",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
inputs: [
|
|
33
|
+
{
|
|
34
|
+
internalType: "enum LexErrors.CapType",
|
|
35
|
+
name: "",
|
|
36
|
+
type: "uint8",
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
internalType: "uint256",
|
|
40
|
+
name: "value",
|
|
41
|
+
type: "uint256",
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
name: "CapError",
|
|
45
|
+
type: "error",
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
inputs: [],
|
|
49
|
+
name: "FailedInnerCall",
|
|
50
|
+
type: "error",
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
inputs: [
|
|
54
|
+
{
|
|
55
|
+
internalType: "address",
|
|
56
|
+
name: "token",
|
|
57
|
+
type: "address",
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
name: "SafeERC20FailedOperation",
|
|
61
|
+
type: "error",
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
anonymous: false,
|
|
65
|
+
inputs: [
|
|
66
|
+
{
|
|
67
|
+
indexed: true,
|
|
68
|
+
internalType: "address",
|
|
69
|
+
name: "token",
|
|
70
|
+
type: "address",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
indexed: true,
|
|
74
|
+
internalType: "enum TradingEnumsV1.FeeType",
|
|
75
|
+
name: "feeType",
|
|
76
|
+
type: "uint8",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
indexed: true,
|
|
80
|
+
internalType: "address",
|
|
81
|
+
name: "receiver",
|
|
82
|
+
type: "address",
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
indexed: false,
|
|
86
|
+
internalType: "uint256",
|
|
87
|
+
name: "amount",
|
|
88
|
+
type: "uint256",
|
|
89
|
+
},
|
|
90
|
+
],
|
|
91
|
+
name: "FeeCollected",
|
|
92
|
+
type: "event",
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
anonymous: false,
|
|
96
|
+
inputs: [
|
|
97
|
+
{
|
|
98
|
+
indexed: true,
|
|
99
|
+
internalType: "bytes32",
|
|
100
|
+
name: "positionId",
|
|
101
|
+
type: "bytes32",
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
indexed: true,
|
|
105
|
+
internalType: "address",
|
|
106
|
+
name: "token",
|
|
107
|
+
type: "address",
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
indexed: true,
|
|
111
|
+
internalType: "enum TradingEnumsV1.FeeType",
|
|
112
|
+
name: "feeType",
|
|
113
|
+
type: "uint8",
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
indexed: false,
|
|
117
|
+
internalType: "uint256",
|
|
118
|
+
name: "amount",
|
|
119
|
+
type: "uint256",
|
|
120
|
+
},
|
|
121
|
+
],
|
|
122
|
+
name: "FeeRegistered",
|
|
123
|
+
type: "event",
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
anonymous: false,
|
|
127
|
+
inputs: [
|
|
128
|
+
{
|
|
129
|
+
indexed: true,
|
|
130
|
+
internalType: "string",
|
|
131
|
+
name: "name",
|
|
132
|
+
type: "string",
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
indexed: false,
|
|
136
|
+
internalType: "uint256",
|
|
137
|
+
name: "value",
|
|
138
|
+
type: "uint256",
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
name: "NumberUpdated",
|
|
142
|
+
type: "event",
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
anonymous: false,
|
|
146
|
+
inputs: [
|
|
147
|
+
{
|
|
148
|
+
indexed: true,
|
|
149
|
+
internalType: "bytes32",
|
|
150
|
+
name: "positionId",
|
|
151
|
+
type: "bytes32",
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
indexed: true,
|
|
155
|
+
internalType: "uint16",
|
|
156
|
+
name: "pairId",
|
|
157
|
+
type: "uint16",
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
indexed: false,
|
|
161
|
+
internalType: "bool",
|
|
162
|
+
name: "buy",
|
|
163
|
+
type: "bool",
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
indexed: true,
|
|
167
|
+
internalType: "enum TradingEnumsV1.PositionField",
|
|
168
|
+
name: "updatedField",
|
|
169
|
+
type: "uint8",
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
indexed: false,
|
|
173
|
+
internalType: "uint64",
|
|
174
|
+
name: "fieldValue",
|
|
175
|
+
type: "uint64",
|
|
176
|
+
},
|
|
177
|
+
],
|
|
178
|
+
name: "OpenedPositionUpdated",
|
|
179
|
+
type: "event",
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
anonymous: false,
|
|
183
|
+
inputs: [
|
|
184
|
+
{
|
|
185
|
+
indexed: true,
|
|
186
|
+
internalType: "uint256",
|
|
187
|
+
name: "pairId",
|
|
188
|
+
type: "uint256",
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
indexed: true,
|
|
192
|
+
internalType: "bool",
|
|
193
|
+
name: "isPaused",
|
|
194
|
+
type: "bool",
|
|
195
|
+
},
|
|
196
|
+
],
|
|
197
|
+
name: "PairPausedChange",
|
|
198
|
+
type: "event",
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
anonymous: false,
|
|
202
|
+
inputs: [
|
|
203
|
+
{
|
|
204
|
+
indexed: true,
|
|
205
|
+
internalType: "bytes32",
|
|
206
|
+
name: "positionId",
|
|
207
|
+
type: "bytes32",
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
indexed: true,
|
|
211
|
+
internalType: "address",
|
|
212
|
+
name: "source",
|
|
213
|
+
type: "address",
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
indexed: false,
|
|
217
|
+
internalType: "uint256",
|
|
218
|
+
name: "fee",
|
|
219
|
+
type: "uint256",
|
|
220
|
+
},
|
|
221
|
+
],
|
|
222
|
+
name: "PendingPositionCancelled",
|
|
223
|
+
type: "event",
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
anonymous: false,
|
|
227
|
+
inputs: [
|
|
228
|
+
{
|
|
229
|
+
indexed: true,
|
|
230
|
+
internalType: "bytes32",
|
|
231
|
+
name: "positionId",
|
|
232
|
+
type: "bytes32",
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
indexed: false,
|
|
236
|
+
internalType: "enum TradingEnumsV1.PositionPhase",
|
|
237
|
+
name: "phase",
|
|
238
|
+
type: "uint8",
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
components: [
|
|
242
|
+
{
|
|
243
|
+
internalType: "address",
|
|
244
|
+
name: "trader",
|
|
245
|
+
type: "address",
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
internalType: "uint16",
|
|
249
|
+
name: "pairId",
|
|
250
|
+
type: "uint16",
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
internalType: "address",
|
|
254
|
+
name: "settlementAsset",
|
|
255
|
+
type: "address",
|
|
256
|
+
},
|
|
257
|
+
],
|
|
258
|
+
indexed: false,
|
|
259
|
+
internalType: "struct TradingFloorStructsV1.PositionRequestIdentifiers",
|
|
260
|
+
name: "requestIdentifiers",
|
|
261
|
+
type: "tuple",
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
components: [
|
|
265
|
+
{
|
|
266
|
+
internalType: "bool",
|
|
267
|
+
name: "long",
|
|
268
|
+
type: "bool",
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
internalType: "uint256",
|
|
272
|
+
name: "collateral",
|
|
273
|
+
type: "uint256",
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
internalType: "uint32",
|
|
277
|
+
name: "leverage",
|
|
278
|
+
type: "uint32",
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
internalType: "uint64",
|
|
282
|
+
name: "minPrice",
|
|
283
|
+
type: "uint64",
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
internalType: "uint64",
|
|
287
|
+
name: "maxPrice",
|
|
288
|
+
type: "uint64",
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
internalType: "uint64",
|
|
292
|
+
name: "tp",
|
|
293
|
+
type: "uint64",
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
internalType: "uint64",
|
|
297
|
+
name: "sl",
|
|
298
|
+
type: "uint64",
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
internalType: "uint64",
|
|
302
|
+
name: "tpByFraction",
|
|
303
|
+
type: "uint64",
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
internalType: "uint64",
|
|
307
|
+
name: "slByFraction",
|
|
308
|
+
type: "uint64",
|
|
309
|
+
},
|
|
310
|
+
],
|
|
311
|
+
indexed: false,
|
|
312
|
+
internalType: "struct TradingFloorStructsV1.PositionRequestParams",
|
|
313
|
+
name: "requestParams",
|
|
314
|
+
type: "tuple",
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
indexed: false,
|
|
318
|
+
internalType: "uint32",
|
|
319
|
+
name: "_spreadReductionF",
|
|
320
|
+
type: "uint32",
|
|
321
|
+
},
|
|
322
|
+
],
|
|
323
|
+
name: "PendingPositionStored",
|
|
324
|
+
type: "event",
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
anonymous: false,
|
|
328
|
+
inputs: [
|
|
329
|
+
{
|
|
330
|
+
indexed: true,
|
|
331
|
+
internalType: "bytes32",
|
|
332
|
+
name: "positionId",
|
|
333
|
+
type: "bytes32",
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
indexed: false,
|
|
337
|
+
internalType: "uint64",
|
|
338
|
+
name: "tp",
|
|
339
|
+
type: "uint64",
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
indexed: false,
|
|
343
|
+
internalType: "uint64",
|
|
344
|
+
name: "sl",
|
|
345
|
+
type: "uint64",
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
indexed: false,
|
|
349
|
+
internalType: "uint64",
|
|
350
|
+
name: "minPrice",
|
|
351
|
+
type: "uint64",
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
indexed: false,
|
|
355
|
+
internalType: "uint64",
|
|
356
|
+
name: "maxPrice",
|
|
357
|
+
type: "uint64",
|
|
358
|
+
},
|
|
359
|
+
],
|
|
360
|
+
name: "PendingPositionUpdated",
|
|
361
|
+
type: "event",
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
anonymous: false,
|
|
365
|
+
inputs: [
|
|
366
|
+
{
|
|
367
|
+
indexed: true,
|
|
368
|
+
internalType: "bytes32",
|
|
369
|
+
name: "positionId",
|
|
370
|
+
type: "bytes32",
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
indexed: true,
|
|
374
|
+
internalType: "enum TradingEnumsV1.LimitTrigger",
|
|
375
|
+
name: "limitTrigger",
|
|
376
|
+
type: "uint8",
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
indexed: false,
|
|
380
|
+
internalType: "uint256",
|
|
381
|
+
name: "triggerPrice",
|
|
382
|
+
type: "uint256",
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
indexed: false,
|
|
386
|
+
internalType: "uint256",
|
|
387
|
+
name: "effectiveClosePrice",
|
|
388
|
+
type: "uint256",
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
indexed: false,
|
|
392
|
+
internalType: "uint256",
|
|
393
|
+
name: "tradeValue",
|
|
394
|
+
type: "uint256",
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
indexed: false,
|
|
398
|
+
internalType: "int256",
|
|
399
|
+
name: "profitPrecision",
|
|
400
|
+
type: "int256",
|
|
401
|
+
},
|
|
402
|
+
],
|
|
403
|
+
name: "PositionClosedLimit",
|
|
404
|
+
type: "event",
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
anonymous: false,
|
|
408
|
+
inputs: [
|
|
409
|
+
{
|
|
410
|
+
indexed: true,
|
|
411
|
+
internalType: "bytes32",
|
|
412
|
+
name: "positionId",
|
|
413
|
+
type: "bytes32",
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
indexed: false,
|
|
417
|
+
internalType: "uint256",
|
|
418
|
+
name: "triggerPrice",
|
|
419
|
+
type: "uint256",
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
indexed: false,
|
|
423
|
+
internalType: "uint256",
|
|
424
|
+
name: "tradeValue",
|
|
425
|
+
type: "uint256",
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
indexed: false,
|
|
429
|
+
internalType: "int256",
|
|
430
|
+
name: "profitPrecision",
|
|
431
|
+
type: "int256",
|
|
432
|
+
},
|
|
433
|
+
],
|
|
434
|
+
name: "PositionClosedMarket",
|
|
435
|
+
type: "event",
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
anonymous: false,
|
|
439
|
+
inputs: [
|
|
440
|
+
{
|
|
441
|
+
indexed: true,
|
|
442
|
+
internalType: "bytes32",
|
|
443
|
+
name: "positionId",
|
|
444
|
+
type: "bytes32",
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
components: [
|
|
448
|
+
{
|
|
449
|
+
internalType: "address",
|
|
450
|
+
name: "settlementAsset",
|
|
451
|
+
type: "address",
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
internalType: "uint16",
|
|
455
|
+
name: "pairId",
|
|
456
|
+
type: "uint16",
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
internalType: "uint32",
|
|
460
|
+
name: "index",
|
|
461
|
+
type: "uint32",
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
internalType: "address",
|
|
465
|
+
name: "trader",
|
|
466
|
+
type: "address",
|
|
467
|
+
},
|
|
468
|
+
],
|
|
469
|
+
indexed: false,
|
|
470
|
+
internalType: "struct TradingFloorStructsV1.PositionIdentifiers",
|
|
471
|
+
name: "identifiers",
|
|
472
|
+
type: "tuple",
|
|
473
|
+
},
|
|
474
|
+
],
|
|
475
|
+
name: "PositionIdentifiersStored",
|
|
476
|
+
type: "event",
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
anonymous: false,
|
|
480
|
+
inputs: [
|
|
481
|
+
{
|
|
482
|
+
indexed: true,
|
|
483
|
+
internalType: "bytes32",
|
|
484
|
+
name: "positionId",
|
|
485
|
+
type: "bytes32",
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
indexed: true,
|
|
489
|
+
internalType: "address",
|
|
490
|
+
name: "source",
|
|
491
|
+
type: "address",
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
indexed: false,
|
|
495
|
+
internalType: "uint256",
|
|
496
|
+
name: "fee",
|
|
497
|
+
type: "uint256",
|
|
498
|
+
},
|
|
499
|
+
],
|
|
500
|
+
name: "PositionMarketCloseCancelled",
|
|
501
|
+
type: "event",
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
anonymous: false,
|
|
505
|
+
inputs: [
|
|
506
|
+
{
|
|
507
|
+
indexed: true,
|
|
508
|
+
internalType: "bytes32",
|
|
509
|
+
name: "positionId",
|
|
510
|
+
type: "bytes32",
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
indexed: false,
|
|
514
|
+
internalType: "enum LexErrors.CapType",
|
|
515
|
+
name: "capType",
|
|
516
|
+
type: "uint8",
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
indexed: false,
|
|
520
|
+
internalType: "uint256",
|
|
521
|
+
name: "value",
|
|
522
|
+
type: "uint256",
|
|
523
|
+
},
|
|
524
|
+
],
|
|
525
|
+
name: "PositionOpenCancelledByCap",
|
|
526
|
+
type: "event",
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
anonymous: false,
|
|
530
|
+
inputs: [
|
|
531
|
+
{
|
|
532
|
+
indexed: true,
|
|
533
|
+
internalType: "bytes32",
|
|
534
|
+
name: "positionId",
|
|
535
|
+
type: "bytes32",
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
indexed: false,
|
|
539
|
+
internalType: "uint64",
|
|
540
|
+
name: "triggerPrice",
|
|
541
|
+
type: "uint64",
|
|
542
|
+
},
|
|
543
|
+
],
|
|
544
|
+
name: "PositionOpenCancelledByMarketPriceRange",
|
|
545
|
+
type: "event",
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
anonymous: false,
|
|
549
|
+
inputs: [
|
|
550
|
+
{
|
|
551
|
+
indexed: true,
|
|
552
|
+
internalType: "bytes32",
|
|
553
|
+
name: "positionId",
|
|
554
|
+
type: "bytes32",
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
indexed: false,
|
|
558
|
+
internalType: "uint64",
|
|
559
|
+
name: "openPrice",
|
|
560
|
+
type: "uint64",
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
indexed: false,
|
|
564
|
+
internalType: "uint64",
|
|
565
|
+
name: "tp",
|
|
566
|
+
type: "uint64",
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
indexed: false,
|
|
570
|
+
internalType: "uint64",
|
|
571
|
+
name: "sl",
|
|
572
|
+
type: "uint64",
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
indexed: false,
|
|
576
|
+
internalType: "uint256",
|
|
577
|
+
name: "totalOpenFee",
|
|
578
|
+
type: "uint256",
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
indexed: false,
|
|
582
|
+
internalType: "uint256",
|
|
583
|
+
name: "lexFeePart",
|
|
584
|
+
type: "uint256",
|
|
585
|
+
},
|
|
586
|
+
],
|
|
587
|
+
name: "PositionOpened",
|
|
588
|
+
type: "event",
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
anonymous: false,
|
|
592
|
+
inputs: [
|
|
593
|
+
{
|
|
594
|
+
indexed: true,
|
|
595
|
+
internalType: "bytes32",
|
|
596
|
+
name: "positionId",
|
|
597
|
+
type: "bytes32",
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
indexed: false,
|
|
601
|
+
internalType: "uint64",
|
|
602
|
+
name: "_minPrice",
|
|
603
|
+
type: "uint64",
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
indexed: false,
|
|
607
|
+
internalType: "uint64",
|
|
608
|
+
name: "_maxPrice",
|
|
609
|
+
type: "uint64",
|
|
610
|
+
},
|
|
611
|
+
],
|
|
612
|
+
name: "PositionSetForMarketClose",
|
|
613
|
+
type: "event",
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
anonymous: false,
|
|
617
|
+
inputs: [
|
|
618
|
+
{
|
|
619
|
+
indexed: true,
|
|
620
|
+
internalType: "address",
|
|
621
|
+
name: "asset",
|
|
622
|
+
type: "address",
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
indexed: true,
|
|
626
|
+
internalType: "address",
|
|
627
|
+
name: "lexPool",
|
|
628
|
+
type: "address",
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
indexed: true,
|
|
632
|
+
internalType: "address",
|
|
633
|
+
name: "poolAccountant",
|
|
634
|
+
type: "address",
|
|
635
|
+
},
|
|
636
|
+
],
|
|
637
|
+
name: "SettlementAssetAdded",
|
|
638
|
+
type: "event",
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
inputs: [],
|
|
642
|
+
name: "ACCURACY_IMPROVEMENT_SCALE",
|
|
643
|
+
outputs: [
|
|
644
|
+
{
|
|
645
|
+
internalType: "uint256",
|
|
646
|
+
name: "",
|
|
647
|
+
type: "uint256",
|
|
648
|
+
},
|
|
649
|
+
],
|
|
650
|
+
stateMutability: "view",
|
|
651
|
+
type: "function",
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
inputs: [],
|
|
655
|
+
name: "CONTRACT_NAME",
|
|
656
|
+
outputs: [
|
|
657
|
+
{
|
|
658
|
+
internalType: "string",
|
|
659
|
+
name: "",
|
|
660
|
+
type: "string",
|
|
661
|
+
},
|
|
662
|
+
],
|
|
663
|
+
stateMutability: "view",
|
|
664
|
+
type: "function",
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
inputs: [],
|
|
668
|
+
name: "CONTRACT_VERSION",
|
|
669
|
+
outputs: [
|
|
670
|
+
{
|
|
671
|
+
internalType: "string",
|
|
672
|
+
name: "",
|
|
673
|
+
type: "string",
|
|
674
|
+
},
|
|
675
|
+
],
|
|
676
|
+
stateMutability: "view",
|
|
677
|
+
type: "function",
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
inputs: [],
|
|
681
|
+
name: "FRACTION_SCALE",
|
|
682
|
+
outputs: [
|
|
683
|
+
{
|
|
684
|
+
internalType: "uint256",
|
|
685
|
+
name: "",
|
|
686
|
+
type: "uint256",
|
|
687
|
+
},
|
|
688
|
+
],
|
|
689
|
+
stateMutability: "view",
|
|
690
|
+
type: "function",
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
inputs: [],
|
|
694
|
+
name: "LEVERAGE_SCALE",
|
|
695
|
+
outputs: [
|
|
696
|
+
{
|
|
697
|
+
internalType: "uint256",
|
|
698
|
+
name: "",
|
|
699
|
+
type: "uint256",
|
|
700
|
+
},
|
|
701
|
+
],
|
|
702
|
+
stateMutability: "view",
|
|
703
|
+
type: "function",
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
inputs: [],
|
|
707
|
+
name: "MAX_FEE_FRACTION_FOR_CANCEL",
|
|
708
|
+
outputs: [
|
|
709
|
+
{
|
|
710
|
+
internalType: "uint256",
|
|
711
|
+
name: "",
|
|
712
|
+
type: "uint256",
|
|
713
|
+
},
|
|
714
|
+
],
|
|
715
|
+
stateMutability: "view",
|
|
716
|
+
type: "function",
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
inputs: [],
|
|
720
|
+
name: "PRECISION",
|
|
721
|
+
outputs: [
|
|
722
|
+
{
|
|
723
|
+
internalType: "uint256",
|
|
724
|
+
name: "",
|
|
725
|
+
type: "uint256",
|
|
726
|
+
},
|
|
727
|
+
],
|
|
728
|
+
stateMutability: "view",
|
|
729
|
+
type: "function",
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
inputs: [
|
|
733
|
+
{
|
|
734
|
+
internalType: "contract TradingFloorProxy",
|
|
735
|
+
name: "tradingFloorProxy",
|
|
736
|
+
type: "address",
|
|
737
|
+
},
|
|
738
|
+
],
|
|
739
|
+
name: "_become",
|
|
740
|
+
outputs: [],
|
|
741
|
+
stateMutability: "nonpayable",
|
|
742
|
+
type: "function",
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
inputs: [
|
|
746
|
+
{
|
|
747
|
+
internalType: "address",
|
|
748
|
+
name: "",
|
|
749
|
+
type: "address",
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
internalType: "uint256",
|
|
753
|
+
name: "",
|
|
754
|
+
type: "uint256",
|
|
755
|
+
},
|
|
756
|
+
],
|
|
757
|
+
name: "activePositionIdsByTrader",
|
|
758
|
+
outputs: [
|
|
759
|
+
{
|
|
760
|
+
internalType: "bytes32",
|
|
761
|
+
name: "",
|
|
762
|
+
type: "bytes32",
|
|
763
|
+
},
|
|
764
|
+
],
|
|
765
|
+
stateMutability: "view",
|
|
766
|
+
type: "function",
|
|
767
|
+
},
|
|
768
|
+
{
|
|
769
|
+
inputs: [],
|
|
770
|
+
name: "admin",
|
|
771
|
+
outputs: [
|
|
772
|
+
{
|
|
773
|
+
internalType: "address",
|
|
774
|
+
name: "",
|
|
775
|
+
type: "address",
|
|
776
|
+
},
|
|
777
|
+
],
|
|
778
|
+
stateMutability: "view",
|
|
779
|
+
type: "function",
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
inputs: [
|
|
783
|
+
{
|
|
784
|
+
internalType: "bytes32",
|
|
785
|
+
name: "_positionId",
|
|
786
|
+
type: "bytes32",
|
|
787
|
+
},
|
|
788
|
+
{
|
|
789
|
+
internalType: "enum TradingEnumsV1.CloseOrderType",
|
|
790
|
+
name: "_orderType",
|
|
791
|
+
type: "uint8",
|
|
792
|
+
},
|
|
793
|
+
{
|
|
794
|
+
internalType: "uint256",
|
|
795
|
+
name: "",
|
|
796
|
+
type: "uint256",
|
|
797
|
+
},
|
|
798
|
+
],
|
|
799
|
+
name: "cancelMarketCloseForPosition",
|
|
800
|
+
outputs: [],
|
|
801
|
+
stateMutability: "nonpayable",
|
|
802
|
+
type: "function",
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
inputs: [
|
|
806
|
+
{
|
|
807
|
+
internalType: "bytes32",
|
|
808
|
+
name: "_positionId",
|
|
809
|
+
type: "bytes32",
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
internalType: "enum TradingEnumsV1.OpenOrderType",
|
|
813
|
+
name: "_orderType",
|
|
814
|
+
type: "uint8",
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
internalType: "uint256",
|
|
818
|
+
name: "feeFraction",
|
|
819
|
+
type: "uint256",
|
|
820
|
+
},
|
|
821
|
+
],
|
|
822
|
+
name: "cancelPendingPosition",
|
|
823
|
+
outputs: [],
|
|
824
|
+
stateMutability: "nonpayable",
|
|
825
|
+
type: "function",
|
|
826
|
+
},
|
|
827
|
+
{
|
|
828
|
+
inputs: [
|
|
829
|
+
{
|
|
830
|
+
internalType: "bytes32",
|
|
831
|
+
name: "_positionId",
|
|
832
|
+
type: "bytes32",
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
internalType: "enum TradingEnumsV1.LimitTrigger",
|
|
836
|
+
name: "limitTrigger",
|
|
837
|
+
type: "uint8",
|
|
838
|
+
},
|
|
839
|
+
{
|
|
840
|
+
internalType: "uint64",
|
|
841
|
+
name: "",
|
|
842
|
+
type: "uint64",
|
|
843
|
+
},
|
|
844
|
+
{
|
|
845
|
+
internalType: "uint64",
|
|
846
|
+
name: "effectivePrice",
|
|
847
|
+
type: "uint64",
|
|
848
|
+
},
|
|
849
|
+
],
|
|
850
|
+
name: "closeExistingPosition_Limit",
|
|
851
|
+
outputs: [],
|
|
852
|
+
stateMutability: "nonpayable",
|
|
853
|
+
type: "function",
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
inputs: [
|
|
857
|
+
{
|
|
858
|
+
internalType: "bytes32",
|
|
859
|
+
name: "_positionId",
|
|
860
|
+
type: "bytes32",
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
internalType: "uint64",
|
|
864
|
+
name: "",
|
|
865
|
+
type: "uint64",
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
internalType: "uint64",
|
|
869
|
+
name: "effectivePrice",
|
|
870
|
+
type: "uint64",
|
|
871
|
+
},
|
|
872
|
+
],
|
|
873
|
+
name: "closeExistingPosition_Market",
|
|
874
|
+
outputs: [],
|
|
875
|
+
stateMutability: "nonpayable",
|
|
876
|
+
type: "function",
|
|
877
|
+
},
|
|
878
|
+
{
|
|
879
|
+
inputs: [
|
|
880
|
+
{
|
|
881
|
+
internalType: "address",
|
|
882
|
+
name: "_asset",
|
|
883
|
+
type: "address",
|
|
884
|
+
},
|
|
885
|
+
{
|
|
886
|
+
internalType: "enum TradingEnumsV1.FeeType",
|
|
887
|
+
name: "_feeType",
|
|
888
|
+
type: "uint8",
|
|
889
|
+
},
|
|
890
|
+
{
|
|
891
|
+
internalType: "address",
|
|
892
|
+
name: "_to",
|
|
893
|
+
type: "address",
|
|
894
|
+
},
|
|
895
|
+
],
|
|
896
|
+
name: "collectFee",
|
|
897
|
+
outputs: [],
|
|
898
|
+
stateMutability: "nonpayable",
|
|
899
|
+
type: "function",
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
inputs: [
|
|
903
|
+
{
|
|
904
|
+
internalType: "address",
|
|
905
|
+
name: "",
|
|
906
|
+
type: "address",
|
|
907
|
+
},
|
|
908
|
+
{
|
|
909
|
+
internalType: "uint256",
|
|
910
|
+
name: "",
|
|
911
|
+
type: "uint256",
|
|
912
|
+
},
|
|
913
|
+
{
|
|
914
|
+
internalType: "uint256",
|
|
915
|
+
name: "",
|
|
916
|
+
type: "uint256",
|
|
917
|
+
},
|
|
918
|
+
],
|
|
919
|
+
name: "deprecated_pairTraders",
|
|
920
|
+
outputs: [
|
|
921
|
+
{
|
|
922
|
+
internalType: "address",
|
|
923
|
+
name: "",
|
|
924
|
+
type: "address",
|
|
925
|
+
},
|
|
926
|
+
],
|
|
927
|
+
stateMutability: "view",
|
|
928
|
+
type: "function",
|
|
929
|
+
},
|
|
930
|
+
{
|
|
931
|
+
inputs: [
|
|
932
|
+
{
|
|
933
|
+
internalType: "address",
|
|
934
|
+
name: "_asset",
|
|
935
|
+
type: "address",
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
internalType: "uint256",
|
|
939
|
+
name: "_pairIndex",
|
|
940
|
+
type: "uint256",
|
|
941
|
+
},
|
|
942
|
+
],
|
|
943
|
+
name: "deprecated_pairTradersArray",
|
|
944
|
+
outputs: [
|
|
945
|
+
{
|
|
946
|
+
internalType: "address[]",
|
|
947
|
+
name: "",
|
|
948
|
+
type: "address[]",
|
|
949
|
+
},
|
|
950
|
+
],
|
|
951
|
+
stateMutability: "view",
|
|
952
|
+
type: "function",
|
|
953
|
+
},
|
|
954
|
+
{
|
|
955
|
+
inputs: [
|
|
956
|
+
{
|
|
957
|
+
internalType: "address",
|
|
958
|
+
name: "",
|
|
959
|
+
type: "address",
|
|
960
|
+
},
|
|
961
|
+
{
|
|
962
|
+
internalType: "address",
|
|
963
|
+
name: "",
|
|
964
|
+
type: "address",
|
|
965
|
+
},
|
|
966
|
+
{
|
|
967
|
+
internalType: "uint256",
|
|
968
|
+
name: "",
|
|
969
|
+
type: "uint256",
|
|
970
|
+
},
|
|
971
|
+
],
|
|
972
|
+
name: "deprecated_pairTradersInfo",
|
|
973
|
+
outputs: [
|
|
974
|
+
{
|
|
975
|
+
internalType: "uint32",
|
|
976
|
+
name: "deprecated_positionsCounter",
|
|
977
|
+
type: "uint32",
|
|
978
|
+
},
|
|
979
|
+
{
|
|
980
|
+
internalType: "uint32",
|
|
981
|
+
name: "positionInArray",
|
|
982
|
+
type: "uint32",
|
|
983
|
+
},
|
|
984
|
+
],
|
|
985
|
+
stateMutability: "view",
|
|
986
|
+
type: "function",
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
inputs: [
|
|
990
|
+
{
|
|
991
|
+
internalType: "address",
|
|
992
|
+
name: "",
|
|
993
|
+
type: "address",
|
|
994
|
+
},
|
|
995
|
+
{
|
|
996
|
+
internalType: "enum TradingEnumsV1.FeeType",
|
|
997
|
+
name: "",
|
|
998
|
+
type: "uint8",
|
|
999
|
+
},
|
|
1000
|
+
],
|
|
1001
|
+
name: "feesMap",
|
|
1002
|
+
outputs: [
|
|
1003
|
+
{
|
|
1004
|
+
internalType: "uint256",
|
|
1005
|
+
name: "",
|
|
1006
|
+
type: "uint256",
|
|
1007
|
+
},
|
|
1008
|
+
],
|
|
1009
|
+
stateMutability: "view",
|
|
1010
|
+
type: "function",
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
inputs: [
|
|
1014
|
+
{
|
|
1015
|
+
internalType: "address",
|
|
1016
|
+
name: "settlementAsset",
|
|
1017
|
+
type: "address",
|
|
1018
|
+
},
|
|
1019
|
+
{
|
|
1020
|
+
internalType: "address",
|
|
1021
|
+
name: "trader",
|
|
1022
|
+
type: "address",
|
|
1023
|
+
},
|
|
1024
|
+
{
|
|
1025
|
+
internalType: "uint16",
|
|
1026
|
+
name: "pairId",
|
|
1027
|
+
type: "uint16",
|
|
1028
|
+
},
|
|
1029
|
+
{
|
|
1030
|
+
internalType: "uint32",
|
|
1031
|
+
name: "index",
|
|
1032
|
+
type: "uint32",
|
|
1033
|
+
},
|
|
1034
|
+
],
|
|
1035
|
+
name: "generatePositionHashId",
|
|
1036
|
+
outputs: [
|
|
1037
|
+
{
|
|
1038
|
+
internalType: "bytes32",
|
|
1039
|
+
name: "hashId",
|
|
1040
|
+
type: "bytes32",
|
|
1041
|
+
},
|
|
1042
|
+
],
|
|
1043
|
+
stateMutability: "pure",
|
|
1044
|
+
type: "function",
|
|
1045
|
+
},
|
|
1046
|
+
{
|
|
1047
|
+
inputs: [
|
|
1048
|
+
{
|
|
1049
|
+
internalType: "address",
|
|
1050
|
+
name: "_trader",
|
|
1051
|
+
type: "address",
|
|
1052
|
+
},
|
|
1053
|
+
],
|
|
1054
|
+
name: "getActivePositionIdsForTrader",
|
|
1055
|
+
outputs: [
|
|
1056
|
+
{
|
|
1057
|
+
internalType: "bytes32[]",
|
|
1058
|
+
name: "",
|
|
1059
|
+
type: "bytes32[]",
|
|
1060
|
+
},
|
|
1061
|
+
],
|
|
1062
|
+
stateMutability: "view",
|
|
1063
|
+
type: "function",
|
|
1064
|
+
},
|
|
1065
|
+
{
|
|
1066
|
+
inputs: [
|
|
1067
|
+
{
|
|
1068
|
+
internalType: "address",
|
|
1069
|
+
name: "_trader",
|
|
1070
|
+
type: "address",
|
|
1071
|
+
},
|
|
1072
|
+
],
|
|
1073
|
+
name: "getActivePositionsAmountForTrader",
|
|
1074
|
+
outputs: [
|
|
1075
|
+
{
|
|
1076
|
+
internalType: "uint256",
|
|
1077
|
+
name: "",
|
|
1078
|
+
type: "uint256",
|
|
1079
|
+
},
|
|
1080
|
+
],
|
|
1081
|
+
stateMutability: "view",
|
|
1082
|
+
type: "function",
|
|
1083
|
+
},
|
|
1084
|
+
{
|
|
1085
|
+
inputs: [],
|
|
1086
|
+
name: "getContractName",
|
|
1087
|
+
outputs: [
|
|
1088
|
+
{
|
|
1089
|
+
internalType: "string",
|
|
1090
|
+
name: "",
|
|
1091
|
+
type: "string",
|
|
1092
|
+
},
|
|
1093
|
+
],
|
|
1094
|
+
stateMutability: "pure",
|
|
1095
|
+
type: "function",
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
inputs: [],
|
|
1099
|
+
name: "getContractVersion",
|
|
1100
|
+
outputs: [
|
|
1101
|
+
{
|
|
1102
|
+
internalType: "string",
|
|
1103
|
+
name: "",
|
|
1104
|
+
type: "string",
|
|
1105
|
+
},
|
|
1106
|
+
],
|
|
1107
|
+
stateMutability: "pure",
|
|
1108
|
+
type: "function",
|
|
1109
|
+
},
|
|
1110
|
+
{
|
|
1111
|
+
inputs: [
|
|
1112
|
+
{
|
|
1113
|
+
internalType: "address",
|
|
1114
|
+
name: "_trader",
|
|
1115
|
+
type: "address",
|
|
1116
|
+
},
|
|
1117
|
+
],
|
|
1118
|
+
name: "getNextPositionIndexForTrader",
|
|
1119
|
+
outputs: [
|
|
1120
|
+
{
|
|
1121
|
+
internalType: "uint32",
|
|
1122
|
+
name: "",
|
|
1123
|
+
type: "uint32",
|
|
1124
|
+
},
|
|
1125
|
+
],
|
|
1126
|
+
stateMutability: "view",
|
|
1127
|
+
type: "function",
|
|
1128
|
+
},
|
|
1129
|
+
{
|
|
1130
|
+
inputs: [
|
|
1131
|
+
{
|
|
1132
|
+
internalType: "bytes32",
|
|
1133
|
+
name: "_positionId",
|
|
1134
|
+
type: "bytes32",
|
|
1135
|
+
},
|
|
1136
|
+
],
|
|
1137
|
+
name: "getPositionPortalInfo",
|
|
1138
|
+
outputs: [
|
|
1139
|
+
{
|
|
1140
|
+
internalType: "enum TradingEnumsV1.PositionPhase",
|
|
1141
|
+
name: "positionPhase",
|
|
1142
|
+
type: "uint8",
|
|
1143
|
+
},
|
|
1144
|
+
{
|
|
1145
|
+
internalType: "uint64",
|
|
1146
|
+
name: "timestamp",
|
|
1147
|
+
type: "uint64",
|
|
1148
|
+
},
|
|
1149
|
+
{
|
|
1150
|
+
internalType: "address",
|
|
1151
|
+
name: "trader",
|
|
1152
|
+
type: "address",
|
|
1153
|
+
},
|
|
1154
|
+
],
|
|
1155
|
+
stateMutability: "view",
|
|
1156
|
+
type: "function",
|
|
1157
|
+
},
|
|
1158
|
+
{
|
|
1159
|
+
inputs: [
|
|
1160
|
+
{
|
|
1161
|
+
internalType: "bytes32",
|
|
1162
|
+
name: "_positionId",
|
|
1163
|
+
type: "bytes32",
|
|
1164
|
+
},
|
|
1165
|
+
],
|
|
1166
|
+
name: "getPositionRegistrationParams",
|
|
1167
|
+
outputs: [
|
|
1168
|
+
{
|
|
1169
|
+
components: [
|
|
1170
|
+
{
|
|
1171
|
+
internalType: "uint256",
|
|
1172
|
+
name: "collateral",
|
|
1173
|
+
type: "uint256",
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
internalType: "uint32",
|
|
1177
|
+
name: "leverage",
|
|
1178
|
+
type: "uint32",
|
|
1179
|
+
},
|
|
1180
|
+
{
|
|
1181
|
+
internalType: "bool",
|
|
1182
|
+
name: "long",
|
|
1183
|
+
type: "bool",
|
|
1184
|
+
},
|
|
1185
|
+
{
|
|
1186
|
+
internalType: "uint64",
|
|
1187
|
+
name: "openPrice",
|
|
1188
|
+
type: "uint64",
|
|
1189
|
+
},
|
|
1190
|
+
{
|
|
1191
|
+
internalType: "uint64",
|
|
1192
|
+
name: "tp",
|
|
1193
|
+
type: "uint64",
|
|
1194
|
+
},
|
|
1195
|
+
],
|
|
1196
|
+
internalType: "struct PoolAccountantStructs.PositionRegistrationParams",
|
|
1197
|
+
name: "registrationParams",
|
|
1198
|
+
type: "tuple",
|
|
1199
|
+
},
|
|
1200
|
+
],
|
|
1201
|
+
stateMutability: "view",
|
|
1202
|
+
type: "function",
|
|
1203
|
+
},
|
|
1204
|
+
{
|
|
1205
|
+
inputs: [
|
|
1206
|
+
{
|
|
1207
|
+
internalType: "bytes32",
|
|
1208
|
+
name: "_positionId",
|
|
1209
|
+
type: "bytes32",
|
|
1210
|
+
},
|
|
1211
|
+
],
|
|
1212
|
+
name: "getPositionTriggerInfo",
|
|
1213
|
+
outputs: [
|
|
1214
|
+
{
|
|
1215
|
+
internalType: "enum TradingEnumsV1.PositionPhase",
|
|
1216
|
+
name: "positionPhase",
|
|
1217
|
+
type: "uint8",
|
|
1218
|
+
},
|
|
1219
|
+
{
|
|
1220
|
+
internalType: "uint64",
|
|
1221
|
+
name: "timestamp",
|
|
1222
|
+
type: "uint64",
|
|
1223
|
+
},
|
|
1224
|
+
{
|
|
1225
|
+
internalType: "uint16",
|
|
1226
|
+
name: "pairId",
|
|
1227
|
+
type: "uint16",
|
|
1228
|
+
},
|
|
1229
|
+
{
|
|
1230
|
+
internalType: "bool",
|
|
1231
|
+
name: "long",
|
|
1232
|
+
type: "bool",
|
|
1233
|
+
},
|
|
1234
|
+
{
|
|
1235
|
+
internalType: "uint32",
|
|
1236
|
+
name: "spreadReductionF",
|
|
1237
|
+
type: "uint32",
|
|
1238
|
+
},
|
|
1239
|
+
],
|
|
1240
|
+
stateMutability: "view",
|
|
1241
|
+
type: "function",
|
|
1242
|
+
},
|
|
1243
|
+
{
|
|
1244
|
+
inputs: [],
|
|
1245
|
+
name: "implementation",
|
|
1246
|
+
outputs: [
|
|
1247
|
+
{
|
|
1248
|
+
internalType: "address",
|
|
1249
|
+
name: "",
|
|
1250
|
+
type: "address",
|
|
1251
|
+
},
|
|
1252
|
+
],
|
|
1253
|
+
stateMutability: "view",
|
|
1254
|
+
type: "function",
|
|
1255
|
+
},
|
|
1256
|
+
{
|
|
1257
|
+
inputs: [
|
|
1258
|
+
{
|
|
1259
|
+
internalType: "bytes32",
|
|
1260
|
+
name: "",
|
|
1261
|
+
type: "bytes32",
|
|
1262
|
+
},
|
|
1263
|
+
],
|
|
1264
|
+
name: "initialCollateralByPositionId",
|
|
1265
|
+
outputs: [
|
|
1266
|
+
{
|
|
1267
|
+
internalType: "uint256",
|
|
1268
|
+
name: "",
|
|
1269
|
+
type: "uint256",
|
|
1270
|
+
},
|
|
1271
|
+
],
|
|
1272
|
+
stateMutability: "view",
|
|
1273
|
+
type: "function",
|
|
1274
|
+
},
|
|
1275
|
+
{
|
|
1276
|
+
inputs: [
|
|
1277
|
+
{
|
|
1278
|
+
internalType: "address",
|
|
1279
|
+
name: "settlementAsset",
|
|
1280
|
+
type: "address",
|
|
1281
|
+
},
|
|
1282
|
+
],
|
|
1283
|
+
name: "isSettlementAssetSupported",
|
|
1284
|
+
outputs: [
|
|
1285
|
+
{
|
|
1286
|
+
internalType: "bool",
|
|
1287
|
+
name: "",
|
|
1288
|
+
type: "bool",
|
|
1289
|
+
},
|
|
1290
|
+
],
|
|
1291
|
+
stateMutability: "view",
|
|
1292
|
+
type: "function",
|
|
1293
|
+
},
|
|
1294
|
+
{
|
|
1295
|
+
inputs: [
|
|
1296
|
+
{
|
|
1297
|
+
internalType: "address",
|
|
1298
|
+
name: "",
|
|
1299
|
+
type: "address",
|
|
1300
|
+
},
|
|
1301
|
+
],
|
|
1302
|
+
name: "lexPoolForAsset",
|
|
1303
|
+
outputs: [
|
|
1304
|
+
{
|
|
1305
|
+
internalType: "address",
|
|
1306
|
+
name: "",
|
|
1307
|
+
type: "address",
|
|
1308
|
+
},
|
|
1309
|
+
],
|
|
1310
|
+
stateMutability: "view",
|
|
1311
|
+
type: "function",
|
|
1312
|
+
},
|
|
1313
|
+
{
|
|
1314
|
+
inputs: [],
|
|
1315
|
+
name: "maxSanityProfitF",
|
|
1316
|
+
outputs: [
|
|
1317
|
+
{
|
|
1318
|
+
internalType: "uint256",
|
|
1319
|
+
name: "",
|
|
1320
|
+
type: "uint256",
|
|
1321
|
+
},
|
|
1322
|
+
],
|
|
1323
|
+
stateMutability: "view",
|
|
1324
|
+
type: "function",
|
|
1325
|
+
},
|
|
1326
|
+
{
|
|
1327
|
+
inputs: [],
|
|
1328
|
+
name: "maxSlF",
|
|
1329
|
+
outputs: [
|
|
1330
|
+
{
|
|
1331
|
+
internalType: "uint256",
|
|
1332
|
+
name: "",
|
|
1333
|
+
type: "uint256",
|
|
1334
|
+
},
|
|
1335
|
+
],
|
|
1336
|
+
stateMutability: "view",
|
|
1337
|
+
type: "function",
|
|
1338
|
+
},
|
|
1339
|
+
{
|
|
1340
|
+
inputs: [],
|
|
1341
|
+
name: "maxTradesPerTrader",
|
|
1342
|
+
outputs: [
|
|
1343
|
+
{
|
|
1344
|
+
internalType: "uint256",
|
|
1345
|
+
name: "",
|
|
1346
|
+
type: "uint256",
|
|
1347
|
+
},
|
|
1348
|
+
],
|
|
1349
|
+
stateMutability: "view",
|
|
1350
|
+
type: "function",
|
|
1351
|
+
},
|
|
1352
|
+
{
|
|
1353
|
+
inputs: [
|
|
1354
|
+
{
|
|
1355
|
+
internalType: "bytes32",
|
|
1356
|
+
name: "_positionId",
|
|
1357
|
+
type: "bytes32",
|
|
1358
|
+
},
|
|
1359
|
+
{
|
|
1360
|
+
internalType: "uint64",
|
|
1361
|
+
name: "assetEffectivePrice",
|
|
1362
|
+
type: "uint64",
|
|
1363
|
+
},
|
|
1364
|
+
{
|
|
1365
|
+
internalType: "uint256",
|
|
1366
|
+
name: "feeForCancellation",
|
|
1367
|
+
type: "uint256",
|
|
1368
|
+
},
|
|
1369
|
+
],
|
|
1370
|
+
name: "openNewPosition_limit",
|
|
1371
|
+
outputs: [],
|
|
1372
|
+
stateMutability: "nonpayable",
|
|
1373
|
+
type: "function",
|
|
1374
|
+
},
|
|
1375
|
+
{
|
|
1376
|
+
inputs: [
|
|
1377
|
+
{
|
|
1378
|
+
internalType: "bytes32",
|
|
1379
|
+
name: "_positionId",
|
|
1380
|
+
type: "bytes32",
|
|
1381
|
+
},
|
|
1382
|
+
{
|
|
1383
|
+
internalType: "uint64",
|
|
1384
|
+
name: "assetEffectivePrice",
|
|
1385
|
+
type: "uint64",
|
|
1386
|
+
},
|
|
1387
|
+
{
|
|
1388
|
+
internalType: "uint256",
|
|
1389
|
+
name: "feeForCancellation",
|
|
1390
|
+
type: "uint256",
|
|
1391
|
+
},
|
|
1392
|
+
],
|
|
1393
|
+
name: "openNewPosition_market",
|
|
1394
|
+
outputs: [],
|
|
1395
|
+
stateMutability: "nonpayable",
|
|
1396
|
+
type: "function",
|
|
1397
|
+
},
|
|
1398
|
+
{
|
|
1399
|
+
inputs: [
|
|
1400
|
+
{
|
|
1401
|
+
internalType: "address",
|
|
1402
|
+
name: "",
|
|
1403
|
+
type: "address",
|
|
1404
|
+
},
|
|
1405
|
+
],
|
|
1406
|
+
name: "pairTradersLastUsedPositionIndex",
|
|
1407
|
+
outputs: [
|
|
1408
|
+
{
|
|
1409
|
+
internalType: "uint32",
|
|
1410
|
+
name: "",
|
|
1411
|
+
type: "uint32",
|
|
1412
|
+
},
|
|
1413
|
+
],
|
|
1414
|
+
stateMutability: "view",
|
|
1415
|
+
type: "function",
|
|
1416
|
+
},
|
|
1417
|
+
{
|
|
1418
|
+
inputs: [
|
|
1419
|
+
{
|
|
1420
|
+
internalType: "uint256",
|
|
1421
|
+
name: "",
|
|
1422
|
+
type: "uint256",
|
|
1423
|
+
},
|
|
1424
|
+
],
|
|
1425
|
+
name: "pausedPairs",
|
|
1426
|
+
outputs: [
|
|
1427
|
+
{
|
|
1428
|
+
internalType: "bool",
|
|
1429
|
+
name: "",
|
|
1430
|
+
type: "bool",
|
|
1431
|
+
},
|
|
1432
|
+
],
|
|
1433
|
+
stateMutability: "view",
|
|
1434
|
+
type: "function",
|
|
1435
|
+
},
|
|
1436
|
+
{
|
|
1437
|
+
inputs: [],
|
|
1438
|
+
name: "pendingAdmin",
|
|
1439
|
+
outputs: [
|
|
1440
|
+
{
|
|
1441
|
+
internalType: "address",
|
|
1442
|
+
name: "",
|
|
1443
|
+
type: "address",
|
|
1444
|
+
},
|
|
1445
|
+
],
|
|
1446
|
+
stateMutability: "view",
|
|
1447
|
+
type: "function",
|
|
1448
|
+
},
|
|
1449
|
+
{
|
|
1450
|
+
inputs: [],
|
|
1451
|
+
name: "pendingImplementation",
|
|
1452
|
+
outputs: [
|
|
1453
|
+
{
|
|
1454
|
+
internalType: "address",
|
|
1455
|
+
name: "",
|
|
1456
|
+
type: "address",
|
|
1457
|
+
},
|
|
1458
|
+
],
|
|
1459
|
+
stateMutability: "view",
|
|
1460
|
+
type: "function",
|
|
1461
|
+
},
|
|
1462
|
+
{
|
|
1463
|
+
inputs: [
|
|
1464
|
+
{
|
|
1465
|
+
internalType: "address",
|
|
1466
|
+
name: "",
|
|
1467
|
+
type: "address",
|
|
1468
|
+
},
|
|
1469
|
+
],
|
|
1470
|
+
name: "poolAccountantForAsset",
|
|
1471
|
+
outputs: [
|
|
1472
|
+
{
|
|
1473
|
+
internalType: "address",
|
|
1474
|
+
name: "",
|
|
1475
|
+
type: "address",
|
|
1476
|
+
},
|
|
1477
|
+
],
|
|
1478
|
+
stateMutability: "view",
|
|
1479
|
+
type: "function",
|
|
1480
|
+
},
|
|
1481
|
+
{
|
|
1482
|
+
inputs: [
|
|
1483
|
+
{
|
|
1484
|
+
internalType: "address",
|
|
1485
|
+
name: "",
|
|
1486
|
+
type: "address",
|
|
1487
|
+
},
|
|
1488
|
+
{
|
|
1489
|
+
internalType: "bytes32",
|
|
1490
|
+
name: "",
|
|
1491
|
+
type: "bytes32",
|
|
1492
|
+
},
|
|
1493
|
+
],
|
|
1494
|
+
name: "positionIdToActivePositionIndex",
|
|
1495
|
+
outputs: [
|
|
1496
|
+
{
|
|
1497
|
+
internalType: "uint256",
|
|
1498
|
+
name: "",
|
|
1499
|
+
type: "uint256",
|
|
1500
|
+
},
|
|
1501
|
+
],
|
|
1502
|
+
stateMutability: "view",
|
|
1503
|
+
type: "function",
|
|
1504
|
+
},
|
|
1505
|
+
{
|
|
1506
|
+
inputs: [
|
|
1507
|
+
{
|
|
1508
|
+
internalType: "bytes32",
|
|
1509
|
+
name: "",
|
|
1510
|
+
type: "bytes32",
|
|
1511
|
+
},
|
|
1512
|
+
],
|
|
1513
|
+
name: "positionIdentifiersById",
|
|
1514
|
+
outputs: [
|
|
1515
|
+
{
|
|
1516
|
+
internalType: "address",
|
|
1517
|
+
name: "settlementAsset",
|
|
1518
|
+
type: "address",
|
|
1519
|
+
},
|
|
1520
|
+
{
|
|
1521
|
+
internalType: "uint16",
|
|
1522
|
+
name: "pairId",
|
|
1523
|
+
type: "uint16",
|
|
1524
|
+
},
|
|
1525
|
+
{
|
|
1526
|
+
internalType: "uint32",
|
|
1527
|
+
name: "index",
|
|
1528
|
+
type: "uint32",
|
|
1529
|
+
},
|
|
1530
|
+
{
|
|
1531
|
+
internalType: "address",
|
|
1532
|
+
name: "trader",
|
|
1533
|
+
type: "address",
|
|
1534
|
+
},
|
|
1535
|
+
],
|
|
1536
|
+
stateMutability: "view",
|
|
1537
|
+
type: "function",
|
|
1538
|
+
},
|
|
1539
|
+
{
|
|
1540
|
+
inputs: [
|
|
1541
|
+
{
|
|
1542
|
+
internalType: "bytes32",
|
|
1543
|
+
name: "",
|
|
1544
|
+
type: "bytes32",
|
|
1545
|
+
},
|
|
1546
|
+
],
|
|
1547
|
+
name: "positionLimitsInfoById",
|
|
1548
|
+
outputs: [
|
|
1549
|
+
{
|
|
1550
|
+
internalType: "uint64",
|
|
1551
|
+
name: "tpLastUpdated",
|
|
1552
|
+
type: "uint64",
|
|
1553
|
+
},
|
|
1554
|
+
{
|
|
1555
|
+
internalType: "uint64",
|
|
1556
|
+
name: "slLastUpdated",
|
|
1557
|
+
type: "uint64",
|
|
1558
|
+
},
|
|
1559
|
+
{
|
|
1560
|
+
internalType: "uint64",
|
|
1561
|
+
name: "tp",
|
|
1562
|
+
type: "uint64",
|
|
1563
|
+
},
|
|
1564
|
+
{
|
|
1565
|
+
internalType: "uint64",
|
|
1566
|
+
name: "sl",
|
|
1567
|
+
type: "uint64",
|
|
1568
|
+
},
|
|
1569
|
+
],
|
|
1570
|
+
stateMutability: "view",
|
|
1571
|
+
type: "function",
|
|
1572
|
+
},
|
|
1573
|
+
{
|
|
1574
|
+
inputs: [
|
|
1575
|
+
{
|
|
1576
|
+
internalType: "bytes32",
|
|
1577
|
+
name: "",
|
|
1578
|
+
type: "bytes32",
|
|
1579
|
+
},
|
|
1580
|
+
],
|
|
1581
|
+
name: "positionsById",
|
|
1582
|
+
outputs: [
|
|
1583
|
+
{
|
|
1584
|
+
internalType: "uint256",
|
|
1585
|
+
name: "collateral",
|
|
1586
|
+
type: "uint256",
|
|
1587
|
+
},
|
|
1588
|
+
{
|
|
1589
|
+
internalType: "enum TradingEnumsV1.PositionPhase",
|
|
1590
|
+
name: "phase",
|
|
1591
|
+
type: "uint8",
|
|
1592
|
+
},
|
|
1593
|
+
{
|
|
1594
|
+
internalType: "uint64",
|
|
1595
|
+
name: "inPhaseSince",
|
|
1596
|
+
type: "uint64",
|
|
1597
|
+
},
|
|
1598
|
+
{
|
|
1599
|
+
internalType: "uint32",
|
|
1600
|
+
name: "leverage",
|
|
1601
|
+
type: "uint32",
|
|
1602
|
+
},
|
|
1603
|
+
{
|
|
1604
|
+
internalType: "bool",
|
|
1605
|
+
name: "long",
|
|
1606
|
+
type: "bool",
|
|
1607
|
+
},
|
|
1608
|
+
{
|
|
1609
|
+
internalType: "uint64",
|
|
1610
|
+
name: "openPrice",
|
|
1611
|
+
type: "uint64",
|
|
1612
|
+
},
|
|
1613
|
+
{
|
|
1614
|
+
internalType: "uint32",
|
|
1615
|
+
name: "spreadReductionF",
|
|
1616
|
+
type: "uint32",
|
|
1617
|
+
},
|
|
1618
|
+
],
|
|
1619
|
+
stateMutability: "view",
|
|
1620
|
+
type: "function",
|
|
1621
|
+
},
|
|
1622
|
+
{
|
|
1623
|
+
inputs: [],
|
|
1624
|
+
name: "registry",
|
|
1625
|
+
outputs: [
|
|
1626
|
+
{
|
|
1627
|
+
internalType: "address",
|
|
1628
|
+
name: "",
|
|
1629
|
+
type: "address",
|
|
1630
|
+
},
|
|
1631
|
+
],
|
|
1632
|
+
stateMutability: "view",
|
|
1633
|
+
type: "function",
|
|
1634
|
+
},
|
|
1635
|
+
{
|
|
1636
|
+
inputs: [
|
|
1637
|
+
{
|
|
1638
|
+
internalType: "bytes32",
|
|
1639
|
+
name: "_positionId",
|
|
1640
|
+
type: "bytes32",
|
|
1641
|
+
},
|
|
1642
|
+
{
|
|
1643
|
+
internalType: "uint64",
|
|
1644
|
+
name: "_minPrice",
|
|
1645
|
+
type: "uint64",
|
|
1646
|
+
},
|
|
1647
|
+
{
|
|
1648
|
+
internalType: "uint64",
|
|
1649
|
+
name: "_maxPrice",
|
|
1650
|
+
type: "uint64",
|
|
1651
|
+
},
|
|
1652
|
+
],
|
|
1653
|
+
name: "setOpenedPositionToMarketClose",
|
|
1654
|
+
outputs: [],
|
|
1655
|
+
stateMutability: "nonpayable",
|
|
1656
|
+
type: "function",
|
|
1657
|
+
},
|
|
1658
|
+
{
|
|
1659
|
+
inputs: [
|
|
1660
|
+
{
|
|
1661
|
+
internalType: "uint256",
|
|
1662
|
+
name: "_pairId",
|
|
1663
|
+
type: "uint256",
|
|
1664
|
+
},
|
|
1665
|
+
{
|
|
1666
|
+
internalType: "bool",
|
|
1667
|
+
name: "_isPaused",
|
|
1668
|
+
type: "bool",
|
|
1669
|
+
},
|
|
1670
|
+
],
|
|
1671
|
+
name: "setPairPaused",
|
|
1672
|
+
outputs: [],
|
|
1673
|
+
stateMutability: "nonpayable",
|
|
1674
|
+
type: "function",
|
|
1675
|
+
},
|
|
1676
|
+
{
|
|
1677
|
+
inputs: [
|
|
1678
|
+
{
|
|
1679
|
+
internalType: "enum TradingFloorStructsV1.AdminNumericParam",
|
|
1680
|
+
name: "numericParam",
|
|
1681
|
+
type: "uint8",
|
|
1682
|
+
},
|
|
1683
|
+
{
|
|
1684
|
+
internalType: "uint256",
|
|
1685
|
+
name: "value",
|
|
1686
|
+
type: "uint256",
|
|
1687
|
+
},
|
|
1688
|
+
],
|
|
1689
|
+
name: "setTradeParam",
|
|
1690
|
+
outputs: [],
|
|
1691
|
+
stateMutability: "nonpayable",
|
|
1692
|
+
type: "function",
|
|
1693
|
+
},
|
|
1694
|
+
{
|
|
1695
|
+
inputs: [
|
|
1696
|
+
{
|
|
1697
|
+
internalType: "enum TradingEnumsV1.OpenOrderType",
|
|
1698
|
+
name: "_orderType",
|
|
1699
|
+
type: "uint8",
|
|
1700
|
+
},
|
|
1701
|
+
{
|
|
1702
|
+
components: [
|
|
1703
|
+
{
|
|
1704
|
+
internalType: "address",
|
|
1705
|
+
name: "trader",
|
|
1706
|
+
type: "address",
|
|
1707
|
+
},
|
|
1708
|
+
{
|
|
1709
|
+
internalType: "uint16",
|
|
1710
|
+
name: "pairId",
|
|
1711
|
+
type: "uint16",
|
|
1712
|
+
},
|
|
1713
|
+
{
|
|
1714
|
+
internalType: "address",
|
|
1715
|
+
name: "settlementAsset",
|
|
1716
|
+
type: "address",
|
|
1717
|
+
},
|
|
1718
|
+
],
|
|
1719
|
+
internalType: "struct TradingFloorStructsV1.PositionRequestIdentifiers",
|
|
1720
|
+
name: "_requestIdentifiers",
|
|
1721
|
+
type: "tuple",
|
|
1722
|
+
},
|
|
1723
|
+
{
|
|
1724
|
+
components: [
|
|
1725
|
+
{
|
|
1726
|
+
internalType: "bool",
|
|
1727
|
+
name: "long",
|
|
1728
|
+
type: "bool",
|
|
1729
|
+
},
|
|
1730
|
+
{
|
|
1731
|
+
internalType: "uint256",
|
|
1732
|
+
name: "collateral",
|
|
1733
|
+
type: "uint256",
|
|
1734
|
+
},
|
|
1735
|
+
{
|
|
1736
|
+
internalType: "uint32",
|
|
1737
|
+
name: "leverage",
|
|
1738
|
+
type: "uint32",
|
|
1739
|
+
},
|
|
1740
|
+
{
|
|
1741
|
+
internalType: "uint64",
|
|
1742
|
+
name: "minPrice",
|
|
1743
|
+
type: "uint64",
|
|
1744
|
+
},
|
|
1745
|
+
{
|
|
1746
|
+
internalType: "uint64",
|
|
1747
|
+
name: "maxPrice",
|
|
1748
|
+
type: "uint64",
|
|
1749
|
+
},
|
|
1750
|
+
{
|
|
1751
|
+
internalType: "uint64",
|
|
1752
|
+
name: "tp",
|
|
1753
|
+
type: "uint64",
|
|
1754
|
+
},
|
|
1755
|
+
{
|
|
1756
|
+
internalType: "uint64",
|
|
1757
|
+
name: "sl",
|
|
1758
|
+
type: "uint64",
|
|
1759
|
+
},
|
|
1760
|
+
{
|
|
1761
|
+
internalType: "uint64",
|
|
1762
|
+
name: "tpByFraction",
|
|
1763
|
+
type: "uint64",
|
|
1764
|
+
},
|
|
1765
|
+
{
|
|
1766
|
+
internalType: "uint64",
|
|
1767
|
+
name: "slByFraction",
|
|
1768
|
+
type: "uint64",
|
|
1769
|
+
},
|
|
1770
|
+
],
|
|
1771
|
+
internalType: "struct TradingFloorStructsV1.PositionRequestParams",
|
|
1772
|
+
name: "_requestParams",
|
|
1773
|
+
type: "tuple",
|
|
1774
|
+
},
|
|
1775
|
+
{
|
|
1776
|
+
internalType: "uint32",
|
|
1777
|
+
name: "_spreadReductionF",
|
|
1778
|
+
type: "uint32",
|
|
1779
|
+
},
|
|
1780
|
+
],
|
|
1781
|
+
name: "storePendingPosition",
|
|
1782
|
+
outputs: [
|
|
1783
|
+
{
|
|
1784
|
+
internalType: "bytes32",
|
|
1785
|
+
name: "positionId",
|
|
1786
|
+
type: "bytes32",
|
|
1787
|
+
},
|
|
1788
|
+
],
|
|
1789
|
+
stateMutability: "nonpayable",
|
|
1790
|
+
type: "function",
|
|
1791
|
+
},
|
|
1792
|
+
{
|
|
1793
|
+
inputs: [
|
|
1794
|
+
{
|
|
1795
|
+
internalType: "address",
|
|
1796
|
+
name: "_asset",
|
|
1797
|
+
type: "address",
|
|
1798
|
+
},
|
|
1799
|
+
{
|
|
1800
|
+
internalType: "address",
|
|
1801
|
+
name: "_lexPool",
|
|
1802
|
+
type: "address",
|
|
1803
|
+
},
|
|
1804
|
+
{
|
|
1805
|
+
internalType: "address",
|
|
1806
|
+
name: "_poolAccountant",
|
|
1807
|
+
type: "address",
|
|
1808
|
+
},
|
|
1809
|
+
],
|
|
1810
|
+
name: "supportNewSettlementAsset",
|
|
1811
|
+
outputs: [],
|
|
1812
|
+
stateMutability: "nonpayable",
|
|
1813
|
+
type: "function",
|
|
1814
|
+
},
|
|
1815
|
+
{
|
|
1816
|
+
inputs: [
|
|
1817
|
+
{
|
|
1818
|
+
internalType: "uint256",
|
|
1819
|
+
name: "",
|
|
1820
|
+
type: "uint256",
|
|
1821
|
+
},
|
|
1822
|
+
],
|
|
1823
|
+
name: "traders",
|
|
1824
|
+
outputs: [
|
|
1825
|
+
{
|
|
1826
|
+
internalType: "address",
|
|
1827
|
+
name: "",
|
|
1828
|
+
type: "address",
|
|
1829
|
+
},
|
|
1830
|
+
],
|
|
1831
|
+
stateMutability: "view",
|
|
1832
|
+
type: "function",
|
|
1833
|
+
},
|
|
1834
|
+
{
|
|
1835
|
+
inputs: [],
|
|
1836
|
+
name: "tradersAmount",
|
|
1837
|
+
outputs: [
|
|
1838
|
+
{
|
|
1839
|
+
internalType: "uint256",
|
|
1840
|
+
name: "",
|
|
1841
|
+
type: "uint256",
|
|
1842
|
+
},
|
|
1843
|
+
],
|
|
1844
|
+
stateMutability: "view",
|
|
1845
|
+
type: "function",
|
|
1846
|
+
},
|
|
1847
|
+
{
|
|
1848
|
+
inputs: [
|
|
1849
|
+
{
|
|
1850
|
+
internalType: "address",
|
|
1851
|
+
name: "",
|
|
1852
|
+
type: "address",
|
|
1853
|
+
},
|
|
1854
|
+
],
|
|
1855
|
+
name: "tradersIndex",
|
|
1856
|
+
outputs: [
|
|
1857
|
+
{
|
|
1858
|
+
internalType: "uint256",
|
|
1859
|
+
name: "",
|
|
1860
|
+
type: "uint256",
|
|
1861
|
+
},
|
|
1862
|
+
],
|
|
1863
|
+
stateMutability: "view",
|
|
1864
|
+
type: "function",
|
|
1865
|
+
},
|
|
1866
|
+
{
|
|
1867
|
+
inputs: [
|
|
1868
|
+
{
|
|
1869
|
+
internalType: "bytes32",
|
|
1870
|
+
name: "",
|
|
1871
|
+
type: "bytes32",
|
|
1872
|
+
},
|
|
1873
|
+
],
|
|
1874
|
+
name: "triggerPricesById",
|
|
1875
|
+
outputs: [
|
|
1876
|
+
{
|
|
1877
|
+
internalType: "uint64",
|
|
1878
|
+
name: "minPrice",
|
|
1879
|
+
type: "uint64",
|
|
1880
|
+
},
|
|
1881
|
+
{
|
|
1882
|
+
internalType: "uint64",
|
|
1883
|
+
name: "maxPrice",
|
|
1884
|
+
type: "uint64",
|
|
1885
|
+
},
|
|
1886
|
+
{
|
|
1887
|
+
internalType: "uint64",
|
|
1888
|
+
name: "tpByFraction",
|
|
1889
|
+
type: "uint64",
|
|
1890
|
+
},
|
|
1891
|
+
{
|
|
1892
|
+
internalType: "uint64",
|
|
1893
|
+
name: "slByFraction",
|
|
1894
|
+
type: "uint64",
|
|
1895
|
+
},
|
|
1896
|
+
],
|
|
1897
|
+
stateMutability: "view",
|
|
1898
|
+
type: "function",
|
|
1899
|
+
},
|
|
1900
|
+
{
|
|
1901
|
+
inputs: [
|
|
1902
|
+
{
|
|
1903
|
+
internalType: "bytes32",
|
|
1904
|
+
name: "positionId",
|
|
1905
|
+
type: "bytes32",
|
|
1906
|
+
},
|
|
1907
|
+
{
|
|
1908
|
+
internalType: "enum TradingEnumsV1.PositionField",
|
|
1909
|
+
name: "updateField",
|
|
1910
|
+
type: "uint8",
|
|
1911
|
+
},
|
|
1912
|
+
{
|
|
1913
|
+
internalType: "uint64",
|
|
1914
|
+
name: "fieldValue",
|
|
1915
|
+
type: "uint64",
|
|
1916
|
+
},
|
|
1917
|
+
{
|
|
1918
|
+
internalType: "uint64",
|
|
1919
|
+
name: "effectivePrice",
|
|
1920
|
+
type: "uint64",
|
|
1921
|
+
},
|
|
1922
|
+
],
|
|
1923
|
+
name: "updateOpenedPosition",
|
|
1924
|
+
outputs: [],
|
|
1925
|
+
stateMutability: "nonpayable",
|
|
1926
|
+
type: "function",
|
|
1927
|
+
},
|
|
1928
|
+
{
|
|
1929
|
+
inputs: [
|
|
1930
|
+
{
|
|
1931
|
+
internalType: "bytes32",
|
|
1932
|
+
name: "_positionId",
|
|
1933
|
+
type: "bytes32",
|
|
1934
|
+
},
|
|
1935
|
+
{
|
|
1936
|
+
internalType: "uint64",
|
|
1937
|
+
name: "_minPrice",
|
|
1938
|
+
type: "uint64",
|
|
1939
|
+
},
|
|
1940
|
+
{
|
|
1941
|
+
internalType: "uint64",
|
|
1942
|
+
name: "_maxPrice",
|
|
1943
|
+
type: "uint64",
|
|
1944
|
+
},
|
|
1945
|
+
{
|
|
1946
|
+
internalType: "uint64",
|
|
1947
|
+
name: "_tp",
|
|
1948
|
+
type: "uint64",
|
|
1949
|
+
},
|
|
1950
|
+
{
|
|
1951
|
+
internalType: "uint64",
|
|
1952
|
+
name: "_sl",
|
|
1953
|
+
type: "uint64",
|
|
1954
|
+
},
|
|
1955
|
+
],
|
|
1956
|
+
name: "updatePendingPosition_openLimit",
|
|
1957
|
+
outputs: [],
|
|
1958
|
+
stateMutability: "nonpayable",
|
|
1959
|
+
type: "function",
|
|
1960
|
+
},
|
|
1961
|
+
];
|
|
1962
|
+
const _bytecode = "0x608060405234801561001057600080fd5b50600080546001600160a01b03191633179055615cf380620000336000396000f3fe608060405234801561001057600080fd5b506004361061038e5760003560e01c806382571409116101de578063b71f3cfe1161010f578063ece938cf116100ad578063f555f6971161007c578063f555f69714610aed578063f5f5ba7214610b0d578063f851a44014610b37578063f9b9484e14610b4a57600080fd5b8063ece938cf14610a5b578063ef6ecc5514610a64578063f2eb245e14610ac4578063f51f3fd314610ae457600080fd5b8063ddf474f1116100e9578063ddf474f1146109cd578063e640f33b14610a15578063eb48914014610a28578063ec7f8a3a14610a3b57600080fd5b8063b71f3cfe1461099c578063c07f9921146109a7578063ca3a3a82146109ba57600080fd5b806395be50501161017c578063a40d726811610156578063a40d726814610947578063aaf5eb681461095a578063acfd6b9214610969578063ad1f2b561461099457600080fd5b806395be5050146108a65780639ff69ffa14610921578063a2a25ea61461093457600080fd5b80638f7a8fb5116101b85780638f7a8fb5146107e257806390f24cac1461085d57806393a7f6a71461087057806394a1e6e51461089e57600080fd5b806382571409146107a657806386dc4975146107af5780638aa10435146107c257600080fd5b8063396f7b23116102c357806368f296a51161026157806376d901be1161023057806376d901be146107435780637b1039991461077657806380193b261461078957806380a7f3d41461079357600080fd5b806368f296a5146106c15780636e01af8d146106e7578063725b7d52146106fa57806374d8b78e1461071a57600080fd5b80634ebe5c331161029d5780634ebe5c33146105f35780635c60da1b14610606578063614d08f81461061957806366307a4f1461064657600080fd5b8063396f7b23146105ad5780633ad6f124146105c05780633b17a497146105d357600080fd5b80631ea9af6b1161033057806324b22a1f1161030a57806324b22a1f1461052c578063267822471461053f57806330d073d01461055257806338b903331461057d57600080fd5b80631ea9af6b146104e95780632457bc3a146104fc5780632485f3f11461050457600080fd5b8063135e563d1161036c578063135e563d1461048557806318fa4714146104985780631961aba0146104ad5780631d504dc6146104d657600080fd5b8063010570851461039357806303b90a87146103b9578063042e37c5146103fa575b600080fd5b6103a66103a1366004615044565b610bac565b6040519081526020015b60405180910390f35b6103e26103c7366004615188565b600b602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016103b0565b6104496104083660046151a5565b600c60205260009081526040902080546001909101546001600160a01b0380831692600160a01b810461ffff1692600160b01b90910463ffffffff16911684565b604080516001600160a01b03958616815261ffff909416602085015263ffffffff909216918301919091529190911660608201526080016103b0565b6103e26104933660046151a5565b6110fc565b6104ab6104a63660046151cb565b611126565b005b6103a66104bb366004615188565b6001600160a01b031660009081526016602052604090205490565b6104ab6104e4366004615188565b6111f5565b6104ab6104f7366004615216565b611343565b6013546103a6565b610517610512366004615188565b6113d9565b60405163ffffffff90911681526020016103b0565b6104ab61053a36600461524b565b611473565b6001546103e2906001600160a01b031681565b6103a6610560366004615277565b600960209081526000928352604080842090915290825290205481565b6105a0604051806040016040528060048152602001630313031360e41b81525081565b6040516103b091906152d4565b6003546103e2906001600160a01b031681565b6103a66105ce366004615307565b611712565b6105e66105e1366004615188565b611743565b6040516103b09190615325565b6104ab610601366004615369565b6117af565b6002546103e2906001600160a01b031681565b6105a06040518060400160405280600e81526020016d54726164696e67466c6f6f72563160901b81525081565b61068e6106543660046151a5565b600e602052600090815260409020546001600160401b0380821691600160401b8104821691600160801b8204811691600160c01b90041684565b604080516001600160401b03958616815293851660208501529184169183019190915290911660608201526080016103b0565b6105176106cf366004615188565b60156020526000908152604090205463ffffffff1681565b6104ab6106f53660046153a5565b611873565b61070d610708366004615307565b611c09565b6040516103b091906153cc565b6103e2610728366004615188565b600a602052600090815260409020546001600160a01b031681565b6107666107513660046151a5565b60086020526000908152604090205460ff1681565b60405190151581526020016103b0565b6004546103e2906001600160a01b031681565b6103a6620186a081565b6104ab6107a136600461540d565b611c89565b6103a660075481565b6104ab6107bd366004615451565b6120e1565b6040805180820190915260048152630313031360e41b60208201526105a0565b61084a6107f03660046151a5565b600d602052600090815260409020805460019091015460ff808216916001600160401b03610100820481169263ffffffff600160481b8404811693600160681b810490921692600160701b83041691600160b01b90041687565b6040516103b097969594939291906154a0565b6103e261086b3660046154f5565b612174565b61076661087e366004615188565b6001600160a01b039081166000908152600a602052604090205416151590565b6103a66121b9565b6109106108b43660046151a5565b6000908152600d6020818152604080842060010154600c835293205491905260ff8083169361010084046001600160401b031693600160a01b90930461ffff1692600160681b810490921691600160b01b900463ffffffff1690565b6040516103b095949392919061552a565b6104ab61092f36600461556e565b6121ca565b6104ab6109423660046155cc565b612411565b6103a66109553660046155fc565b612533565b6103a6670de0b6b3a764000081565b6103a6610977366004615307565b601760209081526000928352604080842090915290825290205481565b6103a6606481565b6103a6633b9aca0081565b6104ab6109b5366004615649565b6125a2565b6104ab6109c8366004615671565b612cef565b61068e6109db3660046151a5565b600f602052600090815260409020546001600160401b0380821691600160401b8104821691600160801b8204811691600160c01b90041684565b6104ab610a23366004615671565b612ea0565b6104ab610a36366004615216565b613031565b6103a6610a49366004615188565b60146020526000908152604090205481565b6103a660055481565b610aa7610a723660046156ad565b601260209081526000938452604080852082529284528284209052825290205463ffffffff8082169164010000000090041682565b6040805163ffffffff9384168152929091166020830152016103b0565b6103a6610ad23660046151a5565b60106020526000908152604090205481565b6103a660065481565b610b00610afb3660046151a5565b6130c7565b6040516103b09190615724565b60408051808201909152600e81526d54726164696e67466c6f6f72563160901b60208201526105a0565b6000546103e2906001600160a01b031681565b610b9d610b583660046151a5565b6000908152600d60209081526040808320600190810154600c90935292209091015460ff8216926101009092046001600160401b0316916001600160a01b0390911690565b6040516103b093929190615732565b6004805460405163731aa5f960e01b815233928101929092526000916001600160a01b039091169063731aa5f990602401602060405180830381865afa158015610bfa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c1e9190615768565b610c435760405162461bcd60e51b8152600401610c3a90615785565b60405180910390fd5b610c6b84604001516001600160a01b039081166000908152600a602052604090205416151590565b610cb75760405162461bcd60e51b815260206004820152601e60248201527f4e4f4e5f535550504f525445445f534554544c454d454e545f415353455400006044820152606401610c3a565b60208085015161ffff1660009081526008909152604090205460ff1615610cf05760405162461bcd60e51b8152600401610c3a906157ad565b6001856002811115610d0457610d04615476565b1480610d2157506002856002811115610d1f57610d1f615476565b145b610d665760405162461bcd60e51b8152602060048201526016602482015275554e535550504f525445445f4f524445525f5459504560501b6044820152606401610c3a565b610dab836000015184606001516001600160401b031685608001516001600160401b03168660a001516001600160401b03168760c001516001600160401b03166131ef565b60055484516001600160a01b031660009081526016602052604090205410610e0d5760405162461bcd60e51b815260206004820152601560248201527426a0ac2faa2920a222a9afa822a92faa2920a222a960591b6044820152606401610c3a565b610e248460400151856000015186602001516132d1565b9050610e3d846040015185600001518560200151613442565b8351610e4890613587565b6000818152600d60205260409020805415610e8f5760405162461bcd60e51b8152602060048201526007602482015266125117d554d15160ca1b6044820152606401610c3a565b600180820180548651604088015163ffffffff908116600160481b026cffffffff00000000000000000019921515600160681b0260ff60681b19928a16600160b01b02929092166cffffffff0000000000000000ff60681b1990941693909317171617905560208501518255600090876002811115610f1057610f10615476565b14610f1c576002610f1f565b60015b9050808260010160006101000a81548160ff02191690836005811115610f4757610f47615476565b0217905550428260010160016101000a8154816001600160401b0302191690836001600160401b031602179055506000600e600085815260200190815260200160002090508560a001518160000160106101000a8154816001600160401b0302191690836001600160401b031602179055508560c001518160000160186101000a8154816001600160401b0302191690836001600160401b031602179055506000600f6000868152602001908152602001600020905086606001518160000160006101000a8154816001600160401b0302191690836001600160401b0316021790555086608001518160000160086101000a8154816001600160401b0302191690836001600160401b031602179055508660e001518160000160106101000a8154816001600160401b0302191690836001600160401b031602179055508661010001518160000160186101000a8154816001600160401b0302191690836001600160401b03160217905550847fabd7725cc4e772d19c08344ff52fe389227a111b190576195fb007bcdf84dd3c848a8a8a6040516110e894939291906157d2565b60405180910390a250505050949350505050565b6013818154811061110c57600080fd5b6000918252602090912001546001600160a01b0316905081565b6004805460405163a8e36e5b60e01b81526001600160a01b038681169382019390935291169063a8e36e5b90602401602060405180830381865afa158015611172573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061119691906158b4565b6001600160a01b0316336001600160a01b0316146111e55760405162461bcd60e51b815260206004820152600c60248201526b10a332b2b9a6b0b730b3b2b960a11b6044820152606401610c3a565b6111f0838383613603565b505050565b806001600160a01b031663f851a4406040518163ffffffff1660e01b8152600401602060405180830381865afa158015611233573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061125791906158b4565b6001600160a01b0316336001600160a01b0316146112a65760405162461bcd60e51b815260206004820152600c60248201526b10b83937bc3c9730b236b4b760a11b6044820152606401610c3a565b806001600160a01b031663c1e803346040518163ffffffff1660e01b81526004016020604051808303816000875af11580156112e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061130a91906158d1565b156113405760405162461bcd60e51b8152600401610c3a9060208082526004908201526319985a5b60e21b604082015260600190565b50565b6004805460405163a5a2ed3760e01b815233928101929092526001600160a01b03169063a5a2ed3790602401602060405180830381865afa15801561138c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113b09190615768565b6113cc5760405162461bcd60e51b8152600401610c3a906158ea565b6111f08360028484613726565b6001600160a01b03811660009081526015602052604081205463ffffffff9081169081106114495760405162461bcd60e51b815260206004820152601760248201527f504f534954494f4e5f494e4445585f4f564552464c4f570000000000000000006044820152606401610c3a565b600b8163ffffffff1610156114615750600b92915050565b61146c816001615923565b9392505050565b6000546001600160a01b031633146114ba5760405162461bcd60e51b815260206004820152600a60248201526927a7262cafa0a226a4a760b11b6044820152606401610c3a565b600081116114fb5760405162461bcd60e51b815260206004820152600e60248201526d43414e4e4f545f42455f5a45524f60901b6044820152606401610c3a565b6060600183600381111561151157611511615476565b0361154a575060408051808201909152601281527136b0bc2a3930b232b9a832b92a3930b232b960711b602082015260058290556116c5565b600283600381111561155e5761155e615476565b036115ed576064611573620186a06032615947565b61157d9190615974565b8210156115c65760405162461bcd60e51b81526020600482015260176024820152762a2920a222afa820a920a6afa922a9aa2924a1aa24a7a760491b6044820152606401610c3a565b506040805180820190915260068082526536b0bc29b62360d11b60208301528290556116c5565b600383600381111561160157611601615476565b0361168f57611614620186a06002615947565b82101561165d5760405162461bcd60e51b81526020600482015260176024820152762a2920a222afa820a920a6afa922a9aa2924a1aa24a7a760491b6044820152606401610c3a565b5060408051808201909152601081526f36b0bc29b0b734ba3ca83937b334ba2360811b602082015260078290556116c5565b60405162461bcd60e51b815260206004820152600b60248201526a155394d5541413d495115160aa1b6044820152606401610c3a565b806040516116d39190615988565b604051908190038120838252907f8cf3e35f6221b16e1670a3413180c9484bf5aa71787905909fa82a6a2662e9ab9060200160405180910390a2505050565b6016602052816000526040600020818154811061172e57600080fd5b90600052602060002001600091509150505481565b6001600160a01b0381166000908152601660209081526040918290208054835181840281018401909452808452606093928301828280156117a357602002820191906000526020600020905b81548152602001906001019080831161178f575b50505050509050919050565b6004805460405163419a519360e01b815233928101929092526001600160a01b03169063419a519390602401602060405180830381865afa1580156117f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061181c9190615768565b6118685760405162461bcd60e51b815260206004820152601a60248201527f212854726164657273506f7274616c7c7c5472696767657273290000000000006044820152606401610c3a565b6111f0338484613dba565b6004805460405163419a519360e01b815233928101929092526001600160a01b03169063419a519390602401602060405180830381865afa1580156118bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118e09190615768565b61192c5760405162461bcd60e51b815260206004820152601a60248201527f212854726164657273506f7274616c7c7c5472696767657273290000000000006044820152606401610c3a565b61193a6064620186a0615974565b8111156119805760405162461bcd60e51b81526020600482015260146024820152734645455f4652414354494f4e5f544f4f5f42494760601b6044820152606401610c3a565b6000838152600d60209081526040808320815160e08101909252805482526001810154919290919083019060ff1660058111156119bf576119bf615476565b60058111156119d0576119d0615476565b8152600191909101546001600160401b036101008204811660208085019190915263ffffffff600160481b8404811660408087019190915260ff600160681b86041615156060870152600160701b85049093166080860152600160b01b90930490921660a0909301929092526000878152600d9091522054909150611a675760405162461bcd60e51b8152600401610c3a906159a4565b6000848152600c6020908152604091829020825160808101845281546001600160a01b038082168352600160a01b820461ffff1694830194909452600160b01b900463ffffffff16938101939093526001908101549091166060830152846002811115611ad657611ad6615476565b03611b3857600182602001516005811115611af357611af3615476565b14611b335760405162461bcd60e51b815260206004820152601060248201526f2727aa2fa6a0a925a2aa2fa7a92222a960811b6044820152606401610c3a565b611be3565b6002846002811115611b4c57611b4c615476565b03611ba857600282602001516005811115611b6957611b69615476565b14611b335760405162461bcd60e51b815260206004820152600f60248201526e2727aa2fa624a6a4aa2fa7a92222a960891b6044820152606401610c3a565b60405162461bcd60e51b815260206004820152601060248201526f57524f4e475f4f524445525f5459504560801b6044820152606401610c3a565b611c028582600001518360600151856000015186606001518833613ecb565b5050505050565b6001600160a01b0382166000908152601160209081526040808320848452825291829020805483518184028101840190945280845260609392830182828015611c7b57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611c5d575b505050505090505b92915050565b6004805460405163a5a2ed3760e01b815233928101929092526001600160a01b03169063a5a2ed3790602401602060405180830381865afa158015611cd2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cf69190615768565b611d125760405162461bcd60e51b8152600401610c3a906158ea565b6000848152600d60209081526040808320815160e08101909252805482526001810154919290919083019060ff166005811115611d5157611d51615476565b6005811115611d6257611d62615476565b8152600191909101546001600160401b0361010082048116602084015263ffffffff600160481b83048116604085015260ff600160681b84041615156060850152600160701b83049091166080840152600160b01b9091041660a0909101528051909150611de25760405162461bcd60e51b8152600401610c3a906159a4565b6000858152600e60209081526040808320815160808101835290546001600160401b038082168352600160401b8204811694830194909452600160801b8104841692820192909252600160c01b90910490911660608201529080806002886003811115611e5157611e51615476565b03611eb4578460800151611e7e5783606001516001600160401b0316866001600160401b03161015611e99565b83606001516001600160401b0316866001600160401b031611155b925083606001516001600160401b0316915060029050611f99565b6001886003811115611ec857611ec8615476565b03611f2b578460800151611ef55783604001516001600160401b0316866001600160401b03161115611f10565b83604001516001600160401b0316866001600160401b031610155b925083604001516001600160401b0316915060019050611f99565b6003886003811115611f3f57611f3f615476565b03611f5b575060019150506001600160401b0384166003611f99565b60405162461bcd60e51b81526020600482015260136024820152722ba927a723afa624a6a4aa2faa2924a3a3a2a960691b6044820152606401610c3a565b82611fd65760405162461bcd60e51b815260206004820152600d60248201526c2320a629a2afaa2924a3a3a2a960991b6044820152606401610c3a565b6000806000611fe68c8686613f9d565b91945092509050600384600481111561200157612001615476565b0361206e5787608001516120215780896001600160401b0316101561202f565b80896001600160401b031611155b95508561206e5760405162461bcd60e51b815260206004820152600d60248201526c2320a629a2afaa2924a3a3a2a960991b6044820152606401610c3a565b8a600381111561208057612080615476565b604080516001600160401b038c16815260208101849052908101859052606081018490528d907fe67823c5c7b61d690bab4b46031d192b68f898b47bdf7daffbddff8e24aaf9bd9060800160405180910390a3505050505050505050505050565b6000546001600160a01b031633146121285760405162461bcd60e51b815260206004820152600a60248201526927a7262cafa0a226a4a760b11b6044820152606401610c3a565b600082815260086020526040808220805460ff19168415159081179091559051909184917f996384f9c771a575699aadc5e543fb849613b350a1b29584a1ecca98d2cfc1709190a35050565b6011602052826000526040600020602052816000526040600020818154811061219c57600080fd5b6000918252602090912001546001600160a01b0316925083915050565b6121c76064620186a0615974565b81565b6004805460405163731aa5f960e01b815233928101929092526001600160a01b03169063731aa5f990602401602060405180830381865afa158015612213573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122379190615768565b6122535760405162461bcd60e51b8152600401610c3a90615785565b6000858152600d602052604090206002600182015460ff16600581111561227c5761227c615476565b146122995760405162461bcd60e51b8152600401610c3a906159ce565b6000868152600c6020908152604080832054600160a01b900461ffff168352600890915290205460ff16156122e05760405162461bcd60e51b8152600401610c3a906157ad565b61232281600101600d9054906101000a900460ff16866001600160401b0316866001600160401b0316866001600160401b0316866001600160401b03166131ef565b60018101805468ffffffffffffffff001916610100426001600160401b0390811691909102919091179091556000878152600e6020908152604080832080546001600160801b0316600160801b8987169081026001600160c01b031691909117600160c01b898816908102919091178355600f85529483902080548c88166001600160801b03199091168117600160401b988d169889021782558451928352948201959095529182019290925260608101939093529188907f098a3c0f7acdf2c147440d705e162d395db886273731a238b250793cde346d859060800160405180910390a25050505050505050565b6004546001600160a01b031633146124575760405162461bcd60e51b815260206004820152600960248201526821526567697374727960b81b6044820152606401610c3a565b6001600160a01b038381166000908152600a602052604090205416156124bf5760405162461bcd60e51b815260206004820152601760248201527f41535345545f414c52454144595f535550504f525445440000000000000000006044820152606401610c3a565b6001600160a01b038084166000818152600a6020908152604080832080548689166001600160a01b03199182168117909255600b9093528184208054968816969093168617909255519092917fe34fb4592f12d191480ae66f1051ba82ee53c518b07f632579da8d40a74c77c891a4505050565b60408051606095861b6bffffffffffffffffffffffff199081166020808401919091529590961b909516603486015260f09290921b6001600160f01b031916604885015260e01b6001600160e01b031916604a8401528051602e818503018152604e9093019052815191012090565b6004805460405163a5a2ed3760e01b815233928101929092526001600160a01b03169063a5a2ed3790602401602060405180830381865afa1580156125eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061260f9190615768565b61262b5760405162461bcd60e51b8152600401610c3a906158ea565b6000848152600d60209081526040808320600e8352818420600c845293829020825160808101845281546001600160a01b038082168352600160a01b820461ffff1696830196909652600160b01b900463ffffffff169381019390935260010154909216606082015281549192916126b55760405162461bcd60e51b8152600401610c3a906159a4565b6003600184015460ff1660058111156126d0576126d0615476565b146126ed5760405162461bcd60e51b8152600401610c3a906159ce565b80516001600160a01b039081166000908152600b60205260408120549091169080600189600281111561272257612722615476565b036129dd5760006127c3846001600160a01b0316631cb92ed36040518163ffffffff1660e01b8152600401602060405180830381865afa15801561276a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061278e91906158d1565b6001890154600160701b81046001600160401b031690600160481b810463ffffffff16908d90600160681b900460ff166141a1565b9050886001600160401b0316816001600160401b0316146128185760405162461bcd60e51b815260206004820152600f60248201526e4241445f4649454c445f56414c554560881b6044820152606401610c3a565b85546001600160401b03600160801b9091048116908216036128665760405162461bcd60e51b8152602060048201526007602482015266053414d455f54560cc1b6044820152606401610c3a565b8092508560000160189054906101000a90046001600160401b03169150428660000160006101000a8154816001600160401b0302191690836001600160401b03160217905550836001600160a01b0316633cdc20f88c876060015188602001518b600001548c60010160099054906101000a900463ffffffff168d600101600d9054906101000a900460ff168e600101600e9054906101000a90046001600160401b03168e60000160109054906101000a90046001600160401b03168c6040518a63ffffffff1660e01b81526004016129a5999897969594939291909889526001600160a01b0397909716602089015261ffff959095166040880152606087019390935263ffffffff919091166080860152151560a08501526001600160401b0390811660c085015290811660e0840152166101008201526101200190565b600060405180830381600087803b1580156129bf57600080fd5b505af11580156129d3573d6000803e3d6000fd5b5050505050612b6e565b60028960028111156129f1576129f1615476565b0361168f576000612a92846001600160a01b0316631cb92ed36040518163ffffffff1660e01b8152600401602060405180830381865afa158015612a39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a5d91906158d1565b6001890154600160701b81046001600160401b031690600160481b810463ffffffff16908d90600160681b900460ff16614273565b9050886001600160401b0316816001600160401b031614612ae75760405162461bcd60e51b815260206004820152600f60248201526e4241445f4649454c445f56414c554560881b6044820152606401610c3a565b85546001600160401b03600160c01b909104811690821603612b355760405162461bcd60e51b815260206004820152600760248201526614d0535157d4d360ca1b6044820152606401610c3a565b8554426001600160401b03908116600160401b026fffffffffffffffff0000000000000000198316178855600160801b90910416925090505b60018601546000906001600160401b03808a16600160701b9092041611612ba9576001870154600160701b90046001600160401b0316612bab565b875b60018801546001600160401b0391821692506000918a8116600160701b9092041610612beb576001880154600160701b90046001600160401b0316612bed565b885b6001600160401b03169050612c2888600101600d9054906101000a900460ff168383876001600160401b0316876001600160401b03166131ef565b86546001600160401b03858116600160801b0267ffffffffffffffff60801b19918616600160c01b02919091166001600160801b03909216919091171787558a6002811115612c7957612c79615476565b866020015161ffff168d7f90bbb7e2b715065bd66ba75a34fca9b65694d5e75327dd0873a5e3e6883776678b600101600d9054906101000a900460ff168e604051612cd992919091151582526001600160401b0316602082015260400190565b60405180910390a4505050505050505050505050565b6004805460405163a5a2ed3760e01b815233928101929092526001600160a01b03169063a5a2ed3790602401602060405180830381865afa158015612d38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d5c9190615768565b612d785760405162461bcd60e51b8152600401610c3a906158ea565b6000838152600f6020908152604091829020825160808101845290546001600160401b038082168352600160401b82048116938301849052600160801b8204811694830194909452600160c01b90049092166060830152612deb5760405162461bcd60e51b8152600401610c3a906159a4565b80516001600160401b0380841691161180612e1b5750816001600160401b031681602001516001600160401b0316105b15612e3157612e2c30856001613dba565b612e9a565b6000806000612e4b87866001600160401b03166004613f9d565b6040805182815260208101859052908101839052929550909350915087907f9912c2c8197504aea5a1b52b98eeae3f4aecabe190feebc292455c355d4297cb9060600160405180910390a25050505b50505050565b6004805460405163731aa5f960e01b815233928101929092526001600160a01b03169063731aa5f990602401602060405180830381865afa158015612ee9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f0d9190615768565b612f295760405162461bcd60e51b8152600401610c3a90615785565b6000838152600d602052604090208054612f555760405162461bcd60e51b8152600401610c3a906159a4565b6003600182015460ff166005811115612f7057612f70615476565b14612f8d5760405162461bcd60e51b8152600401610c3a906159ce565b6001810180546001600160401b034281166101000268ffffffffffffffffff19909216919091176004179091556000858152600f60209081526040918290208054868516600160401b81026001600160801b03199092169589169586179190911782558351948552918401919091529186917fb7bb5d6820a30953d2858e9c448319c4cebbc70c347961e25f1adfff46566689910160405180910390a25050505050565b6004805460405163a5a2ed3760e01b815233928101929092526001600160a01b03169063a5a2ed3790602401602060405180830381865afa15801561307a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061309e9190615768565b6130ba5760405162461bcd60e51b8152600401610c3a906158ea565b6111f08360018484613726565b6040805160a081018252600080825260208083018290528284018290526060830182905260808301829052848252600d8152838220845160e0810190955280548552600181015493949293909183019060ff16600581111561312b5761312b615476565b600581111561313c5761313c615476565b8152600191909101546001600160401b036101008204811660208085019190915263ffffffff600160481b8404811660408087019190915260ff600160681b8604161515606080880191909152600160701b86048516608080890191909152600160b01b909604831660a09788015287518a52878101519092168984015294860151831690880152938201511515868401526000968752600e909352942054600160801b90041692820192909252919050565b828411156132315760405162461bcd60e51b815260206004820152600f60248201526e4d494e5f4d41585f5245564552534560881b6044820152606401610c3a565b81158061324a5750846132465783821061324a565b8282115b6132815760405162461bcd60e51b8152602060048201526008602482015267057524f4e475f54560c41b6044820152606401610c3a565b80158061329a5750846132965782811161329a565b8381105b611c025760405162461bcd60e51b815260206004820152600860248201526715d493d391d7d4d360c21b6044820152606401610c3a565b6000806132dd846113d9565b90506132eb85858584612533565b6000818152600c60205260408120805492945091600160b01b900463ffffffff169003613439578054600180830180546001600160a01b0319166001600160a01b038981169182179092559089166001600160b01b031990931692909217600160a01b61ffff8816021763ffffffff60b01b1916600160b01b63ffffffff86169081029190911784556000838152601560209081526040808320805463ffffffff19169094179093556016815282822080549485018155808352818320909401889055925493815260178352818120878252909252902055827f487ea6416487448c3ce943d750c8f67a275e4d8f26ac4093803bf63354b7006f82604051613430919081546001600160a01b03808216835260a082901c61ffff16602084015260b09190911c63ffffffff166040830152600190920154909116606082015260800190565b60405180910390a25b50509392505050565b80156111f0576040516370a0823160e01b81523060048201526000906001600160a01b038516906370a0823190602401602060405180830381865afa15801561348f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134b391906158d1565b90506134ca6001600160a01b038516843085614330565b6040516370a0823160e01b81523060048201526000906001600160a01b038616906370a0823190602401602060405180830381865afa158015613511573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061353591906158d1565b90508261354283836159f3565b14611c025760405162461bcd60e51b815260206004820152601560248201527411125117d393d517d49150d152559157d1561050d5605a1b6044820152606401610c3a565b6001600160a01b03811660009081526016602052604090205460010361134057601380546001810182557f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a0900180546001600160a01b0319166001600160a01b039390931692831790555460009182526014602052604090912055565b6001600160a01b03831660009081526009602052604081208184600381111561362e5761362e615476565b600381111561363f5761363f615476565b8152602001908152602001600020549050600060096000866001600160a01b03166001600160a01b03168152602001908152602001600020600085600381111561368b5761368b615476565b600381111561369c5761369c615476565b81526020810191909152604001600020556136c16001600160a01b0385168383614397565b816001600160a01b03168360038111156136dd576136dd615476565b856001600160a01b03167f0e80b333c403be7cb491b3ba7f29fe30014c594adbcbec04272291b2f72f6e6a8460405161371891815260200190565b60405180910390a450505050565b6000848152600f60209081526040808320815160808101835290546001600160401b038082168352600160401b8204811683860152600160801b8204811683850152600160c01b909104166060820152878452600d8352818420825160e0810190935280548352600181015491949390919083019060ff1660058111156137af576137af615476565b60058111156137c0576137c0615476565b8152600191909101546001600160401b0361010082048116602084015263ffffffff600160481b83048116604085015260ff600160681b84041615156060850152600160701b83049091166080840152600160b01b9091041660a09091015280519091506138405760405162461bcd60e51b8152600401610c3a906159a4565b6000868152600c60209081526040808320815160808101835281546001600160a01b038082168352600160a01b820461ffff16838701819052600160b01b90920463ffffffff1683860152600190930154909216606082015290845260089092529091205460ff16156138c55760405162461bcd60e51b8152600401610c3a906157ad565b8560058111156138d7576138d7615476565b826020015160058111156138ed576138ed615476565b1461390a5760405162461bcd60e51b8152600401610c3a906159ce565b600186600581111561391e5761391e615476565b036139c25782516001600160401b03808716911611806139535750846001600160401b031683602001516001600160401b0316105b156139bd576040516001600160401b038616815287907f82c058420d58fdfcaa301ef645c860145096603267b7b7ac02831312ac2ab4479060200160405180910390a26139b58782600001518360600151856000015186606001518930613ecb565b505050612e9a565b613a48565b60028660058111156139d6576139d6615476565b0361168f5782516001600160401b03808716911611801590613a0e5750846001600160401b031683602001516001600160401b031610155b6139bd5760405162461bcd60e51b815260206004820152600b60248201526a50524943455f52414e474560a81b6044820152606401610c3a565b80516001600160a01b039081166000908152600b6020526040812054606085015160808601519190931692613a82918b9185918b8a6143c8565b9050816001600160a01b03166352713f678a85606001518660200151886000015189606001518a6080015188604001518f6040518963ffffffff1660e01b8152600401613b289897969594939291909788526001600160a01b0396909616602088015261ffff949094166040870152606086019290925263ffffffff166080850152151560a08401526001600160401b0390811660c08401521660e08201526101000190565b60408051808303816000875af1925050508015613b62575060408051601f3d908101601f19168201909252613b5f91810190615a06565b60015b613c6657613b6e615a2a565b806308c379a003613ba75750613b82615a46565b80613b8d5750613ba9565b8060405162461bcd60e51b8152600401610c3a91906152d4565b505b3d808015613bd3576040519150601f19603f3d011682016040523d82523d6000602084013e613bd8565b606091505b50632eb752bf60e21b613bea82615acf565b6001600160e01b0319160361038e57602481015160448201516040518c907ff2c847d05971bf83dd347e0732c1ef893111318fb2540f5fe6f9783cb8d6ae5b90613c379085908590615b06565b60405180910390a2613c5e8c876000015188606001518a600001518b606001518e30613ecb565b505050613daf565b60008b8152600d602090815260408083206001810180546001600160401b038f16600160701b0267ffffffffffffffff60701b19909116179055895160109093529220558651613cb79084906159f3565b8155600180820180546001600160401b0342166101000268ffffffffffffffffff199091161760031790558651613cfa918e9190613cf586886159f3565b61474b565b85516001600160a01b038082166000908152600a6020526040902054613d22929116846147ff565b60008c8152600f60205260408082209190915584810151606086015191518e927fdd0164525ce1bb6897fbd7000a7d93633016a05f498d94903ca1fcc7911cdf8192613da3928f9290899089906001600160401b03958616815293851660208501529190931660408301526060820192909252608081019190915260a00190565b60405180910390a25050505b505050505050505050565b6000828152600d6020526040902054613de55760405162461bcd60e51b8152600401610c3a906159a4565b6000828152600f60205260408120556001816001811115613e0857613e08615476565b03611ba85760046000838152600d602052604090206001015460ff166005811115613e3557613e35615476565b14613e525760405162461bcd60e51b8152600401610c3a906159ce565b6000828152600d6020908152604080832060010180546001600160401b0342166101000268ffffffffffffffffff19909116176003179055519182526001600160a01b0385169184917f2cb817145129b5c52a6dc17e0605285c54d9c258fbf0a21e78bfff4e00813333910160405180910390a3505050565b6000878152600d6020908152604080832083815560010180546001600160d01b0319169055600f9091528120819055613f13613f0d8663ffffffff8716614819565b84614831565b9050613f22888860038461474b565b613f2b86614841565b613f358689614998565b6000613f4182876159f3565b9050613f4e8888836147ff565b826001600160a01b0316897f0732bc6c415e7a220efee5f866e1e91a1335745b97373898ffecfddbc708a3e784604051613f8a91815260200190565b60405180910390a3505050505050505050565b6000838152600c60209081526040808320815160808101835281546001600160a01b038082168352600160a01b820461ffff1695830195909552600160b01b900463ffffffff16928101929092526001015490911660608201528190819081614005886130c7565b80519091506140265760405162461bcd60e51b8152600401610c3a906159a4565b6000806000806140398c87878e8e614ac3565b935093509350935084600001518311156140bb578451600090620186a061406082876159f3565b61406a9190615947565b6140749190615974565b90506007548111156140b95760405162461bcd60e51b815260206004820152600e60248201526d1253959053125117d41493d1925560921b6044820152606401610c3a565b505b81975082985080965084600001518411156141185760405162461bcd60e51b815260206004820152601e60248201527f434c4f53455f4645455f4c41524745525f5448414e5f504f534954494f4e00006044820152606401610c3a565b6141298c876000015160028761474b565b6141368660600151614841565b61414486606001518d614998565b60008c8152600d6020908152604080832083815560010180546001600160d01b0319169055600e825280832083905560109091528120556060860151865186516141929291908c9088614b75565b50505050505093509350939050565b60006001600160401b03831615806141cb57508560070b6141c58787868689614cde565b60070b12155b15614267576000620186a0856001600160401b03166064896001600160401b0316896001600160401b03166142009190615947565b61420a9190615947565b6142149190615974565b61421e9190615974565b90508261425557856001600160401b0316816001600160401b0316111561424657600061425f565b6142508187615b24565b61425f565b61425f8187615b44565b91505061426a565b50815b95945050505050565b60006001600160401b03831615806142a8575060065461429590600019615b64565b6142a28787868689614cde565b60070b13155b15614267576000620186a0856001600160401b03166064600654896001600160401b03166142d69190615947565b6142e09190615947565b6142ea9190615974565b6142f49190615974565b905082614305576142508187615b44565b856001600160401b0316816001600160401b0316111561432657600061425f565b61425f8187615b24565b6040516001600160a01b038481166024830152838116604483015260648201839052612e9a9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050614d6a565b6040516001600160a01b038381166024830152604482018390526111f091859182169063a9059cbb90606401614365565b6040805160808101825260008082526020820181905291810182905260608101919091526000866001600160a01b0316631cb92ed36040518163ffffffff1660e01b8152600401602060405180830381865afa15801561442c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061445091906158d1565b6000898152600e6020908152604091829020825160808101845290546001600160401b038082168352600160401b8204811693830193909352600160801b81048316938201849052600160c01b90049091166060820152935090915015806144c3575060408301516001600160401b0316155b61450f5760405162461bcd60e51b815260206004820152601760248201527f4d554c5449504c455f54505f444546494e4954494f4e530000000000000000006044820152606401610c3a565b60608201516001600160401b03161580614534575060608301516001600160401b0316155b6145805760405162461bcd60e51b815260206004820152601760248201527f4d554c5449504c455f534c5f444546494e4954494f4e530000000000000000006044820152606401610c3a565b60408301516001600160401b0316156145fa5760006145aa8585604001518963ffffffff16614dcd565b9050856145e057846001600160401b0316816001600160401b0316106145d15760006145ea565b6145db8186615b24565b6145ea565b6145ea8186615b44565b6001600160401b03166040840152505b60608301516001600160401b0316156146745760006146248585606001518963ffffffff16614dcd565b90508561463a576146358186615b44565b614664565b846001600160401b0316816001600160401b03161061465a576000614664565b6146648186615b24565b6001600160401b03166060840152505b61468b81858863ffffffff168560400151896141a1565b6001600160401b0390811660408401524216825260608201516146ba908290869063ffffffff8a169089614273565b6001600160401b0390811660608401908152428216602080860191825260009b8c52600e905260409a8b90208551815492519c87015193518516600160c01b026001600160c01b03948616600160801b02949094166001600160801b039d8616600160401b026001600160801b03199094169190951617919091179a909a1691909117179097559695505050505050565b8015612e9a576001600160a01b0383166000908152600960205260408120829184600381111561477d5761477d615476565b600381111561478e5761478e615476565b815260200190815260200160002060008282546147ab9190615b94565b9091555082905060038111156147c3576147c3615476565b836001600160a01b0316857f52aab89a61b38ba21feecda2012e9c20aec817e5d709d0633c3fd693bb949cbb8460405161371891815260200190565b80156111f0576111f06001600160a01b0384168383614397565b600060646148278385615947565b61146c9190615974565b6000620186a06148278385615947565b6001600160a01b0381166000908152601660205260409020546001036113405760135460011015614949576001600160a01b03811660009081526014602052604090205460138054614895906001906159f3565b815481106148a5576148a5615ba7565b6000918252602090912001546001600160a01b031660136148c76001846159f3565b815481106148d7576148d7615ba7565b6000918252602082200180546001600160a01b0319166001600160a01b039390931692909217909155819060149060136149126001856159f3565b8154811061492257614922615ba7565b60009182526020808320909101546001600160a01b03168352820192909252604001902055505b6001600160a01b038116600090815260146020526040812055601380548061497357614973615bbd565b600082815260209020810160001990810180546001600160a01b031916905501905550565b6001600160a01b038216600090815260176020908152604080832084845290915290205480156111f0576001600160a01b0383166000908152601660205260408120906149e66001846159f3565b82549091506149f7906001906159f3565b811015614a735781546000908390614a11906001906159f3565b81548110614a2157614a21615ba7565b9060005260206000200154905080838381548110614a4157614a41615ba7565b60009182526020808320909101929092556001600160a01b038816815260178252604080822093825292909152208390555b81805480614a8357614a83615bbd565b6000828152602080822083016000199081018390559092019092556001600160a01b03871682526017815260408083208784529091528120555050505050565b83516001600160a01b039081166000908152600b60209081526040808320546060890151928901519151630f1a62d160e31b8152939485948594859493909216926378d3168892614b1f928e92908d908d908d90600401615bd3565b6080604051808303816000875af1158015614b3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614b629190615c2a565b929c919b50995090975095505050505050565b6001600160a01b038085166000908152600a602052604081205490911690838510614c1e57614ba483856159f3565b90506000614bb282876159f3565b6040516321d4911360e01b81526001600160a01b038a8116600483015260248201839052919250908416906321d4911390604401600060405180830381600087803b158015614c0057600080fd5b505af1158015614c14573d6000803e3d6000fd5b5050505050614cca565b50836000614c2c82866159f3565b905083811115614c4f57614c4a8784614c4587856159f3565b6147ff565b614cc8565b6001600160a01b0383166321d4911330614c6984886159f3565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015614caf57600080fd5b505af1158015614cc3573d6000803e3d6000fd5b505050505b505b614cd58688836147ff565b50505050505050565b6000858184614cf657614cf18688615c60565b614d00565b614d008787615c60565b905060008460070b620186a08360070b614d1a9190615b64565b614d249190615b64565b90506000600789900b614d38606484615c8f565b614d429190615c8f565b90508094508360070b8560070b13614d5a5784614d5c565b835b9a9950505050505050505050565b6000614d7f6001600160a01b03841683614e1c565b90508051600014158015614da4575080806020019051810190614da29190615768565b155b156111f057604051635274afe760e01b81526001600160a01b0384166004820152602401610c3a565b600080826001600160401b0316620186a06064866001600160401b0316886001600160401b0316614dfe9190615947565b614e089190615947565b614e129190615974565b61426a9190615974565b606061146c8383600084600080856001600160a01b03168486604051614e429190615988565b60006040518083038185875af1925050503d8060008114614e7f576040519150601f19603f3d011682016040523d82523d6000602084013e614e84565b606091505b5091509150614e94868383614e9e565b9695505050505050565b606082614eb357614eae82614efa565b61146c565b8151158015614eca57506001600160a01b0384163b155b15614ef357604051639996b31560e01b81526001600160a01b0385166004820152602401610c3a565b508061146c565b805115614f0a5780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b6003811061134057600080fd5b606081018181106001600160401b0382111715614f5d57634e487b7160e01b600052604160045260246000fd5b60405250565b601f8201601f191681016001600160401b0381118282101715614f9657634e487b7160e01b600052604160045260246000fd5b6040525050565b60405161012081016001600160401b0381118282101715614fce57634e487b7160e01b600052604160045260246000fd5b60405290565b6001600160a01b038116811461134057600080fd5b803561ffff81168114614ffb57600080fd5b919050565b801515811461134057600080fd5b8035614ffb81615000565b803563ffffffff81168114614ffb57600080fd5b80356001600160401b0381168114614ffb57600080fd5b6000806000808486036101c081121561505c57600080fd5b853561506781614f23565b94506060601f198201121561507b57600080fd5b60405161508781614f30565b602087013561509581614fd4565b81526150a360408801614fe9565b602082015260608701356150b681614fd4565b60408201529350610120607f1982018113156150d157600080fd5b6150d9614f9d565b91506150e76080880161500e565b825260a087013560208301526150ff60c08801615019565b604083015261511060e0880161502d565b606083015261010061512381890161502d565b608084015261513382890161502d565b60a0840152615145610140890161502d565b60c0840152615157610160890161502d565b60e0840152615169610180890161502d565b9083015250915061517d6101a08601615019565b905092959194509250565b60006020828403121561519a57600080fd5b813561146c81614fd4565b6000602082840312156151b757600080fd5b5035919050565b6004811061134057600080fd5b6000806000606084860312156151e057600080fd5b83356151eb81614fd4565b925060208401356151fb816151be565b9150604084013561520b81614fd4565b809150509250925092565b60008060006060848603121561522b57600080fd5b8335925061523b6020850161502d565b9150604084013590509250925092565b6000806040838503121561525e57600080fd5b8235615269816151be565b946020939093013593505050565b6000806040838503121561528a57600080fd5b823561529581614fd4565b915060208301356152a5816151be565b809150509250929050565b60005b838110156152cb5781810151838201526020016152b3565b50506000910152565b60208152600082518060208401526152f38160408501602087016152b0565b601f01601f19169190910160400192915050565b6000806040838503121561531a57600080fd5b823561526981614fd4565b6020808252825182820181905260009190848201906040850190845b8181101561535d57835183529284019291840191600101615341565b50909695505050505050565b60008060006060848603121561537e57600080fd5b8335925060208401356002811061539457600080fd5b929592945050506040919091013590565b6000806000606084860312156153ba57600080fd5b83359250602084013561539481614f23565b6020808252825182820181905260009190848201906040850190845b8181101561535d5783516001600160a01b0316835292840192918401916001016153e8565b6000806000806080858703121561542357600080fd5b843593506020850135615435816151be565b92506154436040860161502d565b915061517d6060860161502d565b6000806040838503121561546457600080fd5b8235915060208301356152a581615000565b634e487b7160e01b600052602160045260246000fd5b6006811061549c5761549c615476565b9052565b87815260e081016154b4602083018961548c565b6001600160401b03968716604083015263ffffffff958616606083015293151560808201529190941660a08201529290911660c09092019190915292915050565b60008060006060848603121561550a57600080fd5b833561551581614fd4565b95602085013595506040909401359392505050565b60a08101615538828861548c565b6001600160401b0395909516602082015261ffff939093166040840152901515606083015263ffffffff16608090910152919050565b600080600080600060a0868803121561558657600080fd5b853594506155966020870161502d565b93506155a46040870161502d565b92506155b26060870161502d565b91506155c06080870161502d565b90509295509295909350565b6000806000606084860312156155e157600080fd5b83356155ec81614fd4565b925060208401356151fb81614fd4565b6000806000806080858703121561561257600080fd5b843561561d81614fd4565b9350602085013561562d81614fd4565b925061563b60408601614fe9565b915061517d60608601615019565b6000806000806080858703121561565f57600080fd5b84359350602085013561543581614f23565b60008060006060848603121561568657600080fd5b833592506156966020850161502d565b91506156a46040850161502d565b90509250925092565b6000806000606084860312156156c257600080fd5b83356156cd81614fd4565b9250602084013561539481614fd4565b8051825263ffffffff602082015116602083015260408101511515604083015260608101516001600160401b03808216606085015280608084015116608085015250505050565b60a08101611c8382846156dd565b60608101615740828661548c565b6001600160401b039390931660208201526001600160a01b0391909116604090910152919050565b60006020828403121561577a57600080fd5b815161146c81615000565b6020808252600e908201526d08551c9859195c9cd41bdc9d185b60921b604082015260600190565b6020808252600b908201526a1410525497d4105554d15160aa1b604082015260600190565b6101c081016157e1828761548c565b60018060a01b0380865116602084015261ffff602087015116604084015280604087015116606084015250835115156080830152602084015160a083015263ffffffff60408501511660c0830152606084015161584960e08401826001600160401b03169052565b506080840151610100615866818501836001600160401b03169052565b60a08601516001600160401b0390811661012086015260c0870151811661014086015260e0870151811661016086015290860151166101808401525063ffffffff83166101a083015261426a565b6000602082840312156158c657600080fd5b815161146c81614fd4565b6000602082840312156158e357600080fd5b5051919050565b60208082526009908201526821547269676765727360b81b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b63ffffffff8181168382160190808211156159405761594061590d565b5092915050565b8082028115828204841417611c8357611c8361590d565b634e487b7160e01b600052601260045260246000fd5b6000826159835761598361595e565b500490565b6000825161599a8184602087016152b0565b9190910192915050565b60208082526010908201526f2727afa9aaa1a42fa827a9a4aa24a7a760811b604082015260600190565b6020808252600b908201526a57524f4e475f504841534560a81b604082015260600190565b81810381811115611c8357611c8361590d565b60008060408385031215615a1957600080fd5b505080516020909101519092909150565b600060033d1115615a435760046000803e5060005160e01c5b90565b600060443d1015615a545790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715615a8357505050505090565b8285019150815181811115615a9b5750505050505090565b843d8701016020828501011115615ab55750505050505090565b615ac460208286010187614f63565b509095945050505050565b805160208201516001600160e01b03198082169291906004831015615afe5780818460040360031b1b83161693505b505050919050565b6040810160128410615b1a57615b1a615476565b9281526020015290565b6001600160401b038281168282160390808211156159405761594061590d565b6001600160401b038181168382160190808211156159405761594061590d565b80820260008212600160ff1b84141615615b8057615b8061590d565b8181058314821517611c8357611c8361590d565b80820180821115611c8357611c8361590d565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b8681526001600160a01b038616602082015261ffff851660408201526101408101615c0160608301866156dd565b8361010083015260058310615c1857615c18615476565b82610120830152979650505050505050565b60008060008060808587031215615c4057600080fd5b505082516020840151604085015160609095015191969095509092509050565b600782810b9082900b03677fffffffffffffff198112677fffffffffffffff82131715611c8357611c8361590d565b600082615c9e57615c9e61595e565b600160ff1b821460001984141615615cb857615cb861590d565b50059056fea26469706673582212207273a7eefdb6c212ff59cc546215dc0b65197ff444bb41b8d6e6c5b5dd635e8e64736f6c63430008180033";
|
|
1963
|
+
const isSuperArgs = (xs) => xs.length > 1;
|
|
1964
|
+
class TradingFloorV1__factory extends ethers_1.ContractFactory {
|
|
1965
|
+
constructor(...args) {
|
|
1966
|
+
if (isSuperArgs(args)) {
|
|
1967
|
+
super(...args);
|
|
1968
|
+
}
|
|
1969
|
+
else {
|
|
1970
|
+
super(_abi, _bytecode, args[0]);
|
|
1971
|
+
}
|
|
1972
|
+
}
|
|
1973
|
+
getDeployTransaction(overrides) {
|
|
1974
|
+
return super.getDeployTransaction(overrides || {});
|
|
1975
|
+
}
|
|
1976
|
+
deploy(overrides) {
|
|
1977
|
+
return super.deploy(overrides || {});
|
|
1978
|
+
}
|
|
1979
|
+
connect(runner) {
|
|
1980
|
+
return super.connect(runner);
|
|
1981
|
+
}
|
|
1982
|
+
static createInterface() {
|
|
1983
|
+
return new ethers_1.Interface(_abi);
|
|
1984
|
+
}
|
|
1985
|
+
static connect(address, runner) {
|
|
1986
|
+
return new ethers_1.Contract(address, _abi, runner);
|
|
1987
|
+
}
|
|
1988
|
+
}
|
|
1989
|
+
exports.TradingFloorV1__factory = TradingFloorV1__factory;
|
|
1990
|
+
TradingFloorV1__factory.bytecode = _bytecode;
|
|
1991
|
+
TradingFloorV1__factory.abi = _abi;
|