lynx-client 0.0.32 → 0.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/lib/addresses/lensAddresses.js +6 -6
- package/dist/cjs/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.js +16 -16
- package/dist/cjs/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.js +40 -40
- package/dist/cjs/lib/contractsIntegration/EngineChipService/EngineChipService.js +89 -89
- package/dist/cjs/lib/contractsIntegration/FeatureFlaggerService/FeatureFlaggerService.js +38 -38
- package/dist/cjs/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.js +8 -8
- package/dist/cjs/lib/contractsIntegration/LexLensService/ILexLensService.js +7 -0
- package/dist/cjs/lib/contractsIntegration/LexLensService/LexLensService.js +52 -52
- package/dist/cjs/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.js +103 -103
- package/dist/cjs/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.js +26 -26
- package/dist/cjs/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.js +78 -78
- package/dist/cjs/lib/contractsIntegration/OrderBookService/OrderBookService.js +38 -38
- package/dist/cjs/lib/contractsIntegration/PNLRService/PNLRService.js +44 -44
- package/dist/cjs/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.js +112 -112
- package/dist/cjs/lib/contractsIntegration/RateModelLensService/RateModelLensService.js +10 -10
- package/dist/cjs/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.js +40 -40
- package/dist/cjs/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +66 -65
- package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +13 -13
- package/dist/cjs/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +86 -86
- package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.js +25 -1
- package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.js +52 -8
- package/dist/cjs/lib/contractsIntegration/TriggersService/TriggersService.js +80 -80
- package/dist/cjs/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.js +10 -9
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/FeatureFlagger/FeatureFlaggerV1__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +284 -9
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +6 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +261 -1
- package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +136 -1
- package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/RateModelLens__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +220 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/lib/addresses/lensAddresses.d.ts +6 -6
- package/dist/esm/lib/addresses/lensAddresses.js +6 -6
- package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.js +16 -16
- package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts +9 -8
- package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.d.ts +21 -20
- package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.js +40 -40
- package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.d.ts +21 -20
- package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/EngineChipService/EngineChipService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/EngineChipService/EngineChipService.js +89 -89
- package/dist/esm/lib/contractsIntegration/EngineChipService/IEngineChipService.d.ts +37 -37
- package/dist/esm/lib/contractsIntegration/EngineChipService/IEngineChipService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/FeatureFlaggerService/FeatureFlaggerService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/FeatureFlaggerService/FeatureFlaggerService.js +38 -38
- package/dist/esm/lib/contractsIntegration/FeatureFlaggerService/IFeatureFlaggerService.d.ts +14 -14
- package/dist/esm/lib/contractsIntegration/FeatureFlaggerService/IFeatureFlaggerService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts +5 -4
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts +5 -4
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.js +8 -8
- package/dist/esm/lib/contractsIntegration/LexLensService/ILexLensService.d.ts +26 -25
- package/dist/esm/lib/contractsIntegration/LexLensService/ILexLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/LexLensService/ILexLensService.js +7 -0
- package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.d.ts +26 -25
- package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.js +52 -52
- package/dist/esm/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts +73 -73
- package/dist/esm/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.js +103 -103
- package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.d.ts +14 -13
- package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.d.ts +14 -13
- package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.js +26 -26
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts +34 -34
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.js +78 -78
- package/dist/esm/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts +13 -13
- package/dist/esm/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.js +38 -38
- package/dist/esm/lib/contractsIntegration/PNLRService/IPNLRService.d.ts +17 -17
- package/dist/esm/lib/contractsIntegration/PNLRService/IPNLRService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/PNLRService/PNLRService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/PNLRService/PNLRService.js +44 -44
- package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts +90 -90
- package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.js +112 -112
- package/dist/esm/lib/contractsIntegration/RateModelLensService/IRateModelLensService.d.ts +11 -5
- package/dist/esm/lib/contractsIntegration/RateModelLensService/IRateModelLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/RateModelLensService/RateModelLensService.d.ts +6 -5
- package/dist/esm/lib/contractsIntegration/RateModelLensService/RateModelLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/RateModelLensService/RateModelLensService.js +10 -10
- package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.d.ts +21 -20
- package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.d.ts +21 -20
- package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.js +40 -40
- package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts +25 -25
- package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +66 -65
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +7 -6
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts +7 -6
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +13 -13
- package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts +33 -33
- package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +86 -86
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts +34 -8
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.js +25 -1
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts +10 -5
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.js +52 -8
- package/dist/esm/lib/contractsIntegration/TriggersService/ITriggersService.d.ts +36 -36
- package/dist/esm/lib/contractsIntegration/TriggersService/ITriggersService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.js +80 -80
- package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.d.ts +6 -5
- package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.js +10 -9
- package/dist/esm/lib/contractsIntegration/common/ILynxVersionedContract.d.ts +5 -4
- package/dist/esm/lib/contractsIntegration/common/ILynxVersionedContract.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/common/IPendableAdmin.d.ts +3 -2
- package/dist/esm/lib/contractsIntegration/common/IPendableAdmin.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/common/IPendableImplementation.d.ts +3 -2
- package/dist/esm/lib/contractsIntegration/common/IPendableImplementation.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/common/IProtocolConstants.d.ts +6 -5
- package/dist/esm/lib/contractsIntegration/common/IProtocolConstants.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/common/index.d.ts +20 -0
- package/dist/esm/lib/contractsIntegration/common/index.d.ts.map +1 -1
- package/dist/esm/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts +182 -9
- package/dist/esm/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts.map +1 -1
- package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts +5 -3
- package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts.map +1 -1
- package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts +164 -2
- package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts.map +1 -1
- package/dist/esm/lib/typechain/contracts/Peripheral/Lens/LexLens.d.ts +22 -1
- package/dist/esm/lib/typechain/contracts/Peripheral/Lens/LexLens.d.ts.map +1 -1
- package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts +126 -3
- package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts.map +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/FeatureFlagger/FeatureFlaggerV1__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/FeatureFlagger/FeatureFlaggerV1__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +221 -9
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts.map +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +284 -9
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +5 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +6 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +203 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts.map +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +261 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +109 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts.map +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +136 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/RateModelLens__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/RateModelLens__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +169 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts.map +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +220 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/lib/addresses/lensAddresses.d.ts +6 -6
- package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts +9 -8
- package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.d.ts +21 -20
- package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.d.ts +21 -20
- package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/EngineChipService/EngineChipService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/EngineChipService/IEngineChipService.d.ts +37 -37
- package/dist/types/lib/contractsIntegration/EngineChipService/IEngineChipService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/FeatureFlaggerService/FeatureFlaggerService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/FeatureFlaggerService/IFeatureFlaggerService.d.ts +14 -14
- package/dist/types/lib/contractsIntegration/FeatureFlaggerService/IFeatureFlaggerService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts +5 -4
- package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts +5 -4
- package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/LexLensService/ILexLensService.d.ts +26 -25
- package/dist/types/lib/contractsIntegration/LexLensService/ILexLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/LexLensService/LexLensService.d.ts +26 -25
- package/dist/types/lib/contractsIntegration/LexLensService/LexLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts +73 -73
- package/dist/types/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.d.ts +14 -13
- package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.d.ts +14 -13
- package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts +34 -34
- package/dist/types/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts +13 -13
- package/dist/types/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/PNLRService/IPNLRService.d.ts +17 -17
- package/dist/types/lib/contractsIntegration/PNLRService/IPNLRService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/PNLRService/PNLRService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts +90 -90
- package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/RateModelLensService/IRateModelLensService.d.ts +11 -5
- package/dist/types/lib/contractsIntegration/RateModelLensService/IRateModelLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/RateModelLensService/RateModelLensService.d.ts +6 -5
- package/dist/types/lib/contractsIntegration/RateModelLensService/RateModelLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.d.ts +21 -20
- package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.d.ts +21 -20
- package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts +25 -25
- package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +7 -6
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts +7 -6
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts +33 -33
- package/dist/types/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts +34 -8
- package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts +10 -5
- package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TriggersService/ITriggersService.d.ts +36 -36
- package/dist/types/lib/contractsIntegration/TriggersService/ITriggersService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TriggersService/TriggersService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.d.ts +6 -5
- package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/common/ILynxVersionedContract.d.ts +5 -4
- package/dist/types/lib/contractsIntegration/common/ILynxVersionedContract.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/common/IPendableAdmin.d.ts +3 -2
- package/dist/types/lib/contractsIntegration/common/IPendableAdmin.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/common/IPendableImplementation.d.ts +3 -2
- package/dist/types/lib/contractsIntegration/common/IPendableImplementation.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/common/IProtocolConstants.d.ts +6 -5
- package/dist/types/lib/contractsIntegration/common/IProtocolConstants.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/common/index.d.ts +20 -0
- package/dist/types/lib/contractsIntegration/common/index.d.ts.map +1 -1
- package/dist/types/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts +182 -9
- package/dist/types/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts.map +1 -1
- package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts +5 -3
- package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts.map +1 -1
- package/dist/types/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts +164 -2
- package/dist/types/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts.map +1 -1
- package/dist/types/lib/typechain/contracts/Peripheral/Lens/LexLens.d.ts +22 -1
- package/dist/types/lib/typechain/contracts/Peripheral/Lens/LexLens.d.ts.map +1 -1
- package/dist/types/lib/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts +126 -3
- package/dist/types/lib/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts.map +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/FeatureFlagger/FeatureFlaggerV1__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +221 -9
- package/dist/types/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts.map +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +5 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +203 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts.map +1 -1
- package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +109 -1
- package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts.map +1 -1
- package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/RateModelLens__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +169 -1
- package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts.map +1 -1
- package/package.json +3 -2
|
@@ -6,97 +6,97 @@ class FeatureManagement {
|
|
|
6
6
|
constructor(contract) {
|
|
7
7
|
this.contract = contract;
|
|
8
8
|
}
|
|
9
|
-
async adminRegisterFeature(featureId, name) {
|
|
10
|
-
return this.contract.adminRegisterFeature(featureId, name);
|
|
9
|
+
async adminRegisterFeature(featureId, name, transactionOptions) {
|
|
10
|
+
return this.contract.adminRegisterFeature(featureId, name, { ...transactionOptions });
|
|
11
11
|
}
|
|
12
|
-
async adminDisableFeatureForUser(featureId, user) {
|
|
13
|
-
return this.contract.adminDisableFeatureForUser(featureId, user);
|
|
12
|
+
async adminDisableFeatureForUser(featureId, user, transactionOptions) {
|
|
13
|
+
return this.contract.adminDisableFeatureForUser(featureId, user, { ...transactionOptions });
|
|
14
14
|
}
|
|
15
|
-
async adminBatchDisableFeatureForUsers(featureId, users) {
|
|
16
|
-
return this.contract.adminBatchDisableFeatureForUsers(featureId, users);
|
|
15
|
+
async adminBatchDisableFeatureForUsers(featureId, users, transactionOptions) {
|
|
16
|
+
return this.contract.adminBatchDisableFeatureForUsers(featureId, users, { ...transactionOptions });
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
class UserFeatureControl {
|
|
20
20
|
constructor(contract) {
|
|
21
21
|
this.contract = contract;
|
|
22
22
|
}
|
|
23
|
-
async setFeatureActivated(featureId, enabled) {
|
|
24
|
-
return this.contract.setFeatureActivated(featureId, enabled);
|
|
23
|
+
async setFeatureActivated(featureId, enabled, transactionOptions) {
|
|
24
|
+
return this.contract.setFeatureActivated(featureId, enabled, { ...transactionOptions });
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
class FeatureQueries {
|
|
28
28
|
constructor(contract) {
|
|
29
29
|
this.contract = contract;
|
|
30
30
|
}
|
|
31
|
-
async isFeatureActivated(featureId, user) {
|
|
32
|
-
return this.contract.isFeatureActivated(featureId, user);
|
|
31
|
+
async isFeatureActivated(featureId, user, callOptions) {
|
|
32
|
+
return this.contract.isFeatureActivated(featureId, user, { ...callOptions });
|
|
33
33
|
}
|
|
34
|
-
async isFeatureRegistered(featureId) {
|
|
35
|
-
return this.contract.isFeatureRegistered(featureId);
|
|
34
|
+
async isFeatureRegistered(featureId, callOptions) {
|
|
35
|
+
return this.contract.isFeatureRegistered(featureId, { ...callOptions });
|
|
36
36
|
}
|
|
37
|
-
async getFeatureMetadata(featureId) {
|
|
38
|
-
const result = await this.contract.getFeatureMetadata(featureId);
|
|
37
|
+
async getFeatureMetadata(featureId, callOptions) {
|
|
38
|
+
const result = await this.contract.getFeatureMetadata(featureId, { ...callOptions });
|
|
39
39
|
return {
|
|
40
40
|
name: result.name,
|
|
41
41
|
exists: result.exists,
|
|
42
42
|
usersCount: result.usersCount,
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
async getFeatureUsers(featureId, startIndex, pageSize) {
|
|
46
|
-
const result = await this.contract.getFeatureUsers(featureId, startIndex, pageSize);
|
|
45
|
+
async getFeatureUsers(featureId, startIndex, pageSize, callOptions) {
|
|
46
|
+
const result = await this.contract.getFeatureUsers(featureId, startIndex, pageSize, { ...callOptions });
|
|
47
47
|
return {
|
|
48
48
|
users: result.users,
|
|
49
49
|
totalCount: result.totalCount,
|
|
50
50
|
hasMore: result.hasMore,
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
|
-
async getFeatureUsersCount(featureId) {
|
|
54
|
-
return this.contract.getFeatureUsersCount(featureId);
|
|
53
|
+
async getFeatureUsersCount(featureId, callOptions) {
|
|
54
|
+
return this.contract.getFeatureUsersCount(featureId, { ...callOptions });
|
|
55
55
|
}
|
|
56
|
-
async getAllFeatureIds() {
|
|
57
|
-
return this.contract.getAllFeatureIds();
|
|
56
|
+
async getAllFeatureIds(callOptions) {
|
|
57
|
+
return this.contract.getAllFeatureIds({ ...callOptions });
|
|
58
58
|
}
|
|
59
|
-
async featureName(featureId) {
|
|
60
|
-
return this.contract.featureName(featureId);
|
|
59
|
+
async featureName(featureId, callOptions) {
|
|
60
|
+
return this.contract.featureName(featureId, { ...callOptions });
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
class ContractReferences {
|
|
64
64
|
constructor(contract) {
|
|
65
65
|
this.contract = contract;
|
|
66
66
|
}
|
|
67
|
-
async registry() {
|
|
68
|
-
return this.contract.registry();
|
|
67
|
+
async registry(callOptions) {
|
|
68
|
+
return this.contract.registry({ ...callOptions });
|
|
69
69
|
}
|
|
70
|
-
async implementation() {
|
|
71
|
-
return this.contract.implementation();
|
|
70
|
+
async implementation(callOptions) {
|
|
71
|
+
return this.contract.implementation({ ...callOptions });
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
class PendableAdmin {
|
|
75
75
|
constructor(contract) {
|
|
76
76
|
this.contract = contract;
|
|
77
77
|
}
|
|
78
|
-
async admin() {
|
|
79
|
-
return this.contract.admin();
|
|
78
|
+
async admin(callOptions) {
|
|
79
|
+
return this.contract.admin({ ...callOptions });
|
|
80
80
|
}
|
|
81
|
-
async pendingAdmin() {
|
|
82
|
-
return this.contract.pendingAdmin();
|
|
81
|
+
async pendingAdmin(callOptions) {
|
|
82
|
+
return this.contract.pendingAdmin({ ...callOptions });
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
class LynxVersionedContract {
|
|
86
86
|
constructor(contract) {
|
|
87
87
|
this.contract = contract;
|
|
88
88
|
}
|
|
89
|
-
async getContractName() {
|
|
90
|
-
return this.contract.getContractName();
|
|
89
|
+
async getContractName(callOptions) {
|
|
90
|
+
return this.contract.getContractName({ ...callOptions });
|
|
91
91
|
}
|
|
92
|
-
async getContractVersion() {
|
|
93
|
-
return this.contract.getContractVersion();
|
|
92
|
+
async getContractVersion(callOptions) {
|
|
93
|
+
return this.contract.getContractVersion({ ...callOptions });
|
|
94
94
|
}
|
|
95
|
-
async CONTRACT_NAME() {
|
|
96
|
-
return this.contract.CONTRACT_NAME();
|
|
95
|
+
async CONTRACT_NAME(callOptions) {
|
|
96
|
+
return this.contract.CONTRACT_NAME({ ...callOptions });
|
|
97
97
|
}
|
|
98
|
-
async CONTRACT_VERSION() {
|
|
99
|
-
return this.contract.CONTRACT_VERSION();
|
|
98
|
+
async CONTRACT_VERSION(callOptions) {
|
|
99
|
+
return this.contract.CONTRACT_VERSION({ ...callOptions });
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
class FeatureFlaggerService {
|
package/dist/cjs/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.js
CHANGED
|
@@ -6,17 +6,17 @@ class IntentsVerifierLensService {
|
|
|
6
6
|
constructor(signerOrProvider, address) {
|
|
7
7
|
this.contract = IntentsVerifierLens__factory_1.IntentsVerifierLens__factory.connect(address, signerOrProvider);
|
|
8
8
|
}
|
|
9
|
-
async getRequestBuildingInfoForChipsIntentsVerifier() {
|
|
10
|
-
return await this.contract.getRequestBuildingInfoForChipsIntentsVerifier();
|
|
9
|
+
async getRequestBuildingInfoForChipsIntentsVerifier(callOptions) {
|
|
10
|
+
return await this.contract.getRequestBuildingInfoForChipsIntentsVerifier({ ...callOptions });
|
|
11
11
|
}
|
|
12
|
-
async getRequestBuildingInfoForLiquidityIntentsVerifier() {
|
|
13
|
-
return await this.contract.getRequestBuildingInfoForLiquidityIntentsVerifier();
|
|
12
|
+
async getRequestBuildingInfoForLiquidityIntentsVerifier(callOptions) {
|
|
13
|
+
return await this.contract.getRequestBuildingInfoForLiquidityIntentsVerifier({ ...callOptions });
|
|
14
14
|
}
|
|
15
|
-
async getRequestBuildingInfoForTradeIntentsVerifier() {
|
|
16
|
-
return await this.contract.getRequestBuildingInfoForTradeIntentsVerifier();
|
|
15
|
+
async getRequestBuildingInfoForTradeIntentsVerifier(callOptions) {
|
|
16
|
+
return await this.contract.getRequestBuildingInfoForTradeIntentsVerifier({ ...callOptions });
|
|
17
17
|
}
|
|
18
|
-
async registry() {
|
|
19
|
-
return await this.contract.registry();
|
|
18
|
+
async registry(callOptions) {
|
|
19
|
+
return await this.contract.registry({ ...callOptions });
|
|
20
20
|
}
|
|
21
21
|
getContract() {
|
|
22
22
|
return this.contract;
|
|
@@ -75,6 +75,7 @@ exports.EMPTY_GROUP_CONFIGS_LENS = {
|
|
|
75
75
|
maxLeverage: 0n,
|
|
76
76
|
maxPositionSize: 0n,
|
|
77
77
|
minLeverage: 0n,
|
|
78
|
+
minOpenFee: 0n,
|
|
78
79
|
};
|
|
79
80
|
exports.EMPTY_LEX_PAIR_STATE_LENS = {
|
|
80
81
|
fundingRate: 0n,
|
|
@@ -114,11 +115,17 @@ exports.EMPTY_POOL_ACCOUNTANT_CONFIGURATIONS_LENS = {
|
|
|
114
115
|
fundingRateModel: "",
|
|
115
116
|
interestRateModel: "",
|
|
116
117
|
interestShareFactor: 0n,
|
|
118
|
+
fundingShareFactor: 0n,
|
|
117
119
|
matchingPool: "",
|
|
118
120
|
minOpenFee: 0n,
|
|
119
121
|
lexPartF: 0n,
|
|
120
122
|
liquidationThresholdF: 0n,
|
|
121
123
|
liquidationFeeF: 0n,
|
|
124
|
+
maxGainF: 0n,
|
|
125
|
+
fundingRateMax: 0n,
|
|
126
|
+
borrowRateMax: 0n,
|
|
127
|
+
maxTotalBorrows: 0n,
|
|
128
|
+
maxVirtualUtilization: 0n,
|
|
122
129
|
supportedPairIds: [],
|
|
123
130
|
};
|
|
124
131
|
exports.EMPTY_COMPLETE_LEX_STATE = {
|
|
@@ -8,8 +8,8 @@ class LexLensService {
|
|
|
8
8
|
constructor(signerOrProvider, contractAddress) {
|
|
9
9
|
this.contract = LexLens__factory_1.LexLens__factory.connect(contractAddress, signerOrProvider);
|
|
10
10
|
}
|
|
11
|
-
async getAllFeeConfigurationsInLex(lexPool) {
|
|
12
|
-
const result = await this.contract.getAllFeeConfigurationsInLex(lexPool);
|
|
11
|
+
async getAllFeeConfigurationsInLex(lexPool, callOptions) {
|
|
12
|
+
const result = await this.contract.getAllFeeConfigurationsInLex(lexPool, { ...callOptions });
|
|
13
13
|
// First convert array, then handle special number conversions
|
|
14
14
|
const baseArray = (0, ethersTypes_1.ethersStructResponseToArray)(result, ILexLensService_1.EMPTY_FEE_CONFIGS_LENS);
|
|
15
15
|
return baseArray.map(item => ({
|
|
@@ -20,8 +20,8 @@ class LexLensService {
|
|
|
20
20
|
performanceFeeF: Number(item.performanceFeeF),
|
|
21
21
|
}));
|
|
22
22
|
}
|
|
23
|
-
async getAllGroupConfigurationsInLex(lexPool) {
|
|
24
|
-
const result = await this.contract.getAllGroupConfigurationsInLex(lexPool);
|
|
23
|
+
async getAllGroupConfigurationsInLex(lexPool, callOptions) {
|
|
24
|
+
const result = await this.contract.getAllGroupConfigurationsInLex(lexPool, { ...callOptions });
|
|
25
25
|
const baseArray = (0, ethersTypes_1.ethersStructResponseToArray)(result, ILexLensService_1.EMPTY_GROUP_CONFIGS_LENS);
|
|
26
26
|
return baseArray.map(item => ({
|
|
27
27
|
...item,
|
|
@@ -29,19 +29,19 @@ class LexLensService {
|
|
|
29
29
|
maxBorrowF: Number(item.maxBorrowF),
|
|
30
30
|
}));
|
|
31
31
|
}
|
|
32
|
-
async getAllGroupStateInLex(lexPool) {
|
|
33
|
-
const result = await this.contract.getAllGroupStateInLex(lexPool);
|
|
32
|
+
async getAllGroupStateInLex(lexPool, callOptions) {
|
|
33
|
+
const result = await this.contract.getAllGroupStateInLex(lexPool, { ...callOptions });
|
|
34
34
|
const baseArray = (0, ethersTypes_1.ethersStructResponseToArray)(result, ILexLensService_1.EMPTY_LEX_GROUP_STATE_LENS);
|
|
35
35
|
return baseArray.map(item => ({
|
|
36
36
|
...item,
|
|
37
37
|
groupId: Number(item.groupId),
|
|
38
38
|
}));
|
|
39
39
|
}
|
|
40
|
-
async getAllPairAndGroupAndFeeConfigurationsInLex(lexPool) {
|
|
41
|
-
return await this.contract.getAllPairAndGroupAndFeeConfigurationsInLex(lexPool);
|
|
40
|
+
async getAllPairAndGroupAndFeeConfigurationsInLex(lexPool, callOptions) {
|
|
41
|
+
return await this.contract.getAllPairAndGroupAndFeeConfigurationsInLex(lexPool, { ...callOptions });
|
|
42
42
|
}
|
|
43
|
-
async getAllPairConfigurationsInLex(lexPool) {
|
|
44
|
-
const result = await this.contract.getAllPairConfigurationsInLex(lexPool);
|
|
43
|
+
async getAllPairConfigurationsInLex(lexPool, callOptions) {
|
|
44
|
+
const result = await this.contract.getAllPairConfigurationsInLex(lexPool, { ...callOptions });
|
|
45
45
|
const baseArray = (0, ethersTypes_1.ethersStructResponseToArray)(result, ILexLensService_1.EMPTY_PAIR_CONFIGS_LENS);
|
|
46
46
|
return baseArray.map(item => ({
|
|
47
47
|
...item,
|
|
@@ -50,16 +50,16 @@ class LexLensService {
|
|
|
50
50
|
feeId: Number(item.feeId),
|
|
51
51
|
}));
|
|
52
52
|
}
|
|
53
|
-
async getAllPairStateInLex(lexPool) {
|
|
54
|
-
const result = await this.contract.getAllPairStateInLex(lexPool);
|
|
53
|
+
async getAllPairStateInLex(lexPool, callOptions) {
|
|
54
|
+
const result = await this.contract.getAllPairStateInLex(lexPool, { ...callOptions });
|
|
55
55
|
const baseArray = (0, ethersTypes_1.ethersStructResponseToArray)(result, ILexLensService_1.EMPTY_LEX_PAIR_STATE_LENS);
|
|
56
56
|
return baseArray.map(item => ({
|
|
57
57
|
...item,
|
|
58
58
|
pairId: Number(item.pairId),
|
|
59
59
|
}));
|
|
60
60
|
}
|
|
61
|
-
async getCompleteConfigsForLex(pool) {
|
|
62
|
-
const result = await this.contract.getCompleteConfigsForLex(pool);
|
|
61
|
+
async getCompleteConfigsForLex(pool, callOptions) {
|
|
62
|
+
const result = await this.contract.getCompleteConfigsForLex(pool, { ...callOptions });
|
|
63
63
|
const baseResult = (0, ethersTypes_1.ethersStructResponseToObject)(result, ILexLensService_1.EMPTY_COMPLETE_LEX_CONFIGS, {
|
|
64
64
|
groupsConfigs: ILexLensService_1.EMPTY_GROUP_CONFIGS_LENS,
|
|
65
65
|
pairsConfigs: ILexLensService_1.EMPTY_PAIR_CONFIGS_LENS,
|
|
@@ -92,12 +92,12 @@ class LexLensService {
|
|
|
92
92
|
})),
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
|
-
async getCompleteConfigsForLexes(pools) {
|
|
96
|
-
const results = await this.contract.getCompleteConfigsForLexes(pools);
|
|
95
|
+
async getCompleteConfigsForLexes(pools, callOptions) {
|
|
96
|
+
const results = await this.contract.getCompleteConfigsForLexes(pools, { ...callOptions });
|
|
97
97
|
return results.map(result => this.convertCompleteConfigsResult(result));
|
|
98
98
|
}
|
|
99
|
-
async getCompleteStateForLex(pool) {
|
|
100
|
-
const result = await this.contract.getCompleteStateForLex(pool);
|
|
99
|
+
async getCompleteStateForLex(pool, callOptions) {
|
|
100
|
+
const result = await this.contract.getCompleteStateForLex(pool, { ...callOptions });
|
|
101
101
|
const baseResult = (0, ethersTypes_1.ethersStructResponseToObject)(result, ILexLensService_1.EMPTY_COMPLETE_LEX_STATE, {
|
|
102
102
|
pairsStates: ILexLensService_1.EMPTY_LEX_PAIR_STATE_LENS,
|
|
103
103
|
groupsStates: ILexLensService_1.EMPTY_LEX_GROUP_STATE_LENS,
|
|
@@ -122,8 +122,8 @@ class LexLensService {
|
|
|
122
122
|
})),
|
|
123
123
|
};
|
|
124
124
|
}
|
|
125
|
-
async getCompleteStateForLexes(pools) {
|
|
126
|
-
const results = await this.contract.getCompleteStateForLexes(pools);
|
|
125
|
+
async getCompleteStateForLexes(pools, callOptions) {
|
|
126
|
+
const results = await this.contract.getCompleteStateForLexes(pools, { ...callOptions });
|
|
127
127
|
return results.map(result => {
|
|
128
128
|
const baseResult = (0, ethersTypes_1.ethersStructResponseToObject)(result, ILexLensService_1.EMPTY_COMPLETE_LEX_STATE, {
|
|
129
129
|
pairsStates: ILexLensService_1.EMPTY_LEX_PAIR_STATE_LENS,
|
|
@@ -150,80 +150,80 @@ class LexLensService {
|
|
|
150
150
|
};
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
|
-
async getLExPoolForPoolAccountant(accountant) {
|
|
154
|
-
return await this.contract.getLExPoolForPoolAccountant(accountant);
|
|
153
|
+
async getLExPoolForPoolAccountant(accountant, callOptions) {
|
|
154
|
+
return await this.contract.getLExPoolForPoolAccountant(accountant, { ...callOptions });
|
|
155
155
|
}
|
|
156
|
-
async getLexPairState(lexPool, pairId) {
|
|
157
|
-
const result = await this.contract.getLexPairState(lexPool, BigInt(pairId));
|
|
156
|
+
async getLexPairState(lexPool, pairId, callOptions) {
|
|
157
|
+
const result = await this.contract.getLexPairState(lexPool, BigInt(pairId), { ...callOptions });
|
|
158
158
|
const baseObj = (0, ethersTypes_1.ethersStructResponseToObject)(result, ILexLensService_1.EMPTY_LEX_PAIR_STATE_LENS);
|
|
159
159
|
return {
|
|
160
160
|
...baseObj,
|
|
161
161
|
pairId: Number(baseObj.pairId),
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
|
-
async getLexPoolConfigs(lexPool) {
|
|
165
|
-
const result = await this.contract.getLexPoolConfigs(lexPool);
|
|
164
|
+
async getLexPoolConfigs(lexPool, callOptions) {
|
|
165
|
+
const result = await this.contract.getLexPoolConfigs(lexPool, { ...callOptions });
|
|
166
166
|
return (0, ethersTypes_1.ethersStructResponseToObject)(result, ILexLensService_1.EMPTY_LEX_POOL_LENS_CONFIGS);
|
|
167
167
|
}
|
|
168
|
-
async getLexPoolParams(lexPool) {
|
|
169
|
-
const result = await this.contract.getLexPoolParams(lexPool);
|
|
168
|
+
async getLexPoolParams(lexPool, callOptions) {
|
|
169
|
+
const result = await this.contract.getLexPoolParams(lexPool, { ...callOptions });
|
|
170
170
|
return (0, ethersTypes_1.ethersStructResponseToObject)(result, ILexLensService_1.EMPTY_LEX_POOL_LENS_PARAMS);
|
|
171
171
|
}
|
|
172
|
-
async getLexPoolState(lexPool) {
|
|
173
|
-
const result = await this.contract.getLexPoolState(lexPool);
|
|
172
|
+
async getLexPoolState(lexPool, callOptions) {
|
|
173
|
+
const result = await this.contract.getLexPoolState(lexPool, { ...callOptions });
|
|
174
174
|
return (0, ethersTypes_1.ethersStructResponseToObject)(result, ILexLensService_1.EMPTY_LEX_POOL_LENS_STATE, {
|
|
175
175
|
collateralLimitsNonCat: ILexLensService_1.EMPTY_COLLATERAL_LIMITS_FOR_ASSET,
|
|
176
176
|
collateralLimitsCat: ILexLensService_1.EMPTY_COLLATERAL_LIMITS_FOR_ASSET,
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
|
-
async getLexPoolSupplierState(lexPool, supplier) {
|
|
180
|
-
const result = await this.contract.getLexPoolSupplierState(lexPool, supplier);
|
|
179
|
+
async getLexPoolSupplierState(lexPool, supplier, callOptions) {
|
|
180
|
+
const result = await this.contract.getLexPoolSupplierState(lexPool, supplier, { ...callOptions });
|
|
181
181
|
return (0, ethersTypes_1.ethersStructResponseToObject)(result, ILexLensService_1.EMPTY_LEX_POOL_SUPPLIER_LENS_STATE, {
|
|
182
182
|
pendingEpochDeposits: ILexLensService_1.EMPTY_PENDING_EPOCH_DEPOSIT,
|
|
183
183
|
pendingEpochRedeems: ILexLensService_1.EMPTY_PENDING_EPOCH_REDEEM,
|
|
184
184
|
});
|
|
185
185
|
}
|
|
186
|
-
async getLexPoolsStateAll(lexPools) {
|
|
187
|
-
const results = await this.contract.getLexPoolsStateAll(lexPools);
|
|
186
|
+
async getLexPoolsStateAll(lexPools, callOptions) {
|
|
187
|
+
const results = await this.contract.getLexPoolsStateAll(lexPools, { ...callOptions });
|
|
188
188
|
return (0, ethersTypes_1.ethersStructResponseToArray)(results, ILexLensService_1.EMPTY_LEX_POOL_LENS_STATE, {
|
|
189
189
|
collateralLimitsNonCat: ILexLensService_1.EMPTY_COLLATERAL_LIMITS_FOR_ASSET,
|
|
190
190
|
collateralLimitsCat: ILexLensService_1.EMPTY_COLLATERAL_LIMITS_FOR_ASSET,
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
|
-
async getPoolAccountantConfigurationsByPool(lexPool) {
|
|
194
|
-
const result = await this.contract.getPoolAccountantConfigurationsByPool(lexPool);
|
|
195
|
-
return (0, ethersTypes_1.ethersStructResponseToObject)(result, ILexLensService_1.EMPTY_POOL_ACCOUNTANT_CONFIGURATIONS_LENS);
|
|
193
|
+
async getPoolAccountantConfigurationsByPool(lexPool, callOptions) {
|
|
194
|
+
const result = await this.contract.getPoolAccountantConfigurationsByPool(lexPool, { ...callOptions });
|
|
195
|
+
return (0, ethersTypes_1.ethersStructResponseToObject)(result, ILexLensService_1.EMPTY_POOL_ACCOUNTANT_CONFIGURATIONS_LENS, {}, {}, ["supportedPairIds"]);
|
|
196
196
|
}
|
|
197
|
-
async getPoolAccountantConfigurationsByPoolAll(lexPools) {
|
|
198
|
-
const results = await this.contract.getPoolAccountantConfigurationsByPoolAll(lexPools);
|
|
199
|
-
return (0, ethersTypes_1.ethersStructResponseToArray)(results, ILexLensService_1.EMPTY_POOL_ACCOUNTANT_CONFIGURATIONS_LENS);
|
|
197
|
+
async getPoolAccountantConfigurationsByPoolAll(lexPools, callOptions) {
|
|
198
|
+
const results = await this.contract.getPoolAccountantConfigurationsByPoolAll(lexPools, { ...callOptions });
|
|
199
|
+
return (0, ethersTypes_1.ethersStructResponseToArray)(results, ILexLensService_1.EMPTY_POOL_ACCOUNTANT_CONFIGURATIONS_LENS, {}, {}, ["supportedPairIds"]);
|
|
200
200
|
}
|
|
201
|
-
async getPoolAccountantForLexPool(lexPool) {
|
|
202
|
-
return await this.contract.getPoolAccountantForLexPool(lexPool);
|
|
201
|
+
async getPoolAccountantForLexPool(lexPool, callOptions) {
|
|
202
|
+
return await this.contract.getPoolAccountantForLexPool(lexPool, { ...callOptions });
|
|
203
203
|
}
|
|
204
|
-
async getPoolAccountantStateByPool(lexPool) {
|
|
205
|
-
const result = await this.contract.getPoolAccountantStateByPool(lexPool);
|
|
204
|
+
async getPoolAccountantStateByPool(lexPool, callOptions) {
|
|
205
|
+
const result = await this.contract.getPoolAccountantStateByPool(lexPool, { ...callOptions });
|
|
206
206
|
return (0, ethersTypes_1.ethersStructResponseToObject)(result, ILexLensService_1.EMPTY_POOL_ACCOUNTANT_STATE_LENS);
|
|
207
207
|
}
|
|
208
|
-
async getPoolAccountantStateByPoolAll(lexPools) {
|
|
209
|
-
const results = await this.contract.getPoolAccountantStateByPoolAll(lexPools);
|
|
208
|
+
async getPoolAccountantStateByPoolAll(lexPools, callOptions) {
|
|
209
|
+
const results = await this.contract.getPoolAccountantStateByPoolAll(lexPools, { ...callOptions });
|
|
210
210
|
return (0, ethersTypes_1.ethersStructResponseToArray)(results, ILexLensService_1.EMPTY_POOL_ACCOUNTANT_STATE_LENS);
|
|
211
211
|
}
|
|
212
|
-
async getSupplierCurrentStateAll(lexPools, supplier) {
|
|
213
|
-
const results = await this.contract.getSupplierCurrentStateAll(lexPools, supplier);
|
|
212
|
+
async getSupplierCurrentStateAll(lexPools, supplier, callOptions) {
|
|
213
|
+
const results = await this.contract.getSupplierCurrentStateAll(lexPools, supplier, { ...callOptions });
|
|
214
214
|
return (0, ethersTypes_1.ethersStructResponseToArray)(results, ILexLensService_1.EMPTY_LEX_POOL_SUPPLIER_LENS_STATE, {
|
|
215
215
|
pendingEpochDeposits: ILexLensService_1.EMPTY_PENDING_EPOCH_DEPOSIT,
|
|
216
216
|
pendingEpochRedeems: ILexLensService_1.EMPTY_PENDING_EPOCH_REDEEM,
|
|
217
217
|
});
|
|
218
218
|
}
|
|
219
|
-
async tradesValuesMultiplePairs(accountant, pairsTrades) {
|
|
219
|
+
async tradesValuesMultiplePairs(accountant, pairsTrades, callOptions) {
|
|
220
220
|
// @ts-ignore
|
|
221
|
-
const results = await this.contract.tradesValuesMultiplePairs.staticCall(accountant, pairsTrades);
|
|
221
|
+
const results = await this.contract.tradesValuesMultiplePairs.staticCall(accountant, pairsTrades, { ...callOptions });
|
|
222
222
|
return results.map(pairResults => (0, ethersTypes_1.ethersStructResponseToArray)(pairResults, ILexLensService_1.EMPTY_SINGLE_POSITION_OUTPUT));
|
|
223
223
|
}
|
|
224
|
-
async tradesValuesSinglePair(accountant, pairParams) {
|
|
224
|
+
async tradesValuesSinglePair(accountant, pairParams, callOptions) {
|
|
225
225
|
// @ts-ignore
|
|
226
|
-
const results = await this.contract.tradesValuesSinglePair.staticCall(accountant, pairParams);
|
|
226
|
+
const results = await this.contract.tradesValuesSinglePair.staticCall(accountant, pairParams, { ...callOptions });
|
|
227
227
|
return (0, ethersTypes_1.ethersStructResponseToArray)(results, ILexLensService_1.EMPTY_SINGLE_POSITION_OUTPUT);
|
|
228
228
|
}
|
|
229
229
|
// Helper methods
|