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/IntentsVerifierLensService/IntentsVerifierLensService.js
CHANGED
|
@@ -6,17 +6,17 @@ class IntentsVerifierLensService {
|
|
|
6
6
|
constructor(signerOrProvider, address) {
|
|
7
7
|
this.contract = IntentsVerifierLens__factory_1.IntentsVerifierLens__factory.connect(address, signerOrProvider);
|
|
8
8
|
}
|
|
9
|
-
async getRequestBuildingInfoForChipsIntentsVerifier() {
|
|
10
|
-
return await this.contract.getRequestBuildingInfoForChipsIntentsVerifier();
|
|
9
|
+
async getRequestBuildingInfoForChipsIntentsVerifier(callOptions) {
|
|
10
|
+
return await this.contract.getRequestBuildingInfoForChipsIntentsVerifier({ ...callOptions });
|
|
11
11
|
}
|
|
12
|
-
async getRequestBuildingInfoForLiquidityIntentsVerifier() {
|
|
13
|
-
return await this.contract.getRequestBuildingInfoForLiquidityIntentsVerifier();
|
|
12
|
+
async getRequestBuildingInfoForLiquidityIntentsVerifier(callOptions) {
|
|
13
|
+
return await this.contract.getRequestBuildingInfoForLiquidityIntentsVerifier({ ...callOptions });
|
|
14
14
|
}
|
|
15
|
-
async getRequestBuildingInfoForTradeIntentsVerifier() {
|
|
16
|
-
return await this.contract.getRequestBuildingInfoForTradeIntentsVerifier();
|
|
15
|
+
async getRequestBuildingInfoForTradeIntentsVerifier(callOptions) {
|
|
16
|
+
return await this.contract.getRequestBuildingInfoForTradeIntentsVerifier({ ...callOptions });
|
|
17
17
|
}
|
|
18
|
-
async registry() {
|
|
19
|
-
return await this.contract.registry();
|
|
18
|
+
async registry(callOptions) {
|
|
19
|
+
return await this.contract.registry({ ...callOptions });
|
|
20
20
|
}
|
|
21
21
|
getContract() {
|
|
22
22
|
return this.contract;
|
|
@@ -8,8 +8,8 @@ class LexLensService {
|
|
|
8
8
|
constructor(signerOrProvider, contractAddress) {
|
|
9
9
|
this.contract = LexLens__factory_1.LexLens__factory.connect(contractAddress, signerOrProvider);
|
|
10
10
|
}
|
|
11
|
-
async getAllFeeConfigurationsInLex(lexPool) {
|
|
12
|
-
const result = await this.contract.getAllFeeConfigurationsInLex(lexPool);
|
|
11
|
+
async getAllFeeConfigurationsInLex(lexPool, callOptions) {
|
|
12
|
+
const result = await this.contract.getAllFeeConfigurationsInLex(lexPool, { ...callOptions });
|
|
13
13
|
// First convert array, then handle special number conversions
|
|
14
14
|
const baseArray = (0, ethersTypes_1.ethersStructResponseToArray)(result, ILexLensService_1.EMPTY_FEE_CONFIGS_LENS);
|
|
15
15
|
return baseArray.map(item => ({
|
|
@@ -20,8 +20,8 @@ class LexLensService {
|
|
|
20
20
|
performanceFeeF: Number(item.performanceFeeF),
|
|
21
21
|
}));
|
|
22
22
|
}
|
|
23
|
-
async getAllGroupConfigurationsInLex(lexPool) {
|
|
24
|
-
const result = await this.contract.getAllGroupConfigurationsInLex(lexPool);
|
|
23
|
+
async getAllGroupConfigurationsInLex(lexPool, callOptions) {
|
|
24
|
+
const result = await this.contract.getAllGroupConfigurationsInLex(lexPool, { ...callOptions });
|
|
25
25
|
const baseArray = (0, ethersTypes_1.ethersStructResponseToArray)(result, ILexLensService_1.EMPTY_GROUP_CONFIGS_LENS);
|
|
26
26
|
return baseArray.map(item => ({
|
|
27
27
|
...item,
|
|
@@ -29,19 +29,19 @@ class LexLensService {
|
|
|
29
29
|
maxBorrowF: Number(item.maxBorrowF),
|
|
30
30
|
}));
|
|
31
31
|
}
|
|
32
|
-
async getAllGroupStateInLex(lexPool) {
|
|
33
|
-
const result = await this.contract.getAllGroupStateInLex(lexPool);
|
|
32
|
+
async getAllGroupStateInLex(lexPool, callOptions) {
|
|
33
|
+
const result = await this.contract.getAllGroupStateInLex(lexPool, { ...callOptions });
|
|
34
34
|
const baseArray = (0, ethersTypes_1.ethersStructResponseToArray)(result, ILexLensService_1.EMPTY_LEX_GROUP_STATE_LENS);
|
|
35
35
|
return baseArray.map(item => ({
|
|
36
36
|
...item,
|
|
37
37
|
groupId: Number(item.groupId),
|
|
38
38
|
}));
|
|
39
39
|
}
|
|
40
|
-
async getAllPairAndGroupAndFeeConfigurationsInLex(lexPool) {
|
|
41
|
-
return await this.contract.getAllPairAndGroupAndFeeConfigurationsInLex(lexPool);
|
|
40
|
+
async getAllPairAndGroupAndFeeConfigurationsInLex(lexPool, callOptions) {
|
|
41
|
+
return await this.contract.getAllPairAndGroupAndFeeConfigurationsInLex(lexPool, { ...callOptions });
|
|
42
42
|
}
|
|
43
|
-
async getAllPairConfigurationsInLex(lexPool) {
|
|
44
|
-
const result = await this.contract.getAllPairConfigurationsInLex(lexPool);
|
|
43
|
+
async getAllPairConfigurationsInLex(lexPool, callOptions) {
|
|
44
|
+
const result = await this.contract.getAllPairConfigurationsInLex(lexPool, { ...callOptions });
|
|
45
45
|
const baseArray = (0, ethersTypes_1.ethersStructResponseToArray)(result, ILexLensService_1.EMPTY_PAIR_CONFIGS_LENS);
|
|
46
46
|
return baseArray.map(item => ({
|
|
47
47
|
...item,
|
|
@@ -50,16 +50,16 @@ class LexLensService {
|
|
|
50
50
|
feeId: Number(item.feeId),
|
|
51
51
|
}));
|
|
52
52
|
}
|
|
53
|
-
async getAllPairStateInLex(lexPool) {
|
|
54
|
-
const result = await this.contract.getAllPairStateInLex(lexPool);
|
|
53
|
+
async getAllPairStateInLex(lexPool, callOptions) {
|
|
54
|
+
const result = await this.contract.getAllPairStateInLex(lexPool, { ...callOptions });
|
|
55
55
|
const baseArray = (0, ethersTypes_1.ethersStructResponseToArray)(result, ILexLensService_1.EMPTY_LEX_PAIR_STATE_LENS);
|
|
56
56
|
return baseArray.map(item => ({
|
|
57
57
|
...item,
|
|
58
58
|
pairId: Number(item.pairId),
|
|
59
59
|
}));
|
|
60
60
|
}
|
|
61
|
-
async getCompleteConfigsForLex(pool) {
|
|
62
|
-
const result = await this.contract.getCompleteConfigsForLex(pool);
|
|
61
|
+
async getCompleteConfigsForLex(pool, callOptions) {
|
|
62
|
+
const result = await this.contract.getCompleteConfigsForLex(pool, { ...callOptions });
|
|
63
63
|
const baseResult = (0, ethersTypes_1.ethersStructResponseToObject)(result, ILexLensService_1.EMPTY_COMPLETE_LEX_CONFIGS, {
|
|
64
64
|
groupsConfigs: ILexLensService_1.EMPTY_GROUP_CONFIGS_LENS,
|
|
65
65
|
pairsConfigs: ILexLensService_1.EMPTY_PAIR_CONFIGS_LENS,
|
|
@@ -92,12 +92,12 @@ class LexLensService {
|
|
|
92
92
|
})),
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
|
-
async getCompleteConfigsForLexes(pools) {
|
|
96
|
-
const results = await this.contract.getCompleteConfigsForLexes(pools);
|
|
95
|
+
async getCompleteConfigsForLexes(pools, callOptions) {
|
|
96
|
+
const results = await this.contract.getCompleteConfigsForLexes(pools, { ...callOptions });
|
|
97
97
|
return results.map(result => this.convertCompleteConfigsResult(result));
|
|
98
98
|
}
|
|
99
|
-
async getCompleteStateForLex(pool) {
|
|
100
|
-
const result = await this.contract.getCompleteStateForLex(pool);
|
|
99
|
+
async getCompleteStateForLex(pool, callOptions) {
|
|
100
|
+
const result = await this.contract.getCompleteStateForLex(pool, { ...callOptions });
|
|
101
101
|
const baseResult = (0, ethersTypes_1.ethersStructResponseToObject)(result, ILexLensService_1.EMPTY_COMPLETE_LEX_STATE, {
|
|
102
102
|
pairsStates: ILexLensService_1.EMPTY_LEX_PAIR_STATE_LENS,
|
|
103
103
|
groupsStates: ILexLensService_1.EMPTY_LEX_GROUP_STATE_LENS,
|
|
@@ -122,8 +122,8 @@ class LexLensService {
|
|
|
122
122
|
})),
|
|
123
123
|
};
|
|
124
124
|
}
|
|
125
|
-
async getCompleteStateForLexes(pools) {
|
|
126
|
-
const results = await this.contract.getCompleteStateForLexes(pools);
|
|
125
|
+
async getCompleteStateForLexes(pools, callOptions) {
|
|
126
|
+
const results = await this.contract.getCompleteStateForLexes(pools, { ...callOptions });
|
|
127
127
|
return results.map(result => {
|
|
128
128
|
const baseResult = (0, ethersTypes_1.ethersStructResponseToObject)(result, ILexLensService_1.EMPTY_COMPLETE_LEX_STATE, {
|
|
129
129
|
pairsStates: ILexLensService_1.EMPTY_LEX_PAIR_STATE_LENS,
|
|
@@ -150,80 +150,80 @@ class LexLensService {
|
|
|
150
150
|
};
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
|
-
async getLExPoolForPoolAccountant(accountant) {
|
|
154
|
-
return await this.contract.getLExPoolForPoolAccountant(accountant);
|
|
153
|
+
async getLExPoolForPoolAccountant(accountant, callOptions) {
|
|
154
|
+
return await this.contract.getLExPoolForPoolAccountant(accountant, { ...callOptions });
|
|
155
155
|
}
|
|
156
|
-
async getLexPairState(lexPool, pairId) {
|
|
157
|
-
const result = await this.contract.getLexPairState(lexPool, BigInt(pairId));
|
|
156
|
+
async getLexPairState(lexPool, pairId, callOptions) {
|
|
157
|
+
const result = await this.contract.getLexPairState(lexPool, BigInt(pairId), { ...callOptions });
|
|
158
158
|
const baseObj = (0, ethersTypes_1.ethersStructResponseToObject)(result, ILexLensService_1.EMPTY_LEX_PAIR_STATE_LENS);
|
|
159
159
|
return {
|
|
160
160
|
...baseObj,
|
|
161
161
|
pairId: Number(baseObj.pairId),
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
|
-
async getLexPoolConfigs(lexPool) {
|
|
165
|
-
const result = await this.contract.getLexPoolConfigs(lexPool);
|
|
164
|
+
async getLexPoolConfigs(lexPool, callOptions) {
|
|
165
|
+
const result = await this.contract.getLexPoolConfigs(lexPool, { ...callOptions });
|
|
166
166
|
return (0, ethersTypes_1.ethersStructResponseToObject)(result, ILexLensService_1.EMPTY_LEX_POOL_LENS_CONFIGS);
|
|
167
167
|
}
|
|
168
|
-
async getLexPoolParams(lexPool) {
|
|
169
|
-
const result = await this.contract.getLexPoolParams(lexPool);
|
|
168
|
+
async getLexPoolParams(lexPool, callOptions) {
|
|
169
|
+
const result = await this.contract.getLexPoolParams(lexPool, { ...callOptions });
|
|
170
170
|
return (0, ethersTypes_1.ethersStructResponseToObject)(result, ILexLensService_1.EMPTY_LEX_POOL_LENS_PARAMS);
|
|
171
171
|
}
|
|
172
|
-
async getLexPoolState(lexPool) {
|
|
173
|
-
const result = await this.contract.getLexPoolState(lexPool);
|
|
172
|
+
async getLexPoolState(lexPool, callOptions) {
|
|
173
|
+
const result = await this.contract.getLexPoolState(lexPool, { ...callOptions });
|
|
174
174
|
return (0, ethersTypes_1.ethersStructResponseToObject)(result, ILexLensService_1.EMPTY_LEX_POOL_LENS_STATE, {
|
|
175
175
|
collateralLimitsNonCat: ILexLensService_1.EMPTY_COLLATERAL_LIMITS_FOR_ASSET,
|
|
176
176
|
collateralLimitsCat: ILexLensService_1.EMPTY_COLLATERAL_LIMITS_FOR_ASSET,
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
|
-
async getLexPoolSupplierState(lexPool, supplier) {
|
|
180
|
-
const result = await this.contract.getLexPoolSupplierState(lexPool, supplier);
|
|
179
|
+
async getLexPoolSupplierState(lexPool, supplier, callOptions) {
|
|
180
|
+
const result = await this.contract.getLexPoolSupplierState(lexPool, supplier, { ...callOptions });
|
|
181
181
|
return (0, ethersTypes_1.ethersStructResponseToObject)(result, ILexLensService_1.EMPTY_LEX_POOL_SUPPLIER_LENS_STATE, {
|
|
182
182
|
pendingEpochDeposits: ILexLensService_1.EMPTY_PENDING_EPOCH_DEPOSIT,
|
|
183
183
|
pendingEpochRedeems: ILexLensService_1.EMPTY_PENDING_EPOCH_REDEEM,
|
|
184
184
|
});
|
|
185
185
|
}
|
|
186
|
-
async getLexPoolsStateAll(lexPools) {
|
|
187
|
-
const results = await this.contract.getLexPoolsStateAll(lexPools);
|
|
186
|
+
async getLexPoolsStateAll(lexPools, callOptions) {
|
|
187
|
+
const results = await this.contract.getLexPoolsStateAll(lexPools, { ...callOptions });
|
|
188
188
|
return (0, ethersTypes_1.ethersStructResponseToArray)(results, ILexLensService_1.EMPTY_LEX_POOL_LENS_STATE, {
|
|
189
189
|
collateralLimitsNonCat: ILexLensService_1.EMPTY_COLLATERAL_LIMITS_FOR_ASSET,
|
|
190
190
|
collateralLimitsCat: ILexLensService_1.EMPTY_COLLATERAL_LIMITS_FOR_ASSET,
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
|
-
async getPoolAccountantConfigurationsByPool(lexPool) {
|
|
194
|
-
const result = await this.contract.getPoolAccountantConfigurationsByPool(lexPool);
|
|
193
|
+
async getPoolAccountantConfigurationsByPool(lexPool, callOptions) {
|
|
194
|
+
const result = await this.contract.getPoolAccountantConfigurationsByPool(lexPool, { ...callOptions });
|
|
195
195
|
return (0, ethersTypes_1.ethersStructResponseToObject)(result, ILexLensService_1.EMPTY_POOL_ACCOUNTANT_CONFIGURATIONS_LENS);
|
|
196
196
|
}
|
|
197
|
-
async getPoolAccountantConfigurationsByPoolAll(lexPools) {
|
|
198
|
-
const results = await this.contract.getPoolAccountantConfigurationsByPoolAll(lexPools);
|
|
197
|
+
async getPoolAccountantConfigurationsByPoolAll(lexPools, callOptions) {
|
|
198
|
+
const results = await this.contract.getPoolAccountantConfigurationsByPoolAll(lexPools, { ...callOptions });
|
|
199
199
|
return (0, ethersTypes_1.ethersStructResponseToArray)(results, ILexLensService_1.EMPTY_POOL_ACCOUNTANT_CONFIGURATIONS_LENS);
|
|
200
200
|
}
|
|
201
|
-
async getPoolAccountantForLexPool(lexPool) {
|
|
202
|
-
return await this.contract.getPoolAccountantForLexPool(lexPool);
|
|
201
|
+
async getPoolAccountantForLexPool(lexPool, callOptions) {
|
|
202
|
+
return await this.contract.getPoolAccountantForLexPool(lexPool, { ...callOptions });
|
|
203
203
|
}
|
|
204
|
-
async getPoolAccountantStateByPool(lexPool) {
|
|
205
|
-
const result = await this.contract.getPoolAccountantStateByPool(lexPool);
|
|
204
|
+
async getPoolAccountantStateByPool(lexPool, callOptions) {
|
|
205
|
+
const result = await this.contract.getPoolAccountantStateByPool(lexPool, { ...callOptions });
|
|
206
206
|
return (0, ethersTypes_1.ethersStructResponseToObject)(result, ILexLensService_1.EMPTY_POOL_ACCOUNTANT_STATE_LENS);
|
|
207
207
|
}
|
|
208
|
-
async getPoolAccountantStateByPoolAll(lexPools) {
|
|
209
|
-
const results = await this.contract.getPoolAccountantStateByPoolAll(lexPools);
|
|
208
|
+
async getPoolAccountantStateByPoolAll(lexPools, callOptions) {
|
|
209
|
+
const results = await this.contract.getPoolAccountantStateByPoolAll(lexPools, { ...callOptions });
|
|
210
210
|
return (0, ethersTypes_1.ethersStructResponseToArray)(results, ILexLensService_1.EMPTY_POOL_ACCOUNTANT_STATE_LENS);
|
|
211
211
|
}
|
|
212
|
-
async getSupplierCurrentStateAll(lexPools, supplier) {
|
|
213
|
-
const results = await this.contract.getSupplierCurrentStateAll(lexPools, supplier);
|
|
212
|
+
async getSupplierCurrentStateAll(lexPools, supplier, callOptions) {
|
|
213
|
+
const results = await this.contract.getSupplierCurrentStateAll(lexPools, supplier, { ...callOptions });
|
|
214
214
|
return (0, ethersTypes_1.ethersStructResponseToArray)(results, ILexLensService_1.EMPTY_LEX_POOL_SUPPLIER_LENS_STATE, {
|
|
215
215
|
pendingEpochDeposits: ILexLensService_1.EMPTY_PENDING_EPOCH_DEPOSIT,
|
|
216
216
|
pendingEpochRedeems: ILexLensService_1.EMPTY_PENDING_EPOCH_REDEEM,
|
|
217
217
|
});
|
|
218
218
|
}
|
|
219
|
-
async tradesValuesMultiplePairs(accountant, pairsTrades) {
|
|
219
|
+
async tradesValuesMultiplePairs(accountant, pairsTrades, callOptions) {
|
|
220
220
|
// @ts-ignore
|
|
221
|
-
const results = await this.contract.tradesValuesMultiplePairs.staticCall(accountant, pairsTrades);
|
|
221
|
+
const results = await this.contract.tradesValuesMultiplePairs.staticCall(accountant, pairsTrades, { ...callOptions });
|
|
222
222
|
return results.map(pairResults => (0, ethersTypes_1.ethersStructResponseToArray)(pairResults, ILexLensService_1.EMPTY_SINGLE_POSITION_OUTPUT));
|
|
223
223
|
}
|
|
224
|
-
async tradesValuesSinglePair(accountant, pairParams) {
|
|
224
|
+
async tradesValuesSinglePair(accountant, pairParams, callOptions) {
|
|
225
225
|
// @ts-ignore
|
|
226
|
-
const results = await this.contract.tradesValuesSinglePair.staticCall(accountant, pairParams);
|
|
226
|
+
const results = await this.contract.tradesValuesSinglePair.staticCall(accountant, pairParams, { ...callOptions });
|
|
227
227
|
return (0, ethersTypes_1.ethersStructResponseToArray)(results, ILexLensService_1.EMPTY_SINGLE_POSITION_OUTPUT);
|
|
228
228
|
}
|
|
229
229
|
// Helper methods
|
|
@@ -6,46 +6,46 @@ class LexPoolV1FunctionsGroup_Initialization {
|
|
|
6
6
|
constructor(contract) {
|
|
7
7
|
this.contract = contract;
|
|
8
8
|
}
|
|
9
|
-
async _become(proxy) {
|
|
10
|
-
return this.contract._become(proxy);
|
|
9
|
+
async _become(proxy, transactionOptions) {
|
|
10
|
+
return this.contract._become(proxy, { ...transactionOptions });
|
|
11
11
|
}
|
|
12
|
-
async initialize(underlying, tradingFloor, epochDuration) {
|
|
13
|
-
return this.contract.initialize(underlying, tradingFloor, epochDuration);
|
|
12
|
+
async initialize(underlying, tradingFloor, epochDuration, transactionOptions) {
|
|
13
|
+
return this.contract.initialize(underlying, tradingFloor, epochDuration, { ...transactionOptions });
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
class LexPoolV1FunctionsGroup_AdminConfiguration {
|
|
17
17
|
constructor(contract) {
|
|
18
18
|
this.contract = contract;
|
|
19
19
|
}
|
|
20
|
-
async setPoolAccountant(poolAccountant) {
|
|
21
|
-
return this.contract.setPoolAccountant(poolAccountant);
|
|
20
|
+
async setPoolAccountant(poolAccountant, transactionOptions) {
|
|
21
|
+
return this.contract.setPoolAccountant(poolAccountant, { ...transactionOptions });
|
|
22
22
|
}
|
|
23
|
-
async setPnlRole(pnl) {
|
|
24
|
-
return this.contract.setPnlRole(pnl);
|
|
23
|
+
async setPnlRole(pnl, transactionOptions) {
|
|
24
|
+
return this.contract.setPnlRole(pnl, { ...transactionOptions });
|
|
25
25
|
}
|
|
26
|
-
async setMaxExtraWithdrawalAmountF(maxExtra) {
|
|
27
|
-
return this.contract.setMaxExtraWithdrawalAmountF(maxExtra);
|
|
26
|
+
async setMaxExtraWithdrawalAmountF(maxExtra, transactionOptions) {
|
|
27
|
+
return this.contract.setMaxExtraWithdrawalAmountF(maxExtra, { ...transactionOptions });
|
|
28
28
|
}
|
|
29
|
-
async setEpochsDelayDeposit(delay) {
|
|
30
|
-
return this.contract.setEpochsDelayDeposit(delay);
|
|
29
|
+
async setEpochsDelayDeposit(delay, transactionOptions) {
|
|
30
|
+
return this.contract.setEpochsDelayDeposit(delay, { ...transactionOptions });
|
|
31
31
|
}
|
|
32
|
-
async setEpochsDelayRedeem(delay) {
|
|
33
|
-
return this.contract.setEpochsDelayRedeem(delay);
|
|
32
|
+
async setEpochsDelayRedeem(delay, transactionOptions) {
|
|
33
|
+
return this.contract.setEpochsDelayRedeem(delay, { ...transactionOptions });
|
|
34
34
|
}
|
|
35
|
-
async setEpochDuration(duration) {
|
|
36
|
-
return this.contract.setEpochDuration(duration);
|
|
35
|
+
async setEpochDuration(duration, transactionOptions) {
|
|
36
|
+
return this.contract.setEpochDuration(duration, { ...transactionOptions });
|
|
37
37
|
}
|
|
38
|
-
async setMinDepositAmount(amount) {
|
|
39
|
-
return this.contract.setMinDepositAmount(amount);
|
|
38
|
+
async setMinDepositAmount(amount, transactionOptions) {
|
|
39
|
+
return this.contract.setMinDepositAmount(amount, { ...transactionOptions });
|
|
40
40
|
}
|
|
41
|
-
async toggleImmediateDepositAllowed() {
|
|
42
|
-
return this.contract.toggleImmediateDepositAllowed();
|
|
41
|
+
async toggleImmediateDepositAllowed(transactionOptions) {
|
|
42
|
+
return this.contract.toggleImmediateDepositAllowed({ ...transactionOptions });
|
|
43
43
|
}
|
|
44
|
-
async reduceReserves(to) {
|
|
45
|
-
return this.contract.reduceReserves(to);
|
|
44
|
+
async reduceReserves(to, transactionOptions) {
|
|
45
|
+
return this.contract.reduceReserves(to, { ...transactionOptions });
|
|
46
46
|
}
|
|
47
|
-
async reduceReserves_static(to) {
|
|
48
|
-
const result = await this.contract.reduceReserves.staticCall(to);
|
|
47
|
+
async reduceReserves_static(to, callOptions) {
|
|
48
|
+
const result = await this.contract.reduceReserves.staticCall(to, { ...callOptions });
|
|
49
49
|
return {
|
|
50
50
|
interestShare: result[0],
|
|
51
51
|
totalFundingShare: result[1],
|
|
@@ -56,36 +56,36 @@ class LexPoolV1FunctionsGroup_UserDeposits {
|
|
|
56
56
|
constructor(contract) {
|
|
57
57
|
this.contract = contract;
|
|
58
58
|
}
|
|
59
|
-
async immediateDeposit(depositAmount, domain, referralCode) {
|
|
60
|
-
return this.contract.immediateDeposit(depositAmount, domain, referralCode);
|
|
59
|
+
async immediateDeposit(depositAmount, domain, referralCode, transactionOptions) {
|
|
60
|
+
return this.contract.immediateDeposit(depositAmount, domain, referralCode, { ...transactionOptions });
|
|
61
61
|
}
|
|
62
|
-
async requestDeposit(amount, minAmountOut, domain, referralCode) {
|
|
63
|
-
return this.contract.requestDeposit(amount, minAmountOut, domain, referralCode);
|
|
62
|
+
async requestDeposit(amount, minAmountOut, domain, referralCode, transactionOptions) {
|
|
63
|
+
return this.contract.requestDeposit(amount, minAmountOut, domain, referralCode, { ...transactionOptions });
|
|
64
64
|
}
|
|
65
|
-
async requestDepositViaIntent(user, amount, minAmountOut, domain, referralCode) {
|
|
66
|
-
return this.contract.requestDepositViaIntent(user, amount, minAmountOut, domain, referralCode);
|
|
65
|
+
async requestDepositViaIntent(user, amount, minAmountOut, domain, referralCode, transactionOptions) {
|
|
66
|
+
return this.contract.requestDepositViaIntent(user, amount, minAmountOut, domain, referralCode, { ...transactionOptions });
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
class LexPoolV1FunctionsGroup_UserRedeems {
|
|
70
70
|
constructor(contract) {
|
|
71
71
|
this.contract = contract;
|
|
72
72
|
}
|
|
73
|
-
async requestRedeem(amount, minAmountOut) {
|
|
74
|
-
return this.contract.requestRedeem(amount, minAmountOut);
|
|
73
|
+
async requestRedeem(amount, minAmountOut, transactionOptions) {
|
|
74
|
+
return this.contract.requestRedeem(amount, minAmountOut, { ...transactionOptions });
|
|
75
75
|
}
|
|
76
|
-
async requestRedeemViaIntent(user, amount, minAmountOut) {
|
|
77
|
-
return this.contract.requestRedeemViaIntent(user, amount, minAmountOut);
|
|
76
|
+
async requestRedeemViaIntent(user, amount, minAmountOut, transactionOptions) {
|
|
77
|
+
return this.contract.requestRedeemViaIntent(user, amount, minAmountOut, { ...transactionOptions });
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
class LexPoolV1FunctionsGroup_Processing {
|
|
81
81
|
constructor(contract) {
|
|
82
82
|
this.contract = contract;
|
|
83
83
|
}
|
|
84
|
-
async processDeposit(users) {
|
|
85
|
-
return this.contract.processDeposit(users);
|
|
84
|
+
async processDeposit(users, transactionOptions) {
|
|
85
|
+
return this.contract.processDeposit(users, { ...transactionOptions });
|
|
86
86
|
}
|
|
87
|
-
async processDeposit_static(users) {
|
|
88
|
-
const result = await this.contract.processDeposit.staticCall(users);
|
|
87
|
+
async processDeposit_static(users, callOptions) {
|
|
88
|
+
const result = await this.contract.processDeposit.staticCall(users, { ...callOptions });
|
|
89
89
|
return {
|
|
90
90
|
amountDeposited: result[0],
|
|
91
91
|
amountCanceled: result[1],
|
|
@@ -93,11 +93,11 @@ class LexPoolV1FunctionsGroup_Processing {
|
|
|
93
93
|
counterCanceled: result[3],
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
|
-
async processRedeems(users) {
|
|
97
|
-
return this.contract.processRedeems(users);
|
|
96
|
+
async processRedeems(users, transactionOptions) {
|
|
97
|
+
return this.contract.processRedeems(users, { ...transactionOptions });
|
|
98
98
|
}
|
|
99
|
-
async processRedeems_static(users) {
|
|
100
|
-
const result = await this.contract.processRedeems.staticCall(users);
|
|
99
|
+
async processRedeems_static(users, callOptions) {
|
|
100
|
+
const result = await this.contract.processRedeems.staticCall(users, { ...callOptions });
|
|
101
101
|
return {
|
|
102
102
|
amountRedeemed: result[0],
|
|
103
103
|
amountCanceled: result[1],
|
|
@@ -105,30 +105,30 @@ class LexPoolV1FunctionsGroup_Processing {
|
|
|
105
105
|
counterCanceled: result[3],
|
|
106
106
|
};
|
|
107
107
|
}
|
|
108
|
-
async cancelDeposits(users, epochs) {
|
|
109
|
-
return this.contract.cancelDeposits(users, epochs);
|
|
108
|
+
async cancelDeposits(users, epochs, transactionOptions) {
|
|
109
|
+
return this.contract.cancelDeposits(users, epochs, { ...transactionOptions });
|
|
110
110
|
}
|
|
111
|
-
async cancelRedeems(users, epochs) {
|
|
112
|
-
return this.contract.cancelRedeems(users, epochs);
|
|
111
|
+
async cancelRedeems(users, epochs, transactionOptions) {
|
|
112
|
+
return this.contract.cancelRedeems(users, epochs, { ...transactionOptions });
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
class LexPoolV1FunctionsGroup_EpochManagement {
|
|
116
116
|
constructor(contract) {
|
|
117
117
|
this.contract = contract;
|
|
118
118
|
}
|
|
119
|
-
async nextEpoch(totalUnrealizedPricePnL) {
|
|
120
|
-
return this.contract.nextEpoch(totalUnrealizedPricePnL);
|
|
119
|
+
async nextEpoch(totalUnrealizedPricePnL, transactionOptions) {
|
|
120
|
+
return this.contract.nextEpoch(totalUnrealizedPricePnL, { ...transactionOptions });
|
|
121
121
|
}
|
|
122
|
-
async nextEpoch_static(totalUnrealizedPricePnL) {
|
|
123
|
-
return this.contract.nextEpoch.staticCall(totalUnrealizedPricePnL);
|
|
122
|
+
async nextEpoch_static(totalUnrealizedPricePnL, callOptions) {
|
|
123
|
+
return this.contract.nextEpoch.staticCall(totalUnrealizedPricePnL, { ...callOptions });
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
class LexPoolV1FunctionsGroup_TradingFloorInteraction {
|
|
127
127
|
constructor(contract) {
|
|
128
128
|
this.contract = contract;
|
|
129
129
|
}
|
|
130
|
-
async sendAssetToTrader(to, amount) {
|
|
131
|
-
return this.contract.sendAssetToTrader(to, amount);
|
|
130
|
+
async sendAssetToTrader(to, amount, transactionOptions) {
|
|
131
|
+
return this.contract.sendAssetToTrader(to, amount, { ...transactionOptions });
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
class LexPoolV1Service {
|
|
@@ -154,48 +154,48 @@ class LexPoolV1Service {
|
|
|
154
154
|
}
|
|
155
155
|
createViewFunctionsGroup() {
|
|
156
156
|
return {
|
|
157
|
-
calcNextEpochStartMin: () => this.lexPoolContract.calcNextEpochStartMin(),
|
|
158
|
-
currentBalanceInternal: () => this.lexPoolContract.currentBalanceInternal(),
|
|
159
|
-
underlyingBalanceForExchangeRate: () => this.lexPoolContract.underlyingBalanceForExchangeRate(),
|
|
160
|
-
virtualBalanceForUtilization: (extraAmount, unrealizedFunding) => this.lexPoolContract["virtualBalanceForUtilization(uint256,int256)"](extraAmount, unrealizedFunding),
|
|
161
|
-
virtualBalanceForUtilizationCurrent: () => this.lexPoolContract["virtualBalanceForUtilization()"](),
|
|
162
|
-
currentVirtualUtilization: (totalBorrows, interestShare, unrealizedFunding) => this.lexPoolContract["currentVirtualUtilization(uint256,uint256,int256)"](totalBorrows, interestShare, unrealizedFunding),
|
|
163
|
-
currentVirtualUtilizationSimple: () => this.lexPoolContract["currentVirtualUtilization()"](),
|
|
164
|
-
isUtilizationForLPsValid: () => this.lexPoolContract.isUtilizationForLPsValid(),
|
|
165
|
-
underlyingAmountToOwnAmount: (underlyingAmount) => this.lexPoolContract.underlyingAmountToOwnAmount(underlyingAmount),
|
|
166
|
-
getDepositorsCount: (epoch) => this.lexPoolContract.getDepositorsCount(epoch),
|
|
167
|
-
getRedeemersCount: (epoch) => this.lexPoolContract.getRedeemersCount(epoch),
|
|
168
|
-
getDepositors: (epoch, indexFrom, count) => this.lexPoolContract.getDepositors(epoch, indexFrom, count),
|
|
169
|
-
getRedeemers: (epoch, indexFrom, count) => this.lexPoolContract.getRedeemers(epoch, indexFrom, count),
|
|
157
|
+
calcNextEpochStartMin: (callOptions) => this.lexPoolContract.calcNextEpochStartMin({ ...callOptions }),
|
|
158
|
+
currentBalanceInternal: (callOptions) => this.lexPoolContract.currentBalanceInternal({ ...callOptions }),
|
|
159
|
+
underlyingBalanceForExchangeRate: (callOptions) => this.lexPoolContract.underlyingBalanceForExchangeRate({ ...callOptions }),
|
|
160
|
+
virtualBalanceForUtilization: (extraAmount, unrealizedFunding, callOptions) => this.lexPoolContract["virtualBalanceForUtilization(uint256,int256)"](extraAmount, unrealizedFunding, { ...callOptions }),
|
|
161
|
+
virtualBalanceForUtilizationCurrent: (callOptions) => this.lexPoolContract["virtualBalanceForUtilization()"]({ ...callOptions }),
|
|
162
|
+
currentVirtualUtilization: (totalBorrows, interestShare, unrealizedFunding, callOptions) => this.lexPoolContract["currentVirtualUtilization(uint256,uint256,int256)"](totalBorrows, interestShare, unrealizedFunding, { ...callOptions }),
|
|
163
|
+
currentVirtualUtilizationSimple: (callOptions) => this.lexPoolContract["currentVirtualUtilization()"]({ ...callOptions }),
|
|
164
|
+
isUtilizationForLPsValid: (callOptions) => this.lexPoolContract.isUtilizationForLPsValid({ ...callOptions }),
|
|
165
|
+
underlyingAmountToOwnAmount: (underlyingAmount, callOptions) => this.lexPoolContract.underlyingAmountToOwnAmount(underlyingAmount, { ...callOptions }),
|
|
166
|
+
getDepositorsCount: (epoch, callOptions) => this.lexPoolContract.getDepositorsCount(epoch, { ...callOptions }),
|
|
167
|
+
getRedeemersCount: (epoch, callOptions) => this.lexPoolContract.getRedeemersCount(epoch, { ...callOptions }),
|
|
168
|
+
getDepositors: (epoch, indexFrom, count, callOptions) => this.lexPoolContract.getDepositors(epoch, indexFrom, count, { ...callOptions }),
|
|
169
|
+
getRedeemers: (epoch, indexFrom, count, callOptions) => this.lexPoolContract.getRedeemers(epoch, indexFrom, count, { ...callOptions }),
|
|
170
170
|
};
|
|
171
171
|
}
|
|
172
172
|
createStateVariablesGroup() {
|
|
173
173
|
return {
|
|
174
174
|
// Configuration
|
|
175
|
-
underlyingDecimals: () => this.lexPoolContract.underlyingDecimals(),
|
|
176
|
-
epochDuration: () => this.lexPoolContract.epochDuration(),
|
|
177
|
-
epochsDelayDeposit: () => this.lexPoolContract.epochsDelayDeposit(),
|
|
178
|
-
epochsDelayRedeem: () => this.lexPoolContract.epochsDelayRedeem(),
|
|
179
|
-
minDepositAmount: () => this.lexPoolContract.minDepositAmount(),
|
|
180
|
-
maxExtraWithdrawalAmountF: () => this.lexPoolContract.maxExtraWithdrawalAmountF(),
|
|
181
|
-
immediateDepositAllowed: () => this.lexPoolContract.immediateDepositAllowed(),
|
|
175
|
+
underlyingDecimals: (callOptions) => this.lexPoolContract.underlyingDecimals({ ...callOptions }),
|
|
176
|
+
epochDuration: (callOptions) => this.lexPoolContract.epochDuration({ ...callOptions }),
|
|
177
|
+
epochsDelayDeposit: (callOptions) => this.lexPoolContract.epochsDelayDeposit({ ...callOptions }),
|
|
178
|
+
epochsDelayRedeem: (callOptions) => this.lexPoolContract.epochsDelayRedeem({ ...callOptions }),
|
|
179
|
+
minDepositAmount: (callOptions) => this.lexPoolContract.minDepositAmount({ ...callOptions }),
|
|
180
|
+
maxExtraWithdrawalAmountF: (callOptions) => this.lexPoolContract.maxExtraWithdrawalAmountF({ ...callOptions }),
|
|
181
|
+
immediateDepositAllowed: (callOptions) => this.lexPoolContract.immediateDepositAllowed({ ...callOptions }),
|
|
182
182
|
// Epoch state
|
|
183
|
-
currentEpoch: () => this.lexPoolContract.currentEpoch(),
|
|
184
|
-
nextEpochStartMin: () => this.lexPoolContract.nextEpochStartMin(),
|
|
185
|
-
currentExchangeRate: () => this.lexPoolContract.currentExchangeRate(),
|
|
183
|
+
currentEpoch: (callOptions) => this.lexPoolContract.currentEpoch({ ...callOptions }),
|
|
184
|
+
nextEpochStartMin: (callOptions) => this.lexPoolContract.nextEpochStartMin({ ...callOptions }),
|
|
185
|
+
currentExchangeRate: (callOptions) => this.lexPoolContract.currentExchangeRate({ ...callOptions }),
|
|
186
186
|
// Pending amounts
|
|
187
|
-
pendingDepositAmount: () => this.lexPoolContract.pendingDepositAmount(),
|
|
188
|
-
pendingWithdrawalAmount: () => this.lexPoolContract.pendingWithdrawalAmount(),
|
|
187
|
+
pendingDepositAmount: (callOptions) => this.lexPoolContract.pendingDepositAmount({ ...callOptions }),
|
|
188
|
+
pendingWithdrawalAmount: (callOptions) => this.lexPoolContract.pendingWithdrawalAmount({ ...callOptions }),
|
|
189
189
|
// Pending user requests (mappings)
|
|
190
|
-
pendingDeposits: async (epoch, user) => {
|
|
191
|
-
const result = await this.lexPoolContract.pendingDeposits(epoch, user);
|
|
190
|
+
pendingDeposits: async (epoch, user, callOptions) => {
|
|
191
|
+
const result = await this.lexPoolContract.pendingDeposits(epoch, user, { ...callOptions });
|
|
192
192
|
return {
|
|
193
193
|
amount: result[0],
|
|
194
194
|
minAmountOut: result[1],
|
|
195
195
|
};
|
|
196
196
|
},
|
|
197
|
-
pendingRedeems: async (epoch, user) => {
|
|
198
|
-
const result = await this.lexPoolContract.pendingRedeems(epoch, user);
|
|
197
|
+
pendingRedeems: async (epoch, user, callOptions) => {
|
|
198
|
+
const result = await this.lexPoolContract.pendingRedeems(epoch, user, { ...callOptions });
|
|
199
199
|
return {
|
|
200
200
|
amount: result[0],
|
|
201
201
|
minAmountOut: result[1],
|
|
@@ -203,40 +203,40 @@ class LexPoolV1Service {
|
|
|
203
203
|
};
|
|
204
204
|
},
|
|
205
205
|
// Contract references
|
|
206
|
-
poolAccountant: () => this.lexPoolContract.poolAccountant(),
|
|
207
|
-
pnlRole: () => this.lexPoolContract.pnlRole(),
|
|
208
|
-
underlying: () => this.lexPoolContract.underlying(),
|
|
209
|
-
registry: () => this.lexPoolContract.registry(),
|
|
210
|
-
tradingFloor: () => this.lexPoolContract.tradingFloor(),
|
|
206
|
+
poolAccountant: (callOptions) => this.lexPoolContract.poolAccountant({ ...callOptions }),
|
|
207
|
+
pnlRole: (callOptions) => this.lexPoolContract.pnlRole({ ...callOptions }),
|
|
208
|
+
underlying: (callOptions) => this.lexPoolContract.underlying({ ...callOptions }),
|
|
209
|
+
registry: (callOptions) => this.lexPoolContract.registry({ ...callOptions }),
|
|
210
|
+
tradingFloor: (callOptions) => this.lexPoolContract.tradingFloor({ ...callOptions }),
|
|
211
211
|
};
|
|
212
212
|
}
|
|
213
213
|
createERC20Group() {
|
|
214
214
|
return {
|
|
215
|
-
name: () => this.lexPoolContract.name(),
|
|
216
|
-
symbol: () => this.lexPoolContract.symbol(),
|
|
217
|
-
decimals: () => this.lexPoolContract.decimals(),
|
|
218
|
-
totalSupply: () => this.lexPoolContract.totalSupply(),
|
|
219
|
-
balanceOf: (account) => this.lexPoolContract.balanceOf(account),
|
|
220
|
-
allowance: (owner, spender) => this.lexPoolContract.allowance(owner, spender),
|
|
221
|
-
transfer: (to, amount) => this.lexPoolContract.transfer(to, amount),
|
|
222
|
-
transferFrom: (from, to, amount) => this.lexPoolContract.transferFrom(from, to, amount),
|
|
223
|
-
approve: (spender, amount) => this.lexPoolContract.approve(spender, amount),
|
|
215
|
+
name: (callOptions) => this.lexPoolContract.name({ ...callOptions }),
|
|
216
|
+
symbol: (callOptions) => this.lexPoolContract.symbol({ ...callOptions }),
|
|
217
|
+
decimals: (callOptions) => this.lexPoolContract.decimals({ ...callOptions }),
|
|
218
|
+
totalSupply: (callOptions) => this.lexPoolContract.totalSupply({ ...callOptions }),
|
|
219
|
+
balanceOf: (account, callOptions) => this.lexPoolContract.balanceOf(account, { ...callOptions }),
|
|
220
|
+
allowance: (owner, spender, callOptions) => this.lexPoolContract.allowance(owner, spender, { ...callOptions }),
|
|
221
|
+
transfer: (to, amount, transactionOptions) => this.lexPoolContract.transfer(to, amount, { ...transactionOptions }),
|
|
222
|
+
transferFrom: (from, to, amount, transactionOptions) => this.lexPoolContract.transferFrom(from, to, amount, { ...transactionOptions }),
|
|
223
|
+
approve: (spender, amount, transactionOptions) => this.lexPoolContract.approve(spender, amount, { ...transactionOptions }),
|
|
224
224
|
};
|
|
225
225
|
}
|
|
226
226
|
createConstantsGroup() {
|
|
227
227
|
return {
|
|
228
|
-
SELF_UNIT_SCALE: () => this.lexPoolContract.SELF_UNIT_SCALE(),
|
|
229
|
-
PRECISION: () => this.lexPoolContract.PRECISION(),
|
|
230
|
-
FRACTION_SCALE: () => this.lexPoolContract.FRACTION_SCALE(),
|
|
231
|
-
LEVERAGE_SCALE: () => this.lexPoolContract.LEVERAGE_SCALE(),
|
|
228
|
+
SELF_UNIT_SCALE: (callOptions) => this.lexPoolContract.SELF_UNIT_SCALE({ ...callOptions }),
|
|
229
|
+
PRECISION: (callOptions) => this.lexPoolContract.PRECISION({ ...callOptions }),
|
|
230
|
+
FRACTION_SCALE: (callOptions) => this.lexPoolContract.FRACTION_SCALE({ ...callOptions }),
|
|
231
|
+
LEVERAGE_SCALE: (callOptions) => this.lexPoolContract.LEVERAGE_SCALE({ ...callOptions }),
|
|
232
232
|
};
|
|
233
233
|
}
|
|
234
234
|
createContractInfoGroup() {
|
|
235
235
|
return {
|
|
236
|
-
admin: () => this.lexPoolContract.admin(),
|
|
237
|
-
pendingAdmin: () => this.lexPoolContract.pendingAdmin(),
|
|
238
|
-
implementation: () => this.lexPoolContract.implementation(),
|
|
239
|
-
pendingImplementation: () => this.lexPoolContract.pendingImplementation(),
|
|
236
|
+
admin: (callOptions) => this.lexPoolContract.admin({ ...callOptions }),
|
|
237
|
+
pendingAdmin: (callOptions) => this.lexPoolContract.pendingAdmin({ ...callOptions }),
|
|
238
|
+
implementation: (callOptions) => this.lexPoolContract.implementation({ ...callOptions }),
|
|
239
|
+
pendingImplementation: (callOptions) => this.lexPoolContract.pendingImplementation({ ...callOptions }),
|
|
240
240
|
};
|
|
241
241
|
}
|
|
242
242
|
}
|