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
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
import { Provider, Signer } from "ethers";
|
|
2
2
|
import { TradeIntentsVerifierV1 } from "../../typechain/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1";
|
|
3
|
+
import { TransactionOptions, CallOptions } from "../common";
|
|
3
4
|
import { ITradeIntentsVerifierService } from "./ITradeIntentsVerifierService";
|
|
4
5
|
export declare class TradeIntentsVerifierService implements ITradeIntentsVerifierService {
|
|
5
6
|
private readonly contract;
|
|
6
7
|
private readonly isSigner;
|
|
7
8
|
constructor(signerOrProvider: Signer | Provider, address: string);
|
|
8
|
-
domainSeparatorForAsset(settlementAsset: string): Promise<string>;
|
|
9
|
-
domainSeparatorForChain(chainId: bigint): Promise<string>;
|
|
10
|
-
intentsPermissions(user: string): Promise<string>;
|
|
11
|
-
setIntentsPermissions(oftChip: string, dynAddressSuffix: string): Promise<void>;
|
|
12
|
-
verifyIntent_traderRequest_openNewPosition(payload: TradeIntentsVerifierV1.UserRequestPayload_OpenPositionStruct, v: bigint, r: string, s: string, domain: string, referralCode: string, runCapTests: boolean, value?: bigint): Promise<void>;
|
|
13
|
-
verifyIntent_traderRequest_marketClosePosition(payload: TradeIntentsVerifierV1.UserRequestPayload_CloseMarketStruct, v: bigint, r: string, s: string, value?: bigint): Promise<void>;
|
|
14
|
-
verifyIntent_traderAction_updatePendingLimitPosition(payload: TradeIntentsVerifierV1.UserDirectPayload_UpdatePendingLimitPositionStruct, v: bigint, r: string, s: string, value?: bigint): Promise<void>;
|
|
15
|
-
verifyIntent_traderAction_cancelPendingLimitPosition(payload: TradeIntentsVerifierV1.UserDirectPayload_CancelPendingLimitPositionStruct, v: bigint, r: string, s: string, value?: bigint): Promise<void>;
|
|
16
|
-
verifyIntent_traderRequest_updatePositionSingleField(payload: TradeIntentsVerifierV1.UserRequestPayload_UpdatePositionSingleFieldStruct, v: bigint, r: string, s: string, value?: bigint): Promise<void>;
|
|
17
|
-
verifyIntent_traderRequest_updatePositionDoubleField(payload: TradeIntentsVerifierV1.UserRequestPayload_UpdatePositionDoubleFieldStruct, v: bigint, r: string, s: string, value?: bigint): Promise<void>;
|
|
18
|
-
admin(): Promise<string>;
|
|
19
|
-
pendingAdmin(): Promise<string>;
|
|
20
|
-
registry(): Promise<string>;
|
|
21
|
-
sourceChainIdForAsset(asset: string): Promise<bigint>;
|
|
22
|
-
processedSignatures(signature: string): Promise<boolean>;
|
|
23
|
-
domainSeparatorsForPosition(positionId: string): Promise<string>;
|
|
24
|
-
tradersForPosition(positionId: string): Promise<string>;
|
|
25
|
-
settlementAssetsForPosition(positionId: string): Promise<string>;
|
|
26
|
-
getTradingFloor(): Promise<string>;
|
|
27
|
-
getTradersPortal(): Promise<string>;
|
|
9
|
+
domainSeparatorForAsset(settlementAsset: string, callOptions?: CallOptions): Promise<string>;
|
|
10
|
+
domainSeparatorForChain(chainId: bigint, callOptions?: CallOptions): Promise<string>;
|
|
11
|
+
intentsPermissions(user: string, callOptions?: CallOptions): Promise<string>;
|
|
12
|
+
setIntentsPermissions(oftChip: string, dynAddressSuffix: string, transactionOptions?: TransactionOptions): Promise<void>;
|
|
13
|
+
verifyIntent_traderRequest_openNewPosition(payload: TradeIntentsVerifierV1.UserRequestPayload_OpenPositionStruct, v: bigint, r: string, s: string, domain: string, referralCode: string, runCapTests: boolean, value?: bigint, transactionOptions?: TransactionOptions): Promise<void>;
|
|
14
|
+
verifyIntent_traderRequest_marketClosePosition(payload: TradeIntentsVerifierV1.UserRequestPayload_CloseMarketStruct, v: bigint, r: string, s: string, value?: bigint, transactionOptions?: TransactionOptions): Promise<void>;
|
|
15
|
+
verifyIntent_traderAction_updatePendingLimitPosition(payload: TradeIntentsVerifierV1.UserDirectPayload_UpdatePendingLimitPositionStruct, v: bigint, r: string, s: string, value?: bigint, transactionOptions?: TransactionOptions): Promise<void>;
|
|
16
|
+
verifyIntent_traderAction_cancelPendingLimitPosition(payload: TradeIntentsVerifierV1.UserDirectPayload_CancelPendingLimitPositionStruct, v: bigint, r: string, s: string, value?: bigint, transactionOptions?: TransactionOptions): Promise<void>;
|
|
17
|
+
verifyIntent_traderRequest_updatePositionSingleField(payload: TradeIntentsVerifierV1.UserRequestPayload_UpdatePositionSingleFieldStruct, v: bigint, r: string, s: string, value?: bigint, transactionOptions?: TransactionOptions): Promise<void>;
|
|
18
|
+
verifyIntent_traderRequest_updatePositionDoubleField(payload: TradeIntentsVerifierV1.UserRequestPayload_UpdatePositionDoubleFieldStruct, v: bigint, r: string, s: string, value?: bigint, transactionOptions?: TransactionOptions): Promise<void>;
|
|
19
|
+
admin(callOptions?: CallOptions): Promise<string>;
|
|
20
|
+
pendingAdmin(callOptions?: CallOptions): Promise<string>;
|
|
21
|
+
registry(callOptions?: CallOptions): Promise<string>;
|
|
22
|
+
sourceChainIdForAsset(asset: string, callOptions?: CallOptions): Promise<bigint>;
|
|
23
|
+
processedSignatures(signature: string, callOptions?: CallOptions): Promise<boolean>;
|
|
24
|
+
domainSeparatorsForPosition(positionId: string, callOptions?: CallOptions): Promise<string>;
|
|
25
|
+
tradersForPosition(positionId: string, callOptions?: CallOptions): Promise<string>;
|
|
26
|
+
settlementAssetsForPosition(positionId: string, callOptions?: CallOptions): Promise<string>;
|
|
27
|
+
getTradingFloor(callOptions?: CallOptions): Promise<string>;
|
|
28
|
+
getTradersPortal(callOptions?: CallOptions): Promise<string>;
|
|
28
29
|
getContract(): TradeIntentsVerifierV1;
|
|
29
30
|
}
|
|
30
31
|
//# sourceMappingURL=TradeIntentsVerifierService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TradeIntentsVerifierService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACzC,OAAO,EAAE,sBAAsB,EAAyB,MAAM,uEAAuE,CAAA;AAErI,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAA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AC,kDAAkD,EAClF,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,KAAK,CAAC,EAAE,MAAM,EACd,kBAAkB,CAAC,EAAE,kBAAkB,GACtC,OAAO,CAAC,IAAI,CAAC;IAcV,KAAK,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;IAIjD,YAAY,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;IAIxD,QAAQ,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;IAIpD,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;IAIhF,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC;IAInF,2BAA2B,CAAC,UAAU,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;IAI3F,kBAAkB,CAAC,UAAU,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;IAIlF,2BAA2B,CAAC,UAAU,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;IAI3F,eAAe,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;IAI3D,gBAAgB,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;IAIlE,WAAW,IAAI,sBAAsB;CAGtC"}
|
package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.js
CHANGED
|
@@ -7,93 +7,93 @@ class TradeIntentsVerifierService {
|
|
|
7
7
|
this.contract = TradeIntentsVerifierV1__factory_1.TradeIntentsVerifierV1__factory.connect(address, signerOrProvider);
|
|
8
8
|
this.isSigner = 'sendTransaction' in signerOrProvider;
|
|
9
9
|
}
|
|
10
|
-
async domainSeparatorForAsset(settlementAsset) {
|
|
11
|
-
return await this.contract.domainSeparatorForAsset(settlementAsset);
|
|
10
|
+
async domainSeparatorForAsset(settlementAsset, callOptions) {
|
|
11
|
+
return await this.contract.domainSeparatorForAsset(settlementAsset, { ...callOptions });
|
|
12
12
|
}
|
|
13
|
-
async domainSeparatorForChain(chainId) {
|
|
14
|
-
return await this.contract.domainSeparatorForChain(chainId);
|
|
13
|
+
async domainSeparatorForChain(chainId, callOptions) {
|
|
14
|
+
return await this.contract.domainSeparatorForChain(chainId, { ...callOptions });
|
|
15
15
|
}
|
|
16
|
-
async intentsPermissions(user) {
|
|
17
|
-
return await this.contract.intentsPermissions(user);
|
|
16
|
+
async intentsPermissions(user, callOptions) {
|
|
17
|
+
return await this.contract.intentsPermissions(user, { ...callOptions });
|
|
18
18
|
}
|
|
19
|
-
async setIntentsPermissions(oftChip, dynAddressSuffix) {
|
|
19
|
+
async setIntentsPermissions(oftChip, dynAddressSuffix, transactionOptions) {
|
|
20
20
|
if (!this.isSigner) {
|
|
21
21
|
throw new Error("TradeIntentsVerifierService: Write operations require a signer");
|
|
22
22
|
}
|
|
23
|
-
const tx = await this.contract.setIntentsPermissions(oftChip, dynAddressSuffix);
|
|
23
|
+
const tx = await this.contract.setIntentsPermissions(oftChip, dynAddressSuffix, { ...transactionOptions });
|
|
24
24
|
await tx.wait();
|
|
25
25
|
}
|
|
26
|
-
async verifyIntent_traderRequest_openNewPosition(payload, v, r, s, domain, referralCode, runCapTests, value) {
|
|
26
|
+
async verifyIntent_traderRequest_openNewPosition(payload, v, r, s, domain, referralCode, runCapTests, value, transactionOptions) {
|
|
27
27
|
if (!this.isSigner) {
|
|
28
28
|
throw new Error("TradeIntentsVerifierService: Write operations require a signer");
|
|
29
29
|
}
|
|
30
|
-
const tx = await this.contract.verifyIntent_traderRequest_openNewPosition(payload, v, r, s, domain, referralCode, runCapTests, { value: value || 0n });
|
|
30
|
+
const tx = await this.contract.verifyIntent_traderRequest_openNewPosition(payload, v, r, s, domain, referralCode, runCapTests, { value: value || 0n, ...transactionOptions });
|
|
31
31
|
await tx.wait();
|
|
32
32
|
}
|
|
33
|
-
async verifyIntent_traderRequest_marketClosePosition(payload, v, r, s, value) {
|
|
33
|
+
async verifyIntent_traderRequest_marketClosePosition(payload, v, r, s, value, transactionOptions) {
|
|
34
34
|
if (!this.isSigner) {
|
|
35
35
|
throw new Error("TradeIntentsVerifierService: Write operations require a signer");
|
|
36
36
|
}
|
|
37
|
-
const tx = await this.contract.verifyIntent_traderRequest_marketClosePosition(payload, v, r, s, { value: value || 0n });
|
|
37
|
+
const tx = await this.contract.verifyIntent_traderRequest_marketClosePosition(payload, v, r, s, { value: value || 0n, ...transactionOptions });
|
|
38
38
|
await tx.wait();
|
|
39
39
|
}
|
|
40
|
-
async verifyIntent_traderAction_updatePendingLimitPosition(payload, v, r, s, value) {
|
|
40
|
+
async verifyIntent_traderAction_updatePendingLimitPosition(payload, v, r, s, value, transactionOptions) {
|
|
41
41
|
if (!this.isSigner) {
|
|
42
42
|
throw new Error("TradeIntentsVerifierService: Write operations require a signer");
|
|
43
43
|
}
|
|
44
|
-
const tx = await this.contract.verifyIntent_traderAction_updatePendingLimitPosition(payload, v, r, s, { value: value || 0n });
|
|
44
|
+
const tx = await this.contract.verifyIntent_traderAction_updatePendingLimitPosition(payload, v, r, s, { value: value || 0n, ...transactionOptions });
|
|
45
45
|
await tx.wait();
|
|
46
46
|
}
|
|
47
|
-
async verifyIntent_traderAction_cancelPendingLimitPosition(payload, v, r, s, value) {
|
|
47
|
+
async verifyIntent_traderAction_cancelPendingLimitPosition(payload, v, r, s, value, transactionOptions) {
|
|
48
48
|
if (!this.isSigner) {
|
|
49
49
|
throw new Error("TradeIntentsVerifierService: Write operations require a signer");
|
|
50
50
|
}
|
|
51
|
-
const tx = await this.contract.verifyIntent_traderAction_cancelPendingLimitPosition(payload, v, r, s, { value: value || 0n });
|
|
51
|
+
const tx = await this.contract.verifyIntent_traderAction_cancelPendingLimitPosition(payload, v, r, s, { value: value || 0n, ...transactionOptions });
|
|
52
52
|
await tx.wait();
|
|
53
53
|
}
|
|
54
|
-
async verifyIntent_traderRequest_updatePositionSingleField(payload, v, r, s, value) {
|
|
54
|
+
async verifyIntent_traderRequest_updatePositionSingleField(payload, v, r, s, value, transactionOptions) {
|
|
55
55
|
if (!this.isSigner) {
|
|
56
56
|
throw new Error("TradeIntentsVerifierService: Write operations require a signer");
|
|
57
57
|
}
|
|
58
|
-
const tx = await this.contract.verifyIntent_traderRequest_updatePositionSingleField(payload, v, r, s, { value: value || 0n });
|
|
58
|
+
const tx = await this.contract.verifyIntent_traderRequest_updatePositionSingleField(payload, v, r, s, { value: value || 0n, ...transactionOptions });
|
|
59
59
|
await tx.wait();
|
|
60
60
|
}
|
|
61
|
-
async verifyIntent_traderRequest_updatePositionDoubleField(payload, v, r, s, value) {
|
|
61
|
+
async verifyIntent_traderRequest_updatePositionDoubleField(payload, v, r, s, value, transactionOptions) {
|
|
62
62
|
if (!this.isSigner) {
|
|
63
63
|
throw new Error("TradeIntentsVerifierService: Write operations require a signer");
|
|
64
64
|
}
|
|
65
|
-
const tx = await this.contract.verifyIntent_traderRequest_updatePositionDoubleField(payload, v, r, s, { value: value || 0n });
|
|
65
|
+
const tx = await this.contract.verifyIntent_traderRequest_updatePositionDoubleField(payload, v, r, s, { value: value || 0n, ...transactionOptions });
|
|
66
66
|
await tx.wait();
|
|
67
67
|
}
|
|
68
|
-
async admin() {
|
|
69
|
-
return await this.contract.admin();
|
|
68
|
+
async admin(callOptions) {
|
|
69
|
+
return await this.contract.admin({ ...callOptions });
|
|
70
70
|
}
|
|
71
|
-
async pendingAdmin() {
|
|
72
|
-
return await this.contract.pendingAdmin();
|
|
71
|
+
async pendingAdmin(callOptions) {
|
|
72
|
+
return await this.contract.pendingAdmin({ ...callOptions });
|
|
73
73
|
}
|
|
74
|
-
async registry() {
|
|
75
|
-
return await this.contract.registry();
|
|
74
|
+
async registry(callOptions) {
|
|
75
|
+
return await this.contract.registry({ ...callOptions });
|
|
76
76
|
}
|
|
77
|
-
async sourceChainIdForAsset(asset) {
|
|
78
|
-
return await this.contract.sourceChainIdForAsset(asset);
|
|
77
|
+
async sourceChainIdForAsset(asset, callOptions) {
|
|
78
|
+
return await this.contract.sourceChainIdForAsset(asset, { ...callOptions });
|
|
79
79
|
}
|
|
80
|
-
async processedSignatures(signature) {
|
|
81
|
-
return await this.contract.processedSignatures(signature);
|
|
80
|
+
async processedSignatures(signature, callOptions) {
|
|
81
|
+
return await this.contract.processedSignatures(signature, { ...callOptions });
|
|
82
82
|
}
|
|
83
|
-
async domainSeparatorsForPosition(positionId) {
|
|
84
|
-
return await this.contract.domainSeparatorsForPosition(positionId);
|
|
83
|
+
async domainSeparatorsForPosition(positionId, callOptions) {
|
|
84
|
+
return await this.contract.domainSeparatorsForPosition(positionId, { ...callOptions });
|
|
85
85
|
}
|
|
86
|
-
async tradersForPosition(positionId) {
|
|
87
|
-
return await this.contract.tradersForPosition(positionId);
|
|
86
|
+
async tradersForPosition(positionId, callOptions) {
|
|
87
|
+
return await this.contract.tradersForPosition(positionId, { ...callOptions });
|
|
88
88
|
}
|
|
89
|
-
async settlementAssetsForPosition(positionId) {
|
|
90
|
-
return await this.contract.settlementAssetsForPosition(positionId);
|
|
89
|
+
async settlementAssetsForPosition(positionId, callOptions) {
|
|
90
|
+
return await this.contract.settlementAssetsForPosition(positionId, { ...callOptions });
|
|
91
91
|
}
|
|
92
|
-
async getTradingFloor() {
|
|
93
|
-
return await this.contract.getTradingFloor();
|
|
92
|
+
async getTradingFloor(callOptions) {
|
|
93
|
+
return await this.contract.getTradingFloor({ ...callOptions });
|
|
94
94
|
}
|
|
95
|
-
async getTradersPortal() {
|
|
96
|
-
return await this.contract.getTradersPortal();
|
|
95
|
+
async getTradersPortal(callOptions) {
|
|
96
|
+
return await this.contract.getTradersPortal({ ...callOptions });
|
|
97
97
|
}
|
|
98
98
|
getContract() {
|
|
99
99
|
return this.contract;
|
|
@@ -2,54 +2,54 @@ import { BytesLike, ContractTransactionResponse } from "ethers";
|
|
|
2
2
|
import { TOpenOrderType, TUpdatePositionFieldOrderType } from "../../constants/contractEnums";
|
|
3
3
|
import { TradingFloorStructsV1 } from "../../typechain/contracts/Lynx/TradingFloor/TradingFloorV1";
|
|
4
4
|
import { TSafeBigNumberStruct } from "../../utils/ethersTypes";
|
|
5
|
-
import { ILynxVersionedContract, IPendableAdmin, IProtocolConstants, TransactionOptions } from "../common";
|
|
5
|
+
import { ILynxVersionedContract, IPendableAdmin, IProtocolConstants, TransactionOptions, CallOptions } from "../common";
|
|
6
6
|
type PositionRequestIdentifierStruct = TradingFloorStructsV1.PositionRequestIdentifiersStruct;
|
|
7
7
|
type PositionRequestParamsStruct = TradingFloorStructsV1.PositionRequestParamsStruct;
|
|
8
8
|
export type TPositionRequestIdentifierStruct = TSafeBigNumberStruct<PositionRequestIdentifierStruct>;
|
|
9
9
|
export type TPositionRequestParamsStruct = TSafeBigNumberStruct<PositionRequestParamsStruct>;
|
|
10
10
|
export interface ITradersPortalFunctionsGroup_TraderRequests {
|
|
11
11
|
openNewPosition(tradeRequestIdentifier: TPositionRequestIdentifierStruct, tradeRequestParams: TPositionRequestParamsStruct, orderType: TOpenOrderType, referrerDomain: BytesLike, referrerCode: BytesLike, runCapTests: boolean, nativeFee: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
12
|
-
openNewPosition_static(tradeRequestIdentifier: TPositionRequestIdentifierStruct, tradeRequestParams: TPositionRequestParamsStruct, orderType: TOpenOrderType, referrerDomain: BytesLike, referrerCode: BytesLike, runCapTests: boolean, nativeFee: bigint): Promise<any>;
|
|
12
|
+
openNewPosition_static(tradeRequestIdentifier: TPositionRequestIdentifierStruct, tradeRequestParams: TPositionRequestParamsStruct, orderType: TOpenOrderType, referrerDomain: BytesLike, referrerCode: BytesLike, runCapTests: boolean, nativeFee: bigint, callOptions?: CallOptions): Promise<any>;
|
|
13
13
|
setExistingPositionToMarketClose(positionId: BytesLike, minPrice: bigint, maxPrice: bigint, nativeFee: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
14
14
|
updatePositionSingleField(positionId: BytesLike, orderType: TUpdatePositionFieldOrderType, fieldValue: bigint, nativeFee: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
15
15
|
updatePositionDoubleFieldTpAndSl(positionId: BytesLike, tpValue: bigint, slValue: bigint, nativeFee: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
16
16
|
}
|
|
17
17
|
export interface ITradersPortalFunctionsGroup_DirectActions {
|
|
18
|
-
timeoutOpenMarket(positionId: BytesLike): Promise<ContractTransactionResponse>;
|
|
19
|
-
timeoutCloseMarket(positionId: BytesLike): Promise<ContractTransactionResponse>;
|
|
20
|
-
cancelPendingPositionLimit(positionId: BytesLike): Promise<ContractTransactionResponse>;
|
|
21
|
-
cancelPendingUpdatePositionField(positionId: BytesLike): Promise<ContractTransactionResponse>;
|
|
18
|
+
timeoutOpenMarket(positionId: BytesLike, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
19
|
+
timeoutCloseMarket(positionId: BytesLike, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
20
|
+
cancelPendingPositionLimit(positionId: BytesLike, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
21
|
+
cancelPendingUpdatePositionField(positionId: BytesLike, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
22
22
|
updatePendingPositionLimit(positionId: BytesLike, minPrice: bigint, maxPrice: bigint, tp: bigint, sl: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
23
23
|
}
|
|
24
24
|
export interface ITradersPortalFunctionsGroup_ContractReferences {
|
|
25
|
-
getOrderBook(): Promise<string>;
|
|
26
|
-
getTradeIntentsVerifier(): Promise<string>;
|
|
27
|
-
registry(): Promise<string>;
|
|
28
|
-
tradingFloor(): Promise<string>;
|
|
29
|
-
getOnBehalfTrading(): Promise<string>;
|
|
30
|
-
getFeatureFlagger(): Promise<string>;
|
|
25
|
+
getOrderBook(callOptions?: CallOptions): Promise<string>;
|
|
26
|
+
getTradeIntentsVerifier(callOptions?: CallOptions): Promise<string>;
|
|
27
|
+
registry(callOptions?: CallOptions): Promise<string>;
|
|
28
|
+
tradingFloor(callOptions?: CallOptions): Promise<string>;
|
|
29
|
+
getOnBehalfTrading(callOptions?: CallOptions): Promise<string>;
|
|
30
|
+
getFeatureFlagger(callOptions?: CallOptions): Promise<string>;
|
|
31
31
|
}
|
|
32
32
|
export type ITradersPortalFunctionsGroup_LynxVersionedContract = ILynxVersionedContract;
|
|
33
33
|
export interface ITradersPortalFunctionsGroup_Status {
|
|
34
|
-
isDone(): Promise<boolean>;
|
|
35
|
-
isLimitingMarketClosePriceRange(): Promise<boolean>;
|
|
36
|
-
isPaused(): Promise<boolean>;
|
|
34
|
+
isDone(callOptions?: CallOptions): Promise<boolean>;
|
|
35
|
+
isLimitingMarketClosePriceRange(callOptions?: CallOptions): Promise<boolean>;
|
|
36
|
+
isPaused(callOptions?: CallOptions): Promise<boolean>;
|
|
37
37
|
}
|
|
38
38
|
export interface ITradersPortalFunctionsGroup_Settings {
|
|
39
|
-
limitOrdersTimelock(): Promise<bigint>;
|
|
40
|
-
marketOrdersTimeout(): Promise<bigint>;
|
|
41
|
-
minLiveTimeForMarketClose(): Promise<bigint>;
|
|
42
|
-
actionFees(actionType: bigint): Promise<bigint>;
|
|
43
|
-
limitsMarginFraction(): Promise<bigint>;
|
|
44
|
-
setLimitsMarginFraction(limitsMarginFraction: bigint): Promise<ContractTransactionResponse>;
|
|
39
|
+
limitOrdersTimelock(callOptions?: CallOptions): Promise<bigint>;
|
|
40
|
+
marketOrdersTimeout(callOptions?: CallOptions): Promise<bigint>;
|
|
41
|
+
minLiveTimeForMarketClose(callOptions?: CallOptions): Promise<bigint>;
|
|
42
|
+
actionFees(actionType: bigint, callOptions?: CallOptions): Promise<bigint>;
|
|
43
|
+
limitsMarginFraction(callOptions?: CallOptions): Promise<bigint>;
|
|
44
|
+
setLimitsMarginFraction(limitsMarginFraction: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
45
45
|
}
|
|
46
46
|
export interface ITradersPortalFunctionsGroup_Constants extends IProtocolConstants {
|
|
47
|
-
NATIVE_UNDERLYING_ADDRESS(): Promise<string>;
|
|
48
|
-
ACCURACY_IMPROVEMENT_SCALE(): Promise<bigint>;
|
|
47
|
+
NATIVE_UNDERLYING_ADDRESS(callOptions?: CallOptions): Promise<string>;
|
|
48
|
+
ACCURACY_IMPROVEMENT_SCALE(callOptions?: CallOptions): Promise<bigint>;
|
|
49
49
|
}
|
|
50
50
|
export interface ITradersPortalFunctionsGroup_OnBehalf {
|
|
51
|
-
onBehalfEnabled(): Promise<boolean>;
|
|
52
|
-
setOnBehalfEnabled(enabled: boolean): Promise<ContractTransactionResponse>;
|
|
51
|
+
onBehalfEnabled(callOptions?: CallOptions): Promise<boolean>;
|
|
52
|
+
setOnBehalfEnabled(enabled: boolean, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
53
53
|
}
|
|
54
54
|
export interface ITradersPortalService {
|
|
55
55
|
traderRequests: ITradersPortalFunctionsGroup_TraderRequests;
|
package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ITradersPortalService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradersPortalService/ITradersPortalService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,2BAA2B,EAAE,MAAM,QAAQ,CAAC;AAE7E,OAAO,EACL,cAAc,EAEd,6BAA6B,EAC9B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AACnG,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"ITradersPortalService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradersPortalService/ITradersPortalService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,2BAA2B,EAAE,MAAM,QAAQ,CAAC;AAE7E,OAAO,EACL,cAAc,EAEd,6BAA6B,EAC9B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AACnG,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExH,KAAK,+BAA+B,GAClC,qBAAqB,CAAC,gCAAgC,CAAC;AACzD,KAAK,2BAA2B,GAC9B,qBAAqB,CAAC,2BAA2B,CAAC;AAEpD,MAAM,MAAM,gCAAgC,GAC1C,oBAAoB,CAAC,+BAA+B,CAAC,CAAC;AACxD,MAAM,MAAM,4BAA4B,GACtC,oBAAoB,CAAC,2BAA2B,CAAC,CAAC;AAEpD,MAAM,WAAW,2CAA2C;IAC1D,eAAe,CACb,sBAAsB,EAAE,gCAAgC,EACxD,kBAAkB,EAAE,4BAA4B,EAChD,SAAS,EAAE,cAAc,EACzB,cAAc,EAAE,SAAS,EACzB,YAAY,EAAE,SAAS,EACvB,WAAW,EAAE,OAAO,EACpB,SAAS,EAAE,MAAM,EACjB,kBAAkB,CAAC,EAAE,kBAAkB,GACtC,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAExC,sBAAs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TradersPortalService/TradersPortalServiceService.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TradersPortalServiceService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,MAAM,EACN,QAAQ,EAET,MAAM,QAAQ,CAAC;AAEhB,OAAO,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAC;AAC/F,OAAO,EACL,qBAAqB,EACrB,2CAA2C,EAC3C,0CAA0C,EAC1C,+CAA+C,EAC/C,mCAAmC,EACnC,qCAAqC,EACrC,sCAAsC,EACtC,qCAAqC,EAGtC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,sBAAsB,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"TradersPortalServiceService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,MAAM,EACN,QAAQ,EAET,MAAM,QAAQ,CAAC;AAEhB,OAAO,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAC;AAC/F,OAAO,EACL,qBAAqB,EACrB,2CAA2C,EAC3C,0CAA0C,EAC1C,+CAA+C,EAC/C,mCAAmC,EACnC,qCAAqC,EACrC,sCAAsC,EACtC,qCAAqC,EAGtC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAmC,MAAM,WAAW,CAAC;AA2TpG,qBAAa,2BAA4B,YAAW,qBAAqB;IAcrE,OAAO,CAAC,gBAAgB;IAb1B,OAAO,CAAC,eAAe,CAAkB;IACzC,SAAgB,cAAc,EAAE,2CAA2C,CAAC;IAC5E,SAAgB,aAAa,EAAE,0CAA0C,CAAC;IAC1E,SAAgB,kBAAkB,EAAE,+CAA+C,CAAC;IACpF,SAAgB,aAAa,EAAE,cAAc,CAAC;IAC9C,SAAgB,qBAAqB,EAAE,sBAAsB,CAAC;IAC9D,SAAgB,MAAM,EAAE,mCAAmC,CAAC;IAC5D,SAAgB,QAAQ,EAAE,qCAAqC,CAAC;IAChE,SAAgB,SAAS,EAAE,sCAAsC,CAAC;IAClE,SAAgB,QAAQ,EAAE,qCAAqC,CAAC;gBAG9D,OAAO,EAAE,MAAM,EACP,gBAAgB,EAAE,MAAM,GAAG,QAAQ;IAkB7C,WAAW,IAAI,eAAe;CAG/B"}
|
package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js
CHANGED
|
@@ -13,10 +13,11 @@ class TraderRequests {
|
|
|
13
13
|
...transactionOptions,
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
|
-
async openNewPosition_static(tradeRequestIdentifier, tradeRequestParams, orderType, referrerDomain, referrerCode, runCapTests, nativeFee) {
|
|
16
|
+
async openNewPosition_static(tradeRequestIdentifier, tradeRequestParams, orderType, referrerDomain, referrerCode, runCapTests, nativeFee, callOptions) {
|
|
17
17
|
// @ts-ignore
|
|
18
18
|
return this.tradingContract.traderRequest_openNewPosition.staticCall(tradeRequestIdentifier, tradeRequestParams, orderType, referrerDomain, referrerCode, runCapTests, {
|
|
19
19
|
value: nativeFee,
|
|
20
|
+
...callOptions,
|
|
20
21
|
});
|
|
21
22
|
}
|
|
22
23
|
async setExistingPositionToMarketClose(positionId, minPrice, maxPrice, nativeFee, transactionOptions) {
|
|
@@ -42,17 +43,17 @@ class DirectActions {
|
|
|
42
43
|
constructor(tradingContract) {
|
|
43
44
|
this.tradingContract = tradingContract;
|
|
44
45
|
}
|
|
45
|
-
async timeoutOpenMarket(positionId) {
|
|
46
|
-
return this.tradingContract.directAction_timeout_openMarket(positionId);
|
|
46
|
+
async timeoutOpenMarket(positionId, transactionOptions) {
|
|
47
|
+
return this.tradingContract.directAction_timeout_openMarket(positionId, { ...transactionOptions });
|
|
47
48
|
}
|
|
48
|
-
async timeoutCloseMarket(positionId) {
|
|
49
|
-
return this.tradingContract.directAction_timeout_closeMarket(positionId);
|
|
49
|
+
async timeoutCloseMarket(positionId, transactionOptions) {
|
|
50
|
+
return this.tradingContract.directAction_timeout_closeMarket(positionId, { ...transactionOptions });
|
|
50
51
|
}
|
|
51
|
-
async cancelPendingPositionLimit(positionId) {
|
|
52
|
-
return this.tradingContract.directAction_cancelPendingPosition_limit(positionId);
|
|
52
|
+
async cancelPendingPositionLimit(positionId, transactionOptions) {
|
|
53
|
+
return this.tradingContract.directAction_cancelPendingPosition_limit(positionId, { ...transactionOptions });
|
|
53
54
|
}
|
|
54
|
-
async cancelPendingUpdatePositionField(positionId) {
|
|
55
|
-
return this.tradingContract.directAction_timeout_updateTradeField(positionId);
|
|
55
|
+
async cancelPendingUpdatePositionField(positionId, transactionOptions) {
|
|
56
|
+
return this.tradingContract.directAction_timeout_updateTradeField(positionId, { ...transactionOptions });
|
|
56
57
|
}
|
|
57
58
|
async updatePendingPositionLimit(positionId, minPrice, maxPrice, tp, sl, transactionOptions) {
|
|
58
59
|
return this.tradingContract.directAction_updatePendingPosition_limit(positionId, minPrice, maxPrice, tp, sl, {
|
|
@@ -64,119 +65,119 @@ class ContractReferences {
|
|
|
64
65
|
constructor(tradingContract) {
|
|
65
66
|
this.tradingContract = tradingContract;
|
|
66
67
|
}
|
|
67
|
-
async getOrderBook() {
|
|
68
|
-
return this.tradingContract.getOrderBook();
|
|
68
|
+
async getOrderBook(callOptions) {
|
|
69
|
+
return this.tradingContract.getOrderBook({ ...callOptions });
|
|
69
70
|
}
|
|
70
|
-
async getTradeIntentsVerifier() {
|
|
71
|
-
return this.tradingContract.getTradeIntentsVerifier();
|
|
71
|
+
async getTradeIntentsVerifier(callOptions) {
|
|
72
|
+
return this.tradingContract.getTradeIntentsVerifier({ ...callOptions });
|
|
72
73
|
}
|
|
73
|
-
async registry() {
|
|
74
|
-
return this.tradingContract.registry();
|
|
74
|
+
async registry(callOptions) {
|
|
75
|
+
return this.tradingContract.registry({ ...callOptions });
|
|
75
76
|
}
|
|
76
|
-
async tradingFloor() {
|
|
77
|
-
return this.tradingContract.tradingFloor();
|
|
77
|
+
async tradingFloor(callOptions) {
|
|
78
|
+
return this.tradingContract.tradingFloor({ ...callOptions });
|
|
78
79
|
}
|
|
79
|
-
async getOnBehalfTrading() {
|
|
80
|
-
return this.tradingContract.getOnBehalfTrading();
|
|
80
|
+
async getOnBehalfTrading(callOptions) {
|
|
81
|
+
return this.tradingContract.getOnBehalfTrading({ ...callOptions });
|
|
81
82
|
}
|
|
82
|
-
async getFeatureFlagger() {
|
|
83
|
-
return this.tradingContract.getFeatureFlagger();
|
|
83
|
+
async getFeatureFlagger(callOptions) {
|
|
84
|
+
return this.tradingContract.getFeatureFlagger({ ...callOptions });
|
|
84
85
|
}
|
|
85
86
|
}
|
|
86
87
|
class PendableAdmin {
|
|
87
88
|
constructor(tradingContract) {
|
|
88
89
|
this.tradingContract = tradingContract;
|
|
89
90
|
}
|
|
90
|
-
async admin() {
|
|
91
|
-
return this.tradingContract.admin();
|
|
91
|
+
async admin(callOptions) {
|
|
92
|
+
return this.tradingContract.admin({ ...callOptions });
|
|
92
93
|
}
|
|
93
|
-
async pendingAdmin() {
|
|
94
|
-
return this.tradingContract.pendingAdmin();
|
|
94
|
+
async pendingAdmin(callOptions) {
|
|
95
|
+
return this.tradingContract.pendingAdmin({ ...callOptions });
|
|
95
96
|
}
|
|
96
97
|
}
|
|
97
98
|
class LynxVersionedContract {
|
|
98
99
|
constructor(tradingContract) {
|
|
99
100
|
this.tradingContract = tradingContract;
|
|
100
101
|
}
|
|
101
|
-
async getContractName() {
|
|
102
|
-
return this.tradingContract.getContractName();
|
|
102
|
+
async getContractName(callOptions) {
|
|
103
|
+
return this.tradingContract.getContractName({ ...callOptions });
|
|
103
104
|
}
|
|
104
|
-
async getContractVersion() {
|
|
105
|
-
return this.tradingContract.getContractVersion();
|
|
105
|
+
async getContractVersion(callOptions) {
|
|
106
|
+
return this.tradingContract.getContractVersion({ ...callOptions });
|
|
106
107
|
}
|
|
107
|
-
async CONTRACT_NAME() {
|
|
108
|
-
return this.tradingContract.CONTRACT_NAME();
|
|
108
|
+
async CONTRACT_NAME(callOptions) {
|
|
109
|
+
return this.tradingContract.CONTRACT_NAME({ ...callOptions });
|
|
109
110
|
}
|
|
110
|
-
async CONTRACT_VERSION() {
|
|
111
|
-
return this.tradingContract.CONTRACT_VERSION();
|
|
111
|
+
async CONTRACT_VERSION(callOptions) {
|
|
112
|
+
return this.tradingContract.CONTRACT_VERSION({ ...callOptions });
|
|
112
113
|
}
|
|
113
114
|
}
|
|
114
115
|
class Status {
|
|
115
116
|
constructor(tradingContract) {
|
|
116
117
|
this.tradingContract = tradingContract;
|
|
117
118
|
}
|
|
118
|
-
async isDone() {
|
|
119
|
-
return this.tradingContract.isDone();
|
|
119
|
+
async isDone(callOptions) {
|
|
120
|
+
return this.tradingContract.isDone({ ...callOptions });
|
|
120
121
|
}
|
|
121
|
-
async isLimitingMarketClosePriceRange() {
|
|
122
|
-
return this.tradingContract.isLimitingMarketClosePriceRange();
|
|
122
|
+
async isLimitingMarketClosePriceRange(callOptions) {
|
|
123
|
+
return this.tradingContract.isLimitingMarketClosePriceRange({ ...callOptions });
|
|
123
124
|
}
|
|
124
|
-
async isPaused() {
|
|
125
|
-
return this.tradingContract.isPaused();
|
|
125
|
+
async isPaused(callOptions) {
|
|
126
|
+
return this.tradingContract.isPaused({ ...callOptions });
|
|
126
127
|
}
|
|
127
128
|
}
|
|
128
129
|
class Settings {
|
|
129
130
|
constructor(tradingContract) {
|
|
130
131
|
this.tradingContract = tradingContract;
|
|
131
132
|
}
|
|
132
|
-
async limitOrdersTimelock() {
|
|
133
|
-
return this.tradingContract.limitOrdersTimelock();
|
|
133
|
+
async limitOrdersTimelock(callOptions) {
|
|
134
|
+
return this.tradingContract.limitOrdersTimelock({ ...callOptions });
|
|
134
135
|
}
|
|
135
|
-
async marketOrdersTimeout() {
|
|
136
|
-
return this.tradingContract.marketOrdersTimeout();
|
|
136
|
+
async marketOrdersTimeout(callOptions) {
|
|
137
|
+
return this.tradingContract.marketOrdersTimeout({ ...callOptions });
|
|
137
138
|
}
|
|
138
|
-
async minLiveTimeForMarketClose() {
|
|
139
|
-
return this.tradingContract.minLiveTimeForMarketClose();
|
|
139
|
+
async minLiveTimeForMarketClose(callOptions) {
|
|
140
|
+
return this.tradingContract.minLiveTimeForMarketClose({ ...callOptions });
|
|
140
141
|
}
|
|
141
|
-
async actionFees(actionType) {
|
|
142
|
-
return this.tradingContract.actionFees(actionType);
|
|
142
|
+
async actionFees(actionType, callOptions) {
|
|
143
|
+
return this.tradingContract.actionFees(actionType, { ...callOptions });
|
|
143
144
|
}
|
|
144
|
-
async limitsMarginFraction() {
|
|
145
|
-
return this.tradingContract.limitsMarginFraction();
|
|
145
|
+
async limitsMarginFraction(callOptions) {
|
|
146
|
+
return this.tradingContract.limitsMarginFraction({ ...callOptions });
|
|
146
147
|
}
|
|
147
|
-
async setLimitsMarginFraction(limitsMarginFraction) {
|
|
148
|
-
return this.tradingContract.setLimitsMarginFraction(limitsMarginFraction);
|
|
148
|
+
async setLimitsMarginFraction(limitsMarginFraction, transactionOptions) {
|
|
149
|
+
return this.tradingContract.setLimitsMarginFraction(limitsMarginFraction, { ...transactionOptions });
|
|
149
150
|
}
|
|
150
151
|
}
|
|
151
152
|
class Constants {
|
|
152
153
|
constructor(tradingContract) {
|
|
153
154
|
this.tradingContract = tradingContract;
|
|
154
155
|
}
|
|
155
|
-
async ACCURACY_IMPROVEMENT_SCALE() {
|
|
156
|
-
return this.tradingContract.ACCURACY_IMPROVEMENT_SCALE();
|
|
156
|
+
async ACCURACY_IMPROVEMENT_SCALE(callOptions) {
|
|
157
|
+
return this.tradingContract.ACCURACY_IMPROVEMENT_SCALE({ ...callOptions });
|
|
157
158
|
}
|
|
158
|
-
async FRACTION_SCALE() {
|
|
159
|
-
return this.tradingContract.FRACTION_SCALE();
|
|
159
|
+
async FRACTION_SCALE(callOptions) {
|
|
160
|
+
return this.tradingContract.FRACTION_SCALE({ ...callOptions });
|
|
160
161
|
}
|
|
161
|
-
async LEVERAGE_SCALE() {
|
|
162
|
-
return this.tradingContract.LEVERAGE_SCALE();
|
|
162
|
+
async LEVERAGE_SCALE(callOptions) {
|
|
163
|
+
return this.tradingContract.LEVERAGE_SCALE({ ...callOptions });
|
|
163
164
|
}
|
|
164
|
-
async NATIVE_UNDERLYING_ADDRESS() {
|
|
165
|
-
return this.tradingContract.NATIVE_UNDERLYING_ADDRESS();
|
|
165
|
+
async NATIVE_UNDERLYING_ADDRESS(callOptions) {
|
|
166
|
+
return this.tradingContract.NATIVE_UNDERLYING_ADDRESS({ ...callOptions });
|
|
166
167
|
}
|
|
167
|
-
async PRECISION() {
|
|
168
|
-
return this.tradingContract.PRECISION();
|
|
168
|
+
async PRECISION(callOptions) {
|
|
169
|
+
return this.tradingContract.PRECISION({ ...callOptions });
|
|
169
170
|
}
|
|
170
171
|
}
|
|
171
172
|
class OnBehalf {
|
|
172
173
|
constructor(tradingContract) {
|
|
173
174
|
this.tradingContract = tradingContract;
|
|
174
175
|
}
|
|
175
|
-
async onBehalfEnabled() {
|
|
176
|
-
return this.tradingContract.onBehalfEnabled();
|
|
176
|
+
async onBehalfEnabled(callOptions) {
|
|
177
|
+
return this.tradingContract.onBehalfEnabled({ ...callOptions });
|
|
177
178
|
}
|
|
178
|
-
async setOnBehalfEnabled(enabled) {
|
|
179
|
-
return this.tradingContract.setOnBehalfEnabled(enabled);
|
|
179
|
+
async setOnBehalfEnabled(enabled, transactionOptions) {
|
|
180
|
+
return this.tradingContract.setOnBehalfEnabled(enabled, { ...transactionOptions });
|
|
180
181
|
}
|
|
181
182
|
}
|
|
182
183
|
class TradersPortalServiceService {
|
package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BytesLike } from "ethers";
|
|
2
2
|
import { TradingFloorLensStructs } from "../../typechain/contracts/Peripheral/Lens/TradingFloorLens";
|
|
3
3
|
import { TSafeBigNumberStruct } from "../../utils/ethersTypes";
|
|
4
|
+
import { CallOptions } from "../common";
|
|
4
5
|
export type TCompletePositionDataFromLensStruct = Omit<TSafeBigNumberStruct<TradingFloorLensStructs.CompletePositionDataFromLensStruct>, "pairId" | "positionIndex" | "phase" | "inPhaseSince" | "tpLastUpdated" | "slLastUpdated" | "pendingUpdateOrderType" | "pendingUpdateOrderTimestamp"> & {
|
|
5
6
|
pairId: number;
|
|
6
7
|
positionIndex: number;
|
|
@@ -48,11 +49,11 @@ export declare const EMPTY_POSITION_LIQUIDATION_INFO: TPositionLiquidationInfoSt
|
|
|
48
49
|
export declare const EMPTY_LIQUIDATION_RESULT: TGetAllPositionsLiquidationInfoResultStruct;
|
|
49
50
|
export declare const EMPTY_TRADE_PARAMS: TTradingFloorLensTradeParamsStruct;
|
|
50
51
|
export interface ITradingFloorLensService {
|
|
51
|
-
generatePositionHashId(settlementAsset: string, trader: string, pairId: number, index: number): Promise<string>;
|
|
52
|
-
getAllPositionsDataForAllTraders(params: TGetAllPositionsDataForAllTradersParamsStruct): Promise<TGetAllPositionsDataForAllTradersResultStruct>;
|
|
53
|
-
getAllPositionsLiquidationInfo(params: TGetAllPositionsLiquidationInfoParamsStruct, phases?: number[]): Promise<TGetAllPositionsLiquidationInfoResultStruct>;
|
|
54
|
-
getCompletePositionData(tradingFloor: string, positionId: BytesLike): Promise<TCompletePositionDataFromLensStruct>;
|
|
55
|
-
getPositionsDataForTrader(tradingFloor: string, trader: string): Promise<TCompletePositionDataFromLensStruct[]>;
|
|
56
|
-
getTradingFloorTradeParams(tradingFloor: string): Promise<TTradingFloorLensTradeParamsStruct>;
|
|
52
|
+
generatePositionHashId(settlementAsset: string, trader: string, pairId: number, index: number, callOptions?: CallOptions): Promise<string>;
|
|
53
|
+
getAllPositionsDataForAllTraders(params: TGetAllPositionsDataForAllTradersParamsStruct, callOptions?: CallOptions): Promise<TGetAllPositionsDataForAllTradersResultStruct>;
|
|
54
|
+
getAllPositionsLiquidationInfo(params: TGetAllPositionsLiquidationInfoParamsStruct, phases?: number[], callOptions?: CallOptions): Promise<TGetAllPositionsLiquidationInfoResultStruct>;
|
|
55
|
+
getCompletePositionData(tradingFloor: string, positionId: BytesLike, callOptions?: CallOptions): Promise<TCompletePositionDataFromLensStruct>;
|
|
56
|
+
getPositionsDataForTrader(tradingFloor: string, trader: string, callOptions?: CallOptions): Promise<TCompletePositionDataFromLensStruct[]>;
|
|
57
|
+
getTradingFloorTradeParams(tradingFloor: string, callOptions?: CallOptions): Promise<TTradingFloorLensTradeParamsStruct>;
|
|
57
58
|
}
|
|
58
59
|
//# sourceMappingURL=ITradingFloorLensService.d.ts.map
|
package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ITradingFloorLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EAAE,uBAAuB,EAAE,MAAM,4DAA4D,CAAC;AACrG,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"ITradingFloorLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EAAE,uBAAuB,EAAE,MAAM,4DAA4D,CAAC;AACrG,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAGxC,MAAM,MAAM,mCAAmC,GAAG,IAAI,CACpD,oBAAoB,CAAC,uBAAuB,CAAC,kCAAkC,CAAC,EAC9E,QAAQ,GACR,eAAe,GACf,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2C,CAAC,CAAC;IAExD,uBAAuB,CACrB,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,SAAS,EACrB,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,mCAAmC,CAAC,CAAC;IAEhD,yBAAyB,CACvB,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,MAAM,EACd,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,mCAAmC,EAAE,CAAC,CAAC;IAElD,0BAA0B,CACxB,YAAY,EAAE,MAAM,EACpB,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,kCAAkC,CAAC,CAAC;CAChD"}
|
package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { BytesLike, Provider, Signer } from "ethers";
|
|
2
2
|
import { TradingFloorLens } from "../../typechain/contracts/Peripheral/Lens/TradingFloorLens";
|
|
3
3
|
import { ITradingFloorLensService, TCompletePositionDataFromLensStruct, TGetAllPositionsDataForAllTradersResultStruct, TGetAllPositionsDataForAllTradersParamsStruct, TGetAllPositionsLiquidationInfoResultStruct, TGetAllPositionsLiquidationInfoParamsStruct, TTradingFloorLensTradeParamsStruct } from "./ITradingFloorLensService";
|
|
4
|
+
import { CallOptions } from "../common";
|
|
4
5
|
export declare class TradingFloorLensService implements ITradingFloorLensService {
|
|
5
6
|
private readonly contract;
|
|
6
7
|
constructor(signerOrProvider: Signer | Provider, contractAddress: string);
|
|
7
|
-
generatePositionHashId(settlementAsset: string, trader: string, pairId: number, index: number): Promise<string>;
|
|
8
|
-
getAllPositionsDataForAllTraders(params: TGetAllPositionsDataForAllTradersParamsStruct): Promise<TGetAllPositionsDataForAllTradersResultStruct>;
|
|
9
|
-
getAllPositionsLiquidationInfo(params: TGetAllPositionsLiquidationInfoParamsStruct, phases?: number[]): Promise<TGetAllPositionsLiquidationInfoResultStruct>;
|
|
10
|
-
getCompletePositionData(tradingFloor: string, positionId: BytesLike): Promise<TCompletePositionDataFromLensStruct>;
|
|
11
|
-
getPositionsDataForTrader(tradingFloor: string, trader: string): Promise<TCompletePositionDataFromLensStruct[]>;
|
|
12
|
-
getTradingFloorTradeParams(tradingFloor: string): Promise<TTradingFloorLensTradeParamsStruct>;
|
|
8
|
+
generatePositionHashId(settlementAsset: string, trader: string, pairId: number, index: number, callOptions?: CallOptions): Promise<string>;
|
|
9
|
+
getAllPositionsDataForAllTraders(params: TGetAllPositionsDataForAllTradersParamsStruct, callOptions?: CallOptions): Promise<TGetAllPositionsDataForAllTradersResultStruct>;
|
|
10
|
+
getAllPositionsLiquidationInfo(params: TGetAllPositionsLiquidationInfoParamsStruct, phases?: number[], callOptions?: CallOptions): Promise<TGetAllPositionsLiquidationInfoResultStruct>;
|
|
11
|
+
getCompletePositionData(tradingFloor: string, positionId: BytesLike, callOptions?: CallOptions): Promise<TCompletePositionDataFromLensStruct>;
|
|
12
|
+
getPositionsDataForTrader(tradingFloor: string, trader: string, callOptions?: CallOptions): Promise<TCompletePositionDataFromLensStruct[]>;
|
|
13
|
+
getTradingFloorTradeParams(tradingFloor: string, callOptions?: CallOptions): Promise<TTradingFloorLensTradeParamsStruct>;
|
|
13
14
|
getContract(): TradingFloorLens;
|
|
14
15
|
}
|
|
15
16
|
//# sourceMappingURL=TradingFloorLensService.d.ts.map
|
package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TradingFloorLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4DAA4D,CAAC;AAG9F,OAAO,EACL,wBAAwB,EACxB,mCAAmC,EACnC,6CAA6C,EAC7C,6CAA6C,EAC7C,2CAA2C,EAC3C,2CAA2C,EAE3C,kCAAkC,EAKnC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"TradingFloorLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4DAA4D,CAAC;AAG9F,OAAO,EACL,wBAAwB,EACxB,mCAAmC,EACnC,6CAA6C,EAC7C,6CAA6C,EAC7C,2CAA2C,EAC3C,2CAA2C,EAE3C,kCAAkC,EAKnC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAyCxC,qBAAa,uBAAwB,YAAW,wBAAwB;IACtE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAmB;gBAEhC,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EAAE,eAAe,EAAE,MAAM;IAOlE,sBAAsB,CAC1B,eAAe,EAAE,MAAM,EACvB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,EACb,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,MAAM,CAAC;IAUZ,gCAAgC,CACpC,MAAM,EAAE,6CAA6C,EACrD,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,6CAA6C,CAAC;IA+BnD,8BAA8B,CAClC,MAAM,EAAE,2CAA2C,EACnD,MAAM,CAAC,EAAE,MAAM,EAAE,EACjB,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,2CAA2C,CAAC;IAyCjD,uBAAuB,CAC3B,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,SAAS,EACrB,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,mCAAmC,CAAC;IASzC,yBAA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