@ercworldio/blockchain-shared 1.0.3-dev.3 → 1.0.3-dev.4

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 (101) hide show
  1. package/build/chains/networks_prod-dz.json +7 -7
  2. package/build/chains/networks_prod-sh.json +41 -5
  3. package/build/chains/networks_prod-yb.json +42 -6
  4. package/build/chains/networks_stg-yb.json +1 -1
  5. package/build/contracts/artifacts/Escrow.json +1831 -342
  6. package/build/contracts/typechain-types/@openzeppelin/contracts/interfaces/index.d.ts +0 -1
  7. package/build/contracts/typechain-types/@openzeppelin/contracts/interfaces/index.d.ts.map +1 -1
  8. package/build/contracts/typechain-types/@openzeppelin/contracts/utils/index.d.ts +0 -6
  9. package/build/contracts/typechain-types/@openzeppelin/contracts/utils/index.d.ts.map +1 -1
  10. package/build/contracts/typechain-types/contracts/escrow/Escrow.d.ts +761 -76
  11. package/build/contracts/typechain-types/contracts/escrow/Escrow.d.ts.map +1 -1
  12. package/build/contracts/typechain-types/contracts/escrow/EscrowAccessControl.d.ts +65 -17
  13. package/build/contracts/typechain-types/contracts/escrow/EscrowAccessControl.d.ts.map +1 -1
  14. package/build/contracts/typechain-types/contracts/index.d.ts +2 -0
  15. package/build/contracts/typechain-types/contracts/index.d.ts.map +1 -1
  16. package/build/contracts/typechain-types/contracts/lib/Events.d.ts +386 -0
  17. package/build/contracts/typechain-types/contracts/lib/Events.d.ts.map +1 -0
  18. package/build/contracts/typechain-types/contracts/lib/Events.js +2 -0
  19. package/build/contracts/typechain-types/contracts/lib/MultisigLib.d.ts +21 -0
  20. package/build/contracts/typechain-types/contracts/lib/MultisigLib.d.ts.map +1 -0
  21. package/build/contracts/typechain-types/contracts/lib/MultisigLib.js +2 -0
  22. package/build/contracts/typechain-types/contracts/lib/index.d.ts +3 -0
  23. package/build/contracts/typechain-types/contracts/lib/index.d.ts.map +1 -0
  24. package/build/contracts/typechain-types/contracts/lib/index.js +2 -0
  25. package/build/contracts/typechain-types/factories/@openzeppelin/contracts/interfaces/index.d.ts +0 -1
  26. package/build/contracts/typechain-types/factories/@openzeppelin/contracts/interfaces/index.d.ts.map +1 -1
  27. package/build/contracts/typechain-types/factories/@openzeppelin/contracts/interfaces/index.js +1 -3
  28. package/build/contracts/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/SafeERC20__factory.d.ts +1 -1
  29. package/build/contracts/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/SafeERC20__factory.d.ts.map +1 -1
  30. package/build/contracts/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/SafeERC20__factory.js +1 -1
  31. package/build/contracts/typechain-types/factories/@openzeppelin/contracts/utils/index.d.ts +0 -4
  32. package/build/contracts/typechain-types/factories/@openzeppelin/contracts/utils/index.d.ts.map +1 -1
  33. package/build/contracts/typechain-types/factories/@openzeppelin/contracts/utils/index.js +1 -7
  34. package/build/contracts/typechain-types/factories/contracts/escrow/EscrowAccessControl__factory.d.ts +286 -12
  35. package/build/contracts/typechain-types/factories/contracts/escrow/EscrowAccessControl__factory.d.ts.map +1 -1
  36. package/build/contracts/typechain-types/factories/contracts/escrow/EscrowAccessControl__factory.js +374 -12
  37. package/build/contracts/typechain-types/factories/contracts/escrow/EscrowErrors__factory.d.ts +137 -1
  38. package/build/contracts/typechain-types/factories/contracts/escrow/EscrowErrors__factory.d.ts.map +1 -1
  39. package/build/contracts/typechain-types/factories/contracts/escrow/EscrowErrors__factory.js +182 -1
  40. package/build/contracts/typechain-types/factories/contracts/escrow/EscrowSignature__factory.d.ts +1 -1
  41. package/build/contracts/typechain-types/factories/contracts/escrow/EscrowSignature__factory.d.ts.map +1 -1
  42. package/build/contracts/typechain-types/factories/contracts/escrow/EscrowSignature__factory.js +1 -1
  43. package/build/contracts/typechain-types/factories/contracts/escrow/Escrow__factory.d.ts +1247 -98
  44. package/build/contracts/typechain-types/factories/contracts/escrow/Escrow__factory.d.ts.map +1 -1
  45. package/build/contracts/typechain-types/factories/contracts/escrow/Escrow__factory.js +1736 -247
  46. package/build/contracts/typechain-types/factories/contracts/escrow/TokensWhitelist__factory.d.ts +1 -1
  47. package/build/contracts/typechain-types/factories/contracts/escrow/TokensWhitelist__factory.d.ts.map +1 -1
  48. package/build/contracts/typechain-types/factories/contracts/escrow/TokensWhitelist__factory.js +1 -1
  49. package/build/contracts/typechain-types/factories/contracts/index.d.ts +1 -0
  50. package/build/contracts/typechain-types/factories/contracts/index.d.ts.map +1 -1
  51. package/build/contracts/typechain-types/factories/contracts/index.js +2 -1
  52. package/build/contracts/typechain-types/factories/contracts/lib/Events__factory.d.ts +373 -0
  53. package/build/contracts/typechain-types/factories/contracts/lib/Events__factory.d.ts.map +1 -0
  54. package/build/contracts/typechain-types/factories/contracts/lib/Events__factory.js +473 -0
  55. package/build/contracts/typechain-types/factories/contracts/lib/MultisigLib__factory.d.ts +55 -0
  56. package/build/contracts/typechain-types/factories/contracts/lib/MultisigLib__factory.d.ts.map +1 -0
  57. package/build/contracts/typechain-types/factories/contracts/lib/MultisigLib__factory.js +82 -0
  58. package/build/contracts/typechain-types/factories/contracts/lib/index.d.ts +3 -0
  59. package/build/contracts/typechain-types/factories/contracts/lib/index.d.ts.map +1 -0
  60. package/build/contracts/typechain-types/factories/contracts/lib/index.js +10 -0
  61. package/build/contracts/typechain-types/factories/contracts/mock/erc20/ERC20Mock__factory.d.ts +1 -1
  62. package/build/contracts/typechain-types/factories/contracts/mock/erc20/ERC20Mock__factory.d.ts.map +1 -1
  63. package/build/contracts/typechain-types/factories/contracts/mock/erc20/ERC20Mock__factory.js +1 -1
  64. package/build/contracts/typechain-types/index.d.ts +4 -10
  65. package/build/contracts/typechain-types/index.d.ts.map +1 -1
  66. package/build/contracts/typechain-types/index.js +5 -11
  67. package/build/entities/AdminOperationThresholds.d.ts +12 -0
  68. package/build/entities/AdminOperationThresholds.d.ts.map +1 -0
  69. package/build/entities/AdminOperationThresholds.js +56 -0
  70. package/build/entities/EscrowRoles.d.ts +12 -0
  71. package/build/entities/EscrowRoles.d.ts.map +1 -0
  72. package/build/entities/EscrowRoles.js +57 -0
  73. package/build/entities/GlobalTimelock.d.ts +14 -0
  74. package/build/entities/GlobalTimelock.d.ts.map +1 -0
  75. package/build/entities/GlobalTimelock.js +64 -0
  76. package/build/entities/GranularTimelock .d.ts +12 -0
  77. package/build/entities/GranularTimelock .d.ts.map +1 -0
  78. package/build/entities/GranularTimelock .js +56 -0
  79. package/build/entities/OperationType.d.ts +18 -0
  80. package/build/entities/OperationType.d.ts.map +1 -0
  81. package/build/entities/OperationType.js +50 -0
  82. package/build/entities/RoleHash.d.ts +11 -0
  83. package/build/entities/RoleHash.d.ts.map +1 -0
  84. package/build/entities/RoleHash.js +52 -0
  85. package/build/entities/Signatures.d.ts +16 -0
  86. package/build/entities/Signatures.d.ts.map +1 -0
  87. package/build/entities/Signatures.js +72 -0
  88. package/build/entities/TokenExecutionThresholds.d.ts +16 -0
  89. package/build/entities/TokenExecutionThresholds.d.ts.map +1 -0
  90. package/build/entities/TokenExecutionThresholds.js +72 -0
  91. package/build/index.d.ts +1 -0
  92. package/build/index.d.ts.map +1 -1
  93. package/build/index.js +4 -2
  94. package/build/services/ChainManager.d.ts.map +1 -1
  95. package/build/services/SweepJobService.d.ts +3 -3
  96. package/build/services/SweepJobService.d.ts.map +1 -1
  97. package/build/services/SweepJobService.js +12 -7
  98. package/build/services/db/roles/ContractRoles.d.ts +54 -0
  99. package/build/services/db/roles/ContractRoles.d.ts.map +1 -0
  100. package/build/services/db/roles/ContractRoles.js +81 -0
  101. package/package.json +1 -1
@@ -1,6 +1,39 @@
1
1
  import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
2
2
  import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../common";
