lynx-client 0.0.11 → 0.0.13
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/README.md +192 -2
- package/dist/cjs/index.js +9 -1
- package/dist/cjs/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.js +1 -0
- package/dist/cjs/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.js +158 -25
- package/dist/cjs/lib/contractsIntegration/OrderBookService/OrderBookService.js +14 -2
- package/dist/cjs/lib/contractsIntegration/PNLRService/PNLRService.js +10 -10
- package/dist/cjs/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +26 -14
- package/dist/cjs/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +72 -15
- package/dist/cjs/lib/contractsIntegration/TriggersService/TriggersService.js +14 -8
- package/dist/cjs/lib/contractsIntegration/common/ILynxVersionedContract.js +2 -0
- package/dist/cjs/lib/contractsIntegration/common/IPendableAdmin.js +2 -0
- package/dist/cjs/lib/contractsIntegration/common/IPendableImplementation.js +2 -0
- package/dist/cjs/lib/contractsIntegration/common/IProtocolConstants.js +2 -0
- package/dist/cjs/lib/contractsIntegration/common/index.js +2 -0
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1__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 -28
- 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/OnBehalfTrading/OnBehalfTradingV1__factory.js +207 -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 +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +1 -28
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__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 +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor__factory.js +1 -1
- package/dist/esm/index.d.ts +9 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +9 -1
- package/dist/esm/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts +2 -3
- 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 +1 -0
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts +52 -6
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts +17 -20
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.js +158 -25
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/index.d.ts +1 -1
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/index.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts +6 -10
- package/dist/esm/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts +5 -2
- package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.js +14 -2
- package/dist/esm/lib/contractsIntegration/PNLRService/IPNLRService.d.ts +4 -12
- package/dist/esm/lib/contractsIntegration/PNLRService/IPNLRService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/PNLRService/PNLRService.d.ts +4 -3
- package/dist/esm/lib/contractsIntegration/PNLRService/PNLRService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/PNLRService/PNLRService.js +10 -10
- package/dist/esm/lib/contractsIntegration/PNLRService/index.d.ts +1 -1
- package/dist/esm/lib/contractsIntegration/PNLRService/index.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts +2 -4
- package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts +8 -13
- package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts +5 -2
- package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +26 -14
- package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts +31 -13
- package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts +14 -87
- package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +72 -15
- package/dist/esm/lib/contractsIntegration/TriggersService/ITriggersService.d.ts +6 -9
- package/dist/esm/lib/contractsIntegration/TriggersService/ITriggersService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.d.ts +4 -2
- package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.js +14 -8
- package/dist/esm/lib/contractsIntegration/common/ILynxVersionedContract.d.ts +11 -0
- package/dist/esm/lib/contractsIntegration/common/ILynxVersionedContract.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/common/ILynxVersionedContract.js +2 -0
- package/dist/esm/lib/contractsIntegration/common/IPendableAdmin.d.ts +9 -0
- package/dist/esm/lib/contractsIntegration/common/IPendableAdmin.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/common/IPendableAdmin.js +2 -0
- package/dist/esm/lib/contractsIntegration/common/IPendableImplementation.d.ts +9 -0
- package/dist/esm/lib/contractsIntegration/common/IPendableImplementation.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/common/IPendableImplementation.js +2 -0
- package/dist/esm/lib/contractsIntegration/common/IProtocolConstants.d.ts +32 -0
- package/dist/esm/lib/contractsIntegration/common/IProtocolConstants.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/common/IProtocolConstants.js +2 -0
- package/dist/esm/lib/contractsIntegration/common/index.d.ts +5 -0
- package/dist/esm/lib/contractsIntegration/common/index.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/common/index.js +2 -0
- package/dist/esm/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.d.ts +151 -1
- package/dist/esm/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.d.ts.map +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1__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 -21
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts.map +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.js +1 -28
- 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/OnBehalfTrading/OnBehalfTradingV1__factory.d.ts +157 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.d.ts.map +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.js +207 -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 +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +1 -21
- 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 +1 -28
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__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 +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor__factory.js +1 -1
- package/dist/types/index.d.ts +9 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts +2 -3
- 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/OnBehalfTradingService/IOnBehalfTradingService.d.ts +52 -6
- package/dist/types/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts +17 -20
- package/dist/types/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/OnBehalfTradingService/index.d.ts +1 -1
- package/dist/types/lib/contractsIntegration/OnBehalfTradingService/index.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts +6 -10
- package/dist/types/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts +5 -2
- package/dist/types/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/PNLRService/IPNLRService.d.ts +4 -12
- package/dist/types/lib/contractsIntegration/PNLRService/IPNLRService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/PNLRService/PNLRService.d.ts +4 -3
- package/dist/types/lib/contractsIntegration/PNLRService/PNLRService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/PNLRService/index.d.ts +1 -1
- package/dist/types/lib/contractsIntegration/PNLRService/index.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts +2 -4
- package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts +8 -13
- package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts +5 -2
- package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts +31 -13
- package/dist/types/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts +14 -87
- package/dist/types/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TriggersService/ITriggersService.d.ts +6 -9
- package/dist/types/lib/contractsIntegration/TriggersService/ITriggersService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TriggersService/TriggersService.d.ts +4 -2
- package/dist/types/lib/contractsIntegration/TriggersService/TriggersService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/common/ILynxVersionedContract.d.ts +11 -0
- package/dist/types/lib/contractsIntegration/common/ILynxVersionedContract.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/common/IPendableAdmin.d.ts +9 -0
- package/dist/types/lib/contractsIntegration/common/IPendableAdmin.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/common/IPendableImplementation.d.ts +9 -0
- package/dist/types/lib/contractsIntegration/common/IPendableImplementation.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/common/IProtocolConstants.d.ts +32 -0
- package/dist/types/lib/contractsIntegration/common/IProtocolConstants.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/common/index.d.ts +5 -0
- package/dist/types/lib/contractsIntegration/common/index.d.ts.map +1 -0
- package/dist/types/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.d.ts +151 -1
- package/dist/types/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.d.ts.map +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1__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 -21
- package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts.map +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/OnBehalfTrading/OnBehalfTradingV1__factory.d.ts +157 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.d.ts.map +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 +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +1 -21
- 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 +1 -1
- package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__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 +1 -1
- package/dist/types/lib/typechain/factories/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor__factory.d.ts +1 -1
- package/package.json +4 -4
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AAExC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yCAAyC,CAAC;AACxD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kCAAkC,CAAC;AACjD,cAAc,mBAAmB,CAAC;AAClC,cAAc,2CAA2C,CAAC;AAE1D,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC;AACjD,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AAEvC,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AAExD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAEhD,cAAc,uDAAuD,CAAC;AAEtE,cAAc,iDAAiD,CAAC;AAChE,cAAc,gDAAgD,CAAC;AAC/D,OAAO,EAAE,2BAA2B,EAAE,MAAM,wDAAwD,CAAC;AACrG,YAAY,EAAE,4BAA4B,EAAE,MAAM,wDAAwD,CAAC;AAC3G,OAAO,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AACnG,cAAc,sEAAsE,CAAC;AACrF,cAAc,+EAA+E,CAAC;AAG9F,cAAc,0FAA0F,CAAC;AACzG,cAAc,8FAA8F,CAAC;AAC7G,cAAc,0FAA0F,CAAC;AAGzG,cAAc,qFAAqF,CAAC;AAGpG,cAAc,aAAa,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.tradeIntentsVerifierPayloadTypes = exports.liquidityIntentsVerifierPayloadTypes = exports.chipsIntentsVerifierPayloadTypes = exports.OnBehalfTradingService = exports.TradeIntentsVerifierService = exports.LiquidityIntentsVerifierService = exports.ChipsIntentsVerifierService = void 0;
|
|
17
|
+
exports.tradeIntentsVerifierPayloadTypes = exports.liquidityIntentsVerifierPayloadTypes = exports.chipsIntentsVerifierPayloadTypes = exports.PoolAccountantV1Service = exports.PNLRService = exports.AcceptableImplementationClaimableAdminService = exports.LexPoolV1Service = exports.OnBehalfTradingService = exports.TradeIntentsVerifierService = exports.LiquidityIntentsVerifierService = exports.ChipsIntentsVerifierService = void 0;
|
|
18
18
|
__exportStar(require("./lib/chains/chainConstants"), exports);
|
|
19
19
|
__exportStar(require("./lib/chains/chainTypes"), exports);
|
|
20
20
|
__exportStar(require("./lib/utils/addresses"), exports);
|
|
@@ -49,6 +49,14 @@ var TradeIntentsVerifierService_1 = require("./lib/contractsIntegration/TradeInt
|
|
|
49
49
|
Object.defineProperty(exports, "TradeIntentsVerifierService", { enumerable: true, get: function () { return TradeIntentsVerifierService_1.TradeIntentsVerifierService; } });
|
|
50
50
|
var OnBehalfTradingService_1 = require("./lib/contractsIntegration/OnBehalfTradingService");
|
|
51
51
|
Object.defineProperty(exports, "OnBehalfTradingService", { enumerable: true, get: function () { return OnBehalfTradingService_1.OnBehalfTradingService; } });
|
|
52
|
+
var LexPoolV1Service_1 = require("./lib/contractsIntegration/LexPoolV1Service");
|
|
53
|
+
Object.defineProperty(exports, "LexPoolV1Service", { enumerable: true, get: function () { return LexPoolV1Service_1.LexPoolV1Service; } });
|
|
54
|
+
var AcceptableImplementationClaimableAdminService_1 = require("./lib/contractsIntegration/AcceptableImplementationClaimableAdminService");
|
|
55
|
+
Object.defineProperty(exports, "AcceptableImplementationClaimableAdminService", { enumerable: true, get: function () { return AcceptableImplementationClaimableAdminService_1.AcceptableImplementationClaimableAdminService; } });
|
|
56
|
+
var PNLRService_1 = require("./lib/contractsIntegration/PNLRService");
|
|
57
|
+
Object.defineProperty(exports, "PNLRService", { enumerable: true, get: function () { return PNLRService_1.PNLRService; } });
|
|
58
|
+
var PoolAccountantV1Service_1 = require("./lib/contractsIntegration/PoolAccountantV1Service");
|
|
59
|
+
Object.defineProperty(exports, "PoolAccountantV1Service", { enumerable: true, get: function () { return PoolAccountantV1Service_1.PoolAccountantV1Service; } });
|
|
52
60
|
__exportStar(require("./lib/contractsIntegration/IntentsVerifierLensService"), exports);
|
|
53
61
|
__exportStar(require("./lib/contractsIntegration/TriggersAndPortalLensService"), exports);
|
|
54
62
|
__exportStar(require("./lib/contractsIntegration/TradingFloorLensService"), exports);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ContractTransactionResponse, BytesLike } from "ethers";
|
|
2
|
+
import { IProtocolConstants } from "../common";
|
|
2
3
|
export interface TProcessDepositResult {
|
|
3
4
|
amountDeposited: bigint;
|
|
4
5
|
amountCanceled: bigint;
|
|
@@ -96,10 +97,8 @@ export interface ILexPoolV1FunctionsGroup_ERC20 {
|
|
|
96
97
|
transferFrom(from: string, to: string, amount: bigint): Promise<ContractTransactionResponse>;
|
|
97
98
|
approve(spender: string, amount: bigint): Promise<ContractTransactionResponse>;
|
|
98
99
|
}
|
|
99
|
-
export interface ILexPoolV1FunctionsGroup_Constants {
|
|
100
|
+
export interface ILexPoolV1FunctionsGroup_Constants extends IProtocolConstants {
|
|
100
101
|
SELF_UNIT_SCALE(): Promise<bigint>;
|
|
101
|
-
PRECISION(): Promise<bigint>;
|
|
102
|
-
FRACTION_SCALE(): Promise<bigint>;
|
|
103
102
|
}
|
|
104
103
|
export interface ILexPoolV1FunctionsGroup_ContractInfo {
|
|
105
104
|
admin(): Promise<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ILexPoolV1Service.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"ILexPoolV1Service.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAG9C,MAAM,WAAW,qBAAqB;IACpC,eAAe,EAAE,MAAM,CAAA;IACvB,cAAc,EAAE,MAAM,CAAA;IACtB,gBAAgB,EAAE,MAAM,CAAA;IACxB,eAAe,EAAE,MAAM,CAAA;CACxB;AAED,MAAM,WAAW,oBAAoB;IACnC,cAAc,EAAE,MAAM,CAAA;IACtB,cAAc,EAAE,MAAM,CAAA;IACtB,eAAe,EAAE,MAAM,CAAA;IACvB,eAAe,EAAE,MAAM,CAAA;CACxB;AAED,MAAM,WAAW,qBAAqB;IACpC,aAAa,EAAE,MAAM,CAAA;IACrB,iBAAiB,EAAE,MAAM,CAAA;CAC1B;AAGD,MAAM,WAAW,uCAAuC;IAEtD,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAA;IAG5D,UAAU,CACR,UA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,MAAM,CAAC,CAAA;CACnC;AAED,MAAM,WAAW,qCAAqC;IACpD,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IACxB,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IAC/B,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IACjC,qBAAqB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;CACzC;AAGD,MAAM,WAAW,iBAAiB;IAChC,cAAc,EAAE,uCAAuC,CAAA;IACvD,kBAAkB,EAAE,2CAA2C,CAAA;IAC/D,YAAY,EAAE,qCAAqC,CAAA;IACnD,WAAW,EAAE,oCAAoC,CAAA;IACjD,UAAU,EAAE,mCAAmC,CAAA;IAC/C,eAAe,EAAE,wCAAwC,CAAA;IACzD,uBAAuB,EAAE,gDAAgD,CAAA;IACzE,aAAa,EAAE,sCAAsC,CAAA;IACrD,cAAc,EAAE,uCAAuC,CAAA;IACvD,KAAK,EAAE,8BAA8B,CAAA;IACrC,SAAS,EAAE,kCAAkC,CAAA;IAC7C,YAAY,EAAE,qCAAqC,CAAA;CACpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LexPoolV1Service.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAa,MAAM,QAAQ,CAAA;AAGpD,OAAO,EACL,iBAAiB,EACjB,uCAAuC,EACvC,2CAA2C,EAC3C,qCAAqC,EACrC,oCAAoC,EACpC,mCAAmC,EACnC,wCAAwC,EACxC,gDAAgD,EAChD,sCAAsC,EACtC,uCAAuC,EACvC,8BAA8B,EAC9B,kCAAkC,EAClC,qCAAqC,EAItC,MAAM,qBAAqB,CAAA;AA6K5B,qBAAa,gBAAiB,YAAW,iBAAiB;IACxD,OAAO,CAAC,eAAe,CAAW;IAE3B,cAAc,EAAE,uCAAuC,CAAA;IACvD,kBAAkB,EAAE,2CAA2C,CAAA;IAC/D,YAAY,EAAE,qCAAqC,CAAA;IACnD,WAAW,EAAE,oCAAoC,CAAA;IACjD,UAAU,EAAE,mCAAmC,CAAA;IAC/C,eAAe,EAAE,wCAAwC,CAAA;IACzD,uBAAuB,EAAE,gDAAgD,CAAA;IACzE,aAAa,EAAE,sCAAsC,CAAA;IACrD,cAAc,EAAE,uCAAuC,CAAA;IACvD,KAAK,EAAE,8BAA8B,CAAA;IACrC,SAAS,EAAE,kCAAkC,CAAA;IAC7C,YAAY,EAAE,qCAAqC,CAAA;gBAE9C,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EAAE,OAAO,EAAE,MAAM;IAiChE,OAAO,CAAC,wBAAwB;IAoChC,OAAO,CAAC,yBAAyB;IAgCjC,OAAO,CAAC,gBAAgB;IAiBxB,OAAO,CAAC,oBAAoB;
|
|
1
|
+
{"version":3,"file":"LexPoolV1Service.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAa,MAAM,QAAQ,CAAA;AAGpD,OAAO,EACL,iBAAiB,EACjB,uCAAuC,EACvC,2CAA2C,EAC3C,qCAAqC,EACrC,oCAAoC,EACpC,mCAAmC,EACnC,wCAAwC,EACxC,gDAAgD,EAChD,sCAAsC,EACtC,uCAAuC,EACvC,8BAA8B,EAC9B,kCAAkC,EAClC,qCAAqC,EAItC,MAAM,qBAAqB,CAAA;AA6K5B,qBAAa,gBAAiB,YAAW,iBAAiB;IACxD,OAAO,CAAC,eAAe,CAAW;IAE3B,cAAc,EAAE,uCAAuC,CAAA;IACvD,kBAAkB,EAAE,2CAA2C,CAAA;IAC/D,YAAY,EAAE,qCAAqC,CAAA;IACnD,WAAW,EAAE,oCAAoC,CAAA;IACjD,UAAU,EAAE,mCAAmC,CAAA;IAC/C,eAAe,EAAE,wCAAwC,CAAA;IACzD,uBAAuB,EAAE,gDAAgD,CAAA;IACzE,aAAa,EAAE,sCAAsC,CAAA;IACrD,cAAc,EAAE,uCAAuC,CAAA;IACvD,KAAK,EAAE,8BAA8B,CAAA;IACrC,SAAS,EAAE,kCAAkC,CAAA;IAC7C,YAAY,EAAE,qCAAqC,CAAA;gBAE9C,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EAAE,OAAO,EAAE,MAAM;IAiChE,OAAO,CAAC,wBAAwB;IAoChC,OAAO,CAAC,yBAAyB;IAgCjC,OAAO,CAAC,gBAAgB;IAiBxB,OAAO,CAAC,oBAAoB;IAS5B,OAAO,CAAC,uBAAuB;CAShC"}
|
|
@@ -196,6 +196,7 @@ class LexPoolV1Service {
|
|
|
196
196
|
SELF_UNIT_SCALE: () => this.lexPoolContract.SELF_UNIT_SCALE(),
|
|
197
197
|
PRECISION: () => this.lexPoolContract.PRECISION(),
|
|
198
198
|
FRACTION_SCALE: () => this.lexPoolContract.FRACTION_SCALE(),
|
|
199
|
+
LEVERAGE_SCALE: () => this.lexPoolContract.LEVERAGE_SCALE(),
|
|
199
200
|
};
|
|
200
201
|
}
|
|
201
202
|
createContractInfoGroup() {
|
package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts
CHANGED
|
@@ -1,28 +1,74 @@
|
|
|
1
|
+
import { ILynxVersionedContract, IPendableAdmin } from "../common";
|
|
1
2
|
export interface PermissionInfo {
|
|
2
3
|
amountLimit: bigint;
|
|
3
4
|
amountUsed: bigint;
|
|
4
5
|
expiryTime: bigint;
|
|
5
6
|
isActive: boolean;
|
|
6
7
|
}
|
|
7
|
-
export interface
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
export interface ContractConfiguration {
|
|
9
|
+
isPausedState: boolean;
|
|
10
|
+
maxDuration: bigint;
|
|
11
|
+
tokenMaxAmounts: bigint[];
|
|
12
|
+
registryAddress: string;
|
|
13
|
+
tradersPortalAddress: string;
|
|
14
|
+
}
|
|
15
|
+
export interface AllActivePermissionsResult {
|
|
16
|
+
spenders: string[];
|
|
17
|
+
tokens: string[];
|
|
18
|
+
permissionData: PermissionInfo[];
|
|
19
|
+
}
|
|
20
|
+
export interface PermissionSettingPayload {
|
|
21
|
+
spender: string;
|
|
22
|
+
token: string;
|
|
23
|
+
amountLimit: bigint;
|
|
24
|
+
duration: bigint;
|
|
25
|
+
}
|
|
26
|
+
export interface IOnBehalfTradingFunctionsGroup_PermissionQueries {
|
|
13
27
|
isPermissionValid(owner: string, spender: string, token: string): Promise<boolean>;
|
|
14
28
|
getRemainingAmount(owner: string, spender: string, token: string): Promise<bigint>;
|
|
15
29
|
getPermission(owner: string, spender: string, token: string): Promise<PermissionInfo>;
|
|
16
30
|
permanentlyRevoked(owner: string, spender: string): Promise<boolean>;
|
|
31
|
+
hasActivePermissions(owner: string): Promise<boolean>;
|
|
32
|
+
getActivePermissionCount(owner: string): Promise<bigint>;
|
|
33
|
+
getActiveSpenders(owner: string): Promise<string[]>;
|
|
34
|
+
getActiveTokensForSpender(owner: string, spender: string): Promise<string[]>;
|
|
35
|
+
getAllActivePermissions(owner: string): Promise<AllActivePermissionsResult>;
|
|
36
|
+
requirePermission(owner: string, spender: string, token: string): Promise<void>;
|
|
37
|
+
}
|
|
38
|
+
export interface IOnBehalfTradingFunctionsGroup_PermissionManagement {
|
|
17
39
|
grantPermission(spender: string, token: string, amountLimit: bigint, duration: bigint): Promise<void>;
|
|
18
40
|
revokePermission(spender: string, token: string): Promise<void>;
|
|
19
41
|
revokeAllPermissions(spender: string): Promise<void>;
|
|
20
42
|
chargePermission(owner: string, spender: string, token: string, amount: bigint): Promise<void>;
|
|
43
|
+
setPermissions(payloads: PermissionSettingPayload[]): Promise<void>;
|
|
44
|
+
}
|
|
45
|
+
export interface IOnBehalfTradingFunctionsGroup_Configuration {
|
|
46
|
+
isPaused(): Promise<boolean>;
|
|
47
|
+
maxPermissionDuration(): Promise<bigint>;
|
|
48
|
+
maxPermissionAmountPerToken(token: string): Promise<bigint>;
|
|
49
|
+
getContractConfiguration(tokensToQuery: string[]): Promise<ContractConfiguration>;
|
|
50
|
+
}
|
|
51
|
+
export interface IOnBehalfTradingFunctionsGroup_AdminFunctions {
|
|
21
52
|
setMaxPermissionDuration(maxDuration: bigint): Promise<void>;
|
|
22
53
|
setMaxPermissionAmountForToken(token: string, maxAmount: bigint): Promise<void>;
|
|
23
54
|
setMaxPermissionAmountsForTokens(tokens: string[], maxAmounts: bigint[]): Promise<void>;
|
|
24
55
|
togglePause(): Promise<void>;
|
|
25
56
|
setDynamicRoleCaller(caller: string, roleName: string): Promise<void>;
|
|
26
57
|
setDynamicRoleCallers(callers: string[], roleNames: string[]): Promise<void>;
|
|
58
|
+
setPendingAdmin(newPendingAdmin: string): Promise<void>;
|
|
59
|
+
acceptAdmin(): Promise<void>;
|
|
60
|
+
}
|
|
61
|
+
export interface IOnBehalfTradingFunctionsGroup_ContractReferences {
|
|
62
|
+
registry(): Promise<string>;
|
|
63
|
+
dynamicRoleCallers(address: string): Promise<string>;
|
|
64
|
+
}
|
|
65
|
+
export interface IOnBehalfTradingService {
|
|
66
|
+
permissionQueries: IOnBehalfTradingFunctionsGroup_PermissionQueries;
|
|
67
|
+
permissionManagement: IOnBehalfTradingFunctionsGroup_PermissionManagement;
|
|
68
|
+
configuration: IOnBehalfTradingFunctionsGroup_Configuration;
|
|
69
|
+
adminFunctions: IOnBehalfTradingFunctionsGroup_AdminFunctions;
|
|
70
|
+
contractReferences: IOnBehalfTradingFunctionsGroup_ContractReferences;
|
|
71
|
+
pendableAdmin: IPendableAdmin;
|
|
72
|
+
lynxVersionedContract: ILynxVersionedContract;
|
|
27
73
|
}
|
|
28
74
|
//# sourceMappingURL=IOnBehalfTradingService.d.ts.map
|
package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IOnBehalfTradingService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"IOnBehalfTradingService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAGnE,MAAM,WAAW,cAAc;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,qBAAqB;IACpC,aAAa,EAAE,OAAO,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,0BAA0B;IACzC,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,cAAc,EAAE,cAAc,EAAE,CAAC;CAClC;AAED,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAID,MAAM,WAAW,gDAAgD;IAC/D,iBAAiB,CACf,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,OAAO,CAAC,CAAC;IAEpB,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AAiD;IAChE,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAE5B,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CACtD;AAID,MAAM,WAAW,uBAAuB;IACtC,iBAAiB,EAAE,gDAAgD,CAAC;IACpE,oBAAoB,EAAE,mDAAmD,CAAC;IAC1E,aAAa,EAAE,4CAA4C,CAAC;IAC5D,cAAc,EAAE,6CAA6C,CAAC;IAC9D,kBAAkB,EAAE,iDAAiD,CAAC;IACtE,aAAa,EAAE,cAAc,CAAC;IAC9B,qBAAqB,EAAE,sBAAsB,CAAC;CAC/C"}
|
package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts
CHANGED
|
@@ -1,29 +1,26 @@
|
|
|
1
1
|
import { Provider, Signer } from "ethers";
|
|
2
2
|
import { OnBehalfTradingV1 } from "../../typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1";
|
|
3
|
-
import { IOnBehalfTradingService,
|
|
3
|
+
import { IOnBehalfTradingService, IOnBehalfTradingFunctionsGroup_PermissionQueries, IOnBehalfTradingFunctionsGroup_PermissionManagement, IOnBehalfTradingFunctionsGroup_Configuration, IOnBehalfTradingFunctionsGroup_AdminFunctions, IOnBehalfTradingFunctionsGroup_ContractReferences } from "./IOnBehalfTradingService";
|
|
4
|
+
import { ILynxVersionedContract, IPendableAdmin } from "../common";
|
|
5
|
+
/**
|
|
6
|
+
* Service for interacting with the OnBehalfTrading contract
|
|
7
|
+
* Manages delegated trading permissions between users
|
|
8
|
+
*/
|
|
4
9
|
export declare class OnBehalfTradingService implements IOnBehalfTradingService {
|
|
5
10
|
private readonly contract;
|
|
6
11
|
private readonly isSigner;
|
|
12
|
+
readonly permissionQueries: IOnBehalfTradingFunctionsGroup_PermissionQueries;
|
|
13
|
+
readonly permissionManagement: IOnBehalfTradingFunctionsGroup_PermissionManagement;
|
|
14
|
+
readonly configuration: IOnBehalfTradingFunctionsGroup_Configuration;
|
|
15
|
+
readonly adminFunctions: IOnBehalfTradingFunctionsGroup_AdminFunctions;
|
|
16
|
+
readonly contractReferences: IOnBehalfTradingFunctionsGroup_ContractReferences;
|
|
17
|
+
readonly pendableAdmin: IPendableAdmin;
|
|
18
|
+
readonly lynxVersionedContract: ILynxVersionedContract;
|
|
7
19
|
constructor(signerOrProvider: Signer | Provider, address: string);
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
maxPermissionAmountPerToken(token: string): Promise<bigint>;
|
|
13
|
-
isPermissionValid(owner: string, spender: string, token: string): Promise<boolean>;
|
|
14
|
-
getRemainingAmount(owner: string, spender: string, token: string): Promise<bigint>;
|
|
15
|
-
getPermission(owner: string, spender: string, token: string): Promise<PermissionInfo>;
|
|
16
|
-
permanentlyRevoked(owner: string, spender: string): Promise<boolean>;
|
|
17
|
-
grantPermission(spender: string, token: string, amountLimit: bigint, duration: bigint): Promise<void>;
|
|
18
|
-
revokePermission(spender: string, token: string): Promise<void>;
|
|
19
|
-
revokeAllPermissions(spender: string): Promise<void>;
|
|
20
|
-
chargePermission(owner: string, spender: string, token: string, amount: bigint): Promise<void>;
|
|
21
|
-
setMaxPermissionDuration(maxDuration: bigint): Promise<void>;
|
|
22
|
-
setMaxPermissionAmountForToken(token: string, maxAmount: bigint): Promise<void>;
|
|
23
|
-
setMaxPermissionAmountsForTokens(tokens: string[], maxAmounts: bigint[]): Promise<void>;
|
|
24
|
-
togglePause(): Promise<void>;
|
|
25
|
-
setDynamicRoleCaller(caller: string, roleName: string): Promise<void>;
|
|
26
|
-
setDynamicRoleCallers(callers: string[], roleNames: string[]): Promise<void>;
|
|
20
|
+
/**
|
|
21
|
+
* Get the underlying contract instance
|
|
22
|
+
* Useful for accessing contract methods directly when needed
|
|
23
|
+
*/
|
|
27
24
|
getContract(): OnBehalfTradingV1;
|
|
28
25
|
}
|
|
29
26
|
//# sourceMappingURL=OnBehalfTradingService.d.ts.map
|
package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OnBehalfTradingService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"OnBehalfTradingService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,kEAAkE,CAAC;AAErG,OAAO,EACL,uBAAuB,EACvB,gDAAgD,EAChD,mDAAmD,EACnD,4CAA4C,EAC5C,6CAA6C,EAC7C,iDAAiD,EAKlD,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AA6VnE;;;GAGG;AACH,qBAAa,sBAAuB,YAAW,uBAAuB;IACpE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAoB;IAC7C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAU;IAEnC,SAAgB,iBAAiB,EAAE,gDAAgD,CAAC;IACpF,SAAgB,oBAAoB,EAAE,mDAAmD,CAAC;IAC1F,SAAgB,aAAa,EAAE,4CAA4C,CAAC;IAC5E,SAAgB,cAAc,EAAE,6CAA6C,CAAC;IAC9E,SAAgB,kBAAkB,EAAE,iDAAiD,CAAC;IACtF,SAAgB,aAAa,EAAE,cAAc,CAAC;IAC9C,SAAgB,qBAAqB,EAAE,sBAAsB,CAAC;gBAElD,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EAAE,OAAO,EAAE,MAAM;IAoBhE;;;OAGG;IACH,WAAW,IAAI,iBAAiB;CAGjC"}
|
|
@@ -2,28 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.OnBehalfTradingService = void 0;
|
|
4
4
|
const OnBehalfTradingV1__factory_1 = require("../../typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
this.
|
|
9
|
-
}
|
|
10
|
-
// Read methods
|
|
11
|
-
async getContractName() {
|
|
12
|
-
return await this.contract.getContractName();
|
|
5
|
+
// ============ Permission Queries Implementation ============
|
|
6
|
+
class PermissionQueries {
|
|
7
|
+
constructor(contract) {
|
|
8
|
+
this.contract = contract;
|
|
13
9
|
}
|
|
14
|
-
async getContractVersion() {
|
|
15
|
-
return await this.contract.getContractVersion();
|
|
16
|
-
}
|
|
17
|
-
async isPaused() {
|
|
18
|
-
return await this.contract.isPaused();
|
|
19
|
-
}
|
|
20
|
-
async maxPermissionDuration() {
|
|
21
|
-
return await this.contract.maxPermissionDuration();
|
|
22
|
-
}
|
|
23
|
-
async maxPermissionAmountPerToken(token) {
|
|
24
|
-
return await this.contract.maxPermissionAmountPerToken(token);
|
|
25
|
-
}
|
|
26
|
-
// Permission checking methods
|
|
27
10
|
async isPermissionValid(owner, spender, token) {
|
|
28
11
|
return await this.contract.isPermissionValid(owner, spender, token);
|
|
29
12
|
}
|
|
@@ -36,13 +19,47 @@ class OnBehalfTradingService {
|
|
|
36
19
|
amountLimit: permission.amountLimit,
|
|
37
20
|
amountUsed: permission.amountUsed,
|
|
38
21
|
expiryTime: permission.expiryTime,
|
|
39
|
-
isActive: permission.isActive
|
|
22
|
+
isActive: permission.isActive,
|
|
40
23
|
};
|
|
41
24
|
}
|
|
42
25
|
async permanentlyRevoked(owner, spender) {
|
|
43
26
|
return await this.contract.permanentlyRevoked(owner, spender);
|
|
44
27
|
}
|
|
45
|
-
|
|
28
|
+
async hasActivePermissions(owner) {
|
|
29
|
+
return await this.contract.hasActivePermissions(owner);
|
|
30
|
+
}
|
|
31
|
+
async getActivePermissionCount(owner) {
|
|
32
|
+
return await this.contract.getActivePermissionCount(owner);
|
|
33
|
+
}
|
|
34
|
+
async getActiveSpenders(owner) {
|
|
35
|
+
return await this.contract.getActiveSpenders(owner);
|
|
36
|
+
}
|
|
37
|
+
async getActiveTokensForSpender(owner, spender) {
|
|
38
|
+
return await this.contract.getActiveTokensForSpender(owner, spender);
|
|
39
|
+
}
|
|
40
|
+
async getAllActivePermissions(owner) {
|
|
41
|
+
const result = await this.contract.getAllActivePermissions(owner);
|
|
42
|
+
return {
|
|
43
|
+
spenders: result.spenders,
|
|
44
|
+
tokens: result.tokens,
|
|
45
|
+
permissionData: result.permissionData.map((p) => ({
|
|
46
|
+
amountLimit: p.amountLimit,
|
|
47
|
+
amountUsed: p.amountUsed,
|
|
48
|
+
expiryTime: p.expiryTime,
|
|
49
|
+
isActive: p.isActive,
|
|
50
|
+
})),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
async requirePermission(owner, spender, token) {
|
|
54
|
+
await this.contract.requirePermission(owner, spender, token);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
// ============ Permission Management Implementation ============
|
|
58
|
+
class PermissionManagement {
|
|
59
|
+
constructor(contract, isSigner) {
|
|
60
|
+
this.contract = contract;
|
|
61
|
+
this.isSigner = isSigner;
|
|
62
|
+
}
|
|
46
63
|
async grantPermission(spender, token, amountLimit, duration) {
|
|
47
64
|
if (!this.isSigner) {
|
|
48
65
|
throw new Error("OnBehalfTradingService: Write operations require a signer");
|
|
@@ -71,7 +88,45 @@ class OnBehalfTradingService {
|
|
|
71
88
|
const tx = await this.contract.chargePermission(owner, spender, token, amount);
|
|
72
89
|
await tx.wait();
|
|
73
90
|
}
|
|
74
|
-
|
|
91
|
+
async setPermissions(payloads) {
|
|
92
|
+
if (!this.isSigner) {
|
|
93
|
+
throw new Error("OnBehalfTradingService: Write operations require a signer");
|
|
94
|
+
}
|
|
95
|
+
const tx = await this.contract.setPermissions(payloads);
|
|
96
|
+
await tx.wait();
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
// ============ Configuration Implementation ============
|
|
100
|
+
class Configuration {
|
|
101
|
+
constructor(contract) {
|
|
102
|
+
this.contract = contract;
|
|
103
|
+
}
|
|
104
|
+
async isPaused() {
|
|
105
|
+
return await this.contract.isPaused();
|
|
106
|
+
}
|
|
107
|
+
async maxPermissionDuration() {
|
|
108
|
+
return await this.contract.maxPermissionDuration();
|
|
109
|
+
}
|
|
110
|
+
async maxPermissionAmountPerToken(token) {
|
|
111
|
+
return await this.contract.maxPermissionAmountPerToken(token);
|
|
112
|
+
}
|
|
113
|
+
async getContractConfiguration(tokensToQuery) {
|
|
114
|
+
const config = await this.contract.getContractConfiguration(tokensToQuery);
|
|
115
|
+
return {
|
|
116
|
+
isPausedState: config.isPausedState,
|
|
117
|
+
maxDuration: config.maxDuration,
|
|
118
|
+
tokenMaxAmounts: config.tokenMaxAmounts,
|
|
119
|
+
registryAddress: config.registryAddress,
|
|
120
|
+
tradersPortalAddress: config.tradersPortalAddress,
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
// ============ Admin Functions Implementation ============
|
|
125
|
+
class AdminFunctions {
|
|
126
|
+
constructor(contract, isSigner) {
|
|
127
|
+
this.contract = contract;
|
|
128
|
+
this.isSigner = isSigner;
|
|
129
|
+
}
|
|
75
130
|
async setMaxPermissionDuration(maxDuration) {
|
|
76
131
|
if (!this.isSigner) {
|
|
77
132
|
throw new Error("OnBehalfTradingService: Write operations require a signer");
|
|
@@ -114,7 +169,85 @@ class OnBehalfTradingService {
|
|
|
114
169
|
const tx = await this.contract.setDynamicRoleCallers(callers, roleNames);
|
|
115
170
|
await tx.wait();
|
|
116
171
|
}
|
|
117
|
-
|
|
172
|
+
async setPendingAdmin(newPendingAdmin) {
|
|
173
|
+
if (!this.isSigner) {
|
|
174
|
+
throw new Error("OnBehalfTradingService: Write operations require a signer");
|
|
175
|
+
}
|
|
176
|
+
const tx = await this.contract._setPendingAdmin(newPendingAdmin);
|
|
177
|
+
await tx.wait();
|
|
178
|
+
}
|
|
179
|
+
async acceptAdmin() {
|
|
180
|
+
if (!this.isSigner) {
|
|
181
|
+
throw new Error("OnBehalfTradingService: Write operations require a signer");
|
|
182
|
+
}
|
|
183
|
+
const tx = await this.contract._acceptAdmin();
|
|
184
|
+
await tx.wait();
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
// ============ Contract References Implementation ============
|
|
188
|
+
class ContractReferences {
|
|
189
|
+
constructor(contract) {
|
|
190
|
+
this.contract = contract;
|
|
191
|
+
}
|
|
192
|
+
async registry() {
|
|
193
|
+
return await this.contract.registry();
|
|
194
|
+
}
|
|
195
|
+
async dynamicRoleCallers(address) {
|
|
196
|
+
return await this.contract.dynamicRoleCallers(address);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
// ============ Pendable Admin Implementation ============
|
|
200
|
+
class PendableAdmin {
|
|
201
|
+
constructor(contract) {
|
|
202
|
+
this.contract = contract;
|
|
203
|
+
}
|
|
204
|
+
async admin() {
|
|
205
|
+
return await this.contract.admin();
|
|
206
|
+
}
|
|
207
|
+
async pendingAdmin() {
|
|
208
|
+
return await this.contract.pendingAdmin();
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
// ============ Lynx Versioned Contract Implementation ============
|
|
212
|
+
class LynxVersionedContract {
|
|
213
|
+
constructor(contract) {
|
|
214
|
+
this.contract = contract;
|
|
215
|
+
}
|
|
216
|
+
async getContractName() {
|
|
217
|
+
return await this.contract.getContractName();
|
|
218
|
+
}
|
|
219
|
+
async getContractVersion() {
|
|
220
|
+
return await this.contract.getContractVersion();
|
|
221
|
+
}
|
|
222
|
+
async CONTRACT_NAME() {
|
|
223
|
+
return await this.contract.CONTRACT_NAME();
|
|
224
|
+
}
|
|
225
|
+
async CONTRACT_VERSION() {
|
|
226
|
+
return await this.contract.CONTRACT_VERSION();
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
// ============ Main Service Class ============
|
|
230
|
+
/**
|
|
231
|
+
* Service for interacting with the OnBehalfTrading contract
|
|
232
|
+
* Manages delegated trading permissions between users
|
|
233
|
+
*/
|
|
234
|
+
class OnBehalfTradingService {
|
|
235
|
+
constructor(signerOrProvider, address) {
|
|
236
|
+
this.contract = OnBehalfTradingV1__factory_1.OnBehalfTradingV1__factory.connect(address, signerOrProvider);
|
|
237
|
+
this.isSigner = "sendTransaction" in signerOrProvider;
|
|
238
|
+
// Initialize all function groups using separate classes
|
|
239
|
+
this.permissionQueries = new PermissionQueries(this.contract);
|
|
240
|
+
this.permissionManagement = new PermissionManagement(this.contract, this.isSigner);
|
|
241
|
+
this.configuration = new Configuration(this.contract);
|
|
242
|
+
this.adminFunctions = new AdminFunctions(this.contract, this.isSigner);
|
|
243
|
+
this.contractReferences = new ContractReferences(this.contract);
|
|
244
|
+
this.pendableAdmin = new PendableAdmin(this.contract);
|
|
245
|
+
this.lynxVersionedContract = new LynxVersionedContract(this.contract);
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* Get the underlying contract instance
|
|
249
|
+
* Useful for accessing contract methods directly when needed
|
|
250
|
+
*/
|
|
118
251
|
getContract() {
|
|
119
252
|
return this.contract;
|
|
120
253
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { OnBehalfTradingService } from "./OnBehalfTradingService";
|
|
2
|
-
export type { IOnBehalfTradingService, PermissionInfo } from "./IOnBehalfTradingService";
|
|
2
|
+
export type { IOnBehalfTradingService, IOnBehalfTradingFunctionsGroup_PermissionQueries, IOnBehalfTradingFunctionsGroup_PermissionManagement, IOnBehalfTradingFunctionsGroup_Configuration, IOnBehalfTradingFunctionsGroup_AdminFunctions, IOnBehalfTradingFunctionsGroup_ContractReferences, PermissionInfo, ContractConfiguration, AllActivePermissionsResult, PermissionSettingPayload, } from "./IOnBehalfTradingService";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/OnBehalfTradingService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/OnBehalfTradingService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,YAAY,EACV,uBAAuB,EACvB,gDAAgD,EAChD,mDAAmD,EACnD,4CAA4C,EAC5C,6CAA6C,EAC7C,iDAAiD,EACjD,cAAc,EACd,qBAAqB,EACrB,0BAA0B,EAC1B,wBAAwB,GACzB,MAAM,2BAA2B,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BytesLike, BigNumberish, AddressLike, ContractTransactionResponse } from "ethers";
|
|
2
2
|
import { OrderBookStructsV1 } from "../../typechain/contracts/Lynx/OrderBook/OrderBookV1";
|
|
3
3
|
import { TSafeBigNumberStruct } from "../../utils/ethersTypes";
|
|
4
|
+
import { IPendableAdmin, IPendableImplementation, IProtocolConstants } from "../common";
|
|
4
5
|
type UpdatePositionFieldOrderStruct = OrderBookStructsV1.UpdatePositionFieldOrderStruct;
|
|
5
6
|
export type TUpdatePositionFieldOrderStruct = TSafeBigNumberStruct<UpdatePositionFieldOrderStruct>;
|
|
6
7
|
export interface IOrderBookFunctionsGroup_OrderManagement {
|
|
@@ -12,27 +13,22 @@ export interface IOrderBookFunctionsGroup_OrderManagement {
|
|
|
12
13
|
storeUpdatePositionSingleFieldOrder(positionId: BytesLike, orderType: BigNumberish, fieldValue: BigNumberish): Promise<ContractTransactionResponse>;
|
|
13
14
|
updateOrderIdPositionInList(positionId: BytesLike): Promise<bigint>;
|
|
14
15
|
}
|
|
15
|
-
export interface
|
|
16
|
+
export interface IOrderBookFunctionsGroup_ContractReferences {
|
|
16
17
|
registry(): Promise<string>;
|
|
17
18
|
tradingFloor(): Promise<string>;
|
|
18
|
-
admin(): Promise<string>;
|
|
19
|
-
pendingAdmin(): Promise<string>;
|
|
20
|
-
implementation(): Promise<string>;
|
|
21
|
-
pendingImplementation(): Promise<string>;
|
|
22
19
|
}
|
|
23
20
|
export interface IOrderBookFunctionsGroup_Administration {
|
|
24
21
|
setTradingFloor(tradingFloor: AddressLike): Promise<ContractTransactionResponse>;
|
|
25
22
|
_become(orderBookProxy: AddressLike): Promise<ContractTransactionResponse>;
|
|
26
23
|
}
|
|
27
|
-
export interface IOrderBookFunctionsGroup_Constants {
|
|
24
|
+
export interface IOrderBookFunctionsGroup_Constants extends IProtocolConstants {
|
|
28
25
|
ACCURACY_IMPROVEMENT_SCALE(): Promise<bigint>;
|
|
29
|
-
FRACTION_SCALE(): Promise<bigint>;
|
|
30
|
-
LEVERAGE_SCALE(): Promise<bigint>;
|
|
31
|
-
PRECISION(): Promise<bigint>;
|
|
32
26
|
}
|
|
33
27
|
export interface IOrderBookService {
|
|
34
28
|
orderManagement: IOrderBookFunctionsGroup_OrderManagement;
|
|
35
|
-
|
|
29
|
+
contractReferences: IOrderBookFunctionsGroup_ContractReferences;
|
|
30
|
+
pendableAdmin: IPendableAdmin;
|
|
31
|
+
pendableImplementation: IPendableImplementation;
|
|
36
32
|
administration: IOrderBookFunctionsGroup_Administration;
|
|
37
33
|
constants: IOrderBookFunctionsGroup_Constants;
|
|
38
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IOrderBookService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/OrderBookService/IOrderBookService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,2BAA2B,EAAE,MAAM,QAAQ,CAAC;AAC3F,OAAO,EAAE,kBAAkB,EAAE,MAAM,sDAAsD,CAAC;AAC1F,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"IOrderBookService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/OrderBookService/IOrderBookService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,2BAA2B,EAAE,MAAM,QAAQ,CAAC;AAC3F,OAAO,EAAE,kBAAkB,EAAE,MAAM,sDAAsD,CAAC;AAC1F,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAExF,KAAK,8BAA8B,GAAG,kBAAkB,CAAC,8BAA8B,CAAC;AAExF,MAAM,MAAM,+BAA+B,GAAG,oBAAoB,CAAC,8BAA8B,CAAC,CAAC;AAEnG,MAAM,WAAW,wCAAwC;IACvD,2BAA2B,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IACjD,wBAAwB,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC/D,iCAAiC,CAAC,UAAU,EAAE,SAAS,GAAG,OAAO,CAAC,+BAA+B,CAAC,CAAC;IACnG,gCAAgC,CAAC,UAAU,EAAE,SAAS,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAC9F,mCAAmC,CACjC,UAAU,EAAE,SAAS,EACrB,SAAS,EAAE,YAAY,EACvB,WAAW,EAAE,YAAY,EACzB,WAAW,EAAE,YAAY,GACxB,OAAO,CAAC,2BAA2B,CAAC,CAAC;IACxC,mCAAmC,CACjC,UAAU,EAAE,SAAS,EACrB,SAAS,EAAE,YAAY,EACvB,UAAU,EAAE,YAAY,GACvB,OAAO,CAAC,2BAA2B,CAAC,CAAC;IACxC,2BAA2B,CAAC,UAAU,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CACrE;AAED,MAAM,WAAW,2CAA2C;IAC1D,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAC5B,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;CACjC;AAED,MAAM,WAAW,uCAAuC;IACtD,eAAe,CAAC,YAAY,EAAE,WAAW,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;IACjF,OAAO,CAAC,cAAc,EAAE,WAAW,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;CAC5E;AAED,MAAM,WAAW,kCAAmC,SAAQ,kBAAkB;IAG5E,0BAA0B,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;CAC/C;AAED,MAAM,WAAW,iBAAiB;IAChC,eAAe,EAAE,wCAAwC,CAAC;IAC1D,kBAAkB,EAAE,2CAA2C,CAAC;IAChE,aAAa,EAAE,cAAc,CAAC;IAC9B,sBAAsB,EAAE,uBAAuB,CAAC;IAChD,cAAc,EAAE,uCAAuC,CAAC;IACxD,SAAS,EAAE,kCAAkC,CAAC;CAC/C"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { Signer, Provider } from "ethers";
|
|
2
|
-
import { IOrderBookService, IOrderBookFunctionsGroup_OrderManagement,
|
|
2
|
+
import { IOrderBookService, IOrderBookFunctionsGroup_OrderManagement, IOrderBookFunctionsGroup_ContractReferences, IOrderBookFunctionsGroup_Administration, IOrderBookFunctionsGroup_Constants } from "./IOrderBookService";
|
|
3
|
+
import { IPendableAdmin, IPendableImplementation } from "../common";
|
|
3
4
|
export declare class OrderBookService implements IOrderBookService {
|
|
4
5
|
private signerOrProvider;
|
|
5
6
|
private orderBookContract;
|
|
6
7
|
readonly orderManagement: IOrderBookFunctionsGroup_OrderManagement;
|
|
7
|
-
readonly
|
|
8
|
+
readonly contractReferences: IOrderBookFunctionsGroup_ContractReferences;
|
|
9
|
+
readonly pendableAdmin: IPendableAdmin;
|
|
10
|
+
readonly pendableImplementation: IPendableImplementation;
|
|
8
11
|
readonly administration: IOrderBookFunctionsGroup_Administration;
|
|
9
12
|
readonly constants: IOrderBookFunctionsGroup_Constants;
|
|
10
13
|
constructor(address: string, signerOrProvider: Signer | Provider);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrderBookService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/OrderBookService/OrderBookService.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,QAAQ,EAKT,MAAM,QAAQ,CAAC;AAIhB,OAAO,EACL,iBAAiB,EACjB,wCAAwC,EACxC,
|
|
1
|
+
{"version":3,"file":"OrderBookService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/OrderBookService/OrderBookService.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,QAAQ,EAKT,MAAM,QAAQ,CAAC;AAIhB,OAAO,EACL,iBAAiB,EACjB,wCAAwC,EACxC,2CAA2C,EAC3C,uCAAuC,EACvC,kCAAkC,EAEnC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AAgIpE,qBAAa,gBAAiB,YAAW,iBAAiB;IAWtD,OAAO,CAAC,gBAAgB;IAV1B,OAAO,CAAC,iBAAiB,CAAc;IACvC,SAAgB,eAAe,EAAE,wCAAwC,CAAC;IAC1E,SAAgB,kBAAkB,EAAE,2CAA2C,CAAC;IAChF,SAAgB,aAAa,EAAE,cAAc,CAAC;IAC9C,SAAgB,sBAAsB,EAAE,uBAAuB,CAAC;IAChE,SAAgB,cAAc,EAAE,uCAAuC,CAAC;IACxE,SAAgB,SAAS,EAAE,kCAAkC,CAAC;gBAG5D,OAAO,EAAE,MAAM,EACP,gBAAgB,EAAE,MAAM,GAAG,QAAQ;CAc9C"}
|
|
@@ -28,7 +28,7 @@ class OrderManagement {
|
|
|
28
28
|
return this.orderBookContract.updateOrderIdPositionInList(positionId);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
class
|
|
31
|
+
class ContractReferences {
|
|
32
32
|
constructor(orderBookContract) {
|
|
33
33
|
this.orderBookContract = orderBookContract;
|
|
34
34
|
}
|
|
@@ -38,12 +38,22 @@ class ContractInfo {
|
|
|
38
38
|
async tradingFloor() {
|
|
39
39
|
return this.orderBookContract.tradingFloor();
|
|
40
40
|
}
|
|
41
|
+
}
|
|
42
|
+
class PendableAdmin {
|
|
43
|
+
constructor(orderBookContract) {
|
|
44
|
+
this.orderBookContract = orderBookContract;
|
|
45
|
+
}
|
|
41
46
|
async admin() {
|
|
42
47
|
return this.orderBookContract.admin();
|
|
43
48
|
}
|
|
44
49
|
async pendingAdmin() {
|
|
45
50
|
return this.orderBookContract.pendingAdmin();
|
|
46
51
|
}
|
|
52
|
+
}
|
|
53
|
+
class PendableImplementation {
|
|
54
|
+
constructor(orderBookContract) {
|
|
55
|
+
this.orderBookContract = orderBookContract;
|
|
56
|
+
}
|
|
47
57
|
async implementation() {
|
|
48
58
|
return this.orderBookContract.implementation();
|
|
49
59
|
}
|
|
@@ -84,7 +94,9 @@ class OrderBookService {
|
|
|
84
94
|
this.signerOrProvider = signerOrProvider;
|
|
85
95
|
this.orderBookContract = OrderBookV1__factory_1.OrderBookV1__factory.connect(address, signerOrProvider);
|
|
86
96
|
this.orderManagement = new OrderManagement(this.orderBookContract);
|
|
87
|
-
this.
|
|
97
|
+
this.contractReferences = new ContractReferences(this.orderBookContract);
|
|
98
|
+
this.pendableAdmin = new PendableAdmin(this.orderBookContract);
|
|
99
|
+
this.pendableImplementation = new PendableImplementation(this.orderBookContract);
|
|
88
100
|
this.administration = new Administration(this.orderBookContract);
|
|
89
101
|
this.constants = new Constants(this.orderBookContract);
|
|
90
102
|
}
|