lynx-client 0.0.1-beta.8 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +392 -3
- package/dist/cjs/index.js +8 -0
- package/dist/cjs/lib/chains/chainMappings.js +17 -0
- package/dist/cjs/lib/constants/contractEnums.js +2 -0
- package/dist/cjs/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.js +15 -0
- package/dist/cjs/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.js +42 -0
- package/dist/cjs/lib/contractsIntegration/IntentsVerifierLensService/index.js +18 -0
- package/dist/cjs/lib/contractsIntegration/LexLensService/ILexLensService.js +137 -0
- package/dist/cjs/lib/contractsIntegration/LexLensService/LexLensService.js +250 -0
- package/dist/cjs/lib/contractsIntegration/LexLensService/index.js +18 -0
- package/dist/cjs/lib/contractsIntegration/OrderBookService/IOrderBookService.js +2 -0
- package/dist/cjs/lib/contractsIntegration/OrderBookService/OrderBookService.js +92 -0
- package/dist/cjs/lib/contractsIntegration/TradersPortalService/ITradersPortalService.js +2 -0
- package/dist/cjs/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +157 -0
- package/dist/cjs/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.js +64 -0
- package/dist/cjs/lib/contractsIntegration/TradersPortalService/index.js +19 -0
- package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.js +61 -0
- package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +147 -0
- package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/index.js +18 -0
- package/dist/cjs/lib/contractsIntegration/TradingFloorService/ITradingFloorService.js +2 -0
- package/dist/cjs/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +158 -0
- package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.js +30 -0
- package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.js +58 -0
- package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/index.js +18 -0
- package/dist/cjs/lib/contractsIntegration/TriggersService/ITriggersService.js +2 -0
- package/dist/cjs/lib/contractsIntegration/TriggersService/TriggersService.js +188 -0
- package/dist/cjs/lib/contractsIntegration/deployedContractsConnector.js +119 -8
- package/dist/cjs/lib/devex/getChainAddresses.js +65 -0
- package/dist/cjs/lib/devex/getSupportedEngineChains.js +45 -0
- package/dist/cjs/lib/devex/index.js +9 -0
- package/dist/cjs/lib/devex/types.js +2 -0
- package/dist/cjs/lib/lynxSystem/hashes.js +9 -0
- package/dist/cjs/lib/lynxSystem/lynxScalesUtils.js +8 -0
- package/dist/cjs/lib/lynxSystem/registry/registryReading.js +38 -0
- package/dist/cjs/lib/priceFeeds/pyth/pythFeedConstants.js +1 -2
- package/dist/cjs/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.js +2 -0
- package/dist/cjs/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.js +2 -0
- package/dist/cjs/lib/typechain/contracts/Lynx/Registry/RegistryProxy.js +2 -0
- package/dist/cjs/lib/typechain/contracts/Lynx/Registry/RegistryV1.js +2 -0
- package/dist/cjs/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.js +2 -0
- package/dist/cjs/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.js +2 -0
- package/dist/cjs/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.js +2 -0
- package/dist/cjs/lib/typechain/contracts/Lynx/Triggers/TriggersV1.js +2 -0
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.js +258 -0
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +539 -0
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.js +226 -0
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.js +1108 -0
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +966 -0
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.js +258 -0
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +1774 -0
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +1459 -0
- package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +1 -1
- package/dist/cjs/lib/utils/ethersTypes.js +29 -6
- package/dist/esm/index.d.ts +7 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +8 -0
- package/dist/esm/lib/chains/chainMappings.d.ts +13 -0
- package/dist/esm/lib/chains/chainMappings.d.ts.map +1 -0
- package/dist/esm/lib/chains/chainMappings.js +17 -0
- package/dist/esm/lib/chains/chainTypes.d.ts +3 -0
- package/dist/esm/lib/chains/chainTypes.d.ts.map +1 -1
- package/dist/esm/lib/constants/contractEnums.d.ts +1 -0
- package/dist/esm/lib/constants/contractEnums.d.ts.map +1 -1
- package/dist/esm/lib/constants/contractEnums.js +2 -0
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts +20 -0
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.js +15 -0
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts +11 -0
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.js +42 -0
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/index.d.ts +3 -0
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/index.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/index.js +18 -0
- package/dist/esm/lib/contractsIntegration/LexLensService/ILexLensService.d.ts +85 -0
- package/dist/esm/lib/contractsIntegration/LexLensService/ILexLensService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/LexLensService/ILexLensService.js +137 -0
- package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.d.ts +34 -0
- package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.js +250 -0
- package/dist/esm/lib/contractsIntegration/LexLensService/index.d.ts +3 -0
- package/dist/esm/lib/contractsIntegration/LexLensService/index.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/LexLensService/index.js +18 -0
- package/dist/esm/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts +40 -0
- package/dist/esm/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/OrderBookService/IOrderBookService.js +2 -0
- package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts +12 -0
- package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.js +92 -0
- package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts +61 -0
- package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.js +2 -0
- package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts +14 -0
- package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +157 -0
- package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.d.ts +32 -0
- package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.js +64 -0
- package/dist/esm/lib/contractsIntegration/TradersPortalService/index.d.ts +4 -0
- package/dist/esm/lib/contractsIntegration/TradersPortalService/index.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/TradersPortalService/index.js +19 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +76 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.js +61 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts +16 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +147 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/index.d.ts +3 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/index.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/index.js +18 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts +83 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.js +2 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts +80 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +158 -0
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts +33 -0
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.js +30 -0
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts +11 -0
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.js +58 -0
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/index.d.ts +3 -0
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/index.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/index.js +18 -0
- package/dist/esm/lib/contractsIntegration/TriggersService/ITriggersService.d.ts +73 -0
- package/dist/esm/lib/contractsIntegration/TriggersService/ITriggersService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/TriggersService/ITriggersService.js +2 -0
- package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.d.ts +18 -0
- package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.js +188 -0
- package/dist/esm/lib/contractsIntegration/deployedContractsConnector.d.ts +44 -5
- package/dist/esm/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/deployedContractsConnector.js +119 -8
- package/dist/esm/lib/devex/getChainAddresses.d.ts +20 -0
- package/dist/esm/lib/devex/getChainAddresses.d.ts.map +1 -0
- package/dist/esm/lib/devex/getChainAddresses.js +65 -0
- package/dist/esm/lib/devex/getSupportedEngineChains.d.ts +37 -0
- package/dist/esm/lib/devex/getSupportedEngineChains.d.ts.map +1 -0
- package/dist/esm/lib/devex/getSupportedEngineChains.js +45 -0
- package/dist/esm/lib/devex/index.d.ts +5 -0
- package/dist/esm/lib/devex/index.d.ts.map +1 -0
- package/dist/esm/lib/devex/index.js +9 -0
- package/dist/esm/lib/devex/types.d.ts +20 -0
- package/dist/esm/lib/devex/types.d.ts.map +1 -0
- package/dist/esm/lib/devex/types.js +2 -0
- package/dist/esm/lib/lynxSystem/hashes.d.ts +6 -0
- package/dist/esm/lib/lynxSystem/hashes.d.ts.map +1 -1
- package/dist/esm/lib/lynxSystem/hashes.js +9 -0
- package/dist/esm/lib/lynxSystem/lynxScalesUtils.d.ts +2 -0
- package/dist/esm/lib/lynxSystem/lynxScalesUtils.d.ts.map +1 -1
- package/dist/esm/lib/lynxSystem/lynxScalesUtils.js +8 -0
- package/dist/esm/lib/lynxSystem/registry/registryReading.d.ts +9 -0
- package/dist/esm/lib/lynxSystem/registry/registryReading.d.ts.map +1 -0
- package/dist/esm/lib/lynxSystem/registry/registryReading.js +38 -0
- package/dist/esm/lib/priceFeeds/pyth/pythFeedConstants.d.ts.map +1 -1
- package/dist/esm/lib/priceFeeds/pyth/pythFeedConstants.js +1 -2
- package/dist/esm/lib/typechain/common.d.ts.map +1 -1
- package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.d.ts +151 -0
- package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.d.ts.map +1 -0
- package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.js +2 -0
- package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.d.ts +268 -0
- package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.d.ts.map +1 -0
- package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.js +2 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryProxy.d.ts +143 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryProxy.d.ts.map +1 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryProxy.js +2 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryV1.d.ts +603 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryV1.d.ts.map +1 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryV1.js +2 -0
- package/dist/esm/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts +571 -0
- package/dist/esm/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts.map +1 -0
- package/dist/esm/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.js +2 -0
- package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.d.ts +151 -0
- package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.d.ts.map +1 -0
- package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.js +2 -0
- package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts +1160 -0
- package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts.map +1 -0
- package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.js +2 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts +977 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts.map +1 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.js +2 -0
- package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts +1 -3
- package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts.map +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.d.ts +193 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.d.ts.map +1 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.js +258 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +407 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts.map +1 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +539 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.d.ts +169 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.d.ts.map +1 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.js +226 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts +841 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts.map +1 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.js +1108 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +745 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts.map +1 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +966 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.d.ts +193 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.d.ts.map +1 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.js +258 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +1374 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +1774 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +1135 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts.map +1 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +1459 -0
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +1 -1
- package/dist/esm/lib/utils/ethersTypes.d.ts +2 -2
- package/dist/esm/lib/utils/ethersTypes.d.ts.map +1 -1
- package/dist/esm/lib/utils/ethersTypes.js +29 -6
- package/dist/types/index.d.ts +7 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/lib/chains/chainMappings.d.ts +13 -0
- package/dist/types/lib/chains/chainMappings.d.ts.map +1 -0
- package/dist/types/lib/chains/chainTypes.d.ts +3 -0
- package/dist/types/lib/chains/chainTypes.d.ts.map +1 -1
- package/dist/types/lib/constants/contractEnums.d.ts +1 -0
- package/dist/types/lib/constants/contractEnums.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts +20 -0
- package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts +11 -0
- package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/index.d.ts +3 -0
- package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/index.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/LexLensService/ILexLensService.d.ts +85 -0
- package/dist/types/lib/contractsIntegration/LexLensService/ILexLensService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/LexLensService/LexLensService.d.ts +34 -0
- package/dist/types/lib/contractsIntegration/LexLensService/LexLensService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/LexLensService/index.d.ts +3 -0
- package/dist/types/lib/contractsIntegration/LexLensService/index.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts +40 -0
- package/dist/types/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts +12 -0
- package/dist/types/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts +61 -0
- package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts +14 -0
- package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.d.ts +32 -0
- package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/TradersPortalService/index.d.ts +4 -0
- package/dist/types/lib/contractsIntegration/TradersPortalService/index.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +76 -0
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts +16 -0
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/index.d.ts +3 -0
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/index.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts +83 -0
- package/dist/types/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts +80 -0
- package/dist/types/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts +33 -0
- package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts +11 -0
- package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/index.d.ts +3 -0
- package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/index.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/TriggersService/ITriggersService.d.ts +73 -0
- package/dist/types/lib/contractsIntegration/TriggersService/ITriggersService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/TriggersService/TriggersService.d.ts +18 -0
- package/dist/types/lib/contractsIntegration/TriggersService/TriggersService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/deployedContractsConnector.d.ts +44 -5
- package/dist/types/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -1
- package/dist/types/lib/devex/getChainAddresses.d.ts +20 -0
- package/dist/types/lib/devex/getChainAddresses.d.ts.map +1 -0
- package/dist/types/lib/devex/getSupportedEngineChains.d.ts +37 -0
- package/dist/types/lib/devex/getSupportedEngineChains.d.ts.map +1 -0
- package/dist/types/lib/devex/index.d.ts +5 -0
- package/dist/types/lib/devex/index.d.ts.map +1 -0
- package/dist/types/lib/devex/types.d.ts +20 -0
- package/dist/types/lib/devex/types.d.ts.map +1 -0
- package/dist/types/lib/lynxSystem/hashes.d.ts +6 -0
- package/dist/types/lib/lynxSystem/hashes.d.ts.map +1 -1
- package/dist/types/lib/lynxSystem/lynxScalesUtils.d.ts +2 -0
- package/dist/types/lib/lynxSystem/lynxScalesUtils.d.ts.map +1 -1
- package/dist/types/lib/lynxSystem/registry/registryReading.d.ts +9 -0
- package/dist/types/lib/lynxSystem/registry/registryReading.d.ts.map +1 -0
- package/dist/types/lib/priceFeeds/pyth/pythFeedConstants.d.ts.map +1 -1
- package/dist/types/lib/typechain/common.d.ts.map +1 -1
- package/dist/types/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.d.ts +151 -0
- package/dist/types/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.d.ts.map +1 -0
- package/dist/types/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.d.ts +268 -0
- package/dist/types/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.d.ts.map +1 -0
- package/dist/types/lib/typechain/contracts/Lynx/Registry/RegistryProxy.d.ts +143 -0
- package/dist/types/lib/typechain/contracts/Lynx/Registry/RegistryProxy.d.ts.map +1 -0
- package/dist/types/lib/typechain/contracts/Lynx/Registry/RegistryV1.d.ts +603 -0
- package/dist/types/lib/typechain/contracts/Lynx/Registry/RegistryV1.d.ts.map +1 -0
- package/dist/types/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts +571 -0
- package/dist/types/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts.map +1 -0
- package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.d.ts +151 -0
- package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.d.ts.map +1 -0
- package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts +1160 -0
- package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts.map +1 -0
- package/dist/types/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts +977 -0
- package/dist/types/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts.map +1 -0
- package/dist/types/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts +1 -3
- package/dist/types/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts.map +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.d.ts +193 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.d.ts.map +1 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +407 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts.map +1 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.d.ts +169 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.d.ts.map +1 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts +841 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts.map +1 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +745 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts.map +1 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.d.ts +193 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.d.ts.map +1 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +1374 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +1135 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts.map +1 -0
- package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +1 -1
- package/dist/types/lib/utils/ethersTypes.d.ts +2 -2
- package/dist/types/lib/utils/ethersTypes.d.ts.map +1 -1
- package/package.json +7 -7
|
@@ -0,0 +1,977 @@
|
|
|
1
|
+
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../../common";
|
|
3
|
+
export declare namespace IPriceValidatorV1 {
|
|
4
|
+
type ValidatedPriceStruct = {
|
|
5
|
+
timestamp: BigNumberish;
|
|
6
|
+
price: BigNumberish;
|
|
7
|
+
confidence: BigNumberish;
|
|
8
|
+
};
|
|
9
|
+
type ValidatedPriceStructOutput = [
|
|
10
|
+
timestamp: bigint,
|
|
11
|
+
price: bigint,
|
|
12
|
+
confidence: bigint
|
|
13
|
+
] & {
|
|
14
|
+
timestamp: bigint;
|
|
15
|
+
price: bigint;
|
|
16
|
+
confidence: bigint;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export interface TriggersV1Interface extends Interface {
|
|
20
|
+
getFunction(nameOrSignature: "ACCURACY_IMPROVEMENT_SCALE" | "FRACTION_SCALE" | "LEVERAGE_SCALE" | "MAX_ALLOWED_CONFIDENCE_FRACTION" | "MAX_ALLOWED_SPREAD_FRACTION" | "PRECISION" | "_acceptAdmin" | "_setPendingAdmin" | "admin" | "allowTriggerAccount" | "disallowTriggerAccount" | "getAllTriggerPermissionedAccounts" | "getValidatedPrice" | "isAllowedToTrigger" | "isDone" | "isPaused" | "marketOrderCancelFeeFraction" | "marketOrderTightTimeRange" | "marketOrdersTimeout" | "maxConfidenceFractionForPair" | "maxTriggerPeriodForMarketOrders" | "maxTriggersPerBlock" | "minTriggerPeriodForLimitOrders" | "minTriggerPeriodForMarketOrders" | "openPositionCancellationFeeFraction" | "orderBook" | "pendingAdmin" | "priceValidator" | "setMarketOrderCancelFeeFraction" | "setMarketOrderTightTimeRange" | "setMarketOrdersTimeout" | "setMaxConfidenceForPair" | "setMaxTriggerPeriodForMarketOrders" | "setMaxTriggersPerBlock" | "setMinTriggerPeriodForLimitOrders" | "setMinTriggerPeriodForMarketOrders" | "setOpenPositionCancellationFeeFraction" | "setPriceValidator" | "setSpreadFractionForPair" | "setTriggerPriceFreshnessTimeRange" | "spreadFractionForPair" | "toggleDone" | "togglePause" | "tradingFloor" | "triggerPriceFreshnessTimeRange" | "trigger_closeTrade_LIQ" | "trigger_closeTrade_SL" | "trigger_closeTrade_TP" | "trigger_closeTrade_market" | "trigger_openTrade_limit" | "trigger_openTrade_market" | "trigger_timeout_marketClose" | "trigger_timeout_marketOpen" | "trigger_timeout_updatePosition" | "trigger_update_SL" | "trigger_update_TP" | "trigger_update_TP_and_SL" | "triggersPerBlock"): FunctionFragment;
|
|
21
|
+
getEvent(nameOrSignatureOrTopic: "AddressUpdated" | "ClosePositionExecuted" | "DoneToggled" | "LiquidationExecuted" | "MarketCloseTimeoutTriggered" | "MarketOpenTimeoutTriggered" | "MaxConfidenceForPairSet" | "NewAdmin" | "NewPendingAdmin" | "NumberUpdated" | "OpenPositionExecuted" | "PausedToggled" | "PositionUpdateTimeoutTriggered" | "SlExecuted" | "SpreadFractionForPairSet" | "TpExecuted" | "TriggerAccountAllowed" | "TriggerAccountDisallowed" | "UpdatePositionSingleFieldExecuted" | "UpdatePositionSingleFieldRejected"): EventFragment;
|
|
22
|
+
encodeFunctionData(functionFragment: "ACCURACY_IMPROVEMENT_SCALE", values?: undefined): string;
|
|
23
|
+
encodeFunctionData(functionFragment: "FRACTION_SCALE", values?: undefined): string;
|
|
24
|
+
encodeFunctionData(functionFragment: "LEVERAGE_SCALE", values?: undefined): string;
|
|
25
|
+
encodeFunctionData(functionFragment: "MAX_ALLOWED_CONFIDENCE_FRACTION", values?: undefined): string;
|
|
26
|
+
encodeFunctionData(functionFragment: "MAX_ALLOWED_SPREAD_FRACTION", values?: undefined): string;
|
|
27
|
+
encodeFunctionData(functionFragment: "PRECISION", values?: undefined): string;
|
|
28
|
+
encodeFunctionData(functionFragment: "_acceptAdmin", values?: undefined): string;
|
|
29
|
+
encodeFunctionData(functionFragment: "_setPendingAdmin", values: [AddressLike]): string;
|
|
30
|
+
encodeFunctionData(functionFragment: "admin", values?: undefined): string;
|
|
31
|
+
encodeFunctionData(functionFragment: "allowTriggerAccount", values: [AddressLike]): string;
|
|
32
|
+
encodeFunctionData(functionFragment: "disallowTriggerAccount", values: [AddressLike]): string;
|
|
33
|
+
encodeFunctionData(functionFragment: "getAllTriggerPermissionedAccounts", values?: undefined): string;
|
|
34
|
+
encodeFunctionData(functionFragment: "getValidatedPrice", values: [BigNumberish, BytesLike[]]): string;
|
|
35
|
+
encodeFunctionData(functionFragment: "isAllowedToTrigger", values: [AddressLike]): string;
|
|
36
|
+
encodeFunctionData(functionFragment: "isDone", values?: undefined): string;
|
|
37
|
+
encodeFunctionData(functionFragment: "isPaused", values?: undefined): string;
|
|
38
|
+
encodeFunctionData(functionFragment: "marketOrderCancelFeeFraction", values?: undefined): string;
|
|
39
|
+
encodeFunctionData(functionFragment: "marketOrderTightTimeRange", values?: undefined): string;
|
|
40
|
+
encodeFunctionData(functionFragment: "marketOrdersTimeout", values?: undefined): string;
|
|
41
|
+
encodeFunctionData(functionFragment: "maxConfidenceFractionForPair", values: [BigNumberish]): string;
|
|
42
|
+
encodeFunctionData(functionFragment: "maxTriggerPeriodForMarketOrders", values?: undefined): string;
|
|
43
|
+
encodeFunctionData(functionFragment: "maxTriggersPerBlock", values?: undefined): string;
|
|
44
|
+
encodeFunctionData(functionFragment: "minTriggerPeriodForLimitOrders", values?: undefined): string;
|
|
45
|
+
encodeFunctionData(functionFragment: "minTriggerPeriodForMarketOrders", values?: undefined): string;
|
|
46
|
+
encodeFunctionData(functionFragment: "openPositionCancellationFeeFraction", values?: undefined): string;
|
|
47
|
+
encodeFunctionData(functionFragment: "orderBook", values?: undefined): string;
|
|
48
|
+
encodeFunctionData(functionFragment: "pendingAdmin", values?: undefined): string;
|
|
49
|
+
encodeFunctionData(functionFragment: "priceValidator", values?: undefined): string;
|
|
50
|
+
encodeFunctionData(functionFragment: "setMarketOrderCancelFeeFraction", values: [BigNumberish]): string;
|
|
51
|
+
encodeFunctionData(functionFragment: "setMarketOrderTightTimeRange", values: [BigNumberish]): string;
|
|
52
|
+
encodeFunctionData(functionFragment: "setMarketOrdersTimeout", values: [BigNumberish]): string;
|
|
53
|
+
encodeFunctionData(functionFragment: "setMaxConfidenceForPair", values: [BigNumberish, BigNumberish]): string;
|
|
54
|
+
encodeFunctionData(functionFragment: "setMaxTriggerPeriodForMarketOrders", values: [BigNumberish]): string;
|
|
55
|
+
encodeFunctionData(functionFragment: "setMaxTriggersPerBlock", values: [BigNumberish]): string;
|
|
56
|
+
encodeFunctionData(functionFragment: "setMinTriggerPeriodForLimitOrders", values: [BigNumberish]): string;
|
|
57
|
+
encodeFunctionData(functionFragment: "setMinTriggerPeriodForMarketOrders", values: [BigNumberish]): string;
|
|
58
|
+
encodeFunctionData(functionFragment: "setOpenPositionCancellationFeeFraction", values: [BigNumberish]): string;
|
|
59
|
+
encodeFunctionData(functionFragment: "setPriceValidator", values: [AddressLike]): string;
|
|
60
|
+
encodeFunctionData(functionFragment: "setSpreadFractionForPair", values: [BigNumberish, BigNumberish]): string;
|
|
61
|
+
encodeFunctionData(functionFragment: "setTriggerPriceFreshnessTimeRange", values: [BigNumberish]): string;
|
|
62
|
+
encodeFunctionData(functionFragment: "spreadFractionForPair", values: [BigNumberish]): string;
|
|
63
|
+
encodeFunctionData(functionFragment: "toggleDone", values?: undefined): string;
|
|
64
|
+
encodeFunctionData(functionFragment: "togglePause", values?: undefined): string;
|
|
65
|
+
encodeFunctionData(functionFragment: "tradingFloor", values?: undefined): string;
|
|
66
|
+
encodeFunctionData(functionFragment: "triggerPriceFreshnessTimeRange", values?: undefined): string;
|
|
67
|
+
encodeFunctionData(functionFragment: "trigger_closeTrade_LIQ", values: [BytesLike, BytesLike[]]): string;
|
|
68
|
+
encodeFunctionData(functionFragment: "trigger_closeTrade_SL", values: [BytesLike, BytesLike[]]): string;
|
|
69
|
+
encodeFunctionData(functionFragment: "trigger_closeTrade_TP", values: [BytesLike, BytesLike[]]): string;
|
|
70
|
+
encodeFunctionData(functionFragment: "trigger_closeTrade_market", values: [BytesLike, BytesLike[]]): string;
|
|
71
|
+
encodeFunctionData(functionFragment: "trigger_openTrade_limit", values: [BytesLike, BytesLike[]]): string;
|
|
72
|
+
encodeFunctionData(functionFragment: "trigger_openTrade_market", values: [BytesLike, BytesLike[]]): string;
|
|
73
|
+
encodeFunctionData(functionFragment: "trigger_timeout_marketClose", values: [BytesLike]): string;
|
|
74
|
+
encodeFunctionData(functionFragment: "trigger_timeout_marketOpen", values: [BytesLike]): string;
|
|
75
|
+
encodeFunctionData(functionFragment: "trigger_timeout_updatePosition", values: [BytesLike]): string;
|
|
76
|
+
encodeFunctionData(functionFragment: "trigger_update_SL", values: [BytesLike, BytesLike[]]): string;
|
|
77
|
+
encodeFunctionData(functionFragment: "trigger_update_TP", values: [BytesLike, BytesLike[]]): string;
|
|
78
|
+
encodeFunctionData(functionFragment: "trigger_update_TP_and_SL", values: [BytesLike, BytesLike[]]): string;
|
|
79
|
+
encodeFunctionData(functionFragment: "triggersPerBlock", values: [BigNumberish]): string;
|
|
80
|
+
decodeFunctionResult(functionFragment: "ACCURACY_IMPROVEMENT_SCALE", data: BytesLike): Result;
|
|
81
|
+
decodeFunctionResult(functionFragment: "FRACTION_SCALE", data: BytesLike): Result;
|
|
82
|
+
decodeFunctionResult(functionFragment: "LEVERAGE_SCALE", data: BytesLike): Result;
|
|
83
|
+
decodeFunctionResult(functionFragment: "MAX_ALLOWED_CONFIDENCE_FRACTION", data: BytesLike): Result;
|
|
84
|
+
decodeFunctionResult(functionFragment: "MAX_ALLOWED_SPREAD_FRACTION", data: BytesLike): Result;
|
|
85
|
+
decodeFunctionResult(functionFragment: "PRECISION", data: BytesLike): Result;
|
|
86
|
+
decodeFunctionResult(functionFragment: "_acceptAdmin", data: BytesLike): Result;
|
|
87
|
+
decodeFunctionResult(functionFragment: "_setPendingAdmin", data: BytesLike): Result;
|
|
88
|
+
decodeFunctionResult(functionFragment: "admin", data: BytesLike): Result;
|
|
89
|
+
decodeFunctionResult(functionFragment: "allowTriggerAccount", data: BytesLike): Result;
|
|
90
|
+
decodeFunctionResult(functionFragment: "disallowTriggerAccount", data: BytesLike): Result;
|
|
91
|
+
decodeFunctionResult(functionFragment: "getAllTriggerPermissionedAccounts", data: BytesLike): Result;
|
|
92
|
+
decodeFunctionResult(functionFragment: "getValidatedPrice", data: BytesLike): Result;
|
|
93
|
+
decodeFunctionResult(functionFragment: "isAllowedToTrigger", data: BytesLike): Result;
|
|
94
|
+
decodeFunctionResult(functionFragment: "isDone", data: BytesLike): Result;
|
|
95
|
+
decodeFunctionResult(functionFragment: "isPaused", data: BytesLike): Result;
|
|
96
|
+
decodeFunctionResult(functionFragment: "marketOrderCancelFeeFraction", data: BytesLike): Result;
|
|
97
|
+
decodeFunctionResult(functionFragment: "marketOrderTightTimeRange", data: BytesLike): Result;
|
|
98
|
+
decodeFunctionResult(functionFragment: "marketOrdersTimeout", data: BytesLike): Result;
|
|
99
|
+
decodeFunctionResult(functionFragment: "maxConfidenceFractionForPair", data: BytesLike): Result;
|
|
100
|
+
decodeFunctionResult(functionFragment: "maxTriggerPeriodForMarketOrders", data: BytesLike): Result;
|
|
101
|
+
decodeFunctionResult(functionFragment: "maxTriggersPerBlock", data: BytesLike): Result;
|
|
102
|
+
decodeFunctionResult(functionFragment: "minTriggerPeriodForLimitOrders", data: BytesLike): Result;
|
|
103
|
+
decodeFunctionResult(functionFragment: "minTriggerPeriodForMarketOrders", data: BytesLike): Result;
|
|
104
|
+
decodeFunctionResult(functionFragment: "openPositionCancellationFeeFraction", data: BytesLike): Result;
|
|
105
|
+
decodeFunctionResult(functionFragment: "orderBook", data: BytesLike): Result;
|
|
106
|
+
decodeFunctionResult(functionFragment: "pendingAdmin", data: BytesLike): Result;
|
|
107
|
+
decodeFunctionResult(functionFragment: "priceValidator", data: BytesLike): Result;
|
|
108
|
+
decodeFunctionResult(functionFragment: "setMarketOrderCancelFeeFraction", data: BytesLike): Result;
|
|
109
|
+
decodeFunctionResult(functionFragment: "setMarketOrderTightTimeRange", data: BytesLike): Result;
|
|
110
|
+
decodeFunctionResult(functionFragment: "setMarketOrdersTimeout", data: BytesLike): Result;
|
|
111
|
+
decodeFunctionResult(functionFragment: "setMaxConfidenceForPair", data: BytesLike): Result;
|
|
112
|
+
decodeFunctionResult(functionFragment: "setMaxTriggerPeriodForMarketOrders", data: BytesLike): Result;
|
|
113
|
+
decodeFunctionResult(functionFragment: "setMaxTriggersPerBlock", data: BytesLike): Result;
|
|
114
|
+
decodeFunctionResult(functionFragment: "setMinTriggerPeriodForLimitOrders", data: BytesLike): Result;
|
|
115
|
+
decodeFunctionResult(functionFragment: "setMinTriggerPeriodForMarketOrders", data: BytesLike): Result;
|
|
116
|
+
decodeFunctionResult(functionFragment: "setOpenPositionCancellationFeeFraction", data: BytesLike): Result;
|
|
117
|
+
decodeFunctionResult(functionFragment: "setPriceValidator", data: BytesLike): Result;
|
|
118
|
+
decodeFunctionResult(functionFragment: "setSpreadFractionForPair", data: BytesLike): Result;
|
|
119
|
+
decodeFunctionResult(functionFragment: "setTriggerPriceFreshnessTimeRange", data: BytesLike): Result;
|
|
120
|
+
decodeFunctionResult(functionFragment: "spreadFractionForPair", data: BytesLike): Result;
|
|
121
|
+
decodeFunctionResult(functionFragment: "toggleDone", data: BytesLike): Result;
|
|
122
|
+
decodeFunctionResult(functionFragment: "togglePause", data: BytesLike): Result;
|
|
123
|
+
decodeFunctionResult(functionFragment: "tradingFloor", data: BytesLike): Result;
|
|
124
|
+
decodeFunctionResult(functionFragment: "triggerPriceFreshnessTimeRange", data: BytesLike): Result;
|
|
125
|
+
decodeFunctionResult(functionFragment: "trigger_closeTrade_LIQ", data: BytesLike): Result;
|
|
126
|
+
decodeFunctionResult(functionFragment: "trigger_closeTrade_SL", data: BytesLike): Result;
|
|
127
|
+
decodeFunctionResult(functionFragment: "trigger_closeTrade_TP", data: BytesLike): Result;
|
|
128
|
+
decodeFunctionResult(functionFragment: "trigger_closeTrade_market", data: BytesLike): Result;
|
|
129
|
+
decodeFunctionResult(functionFragment: "trigger_openTrade_limit", data: BytesLike): Result;
|
|
130
|
+
decodeFunctionResult(functionFragment: "trigger_openTrade_market", data: BytesLike): Result;
|
|
131
|
+
decodeFunctionResult(functionFragment: "trigger_timeout_marketClose", data: BytesLike): Result;
|
|
132
|
+
decodeFunctionResult(functionFragment: "trigger_timeout_marketOpen", data: BytesLike): Result;
|
|
133
|
+
decodeFunctionResult(functionFragment: "trigger_timeout_updatePosition", data: BytesLike): Result;
|
|
134
|
+
decodeFunctionResult(functionFragment: "trigger_update_SL", data: BytesLike): Result;
|
|
135
|
+
decodeFunctionResult(functionFragment: "trigger_update_TP", data: BytesLike): Result;
|
|
136
|
+
decodeFunctionResult(functionFragment: "trigger_update_TP_and_SL", data: BytesLike): Result;
|
|
137
|
+
decodeFunctionResult(functionFragment: "triggersPerBlock", data: BytesLike): Result;
|
|
138
|
+
}
|
|
139
|
+
export declare namespace AddressUpdatedEvent {
|
|
140
|
+
type InputTuple = [name: string, value: AddressLike];
|
|
141
|
+
type OutputTuple = [name: string, value: string];
|
|
142
|
+
interface OutputObject {
|
|
143
|
+
name: string;
|
|
144
|
+
value: string;
|
|
145
|
+
}
|
|
146
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
147
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
148
|
+
type Log = TypedEventLog<Event>;
|
|
149
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
150
|
+
}
|
|
151
|
+
export declare namespace ClosePositionExecutedEvent {
|
|
152
|
+
type InputTuple = [
|
|
153
|
+
triggerer: AddressLike,
|
|
154
|
+
positionId: BytesLike,
|
|
155
|
+
phase: BigNumberish,
|
|
156
|
+
triggerPrice: BigNumberish,
|
|
157
|
+
basePrice: BigNumberish,
|
|
158
|
+
priceTimestamp: BigNumberish
|
|
159
|
+
];
|
|
160
|
+
type OutputTuple = [
|
|
161
|
+
triggerer: string,
|
|
162
|
+
positionId: string,
|
|
163
|
+
phase: bigint,
|
|
164
|
+
triggerPrice: bigint,
|
|
165
|
+
basePrice: bigint,
|
|
166
|
+
priceTimestamp: bigint
|
|
167
|
+
];
|
|
168
|
+
interface OutputObject {
|
|
169
|
+
triggerer: string;
|
|
170
|
+
positionId: string;
|
|
171
|
+
phase: bigint;
|
|
172
|
+
triggerPrice: bigint;
|
|
173
|
+
basePrice: bigint;
|
|
174
|
+
priceTimestamp: bigint;
|
|
175
|
+
}
|
|
176
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
177
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
178
|
+
type Log = TypedEventLog<Event>;
|
|
179
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
180
|
+
}
|
|
181
|
+
export declare namespace DoneToggledEvent {
|
|
182
|
+
type InputTuple = [done: boolean];
|
|
183
|
+
type OutputTuple = [done: boolean];
|
|
184
|
+
interface OutputObject {
|
|
185
|
+
done: boolean;
|
|
186
|
+
}
|
|
187
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
188
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
189
|
+
type Log = TypedEventLog<Event>;
|
|
190
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
191
|
+
}
|
|
192
|
+
export declare namespace LiquidationExecutedEvent {
|
|
193
|
+
type InputTuple = [
|
|
194
|
+
triggerer: AddressLike,
|
|
195
|
+
positionId: BytesLike,
|
|
196
|
+
pairId: BigNumberish,
|
|
197
|
+
triggerPrice: BigNumberish,
|
|
198
|
+
basePrice: BigNumberish,
|
|
199
|
+
priceTimestamp: BigNumberish
|
|
200
|
+
];
|
|
201
|
+
type OutputTuple = [
|
|
202
|
+
triggerer: string,
|
|
203
|
+
positionId: string,
|
|
204
|
+
pairId: bigint,
|
|
205
|
+
triggerPrice: bigint,
|
|
206
|
+
basePrice: bigint,
|
|
207
|
+
priceTimestamp: bigint
|
|
208
|
+
];
|
|
209
|
+
interface OutputObject {
|
|
210
|
+
triggerer: string;
|
|
211
|
+
positionId: string;
|
|
212
|
+
pairId: bigint;
|
|
213
|
+
triggerPrice: bigint;
|
|
214
|
+
basePrice: bigint;
|
|
215
|
+
priceTimestamp: bigint;
|
|
216
|
+
}
|
|
217
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
218
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
219
|
+
type Log = TypedEventLog<Event>;
|
|
220
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
221
|
+
}
|
|
222
|
+
export declare namespace MarketCloseTimeoutTriggeredEvent {
|
|
223
|
+
type InputTuple = [
|
|
224
|
+
triggerer: AddressLike,
|
|
225
|
+
positionId: BytesLike,
|
|
226
|
+
pairId: BigNumberish
|
|
227
|
+
];
|
|
228
|
+
type OutputTuple = [
|
|
229
|
+
triggerer: string,
|
|
230
|
+
positionId: string,
|
|
231
|
+
pairId: bigint
|
|
232
|
+
];
|
|
233
|
+
interface OutputObject {
|
|
234
|
+
triggerer: string;
|
|
235
|
+
positionId: string;
|
|
236
|
+
pairId: bigint;
|
|
237
|
+
}
|
|
238
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
239
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
240
|
+
type Log = TypedEventLog<Event>;
|
|
241
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
242
|
+
}
|
|
243
|
+
export declare namespace MarketOpenTimeoutTriggeredEvent {
|
|
244
|
+
type InputTuple = [
|
|
245
|
+
triggerer: AddressLike,
|
|
246
|
+
positionId: BytesLike,
|
|
247
|
+
pairId: BigNumberish
|
|
248
|
+
];
|
|
249
|
+
type OutputTuple = [
|
|
250
|
+
triggerer: string,
|
|
251
|
+
positionId: string,
|
|
252
|
+
pairId: bigint
|
|
253
|
+
];
|
|
254
|
+
interface OutputObject {
|
|
255
|
+
triggerer: string;
|
|
256
|
+
positionId: string;
|
|
257
|
+
pairId: bigint;
|
|
258
|
+
}
|
|
259
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
260
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
261
|
+
type Log = TypedEventLog<Event>;
|
|
262
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
263
|
+
}
|
|
264
|
+
export declare namespace MaxConfidenceForPairSetEvent {
|
|
265
|
+
type InputTuple = [
|
|
266
|
+
pairId: BigNumberish,
|
|
267
|
+
maxConfidenceFraction: BigNumberish
|
|
268
|
+
];
|
|
269
|
+
type OutputTuple = [pairId: bigint, maxConfidenceFraction: bigint];
|
|
270
|
+
interface OutputObject {
|
|
271
|
+
pairId: bigint;
|
|
272
|
+
maxConfidenceFraction: bigint;
|
|
273
|
+
}
|
|
274
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
275
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
276
|
+
type Log = TypedEventLog<Event>;
|
|
277
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
278
|
+
}
|
|
279
|
+
export declare namespace NewAdminEvent {
|
|
280
|
+
type InputTuple = [oldAdmin: AddressLike, newAdmin: AddressLike];
|
|
281
|
+
type OutputTuple = [oldAdmin: string, newAdmin: string];
|
|
282
|
+
interface OutputObject {
|
|
283
|
+
oldAdmin: string;
|
|
284
|
+
newAdmin: string;
|
|
285
|
+
}
|
|
286
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
287
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
288
|
+
type Log = TypedEventLog<Event>;
|
|
289
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
290
|
+
}
|
|
291
|
+
export declare namespace NewPendingAdminEvent {
|
|
292
|
+
type InputTuple = [
|
|
293
|
+
oldPendingAdmin: AddressLike,
|
|
294
|
+
newPendingAdmin: AddressLike
|
|
295
|
+
];
|
|
296
|
+
type OutputTuple = [oldPendingAdmin: string, newPendingAdmin: string];
|
|
297
|
+
interface OutputObject {
|
|
298
|
+
oldPendingAdmin: string;
|
|
299
|
+
newPendingAdmin: string;
|
|
300
|
+
}
|
|
301
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
302
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
303
|
+
type Log = TypedEventLog<Event>;
|
|
304
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
305
|
+
}
|
|
306
|
+
export declare namespace NumberUpdatedEvent {
|
|
307
|
+
type InputTuple = [name: string, value: BigNumberish];
|
|
308
|
+
type OutputTuple = [name: string, value: bigint];
|
|
309
|
+
interface OutputObject {
|
|
310
|
+
name: string;
|
|
311
|
+
value: bigint;
|
|
312
|
+
}
|
|
313
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
314
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
315
|
+
type Log = TypedEventLog<Event>;
|
|
316
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
317
|
+
}
|
|
318
|
+
export declare namespace OpenPositionExecutedEvent {
|
|
319
|
+
type InputTuple = [
|
|
320
|
+
triggerer: AddressLike,
|
|
321
|
+
positionId: BytesLike,
|
|
322
|
+
phase: BigNumberish,
|
|
323
|
+
triggerPrice: BigNumberish,
|
|
324
|
+
basePrice: BigNumberish,
|
|
325
|
+
priceTimestamp: BigNumberish
|
|
326
|
+
];
|
|
327
|
+
type OutputTuple = [
|
|
328
|
+
triggerer: string,
|
|
329
|
+
positionId: string,
|
|
330
|
+
phase: bigint,
|
|
331
|
+
triggerPrice: bigint,
|
|
332
|
+
basePrice: bigint,
|
|
333
|
+
priceTimestamp: bigint
|
|
334
|
+
];
|
|
335
|
+
interface OutputObject {
|
|
336
|
+
triggerer: string;
|
|
337
|
+
positionId: string;
|
|
338
|
+
phase: bigint;
|
|
339
|
+
triggerPrice: bigint;
|
|
340
|
+
basePrice: bigint;
|
|
341
|
+
priceTimestamp: bigint;
|
|
342
|
+
}
|
|
343
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
344
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
345
|
+
type Log = TypedEventLog<Event>;
|
|
346
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
347
|
+
}
|
|
348
|
+
export declare namespace PausedToggledEvent {
|
|
349
|
+
type InputTuple = [paused: boolean];
|
|
350
|
+
type OutputTuple = [paused: boolean];
|
|
351
|
+
interface OutputObject {
|
|
352
|
+
paused: boolean;
|
|
353
|
+
}
|
|
354
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
355
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
356
|
+
type Log = TypedEventLog<Event>;
|
|
357
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
358
|
+
}
|
|
359
|
+
export declare namespace PositionUpdateTimeoutTriggeredEvent {
|
|
360
|
+
type InputTuple = [
|
|
361
|
+
triggerer: AddressLike,
|
|
362
|
+
positionId: BytesLike,
|
|
363
|
+
orderType: BigNumberish,
|
|
364
|
+
fieldValueA: BigNumberish,
|
|
365
|
+
fieldValueB: BigNumberish
|
|
366
|
+
];
|
|
367
|
+
type OutputTuple = [
|
|
368
|
+
triggerer: string,
|
|
369
|
+
positionId: string,
|
|
370
|
+
orderType: bigint,
|
|
371
|
+
fieldValueA: bigint,
|
|
372
|
+
fieldValueB: bigint
|
|
373
|
+
];
|
|
374
|
+
interface OutputObject {
|
|
375
|
+
triggerer: string;
|
|
376
|
+
positionId: string;
|
|
377
|
+
orderType: bigint;
|
|
378
|
+
fieldValueA: bigint;
|
|
379
|
+
fieldValueB: bigint;
|
|
380
|
+
}
|
|
381
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
382
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
383
|
+
type Log = TypedEventLog<Event>;
|
|
384
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
385
|
+
}
|
|
386
|
+
export declare namespace SlExecutedEvent {
|
|
387
|
+
type InputTuple = [
|
|
388
|
+
triggerer: AddressLike,
|
|
389
|
+
positionId: BytesLike,
|
|
390
|
+
pairId: BigNumberish,
|
|
391
|
+
triggerPrice: BigNumberish,
|
|
392
|
+
basePrice: BigNumberish,
|
|
393
|
+
priceTimestamp: BigNumberish
|
|
394
|
+
];
|
|
395
|
+
type OutputTuple = [
|
|
396
|
+
triggerer: string,
|
|
397
|
+
positionId: string,
|
|
398
|
+
pairId: bigint,
|
|
399
|
+
triggerPrice: bigint,
|
|
400
|
+
basePrice: bigint,
|
|
401
|
+
priceTimestamp: bigint
|
|
402
|
+
];
|
|
403
|
+
interface OutputObject {
|
|
404
|
+
triggerer: string;
|
|
405
|
+
positionId: string;
|
|
406
|
+
pairId: bigint;
|
|
407
|
+
triggerPrice: bigint;
|
|
408
|
+
basePrice: bigint;
|
|
409
|
+
priceTimestamp: bigint;
|
|
410
|
+
}
|
|
411
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
412
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
413
|
+
type Log = TypedEventLog<Event>;
|
|
414
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
415
|
+
}
|
|
416
|
+
export declare namespace SpreadFractionForPairSetEvent {
|
|
417
|
+
type InputTuple = [pairId: BigNumberish, slippage: BigNumberish];
|
|
418
|
+
type OutputTuple = [pairId: bigint, slippage: bigint];
|
|
419
|
+
interface OutputObject {
|
|
420
|
+
pairId: bigint;
|
|
421
|
+
slippage: bigint;
|
|
422
|
+
}
|
|
423
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
424
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
425
|
+
type Log = TypedEventLog<Event>;
|
|
426
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
427
|
+
}
|
|
428
|
+
export declare namespace TpExecutedEvent {
|
|
429
|
+
type InputTuple = [
|
|
430
|
+
triggerer: AddressLike,
|
|
431
|
+
positionId: BytesLike,
|
|
432
|
+
pairId: BigNumberish,
|
|
433
|
+
triggerPrice: BigNumberish,
|
|
434
|
+
basePrice: BigNumberish,
|
|
435
|
+
priceTimestamp: BigNumberish
|
|
436
|
+
];
|
|
437
|
+
type OutputTuple = [
|
|
438
|
+
triggerer: string,
|
|
439
|
+
positionId: string,
|
|
440
|
+
pairId: bigint,
|
|
441
|
+
triggerPrice: bigint,
|
|
442
|
+
basePrice: bigint,
|
|
443
|
+
priceTimestamp: bigint
|
|
444
|
+
];
|
|
445
|
+
interface OutputObject {
|
|
446
|
+
triggerer: string;
|
|
447
|
+
positionId: string;
|
|
448
|
+
pairId: bigint;
|
|
449
|
+
triggerPrice: bigint;
|
|
450
|
+
basePrice: bigint;
|
|
451
|
+
priceTimestamp: bigint;
|
|
452
|
+
}
|
|
453
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
454
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
455
|
+
type Log = TypedEventLog<Event>;
|
|
456
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
457
|
+
}
|
|
458
|
+
export declare namespace TriggerAccountAllowedEvent {
|
|
459
|
+
type InputTuple = [account: AddressLike];
|
|
460
|
+
type OutputTuple = [account: string];
|
|
461
|
+
interface OutputObject {
|
|
462
|
+
account: string;
|
|
463
|
+
}
|
|
464
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
465
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
466
|
+
type Log = TypedEventLog<Event>;
|
|
467
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
468
|
+
}
|
|
469
|
+
export declare namespace TriggerAccountDisallowedEvent {
|
|
470
|
+
type InputTuple = [account: AddressLike];
|
|
471
|
+
type OutputTuple = [account: string];
|
|
472
|
+
interface OutputObject {
|
|
473
|
+
account: string;
|
|
474
|
+
}
|
|
475
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
476
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
477
|
+
type Log = TypedEventLog<Event>;
|
|
478
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
479
|
+
}
|
|
480
|
+
export declare namespace UpdatePositionSingleFieldExecutedEvent {
|
|
481
|
+
type InputTuple = [
|
|
482
|
+
triggerer: AddressLike,
|
|
483
|
+
positionId: BytesLike,
|
|
484
|
+
orderType: BigNumberish,
|
|
485
|
+
positionField: BigNumberish,
|
|
486
|
+
fieldValue: BigNumberish,
|
|
487
|
+
triggerPrice: BigNumberish
|
|
488
|
+
];
|
|
489
|
+
type OutputTuple = [
|
|
490
|
+
triggerer: string,
|
|
491
|
+
positionId: string,
|
|
492
|
+
orderType: bigint,
|
|
493
|
+
positionField: bigint,
|
|
494
|
+
fieldValue: bigint,
|
|
495
|
+
triggerPrice: bigint
|
|
496
|
+
];
|
|
497
|
+
interface OutputObject {
|
|
498
|
+
triggerer: string;
|
|
499
|
+
positionId: string;
|
|
500
|
+
orderType: bigint;
|
|
501
|
+
positionField: bigint;
|
|
502
|
+
fieldValue: bigint;
|
|
503
|
+
triggerPrice: bigint;
|
|
504
|
+
}
|
|
505
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
506
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
507
|
+
type Log = TypedEventLog<Event>;
|
|
508
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
509
|
+
}
|
|
510
|
+
export declare namespace UpdatePositionSingleFieldRejectedEvent {
|
|
511
|
+
type InputTuple = [
|
|
512
|
+
triggerer: AddressLike,
|
|
513
|
+
positionId: BytesLike,
|
|
514
|
+
orderType: BigNumberish,
|
|
515
|
+
positionField: BigNumberish,
|
|
516
|
+
fieldValue: BigNumberish,
|
|
517
|
+
triggerPrice: BigNumberish,
|
|
518
|
+
rejectionReason: string,
|
|
519
|
+
rejectionValue: BigNumberish
|
|
520
|
+
];
|
|
521
|
+
type OutputTuple = [
|
|
522
|
+
triggerer: string,
|
|
523
|
+
positionId: string,
|
|
524
|
+
orderType: bigint,
|
|
525
|
+
positionField: bigint,
|
|
526
|
+
fieldValue: bigint,
|
|
527
|
+
triggerPrice: bigint,
|
|
528
|
+
rejectionReason: string,
|
|
529
|
+
rejectionValue: bigint
|
|
530
|
+
];
|
|
531
|
+
interface OutputObject {
|
|
532
|
+
triggerer: string;
|
|
533
|
+
positionId: string;
|
|
534
|
+
orderType: bigint;
|
|
535
|
+
positionField: bigint;
|
|
536
|
+
fieldValue: bigint;
|
|
537
|
+
triggerPrice: bigint;
|
|
538
|
+
rejectionReason: string;
|
|
539
|
+
rejectionValue: bigint;
|
|
540
|
+
}
|
|
541
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
542
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
543
|
+
type Log = TypedEventLog<Event>;
|
|
544
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
545
|
+
}
|
|
546
|
+
export interface TriggersV1 extends BaseContract {
|
|
547
|
+
connect(runner?: ContractRunner | null): TriggersV1;
|
|
548
|
+
waitForDeployment(): Promise<this>;
|
|
549
|
+
interface: TriggersV1Interface;
|
|
550
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
551
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
552
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
553
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
554
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
555
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
556
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
557
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
558
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
559
|
+
ACCURACY_IMPROVEMENT_SCALE: TypedContractMethod<[], [bigint], "view">;
|
|
560
|
+
FRACTION_SCALE: TypedContractMethod<[], [bigint], "view">;
|
|
561
|
+
LEVERAGE_SCALE: TypedContractMethod<[], [bigint], "view">;
|
|
562
|
+
MAX_ALLOWED_CONFIDENCE_FRACTION: TypedContractMethod<[], [bigint], "view">;
|
|
563
|
+
MAX_ALLOWED_SPREAD_FRACTION: TypedContractMethod<[], [bigint], "view">;
|
|
564
|
+
PRECISION: TypedContractMethod<[], [bigint], "view">;
|
|
565
|
+
_acceptAdmin: TypedContractMethod<[], [void], "nonpayable">;
|
|
566
|
+
_setPendingAdmin: TypedContractMethod<[
|
|
567
|
+
newPendingAdmin: AddressLike
|
|
568
|
+
], [
|
|
569
|
+
void
|
|
570
|
+
], "nonpayable">;
|
|
571
|
+
admin: TypedContractMethod<[], [string], "view">;
|
|
572
|
+
allowTriggerAccount: TypedContractMethod<[
|
|
573
|
+
account: AddressLike
|
|
574
|
+
], [
|
|
575
|
+
void
|
|
576
|
+
], "nonpayable">;
|
|
577
|
+
disallowTriggerAccount: TypedContractMethod<[
|
|
578
|
+
account: AddressLike
|
|
579
|
+
], [
|
|
580
|
+
void
|
|
581
|
+
], "nonpayable">;
|
|
582
|
+
getAllTriggerPermissionedAccounts: TypedContractMethod<[
|
|
583
|
+
], [
|
|
584
|
+
string[]
|
|
585
|
+
], "view">;
|
|
586
|
+
getValidatedPrice: TypedContractMethod<[
|
|
587
|
+
pairId: BigNumberish,
|
|
588
|
+
pricePayload: BytesLike[]
|
|
589
|
+
], [
|
|
590
|
+
IPriceValidatorV1.ValidatedPriceStructOutput
|
|
591
|
+
], "payable">;
|
|
592
|
+
isAllowedToTrigger: TypedContractMethod<[
|
|
593
|
+
account: AddressLike
|
|
594
|
+
], [
|
|
595
|
+
boolean
|
|
596
|
+
], "view">;
|
|
597
|
+
isDone: TypedContractMethod<[], [boolean], "view">;
|
|
598
|
+
isPaused: TypedContractMethod<[], [boolean], "view">;
|
|
599
|
+
marketOrderCancelFeeFraction: TypedContractMethod<[], [bigint], "view">;
|
|
600
|
+
marketOrderTightTimeRange: TypedContractMethod<[], [bigint], "view">;
|
|
601
|
+
marketOrdersTimeout: TypedContractMethod<[], [bigint], "view">;
|
|
602
|
+
maxConfidenceFractionForPair: TypedContractMethod<[
|
|
603
|
+
arg0: BigNumberish
|
|
604
|
+
], [
|
|
605
|
+
bigint
|
|
606
|
+
], "view">;
|
|
607
|
+
maxTriggerPeriodForMarketOrders: TypedContractMethod<[], [bigint], "view">;
|
|
608
|
+
maxTriggersPerBlock: TypedContractMethod<[], [bigint], "view">;
|
|
609
|
+
minTriggerPeriodForLimitOrders: TypedContractMethod<[], [bigint], "view">;
|
|
610
|
+
minTriggerPeriodForMarketOrders: TypedContractMethod<[], [bigint], "view">;
|
|
611
|
+
openPositionCancellationFeeFraction: TypedContractMethod<[
|
|
612
|
+
], [
|
|
613
|
+
bigint
|
|
614
|
+
], "view">;
|
|
615
|
+
orderBook: TypedContractMethod<[], [string], "view">;
|
|
616
|
+
pendingAdmin: TypedContractMethod<[], [string], "view">;
|
|
617
|
+
priceValidator: TypedContractMethod<[], [string], "view">;
|
|
618
|
+
setMarketOrderCancelFeeFraction: TypedContractMethod<[
|
|
619
|
+
_marketOrderCancelFeeFraction: BigNumberish
|
|
620
|
+
], [
|
|
621
|
+
void
|
|
622
|
+
], "nonpayable">;
|
|
623
|
+
setMarketOrderTightTimeRange: TypedContractMethod<[
|
|
624
|
+
_marketOrderTightTimeRange: BigNumberish
|
|
625
|
+
], [
|
|
626
|
+
void
|
|
627
|
+
], "nonpayable">;
|
|
628
|
+
setMarketOrdersTimeout: TypedContractMethod<[
|
|
629
|
+
_marketOrdersTimeout: BigNumberish
|
|
630
|
+
], [
|
|
631
|
+
void
|
|
632
|
+
], "nonpayable">;
|
|
633
|
+
setMaxConfidenceForPair: TypedContractMethod<[
|
|
634
|
+
pairId: BigNumberish,
|
|
635
|
+
maxConfidenceFraction: BigNumberish
|
|
636
|
+
], [
|
|
637
|
+
void
|
|
638
|
+
], "nonpayable">;
|
|
639
|
+
setMaxTriggerPeriodForMarketOrders: TypedContractMethod<[
|
|
640
|
+
_maxTriggerPeriodForMarketOrders: BigNumberish
|
|
641
|
+
], [
|
|
642
|
+
void
|
|
643
|
+
], "nonpayable">;
|
|
644
|
+
setMaxTriggersPerBlock: TypedContractMethod<[
|
|
645
|
+
_maxTriggersPerBlock: BigNumberish
|
|
646
|
+
], [
|
|
647
|
+
void
|
|
648
|
+
], "nonpayable">;
|
|
649
|
+
setMinTriggerPeriodForLimitOrders: TypedContractMethod<[
|
|
650
|
+
_minTriggerPeriodForLimitOrders: BigNumberish
|
|
651
|
+
], [
|
|
652
|
+
void
|
|
653
|
+
], "nonpayable">;
|
|
654
|
+
setMinTriggerPeriodForMarketOrders: TypedContractMethod<[
|
|
655
|
+
_minTriggerPeriodForMarketOrders: BigNumberish
|
|
656
|
+
], [
|
|
657
|
+
void
|
|
658
|
+
], "nonpayable">;
|
|
659
|
+
setOpenPositionCancellationFeeFraction: TypedContractMethod<[
|
|
660
|
+
_openPositionCancellationFeeFraction: BigNumberish
|
|
661
|
+
], [
|
|
662
|
+
void
|
|
663
|
+
], "nonpayable">;
|
|
664
|
+
setPriceValidator: TypedContractMethod<[
|
|
665
|
+
_priceValidator: AddressLike
|
|
666
|
+
], [
|
|
667
|
+
void
|
|
668
|
+
], "nonpayable">;
|
|
669
|
+
setSpreadFractionForPair: TypedContractMethod<[
|
|
670
|
+
pairId: BigNumberish,
|
|
671
|
+
spreadFraction: BigNumberish
|
|
672
|
+
], [
|
|
673
|
+
void
|
|
674
|
+
], "nonpayable">;
|
|
675
|
+
setTriggerPriceFreshnessTimeRange: TypedContractMethod<[
|
|
676
|
+
_triggerPriceFreshnessTimeRange: BigNumberish
|
|
677
|
+
], [
|
|
678
|
+
void
|
|
679
|
+
], "nonpayable">;
|
|
680
|
+
spreadFractionForPair: TypedContractMethod<[
|
|
681
|
+
arg0: BigNumberish
|
|
682
|
+
], [
|
|
683
|
+
bigint
|
|
684
|
+
], "view">;
|
|
685
|
+
toggleDone: TypedContractMethod<[], [void], "nonpayable">;
|
|
686
|
+
togglePause: TypedContractMethod<[], [void], "nonpayable">;
|
|
687
|
+
tradingFloor: TypedContractMethod<[], [string], "view">;
|
|
688
|
+
triggerPriceFreshnessTimeRange: TypedContractMethod<[], [bigint], "view">;
|
|
689
|
+
trigger_closeTrade_LIQ: TypedContractMethod<[
|
|
690
|
+
_positionId: BytesLike,
|
|
691
|
+
pricePayload: BytesLike[]
|
|
692
|
+
], [
|
|
693
|
+
void
|
|
694
|
+
], "payable">;
|
|
695
|
+
trigger_closeTrade_SL: TypedContractMethod<[
|
|
696
|
+
_positionId: BytesLike,
|
|
697
|
+
pricePayload: BytesLike[]
|
|
698
|
+
], [
|
|
699
|
+
void
|
|
700
|
+
], "payable">;
|
|
701
|
+
trigger_closeTrade_TP: TypedContractMethod<[
|
|
702
|
+
_positionId: BytesLike,
|
|
703
|
+
pricePayload: BytesLike[]
|
|
704
|
+
], [
|
|
705
|
+
void
|
|
706
|
+
], "payable">;
|
|
707
|
+
trigger_closeTrade_market: TypedContractMethod<[
|
|
708
|
+
_positionId: BytesLike,
|
|
709
|
+
pricePayload: BytesLike[]
|
|
710
|
+
], [
|
|
711
|
+
void
|
|
712
|
+
], "payable">;
|
|
713
|
+
trigger_openTrade_limit: TypedContractMethod<[
|
|
714
|
+
_positionId: BytesLike,
|
|
715
|
+
pricePayload: BytesLike[]
|
|
716
|
+
], [
|
|
717
|
+
void
|
|
718
|
+
], "payable">;
|
|
719
|
+
trigger_openTrade_market: TypedContractMethod<[
|
|
720
|
+
_positionId: BytesLike,
|
|
721
|
+
pricePayload: BytesLike[]
|
|
722
|
+
], [
|
|
723
|
+
void
|
|
724
|
+
], "payable">;
|
|
725
|
+
trigger_timeout_marketClose: TypedContractMethod<[
|
|
726
|
+
_positionId: BytesLike
|
|
727
|
+
], [
|
|
728
|
+
void
|
|
729
|
+
], "nonpayable">;
|
|
730
|
+
trigger_timeout_marketOpen: TypedContractMethod<[
|
|
731
|
+
_positionId: BytesLike
|
|
732
|
+
], [
|
|
733
|
+
void
|
|
734
|
+
], "nonpayable">;
|
|
735
|
+
trigger_timeout_updatePosition: TypedContractMethod<[
|
|
736
|
+
_positionId: BytesLike
|
|
737
|
+
], [
|
|
738
|
+
void
|
|
739
|
+
], "nonpayable">;
|
|
740
|
+
trigger_update_SL: TypedContractMethod<[
|
|
741
|
+
_positionId: BytesLike,
|
|
742
|
+
pricePayload: BytesLike[]
|
|
743
|
+
], [
|
|
744
|
+
void
|
|
745
|
+
], "payable">;
|
|
746
|
+
trigger_update_TP: TypedContractMethod<[
|
|
747
|
+
_positionId: BytesLike,
|
|
748
|
+
pricePayload: BytesLike[]
|
|
749
|
+
], [
|
|
750
|
+
void
|
|
751
|
+
], "payable">;
|
|
752
|
+
trigger_update_TP_and_SL: TypedContractMethod<[
|
|
753
|
+
_positionId: BytesLike,
|
|
754
|
+
pricePayload: BytesLike[]
|
|
755
|
+
], [
|
|
756
|
+
void
|
|
757
|
+
], "payable">;
|
|
758
|
+
triggersPerBlock: TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
|
|
759
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
760
|
+
getFunction(nameOrSignature: "ACCURACY_IMPROVEMENT_SCALE"): TypedContractMethod<[], [bigint], "view">;
|
|
761
|
+
getFunction(nameOrSignature: "FRACTION_SCALE"): TypedContractMethod<[], [bigint], "view">;
|
|
762
|
+
getFunction(nameOrSignature: "LEVERAGE_SCALE"): TypedContractMethod<[], [bigint], "view">;
|
|
763
|
+
getFunction(nameOrSignature: "MAX_ALLOWED_CONFIDENCE_FRACTION"): TypedContractMethod<[], [bigint], "view">;
|
|
764
|
+
getFunction(nameOrSignature: "MAX_ALLOWED_SPREAD_FRACTION"): TypedContractMethod<[], [bigint], "view">;
|
|
765
|
+
getFunction(nameOrSignature: "PRECISION"): TypedContractMethod<[], [bigint], "view">;
|
|
766
|
+
getFunction(nameOrSignature: "_acceptAdmin"): TypedContractMethod<[], [void], "nonpayable">;
|
|
767
|
+
getFunction(nameOrSignature: "_setPendingAdmin"): TypedContractMethod<[newPendingAdmin: AddressLike], [void], "nonpayable">;
|
|
768
|
+
getFunction(nameOrSignature: "admin"): TypedContractMethod<[], [string], "view">;
|
|
769
|
+
getFunction(nameOrSignature: "allowTriggerAccount"): TypedContractMethod<[account: AddressLike], [void], "nonpayable">;
|
|
770
|
+
getFunction(nameOrSignature: "disallowTriggerAccount"): TypedContractMethod<[account: AddressLike], [void], "nonpayable">;
|
|
771
|
+
getFunction(nameOrSignature: "getAllTriggerPermissionedAccounts"): TypedContractMethod<[], [string[]], "view">;
|
|
772
|
+
getFunction(nameOrSignature: "getValidatedPrice"): TypedContractMethod<[
|
|
773
|
+
pairId: BigNumberish,
|
|
774
|
+
pricePayload: BytesLike[]
|
|
775
|
+
], [
|
|
776
|
+
IPriceValidatorV1.ValidatedPriceStructOutput
|
|
777
|
+
], "payable">;
|
|
778
|
+
getFunction(nameOrSignature: "isAllowedToTrigger"): TypedContractMethod<[account: AddressLike], [boolean], "view">;
|
|
779
|
+
getFunction(nameOrSignature: "isDone"): TypedContractMethod<[], [boolean], "view">;
|
|
780
|
+
getFunction(nameOrSignature: "isPaused"): TypedContractMethod<[], [boolean], "view">;
|
|
781
|
+
getFunction(nameOrSignature: "marketOrderCancelFeeFraction"): TypedContractMethod<[], [bigint], "view">;
|
|
782
|
+
getFunction(nameOrSignature: "marketOrderTightTimeRange"): TypedContractMethod<[], [bigint], "view">;
|
|
783
|
+
getFunction(nameOrSignature: "marketOrdersTimeout"): TypedContractMethod<[], [bigint], "view">;
|
|
784
|
+
getFunction(nameOrSignature: "maxConfidenceFractionForPair"): TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
|
|
785
|
+
getFunction(nameOrSignature: "maxTriggerPeriodForMarketOrders"): TypedContractMethod<[], [bigint], "view">;
|
|
786
|
+
getFunction(nameOrSignature: "maxTriggersPerBlock"): TypedContractMethod<[], [bigint], "view">;
|
|
787
|
+
getFunction(nameOrSignature: "minTriggerPeriodForLimitOrders"): TypedContractMethod<[], [bigint], "view">;
|
|
788
|
+
getFunction(nameOrSignature: "minTriggerPeriodForMarketOrders"): TypedContractMethod<[], [bigint], "view">;
|
|
789
|
+
getFunction(nameOrSignature: "openPositionCancellationFeeFraction"): TypedContractMethod<[], [bigint], "view">;
|
|
790
|
+
getFunction(nameOrSignature: "orderBook"): TypedContractMethod<[], [string], "view">;
|
|
791
|
+
getFunction(nameOrSignature: "pendingAdmin"): TypedContractMethod<[], [string], "view">;
|
|
792
|
+
getFunction(nameOrSignature: "priceValidator"): TypedContractMethod<[], [string], "view">;
|
|
793
|
+
getFunction(nameOrSignature: "setMarketOrderCancelFeeFraction"): TypedContractMethod<[
|
|
794
|
+
_marketOrderCancelFeeFraction: BigNumberish
|
|
795
|
+
], [
|
|
796
|
+
void
|
|
797
|
+
], "nonpayable">;
|
|
798
|
+
getFunction(nameOrSignature: "setMarketOrderTightTimeRange"): TypedContractMethod<[
|
|
799
|
+
_marketOrderTightTimeRange: BigNumberish
|
|
800
|
+
], [
|
|
801
|
+
void
|
|
802
|
+
], "nonpayable">;
|
|
803
|
+
getFunction(nameOrSignature: "setMarketOrdersTimeout"): TypedContractMethod<[
|
|
804
|
+
_marketOrdersTimeout: BigNumberish
|
|
805
|
+
], [
|
|
806
|
+
void
|
|
807
|
+
], "nonpayable">;
|
|
808
|
+
getFunction(nameOrSignature: "setMaxConfidenceForPair"): TypedContractMethod<[
|
|
809
|
+
pairId: BigNumberish,
|
|
810
|
+
maxConfidenceFraction: BigNumberish
|
|
811
|
+
], [
|
|
812
|
+
void
|
|
813
|
+
], "nonpayable">;
|
|
814
|
+
getFunction(nameOrSignature: "setMaxTriggerPeriodForMarketOrders"): TypedContractMethod<[
|
|
815
|
+
_maxTriggerPeriodForMarketOrders: BigNumberish
|
|
816
|
+
], [
|
|
817
|
+
void
|
|
818
|
+
], "nonpayable">;
|
|
819
|
+
getFunction(nameOrSignature: "setMaxTriggersPerBlock"): TypedContractMethod<[
|
|
820
|
+
_maxTriggersPerBlock: BigNumberish
|
|
821
|
+
], [
|
|
822
|
+
void
|
|
823
|
+
], "nonpayable">;
|
|
824
|
+
getFunction(nameOrSignature: "setMinTriggerPeriodForLimitOrders"): TypedContractMethod<[
|
|
825
|
+
_minTriggerPeriodForLimitOrders: BigNumberish
|
|
826
|
+
], [
|
|
827
|
+
void
|
|
828
|
+
], "nonpayable">;
|
|
829
|
+
getFunction(nameOrSignature: "setMinTriggerPeriodForMarketOrders"): TypedContractMethod<[
|
|
830
|
+
_minTriggerPeriodForMarketOrders: BigNumberish
|
|
831
|
+
], [
|
|
832
|
+
void
|
|
833
|
+
], "nonpayable">;
|
|
834
|
+
getFunction(nameOrSignature: "setOpenPositionCancellationFeeFraction"): TypedContractMethod<[
|
|
835
|
+
_openPositionCancellationFeeFraction: BigNumberish
|
|
836
|
+
], [
|
|
837
|
+
void
|
|
838
|
+
], "nonpayable">;
|
|
839
|
+
getFunction(nameOrSignature: "setPriceValidator"): TypedContractMethod<[_priceValidator: AddressLike], [void], "nonpayable">;
|
|
840
|
+
getFunction(nameOrSignature: "setSpreadFractionForPair"): TypedContractMethod<[
|
|
841
|
+
pairId: BigNumberish,
|
|
842
|
+
spreadFraction: BigNumberish
|
|
843
|
+
], [
|
|
844
|
+
void
|
|
845
|
+
], "nonpayable">;
|
|
846
|
+
getFunction(nameOrSignature: "setTriggerPriceFreshnessTimeRange"): TypedContractMethod<[
|
|
847
|
+
_triggerPriceFreshnessTimeRange: BigNumberish
|
|
848
|
+
], [
|
|
849
|
+
void
|
|
850
|
+
], "nonpayable">;
|
|
851
|
+
getFunction(nameOrSignature: "spreadFractionForPair"): TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
|
|
852
|
+
getFunction(nameOrSignature: "toggleDone"): TypedContractMethod<[], [void], "nonpayable">;
|
|
853
|
+
getFunction(nameOrSignature: "togglePause"): TypedContractMethod<[], [void], "nonpayable">;
|
|
854
|
+
getFunction(nameOrSignature: "tradingFloor"): TypedContractMethod<[], [string], "view">;
|
|
855
|
+
getFunction(nameOrSignature: "triggerPriceFreshnessTimeRange"): TypedContractMethod<[], [bigint], "view">;
|
|
856
|
+
getFunction(nameOrSignature: "trigger_closeTrade_LIQ"): TypedContractMethod<[
|
|
857
|
+
_positionId: BytesLike,
|
|
858
|
+
pricePayload: BytesLike[]
|
|
859
|
+
], [
|
|
860
|
+
void
|
|
861
|
+
], "payable">;
|
|
862
|
+
getFunction(nameOrSignature: "trigger_closeTrade_SL"): TypedContractMethod<[
|
|
863
|
+
_positionId: BytesLike,
|
|
864
|
+
pricePayload: BytesLike[]
|
|
865
|
+
], [
|
|
866
|
+
void
|
|
867
|
+
], "payable">;
|
|
868
|
+
getFunction(nameOrSignature: "trigger_closeTrade_TP"): TypedContractMethod<[
|
|
869
|
+
_positionId: BytesLike,
|
|
870
|
+
pricePayload: BytesLike[]
|
|
871
|
+
], [
|
|
872
|
+
void
|
|
873
|
+
], "payable">;
|
|
874
|
+
getFunction(nameOrSignature: "trigger_closeTrade_market"): TypedContractMethod<[
|
|
875
|
+
_positionId: BytesLike,
|
|
876
|
+
pricePayload: BytesLike[]
|
|
877
|
+
], [
|
|
878
|
+
void
|
|
879
|
+
], "payable">;
|
|
880
|
+
getFunction(nameOrSignature: "trigger_openTrade_limit"): TypedContractMethod<[
|
|
881
|
+
_positionId: BytesLike,
|
|
882
|
+
pricePayload: BytesLike[]
|
|
883
|
+
], [
|
|
884
|
+
void
|
|
885
|
+
], "payable">;
|
|
886
|
+
getFunction(nameOrSignature: "trigger_openTrade_market"): TypedContractMethod<[
|
|
887
|
+
_positionId: BytesLike,
|
|
888
|
+
pricePayload: BytesLike[]
|
|
889
|
+
], [
|
|
890
|
+
void
|
|
891
|
+
], "payable">;
|
|
892
|
+
getFunction(nameOrSignature: "trigger_timeout_marketClose"): TypedContractMethod<[_positionId: BytesLike], [void], "nonpayable">;
|
|
893
|
+
getFunction(nameOrSignature: "trigger_timeout_marketOpen"): TypedContractMethod<[_positionId: BytesLike], [void], "nonpayable">;
|
|
894
|
+
getFunction(nameOrSignature: "trigger_timeout_updatePosition"): TypedContractMethod<[_positionId: BytesLike], [void], "nonpayable">;
|
|
895
|
+
getFunction(nameOrSignature: "trigger_update_SL"): TypedContractMethod<[
|
|
896
|
+
_positionId: BytesLike,
|
|
897
|
+
pricePayload: BytesLike[]
|
|
898
|
+
], [
|
|
899
|
+
void
|
|
900
|
+
], "payable">;
|
|
901
|
+
getFunction(nameOrSignature: "trigger_update_TP"): TypedContractMethod<[
|
|
902
|
+
_positionId: BytesLike,
|
|
903
|
+
pricePayload: BytesLike[]
|
|
904
|
+
], [
|
|
905
|
+
void
|
|
906
|
+
], "payable">;
|
|
907
|
+
getFunction(nameOrSignature: "trigger_update_TP_and_SL"): TypedContractMethod<[
|
|
908
|
+
_positionId: BytesLike,
|
|
909
|
+
pricePayload: BytesLike[]
|
|
910
|
+
], [
|
|
911
|
+
void
|
|
912
|
+
], "payable">;
|
|
913
|
+
getFunction(nameOrSignature: "triggersPerBlock"): TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
|
|
914
|
+
getEvent(key: "AddressUpdated"): TypedContractEvent<AddressUpdatedEvent.InputTuple, AddressUpdatedEvent.OutputTuple, AddressUpdatedEvent.OutputObject>;
|
|
915
|
+
getEvent(key: "ClosePositionExecuted"): TypedContractEvent<ClosePositionExecutedEvent.InputTuple, ClosePositionExecutedEvent.OutputTuple, ClosePositionExecutedEvent.OutputObject>;
|
|
916
|
+
getEvent(key: "DoneToggled"): TypedContractEvent<DoneToggledEvent.InputTuple, DoneToggledEvent.OutputTuple, DoneToggledEvent.OutputObject>;
|
|
917
|
+
getEvent(key: "LiquidationExecuted"): TypedContractEvent<LiquidationExecutedEvent.InputTuple, LiquidationExecutedEvent.OutputTuple, LiquidationExecutedEvent.OutputObject>;
|
|
918
|
+
getEvent(key: "MarketCloseTimeoutTriggered"): TypedContractEvent<MarketCloseTimeoutTriggeredEvent.InputTuple, MarketCloseTimeoutTriggeredEvent.OutputTuple, MarketCloseTimeoutTriggeredEvent.OutputObject>;
|
|
919
|
+
getEvent(key: "MarketOpenTimeoutTriggered"): TypedContractEvent<MarketOpenTimeoutTriggeredEvent.InputTuple, MarketOpenTimeoutTriggeredEvent.OutputTuple, MarketOpenTimeoutTriggeredEvent.OutputObject>;
|
|
920
|
+
getEvent(key: "MaxConfidenceForPairSet"): TypedContractEvent<MaxConfidenceForPairSetEvent.InputTuple, MaxConfidenceForPairSetEvent.OutputTuple, MaxConfidenceForPairSetEvent.OutputObject>;
|
|
921
|
+
getEvent(key: "NewAdmin"): TypedContractEvent<NewAdminEvent.InputTuple, NewAdminEvent.OutputTuple, NewAdminEvent.OutputObject>;
|
|
922
|
+
getEvent(key: "NewPendingAdmin"): TypedContractEvent<NewPendingAdminEvent.InputTuple, NewPendingAdminEvent.OutputTuple, NewPendingAdminEvent.OutputObject>;
|
|
923
|
+
getEvent(key: "NumberUpdated"): TypedContractEvent<NumberUpdatedEvent.InputTuple, NumberUpdatedEvent.OutputTuple, NumberUpdatedEvent.OutputObject>;
|
|
924
|
+
getEvent(key: "OpenPositionExecuted"): TypedContractEvent<OpenPositionExecutedEvent.InputTuple, OpenPositionExecutedEvent.OutputTuple, OpenPositionExecutedEvent.OutputObject>;
|
|
925
|
+
getEvent(key: "PausedToggled"): TypedContractEvent<PausedToggledEvent.InputTuple, PausedToggledEvent.OutputTuple, PausedToggledEvent.OutputObject>;
|
|
926
|
+
getEvent(key: "PositionUpdateTimeoutTriggered"): TypedContractEvent<PositionUpdateTimeoutTriggeredEvent.InputTuple, PositionUpdateTimeoutTriggeredEvent.OutputTuple, PositionUpdateTimeoutTriggeredEvent.OutputObject>;
|
|
927
|
+
getEvent(key: "SlExecuted"): TypedContractEvent<SlExecutedEvent.InputTuple, SlExecutedEvent.OutputTuple, SlExecutedEvent.OutputObject>;
|
|
928
|
+
getEvent(key: "SpreadFractionForPairSet"): TypedContractEvent<SpreadFractionForPairSetEvent.InputTuple, SpreadFractionForPairSetEvent.OutputTuple, SpreadFractionForPairSetEvent.OutputObject>;
|
|
929
|
+
getEvent(key: "TpExecuted"): TypedContractEvent<TpExecutedEvent.InputTuple, TpExecutedEvent.OutputTuple, TpExecutedEvent.OutputObject>;
|
|
930
|
+
getEvent(key: "TriggerAccountAllowed"): TypedContractEvent<TriggerAccountAllowedEvent.InputTuple, TriggerAccountAllowedEvent.OutputTuple, TriggerAccountAllowedEvent.OutputObject>;
|
|
931
|
+
getEvent(key: "TriggerAccountDisallowed"): TypedContractEvent<TriggerAccountDisallowedEvent.InputTuple, TriggerAccountDisallowedEvent.OutputTuple, TriggerAccountDisallowedEvent.OutputObject>;
|
|
932
|
+
getEvent(key: "UpdatePositionSingleFieldExecuted"): TypedContractEvent<UpdatePositionSingleFieldExecutedEvent.InputTuple, UpdatePositionSingleFieldExecutedEvent.OutputTuple, UpdatePositionSingleFieldExecutedEvent.OutputObject>;
|
|
933
|
+
getEvent(key: "UpdatePositionSingleFieldRejected"): TypedContractEvent<UpdatePositionSingleFieldRejectedEvent.InputTuple, UpdatePositionSingleFieldRejectedEvent.OutputTuple, UpdatePositionSingleFieldRejectedEvent.OutputObject>;
|
|
934
|
+
filters: {
|
|
935
|
+
"AddressUpdated(string,address)": TypedContractEvent<AddressUpdatedEvent.InputTuple, AddressUpdatedEvent.OutputTuple, AddressUpdatedEvent.OutputObject>;
|
|
936
|
+
AddressUpdated: TypedContractEvent<AddressUpdatedEvent.InputTuple, AddressUpdatedEvent.OutputTuple, AddressUpdatedEvent.OutputObject>;
|
|
937
|
+
"ClosePositionExecuted(address,bytes32,uint8,uint256,uint256,uint256)": TypedContractEvent<ClosePositionExecutedEvent.InputTuple, ClosePositionExecutedEvent.OutputTuple, ClosePositionExecutedEvent.OutputObject>;
|
|
938
|
+
ClosePositionExecuted: TypedContractEvent<ClosePositionExecutedEvent.InputTuple, ClosePositionExecutedEvent.OutputTuple, ClosePositionExecutedEvent.OutputObject>;
|
|
939
|
+
"DoneToggled(bool)": TypedContractEvent<DoneToggledEvent.InputTuple, DoneToggledEvent.OutputTuple, DoneToggledEvent.OutputObject>;
|
|
940
|
+
DoneToggled: TypedContractEvent<DoneToggledEvent.InputTuple, DoneToggledEvent.OutputTuple, DoneToggledEvent.OutputObject>;
|
|
941
|
+
"LiquidationExecuted(address,bytes32,uint16,uint256,uint256,uint256)": TypedContractEvent<LiquidationExecutedEvent.InputTuple, LiquidationExecutedEvent.OutputTuple, LiquidationExecutedEvent.OutputObject>;
|
|
942
|
+
LiquidationExecuted: TypedContractEvent<LiquidationExecutedEvent.InputTuple, LiquidationExecutedEvent.OutputTuple, LiquidationExecutedEvent.OutputObject>;
|
|
943
|
+
"MarketCloseTimeoutTriggered(address,bytes32,uint16)": TypedContractEvent<MarketCloseTimeoutTriggeredEvent.InputTuple, MarketCloseTimeoutTriggeredEvent.OutputTuple, MarketCloseTimeoutTriggeredEvent.OutputObject>;
|
|
944
|
+
MarketCloseTimeoutTriggered: TypedContractEvent<MarketCloseTimeoutTriggeredEvent.InputTuple, MarketCloseTimeoutTriggeredEvent.OutputTuple, MarketCloseTimeoutTriggeredEvent.OutputObject>;
|
|
945
|
+
"MarketOpenTimeoutTriggered(address,bytes32,uint16)": TypedContractEvent<MarketOpenTimeoutTriggeredEvent.InputTuple, MarketOpenTimeoutTriggeredEvent.OutputTuple, MarketOpenTimeoutTriggeredEvent.OutputObject>;
|
|
946
|
+
MarketOpenTimeoutTriggered: TypedContractEvent<MarketOpenTimeoutTriggeredEvent.InputTuple, MarketOpenTimeoutTriggeredEvent.OutputTuple, MarketOpenTimeoutTriggeredEvent.OutputObject>;
|
|
947
|
+
"MaxConfidenceForPairSet(uint256,uint256)": TypedContractEvent<MaxConfidenceForPairSetEvent.InputTuple, MaxConfidenceForPairSetEvent.OutputTuple, MaxConfidenceForPairSetEvent.OutputObject>;
|
|
948
|
+
MaxConfidenceForPairSet: TypedContractEvent<MaxConfidenceForPairSetEvent.InputTuple, MaxConfidenceForPairSetEvent.OutputTuple, MaxConfidenceForPairSetEvent.OutputObject>;
|
|
949
|
+
"NewAdmin(address,address)": TypedContractEvent<NewAdminEvent.InputTuple, NewAdminEvent.OutputTuple, NewAdminEvent.OutputObject>;
|
|
950
|
+
NewAdmin: TypedContractEvent<NewAdminEvent.InputTuple, NewAdminEvent.OutputTuple, NewAdminEvent.OutputObject>;
|
|
951
|
+
"NewPendingAdmin(address,address)": TypedContractEvent<NewPendingAdminEvent.InputTuple, NewPendingAdminEvent.OutputTuple, NewPendingAdminEvent.OutputObject>;
|
|
952
|
+
NewPendingAdmin: TypedContractEvent<NewPendingAdminEvent.InputTuple, NewPendingAdminEvent.OutputTuple, NewPendingAdminEvent.OutputObject>;
|
|
953
|
+
"NumberUpdated(string,uint256)": TypedContractEvent<NumberUpdatedEvent.InputTuple, NumberUpdatedEvent.OutputTuple, NumberUpdatedEvent.OutputObject>;
|
|
954
|
+
NumberUpdated: TypedContractEvent<NumberUpdatedEvent.InputTuple, NumberUpdatedEvent.OutputTuple, NumberUpdatedEvent.OutputObject>;
|
|
955
|
+
"OpenPositionExecuted(address,bytes32,uint8,uint256,uint256,uint256)": TypedContractEvent<OpenPositionExecutedEvent.InputTuple, OpenPositionExecutedEvent.OutputTuple, OpenPositionExecutedEvent.OutputObject>;
|
|
956
|
+
OpenPositionExecuted: TypedContractEvent<OpenPositionExecutedEvent.InputTuple, OpenPositionExecutedEvent.OutputTuple, OpenPositionExecutedEvent.OutputObject>;
|
|
957
|
+
"PausedToggled(bool)": TypedContractEvent<PausedToggledEvent.InputTuple, PausedToggledEvent.OutputTuple, PausedToggledEvent.OutputObject>;
|
|
958
|
+
PausedToggled: TypedContractEvent<PausedToggledEvent.InputTuple, PausedToggledEvent.OutputTuple, PausedToggledEvent.OutputObject>;
|
|
959
|
+
"PositionUpdateTimeoutTriggered(address,bytes32,uint8,uint64,uint64)": TypedContractEvent<PositionUpdateTimeoutTriggeredEvent.InputTuple, PositionUpdateTimeoutTriggeredEvent.OutputTuple, PositionUpdateTimeoutTriggeredEvent.OutputObject>;
|
|
960
|
+
PositionUpdateTimeoutTriggered: TypedContractEvent<PositionUpdateTimeoutTriggeredEvent.InputTuple, PositionUpdateTimeoutTriggeredEvent.OutputTuple, PositionUpdateTimeoutTriggeredEvent.OutputObject>;
|
|
961
|
+
"SlExecuted(address,bytes32,uint16,uint256,uint256,uint256)": TypedContractEvent<SlExecutedEvent.InputTuple, SlExecutedEvent.OutputTuple, SlExecutedEvent.OutputObject>;
|
|
962
|
+
SlExecuted: TypedContractEvent<SlExecutedEvent.InputTuple, SlExecutedEvent.OutputTuple, SlExecutedEvent.OutputObject>;
|
|
963
|
+
"SpreadFractionForPairSet(uint256,uint256)": TypedContractEvent<SpreadFractionForPairSetEvent.InputTuple, SpreadFractionForPairSetEvent.OutputTuple, SpreadFractionForPairSetEvent.OutputObject>;
|
|
964
|
+
SpreadFractionForPairSet: TypedContractEvent<SpreadFractionForPairSetEvent.InputTuple, SpreadFractionForPairSetEvent.OutputTuple, SpreadFractionForPairSetEvent.OutputObject>;
|
|
965
|
+
"TpExecuted(address,bytes32,uint16,uint256,uint256,uint256)": TypedContractEvent<TpExecutedEvent.InputTuple, TpExecutedEvent.OutputTuple, TpExecutedEvent.OutputObject>;
|
|
966
|
+
TpExecuted: TypedContractEvent<TpExecutedEvent.InputTuple, TpExecutedEvent.OutputTuple, TpExecutedEvent.OutputObject>;
|
|
967
|
+
"TriggerAccountAllowed(address)": TypedContractEvent<TriggerAccountAllowedEvent.InputTuple, TriggerAccountAllowedEvent.OutputTuple, TriggerAccountAllowedEvent.OutputObject>;
|
|
968
|
+
TriggerAccountAllowed: TypedContractEvent<TriggerAccountAllowedEvent.InputTuple, TriggerAccountAllowedEvent.OutputTuple, TriggerAccountAllowedEvent.OutputObject>;
|
|
969
|
+
"TriggerAccountDisallowed(address)": TypedContractEvent<TriggerAccountDisallowedEvent.InputTuple, TriggerAccountDisallowedEvent.OutputTuple, TriggerAccountDisallowedEvent.OutputObject>;
|
|
970
|
+
TriggerAccountDisallowed: TypedContractEvent<TriggerAccountDisallowedEvent.InputTuple, TriggerAccountDisallowedEvent.OutputTuple, TriggerAccountDisallowedEvent.OutputObject>;
|
|
971
|
+
"UpdatePositionSingleFieldExecuted(address,bytes32,uint8,uint8,uint256,uint64)": TypedContractEvent<UpdatePositionSingleFieldExecutedEvent.InputTuple, UpdatePositionSingleFieldExecutedEvent.OutputTuple, UpdatePositionSingleFieldExecutedEvent.OutputObject>;
|
|
972
|
+
UpdatePositionSingleFieldExecuted: TypedContractEvent<UpdatePositionSingleFieldExecutedEvent.InputTuple, UpdatePositionSingleFieldExecutedEvent.OutputTuple, UpdatePositionSingleFieldExecutedEvent.OutputObject>;
|
|
973
|
+
"UpdatePositionSingleFieldRejected(address,bytes32,uint8,uint8,uint256,uint64,string,uint256)": TypedContractEvent<UpdatePositionSingleFieldRejectedEvent.InputTuple, UpdatePositionSingleFieldRejectedEvent.OutputTuple, UpdatePositionSingleFieldRejectedEvent.OutputObject>;
|
|
974
|
+
UpdatePositionSingleFieldRejected: TypedContractEvent<UpdatePositionSingleFieldRejectedEvent.InputTuple, UpdatePositionSingleFieldRejectedEvent.OutputTuple, UpdatePositionSingleFieldRejectedEvent.OutputObject>;
|
|
975
|
+
};
|
|
976
|
+
}
|
|
977
|
+
//# sourceMappingURL=TriggersV1.d.ts.map
|