lynx-client 0.0.12 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +18 -1
- package/dist/cjs/lib/contractsIntegration/EngineChipService/EngineChipService.js +289 -0
- package/dist/cjs/lib/contractsIntegration/EngineChipService/IEngineChipService.js +2 -0
- package/dist/cjs/lib/contractsIntegration/EngineChipService/index.js +5 -0
- package/dist/cjs/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.js +25 -2
- package/dist/cjs/lib/contractsIntegration/OrderBookService/index.js +5 -0
- package/dist/cjs/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +6 -0
- package/dist/cjs/lib/contractsIntegration/TriggersService/index.js +5 -0
- package/dist/cjs/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.js +2 -0
- package/dist/cjs/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.js +69 -0
- package/dist/cjs/lib/contractsIntegration/WrappedNativeEngineChipHelperService/index.js +5 -0
- package/dist/cjs/lib/contractsIntegration/deployedContractsConnector.js +34 -0
- package/dist/cjs/lib/typechain/contracts/Lynx/Chips/EngineChip/EngineChip.js +2 -0
- package/dist/cjs/lib/typechain/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper.js +2 -0
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Chips/EngineChip/EngineChip__factory.js +989 -0
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__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 +195 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +27 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +79 -1
- package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper__factory.js +133 -0
- 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/esm/index.d.ts +18 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +18 -1
- package/dist/esm/lib/contractsIntegration/EngineChipService/EngineChipService.d.ts +27 -0
- package/dist/esm/lib/contractsIntegration/EngineChipService/EngineChipService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/EngineChipService/EngineChipService.js +289 -0
- package/dist/esm/lib/contractsIntegration/EngineChipService/IEngineChipService.d.ts +83 -0
- package/dist/esm/lib/contractsIntegration/EngineChipService/IEngineChipService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/EngineChipService/IEngineChipService.js +2 -0
- package/dist/esm/lib/contractsIntegration/EngineChipService/index.d.ts +3 -0
- package/dist/esm/lib/contractsIntegration/EngineChipService/index.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/EngineChipService/index.js +5 -0
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts +6 -1
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.js +25 -2
- package/dist/esm/lib/contractsIntegration/OrderBookService/index.d.ts +3 -0
- package/dist/esm/lib/contractsIntegration/OrderBookService/index.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/OrderBookService/index.js +5 -0
- package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts +2 -0
- package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +6 -0
- package/dist/esm/lib/contractsIntegration/TriggersService/index.d.ts +3 -0
- package/dist/esm/lib/contractsIntegration/TriggersService/index.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/TriggersService/index.js +5 -0
- package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.d.ts +40 -0
- package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.js +2 -0
- package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.d.ts +22 -0
- package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.js +69 -0
- package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/index.d.ts +3 -0
- package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/index.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/index.js +5 -0
- package/dist/esm/lib/contractsIntegration/deployedContractsConnector.d.ts +10 -0
- package/dist/esm/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/deployedContractsConnector.js +34 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Chips/EngineChip/EngineChip.d.ts +524 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Chips/EngineChip/EngineChip.d.ts.map +1 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Chips/EngineChip/EngineChip.js +2 -0
- package/dist/esm/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.d.ts +158 -2
- package/dist/esm/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.d.ts.map +1 -1
- package/dist/esm/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts +17 -1
- package/dist/esm/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts.map +1 -1
- package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts +33 -1
- package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts.map +1 -1
- package/dist/esm/lib/typechain/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper.d.ts +56 -0
- package/dist/esm/lib/typechain/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper.d.ts.map +1 -0
- package/dist/esm/lib/typechain/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper.js +2 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Chips/EngineChip/EngineChip__factory.d.ts +756 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Chips/EngineChip/EngineChip__factory.d.ts.map +1 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Chips/EngineChip/EngineChip__factory.js +989 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/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 +155 -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 +195 -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/TradersPortal/TradersPortalV1__factory.d.ts +21 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts.map +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +27 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +61 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts.map +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +79 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper__factory.d.ts +96 -0
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper__factory.d.ts.map +1 -0
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper__factory.js +133 -0
- 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/types/index.d.ts +18 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/EngineChipService/EngineChipService.d.ts +27 -0
- package/dist/types/lib/contractsIntegration/EngineChipService/EngineChipService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/EngineChipService/IEngineChipService.d.ts +83 -0
- package/dist/types/lib/contractsIntegration/EngineChipService/IEngineChipService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/EngineChipService/index.d.ts +3 -0
- package/dist/types/lib/contractsIntegration/EngineChipService/index.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts +6 -1
- package/dist/types/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/OrderBookService/index.d.ts +3 -0
- package/dist/types/lib/contractsIntegration/OrderBookService/index.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts +2 -0
- package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TriggersService/index.d.ts +3 -0
- package/dist/types/lib/contractsIntegration/TriggersService/index.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.d.ts +40 -0
- package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.d.ts +22 -0
- package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/index.d.ts +3 -0
- package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/index.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/deployedContractsConnector.d.ts +10 -0
- package/dist/types/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -1
- package/dist/types/lib/typechain/contracts/Lynx/Chips/EngineChip/EngineChip.d.ts +524 -0
- package/dist/types/lib/typechain/contracts/Lynx/Chips/EngineChip/EngineChip.d.ts.map +1 -0
- package/dist/types/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.d.ts +158 -2
- package/dist/types/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.d.ts.map +1 -1
- package/dist/types/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts +17 -1
- package/dist/types/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts.map +1 -1
- package/dist/types/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts +33 -1
- package/dist/types/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts.map +1 -1
- package/dist/types/lib/typechain/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper.d.ts +56 -0
- package/dist/types/lib/typechain/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper.d.ts.map +1 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/Chips/EngineChip/EngineChip__factory.d.ts +756 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/Chips/EngineChip/EngineChip__factory.d.ts.map +1 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.d.ts +155 -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/TradersPortal/TradersPortalV1__factory.d.ts +21 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts.map +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +61 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts.map +1 -1
- package/dist/types/lib/typechain/factories/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper__factory.d.ts +96 -0
- package/dist/types/lib/typechain/factories/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper__factory.d.ts.map +1 -0
- 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/package.json +1 -1
package/dist/esm/index.d.ts
CHANGED
|
@@ -24,6 +24,8 @@ export * from "./lib/addresses/systemAddresses";
|
|
|
24
24
|
export * from "./lib/contractsIntegration/deployedContractsConnector";
|
|
25
25
|
export * from "./lib/contractsIntegration/TradersPortalService";
|
|
26
26
|
export * from "./lib/contractsIntegration/TradingFloorService";
|
|
27
|
+
export * from "./lib/contractsIntegration/TriggersService";
|
|
28
|
+
export * from "./lib/contractsIntegration/OrderBookService";
|
|
27
29
|
export { ChipsIntentsVerifierService } from "./lib/contractsIntegration/ChipsIntentsVerifierService";
|
|
28
30
|
export type { IChipsIntentsVerifierService } from "./lib/contractsIntegration/ChipsIntentsVerifierService";
|
|
29
31
|
export { LiquidityIntentsVerifierService } from "./lib/contractsIntegration/LiquidityIntentsVerifierService";
|
|
@@ -32,6 +34,18 @@ export { TradeIntentsVerifierService } from "./lib/contractsIntegration/TradeInt
|
|
|
32
34
|
export type { ITradeIntentsVerifierService } from "./lib/contractsIntegration/TradeIntentsVerifierService";
|
|
33
35
|
export { OnBehalfTradingService } from "./lib/contractsIntegration/OnBehalfTradingService";
|
|
34
36
|
export type { IOnBehalfTradingService, IOnBehalfTradingFunctionsGroup_PermissionQueries, IOnBehalfTradingFunctionsGroup_PermissionManagement, IOnBehalfTradingFunctionsGroup_Configuration, IOnBehalfTradingFunctionsGroup_AdminFunctions, IOnBehalfTradingFunctionsGroup_ContractReferences, PermissionInfo, ContractConfiguration as OnBehalfTradingContractConfiguration, AllActivePermissionsResult, PermissionSettingPayload } from "./lib/contractsIntegration/OnBehalfTradingService";
|
|
37
|
+
export { EngineChipService } from "./lib/contractsIntegration/EngineChipService";
|
|
38
|
+
export type { IEngineChipService, IEngineChipFunctionsGroup_ERC20Operations, IEngineChipFunctionsGroup_MintingOperations, IEngineChipFunctionsGroup_BurningOperations, IEngineChipFunctionsGroup_AdminFunctions, IEngineChipFunctionsGroup_AutoApprovalManagement, IEngineChipFunctionsGroup_ViewFunctions, ChipConfiguration, ChipControllers } from "./lib/contractsIntegration/EngineChipService";
|
|
39
|
+
export { WrappedNativeEngineChipHelperService } from "./lib/contractsIntegration/WrappedNativeEngineChipHelperService";
|
|
40
|
+
export type { IWrappedNativeEngineChipHelperService, IWrappedNativeEngineChipHelperFunctionsGroup_WrapAndMint, IWrappedNativeEngineChipHelperFunctionsGroup_BurnHandling, IWrappedNativeEngineChipHelperFunctionsGroup_ViewFunctions } from "./lib/contractsIntegration/WrappedNativeEngineChipHelperService";
|
|
41
|
+
export { LexPoolV1Service } from "./lib/contractsIntegration/LexPoolV1Service";
|
|
42
|
+
export type { ILexPoolV1Service, ILexPoolV1FunctionsGroup_Initialization, ILexPoolV1FunctionsGroup_AdminConfiguration, ILexPoolV1FunctionsGroup_UserDeposits, ILexPoolV1FunctionsGroup_UserRedeems, ILexPoolV1FunctionsGroup_Processing, ILexPoolV1FunctionsGroup_EpochManagement, ILexPoolV1FunctionsGroup_TradingFloorInteraction, ILexPoolV1FunctionsGroup_ViewFunctions, ILexPoolV1FunctionsGroup_StateVariables, ILexPoolV1FunctionsGroup_ERC20, ILexPoolV1FunctionsGroup_Constants, ILexPoolV1FunctionsGroup_ContractInfo, TProcessDepositResult, TProcessRedeemResult, TReduceReservesResult, } from "./lib/contractsIntegration/LexPoolV1Service";
|
|
43
|
+
export { AcceptableImplementationClaimableAdminService } from "./lib/contractsIntegration/AcceptableImplementationClaimableAdminService";
|
|
44
|
+
export type { IAcceptableImplementationClaimableAdminService, IAcceptableImplementationClaimableAdminFunctionsGroup_AdminManagement, IAcceptableImplementationClaimableAdminFunctionsGroup_ImplementationManagement, IAcceptableImplementationClaimableAdminFunctionsGroup_StateVariables } from "./lib/contractsIntegration/AcceptableImplementationClaimableAdminService";
|
|
45
|
+
export { PNLRService } from "./lib/contractsIntegration/PNLRService";
|
|
46
|
+
export type { IPNLRService, IPNLRFunctionsGroup_EpochManagement, IPNLRFunctionsGroup_PnLCalculation, IPNLRFunctionsGroup_PermissionManagement, IPNLRFunctionsGroup_Configuration, IPNLRFunctionsGroup_AdminManagement, TPairPriceStruct } from "./lib/contractsIntegration/PNLRService";
|
|
47
|
+
export { PoolAccountantV1Service } from "./lib/contractsIntegration/PoolAccountantV1Service";
|
|
48
|
+
export type { IPoolAccountantV1Service, IPoolAccountantV1FunctionsGroup_TradeUtilities, IPoolAccountantV1FunctionsGroup_Verification, IPoolAccountantV1FunctionsGroup_FeeCalculations, IPoolAccountantV1FunctionsGroup_Funding, IPoolAccountantV1FunctionsGroup_Interest, IPoolAccountantV1FunctionsGroup_Liquidation, IPoolAccountantV1FunctionsGroup_TradeValues, IPoolAccountantV1FunctionsGroup_PairManagement, IPoolAccountantV1FunctionsGroup_AdminConfiguration, IPoolAccountantV1FunctionsGroup_PoolInteraction, IPoolAccountantV1FunctionsGroup_StateVariables, IPoolAccountantV1FunctionsGroup_ContractInfo, IPoolAccountantV1FunctionsGroup_Constants, TAccrueFundingValuesOutput, TFundingIndicesCalculationOutput, TTradeClosingValuesOutput, TDynamicFeesOutput } from "./lib/contractsIntegration/PoolAccountantV1Service";
|
|
35
49
|
export * from "./lib/contractsIntegration/IntentsVerifierLensService";
|
|
36
50
|
export * from "./lib/contractsIntegration/TriggersAndPortalLensService";
|
|
37
51
|
export * from "./lib/contractsIntegration/TradingFloorLensService";
|
|
@@ -52,6 +66,8 @@ export type { ChipsIntentsVerifierV1 } from "./lib/typechain/contracts/Lynx/Inte
|
|
|
52
66
|
export type { LiquidityIntentsVerifierV1 } from "./lib/typechain/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1";
|
|
53
67
|
export type { TradeIntentsVerifierV1 } from "./lib/typechain/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1";
|
|
54
68
|
export type { OnBehalfTradingV1 } from "./lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1";
|
|
69
|
+
export type { EngineChip } from "./lib/typechain/contracts/Lynx/Chips/EngineChip/EngineChip";
|
|
70
|
+
export type { WrappedNativeEngineChipHelper } from "./lib/typechain/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper";
|
|
55
71
|
export { chipsIntentsVerifierPayloadTypes } from "./lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes";
|
|
56
72
|
export { liquidityIntentsVerifierPayloadTypes } from "./lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes";
|
|
57
73
|
export { tradeIntentsVerifierPayloadTypes } from "./lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes";
|
|
@@ -63,5 +79,7 @@ export * from "./lib/typechain/factories/contracts/Lynx/IntentsVerifier/ChipsInt
|
|
|
63
79
|
export * from "./lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory";
|
|
64
80
|
export * from "./lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory";
|
|
65
81
|
export * from "./lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory";
|
|
82
|
+
export * from "./lib/typechain/factories/contracts/Lynx/Chips/EngineChip/EngineChip__factory";
|
|
83
|
+
export * from "./lib/typechain/factories/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper__factory";
|
|
66
84
|
export * from "./lib/devex";
|
|
67
85
|
//# sourceMappingURL=index.d.ts.map
|
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,CAA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EAA+E,CAAC;AAC9F,cAAc,6FAA6F,CAAC;AAG5G,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.WrappedNativeEngineChipHelperService = exports.EngineChipService = 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);
|
|
@@ -41,6 +41,8 @@ __exportStar(require("./lib/addresses/systemAddresses"), exports);
|
|
|
41
41
|
__exportStar(require("./lib/contractsIntegration/deployedContractsConnector"), exports);
|
|
42
42
|
__exportStar(require("./lib/contractsIntegration/TradersPortalService"), exports);
|
|
43
43
|
__exportStar(require("./lib/contractsIntegration/TradingFloorService"), exports);
|
|
44
|
+
__exportStar(require("./lib/contractsIntegration/TriggersService"), exports);
|
|
45
|
+
__exportStar(require("./lib/contractsIntegration/OrderBookService"), exports);
|
|
44
46
|
var ChipsIntentsVerifierService_1 = require("./lib/contractsIntegration/ChipsIntentsVerifierService");
|
|
45
47
|
Object.defineProperty(exports, "ChipsIntentsVerifierService", { enumerable: true, get: function () { return ChipsIntentsVerifierService_1.ChipsIntentsVerifierService; } });
|
|
46
48
|
var LiquidityIntentsVerifierService_1 = require("./lib/contractsIntegration/LiquidityIntentsVerifierService");
|
|
@@ -49,6 +51,18 @@ var TradeIntentsVerifierService_1 = require("./lib/contractsIntegration/TradeInt
|
|
|
49
51
|
Object.defineProperty(exports, "TradeIntentsVerifierService", { enumerable: true, get: function () { return TradeIntentsVerifierService_1.TradeIntentsVerifierService; } });
|
|
50
52
|
var OnBehalfTradingService_1 = require("./lib/contractsIntegration/OnBehalfTradingService");
|
|
51
53
|
Object.defineProperty(exports, "OnBehalfTradingService", { enumerable: true, get: function () { return OnBehalfTradingService_1.OnBehalfTradingService; } });
|
|
54
|
+
var EngineChipService_1 = require("./lib/contractsIntegration/EngineChipService");
|
|
55
|
+
Object.defineProperty(exports, "EngineChipService", { enumerable: true, get: function () { return EngineChipService_1.EngineChipService; } });
|
|
56
|
+
var WrappedNativeEngineChipHelperService_1 = require("./lib/contractsIntegration/WrappedNativeEngineChipHelperService");
|
|
57
|
+
Object.defineProperty(exports, "WrappedNativeEngineChipHelperService", { enumerable: true, get: function () { return WrappedNativeEngineChipHelperService_1.WrappedNativeEngineChipHelperService; } });
|
|
58
|
+
var LexPoolV1Service_1 = require("./lib/contractsIntegration/LexPoolV1Service");
|
|
59
|
+
Object.defineProperty(exports, "LexPoolV1Service", { enumerable: true, get: function () { return LexPoolV1Service_1.LexPoolV1Service; } });
|
|
60
|
+
var AcceptableImplementationClaimableAdminService_1 = require("./lib/contractsIntegration/AcceptableImplementationClaimableAdminService");
|
|
61
|
+
Object.defineProperty(exports, "AcceptableImplementationClaimableAdminService", { enumerable: true, get: function () { return AcceptableImplementationClaimableAdminService_1.AcceptableImplementationClaimableAdminService; } });
|
|
62
|
+
var PNLRService_1 = require("./lib/contractsIntegration/PNLRService");
|
|
63
|
+
Object.defineProperty(exports, "PNLRService", { enumerable: true, get: function () { return PNLRService_1.PNLRService; } });
|
|
64
|
+
var PoolAccountantV1Service_1 = require("./lib/contractsIntegration/PoolAccountantV1Service");
|
|
65
|
+
Object.defineProperty(exports, "PoolAccountantV1Service", { enumerable: true, get: function () { return PoolAccountantV1Service_1.PoolAccountantV1Service; } });
|
|
52
66
|
__exportStar(require("./lib/contractsIntegration/IntentsVerifierLensService"), exports);
|
|
53
67
|
__exportStar(require("./lib/contractsIntegration/TriggersAndPortalLensService"), exports);
|
|
54
68
|
__exportStar(require("./lib/contractsIntegration/TradingFloorLensService"), exports);
|
|
@@ -75,5 +89,8 @@ __exportStar(require("./lib/typechain/factories/contracts/Lynx/IntentsVerifier/L
|
|
|
75
89
|
__exportStar(require("./lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory"), exports);
|
|
76
90
|
// Contract factory export for OnBehalfTrading
|
|
77
91
|
__exportStar(require("./lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory"), exports);
|
|
92
|
+
// Contract factory exports for Chips
|
|
93
|
+
__exportStar(require("./lib/typechain/factories/contracts/Lynx/Chips/EngineChip/EngineChip__factory"), exports);
|
|
94
|
+
__exportStar(require("./lib/typechain/factories/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper__factory"), exports);
|
|
78
95
|
// Developer Experience utilities
|
|
79
96
|
__exportStar(require("./lib/devex"), exports);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Provider, Signer } from "ethers";
|
|
2
|
+
import { EngineChip } from "../../typechain/contracts/Lynx/Chips/EngineChip/EngineChip";
|
|
3
|
+
import { IEngineChipService, IEngineChipFunctionsGroup_ERC20Operations, IEngineChipFunctionsGroup_MintingOperations, IEngineChipFunctionsGroup_BurningOperations, IEngineChipFunctionsGroup_AdminFunctions, IEngineChipFunctionsGroup_AutoApprovalManagement, IEngineChipFunctionsGroup_ViewFunctions } from "./IEngineChipService";
|
|
4
|
+
import { ILynxVersionedContract, IPendableAdmin } from "../common";
|
|
5
|
+
/**
|
|
6
|
+
* Service for interacting with the EngineChip contract
|
|
7
|
+
* Manages ERC20 chip token operations including minting, burning, and administration
|
|
8
|
+
*/
|
|
9
|
+
export declare class EngineChipService implements IEngineChipService {
|
|
10
|
+
private readonly contract;
|
|
11
|
+
private readonly isSigner;
|
|
12
|
+
readonly erc20Operations: IEngineChipFunctionsGroup_ERC20Operations;
|
|
13
|
+
readonly mintingOperations: IEngineChipFunctionsGroup_MintingOperations;
|
|
14
|
+
readonly burningOperations: IEngineChipFunctionsGroup_BurningOperations;
|
|
15
|
+
readonly adminFunctions: IEngineChipFunctionsGroup_AdminFunctions;
|
|
16
|
+
readonly autoApprovalManagement: IEngineChipFunctionsGroup_AutoApprovalManagement;
|
|
17
|
+
readonly viewFunctions: IEngineChipFunctionsGroup_ViewFunctions;
|
|
18
|
+
readonly pendableAdmin: IPendableAdmin;
|
|
19
|
+
readonly lynxVersionedContract: ILynxVersionedContract;
|
|
20
|
+
constructor(signerOrProvider: Signer | Provider, address: string);
|
|
21
|
+
/**
|
|
22
|
+
* Get the underlying contract instance
|
|
23
|
+
* Useful for accessing contract methods directly when needed
|
|
24
|
+
*/
|
|
25
|
+
getContract(): EngineChip;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=EngineChipService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EngineChipService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/EngineChipService/EngineChipService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,4DAA4D,CAAC;AAExF,OAAO,EACL,kBAAkB,EAClB,yCAAyC,EACzC,2CAA2C,EAC3C,2CAA2C,EAC3C,wCAAwC,EACxC,gDAAgD,EAChD,uCAAuC,EAIxC,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAgUnE;;;GAGG;AACH,qBAAa,iBAAkB,YAAW,kBAAkB;IAC1D,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAa;IACtC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAU;IAEnC,SAAgB,eAAe,EAAE,yCAAyC,CAAC;IAC3E,SAAgB,iBAAiB,EAAE,2CAA2C,CAAC;IAC/E,SAAgB,iBAAiB,EAAE,2CAA2C,CAAC;IAC/E,SAAgB,cAAc,EAAE,wCAAwC,CAAC;IACzE,SAAgB,sBAAsB,EAAE,gDAAgD,CAAC;IACzF,SAAgB,aAAa,EAAE,uCAAuC,CAAC;IACvE,SAAgB,aAAa,EAAE,cAAc,CAAC;IAC9C,SAAgB,qBAAqB,EAAE,sBAAsB,CAAC;gBAElD,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EAAE,OAAO,EAAE,MAAM;IAwBhE;;;OAGG;IACH,WAAW,IAAI,UAAU;CAG1B"}
|
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EngineChipService = void 0;
|
|
4
|
+
const EngineChip__factory_1 = require("../../typechain/factories/contracts/Lynx/Chips/EngineChip/EngineChip__factory");
|
|
5
|
+
// ============ ERC20 Operations Implementation ============
|
|
6
|
+
class ERC20Operations {
|
|
7
|
+
constructor(contract, isSigner) {
|
|
8
|
+
this.contract = contract;
|
|
9
|
+
this.isSigner = isSigner;
|
|
10
|
+
}
|
|
11
|
+
async name() {
|
|
12
|
+
return await this.contract.name();
|
|
13
|
+
}
|
|
14
|
+
async symbol() {
|
|
15
|
+
return await this.contract.symbol();
|
|
16
|
+
}
|
|
17
|
+
async decimals() {
|
|
18
|
+
return await this.contract.decimals();
|
|
19
|
+
}
|
|
20
|
+
async totalSupply() {
|
|
21
|
+
return await this.contract.totalSupply();
|
|
22
|
+
}
|
|
23
|
+
async balanceOf(account) {
|
|
24
|
+
return await this.contract.balanceOf(account);
|
|
25
|
+
}
|
|
26
|
+
async allowance(owner, spender) {
|
|
27
|
+
return await this.contract.allowance(owner, spender);
|
|
28
|
+
}
|
|
29
|
+
async approve(spender, value) {
|
|
30
|
+
if (!this.isSigner) {
|
|
31
|
+
throw new Error("EngineChipService: Write operations require a signer");
|
|
32
|
+
}
|
|
33
|
+
return await this.contract.approve(spender, value);
|
|
34
|
+
}
|
|
35
|
+
async transfer(to, value) {
|
|
36
|
+
if (!this.isSigner) {
|
|
37
|
+
throw new Error("EngineChipService: Write operations require a signer");
|
|
38
|
+
}
|
|
39
|
+
return await this.contract.transfer(to, value);
|
|
40
|
+
}
|
|
41
|
+
async transferFrom(from, to, value) {
|
|
42
|
+
if (!this.isSigner) {
|
|
43
|
+
throw new Error("EngineChipService: Write operations require a signer");
|
|
44
|
+
}
|
|
45
|
+
return await this.contract.transferFrom(from, to, value);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
// ============ Minting Operations Implementation ============
|
|
49
|
+
class MintingOperations {
|
|
50
|
+
constructor(contract, isSigner) {
|
|
51
|
+
this.contract = contract;
|
|
52
|
+
this.isSigner = isSigner;
|
|
53
|
+
}
|
|
54
|
+
async mintChip(toAddress, amount) {
|
|
55
|
+
if (!this.isSigner) {
|
|
56
|
+
throw new Error("EngineChipService: Write operations require a signer");
|
|
57
|
+
}
|
|
58
|
+
return await this.contract.mintChip(toAddress, amount);
|
|
59
|
+
}
|
|
60
|
+
async isMintingPaused() {
|
|
61
|
+
return await this.contract.isMintingPaused();
|
|
62
|
+
}
|
|
63
|
+
async setIsMintingPaused(value) {
|
|
64
|
+
if (!this.isSigner) {
|
|
65
|
+
throw new Error("EngineChipService: Write operations require a signer");
|
|
66
|
+
}
|
|
67
|
+
return await this.contract.setIsMintingPaused(value);
|
|
68
|
+
}
|
|
69
|
+
async setMintController(mintController) {
|
|
70
|
+
if (!this.isSigner) {
|
|
71
|
+
throw new Error("EngineChipService: Write operations require a signer");
|
|
72
|
+
}
|
|
73
|
+
return await this.contract.setMintController(mintController);
|
|
74
|
+
}
|
|
75
|
+
async mintController() {
|
|
76
|
+
return await this.contract.mintController();
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
// ============ Burning Operations Implementation ============
|
|
80
|
+
class BurningOperations {
|
|
81
|
+
constructor(contract, isSigner) {
|
|
82
|
+
this.contract = contract;
|
|
83
|
+
this.isSigner = isSigner;
|
|
84
|
+
}
|
|
85
|
+
async burnChip(receiver, amount) {
|
|
86
|
+
if (!this.isSigner) {
|
|
87
|
+
throw new Error("EngineChipService: Write operations require a signer");
|
|
88
|
+
}
|
|
89
|
+
return await this.contract.burnChip(receiver, amount);
|
|
90
|
+
}
|
|
91
|
+
async burnChipAndCall(amount, payload) {
|
|
92
|
+
if (!this.isSigner) {
|
|
93
|
+
throw new Error("EngineChipService: Write operations require a signer");
|
|
94
|
+
}
|
|
95
|
+
return await this.contract.burnChipAndCall(amount, payload);
|
|
96
|
+
}
|
|
97
|
+
async setBurnController(burnController) {
|
|
98
|
+
if (!this.isSigner) {
|
|
99
|
+
throw new Error("EngineChipService: Write operations require a signer");
|
|
100
|
+
}
|
|
101
|
+
return await this.contract.setBurnController(burnController);
|
|
102
|
+
}
|
|
103
|
+
async setBurnHandler(handler) {
|
|
104
|
+
if (!this.isSigner) {
|
|
105
|
+
throw new Error("EngineChipService: Write operations require a signer");
|
|
106
|
+
}
|
|
107
|
+
return await this.contract.setBurnHandler(handler);
|
|
108
|
+
}
|
|
109
|
+
async burnController() {
|
|
110
|
+
return await this.contract.burnController();
|
|
111
|
+
}
|
|
112
|
+
async burnHandler() {
|
|
113
|
+
return await this.contract.burnHandler();
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
// ============ Admin Functions Implementation ============
|
|
117
|
+
class AdminFunctions {
|
|
118
|
+
constructor(contract, isSigner) {
|
|
119
|
+
this.contract = contract;
|
|
120
|
+
this.isSigner = isSigner;
|
|
121
|
+
}
|
|
122
|
+
async setPendingAdmin(newPendingAdmin) {
|
|
123
|
+
if (!this.isSigner) {
|
|
124
|
+
throw new Error("EngineChipService: Write operations require a signer");
|
|
125
|
+
}
|
|
126
|
+
return await this.contract._setPendingAdmin(newPendingAdmin);
|
|
127
|
+
}
|
|
128
|
+
async acceptAdmin() {
|
|
129
|
+
if (!this.isSigner) {
|
|
130
|
+
throw new Error("EngineChipService: Write operations require a signer");
|
|
131
|
+
}
|
|
132
|
+
return await this.contract._acceptAdmin();
|
|
133
|
+
}
|
|
134
|
+
async sweepTokens(token, amount) {
|
|
135
|
+
if (!this.isSigner) {
|
|
136
|
+
throw new Error("EngineChipService: Write operations require a signer");
|
|
137
|
+
}
|
|
138
|
+
return await this.contract.sweepTokens(token, amount);
|
|
139
|
+
}
|
|
140
|
+
async sweepNative(amount) {
|
|
141
|
+
if (!this.isSigner) {
|
|
142
|
+
throw new Error("EngineChipService: Write operations require a signer");
|
|
143
|
+
}
|
|
144
|
+
return await this.contract.sweepNative(amount);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
// ============ Auto Approval Management Implementation ============
|
|
148
|
+
class AutoApprovalManagement {
|
|
149
|
+
constructor(contract, isSigner) {
|
|
150
|
+
this.contract = contract;
|
|
151
|
+
this.isSigner = isSigner;
|
|
152
|
+
}
|
|
153
|
+
async setAutoApprovedSpenderForRole(role, spender) {
|
|
154
|
+
if (!this.isSigner) {
|
|
155
|
+
throw new Error("EngineChipService: Write operations require a signer");
|
|
156
|
+
}
|
|
157
|
+
return await this.contract.setAutoApprovedSpenderForRole(role, spender);
|
|
158
|
+
}
|
|
159
|
+
async getAutoApprovedSpenderAddressByRole(role) {
|
|
160
|
+
return await this.contract.getAutoApprovedSpenderAddressByRole(role);
|
|
161
|
+
}
|
|
162
|
+
async autoApproved(address) {
|
|
163
|
+
return await this.contract.autoApproved(address);
|
|
164
|
+
}
|
|
165
|
+
async autoApprovedSpendersByRoles(roleHash) {
|
|
166
|
+
return await this.contract.autoApprovedSpendersByRoles(roleHash);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
// ============ View Functions Implementation ============
|
|
170
|
+
class ViewFunctions {
|
|
171
|
+
constructor(contract) {
|
|
172
|
+
this.contract = contract;
|
|
173
|
+
}
|
|
174
|
+
async exchangeRate() {
|
|
175
|
+
return await this.contract.exchangeRate();
|
|
176
|
+
}
|
|
177
|
+
async underlyingToken() {
|
|
178
|
+
return await this.contract.underlyingToken();
|
|
179
|
+
}
|
|
180
|
+
async chipMode() {
|
|
181
|
+
return await this.contract.chipMode();
|
|
182
|
+
}
|
|
183
|
+
async registry() {
|
|
184
|
+
return await this.contract.registry();
|
|
185
|
+
}
|
|
186
|
+
async SELF_UNIT_SCALE() {
|
|
187
|
+
return await this.contract.SELF_UNIT_SCALE();
|
|
188
|
+
}
|
|
189
|
+
async getChipConfiguration() {
|
|
190
|
+
const [name, symbol, decimals, totalSupply, underlyingToken, exchangeRate, chipMode, selfUnitScale,] = await Promise.all([
|
|
191
|
+
this.contract.name(),
|
|
192
|
+
this.contract.symbol(),
|
|
193
|
+
this.contract.decimals(),
|
|
194
|
+
this.contract.totalSupply(),
|
|
195
|
+
this.contract.underlyingToken(),
|
|
196
|
+
this.contract.exchangeRate(),
|
|
197
|
+
this.contract.chipMode(),
|
|
198
|
+
this.contract.SELF_UNIT_SCALE(),
|
|
199
|
+
]);
|
|
200
|
+
return {
|
|
201
|
+
name,
|
|
202
|
+
symbol,
|
|
203
|
+
decimals,
|
|
204
|
+
totalSupply,
|
|
205
|
+
underlyingToken,
|
|
206
|
+
exchangeRate,
|
|
207
|
+
chipMode,
|
|
208
|
+
selfUnitScale,
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
async getChipControllers() {
|
|
212
|
+
const [mintController, burnController, burnHandler] = await Promise.all([
|
|
213
|
+
this.contract.mintController(),
|
|
214
|
+
this.contract.burnController(),
|
|
215
|
+
this.contract.burnHandler(),
|
|
216
|
+
]);
|
|
217
|
+
return {
|
|
218
|
+
mintController,
|
|
219
|
+
burnController,
|
|
220
|
+
burnHandler,
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
async getChipMintingState() {
|
|
224
|
+
const isMintingPaused = await this.contract.isMintingPaused();
|
|
225
|
+
return {
|
|
226
|
+
isMintingPaused,
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
// ============ Pendable Admin Implementation ============
|
|
231
|
+
class PendableAdmin {
|
|
232
|
+
constructor(contract) {
|
|
233
|
+
this.contract = contract;
|
|
234
|
+
}
|
|
235
|
+
async admin() {
|
|
236
|
+
return await this.contract.admin();
|
|
237
|
+
}
|
|
238
|
+
async pendingAdmin() {
|
|
239
|
+
return await this.contract.pendingAdmin();
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
// ============ Lynx Versioned Contract Implementation ============
|
|
243
|
+
class LynxVersionedContract {
|
|
244
|
+
constructor(contract) {
|
|
245
|
+
this.contract = contract;
|
|
246
|
+
}
|
|
247
|
+
async getContractName() {
|
|
248
|
+
// EngineChip may not have versioning methods, return the contract name
|
|
249
|
+
return "EngineChip";
|
|
250
|
+
}
|
|
251
|
+
async getContractVersion() {
|
|
252
|
+
// EngineChip may not have versioning methods, return a default version
|
|
253
|
+
return "1.0.0";
|
|
254
|
+
}
|
|
255
|
+
async CONTRACT_NAME() {
|
|
256
|
+
return "EngineChip";
|
|
257
|
+
}
|
|
258
|
+
async CONTRACT_VERSION() {
|
|
259
|
+
return "1.0.0";
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
// ============ Main Service Class ============
|
|
263
|
+
/**
|
|
264
|
+
* Service for interacting with the EngineChip contract
|
|
265
|
+
* Manages ERC20 chip token operations including minting, burning, and administration
|
|
266
|
+
*/
|
|
267
|
+
class EngineChipService {
|
|
268
|
+
constructor(signerOrProvider, address) {
|
|
269
|
+
this.contract = EngineChip__factory_1.EngineChip__factory.connect(address, signerOrProvider);
|
|
270
|
+
this.isSigner = "sendTransaction" in signerOrProvider;
|
|
271
|
+
// Initialize all function groups using separate classes
|
|
272
|
+
this.erc20Operations = new ERC20Operations(this.contract, this.isSigner);
|
|
273
|
+
this.mintingOperations = new MintingOperations(this.contract, this.isSigner);
|
|
274
|
+
this.burningOperations = new BurningOperations(this.contract, this.isSigner);
|
|
275
|
+
this.adminFunctions = new AdminFunctions(this.contract, this.isSigner);
|
|
276
|
+
this.autoApprovalManagement = new AutoApprovalManagement(this.contract, this.isSigner);
|
|
277
|
+
this.viewFunctions = new ViewFunctions(this.contract);
|
|
278
|
+
this.pendableAdmin = new PendableAdmin(this.contract);
|
|
279
|
+
this.lynxVersionedContract = new LynxVersionedContract(this.contract);
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Get the underlying contract instance
|
|
283
|
+
* Useful for accessing contract methods directly when needed
|
|
284
|
+
*/
|
|
285
|
+
getContract() {
|
|
286
|
+
return this.contract;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
exports.EngineChipService = EngineChipService;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { ContractTransactionResponse } from "ethers";
|
|
2
|
+
import { ILynxVersionedContract, IPendableAdmin } from "../common";
|
|
3
|
+
export interface ChipConfiguration {
|
|
4
|
+
name: string;
|
|
5
|
+
symbol: string;
|
|
6
|
+
decimals: bigint;
|
|
7
|
+
totalSupply: bigint;
|
|
8
|
+
underlyingToken: string;
|
|
9
|
+
exchangeRate: bigint;
|
|
10
|
+
chipMode: bigint;
|
|
11
|
+
selfUnitScale: bigint;
|
|
12
|
+
}
|
|
13
|
+
export interface ChipControllers {
|
|
14
|
+
mintController: string;
|
|
15
|
+
burnController: string;
|
|
16
|
+
burnHandler: string;
|
|
17
|
+
}
|
|
18
|
+
export interface ChipMintingState {
|
|
19
|
+
isMintingPaused: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface AutoApprovalInfo {
|
|
22
|
+
role: string;
|
|
23
|
+
spenderAddress: string;
|
|
24
|
+
}
|
|
25
|
+
export interface IEngineChipFunctionsGroup_ERC20Operations {
|
|
26
|
+
name(): Promise<string>;
|
|
27
|
+
symbol(): Promise<string>;
|
|
28
|
+
decimals(): Promise<bigint>;
|
|
29
|
+
totalSupply(): Promise<bigint>;
|
|
30
|
+
balanceOf(account: string): Promise<bigint>;
|
|
31
|
+
allowance(owner: string, spender: string): Promise<bigint>;
|
|
32
|
+
approve(spender: string, value: bigint): Promise<ContractTransactionResponse>;
|
|
33
|
+
transfer(to: string, value: bigint): Promise<ContractTransactionResponse>;
|
|
34
|
+
transferFrom(from: string, to: string, value: bigint): Promise<ContractTransactionResponse>;
|
|
35
|
+
}
|
|
36
|
+
export interface IEngineChipFunctionsGroup_MintingOperations {
|
|
37
|
+
mintChip(toAddress: string, amount: bigint): Promise<ContractTransactionResponse>;
|
|
38
|
+
isMintingPaused(): Promise<boolean>;
|
|
39
|
+
setIsMintingPaused(value: boolean): Promise<ContractTransactionResponse>;
|
|
40
|
+
setMintController(mintController: string): Promise<ContractTransactionResponse>;
|
|
41
|
+
mintController(): Promise<string>;
|
|
42
|
+
}
|
|
43
|
+
export interface IEngineChipFunctionsGroup_BurningOperations {
|
|
44
|
+
burnChip(receiver: string, amount: bigint): Promise<ContractTransactionResponse>;
|
|
45
|
+
burnChipAndCall(amount: bigint, payload: string): Promise<ContractTransactionResponse>;
|
|
46
|
+
setBurnController(burnController: string): Promise<ContractTransactionResponse>;
|
|
47
|
+
setBurnHandler(handler: string): Promise<ContractTransactionResponse>;
|
|
48
|
+
burnController(): Promise<string>;
|
|
49
|
+
burnHandler(): Promise<string>;
|
|
50
|
+
}
|
|
51
|
+
export interface IEngineChipFunctionsGroup_AdminFunctions {
|
|
52
|
+
setPendingAdmin(newPendingAdmin: string): Promise<ContractTransactionResponse>;
|
|
53
|
+
acceptAdmin(): Promise<ContractTransactionResponse>;
|
|
54
|
+
sweepTokens(token: string, amount: bigint): Promise<ContractTransactionResponse>;
|
|
55
|
+
sweepNative(amount: bigint): Promise<ContractTransactionResponse>;
|
|
56
|
+
}
|
|
57
|
+
export interface IEngineChipFunctionsGroup_AutoApprovalManagement {
|
|
58
|
+
setAutoApprovedSpenderForRole(role: string, spender: string): Promise<ContractTransactionResponse>;
|
|
59
|
+
getAutoApprovedSpenderAddressByRole(role: string): Promise<string>;
|
|
60
|
+
autoApproved(address: string): Promise<boolean>;
|
|
61
|
+
autoApprovedSpendersByRoles(roleHash: string): Promise<string>;
|
|
62
|
+
}
|
|
63
|
+
export interface IEngineChipFunctionsGroup_ViewFunctions {
|
|
64
|
+
exchangeRate(): Promise<bigint>;
|
|
65
|
+
underlyingToken(): Promise<string>;
|
|
66
|
+
chipMode(): Promise<bigint>;
|
|
67
|
+
registry(): Promise<string>;
|
|
68
|
+
SELF_UNIT_SCALE(): Promise<bigint>;
|
|
69
|
+
getChipConfiguration(): Promise<ChipConfiguration>;
|
|
70
|
+
getChipControllers(): Promise<ChipControllers>;
|
|
71
|
+
getChipMintingState(): Promise<ChipMintingState>;
|
|
72
|
+
}
|
|
73
|
+
export interface IEngineChipService {
|
|
74
|
+
erc20Operations: IEngineChipFunctionsGroup_ERC20Operations;
|
|
75
|
+
mintingOperations: IEngineChipFunctionsGroup_MintingOperations;
|
|
76
|
+
burningOperations: IEngineChipFunctionsGroup_BurningOperations;
|
|
77
|
+
adminFunctions: IEngineChipFunctionsGroup_AdminFunctions;
|
|
78
|
+
autoApprovalManagement: IEngineChipFunctionsGroup_AutoApprovalManagement;
|
|
79
|
+
viewFunctions: IEngineChipFunctionsGroup_ViewFunctions;
|
|
80
|
+
pendableAdmin: IPendableAdmin;
|
|
81
|
+
lynxVersionedContract: ILynxVersionedContract;
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=IEngineChipService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEngineChipService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/E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BAAqB,EAAE,sBAAsB,CAAC;CAC/C"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { EngineChipService } from "./EngineChipService";
|
|
2
|
+
export type { IEngineChipService, IEngineChipFunctionsGroup_ERC20Operations, IEngineChipFunctionsGroup_MintingOperations, IEngineChipFunctionsGroup_BurningOperations, IEngineChipFunctionsGroup_AdminFunctions, IEngineChipFunctionsGroup_AutoApprovalManagement, IEngineChipFunctionsGroup_ViewFunctions, ChipConfiguration, ChipControllers, ChipMintingState, AutoApprovalInfo, } from "./IEngineChipService";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/EngineChipService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,YAAY,EACV,kBAAkB,EAClB,yCAAyC,EACzC,2CAA2C,EAC3C,2CAA2C,EAC3C,wCAAwC,EACxC,gDAAgD,EAChD,uCAAuC,EACvC,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EngineChipService = void 0;
|
|
4
|
+
var EngineChipService_1 = require("./EngineChipService");
|
|
5
|
+
Object.defineProperty(exports, "EngineChipService", { enumerable: true, get: function () { return EngineChipService_1.EngineChipService; } });
|
package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ContractTransactionResponse } from "ethers";
|
|
1
2
|
import { ILynxVersionedContract, IPendableAdmin } from "../common";
|
|
2
3
|
export interface PermissionInfo {
|
|
3
4
|
amountLimit: bigint;
|
|
@@ -40,7 +41,7 @@ export interface IOnBehalfTradingFunctionsGroup_PermissionManagement {
|
|
|
40
41
|
revokePermission(spender: string, token: string): Promise<void>;
|
|
41
42
|
revokeAllPermissions(spender: string): Promise<void>;
|
|
42
43
|
chargePermission(owner: string, spender: string, token: string, amount: bigint): Promise<void>;
|
|
43
|
-
setPermissions(payloads: PermissionSettingPayload[]): Promise<
|
|
44
|
+
setPermissions(payloads: PermissionSettingPayload[]): Promise<ContractTransactionResponse>;
|
|
44
45
|
}
|
|
45
46
|
export interface IOnBehalfTradingFunctionsGroup_Configuration {
|
|
46
47
|
isPaused(): Promise<boolean>;
|
|
@@ -55,6 +56,10 @@ export interface IOnBehalfTradingFunctionsGroup_AdminFunctions {
|
|
|
55
56
|
togglePause(): Promise<void>;
|
|
56
57
|
setDynamicRoleCaller(caller: string, roleName: string): Promise<void>;
|
|
57
58
|
setDynamicRoleCallers(callers: string[], roleNames: string[]): Promise<void>;
|
|
59
|
+
adminRevokeSpecificPermission(owner: string, spender: string, token: string): Promise<ContractTransactionResponse>;
|
|
60
|
+
adminBatchRevokeSpecificPermissions(owners: string[], spenders: string[], tokens: string[]): Promise<ContractTransactionResponse>;
|
|
61
|
+
adminRevokeAllPermissionsFromOwner(owner: string, spender: string): Promise<ContractTransactionResponse>;
|
|
62
|
+
adminPermanentlyRevokeSpender(owner: string, spender: string): Promise<ContractTransactionResponse>;
|
|
58
63
|
setPendingAdmin(newPendingAdmin: string): Promise<void>;
|
|
59
64
|
acceptAdmin(): Promise<void>;
|
|
60
65
|
}
|
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,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAGnE,MAAM,WAA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,CAAC,MAAM,CAAC,CAAC;IAEzD,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAEpD,yBAAyB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAE7E,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAC;IAE5E,iBAAiB,CACf,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB;AAED,MAAM,WAAW,mDAAmD;IAClE,eAAe,CACb,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEhE,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAErD,gBAAgB,CACd,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB,cAAc,CAAC,QAAQ,EAAE,wBAAwB,EAAE,GAAG,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"IOnBehalfTradingService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,QAAQ,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAGnE,MAAM,WAAW,cAAc;I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iDAAiD;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.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,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;
|
|
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;AA8YnE;;;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"}
|
|
@@ -92,8 +92,7 @@ class PermissionManagement {
|
|
|
92
92
|
if (!this.isSigner) {
|
|
93
93
|
throw new Error("OnBehalfTradingService: Write operations require a signer");
|
|
94
94
|
}
|
|
95
|
-
|
|
96
|
-
await tx.wait();
|
|
95
|
+
return await this.contract.setPermissions(payloads);
|
|
97
96
|
}
|
|
98
97
|
}
|
|
99
98
|
// ============ Configuration Implementation ============
|
|
@@ -169,6 +168,30 @@ class AdminFunctions {
|
|
|
169
168
|
const tx = await this.contract.setDynamicRoleCallers(callers, roleNames);
|
|
170
169
|
await tx.wait();
|
|
171
170
|
}
|
|
171
|
+
async adminRevokeSpecificPermission(owner, spender, token) {
|
|
172
|
+
if (!this.isSigner) {
|
|
173
|
+
throw new Error("OnBehalfTradingService: Write operations require a signer");
|
|
174
|
+
}
|
|
175
|
+
return await this.contract.adminRevokeSpecificPermission(owner, spender, token);
|
|
176
|
+
}
|
|
177
|
+
async adminBatchRevokeSpecificPermissions(owners, spenders, tokens) {
|
|
178
|
+
if (!this.isSigner) {
|
|
179
|
+
throw new Error("OnBehalfTradingService: Write operations require a signer");
|
|
180
|
+
}
|
|
181
|
+
return await this.contract.adminBatchRevokeSpecificPermissions(owners, spenders, tokens);
|
|
182
|
+
}
|
|
183
|
+
async adminRevokeAllPermissionsFromOwner(owner, spender) {
|
|
184
|
+
if (!this.isSigner) {
|
|
185
|
+
throw new Error("OnBehalfTradingService: Write operations require a signer");
|
|
186
|
+
}
|
|
187
|
+
return await this.contract.adminRevokeAllPermissionsFromOwner(owner, spender);
|
|
188
|
+
}
|
|
189
|
+
async adminPermanentlyRevokeSpender(owner, spender) {
|
|
190
|
+
if (!this.isSigner) {
|
|
191
|
+
throw new Error("OnBehalfTradingService: Write operations require a signer");
|
|
192
|
+
}
|
|
193
|
+
return await this.contract.adminPermanentlyRevokeSpender(owner, spender);
|
|
194
|
+
}
|
|
172
195
|
async setPendingAdmin(newPendingAdmin) {
|
|
173
196
|
if (!this.isSigner) {
|
|
174
197
|
throw new Error("OnBehalfTradingService: Write operations require a signer");
|