3
3
  export declare namespace Types {
4
+ type MultisigConfigInputStruct = {
5
+ tokenAddress: AddressLike;
6
+ thresholdAmount: BigNumberish;
7
+ sigsExecutiveBelow: BigNumberish;
8
+ sigsExecutiveAbove: BigNumberish;
9
+ sigsBelow: BigNumberish;
10
+ sigsAbove: BigNumberish;
11
+ };
12
+ type MultisigConfigInputStructOutput = [
13
+ tokenAddress: string,
14
+ thresholdAmount: bigint,
15
+ sigsExecutiveBelow: bigint,
16
+ sigsExecutiveAbove: bigint,
17
+ sigsBelow: bigint,
18
+ sigsAbove: bigint
19
+ ] & {
20
+ tokenAddress: string;
21
+ thresholdAmount: bigint;
22
+ sigsExecutiveBelow: bigint;
23
+ sigsExecutiveAbove: bigint;
24
+ sigsBelow: bigint;
25
+ sigsAbove: bigint;
26
+ };
27
+ type SignatureStruct = {
28
+ v: BigNumberish;
29
+ r: BytesLike;
30
+ s: BytesLike;
31
+ };
32
+ type SignatureStructOutput = [v: bigint, r: string, s: string] & {
33
+ v: bigint;
34
+ r: string;
35
+ s: string;
36
+ };
4
37
  type SweepJobStruct = {
5
38
  wallet: AddressLike;
6
39
  token: AddressLike;
@@ -9,6 +42,26 @@ export declare namespace Types {
9
42
  wallet: string;
10
43
  token: string;
11
44
  };
45
+ type BatchWithdrawWithTimelockStruct = {
46
+ amount: BigNumberish;
47
+ requestId: BigNumberish;
48
+ tokenAddress: AddressLike;
49
+ receiverAddress: AddressLike;
50
+ signatures: Types.SignatureStruct[];
51
+ };
52
+ type BatchWithdrawWithTimelockStructOutput = [
53
+ amount: bigint,
54
+ requestId: bigint,
55
+ tokenAddress: string,
56
+ receiverAddress: string,
57
+ signatures: Types.SignatureStructOutput[]
58
+ ] & {
59
+ amount: bigint;
60
+ requestId: bigint;
61
+ tokenAddress: string;
62
+ receiverAddress: string;
63
+ signatures: Types.SignatureStructOutput[];
64
+ };
12
65
  type BatchWithdrawStruct = {
13
66
  amount: BigNumberish;
14
67
  requestId: BigNumberish;
@@ -26,15 +79,19 @@ export declare namespace Types {
26
79
  tokenAddress: string;
27
80
  receiverAddress: string;
28
81
  };
29
- type SignatureStruct = {
30
- v: BigNumberish;
31
- r: BytesLike;
32
- s: BytesLike;
82
+ type AdminMultisigConfigStruct = {
83
+ sigsManagerRequired: BigNumberish;
84
+ sigsExecutiveRequired: BigNumberish;
85
+ configured: boolean;
33
86
  };
34
- type SignatureStructOutput = [v: bigint, r: string, s: string] & {
35
- v: bigint;
36
- r: string;
37
- s: string;
87
+ type AdminMultisigConfigStructOutput = [
88
+ sigsManagerRequired: bigint,
89
+ sigsExecutiveRequired: bigint,
90
+ configured: boolean
91
+ ] & {
92
+ sigsManagerRequired: bigint;
93
+ sigsExecutiveRequired: bigint;
94
+ configured: boolean;
38
95
  };
39
96
  type CoverageInfoStruct = {
40
97
  level: BigNumberish;
@@ -53,36 +110,174 @@ export declare namespace Types {
53
110
  currentReserves: bigint;
54
111
  token: string;
55
112
  };
56
- type TransactionStatusStruct = {
57
- totalCount: BigNumberish;
58
- lastBlockNumber: BigNumberish;
113
+ type MultisigConfigStruct = {
114
+ thresholdAmount: BigNumberish;
115
+ sigsExecutiveBelow: BigNumberish;
116
+ sigsExecutiveAbove: BigNumberish;
117
+ sigsBelow: BigNumberish;
118
+ sigsAbove: BigNumberish;
119
+ configured: boolean;
120
+ };
121
+ type MultisigConfigStructOutput = [
122
+ thresholdAmount: bigint,
123
+ sigsExecutiveBelow: bigint,
124
+ sigsExecutiveAbove: bigint,
125
+ sigsBelow: bigint,
126
+ sigsAbove: bigint,
127
+ configured: boolean
128
+ ] & {
129
+ thresholdAmount: bigint;
130
+ sigsExecutiveBelow: bigint;
131
+ sigsExecutiveAbove: bigint;
132
+ sigsBelow: bigint;
133
+ sigsAbove: bigint;
134
+ configured: boolean;
135
+ };
136
+ type AdminMultisigConfigSetupStruct = {
137
+ opType: BigNumberish;
138
+ sigsManagerRequired: BigNumberish;
139
+ sigsExecutiveRequired: BigNumberish;
140
+ configured: boolean;
141
+ };
142
+ type AdminMultisigConfigSetupStructOutput = [
143
+ opType: bigint,
144
+ sigsManagerRequired: bigint,
145
+ sigsExecutiveRequired: bigint,
146
+ configured: boolean
147
+ ] & {
148
+ opType: bigint;
149
+ sigsManagerRequired: bigint;
150
+ sigsExecutiveRequired: bigint;
151
+ configured: boolean;
152
+ };
153
+ type SetAdminMultisigConfigSignDataStruct = {
154
+ operationType: BigNumberish;
155
+ sigsManagerRequired: BigNumberish;
156
+ sigsExecutiveRequired: BigNumberish;
157
+ nonce: BigNumberish;
158
+ };
159
+ type SetAdminMultisigConfigSignDataStructOutput = [
160
+ operationType: bigint,
161
+ sigsManagerRequired: bigint,
162
+ sigsExecutiveRequired: bigint,
163
+ nonce: bigint
164
+ ] & {
165
+ operationType: bigint;
166
+ sigsManagerRequired: bigint;
167
+ sigsExecutiveRequired: bigint;
168
+ nonce: bigint;
169
+ };
170
+ type SetTimelockConfigSignDataStruct = {
171
+ operationType: BigNumberish;
172
+ tokenAddress: AddressLike;
173
+ thresholdAmount: BigNumberish;
174
+ durationBelow: BigNumberish;
175
+ durationAbove: BigNumberish;
176
+ nonce: BigNumberish;
177
+ };
178
+ type SetTimelockConfigSignDataStructOutput = [
179
+ operationType: bigint,
180
+ tokenAddress: string,
181
+ thresholdAmount: bigint,
182
+ durationBelow: bigint,
183
+ durationAbove: bigint,
184
+ nonce: bigint
185
+ ] & {
186
+ operationType: bigint;
187
+ tokenAddress: string;
188
+ thresholdAmount: bigint;
189
+ durationBelow: bigint;
190
+ durationAbove: bigint;
191
+ nonce: bigint;
192
+ };
193
+ type SetReceiverTimelockConfigSignDataStruct = {
194
+ operationType: BigNumberish;
195
+ receiverAddress: AddressLike;
196
+ duration: BigNumberish;
197
+ nonce: BigNumberish;
198
+ };
199
+ type SetReceiverTimelockConfigSignDataStructOutput = [
200
+ operationType: bigint,
201
+ receiverAddress: string,
202
+ duration: bigint,
203
+ nonce: bigint
204
+ ] & {
205
+ operationType: bigint;
206
+ receiverAddress: string;
207
+ duration: bigint;
208
+ nonce: bigint;
209
+ };
210
+ type SetMultisigConfigSignDataStruct = {
211
+ operationType: BigNumberish;
212
+ tokenAddress: AddressLike;
213
+ thresholdAmount: BigNumberish;
214
+ sigsExecutiveBelow: BigNumberish;
215
+ sigsExecutiveAbove: BigNumberish;
216
+ sigsBelow: BigNumberish;
217
+ sigsAbove: BigNumberish;
218
+ nonce: BigNumberish;
59
219
  };
60
- type TransactionStatusStructOutput = [
61
- totalCount: bigint,
62
- lastBlockNumber: bigint
220
+ type SetMultisigConfigSignDataStructOutput = [
221
+ operationType: bigint,
222
+ tokenAddress: string,
223
+ thresholdAmount: bigint,
224
+ sigsExecutiveBelow: bigint,
225
+ sigsExecutiveAbove: bigint,
226
+ sigsBelow: bigint,
227
+ sigsAbove: bigint,
228
+ nonce: bigint
63
229
  ] & {
64
- totalCount: bigint;
65
- lastBlockNumber: bigint;
230
+ operationType: bigint;
231
+ tokenAddress: string;
232
+ thresholdAmount: bigint;
233
+ sigsExecutiveBelow: bigint;
234
+ sigsExecutiveAbove: bigint;
235
+ sigsBelow: bigint;
236
+ sigsAbove: bigint;
237
+ nonce: bigint;
66
238
  };
67
239
  }
68
240
  export interface EscrowInterface extends Interface {
69
- getFunction(nameOrSignature: "DEFAULT_ADMIN_ROLE" | "DOMAIN_SEPARATOR" | "FUNDS_MANAGER_ROLE" | "OPERATOR_ROLE" | "__AccessControl_init" | "__Signature_init" | "__TokensWhitelist_init" | "addTokens" | "adminWithdraw" | "batchSweepERC20" | "batch_withdraw" | "changeAdmin" | "deposit" | "depositErc20" | "fundWallets" | "getBalance()" | "getBalance(address)" | "getDepositSigner" | "getLastBlockNumber" | "getNonce" | "getRequestStatus" | "getReservesCoverage" | "getRoleAdmin" | "getTotalTransactions" | "getTransactionStatus" | "getWithdrawalSigner" | "get_used_ids" | "grantRole" | "hasRole" | "initialize" | "isFundsManager" | "isPaused" | "isWhitelisted" | "nonces" | "pause" | "removeTokens" | "renounceRole" | "reset_request_ids" | "revokeRole" | "setOperator" | "setTransactionStatus" | "supportsInterface" | "sweepFunds" | "unpause" | "whitelist" | "withdraw"): FunctionFragment;
70
- getEvent(nameOrSignatureOrTopic: "AdminWithdraw" | "Deposit" | "FundWallets" | "FundedContract" | "Initialized" | "LowReserves" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked" | "SweepTokens" | "TokenAdded" | "TokenRemoved" | "TransactionCount" | "Withdrawal"): EventFragment;
241
+ getFunction(nameOrSignature: "ADMIN_TREASURY_EXECUTIVE_ROLE" | "ADMIN_TREASURY_MANAGER_ROLE" | "CONFIG_EXECUTIVE_ROLE" | "CONFIG_MANAGER_ROLE" | "DEFAULT_ADMIN_ROLE" | "DOMAIN_SEPARATOR" | "FUNDS_MANAGER_ROLE" | "OPERATOR_ROLE" | "TIMELOCK_CONFIG_EXECUTIVE_ROLE" | "TIMELOCK_CONFIG_MANAGER_ROLE" | "TIMELOCK_DELAY" | "TREASURY_DISPATCH_ROLE" | "TREASURY_EXECUTIVE_ROLE" | "TREASURY_MANAGER_ROLE" | "TREASURY_RECEIVER_ROLE" | "__AccessControl_init" | "__Signature_init" | "__TokensWhitelist_init" | "addTokens" | "adminTokenThresholdSettings" | "adminWithdraw" | "batchSweepERC20" | "batchWithdrawWithTimelock" | "batch_withdraw" | "cancelWithdrawal" | "configNonce" | "configThresholdSettings" | "deposit" | "depositErc20" | "executeWithdrawal" | "fundWallets" | "getAdminMultisigConfig" | "getBalance()" | "getBalance(address)" | "getDepositSigner" | "getGroupConfig" | "getNonce" | "getRequestStatus" | "getReservesCoverage" | "getRoleAdmin" | "getTokenMultisigConfig" | "getWithdrawalSigner" | "get_admin_used_ids" | "get_used_ids" | "grantRole" | "hasRole" | "initialize" | "isFundsManager" | "isPaused" | "isWhitelisted" | "nonces" | "pause" | "receiverTimelockConfig" | "removeTokens" | "renounceRole" | "reset_admin_request_ids" | "reset_request_ids" | "revokeRole" | "setAdminTokenMultisigThreshold" | "setGroupConfig" | "setTimelock" | "setTimelockGranular" | "setTokenMultisigThreshold" | "signerBitmap" | "supportsInterface" | "sweepFunds" | "timelockCommitments" | "timelockConfig" | "timelockConfigNonce" | "timelockThresholdSettings" | "tokenThresholdSettings" | "unpackAdminThresholds" | "unpackTokenThresholds" | "unpause" | "whitelist" | "withdraw" | "withdrawWithTimelock"): FunctionFragment;
242
+ getEvent(nameOrSignatureOrTopic: "AdminWithdraw" | "ConfigureAdminMultisig" | "ConfigureTokenMultisig" | "Deposit" | "FundWallets" | "FundedContract" | "Initialized" | "LowReserves" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked" | "SetTimelockGranular" | "SetTokenTimelock" | "SweepTokens" | "TokenAdded" | "TokenRemoved" | "Withdrawal" | "WithdrawalCancelled" | "WithdrawalExecuted" | "WithdrawalScheduled"): EventFragment;
243
+ encodeFunctionData(functionFragment: "ADMIN_TREASURY_EXECUTIVE_ROLE", values?: undefined): string;
244
+ encodeFunctionData(functionFragment: "ADMIN_TREASURY_MANAGER_ROLE", values?: undefined): string;
245
+ encodeFunctionData(functionFragment: "CONFIG_EXECUTIVE_ROLE", values?: undefined): string;
246
+ encodeFunctionData(functionFragment: "CONFIG_MANAGER_ROLE", values?: undefined): string;
71
247
  encodeFunctionData(functionFragment: "DEFAULT_ADMIN_ROLE", values?: undefined): string;
72
248
  encodeFunctionData(functionFragment: "DOMAIN_SEPARATOR", values?: undefined): string;
73
249
  encodeFunctionData(functionFragment: "FUNDS_MANAGER_ROLE", values?: undefined): string;
74
250
  encodeFunctionData(functionFragment: "OPERATOR_ROLE", values?: undefined): string;
251
+ encodeFunctionData(functionFragment: "TIMELOCK_CONFIG_EXECUTIVE_ROLE", values?: undefined): string;
252
+ encodeFunctionData(functionFragment: "TIMELOCK_CONFIG_MANAGER_ROLE", values?: undefined): string;
253
+ encodeFunctionData(functionFragment: "TIMELOCK_DELAY", values?: undefined): string;
254
+ encodeFunctionData(functionFragment: "TREASURY_DISPATCH_ROLE", values?: undefined): string;
255
+ encodeFunctionData(functionFragment: "TREASURY_EXECUTIVE_ROLE", values?: undefined): string;
256
+ encodeFunctionData(functionFragment: "TREASURY_MANAGER_ROLE", values?: undefined): string;
257
+ encodeFunctionData(functionFragment: "TREASURY_RECEIVER_ROLE", values?: undefined): string;
75
258
  encodeFunctionData(functionFragment: "__AccessControl_init", values: [AddressLike, AddressLike, AddressLike]): string;
76
259
  encodeFunctionData(functionFragment: "__Signature_init", values: [string, string]): string;
77
260
  encodeFunctionData(functionFragment: "__TokensWhitelist_init", values: [AddressLike[]]): string;
78
- encodeFunctionData(functionFragment: "addTokens", values: [AddressLike[]]): string;
79
- encodeFunctionData(functionFragment: "adminWithdraw", values: [BigNumberish, AddressLike, AddressLike]): string;
261
+ encodeFunctionData(functionFragment: "addTokens", values: [Types.MultisigConfigInputStruct[]]): string;
262
+ encodeFunctionData(functionFragment: "adminTokenThresholdSettings", values?: undefined): string;
263
+ encodeFunctionData(functionFragment: "adminWithdraw", values: [
264
+ BigNumberish,
265
+ BigNumberish,
266
+ AddressLike,
267
+ AddressLike,
268
+ Types.SignatureStruct[]
269
+ ]): string;
80
270
  encodeFunctionData(functionFragment: "batchSweepERC20", values: [Types.SweepJobStruct[], AddressLike]): string;
271
+ encodeFunctionData(functionFragment: "batchWithdrawWithTimelock", values: [Types.BatchWithdrawWithTimelockStruct[]]): string;
81
272
  encodeFunctionData(functionFragment: "batch_withdraw", values: [Types.BatchWithdrawStruct[]]): string;
82
- encodeFunctionData(functionFragment: "changeAdmin", values: [AddressLike]): string;
273
+ encodeFunctionData(functionFragment: "cancelWithdrawal", values: [BigNumberish, BigNumberish, AddressLike, AddressLike, BigNumberish]): string;
274
+ encodeFunctionData(functionFragment: "configNonce", values?: undefined): string;
275
+ encodeFunctionData(functionFragment: "configThresholdSettings", values?: undefined): string;
83
276
  encodeFunctionData(functionFragment: "deposit", values: [string, Types.SignatureStruct]): string;
84
277
  encodeFunctionData(functionFragment: "depositErc20", values: [BigNumberish, AddressLike, string, Types.SignatureStruct]): string;
278
+ encodeFunctionData(functionFragment: "executeWithdrawal", values: [BigNumberish, BigNumberish, AddressLike, AddressLike, BigNumberish]): string;
85
279
  encodeFunctionData(functionFragment: "fundWallets", values: [AddressLike[], BigNumberish]): string;
280
+ encodeFunctionData(functionFragment: "getAdminMultisigConfig", values?: undefined): string;
86
281
  encodeFunctionData(functionFragment: "getBalance()", values?: undefined): string;
87
282
  encodeFunctionData(functionFragment: "getBalance(address)", values: [AddressLike]): string;
88
283
  encodeFunctionData(functionFragment: "getDepositSigner", values: [
@@ -92,13 +287,12 @@ export interface EscrowInterface extends Interface {
92
287
  BigNumberish,
93
288
  Types.SignatureStruct
94
289
  ]): string;
95
- encodeFunctionData(functionFragment: "getLastBlockNumber", values?: undefined): string;
290
+ encodeFunctionData(functionFragment: "getGroupConfig", values: [BigNumberish]): string;
96
291
  encodeFunctionData(functionFragment: "getNonce", values: [AddressLike, BigNumberish]): string;
97
292
  encodeFunctionData(functionFragment: "getRequestStatus", values: [BigNumberish]): string;
98
293
  encodeFunctionData(functionFragment: "getReservesCoverage", values: [BigNumberish, AddressLike]): string;
99
294
  encodeFunctionData(functionFragment: "getRoleAdmin", values: [BytesLike]): string;
100
- encodeFunctionData(functionFragment: "getTotalTransactions", values?: undefined): string;
101
- encodeFunctionData(functionFragment: "getTransactionStatus", values?: undefined): string;
295
+ encodeFunctionData(functionFragment: "getTokenMultisigConfig", values: [AddressLike]): string;
102
296
  encodeFunctionData(functionFragment: "getWithdrawalSigner", values: [
103
297
  BigNumberish,
104
298
  AddressLike,
@@ -106,23 +300,51 @@ export interface EscrowInterface extends Interface {
106
300
  BigNumberish,
107
301
  Types.SignatureStruct
108
302
  ]): string;
303
+ encodeFunctionData(functionFragment: "get_admin_used_ids", values: [BigNumberish[]]): string;
109
304
  encodeFunctionData(functionFragment: "get_used_ids", values: [BigNumberish[]]): string;
110
305
  encodeFunctionData(functionFragment: "grantRole", values: [BytesLike, AddressLike]): string;
111
306
  encodeFunctionData(functionFragment: "hasRole", values: [BytesLike, AddressLike]): string;
112
- encodeFunctionData(functionFragment: "initialize", values: [AddressLike, AddressLike, string, AddressLike[]]): string;
307
+ encodeFunctionData(functionFragment: "initialize", values: [
308
+ AddressLike,
309
+ AddressLike,
310
+ string,
311
+ AddressLike[],
312
+ Types.MultisigConfigInputStruct[],
313
+ Types.AdminMultisigConfigSetupStruct[],
314
+ BigNumberish
315
+ ]): string;
113
316
  encodeFunctionData(functionFragment: "isFundsManager", values: [AddressLike]): string;
114
317
  encodeFunctionData(functionFragment: "isPaused", values?: undefined): string;
115
318
  encodeFunctionData(functionFragment: "isWhitelisted", values: [AddressLike]): string;
116
319
  encodeFunctionData(functionFragment: "nonces", values: [AddressLike]): string;
117
320
  encodeFunctionData(functionFragment: "pause", values?: undefined): string;
321
+ encodeFunctionData(functionFragment: "receiverTimelockConfig", values: [AddressLike]): string;
118
322
  encodeFunctionData(functionFragment: "removeTokens", values: [AddressLike[]]): string;
119
323
  encodeFunctionData(functionFragment: "renounceRole", values: [BytesLike, AddressLike]): string;
324
+ encodeFunctionData(functionFragment: "reset_admin_request_ids", values: [BigNumberish, BigNumberish]): string;
120
325
  encodeFunctionData(functionFragment: "reset_request_ids", values: [BigNumberish, BigNumberish]): string;
121
326
  encodeFunctionData(functionFragment: "revokeRole", values: [BytesLike, AddressLike]): string;
122
- encodeFunctionData(functionFragment: "setOperator", values: [AddressLike]): string;
123
- encodeFunctionData(functionFragment: "setTransactionStatus", values: [BigNumberish, BigNumberish]): string;
327
+ encodeFunctionData(functionFragment: "setAdminTokenMultisigThreshold", values: [
328
+ Types.SetAdminMultisigConfigSignDataStruct,
329
+ Types.SignatureStruct[]
330
+ ]): string;
331
+ encodeFunctionData(functionFragment: "setGroupConfig", values: [BigNumberish, BigNumberish, BigNumberish]): string;
332
+ encodeFunctionData(functionFragment: "setTimelock", values: [Types.SetTimelockConfigSignDataStruct, Types.SignatureStruct[]]): string;
333
+ encodeFunctionData(functionFragment: "setTimelockGranular", values: [
334
+ Types.SetReceiverTimelockConfigSignDataStruct,
335
+ Types.SignatureStruct[]
336
+ ]): string;
337
+ encodeFunctionData(functionFragment: "setTokenMultisigThreshold", values: [Types.SetMultisigConfigSignDataStruct, Types.SignatureStruct[]]): string;
338
+ encodeFunctionData(functionFragment: "signerBitmap", values: [AddressLike]): string;
124
339
  encodeFunctionData(functionFragment: "supportsInterface", values: [BytesLike]): string;
125
340
  encodeFunctionData(functionFragment: "sweepFunds", values: [AddressLike, AddressLike]): string;
341
+ encodeFunctionData(functionFragment: "timelockCommitments", values: [BytesLike]): string;
342
+ encodeFunctionData(functionFragment: "timelockConfig", values: [AddressLike]): string;
343
+ encodeFunctionData(functionFragment: "timelockConfigNonce", values?: undefined): string;
344
+ encodeFunctionData(functionFragment: "timelockThresholdSettings", values?: undefined): string;
345
+ encodeFunctionData(functionFragment: "tokenThresholdSettings", values: [AddressLike]): string;
346
+ encodeFunctionData(functionFragment: "unpackAdminThresholds", values: [BigNumberish]): string;
347
+ encodeFunctionData(functionFragment: "unpackTokenThresholds", values: [BigNumberish]): string;
126
348
  encodeFunctionData(functionFragment: "unpause", values?: undefined): string;
127
349
  encodeFunctionData(functionFragment: "whitelist", values: [AddressLike]): string;
128
350
  encodeFunctionData(functionFragment: "withdraw", values: [
@@ -132,32 +354,57 @@ export interface EscrowInterface extends Interface {
132
354
  AddressLike,
133
355
  Types.SignatureStruct
134
356
  ]): string;
357
+ encodeFunctionData(functionFragment: "withdrawWithTimelock", values: [
358
+ BigNumberish,
359
+ BigNumberish,
360
+ AddressLike,
361
+ AddressLike,
362
+ Types.SignatureStruct,
363
+ Types.SignatureStruct[]
364
+ ]): string;
365
+ decodeFunctionResult(functionFragment: "ADMIN_TREASURY_EXECUTIVE_ROLE", data: BytesLike): Result;
366
+ decodeFunctionResult(functionFragment: "ADMIN_TREASURY_MANAGER_ROLE", data: BytesLike): Result;
367
+ decodeFunctionResult(functionFragment: "CONFIG_EXECUTIVE_ROLE", data: BytesLike): Result;
368
+ decodeFunctionResult(functionFragment: "CONFIG_MANAGER_ROLE", data: BytesLike): Result;
135
369
  decodeFunctionResult(functionFragment: "DEFAULT_ADMIN_ROLE", data: BytesLike): Result;
136
370
  decodeFunctionResult(functionFragment: "DOMAIN_SEPARATOR", data: BytesLike): Result;
137
371
  decodeFunctionResult(functionFragment: "FUNDS_MANAGER_ROLE", data: BytesLike): Result;
138
372
  decodeFunctionResult(functionFragment: "OPERATOR_ROLE", data: BytesLike): Result;
373
+ decodeFunctionResult(functionFragment: "TIMELOCK_CONFIG_EXECUTIVE_ROLE", data: BytesLike): Result;
374
+ decodeFunctionResult(functionFragment: "TIMELOCK_CONFIG_MANAGER_ROLE", data: BytesLike): Result;
375
+ decodeFunctionResult(functionFragment: "TIMELOCK_DELAY", data: BytesLike): Result;
376
+ decodeFunctionResult(functionFragment: "TREASURY_DISPATCH_ROLE", data: BytesLike): Result;
377
+ decodeFunctionResult(functionFragment: "TREASURY_EXECUTIVE_ROLE", data: BytesLike): Result;
378
+ decodeFunctionResult(functionFragment: "TREASURY_MANAGER_ROLE", data: BytesLike): Result;
379
+ decodeFunctionResult(functionFragment: "TREASURY_RECEIVER_ROLE", data: BytesLike): Result;
139
380
  decodeFunctionResult(functionFragment: "__AccessControl_init", data: BytesLike): Result;
140
381
  decodeFunctionResult(functionFragment: "__Signature_init", data: BytesLike): Result;
141
382
  decodeFunctionResult(functionFragment: "__TokensWhitelist_init", data: BytesLike): Result;
142
383
  decodeFunctionResult(functionFragment: "addTokens", data: BytesLike): Result;
384
+ decodeFunctionResult(functionFragment: "adminTokenThresholdSettings", data: BytesLike): Result;
143
385
  decodeFunctionResult(functionFragment: "adminWithdraw", data: BytesLike): Result;
144
386
  decodeFunctionResult(functionFragment: "batchSweepERC20", data: BytesLike): Result;
387
+ decodeFunctionResult(functionFragment: "batchWithdrawWithTimelock", data: BytesLike): Result;
145
388
  decodeFunctionResult(functionFragment: "batch_withdraw", data: BytesLike): Result;
146
- decodeFunctionResult(functionFragment: "changeAdmin", data: BytesLike): Result;
389
+ decodeFunctionResult(functionFragment: "cancelWithdrawal", data: BytesLike): Result;
390
+ decodeFunctionResult(functionFragment: "configNonce", data: BytesLike): Result;
391
+ decodeFunctionResult(functionFragment: "configThresholdSettings", data: BytesLike): Result;
147
392
  decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result;
148
393
  decodeFunctionResult(functionFragment: "depositErc20", data: BytesLike): Result;
394
+ decodeFunctionResult(functionFragment: "executeWithdrawal", data: BytesLike): Result;
149
395
  decodeFunctionResult(functionFragment: "fundWallets", data: BytesLike): Result;
396
+ decodeFunctionResult(functionFragment: "getAdminMultisigConfig", data: BytesLike): Result;
150
397
  decodeFunctionResult(functionFragment: "getBalance()", data: BytesLike): Result;
151
398
  decodeFunctionResult(functionFragment: "getBalance(address)", data: BytesLike): Result;
152
399
  decodeFunctionResult(functionFragment: "getDepositSigner", data: BytesLike): Result;
153
- decodeFunctionResult(functionFragment: "getLastBlockNumber", data: BytesLike): Result;
400
+ decodeFunctionResult(functionFragment: "getGroupConfig", data: BytesLike): Result;
154
401
  decodeFunctionResult(functionFragment: "getNonce", data: BytesLike): Result;
155
402
  decodeFunctionResult(functionFragment: "getRequestStatus", data: BytesLike): Result;
156
403
  decodeFunctionResult(functionFragment: "getReservesCoverage", data: BytesLike): Result;
157
404
  decodeFunctionResult(functionFragment: "getRoleAdmin", data: BytesLike): Result;
158
- decodeFunctionResult(functionFragment: "getTotalTransactions", data: BytesLike): Result;
159
- decodeFunctionResult(functionFragment: "getTransactionStatus", data: BytesLike): Result;
405
+ decodeFunctionResult(functionFragment: "getTokenMultisigConfig", data: BytesLike): Result;
160
406
  decodeFunctionResult(functionFragment: "getWithdrawalSigner", data: BytesLike): Result;
407
+ decodeFunctionResult(functionFragment: "get_admin_used_ids", data: BytesLike): Result;
161
408
  decodeFunctionResult(functionFragment: "get_used_ids", data: BytesLike): Result;
162
409
  decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result;
163
410
  decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result;
@@ -167,36 +414,107 @@ export interface EscrowInterface extends Interface {
167
414
  decodeFunctionResult(functionFragment: "isWhitelisted", data: BytesLike): Result;
168
415
  decodeFunctionResult(functionFragment: "nonces", data: BytesLike): Result;
169
416
  decodeFunctionResult(functionFragment: "pause", data: BytesLike): Result;
417
+ decodeFunctionResult(functionFragment: "receiverTimelockConfig", data: BytesLike): Result;
170
418
  decodeFunctionResult(functionFragment: "removeTokens", data: BytesLike): Result;
171
419
  decodeFunctionResult(functionFragment: "renounceRole", data: BytesLike): Result;
420
+ decodeFunctionResult(functionFragment: "reset_admin_request_ids", data: BytesLike): Result;
172
421
  decodeFunctionResult(functionFragment: "reset_request_ids", data: BytesLike): Result;
173
422
  decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result;
174
- decodeFunctionResult(functionFragment: "setOperator", data: BytesLike): Result;
175
- decodeFunctionResult(functionFragment: "setTransactionStatus", data: BytesLike): Result;
423
+ decodeFunctionResult(functionFragment: "setAdminTokenMultisigThreshold", data: BytesLike): Result;
424
+ decodeFunctionResult(functionFragment: "setGroupConfig", data: BytesLike): Result;
425
+ decodeFunctionResult(functionFragment: "setTimelock", data: BytesLike): Result;
426
+ decodeFunctionResult(functionFragment: "setTimelockGranular", data: BytesLike): Result;
427
+ decodeFunctionResult(functionFragment: "setTokenMultisigThreshold", data: BytesLike): Result;
428
+ decodeFunctionResult(functionFragment: "signerBitmap", data: BytesLike): Result;
176
429
  decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result;
177
430
  decodeFunctionResult(functionFragment: "sweepFunds", data: BytesLike): Result;
431
+ decodeFunctionResult(functionFragment: "timelockCommitments", data: BytesLike): Result;
432
+ decodeFunctionResult(functionFragment: "timelockConfig", data: BytesLike): Result;
433
+ decodeFunctionResult(functionFragment: "timelockConfigNonce", data: BytesLike): Result;
434
+ decodeFunctionResult(functionFragment: "timelockThresholdSettings", data: BytesLike): Result;
435
+ decodeFunctionResult(functionFragment: "tokenThresholdSettings", data: BytesLike): Result;
436
+ decodeFunctionResult(functionFragment: "unpackAdminThresholds", data: BytesLike): Result;
437
+ decodeFunctionResult(functionFragment: "unpackTokenThresholds", data: BytesLike): Result;
178
438
  decodeFunctionResult(functionFragment: "unpause", data: BytesLike): Result;
179
439
  decodeFunctionResult(functionFragment: "whitelist", data: BytesLike): Result;
180
440
  decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;
441
+ decodeFunctionResult(functionFragment: "withdrawWithTimelock", data: BytesLike): Result;
181
442
  }
182
443
  export declare namespace AdminWithdrawEvent {
183
444
  type InputTuple = [
184
445
  caller: AddressLike,
185
446
  receiver: AddressLike,
186
447
  amount: BigNumberish,
187
- tokenAddress: AddressLike
448
+ tokenAddress: AddressLike,
449
+ requestId: BigNumberish
188
450
  ];
189
451
  type OutputTuple = [
190
452
  caller: string,
191
453
  receiver: string,
192
454
  amount: bigint,
193
- tokenAddress: string
455
+ tokenAddress: string,
456
+ requestId: bigint
194
457
  ];
195
458
  interface OutputObject {
196
459
  caller: string;
197
460
  receiver: string;
198
461
  amount: bigint;
199
462
  tokenAddress: string;
463
+ requestId: bigint;
464
+ }
465
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
466
+ type Filter = TypedDeferredTopicFilter<Event>;
467
+ type Log = TypedEventLog<Event>;
468
+ type LogDescription = TypedLogDescription<Event>;
469
+ }
470
+ export declare namespace ConfigureAdminMultisigEvent {
471
+ type InputTuple = [
472
+ opType: BigNumberish,
473
+ sigsManagerRequired: BigNumberish,
474
+ sigsExecutiveRequired: BigNumberish
475
+ ];
476
+ type OutputTuple = [
477
+ opType: bigint,
478
+ sigsManagerRequired: bigint,
479
+ sigsExecutiveRequired: bigint
480
+ ];
481
+ interface OutputObject {
482
+ opType: bigint;
483
+ sigsManagerRequired: bigint;
484
+ sigsExecutiveRequired: bigint;
485
+ }
486
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
487
+ type Filter = TypedDeferredTopicFilter<Event>;
488
+ type Log = TypedEventLog<Event>;
489
+ type LogDescription = TypedLogDescription<Event>;
490
+ }
491
+ export declare namespace ConfigureTokenMultisigEvent {
492
+ type InputTuple = [
493
+ opType: BigNumberish,
494
+ tokenAddress: AddressLike,
495
+ thresholdAmount: BigNumberish,
496
+ sigsExecutiveBelow: BigNumberish,
497
+ sigsExecutiveAbove: BigNumberish,
498
+ sigsManagerBelow: BigNumberish,
499
+ sigsManagerAbove: BigNumberish
500
+ ];
501
+ type OutputTuple = [
502
+ opType: bigint,
503
+ tokenAddress: string,
504
+ thresholdAmount: bigint,
505
+ sigsExecutiveBelow: bigint,
506
+ sigsExecutiveAbove: bigint,
507
+ sigsManagerBelow: bigint,
508
+ sigsManagerAbove: bigint
509
+ ];
510
+ interface OutputObject {
511
+ opType: bigint;
512
+ tokenAddress: string;
513
+ thresholdAmount: bigint;
514
+ sigsExecutiveBelow: bigint;
515
+ sigsExecutiveAbove: bigint;
516
+ sigsManagerBelow: bigint;
517
+ sigsManagerAbove: bigint;
200
518
  }
201
519
  type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
202
520
  type Filter = TypedDeferredTopicFilter<Event>;
@@ -344,6 +662,45 @@ export declare namespace RoleRevokedEvent {
344
662
  type Log = TypedEventLog<Event>;
345
663
  type LogDescription = TypedLogDescription<Event>;
346
664
  }
665
+ export declare namespace SetTimelockGranularEvent {
666
+ type InputTuple = [
667
+ receiverAddress: AddressLike,
668
+ duration: BigNumberish
669
+ ];
670
+ type OutputTuple = [receiverAddress: string, duration: bigint];
671
+ interface OutputObject {
672
+ receiverAddress: string;
673
+ duration: bigint;
674
+ }
675
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
676
+ type Filter = TypedDeferredTopicFilter<Event>;
677
+ type Log = TypedEventLog<Event>;
678
+ type LogDescription = TypedLogDescription<Event>;
679
+ }
680
+ export declare namespace SetTokenTimelockEvent {
681
+ type InputTuple = [
682
+ tokenAddress: AddressLike,
683
+ thresholdAmount: BigNumberish,
684
+ durationBelow: BigNumberish,
685
+ durationAbove: BigNumberish
686
+ ];
687
+ type OutputTuple = [
688
+ tokenAddress: string,
689
+ thresholdAmount: bigint,
690
+ durationBelow: bigint,
691
+ durationAbove: bigint
692
+ ];
693
+ interface OutputObject {
694
+ tokenAddress: string;
695
+ thresholdAmount: bigint;
696
+ durationBelow: bigint;
697
+ durationAbove: bigint;
698
+ }
699
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
700
+ type Filter = TypedDeferredTopicFilter<Event>;
701
+ type Log = TypedEventLog<Event>;
702
+ type LogDescription = TypedLogDescription<Event>;
703
+ }
347
704
  export declare namespace SweepTokensEvent {
348
705
  type InputTuple = [
349
706
  caller: AddressLike,
@@ -393,18 +750,6 @@ export declare namespace TokenRemovedEvent {
393
750
  type Log = TypedEventLog<Event>;
394
751
  type LogDescription = TypedLogDescription<Event>;
395
752
  }
396
- export declare namespace TransactionCountEvent {
397
- type InputTuple = [amount: BigNumberish, blockNumber: BigNumberish];
398
- type OutputTuple = [amount: bigint, blockNumber: bigint];
399
- interface OutputObject {
400
- amount: bigint;
401
- blockNumber: bigint;
402
- }
403
- type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
404
- type Filter = TypedDeferredTopicFilter<Event>;
405
- type Log = TypedEventLog<Event>;
406
- type LogDescription = TypedLogDescription<Event>;
407
- }
408
753
  export declare namespace WithdrawalEvent {
409
754
  type InputTuple = [
410
755
  payer: AddressLike,
@@ -435,6 +780,60 @@ export declare namespace WithdrawalEvent {
435
780
  type Log = TypedEventLog<Event>;
436
781
  type LogDescription = TypedLogDescription<Event>;
437
782
  }
783
+ export declare namespace WithdrawalCancelledEvent {
784
+ type InputTuple = [commitmentHash: BytesLike, requestId: BigNumberish];
785
+ type OutputTuple = [commitmentHash: string, requestId: bigint];
786
+ interface OutputObject {
787
+ commitmentHash: string;
788
+ requestId: bigint;
789
+ }
790
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
791
+ type Filter = TypedDeferredTopicFilter<Event>;
792
+ type Log = TypedEventLog<Event>;
793
+ type LogDescription = TypedLogDescription<Event>;
794
+ }
795
+ export declare namespace WithdrawalExecutedEvent {
796
+ type InputTuple = [commitmentHash: BytesLike, requestId: BigNumberish];
797
+ type OutputTuple = [commitmentHash: string, requestId: bigint];
798
+ interface OutputObject {
799
+ commitmentHash: string;
800
+ requestId: bigint;
801
+ }
802
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
803
+ type Filter = TypedDeferredTopicFilter<Event>;
804
+ type Log = TypedEventLog<Event>;
805
+ type LogDescription = TypedLogDescription<Event>;
806
+ }
807
+ export declare namespace WithdrawalScheduledEvent {
808
+ type InputTuple = [
809
+ commitmentHash: BytesLike,
810
+ requestId: BigNumberish,
811
+ amount: BigNumberish,
812
+ tokenAddress: AddressLike,
813
+ receiverAddress: AddressLike,
814
+ executeAt: BigNumberish
815
+ ];
816
+ type OutputTuple = [
817
+ commitmentHash: string,
818
+ requestId: bigint,
819
+ amount: bigint,
820
+ tokenAddress: string,
821
+ receiverAddress: string,
822
+ executeAt: bigint
823
+ ];
824
+ interface OutputObject {
825
+ commitmentHash: string;
826
+ requestId: bigint;
827
+ amount: bigint;
828
+ tokenAddress: string;
829
+ receiverAddress: string;
830
+ executeAt: bigint;
831
+ }
832
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
833
+ type Filter = TypedDeferredTopicFilter<Event>;
834
+ type Log = TypedEventLog<Event>;
835
+ type LogDescription = TypedLogDescription<Event>;
836
+ }
438
837
  export interface Escrow extends BaseContract {
439
838
  connect(runner?: ContractRunner | null): Escrow;
440
839
  waitForDeployment(): Promise<this>;
@@ -448,10 +847,21 @@ export interface Escrow extends BaseContract {
448
847
  listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
449
848
  listeners(eventName?: string): Promise<Array<Listener>>;
450
849
  removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
850
+ ADMIN_TREASURY_EXECUTIVE_ROLE: TypedContractMethod<[], [string], "view">;
851
+ ADMIN_TREASURY_MANAGER_ROLE: TypedContractMethod<[], [string], "view">;
852
+ CONFIG_EXECUTIVE_ROLE: TypedContractMethod<[], [string], "view">;
853
+ CONFIG_MANAGER_ROLE: TypedContractMethod<[], [string], "view">;
451
854
  DEFAULT_ADMIN_ROLE: TypedContractMethod<[], [string], "view">;
452
855
  DOMAIN_SEPARATOR: TypedContractMethod<[], [string], "view">;
453
856
  FUNDS_MANAGER_ROLE: TypedContractMethod<[], [string], "view">;
454
857
  OPERATOR_ROLE: TypedContractMethod<[], [string], "view">;
858
+ TIMELOCK_CONFIG_EXECUTIVE_ROLE: TypedContractMethod<[], [string], "view">;
859
+ TIMELOCK_CONFIG_MANAGER_ROLE: TypedContractMethod<[], [string], "view">;
860
+ TIMELOCK_DELAY: TypedContractMethod<[], [bigint], "view">;
861
+ TREASURY_DISPATCH_ROLE: TypedContractMethod<[], [string], "view">;
862
+ TREASURY_EXECUTIVE_ROLE: TypedContractMethod<[], [string], "view">;
863
+ TREASURY_MANAGER_ROLE: TypedContractMethod<[], [string], "view">;
864
+ TREASURY_RECEIVER_ROLE: TypedContractMethod<[], [string], "view">;
455
865
  __AccessControl_init: TypedContractMethod<[
456
866
  _operator: AddressLike,
457
867
  _owner: AddressLike,
@@ -470,11 +880,18 @@ export interface Escrow extends BaseContract {
470
880
  ], [
471
881
  void
472
882
  ], "nonpayable">;
473
- addTokens: TypedContractMethod<[tokens: AddressLike[]], [void], "nonpayable">;
883
+ addTokens: TypedContractMethod<[
884
+ configs: Types.MultisigConfigInputStruct[]
885
+ ], [
886
+ void
887
+ ], "nonpayable">;
888
+ adminTokenThresholdSettings: TypedContractMethod<[], [bigint], "view">;
474
889
  adminWithdraw: TypedContractMethod<[
890
+ requestId: BigNumberish,
475
891
  amount: BigNumberish,
476
892
  token: AddressLike,
477
- receiver: AddressLike
893
+ receiver: AddressLike,
894
+ signatures: Types.SignatureStruct[]
478
895
  ], [
479
896
  void
480
897
  ], "nonpayable">;
@@ -484,16 +901,27 @@ export interface Escrow extends BaseContract {
484
901
  ], [
485
902
  boolean
486
903
  ], "nonpayable">;
904
+ batchWithdrawWithTimelock: TypedContractMethod<[
905
+ requests: Types.BatchWithdrawWithTimelockStruct[]
906
+ ], [
907
+ void
908
+ ], "nonpayable">;
487
909
  batch_withdraw: TypedContractMethod<[
488
910
  requests: Types.BatchWithdrawStruct[]
489
911
  ], [
490
912
  void
491
913
  ], "nonpayable">;
492
- changeAdmin: TypedContractMethod<[
493
- newAdmin: AddressLike
914
+ cancelWithdrawal: TypedContractMethod<[
915
+ amount: BigNumberish,
916
+ requestId: BigNumberish,
917
+ tokenAddress: AddressLike,
918
+ receiverAddress: AddressLike,
919
+ executeAt: BigNumberish
494
920
  ], [
495
921
  void
496
922
  ], "nonpayable">;
923
+ configNonce: TypedContractMethod<[], [bigint], "view">;
924
+ configThresholdSettings: TypedContractMethod<[], [bigint], "view">;
497
925
  deposit: TypedContractMethod<[
498
926
  bonusCode: string,
499
927
  signature: Types.SignatureStruct
@@ -508,12 +936,25 @@ export interface Escrow extends BaseContract {
508
936
  ], [
509
937
  void
510
938
  ], "nonpayable">;
939
+ executeWithdrawal: TypedContractMethod<[
940
+ amount: BigNumberish,
941
+ requestId: BigNumberish,
942
+ tokenAddress: AddressLike,
943
+ receiverAddress: AddressLike,
944
+ executeAt: BigNumberish
945
+ ], [
946
+ void
947
+ ], "nonpayable">;
511
948
  fundWallets: TypedContractMethod<[
512
949
  wallets: AddressLike[],
513
950
  amount: BigNumberish
514
951
  ], [
515
952
  void
516
953
  ], "nonpayable">;
954
+ getAdminMultisigConfig: TypedContractMethod<[
955
+ ], [
956
+ Types.AdminMultisigConfigStructOutput
957
+ ], "view">;
517
958
  "getBalance()": TypedContractMethod<[], [bigint], "view">;
518
959
  "getBalance(address)": TypedContractMethod<[
519
960
  token: AddressLike
@@ -529,7 +970,11 @@ export interface Escrow extends BaseContract {
529
970
  ], [
530
971
  string
531
972
  ], "view">;
532
- getLastBlockNumber: TypedContractMethod<[], [bigint], "view">;
973
+ getGroupConfig: TypedContractMethod<[
974
+ opType: BigNumberish
975
+ ], [
976
+ Types.AdminMultisigConfigStructOutput
977
+ ], "view">;
533
978
  getNonce: TypedContractMethod<[
534
979
  user: AddressLike,
535
980
  opType: BigNumberish
@@ -548,10 +993,10 @@ export interface Escrow extends BaseContract {
548
993
  Types.CoverageInfoStructOutput
549
994
  ], "view">;
550
995
  getRoleAdmin: TypedContractMethod<[role: BytesLike], [string], "view">;
551
- getTotalTransactions: TypedContractMethod<[], [bigint], "view">;
552
- getTransactionStatus: TypedContractMethod<[
996
+ getTokenMultisigConfig: TypedContractMethod<[
997
+ tokenAddress: AddressLike
553
998
  ], [
554
- Types.TransactionStatusStructOutput
999
+ Types.MultisigConfigStructOutput
555
1000
  ], "view">;
556
1001
  getWithdrawalSigner: TypedContractMethod<[
557
1002
  _amount: BigNumberish,
@@ -562,6 +1007,11 @@ export interface Escrow extends BaseContract {
562
1007
  ], [
563
1008
  string
564
1009
  ], "view">;
1010
+ get_admin_used_ids: TypedContractMethod<[
1011
+ ids: BigNumberish[]
1012
+ ], [
1013
+ bigint[]
1014
+ ], "view">;
565
1015
  get_used_ids: TypedContractMethod<[ids: BigNumberish[]], [bigint[]], "view">;
566
1016
  grantRole: TypedContractMethod<[
567
1017
  role: BytesLike,
@@ -579,7 +1029,10 @@ export interface Escrow extends BaseContract {
579
1029
  _operator: AddressLike,
580
1030
  _fundsManager: AddressLike,
581
1031
  _version: string,
582
- _tokens: AddressLike[]
1032
+ _tokens: AddressLike[],
1033
+ _multisigConfigs: Types.MultisigConfigInputStruct[],
1034
+ _adminMultisigConfigs: Types.AdminMultisigConfigSetupStruct[],
1035
+ _maxFundWalletAmount: BigNumberish
583
1036
  ], [
584
1037
  void
585
1038
  ], "nonpayable">;
@@ -588,6 +1041,14 @@ export interface Escrow extends BaseContract {
588
1041
  isWhitelisted: TypedContractMethod<[_token: AddressLike], [boolean], "view">;
589
1042
  nonces: TypedContractMethod<[_owner: AddressLike], [bigint], "view">;
590
1043
  pause: TypedContractMethod<[], [void], "nonpayable">;
1044
+ receiverTimelockConfig: TypedContractMethod<[
1045
+ arg0: AddressLike
1046
+ ], [
1047
+ [bigint, boolean] & {
1048
+ duration: bigint;
1049
+ configured: boolean;
1050
+ }
1051
+ ], "view">;
591
1052
  removeTokens: TypedContractMethod<[
592
1053
  tokens: AddressLike[]
593
1054
  ], [
@@ -599,6 +1060,12 @@ export interface Escrow extends BaseContract {
599
1060
  ], [
600
1061
  void
601
1062
  ], "nonpayable">;
1063
+ reset_admin_request_ids: TypedContractMethod<[
1064
+ start: BigNumberish,
1065
+ end: BigNumberish
1066
+ ], [
1067
+ void
1068
+ ], "nonpayable">;
602
1069
  reset_request_ids: TypedContractMethod<[
603
1070
  start: BigNumberish,
604
1071
  end: BigNumberish
@@ -611,17 +1078,38 @@ export interface Escrow extends BaseContract {
611
1078
  ], [
612
1079
  void
613
1080
  ], "nonpayable">;
614
- setOperator: TypedContractMethod<[
615
- _operator: AddressLike
1081
+ setAdminTokenMultisigThreshold: TypedContractMethod<[
1082
+ configData: Types.SetAdminMultisigConfigSignDataStruct,
1083
+ signatures: Types.SignatureStruct[]
1084
+ ], [
1085
+ void
1086
+ ], "nonpayable">;
1087
+ setGroupConfig: TypedContractMethod<[
1088
+ opType: BigNumberish,
1089
+ sigsManager: BigNumberish,
1090
+ sigsExecutive: BigNumberish
1091
+ ], [
1092
+ void
1093
+ ], "nonpayable">;
1094
+ setTimelock: TypedContractMethod<[
1095
+ configData: Types.SetTimelockConfigSignDataStruct,
1096
+ signatures: Types.SignatureStruct[]
616
1097
  ], [
617
1098
  void
618
1099
  ], "nonpayable">;
619
- setTransactionStatus: TypedContractMethod<[
620
- totalCount: BigNumberish,
621
- blockNumber: BigNumberish
1100
+ setTimelockGranular: TypedContractMethod<[
1101
+ configData: Types.SetReceiverTimelockConfigSignDataStruct,
1102
+ signatures: Types.SignatureStruct[]
622
1103
  ], [
623
1104
  void
624
1105
  ], "nonpayable">;
1106
+ setTokenMultisigThreshold: TypedContractMethod<[
1107
+ configData: Types.SetMultisigConfigSignDataStruct,
1108
+ signatures: Types.SignatureStruct[]
1109
+ ], [
1110
+ void
1111
+ ], "nonpayable">;
1112
+ signerBitmap: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
625
1113
  supportsInterface: TypedContractMethod<[
626
1114
  interfaceId: BytesLike
627
1115
  ], [
@@ -633,6 +1121,43 @@ export interface Escrow extends BaseContract {
633
1121
  ], [
634
1122
  boolean
635
1123
  ], "payable">;
1124
+ timelockCommitments: TypedContractMethod<[
1125
+ arg0: BytesLike
1126
+ ], [
1127
+ boolean
1128
+ ], "view">;
1129
+ timelockConfig: TypedContractMethod<[
1130
+ arg0: AddressLike
1131
+ ], [
1132
+ [
1133
+ bigint,
1134
+ bigint,
1135
+ bigint,
1136
+ boolean
1137
+ ] & {
1138
+ thresholdAmount: bigint;
1139
+ durationBelow: bigint;
1140
+ durationAbove: bigint;
1141
+ configured: boolean;
1142
+ }
1143
+ ], "view">;
1144
+ timelockConfigNonce: TypedContractMethod<[], [bigint], "view">;
1145
+ timelockThresholdSettings: TypedContractMethod<[], [bigint], "view">;
1146
+ tokenThresholdSettings: TypedContractMethod<[
1147
+ arg0: AddressLike
1148
+ ], [
1149
+ bigint
1150
+ ], "view">;
1151
+ unpackAdminThresholds: TypedContractMethod<[
1152
+ packed: BigNumberish
1153
+ ], [
1154
+ Types.AdminMultisigConfigStructOutput
1155
+ ], "view">;
1156
+ unpackTokenThresholds: TypedContractMethod<[
1157
+ packed: BigNumberish
1158
+ ], [
1159
+ Types.MultisigConfigStructOutput
1160
+ ], "view">;
636
1161
  unpause: TypedContractMethod<[], [void], "nonpayable">;
637
1162
  whitelist: TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
638
1163
  withdraw: TypedContractMethod<[
@@ -644,11 +1169,32 @@ export interface Escrow extends BaseContract {
644
1169
  ], [
645
1170
  void
646
1171
  ], "nonpayable">;
1172
+ withdrawWithTimelock: TypedContractMethod<[
1173
+ amount: BigNumberish,
1174
+ requestId: BigNumberish,
1175
+ tokenAddress: AddressLike,
1176
+ receiverAddress: AddressLike,
1177
+ operatorSignature: Types.SignatureStruct,
1178
+ signatures: Types.SignatureStruct[]
1179
+ ], [
1180
+ void
1181
+ ], "nonpayable">;
647
1182
  getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
1183
+ getFunction(nameOrSignature: "ADMIN_TREASURY_EXECUTIVE_ROLE"): TypedContractMethod<[], [string], "view">;
1184
+ getFunction(nameOrSignature: "ADMIN_TREASURY_MANAGER_ROLE"): TypedContractMethod<[], [string], "view">;
1185
+ getFunction(nameOrSignature: "CONFIG_EXECUTIVE_ROLE"): TypedContractMethod<[], [string], "view">;
1186
+ getFunction(nameOrSignature: "CONFIG_MANAGER_ROLE"): TypedContractMethod<[], [string], "view">;
648
1187
  getFunction(nameOrSignature: "DEFAULT_ADMIN_ROLE"): TypedContractMethod<[], [string], "view">;
649
1188
  getFunction(nameOrSignature: "DOMAIN_SEPARATOR"): TypedContractMethod<[], [string], "view">;
650
1189
  getFunction(nameOrSignature: "FUNDS_MANAGER_ROLE"): TypedContractMethod<[], [string], "view">;
651
1190
  getFunction(nameOrSignature: "OPERATOR_ROLE"): TypedContractMethod<[], [string], "view">;
1191
+ getFunction(nameOrSignature: "TIMELOCK_CONFIG_EXECUTIVE_ROLE"): TypedContractMethod<[], [string], "view">;
1192
+ getFunction(nameOrSignature: "TIMELOCK_CONFIG_MANAGER_ROLE"): TypedContractMethod<[], [string], "view">;
1193
+ getFunction(nameOrSignature: "TIMELOCK_DELAY"): TypedContractMethod<[], [bigint], "view">;
1194
+ getFunction(nameOrSignature: "TREASURY_DISPATCH_ROLE"): TypedContractMethod<[], [string], "view">;
1195
+ getFunction(nameOrSignature: "TREASURY_EXECUTIVE_ROLE"): TypedContractMethod<[], [string], "view">;
1196
+ getFunction(nameOrSignature: "TREASURY_MANAGER_ROLE"): TypedContractMethod<[], [string], "view">;
1197
+ getFunction(nameOrSignature: "TREASURY_RECEIVER_ROLE"): TypedContractMethod<[], [string], "view">;
652
1198
  getFunction(nameOrSignature: "__AccessControl_init"): TypedContractMethod<[
653
1199
  _operator: AddressLike,
654
1200
  _owner: AddressLike,
@@ -663,11 +1209,18 @@ export interface Escrow extends BaseContract {
663
1209
  void
664
1210
  ], "nonpayable">;
665
1211
  getFunction(nameOrSignature: "__TokensWhitelist_init"): TypedContractMethod<[_tokens: AddressLike[]], [void], "nonpayable">;
666
- getFunction(nameOrSignature: "addTokens"): TypedContractMethod<[tokens: AddressLike[]], [void], "nonpayable">;
1212
+ getFunction(nameOrSignature: "addTokens"): TypedContractMethod<[
1213
+ configs: Types.MultisigConfigInputStruct[]
1214
+ ], [
1215
+ void
1216
+ ], "nonpayable">;
1217
+ getFunction(nameOrSignature: "adminTokenThresholdSettings"): TypedContractMethod<[], [bigint], "view">;
667
1218
  getFunction(nameOrSignature: "adminWithdraw"): TypedContractMethod<[
1219
+ requestId: BigNumberish,
668
1220
  amount: BigNumberish,
669
1221
  token: AddressLike,
670
- receiver: AddressLike
1222
+ receiver: AddressLike,
1223
+ signatures: Types.SignatureStruct[]
671
1224
  ], [
672
1225
  void
673
1226
  ], "nonpayable">;
@@ -677,12 +1230,27 @@ export interface Escrow extends BaseContract {
677
1230
  ], [
678
1231
  boolean
679
1232
  ], "nonpayable">;
1233
+ getFunction(nameOrSignature: "batchWithdrawWithTimelock"): TypedContractMethod<[
1234
+ requests: Types.BatchWithdrawWithTimelockStruct[]
1235
+ ], [
1236
+ void
1237
+ ], "nonpayable">;
680
1238
  getFunction(nameOrSignature: "batch_withdraw"): TypedContractMethod<[
681
1239
  requests: Types.BatchWithdrawStruct[]
682
1240
  ], [
683
1241
  void
684
1242
  ], "nonpayable">;
685
- getFunction(nameOrSignature: "changeAdmin"): TypedContractMethod<[newAdmin: AddressLike], [void], "nonpayable">;
1243
+ getFunction(nameOrSignature: "cancelWithdrawal"): TypedContractMethod<[
1244
+ amount: BigNumberish,
1245
+ requestId: BigNumberish,
1246
+ tokenAddress: AddressLike,
1247
+ receiverAddress: AddressLike,
1248
+ executeAt: BigNumberish
1249
+ ], [
1250
+ void
1251
+ ], "nonpayable">;
1252
+ getFunction(nameOrSignature: "configNonce"): TypedContractMethod<[], [bigint], "view">;
1253
+ getFunction(nameOrSignature: "configThresholdSettings"): TypedContractMethod<[], [bigint], "view">;
686
1254
  getFunction(nameOrSignature: "deposit"): TypedContractMethod<[
687
1255
  bonusCode: string,
688
1256
  signature: Types.SignatureStruct
@@ -697,12 +1265,22 @@ export interface Escrow extends BaseContract {
697
1265
  ], [
698
1266
  void
699
1267
  ], "nonpayable">;
1268
+ getFunction(nameOrSignature: "executeWithdrawal"): TypedContractMethod<[
1269
+ amount: BigNumberish,
1270
+ requestId: BigNumberish,
1271
+ tokenAddress: AddressLike,
1272
+ receiverAddress: AddressLike,
1273
+ executeAt: BigNumberish
1274
+ ], [
1275
+ void
1276
+ ], "nonpayable">;
700
1277
  getFunction(nameOrSignature: "fundWallets"): TypedContractMethod<[
701
1278
  wallets: AddressLike[],
702
1279
  amount: BigNumberish
703
1280
  ], [
704
1281
  void
705
1282
  ], "nonpayable">;
1283
+ getFunction(nameOrSignature: "getAdminMultisigConfig"): TypedContractMethod<[], [Types.AdminMultisigConfigStructOutput], "view">;
706
1284
  getFunction(nameOrSignature: "getBalance()"): TypedContractMethod<[], [bigint], "view">;
707
1285
  getFunction(nameOrSignature: "getBalance(address)"): TypedContractMethod<[token: AddressLike], [bigint], "view">;
708
1286
  getFunction(nameOrSignature: "getDepositSigner"): TypedContractMethod<[
@@ -714,7 +1292,11 @@ export interface Escrow extends BaseContract {
714
1292
  ], [
715
1293
  string
716
1294
  ], "view">;
717
- getFunction(nameOrSignature: "getLastBlockNumber"): TypedContractMethod<[], [bigint], "view">;
1295
+ getFunction(nameOrSignature: "getGroupConfig"): TypedContractMethod<[
1296
+ opType: BigNumberish
1297
+ ], [
1298
+ Types.AdminMultisigConfigStructOutput
1299
+ ], "view">;
718
1300
  getFunction(nameOrSignature: "getNonce"): TypedContractMethod<[
719
1301
  user: AddressLike,
720
1302
  opType: BigNumberish
@@ -729,8 +1311,11 @@ export interface Escrow extends BaseContract {
729
1311
  Types.CoverageInfoStructOutput
730
1312
  ], "view">;
731
1313
  getFunction(nameOrSignature: "getRoleAdmin"): TypedContractMethod<[role: BytesLike], [string], "view">;
732
- getFunction(nameOrSignature: "getTotalTransactions"): TypedContractMethod<[], [bigint], "view">;
733
- getFunction(nameOrSignature: "getTransactionStatus"): TypedContractMethod<[], [Types.TransactionStatusStructOutput], "view">;
1314
+ getFunction(nameOrSignature: "getTokenMultisigConfig"): TypedContractMethod<[
1315
+ tokenAddress: AddressLike
1316
+ ], [
1317
+ Types.MultisigConfigStructOutput
1318
+ ], "view">;
734
1319
  getFunction(nameOrSignature: "getWithdrawalSigner"): TypedContractMethod<[
735
1320
  _amount: BigNumberish,
736
1321
  _receiverAddress: AddressLike,
@@ -740,6 +1325,7 @@ export interface Escrow extends BaseContract {
740
1325
  ], [
741
1326
  string
742
1327
  ], "view">;
1328
+ getFunction(nameOrSignature: "get_admin_used_ids"): TypedContractMethod<[ids: BigNumberish[]], [bigint[]], "view">;
743
1329
  getFunction(nameOrSignature: "get_used_ids"): TypedContractMethod<[ids: BigNumberish[]], [bigint[]], "view">;
744
1330
  getFunction(nameOrSignature: "grantRole"): TypedContractMethod<[
745
1331
  role: BytesLike,
@@ -757,7 +1343,10 @@ export interface Escrow extends BaseContract {
757
1343
  _operator: AddressLike,
758
1344
  _fundsManager: AddressLike,
759
1345
  _version: string,
760
- _tokens: AddressLike[]
1346
+ _tokens: AddressLike[],
1347
+ _multisigConfigs: Types.MultisigConfigInputStruct[],
1348
+ _adminMultisigConfigs: Types.AdminMultisigConfigSetupStruct[],
1349
+ _maxFundWalletAmount: BigNumberish
761
1350
  ], [
762
1351
  void
763
1352
  ], "nonpayable">;
@@ -766,6 +1355,14 @@ export interface Escrow extends BaseContract {
766
1355
  getFunction(nameOrSignature: "isWhitelisted"): TypedContractMethod<[_token: AddressLike], [boolean], "view">;
767
1356
  getFunction(nameOrSignature: "nonces"): TypedContractMethod<[_owner: AddressLike], [bigint], "view">;
768
1357
  getFunction(nameOrSignature: "pause"): TypedContractMethod<[], [void], "nonpayable">;
1358
+ getFunction(nameOrSignature: "receiverTimelockConfig"): TypedContractMethod<[
1359
+ arg0: AddressLike
1360
+ ], [
1361
+ [bigint, boolean] & {
1362
+ duration: bigint;
1363
+ configured: boolean;
1364
+ }
1365
+ ], "view">;
769
1366
  getFunction(nameOrSignature: "removeTokens"): TypedContractMethod<[tokens: AddressLike[]], [void], "nonpayable">;
770
1367
  getFunction(nameOrSignature: "renounceRole"): TypedContractMethod<[
771
1368
  role: BytesLike,
@@ -773,6 +1370,12 @@ export interface Escrow extends BaseContract {
773
1370
  ], [
774
1371
  void
775
1372
  ], "nonpayable">;
1373
+ getFunction(nameOrSignature: "reset_admin_request_ids"): TypedContractMethod<[
1374
+ start: BigNumberish,
1375
+ end: BigNumberish
1376
+ ], [
1377
+ void
1378
+ ], "nonpayable">;
776
1379
  getFunction(nameOrSignature: "reset_request_ids"): TypedContractMethod<[
777
1380
  start: BigNumberish,
778
1381
  end: BigNumberish
@@ -785,13 +1388,38 @@ export interface Escrow extends BaseContract {
785
1388
  ], [
786
1389
  void
787
1390
  ], "nonpayable">;
788
- getFunction(nameOrSignature: "setOperator"): TypedContractMethod<[_operator: AddressLike], [void], "nonpayable">;
789
- getFunction(nameOrSignature: "setTransactionStatus"): TypedContractMethod<[
790
- totalCount: BigNumberish,
791
- blockNumber: BigNumberish
1391
+ getFunction(nameOrSignature: "setAdminTokenMultisigThreshold"): TypedContractMethod<[
1392
+ configData: Types.SetAdminMultisigConfigSignDataStruct,
1393
+ signatures: Types.SignatureStruct[]
1394
+ ], [
1395
+ void
1396
+ ], "nonpayable">;
1397
+ getFunction(nameOrSignature: "setGroupConfig"): TypedContractMethod<[
1398
+ opType: BigNumberish,
1399
+ sigsManager: BigNumberish,
1400
+ sigsExecutive: BigNumberish
792
1401
  ], [
793
1402
  void
794
1403
  ], "nonpayable">;
1404
+ getFunction(nameOrSignature: "setTimelock"): TypedContractMethod<[
1405
+ configData: Types.SetTimelockConfigSignDataStruct,
1406
+ signatures: Types.SignatureStruct[]
1407
+ ], [
1408
+ void
1409
+ ], "nonpayable">;
1410
+ getFunction(nameOrSignature: "setTimelockGranular"): TypedContractMethod<[
1411
+ configData: Types.SetReceiverTimelockConfigSignDataStruct,
1412
+ signatures: Types.SignatureStruct[]
1413
+ ], [
1414
+ void
1415
+ ], "nonpayable">;
1416
+ getFunction(nameOrSignature: "setTokenMultisigThreshold"): TypedContractMethod<[
1417
+ configData: Types.SetMultisigConfigSignDataStruct,
1418
+ signatures: Types.SignatureStruct[]
1419
+ ], [
1420
+ void
1421
+ ], "nonpayable">;
1422
+ getFunction(nameOrSignature: "signerBitmap"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
795
1423
  getFunction(nameOrSignature: "supportsInterface"): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
796
1424
  getFunction(nameOrSignature: "sweepFunds"): TypedContractMethod<[
797
1425
  wallet: AddressLike,
@@ -799,6 +1427,35 @@ export interface Escrow extends BaseContract {
799
1427
  ], [
800
1428
  boolean
801
1429
  ], "payable">;
1430
+ getFunction(nameOrSignature: "timelockCommitments"): TypedContractMethod<[arg0: BytesLike], [boolean], "view">;
1431
+ getFunction(nameOrSignature: "timelockConfig"): TypedContractMethod<[
1432
+ arg0: AddressLike
1433
+ ], [
1434
+ [
1435
+ bigint,
1436
+ bigint,
1437
+ bigint,
1438
+ boolean
1439
+ ] & {
1440
+ thresholdAmount: bigint;
1441
+ durationBelow: bigint;
1442
+ durationAbove: bigint;
1443
+ configured: boolean;
1444
+ }
1445
+ ], "view">;
1446
+ getFunction(nameOrSignature: "timelockConfigNonce"): TypedContractMethod<[], [bigint], "view">;
1447
+ getFunction(nameOrSignature: "timelockThresholdSettings"): TypedContractMethod<[], [bigint], "view">;
1448
+ getFunction(nameOrSignature: "tokenThresholdSettings"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
1449
+ getFunction(nameOrSignature: "unpackAdminThresholds"): TypedContractMethod<[
1450
+ packed: BigNumberish
1451
+ ], [
1452
+ Types.AdminMultisigConfigStructOutput
1453
+ ], "view">;
1454
+ getFunction(nameOrSignature: "unpackTokenThresholds"): TypedContractMethod<[
1455
+ packed: BigNumberish
1456
+ ], [
1457
+ Types.MultisigConfigStructOutput
1458
+ ], "view">;
802
1459
  getFunction(nameOrSignature: "unpause"): TypedContractMethod<[], [void], "nonpayable">;
803
1460
  getFunction(nameOrSignature: "whitelist"): TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
804
1461
  getFunction(nameOrSignature: "withdraw"): TypedContractMethod<[
@@ -810,7 +1467,19 @@ export interface Escrow extends BaseContract {
810
1467
  ], [
811
1468
  void
812
1469
  ], "nonpayable">;
1470
+ getFunction(nameOrSignature: "withdrawWithTimelock"): TypedContractMethod<[
1471
+ amount: BigNumberish,
1472
+ requestId: BigNumberish,
1473
+ tokenAddress: AddressLike,
1474
+ receiverAddress: AddressLike,
1475
+ operatorSignature: Types.SignatureStruct,
1476
+ signatures: Types.SignatureStruct[]
1477
+ ], [
1478
+ void
1479
+ ], "nonpayable">;
813
1480
  getEvent(key: "AdminWithdraw"): TypedContractEvent<AdminWithdrawEvent.InputTuple, AdminWithdrawEvent.OutputTuple, AdminWithdrawEvent.OutputObject>;
1481
+ getEvent(key: "ConfigureAdminMultisig"): TypedContractEvent<ConfigureAdminMultisigEvent.InputTuple, ConfigureAdminMultisigEvent.OutputTuple, ConfigureAdminMultisigEvent.OutputObject>;
1482
+ getEvent(key: "ConfigureTokenMultisig"): TypedContractEvent<ConfigureTokenMultisigEvent.InputTuple, ConfigureTokenMultisigEvent.OutputTuple, ConfigureTokenMultisigEvent.OutputObject>;
814
1483
  getEvent(key: "Deposit"): TypedContractEvent<DepositEvent.InputTuple, DepositEvent.OutputTuple, DepositEvent.OutputObject>;
815
1484
  getEvent(key: "FundWallets"): TypedContractEvent<FundWalletsEvent.InputTuple, FundWalletsEvent.OutputTuple, FundWalletsEvent.OutputObject>;
816
1485
  getEvent(key: "FundedContract"): TypedContractEvent<FundedContractEvent.InputTuple, FundedContractEvent.OutputTuple, FundedContractEvent.OutputObject>;
@@ -819,14 +1488,22 @@ export interface Escrow extends BaseContract {
819
1488
  getEvent(key: "RoleAdminChanged"): TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
820
1489
  getEvent(key: "RoleGranted"): TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
821
1490
  getEvent(key: "RoleRevoked"): TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
1491
+ getEvent(key: "SetTimelockGranular"): TypedContractEvent<SetTimelockGranularEvent.InputTuple, SetTimelockGranularEvent.OutputTuple, SetTimelockGranularEvent.OutputObject>;
1492
+ getEvent(key: "SetTokenTimelock"): TypedContractEvent<SetTokenTimelockEvent.InputTuple, SetTokenTimelockEvent.OutputTuple, SetTokenTimelockEvent.OutputObject>;
822
1493
  getEvent(key: "SweepTokens"): TypedContractEvent<SweepTokensEvent.InputTuple, SweepTokensEvent.OutputTuple, SweepTokensEvent.OutputObject>;
823
1494
  getEvent(key: "TokenAdded"): TypedContractEvent<TokenAddedEvent.InputTuple, TokenAddedEvent.OutputTuple, TokenAddedEvent.OutputObject>;
824
1495
  getEvent(key: "TokenRemoved"): TypedContractEvent<TokenRemovedEvent.InputTuple, TokenRemovedEvent.OutputTuple, TokenRemovedEvent.OutputObject>;
825
- getEvent(key: "TransactionCount"): TypedContractEvent<TransactionCountEvent.InputTuple, TransactionCountEvent.OutputTuple, TransactionCountEvent.OutputObject>;
826
1496
  getEvent(key: "Withdrawal"): TypedContractEvent<WithdrawalEvent.InputTuple, WithdrawalEvent.OutputTuple, WithdrawalEvent.OutputObject>;
1497
+ getEvent(key: "WithdrawalCancelled"): TypedContractEvent<WithdrawalCancelledEvent.InputTuple, WithdrawalCancelledEvent.OutputTuple, WithdrawalCancelledEvent.OutputObject>;
1498
+ getEvent(key: "WithdrawalExecuted"): TypedContractEvent<WithdrawalExecutedEvent.InputTuple, WithdrawalExecutedEvent.OutputTuple, WithdrawalExecutedEvent.OutputObject>;
1499
+ getEvent(key: "WithdrawalScheduled"): TypedContractEvent<WithdrawalScheduledEvent.InputTuple, WithdrawalScheduledEvent.OutputTuple, WithdrawalScheduledEvent.OutputObject>;
827
1500
  filters: {
828
- "AdminWithdraw(address,address,uint256,address)": TypedContractEvent<AdminWithdrawEvent.InputTuple, AdminWithdrawEvent.OutputTuple, AdminWithdrawEvent.OutputObject>;
1501
+ "AdminWithdraw(address,address,uint256,address,uint256)": TypedContractEvent<AdminWithdrawEvent.InputTuple, AdminWithdrawEvent.OutputTuple, AdminWithdrawEvent.OutputObject>;
829
1502
  AdminWithdraw: TypedContractEvent<AdminWithdrawEvent.InputTuple, AdminWithdrawEvent.OutputTuple, AdminWithdrawEvent.OutputObject>;
1503
+ "ConfigureAdminMultisig(uint8,uint256,uint256)": TypedContractEvent<ConfigureAdminMultisigEvent.InputTuple, ConfigureAdminMultisigEvent.OutputTuple, ConfigureAdminMultisigEvent.OutputObject>;
1504
+ ConfigureAdminMultisig: TypedContractEvent<ConfigureAdminMultisigEvent.InputTuple, ConfigureAdminMultisigEvent.OutputTuple, ConfigureAdminMultisigEvent.OutputObject>;
1505
+ "ConfigureTokenMultisig(uint8,address,uint256,uint8,uint8,uint8,uint8)": TypedContractEvent<ConfigureTokenMultisigEvent.InputTuple, ConfigureTokenMultisigEvent.OutputTuple, ConfigureTokenMultisigEvent.OutputObject>;
1506
+ ConfigureTokenMultisig: TypedContractEvent<ConfigureTokenMultisigEvent.InputTuple, ConfigureTokenMultisigEvent.OutputTuple, ConfigureTokenMultisigEvent.OutputObject>;
830
1507
  "Deposit(address,address,uint256,string)": TypedContractEvent<DepositEvent.InputTuple, DepositEvent.OutputTuple, DepositEvent.OutputObject>;
831
1508
  Deposit: TypedContractEvent<DepositEvent.InputTuple, DepositEvent.OutputTuple, DepositEvent.OutputObject>;
832
1509
  "FundWallets()": TypedContractEvent<FundWalletsEvent.InputTuple, FundWalletsEvent.OutputTuple, FundWalletsEvent.OutputObject>;
@@ -843,16 +1520,24 @@ export interface Escrow extends BaseContract {
843
1520
  RoleGranted: TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
844
1521
  "RoleRevoked(bytes32,address,address)": TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
845
1522
  RoleRevoked: TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
1523
+ "SetTimelockGranular(address,uint256)": TypedContractEvent<SetTimelockGranularEvent.InputTuple, SetTimelockGranularEvent.OutputTuple, SetTimelockGranularEvent.OutputObject>;
1524
+ SetTimelockGranular: TypedContractEvent<SetTimelockGranularEvent.InputTuple, SetTimelockGranularEvent.OutputTuple, SetTimelockGranularEvent.OutputObject>;
1525
+ "SetTokenTimelock(address,uint256,uint256,uint256)": TypedContractEvent<SetTokenTimelockEvent.InputTuple, SetTokenTimelockEvent.OutputTuple, SetTokenTimelockEvent.OutputObject>;
1526
+ SetTokenTimelock: TypedContractEvent<SetTokenTimelockEvent.InputTuple, SetTokenTimelockEvent.OutputTuple, SetTokenTimelockEvent.OutputObject>;
846
1527
  "SweepTokens(address,address,address,address,uint256)": TypedContractEvent<SweepTokensEvent.InputTuple, SweepTokensEvent.OutputTuple, SweepTokensEvent.OutputObject>;
847
1528
  SweepTokens: TypedContractEvent<SweepTokensEvent.InputTuple, SweepTokensEvent.OutputTuple, SweepTokensEvent.OutputObject>;
848
1529
  "TokenAdded(address)": TypedContractEvent<TokenAddedEvent.InputTuple, TokenAddedEvent.OutputTuple, TokenAddedEvent.OutputObject>;
849
1530
  TokenAdded: TypedContractEvent<TokenAddedEvent.InputTuple, TokenAddedEvent.OutputTuple, TokenAddedEvent.OutputObject>;
850
1531
  "TokenRemoved(address)": TypedContractEvent<TokenRemovedEvent.InputTuple, TokenRemovedEvent.OutputTuple, TokenRemovedEvent.OutputObject>;
851
1532
  TokenRemoved: TypedContractEvent<TokenRemovedEvent.InputTuple, TokenRemovedEvent.OutputTuple, TokenRemovedEvent.OutputObject>;
852
- "TransactionCount(uint256,uint256)": TypedContractEvent<TransactionCountEvent.InputTuple, TransactionCountEvent.OutputTuple, TransactionCountEvent.OutputObject>;
853
- TransactionCount: TypedContractEvent<TransactionCountEvent.InputTuple, TransactionCountEvent.OutputTuple, TransactionCountEvent.OutputObject>;
854
1533
  "Withdrawal(address,address,address,uint256,uint256,uint32)": TypedContractEvent<WithdrawalEvent.InputTuple, WithdrawalEvent.OutputTuple, WithdrawalEvent.OutputObject>;
855
1534
  Withdrawal: TypedContractEvent<WithdrawalEvent.InputTuple, WithdrawalEvent.OutputTuple, WithdrawalEvent.OutputObject>;
1535
+ "WithdrawalCancelled(bytes32,uint256)": TypedContractEvent<WithdrawalCancelledEvent.InputTuple, WithdrawalCancelledEvent.OutputTuple, WithdrawalCancelledEvent.OutputObject>;
1536
+ WithdrawalCancelled: TypedContractEvent<WithdrawalCancelledEvent.InputTuple, WithdrawalCancelledEvent.OutputTuple, WithdrawalCancelledEvent.OutputObject>;
1537
+ "WithdrawalExecuted(bytes32,uint256)": TypedContractEvent<WithdrawalExecutedEvent.InputTuple, WithdrawalExecutedEvent.OutputTuple, WithdrawalExecutedEvent.OutputObject>;
1538
+ WithdrawalExecuted: TypedContractEvent<WithdrawalExecutedEvent.InputTuple, WithdrawalExecutedEvent.OutputTuple, WithdrawalExecutedEvent.OutputObject>;
1539
+ "WithdrawalScheduled(bytes32,uint256,uint256,address,address,uint256)": TypedContractEvent<WithdrawalScheduledEvent.InputTuple, WithdrawalScheduledEvent.OutputTuple, WithdrawalScheduledEvent.OutputObject>;
1540
+ WithdrawalScheduled: TypedContractEvent<WithdrawalScheduledEvent.InputTuple, WithdrawalScheduledEvent.OutputTuple, WithdrawalScheduledEvent.OutputObject>;
856
1541
  };
857
1542
  }
858
1543
  //# sourceMappingURL=Escrow.d.ts.map