lynx-client 0.0.9 → 0.0.11

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.
Files changed (99) hide show
  1. package/dist/cjs/index.js +5 -1
  2. package/dist/cjs/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.js +2 -0
  3. package/dist/cjs/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.js +122 -0
  4. package/dist/cjs/lib/contractsIntegration/OnBehalfTradingService/index.js +5 -0
  5. package/dist/cjs/lib/contractsIntegration/deployedContractsConnector.js +17 -0
  6. package/dist/cjs/lib/lynxSystem/lynxScalesUtils.js +2 -2
  7. package/dist/cjs/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.js +2 -0
  8. package/dist/cjs/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.js +1 -1
  9. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.js +1 -1
  10. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.js +1 -1
  11. package/dist/cjs/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.js +773 -0
  12. package/dist/cjs/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +1 -1
  13. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.js +1 -1
  14. package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +1 -1
  15. package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +114 -2
  16. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +1 -1
  17. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +1 -1
  18. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +1 -1
  19. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +1 -1
  20. package/dist/esm/index.d.ts +4 -0
  21. package/dist/esm/index.d.ts.map +1 -1
  22. package/dist/esm/index.js +5 -1
  23. package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts +28 -0
  24. package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts.map +1 -0
  25. package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.js +2 -0
  26. package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts +29 -0
  27. package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts.map +1 -0
  28. package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.js +122 -0
  29. package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/index.d.ts +3 -0
  30. package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/index.d.ts.map +1 -0
  31. package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/index.js +5 -0
  32. package/dist/esm/lib/contractsIntegration/deployedContractsConnector.d.ts +5 -0
  33. package/dist/esm/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -1
  34. package/dist/esm/lib/contractsIntegration/deployedContractsConnector.js +17 -0
  35. package/dist/esm/lib/lynxSystem/lynxScalesUtils.d.ts +1 -1
  36. package/dist/esm/lib/lynxSystem/lynxScalesUtils.d.ts.map +1 -1
  37. package/dist/esm/lib/lynxSystem/lynxScalesUtils.js +2 -2
  38. package/dist/esm/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.d.ts +498 -0
  39. package/dist/esm/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.d.ts.map +1 -0
  40. package/dist/esm/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.js +2 -0
  41. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts +54 -4
  42. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts.map +1 -1
  43. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.d.ts +1 -1
  44. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.js +1 -1
  45. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts +1 -1
  46. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.js +1 -1
  47. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts +1 -1
  48. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.js +1 -1
  49. package/dist/esm/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.d.ts +594 -0
  50. package/dist/esm/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.d.ts.map +1 -0
  51. package/dist/esm/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.js +773 -0
  52. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +1 -1
  53. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +1 -1
  54. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts +1 -1
  55. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.js +1 -1
  56. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +1 -1
  57. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +1 -1
  58. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +91 -2
  59. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -1
  60. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +114 -2
  61. package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +1 -1
  62. package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +1 -1
  63. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +1 -1
  64. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +1 -1
  65. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +1 -1
  66. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +1 -1
  67. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +1 -1
  68. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +1 -1
  69. package/dist/types/index.d.ts +4 -0
  70. package/dist/types/index.d.ts.map +1 -1
  71. package/dist/types/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts +28 -0
  72. package/dist/types/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts.map +1 -0
  73. package/dist/types/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts +29 -0
  74. package/dist/types/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts.map +1 -0
  75. package/dist/types/lib/contractsIntegration/OnBehalfTradingService/index.d.ts +3 -0
  76. package/dist/types/lib/contractsIntegration/OnBehalfTradingService/index.d.ts.map +1 -0
  77. package/dist/types/lib/contractsIntegration/deployedContractsConnector.d.ts +5 -0
  78. package/dist/types/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -1
  79. package/dist/types/lib/lynxSystem/lynxScalesUtils.d.ts +1 -1
  80. package/dist/types/lib/lynxSystem/lynxScalesUtils.d.ts.map +1 -1
  81. package/dist/types/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.d.ts +498 -0
  82. package/dist/types/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.d.ts.map +1 -0
  83. package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts +54 -4
  84. package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts.map +1 -1
  85. package/dist/types/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.d.ts +1 -1
  86. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts +1 -1
  87. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts +1 -1
  88. package/dist/types/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.d.ts +594 -0
  89. package/dist/types/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.d.ts.map +1 -0
  90. package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +1 -1
  91. package/dist/types/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts +1 -1
  92. package/dist/types/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +1 -1
  93. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +91 -2
  94. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -1
  95. package/dist/types/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +1 -1
  96. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +1 -1
  97. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +1 -1
  98. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +1 -1
  99. package/package.json +1 -1
@@ -19,6 +19,8 @@ import { TradeIntentsVerifierV1 } from "../typechain/contracts/Lynx/IntentsVerif
19
19
  import { ChipsIntentsVerifierService } from "./ChipsIntentsVerifierService";
20
20
  import { LiquidityIntentsVerifierService } from "./LiquidityIntentsVerifierService";
21
21
  import { TradeIntentsVerifierService } from "./TradeIntentsVerifierService";
22
+ import { OnBehalfTradingV1 } from "../typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1";
23
+ import { OnBehalfTradingService } from "./OnBehalfTradingService";
22
24
  export declare function connectToRegistryProxyForSigner(signer: Signer, address: string): RegistryProxy;
