lynx-client 0.0.10 → 0.0.12
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 +5 -1
- package/dist/cjs/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.js +1 -0
- package/dist/cjs/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.js +2 -0
- package/dist/cjs/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.js +255 -0
- package/dist/cjs/lib/contractsIntegration/OnBehalfTradingService/index.js +5 -0
- 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/contractsIntegration/deployedContractsConnector.js +17 -0
- package/dist/cjs/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.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 +979 -0
- 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 +114 -29
- 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 +4 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +5 -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 +74 -0
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.js +2 -0
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts +26 -0
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.js +255 -0
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/index.d.ts +3 -0
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/index.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/index.js +5 -0
- 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/contractsIntegration/deployedContractsConnector.d.ts +5 -0
- package/dist/esm/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/deployedContractsConnector.js +17 -0
- package/dist/esm/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.d.ts +648 -0
- package/dist/esm/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.d.ts.map +1 -0
- package/dist/esm/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.js +2 -0
- package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts +54 -4
- package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.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 +750 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.d.ts.map +1 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.js +979 -0
- 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 +91 -22
- 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 +114 -29
- 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 +4 -0
- 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 +74 -0
- package/dist/types/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts +26 -0
- package/dist/types/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/OnBehalfTradingService/index.d.ts +3 -0
- package/dist/types/lib/contractsIntegration/OnBehalfTradingService/index.d.ts.map +1 -0
- 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/contractsIntegration/deployedContractsConnector.d.ts +5 -0
- package/dist/types/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -1
- package/dist/types/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.d.ts +648 -0
- package/dist/types/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.d.ts.map +1 -0
- package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts +54 -4
- package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.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 +750 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.d.ts.map +1 -0
- 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 +91 -22
- 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
|
@@ -0,0 +1,648 @@
|
|
|
1
|
+
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../../common";
|
|
3
|
+
export declare namespace OnBehalfTradingStructsV1 {
|
|
4
|
+
type TradingPermissionStruct = {
|
|
5
|
+
amountLimit: BigNumberish;
|
|
6
|
+
amountUsed: BigNumberish;
|
|
7
|
+
expiryTime: BigNumberish;
|
|
8
|
+
isActive: boolean;
|
|
9
|
+
};
|
|
10
|
+
type TradingPermissionStructOutput = [
|
|
11
|
+
amountLimit: bigint,
|
|
12
|
+
amountUsed: bigint,
|
|
13
|
+
expiryTime: bigint,
|
|
14
|
+
isActive: boolean
|
|
15
|
+
] & {
|
|
16
|
+
amountLimit: bigint;
|
|
17
|
+
amountUsed: bigint;
|
|
18
|
+
expiryTime: bigint;
|
|
19
|
+
isActive: boolean;
|
|
20
|
+
};
|
|
21
|
+
type PermissionSettingPayloadStruct = {
|
|
22
|
+
spender: AddressLike;
|
|
23
|
+
token: AddressLike;
|
|
24
|
+
amountLimit: BigNumberish;
|
|
25
|
+
duration: BigNumberish;
|
|
26
|
+
};
|
|
27
|
+
type PermissionSettingPayloadStructOutput = [
|
|
28
|
+
spender: string,
|
|
29
|
+
token: string,
|
|
30
|
+
amountLimit: bigint,
|
|
31
|
+
duration: bigint
|
|
32
|
+
] & {
|
|
33
|
+
spender: string;
|
|
34
|
+
token: string;
|
|
35
|
+
amountLimit: bigint;
|
|
36
|
+
duration: bigint;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export interface OnBehalfTradingV1Interface extends Interface {
|
|
40
|
+
getFunction(nameOrSignature: "CONTRACT_NAME" | "CONTRACT_VERSION" | "_acceptAdmin" | "_setPendingAdmin" | "admin" | "chargePermission" | "dynamicRoleCallers" | "getActivePermissionCount" | "getActiveSpenders" | "getActiveTokensForSpender" | "getAllActivePermissions" | "getContractConfiguration" | "getContractName" | "getContractVersion" | "getRemainingAmount" | "grantPermission" | "hasActivePermissions" | "isPaused" | "isPermissionValid" | "maxPermissionAmountPerToken" | "maxPermissionDuration" | "pendingAdmin" | "permanentlyRevoked" | "permissions" | "registry" | "requirePermission" | "revokeAllPermissions" | "revokePermission" | "setDynamicRoleCaller" | "setDynamicRoleCallers" | "setMaxPermissionAmountForToken" | "setMaxPermissionAmountsForTokens" | "setMaxPermissionDuration" | "setPermissions" | "togglePause"): FunctionFragment;
|
|
41
|
+
getEvent(nameOrSignatureOrTopic: "AllPermissionsPermanentlyRevoked" | "DynamicRoleCallerUpdated" | "MaxPermissionAmountUpdatedForToken" | "MaxPermissionDurationUpdated" | "NewAdmin" | "NewPendingAdmin" | "PausedToggled" | "PermissionCharged" | "PermissionGranted" | "PermissionRevoked"): EventFragment;
|
|
42
|
+
encodeFunctionData(functionFragment: "CONTRACT_NAME", values?: undefined): string;
|
|
43
|
+
encodeFunctionData(functionFragment: "CONTRACT_VERSION", values?: undefined): string;
|
|
44
|
+
encodeFunctionData(functionFragment: "_acceptAdmin", values?: undefined): string;
|
|
45
|
+
encodeFunctionData(functionFragment: "_setPendingAdmin", values: [AddressLike]): string;
|
|
46
|
+
encodeFunctionData(functionFragment: "admin", values?: undefined): string;
|
|
47
|
+
encodeFunctionData(functionFragment: "chargePermission", values: [AddressLike, AddressLike, AddressLike, BigNumberish]): string;
|
|
48
|
+
encodeFunctionData(functionFragment: "dynamicRoleCallers", values: [AddressLike]): string;
|
|
49
|
+
encodeFunctionData(functionFragment: "getActivePermissionCount", values: [AddressLike]): string;
|
|
50
|
+
encodeFunctionData(functionFragment: "getActiveSpenders", values: [AddressLike]): string;
|
|
51
|
+
encodeFunctionData(functionFragment: "getActiveTokensForSpender", values: [AddressLike, AddressLike]): string;
|
|
52
|
+
encodeFunctionData(functionFragment: "getAllActivePermissions", values: [AddressLike]): string;
|
|
53
|
+
encodeFunctionData(functionFragment: "getContractConfiguration", values: [AddressLike[]]): string;
|
|
54
|
+
encodeFunctionData(functionFragment: "getContractName", values?: undefined): string;
|
|
55
|
+
encodeFunctionData(functionFragment: "getContractVersion", values?: undefined): string;
|
|
56
|
+
encodeFunctionData(functionFragment: "getRemainingAmount", values: [AddressLike, AddressLike, AddressLike]): string;
|
|
57
|
+
encodeFunctionData(functionFragment: "grantPermission", values: [AddressLike, AddressLike, BigNumberish, BigNumberish]): string;
|
|
58
|
+
encodeFunctionData(functionFragment: "hasActivePermissions", values: [AddressLike]): string;
|
|
59
|
+
encodeFunctionData(functionFragment: "isPaused", values?: undefined): string;
|
|
60
|
+
encodeFunctionData(functionFragment: "isPermissionValid", values: [AddressLike, AddressLike, AddressLike]): string;
|
|
61
|
+
encodeFunctionData(functionFragment: "maxPermissionAmountPerToken", values: [AddressLike]): string;
|
|
62
|
+
encodeFunctionData(functionFragment: "maxPermissionDuration", values?: undefined): string;
|
|
63
|
+
encodeFunctionData(functionFragment: "pendingAdmin", values?: undefined): string;
|
|
64
|
+
encodeFunctionData(functionFragment: "permanentlyRevoked", values: [AddressLike, AddressLike]): string;
|
|
65
|
+
encodeFunctionData(functionFragment: "permissions", values: [AddressLike, AddressLike, AddressLike]): string;
|
|
66
|
+
encodeFunctionData(functionFragment: "registry", values?: undefined): string;
|
|
67
|
+
encodeFunctionData(functionFragment: "requirePermission", values: [AddressLike, AddressLike, AddressLike]): string;
|
|
68
|
+
encodeFunctionData(functionFragment: "revokeAllPermissions", values: [AddressLike]): string;
|
|
69
|
+
encodeFunctionData(functionFragment: "revokePermission", values: [AddressLike, AddressLike]): string;
|
|
70
|
+
encodeFunctionData(functionFragment: "setDynamicRoleCaller", values: [AddressLike, string]): string;
|
|
71
|
+
encodeFunctionData(functionFragment: "setDynamicRoleCallers", values: [AddressLike[], string[]]): string;
|
|
72
|
+
encodeFunctionData(functionFragment: "setMaxPermissionAmountForToken", values: [AddressLike, BigNumberish]): string;
|
|
73
|
+
encodeFunctionData(functionFragment: "setMaxPermissionAmountsForTokens", values: [AddressLike[], BigNumberish[]]): string;
|
|
74
|
+
encodeFunctionData(functionFragment: "setMaxPermissionDuration", values: [BigNumberish]): string;
|
|
75
|
+
encodeFunctionData(functionFragment: "setPermissions", values: [OnBehalfTradingStructsV1.PermissionSettingPayloadStruct[]]): string;
|
|
76
|
+
encodeFunctionData(functionFragment: "togglePause", values?: undefined): string;
|
|
77
|
+
decodeFunctionResult(functionFragment: "CONTRACT_NAME", data: BytesLike): Result;
|
|
78
|
+
decodeFunctionResult(functionFragment: "CONTRACT_VERSION", data: BytesLike): Result;
|
|
79
|
+
decodeFunctionResult(functionFragment: "_acceptAdmin", data: BytesLike): Result;
|
|
80
|
+
decodeFunctionResult(functionFragment: "_setPendingAdmin", data: BytesLike): Result;
|
|
81
|
+
decodeFunctionResult(functionFragment: "admin", data: BytesLike): Result;
|
|
82
|
+
decodeFunctionResult(functionFragment: "chargePermission", data: BytesLike): Result;
|
|
83
|
+
decodeFunctionResult(functionFragment: "dynamicRoleCallers", data: BytesLike): Result;
|
|
84
|
+
decodeFunctionResult(functionFragment: "getActivePermissionCount", data: BytesLike): Result;
|
|
85
|
+
decodeFunctionResult(functionFragment: "getActiveSpenders", data: BytesLike): Result;
|
|
86
|
+
decodeFunctionResult(functionFragment: "getActiveTokensForSpender", data: BytesLike): Result;
|
|
87
|
+
decodeFunctionResult(functionFragment: "getAllActivePermissions", data: BytesLike): Result;
|
|
88
|
+
decodeFunctionResult(functionFragment: "getContractConfiguration", data: BytesLike): Result;
|
|
89
|
+
decodeFunctionResult(functionFragment: "getContractName", data: BytesLike): Result;
|
|
90
|
+
decodeFunctionResult(functionFragment: "getContractVersion", data: BytesLike): Result;
|
|
91
|
+
decodeFunctionResult(functionFragment: "getRemainingAmount", data: BytesLike): Result;
|
|
92
|
+
decodeFunctionResult(functionFragment: "grantPermission", data: BytesLike): Result;
|
|
93
|
+
decodeFunctionResult(functionFragment: "hasActivePermissions", data: BytesLike): Result;
|
|
94
|
+
decodeFunctionResult(functionFragment: "isPaused", data: BytesLike): Result;
|
|
95
|
+
decodeFunctionResult(functionFragment: "isPermissionValid", data: BytesLike): Result;
|
|
96
|
+
decodeFunctionResult(functionFragment: "maxPermissionAmountPerToken", data: BytesLike): Result;
|
|
97
|
+
decodeFunctionResult(functionFragment: "maxPermissionDuration", data: BytesLike): Result;
|
|
98
|
+
decodeFunctionResult(functionFragment: "pendingAdmin", data: BytesLike): Result;
|
|
99
|
+
decodeFunctionResult(functionFragment: "permanentlyRevoked", data: BytesLike): Result;
|
|
100
|
+
decodeFunctionResult(functionFragment: "permissions", data: BytesLike): Result;
|
|
101
|
+
decodeFunctionResult(functionFragment: "registry", data: BytesLike): Result;
|
|
102
|
+
decodeFunctionResult(functionFragment: "requirePermission", data: BytesLike): Result;
|
|
103
|
+
decodeFunctionResult(functionFragment: "revokeAllPermissions", data: BytesLike): Result;
|
|
104
|
+
decodeFunctionResult(functionFragment: "revokePermission", data: BytesLike): Result;
|
|
105
|
+
decodeFunctionResult(functionFragment: "setDynamicRoleCaller", data: BytesLike): Result;
|
|
106
|
+
decodeFunctionResult(functionFragment: "setDynamicRoleCallers", data: BytesLike): Result;
|
|
107
|
+
decodeFunctionResult(functionFragment: "setMaxPermissionAmountForToken", data: BytesLike): Result;
|
|
108
|
+
decodeFunctionResult(functionFragment: "setMaxPermissionAmountsForTokens", data: BytesLike): Result;
|
|
109
|
+
decodeFunctionResult(functionFragment: "setMaxPermissionDuration", data: BytesLike): Result;
|
|
110
|
+
decodeFunctionResult(functionFragment: "setPermissions", data: BytesLike): Result;
|
|
111
|
+
decodeFunctionResult(functionFragment: "togglePause", data: BytesLike): Result;
|
|
112
|
+
}
|
|
113
|
+
export declare namespace AllPermissionsPermanentlyRevokedEvent {
|
|
114
|
+
type InputTuple = [owner: AddressLike, spender: AddressLike];
|
|
115
|
+
type OutputTuple = [owner: string, spender: string];
|
|
116
|
+
interface OutputObject {
|
|
117
|
+
owner: string;
|
|
118
|
+
spender: string;
|
|
119
|
+
}
|
|
120
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
121
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
122
|
+
type Log = TypedEventLog<Event>;
|
|
123
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
124
|
+
}
|
|
125
|
+
export declare namespace DynamicRoleCallerUpdatedEvent {
|
|
126
|
+
type InputTuple = [caller: AddressLike, roleName: string];
|
|
127
|
+
type OutputTuple = [caller: string, roleName: string];
|
|
128
|
+
interface OutputObject {
|
|
129
|
+
caller: string;
|
|
130
|
+
roleName: string;
|
|
131
|
+
}
|
|
132
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
133
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
134
|
+
type Log = TypedEventLog<Event>;
|
|
135
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
136
|
+
}
|
|
137
|
+
export declare namespace MaxPermissionAmountUpdatedForTokenEvent {
|
|
138
|
+
type InputTuple = [token: AddressLike, newMaxAmount: BigNumberish];
|
|
139
|
+
type OutputTuple = [token: string, newMaxAmount: bigint];
|
|
140
|
+
interface OutputObject {
|
|
141
|
+
token: string;
|
|
142
|
+
newMaxAmount: bigint;
|
|
143
|
+
}
|
|
144
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
145
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
146
|
+
type Log = TypedEventLog<Event>;
|
|
147
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
148
|
+
}
|
|
149
|
+
export declare namespace MaxPermissionDurationUpdatedEvent {
|
|
150
|
+
type InputTuple = [newMaxDuration: BigNumberish];
|
|
151
|
+
type OutputTuple = [newMaxDuration: bigint];
|
|
152
|
+
interface OutputObject {
|
|
153
|
+
newMaxDuration: bigint;
|
|
154
|
+
}
|
|
155
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
156
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
157
|
+
type Log = TypedEventLog<Event>;
|
|
158
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
159
|
+
}
|
|
160
|
+
export declare namespace NewAdminEvent {
|
|
161
|
+
type InputTuple = [oldAdmin: AddressLike, newAdmin: AddressLike];
|
|
162
|
+
type OutputTuple = [oldAdmin: string, newAdmin: string];
|
|
163
|
+
interface OutputObject {
|
|
164
|
+
oldAdmin: string;
|
|
165
|
+
newAdmin: string;
|
|
166
|
+
}
|
|
167
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
168
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
169
|
+
type Log = TypedEventLog<Event>;
|
|
170
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
171
|
+
}
|
|
172
|
+
export declare namespace NewPendingAdminEvent {
|
|
173
|
+
type InputTuple = [
|
|
174
|
+
oldPendingAdmin: AddressLike,
|
|
175
|
+
newPendingAdmin: AddressLike
|
|
176
|
+
];
|
|
177
|
+
type OutputTuple = [oldPendingAdmin: string, newPendingAdmin: string];
|
|
178
|
+
interface OutputObject {
|
|
179
|
+
oldPendingAdmin: string;
|
|
180
|
+
newPendingAdmin: string;
|
|
181
|
+
}
|
|
182
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
183
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
184
|
+
type Log = TypedEventLog<Event>;
|
|
185
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
186
|
+
}
|
|
187
|
+
export declare namespace PausedToggledEvent {
|
|
188
|
+
type InputTuple = [isPaused: boolean];
|
|
189
|
+
type OutputTuple = [isPaused: boolean];
|
|
190
|
+
interface OutputObject {
|
|
191
|
+
isPaused: boolean;
|
|
192
|
+
}
|
|
193
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
194
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
195
|
+
type Log = TypedEventLog<Event>;
|
|
196
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
197
|
+
}
|
|
198
|
+
export declare namespace PermissionChargedEvent {
|
|
199
|
+
type InputTuple = [
|
|
200
|
+
owner: AddressLike,
|
|
201
|
+
spender: AddressLike,
|
|
202
|
+
token: AddressLike,
|
|
203
|
+
amountUsed: BigNumberish,
|
|
204
|
+
remainingAmount: BigNumberish
|
|
205
|
+
];
|
|
206
|
+
type OutputTuple = [
|
|
207
|
+
owner: string,
|
|
208
|
+
spender: string,
|
|
209
|
+
token: string,
|
|
210
|
+
amountUsed: bigint,
|
|
211
|
+
remainingAmount: bigint
|
|
212
|
+
];
|
|
213
|
+
interface OutputObject {
|
|
214
|
+
owner: string;
|
|
215
|
+
spender: string;
|
|
216
|
+
token: string;
|
|
217
|
+
amountUsed: bigint;
|
|
218
|
+
remainingAmount: bigint;
|
|
219
|
+
}
|
|
220
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
221
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
222
|
+
type Log = TypedEventLog<Event>;
|
|
223
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
224
|
+
}
|
|
225
|
+
export declare namespace PermissionGrantedEvent {
|
|
226
|
+
type InputTuple = [
|
|
227
|
+
owner: AddressLike,
|
|
228
|
+
spender: AddressLike,
|
|
229
|
+
token: AddressLike,
|
|
230
|
+
amountLimit: BigNumberish,
|
|
231
|
+
expiryTime: BigNumberish
|
|
232
|
+
];
|
|
233
|
+
type OutputTuple = [
|
|
234
|
+
owner: string,
|
|
235
|
+
spender: string,
|
|
236
|
+
token: string,
|
|
237
|
+
amountLimit: bigint,
|
|
238
|
+
expiryTime: bigint
|
|
239
|
+
];
|
|
240
|
+
interface OutputObject {
|
|
241
|
+
owner: string;
|
|
242
|
+
spender: string;
|
|
243
|
+
token: string;
|
|
244
|
+
amountLimit: bigint;
|
|
245
|
+
expiryTime: bigint;
|
|
246
|
+
}
|
|
247
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
248
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
249
|
+
type Log = TypedEventLog<Event>;
|
|
250
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
251
|
+
}
|
|
252
|
+
export declare namespace PermissionRevokedEvent {
|
|
253
|
+
type InputTuple = [
|
|
254
|
+
owner: AddressLike,
|
|
255
|
+
spender: AddressLike,
|
|
256
|
+
token: AddressLike
|
|
257
|
+
];
|
|
258
|
+
type OutputTuple = [owner: string, spender: string, token: string];
|
|
259
|
+
interface OutputObject {
|
|
260
|
+
owner: string;
|
|
261
|
+
spender: string;
|
|
262
|
+
token: string;
|
|
263
|
+
}
|
|
264
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
265
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
266
|
+
type Log = TypedEventLog<Event>;
|
|
267
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
268
|
+
}
|
|
269
|
+
export interface OnBehalfTradingV1 extends BaseContract {
|
|
270
|
+
connect(runner?: ContractRunner | null): OnBehalfTradingV1;
|
|
271
|
+
waitForDeployment(): Promise<this>;
|
|
272
|
+
interface: OnBehalfTradingV1Interface;
|
|
273
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
274
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
275
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
276
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
277
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
278
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
279
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
280
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
281
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
282
|
+
CONTRACT_NAME: TypedContractMethod<[], [string], "view">;
|
|
283
|
+
CONTRACT_VERSION: TypedContractMethod<[], [string], "view">;
|
|
284
|
+
_acceptAdmin: TypedContractMethod<[], [void], "nonpayable">;
|
|
285
|
+
_setPendingAdmin: TypedContractMethod<[
|
|
286
|
+
newPendingAdmin: AddressLike
|
|
287
|
+
], [
|
|
288
|
+
void
|
|
289
|
+
], "nonpayable">;
|
|
290
|
+
admin: TypedContractMethod<[], [string], "view">;
|
|
291
|
+
chargePermission: TypedContractMethod<[
|
|
292
|
+
owner: AddressLike,
|
|
293
|
+
spender: AddressLike,
|
|
294
|
+
token: AddressLike,
|
|
295
|
+
amount: BigNumberish
|
|
296
|
+
], [
|
|
297
|
+
void
|
|
298
|
+
], "nonpayable">;
|
|
299
|
+
dynamicRoleCallers: TypedContractMethod<[
|
|
300
|
+
arg0: AddressLike
|
|
301
|
+
], [
|
|
302
|
+
string
|
|
303
|
+
], "view">;
|
|
304
|
+
getActivePermissionCount: TypedContractMethod<[
|
|
305
|
+
owner: AddressLike
|
|
306
|
+
], [
|
|
307
|
+
bigint
|
|
308
|
+
], "view">;
|
|
309
|
+
getActiveSpenders: TypedContractMethod<[
|
|
310
|
+
owner: AddressLike
|
|
311
|
+
], [
|
|
312
|
+
string[]
|
|
313
|
+
], "view">;
|
|
314
|
+
getActiveTokensForSpender: TypedContractMethod<[
|
|
315
|
+
owner: AddressLike,
|
|
316
|
+
spender: AddressLike
|
|
317
|
+
], [
|
|
318
|
+
string[]
|
|
319
|
+
], "view">;
|
|
320
|
+
getAllActivePermissions: TypedContractMethod<[
|
|
321
|
+
owner: AddressLike
|
|
322
|
+
], [
|
|
323
|
+
[
|
|
324
|
+
string[],
|
|
325
|
+
string[],
|
|
326
|
+
OnBehalfTradingStructsV1.TradingPermissionStructOutput[]
|
|
327
|
+
] & {
|
|
328
|
+
spenders: string[];
|
|
329
|
+
tokens: string[];
|
|
330
|
+
permissionData: OnBehalfTradingStructsV1.TradingPermissionStructOutput[];
|
|
331
|
+
}
|
|
332
|
+
], "view">;
|
|
333
|
+
getContractConfiguration: TypedContractMethod<[
|
|
334
|
+
tokensToQuery: AddressLike[]
|
|
335
|
+
], [
|
|
336
|
+
[
|
|
337
|
+
boolean,
|
|
338
|
+
bigint,
|
|
339
|
+
bigint[],
|
|
340
|
+
string,
|
|
341
|
+
string
|
|
342
|
+
] & {
|
|
343
|
+
isPausedState: boolean;
|
|
344
|
+
maxDuration: bigint;
|
|
345
|
+
tokenMaxAmounts: bigint[];
|
|
346
|
+
registryAddress: string;
|
|
347
|
+
tradersPortalAddress: string;
|
|
348
|
+
}
|
|
349
|
+
], "view">;
|
|
350
|
+
getContractName: TypedContractMethod<[], [string], "view">;
|
|
351
|
+
getContractVersion: TypedContractMethod<[], [string], "view">;
|
|
352
|
+
getRemainingAmount: TypedContractMethod<[
|
|
353
|
+
owner: AddressLike,
|
|
354
|
+
spender: AddressLike,
|
|
355
|
+
token: AddressLike
|
|
356
|
+
], [
|
|
357
|
+
bigint
|
|
358
|
+
], "view">;
|
|
359
|
+
grantPermission: TypedContractMethod<[
|
|
360
|
+
spender: AddressLike,
|
|
361
|
+
token: AddressLike,
|
|
362
|
+
amountLimit: BigNumberish,
|
|
363
|
+
duration: BigNumberish
|
|
364
|
+
], [
|
|
365
|
+
void
|
|
366
|
+
], "nonpayable">;
|
|
367
|
+
hasActivePermissions: TypedContractMethod<[
|
|
368
|
+
owner: AddressLike
|
|
369
|
+
], [
|
|
370
|
+
boolean
|
|
371
|
+
], "view">;
|
|
372
|
+
isPaused: TypedContractMethod<[], [boolean], "view">;
|
|
373
|
+
isPermissionValid: TypedContractMethod<[
|
|
374
|
+
owner: AddressLike,
|
|
375
|
+
spender: AddressLike,
|
|
376
|
+
token: AddressLike
|
|
377
|
+
], [
|
|
378
|
+
boolean
|
|
379
|
+
], "view">;
|
|
380
|
+
maxPermissionAmountPerToken: TypedContractMethod<[
|
|
381
|
+
arg0: AddressLike
|
|
382
|
+
], [
|
|
383
|
+
bigint
|
|
384
|
+
], "view">;
|
|
385
|
+
maxPermissionDuration: TypedContractMethod<[], [bigint], "view">;
|
|
386
|
+
pendingAdmin: TypedContractMethod<[], [string], "view">;
|
|
387
|
+
permanentlyRevoked: TypedContractMethod<[
|
|
388
|
+
arg0: AddressLike,
|
|
389
|
+
arg1: AddressLike
|
|
390
|
+
], [
|
|
391
|
+
boolean
|
|
392
|
+
], "view">;
|
|
393
|
+
permissions: TypedContractMethod<[
|
|
394
|
+
arg0: AddressLike,
|
|
395
|
+
arg1: AddressLike,
|
|
396
|
+
arg2: AddressLike
|
|
397
|
+
], [
|
|
398
|
+
[
|
|
399
|
+
bigint,
|
|
400
|
+
bigint,
|
|
401
|
+
bigint,
|
|
402
|
+
boolean
|
|
403
|
+
] & {
|
|
404
|
+
amountLimit: bigint;
|
|
405
|
+
amountUsed: bigint;
|
|
406
|
+
expiryTime: bigint;
|
|
407
|
+
isActive: boolean;
|
|
408
|
+
}
|
|
409
|
+
], "view">;
|
|
410
|
+
registry: TypedContractMethod<[], [string], "view">;
|
|
411
|
+
requirePermission: TypedContractMethod<[
|
|
412
|
+
owner: AddressLike,
|
|
413
|
+
spender: AddressLike,
|
|
414
|
+
token: AddressLike
|
|
415
|
+
], [
|
|
416
|
+
void
|
|
417
|
+
], "view">;
|
|
418
|
+
revokeAllPermissions: TypedContractMethod<[
|
|
419
|
+
spender: AddressLike
|
|
420
|
+
], [
|
|
421
|
+
void
|
|
422
|
+
], "nonpayable">;
|
|
423
|
+
revokePermission: TypedContractMethod<[
|
|
424
|
+
spender: AddressLike,
|
|
425
|
+
token: AddressLike
|
|
426
|
+
], [
|
|
427
|
+
void
|
|
428
|
+
], "nonpayable">;
|
|
429
|
+
setDynamicRoleCaller: TypedContractMethod<[
|
|
430
|
+
caller: AddressLike,
|
|
431
|
+
roleName: string
|
|
432
|
+
], [
|
|
433
|
+
void
|
|
434
|
+
], "nonpayable">;
|
|
435
|
+
setDynamicRoleCallers: TypedContractMethod<[
|
|
436
|
+
callers: AddressLike[],
|
|
437
|
+
roleNames: string[]
|
|
438
|
+
], [
|
|
439
|
+
void
|
|
440
|
+
], "nonpayable">;
|
|
441
|
+
setMaxPermissionAmountForToken: TypedContractMethod<[
|
|
442
|
+
token: AddressLike,
|
|
443
|
+
_maxAmount: BigNumberish
|
|
444
|
+
], [
|
|
445
|
+
void
|
|
446
|
+
], "nonpayable">;
|
|
447
|
+
setMaxPermissionAmountsForTokens: TypedContractMethod<[
|
|
448
|
+
tokens: AddressLike[],
|
|
449
|
+
maxAmounts: BigNumberish[]
|
|
450
|
+
], [
|
|
451
|
+
void
|
|
452
|
+
], "nonpayable">;
|
|
453
|
+
setMaxPermissionDuration: TypedContractMethod<[
|
|
454
|
+
_maxDuration: BigNumberish
|
|
455
|
+
], [
|
|
456
|
+
void
|
|
457
|
+
], "nonpayable">;
|
|
458
|
+
setPermissions: TypedContractMethod<[
|
|
459
|
+
settings: OnBehalfTradingStructsV1.PermissionSettingPayloadStruct[]
|
|
460
|
+
], [
|
|
461
|
+
void
|
|
462
|
+
], "nonpayable">;
|
|
463
|
+
togglePause: TypedContractMethod<[], [void], "nonpayable">;
|
|
464
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
465
|
+
getFunction(nameOrSignature: "CONTRACT_NAME"): TypedContractMethod<[], [string], "view">;
|
|
466
|
+
getFunction(nameOrSignature: "CONTRACT_VERSION"): TypedContractMethod<[], [string], "view">;
|
|
467
|
+
getFunction(nameOrSignature: "_acceptAdmin"): TypedContractMethod<[], [void], "nonpayable">;
|
|
468
|
+
getFunction(nameOrSignature: "_setPendingAdmin"): TypedContractMethod<[newPendingAdmin: AddressLike], [void], "nonpayable">;
|
|
469
|
+
getFunction(nameOrSignature: "admin"): TypedContractMethod<[], [string], "view">;
|
|
470
|
+
getFunction(nameOrSignature: "chargePermission"): TypedContractMethod<[
|
|
471
|
+
owner: AddressLike,
|
|
472
|
+
spender: AddressLike,
|
|
473
|
+
token: AddressLike,
|
|
474
|
+
amount: BigNumberish
|
|
475
|
+
], [
|
|
476
|
+
void
|
|
477
|
+
], "nonpayable">;
|
|
478
|
+
getFunction(nameOrSignature: "dynamicRoleCallers"): TypedContractMethod<[arg0: AddressLike], [string], "view">;
|
|
479
|
+
getFunction(nameOrSignature: "getActivePermissionCount"): TypedContractMethod<[owner: AddressLike], [bigint], "view">;
|
|
480
|
+
getFunction(nameOrSignature: "getActiveSpenders"): TypedContractMethod<[owner: AddressLike], [string[]], "view">;
|
|
481
|
+
getFunction(nameOrSignature: "getActiveTokensForSpender"): TypedContractMethod<[
|
|
482
|
+
owner: AddressLike,
|
|
483
|
+
spender: AddressLike
|
|
484
|
+
], [
|
|
485
|
+
string[]
|
|
486
|
+
], "view">;
|
|
487
|
+
getFunction(nameOrSignature: "getAllActivePermissions"): TypedContractMethod<[
|
|
488
|
+
owner: AddressLike
|
|
489
|
+
], [
|
|
490
|
+
[
|
|
491
|
+
string[],
|
|
492
|
+
string[],
|
|
493
|
+
OnBehalfTradingStructsV1.TradingPermissionStructOutput[]
|
|
494
|
+
] & {
|
|
495
|
+
spenders: string[];
|
|
496
|
+
tokens: string[];
|
|
497
|
+
permissionData: OnBehalfTradingStructsV1.TradingPermissionStructOutput[];
|
|
498
|
+
}
|
|
499
|
+
], "view">;
|
|
500
|
+
getFunction(nameOrSignature: "getContractConfiguration"): TypedContractMethod<[
|
|
501
|
+
tokensToQuery: AddressLike[]
|
|
502
|
+
], [
|
|
503
|
+
[
|
|
504
|
+
boolean,
|
|
505
|
+
bigint,
|
|
506
|
+
bigint[],
|
|
507
|
+
string,
|
|
508
|
+
string
|
|
509
|
+
] & {
|
|
510
|
+
isPausedState: boolean;
|
|
511
|
+
maxDuration: bigint;
|
|
512
|
+
tokenMaxAmounts: bigint[];
|
|
513
|
+
registryAddress: string;
|
|
514
|
+
tradersPortalAddress: string;
|
|
515
|
+
}
|
|
516
|
+
], "view">;
|
|
517
|
+
getFunction(nameOrSignature: "getContractName"): TypedContractMethod<[], [string], "view">;
|
|
518
|
+
getFunction(nameOrSignature: "getContractVersion"): TypedContractMethod<[], [string], "view">;
|
|
519
|
+
getFunction(nameOrSignature: "getRemainingAmount"): TypedContractMethod<[
|
|
520
|
+
owner: AddressLike,
|
|
521
|
+
spender: AddressLike,
|
|
522
|
+
token: AddressLike
|
|
523
|
+
], [
|
|
524
|
+
bigint
|
|
525
|
+
], "view">;
|
|
526
|
+
getFunction(nameOrSignature: "grantPermission"): TypedContractMethod<[
|
|
527
|
+
spender: AddressLike,
|
|
528
|
+
token: AddressLike,
|
|
529
|
+
amountLimit: BigNumberish,
|
|
530
|
+
duration: BigNumberish
|
|
531
|
+
], [
|
|
532
|
+
void
|
|
533
|
+
], "nonpayable">;
|
|
534
|
+
getFunction(nameOrSignature: "hasActivePermissions"): TypedContractMethod<[owner: AddressLike], [boolean], "view">;
|
|
535
|
+
getFunction(nameOrSignature: "isPaused"): TypedContractMethod<[], [boolean], "view">;
|
|
536
|
+
getFunction(nameOrSignature: "isPermissionValid"): TypedContractMethod<[
|
|
537
|
+
owner: AddressLike,
|
|
538
|
+
spender: AddressLike,
|
|
539
|
+
token: AddressLike
|
|
540
|
+
], [
|
|
541
|
+
boolean
|
|
542
|
+
], "view">;
|
|
543
|
+
getFunction(nameOrSignature: "maxPermissionAmountPerToken"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
544
|
+
getFunction(nameOrSignature: "maxPermissionDuration"): TypedContractMethod<[], [bigint], "view">;
|
|
545
|
+
getFunction(nameOrSignature: "pendingAdmin"): TypedContractMethod<[], [string], "view">;
|
|
546
|
+
getFunction(nameOrSignature: "permanentlyRevoked"): TypedContractMethod<[
|
|
547
|
+
arg0: AddressLike,
|
|
548
|
+
arg1: AddressLike
|
|
549
|
+
], [
|
|
550
|
+
boolean
|
|
551
|
+
], "view">;
|
|
552
|
+
getFunction(nameOrSignature: "permissions"): TypedContractMethod<[
|
|
553
|
+
arg0: AddressLike,
|
|
554
|
+
arg1: AddressLike,
|
|
555
|
+
arg2: AddressLike
|
|
556
|
+
], [
|
|
557
|
+
[
|
|
558
|
+
bigint,
|
|
559
|
+
bigint,
|
|
560
|
+
bigint,
|
|
561
|
+
boolean
|
|
562
|
+
] & {
|
|
563
|
+
amountLimit: bigint;
|
|
564
|
+
amountUsed: bigint;
|
|
565
|
+
expiryTime: bigint;
|
|
566
|
+
isActive: boolean;
|
|
567
|
+
}
|
|
568
|
+
], "view">;
|
|
569
|
+
getFunction(nameOrSignature: "registry"): TypedContractMethod<[], [string], "view">;
|
|
570
|
+
getFunction(nameOrSignature: "requirePermission"): TypedContractMethod<[
|
|
571
|
+
owner: AddressLike,
|
|
572
|
+
spender: AddressLike,
|
|
573
|
+
token: AddressLike
|
|
574
|
+
], [
|
|
575
|
+
void
|
|
576
|
+
], "view">;
|
|
577
|
+
getFunction(nameOrSignature: "revokeAllPermissions"): TypedContractMethod<[spender: AddressLike], [void], "nonpayable">;
|
|
578
|
+
getFunction(nameOrSignature: "revokePermission"): TypedContractMethod<[
|
|
579
|
+
spender: AddressLike,
|
|
580
|
+
token: AddressLike
|
|
581
|
+
], [
|
|
582
|
+
void
|
|
583
|
+
], "nonpayable">;
|
|
584
|
+
getFunction(nameOrSignature: "setDynamicRoleCaller"): TypedContractMethod<[
|
|
585
|
+
caller: AddressLike,
|
|
586
|
+
roleName: string
|
|
587
|
+
], [
|
|
588
|
+
void
|
|
589
|
+
], "nonpayable">;
|
|
590
|
+
getFunction(nameOrSignature: "setDynamicRoleCallers"): TypedContractMethod<[
|
|
591
|
+
callers: AddressLike[],
|
|
592
|
+
roleNames: string[]
|
|
593
|
+
], [
|
|
594
|
+
void
|
|
595
|
+
], "nonpayable">;
|
|
596
|
+
getFunction(nameOrSignature: "setMaxPermissionAmountForToken"): TypedContractMethod<[
|
|
597
|
+
token: AddressLike,
|
|
598
|
+
_maxAmount: BigNumberish
|
|
599
|
+
], [
|
|
600
|
+
void
|
|
601
|
+
], "nonpayable">;
|
|
602
|
+
getFunction(nameOrSignature: "setMaxPermissionAmountsForTokens"): TypedContractMethod<[
|
|
603
|
+
tokens: AddressLike[],
|
|
604
|
+
maxAmounts: BigNumberish[]
|
|
605
|
+
], [
|
|
606
|
+
void
|
|
607
|
+
], "nonpayable">;
|
|
608
|
+
getFunction(nameOrSignature: "setMaxPermissionDuration"): TypedContractMethod<[_maxDuration: BigNumberish], [void], "nonpayable">;
|
|
609
|
+
getFunction(nameOrSignature: "setPermissions"): TypedContractMethod<[
|
|
610
|
+
settings: OnBehalfTradingStructsV1.PermissionSettingPayloadStruct[]
|
|
611
|
+
], [
|
|
612
|
+
void
|
|
613
|
+
], "nonpayable">;
|
|
614
|
+
getFunction(nameOrSignature: "togglePause"): TypedContractMethod<[], [void], "nonpayable">;
|
|
615
|
+
getEvent(key: "AllPermissionsPermanentlyRevoked"): TypedContractEvent<AllPermissionsPermanentlyRevokedEvent.InputTuple, AllPermissionsPermanentlyRevokedEvent.OutputTuple, AllPermissionsPermanentlyRevokedEvent.OutputObject>;
|
|
616
|
+
getEvent(key: "DynamicRoleCallerUpdated"): TypedContractEvent<DynamicRoleCallerUpdatedEvent.InputTuple, DynamicRoleCallerUpdatedEvent.OutputTuple, DynamicRoleCallerUpdatedEvent.OutputObject>;
|
|
617
|
+
getEvent(key: "MaxPermissionAmountUpdatedForToken"): TypedContractEvent<MaxPermissionAmountUpdatedForTokenEvent.InputTuple, MaxPermissionAmountUpdatedForTokenEvent.OutputTuple, MaxPermissionAmountUpdatedForTokenEvent.OutputObject>;
|
|
618
|
+
getEvent(key: "MaxPermissionDurationUpdated"): TypedContractEvent<MaxPermissionDurationUpdatedEvent.InputTuple, MaxPermissionDurationUpdatedEvent.OutputTuple, MaxPermissionDurationUpdatedEvent.OutputObject>;
|
|
619
|
+
getEvent(key: "NewAdmin"): TypedContractEvent<NewAdminEvent.InputTuple, NewAdminEvent.OutputTuple, NewAdminEvent.OutputObject>;
|
|
620
|
+
getEvent(key: "NewPendingAdmin"): TypedContractEvent<NewPendingAdminEvent.InputTuple, NewPendingAdminEvent.OutputTuple, NewPendingAdminEvent.OutputObject>;
|
|
621
|
+
getEvent(key: "PausedToggled"): TypedContractEvent<PausedToggledEvent.InputTuple, PausedToggledEvent.OutputTuple, PausedToggledEvent.OutputObject>;
|
|
622
|
+
getEvent(key: "PermissionCharged"): TypedContractEvent<PermissionChargedEvent.InputTuple, PermissionChargedEvent.OutputTuple, PermissionChargedEvent.OutputObject>;
|
|
623
|
+
getEvent(key: "PermissionGranted"): TypedContractEvent<PermissionGrantedEvent.InputTuple, PermissionGrantedEvent.OutputTuple, PermissionGrantedEvent.OutputObject>;
|
|
624
|
+
getEvent(key: "PermissionRevoked"): TypedContractEvent<PermissionRevokedEvent.InputTuple, PermissionRevokedEvent.OutputTuple, PermissionRevokedEvent.OutputObject>;
|
|
625
|
+
filters: {
|
|
626
|
+
"AllPermissionsPermanentlyRevoked(address,address)": TypedContractEvent<AllPermissionsPermanentlyRevokedEvent.InputTuple, AllPermissionsPermanentlyRevokedEvent.OutputTuple, AllPermissionsPermanentlyRevokedEvent.OutputObject>;
|
|
627
|
+
AllPermissionsPermanentlyRevoked: TypedContractEvent<AllPermissionsPermanentlyRevokedEvent.InputTuple, AllPermissionsPermanentlyRevokedEvent.OutputTuple, AllPermissionsPermanentlyRevokedEvent.OutputObject>;
|
|
628
|
+
"DynamicRoleCallerUpdated(address,string)": TypedContractEvent<DynamicRoleCallerUpdatedEvent.InputTuple, DynamicRoleCallerUpdatedEvent.OutputTuple, DynamicRoleCallerUpdatedEvent.OutputObject>;
|
|
629
|
+
DynamicRoleCallerUpdated: TypedContractEvent<DynamicRoleCallerUpdatedEvent.InputTuple, DynamicRoleCallerUpdatedEvent.OutputTuple, DynamicRoleCallerUpdatedEvent.OutputObject>;
|
|
630
|
+
"MaxPermissionAmountUpdatedForToken(address,uint256)": TypedContractEvent<MaxPermissionAmountUpdatedForTokenEvent.InputTuple, MaxPermissionAmountUpdatedForTokenEvent.OutputTuple, MaxPermissionAmountUpdatedForTokenEvent.OutputObject>;
|
|
631
|
+
MaxPermissionAmountUpdatedForToken: TypedContractEvent<MaxPermissionAmountUpdatedForTokenEvent.InputTuple, MaxPermissionAmountUpdatedForTokenEvent.OutputTuple, MaxPermissionAmountUpdatedForTokenEvent.OutputObject>;
|
|
632
|
+
"MaxPermissionDurationUpdated(uint256)": TypedContractEvent<MaxPermissionDurationUpdatedEvent.InputTuple, MaxPermissionDurationUpdatedEvent.OutputTuple, MaxPermissionDurationUpdatedEvent.OutputObject>;
|
|
633
|
+
MaxPermissionDurationUpdated: TypedContractEvent<MaxPermissionDurationUpdatedEvent.InputTuple, MaxPermissionDurationUpdatedEvent.OutputTuple, MaxPermissionDurationUpdatedEvent.OutputObject>;
|
|
634
|
+
"NewAdmin(address,address)": TypedContractEvent<NewAdminEvent.InputTuple, NewAdminEvent.OutputTuple, NewAdminEvent.OutputObject>;
|
|
635
|
+
NewAdmin: TypedContractEvent<NewAdminEvent.InputTuple, NewAdminEvent.OutputTuple, NewAdminEvent.OutputObject>;
|
|
636
|
+
"NewPendingAdmin(address,address)": TypedContractEvent<NewPendingAdminEvent.InputTuple, NewPendingAdminEvent.OutputTuple, NewPendingAdminEvent.OutputObject>;
|
|
637
|
+
NewPendingAdmin: TypedContractEvent<NewPendingAdminEvent.InputTuple, NewPendingAdminEvent.OutputTuple, NewPendingAdminEvent.OutputObject>;
|
|
638
|
+
"PausedToggled(bool)": TypedContractEvent<PausedToggledEvent.InputTuple, PausedToggledEvent.OutputTuple, PausedToggledEvent.OutputObject>;
|
|
639
|
+
PausedToggled: TypedContractEvent<PausedToggledEvent.InputTuple, PausedToggledEvent.OutputTuple, PausedToggledEvent.OutputObject>;
|
|
640
|
+
"PermissionCharged(address,address,address,uint256,uint256)": TypedContractEvent<PermissionChargedEvent.InputTuple, PermissionChargedEvent.OutputTuple, PermissionChargedEvent.OutputObject>;
|
|
641
|
+
PermissionCharged: TypedContractEvent<PermissionChargedEvent.InputTuple, PermissionChargedEvent.OutputTuple, PermissionChargedEvent.OutputObject>;
|
|
642
|
+
"PermissionGranted(address,address,address,uint256,uint256)": TypedContractEvent<PermissionGrantedEvent.InputTuple, PermissionGrantedEvent.OutputTuple, PermissionGrantedEvent.OutputObject>;
|
|
643
|
+
PermissionGranted: TypedContractEvent<PermissionGrantedEvent.InputTuple, PermissionGrantedEvent.OutputTuple, PermissionGrantedEvent.OutputObject>;
|
|
644
|
+
"PermissionRevoked(address,address,address)": TypedContractEvent<PermissionRevokedEvent.InputTuple, PermissionRevokedEvent.OutputTuple, PermissionRevokedEvent.OutputObject>;
|
|
645
|
+
PermissionRevoked: TypedContractEvent<PermissionRevokedEvent.InputTuple, PermissionRevokedEvent.OutputTuple, PermissionRevokedEvent.OutputObject>;
|
|
646
|
+
};
|
|
647
|
+
}
|
|
648
|
+
//# sourceMappingURL=OnBehalfTradingV1.d.ts.map
|