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
|
@@ -6,12 +6,12 @@ class PNLRFunctionsGroup_EpochManagement {
|
|
|
6
6
|
constructor(contract) {
|
|
7
7
|
this.contract = contract;
|
|
8
8
|
}
|
|
9
|
-
async advanceEpoch(pool, pairsPrices, value) {
|
|
10
|
-
const options = value ? { value } : {};
|
|
9
|
+
async advanceEpoch(pool, pairsPrices, value, transactionOptions) {
|
|
10
|
+
const options = value ? { value, ...transactionOptions } : { ...transactionOptions };
|
|
11
11
|
return this.contract.advanceEpoch(pool, pairsPrices, options);
|
|
12
12
|
}
|
|
13
|
-
async advanceEpochAllowMissingZeroOI(pool, pairsPrices, value) {
|
|
14
|
-
const options = value ? { value } : {};
|
|
13
|
+
async advanceEpochAllowMissingZeroOI(pool, pairsPrices, value, transactionOptions) {
|
|
14
|
+
const options = value ? { value, ...transactionOptions } : { ...transactionOptions };
|
|
15
15
|
return this.contract.advanceEpochAllowMissingZeroOI(pool, pairsPrices, options);
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -19,94 +19,94 @@ class PNLRFunctionsGroup_PnLCalculation {
|
|
|
19
19
|
constructor(contract) {
|
|
20
20
|
this.contract = contract;
|
|
21
21
|
}
|
|
22
|
-
async calculateUnrealizedPricePnl(poolAccountant, pairsPrices, value) {
|
|
22
|
+
async calculateUnrealizedPricePnl(poolAccountant, pairsPrices, value, callOptions) {
|
|
23
23
|
// Payable view function - value parameter is optional for gas estimation
|
|
24
|
-
return this.contract.calculateUnrealizedPricePnl.staticCall(poolAccountant, pairsPrices);
|
|
24
|
+
return this.contract.calculateUnrealizedPricePnl.staticCall(poolAccountant, pairsPrices, { ...callOptions });
|
|
25
25
|
}
|
|
26
|
-
async calculateUnrealizedPricePnlAllowMissingZeroOI(poolAccountant, pairsPrices, value) {
|
|
26
|
+
async calculateUnrealizedPricePnlAllowMissingZeroOI(poolAccountant, pairsPrices, value, callOptions) {
|
|
27
27
|
// Payable view function - value parameter is optional for gas estimation
|
|
28
|
-
return this.contract.calculateUnrealizedPricePnlAllowMissingZeroOI.staticCall(poolAccountant, pairsPrices);
|
|
28
|
+
return this.contract.calculateUnrealizedPricePnlAllowMissingZeroOI.staticCall(poolAccountant, pairsPrices, { ...callOptions });
|
|
29
29
|
}
|
|
30
|
-
async pairsTradersPricePnl(poolAccountant, pairsPrices, value) {
|
|
30
|
+
async pairsTradersPricePnl(poolAccountant, pairsPrices, value, callOptions) {
|
|
31
31
|
// Payable view function - value parameter is optional for gas estimation
|
|
32
|
-
return this.contract.pairsTradersPricePnl.staticCall(poolAccountant, pairsPrices);
|
|
32
|
+
return this.contract.pairsTradersPricePnl.staticCall(poolAccountant, pairsPrices, { ...callOptions });
|
|
33
33
|
}
|
|
34
|
-
async pairsTradersPricePnlWithMissingPairs(poolAccountant, pairsPrices, allowMissingZeroOI, value) {
|
|
34
|
+
async pairsTradersPricePnlWithMissingPairs(poolAccountant, pairsPrices, allowMissingZeroOI, value, callOptions) {
|
|
35
35
|
// Payable view function - value parameter is optional for gas estimation
|
|
36
|
-
return this.contract.pairsTradersPricePnlWithMissingPairs.staticCall(poolAccountant, pairsPrices, allowMissingZeroOI);
|
|
36
|
+
return this.contract.pairsTradersPricePnlWithMissingPairs.staticCall(poolAccountant, pairsPrices, allowMissingZeroOI, { ...callOptions });
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
class PNLRFunctionsGroup_PermissionManagement {
|
|
40
40
|
constructor(contract) {
|
|
41
41
|
this.contract = contract;
|
|
42
42
|
}
|
|
43
|
-
async allowEpochAdvancingAccount(account) {
|
|
44
|
-
return this.contract.allowEpochAdvancingAccount(account);
|
|
43
|
+
async allowEpochAdvancingAccount(account, transactionOptions) {
|
|
44
|
+
return this.contract.allowEpochAdvancingAccount(account, { ...transactionOptions });
|
|
45
45
|
}
|
|
46
|
-
async disallowEpochAdvancingAccount(account) {
|
|
47
|
-
return this.contract.disallowEpochAdvancingAccount(account);
|
|
46
|
+
async disallowEpochAdvancingAccount(account, transactionOptions) {
|
|
47
|
+
return this.contract.disallowEpochAdvancingAccount(account, { ...transactionOptions });
|
|
48
48
|
}
|
|
49
|
-
async isAllowedToTrigger(account) {
|
|
50
|
-
return this.contract.isAllowedToTrigger(account);
|
|
49
|
+
async isAllowedToTrigger(account, callOptions) {
|
|
50
|
+
return this.contract.isAllowedToTrigger(account, { ...callOptions });
|
|
51
51
|
}
|
|
52
|
-
async getAllTriggerPermissionedAccounts() {
|
|
53
|
-
return this.contract.getAllTriggerPermissionedAccounts();
|
|
52
|
+
async getAllTriggerPermissionedAccounts(callOptions) {
|
|
53
|
+
return this.contract.getAllTriggerPermissionedAccounts({ ...callOptions });
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
class PNLRFunctionsGroup_Configuration {
|
|
57
57
|
constructor(contract) {
|
|
58
58
|
this.contract = contract;
|
|
59
59
|
}
|
|
60
|
-
async maxPriceDelay() {
|
|
61
|
-
return this.contract.maxPriceDelay();
|
|
60
|
+
async maxPriceDelay(callOptions) {
|
|
61
|
+
return this.contract.maxPriceDelay({ ...callOptions });
|
|
62
62
|
}
|
|
63
|
-
async setMaxPriceDelay(delay) {
|
|
64
|
-
return this.contract.setMaxPriceDelay(delay);
|
|
63
|
+
async setMaxPriceDelay(delay, transactionOptions) {
|
|
64
|
+
return this.contract.setMaxPriceDelay(delay, { ...transactionOptions });
|
|
65
65
|
}
|
|
66
|
-
async priceValidator() {
|
|
67
|
-
return this.contract.priceValidator();
|
|
66
|
+
async priceValidator(callOptions) {
|
|
67
|
+
return this.contract.priceValidator({ ...callOptions });
|
|
68
68
|
}
|
|
69
|
-
async priceValidatorType() {
|
|
70
|
-
return this.contract.priceValidatorType();
|
|
69
|
+
async priceValidatorType(callOptions) {
|
|
70
|
+
return this.contract.priceValidatorType({ ...callOptions });
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
class PNLRFunctionsGroup_PendableAdmin {
|
|
74
74
|
constructor(contract) {
|
|
75
75
|
this.contract = contract;
|
|
76
76
|
}
|
|
77
|
-
async admin() {
|
|
78
|
-
return this.contract.admin();
|
|
77
|
+
async admin(callOptions) {
|
|
78
|
+
return this.contract.admin({ ...callOptions });
|
|
79
79
|
}
|
|
80
|
-
async pendingAdmin() {
|
|
81
|
-
return this.contract.pendingAdmin();
|
|
80
|
+
async pendingAdmin(callOptions) {
|
|
81
|
+
return this.contract.pendingAdmin({ ...callOptions });
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
class PNLRFunctionsGroup_AdminManagement {
|
|
85
85
|
constructor(contract) {
|
|
86
86
|
this.contract = contract;
|
|
87
87
|
}
|
|
88
|
-
async _setPendingAdmin(newPendingAdmin) {
|
|
89
|
-
return this.contract._setPendingAdmin(newPendingAdmin);
|
|
88
|
+
async _setPendingAdmin(newPendingAdmin, transactionOptions) {
|
|
89
|
+
return this.contract._setPendingAdmin(newPendingAdmin, { ...transactionOptions });
|
|
90
90
|
}
|
|
91
|
-
async _acceptAdmin() {
|
|
92
|
-
return this.contract._acceptAdmin();
|
|
91
|
+
async _acceptAdmin(transactionOptions) {
|
|
92
|
+
return this.contract._acceptAdmin({ ...transactionOptions });
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
class PNLRFunctionsGroup_LynxVersionedContract {
|
|
96
96
|
constructor(contract) {
|
|
97
97
|
this.contract = contract;
|
|
98
98
|
}
|
|
99
|
-
async getContractName() {
|
|
100
|
-
return this.contract.getContractName();
|
|
99
|
+
async getContractName(callOptions) {
|
|
100
|
+
return this.contract.getContractName({ ...callOptions });
|
|
101
101
|
}
|
|
102
|
-
async getContractVersion() {
|
|
103
|
-
return this.contract.getContractVersion();
|
|
102
|
+
async getContractVersion(callOptions) {
|
|
103
|
+
return this.contract.getContractVersion({ ...callOptions });
|
|
104
104
|
}
|
|
105
|
-
async CONTRACT_NAME() {
|
|
106
|
-
return this.contract.CONTRACT_NAME();
|
|
105
|
+
async CONTRACT_NAME(callOptions) {
|
|
106
|
+
return this.contract.CONTRACT_NAME({ ...callOptions });
|
|
107
107
|
}
|
|
108
|
-
async CONTRACT_VERSION() {
|
|
109
|
-
return this.contract.CONTRACT_VERSION();
|
|
108
|
+
async CONTRACT_VERSION(callOptions) {
|
|
109
|
+
return this.contract.CONTRACT_VERSION({ ...callOptions });
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
class PNLRService {
|
package/dist/cjs/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.js
CHANGED
|
@@ -8,38 +8,38 @@ class PoolAccountantV1FunctionsGroup_TradeUtilities {
|
|
|
8
8
|
constructor(contract) {
|
|
9
9
|
this.contract = contract;
|
|
10
10
|
}
|
|
11
|
-
async adjustClosePrice(closePrice, tp, long) {
|
|
12
|
-
return this.contract.adjustClosePrice(closePrice, tp, long);
|
|
11
|
+
async adjustClosePrice(closePrice, tp, long, callOptions) {
|
|
12
|
+
return this.contract.adjustClosePrice(closePrice, tp, long, { ...callOptions });
|
|
13
13
|
}
|
|
14
|
-
async generatePositionHashId(settlementAsset, trader, pairId, index) {
|
|
15
|
-
return this.contract.generatePositionHashId(settlementAsset, trader, pairId, index);
|
|
14
|
+
async generatePositionHashId(settlementAsset, trader, pairId, index, callOptions) {
|
|
15
|
+
return this.contract.generatePositionHashId(settlementAsset, trader, pairId, index, { ...callOptions });
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
class PoolAccountantV1FunctionsGroup_FeeCalculations {
|
|
19
19
|
constructor(contract) {
|
|
20
20
|
this.contract = contract;
|
|
21
21
|
}
|
|
22
|
-
async calcClosingFee(pairId, collateral, leverage) {
|
|
23
|
-
return this.contract.calcClosingFee(pairId, collateral, leverage);
|
|
22
|
+
async calcClosingFee(pairId, collateral, leverage, callOptions) {
|
|
23
|
+
return this.contract.calcClosingFee(pairId, collateral, leverage, { ...callOptions });
|
|
24
24
|
}
|
|
25
|
-
async calcPerformanceFee(pairId, collateral, profitPrecision) {
|
|
26
|
-
return this.contract.calcPerformanceFee(pairId, collateral, profitPrecision);
|
|
25
|
+
async calcPerformanceFee(pairId, collateral, profitPrecision, callOptions) {
|
|
26
|
+
return this.contract.calcPerformanceFee(pairId, collateral, profitPrecision, { ...callOptions });
|
|
27
27
|
}
|
|
28
|
-
async calcTradeDynamicFees(positionId, pairId, long, collateral, leverage, openPrice, tp) {
|
|
29
|
-
const result = await this.contract.calcTradeDynamicFees.staticCall(positionId, pairId, long, collateral, leverage, openPrice, tp);
|
|
28
|
+
async calcTradeDynamicFees(positionId, pairId, long, collateral, leverage, openPrice, tp, callOptions) {
|
|
29
|
+
const result = await this.contract.calcTradeDynamicFees.staticCall(positionId, pairId, long, collateral, leverage, openPrice, tp, { ...callOptions });
|
|
30
30
|
return {
|
|
31
31
|
interest: result.interest,
|
|
32
32
|
funding: result.funding,
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
-
async calcBorrowAmount(collateral, leverage, long, openPrice, tp) {
|
|
36
|
-
return this.contract.calcBorrowAmount(collateral, leverage, long, openPrice, tp);
|
|
35
|
+
async calcBorrowAmount(collateral, leverage, long, openPrice, tp, callOptions) {
|
|
36
|
+
return this.contract.calcBorrowAmount(collateral, leverage, long, openPrice, tp, { ...callOptions });
|
|
37
37
|
}
|
|
38
|
-
async calcAbsoluteSkew(openInterestLong, openInterestShort, additionIsLong, additionOpenInterest) {
|
|
39
|
-
return this.contract.calcAbsoluteSkew(openInterestLong, openInterestShort, additionIsLong, additionOpenInterest);
|
|
38
|
+
async calcAbsoluteSkew(openInterestLong, openInterestShort, additionIsLong, additionOpenInterest, callOptions) {
|
|
39
|
+
return this.contract.calcAbsoluteSkew(openInterestLong, openInterestShort, additionIsLong, additionOpenInterest, { ...callOptions });
|
|
40
40
|
}
|
|
41
|
-
async calcAccrueFundingValues(pairId) {
|
|
42
|
-
const result = await this.contract.calcAccrueFundingValues(pairId);
|
|
41
|
+
async calcAccrueFundingValues(pairId, callOptions) {
|
|
42
|
+
const result = await this.contract.calcAccrueFundingValues(pairId, { ...callOptions });
|
|
43
43
|
return {
|
|
44
44
|
freshened: result.freshened,
|
|
45
45
|
valueLong: result.valueLong,
|
|
@@ -73,73 +73,73 @@ class PoolAccountantV1Service {
|
|
|
73
73
|
}
|
|
74
74
|
createVerificationGroup() {
|
|
75
75
|
return {
|
|
76
|
-
verifyLeveragedPosition: async (pairIndex, collateral, leverage) => {
|
|
77
|
-
const result = await this.poolAccountantContract.verifyLeveragedPosition(pairIndex, collateral, leverage);
|
|
76
|
+
verifyLeveragedPosition: async (pairIndex, collateral, leverage, callOptions) => {
|
|
77
|
+
const result = await this.poolAccountantContract.verifyLeveragedPosition(pairIndex, collateral, leverage, { ...callOptions });
|
|
78
78
|
return result;
|
|
79
79
|
},
|
|
80
|
-
verifyOpenFee: async (pairIndex, leveragedPosition) => {
|
|
81
|
-
const result = await this.poolAccountantContract.verifyOpenFee(pairIndex, leveragedPosition);
|
|
80
|
+
verifyOpenFee: async (pairIndex, leveragedPosition, callOptions) => {
|
|
81
|
+
const result = await this.poolAccountantContract.verifyOpenFee(pairIndex, leveragedPosition, { ...callOptions });
|
|
82
82
|
return {
|
|
83
83
|
openFee: result[0],
|
|
84
84
|
lexPartFee: result[1],
|
|
85
85
|
};
|
|
86
86
|
},
|
|
87
|
-
verifyPerformanceFee: (pairIndex, collateral) => this.poolAccountantContract.verifyPerformanceFee(pairIndex, collateral),
|
|
88
|
-
verifyMaxPercentProfit: (openPrice, targetPrice, leverage, long) => this.poolAccountantContract.verifyMaxPercentProfit(openPrice, targetPrice, leverage, long),
|
|
89
|
-
verifyUtilizationForTraders: (totalBorrows, totalReserves, unrealizedFunding) => this.poolAccountantContract.verifyUtilizationForTraders(totalBorrows, totalReserves, unrealizedFunding),
|
|
87
|
+
verifyPerformanceFee: (pairIndex, collateral, callOptions) => this.poolAccountantContract.verifyPerformanceFee(pairIndex, collateral, { ...callOptions }),
|
|
88
|
+
verifyMaxPercentProfit: (openPrice, targetPrice, leverage, long, callOptions) => this.poolAccountantContract.verifyMaxPercentProfit(openPrice, targetPrice, leverage, long, { ...callOptions }),
|
|
89
|
+
verifyUtilizationForTraders: (totalBorrows, totalReserves, unrealizedFunding, callOptions) => this.poolAccountantContract.verifyUtilizationForTraders(totalBorrows, totalReserves, unrealizedFunding, { ...callOptions }),
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
92
|
createFundingGroup() {
|
|
93
93
|
return {
|
|
94
|
-
accrueFunding: async (pairId) => {
|
|
95
|
-
const tx = await this.poolAccountantContract.accrueFunding(pairId);
|
|
94
|
+
accrueFunding: async (pairId, transactionOptions) => {
|
|
95
|
+
const tx = await this.poolAccountantContract.accrueFunding(pairId, { ...transactionOptions });
|
|
96
96
|
const receipt = await tx.wait();
|
|
97
97
|
// Return transaction receipt - developers can parse events if needed
|
|
98
98
|
return receipt;
|
|
99
99
|
},
|
|
100
|
-
accrueFunding_static: async (pairId) => {
|
|
101
|
-
const result = await this.poolAccountantContract.accrueFunding.staticCall(pairId);
|
|
100
|
+
accrueFunding_static: async (pairId, callOptions) => {
|
|
101
|
+
const result = await this.poolAccountantContract.accrueFunding.staticCall(pairId, { ...callOptions });
|
|
102
102
|
return {
|
|
103
103
|
valueLong: result[0],
|
|
104
104
|
valueShort: result[1],
|
|
105
105
|
protocolFundingShare: result[2],
|
|
106
106
|
};
|
|
107
107
|
},
|
|
108
|
-
calcAccrueFundingValues: (pairId) => this.poolAccountantContract
|
|
109
|
-
.calcAccrueFundingValues(pairId)
|
|
108
|
+
calcAccrueFundingValues: (pairId, callOptions) => this.poolAccountantContract
|
|
109
|
+
.calcAccrueFundingValues(pairId, { ...callOptions })
|
|
110
110
|
.then((r) => ({
|
|
111
111
|
freshened: r.freshened,
|
|
112
112
|
valueLong: r.valueLong,
|
|
113
113
|
valueShort: r.valueShort,
|
|
114
114
|
protocolFundingShare: r.protocolFundingShare,
|
|
115
115
|
})),
|
|
116
|
-
fundingIndicesCalculation: (oiLong, oiShort, fundingRate, timeDiff) => this.poolAccountantContract
|
|
117
|
-
.fundingIndicesCalculation(oiLong, oiShort, fundingRate, timeDiff)
|
|
116
|
+
fundingIndicesCalculation: (oiLong, oiShort, fundingRate, timeDiff, callOptions) => this.poolAccountantContract
|
|
117
|
+
.fundingIndicesCalculation(oiLong, oiShort, fundingRate, timeDiff, { ...callOptions })
|
|
118
118
|
.then((r) => ({
|
|
119
119
|
indexLongChange: r.indexLongChange,
|
|
120
120
|
indexShortChange: r.indexShortChange,
|
|
121
121
|
protocolFundingShare: r.protocolFundingShare,
|
|
122
122
|
})),
|
|
123
|
-
getTradeFunding: async (positionId, pairId, long, collateral, leverage) => {
|
|
124
|
-
const tx = await this.poolAccountantContract.getTradeFunding(positionId, pairId, long, collateral, leverage);
|
|
123
|
+
getTradeFunding: async (positionId, pairId, long, collateral, leverage, transactionOptions) => {
|
|
124
|
+
const tx = await this.poolAccountantContract.getTradeFunding(positionId, pairId, long, collateral, leverage, { ...transactionOptions });
|
|
125
125
|
const receipt = await tx.wait();
|
|
126
126
|
return receipt;
|
|
127
127
|
},
|
|
128
|
-
getTradeFunding_static: (positionId, pairId, long, collateral, leverage) => this.poolAccountantContract.getTradeFunding.staticCall(positionId, pairId, long, collateral, leverage),
|
|
129
|
-
getTradeFundingPure: (accFundingPerOi, endAccFundingPerOi, collateral, leverage) => this.poolAccountantContract.getTradeFundingPure(accFundingPerOi, endAccFundingPerOi, collateral, leverage),
|
|
130
|
-
getTradeInitialAccFundingPerOi: (positionId) => this.poolAccountantContract.getTradeInitialAccFundingPerOi(positionId),
|
|
131
|
-
getAccFundingLong: (pairIndex) => this.poolAccountantContract.getAccFundingLong(pairIndex),
|
|
132
|
-
getAccFundingShort: (pairIndex) => this.poolAccountantContract.getAccFundingShort(pairIndex),
|
|
133
|
-
getAccFundingUpdateBlock: (pairIndex) => this.poolAccountantContract.getAccFundingUpdateBlock(pairIndex),
|
|
128
|
+
getTradeFunding_static: (positionId, pairId, long, collateral, leverage, callOptions) => this.poolAccountantContract.getTradeFunding.staticCall(positionId, pairId, long, collateral, leverage, { ...callOptions }),
|
|
129
|
+
getTradeFundingPure: (accFundingPerOi, endAccFundingPerOi, collateral, leverage, callOptions) => this.poolAccountantContract.getTradeFundingPure(accFundingPerOi, endAccFundingPerOi, collateral, leverage, { ...callOptions }),
|
|
130
|
+
getTradeInitialAccFundingPerOi: (positionId, callOptions) => this.poolAccountantContract.getTradeInitialAccFundingPerOi(positionId, { ...callOptions }),
|
|
131
|
+
getAccFundingLong: (pairIndex, callOptions) => this.poolAccountantContract.getAccFundingLong(pairIndex, { ...callOptions }),
|
|
132
|
+
getAccFundingShort: (pairIndex, callOptions) => this.poolAccountantContract.getAccFundingShort(pairIndex, { ...callOptions }),
|
|
133
|
+
getAccFundingUpdateBlock: (pairIndex, callOptions) => this.poolAccountantContract.getAccFundingUpdateBlock(pairIndex, { ...callOptions }),
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
136
|
createInterestGroup() {
|
|
137
137
|
return {
|
|
138
|
-
getTradeInterest: (positionId, borrowAmount) => this.poolAccountantContract.getTradeInterest.staticCall(positionId, borrowAmount),
|
|
139
|
-
getTradeInterestPure: (tradeAccInterest, borrowsAndInterestShare, borrowIndex, accBorrowIndex) => this.poolAccountantContract.getTradeInterestPure(tradeAccInterest, borrowsAndInterestShare, borrowIndex, accBorrowIndex),
|
|
140
|
-
getTradeInitialAccBorrowIndex: (positionId) => this.poolAccountantContract.getTradeInitialAccBorrowIndex(positionId),
|
|
141
|
-
accrueInterest: async (availableCash) => {
|
|
142
|
-
const result = await this.poolAccountantContract["accrueInterest(uint256)"].staticCall(availableCash);
|
|
138
|
+
getTradeInterest: (positionId, borrowAmount, callOptions) => this.poolAccountantContract.getTradeInterest.staticCall(positionId, borrowAmount, { ...callOptions }),
|
|
139
|
+
getTradeInterestPure: (tradeAccInterest, borrowsAndInterestShare, borrowIndex, accBorrowIndex, callOptions) => this.poolAccountantContract.getTradeInterestPure(tradeAccInterest, borrowsAndInterestShare, borrowIndex, accBorrowIndex, { ...callOptions }),
|
|
140
|
+
getTradeInitialAccBorrowIndex: (positionId, callOptions) => this.poolAccountantContract.getTradeInitialAccBorrowIndex(positionId, { ...callOptions }),
|
|
141
|
+
accrueInterest: async (availableCash, callOptions) => {
|
|
142
|
+
const result = await this.poolAccountantContract["accrueInterest(uint256)"].staticCall(availableCash, { ...callOptions });
|
|
143
143
|
return {
|
|
144
144
|
totalInterestNew: result[0],
|
|
145
145
|
interestShareNew: result[1],
|
|
@@ -150,14 +150,14 @@ class PoolAccountantV1Service {
|
|
|
150
150
|
}
|
|
151
151
|
createLiquidationGroup() {
|
|
152
152
|
return {
|
|
153
|
-
getTradeLiquidationPrice: (positionId, pairId, openPrice, tp, long, collateral, leverage) => this.poolAccountantContract.getTradeLiquidationPrice.staticCall(positionId, pairId, openPrice, tp, long, collateral, leverage),
|
|
154
|
-
getTradeLiquidationPriceView: (openPrice, long, collateral, leverage, interest, funding, closingFee) => this.poolAccountantContract.getTradeLiquidationPriceView(openPrice, long, collateral, leverage, interest, funding, closingFee),
|
|
153
|
+
getTradeLiquidationPrice: (positionId, pairId, openPrice, tp, long, collateral, leverage, callOptions) => this.poolAccountantContract.getTradeLiquidationPrice.staticCall(positionId, pairId, openPrice, tp, long, collateral, leverage, { ...callOptions }),
|
|
154
|
+
getTradeLiquidationPriceView: (openPrice, long, collateral, leverage, interest, funding, closingFee, callOptions) => this.poolAccountantContract.getTradeLiquidationPriceView(openPrice, long, collateral, leverage, interest, funding, closingFee, { ...callOptions }),
|
|
155
155
|
};
|
|
156
156
|
}
|
|
157
157
|
createTradeValuesGroup() {
|
|
158
158
|
return {
|
|
159
|
-
getTradeValueView: (collateral, profitPrecision, interest, funding, closingFee, liquidation) => this.poolAccountantContract.getTradeValueView(collateral, profitPrecision, interest, funding, closingFee, liquidation),
|
|
160
|
-
getTradeClosingValues: async (positionId, pairId, collateral, leverage, long, openPrice, tp, closePrice, isLiquidation) => {
|
|
159
|
+
getTradeValueView: (collateral, profitPrecision, interest, funding, closingFee, liquidation, callOptions) => this.poolAccountantContract.getTradeValueView(collateral, profitPrecision, interest, funding, closingFee, liquidation, { ...callOptions }),
|
|
160
|
+
getTradeClosingValues: async (positionId, pairId, collateral, leverage, long, openPrice, tp, closePrice, isLiquidation, callOptions) => {
|
|
161
161
|
const params = {
|
|
162
162
|
collateral,
|
|
163
163
|
leverage,
|
|
@@ -165,7 +165,7 @@ class PoolAccountantV1Service {
|
|
|
165
165
|
openPrice,
|
|
166
166
|
tp,
|
|
167
167
|
};
|
|
168
|
-
const result = await this.poolAccountantContract.getTradeClosingValues.staticCall(positionId, pairId, params, closePrice, isLiquidation);
|
|
168
|
+
const result = await this.poolAccountantContract.getTradeClosingValues.staticCall(positionId, pairId, params, closePrice, isLiquidation, { ...callOptions });
|
|
169
169
|
return {
|
|
170
170
|
tradeValue: result[0],
|
|
171
171
|
safeClosingFee: result[1],
|
|
@@ -178,43 +178,43 @@ class PoolAccountantV1Service {
|
|
|
178
178
|
}
|
|
179
179
|
createPairManagementGroup() {
|
|
180
180
|
return {
|
|
181
|
-
pairTotalOpenInterest: (pairIndex) => this.poolAccountantContract.pairTotalOpenInterest(pairIndex),
|
|
182
|
-
calcAbsoluteSkew: (openInterestLong, openInterestShort, additionIsLong, additionOpenInterest) => this.poolAccountantContract.calcAbsoluteSkew(openInterestLong, openInterestShort, additionIsLong, additionOpenInterest),
|
|
183
|
-
pricePnL: (pairId, price) => this.poolAccountantContract.pricePnL(pairId, price),
|
|
184
|
-
pairBorrows: (pairIndex) => this.poolAccountantContract.pairBorrows(pairIndex),
|
|
185
|
-
pairMaxBorrow: (pairIndex) => this.poolAccountantContract.pairMaxBorrow(pairIndex),
|
|
186
|
-
pairMinOpenFee: (pairIndex) => this.poolAccountantContract.pairMinOpenFee(pairIndex),
|
|
187
|
-
pairOpenFeeF: (pairIndex) => this.poolAccountantContract.pairOpenFeeF(pairIndex),
|
|
188
|
-
pairCloseFeeF: (pairIndex) => this.poolAccountantContract.pairCloseFeeF(pairIndex),
|
|
189
|
-
pairPerformanceFeeF: (pairIndex) => this.poolAccountantContract.pairPerformanceFeeF(pairIndex),
|
|
190
|
-
pairTotalRatioOiToP: (pairIndex) => this.poolAccountantContract.pairTotalRatioOiToP(pairIndex),
|
|
191
|
-
groupBorrows: (groupIndex) => this.poolAccountantContract.groupBorrows(groupIndex),
|
|
192
|
-
groupMaxBorrow: (groupIndex) => this.poolAccountantContract.groupMaxBorrow(groupIndex),
|
|
181
|
+
pairTotalOpenInterest: (pairIndex, callOptions) => this.poolAccountantContract.pairTotalOpenInterest(pairIndex, { ...callOptions }),
|
|
182
|
+
calcAbsoluteSkew: (openInterestLong, openInterestShort, additionIsLong, additionOpenInterest, callOptions) => this.poolAccountantContract.calcAbsoluteSkew(openInterestLong, openInterestShort, additionIsLong, additionOpenInterest, { ...callOptions }),
|
|
183
|
+
pricePnL: (pairId, price, callOptions) => this.poolAccountantContract.pricePnL(pairId, price, { ...callOptions }),
|
|
184
|
+
pairBorrows: (pairIndex, callOptions) => this.poolAccountantContract.pairBorrows(pairIndex, { ...callOptions }),
|
|
185
|
+
pairMaxBorrow: (pairIndex, callOptions) => this.poolAccountantContract.pairMaxBorrow(pairIndex, { ...callOptions }),
|
|
186
|
+
pairMinOpenFee: (pairIndex, callOptions) => this.poolAccountantContract.pairMinOpenFee(pairIndex, { ...callOptions }),
|
|
187
|
+
pairOpenFeeF: (pairIndex, callOptions) => this.poolAccountantContract.pairOpenFeeF(pairIndex, { ...callOptions }),
|
|
188
|
+
pairCloseFeeF: (pairIndex, callOptions) => this.poolAccountantContract.pairCloseFeeF(pairIndex, { ...callOptions }),
|
|
189
|
+
pairPerformanceFeeF: (pairIndex, callOptions) => this.poolAccountantContract.pairPerformanceFeeF(pairIndex, { ...callOptions }),
|
|
190
|
+
pairTotalRatioOiToP: (pairIndex, callOptions) => this.poolAccountantContract.pairTotalRatioOiToP(pairIndex, { ...callOptions }),
|
|
191
|
+
groupBorrows: (groupIndex, callOptions) => this.poolAccountantContract.groupBorrows(groupIndex, { ...callOptions }),
|
|
192
|
+
groupMaxBorrow: (groupIndex, callOptions) => this.poolAccountantContract.groupMaxBorrow(groupIndex, { ...callOptions }),
|
|
193
193
|
};
|
|
194
194
|
}
|
|
195
195
|
createAdminConfigurationGroup() {
|
|
196
196
|
return {
|
|
197
|
-
setTradeIncentivizer: (incentivizer) => this.poolAccountantContract.setTradeIncentivizer(incentivizer),
|
|
198
|
-
setMaxGainF: (maxGainF) => this.poolAccountantContract.setMaxGainF(maxGainF),
|
|
199
|
-
setFrm: (frm) => this.poolAccountantContract.setFrm(frm),
|
|
200
|
-
setMinOpenFee: (min) => this.poolAccountantContract.setMinOpenFee(min),
|
|
201
|
-
setLexPartF: (partF) => this.poolAccountantContract.setLexPartF(partF),
|
|
202
|
-
setFundingRateMax: (maxValue) => this.poolAccountantContract.setFundingRateMax(maxValue),
|
|
203
|
-
setLiquidationThresholdF: (threshold) => this.poolAccountantContract.setLiquidationThresholdF(threshold),
|
|
204
|
-
setLiquidationFeeF: (fee) => this.poolAccountantContract.setLiquidationFeeF(fee),
|
|
205
|
-
setIrm: (irm) => this.poolAccountantContract.setIrm(irm),
|
|
206
|
-
setIrmHard: (irm) => this.poolAccountantContract.setIrmHard(irm),
|
|
207
|
-
setInterestShareFactor: (factor) => this.poolAccountantContract.setInterestShareFactor(factor),
|
|
208
|
-
setFundingShareFactor: (factor) => this.poolAccountantContract.setFundingShareFactor(factor),
|
|
209
|
-
setBorrowRateMax: (rate) => this.poolAccountantContract.setBorrowRateMax(rate),
|
|
210
|
-
setMaxTotalBorrows: (maxBorrows) => this.poolAccountantContract.setMaxTotalBorrows(maxBorrows),
|
|
211
|
-
setMaxVirtualUtilization: (maxUtilization) => this.poolAccountantContract.setMaxVirtualUtilization(maxUtilization),
|
|
197
|
+
setTradeIncentivizer: (incentivizer, transactionOptions) => this.poolAccountantContract.setTradeIncentivizer(incentivizer, { ...transactionOptions }),
|
|
198
|
+
setMaxGainF: (maxGainF, transactionOptions) => this.poolAccountantContract.setMaxGainF(maxGainF, { ...transactionOptions }),
|
|
199
|
+
setFrm: (frm, transactionOptions) => this.poolAccountantContract.setFrm(frm, { ...transactionOptions }),
|
|
200
|
+
setMinOpenFee: (min, transactionOptions) => this.poolAccountantContract.setMinOpenFee(min, { ...transactionOptions }),
|
|
201
|
+
setLexPartF: (partF, transactionOptions) => this.poolAccountantContract.setLexPartF(partF, { ...transactionOptions }),
|
|
202
|
+
setFundingRateMax: (maxValue, transactionOptions) => this.poolAccountantContract.setFundingRateMax(maxValue, { ...transactionOptions }),
|
|
203
|
+
setLiquidationThresholdF: (threshold, transactionOptions) => this.poolAccountantContract.setLiquidationThresholdF(threshold, { ...transactionOptions }),
|
|
204
|
+
setLiquidationFeeF: (fee, transactionOptions) => this.poolAccountantContract.setLiquidationFeeF(fee, { ...transactionOptions }),
|
|
205
|
+
setIrm: (irm, transactionOptions) => this.poolAccountantContract.setIrm(irm, { ...transactionOptions }),
|
|
206
|
+
setIrmHard: (irm, transactionOptions) => this.poolAccountantContract.setIrmHard(irm, { ...transactionOptions }),
|
|
207
|
+
setInterestShareFactor: (factor, transactionOptions) => this.poolAccountantContract.setInterestShareFactor(factor, { ...transactionOptions }),
|
|
208
|
+
setFundingShareFactor: (factor, transactionOptions) => this.poolAccountantContract.setFundingShareFactor(factor, { ...transactionOptions }),
|
|
209
|
+
setBorrowRateMax: (rate, transactionOptions) => this.poolAccountantContract.setBorrowRateMax(rate, { ...transactionOptions }),
|
|
210
|
+
setMaxTotalBorrows: (maxBorrows, transactionOptions) => this.poolAccountantContract.setMaxTotalBorrows(maxBorrows, { ...transactionOptions }),
|
|
211
|
+
setMaxVirtualUtilization: (maxUtilization, transactionOptions) => this.poolAccountantContract.setMaxVirtualUtilization(maxUtilization, { ...transactionOptions }),
|
|
212
212
|
};
|
|
213
213
|
}
|
|
214
214
|
createPoolInteractionGroup() {
|
|
215
215
|
return {
|
|
216
|
-
readAndZeroReserves: async () => {
|
|
217
|
-
const result = await this.poolAccountantContract.readAndZeroReserves.staticCall();
|
|
216
|
+
readAndZeroReserves: async (callOptions) => {
|
|
217
|
+
const result = await this.poolAccountantContract.readAndZeroReserves.staticCall({ ...callOptions });
|
|
218
218
|
return {
|
|
219
219
|
accumulatedInterestShare: result[0],
|
|
220
220
|
accFundingShare: result[1],
|
|
@@ -225,52 +225,52 @@ class PoolAccountantV1Service {
|
|
|
225
225
|
createStateVariablesGroup() {
|
|
226
226
|
return {
|
|
227
227
|
// Interest and borrowing state
|
|
228
|
-
borrowIndex: () => this.poolAccountantContract.borrowIndex(),
|
|
229
|
-
borrowRateMax: () => this.poolAccountantContract.borrowRateMax(),
|
|
230
|
-
totalBorrows: () => this.poolAccountantContract.totalBorrows(),
|
|
231
|
-
totalInterest: () => this.poolAccountantContract.totalInterest(),
|
|
232
|
-
interestShare: () => this.poolAccountantContract.interestShare(),
|
|
233
|
-
interestShareFactor: () => this.poolAccountantContract.interestShareFactor(),
|
|
228
|
+
borrowIndex: (callOptions) => this.poolAccountantContract.borrowIndex({ ...callOptions }),
|
|
229
|
+
borrowRateMax: (callOptions) => this.poolAccountantContract.borrowRateMax({ ...callOptions }),
|
|
230
|
+
totalBorrows: (callOptions) => this.poolAccountantContract.totalBorrows({ ...callOptions }),
|
|
231
|
+
totalInterest: (callOptions) => this.poolAccountantContract.totalInterest({ ...callOptions }),
|
|
232
|
+
interestShare: (callOptions) => this.poolAccountantContract.interestShare({ ...callOptions }),
|
|
233
|
+
interestShareFactor: (callOptions) => this.poolAccountantContract.interestShareFactor({ ...callOptions }),
|
|
234
234
|
// Funding state
|
|
235
|
-
fundingRateMax: () => this.poolAccountantContract.fundingRateMax(),
|
|
236
|
-
fundingShare: () => this.poolAccountantContract.fundingShare(),
|
|
237
|
-
fundingShareFactor: () => this.poolAccountantContract.fundingShareFactor(),
|
|
238
|
-
unrealizedFunding: () => this.poolAccountantContract.unrealizedFunding(),
|
|
239
|
-
realizedFundingSurplusDeficit: () => this.poolAccountantContract.realizedFundingSurplusDeficit(),
|
|
235
|
+
fundingRateMax: (callOptions) => this.poolAccountantContract.fundingRateMax({ ...callOptions }),
|
|
236
|
+
fundingShare: (callOptions) => this.poolAccountantContract.fundingShare({ ...callOptions }),
|
|
237
|
+
fundingShareFactor: (callOptions) => this.poolAccountantContract.fundingShareFactor({ ...callOptions }),
|
|
238
|
+
unrealizedFunding: (callOptions) => this.poolAccountantContract.unrealizedFunding({ ...callOptions }),
|
|
239
|
+
realizedFundingSurplusDeficit: (callOptions) => this.poolAccountantContract.realizedFundingSurplusDeficit({ ...callOptions }),
|
|
240
240
|
// Configuration
|
|
241
|
-
maxGainF: () => this.poolAccountantContract.maxGainF(),
|
|
242
|
-
liquidationFeeF: () => this.poolAccountantContract.liquidationFeeF(),
|
|
243
|
-
liquidationThresholdF: () => this.poolAccountantContract.liquidationThresholdF(),
|
|
244
|
-
maxTotalBorrows: () => this.poolAccountantContract.maxTotalBorrows(),
|
|
245
|
-
maxVirtualUtilization: () => this.poolAccountantContract.maxVirtualUtilization(),
|
|
246
|
-
minOpenFee: () => this.poolAccountantContract.minOpenFee(),
|
|
247
|
-
lexPartF: () => this.poolAccountantContract.lexPartF(),
|
|
241
|
+
maxGainF: (callOptions) => this.poolAccountantContract.maxGainF({ ...callOptions }),
|
|
242
|
+
liquidationFeeF: (callOptions) => this.poolAccountantContract.liquidationFeeF({ ...callOptions }),
|
|
243
|
+
liquidationThresholdF: (callOptions) => this.poolAccountantContract.liquidationThresholdF({ ...callOptions }),
|
|
244
|
+
maxTotalBorrows: (callOptions) => this.poolAccountantContract.maxTotalBorrows({ ...callOptions }),
|
|
245
|
+
maxVirtualUtilization: (callOptions) => this.poolAccountantContract.maxVirtualUtilization({ ...callOptions }),
|
|
246
|
+
minOpenFee: (callOptions) => this.poolAccountantContract.minOpenFee({ ...callOptions }),
|
|
247
|
+
lexPartF: (callOptions) => this.poolAccountantContract.lexPartF({ ...callOptions }),
|
|
248
248
|
// Contract references
|
|
249
|
-
lexPool: () => this.poolAccountantContract.lexPool(),
|
|
250
|
-
tradingFloor: () => this.poolAccountantContract.tradingFloor(),
|
|
251
|
-
tradeIncentivizer: () => this.poolAccountantContract.tradeIncentivizer(),
|
|
252
|
-
frm: () => this.poolAccountantContract.frm(),
|
|
253
|
-
irm: () => this.poolAccountantContract.irm(),
|
|
254
|
-
underlying: () => this.poolAccountantContract.underlying(),
|
|
249
|
+
lexPool: (callOptions) => this.poolAccountantContract.lexPool({ ...callOptions }),
|
|
250
|
+
tradingFloor: (callOptions) => this.poolAccountantContract.tradingFloor({ ...callOptions }),
|
|
251
|
+
tradeIncentivizer: (callOptions) => this.poolAccountantContract.tradeIncentivizer({ ...callOptions }),
|
|
252
|
+
frm: (callOptions) => this.poolAccountantContract.frm({ ...callOptions }),
|
|
253
|
+
irm: (callOptions) => this.poolAccountantContract.irm({ ...callOptions }),
|
|
254
|
+
underlying: (callOptions) => this.poolAccountantContract.underlying({ ...callOptions }),
|
|
255
255
|
// Timestamps
|
|
256
|
-
accrualBlockTimestamp: () => this.poolAccountantContract.accrualBlockTimestamp(),
|
|
256
|
+
accrualBlockTimestamp: (callOptions) => this.poolAccountantContract.accrualBlockTimestamp({ ...callOptions }),
|
|
257
257
|
};
|
|
258
258
|
}
|
|
259
259
|
createContractInfoGroup() {
|
|
260
260
|
return {
|
|
261
|
-
admin: () => this.poolAccountantContract.admin(),
|
|
262
|
-
pendingAdmin: () => this.poolAccountantContract.pendingAdmin(),
|
|
263
|
-
implementation: () => this.poolAccountantContract.implementation(),
|
|
264
|
-
pendingImplementation: () => this.poolAccountantContract.pendingImplementation(),
|
|
265
|
-
registry: () => this.poolAccountantContract.registry(),
|
|
261
|
+
admin: (callOptions) => this.poolAccountantContract.admin({ ...callOptions }),
|
|
262
|
+
pendingAdmin: (callOptions) => this.poolAccountantContract.pendingAdmin({ ...callOptions }),
|
|
263
|
+
implementation: (callOptions) => this.poolAccountantContract.implementation({ ...callOptions }),
|
|
264
|
+
pendingImplementation: (callOptions) => this.poolAccountantContract.pendingImplementation({ ...callOptions }),
|
|
265
|
+
registry: (callOptions) => this.poolAccountantContract.registry({ ...callOptions }),
|
|
266
266
|
};
|
|
267
267
|
}
|
|
268
268
|
createConstantsGroup() {
|
|
269
269
|
return {
|
|
270
|
-
ACCURACY_IMPROVEMENT_SCALE: () => this.poolAccountantContract.ACCURACY_IMPROVEMENT_SCALE(),
|
|
271
|
-
FRACTION_SCALE: () => this.poolAccountantContract.FRACTION_SCALE(),
|
|
272
|
-
LEVERAGE_SCALE: () => this.poolAccountantContract.LEVERAGE_SCALE(),
|
|
273
|
-
PRECISION: () => this.poolAccountantContract.PRECISION(),
|
|
270
|
+
ACCURACY_IMPROVEMENT_SCALE: (callOptions) => this.poolAccountantContract.ACCURACY_IMPROVEMENT_SCALE({ ...callOptions }),
|
|
271
|
+
FRACTION_SCALE: (callOptions) => this.poolAccountantContract.FRACTION_SCALE({ ...callOptions }),
|
|
272
|
+
LEVERAGE_SCALE: (callOptions) => this.poolAccountantContract.LEVERAGE_SCALE({ ...callOptions }),
|
|
273
|
+
PRECISION: (callOptions) => this.poolAccountantContract.PRECISION({ ...callOptions }),
|
|
274
274
|
};
|
|
275
275
|
}
|
|
276
276
|
}
|
|
@@ -56,14 +56,14 @@ class RateModelLensService {
|
|
|
56
56
|
constructor(signerOrProvider, contractAddress) {
|
|
57
57
|
this.contract = RateModelLens__factory_1.RateModelLens__factory.connect(contractAddress, signerOrProvider);
|
|
58
58
|
}
|
|
59
|
-
async getAccountantForLexPool(lexPool) {
|
|
60
|
-
return await this.contract.getAccountantForLexPool(lexPool);
|
|
59
|
+
async getAccountantForLexPool(lexPool, callOptions) {
|
|
60
|
+
return await this.contract.getAccountantForLexPool(lexPool, { ...callOptions });
|
|
61
61
|
}
|
|
62
|
-
async getLexPoolForAccountant(accountant) {
|
|
63
|
-
return await this.contract.getLexPoolForAccountant(accountant);
|
|
62
|
+
async getLexPoolForAccountant(accountant, callOptions) {
|
|
63
|
+
return await this.contract.getLexPoolForAccountant(accountant, { ...callOptions });
|
|
64
64
|
}
|
|
65
|
-
async getCompleteRateModelsInfo(lexPools) {
|
|
66
|
-
const result = await this.contract.getCompleteRateModelsInfo(lexPools);
|
|
65
|
+
async getCompleteRateModelsInfo(lexPools, callOptions) {
|
|
66
|
+
const result = await this.contract.getCompleteRateModelsInfo(lexPools, { ...callOptions });
|
|
67
67
|
// Convert funding rate model groups (raw)
|
|
68
68
|
const fundingRateModelGroupsRaw = (0, ethersTypes_1.ethersStructResponseToArray)(result.fundingRateModelGroups, IRateModelLensService_1.EMPTY_FUNDING_RATE_MODEL_GROUP_RAW, {
|
|
69
69
|
accountantConfigs: IRateModelLensService_1.EMPTY_FRM_ACCOUNTANT_CONFIG_RAW,
|
|
@@ -100,8 +100,8 @@ class RateModelLensService {
|
|
|
100
100
|
interestRateModelGroups,
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
|
-
async getFundingRateModelGroups(lexPools) {
|
|
104
|
-
const result = await this.contract.getFundingRateModelGroups(lexPools);
|
|
103
|
+
async getFundingRateModelGroups(lexPools, callOptions) {
|
|
104
|
+
const result = await this.contract.getFundingRateModelGroups(lexPools, { ...callOptions });
|
|
105
105
|
// Convert array of groups with nested arrays (raw)
|
|
106
106
|
const rawGroups = (0, ethersTypes_1.ethersStructResponseToArray)(result, IRateModelLensService_1.EMPTY_FUNDING_RATE_MODEL_GROUP_RAW, {
|
|
107
107
|
accountantConfigs: IRateModelLensService_1.EMPTY_FRM_ACCOUNTANT_CONFIG_RAW,
|
|
@@ -121,8 +121,8 @@ class RateModelLensService {
|
|
|
121
121
|
pairSpecificParams: group.pairSpecificParams.map(convertPairSpecificParams),
|
|
122
122
|
}));
|
|
123
123
|
}
|
|
124
|
-
async getInterestRateModelGroups(lexPools) {
|
|
125
|
-
const result = await this.contract.getInterestRateModelGroups(lexPools);
|
|
124
|
+
async getInterestRateModelGroups(lexPools, callOptions) {
|
|
125
|
+
const result = await this.contract.getInterestRateModelGroups(lexPools, { ...callOptions });
|
|
126
126
|
// Convert to raw first
|
|
127
127
|
const rawGroups = (0, ethersTypes_1.ethersStructResponseToArray)(result, IRateModelLensService_1.EMPTY_INTEREST_RATE_MODEL_GROUP_RAW, {}, {
|
|
128
128
|
baseRateParams: IRateModelLensService_1.EMPTY_IRM_BASE_RATE_PARAMS_RAW,
|