23
25
  /**
24
26
  * To be used with the proxy address and the implementation ABI
@@ -54,6 +56,8 @@ export declare function connectToLiquidityIntentsVerifierForSigner(signer: Signe
54
56
  export declare function connectToLiquidityIntentsVerifier(provider: Provider, address: string): LiquidityIntentsVerifierV1;
55
57
  export declare function connectToTradeIntentsVerifierForSigner(signer: Signer, address: string): TradeIntentsVerifierV1;
56
58
  export declare function connectToTradeIntentsVerifier(provider: Provider, address: string): TradeIntentsVerifierV1;
59
+ export declare function connectToOnBehalfTradingForSigner(signer: Signer, address: string): OnBehalfTradingV1;
60
+ export declare function connectToOnBehalfTrading(provider: Provider, address: string): OnBehalfTradingV1;
57
61
  export declare function createIntentsVerifierLensService(signerOrProvider: Signer | Provider, address: string): IntentsVerifierLensService;
58
62
  export declare function createTriggersAndPortalLensService(signerOrProvider: Signer | Provider, address: string): TriggersAndPortalLensService;
59
63
  export declare function createTradingFloorLensService(signerOrProvider: Signer | Provider, address: string): TradingFloorLensService;
@@ -61,4 +65,5 @@ export declare function createLexLensService(signerOrProvider: Signer | Provider
61
65
  export declare function createChipsIntentsVerifierService(signerOrProvider: Signer | Provider, address: string): ChipsIntentsVerifierService;
62
66
  export declare function createLiquidityIntentsVerifierService(signerOrProvider: Signer | Provider, address: string): LiquidityIntentsVerifierService;
63
67
  export declare function createTradeIntentsVerifierService(signerOrProvider: Signer | Provider, address: string): TradeIntentsVerifierService;
68
+ export declare function createOnBehalfTradingService(signerOrProvider: Signer | Provider, address: string): OnBehalfTradingService;
64
69
  //# sourceMappingURL=deployedContractsConnector.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deployedContractsConnector.d.ts","sourceRoot":"","sources":["../../../../lib/contractsIntegration/deployedContractsConnector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,yDAAyD,CAAC;AAE3F,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AAEzE,OAAO,EAAE,aAAa,EAAE,MAAM,oDAAoD,CAAC;AAGnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,4DAA4D,CAAC;AAI/F,OAAO,EAAE,cAAc,EAAE,MAAM,sDAAsD,CAAC;AAItF,OAAO,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,yDAAyD,CAAC;AACzF,OAAO,EAAE,WAAW,EAAE,MAAM,mDAAmD,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,2DAA2D,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oEAAoE,CAAC;AAE5G,OAAO,EAAE,0BAA0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AE5B;AAED,wBAAgB,kCAAkC,CAChD,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EACnC,OAAO,EAAE,MAAM,GACd,4BAA4B,CAE9B;AAED,wBAAgB,6BAA6B,CAC3C,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EACnC,OAAO,EAAE,MAAM,GACd,uBAAuB,CAEzB;AAED,wBAAgB,oBAAoB,CAClC,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EACnC,OAAO,EAAE,MAAM,GACd,cAAc,CAEhB;AAED,wBAAgB,iCAAiC,CAC/C,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EACnC,OAAO,EAAE,MAAM,GACd,2BAA2B,CAE7B;AAED,wBAAgB,qCAAqC,CACnD,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EACnC,OAAO,EAAE,MAAM,GACd,+BAA+B,CAEjC;AAED,wBAAgB,iCAAiC,CAC/C,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EACnC,OAAO,EAAE,MAAM,GACd,2BAA2B,CAE7B"}
1
+ {"version":3,"file":"deployedContractsConnector.d.ts","sourceRoot":"","sources":["../../../../lib/contractsIntegration/deployedContractsConnector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,yDAAyD,CAAC;AAE3F,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AAEzE,OAAO,EAAE,aAAa,EAAE,MAAM,oDAAoD,CAAC;AAGnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,4DAA4D,CAAC;AAI/F,OAAO,EAAE,cAAc,EAAE,MAAM,sDAAsD,CAAC;AAItF,OAAO,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,yDAAyD,CAAC;AACzF,OAAO,EAAE,WAAW,EAAE,MAAM,mDAAmD,CAAC;AAChF,OAA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CAC/C,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EACnC,OAAO,EAAE,MAAM,GACd,2BAA2B,CAE7B;AAED,wBAAgB,4BAA4B,CAC1C,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EACnC,OAAO,EAAE,MAAM,GACd,sBAAsB,CAExB"}
@@ -23,6 +23,8 @@ exports.connectToLiquidityIntentsVerifierForSigner = connectToLiquidityIntentsVe
23
23
  exports.connectToLiquidityIntentsVerifier = connectToLiquidityIntentsVerifier;
24
24
  exports.connectToTradeIntentsVerifierForSigner = connectToTradeIntentsVerifierForSigner;
25
25
  exports.connectToTradeIntentsVerifier = connectToTradeIntentsVerifier;
26
+ exports.connectToOnBehalfTradingForSigner = connectToOnBehalfTradingForSigner;
27
+ exports.connectToOnBehalfTrading = connectToOnBehalfTrading;
26
28
  exports.createIntentsVerifierLensService = createIntentsVerifierLensService;
27
29
  exports.createTriggersAndPortalLensService = createTriggersAndPortalLensService;
28
30
  exports.createTradingFloorLensService = createTradingFloorLensService;
@@ -30,6 +32,7 @@ exports.createLexLensService = createLexLensService;
30
32
  exports.createChipsIntentsVerifierService = createChipsIntentsVerifierService;
31
33
  exports.createLiquidityIntentsVerifierService = createLiquidityIntentsVerifierService;
32
34
  exports.createTradeIntentsVerifierService = createTradeIntentsVerifierService;
35
+ exports.createOnBehalfTradingService = createOnBehalfTradingService;
33
36
  const TradingFloorLens__factory_1 = require("../typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory");
34
37
  const LexLens__factory_1 = require("../typechain/factories/contracts/Peripheral/Lens/LexLens__factory");
35
38
  const RegistryProxy__factory_1 = require("../typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory");
@@ -50,6 +53,8 @@ const TradeIntentsVerifierV1__factory_1 = require("../typechain/factories/contra
50
53
  const ChipsIntentsVerifierService_1 = require("./ChipsIntentsVerifierService");
51
54
  const LiquidityIntentsVerifierService_1 = require("./LiquidityIntentsVerifierService");
52
55
  const TradeIntentsVerifierService_1 = require("./TradeIntentsVerifierService");
56
+ const OnBehalfTradingV1__factory_1 = require("../typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory");
57
+ const OnBehalfTradingService_1 = require("./OnBehalfTradingService");
53
58
  //
54
59
  // ***** Registry & Proxy *****
55
60
  //
@@ -153,6 +158,15 @@ function connectToTradeIntentsVerifier(provider, address) {
153
158
  return TradeIntentsVerifierV1__factory_1.TradeIntentsVerifierV1__factory.connect(address, provider);
154
159
  }
155
160
  //
161
+ // ***** OnBehalfTrading *****
162
+ //
163
+ function connectToOnBehalfTradingForSigner(signer, address) {
164
+ return OnBehalfTradingV1__factory_1.OnBehalfTradingV1__factory.connect(address, signer);
165
+ }
166
+ function connectToOnBehalfTrading(provider, address) {
167
+ return OnBehalfTradingV1__factory_1.OnBehalfTradingV1__factory.connect(address, provider);
168
+ }
169
+ //
156
170
  // ***** Lens Services *****
157
171
  //
158
172
  function createIntentsVerifierLensService(signerOrProvider, address) {
@@ -176,3 +190,6 @@ function createLiquidityIntentsVerifierService(signerOrProvider, address) {
176
190
  function createTradeIntentsVerifierService(signerOrProvider, address) {
177
191
  return new TradeIntentsVerifierService_1.TradeIntentsVerifierService(signerOrProvider, address);
178
192
  }
193
+ function createOnBehalfTradingService(signerOrProvider, address) {
194
+ return new OnBehalfTradingService_1.OnBehalfTradingService(signerOrProvider, address);
195
+ }
@@ -1,7 +1,7 @@
1
1
  export declare function precisionBnToFloat(precisionBn: bigint): number;
2
2
  export declare function floatToPrecisionBn(value: number): bigint;
3
3
  export declare function priceBnToFloat(pricesBn: bigint): number;
4
- export declare function floatToPriceBn(priceUnits: number): bigint;
4
+ export declare function floatToPriceBn(priceUnits: number, precisionDecimals?: number): bigint;
5
5
  export declare function fractionBnToFloat(fractionBn: bigint): number;
6
6
  export declare function floatToFractionBn(fractionUnits: number): bigint;
7
7
  //# sourceMappingURL=lynxScalesUtils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"lynxScalesUtils.d.ts","sourceRoot":"","sources":["../../../../lib/lynxSystem/lynxScalesUtils.ts"],"names":[],"mappings":"AAGA,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAE9D;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAExD;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED,wBAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAEzD;AAED,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED,wBAAgB,iBAAiB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAE/D"}
1
+ {"version":3,"file":"lynxScalesUtils.d.ts","sourceRoot":"","sources":["../../../../lib/lynxSystem/lynxScalesUtils.ts"],"names":[],"mappings":"AAOA,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAE9D;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAExD;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED,wBAAgB,cAAc,CAC5B,UAAU,EAAE,MAAM,EAClB,iBAAiB,CAAC,EAAE,MAAM,GACzB,MAAM,CAER;AAED,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED,wBAAgB,iBAAiB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAE/D"}
@@ -17,8 +17,8 @@ function floatToPrecisionBn(value) {
17
17
  function priceBnToFloat(pricesBn) {
18
18
  return (0, bignumbers_1.unitsBnToFloat)(pricesBn, scales_1.PRICES_SCALE);
19
19
  }
20
- function floatToPriceBn(priceUnits) {
21
- return (0, bignumbers_1.floatToUnitsBn)(priceUnits, scales_1.PRICES_SCALE);
20
+ function floatToPriceBn(priceUnits, precisionDecimals) {
21
+ return (0, bignumbers_1.floatToUnitsBn)(priceUnits, scales_1.PRICES_SCALE, precisionDecimals);
22
22
  }
23
23
  function fractionBnToFloat(fractionBn) {
24
24
  return Number(fractionBn) / Number(scales_1.FRACTION_MULTIPLIER_SCALE);
@@ -0,0 +1,498 @@
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 interface OnBehalfTradingV1Interface extends Interface {
4
+ getFunction(nameOrSignature: "CONTRACT_NAME" | "CONTRACT_VERSION" | "_acceptAdmin" | "_setPendingAdmin" | "admin" | "chargePermission" | "dynamicRoleCallers" | "getContractName" | "getContractVersion" | "getRemainingAmount" | "grantPermission" | "isPaused" | "isPermissionValid" | "maxPermissionAmountPerToken" | "maxPermissionDuration" | "pendingAdmin" | "permanentlyRevoked" | "permissions" | "registry" | "requirePermission" | "revokeAllPermissions" | "revokePermission" | "setDynamicRoleCaller" | "setDynamicRoleCallers" | "setMaxPermissionAmountForToken" | "setMaxPermissionAmountsForTokens" | "setMaxPermissionDuration" | "togglePause"): FunctionFragment;
5
+ getEvent(nameOrSignatureOrTopic: "AllPermissionsPermanentlyRevoked" | "DynamicRoleCallerUpdated" | "MaxPermissionAmountUpdatedForToken" | "MaxPermissionDurationUpdated" | "NewAdmin" | "NewPendingAdmin" | "PausedToggled" | "PermissionCharged" | "PermissionGranted" | "PermissionRevoked"): EventFragment;
6
+ encodeFunctionData(functionFragment: "CONTRACT_NAME", values?: undefined): string;
7
+ encodeFunctionData(functionFragment: "CONTRACT_VERSION", values?: undefined): string;
8
+ encodeFunctionData(functionFragment: "_acceptAdmin", values?: undefined): string;
9
+ encodeFunctionData(functionFragment: "_setPendingAdmin", values: [AddressLike]): string;
10
+ encodeFunctionData(functionFragment: "admin", values?: undefined): string;
11
+ encodeFunctionData(functionFragment: "chargePermission", values: [AddressLike, AddressLike, AddressLike, BigNumberish]): string;
12
+ encodeFunctionData(functionFragment: "dynamicRoleCallers", values: [AddressLike]): string;
13
+ encodeFunctionData(functionFragment: "getContractName", values?: undefined): string;
14
+ encodeFunctionData(functionFragment: "getContractVersion", values?: undefined): string;
15
+ encodeFunctionData(functionFragment: "getRemainingAmount", values: [AddressLike, AddressLike, AddressLike]): string;
16
+ encodeFunctionData(functionFragment: "grantPermission", values: [AddressLike, AddressLike, BigNumberish, BigNumberish]): string;
17
+ encodeFunctionData(functionFragment: "isPaused", values?: undefined): string;
18
+ encodeFunctionData(functionFragment: "isPermissionValid", values: [AddressLike, AddressLike, AddressLike]): string;
19
+ encodeFunctionData(functionFragment: "maxPermissionAmountPerToken", values: [AddressLike]): string;
20
+ encodeFunctionData(functionFragment: "maxPermissionDuration", values?: undefined): string;
21
+ encodeFunctionData(functionFragment: "pendingAdmin", values?: undefined): string;
22
+ encodeFunctionData(functionFragment: "permanentlyRevoked", values: [AddressLike, AddressLike]): string;
23
+ encodeFunctionData(functionFragment: "permissions", values: [AddressLike, AddressLike, AddressLike]): string;
24
+ encodeFunctionData(functionFragment: "registry", values?: undefined): string;
25
+ encodeFunctionData(functionFragment: "requirePermission", values: [AddressLike, AddressLike, AddressLike]): string;
26
+ encodeFunctionData(functionFragment: "revokeAllPermissions", values: [AddressLike]): string;
27
+ encodeFunctionData(functionFragment: "revokePermission", values: [AddressLike, AddressLike]): string;
28
+ encodeFunctionData(functionFragment: "setDynamicRoleCaller", values: [AddressLike, string]): string;
29
+ encodeFunctionData(functionFragment: "setDynamicRoleCallers", values: [AddressLike[], string[]]): string;
30
+ encodeFunctionData(functionFragment: "setMaxPermissionAmountForToken", values: [AddressLike, BigNumberish]): string;
31
+ encodeFunctionData(functionFragment: "setMaxPermissionAmountsForTokens", values: [AddressLike[], BigNumberish[]]): string;
32
+ encodeFunctionData(functionFragment: "setMaxPermissionDuration", values: [BigNumberish]): string;
33
+ encodeFunctionData(functionFragment: "togglePause", values?: undefined): string;
34
+ decodeFunctionResult(functionFragment: "CONTRACT_NAME", data: BytesLike): Result;
35
+ decodeFunctionResult(functionFragment: "CONTRACT_VERSION", data: BytesLike): Result;
36
+ decodeFunctionResult(functionFragment: "_acceptAdmin", data: BytesLike): Result;
37
+ decodeFunctionResult(functionFragment: "_setPendingAdmin", data: BytesLike): Result;
38
+ decodeFunctionResult(functionFragment: "admin", data: BytesLike): Result;
39
+ decodeFunctionResult(functionFragment: "chargePermission", data: BytesLike): Result;
40
+ decodeFunctionResult(functionFragment: "dynamicRoleCallers", data: BytesLike): Result;
41
+ decodeFunctionResult(functionFragment: "getContractName", data: BytesLike): Result;
42
+ decodeFunctionResult(functionFragment: "getContractVersion", data: BytesLike): Result;
43
+ decodeFunctionResult(functionFragment: "getRemainingAmount", data: BytesLike): Result;
44
+ decodeFunctionResult(functionFragment: "grantPermission", data: BytesLike): Result;
45
+ decodeFunctionResult(functionFragment: "isPaused", data: BytesLike): Result;
46
+ decodeFunctionResult(functionFragment: "isPermissionValid", data: BytesLike): Result;
47
+ decodeFunctionResult(functionFragment: "maxPermissionAmountPerToken", data: BytesLike): Result;
48
+ decodeFunctionResult(functionFragment: "maxPermissionDuration", data: BytesLike): Result;
49
+ decodeFunctionResult(functionFragment: "pendingAdmin", data: BytesLike): Result;
50
+ decodeFunctionResult(functionFragment: "permanentlyRevoked", data: BytesLike): Result;
51
+ decodeFunctionResult(functionFragment: "permissions", data: BytesLike): Result;
52
+ decodeFunctionResult(functionFragment: "registry", data: BytesLike): Result;
53
+ decodeFunctionResult(functionFragment: "requirePermission", data: BytesLike): Result;
54
+ decodeFunctionResult(functionFragment: "revokeAllPermissions", data: BytesLike): Result;
55
+ decodeFunctionResult(functionFragment: "revokePermission", data: BytesLike): Result;
56
+ decodeFunctionResult(functionFragment: "setDynamicRoleCaller", data: BytesLike): Result;
57
+ decodeFunctionResult(functionFragment: "setDynamicRoleCallers", data: BytesLike): Result;
58
+ decodeFunctionResult(functionFragment: "setMaxPermissionAmountForToken", data: BytesLike): Result;
59
+ decodeFunctionResult(functionFragment: "setMaxPermissionAmountsForTokens", data: BytesLike): Result;
60
+ decodeFunctionResult(functionFragment: "setMaxPermissionDuration", data: BytesLike): Result;
61
+ decodeFunctionResult(functionFragment: "togglePause", data: BytesLike): Result;
62
+ }
63
+ export declare namespace AllPermissionsPermanentlyRevokedEvent {
64
+ type InputTuple = [owner: AddressLike, spender: AddressLike];
65
+ type OutputTuple = [owner: string, spender: string];
66
+ interface OutputObject {
67
+ owner: string;
68
+ spender: string;
69
+ }
70
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
71
+ type Filter = TypedDeferredTopicFilter<Event>;
72
+ type Log = TypedEventLog<Event>;
73
+ type LogDescription = TypedLogDescription<Event>;
74
+ }
75
+ export declare namespace DynamicRoleCallerUpdatedEvent {
76
+ type InputTuple = [caller: AddressLike, roleName: string];
77
+ type OutputTuple = [caller: string, roleName: string];
78
+ interface OutputObject {
79
+ caller: string;
80
+ roleName: string;
81
+ }
82
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
83
+ type Filter = TypedDeferredTopicFilter<Event>;
84
+ type Log = TypedEventLog<Event>;
85
+ type LogDescription = TypedLogDescription<Event>;
86
+ }
87
+ export declare namespace MaxPermissionAmountUpdatedForTokenEvent {
88
+ type InputTuple = [token: AddressLike, newMaxAmount: BigNumberish];
89
+ type OutputTuple = [token: string, newMaxAmount: bigint];
90
+ interface OutputObject {
91
+ token: string;
92
+ newMaxAmount: bigint;
93
+ }
94
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
95
+ type Filter = TypedDeferredTopicFilter<Event>;
96
+ type Log = TypedEventLog<Event>;
97
+ type LogDescription = TypedLogDescription<Event>;
98
+ }
99
+ export declare namespace MaxPermissionDurationUpdatedEvent {
100
+ type InputTuple = [newMaxDuration: BigNumberish];
101
+ type OutputTuple = [newMaxDuration: bigint];
102
+ interface OutputObject {
103
+ newMaxDuration: bigint;
104
+ }
105
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
106
+ type Filter = TypedDeferredTopicFilter<Event>;
107
+ type Log = TypedEventLog<Event>;
108
+ type LogDescription = TypedLogDescription<Event>;
109
+ }
110
+ export declare namespace NewAdminEvent {
111
+ type InputTuple = [oldAdmin: AddressLike, newAdmin: AddressLike];
112
+ type OutputTuple = [oldAdmin: string, newAdmin: string];
113
+ interface OutputObject {
114
+ oldAdmin: string;
115
+ newAdmin: string;
116
+ }
117
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
118
+ type Filter = TypedDeferredTopicFilter<Event>;
119
+ type Log = TypedEventLog<Event>;
120
+ type LogDescription = TypedLogDescription<Event>;
121
+ }
122
+ export declare namespace NewPendingAdminEvent {
123
+ type InputTuple = [
124
+ oldPendingAdmin: AddressLike,
125
+ newPendingAdmin: AddressLike
126
+ ];
127
+ type OutputTuple = [oldPendingAdmin: string, newPendingAdmin: string];
128
+ interface OutputObject {
129
+ oldPendingAdmin: string;
130
+ newPendingAdmin: 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 PausedToggledEvent {
138
+ type InputTuple = [isPaused: boolean];
139
+ type OutputTuple = [isPaused: boolean];
140
+ interface OutputObject {
141
+ isPaused: boolean;
142
+ }
143
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
144
+ type Filter = TypedDeferredTopicFilter<Event>;
145
+ type Log = TypedEventLog<Event>;
146
+ type LogDescription = TypedLogDescription<Event>;
147
+ }
148
+ export declare namespace PermissionChargedEvent {
149
+ type InputTuple = [
150
+ owner: AddressLike,
151
+ spender: AddressLike,
152
+ token: AddressLike,
153
+ amountUsed: BigNumberish,
154
+ remainingAmount: BigNumberish
155
+ ];
156
+ type OutputTuple = [
157
+ owner: string,
158
+ spender: string,
159
+ token: string,
160
+ amountUsed: bigint,
161
+ remainingAmount: bigint
162
+ ];
163
+ interface OutputObject {
164
+ owner: string;
165
+ spender: string;
166
+ token: string;
167
+ amountUsed: bigint;
168
+ remainingAmount: bigint;
169
+ }
170
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
171
+ type Filter = TypedDeferredTopicFilter<Event>;
172
+ type Log = TypedEventLog<Event>;
173
+ type LogDescription = TypedLogDescription<Event>;
174
+ }
175
+ export declare namespace PermissionGrantedEvent {
176
+ type InputTuple = [
177
+ owner: AddressLike,
178
+ spender: AddressLike,
179
+ token: AddressLike,
180
+ amountLimit: BigNumberish,
181
+ expiryTime: BigNumberish
182
+ ];
183
+ type OutputTuple = [
184
+ owner: string,
185
+ spender: string,
186
+ token: string,
187
+ amountLimit: bigint,
188
+ expiryTime: bigint
189
+ ];
190
+ interface OutputObject {
191
+ owner: string;
192
+ spender: string;
193
+ token: string;
194
+ amountLimit: bigint;
195
+ expiryTime: bigint;
196
+ }
197
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
198
+ type Filter = TypedDeferredTopicFilter<Event>;
199
+ type Log = TypedEventLog<Event>;
200
+ type LogDescription = TypedLogDescription<Event>;
201
+ }
202
+ export declare namespace PermissionRevokedEvent {
203
+ type InputTuple = [
204
+ owner: AddressLike,
205
+ spender: AddressLike,
206
+ token: AddressLike
207
+ ];
208
+ type OutputTuple = [owner: string, spender: string, token: string];
209
+ interface OutputObject {
210
+ owner: string;
211
+ spender: string;
212
+ token: string;
213
+ }
214
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
215
+ type Filter = TypedDeferredTopicFilter<Event>;
216
+ type Log = TypedEventLog<Event>;
217
+ type LogDescription = TypedLogDescription<Event>;
218
+ }
219
+ export interface OnBehalfTradingV1 extends BaseContract {
220
+ connect(runner?: ContractRunner | null): OnBehalfTradingV1;
221
+ waitForDeployment(): Promise<this>;
222
+ interface: OnBehalfTradingV1Interface;
223
+ queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
224
+ queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
225
+ on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
226
+ on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
227
+ once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
228
+ once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
229
+ listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
230
+ listeners(eventName?: string): Promise<Array<Listener>>;
231
+ removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
232
+ CONTRACT_NAME: TypedContractMethod<[], [string], "view">;
233
+ CONTRACT_VERSION: TypedContractMethod<[], [string], "view">;
234
+ _acceptAdmin: TypedContractMethod<[], [void], "nonpayable">;
235
+ _setPendingAdmin: TypedContractMethod<[
236
+ newPendingAdmin: AddressLike
237
+ ], [
238
+ void
239
+ ], "nonpayable">;
240
+ admin: TypedContractMethod<[], [string], "view">;
241
+ chargePermission: TypedContractMethod<[
242
+ owner: AddressLike,
243
+ spender: AddressLike,
244
+ token: AddressLike,
245
+ amount: BigNumberish
246
+ ], [
247
+ void
248
+ ], "nonpayable">;
249
+ dynamicRoleCallers: TypedContractMethod<[
250
+ arg0: AddressLike
251
+ ], [
252
+ string
253
+ ], "view">;
254
+ getContractName: TypedContractMethod<[], [string], "view">;
255
+ getContractVersion: TypedContractMethod<[], [string], "view">;
256
+ getRemainingAmount: TypedContractMethod<[
257
+ owner: AddressLike,
258
+ spender: AddressLike,
259
+ token: AddressLike
260
+ ], [
261
+ bigint
262
+ ], "view">;
263
+ grantPermission: TypedContractMethod<[
264
+ spender: AddressLike,
265
+ token: AddressLike,
266
+ amountLimit: BigNumberish,
267
+ duration: BigNumberish
268
+ ], [
269
+ void
270
+ ], "nonpayable">;
271
+ isPaused: TypedContractMethod<[], [boolean], "view">;
272
+ isPermissionValid: TypedContractMethod<[
273
+ owner: AddressLike,
274
+ spender: AddressLike,
275
+ token: AddressLike
276
+ ], [
277
+ boolean
278
+ ], "view">;
279
+ maxPermissionAmountPerToken: TypedContractMethod<[
280
+ arg0: AddressLike
281
+ ], [
282
+ bigint
283
+ ], "view">;
284
+ maxPermissionDuration: TypedContractMethod<[], [bigint], "view">;
285
+ pendingAdmin: TypedContractMethod<[], [string], "view">;
286
+ permanentlyRevoked: TypedContractMethod<[
287
+ arg0: AddressLike,
288
+ arg1: AddressLike
289
+ ], [
290
+ boolean
291
+ ], "view">;
292
+ permissions: TypedContractMethod<[
293
+ arg0: AddressLike,
294
+ arg1: AddressLike,
295
+ arg2: AddressLike
296
+ ], [
297
+ [
298
+ bigint,
299
+ bigint,
300
+ bigint,
301
+ boolean
302
+ ] & {
303
+ amountLimit: bigint;
304
+ amountUsed: bigint;
305
+ expiryTime: bigint;
306
+ isActive: boolean;
307
+ }
308
+ ], "view">;
309
+ registry: TypedContractMethod<[], [string], "view">;
310
+ requirePermission: TypedContractMethod<[
311
+ owner: AddressLike,
312
+ spender: AddressLike,
313
+ token: AddressLike
314
+ ], [
315
+ void
316
+ ], "view">;
317
+ revokeAllPermissions: TypedContractMethod<[
318
+ spender: AddressLike
319
+ ], [
320
+ void
321
+ ], "nonpayable">;
322
+ revokePermission: TypedContractMethod<[
323
+ spender: AddressLike,
324
+ token: AddressLike
325
+ ], [
326
+ void
327
+ ], "nonpayable">;
328
+ setDynamicRoleCaller: TypedContractMethod<[
329
+ caller: AddressLike,
330
+ roleName: string
331
+ ], [
332
+ void
333
+ ], "nonpayable">;
334
+ setDynamicRoleCallers: TypedContractMethod<[
335
+ callers: AddressLike[],
336
+ roleNames: string[]
337
+ ], [
338
+ void
339
+ ], "nonpayable">;
340
+ setMaxPermissionAmountForToken: TypedContractMethod<[
341
+ token: AddressLike,
342
+ _maxAmount: BigNumberish
343
+ ], [
344
+ void
345
+ ], "nonpayable">;
346
+ setMaxPermissionAmountsForTokens: TypedContractMethod<[
347
+ tokens: AddressLike[],
348
+ maxAmounts: BigNumberish[]
349
+ ], [
350
+ void
351
+ ], "nonpayable">;
352
+ setMaxPermissionDuration: TypedContractMethod<[
353
+ _maxDuration: BigNumberish
354
+ ], [
355
+ void
356
+ ], "nonpayable">;
357
+ togglePause: TypedContractMethod<[], [void], "nonpayable">;
358
+ getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
359
+ getFunction(nameOrSignature: "CONTRACT_NAME"): TypedContractMethod<[], [string], "view">;
360
+ getFunction(nameOrSignature: "CONTRACT_VERSION"): TypedContractMethod<[], [string], "view">;
361
+ getFunction(nameOrSignature: "_acceptAdmin"): TypedContractMethod<[], [void], "nonpayable">;
362
+ getFunction(nameOrSignature: "_setPendingAdmin"): TypedContractMethod<[newPendingAdmin: AddressLike], [void], "nonpayable">;
363
+ getFunction(nameOrSignature: "admin"): TypedContractMethod<[], [string], "view">;
364
+ getFunction(nameOrSignature: "chargePermission"): TypedContractMethod<[
365
+ owner: AddressLike,
366
+ spender: AddressLike,
367
+ token: AddressLike,
368
+ amount: BigNumberish
369
+ ], [
370
+ void
371
+ ], "nonpayable">;
372
+ getFunction(nameOrSignature: "dynamicRoleCallers"): TypedContractMethod<[arg0: AddressLike], [string], "view">;
373
+ getFunction(nameOrSignature: "getContractName"): TypedContractMethod<[], [string], "view">;
374
+ getFunction(nameOrSignature: "getContractVersion"): TypedContractMethod<[], [string], "view">;
375
+ getFunction(nameOrSignature: "getRemainingAmount"): TypedContractMethod<[
376
+ owner: AddressLike,
377
+ spender: AddressLike,
378
+ token: AddressLike
379
+ ], [
380
+ bigint
381
+ ], "view">;
382
+ getFunction(nameOrSignature: "grantPermission"): TypedContractMethod<[
383
+ spender: AddressLike,
384
+ token: AddressLike,
385
+ amountLimit: BigNumberish,
386
+ duration: BigNumberish
387
+ ], [
388
+ void
389
+ ], "nonpayable">;
390
+ getFunction(nameOrSignature: "isPaused"): TypedContractMethod<[], [boolean], "view">;
391
+ getFunction(nameOrSignature: "isPermissionValid"): TypedContractMethod<[
392
+ owner: AddressLike,
393
+ spender: AddressLike,
394
+ token: AddressLike
395
+ ], [
396
+ boolean
397
+ ], "view">;
398
+ getFunction(nameOrSignature: "maxPermissionAmountPerToken"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
399
+ getFunction(nameOrSignature: "maxPermissionDuration"): TypedContractMethod<[], [bigint], "view">;
400
+ getFunction(nameOrSignature: "pendingAdmin"): TypedContractMethod<[], [string], "view">;
401
+ getFunction(nameOrSignature: "permanentlyRevoked"): TypedContractMethod<[
402
+ arg0: AddressLike,
403
+ arg1: AddressLike
404
+ ], [
405
+ boolean
406
+ ], "view">;
407
+ getFunction(nameOrSignature: "permissions"): TypedContractMethod<[
408
+ arg0: AddressLike,
409
+ arg1: AddressLike,
410
+ arg2: AddressLike
411
+ ], [
412
+ [
413
+ bigint,
414
+ bigint,
415
+ bigint,
416
+ boolean
417
+ ] & {
418
+ amountLimit: bigint;
419
+ amountUsed: bigint;
420
+ expiryTime: bigint;
421
+ isActive: boolean;
422
+ }
423
+ ], "view">;
424
+ getFunction(nameOrSignature: "registry"): TypedContractMethod<[], [string], "view">;
425
+ getFunction(nameOrSignature: "requirePermission"): TypedContractMethod<[
426
+ owner: AddressLike,
427
+ spender: AddressLike,
428
+ token: AddressLike
429
+ ], [
430
+ void
431
+ ], "view">;
432
+ getFunction(nameOrSignature: "revokeAllPermissions"): TypedContractMethod<[spender: AddressLike], [void], "nonpayable">;
433
+ getFunction(nameOrSignature: "revokePermission"): TypedContractMethod<[
434
+ spender: AddressLike,
435
+ token: AddressLike
436
+ ], [
437
+ void
438
+ ], "nonpayable">;
439
+ getFunction(nameOrSignature: "setDynamicRoleCaller"): TypedContractMethod<[
440
+ caller: AddressLike,
441
+ roleName: string
442
+ ], [
443
+ void
444
+ ], "nonpayable">;
445
+ getFunction(nameOrSignature: "setDynamicRoleCallers"): TypedContractMethod<[
446
+ callers: AddressLike[],
447
+ roleNames: string[]
448
+ ], [
449
+ void
450
+ ], "nonpayable">;
451
+ getFunction(nameOrSignature: "setMaxPermissionAmountForToken"): TypedContractMethod<[
452
+ token: AddressLike,
453
+ _maxAmount: BigNumberish
454
+ ], [
455
+ void
456
+ ], "nonpayable">;
457
+ getFunction(nameOrSignature: "setMaxPermissionAmountsForTokens"): TypedContractMethod<[
458
+ tokens: AddressLike[],
459
+ maxAmounts: BigNumberish[]
460
+ ], [
461
+ void
462
+ ], "nonpayable">;
463
+ getFunction(nameOrSignature: "setMaxPermissionDuration"): TypedContractMethod<[_maxDuration: BigNumberish], [void], "nonpayable">;
464
+ getFunction(nameOrSignature: "togglePause"): TypedContractMethod<[], [void], "nonpayable">;
465
+ getEvent(key: "AllPermissionsPermanentlyRevoked"): TypedContractEvent<AllPermissionsPermanentlyRevokedEvent.InputTuple, AllPermissionsPermanentlyRevokedEvent.OutputTuple, AllPermissionsPermanentlyRevokedEvent.OutputObject>;
466
+ getEvent(key: "DynamicRoleCallerUpdated"): TypedContractEvent<DynamicRoleCallerUpdatedEvent.InputTuple, DynamicRoleCallerUpdatedEvent.OutputTuple, DynamicRoleCallerUpdatedEvent.OutputObject>;
467
+ getEvent(key: "MaxPermissionAmountUpdatedForToken"): TypedContractEvent<MaxPermissionAmountUpdatedForTokenEvent.InputTuple, MaxPermissionAmountUpdatedForTokenEvent.OutputTuple, MaxPermissionAmountUpdatedForTokenEvent.OutputObject>;
468
+ getEvent(key: "MaxPermissionDurationUpdated"): TypedContractEvent<MaxPermissionDurationUpdatedEvent.InputTuple, MaxPermissionDurationUpdatedEvent.OutputTuple, MaxPermissionDurationUpdatedEvent.OutputObject>;
469
+ getEvent(key: "NewAdmin"): TypedContractEvent<NewAdminEvent.InputTuple, NewAdminEvent.OutputTuple, NewAdminEvent.OutputObject>;
470
+ getEvent(key: "NewPendingAdmin"): TypedContractEvent<NewPendingAdminEvent.InputTuple, NewPendingAdminEvent.OutputTuple, NewPendingAdminEvent.OutputObject>;
471
+ getEvent(key: "PausedToggled"): TypedContractEvent<PausedToggledEvent.InputTuple, PausedToggledEvent.OutputTuple, PausedToggledEvent.OutputObject>;
472
+ getEvent(key: "PermissionCharged"): TypedContractEvent<PermissionChargedEvent.InputTuple, PermissionChargedEvent.OutputTuple, PermissionChargedEvent.OutputObject>;
473
+ getEvent(key: "PermissionGranted"): TypedContractEvent<PermissionGrantedEvent.InputTuple, PermissionGrantedEvent.OutputTuple, PermissionGrantedEvent.OutputObject>;
474
+ getEvent(key: "PermissionRevoked"): TypedContractEvent<PermissionRevokedEvent.InputTuple, PermissionRevokedEvent.OutputTuple, PermissionRevokedEvent.OutputObject>;
475
+ filters: {
476
+ "AllPermissionsPermanentlyRevoked(address,address)": TypedContractEvent<AllPermissionsPermanentlyRevokedEvent.InputTuple, AllPermissionsPermanentlyRevokedEvent.OutputTuple, AllPermissionsPermanentlyRevokedEvent.OutputObject>;
477
+ AllPermissionsPermanentlyRevoked: TypedContractEvent<AllPermissionsPermanentlyRevokedEvent.InputTuple, AllPermissionsPermanentlyRevokedEvent.OutputTuple, AllPermissionsPermanentlyRevokedEvent.OutputObject>;
478
+ "DynamicRoleCallerUpdated(address,string)": TypedContractEvent<DynamicRoleCallerUpdatedEvent.InputTuple, DynamicRoleCallerUpdatedEvent.OutputTuple, DynamicRoleCallerUpdatedEvent.OutputObject>;
479
+ DynamicRoleCallerUpdated: TypedContractEvent<DynamicRoleCallerUpdatedEvent.InputTuple, DynamicRoleCallerUpdatedEvent.OutputTuple, DynamicRoleCallerUpdatedEvent.OutputObject>;
480
+ "MaxPermissionAmountUpdatedForToken(address,uint256)": TypedContractEvent<MaxPermissionAmountUpdatedForTokenEvent.InputTuple, MaxPermissionAmountUpdatedForTokenEvent.OutputTuple, MaxPermissionAmountUpdatedForTokenEvent.OutputObject>;
481
+ MaxPermissionAmountUpdatedForToken: TypedContractEvent<MaxPermissionAmountUpdatedForTokenEvent.InputTuple, MaxPermissionAmountUpdatedForTokenEvent.OutputTuple, MaxPermissionAmountUpdatedForTokenEvent.OutputObject>;
482
+ "MaxPermissionDurationUpdated(uint256)": TypedContractEvent<MaxPermissionDurationUpdatedEvent.InputTuple, MaxPermissionDurationUpdatedEvent.OutputTuple, MaxPermissionDurationUpdatedEvent.OutputObject>;
483
+ MaxPermissionDurationUpdated: TypedContractEvent<MaxPermissionDurationUpdatedEvent.InputTuple, MaxPermissionDurationUpdatedEvent.OutputTuple, MaxPermissionDurationUpdatedEvent.OutputObject>;
484
+ "NewAdmin(address,address)": TypedContractEvent<NewAdminEvent.InputTuple, NewAdminEvent.OutputTuple, NewAdminEvent.OutputObject>;
485
+ NewAdmin: TypedContractEvent<NewAdminEvent.InputTuple, NewAdminEvent.OutputTuple, NewAdminEvent.OutputObject>;
486
+ "NewPendingAdmin(address,address)": TypedContractEvent<NewPendingAdminEvent.InputTuple, NewPendingAdminEvent.OutputTuple, NewPendingAdminEvent.OutputObject>;
487
+ NewPendingAdmin: TypedContractEvent<NewPendingAdminEvent.InputTuple, NewPendingAdminEvent.OutputTuple, NewPendingAdminEvent.OutputObject>;
488
+ "PausedToggled(bool)": TypedContractEvent<PausedToggledEvent.InputTuple, PausedToggledEvent.OutputTuple, PausedToggledEvent.OutputObject>;
489
+ PausedToggled: TypedContractEvent<PausedToggledEvent.InputTuple, PausedToggledEvent.OutputTuple, PausedToggledEvent.OutputObject>;
490
+ "PermissionCharged(address,address,address,uint256,uint256)": TypedContractEvent<PermissionChargedEvent.InputTuple, PermissionChargedEvent.OutputTuple, PermissionChargedEvent.OutputObject>;
491
+ PermissionCharged: TypedContractEvent<PermissionChargedEvent.InputTuple, PermissionChargedEvent.OutputTuple, PermissionChargedEvent.OutputObject>;
492
+ "PermissionGranted(address,address,address,uint256,uint256)": TypedContractEvent<PermissionGrantedEvent.InputTuple, PermissionGrantedEvent.OutputTuple, PermissionGrantedEvent.OutputObject>;
493
+ PermissionGranted: TypedContractEvent<PermissionGrantedEvent.InputTuple, PermissionGrantedEvent.OutputTuple, PermissionGrantedEvent.OutputObject>;
494
+ "PermissionRevoked(address,address,address)": TypedContractEvent<PermissionRevokedEvent.InputTuple, PermissionRevokedEvent.OutputTuple, PermissionRevokedEvent.OutputObject>;
495
+ PermissionRevoked: TypedContractEvent<PermissionRevokedEvent.InputTuple, PermissionRevokedEvent.OutputTuple, PermissionRevokedEvent.OutputObject>;
496
+ };
497
+ }
498
+ //# sourceMappingURL=OnBehalfTradingV1.d.ts.map