lynx-client 0.0.32 → 0.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/lib/addresses/lensAddresses.js +6 -6
- package/dist/cjs/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.js +16 -16
- package/dist/cjs/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.js +40 -40
- package/dist/cjs/lib/contractsIntegration/EngineChipService/EngineChipService.js +89 -89
- package/dist/cjs/lib/contractsIntegration/FeatureFlaggerService/FeatureFlaggerService.js +38 -38
- package/dist/cjs/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.js +8 -8
- package/dist/cjs/lib/contractsIntegration/LexLensService/ILexLensService.js +7 -0
- package/dist/cjs/lib/contractsIntegration/LexLensService/LexLensService.js +52 -52
- package/dist/cjs/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.js +103 -103
- package/dist/cjs/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.js +26 -26
- package/dist/cjs/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.js +78 -78
- package/dist/cjs/lib/contractsIntegration/OrderBookService/OrderBookService.js +38 -38
- package/dist/cjs/lib/contractsIntegration/PNLRService/PNLRService.js +44 -44
- package/dist/cjs/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.js +112 -112
- package/dist/cjs/lib/contractsIntegration/RateModelLensService/RateModelLensService.js +10 -10
- package/dist/cjs/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.js +40 -40
- package/dist/cjs/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +66 -65
- package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +13 -13
- package/dist/cjs/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +86 -86
- package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.js +25 -1
- package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.js +52 -8
- package/dist/cjs/lib/contractsIntegration/TriggersService/TriggersService.js +80 -80
- package/dist/cjs/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.js +10 -9
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/FeatureFlagger/FeatureFlaggerV1__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +284 -9
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +6 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +261 -1
- package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +136 -1
- package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/RateModelLens__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 +220 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/lib/addresses/lensAddresses.d.ts +6 -6
- package/dist/esm/lib/addresses/lensAddresses.js +6 -6
- package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.js +16 -16
- package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts +9 -8
- package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.d.ts +21 -20
- package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.js +40 -40
- package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.d.ts +21 -20
- package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/EngineChipService/EngineChipService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/EngineChipService/EngineChipService.js +89 -89
- package/dist/esm/lib/contractsIntegration/EngineChipService/IEngineChipService.d.ts +37 -37
- package/dist/esm/lib/contractsIntegration/EngineChipService/IEngineChipService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/FeatureFlaggerService/FeatureFlaggerService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/FeatureFlaggerService/FeatureFlaggerService.js +38 -38
- package/dist/esm/lib/contractsIntegration/FeatureFlaggerService/IFeatureFlaggerService.d.ts +14 -14
- package/dist/esm/lib/contractsIntegration/FeatureFlaggerService/IFeatureFlaggerService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts +5 -4
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts +5 -4
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.js +8 -8
- package/dist/esm/lib/contractsIntegration/LexLensService/ILexLensService.d.ts +26 -25
- package/dist/esm/lib/contractsIntegration/LexLensService/ILexLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/LexLensService/ILexLensService.js +7 -0
- package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.d.ts +26 -25
- package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.js +52 -52
- package/dist/esm/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts +73 -73
- package/dist/esm/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.js +103 -103
- package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.d.ts +14 -13
- package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.d.ts +14 -13
- package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.js +26 -26
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts +34 -34
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.js +78 -78
- package/dist/esm/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts +13 -13
- package/dist/esm/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.js +38 -38
- package/dist/esm/lib/contractsIntegration/PNLRService/IPNLRService.d.ts +17 -17
- package/dist/esm/lib/contractsIntegration/PNLRService/IPNLRService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/PNLRService/PNLRService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/PNLRService/PNLRService.js +44 -44
- package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts +90 -90
- package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.js +112 -112
- package/dist/esm/lib/contractsIntegration/RateModelLensService/IRateModelLensService.d.ts +11 -5
- package/dist/esm/lib/contractsIntegration/RateModelLensService/IRateModelLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/RateModelLensService/RateModelLensService.d.ts +6 -5
- package/dist/esm/lib/contractsIntegration/RateModelLensService/RateModelLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/RateModelLensService/RateModelLensService.js +10 -10
- package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.d.ts +21 -20
- package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.d.ts +21 -20
- package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.js +40 -40
- package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts +25 -25
- package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +66 -65
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +7 -6
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts +7 -6
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +13 -13
- package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts +33 -33
- package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +86 -86
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts +34 -8
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.js +25 -1
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts +10 -5
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.js +52 -8
- package/dist/esm/lib/contractsIntegration/TriggersService/ITriggersService.d.ts +36 -36
- package/dist/esm/lib/contractsIntegration/TriggersService/ITriggersService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.js +80 -80
- package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.d.ts +6 -5
- package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.js +10 -9
- package/dist/esm/lib/contractsIntegration/common/ILynxVersionedContract.d.ts +5 -4
- package/dist/esm/lib/contractsIntegration/common/ILynxVersionedContract.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/common/IPendableAdmin.d.ts +3 -2
- package/dist/esm/lib/contractsIntegration/common/IPendableAdmin.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/common/IPendableImplementation.d.ts +3 -2
- package/dist/esm/lib/contractsIntegration/common/IPendableImplementation.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/common/IProtocolConstants.d.ts +6 -5
- package/dist/esm/lib/contractsIntegration/common/IProtocolConstants.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/common/index.d.ts +20 -0
- package/dist/esm/lib/contractsIntegration/common/index.d.ts.map +1 -1
- package/dist/esm/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts +182 -9
- package/dist/esm/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts.map +1 -1
- package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts +5 -3
- package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts.map +1 -1
- package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts +164 -2
- package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts.map +1 -1
- package/dist/esm/lib/typechain/contracts/Peripheral/Lens/LexLens.d.ts +22 -1
- package/dist/esm/lib/typechain/contracts/Peripheral/Lens/LexLens.d.ts.map +1 -1
- package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts +126 -3
- package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts.map +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/FeatureFlagger/FeatureFlaggerV1__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/FeatureFlagger/FeatureFlaggerV1__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +221 -9
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts.map +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +284 -9
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +5 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +6 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +203 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts.map +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +261 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +109 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts.map +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +136 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/RateModelLens__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/RateModelLens__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 +169 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts.map +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +220 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/lib/addresses/lensAddresses.d.ts +6 -6
- package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts +9 -8
- package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.d.ts +21 -20
- package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.d.ts +21 -20
- package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/EngineChipService/EngineChipService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/EngineChipService/IEngineChipService.d.ts +37 -37
- package/dist/types/lib/contractsIntegration/EngineChipService/IEngineChipService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/FeatureFlaggerService/FeatureFlaggerService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/FeatureFlaggerService/IFeatureFlaggerService.d.ts +14 -14
- package/dist/types/lib/contractsIntegration/FeatureFlaggerService/IFeatureFlaggerService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts +5 -4
- package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts +5 -4
- package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/LexLensService/ILexLensService.d.ts +26 -25
- package/dist/types/lib/contractsIntegration/LexLensService/ILexLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/LexLensService/LexLensService.d.ts +26 -25
- package/dist/types/lib/contractsIntegration/LexLensService/LexLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts +73 -73
- package/dist/types/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.d.ts +14 -13
- package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.d.ts +14 -13
- package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts +34 -34
- package/dist/types/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts +13 -13
- package/dist/types/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/PNLRService/IPNLRService.d.ts +17 -17
- package/dist/types/lib/contractsIntegration/PNLRService/IPNLRService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/PNLRService/PNLRService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts +90 -90
- package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/RateModelLensService/IRateModelLensService.d.ts +11 -5
- package/dist/types/lib/contractsIntegration/RateModelLensService/IRateModelLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/RateModelLensService/RateModelLensService.d.ts +6 -5
- package/dist/types/lib/contractsIntegration/RateModelLensService/RateModelLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.d.ts +21 -20
- package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.d.ts +21 -20
- package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts +25 -25
- package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +7 -6
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts +7 -6
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts +33 -33
- package/dist/types/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts +34 -8
- package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts +10 -5
- package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TriggersService/ITriggersService.d.ts +36 -36
- package/dist/types/lib/contractsIntegration/TriggersService/ITriggersService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TriggersService/TriggersService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.d.ts +6 -5
- package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/common/ILynxVersionedContract.d.ts +5 -4
- package/dist/types/lib/contractsIntegration/common/ILynxVersionedContract.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/common/IPendableAdmin.d.ts +3 -2
- package/dist/types/lib/contractsIntegration/common/IPendableAdmin.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/common/IPendableImplementation.d.ts +3 -2
- package/dist/types/lib/contractsIntegration/common/IPendableImplementation.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/common/IProtocolConstants.d.ts +6 -5
- package/dist/types/lib/contractsIntegration/common/IProtocolConstants.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/common/index.d.ts +20 -0
- package/dist/types/lib/contractsIntegration/common/index.d.ts.map +1 -1
- package/dist/types/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts +182 -9
- package/dist/types/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts.map +1 -1
- package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts +5 -3
- package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts.map +1 -1
- package/dist/types/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts +164 -2
- package/dist/types/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts.map +1 -1
- package/dist/types/lib/typechain/contracts/Peripheral/Lens/LexLens.d.ts +22 -1
- package/dist/types/lib/typechain/contracts/Peripheral/Lens/LexLens.d.ts.map +1 -1
- package/dist/types/lib/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts +126 -3
- package/dist/types/lib/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts.map +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/FeatureFlagger/FeatureFlaggerV1__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +221 -9
- package/dist/types/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts.map +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +5 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +203 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts.map +1 -1
- package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +109 -1
- package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts.map +1 -1
- package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/RateModelLens__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 +169 -1
- package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts.map +1 -1
- package/package.json +3 -2
package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js
CHANGED
|
@@ -39,17 +39,17 @@ class TradingFloorLensService {
|
|
|
39
39
|
constructor(signerOrProvider, contractAddress) {
|
|
40
40
|
this.contract = TradingFloorLens__factory_1.TradingFloorLens__factory.connect(contractAddress, signerOrProvider);
|
|
41
41
|
}
|
|
42
|
-
async generatePositionHashId(settlementAsset, trader, pairId, index) {
|
|
43
|
-
return await this.contract.generatePositionHashId(settlementAsset, trader, BigInt(pairId), BigInt(index));
|
|
42
|
+
async generatePositionHashId(settlementAsset, trader, pairId, index, callOptions) {
|
|
43
|
+
return await this.contract.generatePositionHashId(settlementAsset, trader, BigInt(pairId), BigInt(index), { ...callOptions });
|
|
44
44
|
}
|
|
45
|
-
async getAllPositionsDataForAllTraders(params) {
|
|
45
|
+
async getAllPositionsDataForAllTraders(params, callOptions) {
|
|
46
46
|
const contractParams = {
|
|
47
47
|
tradingFloor: params.tradingFloor,
|
|
48
48
|
traderStartIndex: BigInt(params.traderStartIndex),
|
|
49
49
|
positionStartIndex: BigInt(params.positionStartIndex),
|
|
50
50
|
positionsLimit: BigInt(params.positionsLimit),
|
|
51
51
|
};
|
|
52
|
-
const result = await this.contract.getAllPositionsDataForAllTraders.staticCall(contractParams);
|
|
52
|
+
const result = await this.contract.getAllPositionsDataForAllTraders.staticCall(contractParams, { ...callOptions });
|
|
53
53
|
const baseResult = (0, ethersTypes_1.ethersStructResponseToObject)(result, ITradingFloorLensService_1.EMPTY_POSITIONS_RESULT);
|
|
54
54
|
// Convert positions and filter out empty ones
|
|
55
55
|
const convertedPositions = result.positions
|
|
@@ -63,7 +63,7 @@ class TradingFloorLensService {
|
|
|
63
63
|
positionLastIndex: Number(baseResult.positionLastIndex),
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
|
-
async getAllPositionsLiquidationInfo(params, phases) {
|
|
66
|
+
async getAllPositionsLiquidationInfo(params, phases, callOptions) {
|
|
67
67
|
const contractParams = {
|
|
68
68
|
tradingFloor: params.tradingFloor,
|
|
69
69
|
traderStartIndex: BigInt(params.traderStartIndex),
|
|
@@ -72,11 +72,11 @@ class TradingFloorLensService {
|
|
|
72
72
|
};
|
|
73
73
|
let result;
|
|
74
74
|
if (phases !== undefined) {
|
|
75
|
-
result = await this.contract["getAllPositionsLiquidationInfo((address,uint256,uint16,uint256),uint8[])"].staticCall(contractParams, phases.map((p) => BigInt(p)));
|
|
75
|
+
result = await this.contract["getAllPositionsLiquidationInfo((address,uint256,uint16,uint256),uint8[])"].staticCall(contractParams, phases.map((p) => BigInt(p)), { ...callOptions });
|
|
76
76
|
}
|
|
77
77
|
else {
|
|
78
78
|
result =
|
|
79
|
-
await this.contract["getAllPositionsLiquidationInfo((address,uint256,uint16,uint256))"].staticCall(contractParams);
|
|
79
|
+
await this.contract["getAllPositionsLiquidationInfo((address,uint256,uint16,uint256))"].staticCall(contractParams, { ...callOptions });
|
|
80
80
|
}
|
|
81
81
|
const baseResult = (0, ethersTypes_1.ethersStructResponseToObject)(result, ITradingFloorLensService_1.EMPTY_LIQUIDATION_RESULT);
|
|
82
82
|
const convertedPositions = result.positionsLiquidationInfo.map((pos) => convertLiquidationInfo(pos));
|
|
@@ -88,19 +88,19 @@ class TradingFloorLensService {
|
|
|
88
88
|
positionLastIndex: Number(baseResult.positionLastIndex),
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
|
-
async getCompletePositionData(tradingFloor, positionId) {
|
|
92
|
-
const result = await this.contract.getCompletePositionData.staticCall(tradingFloor, positionId);
|
|
91
|
+
async getCompletePositionData(tradingFloor, positionId, callOptions) {
|
|
92
|
+
const result = await this.contract.getCompletePositionData.staticCall(tradingFloor, positionId, { ...callOptions });
|
|
93
93
|
return convertPositionData(result);
|
|
94
94
|
}
|
|
95
|
-
async getPositionsDataForTrader(tradingFloor, trader) {
|
|
96
|
-
const result = await this.contract.getPositionsDataForTrader.staticCall(tradingFloor, trader);
|
|
95
|
+
async getPositionsDataForTrader(tradingFloor, trader, callOptions) {
|
|
96
|
+
const result = await this.contract.getPositionsDataForTrader.staticCall(tradingFloor, trader, { ...callOptions });
|
|
97
97
|
// Convert and filter out empty positions (collateral = 0)
|
|
98
98
|
return result
|
|
99
99
|
.filter((pos) => pos.collateral > 0n)
|
|
100
100
|
.map((pos) => convertPositionData(pos));
|
|
101
101
|
}
|
|
102
|
-
async getTradingFloorTradeParams(tradingFloor) {
|
|
103
|
-
const result = await this.contract.getTradingFloorTradeParams.staticCall(tradingFloor);
|
|
102
|
+
async getTradingFloorTradeParams(tradingFloor, callOptions) {
|
|
103
|
+
const result = await this.contract.getTradingFloorTradeParams.staticCall(tradingFloor, { ...callOptions });
|
|
104
104
|
// Result is a tuple/array-like object, extract the named properties
|
|
105
105
|
return {
|
|
106
106
|
tradingFloor: result.tradingFloor,
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import { BytesLike } from "ethers";
|
|
2
2
|
import { TradingFloorStructsV1 } from "../../typechain/contracts/Lynx/TradingFloor/TradingFloorV1";
|
|
3
3
|
import { TSafeBigNumberStruct } from "../../utils/ethersTypes";
|
|
4
|
-
import { ILynxVersionedContract, IPendableAdmin, IPendableImplementation, IProtocolConstants } from "../common";
|
|
4
|
+
import { ILynxVersionedContract, IPendableAdmin, IPendableImplementation, IProtocolConstants, CallOptions } from "../common";
|
|
5
5
|
type PositionRequestIdentifierStruct = TradingFloorStructsV1.PositionRequestIdentifiersStruct;
|
|
6
6
|
type PositionRequestParamsStruct = TradingFloorStructsV1.PositionRequestParamsStruct;
|
|
7
7
|
export type TPositionRequestIdentifierStruct = TSafeBigNumberStruct<PositionRequestIdentifierStruct>;
|
|
8
8
|
export type TPositionRequestParamsStruct = TSafeBigNumberStruct<PositionRequestParamsStruct>;
|
|
9
9
|
export interface ITradingFloorFunctionsGroup_PositionQueries {
|
|
10
|
-
generatePositionHashId(settlementAsset: string, trader: string, pairId: bigint, index: bigint): Promise<string>;
|
|
11
|
-
getPositionPortalInfo(positionId: BytesLike): Promise<{
|
|
10
|
+
generatePositionHashId(settlementAsset: string, trader: string, pairId: bigint, index: bigint, callOptions?: CallOptions): Promise<string>;
|
|
11
|
+
getPositionPortalInfo(positionId: BytesLike, callOptions?: CallOptions): Promise<{
|
|
12
12
|
phase: bigint;
|
|
13
13
|
timestamp: bigint;
|
|
14
14
|
trader: string;
|
|
15
15
|
}>;
|
|
16
|
-
getPositionRegistrationParams(positionId: BytesLike): Promise<{
|
|
16
|
+
getPositionRegistrationParams(positionId: BytesLike, callOptions?: CallOptions): Promise<{
|
|
17
17
|
collateral: bigint;
|
|
18
18
|
leverage: bigint;
|
|
19
19
|
long: boolean;
|
|
20
20
|
openPrice: bigint;
|
|
21
21
|
tp: bigint;
|
|
22
22
|
}>;
|
|
23
|
-
getPositionTriggerInfo(positionId: BytesLike): Promise<{
|
|
23
|
+
getPositionTriggerInfo(positionId: BytesLike, callOptions?: CallOptions): Promise<{
|
|
24
24
|
phase: bigint;
|
|
25
25
|
timestamp: bigint;
|
|
26
26
|
pairId: bigint;
|
|
27
27
|
long: boolean;
|
|
28
28
|
spreadReductionF: bigint;
|
|
29
29
|
}>;
|
|
30
|
-
positionIdentifiersById(positionId: BytesLike): Promise<{
|
|
30
|
+
positionIdentifiersById(positionId: BytesLike, callOptions?: CallOptions): Promise<{
|
|
31
31
|
settlementAsset: string;
|
|
32
32
|
pairId: bigint;
|
|
33
33
|
index: bigint;
|
|
34
34
|
trader: string;
|
|
35
35
|
}>;
|
|
36
|
-
positionLimitsInfoById(positionId: BytesLike): Promise<{
|
|
36
|
+
positionLimitsInfoById(positionId: BytesLike, callOptions?: CallOptions): Promise<{
|
|
37
37
|
tpLastUpdated: bigint;
|
|
38
38
|
slLastUpdated: bigint;
|
|
39
39
|
tp: bigint;
|
|
40
40
|
sl: bigint;
|
|
41
41
|
}>;
|
|
42
|
-
positionsById(positionId: BytesLike): Promise<{
|
|
42
|
+
positionsById(positionId: BytesLike, callOptions?: CallOptions): Promise<{
|
|
43
43
|
collateral: bigint;
|
|
44
44
|
phase: bigint;
|
|
45
45
|
inPhaseSince: bigint;
|
|
@@ -48,54 +48,54 @@ export interface ITradingFloorFunctionsGroup_PositionQueries {
|
|
|
48
48
|
openPrice: bigint;
|
|
49
49
|
spreadReductionF: bigint;
|
|
50
50
|
}>;
|
|
51
|
-
triggerPricesById(positionId: BytesLike): Promise<{
|
|
51
|
+
triggerPricesById(positionId: BytesLike, callOptions?: CallOptions): Promise<{
|
|
52
52
|
minPrice: bigint;
|
|
53
53
|
maxPrice: bigint;
|
|
54
54
|
tpByFraction: bigint;
|
|
55
55
|
slByFraction: bigint;
|
|
56
56
|
}>;
|
|
57
|
-
initialCollateralByPositionId(positionId: BytesLike): Promise<bigint>;
|
|
57
|
+
initialCollateralByPositionId(positionId: BytesLike, callOptions?: CallOptions): Promise<bigint>;
|
|
58
58
|
}
|
|
59
59
|
export interface ITradingFloorFunctionsGroup_SettlementAndPool {
|
|
60
|
-
isSettlementAssetSupported(settlementAsset: string): Promise<boolean>;
|
|
61
|
-
lexPoolForAsset(asset: string): Promise<string>;
|
|
62
|
-
poolAccountantForAsset(asset: string): Promise<string>;
|
|
60
|
+
isSettlementAssetSupported(settlementAsset: string, callOptions?: CallOptions): Promise<boolean>;
|
|
61
|
+
lexPoolForAsset(asset: string, callOptions?: CallOptions): Promise<string>;
|
|
62
|
+
poolAccountantForAsset(asset: string, callOptions?: CallOptions): Promise<string>;
|
|
63
63
|
}
|
|
64
64
|
export interface ITradingFloorFunctionsGroup_Deprecated {
|
|
65
|
-
deprecated_pairTraders(asset: string, pairId: bigint, index: bigint): Promise<string>;
|
|
66
|
-
deprecated_pairTradersArray(asset: string, pairIndex: bigint): Promise<string[]>;
|
|
67
|
-
deprecated_pairTradersInfo(asset: string, trader: string, pairId: bigint): Promise<{
|
|
65
|
+
deprecated_pairTraders(asset: string, pairId: bigint, index: bigint, callOptions?: CallOptions): Promise<string>;
|
|
66
|
+
deprecated_pairTradersArray(asset: string, pairIndex: bigint, callOptions?: CallOptions): Promise<string[]>;
|
|
67
|
+
deprecated_pairTradersInfo(asset: string, trader: string, pairId: bigint, callOptions?: CallOptions): Promise<{
|
|
68
68
|
positionsCounter: bigint;
|
|
69
69
|
positionInArray: bigint;
|
|
70
70
|
}>;
|
|
71
|
-
pausedPairs(pairId: bigint): Promise<boolean>;
|
|
71
|
+
pausedPairs(pairId: bigint, callOptions?: CallOptions): Promise<boolean>;
|
|
72
72
|
}
|
|
73
73
|
export interface ITradingFloorFunctionsGroup_TraderTracking {
|
|
74
|
-
traders(index: bigint): Promise<string>;
|
|
75
|
-
tradersAmount(): Promise<bigint>;
|
|
76
|
-
tradersIndex(trader: string): Promise<bigint>;
|
|
77
|
-
getActivePositionsAmountForTrader(trader: string): Promise<bigint>;
|
|
78
|
-
activePositionIdsByTrader(trader: string, index: bigint): Promise<string>;
|
|
79
|
-
positionIdToActivePositionIndex(trader: string, positionId: string): Promise<bigint>;
|
|
80
|
-
getActivePositionIdsForTrader(trader: string): Promise<string[]>;
|
|
81
|
-
getNextPositionIndexForTrader(trader: string): Promise<bigint>;
|
|
82
|
-
pairTradersLastUsedPositionIndex(trader: string): Promise<bigint>;
|
|
74
|
+
traders(index: bigint, callOptions?: CallOptions): Promise<string>;
|
|
75
|
+
tradersAmount(callOptions?: CallOptions): Promise<bigint>;
|
|
76
|
+
tradersIndex(trader: string, callOptions?: CallOptions): Promise<bigint>;
|
|
77
|
+
getActivePositionsAmountForTrader(trader: string, callOptions?: CallOptions): Promise<bigint>;
|
|
78
|
+
activePositionIdsByTrader(trader: string, index: bigint, callOptions?: CallOptions): Promise<string>;
|
|
79
|
+
positionIdToActivePositionIndex(trader: string, positionId: string, callOptions?: CallOptions): Promise<bigint>;
|
|
80
|
+
getActivePositionIdsForTrader(trader: string, callOptions?: CallOptions): Promise<string[]>;
|
|
81
|
+
getNextPositionIndexForTrader(trader: string, callOptions?: CallOptions): Promise<bigint>;
|
|
82
|
+
pairTradersLastUsedPositionIndex(trader: string, callOptions?: CallOptions): Promise<bigint>;
|
|
83
83
|
}
|
|
84
84
|
export interface ITradingFloorFunctionsGroup_TradingParameters {
|
|
85
|
-
maxSanityProfitF(): Promise<bigint>;
|
|
86
|
-
maxSlF(): Promise<bigint>;
|
|
87
|
-
maxTradesPerTrader(): Promise<bigint>;
|
|
85
|
+
maxSanityProfitF(callOptions?: CallOptions): Promise<bigint>;
|
|
86
|
+
maxSlF(callOptions?: CallOptions): Promise<bigint>;
|
|
87
|
+
maxTradesPerTrader(callOptions?: CallOptions): Promise<bigint>;
|
|
88
88
|
}
|
|
89
89
|
export interface ITradingFloorFunctionsGroup_Fees {
|
|
90
|
-
feesMap(asset: string, feeType: bigint): Promise<bigint>;
|
|
90
|
+
feesMap(asset: string, feeType: bigint, callOptions?: CallOptions): Promise<bigint>;
|
|
91
91
|
}
|
|
92
92
|
export interface ITradingFloorFunctionsGroup_ContractReferences {
|
|
93
|
-
registry(): Promise<string>;
|
|
93
|
+
registry(callOptions?: CallOptions): Promise<string>;
|
|
94
94
|
}
|
|
95
95
|
export type ITradingFloorFunctionsGroup_LynxVersionedContract = ILynxVersionedContract;
|
|
96
96
|
export interface ITradingFloorFunctionsGroup_Constants extends IProtocolConstants {
|
|
97
|
-
MAX_FEE_FRACTION_FOR_CANCEL(): Promise<bigint>;
|
|
98
|
-
ACCURACY_IMPROVEMENT_SCALE(): Promise<bigint>;
|
|
97
|
+
MAX_FEE_FRACTION_FOR_CANCEL(callOptions?: CallOptions): Promise<bigint>;
|
|
98
|
+
ACCURACY_IMPROVEMENT_SCALE(callOptions?: CallOptions): Promise<bigint>;
|
|
99
99
|
}
|
|
100
100
|
export interface ITradingFloorService {
|
|
101
101
|
positionQueries: ITradingFloorFunctionsGroup_PositionQueries;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ITradingFloorService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradingFloorService/ITradingFloorService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA+B,MAAM,QAAQ,CAAA;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAA;AAClG,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAE9D,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"ITradingFloorService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradingFloorService/ITradingFloorService.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TradingFloorService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradingFloorService/TradingFloorService.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,MAAM,EACN,QAAQ,EAET,MAAM,QAAQ,CAAA;AAEf,OAAO,EAAE,cAAc,EAAE,MAAM,4DAA4D,CAAA;AAE3F,OAAO,EACL,oBAAoB,EACpB,2CAA2C,EAC3C,6CAA6C,EAC7C,sCAAsC,EACtC,0CAA0C,EAC1C,6CAA6C,EAC7C,gCAAgC,EAChC,8CAA8C,EAC9C,qCAAqC,EAGtC,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,uBAAuB,
|
|
1
|
+
{"version":3,"file":"TradingFloorService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradingFloorService/TradingFloorService.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,MAAM,EACN,QAAQ,EAET,MAAM,QAAQ,CAAA;AAEf,OAAO,EAAE,cAAc,EAAE,MAAM,4DAA4D,CAAA;AAE3F,OAAO,EACL,oBAAoB,EACpB,2CAA2C,EAC3C,6CAA6C,EAC7C,sCAAsC,EACtC,0CAA0C,EAC1C,6CAA6C,EAC7C,gCAAgC,EAChC,8CAA8C,EAC9C,qCAAqC,EAGtC,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAqWxG,qBAAa,mBAAoB,YAAW,oBAAoB;IAiB5D,OAAO,CAAC,gBAAgB;IAhB1B,OAAO,CAAC,oBAAoB,CAAgB;IAErC,eAAe,EAAE,2CAA2C,CAAA;IAC5D,iBAAiB,EAAE,6CAA6C,CAAA;IAChE,UAAU,EAAE,sCAAsC,CAAA;IAClD,cAAc,EAAE,0CAA0C,CAAA;IAC1D,iBAAiB,EAAE,6CAA6C,CAAA;IAChE,IAAI,EAAE,gCAAgC,CAAA;IACtC,kBAAkB,EAAE,8CAA8C,CAAA;IAClE,aAAa,EAAE,cAAc,CAAA;IAC7B,sBAAsB,EAAE,uBAAuB,CAAA;IAC/C,qBAAqB,EAAE,sBAAsB,CAAA;IAC7C,SAAS,EAAE,qCAAqC,CAAA;gBAGrD,OAAO,EAAE,MAAM,EACP,gBAAgB,EAAE,MAAM,GAAG,QAAQ;IAoB7C,WAAW,IAAI,cAAc;CAG9B"}
|
|
@@ -6,19 +6,19 @@ class PositionQueries {
|
|
|
6
6
|
constructor(tradingFloorContract) {
|
|
7
7
|
this.tradingFloorContract = tradingFloorContract;
|
|
8
8
|
}
|
|
9
|
-
async generatePositionHashId(settlementAsset, trader, pairId, index) {
|
|
10
|
-
return this.tradingFloorContract.generatePositionHashId(settlementAsset, trader, pairId, index);
|
|
9
|
+
async generatePositionHashId(settlementAsset, trader, pairId, index, callOptions) {
|
|
10
|
+
return this.tradingFloorContract.generatePositionHashId(settlementAsset, trader, pairId, index, { ...callOptions });
|
|
11
11
|
}
|
|
12
|
-
async getPositionPortalInfo(positionId) {
|
|
13
|
-
const result = await this.tradingFloorContract.getPositionPortalInfo(positionId);
|
|
12
|
+
async getPositionPortalInfo(positionId, callOptions) {
|
|
13
|
+
const result = await this.tradingFloorContract.getPositionPortalInfo(positionId, { ...callOptions });
|
|
14
14
|
return {
|
|
15
15
|
phase: result[0],
|
|
16
16
|
timestamp: result[1],
|
|
17
17
|
trader: result[2],
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
async getPositionRegistrationParams(positionId) {
|
|
21
|
-
const result = await this.tradingFloorContract.getPositionRegistrationParams(positionId);
|
|
20
|
+
async getPositionRegistrationParams(positionId, callOptions) {
|
|
21
|
+
const result = await this.tradingFloorContract.getPositionRegistrationParams(positionId, { ...callOptions });
|
|
22
22
|
return {
|
|
23
23
|
collateral: result.collateral,
|
|
24
24
|
leverage: result.leverage,
|
|
@@ -27,8 +27,8 @@ class PositionQueries {
|
|
|
27
27
|
tp: result.tp,
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
-
async getPositionTriggerInfo(positionId) {
|
|
31
|
-
const result = await this.tradingFloorContract.getPositionTriggerInfo(positionId);
|
|
30
|
+
async getPositionTriggerInfo(positionId, callOptions) {
|
|
31
|
+
const result = await this.tradingFloorContract.getPositionTriggerInfo(positionId, { ...callOptions });
|
|
32
32
|
return {
|
|
33
33
|
phase: result.positionPhase,
|
|
34
34
|
timestamp: result.timestamp,
|
|
@@ -37,8 +37,8 @@ class PositionQueries {
|
|
|
37
37
|
spreadReductionF: result.spreadReductionF,
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
async positionIdentifiersById(positionId) {
|
|
41
|
-
const result = await this.tradingFloorContract.positionIdentifiersById(positionId);
|
|
40
|
+
async positionIdentifiersById(positionId, callOptions) {
|
|
41
|
+
const result = await this.tradingFloorContract.positionIdentifiersById(positionId, { ...callOptions });
|
|
42
42
|
return {
|
|
43
43
|
settlementAsset: result.settlementAsset,
|
|
44
44
|
pairId: result.pairId,
|
|
@@ -46,8 +46,8 @@ class PositionQueries {
|
|
|
46
46
|
trader: result.trader,
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
async positionLimitsInfoById(positionId) {
|
|
50
|
-
const result = await this.tradingFloorContract.positionLimitsInfoById(positionId);
|
|
49
|
+
async positionLimitsInfoById(positionId, callOptions) {
|
|
50
|
+
const result = await this.tradingFloorContract.positionLimitsInfoById(positionId, { ...callOptions });
|
|
51
51
|
return {
|
|
52
52
|
tpLastUpdated: result.tpLastUpdated,
|
|
53
53
|
slLastUpdated: result.slLastUpdated,
|
|
@@ -55,8 +55,8 @@ class PositionQueries {
|
|
|
55
55
|
sl: result.sl,
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
|
-
async positionsById(positionId) {
|
|
59
|
-
const result = await this.tradingFloorContract.positionsById(positionId);
|
|
58
|
+
async positionsById(positionId, callOptions) {
|
|
59
|
+
const result = await this.tradingFloorContract.positionsById(positionId, { ...callOptions });
|
|
60
60
|
return {
|
|
61
61
|
collateral: result.collateral,
|
|
62
62
|
phase: result.phase,
|
|
@@ -67,8 +67,8 @@ class PositionQueries {
|
|
|
67
67
|
spreadReductionF: result.spreadReductionF,
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
async triggerPricesById(positionId) {
|
|
71
|
-
const result = await this.tradingFloorContract.triggerPricesById(positionId);
|
|
70
|
+
async triggerPricesById(positionId, callOptions) {
|
|
71
|
+
const result = await this.tradingFloorContract.triggerPricesById(positionId, { ...callOptions });
|
|
72
72
|
return {
|
|
73
73
|
minPrice: result.minPrice,
|
|
74
74
|
maxPrice: result.maxPrice,
|
|
@@ -76,164 +76,164 @@ class PositionQueries {
|
|
|
76
76
|
slByFraction: result.slByFraction,
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
|
-
async initialCollateralByPositionId(positionId) {
|
|
80
|
-
return this.tradingFloorContract.initialCollateralByPositionId(positionId);
|
|
79
|
+
async initialCollateralByPositionId(positionId, callOptions) {
|
|
80
|
+
return this.tradingFloorContract.initialCollateralByPositionId(positionId, { ...callOptions });
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
class SettlementAndPool {
|
|
84
84
|
constructor(tradingFloorContract) {
|
|
85
85
|
this.tradingFloorContract = tradingFloorContract;
|
|
86
86
|
}
|
|
87
|
-
async isSettlementAssetSupported(settlementAsset) {
|
|
88
|
-
return this.tradingFloorContract.isSettlementAssetSupported(settlementAsset);
|
|
87
|
+
async isSettlementAssetSupported(settlementAsset, callOptions) {
|
|
88
|
+
return this.tradingFloorContract.isSettlementAssetSupported(settlementAsset, { ...callOptions });
|
|
89
89
|
}
|
|
90
|
-
async lexPoolForAsset(asset) {
|
|
91
|
-
return this.tradingFloorContract.lexPoolForAsset(asset);
|
|
90
|
+
async lexPoolForAsset(asset, callOptions) {
|
|
91
|
+
return this.tradingFloorContract.lexPoolForAsset(asset, { ...callOptions });
|
|
92
92
|
}
|
|
93
|
-
async poolAccountantForAsset(asset) {
|
|
94
|
-
return this.tradingFloorContract.poolAccountantForAsset(asset);
|
|
93
|
+
async poolAccountantForAsset(asset, callOptions) {
|
|
94
|
+
return this.tradingFloorContract.poolAccountantForAsset(asset, { ...callOptions });
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
class Deprecated {
|
|
98
98
|
constructor(tradingFloorContract) {
|
|
99
99
|
this.tradingFloorContract = tradingFloorContract;
|
|
100
100
|
}
|
|
101
|
-
async deprecated_pairTraders(asset, pairId, index) {
|
|
102
|
-
return this.tradingFloorContract.deprecated_pairTraders(asset, pairId, index);
|
|
101
|
+
async deprecated_pairTraders(asset, pairId, index, callOptions) {
|
|
102
|
+
return this.tradingFloorContract.deprecated_pairTraders(asset, pairId, index, { ...callOptions });
|
|
103
103
|
}
|
|
104
|
-
async deprecated_pairTradersArray(asset, pairIndex) {
|
|
105
|
-
return this.tradingFloorContract.deprecated_pairTradersArray(asset, pairIndex);
|
|
104
|
+
async deprecated_pairTradersArray(asset, pairIndex, callOptions) {
|
|
105
|
+
return this.tradingFloorContract.deprecated_pairTradersArray(asset, pairIndex, { ...callOptions });
|
|
106
106
|
}
|
|
107
|
-
async deprecated_pairTradersInfo(asset, trader, pairId) {
|
|
108
|
-
const result = await this.tradingFloorContract.deprecated_pairTradersInfo(asset, trader, pairId);
|
|
107
|
+
async deprecated_pairTradersInfo(asset, trader, pairId, callOptions) {
|
|
108
|
+
const result = await this.tradingFloorContract.deprecated_pairTradersInfo(asset, trader, pairId, { ...callOptions });
|
|
109
109
|
return {
|
|
110
110
|
positionsCounter: result.deprecated_positionsCounter,
|
|
111
111
|
positionInArray: result.positionInArray,
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
|
-
async pausedPairs(pairId) {
|
|
115
|
-
return this.tradingFloorContract.pausedPairs(pairId);
|
|
114
|
+
async pausedPairs(pairId, callOptions) {
|
|
115
|
+
return this.tradingFloorContract.pausedPairs(pairId, { ...callOptions });
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
class TraderTracking {
|
|
119
119
|
constructor(tradingFloorContract) {
|
|
120
120
|
this.tradingFloorContract = tradingFloorContract;
|
|
121
121
|
}
|
|
122
|
-
async traders(index) {
|
|
123
|
-
return this.tradingFloorContract.traders(index);
|
|
122
|
+
async traders(index, callOptions) {
|
|
123
|
+
return this.tradingFloorContract.traders(index, { ...callOptions });
|
|
124
124
|
}
|
|
125
|
-
async tradersAmount() {
|
|
126
|
-
return this.tradingFloorContract.tradersAmount();
|
|
125
|
+
async tradersAmount(callOptions) {
|
|
126
|
+
return this.tradingFloorContract.tradersAmount({ ...callOptions });
|
|
127
127
|
}
|
|
128
|
-
async tradersIndex(trader) {
|
|
129
|
-
return this.tradingFloorContract.tradersIndex(trader);
|
|
128
|
+
async tradersIndex(trader, callOptions) {
|
|
129
|
+
return this.tradingFloorContract.tradersIndex(trader, { ...callOptions });
|
|
130
130
|
}
|
|
131
|
-
async getActivePositionsAmountForTrader(trader) {
|
|
132
|
-
return this.tradingFloorContract.getActivePositionsAmountForTrader(trader);
|
|
131
|
+
async getActivePositionsAmountForTrader(trader, callOptions) {
|
|
132
|
+
return this.tradingFloorContract.getActivePositionsAmountForTrader(trader, { ...callOptions });
|
|
133
133
|
}
|
|
134
|
-
async activePositionIdsByTrader(trader, index) {
|
|
135
|
-
return this.tradingFloorContract.activePositionIdsByTrader(trader, index);
|
|
134
|
+
async activePositionIdsByTrader(trader, index, callOptions) {
|
|
135
|
+
return this.tradingFloorContract.activePositionIdsByTrader(trader, index, { ...callOptions });
|
|
136
136
|
}
|
|
137
|
-
async positionIdToActivePositionIndex(trader, positionId) {
|
|
138
|
-
return this.tradingFloorContract.positionIdToActivePositionIndex(trader, positionId);
|
|
137
|
+
async positionIdToActivePositionIndex(trader, positionId, callOptions) {
|
|
138
|
+
return this.tradingFloorContract.positionIdToActivePositionIndex(trader, positionId, { ...callOptions });
|
|
139
139
|
}
|
|
140
|
-
async getActivePositionIdsForTrader(trader) {
|
|
141
|
-
return this.tradingFloorContract.getActivePositionIdsForTrader(trader);
|
|
140
|
+
async getActivePositionIdsForTrader(trader, callOptions) {
|
|
141
|
+
return this.tradingFloorContract.getActivePositionIdsForTrader(trader, { ...callOptions });
|
|
142
142
|
}
|
|
143
|
-
async getNextPositionIndexForTrader(trader) {
|
|
144
|
-
return this.tradingFloorContract.getNextPositionIndexForTrader(trader);
|
|
143
|
+
async getNextPositionIndexForTrader(trader, callOptions) {
|
|
144
|
+
return this.tradingFloorContract.getNextPositionIndexForTrader(trader, { ...callOptions });
|
|
145
145
|
}
|
|
146
|
-
async pairTradersLastUsedPositionIndex(trader) {
|
|
147
|
-
return this.tradingFloorContract.pairTradersLastUsedPositionIndex(trader);
|
|
146
|
+
async pairTradersLastUsedPositionIndex(trader, callOptions) {
|
|
147
|
+
return this.tradingFloorContract.pairTradersLastUsedPositionIndex(trader, { ...callOptions });
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
class TradingParameters {
|
|
151
151
|
constructor(tradingFloorContract) {
|
|
152
152
|
this.tradingFloorContract = tradingFloorContract;
|
|
153
153
|
}
|
|
154
|
-
async maxSanityProfitF() {
|
|
155
|
-
return this.tradingFloorContract.maxSanityProfitF();
|
|
154
|
+
async maxSanityProfitF(callOptions) {
|
|
155
|
+
return this.tradingFloorContract.maxSanityProfitF({ ...callOptions });
|
|
156
156
|
}
|
|
157
|
-
async maxSlF() {
|
|
158
|
-
return this.tradingFloorContract.maxSlF();
|
|
157
|
+
async maxSlF(callOptions) {
|
|
158
|
+
return this.tradingFloorContract.maxSlF({ ...callOptions });
|
|
159
159
|
}
|
|
160
|
-
async maxTradesPerTrader() {
|
|
161
|
-
return this.tradingFloorContract.maxTradesPerTrader();
|
|
160
|
+
async maxTradesPerTrader(callOptions) {
|
|
161
|
+
return this.tradingFloorContract.maxTradesPerTrader({ ...callOptions });
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
class Fees {
|
|
165
165
|
constructor(tradingFloorContract) {
|
|
166
166
|
this.tradingFloorContract = tradingFloorContract;
|
|
167
167
|
}
|
|
168
|
-
async feesMap(asset, feeType) {
|
|
169
|
-
return this.tradingFloorContract.feesMap(asset, feeType);
|
|
168
|
+
async feesMap(asset, feeType, callOptions) {
|
|
169
|
+
return this.tradingFloorContract.feesMap(asset, feeType, { ...callOptions });
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
class ContractReferences {
|
|
173
173
|
constructor(tradingFloorContract) {
|
|
174
174
|
this.tradingFloorContract = tradingFloorContract;
|
|
175
175
|
}
|
|
176
|
-
async registry() {
|
|
177
|
-
return this.tradingFloorContract.registry();
|
|
176
|
+
async registry(callOptions) {
|
|
177
|
+
return this.tradingFloorContract.registry({ ...callOptions });
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
class PendableAdmin {
|
|
181
181
|
constructor(tradingFloorContract) {
|
|
182
182
|
this.tradingFloorContract = tradingFloorContract;
|
|
183
183
|
}
|
|
184
|
-
async admin() {
|
|
185
|
-
return this.tradingFloorContract.admin();
|
|
184
|
+
async admin(callOptions) {
|
|
185
|
+
return this.tradingFloorContract.admin({ ...callOptions });
|
|
186
186
|
}
|
|
187
|
-
async pendingAdmin() {
|
|
188
|
-
return this.tradingFloorContract.pendingAdmin();
|
|
187
|
+
async pendingAdmin(callOptions) {
|
|
188
|
+
return this.tradingFloorContract.pendingAdmin({ ...callOptions });
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
class PendableImplementation {
|
|
192
192
|
constructor(tradingFloorContract) {
|
|
193
193
|
this.tradingFloorContract = tradingFloorContract;
|
|
194
194
|
}
|
|
195
|
-
async implementation() {
|
|
196
|
-
return this.tradingFloorContract.implementation();
|
|
195
|
+
async implementation(callOptions) {
|
|
196
|
+
return this.tradingFloorContract.implementation({ ...callOptions });
|
|
197
197
|
}
|
|
198
|
-
async pendingImplementation() {
|
|
199
|
-
return this.tradingFloorContract.pendingImplementation();
|
|
198
|
+
async pendingImplementation(callOptions) {
|
|
199
|
+
return this.tradingFloorContract.pendingImplementation({ ...callOptions });
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
class LynxVersionedContract {
|
|
203
203
|
constructor(tradingFloorContract) {
|
|
204
204
|
this.tradingFloorContract = tradingFloorContract;
|
|
205
205
|
}
|
|
206
|
-
async getContractName() {
|
|
207
|
-
return this.tradingFloorContract.getContractName();
|
|
206
|
+
async getContractName(callOptions) {
|
|
207
|
+
return this.tradingFloorContract.getContractName({ ...callOptions });
|
|
208
208
|
}
|
|
209
|
-
async getContractVersion() {
|
|
210
|
-
return this.tradingFloorContract.getContractVersion();
|
|
209
|
+
async getContractVersion(callOptions) {
|
|
210
|
+
return this.tradingFloorContract.getContractVersion({ ...callOptions });
|
|
211
211
|
}
|
|
212
|
-
async CONTRACT_NAME() {
|
|
213
|
-
return this.tradingFloorContract.CONTRACT_NAME();
|
|
212
|
+
async CONTRACT_NAME(callOptions) {
|
|
213
|
+
return this.tradingFloorContract.CONTRACT_NAME({ ...callOptions });
|
|
214
214
|
}
|
|
215
|
-
async CONTRACT_VERSION() {
|
|
216
|
-
return this.tradingFloorContract.CONTRACT_VERSION();
|
|
215
|
+
async CONTRACT_VERSION(callOptions) {
|
|
216
|
+
return this.tradingFloorContract.CONTRACT_VERSION({ ...callOptions });
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
219
|
class Constants {
|
|
220
220
|
constructor(tradingFloorContract) {
|
|
221
221
|
this.tradingFloorContract = tradingFloorContract;
|
|
222
222
|
}
|
|
223
|
-
async ACCURACY_IMPROVEMENT_SCALE() {
|
|
224
|
-
return this.tradingFloorContract.ACCURACY_IMPROVEMENT_SCALE();
|
|
223
|
+
async ACCURACY_IMPROVEMENT_SCALE(callOptions) {
|
|
224
|
+
return this.tradingFloorContract.ACCURACY_IMPROVEMENT_SCALE({ ...callOptions });
|
|
225
225
|
}
|
|
226
|
-
async FRACTION_SCALE() {
|
|
227
|
-
return this.tradingFloorContract.FRACTION_SCALE();
|
|
226
|
+
async FRACTION_SCALE(callOptions) {
|
|
227
|
+
return this.tradingFloorContract.FRACTION_SCALE({ ...callOptions });
|
|
228
228
|
}
|
|
229
|
-
async LEVERAGE_SCALE() {
|
|
230
|
-
return this.tradingFloorContract.LEVERAGE_SCALE();
|
|
229
|
+
async LEVERAGE_SCALE(callOptions) {
|
|
230
|
+
return this.tradingFloorContract.LEVERAGE_SCALE({ ...callOptions });
|
|
231
231
|
}
|
|
232
|
-
async MAX_FEE_FRACTION_FOR_CANCEL() {
|
|
233
|
-
return this.tradingFloorContract.MAX_FEE_FRACTION_FOR_CANCEL();
|
|
232
|
+
async MAX_FEE_FRACTION_FOR_CANCEL(callOptions) {
|
|
233
|
+
return this.tradingFloorContract.MAX_FEE_FRACTION_FOR_CANCEL({ ...callOptions });
|
|
234
234
|
}
|
|
235
|
-
async PRECISION() {
|
|
236
|
-
return this.tradingFloorContract.PRECISION();
|
|
235
|
+
async PRECISION(callOptions) {
|
|
236
|
+
return this.tradingFloorContract.PRECISION({ ...callOptions });
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
class TradingFloorService {
|
|
@@ -1,18 +1,25 @@
|
|
|
1
|
-
import { PairConfigsInTriggersStruct, CompleteTradersPortalConfigurationsStruct, CompleteTriggerConfigurationsStruct } from "../../typechain/contracts/Peripheral/Lens/TriggersAndPortalLens";
|
|
1
|
+
import { PairConfigsInTriggersStruct, CompleteTradersPortalConfigurationsStruct, CompleteTriggerConfigurationsStruct, OnBehalfTradingTokenConfigStruct, TradersPortalPerPairParametersStruct, OnBehalfTradingConfigurationsStruct } from "../../typechain/contracts/Peripheral/Lens/TriggersAndPortalLens";
|
|
2
2
|
import { TSafeBigNumberStruct } from "../../utils/ethersTypes";
|
|
3
|
-
|
|
3
|
+
import { CallOptions } from "../common";
|
|
4
|
+
export type TPairConfigsInTriggersStruct = Omit<TSafeBigNumberStruct<PairConfigsInTriggersStruct>, "pairId" | "maxConfidenceFraction" | "spreadFraction" | "slBufferFraction"> & {
|
|
4
5
|
pairId: number;
|
|
5
6
|
maxConfidenceFraction: number;
|
|
6
7
|
spreadFraction: number;
|
|
8
|
+
slBufferFraction: number;
|
|
7
9
|
};
|
|
8
|
-
export type TCompleteTradersPortalConfigurationsStruct = Omit<TSafeBigNumberStruct<CompleteTradersPortalConfigurationsStruct>, "limitOrdersTimelock" | "marketOrdersTimeout" | "minLiveTimeForMarketClose"> & {
|
|
10
|
+
export type TCompleteTradersPortalConfigurationsStruct = Omit<TSafeBigNumberStruct<CompleteTradersPortalConfigurationsStruct>, "limitOrdersTimelock" | "marketOrdersTimeout" | "minLiveTimeForMarketClose" | "minTimeBeforeFirstLimitUpdate" | "minTimeBetweenLimitUpdates" | "limitsMarginFraction"> & {
|
|
9
11
|
limitOrdersTimelock: number;
|
|
10
12
|
marketOrdersTimeout: number;
|
|
11
13
|
minLiveTimeForMarketClose: number;
|
|
14
|
+
minTimeBeforeFirstLimitUpdate: number;
|
|
15
|
+
minTimeBetweenLimitUpdates: number;
|
|
16
|
+
limitsMarginFraction: number;
|
|
12
17
|
};
|
|
13
|
-
export type TCompleteTriggerConfigurationsStruct = Omit<TSafeBigNumberStruct<CompleteTriggerConfigurationsStruct>, "minTriggerPeriodForMarketOrders" | "maxTriggerPeriodForMarketOrders" | "marketOrdersTimeout" | "marketOrderTightTimeRange" | "minTriggerPeriodForLimitOrders" | "triggerPriceFreshnessTimeRange" | "marketOrderCancelFeeFraction" | "openPositionCancellationFeeFraction" | "maxTriggersPerBlock"> & {
|
|
18
|
+
export type TCompleteTriggerConfigurationsStruct = Omit<TSafeBigNumberStruct<CompleteTriggerConfigurationsStruct>, "minTriggerPeriodForMarketOrders" | "maxTriggerPeriodForMarketOrders" | "minTriggerPeriodForMarketOrdersCat" | "maxTriggerPeriodForMarketOrdersCat" | "marketOrdersTimeout" | "marketOrderTightTimeRange" | "minTriggerPeriodForLimitOrders" | "triggerPriceFreshnessTimeRange" | "marketOrderCancelFeeFraction" | "openPositionCancellationFeeFraction" | "maxTriggersPerBlock" | "defaultSlBufferFraction"> & {
|
|
14
19
|
minTriggerPeriodForMarketOrders: number;
|
|
15
20
|
maxTriggerPeriodForMarketOrders: number;
|
|
21
|
+
minTriggerPeriodForMarketOrdersCat: number;
|
|
22
|
+
maxTriggerPeriodForMarketOrdersCat: number;
|
|
16
23
|
marketOrdersTimeout: number;
|
|
17
24
|
marketOrderTightTimeRange: number;
|
|
18
25
|
minTriggerPeriodForLimitOrders: number;
|
|
@@ -20,14 +27,33 @@ export type TCompleteTriggerConfigurationsStruct = Omit<TSafeBigNumberStruct<Com
|
|
|
20
27
|
marketOrderCancelFeeFraction: number;
|
|
21
28
|
openPositionCancellationFeeFraction: number;
|
|
22
29
|
maxTriggersPerBlock: number;
|
|
30
|
+
defaultSlBufferFraction: number;
|
|
31
|
+
};
|
|
32
|
+
export type TOnBehalfTradingTokenConfigStruct = TSafeBigNumberStruct<OnBehalfTradingTokenConfigStruct>;
|
|
33
|
+
export type TOnBehalfTradingConfigurationsStruct = Omit<TSafeBigNumberStruct<OnBehalfTradingConfigurationsStruct>, "maxPermissionDuration"> & {
|
|
34
|
+
maxPermissionDuration: number;
|
|
35
|
+
};
|
|
36
|
+
export type TTradersPortalPerPairParametersStruct = Omit<TSafeBigNumberStruct<TradersPortalPerPairParametersStruct>, "pairId" | "minTimeBeforeFirstLimitUpdate" | "minTimeBetweenLimitUpdates" | "minLiveTimeForMarketClose" | "limitsMarginFraction"> & {
|
|
37
|
+
pairId: number;
|
|
38
|
+
minTimeBeforeFirstLimitUpdate: number;
|
|
39
|
+
minTimeBetweenLimitUpdates: number;
|
|
40
|
+
minLiveTimeForMarketClose: number;
|
|
41
|
+
limitsMarginFraction: number;
|
|
23
42
|
};
|
|
24
43
|
export interface ITriggersAndPortalLensService {
|
|
25
|
-
getPairConfigsInTriggers(triggers: string, pairId: number): Promise<TPairConfigsInTriggersStruct>;
|
|
26
|
-
getPairsConfigsInTriggers(triggers: string, pairIds: number[]): Promise<TPairConfigsInTriggersStruct[]>;
|
|
27
|
-
getTradersPortalConfigurations(tradersPortal: string): Promise<TCompleteTradersPortalConfigurationsStruct>;
|
|
28
|
-
|
|
44
|
+
getPairConfigsInTriggers(triggers: string, pairId: number, callOptions?: CallOptions): Promise<TPairConfigsInTriggersStruct>;
|
|
45
|
+
getPairsConfigsInTriggers(triggers: string, pairIds: number[], callOptions?: CallOptions): Promise<TPairConfigsInTriggersStruct[]>;
|
|
46
|
+
getTradersPortalConfigurations(tradersPortal: string, callOptions?: CallOptions): Promise<TCompleteTradersPortalConfigurationsStruct>;
|
|
47
|
+
getTradersPortalPerPairParameters(tradersPortal: string, pairId: number, callOptions?: CallOptions): Promise<TTradersPortalPerPairParametersStruct>;
|
|
48
|
+
getTradersPortalPerPairParametersForPairs(tradersPortal: string, pairIds: number[], callOptions?: CallOptions): Promise<TTradersPortalPerPairParametersStruct[]>;
|
|
49
|
+
getTriggersConfigurations(triggers: string, callOptions?: CallOptions): Promise<TCompleteTriggerConfigurationsStruct>;
|
|
50
|
+
getOnBehalfTradingConfigurations(onBehalfTrading: string, callOptions?: CallOptions): Promise<TOnBehalfTradingConfigurationsStruct>;
|
|
51
|
+
getOnBehalfTradingTokenConfigs(onBehalfTrading: string, tokens: string[], callOptions?: CallOptions): Promise<TOnBehalfTradingTokenConfigStruct[]>;
|
|
29
52
|
}
|
|
30
53
|
export declare const EMPTY_PAIR_CONFIGS_IN_TRIGGERS: TPairConfigsInTriggersStruct;
|
|
31
54
|
export declare const EMPTY_COMPLETE_TRADERS_PORTAL_CONFIGURATIONS: TCompleteTradersPortalConfigurationsStruct;
|
|
32
55
|
export declare const EMPTY_COMPLETE_TRIGGER_CONFIGURATIONS: TCompleteTriggerConfigurationsStruct;
|
|
56
|
+
export declare const EMPTY_ON_BEHALF_TRADING_TOKEN_CONFIG: TOnBehalfTradingTokenConfigStruct;
|
|
57
|
+
export declare const EMPTY_ON_BEHALF_TRADING_CONFIGURATIONS: TOnBehalfTradingConfigurationsStruct;
|
|
58
|
+
export declare const EMPTY_TRADERS_PORTAL_PER_PAIR_PARAMETERS: TTradersPortalPerPairParametersStruct;
|
|
33
59
|
//# sourceMappingURL=ITriggersAndPortalLensService.d.ts.map
|