lynx-client 0.0.31 → 0.0.33
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/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/LexLensService.js +50 -50
- 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 +78 -71
- 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/TriggersAndPortalLensService.js +8 -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/priceFeeds/pyth/pythFeedConstants.js +1 -5
- package/dist/cjs/lib/priceFeeds/pyth/pythFeedFunctions.js +9 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- 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/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 +50 -50
- 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 +30 -30
- 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 +78 -71
- 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 +5 -4
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts +5 -4
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.js +8 -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 +30 -0
- package/dist/esm/lib/contractsIntegration/common/index.d.ts.map +1 -1
- package/dist/esm/lib/priceFeeds/pyth/pythFeedConstants.d.ts +0 -1
- package/dist/esm/lib/priceFeeds/pyth/pythFeedConstants.d.ts.map +1 -1
- package/dist/esm/lib/priceFeeds/pyth/pythFeedConstants.js +1 -5
- package/dist/esm/lib/priceFeeds/pyth/pythFeedFunctions.d.ts +5 -0
- package/dist/esm/lib/priceFeeds/pyth/pythFeedFunctions.d.ts.map +1 -1
- package/dist/esm/lib/priceFeeds/pyth/pythFeedFunctions.js +9 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- 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 +30 -30
- 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 +5 -4
- package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts +5 -4
- 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 +30 -0
- package/dist/types/lib/contractsIntegration/common/index.d.ts.map +1 -1
- package/dist/types/lib/priceFeeds/pyth/pythFeedConstants.d.ts +0 -1
- package/dist/types/lib/priceFeeds/pyth/pythFeedConstants.d.ts.map +1 -1
- package/dist/types/lib/priceFeeds/pyth/pythFeedFunctions.d.ts +5 -0
- package/dist/types/lib/priceFeeds/pyth/pythFeedFunctions.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/cjs/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.js
CHANGED
|
@@ -7,93 +7,93 @@ class TradeIntentsVerifierService {
|
|
|
7
7
|
this.contract = TradeIntentsVerifierV1__factory_1.TradeIntentsVerifierV1__factory.connect(address, signerOrProvider);
|
|
8
8
|
this.isSigner = 'sendTransaction' in signerOrProvider;
|
|
9
9
|
}
|
|
10
|
-
async domainSeparatorForAsset(settlementAsset) {
|
|
11
|
-
return await this.contract.domainSeparatorForAsset(settlementAsset);
|
|
10
|
+
async domainSeparatorForAsset(settlementAsset, callOptions) {
|
|
11
|
+
return await this.contract.domainSeparatorForAsset(settlementAsset, { ...callOptions });
|
|
12
12
|
}
|
|
13
|
-
async domainSeparatorForChain(chainId) {
|
|
14
|
-
return await this.contract.domainSeparatorForChain(chainId);
|
|
13
|
+
async domainSeparatorForChain(chainId, callOptions) {
|
|
14
|
+
return await this.contract.domainSeparatorForChain(chainId, { ...callOptions });
|
|
15
15
|
}
|
|
16
|
-
async intentsPermissions(user) {
|
|
17
|
-
return await this.contract.intentsPermissions(user);
|
|
16
|
+
async intentsPermissions(user, callOptions) {
|
|
17
|
+
return await this.contract.intentsPermissions(user, { ...callOptions });
|
|
18
18
|
}
|
|
19
|
-
async setIntentsPermissions(oftChip, dynAddressSuffix) {
|
|
19
|
+
async setIntentsPermissions(oftChip, dynAddressSuffix, transactionOptions) {
|
|
20
20
|
if (!this.isSigner) {
|
|
21
21
|
throw new Error("TradeIntentsVerifierService: Write operations require a signer");
|
|
22
22
|
}
|
|
23
|
-
const tx = await this.contract.setIntentsPermissions(oftChip, dynAddressSuffix);
|
|
23
|
+
const tx = await this.contract.setIntentsPermissions(oftChip, dynAddressSuffix, { ...transactionOptions });
|
|
24
24
|
await tx.wait();
|
|
25
25
|
}
|
|
26
|
-
async verifyIntent_traderRequest_openNewPosition(payload, v, r, s, domain, referralCode, runCapTests, value) {
|
|
26
|
+
async verifyIntent_traderRequest_openNewPosition(payload, v, r, s, domain, referralCode, runCapTests, value, transactionOptions) {
|
|
27
27
|
if (!this.isSigner) {
|
|
28
28
|
throw new Error("TradeIntentsVerifierService: Write operations require a signer");
|
|
29
29
|
}
|
|
30
|
-
const tx = await this.contract.verifyIntent_traderRequest_openNewPosition(payload, v, r, s, domain, referralCode, runCapTests, { value: value || 0n });
|
|
30
|
+
const tx = await this.contract.verifyIntent_traderRequest_openNewPosition(payload, v, r, s, domain, referralCode, runCapTests, { value: value || 0n, ...transactionOptions });
|
|
31
31
|
await tx.wait();
|
|
32
32
|
}
|
|
33
|
-
async verifyIntent_traderRequest_marketClosePosition(payload, v, r, s, value) {
|
|
33
|
+
async verifyIntent_traderRequest_marketClosePosition(payload, v, r, s, value, transactionOptions) {
|
|
34
34
|
if (!this.isSigner) {
|
|
35
35
|
throw new Error("TradeIntentsVerifierService: Write operations require a signer");
|
|
36
36
|
}
|
|
37
|
-
const tx = await this.contract.verifyIntent_traderRequest_marketClosePosition(payload, v, r, s, { value: value || 0n });
|
|
37
|
+
const tx = await this.contract.verifyIntent_traderRequest_marketClosePosition(payload, v, r, s, { value: value || 0n, ...transactionOptions });
|
|
38
38
|
await tx.wait();
|
|
39
39
|
}
|
|
40
|
-
async verifyIntent_traderAction_updatePendingLimitPosition(payload, v, r, s, value) {
|
|
40
|
+
async verifyIntent_traderAction_updatePendingLimitPosition(payload, v, r, s, value, transactionOptions) {
|
|
41
41
|
if (!this.isSigner) {
|
|
42
42
|
throw new Error("TradeIntentsVerifierService: Write operations require a signer");
|
|
43
43
|
}
|
|
44
|
-
const tx = await this.contract.verifyIntent_traderAction_updatePendingLimitPosition(payload, v, r, s, { value: value || 0n });
|
|
44
|
+
const tx = await this.contract.verifyIntent_traderAction_updatePendingLimitPosition(payload, v, r, s, { value: value || 0n, ...transactionOptions });
|
|
45
45
|
await tx.wait();
|
|
46
46
|
}
|
|
47
|
-
async verifyIntent_traderAction_cancelPendingLimitPosition(payload, v, r, s, value) {
|
|
47
|
+
async verifyIntent_traderAction_cancelPendingLimitPosition(payload, v, r, s, value, transactionOptions) {
|
|
48
48
|
if (!this.isSigner) {
|
|
49
49
|
throw new Error("TradeIntentsVerifierService: Write operations require a signer");
|
|
50
50
|
}
|
|
51
|
-
const tx = await this.contract.verifyIntent_traderAction_cancelPendingLimitPosition(payload, v, r, s, { value: value || 0n });
|
|
51
|
+
const tx = await this.contract.verifyIntent_traderAction_cancelPendingLimitPosition(payload, v, r, s, { value: value || 0n, ...transactionOptions });
|
|
52
52
|
await tx.wait();
|
|
53
53
|
}
|
|
54
|
-
async verifyIntent_traderRequest_updatePositionSingleField(payload, v, r, s, value) {
|
|
54
|
+
async verifyIntent_traderRequest_updatePositionSingleField(payload, v, r, s, value, transactionOptions) {
|
|
55
55
|
if (!this.isSigner) {
|
|
56
56
|
throw new Error("TradeIntentsVerifierService: Write operations require a signer");
|
|
57
57
|
}
|
|
58
|
-
const tx = await this.contract.verifyIntent_traderRequest_updatePositionSingleField(payload, v, r, s, { value: value || 0n });
|
|
58
|
+
const tx = await this.contract.verifyIntent_traderRequest_updatePositionSingleField(payload, v, r, s, { value: value || 0n, ...transactionOptions });
|
|
59
59
|
await tx.wait();
|
|
60
60
|
}
|
|
61
|
-
async verifyIntent_traderRequest_updatePositionDoubleField(payload, v, r, s, value) {
|
|
61
|
+
async verifyIntent_traderRequest_updatePositionDoubleField(payload, v, r, s, value, transactionOptions) {
|
|
62
62
|
if (!this.isSigner) {
|
|
63
63
|
throw new Error("TradeIntentsVerifierService: Write operations require a signer");
|
|
64
64
|
}
|
|
65
|
-
const tx = await this.contract.verifyIntent_traderRequest_updatePositionDoubleField(payload, v, r, s, { value: value || 0n });
|
|
65
|
+
const tx = await this.contract.verifyIntent_traderRequest_updatePositionDoubleField(payload, v, r, s, { value: value || 0n, ...transactionOptions });
|
|
66
66
|
await tx.wait();
|
|
67
67
|
}
|
|
68
|
-
async admin() {
|
|
69
|
-
return await this.contract.admin();
|
|
68
|
+
async admin(callOptions) {
|
|
69
|
+
return await this.contract.admin({ ...callOptions });
|
|
70
70
|
}
|
|
71
|
-
async pendingAdmin() {
|
|
72
|
-
return await this.contract.pendingAdmin();
|
|
71
|
+
async pendingAdmin(callOptions) {
|
|
72
|
+
return await this.contract.pendingAdmin({ ...callOptions });
|
|
73
73
|
}
|
|
74
|
-
async registry() {
|
|
75
|
-
return await this.contract.registry();
|
|
74
|
+
async registry(callOptions) {
|
|
75
|
+
return await this.contract.registry({ ...callOptions });
|
|
76
76
|
}
|
|
77
|
-
async sourceChainIdForAsset(asset) {
|
|
78
|
-
return await this.contract.sourceChainIdForAsset(asset);
|
|
77
|
+
async sourceChainIdForAsset(asset, callOptions) {
|
|
78
|
+
return await this.contract.sourceChainIdForAsset(asset, { ...callOptions });
|
|
79
79
|
}
|
|
80
|
-
async processedSignatures(signature) {
|
|
81
|
-
return await this.contract.processedSignatures(signature);
|
|
80
|
+
async processedSignatures(signature, callOptions) {
|
|
81
|
+
return await this.contract.processedSignatures(signature, { ...callOptions });
|
|
82
82
|
}
|
|
83
|
-
async domainSeparatorsForPosition(positionId) {
|
|
84
|
-
return await this.contract.domainSeparatorsForPosition(positionId);
|
|
83
|
+
async domainSeparatorsForPosition(positionId, callOptions) {
|
|
84
|
+
return await this.contract.domainSeparatorsForPosition(positionId, { ...callOptions });
|
|
85
85
|
}
|
|
86
|
-
async tradersForPosition(positionId) {
|
|
87
|
-
return await this.contract.tradersForPosition(positionId);
|
|
86
|
+
async tradersForPosition(positionId, callOptions) {
|
|
87
|
+
return await this.contract.tradersForPosition(positionId, { ...callOptions });
|
|
88
88
|
}
|
|
89
|
-
async settlementAssetsForPosition(positionId) {
|
|
90
|
-
return await this.contract.settlementAssetsForPosition(positionId);
|
|
89
|
+
async settlementAssetsForPosition(positionId, callOptions) {
|
|
90
|
+
return await this.contract.settlementAssetsForPosition(positionId, { ...callOptions });
|
|
91
91
|
}
|
|
92
|
-
async getTradingFloor() {
|
|
93
|
-
return await this.contract.getTradingFloor();
|
|
92
|
+
async getTradingFloor(callOptions) {
|
|
93
|
+
return await this.contract.getTradingFloor({ ...callOptions });
|
|
94
94
|
}
|
|
95
|
-
async getTradersPortal() {
|
|
96
|
-
return await this.contract.getTradersPortal();
|
|
95
|
+
async getTradersPortal(callOptions) {
|
|
96
|
+
return await this.contract.getTradersPortal({ ...callOptions });
|
|
97
97
|
}
|
|
98
98
|
getContract() {
|
|
99
99
|
return this.contract;
|
package/dist/cjs/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js
CHANGED
|
@@ -7,30 +7,35 @@ class TraderRequests {
|
|
|
7
7
|
constructor(tradingContract) {
|
|
8
8
|
this.tradingContract = tradingContract;
|
|
9
9
|
}
|
|
10
|
-
async openNewPosition(tradeRequestIdentifier, tradeRequestParams, orderType, referrerDomain, referrerCode, runCapTests, nativeFee) {
|
|
10
|
+
async openNewPosition(tradeRequestIdentifier, tradeRequestParams, orderType, referrerDomain, referrerCode, runCapTests, nativeFee, transactionOptions) {
|
|
11
11
|
return this.tradingContract.traderRequest_openNewPosition(tradeRequestIdentifier, tradeRequestParams, orderType, referrerDomain, referrerCode, runCapTests, {
|
|
12
12
|
value: nativeFee,
|
|
13
|
+
...transactionOptions,
|
|
13
14
|
});
|
|
14
15
|
}
|
|
15
|
-
async openNewPosition_static(tradeRequestIdentifier, tradeRequestParams, orderType, referrerDomain, referrerCode, runCapTests, nativeFee) {
|
|
16
|
+
async openNewPosition_static(tradeRequestIdentifier, tradeRequestParams, orderType, referrerDomain, referrerCode, runCapTests, nativeFee, callOptions) {
|
|
16
17
|
// @ts-ignore
|
|
17
18
|
return this.tradingContract.traderRequest_openNewPosition.staticCall(tradeRequestIdentifier, tradeRequestParams, orderType, referrerDomain, referrerCode, runCapTests, {
|
|
18
19
|
value: nativeFee,
|
|
20
|
+
...callOptions,
|
|
19
21
|
});
|
|
20
22
|
}
|
|
21
|
-
async setExistingPositionToMarketClose(positionId, minPrice, maxPrice, nativeFee) {
|
|
23
|
+
async setExistingPositionToMarketClose(positionId, minPrice, maxPrice, nativeFee, transactionOptions) {
|
|
22
24
|
return this.tradingContract.traderRequest_marketClosePosition(positionId, minPrice, maxPrice, {
|
|
23
25
|
value: nativeFee,
|
|
26
|
+
...transactionOptions,
|
|
24
27
|
});
|
|
25
28
|
}
|
|
26
|
-
async updatePositionSingleField(positionId, orderType, fieldValue, nativeFee) {
|
|
29
|
+
async updatePositionSingleField(positionId, orderType, fieldValue, nativeFee, transactionOptions) {
|
|
27
30
|
return this.tradingContract.traderRequest_updatePositionSingleField(positionId, orderType, fieldValue, {
|
|
28
31
|
value: nativeFee,
|
|
32
|
+
...transactionOptions,
|
|
29
33
|
});
|
|
30
34
|
}
|
|
31
|
-
async updatePositionDoubleFieldTpAndSl(positionId, tpValue, slValue, nativeFee) {
|
|
35
|
+
async updatePositionDoubleFieldTpAndSl(positionId, tpValue, slValue, nativeFee, transactionOptions) {
|
|
32
36
|
return this.tradingContract.traderRequest_updatePositionDoubleField(positionId, contractEnums_1.UpdatePositionFieldOrderTypeEnums.UPDATE_TP_AND_SL, tpValue, slValue, {
|
|
33
37
|
value: nativeFee,
|
|
38
|
+
...transactionOptions,
|
|
34
39
|
});
|
|
35
40
|
}
|
|
36
41
|
}
|
|
@@ -38,139 +43,141 @@ class DirectActions {
|
|
|
38
43
|
constructor(tradingContract) {
|
|
39
44
|
this.tradingContract = tradingContract;
|
|
40
45
|
}
|
|
41
|
-
async timeoutOpenMarket(positionId) {
|
|
42
|
-
return this.tradingContract.directAction_timeout_openMarket(positionId);
|
|
46
|
+
async timeoutOpenMarket(positionId, transactionOptions) {
|
|
47
|
+
return this.tradingContract.directAction_timeout_openMarket(positionId, { ...transactionOptions });
|
|
43
48
|
}
|
|
44
|
-
async timeoutCloseMarket(positionId) {
|
|
45
|
-
return this.tradingContract.directAction_timeout_closeMarket(positionId);
|
|
49
|
+
async timeoutCloseMarket(positionId, transactionOptions) {
|
|
50
|
+
return this.tradingContract.directAction_timeout_closeMarket(positionId, { ...transactionOptions });
|
|
46
51
|
}
|
|
47
|
-
async cancelPendingPositionLimit(positionId) {
|
|
48
|
-
return this.tradingContract.directAction_cancelPendingPosition_limit(positionId);
|
|
52
|
+
async cancelPendingPositionLimit(positionId, transactionOptions) {
|
|
53
|
+
return this.tradingContract.directAction_cancelPendingPosition_limit(positionId, { ...transactionOptions });
|
|
49
54
|
}
|
|
50
|
-
async cancelPendingUpdatePositionField(positionId) {
|
|
51
|
-
return this.tradingContract.directAction_timeout_updateTradeField(positionId);
|
|
55
|
+
async cancelPendingUpdatePositionField(positionId, transactionOptions) {
|
|
56
|
+
return this.tradingContract.directAction_timeout_updateTradeField(positionId, { ...transactionOptions });
|
|
52
57
|
}
|
|
53
|
-
async updatePendingPositionLimit(positionId, minPrice, maxPrice, tp, sl) {
|
|
54
|
-
return this.tradingContract.directAction_updatePendingPosition_limit(positionId, minPrice, maxPrice, tp, sl
|
|
58
|
+
async updatePendingPositionLimit(positionId, minPrice, maxPrice, tp, sl, transactionOptions) {
|
|
59
|
+
return this.tradingContract.directAction_updatePendingPosition_limit(positionId, minPrice, maxPrice, tp, sl, {
|
|
60
|
+
...transactionOptions,
|
|
61
|
+
});
|
|
55
62
|
}
|
|
56
63
|
}
|
|
57
64
|
class ContractReferences {
|
|
58
65
|
constructor(tradingContract) {
|
|
59
66
|
this.tradingContract = tradingContract;
|
|
60
67
|
}
|
|
61
|
-
async getOrderBook() {
|
|
62
|
-
return this.tradingContract.getOrderBook();
|
|
68
|
+
async getOrderBook(callOptions) {
|
|
69
|
+
return this.tradingContract.getOrderBook({ ...callOptions });
|
|
63
70
|
}
|
|
64
|
-
async getTradeIntentsVerifier() {
|
|
65
|
-
return this.tradingContract.getTradeIntentsVerifier();
|
|
71
|
+
async getTradeIntentsVerifier(callOptions) {
|
|
72
|
+
return this.tradingContract.getTradeIntentsVerifier({ ...callOptions });
|
|
66
73
|
}
|
|
67
|
-
async registry() {
|
|
68
|
-
return this.tradingContract.registry();
|
|
74
|
+
async registry(callOptions) {
|
|
75
|
+
return this.tradingContract.registry({ ...callOptions });
|
|
69
76
|
}
|
|
70
|
-
async tradingFloor() {
|
|
71
|
-
return this.tradingContract.tradingFloor();
|
|
77
|
+
async tradingFloor(callOptions) {
|
|
78
|
+
return this.tradingContract.tradingFloor({ ...callOptions });
|
|
72
79
|
}
|
|
73
|
-
async getOnBehalfTrading() {
|
|
74
|
-
return this.tradingContract.getOnBehalfTrading();
|
|
80
|
+
async getOnBehalfTrading(callOptions) {
|
|
81
|
+
return this.tradingContract.getOnBehalfTrading({ ...callOptions });
|
|
75
82
|
}
|
|
76
|
-
async getFeatureFlagger() {
|
|
77
|
-
return this.tradingContract.getFeatureFlagger();
|
|
83
|
+
async getFeatureFlagger(callOptions) {
|
|
84
|
+
return this.tradingContract.getFeatureFlagger({ ...callOptions });
|
|
78
85
|
}
|
|
79
86
|
}
|
|
80
87
|
class PendableAdmin {
|
|
81
88
|
constructor(tradingContract) {
|
|
82
89
|
this.tradingContract = tradingContract;
|
|
83
90
|
}
|
|
84
|
-
async admin() {
|
|
85
|
-
return this.tradingContract.admin();
|
|
91
|
+
async admin(callOptions) {
|
|
92
|
+
return this.tradingContract.admin({ ...callOptions });
|
|
86
93
|
}
|
|
87
|
-
async pendingAdmin() {
|
|
88
|
-
return this.tradingContract.pendingAdmin();
|
|
94
|
+
async pendingAdmin(callOptions) {
|
|
95
|
+
return this.tradingContract.pendingAdmin({ ...callOptions });
|
|
89
96
|
}
|
|
90
97
|
}
|
|
91
98
|
class LynxVersionedContract {
|
|
92
99
|
constructor(tradingContract) {
|
|
93
100
|
this.tradingContract = tradingContract;
|
|
94
101
|
}
|
|
95
|
-
async getContractName() {
|
|
96
|
-
return this.tradingContract.getContractName();
|
|
102
|
+
async getContractName(callOptions) {
|
|
103
|
+
return this.tradingContract.getContractName({ ...callOptions });
|
|
97
104
|
}
|
|
98
|
-
async getContractVersion() {
|
|
99
|
-
return this.tradingContract.getContractVersion();
|
|
105
|
+
async getContractVersion(callOptions) {
|
|
106
|
+
return this.tradingContract.getContractVersion({ ...callOptions });
|
|
100
107
|
}
|
|
101
|
-
async CONTRACT_NAME() {
|
|
102
|
-
return this.tradingContract.CONTRACT_NAME();
|
|
108
|
+
async CONTRACT_NAME(callOptions) {
|
|
109
|
+
return this.tradingContract.CONTRACT_NAME({ ...callOptions });
|
|
103
110
|
}
|
|
104
|
-
async CONTRACT_VERSION() {
|
|
105
|
-
return this.tradingContract.CONTRACT_VERSION();
|
|
111
|
+
async CONTRACT_VERSION(callOptions) {
|
|
112
|
+
return this.tradingContract.CONTRACT_VERSION({ ...callOptions });
|
|
106
113
|
}
|
|
107
114
|
}
|
|
108
115
|
class Status {
|
|
109
116
|
constructor(tradingContract) {
|
|
110
117
|
this.tradingContract = tradingContract;
|
|
111
118
|
}
|
|
112
|
-
async isDone() {
|
|
113
|
-
return this.tradingContract.isDone();
|
|
119
|
+
async isDone(callOptions) {
|
|
120
|
+
return this.tradingContract.isDone({ ...callOptions });
|
|
114
121
|
}
|
|
115
|
-
async isLimitingMarketClosePriceRange() {
|
|
116
|
-
return this.tradingContract.isLimitingMarketClosePriceRange();
|
|
122
|
+
async isLimitingMarketClosePriceRange(callOptions) {
|
|
123
|
+
return this.tradingContract.isLimitingMarketClosePriceRange({ ...callOptions });
|
|
117
124
|
}
|
|
118
|
-
async isPaused() {
|
|
119
|
-
return this.tradingContract.isPaused();
|
|
125
|
+
async isPaused(callOptions) {
|
|
126
|
+
return this.tradingContract.isPaused({ ...callOptions });
|
|
120
127
|
}
|
|
121
128
|
}
|
|
122
129
|
class Settings {
|
|
123
130
|
constructor(tradingContract) {
|
|
124
131
|
this.tradingContract = tradingContract;
|
|
125
132
|
}
|
|
126
|
-
async limitOrdersTimelock() {
|
|
127
|
-
return this.tradingContract.limitOrdersTimelock();
|
|
133
|
+
async limitOrdersTimelock(callOptions) {
|
|
134
|
+
return this.tradingContract.limitOrdersTimelock({ ...callOptions });
|
|
128
135
|
}
|
|
129
|
-
async marketOrdersTimeout() {
|
|
130
|
-
return this.tradingContract.marketOrdersTimeout();
|
|
136
|
+
async marketOrdersTimeout(callOptions) {
|
|
137
|
+
return this.tradingContract.marketOrdersTimeout({ ...callOptions });
|
|
131
138
|
}
|
|
132
|
-
async minLiveTimeForMarketClose() {
|
|
133
|
-
return this.tradingContract.minLiveTimeForMarketClose();
|
|
139
|
+
async minLiveTimeForMarketClose(callOptions) {
|
|
140
|
+
return this.tradingContract.minLiveTimeForMarketClose({ ...callOptions });
|
|
134
141
|
}
|
|
135
|
-
async actionFees(actionType) {
|
|
136
|
-
return this.tradingContract.actionFees(actionType);
|
|
142
|
+
async actionFees(actionType, callOptions) {
|
|
143
|
+
return this.tradingContract.actionFees(actionType, { ...callOptions });
|
|
137
144
|
}
|
|
138
|
-
async limitsMarginFraction() {
|
|
139
|
-
return this.tradingContract.limitsMarginFraction();
|
|
145
|
+
async limitsMarginFraction(callOptions) {
|
|
146
|
+
return this.tradingContract.limitsMarginFraction({ ...callOptions });
|
|
140
147
|
}
|
|
141
|
-
async setLimitsMarginFraction(limitsMarginFraction) {
|
|
142
|
-
return this.tradingContract.setLimitsMarginFraction(limitsMarginFraction);
|
|
148
|
+
async setLimitsMarginFraction(limitsMarginFraction, transactionOptions) {
|
|
149
|
+
return this.tradingContract.setLimitsMarginFraction(limitsMarginFraction, { ...transactionOptions });
|
|
143
150
|
}
|
|
144
151
|
}
|
|
145
152
|
class Constants {
|
|
146
153
|
constructor(tradingContract) {
|
|
147
154
|
this.tradingContract = tradingContract;
|
|
148
155
|
}
|
|
149
|
-
async ACCURACY_IMPROVEMENT_SCALE() {
|
|
150
|
-
return this.tradingContract.ACCURACY_IMPROVEMENT_SCALE();
|
|
156
|
+
async ACCURACY_IMPROVEMENT_SCALE(callOptions) {
|
|
157
|
+
return this.tradingContract.ACCURACY_IMPROVEMENT_SCALE({ ...callOptions });
|
|
151
158
|
}
|
|
152
|
-
async FRACTION_SCALE() {
|
|
153
|
-
return this.tradingContract.FRACTION_SCALE();
|
|
159
|
+
async FRACTION_SCALE(callOptions) {
|
|
160
|
+
return this.tradingContract.FRACTION_SCALE({ ...callOptions });
|
|
154
161
|
}
|
|
155
|
-
async LEVERAGE_SCALE() {
|
|
156
|
-
return this.tradingContract.LEVERAGE_SCALE();
|
|
162
|
+
async LEVERAGE_SCALE(callOptions) {
|
|
163
|
+
return this.tradingContract.LEVERAGE_SCALE({ ...callOptions });
|
|
157
164
|
}
|
|
158
|
-
async NATIVE_UNDERLYING_ADDRESS() {
|
|
159
|
-
return this.tradingContract.NATIVE_UNDERLYING_ADDRESS();
|
|
165
|
+
async NATIVE_UNDERLYING_ADDRESS(callOptions) {
|
|
166
|
+
return this.tradingContract.NATIVE_UNDERLYING_ADDRESS({ ...callOptions });
|
|
160
167
|
}
|
|
161
|
-
async PRECISION() {
|
|
162
|
-
return this.tradingContract.PRECISION();
|
|
168
|
+
async PRECISION(callOptions) {
|
|
169
|
+
return this.tradingContract.PRECISION({ ...callOptions });
|
|
163
170
|
}
|
|
164
171
|
}
|
|
165
172
|
class OnBehalf {
|
|
166
173
|
constructor(tradingContract) {
|
|
167
174
|
this.tradingContract = tradingContract;
|
|
168
175
|
}
|
|
169
|
-
async onBehalfEnabled() {
|
|
170
|
-
return this.tradingContract.onBehalfEnabled();
|
|
176
|
+
async onBehalfEnabled(callOptions) {
|
|
177
|
+
return this.tradingContract.onBehalfEnabled({ ...callOptions });
|
|
171
178
|
}
|
|
172
|
-
async setOnBehalfEnabled(enabled) {
|
|
173
|
-
return this.tradingContract.setOnBehalfEnabled(enabled);
|
|
179
|
+
async setOnBehalfEnabled(enabled, transactionOptions) {
|
|
180
|
+
return this.tradingContract.setOnBehalfEnabled(enabled, { ...transactionOptions });
|
|
174
181
|
}
|
|
175
182
|
}
|
|
176
183
|
class TradersPortalServiceService {
|
package/dist/cjs/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,
|