@pyratzlabs/react-fhevm-utils 2.3.2 → 2.3.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.
- package/dist/client/hooks/useEncryptedBatchTransfer.d.ts +1 -1
- package/dist/client/hooks/useEncryptedBatchTransfer.js +4 -1
- package/dist/client/hooks/useUnwrap.d.ts +1 -1
- package/dist/client/hooks/useUnwrap.js +1 -4
- package/dist/types/ABI/FeeManager.abi.d.ts +214 -76
- package/dist/types/ABI/FeeManager.abi.js +259 -80
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ interface BatchTransferData {
|
|
|
8
8
|
inputProof: Address;
|
|
9
9
|
}
|
|
10
10
|
export declare const useEncryptedBatchTransfer: ({ batcherAddress }: Props) => {
|
|
11
|
-
batchTransfer: (tokenAddress: Address, batchTransferData: BatchTransferData[]) => void;
|
|
11
|
+
batchTransfer: (tokenAddress: Address, batchTransferData: BatchTransferData[], fees?: bigint) => void;
|
|
12
12
|
isLoading: boolean;
|
|
13
13
|
isFailed: boolean;
|
|
14
14
|
isSuccess: boolean;
|
|
@@ -6,9 +6,12 @@ export const useEncryptedBatchTransfer = ({ batcherAddress }) => {
|
|
|
6
6
|
address: batcherAddress,
|
|
7
7
|
functionName: "confidentialBatchTransfer",
|
|
8
8
|
});
|
|
9
|
-
const batchTransfer = (tokenAddress, batchTransferData) => {
|
|
9
|
+
const batchTransfer = (tokenAddress, batchTransferData, fees) => {
|
|
10
|
+
if (!fees)
|
|
11
|
+
throw new Error("BATCH TRANSFER: Fees must be provided");
|
|
10
12
|
perform({
|
|
11
13
|
args: [tokenAddress, batchTransferData],
|
|
14
|
+
value: fees,
|
|
12
15
|
});
|
|
13
16
|
};
|
|
14
17
|
return {
|
|
@@ -3,7 +3,7 @@ interface Props {
|
|
|
3
3
|
encryptedErc20: Address;
|
|
4
4
|
}
|
|
5
5
|
export declare const useUnwrap: ({ encryptedErc20 }: Props) => {
|
|
6
|
-
unwrap: (wrapperAddress: Address, handles: Uint8Array[], inputProof: Uint8Array
|
|
6
|
+
unwrap: (wrapperAddress: Address, handles: Uint8Array[], inputProof: Uint8Array) => void;
|
|
7
7
|
isFailed: boolean;
|
|
8
8
|
isLoading: boolean;
|
|
9
9
|
isSuccess: boolean;
|
|
@@ -10,17 +10,14 @@ export const useUnwrap = ({ encryptedErc20 }) => {
|
|
|
10
10
|
address: encryptedErc20,
|
|
11
11
|
functionName: "confidentialTransferAndCall",
|
|
12
12
|
});
|
|
13
|
-
const unwrap = (wrapperAddress, handles, inputProof
|
|
13
|
+
const unwrap = (wrapperAddress, handles, inputProof) => {
|
|
14
14
|
if (!address)
|
|
15
15
|
throw new Error("UNWRAP: User is not connected");
|
|
16
|
-
if (!unwrapFee)
|
|
17
|
-
throw new Error("UNWRAP: Wrap fee is required");
|
|
18
16
|
const handle = toHexString(handles[0]);
|
|
19
17
|
const proof = toHexString(inputProof);
|
|
20
18
|
const data = encodeAbiParameters([{ type: "address" }, { type: "bytes" }], [address, "0x"]);
|
|
21
19
|
perform({
|
|
22
20
|
args: [wrapperAddress, handle, proof, data],
|
|
23
|
-
value: unwrapFee,
|
|
24
21
|
});
|
|
25
22
|
};
|
|
26
23
|
return { unwrap, isFailed, isLoading, isSuccess };
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
export declare const FEE_MANAGER_ABI: readonly [{
|
|
2
2
|
readonly inputs: readonly [{
|
|
3
|
-
readonly internalType: "uint64";
|
|
4
|
-
readonly name: "transferFee_";
|
|
5
|
-
readonly type: "uint64";
|
|
6
|
-
}, {
|
|
7
3
|
readonly internalType: "uint64";
|
|
8
4
|
readonly name: "wrapFeeBasisPoints_";
|
|
9
5
|
readonly type: "uint64";
|
|
@@ -15,6 +11,10 @@ export declare const FEE_MANAGER_ABI: readonly [{
|
|
|
15
11
|
readonly internalType: "uint64";
|
|
16
12
|
readonly name: "deployFee_";
|
|
17
13
|
readonly type: "uint64";
|
|
14
|
+
}, {
|
|
15
|
+
readonly internalType: "uint64";
|
|
16
|
+
readonly name: "batchTransferFee_";
|
|
17
|
+
readonly type: "uint64";
|
|
18
18
|
}, {
|
|
19
19
|
readonly internalType: "address";
|
|
20
20
|
readonly name: "feeRecipient_";
|
|
@@ -24,28 +24,43 @@ export declare const FEE_MANAGER_ABI: readonly [{
|
|
|
24
24
|
readonly type: "constructor";
|
|
25
25
|
}, {
|
|
26
26
|
readonly inputs: readonly [];
|
|
27
|
-
readonly name: "
|
|
27
|
+
readonly name: "AccessControlBadConfirmation";
|
|
28
28
|
readonly type: "error";
|
|
29
29
|
}, {
|
|
30
30
|
readonly inputs: readonly [{
|
|
31
31
|
readonly internalType: "address";
|
|
32
|
-
readonly name: "
|
|
32
|
+
readonly name: "account";
|
|
33
33
|
readonly type: "address";
|
|
34
|
+
}, {
|
|
35
|
+
readonly internalType: "bytes32";
|
|
36
|
+
readonly name: "neededRole";
|
|
37
|
+
readonly type: "bytes32";
|
|
34
38
|
}];
|
|
35
|
-
readonly name: "
|
|
39
|
+
readonly name: "AccessControlUnauthorizedAccount";
|
|
36
40
|
readonly type: "error";
|
|
37
41
|
}, {
|
|
38
|
-
readonly inputs: readonly [
|
|
39
|
-
|
|
40
|
-
readonly name: "account";
|
|
41
|
-
readonly type: "address";
|
|
42
|
-
}];
|
|
43
|
-
readonly name: "OwnableUnauthorizedAccount";
|
|
42
|
+
readonly inputs: readonly [];
|
|
43
|
+
readonly name: "FeeExceedsMaximum";
|
|
44
44
|
readonly type: "error";
|
|
45
45
|
}, {
|
|
46
46
|
readonly inputs: readonly [];
|
|
47
47
|
readonly name: "ZeroAddressFeeRecipient";
|
|
48
48
|
readonly type: "error";
|
|
49
|
+
}, {
|
|
50
|
+
readonly anonymous: false;
|
|
51
|
+
readonly inputs: readonly [{
|
|
52
|
+
readonly indexed: false;
|
|
53
|
+
readonly internalType: "uint64";
|
|
54
|
+
readonly name: "oldBatchTransferFee";
|
|
55
|
+
readonly type: "uint64";
|
|
56
|
+
}, {
|
|
57
|
+
readonly indexed: false;
|
|
58
|
+
readonly internalType: "uint64";
|
|
59
|
+
readonly name: "newBatchTransferFee";
|
|
60
|
+
readonly type: "uint64";
|
|
61
|
+
}];
|
|
62
|
+
readonly name: "BatchTransferFeeUpdated";
|
|
63
|
+
readonly type: "event";
|
|
49
64
|
}, {
|
|
50
65
|
readonly anonymous: false;
|
|
51
66
|
readonly inputs: readonly [{
|
|
@@ -79,47 +94,72 @@ export declare const FEE_MANAGER_ABI: readonly [{
|
|
|
79
94
|
}, {
|
|
80
95
|
readonly anonymous: false;
|
|
81
96
|
readonly inputs: readonly [{
|
|
97
|
+
readonly indexed: true;
|
|
98
|
+
readonly internalType: "bytes32";
|
|
99
|
+
readonly name: "role";
|
|
100
|
+
readonly type: "bytes32";
|
|
101
|
+
}, {
|
|
102
|
+
readonly indexed: true;
|
|
103
|
+
readonly internalType: "bytes32";
|
|
104
|
+
readonly name: "previousAdminRole";
|
|
105
|
+
readonly type: "bytes32";
|
|
106
|
+
}, {
|
|
107
|
+
readonly indexed: true;
|
|
108
|
+
readonly internalType: "bytes32";
|
|
109
|
+
readonly name: "newAdminRole";
|
|
110
|
+
readonly type: "bytes32";
|
|
111
|
+
}];
|
|
112
|
+
readonly name: "RoleAdminChanged";
|
|
113
|
+
readonly type: "event";
|
|
114
|
+
}, {
|
|
115
|
+
readonly anonymous: false;
|
|
116
|
+
readonly inputs: readonly [{
|
|
117
|
+
readonly indexed: true;
|
|
118
|
+
readonly internalType: "bytes32";
|
|
119
|
+
readonly name: "role";
|
|
120
|
+
readonly type: "bytes32";
|
|
121
|
+
}, {
|
|
82
122
|
readonly indexed: true;
|
|
83
123
|
readonly internalType: "address";
|
|
84
|
-
readonly name: "
|
|
124
|
+
readonly name: "account";
|
|
85
125
|
readonly type: "address";
|
|
86
126
|
}, {
|
|
87
127
|
readonly indexed: true;
|
|
88
128
|
readonly internalType: "address";
|
|
89
|
-
readonly name: "
|
|
129
|
+
readonly name: "sender";
|
|
90
130
|
readonly type: "address";
|
|
91
131
|
}];
|
|
92
|
-
readonly name: "
|
|
132
|
+
readonly name: "RoleGranted";
|
|
93
133
|
readonly type: "event";
|
|
94
134
|
}, {
|
|
95
135
|
readonly anonymous: false;
|
|
96
136
|
readonly inputs: readonly [{
|
|
137
|
+
readonly indexed: true;
|
|
138
|
+
readonly internalType: "bytes32";
|
|
139
|
+
readonly name: "role";
|
|
140
|
+
readonly type: "bytes32";
|
|
141
|
+
}, {
|
|
97
142
|
readonly indexed: true;
|
|
98
143
|
readonly internalType: "address";
|
|
99
|
-
readonly name: "
|
|
144
|
+
readonly name: "account";
|
|
100
145
|
readonly type: "address";
|
|
101
146
|
}, {
|
|
102
147
|
readonly indexed: true;
|
|
103
148
|
readonly internalType: "address";
|
|
104
|
-
readonly name: "
|
|
149
|
+
readonly name: "sender";
|
|
105
150
|
readonly type: "address";
|
|
106
151
|
}];
|
|
107
|
-
readonly name: "
|
|
152
|
+
readonly name: "RoleRevoked";
|
|
108
153
|
readonly type: "event";
|
|
109
154
|
}, {
|
|
110
155
|
readonly anonymous: false;
|
|
111
156
|
readonly inputs: readonly [{
|
|
112
157
|
readonly indexed: false;
|
|
113
|
-
readonly internalType: "
|
|
114
|
-
readonly name: "
|
|
115
|
-
readonly type: "
|
|
116
|
-
}, {
|
|
117
|
-
readonly indexed: false;
|
|
118
|
-
readonly internalType: "uint64";
|
|
119
|
-
readonly name: "newTransferFee";
|
|
120
|
-
readonly type: "uint64";
|
|
158
|
+
readonly internalType: "bool";
|
|
159
|
+
readonly name: "active";
|
|
160
|
+
readonly type: "bool";
|
|
121
161
|
}];
|
|
122
|
-
readonly name: "
|
|
162
|
+
readonly name: "SwapperFeeWaiverUpdated";
|
|
123
163
|
readonly type: "event";
|
|
124
164
|
}, {
|
|
125
165
|
readonly anonymous: false;
|
|
@@ -153,9 +193,53 @@ export declare const FEE_MANAGER_ABI: readonly [{
|
|
|
153
193
|
readonly type: "event";
|
|
154
194
|
}, {
|
|
155
195
|
readonly inputs: readonly [];
|
|
156
|
-
readonly name: "
|
|
157
|
-
readonly outputs: readonly [
|
|
158
|
-
|
|
196
|
+
readonly name: "DEFAULT_ADMIN_ROLE";
|
|
197
|
+
readonly outputs: readonly [{
|
|
198
|
+
readonly internalType: "bytes32";
|
|
199
|
+
readonly name: "";
|
|
200
|
+
readonly type: "bytes32";
|
|
201
|
+
}];
|
|
202
|
+
readonly stateMutability: "view";
|
|
203
|
+
readonly type: "function";
|
|
204
|
+
}, {
|
|
205
|
+
readonly inputs: readonly [];
|
|
206
|
+
readonly name: "FEE_MANAGER_ROLE";
|
|
207
|
+
readonly outputs: readonly [{
|
|
208
|
+
readonly internalType: "bytes32";
|
|
209
|
+
readonly name: "";
|
|
210
|
+
readonly type: "bytes32";
|
|
211
|
+
}];
|
|
212
|
+
readonly stateMutability: "view";
|
|
213
|
+
readonly type: "function";
|
|
214
|
+
}, {
|
|
215
|
+
readonly inputs: readonly [];
|
|
216
|
+
readonly name: "MAX_BASIS_POINTS";
|
|
217
|
+
readonly outputs: readonly [{
|
|
218
|
+
readonly internalType: "uint64";
|
|
219
|
+
readonly name: "";
|
|
220
|
+
readonly type: "uint64";
|
|
221
|
+
}];
|
|
222
|
+
readonly stateMutability: "view";
|
|
223
|
+
readonly type: "function";
|
|
224
|
+
}, {
|
|
225
|
+
readonly inputs: readonly [];
|
|
226
|
+
readonly name: "SWAPPER_ROLE";
|
|
227
|
+
readonly outputs: readonly [{
|
|
228
|
+
readonly internalType: "bytes32";
|
|
229
|
+
readonly name: "";
|
|
230
|
+
readonly type: "bytes32";
|
|
231
|
+
}];
|
|
232
|
+
readonly stateMutability: "view";
|
|
233
|
+
readonly type: "function";
|
|
234
|
+
}, {
|
|
235
|
+
readonly inputs: readonly [];
|
|
236
|
+
readonly name: "batchTransferFee";
|
|
237
|
+
readonly outputs: readonly [{
|
|
238
|
+
readonly internalType: "uint64";
|
|
239
|
+
readonly name: "";
|
|
240
|
+
readonly type: "uint64";
|
|
241
|
+
}];
|
|
242
|
+
readonly stateMutability: "view";
|
|
159
243
|
readonly type: "function";
|
|
160
244
|
}, {
|
|
161
245
|
readonly inputs: readonly [];
|
|
@@ -177,6 +261,16 @@ export declare const FEE_MANAGER_ABI: readonly [{
|
|
|
177
261
|
}];
|
|
178
262
|
readonly stateMutability: "view";
|
|
179
263
|
readonly type: "function";
|
|
264
|
+
}, {
|
|
265
|
+
readonly inputs: readonly [];
|
|
266
|
+
readonly name: "getBatchTransferFee";
|
|
267
|
+
readonly outputs: readonly [{
|
|
268
|
+
readonly internalType: "uint64";
|
|
269
|
+
readonly name: "";
|
|
270
|
+
readonly type: "uint64";
|
|
271
|
+
}];
|
|
272
|
+
readonly stateMutability: "view";
|
|
273
|
+
readonly type: "function";
|
|
180
274
|
}, {
|
|
181
275
|
readonly inputs: readonly [{
|
|
182
276
|
readonly internalType: "address";
|
|
@@ -203,27 +297,23 @@ export declare const FEE_MANAGER_ABI: readonly [{
|
|
|
203
297
|
readonly type: "function";
|
|
204
298
|
}, {
|
|
205
299
|
readonly inputs: readonly [{
|
|
206
|
-
readonly internalType: "
|
|
207
|
-
readonly name: "
|
|
208
|
-
readonly type: "
|
|
209
|
-
}, {
|
|
210
|
-
readonly internalType: "address";
|
|
211
|
-
readonly name: "transferTo";
|
|
212
|
-
readonly type: "address";
|
|
300
|
+
readonly internalType: "bytes32";
|
|
301
|
+
readonly name: "role";
|
|
302
|
+
readonly type: "bytes32";
|
|
213
303
|
}];
|
|
214
|
-
readonly name: "
|
|
304
|
+
readonly name: "getRoleAdmin";
|
|
215
305
|
readonly outputs: readonly [{
|
|
216
|
-
readonly internalType: "
|
|
306
|
+
readonly internalType: "bytes32";
|
|
217
307
|
readonly name: "";
|
|
218
|
-
readonly type: "
|
|
308
|
+
readonly type: "bytes32";
|
|
219
309
|
}];
|
|
220
310
|
readonly stateMutability: "view";
|
|
221
311
|
readonly type: "function";
|
|
222
312
|
}, {
|
|
223
313
|
readonly inputs: readonly [{
|
|
224
|
-
readonly internalType: "
|
|
314
|
+
readonly internalType: "uint64";
|
|
225
315
|
readonly name: "amount";
|
|
226
|
-
readonly type: "
|
|
316
|
+
readonly type: "uint64";
|
|
227
317
|
}, {
|
|
228
318
|
readonly internalType: "address";
|
|
229
319
|
readonly name: "unwrapFrom";
|
|
@@ -235,17 +325,17 @@ export declare const FEE_MANAGER_ABI: readonly [{
|
|
|
235
325
|
}];
|
|
236
326
|
readonly name: "getUnwrapFee";
|
|
237
327
|
readonly outputs: readonly [{
|
|
238
|
-
readonly internalType: "
|
|
328
|
+
readonly internalType: "uint64";
|
|
239
329
|
readonly name: "";
|
|
240
|
-
readonly type: "
|
|
330
|
+
readonly type: "uint64";
|
|
241
331
|
}];
|
|
242
|
-
readonly stateMutability: "
|
|
332
|
+
readonly stateMutability: "view";
|
|
243
333
|
readonly type: "function";
|
|
244
334
|
}, {
|
|
245
335
|
readonly inputs: readonly [{
|
|
246
|
-
readonly internalType: "
|
|
336
|
+
readonly internalType: "uint256";
|
|
247
337
|
readonly name: "amount";
|
|
248
|
-
readonly type: "
|
|
338
|
+
readonly type: "uint256";
|
|
249
339
|
}, {
|
|
250
340
|
readonly internalType: "address";
|
|
251
341
|
readonly name: "wrapFrom";
|
|
@@ -257,30 +347,42 @@ export declare const FEE_MANAGER_ABI: readonly [{
|
|
|
257
347
|
}];
|
|
258
348
|
readonly name: "getWrapFee";
|
|
259
349
|
readonly outputs: readonly [{
|
|
260
|
-
readonly internalType: "
|
|
350
|
+
readonly internalType: "uint256";
|
|
261
351
|
readonly name: "";
|
|
262
|
-
readonly type: "
|
|
352
|
+
readonly type: "uint256";
|
|
263
353
|
}];
|
|
264
354
|
readonly stateMutability: "view";
|
|
265
355
|
readonly type: "function";
|
|
266
356
|
}, {
|
|
267
|
-
readonly inputs: readonly [
|
|
268
|
-
|
|
269
|
-
|
|
357
|
+
readonly inputs: readonly [{
|
|
358
|
+
readonly internalType: "bytes32";
|
|
359
|
+
readonly name: "role";
|
|
360
|
+
readonly type: "bytes32";
|
|
361
|
+
}, {
|
|
270
362
|
readonly internalType: "address";
|
|
271
|
-
readonly name: "";
|
|
363
|
+
readonly name: "account";
|
|
272
364
|
readonly type: "address";
|
|
273
365
|
}];
|
|
274
|
-
readonly
|
|
366
|
+
readonly name: "grantRole";
|
|
367
|
+
readonly outputs: readonly [];
|
|
368
|
+
readonly stateMutability: "nonpayable";
|
|
275
369
|
readonly type: "function";
|
|
276
370
|
}, {
|
|
277
|
-
readonly inputs: readonly [
|
|
278
|
-
|
|
279
|
-
|
|
371
|
+
readonly inputs: readonly [{
|
|
372
|
+
readonly internalType: "bytes32";
|
|
373
|
+
readonly name: "role";
|
|
374
|
+
readonly type: "bytes32";
|
|
375
|
+
}, {
|
|
280
376
|
readonly internalType: "address";
|
|
281
|
-
readonly name: "";
|
|
377
|
+
readonly name: "account";
|
|
282
378
|
readonly type: "address";
|
|
283
379
|
}];
|
|
380
|
+
readonly name: "hasRole";
|
|
381
|
+
readonly outputs: readonly [{
|
|
382
|
+
readonly internalType: "bool";
|
|
383
|
+
readonly name: "";
|
|
384
|
+
readonly type: "bool";
|
|
385
|
+
}];
|
|
284
386
|
readonly stateMutability: "view";
|
|
285
387
|
readonly type: "function";
|
|
286
388
|
}, {
|
|
@@ -294,8 +396,40 @@ export declare const FEE_MANAGER_ABI: readonly [{
|
|
|
294
396
|
readonly stateMutability: "pure";
|
|
295
397
|
readonly type: "function";
|
|
296
398
|
}, {
|
|
297
|
-
readonly inputs: readonly [
|
|
298
|
-
|
|
399
|
+
readonly inputs: readonly [{
|
|
400
|
+
readonly internalType: "bytes32";
|
|
401
|
+
readonly name: "role";
|
|
402
|
+
readonly type: "bytes32";
|
|
403
|
+
}, {
|
|
404
|
+
readonly internalType: "address";
|
|
405
|
+
readonly name: "callerConfirmation";
|
|
406
|
+
readonly type: "address";
|
|
407
|
+
}];
|
|
408
|
+
readonly name: "renounceRole";
|
|
409
|
+
readonly outputs: readonly [];
|
|
410
|
+
readonly stateMutability: "nonpayable";
|
|
411
|
+
readonly type: "function";
|
|
412
|
+
}, {
|
|
413
|
+
readonly inputs: readonly [{
|
|
414
|
+
readonly internalType: "bytes32";
|
|
415
|
+
readonly name: "role";
|
|
416
|
+
readonly type: "bytes32";
|
|
417
|
+
}, {
|
|
418
|
+
readonly internalType: "address";
|
|
419
|
+
readonly name: "account";
|
|
420
|
+
readonly type: "address";
|
|
421
|
+
}];
|
|
422
|
+
readonly name: "revokeRole";
|
|
423
|
+
readonly outputs: readonly [];
|
|
424
|
+
readonly stateMutability: "nonpayable";
|
|
425
|
+
readonly type: "function";
|
|
426
|
+
}, {
|
|
427
|
+
readonly inputs: readonly [{
|
|
428
|
+
readonly internalType: "uint64";
|
|
429
|
+
readonly name: "newBatchTransferFee";
|
|
430
|
+
readonly type: "uint64";
|
|
431
|
+
}];
|
|
432
|
+
readonly name: "setBatchTransferFee";
|
|
299
433
|
readonly outputs: readonly [];
|
|
300
434
|
readonly stateMutability: "nonpayable";
|
|
301
435
|
readonly type: "function";
|
|
@@ -321,11 +455,11 @@ export declare const FEE_MANAGER_ABI: readonly [{
|
|
|
321
455
|
readonly type: "function";
|
|
322
456
|
}, {
|
|
323
457
|
readonly inputs: readonly [{
|
|
324
|
-
readonly internalType: "
|
|
325
|
-
readonly name: "
|
|
326
|
-
readonly type: "
|
|
458
|
+
readonly internalType: "bool";
|
|
459
|
+
readonly name: "active";
|
|
460
|
+
readonly type: "bool";
|
|
327
461
|
}];
|
|
328
|
-
readonly name: "
|
|
462
|
+
readonly name: "setSwapperFeeWaiverActive";
|
|
329
463
|
readonly outputs: readonly [];
|
|
330
464
|
readonly stateMutability: "nonpayable";
|
|
331
465
|
readonly type: "function";
|
|
@@ -350,24 +484,28 @@ export declare const FEE_MANAGER_ABI: readonly [{
|
|
|
350
484
|
readonly stateMutability: "nonpayable";
|
|
351
485
|
readonly type: "function";
|
|
352
486
|
}, {
|
|
353
|
-
readonly inputs: readonly [
|
|
354
|
-
|
|
487
|
+
readonly inputs: readonly [{
|
|
488
|
+
readonly internalType: "bytes4";
|
|
489
|
+
readonly name: "interfaceId";
|
|
490
|
+
readonly type: "bytes4";
|
|
491
|
+
}];
|
|
492
|
+
readonly name: "supportsInterface";
|
|
355
493
|
readonly outputs: readonly [{
|
|
356
|
-
readonly internalType: "
|
|
494
|
+
readonly internalType: "bool";
|
|
357
495
|
readonly name: "";
|
|
358
|
-
readonly type: "
|
|
496
|
+
readonly type: "bool";
|
|
359
497
|
}];
|
|
360
498
|
readonly stateMutability: "view";
|
|
361
499
|
readonly type: "function";
|
|
362
500
|
}, {
|
|
363
|
-
readonly inputs: readonly [
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
readonly
|
|
501
|
+
readonly inputs: readonly [];
|
|
502
|
+
readonly name: "swapperFeeWaiverActive";
|
|
503
|
+
readonly outputs: readonly [{
|
|
504
|
+
readonly internalType: "bool";
|
|
505
|
+
readonly name: "";
|
|
506
|
+
readonly type: "bool";
|
|
367
507
|
}];
|
|
368
|
-
readonly
|
|
369
|
-
readonly outputs: readonly [];
|
|
370
|
-
readonly stateMutability: "nonpayable";
|
|
508
|
+
readonly stateMutability: "view";
|
|
371
509
|
readonly type: "function";
|
|
372
510
|
}, {
|
|
373
511
|
readonly inputs: readonly [];
|
|
@@ -3,22 +3,22 @@ export const FEE_MANAGER_ABI = [
|
|
|
3
3
|
inputs: [
|
|
4
4
|
{
|
|
5
5
|
internalType: "uint64",
|
|
6
|
-
name: "
|
|
6
|
+
name: "wrapFeeBasisPoints_",
|
|
7
7
|
type: "uint64",
|
|
8
8
|
},
|
|
9
9
|
{
|
|
10
10
|
internalType: "uint64",
|
|
11
|
-
name: "
|
|
11
|
+
name: "unwrapFeeBasisPoints_",
|
|
12
12
|
type: "uint64",
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
internalType: "uint64",
|
|
16
|
-
name: "
|
|
16
|
+
name: "deployFee_",
|
|
17
17
|
type: "uint64",
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
20
|
internalType: "uint64",
|
|
21
|
-
name: "
|
|
21
|
+
name: "batchTransferFee_",
|
|
22
22
|
type: "uint64",
|
|
23
23
|
},
|
|
24
24
|
{
|
|
@@ -32,29 +32,28 @@ export const FEE_MANAGER_ABI = [
|
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
inputs: [],
|
|
35
|
-
name: "
|
|
35
|
+
name: "AccessControlBadConfirmation",
|
|
36
36
|
type: "error",
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
inputs: [
|
|
40
40
|
{
|
|
41
41
|
internalType: "address",
|
|
42
|
-
name: "
|
|
42
|
+
name: "account",
|
|
43
43
|
type: "address",
|
|
44
44
|
},
|
|
45
|
+
{
|
|
46
|
+
internalType: "bytes32",
|
|
47
|
+
name: "neededRole",
|
|
48
|
+
type: "bytes32",
|
|
49
|
+
},
|
|
45
50
|
],
|
|
46
|
-
name: "
|
|
51
|
+
name: "AccessControlUnauthorizedAccount",
|
|
47
52
|
type: "error",
|
|
48
53
|
},
|
|
49
54
|
{
|
|
50
|
-
inputs: [
|
|
51
|
-
|
|
52
|
-
internalType: "address",
|
|
53
|
-
name: "account",
|
|
54
|
-
type: "address",
|
|
55
|
-
},
|
|
56
|
-
],
|
|
57
|
-
name: "OwnableUnauthorizedAccount",
|
|
55
|
+
inputs: [],
|
|
56
|
+
name: "FeeExceedsMaximum",
|
|
58
57
|
type: "error",
|
|
59
58
|
},
|
|
60
59
|
{
|
|
@@ -62,6 +61,25 @@ export const FEE_MANAGER_ABI = [
|
|
|
62
61
|
name: "ZeroAddressFeeRecipient",
|
|
63
62
|
type: "error",
|
|
64
63
|
},
|
|
64
|
+
{
|
|
65
|
+
anonymous: false,
|
|
66
|
+
inputs: [
|
|
67
|
+
{
|
|
68
|
+
indexed: false,
|
|
69
|
+
internalType: "uint64",
|
|
70
|
+
name: "oldBatchTransferFee",
|
|
71
|
+
type: "uint64",
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
indexed: false,
|
|
75
|
+
internalType: "uint64",
|
|
76
|
+
name: "newBatchTransferFee",
|
|
77
|
+
type: "uint64",
|
|
78
|
+
},
|
|
79
|
+
],
|
|
80
|
+
name: "BatchTransferFeeUpdated",
|
|
81
|
+
type: "event",
|
|
82
|
+
},
|
|
65
83
|
{
|
|
66
84
|
anonymous: false,
|
|
67
85
|
inputs: [
|
|
@@ -103,39 +121,76 @@ export const FEE_MANAGER_ABI = [
|
|
|
103
121
|
{
|
|
104
122
|
anonymous: false,
|
|
105
123
|
inputs: [
|
|
124
|
+
{
|
|
125
|
+
indexed: true,
|
|
126
|
+
internalType: "bytes32",
|
|
127
|
+
name: "role",
|
|
128
|
+
type: "bytes32",
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
indexed: true,
|
|
132
|
+
internalType: "bytes32",
|
|
133
|
+
name: "previousAdminRole",
|
|
134
|
+
type: "bytes32",
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
indexed: true,
|
|
138
|
+
internalType: "bytes32",
|
|
139
|
+
name: "newAdminRole",
|
|
140
|
+
type: "bytes32",
|
|
141
|
+
},
|
|
142
|
+
],
|
|
143
|
+
name: "RoleAdminChanged",
|
|
144
|
+
type: "event",
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
anonymous: false,
|
|
148
|
+
inputs: [
|
|
149
|
+
{
|
|
150
|
+
indexed: true,
|
|
151
|
+
internalType: "bytes32",
|
|
152
|
+
name: "role",
|
|
153
|
+
type: "bytes32",
|
|
154
|
+
},
|
|
106
155
|
{
|
|
107
156
|
indexed: true,
|
|
108
157
|
internalType: "address",
|
|
109
|
-
name: "
|
|
158
|
+
name: "account",
|
|
110
159
|
type: "address",
|
|
111
160
|
},
|
|
112
161
|
{
|
|
113
162
|
indexed: true,
|
|
114
163
|
internalType: "address",
|
|
115
|
-
name: "
|
|
164
|
+
name: "sender",
|
|
116
165
|
type: "address",
|
|
117
166
|
},
|
|
118
167
|
],
|
|
119
|
-
name: "
|
|
168
|
+
name: "RoleGranted",
|
|
120
169
|
type: "event",
|
|
121
170
|
},
|
|
122
171
|
{
|
|
123
172
|
anonymous: false,
|
|
124
173
|
inputs: [
|
|
174
|
+
{
|
|
175
|
+
indexed: true,
|
|
176
|
+
internalType: "bytes32",
|
|
177
|
+
name: "role",
|
|
178
|
+
type: "bytes32",
|
|
179
|
+
},
|
|
125
180
|
{
|
|
126
181
|
indexed: true,
|
|
127
182
|
internalType: "address",
|
|
128
|
-
name: "
|
|
183
|
+
name: "account",
|
|
129
184
|
type: "address",
|
|
130
185
|
},
|
|
131
186
|
{
|
|
132
187
|
indexed: true,
|
|
133
188
|
internalType: "address",
|
|
134
|
-
name: "
|
|
189
|
+
name: "sender",
|
|
135
190
|
type: "address",
|
|
136
191
|
},
|
|
137
192
|
],
|
|
138
|
-
name: "
|
|
193
|
+
name: "RoleRevoked",
|
|
139
194
|
type: "event",
|
|
140
195
|
},
|
|
141
196
|
{
|
|
@@ -143,18 +198,12 @@ export const FEE_MANAGER_ABI = [
|
|
|
143
198
|
inputs: [
|
|
144
199
|
{
|
|
145
200
|
indexed: false,
|
|
146
|
-
internalType: "
|
|
147
|
-
name: "
|
|
148
|
-
type: "
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
indexed: false,
|
|
152
|
-
internalType: "uint64",
|
|
153
|
-
name: "newTransferFee",
|
|
154
|
-
type: "uint64",
|
|
201
|
+
internalType: "bool",
|
|
202
|
+
name: "active",
|
|
203
|
+
type: "bool",
|
|
155
204
|
},
|
|
156
205
|
],
|
|
157
|
-
name: "
|
|
206
|
+
name: "SwapperFeeWaiverUpdated",
|
|
158
207
|
type: "event",
|
|
159
208
|
},
|
|
160
209
|
{
|
|
@@ -197,9 +246,67 @@ export const FEE_MANAGER_ABI = [
|
|
|
197
246
|
},
|
|
198
247
|
{
|
|
199
248
|
inputs: [],
|
|
200
|
-
name: "
|
|
201
|
-
outputs: [
|
|
202
|
-
|
|
249
|
+
name: "DEFAULT_ADMIN_ROLE",
|
|
250
|
+
outputs: [
|
|
251
|
+
{
|
|
252
|
+
internalType: "bytes32",
|
|
253
|
+
name: "",
|
|
254
|
+
type: "bytes32",
|
|
255
|
+
},
|
|
256
|
+
],
|
|
257
|
+
stateMutability: "view",
|
|
258
|
+
type: "function",
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
inputs: [],
|
|
262
|
+
name: "FEE_MANAGER_ROLE",
|
|
263
|
+
outputs: [
|
|
264
|
+
{
|
|
265
|
+
internalType: "bytes32",
|
|
266
|
+
name: "",
|
|
267
|
+
type: "bytes32",
|
|
268
|
+
},
|
|
269
|
+
],
|
|
270
|
+
stateMutability: "view",
|
|
271
|
+
type: "function",
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
inputs: [],
|
|
275
|
+
name: "MAX_BASIS_POINTS",
|
|
276
|
+
outputs: [
|
|
277
|
+
{
|
|
278
|
+
internalType: "uint64",
|
|
279
|
+
name: "",
|
|
280
|
+
type: "uint64",
|
|
281
|
+
},
|
|
282
|
+
],
|
|
283
|
+
stateMutability: "view",
|
|
284
|
+
type: "function",
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
inputs: [],
|
|
288
|
+
name: "SWAPPER_ROLE",
|
|
289
|
+
outputs: [
|
|
290
|
+
{
|
|
291
|
+
internalType: "bytes32",
|
|
292
|
+
name: "",
|
|
293
|
+
type: "bytes32",
|
|
294
|
+
},
|
|
295
|
+
],
|
|
296
|
+
stateMutability: "view",
|
|
297
|
+
type: "function",
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
inputs: [],
|
|
301
|
+
name: "batchTransferFee",
|
|
302
|
+
outputs: [
|
|
303
|
+
{
|
|
304
|
+
internalType: "uint64",
|
|
305
|
+
name: "",
|
|
306
|
+
type: "uint64",
|
|
307
|
+
},
|
|
308
|
+
],
|
|
309
|
+
stateMutability: "view",
|
|
203
310
|
type: "function",
|
|
204
311
|
},
|
|
205
312
|
{
|
|
@@ -228,6 +335,19 @@ export const FEE_MANAGER_ABI = [
|
|
|
228
335
|
stateMutability: "view",
|
|
229
336
|
type: "function",
|
|
230
337
|
},
|
|
338
|
+
{
|
|
339
|
+
inputs: [],
|
|
340
|
+
name: "getBatchTransferFee",
|
|
341
|
+
outputs: [
|
|
342
|
+
{
|
|
343
|
+
internalType: "uint64",
|
|
344
|
+
name: "",
|
|
345
|
+
type: "uint64",
|
|
346
|
+
},
|
|
347
|
+
],
|
|
348
|
+
stateMutability: "view",
|
|
349
|
+
type: "function",
|
|
350
|
+
},
|
|
231
351
|
{
|
|
232
352
|
inputs: [
|
|
233
353
|
{
|
|
@@ -263,22 +383,17 @@ export const FEE_MANAGER_ABI = [
|
|
|
263
383
|
{
|
|
264
384
|
inputs: [
|
|
265
385
|
{
|
|
266
|
-
internalType: "
|
|
267
|
-
name: "
|
|
268
|
-
type: "
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
internalType: "address",
|
|
272
|
-
name: "transferTo",
|
|
273
|
-
type: "address",
|
|
386
|
+
internalType: "bytes32",
|
|
387
|
+
name: "role",
|
|
388
|
+
type: "bytes32",
|
|
274
389
|
},
|
|
275
390
|
],
|
|
276
|
-
name: "
|
|
391
|
+
name: "getRoleAdmin",
|
|
277
392
|
outputs: [
|
|
278
393
|
{
|
|
279
|
-
internalType: "
|
|
394
|
+
internalType: "bytes32",
|
|
280
395
|
name: "",
|
|
281
|
-
type: "
|
|
396
|
+
type: "bytes32",
|
|
282
397
|
},
|
|
283
398
|
],
|
|
284
399
|
stateMutability: "view",
|
|
@@ -287,9 +402,9 @@ export const FEE_MANAGER_ABI = [
|
|
|
287
402
|
{
|
|
288
403
|
inputs: [
|
|
289
404
|
{
|
|
290
|
-
internalType: "
|
|
405
|
+
internalType: "uint64",
|
|
291
406
|
name: "amount",
|
|
292
|
-
type: "
|
|
407
|
+
type: "uint64",
|
|
293
408
|
},
|
|
294
409
|
{
|
|
295
410
|
internalType: "address",
|
|
@@ -305,20 +420,20 @@ export const FEE_MANAGER_ABI = [
|
|
|
305
420
|
name: "getUnwrapFee",
|
|
306
421
|
outputs: [
|
|
307
422
|
{
|
|
308
|
-
internalType: "
|
|
423
|
+
internalType: "uint64",
|
|
309
424
|
name: "",
|
|
310
|
-
type: "
|
|
425
|
+
type: "uint64",
|
|
311
426
|
},
|
|
312
427
|
],
|
|
313
|
-
stateMutability: "
|
|
428
|
+
stateMutability: "view",
|
|
314
429
|
type: "function",
|
|
315
430
|
},
|
|
316
431
|
{
|
|
317
432
|
inputs: [
|
|
318
433
|
{
|
|
319
|
-
internalType: "
|
|
434
|
+
internalType: "uint256",
|
|
320
435
|
name: "amount",
|
|
321
|
-
type: "
|
|
436
|
+
type: "uint256",
|
|
322
437
|
},
|
|
323
438
|
{
|
|
324
439
|
internalType: "address",
|
|
@@ -334,37 +449,53 @@ export const FEE_MANAGER_ABI = [
|
|
|
334
449
|
name: "getWrapFee",
|
|
335
450
|
outputs: [
|
|
336
451
|
{
|
|
337
|
-
internalType: "
|
|
452
|
+
internalType: "uint256",
|
|
338
453
|
name: "",
|
|
339
|
-
type: "
|
|
454
|
+
type: "uint256",
|
|
340
455
|
},
|
|
341
456
|
],
|
|
342
457
|
stateMutability: "view",
|
|
343
458
|
type: "function",
|
|
344
459
|
},
|
|
345
460
|
{
|
|
346
|
-
inputs: [
|
|
347
|
-
|
|
348
|
-
|
|
461
|
+
inputs: [
|
|
462
|
+
{
|
|
463
|
+
internalType: "bytes32",
|
|
464
|
+
name: "role",
|
|
465
|
+
type: "bytes32",
|
|
466
|
+
},
|
|
349
467
|
{
|
|
350
468
|
internalType: "address",
|
|
351
|
-
name: "",
|
|
469
|
+
name: "account",
|
|
352
470
|
type: "address",
|
|
353
471
|
},
|
|
354
472
|
],
|
|
355
|
-
|
|
473
|
+
name: "grantRole",
|
|
474
|
+
outputs: [],
|
|
475
|
+
stateMutability: "nonpayable",
|
|
356
476
|
type: "function",
|
|
357
477
|
},
|
|
358
478
|
{
|
|
359
|
-
inputs: [
|
|
360
|
-
|
|
361
|
-
|
|
479
|
+
inputs: [
|
|
480
|
+
{
|
|
481
|
+
internalType: "bytes32",
|
|
482
|
+
name: "role",
|
|
483
|
+
type: "bytes32",
|
|
484
|
+
},
|
|
362
485
|
{
|
|
363
486
|
internalType: "address",
|
|
364
|
-
name: "",
|
|
487
|
+
name: "account",
|
|
365
488
|
type: "address",
|
|
366
489
|
},
|
|
367
490
|
],
|
|
491
|
+
name: "hasRole",
|
|
492
|
+
outputs: [
|
|
493
|
+
{
|
|
494
|
+
internalType: "bool",
|
|
495
|
+
name: "",
|
|
496
|
+
type: "bool",
|
|
497
|
+
},
|
|
498
|
+
],
|
|
368
499
|
stateMutability: "view",
|
|
369
500
|
type: "function",
|
|
370
501
|
},
|
|
@@ -382,8 +513,50 @@ export const FEE_MANAGER_ABI = [
|
|
|
382
513
|
type: "function",
|
|
383
514
|
},
|
|
384
515
|
{
|
|
385
|
-
inputs: [
|
|
386
|
-
|
|
516
|
+
inputs: [
|
|
517
|
+
{
|
|
518
|
+
internalType: "bytes32",
|
|
519
|
+
name: "role",
|
|
520
|
+
type: "bytes32",
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
internalType: "address",
|
|
524
|
+
name: "callerConfirmation",
|
|
525
|
+
type: "address",
|
|
526
|
+
},
|
|
527
|
+
],
|
|
528
|
+
name: "renounceRole",
|
|
529
|
+
outputs: [],
|
|
530
|
+
stateMutability: "nonpayable",
|
|
531
|
+
type: "function",
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
inputs: [
|
|
535
|
+
{
|
|
536
|
+
internalType: "bytes32",
|
|
537
|
+
name: "role",
|
|
538
|
+
type: "bytes32",
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
internalType: "address",
|
|
542
|
+
name: "account",
|
|
543
|
+
type: "address",
|
|
544
|
+
},
|
|
545
|
+
],
|
|
546
|
+
name: "revokeRole",
|
|
547
|
+
outputs: [],
|
|
548
|
+
stateMutability: "nonpayable",
|
|
549
|
+
type: "function",
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
inputs: [
|
|
553
|
+
{
|
|
554
|
+
internalType: "uint64",
|
|
555
|
+
name: "newBatchTransferFee",
|
|
556
|
+
type: "uint64",
|
|
557
|
+
},
|
|
558
|
+
],
|
|
559
|
+
name: "setBatchTransferFee",
|
|
387
560
|
outputs: [],
|
|
388
561
|
stateMutability: "nonpayable",
|
|
389
562
|
type: "function",
|
|
@@ -417,12 +590,12 @@ export const FEE_MANAGER_ABI = [
|
|
|
417
590
|
{
|
|
418
591
|
inputs: [
|
|
419
592
|
{
|
|
420
|
-
internalType: "
|
|
421
|
-
name: "
|
|
422
|
-
type: "
|
|
593
|
+
internalType: "bool",
|
|
594
|
+
name: "active",
|
|
595
|
+
type: "bool",
|
|
423
596
|
},
|
|
424
597
|
],
|
|
425
|
-
name: "
|
|
598
|
+
name: "setSwapperFeeWaiverActive",
|
|
426
599
|
outputs: [],
|
|
427
600
|
stateMutability: "nonpayable",
|
|
428
601
|
type: "function",
|
|
@@ -454,29 +627,35 @@ export const FEE_MANAGER_ABI = [
|
|
|
454
627
|
type: "function",
|
|
455
628
|
},
|
|
456
629
|
{
|
|
457
|
-
inputs: [
|
|
458
|
-
|
|
630
|
+
inputs: [
|
|
631
|
+
{
|
|
632
|
+
internalType: "bytes4",
|
|
633
|
+
name: "interfaceId",
|
|
634
|
+
type: "bytes4",
|
|
635
|
+
},
|
|
636
|
+
],
|
|
637
|
+
name: "supportsInterface",
|
|
459
638
|
outputs: [
|
|
460
639
|
{
|
|
461
|
-
internalType: "
|
|
640
|
+
internalType: "bool",
|
|
462
641
|
name: "",
|
|
463
|
-
type: "
|
|
642
|
+
type: "bool",
|
|
464
643
|
},
|
|
465
644
|
],
|
|
466
645
|
stateMutability: "view",
|
|
467
646
|
type: "function",
|
|
468
647
|
},
|
|
469
648
|
{
|
|
470
|
-
inputs: [
|
|
649
|
+
inputs: [],
|
|
650
|
+
name: "swapperFeeWaiverActive",
|
|
651
|
+
outputs: [
|
|
471
652
|
{
|
|
472
|
-
internalType: "
|
|
473
|
-
name: "
|
|
474
|
-
type: "
|
|
653
|
+
internalType: "bool",
|
|
654
|
+
name: "",
|
|
655
|
+
type: "bool",
|
|
475
656
|
},
|
|
476
657
|
],
|
|
477
|
-
|
|
478
|
-
outputs: [],
|
|
479
|
-
stateMutability: "nonpayable",
|
|
658
|
+
stateMutability: "view",
|
|
480
659
|
type: "function",
|
|
481
660
|
},
|
|
482
661
|
{
|