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
|
@@ -2,54 +2,54 @@ import { BytesLike, ContractTransactionResponse } from "ethers";
|
|
|
2
2
|
import { TOpenOrderType, TUpdatePositionFieldOrderType } from "../../constants/contractEnums";
|
|
3
3
|
import { TradingFloorStructsV1 } from "../../typechain/contracts/Lynx/TradingFloor/TradingFloorV1";
|
|
4
4
|
import { TSafeBigNumberStruct } from "../../utils/ethersTypes";
|
|
5
|
-
import { ILynxVersionedContract, IPendableAdmin, IProtocolConstants, TransactionOptions } from "../common";
|
|
5
|
+
import { ILynxVersionedContract, IPendableAdmin, IProtocolConstants, TransactionOptions, CallOptions } from "../common";
|
|
6
6
|
type PositionRequestIdentifierStruct = TradingFloorStructsV1.PositionRequestIdentifiersStruct;
|
|
7
7
|
type PositionRequestParamsStruct = TradingFloorStructsV1.PositionRequestParamsStruct;
|
|
8
8
|
export type TPositionRequestIdentifierStruct = TSafeBigNumberStruct<PositionRequestIdentifierStruct>;
|
|
9
9
|
export type TPositionRequestParamsStruct = TSafeBigNumberStruct<PositionRequestParamsStruct>;
|
|
10
10
|
export interface ITradersPortalFunctionsGroup_TraderRequests {
|
|
11
11
|
openNewPosition(tradeRequestIdentifier: TPositionRequestIdentifierStruct, tradeRequestParams: TPositionRequestParamsStruct, orderType: TOpenOrderType, referrerDomain: BytesLike, referrerCode: BytesLike, runCapTests: boolean, nativeFee: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
12
|
-
openNewPosition_static(tradeRequestIdentifier: TPositionRequestIdentifierStruct, tradeRequestParams: TPositionRequestParamsStruct, orderType: TOpenOrderType, referrerDomain: BytesLike, referrerCode: BytesLike, runCapTests: boolean, nativeFee: bigint): Promise<any>;
|
|
12
|
+
openNewPosition_static(tradeRequestIdentifier: TPositionRequestIdentifierStruct, tradeRequestParams: TPositionRequestParamsStruct, orderType: TOpenOrderType, referrerDomain: BytesLike, referrerCode: BytesLike, runCapTests: boolean, nativeFee: bigint, callOptions?: CallOptions): Promise<any>;
|
|
13
13
|
setExistingPositionToMarketClose(positionId: BytesLike, minPrice: bigint, maxPrice: bigint, nativeFee: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
14
14
|
updatePositionSingleField(positionId: BytesLike, orderType: TUpdatePositionFieldOrderType, fieldValue: bigint, nativeFee: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
15
15
|
updatePositionDoubleFieldTpAndSl(positionId: BytesLike, tpValue: bigint, slValue: bigint, nativeFee: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
16
16
|
}
|
|
17
17
|
export interface ITradersPortalFunctionsGroup_DirectActions {
|
|
18
|
-
timeoutOpenMarket(positionId: BytesLike): Promise<ContractTransactionResponse>;
|
|
19
|
-
timeoutCloseMarket(positionId: BytesLike): Promise<ContractTransactionResponse>;
|
|
20
|
-
cancelPendingPositionLimit(positionId: BytesLike): Promise<ContractTransactionResponse>;
|
|
21
|
-
cancelPendingUpdatePositionField(positionId: BytesLike): Promise<ContractTransactionResponse>;
|
|
18
|
+
timeoutOpenMarket(positionId: BytesLike, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
19
|
+
timeoutCloseMarket(positionId: BytesLike, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
20
|
+
cancelPendingPositionLimit(positionId: BytesLike, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
21
|
+
cancelPendingUpdatePositionField(positionId: BytesLike, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
22
22
|
updatePendingPositionLimit(positionId: BytesLike, minPrice: bigint, maxPrice: bigint, tp: bigint, sl: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
23
23
|
}
|
|
24
24
|
export interface ITradersPortalFunctionsGroup_ContractReferences {
|
|
25
|
-
getOrderBook(): Promise<string>;
|
|
26
|
-
getTradeIntentsVerifier(): Promise<string>;
|
|
27
|
-
registry(): Promise<string>;
|
|
28
|
-
tradingFloor(): Promise<string>;
|
|
29
|
-
getOnBehalfTrading(): Promise<string>;
|
|
30
|
-
getFeatureFlagger(): Promise<string>;
|
|
25
|
+
getOrderBook(callOptions?: CallOptions): Promise<string>;
|
|
26
|
+
getTradeIntentsVerifier(callOptions?: CallOptions): Promise<string>;
|
|
27
|
+
registry(callOptions?: CallOptions): Promise<string>;
|
|
28
|
+
tradingFloor(callOptions?: CallOptions): Promise<string>;
|
|
29
|
+
getOnBehalfTrading(callOptions?: CallOptions): Promise<string>;
|
|
30
|
+
getFeatureFlagger(callOptions?: CallOptions): Promise<string>;
|
|
31
31
|
}
|
|
32
32
|
export type ITradersPortalFunctionsGroup_LynxVersionedContract = ILynxVersionedContract;
|
|
33
33
|
export interface ITradersPortalFunctionsGroup_Status {
|
|
34
|
-
isDone(): Promise<boolean>;
|
|
35
|
-
isLimitingMarketClosePriceRange(): Promise<boolean>;
|
|
36
|
-
isPaused(): Promise<boolean>;
|
|
34
|
+
isDone(callOptions?: CallOptions): Promise<boolean>;
|
|
35
|
+
isLimitingMarketClosePriceRange(callOptions?: CallOptions): Promise<boolean>;
|
|
36
|
+
isPaused(callOptions?: CallOptions): Promise<boolean>;
|
|
37
37
|
}
|
|
38
38
|
export interface ITradersPortalFunctionsGroup_Settings {
|
|
39
|
-
limitOrdersTimelock(): Promise<bigint>;
|
|
40
|
-
marketOrdersTimeout(): Promise<bigint>;
|
|
41
|
-
minLiveTimeForMarketClose(): Promise<bigint>;
|
|
42
|
-
actionFees(actionType: bigint): Promise<bigint>;
|
|
43
|
-
limitsMarginFraction(): Promise<bigint>;
|
|
44
|
-
setLimitsMarginFraction(limitsMarginFraction: bigint): Promise<ContractTransactionResponse>;
|
|
39
|
+
limitOrdersTimelock(callOptions?: CallOptions): Promise<bigint>;
|
|
40
|
+
marketOrdersTimeout(callOptions?: CallOptions): Promise<bigint>;
|
|
41
|
+
minLiveTimeForMarketClose(callOptions?: CallOptions): Promise<bigint>;
|
|
42
|
+
actionFees(actionType: bigint, callOptions?: CallOptions): Promise<bigint>;
|
|
43
|
+
limitsMarginFraction(callOptions?: CallOptions): Promise<bigint>;
|
|
44
|
+
setLimitsMarginFraction(limitsMarginFraction: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
45
45
|
}
|
|
46
46
|
export interface ITradersPortalFunctionsGroup_Constants extends IProtocolConstants {
|
|
47
|
-
NATIVE_UNDERLYING_ADDRESS(): Promise<string>;
|
|
48
|
-
ACCURACY_IMPROVEMENT_SCALE(): Promise<bigint>;
|
|
47
|
+
NATIVE_UNDERLYING_ADDRESS(callOptions?: CallOptions): Promise<string>;
|
|
48
|
+
ACCURACY_IMPROVEMENT_SCALE(callOptions?: CallOptions): Promise<bigint>;
|
|
49
49
|
}
|
|
50
50
|
export interface ITradersPortalFunctionsGroup_OnBehalf {
|
|
51
|
-
onBehalfEnabled(): Promise<boolean>;
|
|
52
|
-
setOnBehalfEnabled(enabled: boolean): Promise<ContractTransactionResponse>;
|
|
51
|
+
onBehalfEnabled(callOptions?: CallOptions): Promise<boolean>;
|
|
52
|
+
setOnBehalfEnabled(enabled: boolean, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
53
53
|
}
|
|
54
54
|
export interface ITradersPortalService {
|
|
55
55
|
traderRequests: ITradersPortalFunctionsGroup_TraderRequests;
|
package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ITradersPortalService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradersPortalService/ITradersPortalService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,2BAA2B,EAAE,MAAM,QAAQ,CAAC;AAE7E,OAAO,EACL,cAAc,EAEd,6BAA6B,EAC9B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AACnG,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"ITradersPortalService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradersPortalService/ITradersPortalService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,2BAA2B,EAAE,MAAM,QAAQ,CAAC;AAE7E,OAAO,EACL,cAAc,EAEd,6BAA6B,EAC9B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AACnG,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExH,KAAK,+BAA+B,GAClC,qBAAqB,CAAC,gCAAgC,CAAC;AACzD,KAAK,2BAA2B,GAC9B,qBAAqB,CAAC,2BAA2B,CAAC;AAEpD,MAAM,MAAM,gCAAgC,GAC1C,oBAAoB,CAAC,+BAA+B,CAAC,CAAC;AACxD,MAAM,MAAM,4BAA4B,GACtC,oBAAoB,CAAC,2BAA2B,CAAC,CAAC;AAEpD,MAAM,WAAW,2CAA2C;IAC1D,eAAe,CACb,sBAAsB,EAAE,gCAAgC,EACxD,kBAAkB,EAAE,4BAA4B,EAChD,SAAS,EAAE,cAAc,EACzB,cAAc,EAAE,SAAS,EACzB,YAAY,EAAE,SAAS,EACvB,WAAW,EAAE,OAAO,EACpB,SAAS,EAAE,MAAM,EACjB,kBAAkB,CAAC,EAAE,kBAAkB,GACtC,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAExC,sBAAsB,CACpB,sBAAsB,EAAE,gCAAgC,EACxD,kBAAkB,EAAE,4BAA4B,EAChD,SAAS,EAAE,cAAc,EACzB,cAAc,EAAE,SAAS,EACzB,YAAY,EAAE,SAAS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;IACtE,UAAU,CAAC,UAAU,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC3E,oBAAoB,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACjE,uBAAuB,CAAC,oBAAoB,EAAE,MAAM,EAAE,kBAAkB,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;CACtI;AAED,MAAM,WAAW,sCAAuC,SAAQ,kBAAkB;IAEhF,yBAAyB,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAGtE,0BAA0B,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CACxE;AAED,MAAM,WAAW,qCAAqC;IACpD,eAAe,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC7D,kBAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,kBAAkB,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;CACrH;AAED,MAAM,WAAW,qBAAqB;IACpC,cAAc,EAAE,2CAA2C,CAAC;IAC5D,aAAa,EAAE,0CAA0C,CAAC;IAC1D,kBAAkB,EAAE,+CAA+C,CAAC;IACpE,aAAa,EAAE,cAAc,CAAC;IAC9B,qBAAqB,EAAE,sBAAsB,CAAC;IAC9C,MAAM,EAAE,mCAAmC,CAAC;IAC5C,QAAQ,EAAE,qCAAqC,CAAC;IAChD,SAAS,EAAE,sCAAsC,CAAC;IAClD,QAAQ,EAAE,qCAAqC,CAAC;CACjD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TradersPortalServiceService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,MAAM,EACN,QAAQ,EAET,MAAM,QAAQ,CAAC;AAEhB,OAAO,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAC;AAC/F,OAAO,EACL,qBAAqB,EACrB,2CAA2C,EAC3C,0CAA0C,EAC1C,+CAA+C,EAC/C,mCAAmC,EACnC,qCAAqC,EACrC,sCAAsC,EACtC,qCAAqC,EAGtC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,sBAAsB,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"TradersPortalServiceService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,MAAM,EACN,QAAQ,EAET,MAAM,QAAQ,CAAC;AAEhB,OAAO,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAC;AAC/F,OAAO,EACL,qBAAqB,EACrB,2CAA2C,EAC3C,0CAA0C,EAC1C,+CAA+C,EAC/C,mCAAmC,EACnC,qCAAqC,EACrC,sCAAsC,EACtC,qCAAqC,EAGtC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAmC,MAAM,WAAW,CAAC;AA2TpG,qBAAa,2BAA4B,YAAW,qBAAqB;IAcrE,OAAO,CAAC,gBAAgB;IAb1B,OAAO,CAAC,eAAe,CAAkB;IACzC,SAAgB,cAAc,EAAE,2CAA2C,CAAC;IAC5E,SAAgB,aAAa,EAAE,0CAA0C,CAAC;IAC1E,SAAgB,kBAAkB,EAAE,+CAA+C,CAAC;IACpF,SAAgB,aAAa,EAAE,cAAc,CAAC;IAC9C,SAAgB,qBAAqB,EAAE,sBAAsB,CAAC;IAC9D,SAAgB,MAAM,EAAE,mCAAmC,CAAC;IAC5D,SAAgB,QAAQ,EAAE,qCAAqC,CAAC;IAChE,SAAgB,SAAS,EAAE,sCAAsC,CAAC;IAClE,SAAgB,QAAQ,EAAE,qCAAqC,CAAC;gBAG9D,OAAO,EAAE,MAAM,EACP,gBAAgB,EAAE,MAAM,GAAG,QAAQ;IAkB7C,WAAW,IAAI,eAAe;CAG/B"}
|
package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BytesLike } from "ethers";
|
|
2
2
|
import { TradingFloorLensStructs } from "../../typechain/contracts/Peripheral/Lens/TradingFloorLens";
|
|
3
3
|
import { TSafeBigNumberStruct } from "../../utils/ethersTypes";
|
|
4
|
+
import { CallOptions } from "../common";
|
|
4
5
|
export type TCompletePositionDataFromLensStruct = Omit<TSafeBigNumberStruct<TradingFloorLensStructs.CompletePositionDataFromLensStruct>, "pairId" | "positionIndex" | "phase" | "inPhaseSince" | "tpLastUpdated" | "slLastUpdated" | "pendingUpdateOrderType" | "pendingUpdateOrderTimestamp"> & {
|
|
5
6
|
pairId: number;
|
|
6
7
|
positionIndex: number;
|
|
@@ -48,11 +49,11 @@ export declare const EMPTY_POSITION_LIQUIDATION_INFO: TPositionLiquidationInfoSt
|
|
|
48
49
|
export declare const EMPTY_LIQUIDATION_RESULT: TGetAllPositionsLiquidationInfoResultStruct;
|
|
49
50
|
export declare const EMPTY_TRADE_PARAMS: TTradingFloorLensTradeParamsStruct;
|
|
50
51
|
export interface ITradingFloorLensService {
|
|
51
|
-
generatePositionHashId(settlementAsset: string, trader: string, pairId: number, index: number): Promise<string>;
|
|
52
|
-
getAllPositionsDataForAllTraders(params: TGetAllPositionsDataForAllTradersParamsStruct): Promise<TGetAllPositionsDataForAllTradersResultStruct>;
|
|
53
|
-
getAllPositionsLiquidationInfo(params: TGetAllPositionsLiquidationInfoParamsStruct, phases?: number[]): Promise<TGetAllPositionsLiquidationInfoResultStruct>;
|
|
54
|
-
getCompletePositionData(tradingFloor: string, positionId: BytesLike): Promise<TCompletePositionDataFromLensStruct>;
|
|
55
|
-
getPositionsDataForTrader(tradingFloor: string, trader: string): Promise<TCompletePositionDataFromLensStruct[]>;
|
|
56
|
-
getTradingFloorTradeParams(tradingFloor: string): Promise<TTradingFloorLensTradeParamsStruct>;
|
|
52
|
+
generatePositionHashId(settlementAsset: string, trader: string, pairId: number, index: number, callOptions?: CallOptions): Promise<string>;
|
|
53
|
+
getAllPositionsDataForAllTraders(params: TGetAllPositionsDataForAllTradersParamsStruct, callOptions?: CallOptions): Promise<TGetAllPositionsDataForAllTradersResultStruct>;
|
|
54
|
+
getAllPositionsLiquidationInfo(params: TGetAllPositionsLiquidationInfoParamsStruct, phases?: number[], callOptions?: CallOptions): Promise<TGetAllPositionsLiquidationInfoResultStruct>;
|
|
55
|
+
getCompletePositionData(tradingFloor: string, positionId: BytesLike, callOptions?: CallOptions): Promise<TCompletePositionDataFromLensStruct>;
|
|
56
|
+
getPositionsDataForTrader(tradingFloor: string, trader: string, callOptions?: CallOptions): Promise<TCompletePositionDataFromLensStruct[]>;
|
|
57
|
+
getTradingFloorTradeParams(tradingFloor: string, callOptions?: CallOptions): Promise<TTradingFloorLensTradeParamsStruct>;
|
|
57
58
|
}
|
|
58
59
|
//# sourceMappingURL=ITradingFloorLensService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ITradingFloorLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EAAE,uBAAuB,EAAE,MAAM,4DAA4D,CAAC;AACrG,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"ITradingFloorLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EAAE,uBAAuB,EAAE,MAAM,4DAA4D,CAAC;AACrG,OAAO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,6CAA6C,EACrD,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,6CAA6C,CAAC,CAAC;IAE1D,8BAA8B,CAC5B,MAAM,EAAE,2CAA2C,EACnD,MAAM,CAAC,EAAE,MAAM,EAAE,EACjB,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,2CAA2C,CAAC,CAAC;IAExD,uBAAuB,CACrB,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,SAAS,EACrB,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,mCAAmC,CAAC,CAAC;IAEhD,yBAAyB,CACvB,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,MAAM,EACd,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,mCAAmC,EAAE,CAAC,CAAC;IAElD,0BAA0B,CACxB,YAAY,EAAE,MAAM,EACpB,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,kCAAkC,CAAC,CAAC;CAChD"}
|
package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { BytesLike, Provider, Signer } from "ethers";
|
|
2
2
|
import { TradingFloorLens } from "../../typechain/contracts/Peripheral/Lens/TradingFloorLens";
|
|
3
3
|
import { ITradingFloorLensService, TCompletePositionDataFromLensStruct, TGetAllPositionsDataForAllTradersResultStruct, TGetAllPositionsDataForAllTradersParamsStruct, TGetAllPositionsLiquidationInfoResultStruct, TGetAllPositionsLiquidationInfoParamsStruct, TTradingFloorLensTradeParamsStruct } from "./ITradingFloorLensService";
|
|
4
|
+
import { CallOptions } from "../common";
|
|
4
5
|
export declare class TradingFloorLensService implements ITradingFloorLensService {
|
|
5
6
|
private readonly contract;
|
|
6
7
|
constructor(signerOrProvider: Signer | Provider, contractAddress: string);
|
|
7
|
-
generatePositionHashId(settlementAsset: string, trader: string, pairId: number, index: number): Promise<string>;
|
|
8
|
-
getAllPositionsDataForAllTraders(params: TGetAllPositionsDataForAllTradersParamsStruct): Promise<TGetAllPositionsDataForAllTradersResultStruct>;
|
|
9
|
-
getAllPositionsLiquidationInfo(params: TGetAllPositionsLiquidationInfoParamsStruct, phases?: number[]): Promise<TGetAllPositionsLiquidationInfoResultStruct>;
|
|
10
|
-
getCompletePositionData(tradingFloor: string, positionId: BytesLike): Promise<TCompletePositionDataFromLensStruct>;
|
|
11
|
-
getPositionsDataForTrader(tradingFloor: string, trader: string): Promise<TCompletePositionDataFromLensStruct[]>;
|
|
12
|
-
getTradingFloorTradeParams(tradingFloor: string): Promise<TTradingFloorLensTradeParamsStruct>;
|
|
8
|
+
generatePositionHashId(settlementAsset: string, trader: string, pairId: number, index: number, callOptions?: CallOptions): Promise<string>;
|
|
9
|
+
getAllPositionsDataForAllTraders(params: TGetAllPositionsDataForAllTradersParamsStruct, callOptions?: CallOptions): Promise<TGetAllPositionsDataForAllTradersResultStruct>;
|
|
10
|
+
getAllPositionsLiquidationInfo(params: TGetAllPositionsLiquidationInfoParamsStruct, phases?: number[], callOptions?: CallOptions): Promise<TGetAllPositionsLiquidationInfoResultStruct>;
|
|
11
|
+
getCompletePositionData(tradingFloor: string, positionId: BytesLike, callOptions?: CallOptions): Promise<TCompletePositionDataFromLensStruct>;
|
|
12
|
+
getPositionsDataForTrader(tradingFloor: string, trader: string, callOptions?: CallOptions): Promise<TCompletePositionDataFromLensStruct[]>;
|
|
13
|
+
getTradingFloorTradeParams(tradingFloor: string, callOptions?: CallOptions): Promise<TTradingFloorLensTradeParamsStruct>;
|
|
13
14
|
getContract(): TradingFloorLens;
|
|
14
15
|
}
|
|
15
16
|
//# sourceMappingURL=TradingFloorLensService.d.ts.map
|
package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TradingFloorLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4DAA4D,CAAC;AAG9F,OAAO,EACL,wBAAwB,EACxB,mCAAmC,EACnC,6CAA6C,EAC7C,6CAA6C,EAC7C,2CAA2C,EAC3C,2CAA2C,EAE3C,kCAAkC,EAKnC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"TradingFloorLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4DAA4D,CAAC;AAG9F,OAAO,EACL,wBAAwB,EACxB,mCAAmC,EACnC,6CAA6C,EAC7C,6CAA6C,EAC7C,2CAA2C,EAC3C,2CAA2C,EAE3C,kCAAkC,EAKnC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAyCxC,qBAAa,uBAAwB,YAAW,wBAAwB;IACtE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAmB;gBAEhC,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EAAE,eAAe,EAAE,MAAM;IAOlE,sBAAsB,CAC1B,eAAe,EAAE,MAAM,EACvB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,EACb,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,MAAM,CAAC;IAUZ,gCAAgC,CACpC,MAAM,EAAE,6CAA6C,EACrD,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,6CAA6C,CAAC;IA+BnD,8BAA8B,CAClC,MAAM,EAAE,2CAA2C,EACnD,MAAM,CAAC,EAAE,MAAM,EAAE,EACjB,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,2CAA2C,CAAC;IAyCjD,uBAAuB,CAC3B,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,SAAS,EACrB,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,mCAAmC,CAAC;IASzC,yBAAyB,CAC7B,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,MAAM,EACd,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,mCAAmC,EAAE,CAAC;IAY3C,0BAA0B,CAC9B,YAAY,EAAE,MAAM,EACpB,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,kCAAkC,CAAC;IAY9C,WAAW,IAAI,gBAAgB;CAGhC"}
|
|
@@ -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;
|
package/dist/types/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts.map
CHANGED
|
@@ -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":"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,WAAW,EAAE,MAAM,WAAW,CAAA;AAE5H,KAAK,+BAA+B,GAClC,qBAAqB,CAAC,gCAAgC,CAAA;AACxD,KAAK,2BAA2B,GAC9B,qBAAqB,CAAC,2BAA2B,CAAA;AAEnD,MAAM,MAAM,gCAAgC,GAC1C,oBAAoB,CAAC,+BAA+B,CAAC,CAAA;AACvD,MAAM,MAAM,4BAA4B,GACtC,oBAAoB,CAAC,2BAA2B,CAAC,CAAA;AAEnD,MAAM,WAAW,2CAA2C;IAC1D,sBAAsB,CACpB,eAAe,EAAE,MAAM,EACvB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,EACb,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,MAAM,CAAC,CAAA;IAElB,qBAAqB,CAAC,UAAU,EAAE,SAAS,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC;QAC/E,KAAK,EAAE,MAAM,CAAA;QACb,SAAS,EAAE,MAAM,CAAA;QACj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":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"}
|
|
@@ -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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ITriggersAndPortalLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,yCAAyC,EACzC,mCAAmC,EACpC,MAAM,iEAAiE,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"ITriggersAndPortalLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,yCAAyC,EACzC,mCAAmC,EACnC,gCAAgC,EAChC,oCAAoC,EACpC,mCAAmC,EACpC,MAAM,iEAAiE,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAGxC,MAAM,MAAM,4BAA4B,GAAG,IAAI,CAC7C,oBAAoB,CAAC,2BAA2B,CAAC,EACjD,QAAQ,GAAG,uBAAuB,GAAG,gBAAgB,GAAG,kBAAkB,CAC3E,GAAG;IACF,MAAM,EAAE,MAAM,CAAC;IACf,qBAAqB,EAAE,MAAM,CAAC;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,0CAA0C,GAAG,IAAI,CAC3D,oBAAoB,CAAC,yCAAyC,CAAC,EAC7D,qBAAqB,GACrB,qBAAqB,GACrB,2BAA2B,GAC3B,+BAA+B,GAC/B,4BAA4B,GAC5B,sBAAsB,CACzB,GAAG;IACF,mBAAmB,EAAE,MAAM,CAAC;IAC5B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,yBAAyB,EAAE,MAAM,CAAC;IAClC,6BAA6B,EAAE,MAAM,CAAC;IACtC,0BAA0B,EAAE,MAAM,CAAC;IACnC,oBAAoB,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,oCAAoC,GAAG,IAAI,CACrD,oBAAoB,CAAC,mCAAmC,CAAC,EACvD,iCAAiC,GACjC,iCAAiC,GACjC,oCAAoC,GACpC,oCAAoC,GACpC,qBAAqB,GACrB,2BAA2B,GAC3B,gCAAgC,GAChC,gCAAgC,GAChC,8BAA8B,GAC9B,qCA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ndPortalLens";
|
|
3
|
-
import { ITriggersAndPortalLensService, TPairConfigsInTriggersStruct, TCompleteTradersPortalConfigurationsStruct, TCompleteTriggerConfigurationsStruct } from "./ITriggersAndPortalLensService";
|
|
3
|
+
import { ITriggersAndPortalLensService, TPairConfigsInTriggersStruct, TCompleteTradersPortalConfigurationsStruct, TCompleteTriggerConfigurationsStruct, TOnBehalfTradingTokenConfigStruct, TOnBehalfTradingConfigurationsStruct, TTradersPortalPerPairParametersStruct } from "./ITriggersAndPortalLensService";
|
|
4
|
+
import { CallOptions } from "../common";
|
|
4
5
|
export declare class TriggersAndPortalLensService implements ITriggersAndPortalLensService {
|
|
5
6
|
private readonly contract;
|
|
6
7
|
constructor(signerOrProvider: Signer | Provider, address: string);
|
|
7
|
-
getPairConfigsInTriggers(triggers: string, pairId: number): Promise<TPairConfigsInTriggersStruct>;
|
|
8
|
-
getPairsConfigsInTriggers(triggers: string, pairIds: number[]): Promise<TPairConfigsInTriggersStruct[]>;
|
|
9
|
-
getTradersPortalConfigurations(tradersPortal: string): Promise<TCompleteTradersPortalConfigurationsStruct>;
|
|
10
|
-
|
|
8
|
+
getPairConfigsInTriggers(triggers: string, pairId: number, callOptions?: CallOptions): Promise<TPairConfigsInTriggersStruct>;
|
|
9
|
+
getPairsConfigsInTriggers(triggers: string, pairIds: number[], callOptions?: CallOptions): Promise<TPairConfigsInTriggersStruct[]>;
|
|
10
|
+
getTradersPortalConfigurations(tradersPortal: string, callOptions?: CallOptions): Promise<TCompleteTradersPortalConfigurationsStruct>;
|
|
11
|
+
getTradersPortalPerPairParameters(tradersPortal: string, pairId: number, callOptions?: CallOptions): Promise<TTradersPortalPerPairParametersStruct>;
|
|
12
|
+
getTradersPortalPerPairParametersForPairs(tradersPortal: string, pairIds: number[], callOptions?: CallOptions): Promise<TTradersPortalPerPairParametersStruct[]>;
|
|
13
|
+
getTriggersConfigurations(triggers: string, callOptions?: CallOptions): Promise<TCompleteTriggerConfigurationsStruct>;
|
|
14
|
+
getOnBehalfTradingConfigurations(onBehalfTrading: string, callOptions?: CallOptions): Promise<TOnBehalfTradingConfigurationsStruct>;
|
|
15
|
+
getOnBehalfTradingTokenConfigs(onBehalfTrading: string, tokens: string[], callOptions?: CallOptions): Promise<TOnBehalfTradingTokenConfigStruct[]>;
|
|
11
16
|
getContract(): TriggersAndPortalLens;
|
|
12
17
|
}
|
|
13
18
|
//# sourceMappingURL=TriggersAndPortalLensService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TriggersAndPortalLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,iEAAiE,CAAC;AAGxG,OAAO,EACL,6BAA6B,EAC7B,4BAA4B,EAC5B,0CAA0C,EAC1C,oCAAoC,
|
|
1
|
+
{"version":3,"file":"TriggersAndPortalLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,iEAAiE,CAAC;AAGxG,OAAO,EACL,6BAA6B,EAC7B,4BAA4B,EAC5B,0CAA0C,EAC1C,oCAAoC,EACpC,iCAAiC,EACjC,oCAAoC,EACpC,qCAAqC,EAOtC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,qBAAa,4BAA6B,YAAW,6BAA6B;IAChF,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAwB;gBAErC,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EAAE,OAAO,EAAE,MAAM;IAI1D,wBAAwB,CAC5B,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,4BAA4B,CAAC;IAYlC,yBAAyB,CAC7B,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,EAAE,EACjB,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,4BAA4B,EAAE,CAAC;IAgBpC,8BAA8B,CAClC,aAAa,EAAE,MAAM,EACrB,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,0CAA0C,CAAC;IAchD,iCAAiC,CACrC,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,MAAM,EACd,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,qCAAqC,CAAC;IAiB3C,yCAAyC,CAC7C,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,MAAM,EAAE,EACjB,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,qCAAqC,EAAE,CAAC;IAiB7C,yBAAyB,CAC7B,QAAQ,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,oCAAoC,CAAC;IAoB1C,gCAAgC,CACpC,eAAe,EAAE,MAAM,EACvB,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,oCAAoC,CAAC;IAS1C,8BAA8B,CAClC,eAAe,EAAE,MAAM,EACvB,MAAM,EAAE,MAAM,EAAE,EAChB,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,iCAAiC,EAAE,CAAC;IAK/C,WAAW,IAAI,qBAAqB;CAGrC"}
|
|
@@ -1,59 +1,59 @@
|
|
|
1
1
|
import { BytesLike, ContractTransactionResponse } from "ethers";
|
|
2
|
-
import { IPendableAdmin, IProtocolConstants } from "../common";
|
|
2
|
+
import { IPendableAdmin, IProtocolConstants, TransactionOptions, CallOptions } from "../common";
|
|
3
3
|
export interface ITriggersFunctionsGroup_OpenTriggers {
|
|
4
|
-
market(positionId: BytesLike, pricePayload: BytesLike[], nativeFee: bigint): Promise<ContractTransactionResponse>;
|
|
5
|
-
limit(positionId: BytesLike, pricePayload: BytesLike[], nativeFee: bigint): Promise<ContractTransactionResponse>;
|
|
4
|
+
market(positionId: BytesLike, pricePayload: BytesLike[], nativeFee: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
5
|
+
limit(positionId: BytesLike, pricePayload: BytesLike[], nativeFee: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
6
6
|
}
|
|
7
7
|
export interface ITriggersFunctionsGroup_CloseTriggers {
|
|
8
|
-
market(positionId: BytesLike, pricePayload: BytesLike[], nativeFee: bigint): Promise<ContractTransactionResponse>;
|
|
9
|
-
takeProfit(positionId: BytesLike, pricePayload: BytesLike[], nativeFee: bigint): Promise<ContractTransactionResponse>;
|
|
10
|
-
stopLoss(positionId: BytesLike, pricePayload: BytesLike[], nativeFee: bigint): Promise<ContractTransactionResponse>;
|
|
11
|
-
liquidation(positionId: BytesLike, pricePayload: BytesLike[], nativeFee: bigint): Promise<ContractTransactionResponse>;
|
|
8
|
+
market(positionId: BytesLike, pricePayload: BytesLike[], nativeFee: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
9
|
+
takeProfit(positionId: BytesLike, pricePayload: BytesLike[], nativeFee: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
10
|
+
stopLoss(positionId: BytesLike, pricePayload: BytesLike[], nativeFee: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
11
|
+
liquidation(positionId: BytesLike, pricePayload: BytesLike[], nativeFee: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
12
12
|
}
|
|
13
13
|
export interface ITriggersFunctionsGroup_UpdateTriggers {
|
|
14
|
-
takeProfit(positionId: BytesLike, pricePayload: BytesLike[], nativeFee: bigint): Promise<ContractTransactionResponse>;
|
|
15
|
-
stopLoss(positionId: BytesLike, pricePayload: BytesLike[], nativeFee: bigint): Promise<ContractTransactionResponse>;
|
|
16
|
-
takeProfitAndStopLoss(positionId: BytesLike, pricePayload: BytesLike[], nativeFee: bigint): Promise<ContractTransactionResponse>;
|
|
14
|
+
takeProfit(positionId: BytesLike, pricePayload: BytesLike[], nativeFee: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
15
|
+
stopLoss(positionId: BytesLike, pricePayload: BytesLike[], nativeFee: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
16
|
+
takeProfitAndStopLoss(positionId: BytesLike, pricePayload: BytesLike[], nativeFee: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
17
17
|
}
|
|
18
18
|
export interface ITriggersFunctionsGroup_TimeoutTriggers {
|
|
19
|
-
marketOpen(positionId: BytesLike): Promise<ContractTransactionResponse>;
|
|
20
|
-
marketClose(positionId: BytesLike): Promise<ContractTransactionResponse>;
|
|
21
|
-
updatePosition(positionId: BytesLike): Promise<ContractTransactionResponse>;
|
|
19
|
+
marketOpen(positionId: BytesLike, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
20
|
+
marketClose(positionId: BytesLike, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
21
|
+
updatePosition(positionId: BytesLike, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
22
22
|
}
|
|
23
23
|
export interface ITriggersFunctionsGroup_ContractReferences {
|
|
24
|
-
orderBook(): Promise<string>;
|
|
25
|
-
tradingFloor(): Promise<string>;
|
|
26
|
-
priceValidator(): Promise<string>;
|
|
24
|
+
orderBook(callOptions?: CallOptions): Promise<string>;
|
|
25
|
+
tradingFloor(callOptions?: CallOptions): Promise<string>;
|
|
26
|
+
priceValidator(callOptions?: CallOptions): Promise<string>;
|
|
27
27
|
}
|
|
28
28
|
export interface ITriggersFunctionsGroup_Status {
|
|
29
|
-
isDone(): Promise<boolean>;
|
|
30
|
-
isPaused(): Promise<boolean>;
|
|
29
|
+
isDone(callOptions?: CallOptions): Promise<boolean>;
|
|
30
|
+
isPaused(callOptions?: CallOptions): Promise<boolean>;
|
|
31
31
|
}
|
|
32
32
|
export interface ITriggersFunctionsGroup_Configuration {
|
|
33
|
-
marketOrderCancelFeeFraction(): Promise<bigint>;
|
|
34
|
-
marketOrderTightTimeRange(): Promise<bigint>;
|
|
35
|
-
marketOrdersTimeout(): Promise<bigint>;
|
|
36
|
-
maxTriggerPeriodForMarketOrders(): Promise<bigint>;
|
|
37
|
-
minTriggerPeriodForLimitOrders(): Promise<bigint>;
|
|
38
|
-
minTriggerPeriodForMarketOrders(): Promise<bigint>;
|
|
39
|
-
openPositionCancellationFeeFraction(): Promise<bigint>;
|
|
40
|
-
triggerPriceFreshnessTimeRange(): Promise<bigint>;
|
|
41
|
-
maxTriggersPerBlock(): Promise<bigint>;
|
|
42
|
-
triggersPerBlock(blockNumber: bigint): Promise<bigint>;
|
|
43
|
-
limitsMarginFraction(): Promise<bigint>;
|
|
33
|
+
marketOrderCancelFeeFraction(callOptions?: CallOptions): Promise<bigint>;
|
|
34
|
+
marketOrderTightTimeRange(callOptions?: CallOptions): Promise<bigint>;
|
|
35
|
+
marketOrdersTimeout(callOptions?: CallOptions): Promise<bigint>;
|
|
36
|
+
maxTriggerPeriodForMarketOrders(callOptions?: CallOptions): Promise<bigint>;
|
|
37
|
+
minTriggerPeriodForLimitOrders(callOptions?: CallOptions): Promise<bigint>;
|
|
38
|
+
minTriggerPeriodForMarketOrders(callOptions?: CallOptions): Promise<bigint>;
|
|
39
|
+
openPositionCancellationFeeFraction(callOptions?: CallOptions): Promise<bigint>;
|
|
40
|
+
triggerPriceFreshnessTimeRange(callOptions?: CallOptions): Promise<bigint>;
|
|
41
|
+
maxTriggersPerBlock(callOptions?: CallOptions): Promise<bigint>;
|
|
42
|
+
triggersPerBlock(blockNumber: bigint, callOptions?: CallOptions): Promise<bigint>;
|
|
43
|
+
limitsMarginFraction(callOptions?: CallOptions): Promise<bigint>;
|
|
44
44
|
}
|
|
45
45
|
export interface ITriggersFunctionsGroup_PairConfiguration {
|
|
46
|
-
maxConfidenceFractionForPair(pairId: bigint): Promise<bigint>;
|
|
47
|
-
spreadFractionForPair(pairId: bigint): Promise<bigint>;
|
|
46
|
+
maxConfidenceFractionForPair(pairId: bigint, callOptions?: CallOptions): Promise<bigint>;
|
|
47
|
+
spreadFractionForPair(pairId: bigint, callOptions?: CallOptions): Promise<bigint>;
|
|
48
48
|
}
|
|
49
49
|
export interface ITriggersFunctionsGroup_Permissions {
|
|
50
|
-
isAllowedToTrigger(account: string): Promise<boolean>;
|
|
51
|
-
getAllTriggerPermissionedAccounts(): Promise<string[]>;
|
|
50
|
+
isAllowedToTrigger(account: string, callOptions?: CallOptions): Promise<boolean>;
|
|
51
|
+
getAllTriggerPermissionedAccounts(callOptions?: CallOptions): Promise<string[]>;
|
|
52
52
|
}
|
|
53
53
|
export interface ITriggersFunctionsGroup_Constants extends IProtocolConstants {
|
|
54
|
-
MAX_ALLOWED_CONFIDENCE_FRACTION(): Promise<bigint>;
|
|
55
|
-
MAX_ALLOWED_SPREAD_FRACTION(): Promise<bigint>;
|
|
56
|
-
ACCURACY_IMPROVEMENT_SCALE(): Promise<bigint>;
|
|
54
|
+
MAX_ALLOWED_CONFIDENCE_FRACTION(callOptions?: CallOptions): Promise<bigint>;
|
|
55
|
+
MAX_ALLOWED_SPREAD_FRACTION(callOptions?: CallOptions): Promise<bigint>;
|
|
56
|
+
ACCURACY_IMPROVEMENT_SCALE(callOptions?: CallOptions): Promise<bigint>;
|
|
57
57
|
}
|
|
58
58
|
export interface ITriggersService {
|
|
59
59
|
openTriggers: ITriggersFunctionsGroup_OpenTriggers;
|