lynx-client 0.0.32 → 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 +66 -65
- package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +13 -13
- package/dist/cjs/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +86 -86
- package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/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/esm/index.d.ts +1 -1
- 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 +25 -25
- package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +66 -65
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +7 -6
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts +7 -6
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +13 -13
- package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts +33 -33
- package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +86 -86
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts +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 +20 -0
- package/dist/esm/lib/contractsIntegration/common/index.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- 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 +25 -25
- package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +7 -6
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts +7 -6
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts +33 -33
- package/dist/types/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts +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 +20 -0
- package/dist/types/lib/contractsIntegration/common/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IOrderBookService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/OrderBookService/IOrderBookService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS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E,kCAAkC,CAAC;CAC/C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrderBookService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/OrderBookService/OrderBookService.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,QAAQ,EAKT,MAAM,QAAQ,CAAC;AAEhB,OAAO,EAAE,WAAW,EAAsB,MAAM,sDAAsD,CAAC;AAEvG,OAAO,EACL,iBAAiB,EACjB,wCAAwC,EACxC,2CAA2C,EAC3C,uCAAuC,EACvC,kCAAkC,EAEnC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,uBAAuB,
|
|
1
|
+
{"version":3,"file":"OrderBookService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/OrderBookService/OrderBookService.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,QAAQ,EAKT,MAAM,QAAQ,CAAC;AAEhB,OAAO,EAAE,WAAW,EAAsB,MAAM,sDAAsD,CAAC;AAEvG,OAAO,EACL,iBAAiB,EACjB,wCAAwC,EACxC,2CAA2C,EAC3C,uCAAuC,EACvC,kCAAkC,EAEnC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,uBAAuB,EAAmC,MAAM,WAAW,CAAC;AAwIrG,qBAAa,gBAAiB,YAAW,iBAAiB;IAWtD,OAAO,CAAC,gBAAgB;IAV1B,OAAO,CAAC,iBAAiB,CAAc;IACvC,SAAgB,eAAe,EAAE,wCAAwC,CAAC;IAC1E,SAAgB,kBAAkB,EAAE,2CAA2C,CAAC;IAChF,SAAgB,aAAa,EAAE,cAAc,CAAC;IAC9C,SAAgB,sBAAsB,EAAE,uBAAuB,CAAC;IAChE,SAAgB,cAAc,EAAE,uCAAuC,CAAC;IACxE,SAAgB,SAAS,EAAE,kCAAkC,CAAC;gBAG5D,OAAO,EAAE,MAAM,EACP,gBAAgB,EAAE,MAAM,GAAG,QAAQ;IAe7C,WAAW,IAAI,WAAW;CAG3B"}
|
|
@@ -6,87 +6,87 @@ class OrderManagement {
|
|
|
6
6
|
constructor(orderBookContract) {
|
|
7
7
|
this.orderBookContract = orderBookContract;
|
|
8
8
|
}
|
|
9
|
-
async getAllPendingUpdateOrderIds() {
|
|
10
|
-
return this.orderBookContract.getAllPendingUpdateOrderIds();
|
|
9
|
+
async getAllPendingUpdateOrderIds(callOptions) {
|
|
10
|
+
return this.orderBookContract.getAllPendingUpdateOrderIds({ ...callOptions });
|
|
11
11
|
}
|
|
12
|
-
async allPendingUpdateOrderIds(index) {
|
|
13
|
-
return this.orderBookContract.allPendingUpdateOrderIds(index);
|
|
12
|
+
async allPendingUpdateOrderIds(index, callOptions) {
|
|
13
|
+
return this.orderBookContract.allPendingUpdateOrderIds(index, { ...callOptions });
|
|
14
14
|
}
|
|
15
|
-
async pendingUpdateTradeFieldOrdersById(positionId) {
|
|
16
|
-
return this.orderBookContract.pendingUpdateTradeFieldOrdersById(positionId);
|
|
15
|
+
async pendingUpdateTradeFieldOrdersById(positionId, callOptions) {
|
|
16
|
+
return this.orderBookContract.pendingUpdateTradeFieldOrdersById(positionId, { ...callOptions });
|
|
17
17
|
}
|
|
18
|
-
async readAndDeleteUpdatePositionOrder(positionId) {
|
|
19
|
-
return this.orderBookContract.readAndDeleteUpdatePositionOrder(positionId);
|
|
18
|
+
async readAndDeleteUpdatePositionOrder(positionId, transactionOptions) {
|
|
19
|
+
return this.orderBookContract.readAndDeleteUpdatePositionOrder(positionId, { ...transactionOptions });
|
|
20
20
|
}
|
|
21
|
-
async storeUpdatePositionDoubleFieldOrder(positionId, orderType, fieldValueA, fieldValueB) {
|
|
22
|
-
return this.orderBookContract.storeUpdatePositionDoubleFieldOrder(positionId, orderType, fieldValueA, fieldValueB);
|
|
21
|
+
async storeUpdatePositionDoubleFieldOrder(positionId, orderType, fieldValueA, fieldValueB, transactionOptions) {
|
|
22
|
+
return this.orderBookContract.storeUpdatePositionDoubleFieldOrder(positionId, orderType, fieldValueA, fieldValueB, { ...transactionOptions });
|
|
23
23
|
}
|
|
24
|
-
async storeUpdatePositionSingleFieldOrder(positionId, orderType, fieldValue) {
|
|
25
|
-
return this.orderBookContract.storeUpdatePositionSingleFieldOrder(positionId, orderType, fieldValue);
|
|
24
|
+
async storeUpdatePositionSingleFieldOrder(positionId, orderType, fieldValue, transactionOptions) {
|
|
25
|
+
return this.orderBookContract.storeUpdatePositionSingleFieldOrder(positionId, orderType, fieldValue, { ...transactionOptions });
|
|
26
26
|
}
|
|
27
|
-
async updateOrderIdPositionInList(positionId) {
|
|
28
|
-
return this.orderBookContract.updateOrderIdPositionInList(positionId);
|
|
27
|
+
async updateOrderIdPositionInList(positionId, callOptions) {
|
|
28
|
+
return this.orderBookContract.updateOrderIdPositionInList(positionId, { ...callOptions });
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
class ContractReferences {
|
|
32
32
|
constructor(orderBookContract) {
|
|
33
33
|
this.orderBookContract = orderBookContract;
|
|
34
34
|
}
|
|
35
|
-
async registry() {
|
|
36
|
-
return this.orderBookContract.registry();
|
|
35
|
+
async registry(callOptions) {
|
|
36
|
+
return this.orderBookContract.registry({ ...callOptions });
|
|
37
37
|
}
|
|
38
|
-
async tradingFloor() {
|
|
39
|
-
return this.orderBookContract.tradingFloor();
|
|
38
|
+
async tradingFloor(callOptions) {
|
|
39
|
+
return this.orderBookContract.tradingFloor({ ...callOptions });
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
class PendableAdmin {
|
|
43
43
|
constructor(orderBookContract) {
|
|
44
44
|
this.orderBookContract = orderBookContract;
|
|
45
45
|
}
|
|
46
|
-
async admin() {
|
|
47
|
-
return this.orderBookContract.admin();
|
|
46
|
+
async admin(callOptions) {
|
|
47
|
+
return this.orderBookContract.admin({ ...callOptions });
|
|
48
48
|
}
|
|
49
|
-
async pendingAdmin() {
|
|
50
|
-
return this.orderBookContract.pendingAdmin();
|
|
49
|
+
async pendingAdmin(callOptions) {
|
|
50
|
+
return this.orderBookContract.pendingAdmin({ ...callOptions });
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
class PendableImplementation {
|
|
54
54
|
constructor(orderBookContract) {
|
|
55
55
|
this.orderBookContract = orderBookContract;
|
|
56
56
|
}
|
|
57
|
-
async implementation() {
|
|
58
|
-
return this.orderBookContract.implementation();
|
|
57
|
+
async implementation(callOptions) {
|
|
58
|
+
return this.orderBookContract.implementation({ ...callOptions });
|
|
59
59
|
}
|
|
60
|
-
async pendingImplementation() {
|
|
61
|
-
return this.orderBookContract.pendingImplementation();
|
|
60
|
+
async pendingImplementation(callOptions) {
|
|
61
|
+
return this.orderBookContract.pendingImplementation({ ...callOptions });
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
class Administration {
|
|
65
65
|
constructor(orderBookContract) {
|
|
66
66
|
this.orderBookContract = orderBookContract;
|
|
67
67
|
}
|
|
68
|
-
async setTradingFloor(tradingFloor) {
|
|
69
|
-
return this.orderBookContract.setTradingFloor(tradingFloor);
|
|
68
|
+
async setTradingFloor(tradingFloor, transactionOptions) {
|
|
69
|
+
return this.orderBookContract.setTradingFloor(tradingFloor, { ...transactionOptions });
|
|
70
70
|
}
|
|
71
|
-
async _become(orderBookProxy) {
|
|
72
|
-
return this.orderBookContract._become(orderBookProxy);
|
|
71
|
+
async _become(orderBookProxy, transactionOptions) {
|
|
72
|
+
return this.orderBookContract._become(orderBookProxy, { ...transactionOptions });
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
class Constants {
|
|
76
76
|
constructor(orderBookContract) {
|
|
77
77
|
this.orderBookContract = orderBookContract;
|
|
78
78
|
}
|
|
79
|
-
async ACCURACY_IMPROVEMENT_SCALE() {
|
|
80
|
-
return this.orderBookContract.ACCURACY_IMPROVEMENT_SCALE();
|
|
79
|
+
async ACCURACY_IMPROVEMENT_SCALE(callOptions) {
|
|
80
|
+
return this.orderBookContract.ACCURACY_IMPROVEMENT_SCALE({ ...callOptions });
|
|
81
81
|
}
|
|
82
|
-
async FRACTION_SCALE() {
|
|
83
|
-
return this.orderBookContract.FRACTION_SCALE();
|
|
82
|
+
async FRACTION_SCALE(callOptions) {
|
|
83
|
+
return this.orderBookContract.FRACTION_SCALE({ ...callOptions });
|
|
84
84
|
}
|
|
85
|
-
async LEVERAGE_SCALE() {
|
|
86
|
-
return this.orderBookContract.LEVERAGE_SCALE();
|
|
85
|
+
async LEVERAGE_SCALE(callOptions) {
|
|
86
|
+
return this.orderBookContract.LEVERAGE_SCALE({ ...callOptions });
|
|
87
87
|
}
|
|
88
|
-
async PRECISION() {
|
|
89
|
-
return this.orderBookContract.PRECISION();
|
|
88
|
+
async PRECISION(callOptions) {
|
|
89
|
+
return this.orderBookContract.PRECISION({ ...callOptions });
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
class OrderBookService {
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { ContractTransactionResponse } from "ethers";
|
|
2
2
|
import { PairPriceStruct } from "../../typechain/contracts/Lynx/Lex/PNLR/PNLR";
|
|
3
|
-
import { ILynxVersionedContract, IPendableAdmin } from "../common";
|
|
3
|
+
import { ILynxVersionedContract, IPendableAdmin, TransactionOptions, CallOptions } from "../common";
|
|
4
4
|
export type TPairPriceStruct = PairPriceStruct;
|
|
5
5
|
export interface IPNLRFunctionsGroup_EpochManagement {
|
|
6
|
-
advanceEpoch(pool: string, pairsPrices: TPairPriceStruct[], value?: bigint): Promise<ContractTransactionResponse>;
|
|
7
|
-
advanceEpochAllowMissingZeroOI(pool: string, pairsPrices: TPairPriceStruct[], value?: bigint): Promise<ContractTransactionResponse>;
|
|
6
|
+
advanceEpoch(pool: string, pairsPrices: TPairPriceStruct[], value?: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
7
|
+
advanceEpochAllowMissingZeroOI(pool: string, pairsPrices: TPairPriceStruct[], value?: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
8
8
|
}
|
|
9
9
|
export interface IPNLRFunctionsGroup_PnLCalculation {
|
|
10
|
-
calculateUnrealizedPricePnl(poolAccountant: string, pairsPrices: TPairPriceStruct[], value?: bigint): Promise<bigint>;
|
|
11
|
-
calculateUnrealizedPricePnlAllowMissingZeroOI(poolAccountant: string, pairsPrices: TPairPriceStruct[], value?: bigint): Promise<bigint>;
|
|
12
|
-
pairsTradersPricePnl(poolAccountant: string, pairsPrices: TPairPriceStruct[], value?: bigint): Promise<bigint>;
|
|
13
|
-
pairsTradersPricePnlWithMissingPairs(poolAccountant: string, pairsPrices: TPairPriceStruct[], allowMissingZeroOI: boolean, value?: bigint): Promise<bigint>;
|
|
10
|
+
calculateUnrealizedPricePnl(poolAccountant: string, pairsPrices: TPairPriceStruct[], value?: bigint, callOptions?: CallOptions): Promise<bigint>;
|
|
11
|
+
calculateUnrealizedPricePnlAllowMissingZeroOI(poolAccountant: string, pairsPrices: TPairPriceStruct[], value?: bigint, callOptions?: CallOptions): Promise<bigint>;
|
|
12
|
+
pairsTradersPricePnl(poolAccountant: string, pairsPrices: TPairPriceStruct[], value?: bigint, callOptions?: CallOptions): Promise<bigint>;
|
|
13
|
+
pairsTradersPricePnlWithMissingPairs(poolAccountant: string, pairsPrices: TPairPriceStruct[], allowMissingZeroOI: boolean, value?: bigint, callOptions?: CallOptions): Promise<bigint>;
|
|
14
14
|
}
|
|
15
15
|
export interface IPNLRFunctionsGroup_PermissionManagement {
|
|
16
|
-
allowEpochAdvancingAccount(account: string): Promise<ContractTransactionResponse>;
|
|
17
|
-
disallowEpochAdvancingAccount(account: string): Promise<ContractTransactionResponse>;
|
|
18
|
-
isAllowedToTrigger(account: string): Promise<boolean>;
|
|
19
|
-
getAllTriggerPermissionedAccounts(): Promise<string[]>;
|
|
16
|
+
allowEpochAdvancingAccount(account: string, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
17
|
+
disallowEpochAdvancingAccount(account: string, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
18
|
+
isAllowedToTrigger(account: string, callOptions?: CallOptions): Promise<boolean>;
|
|
19
|
+
getAllTriggerPermissionedAccounts(callOptions?: CallOptions): Promise<string[]>;
|
|
20
20
|
}
|
|
21
21
|
export interface IPNLRFunctionsGroup_Configuration {
|
|
22
|
-
maxPriceDelay(): Promise<bigint>;
|
|
23
|
-
setMaxPriceDelay(delay: bigint): Promise<ContractTransactionResponse>;
|
|
24
|
-
priceValidator(): Promise<string>;
|
|
25
|
-
priceValidatorType(): Promise<bigint>;
|
|
22
|
+
maxPriceDelay(callOptions?: CallOptions): Promise<bigint>;
|
|
23
|
+
setMaxPriceDelay(delay: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
24
|
+
priceValidator(callOptions?: CallOptions): Promise<string>;
|
|
25
|
+
priceValidatorType(callOptions?: CallOptions): Promise<bigint>;
|
|
26
26
|
}
|
|
27
27
|
export interface IPNLRFunctionsGroup_AdminManagement {
|
|
28
|
-
_setPendingAdmin(newPendingAdmin: string): Promise<ContractTransactionResponse>;
|
|
29
|
-
_acceptAdmin(): Promise<ContractTransactionResponse>;
|
|
28
|
+
_setPendingAdmin(newPendingAdmin: string, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
29
|
+
_acceptAdmin(transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
30
30
|
}
|
|
31
31
|
export type IPNLRFunctionsGroup_LynxVersionedContract = ILynxVersionedContract;
|
|
32
32
|
export interface IPNLRService {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPNLRService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/PNLRService/IPNLRService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,QAAQ,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAA;AAC9E,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,W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,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAA;CAC5F;AAID,MAAM,MAAM,yCAAyC,GAAG,sBAAsB,CAAA;AAE9E,MAAM,WAAW,YAAY;IAC3B,eAAe,EAAE,mCAAmC,CAAA;IACpD,cAAc,EAAE,kCAAkC,CAAA;IAClD,oBAAoB,EAAE,wCAAwC,CAAA;IAC9D,aAAa,EAAE,iCAAiC,CAAA;IAChD,eAAe,EAAE,mCAAmC,CAAA;IACpD,aAAa,EAAE,cAAc,CAAA;IAC7B,qBAAqB,EAAE,sBAAsB,CAAA;CAC9C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PNLRService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/PNLRService/PNLRService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAA+B,MAAM,QAAQ,CAAC;AACvE,OAAO,EAAE,IAAI,EAAE,MAAM,8CAA8C,CAAC;AAEpE,OAAO,EACL,YAAY,EACZ,mCAAmC,EACnC,kCAAkC,EAClC,wCAAwC,EACxC,iCAAiC,EACjC,mCAAmC,EAEpC,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,sBAAsB,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"PNLRService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/PNLRService/PNLRService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAA+B,MAAM,QAAQ,CAAC;AACvE,OAAO,EAAE,IAAI,EAAE,MAAM,8CAA8C,CAAC;AAEpE,OAAO,EACL,YAAY,EACZ,mCAAmC,EACnC,kCAAkC,EAClC,wCAAwC,EACxC,iCAAiC,EACjC,mCAAmC,EAEpC,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAmC,MAAM,WAAW,CAAC;AAmMpG,qBAAa,WAAY,YAAW,YAAY;IAC9C,OAAO,CAAC,YAAY,CAAO;IAEpB,eAAe,EAAE,mCAAmC,CAAC;IACrD,cAAc,EAAE,kCAAkC,CAAC;IACnD,oBAAoB,EAAE,wCAAwC,CAAC;IAC/D,aAAa,EAAE,iCAAiC,CAAC;IACjD,eAAe,EAAE,mCAAmC,CAAC;IACrD,aAAa,EAAE,cAAc,CAAC;IAC9B,qBAAqB,EAAE,sBAAsB,CAAC;gBAEzC,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EAAE,OAAO,EAAE,MAAM;IAsBhE,WAAW,IAAI,IAAI;CAGpB"}
|
|
@@ -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/esm/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BytesLike, ContractTransactionResponse } from "ethers";
|
|
2
|
-
import { IProtocolConstants } from "../common";
|
|
2
|
+
import { IProtocolConstants, TransactionOptions, CallOptions } from "../common";
|
|
3
3
|
export type TAccrueFundingValuesOutput = {
|
|
4
4
|
freshened: boolean;
|
|
5
5
|
valueLong: bigint;
|
|
@@ -23,133 +23,133 @@ export type TDynamicFeesOutput = {
|
|
|
23
23
|
funding: bigint;
|
|
24
24
|
};
|
|
25
25
|
export interface IPoolAccountantV1FunctionsGroup_TradeUtilities {
|
|
26
|
-
adjustClosePrice(closePrice: bigint, tp: bigint, long: boolean): Promise<bigint>;
|
|
27
|
-
generatePositionHashId(settlementAsset: string, trader: string, pairId: bigint, index: bigint): Promise<string>;
|
|
26
|
+
adjustClosePrice(closePrice: bigint, tp: bigint, long: boolean, callOptions?: CallOptions): Promise<bigint>;
|
|
27
|
+
generatePositionHashId(settlementAsset: string, trader: string, pairId: bigint, index: bigint, callOptions?: CallOptions): Promise<string>;
|
|
28
28
|
}
|
|
29
29
|
export interface IPoolAccountantV1FunctionsGroup_Verification {
|
|
30
|
-
verifyLeveragedPosition(pairIndex: bigint, collateral: bigint, leverage: bigint): Promise<bigint>;
|
|
31
|
-
verifyOpenFee(pairIndex: bigint, leveragedPosition: bigint): Promise<{
|
|
30
|
+
verifyLeveragedPosition(pairIndex: bigint, collateral: bigint, leverage: bigint, callOptions?: CallOptions): Promise<bigint>;
|
|
31
|
+
verifyOpenFee(pairIndex: bigint, leveragedPosition: bigint, callOptions?: CallOptions): Promise<{
|
|
32
32
|
openFee: bigint;
|
|
33
33
|
lexPartFee: bigint;
|
|
34
34
|
}>;
|
|
35
|
-
verifyPerformanceFee(pairIndex: bigint, collateral: bigint): Promise<void>;
|
|
36
|
-
verifyMaxPercentProfit(openPrice: bigint, targetPrice: bigint, leverage: bigint, long: boolean): Promise<void>;
|
|
37
|
-
verifyUtilizationForTraders(totalBorrows: bigint, totalReserves: bigint, unrealizedFunding: bigint): Promise<void>;
|
|
35
|
+
verifyPerformanceFee(pairIndex: bigint, collateral: bigint, callOptions?: CallOptions): Promise<void>;
|
|
36
|
+
verifyMaxPercentProfit(openPrice: bigint, targetPrice: bigint, leverage: bigint, long: boolean, callOptions?: CallOptions): Promise<void>;
|
|
37
|
+
verifyUtilizationForTraders(totalBorrows: bigint, totalReserves: bigint, unrealizedFunding: bigint, callOptions?: CallOptions): Promise<void>;
|
|
38
38
|
}
|
|
39
39
|
export interface IPoolAccountantV1FunctionsGroup_FeeCalculations {
|
|
40
|
-
calcClosingFee(pairId: bigint, collateral: bigint, leverage: bigint): Promise<bigint>;
|
|
41
|
-
calcPerformanceFee(pairId: bigint, collateral: bigint, profitPrecision: bigint): Promise<bigint>;
|
|
42
|
-
calcBorrowAmount(collateral: bigint, leverage: bigint, long: boolean, openPrice: bigint, tp: bigint): Promise<bigint>;
|
|
43
|
-
calcTradeDynamicFees(positionId: BytesLike, pairId: bigint, long: boolean, collateral: bigint, leverage: bigint, openPrice: bigint, tp: bigint): Promise<TDynamicFeesOutput>;
|
|
40
|
+
calcClosingFee(pairId: bigint, collateral: bigint, leverage: bigint, callOptions?: CallOptions): Promise<bigint>;
|
|
41
|
+
calcPerformanceFee(pairId: bigint, collateral: bigint, profitPrecision: bigint, callOptions?: CallOptions): Promise<bigint>;
|
|
42
|
+
calcBorrowAmount(collateral: bigint, leverage: bigint, long: boolean, openPrice: bigint, tp: bigint, callOptions?: CallOptions): Promise<bigint>;
|
|
43
|
+
calcTradeDynamicFees(positionId: BytesLike, pairId: bigint, long: boolean, collateral: bigint, leverage: bigint, openPrice: bigint, tp: bigint, callOptions?: CallOptions): Promise<TDynamicFeesOutput>;
|
|
44
44
|
}
|
|
45
45
|
export interface IPoolAccountantV1FunctionsGroup_Funding {
|
|
46
|
-
accrueFunding(pairId: bigint): Promise<any>;
|
|
47
|
-
accrueFunding_static(pairId: bigint): Promise<{
|
|
46
|
+
accrueFunding(pairId: bigint, transactionOptions?: TransactionOptions): Promise<any>;
|
|
47
|
+
accrueFunding_static(pairId: bigint, callOptions?: CallOptions): Promise<{
|
|
48
48
|
valueLong: bigint;
|
|
49
49
|
valueShort: bigint;
|
|
50
50
|
protocolFundingShare: bigint;
|
|
51
51
|
}>;
|
|
52
|
-
calcAccrueFundingValues(pairId: bigint): Promise<TAccrueFundingValuesOutput>;
|
|
53
|
-
fundingIndicesCalculation(oiLong: bigint, oiShort: bigint, fundingRate: bigint, timeDiff: bigint): Promise<TFundingIndicesCalculationOutput>;
|
|
54
|
-
getTradeFunding(positionId: BytesLike, pairId: bigint, long: boolean, collateral: bigint, leverage: bigint): Promise<any>;
|
|
55
|
-
getTradeFunding_static(positionId: BytesLike, pairId: bigint, long: boolean, collateral: bigint, leverage: bigint): Promise<bigint>;
|
|
56
|
-
getTradeFundingPure(accFundingPerOi: bigint, endAccFundingPerOi: bigint, collateral: bigint, leverage: bigint): Promise<bigint>;
|
|
57
|
-
getAccFundingLong(pairIndex: bigint): Promise<bigint>;
|
|
58
|
-
getAccFundingShort(pairIndex: bigint): Promise<bigint>;
|
|
59
|
-
getAccFundingUpdateBlock(pairIndex: bigint): Promise<bigint>;
|
|
60
|
-
getTradeInitialAccFundingPerOi(positionId: BytesLike): Promise<bigint>;
|
|
52
|
+
calcAccrueFundingValues(pairId: bigint, callOptions?: CallOptions): Promise<TAccrueFundingValuesOutput>;
|
|
53
|
+
fundingIndicesCalculation(oiLong: bigint, oiShort: bigint, fundingRate: bigint, timeDiff: bigint, callOptions?: CallOptions): Promise<TFundingIndicesCalculationOutput>;
|
|
54
|
+
getTradeFunding(positionId: BytesLike, pairId: bigint, long: boolean, collateral: bigint, leverage: bigint, transactionOptions?: TransactionOptions): Promise<any>;
|
|
55
|
+
getTradeFunding_static(positionId: BytesLike, pairId: bigint, long: boolean, collateral: bigint, leverage: bigint, callOptions?: CallOptions): Promise<bigint>;
|
|
56
|
+
getTradeFundingPure(accFundingPerOi: bigint, endAccFundingPerOi: bigint, collateral: bigint, leverage: bigint, callOptions?: CallOptions): Promise<bigint>;
|
|
57
|
+
getAccFundingLong(pairIndex: bigint, callOptions?: CallOptions): Promise<bigint>;
|
|
58
|
+
getAccFundingShort(pairIndex: bigint, callOptions?: CallOptions): Promise<bigint>;
|
|
59
|
+
getAccFundingUpdateBlock(pairIndex: bigint, callOptions?: CallOptions): Promise<bigint>;
|
|
60
|
+
getTradeInitialAccFundingPerOi(positionId: BytesLike, callOptions?: CallOptions): Promise<bigint>;
|
|
61
61
|
}
|
|
62
62
|
export interface IPoolAccountantV1FunctionsGroup_Interest {
|
|
63
|
-
getTradeInterest(positionId: BytesLike, borrowAmount: bigint): Promise<bigint>;
|
|
64
|
-
getTradeInterestPure(tradeBorrowIndex: bigint, currentBorrowIndex: bigint, borrowAmount: bigint, alreadyAccumulated: bigint): Promise<bigint>;
|
|
65
|
-
getTradeInitialAccBorrowIndex(positionId: BytesLike): Promise<bigint>;
|
|
66
|
-
accrueInterest(availableCash: bigint): Promise<{
|
|
63
|
+
getTradeInterest(positionId: BytesLike, borrowAmount: bigint, callOptions?: CallOptions): Promise<bigint>;
|
|
64
|
+
getTradeInterestPure(tradeBorrowIndex: bigint, currentBorrowIndex: bigint, borrowAmount: bigint, alreadyAccumulated: bigint, callOptions?: CallOptions): Promise<bigint>;
|
|
65
|
+
getTradeInitialAccBorrowIndex(positionId: BytesLike, callOptions?: CallOptions): Promise<bigint>;
|
|
66
|
+
accrueInterest(availableCash: bigint, callOptions?: CallOptions): Promise<{
|
|
67
67
|
totalInterestNew: bigint;
|
|
68
68
|
interestShareNew: bigint;
|
|
69
69
|
borrowIndexNew: bigint;
|
|
70
70
|
}>;
|
|
71
71
|
}
|
|
72
72
|
export interface IPoolAccountantV1FunctionsGroup_Liquidation {
|
|
73
|
-
getTradeLiquidationPrice(positionId: BytesLike, pairId: bigint, openPrice: bigint, tp: bigint, long: boolean, collateral: bigint, leverage: bigint): Promise<bigint>;
|
|
74
|
-
getTradeLiquidationPriceView(openPrice: bigint, long: boolean, collateral: bigint, leverage: bigint, interest: bigint, funding: bigint, closingFee: bigint): Promise<bigint>;
|
|
73
|
+
getTradeLiquidationPrice(positionId: BytesLike, pairId: bigint, openPrice: bigint, tp: bigint, long: boolean, collateral: bigint, leverage: bigint, callOptions?: CallOptions): Promise<bigint>;
|
|
74
|
+
getTradeLiquidationPriceView(openPrice: bigint, long: boolean, collateral: bigint, leverage: bigint, interest: bigint, funding: bigint, closingFee: bigint, callOptions?: CallOptions): Promise<bigint>;
|
|
75
75
|
}
|
|
76
76
|
export interface IPoolAccountantV1FunctionsGroup_TradeValues {
|
|
77
|
-
getTradeValueView(collateral: bigint, profitPrecision: bigint, interest: bigint, funding: bigint, closingFee: bigint, liquidation: boolean): Promise<bigint>;
|
|
78
|
-
getTradeClosingValues(positionId: BytesLike, pairId: bigint, collateral: bigint, leverage: bigint, long: boolean, openPrice: bigint, tp: bigint, closePrice: bigint, isLiquidation: boolean): Promise<TTradeClosingValuesOutput>;
|
|
77
|
+
getTradeValueView(collateral: bigint, profitPrecision: bigint, interest: bigint, funding: bigint, closingFee: bigint, liquidation: boolean, callOptions?: CallOptions): Promise<bigint>;
|
|
78
|
+
getTradeClosingValues(positionId: BytesLike, pairId: bigint, collateral: bigint, leverage: bigint, long: boolean, openPrice: bigint, tp: bigint, closePrice: bigint, isLiquidation: boolean, callOptions?: CallOptions): Promise<TTradeClosingValuesOutput>;
|
|
79
79
|
}
|
|
80
80
|
export interface IPoolAccountantV1FunctionsGroup_PairManagement {
|
|
81
|
-
pairTotalOpenInterest(pairIndex: bigint): Promise<bigint>;
|
|
82
|
-
calcAbsoluteSkew(openInterestLong: bigint, openInterestShort: bigint, additionIsLong: boolean, additionOpenInterest: bigint): Promise<bigint>;
|
|
83
|
-
pricePnL(pairId: bigint, price: bigint): Promise<bigint>;
|
|
84
|
-
pairBorrows(pairIndex: bigint): Promise<bigint>;
|
|
85
|
-
pairMaxBorrow(pairIndex: bigint): Promise<bigint>;
|
|
86
|
-
pairMinOpenFee(pairIndex: bigint): Promise<bigint>;
|
|
87
|
-
pairOpenFeeF(pairIndex: bigint): Promise<bigint>;
|
|
88
|
-
pairCloseFeeF(pairIndex: bigint): Promise<bigint>;
|
|
89
|
-
pairPerformanceFeeF(pairIndex: bigint): Promise<bigint>;
|
|
90
|
-
pairTotalRatioOiToP(pairIndex: bigint): Promise<bigint>;
|
|
91
|
-
groupBorrows(groupIndex: bigint): Promise<bigint>;
|
|
92
|
-
groupMaxBorrow(groupIndex: bigint): Promise<bigint>;
|
|
81
|
+
pairTotalOpenInterest(pairIndex: bigint, callOptions?: CallOptions): Promise<bigint>;
|
|
82
|
+
calcAbsoluteSkew(openInterestLong: bigint, openInterestShort: bigint, additionIsLong: boolean, additionOpenInterest: bigint, callOptions?: CallOptions): Promise<bigint>;
|
|
83
|
+
pricePnL(pairId: bigint, price: bigint, callOptions?: CallOptions): Promise<bigint>;
|
|
84
|
+
pairBorrows(pairIndex: bigint, callOptions?: CallOptions): Promise<bigint>;
|
|
85
|
+
pairMaxBorrow(pairIndex: bigint, callOptions?: CallOptions): Promise<bigint>;
|
|
86
|
+
pairMinOpenFee(pairIndex: bigint, callOptions?: CallOptions): Promise<bigint>;
|
|
87
|
+
pairOpenFeeF(pairIndex: bigint, callOptions?: CallOptions): Promise<bigint>;
|
|
88
|
+
pairCloseFeeF(pairIndex: bigint, callOptions?: CallOptions): Promise<bigint>;
|
|
89
|
+
pairPerformanceFeeF(pairIndex: bigint, callOptions?: CallOptions): Promise<bigint>;
|
|
90
|
+
pairTotalRatioOiToP(pairIndex: bigint, callOptions?: CallOptions): Promise<bigint>;
|
|
91
|
+
groupBorrows(groupIndex: bigint, callOptions?: CallOptions): Promise<bigint>;
|
|
92
|
+
groupMaxBorrow(groupIndex: bigint, callOptions?: CallOptions): Promise<bigint>;
|
|
93
93
|
}
|
|
94
94
|
export interface IPoolAccountantV1FunctionsGroup_AdminConfiguration {
|
|
95
|
-
setTradeIncentivizer(incentivizer: string): Promise<ContractTransactionResponse>;
|
|
96
|
-
setMaxGainF(maxGainF: bigint): Promise<ContractTransactionResponse>;
|
|
97
|
-
setFrm(frm: string): Promise<ContractTransactionResponse>;
|
|
98
|
-
setMinOpenFee(min: bigint): Promise<ContractTransactionResponse>;
|
|
99
|
-
setLexPartF(partF: bigint): Promise<ContractTransactionResponse>;
|
|
100
|
-
setFundingRateMax(maxValue: bigint): Promise<ContractTransactionResponse>;
|
|
101
|
-
setLiquidationThresholdF(threshold: bigint): Promise<ContractTransactionResponse>;
|
|
102
|
-
setLiquidationFeeF(fee: bigint): Promise<ContractTransactionResponse>;
|
|
103
|
-
setIrm(irm: string): Promise<ContractTransactionResponse>;
|
|
104
|
-
setIrmHard(irm: string): Promise<ContractTransactionResponse>;
|
|
105
|
-
setInterestShareFactor(factor: bigint): Promise<ContractTransactionResponse>;
|
|
106
|
-
setFundingShareFactor(factor: bigint): Promise<ContractTransactionResponse>;
|
|
107
|
-
setBorrowRateMax(rate: bigint): Promise<ContractTransactionResponse>;
|
|
108
|
-
setMaxTotalBorrows(maxBorrows: bigint): Promise<ContractTransactionResponse>;
|
|
109
|
-
setMaxVirtualUtilization(maxUtilization: bigint): Promise<ContractTransactionResponse>;
|
|
95
|
+
setTradeIncentivizer(incentivizer: string, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
96
|
+
setMaxGainF(maxGainF: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
97
|
+
setFrm(frm: string, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
98
|
+
setMinOpenFee(min: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
99
|
+
setLexPartF(partF: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
100
|
+
setFundingRateMax(maxValue: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
101
|
+
setLiquidationThresholdF(threshold: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
102
|
+
setLiquidationFeeF(fee: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
103
|
+
setIrm(irm: string, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
104
|
+
setIrmHard(irm: string, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
105
|
+
setInterestShareFactor(factor: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
106
|
+
setFundingShareFactor(factor: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
107
|
+
setBorrowRateMax(rate: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
108
|
+
setMaxTotalBorrows(maxBorrows: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
109
|
+
setMaxVirtualUtilization(maxUtilization: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
110
110
|
}
|
|
111
111
|
export interface IPoolAccountantV1FunctionsGroup_PoolInteraction {
|
|
112
|
-
readAndZeroReserves(): Promise<{
|
|
112
|
+
readAndZeroReserves(callOptions?: CallOptions): Promise<{
|
|
113
113
|
accumulatedInterestShare: bigint;
|
|
114
114
|
accFundingShare: bigint;
|
|
115
115
|
}>;
|
|
116
116
|
}
|
|
117
117
|
export interface IPoolAccountantV1FunctionsGroup_StateVariables {
|
|
118
|
-
borrowIndex(): Promise<bigint>;
|
|
119
|
-
borrowRateMax(): Promise<bigint>;
|
|
120
|
-
totalBorrows(): Promise<bigint>;
|
|
121
|
-
totalInterest(): Promise<bigint>;
|
|
122
|
-
interestShare(): Promise<bigint>;
|
|
123
|
-
interestShareFactor(): Promise<bigint>;
|
|
124
|
-
fundingRateMax(): Promise<bigint>;
|
|
125
|
-
fundingShare(): Promise<bigint>;
|
|
126
|
-
fundingShareFactor(): Promise<bigint>;
|
|
127
|
-
unrealizedFunding(): Promise<bigint>;
|
|
128
|
-
realizedFundingSurplusDeficit(): Promise<bigint>;
|
|
129
|
-
maxGainF(): Promise<bigint>;
|
|
130
|
-
liquidationFeeF(): Promise<bigint>;
|
|
131
|
-
liquidationThresholdF(): Promise<bigint>;
|
|
132
|
-
maxTotalBorrows(): Promise<bigint>;
|
|
133
|
-
maxVirtualUtilization(): Promise<bigint>;
|
|
134
|
-
minOpenFee(): Promise<bigint>;
|
|
135
|
-
lexPartF(): Promise<bigint>;
|
|
136
|
-
lexPool(): Promise<string>;
|
|
137
|
-
tradingFloor(): Promise<string>;
|
|
138
|
-
tradeIncentivizer(): Promise<string>;
|
|
139
|
-
frm(): Promise<string>;
|
|
140
|
-
irm(): Promise<string>;
|
|
141
|
-
underlying(): Promise<string>;
|
|
142
|
-
accrualBlockTimestamp(): Promise<bigint>;
|
|
118
|
+
borrowIndex(callOptions?: CallOptions): Promise<bigint>;
|
|
119
|
+
borrowRateMax(callOptions?: CallOptions): Promise<bigint>;
|
|
120
|
+
totalBorrows(callOptions?: CallOptions): Promise<bigint>;
|
|
121
|
+
totalInterest(callOptions?: CallOptions): Promise<bigint>;
|
|
122
|
+
interestShare(callOptions?: CallOptions): Promise<bigint>;
|
|
123
|
+
interestShareFactor(callOptions?: CallOptions): Promise<bigint>;
|
|
124
|
+
fundingRateMax(callOptions?: CallOptions): Promise<bigint>;
|
|
125
|
+
fundingShare(callOptions?: CallOptions): Promise<bigint>;
|
|
126
|
+
fundingShareFactor(callOptions?: CallOptions): Promise<bigint>;
|
|
127
|
+
unrealizedFunding(callOptions?: CallOptions): Promise<bigint>;
|
|
128
|
+
realizedFundingSurplusDeficit(callOptions?: CallOptions): Promise<bigint>;
|
|
129
|
+
maxGainF(callOptions?: CallOptions): Promise<bigint>;
|
|
130
|
+
liquidationFeeF(callOptions?: CallOptions): Promise<bigint>;
|
|
131
|
+
liquidationThresholdF(callOptions?: CallOptions): Promise<bigint>;
|
|
132
|
+
maxTotalBorrows(callOptions?: CallOptions): Promise<bigint>;
|
|
133
|
+
maxVirtualUtilization(callOptions?: CallOptions): Promise<bigint>;
|
|
134
|
+
minOpenFee(callOptions?: CallOptions): Promise<bigint>;
|
|
135
|
+
lexPartF(callOptions?: CallOptions): Promise<bigint>;
|
|
136
|
+
lexPool(callOptions?: CallOptions): Promise<string>;
|
|
137
|
+
tradingFloor(callOptions?: CallOptions): Promise<string>;
|
|
138
|
+
tradeIncentivizer(callOptions?: CallOptions): Promise<string>;
|
|
139
|
+
frm(callOptions?: CallOptions): Promise<string>;
|
|
140
|
+
irm(callOptions?: CallOptions): Promise<string>;
|
|
141
|
+
underlying(callOptions?: CallOptions): Promise<string>;
|
|
142
|
+
accrualBlockTimestamp(callOptions?: CallOptions): Promise<bigint>;
|
|
143
143
|
}
|
|
144
144
|
export interface IPoolAccountantV1FunctionsGroup_ContractInfo {
|
|
145
|
-
admin(): Promise<string>;
|
|
146
|
-
pendingAdmin(): Promise<string>;
|
|
147
|
-
implementation(): Promise<string>;
|
|
148
|
-
pendingImplementation(): Promise<string>;
|
|
149
|
-
registry(): Promise<string>;
|
|
145
|
+
admin(callOptions?: CallOptions): Promise<string>;
|
|
146
|
+
pendingAdmin(callOptions?: CallOptions): Promise<string>;
|
|
147
|
+
implementation(callOptions?: CallOptions): Promise<string>;
|
|
148
|
+
pendingImplementation(callOptions?: CallOptions): Promise<string>;
|
|
149
|
+
registry(callOptions?: CallOptions): Promise<string>;
|
|
150
150
|
}
|
|
151
151
|
export interface IPoolAccountantV1FunctionsGroup_Constants extends IProtocolConstants {
|
|
152
|
-
ACCURACY_IMPROVEMENT_SCALE(): Promise<bigint>;
|
|
152
|
+
ACCURACY_IMPROVEMENT_SCALE(callOptions?: CallOptions): Promise<bigint>;
|
|
153
153
|
}
|
|
154
154
|
export interface IPoolAccountantV1Service {
|
|
155
155
|
tradeUtilities: IPoolAccountantV1FunctionsGroup_TradeUtilities;
|