lynx-client 0.0.32 → 0.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.js +16 -16
- package/dist/cjs/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.js +40 -40
- package/dist/cjs/lib/contractsIntegration/EngineChipService/EngineChipService.js +89 -89
- package/dist/cjs/lib/contractsIntegration/FeatureFlaggerService/FeatureFlaggerService.js +38 -38
- package/dist/cjs/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.js +8 -8
- package/dist/cjs/lib/contractsIntegration/LexLensService/LexLensService.js +50 -50
- package/dist/cjs/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.js +103 -103
- package/dist/cjs/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.js +26 -26
- package/dist/cjs/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.js +78 -78
- package/dist/cjs/lib/contractsIntegration/OrderBookService/OrderBookService.js +38 -38
- package/dist/cjs/lib/contractsIntegration/PNLRService/PNLRService.js +44 -44
- package/dist/cjs/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.js +112 -112
- package/dist/cjs/lib/contractsIntegration/RateModelLensService/RateModelLensService.js +10 -10
- package/dist/cjs/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.js +40 -40
- package/dist/cjs/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +66 -65
- package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +13 -13
- package/dist/cjs/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +86 -86
- package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.js +8 -8
- package/dist/cjs/lib/contractsIntegration/TriggersService/TriggersService.js +80 -80
- package/dist/cjs/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.js +10 -9
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.js +16 -16
- package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts +9 -8
- package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.d.ts +21 -20
- package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.js +40 -40
- package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.d.ts +21 -20
- package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/EngineChipService/EngineChipService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/EngineChipService/EngineChipService.js +89 -89
- package/dist/esm/lib/contractsIntegration/EngineChipService/IEngineChipService.d.ts +37 -37
- package/dist/esm/lib/contractsIntegration/EngineChipService/IEngineChipService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/FeatureFlaggerService/FeatureFlaggerService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/FeatureFlaggerService/FeatureFlaggerService.js +38 -38
- package/dist/esm/lib/contractsIntegration/FeatureFlaggerService/IFeatureFlaggerService.d.ts +14 -14
- package/dist/esm/lib/contractsIntegration/FeatureFlaggerService/IFeatureFlaggerService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts +5 -4
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts +5 -4
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.js +8 -8
- package/dist/esm/lib/contractsIntegration/LexLensService/ILexLensService.d.ts +26 -25
- package/dist/esm/lib/contractsIntegration/LexLensService/ILexLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.d.ts +26 -25
- package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.js +50 -50
- package/dist/esm/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts +73 -73
- package/dist/esm/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.js +103 -103
- package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.d.ts +14 -13
- package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.d.ts +14 -13
- package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.js +26 -26
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts +34 -34
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.js +78 -78
- package/dist/esm/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts +13 -13
- package/dist/esm/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.js +38 -38
- package/dist/esm/lib/contractsIntegration/PNLRService/IPNLRService.d.ts +17 -17
- package/dist/esm/lib/contractsIntegration/PNLRService/IPNLRService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/PNLRService/PNLRService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/PNLRService/PNLRService.js +44 -44
- package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts +90 -90
- package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.js +112 -112
- package/dist/esm/lib/contractsIntegration/RateModelLensService/IRateModelLensService.d.ts +11 -5
- package/dist/esm/lib/contractsIntegration/RateModelLensService/IRateModelLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/RateModelLensService/RateModelLensService.d.ts +6 -5
- package/dist/esm/lib/contractsIntegration/RateModelLensService/RateModelLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/RateModelLensService/RateModelLensService.js +10 -10
- package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.d.ts +21 -20
- package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.d.ts +21 -20
- package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.js +40 -40
- package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts +25 -25
- package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +66 -65
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +7 -6
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts +7 -6
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +13 -13
- package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts +33 -33
- package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +86 -86
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts +5 -4
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts +5 -4
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.js +8 -8
- package/dist/esm/lib/contractsIntegration/TriggersService/ITriggersService.d.ts +36 -36
- package/dist/esm/lib/contractsIntegration/TriggersService/ITriggersService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.js +80 -80
- package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.d.ts +6 -5
- package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.js +10 -9
- package/dist/esm/lib/contractsIntegration/common/ILynxVersionedContract.d.ts +5 -4
- package/dist/esm/lib/contractsIntegration/common/ILynxVersionedContract.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/common/IPendableAdmin.d.ts +3 -2
- package/dist/esm/lib/contractsIntegration/common/IPendableAdmin.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/common/IPendableImplementation.d.ts +3 -2
- package/dist/esm/lib/contractsIntegration/common/IPendableImplementation.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/common/IProtocolConstants.d.ts +6 -5
- package/dist/esm/lib/contractsIntegration/common/IProtocolConstants.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/common/index.d.ts +20 -0
- package/dist/esm/lib/contractsIntegration/common/index.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts +9 -8
- package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.d.ts +21 -20
- package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.d.ts +21 -20
- package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/EngineChipService/EngineChipService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/EngineChipService/IEngineChipService.d.ts +37 -37
- package/dist/types/lib/contractsIntegration/EngineChipService/IEngineChipService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/FeatureFlaggerService/FeatureFlaggerService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/FeatureFlaggerService/IFeatureFlaggerService.d.ts +14 -14
- package/dist/types/lib/contractsIntegration/FeatureFlaggerService/IFeatureFlaggerService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts +5 -4
- package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts +5 -4
- package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/LexLensService/ILexLensService.d.ts +26 -25
- package/dist/types/lib/contractsIntegration/LexLensService/ILexLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/LexLensService/LexLensService.d.ts +26 -25
- package/dist/types/lib/contractsIntegration/LexLensService/LexLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts +73 -73
- package/dist/types/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.d.ts +14 -13
- package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.d.ts +14 -13
- package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts +34 -34
- package/dist/types/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts +13 -13
- package/dist/types/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/PNLRService/IPNLRService.d.ts +17 -17
- package/dist/types/lib/contractsIntegration/PNLRService/IPNLRService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/PNLRService/PNLRService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts +90 -90
- package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/RateModelLensService/IRateModelLensService.d.ts +11 -5
- package/dist/types/lib/contractsIntegration/RateModelLensService/IRateModelLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/RateModelLensService/RateModelLensService.d.ts +6 -5
- package/dist/types/lib/contractsIntegration/RateModelLensService/RateModelLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.d.ts +21 -20
- package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.d.ts +21 -20
- package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts +25 -25
- package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +7 -6
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts +7 -6
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts +33 -33
- package/dist/types/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts +5 -4
- package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts +5 -4
- package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TriggersService/ITriggersService.d.ts +36 -36
- package/dist/types/lib/contractsIntegration/TriggersService/ITriggersService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TriggersService/TriggersService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.d.ts +6 -5
- package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/common/ILynxVersionedContract.d.ts +5 -4
- package/dist/types/lib/contractsIntegration/common/ILynxVersionedContract.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/common/IPendableAdmin.d.ts +3 -2
- package/dist/types/lib/contractsIntegration/common/IPendableAdmin.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/common/IPendableImplementation.d.ts +3 -2
- package/dist/types/lib/contractsIntegration/common/IPendableImplementation.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/common/IProtocolConstants.d.ts +6 -5
- package/dist/types/lib/contractsIntegration/common/IProtocolConstants.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/common/index.d.ts +20 -0
- package/dist/types/lib/contractsIntegration/common/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PairConfigsInTriggersStruct, CompleteTradersPortalConfigurationsStruct, CompleteTriggerConfigurationsStruct } from "../../typechain/contracts/Peripheral/Lens/TriggersAndPortalLens";
|
|
2
2
|
import { TSafeBigNumberStruct } from "../../utils/ethersTypes";
|
|
3
|
+
import { CallOptions } from "../common";
|
|
3
4
|
export type TPairConfigsInTriggersStruct = Omit<TSafeBigNumberStruct<PairConfigsInTriggersStruct>, "pairId" | "maxConfidenceFraction" | "spreadFraction"> & {
|
|
4
5
|
pairId: number;
|
|
5
6
|
maxConfidenceFraction: number;
|
|
@@ -22,10 +23,10 @@ export type TCompleteTriggerConfigurationsStruct = Omit<TSafeBigNumberStruct<Com
|
|
|
22
23
|
maxTriggersPerBlock: number;
|
|
23
24
|
};
|
|
24
25
|
export interface ITriggersAndPortalLensService {
|
|
25
|
-
getPairConfigsInTriggers(triggers: string, pairId: number): Promise<TPairConfigsInTriggersStruct>;
|
|
26
|
-
getPairsConfigsInTriggers(triggers: string, pairIds: number[]): Promise<TPairConfigsInTriggersStruct[]>;
|
|
27
|
-
getTradersPortalConfigurations(tradersPortal: string): Promise<TCompleteTradersPortalConfigurationsStruct>;
|
|
28
|
-
getTriggersConfigurations(triggers: string): Promise<TCompleteTriggerConfigurationsStruct>;
|
|
26
|
+
getPairConfigsInTriggers(triggers: string, pairId: number, callOptions?: CallOptions): Promise<TPairConfigsInTriggersStruct>;
|
|
27
|
+
getPairsConfigsInTriggers(triggers: string, pairIds: number[], callOptions?: CallOptions): Promise<TPairConfigsInTriggersStruct[]>;
|
|
28
|
+
getTradersPortalConfigurations(tradersPortal: string, callOptions?: CallOptions): Promise<TCompleteTradersPortalConfigurationsStruct>;
|
|
29
|
+
getTriggersConfigurations(triggers: string, callOptions?: CallOptions): Promise<TCompleteTriggerConfigurationsStruct>;
|
|
29
30
|
}
|
|
30
31
|
export declare const EMPTY_PAIR_CONFIGS_IN_TRIGGERS: TPairConfigsInTriggersStruct;
|
|
31
32
|
export declare const EMPTY_COMPLETE_TRADERS_PORTAL_CONFIGURATIONS: TCompleteTradersPortalConfigurationsStruct;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ITriggersAndPortalLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,yCAAyC,EACzC,mCAAmC,EACpC,MAAM,iEAAiE,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"ITriggersAndPortalLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,yCAAyC,EACzC,mCAAmC,EACpC,MAAM,iEAAiE,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAGxC,MAAM,MAAM,4BAA4B,GAAG,IAAI,CAC7C,oBAAoB,CAAC,2BAA2B,CAAC,EACjD,QAAQ,GAAG,uBAAuB,GAAG,gBAAgB,CACtD,GAAG;IACF,MAAM,EAAE,MAAM,CAAC;IACf,qBAAqB,EAAE,MAAM,CAAC;IAC9B,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,0CAA0C,GAAG,IAAI,CAC3D,oBAAoB,CAAC,yCAAyC,CAAC,EAC/D,qBAAqB,GAAG,qBAAqB,GAAG,2BAA2B,CAC5E,GAAG;IACF,mBAAmB,EAAE,MAAM,CAAC;IAC5B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,yBAAyB,EAAE,MAAM,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,oCAAoC,GAAG,IAAI,CACrD,oBAAoB,CAAC,mCAAmC,CAAC,EACvD,iCAAiC,GACjC,iCAAiC,GACjC,qBAAqB,GACrB,2BAA2B,GAC3B,gCAAgC,GAChC,gCAAgC,GAChC,8BAA8B,GAC9B,qCAAqC,GACrC,qBAAqB,CACxB,GAAG;IACF,+BAA+B,EAAE,MAAM,CAAC;IACxC,+BAA+B,EAAE,MAAM,CAAC;IACxC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,yBAAyB,EAAE,MAAM,CAAC;IAClC,8BAA8B,EAAE,MAAM,CAAC;IACvC,8BAA8B,EAAE,MAAM,CAAC;IACvC,4BAA4B,EAAE,MAAM,CAAC;IACrC,mCAAmC,EAAE,MAAM,CAAC;IAC5C,mBAAmB,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,MAAM,WAAW,6BAA6B;IAC5C,wBAAwB,CACtB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,4BAA4B,CAAC,CAAC;IAEzC,yBAAyB,CACvB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,EAAE,EACjB,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,4BAA4B,EAAE,CAAC,CAAC;IAE3C,8BAA8B,CAC5B,aAAa,EAAE,MAAM,EACrB,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,0CAA0C,CAAC,CAAC;IAEvD,yBAAyB,CACvB,QAAQ,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,oCAAoC,CAAC,CAAC;CAClD;AAED,eAAO,MAAM,8BAA8B,EAAE,4BAI5C,CAAC;AAEF,eAAO,MAAM,4CAA4C,EAAE,0CAWxD,CAAC;AAEJ,eAAO,MAAM,qCAAqC,EAAE,oCAajD,CAAC"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { Provider, Signer } from "ethers";
|
|
2
2
|
import { TriggersAndPortalLens } from "../../typechain/contracts/Peripheral/Lens/TriggersAndPortalLens";
|
|
3
3
|
import { ITriggersAndPortalLensService, TPairConfigsInTriggersStruct, TCompleteTradersPortalConfigurationsStruct, TCompleteTriggerConfigurationsStruct } from "./ITriggersAndPortalLensService";
|
|
4
|
+
import { CallOptions } from "../common";
|
|
4
5
|
export declare class TriggersAndPortalLensService implements ITriggersAndPortalLensService {
|
|
5
6
|
private readonly contract;
|
|
6
7
|
constructor(signerOrProvider: Signer | Provider, address: string);
|
|
7
|
-
getPairConfigsInTriggers(triggers: string, pairId: number): Promise<TPairConfigsInTriggersStruct>;
|
|
8
|
-
getPairsConfigsInTriggers(triggers: string, pairIds: number[]): Promise<TPairConfigsInTriggersStruct[]>;
|
|
9
|
-
getTradersPortalConfigurations(tradersPortal: string): Promise<TCompleteTradersPortalConfigurationsStruct>;
|
|
10
|
-
getTriggersConfigurations(triggers: string): Promise<TCompleteTriggerConfigurationsStruct>;
|
|
8
|
+
getPairConfigsInTriggers(triggers: string, pairId: number, callOptions?: CallOptions): Promise<TPairConfigsInTriggersStruct>;
|
|
9
|
+
getPairsConfigsInTriggers(triggers: string, pairIds: number[], callOptions?: CallOptions): Promise<TPairConfigsInTriggersStruct[]>;
|
|
10
|
+
getTradersPortalConfigurations(tradersPortal: string, callOptions?: CallOptions): Promise<TCompleteTradersPortalConfigurationsStruct>;
|
|
11
|
+
getTriggersConfigurations(triggers: string, callOptions?: CallOptions): Promise<TCompleteTriggerConfigurationsStruct>;
|
|
11
12
|
getContract(): TriggersAndPortalLens;
|
|
12
13
|
}
|
|
13
14
|
//# sourceMappingURL=TriggersAndPortalLensService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TriggersAndPortalLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,iEAAiE,CAAC;AAGxG,OAAO,EACL,6BAA6B,EAC7B,4BAA4B,EAC5B,0CAA0C,EAC1C,oCAAoC,EAIrC,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"TriggersAndPortalLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,iEAAiE,CAAC;AAGxG,OAAO,EACL,6BAA6B,EAC7B,4BAA4B,EAC5B,0CAA0C,EAC1C,oCAAoC,EAIrC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,qBAAa,4BAA6B,YAAW,6BAA6B;IAChF,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAwB;gBAErC,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EAAE,OAAO,EAAE,MAAM;IAI1D,wBAAwB,CAC5B,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,4BAA4B,CAAC;IAWlC,yBAAyB,CAC7B,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,EAAE,EACjB,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,4BAA4B,EAAE,CAAC;IAepC,8BAA8B,CAClC,aAAa,EAAE,MAAM,EACrB,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,0CAA0C,CAAC;IAWhD,yBAAyB,CAC7B,QAAQ,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,oCAAoC,CAAC;IAiBhD,WAAW,IAAI,qBAAqB;CAGrC"}
|
|
@@ -8,8 +8,8 @@ class TriggersAndPortalLensService {
|
|
|
8
8
|
constructor(signerOrProvider, address) {
|
|
9
9
|
this.contract = TriggersAndPortalLens__factory_1.TriggersAndPortalLens__factory.connect(address, signerOrProvider);
|
|
10
10
|
}
|
|
11
|
-
async getPairConfigsInTriggers(triggers, pairId) {
|
|
12
|
-
const result = await this.contract.getPairConfigsInTriggers(triggers, BigInt(pairId));
|
|
11
|
+
async getPairConfigsInTriggers(triggers, pairId, callOptions) {
|
|
12
|
+
const result = await this.contract.getPairConfigsInTriggers(triggers, BigInt(pairId), { ...callOptions });
|
|
13
13
|
const baseStruct = (0, ethersTypes_1.ethersStructResponseToObject)(result, ITriggersAndPortalLensService_1.EMPTY_PAIR_CONFIGS_IN_TRIGGERS);
|
|
14
14
|
return {
|
|
15
15
|
...baseStruct,
|
|
@@ -18,8 +18,8 @@ class TriggersAndPortalLensService {
|
|
|
18
18
|
spreadFraction: Number(baseStruct.spreadFraction),
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
async getPairsConfigsInTriggers(triggers, pairIds) {
|
|
22
|
-
const result = await this.contract.getPairsConfigsInTriggers(triggers, pairIds.map(id => BigInt(id)));
|
|
21
|
+
async getPairsConfigsInTriggers(triggers, pairIds, callOptions) {
|
|
22
|
+
const result = await this.contract.getPairsConfigsInTriggers(triggers, pairIds.map(id => BigInt(id)), { ...callOptions });
|
|
23
23
|
const baseArray = (0, ethersTypes_1.ethersStructResponseToArray)(result, ITriggersAndPortalLensService_1.EMPTY_PAIR_CONFIGS_IN_TRIGGERS);
|
|
24
24
|
return baseArray.map(item => ({
|
|
25
25
|
...item,
|
|
@@ -28,8 +28,8 @@ class TriggersAndPortalLensService {
|
|
|
28
28
|
spreadFraction: Number(item.spreadFraction),
|
|
29
29
|
}));
|
|
30
30
|
}
|
|
31
|
-
async getTradersPortalConfigurations(tradersPortal) {
|
|
32
|
-
const result = await this.contract.getTradersPortalConfigurations(tradersPortal);
|
|
31
|
+
async getTradersPortalConfigurations(tradersPortal, callOptions) {
|
|
32
|
+
const result = await this.contract.getTradersPortalConfigurations(tradersPortal, { ...callOptions });
|
|
33
33
|
const baseStruct = (0, ethersTypes_1.ethersStructResponseToObject)(result, ITriggersAndPortalLensService_1.EMPTY_COMPLETE_TRADERS_PORTAL_CONFIGURATIONS);
|
|
34
34
|
return {
|
|
35
35
|
...baseStruct,
|
|
@@ -38,8 +38,8 @@ class TriggersAndPortalLensService {
|
|
|
38
38
|
minLiveTimeForMarketClose: Number(baseStruct.minLiveTimeForMarketClose),
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
async getTriggersConfigurations(triggers) {
|
|
42
|
-
const result = await this.contract.getTriggersConfigurations(triggers);
|
|
41
|
+
async getTriggersConfigurations(triggers, callOptions) {
|
|
42
|
+
const result = await this.contract.getTriggersConfigurations(triggers, { ...callOptions });
|
|
43
43
|
const baseStruct = (0, ethersTypes_1.ethersStructResponseToObject)(result, ITriggersAndPortalLensService_1.EMPTY_COMPLETE_TRIGGER_CONFIGURATIONS);
|
|
44
44
|
return {
|
|
45
45
|
...baseStruct,
|
|
@@ -1,59 +1,59 @@
|
|
|
1
1
|
import { BytesLike, ContractTransactionResponse } from "ethers";
|
|
2
|
-
import { IPendableAdmin, IProtocolConstants } from "../common";
|
|
2
|
+
import { IPendableAdmin, IProtocolConstants, TransactionOptions, CallOptions } from "../common";
|
|
3
3
|
export interface ITriggersFunctionsGroup_OpenTriggers {
|
|
4
|
-
market(positionId: BytesLike, pricePayload: BytesLike[], nativeFee: bigint): Promise<ContractTransactionResponse>;
|
|
5
|
-
limit(positionId: BytesLike, pricePayload: BytesLike[], nativeFee: bigint): Promise<ContractTransactionResponse>;
|
|
4
|
+
market(positionId: BytesLike, pricePayload: BytesLike[], nativeFee: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
5
|
+
limit(positionId: BytesLike, pricePayload: BytesLike[], nativeFee: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
6
6
|
}
|
|
7
7
|
export interface ITriggersFunctionsGroup_CloseTriggers {
|
|
8
|
-
market(positionId: BytesLike, pricePayload: BytesLike[], nativeFee: bigint): Promise<ContractTransactionResponse>;
|
|
9
|
-
takeProfit(positionId: BytesLike, pricePayload: BytesLike[], nativeFee: bigint): Promise<ContractTransactionResponse>;
|
|
10
|
-
stopLoss(positionId: BytesLike, pricePayload: BytesLike[], nativeFee: bigint): Promise<ContractTransactionResponse>;
|
|
11
|
-
liquidation(positionId: BytesLike, pricePayload: BytesLike[], nativeFee: bigint): Promise<ContractTransactionResponse>;
|
|
8
|
+
market(positionId: BytesLike, pricePayload: BytesLike[], nativeFee: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
9
|
+
takeProfit(positionId: BytesLike, pricePayload: BytesLike[], nativeFee: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
10
|
+
stopLoss(positionId: BytesLike, pricePayload: BytesLike[], nativeFee: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
11
|
+
liquidation(positionId: BytesLike, pricePayload: BytesLike[], nativeFee: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
12
12
|
}
|
|
13
13
|
export interface ITriggersFunctionsGroup_UpdateTriggers {
|
|
14
|
-
takeProfit(positionId: BytesLike, pricePayload: BytesLike[], nativeFee: bigint): Promise<ContractTransactionResponse>;
|
|
15
|
-
stopLoss(positionId: BytesLike, pricePayload: BytesLike[], nativeFee: bigint): Promise<ContractTransactionResponse>;
|
|
16
|
-
takeProfitAndStopLoss(positionId: BytesLike, pricePayload: BytesLike[], nativeFee: bigint): Promise<ContractTransactionResponse>;
|
|
14
|
+
takeProfit(positionId: BytesLike, pricePayload: BytesLike[], nativeFee: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
15
|
+
stopLoss(positionId: BytesLike, pricePayload: BytesLike[], nativeFee: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
16
|
+
takeProfitAndStopLoss(positionId: BytesLike, pricePayload: BytesLike[], nativeFee: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
17
17
|
}
|
|
18
18
|
export interface ITriggersFunctionsGroup_TimeoutTriggers {
|
|
19
|
-
marketOpen(positionId: BytesLike): Promise<ContractTransactionResponse>;
|
|
20
|
-
marketClose(positionId: BytesLike): Promise<ContractTransactionResponse>;
|
|
21
|
-
updatePosition(positionId: BytesLike): Promise<ContractTransactionResponse>;
|
|
19
|
+
marketOpen(positionId: BytesLike, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
20
|
+
marketClose(positionId: BytesLike, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
21
|
+
updatePosition(positionId: BytesLike, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
22
22
|
}
|
|
23
23
|
export interface ITriggersFunctionsGroup_ContractReferences {
|
|
24
|
-
orderBook(): Promise<string>;
|
|
25
|
-
tradingFloor(): Promise<string>;
|
|
26
|
-
priceValidator(): Promise<string>;
|
|
24
|
+
orderBook(callOptions?: CallOptions): Promise<string>;
|
|
25
|
+
tradingFloor(callOptions?: CallOptions): Promise<string>;
|
|
26
|
+
priceValidator(callOptions?: CallOptions): Promise<string>;
|
|
27
27
|
}
|
|
28
28
|
export interface ITriggersFunctionsGroup_Status {
|
|
29
|
-
isDone(): Promise<boolean>;
|
|
30
|
-
isPaused(): Promise<boolean>;
|
|
29
|
+
isDone(callOptions?: CallOptions): Promise<boolean>;
|
|
30
|
+
isPaused(callOptions?: CallOptions): Promise<boolean>;
|
|
31
31
|
}
|
|
32
32
|
export interface ITriggersFunctionsGroup_Configuration {
|
|
33
|
-
marketOrderCancelFeeFraction(): Promise<bigint>;
|
|
34
|
-
marketOrderTightTimeRange(): Promise<bigint>;
|
|
35
|
-
marketOrdersTimeout(): Promise<bigint>;
|
|
36
|
-
maxTriggerPeriodForMarketOrders(): Promise<bigint>;
|
|
37
|
-
minTriggerPeriodForLimitOrders(): Promise<bigint>;
|
|
38
|
-
minTriggerPeriodForMarketOrders(): Promise<bigint>;
|
|
39
|
-
openPositionCancellationFeeFraction(): Promise<bigint>;
|
|
40
|
-
triggerPriceFreshnessTimeRange(): Promise<bigint>;
|
|
41
|
-
maxTriggersPerBlock(): Promise<bigint>;
|
|
42
|
-
triggersPerBlock(blockNumber: bigint): Promise<bigint>;
|
|
43
|
-
limitsMarginFraction(): Promise<bigint>;
|
|
33
|
+
marketOrderCancelFeeFraction(callOptions?: CallOptions): Promise<bigint>;
|
|
34
|
+
marketOrderTightTimeRange(callOptions?: CallOptions): Promise<bigint>;
|
|
35
|
+
marketOrdersTimeout(callOptions?: CallOptions): Promise<bigint>;
|
|
36
|
+
maxTriggerPeriodForMarketOrders(callOptions?: CallOptions): Promise<bigint>;
|
|
37
|
+
minTriggerPeriodForLimitOrders(callOptions?: CallOptions): Promise<bigint>;
|
|
38
|
+
minTriggerPeriodForMarketOrders(callOptions?: CallOptions): Promise<bigint>;
|
|
39
|
+
openPositionCancellationFeeFraction(callOptions?: CallOptions): Promise<bigint>;
|
|
40
|
+
triggerPriceFreshnessTimeRange(callOptions?: CallOptions): Promise<bigint>;
|
|
41
|
+
maxTriggersPerBlock(callOptions?: CallOptions): Promise<bigint>;
|
|
42
|
+
triggersPerBlock(blockNumber: bigint, callOptions?: CallOptions): Promise<bigint>;
|
|
43
|
+
limitsMarginFraction(callOptions?: CallOptions): Promise<bigint>;
|
|
44
44
|
}
|
|
45
45
|
export interface ITriggersFunctionsGroup_PairConfiguration {
|
|
46
|
-
maxConfidenceFractionForPair(pairId: bigint): Promise<bigint>;
|
|
47
|
-
spreadFractionForPair(pairId: bigint): Promise<bigint>;
|
|
46
|
+
maxConfidenceFractionForPair(pairId: bigint, callOptions?: CallOptions): Promise<bigint>;
|
|
47
|
+
spreadFractionForPair(pairId: bigint, callOptions?: CallOptions): Promise<bigint>;
|
|
48
48
|
}
|
|
49
49
|
export interface ITriggersFunctionsGroup_Permissions {
|
|
50
|
-
isAllowedToTrigger(account: string): Promise<boolean>;
|
|
51
|
-
getAllTriggerPermissionedAccounts(): Promise<string[]>;
|
|
50
|
+
isAllowedToTrigger(account: string, callOptions?: CallOptions): Promise<boolean>;
|
|
51
|
+
getAllTriggerPermissionedAccounts(callOptions?: CallOptions): Promise<string[]>;
|
|
52
52
|
}
|
|
53
53
|
export interface ITriggersFunctionsGroup_Constants extends IProtocolConstants {
|
|
54
|
-
MAX_ALLOWED_CONFIDENCE_FRACTION(): Promise<bigint>;
|
|
55
|
-
MAX_ALLOWED_SPREAD_FRACTION(): Promise<bigint>;
|
|
56
|
-
ACCURACY_IMPROVEMENT_SCALE(): Promise<bigint>;
|
|
54
|
+
MAX_ALLOWED_CONFIDENCE_FRACTION(callOptions?: CallOptions): Promise<bigint>;
|
|
55
|
+
MAX_ALLOWED_SPREAD_FRACTION(callOptions?: CallOptions): Promise<bigint>;
|
|
56
|
+
ACCURACY_IMPROVEMENT_SCALE(callOptions?: CallOptions): Promise<bigint>;
|
|
57
57
|
}
|
|
58
58
|
export interface ITriggersService {
|
|
59
59
|
openTriggers: ITriggersFunctionsGroup_OpenTriggers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ITriggersService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TriggersService/ITriggersService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,2BAA2B,EAAE,MAAM,QAAQ,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"ITriggersService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TriggersService/ITriggersService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,2BAA2B,EAAE,MAAM,QAAQ,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAEhG,MAAM,WAAW,oCAAoC;IACnD,MAAM,CACJ,UAAU,EAAE,SAAS,EACrB,YAAY,EAAE,SAAS,EAAE,EACzB,SAAS,EAAE,MAAM,EACjB,kBAAkB,CAAC,EAAE,kBAAkB,GACtC,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAExC,KAAK,CACH,UAAU,EAAE,SAAS,EACrB,YAAY,EAAE,SAAS,EAAE,EACzB,SAAS,EAAE,MAAM,EACjB,kBAAkB,CAAC,EAAE,kBAAkB,GACtC,OAAO,CAAC,2BAA2B,CAAC,CAAC;CACzC;AAED,MAAM,WAAW,qCAAqC;IACpD,MAAM,CACJ,UAAU,EAAE,SAAS,EACrB,YAAY,EAAE,SAAS,EAAE,EACzB,SAAS,EAAE,MAAM,EACjB,kBAAkB,CAAC,EAAE,kBAAkB,GACtC,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAExC,UAAU,CACR,UAAU,EAAE,SAAS,EACrB,YAAY,EAAE,SAAS,EAAE,EACzB,SAAS,EAAE,MAAM,EACjB,kBAAkB,CAAC,EAAE,kBAAkB,GACtC,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAExC,QAAQ,CACN,UAAU,EAAE,SAAS,EACrB,YAAY,EAAE,SAAS,EAAE,EACzB,SAAS,EAAE,MAAM,EACjB,kBAAkB,CAAC,EAAE,kBAAkB,GACtC,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAExC,WAAW,CACT,UAAU,EAAE,SAAS,EACrB,YAAY,EAAE,SAAS,EAAE,EACzB,SAAS,EAAE,MAAM,EACjB,kBAAkB,CAAC,EAAE,kBAAkB,GACtC,OAAO,CAAC,2BAA2B,CAAC,CAAC;CACzC;AAED,MAAM,WAAW,sCAAsC;IACrD,UAAU,CACR,UAAU,EAAE,SAAS,EACrB,YAAY,EAAE,SAAS,EAAE,EACzB,SAAS,EAAE,MAAM,EACjB,kBAAkB,CAAC,EAAE,kBAAkB,GACtC,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAExC,QAAQ,CACN,UAAU,EAAE,SAAS,EACrB,YAAY,EAAE,SAAS,EAAE,EACzB,SAAS,EAAE,MAAM,EACjB,kBAAkB,CAAC,EAAE,kBAAkB,GACtC,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAExC,qBAAqB,CACnB,UAAU,EAAE,SAAS,EACrB,YAAY,EAAE,SAAS,EAAE,EACzB,SAAS,EAAE,MAAM,EACjB,kBAAkB,CAAC,EAAE,kBAAkB,GACtC,OAAO,CAAC,2BAA2B,CAAC,CAAC;CACzC;AAED,MAAM,WAAW,uCAAuC;IACtD,UAAU,CACR,UAAU,EAAE,SAAS,EACrB,kBAAkB,CAAC,EAAE,kBAAkB,GACtC,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAExC,WAAW,CACT,UAAU,EAAE,SAAS,EACrB,kBAAkB,CAAC,EAAE,kBAAkB,GACtC,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAExC,cAAc,CACZ,UAAU,EAAE,SAAS,EACrB,kBAAkB,CAAC,EAAE,kBAAkB,GACtC,OAAO,CAAC,2BAA2B,CAAC,CAAC;CACzC;AAED,MAAM,WAAW,0CAA0C;IACzD,SAAS,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACtD,YAAY,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACzD,cAAc,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAC5D;AAED,MAAM,WAAW,8BAA8B;IAC7C,MAAM,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACpD,QAAQ,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACvD;AAED,MAAM,WAAW,qCAAqC;IACpD,4BAA4B,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACzE,yBAAyB,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACtE,mBAAmB,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAChE,+BAA+B,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC5E,8BAA8B,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC3E,+BAA+B,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC5E,mCAAmC,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAChF,8BAA8B,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC3E,mBAAmB,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAChE,gBAAgB,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAClF,oBAAoB,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAClE;AAED,MAAM,WAAW,yCAAyC;IACxD,4BAA4B,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACzF,qBAAqB,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CACnF;AAED,MAAM,WAAW,mCAAmC;IAClD,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACjF,iCAAiC,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;CACjF;AAED,MAAM,WAAW,iCAAkC,SAAQ,kBAAkB;IAE3E,+BAA+B,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC5E,2BAA2B,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAGxE,0BAA0B,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CACxE;AAED,MAAM,WAAW,gBAAgB;IAC/B,YAAY,EAAE,oCAAoC,CAAC;IACnD,aAAa,EAAE,qCAAqC,CAAC;IACrD,cAAc,EAAE,sCAAsC,CAAC;IACvD,eAAe,EAAE,uCAAuC,CAAC;IACzD,kBAAkB,EAAE,0CAA0C,CAAC;IAC/D,aAAa,EAAE,cAAc,CAAC;IAC9B,MAAM,EAAE,8BAA8B,CAAC;IACvC,aAAa,EAAE,qCAAqC,CAAC;IACrD,iBAAiB,EAAE,yCAAyC,CAAC;IAC7D,WAAW,EAAE,mCAAmC,CAAC;IACjD,SAAS,EAAE,iCAAiC,CAAC;CAC9C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TriggersService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TriggersService/TriggersService.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,MAAM,EACN,QAAQ,EAET,MAAM,QAAQ,CAAC;AAEhB,OAAO,EAAE,UAAU,EAAE,MAAM,oDAAoD,CAAC;AAEhF,OAAO,EACL,gBAAgB,EAChB,oCAAoC,EACpC,qCAAqC,EACrC,sCAAsC,EACtC,uCAAuC,EACvC,0CAA0C,EAC1C,8BAA8B,EAC9B,qCAAqC,EACrC,yCAAyC,EACzC,mCAAmC,EACnC,iCAAiC,EAClC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"TriggersService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TriggersService/TriggersService.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,MAAM,EACN,QAAQ,EAET,MAAM,QAAQ,CAAC;AAEhB,OAAO,EAAE,UAAU,EAAE,MAAM,oDAAoD,CAAC;AAEhF,OAAO,EACL,gBAAgB,EAChB,oCAAoC,EACpC,qCAAqC,EACrC,sCAAsC,EACtC,uCAAuC,EACvC,0CAA0C,EAC1C,8BAA8B,EAC9B,qCAAqC,EACrC,yCAAyC,EACzC,mCAAmC,EACnC,iCAAiC,EAClC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,cAAc,EAAmC,MAAM,WAAW,CAAC;AAwS5E,qBAAa,eAAgB,YAAW,gBAAgB;IAgBpD,OAAO,CAAC,gBAAgB;IAf1B,OAAO,CAAC,gBAAgB,CAAa;IACrC,SAAgB,YAAY,EAAE,oCAAoC,CAAC;IACnE,SAAgB,aAAa,EAAE,qCAAqC,CAAC;IACrE,SAAgB,cAAc,EAAE,sCAAsC,CAAC;IACvE,SAAgB,eAAe,EAAE,uCAAuC,CAAC;IACzE,SAAgB,kBAAkB,EAAE,0CAA0C,CAAC;IAC/E,SAAgB,aAAa,EAAE,cAAc,CAAC;IAC9C,SAAgB,MAAM,EAAE,8BAA8B,CAAC;IACvD,SAAgB,aAAa,EAAE,qCAAqC,CAAC;IACrE,SAAgB,iBAAiB,EAAE,yCAAyC,CAAC;IAC7E,SAAgB,WAAW,EAAE,mCAAmC,CAAC;IACjE,SAAgB,SAAS,EAAE,iCAAiC,CAAC;gBAG3D,OAAO,EAAE,MAAM,EACP,gBAAgB,EAAE,MAAM,GAAG,QAAQ;IAoB7C,WAAW,IAAI,UAAU;CAG1B"}
|
|
@@ -6,175 +6,175 @@ class OpenTriggers {
|
|
|
6
6
|
constructor(triggersContract) {
|
|
7
7
|
this.triggersContract = triggersContract;
|
|
8
8
|
}
|
|
9
|
-
async market(positionId, pricePayload, nativeFee) {
|
|
10
|
-
return this.triggersContract.trigger_openTrade_market(positionId, pricePayload, { value: nativeFee });
|
|
9
|
+
async market(positionId, pricePayload, nativeFee, transactionOptions) {
|
|
10
|
+
return this.triggersContract.trigger_openTrade_market(positionId, pricePayload, { value: nativeFee, ...transactionOptions });
|
|
11
11
|
}
|
|
12
|
-
async limit(positionId, pricePayload, nativeFee) {
|
|
13
|
-
return this.triggersContract.trigger_openTrade_limit(positionId, pricePayload, { value: nativeFee });
|
|
12
|
+
async limit(positionId, pricePayload, nativeFee, transactionOptions) {
|
|
13
|
+
return this.triggersContract.trigger_openTrade_limit(positionId, pricePayload, { value: nativeFee, ...transactionOptions });
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
class CloseTriggers {
|
|
17
17
|
constructor(triggersContract) {
|
|
18
18
|
this.triggersContract = triggersContract;
|
|
19
19
|
}
|
|
20
|
-
async market(positionId, pricePayload, nativeFee) {
|
|
21
|
-
return this.triggersContract.trigger_closeTrade_market(positionId, pricePayload, { value: nativeFee });
|
|
20
|
+
async market(positionId, pricePayload, nativeFee, transactionOptions) {
|
|
21
|
+
return this.triggersContract.trigger_closeTrade_market(positionId, pricePayload, { value: nativeFee, ...transactionOptions });
|
|
22
22
|
}
|
|
23
|
-
async takeProfit(positionId, pricePayload, nativeFee) {
|
|
24
|
-
return this.triggersContract.trigger_closeTrade_TP(positionId, pricePayload, { value: nativeFee });
|
|
23
|
+
async takeProfit(positionId, pricePayload, nativeFee, transactionOptions) {
|
|
24
|
+
return this.triggersContract.trigger_closeTrade_TP(positionId, pricePayload, { value: nativeFee, ...transactionOptions });
|
|
25
25
|
}
|
|
26
|
-
async stopLoss(positionId, pricePayload, nativeFee) {
|
|
27
|
-
return this.triggersContract.trigger_closeTrade_SL(positionId, pricePayload, { value: nativeFee });
|
|
26
|
+
async stopLoss(positionId, pricePayload, nativeFee, transactionOptions) {
|
|
27
|
+
return this.triggersContract.trigger_closeTrade_SL(positionId, pricePayload, { value: nativeFee, ...transactionOptions });
|
|
28
28
|
}
|
|
29
|
-
async liquidation(positionId, pricePayload, nativeFee) {
|
|
30
|
-
return this.triggersContract.trigger_closeTrade_LIQ(positionId, pricePayload, { value: nativeFee });
|
|
29
|
+
async liquidation(positionId, pricePayload, nativeFee, transactionOptions) {
|
|
30
|
+
return this.triggersContract.trigger_closeTrade_LIQ(positionId, pricePayload, { value: nativeFee, ...transactionOptions });
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
class UpdateTriggers {
|
|
34
34
|
constructor(triggersContract) {
|
|
35
35
|
this.triggersContract = triggersContract;
|
|
36
36
|
}
|
|
37
|
-
async takeProfit(positionId, pricePayload, nativeFee) {
|
|
38
|
-
return this.triggersContract.trigger_update_TP(positionId, pricePayload, { value: nativeFee });
|
|
37
|
+
async takeProfit(positionId, pricePayload, nativeFee, transactionOptions) {
|
|
38
|
+
return this.triggersContract.trigger_update_TP(positionId, pricePayload, { value: nativeFee, ...transactionOptions });
|
|
39
39
|
}
|
|
40
|
-
async stopLoss(positionId, pricePayload, nativeFee) {
|
|
41
|
-
return this.triggersContract.trigger_update_SL(positionId, pricePayload, { value: nativeFee });
|
|
40
|
+
async stopLoss(positionId, pricePayload, nativeFee, transactionOptions) {
|
|
41
|
+
return this.triggersContract.trigger_update_SL(positionId, pricePayload, { value: nativeFee, ...transactionOptions });
|
|
42
42
|
}
|
|
43
|
-
async takeProfitAndStopLoss(positionId, pricePayload, nativeFee) {
|
|
44
|
-
return this.triggersContract.trigger_update_TP_and_SL(positionId, pricePayload, { value: nativeFee });
|
|
43
|
+
async takeProfitAndStopLoss(positionId, pricePayload, nativeFee, transactionOptions) {
|
|
44
|
+
return this.triggersContract.trigger_update_TP_and_SL(positionId, pricePayload, { value: nativeFee, ...transactionOptions });
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
class TimeoutTriggers {
|
|
48
48
|
constructor(triggersContract) {
|
|
49
49
|
this.triggersContract = triggersContract;
|
|
50
50
|
}
|
|
51
|
-
async marketOpen(positionId) {
|
|
52
|
-
return this.triggersContract.trigger_timeout_marketOpen(positionId);
|
|
51
|
+
async marketOpen(positionId, transactionOptions) {
|
|
52
|
+
return this.triggersContract.trigger_timeout_marketOpen(positionId, { ...transactionOptions });
|
|
53
53
|
}
|
|
54
|
-
async marketClose(positionId) {
|
|
55
|
-
return this.triggersContract.trigger_timeout_marketClose(positionId);
|
|
54
|
+
async marketClose(positionId, transactionOptions) {
|
|
55
|
+
return this.triggersContract.trigger_timeout_marketClose(positionId, { ...transactionOptions });
|
|
56
56
|
}
|
|
57
|
-
async updatePosition(positionId) {
|
|
58
|
-
return this.triggersContract.trigger_timeout_updatePosition(positionId);
|
|
57
|
+
async updatePosition(positionId, transactionOptions) {
|
|
58
|
+
return this.triggersContract.trigger_timeout_updatePosition(positionId, { ...transactionOptions });
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
class ContractReferences {
|
|
62
62
|
constructor(triggersContract) {
|
|
63
63
|
this.triggersContract = triggersContract;
|
|
64
64
|
}
|
|
65
|
-
async orderBook() {
|
|
66
|
-
return this.triggersContract.orderBook();
|
|
65
|
+
async orderBook(callOptions) {
|
|
66
|
+
return this.triggersContract.orderBook({ ...callOptions });
|
|
67
67
|
}
|
|
68
|
-
async tradingFloor() {
|
|
69
|
-
return this.triggersContract.tradingFloor();
|
|
68
|
+
async tradingFloor(callOptions) {
|
|
69
|
+
return this.triggersContract.tradingFloor({ ...callOptions });
|
|
70
70
|
}
|
|
71
|
-
async priceValidator() {
|
|
72
|
-
return this.triggersContract.priceValidator();
|
|
71
|
+
async priceValidator(callOptions) {
|
|
72
|
+
return this.triggersContract.priceValidator({ ...callOptions });
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
class PendableAdmin {
|
|
76
76
|
constructor(triggersContract) {
|
|
77
77
|
this.triggersContract = triggersContract;
|
|
78
78
|
}
|
|
79
|
-
async admin() {
|
|
80
|
-
return this.triggersContract.admin();
|
|
79
|
+
async admin(callOptions) {
|
|
80
|
+
return this.triggersContract.admin({ ...callOptions });
|
|
81
81
|
}
|
|
82
|
-
async pendingAdmin() {
|
|
83
|
-
return this.triggersContract.pendingAdmin();
|
|
82
|
+
async pendingAdmin(callOptions) {
|
|
83
|
+
return this.triggersContract.pendingAdmin({ ...callOptions });
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
class Status {
|
|
87
87
|
constructor(triggersContract) {
|
|
88
88
|
this.triggersContract = triggersContract;
|
|
89
89
|
}
|
|
90
|
-
async isDone() {
|
|
91
|
-
return this.triggersContract.isDone();
|
|
90
|
+
async isDone(callOptions) {
|
|
91
|
+
return this.triggersContract.isDone({ ...callOptions });
|
|
92
92
|
}
|
|
93
|
-
async isPaused() {
|
|
94
|
-
return this.triggersContract.isPaused();
|
|
93
|
+
async isPaused(callOptions) {
|
|
94
|
+
return this.triggersContract.isPaused({ ...callOptions });
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
class Configuration {
|
|
98
98
|
constructor(triggersContract) {
|
|
99
99
|
this.triggersContract = triggersContract;
|
|
100
100
|
}
|
|
101
|
-
async marketOrderCancelFeeFraction() {
|
|
102
|
-
return this.triggersContract.marketOrderCancelFeeFraction();
|
|
101
|
+
async marketOrderCancelFeeFraction(callOptions) {
|
|
102
|
+
return this.triggersContract.marketOrderCancelFeeFraction({ ...callOptions });
|
|
103
103
|
}
|
|
104
|
-
async marketOrderTightTimeRange() {
|
|
105
|
-
return this.triggersContract.marketOrderTightTimeRange();
|
|
104
|
+
async marketOrderTightTimeRange(callOptions) {
|
|
105
|
+
return this.triggersContract.marketOrderTightTimeRange({ ...callOptions });
|
|
106
106
|
}
|
|
107
|
-
async marketOrdersTimeout() {
|
|
108
|
-
return this.triggersContract.marketOrdersTimeout();
|
|
107
|
+
async marketOrdersTimeout(callOptions) {
|
|
108
|
+
return this.triggersContract.marketOrdersTimeout({ ...callOptions });
|
|
109
109
|
}
|
|
110
|
-
async maxTriggerPeriodForMarketOrders() {
|
|
111
|
-
return this.triggersContract.maxTriggerPeriodForMarketOrders();
|
|
110
|
+
async maxTriggerPeriodForMarketOrders(callOptions) {
|
|
111
|
+
return this.triggersContract.maxTriggerPeriodForMarketOrders({ ...callOptions });
|
|
112
112
|
}
|
|
113
|
-
async minTriggerPeriodForLimitOrders() {
|
|
114
|
-
return this.triggersContract.minTriggerPeriodForLimitOrders();
|
|
113
|
+
async minTriggerPeriodForLimitOrders(callOptions) {
|
|
114
|
+
return this.triggersContract.minTriggerPeriodForLimitOrders({ ...callOptions });
|
|
115
115
|
}
|
|
116
|
-
async minTriggerPeriodForMarketOrders() {
|
|
117
|
-
return this.triggersContract.minTriggerPeriodForMarketOrders();
|
|
116
|
+
async minTriggerPeriodForMarketOrders(callOptions) {
|
|
117
|
+
return this.triggersContract.minTriggerPeriodForMarketOrders({ ...callOptions });
|
|
118
118
|
}
|
|
119
|
-
async openPositionCancellationFeeFraction() {
|
|
120
|
-
return this.triggersContract.openPositionCancellationFeeFraction();
|
|
119
|
+
async openPositionCancellationFeeFraction(callOptions) {
|
|
120
|
+
return this.triggersContract.openPositionCancellationFeeFraction({ ...callOptions });
|
|
121
121
|
}
|
|
122
|
-
async triggerPriceFreshnessTimeRange() {
|
|
123
|
-
return this.triggersContract.triggerPriceFreshnessTimeRange();
|
|
122
|
+
async triggerPriceFreshnessTimeRange(callOptions) {
|
|
123
|
+
return this.triggersContract.triggerPriceFreshnessTimeRange({ ...callOptions });
|
|
124
124
|
}
|
|
125
|
-
async maxTriggersPerBlock() {
|
|
126
|
-
return this.triggersContract.maxTriggersPerBlock();
|
|
125
|
+
async maxTriggersPerBlock(callOptions) {
|
|
126
|
+
return this.triggersContract.maxTriggersPerBlock({ ...callOptions });
|
|
127
127
|
}
|
|
128
|
-
async triggersPerBlock(blockNumber) {
|
|
129
|
-
return this.triggersContract.triggersPerBlock(blockNumber);
|
|
128
|
+
async triggersPerBlock(blockNumber, callOptions) {
|
|
129
|
+
return this.triggersContract.triggersPerBlock(blockNumber, { ...callOptions });
|
|
130
130
|
}
|
|
131
|
-
async limitsMarginFraction() {
|
|
132
|
-
return this.triggersContract.limitsMarginFraction();
|
|
131
|
+
async limitsMarginFraction(callOptions) {
|
|
132
|
+
return this.triggersContract.limitsMarginFraction({ ...callOptions });
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
class PairConfiguration {
|
|
136
136
|
constructor(triggersContract) {
|
|
137
137
|
this.triggersContract = triggersContract;
|
|
138
138
|
}
|
|
139
|
-
async maxConfidenceFractionForPair(pairId) {
|
|
140
|
-
return this.triggersContract.maxConfidenceFractionForPair(pairId);
|
|
139
|
+
async maxConfidenceFractionForPair(pairId, callOptions) {
|
|
140
|
+
return this.triggersContract.maxConfidenceFractionForPair(pairId, { ...callOptions });
|
|
141
141
|
}
|
|
142
|
-
async spreadFractionForPair(pairId) {
|
|
143
|
-
return this.triggersContract.spreadFractionForPair(pairId);
|
|
142
|
+
async spreadFractionForPair(pairId, callOptions) {
|
|
143
|
+
return this.triggersContract.spreadFractionForPair(pairId, { ...callOptions });
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
class Permissions {
|
|
147
147
|
constructor(triggersContract) {
|
|
148
148
|
this.triggersContract = triggersContract;
|
|
149
149
|
}
|
|
150
|
-
async isAllowedToTrigger(account) {
|
|
151
|
-
return this.triggersContract.isAllowedToTrigger(account);
|
|
150
|
+
async isAllowedToTrigger(account, callOptions) {
|
|
151
|
+
return this.triggersContract.isAllowedToTrigger(account, { ...callOptions });
|
|
152
152
|
}
|
|
153
|
-
async getAllTriggerPermissionedAccounts() {
|
|
154
|
-
return this.triggersContract.getAllTriggerPermissionedAccounts();
|
|
153
|
+
async getAllTriggerPermissionedAccounts(callOptions) {
|
|
154
|
+
return this.triggersContract.getAllTriggerPermissionedAccounts({ ...callOptions });
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
class Constants {
|
|
158
158
|
constructor(triggersContract) {
|
|
159
159
|
this.triggersContract = triggersContract;
|
|
160
160
|
}
|
|
161
|
-
async ACCURACY_IMPROVEMENT_SCALE() {
|
|
162
|
-
return this.triggersContract.ACCURACY_IMPROVEMENT_SCALE();
|
|
161
|
+
async ACCURACY_IMPROVEMENT_SCALE(callOptions) {
|
|
162
|
+
return this.triggersContract.ACCURACY_IMPROVEMENT_SCALE({ ...callOptions });
|
|
163
163
|
}
|
|
164
|
-
async FRACTION_SCALE() {
|
|
165
|
-
return this.triggersContract.FRACTION_SCALE();
|
|
164
|
+
async FRACTION_SCALE(callOptions) {
|
|
165
|
+
return this.triggersContract.FRACTION_SCALE({ ...callOptions });
|
|
166
166
|
}
|
|
167
|
-
async LEVERAGE_SCALE() {
|
|
168
|
-
return this.triggersContract.LEVERAGE_SCALE();
|
|
167
|
+
async LEVERAGE_SCALE(callOptions) {
|
|
168
|
+
return this.triggersContract.LEVERAGE_SCALE({ ...callOptions });
|
|
169
169
|
}
|
|
170
|
-
async MAX_ALLOWED_CONFIDENCE_FRACTION() {
|
|
171
|
-
return this.triggersContract.MAX_ALLOWED_CONFIDENCE_FRACTION();
|
|
170
|
+
async MAX_ALLOWED_CONFIDENCE_FRACTION(callOptions) {
|
|
171
|
+
return this.triggersContract.MAX_ALLOWED_CONFIDENCE_FRACTION({ ...callOptions });
|
|
172
172
|
}
|
|
173
|
-
async MAX_ALLOWED_SPREAD_FRACTION() {
|
|
174
|
-
return this.triggersContract.MAX_ALLOWED_SPREAD_FRACTION();
|
|
173
|
+
async MAX_ALLOWED_SPREAD_FRACTION(callOptions) {
|
|
174
|
+
return this.triggersContract.MAX_ALLOWED_SPREAD_FRACTION({ ...callOptions });
|
|
175
175
|
}
|
|
176
|
-
async PRECISION() {
|
|
177
|
-
return this.triggersContract.PRECISION();
|
|
176
|
+
async PRECISION(callOptions) {
|
|
177
|
+
return this.triggersContract.PRECISION({ ...callOptions });
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
class TriggersService {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { ContractTransactionResponse } from "ethers";
|
|
2
|
+
import { CallOptions, TransactionOptions } from "../common";
|
|
2
3
|
export interface IWrappedNativeEngineChipHelperFunctionsGroup_WrapAndMint {
|
|
3
4
|
/**
|
|
4
5
|
* Wraps native tokens and mints engine chips
|
|
5
6
|
* Payable function - native tokens sent as msg.value
|
|
6
7
|
* @returns ContractTransactionResponse
|
|
7
8
|
*/
|
|
8
|
-
wrapNativeAndMintEngineChip(nativeAmount: bigint): Promise<ContractTransactionResponse>;
|
|
9
|
+
wrapNativeAndMintEngineChip(nativeAmount: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
9
10
|
}
|
|
10
11
|
export interface IWrappedNativeEngineChipHelperFunctionsGroup_BurnHandling {
|
|
11
12
|
/**
|
|
@@ -16,21 +17,21 @@ export interface IWrappedNativeEngineChipHelperFunctionsGroup_BurnHandling {
|
|
|
16
17
|
* @param arg3 Additional data parameter
|
|
17
18
|
* @returns ContractTransactionResponse
|
|
18
19
|
*/
|
|
19
|
-
handleBurn(burner: string, arg1: bigint, underlyingAmount: bigint, arg3: string): Promise<ContractTransactionResponse>;
|
|
20
|
+
handleBurn(burner: string, arg1: bigint, underlyingAmount: bigint, arg3: string, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
|
|
20
21
|
}
|
|
21
22
|
export interface IWrappedNativeEngineChipHelperFunctionsGroup_ViewFunctions {
|
|
22
23
|
/**
|
|
23
24
|
* Get the wrapped native engine chip contract address
|
|
24
25
|
*/
|
|
25
|
-
wrappedNativeEngineChip(): Promise<string>;
|
|
26
|
+
wrappedNativeEngineChip(callOptions?: CallOptions): Promise<string>;
|
|
26
27
|
/**
|
|
27
28
|
* Get the wrapped native token contract address
|
|
28
29
|
*/
|
|
29
|
-
wrappedNativeToken(): Promise<string>;
|
|
30
|
+
wrappedNativeToken(callOptions?: CallOptions): Promise<string>;
|
|
30
31
|
/**
|
|
31
32
|
* Check if wrapped native token returns uint256
|
|
32
33
|
*/
|
|
33
|
-
wrappedNativeReturnsUint256(): Promise<boolean>;
|
|
34
|
+
wrappedNativeReturnsUint256(callOptions?: CallOptions): Promise<boolean>;
|
|
34
35
|
}
|
|
35
36
|
export interface IWrappedNativeEngineChipHelperService {
|
|
36
37
|
wrapAndMint: IWrappedNativeEngineChipHelperFunctionsGroup_WrapAndMint;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IWrappedNativeEngineChipHelperService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"IWrappedNativeEngineChipHelperService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,QAAQ,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAI5D,MAAM,WAAW,wDAAwD;IACvE;;;;OAIG;IACH,2BAA2B,CACzB,YAAY,EAAE,MAAM,EACpB,kBAAkB,CAAC,EAAE,kBAAkB,GACtC,OAAO,CAAC,2BAA2B,CAAC,CAAC;CACzC;AAED,MAAM,WAAW,yDAAyD;IACxE;;;;;;;OAOG;IACH,UAAU,CACR,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,gBAAgB,EAAE,MAAM,EACxB,IAAI,EAAE,MAAM,EACZ,kBAAkB,CAAC,EAAE,kBAAkB,GACtC,OAAO,CAAC,2BAA2B,CAAC,CAAC;CACzC;AAED,MAAM,WAAW,0DAA0D;IACzE;;OAEG;IACH,uBAAuB,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAEpE;;OAEG;IACH,kBAAkB,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAE/D;;OAEG;IACH,2BAA2B,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAC1E;AAID,MAAM,WAAW,qCAAqC;IACpD,WAAW,EAAE,wDAAwD,CAAC;IACtE,YAAY,EAAE,yDAAyD,CAAC;IACxE,aAAa,EAAE,0DAA0D,CAAC;CAC3E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WrappedNativeEngineChipHelperService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAE,6BAA6B,EAAE,MAAM,0EAA0E,CAAC;AAEzH,OAAO,EACL,qCAAqC,EACrC,wDAAwD,EACxD,yDAAyD,EACzD,0DAA0D,EAC3D,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"WrappedNativeEngineChipHelperService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAE,6BAA6B,EAAE,MAAM,0EAA0E,CAAC;AAEzH,OAAO,EACL,qCAAqC,EACrC,wDAAwD,EACxD,yDAAyD,EACzD,0DAA0D,EAC3D,MAAM,yCAAyC,CAAC;AAsEjD;;;;GAIG;AACH,qBAAa,oCACX,YAAW,qCAAqC;IAEhD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAgC;IACzD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAU;IAEnC,SAAgB,WAAW,EAAE,wDAAwD,CAAC;IACtF,SAAgB,YAAY,EAAE,yDAAyD,CAAC;IACxF,SAAgB,aAAa,EAAE,0DAA0D,CAAC;gBAE9E,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EAAE,OAAO,EAAE,MAAM;IAahE,WAAW,IAAI,6BAA6B;CAG7C"}
|
|
@@ -8,12 +8,13 @@ class WrapAndMint {
|
|
|
8
8
|
this.contract = contract;
|
|
9
9
|
this.isSigner = isSigner;
|
|
10
10
|
}
|
|
11
|
-
async wrapNativeAndMintEngineChip(nativeAmount) {
|
|
11
|
+
async wrapNativeAndMintEngineChip(nativeAmount, transactionOptions) {
|
|
12
12
|
if (!this.isSigner) {
|
|
13
13
|
throw new Error("WrappedNativeEngineChipHelperService: Write operations require a signer");
|
|
14
14
|
}
|
|
15
15
|
return await this.contract.wrapNativeAndMintEngineChip({
|
|
16
16
|
value: nativeAmount,
|
|
17
|
+
...transactionOptions,
|
|
17
18
|
});
|
|
18
19
|
}
|
|
19
20
|
}
|
|
@@ -23,11 +24,11 @@ class BurnHandling {
|
|
|
23
24
|
this.contract = contract;
|
|
24
25
|
this.isSigner = isSigner;
|
|
25
26
|
}
|
|
26
|
-
async handleBurn(burner, arg1, underlyingAmount, arg3) {
|
|
27
|
+
async handleBurn(burner, arg1, underlyingAmount, arg3, transactionOptions) {
|
|
27
28
|
if (!this.isSigner) {
|
|
28
29
|
throw new Error("WrappedNativeEngineChipHelperService: Write operations require a signer");
|
|
29
30
|
}
|
|
30
|
-
return await this.contract.handleBurn(burner, arg1, underlyingAmount, arg3);
|
|
31
|
+
return await this.contract.handleBurn(burner, arg1, underlyingAmount, arg3, { ...transactionOptions });
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
34
|
// ============ View Functions Implementation ============
|
|
@@ -35,14 +36,14 @@ class ViewFunctions {
|
|
|
35
36
|
constructor(contract) {
|
|
36
37
|
this.contract = contract;
|
|
37
38
|
}
|
|
38
|
-
async wrappedNativeEngineChip() {
|
|
39
|
-
return await this.contract.wrappedNativeEngineChip();
|
|
39
|
+
async wrappedNativeEngineChip(callOptions) {
|
|
40
|
+
return await this.contract.wrappedNativeEngineChip({ ...callOptions });
|
|
40
41
|
}
|
|
41
|
-
async wrappedNativeToken() {
|
|
42
|
-
return await this.contract.wrappedNativeToken();
|
|
42
|
+
async wrappedNativeToken(callOptions) {
|
|
43
|
+
return await this.contract.wrappedNativeToken({ ...callOptions });
|
|
43
44
|
}
|
|
44
|
-
async wrappedNativeReturnsUint256() {
|
|
45
|
-
return await this.contract.wrappedNativeReturnsUint256();
|
|
45
|
+
async wrappedNativeReturnsUint256(callOptions) {
|
|
46
|
+
return await this.contract.wrappedNativeReturnsUint256({ ...callOptions });
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
49
|
// ============ Main Service Class ============
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import { CallOptions } from ".";
|
|
1
2
|
/**
|
|
2
3
|
* Common interface for Lynx versioned contracts
|
|
3
4
|
* All Lynx contracts implement these versioning methods
|
|
4
5
|
*/
|
|
5
6
|
export interface ILynxVersionedContract {
|
|
6
|
-
getContractName(): Promise<string>;
|
|
7
|
-
getContractVersion(): Promise<string>;
|
|
8
|
-
CONTRACT_NAME(): Promise<string>;
|
|
9
|
-
CONTRACT_VERSION(): Promise<string>;
|
|
7
|
+
getContractName(callOptions?: CallOptions): Promise<string>;
|
|
8
|
+
getContractVersion(callOptions?: CallOptions): Promise<string>;
|
|
9
|
+
CONTRACT_NAME(callOptions?: CallOptions): Promise<string>;
|
|
10
|
+
CONTRACT_VERSION(callOptions?: CallOptions): Promise<string>;
|
|
10
11
|
}
|
|
11
12
|
//# sourceMappingURL=ILynxVersionedContract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ILynxVersionedContract.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/common/ILynxVersionedContract.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,eAAe,
|
|
1
|
+
{"version":3,"file":"ILynxVersionedContract.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/common/ILynxVersionedContract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,GAAG,CAAA;AAE/B;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,eAAe,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IAC3D,kBAAkB,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IAC9D,aAAa,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IACzD,gBAAgB,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;CAC7D"}
|