@skalenetwork/privacy-sdk 0.1.0-develop.1 → 0.1.0-develop.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +60 -8
- package/dist/actions/index.cjs +1678 -1731
- package/dist/actions/index.cjs.map +1 -1
- package/dist/actions/index.d.cts +16 -18
- package/dist/actions/index.d.ts +16 -18
- package/dist/actions/index.js +5 -9
- package/dist/chunk-PMT6KSGL.js +2934 -0
- package/dist/chunk-PMT6KSGL.js.map +1 -0
- package/dist/index.cjs +1692 -1698
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +17 -18
- package/dist/index.js.map +1 -1
- package/dist/types-CPLzL9IK.d.ts +13 -0
- package/dist/types-T84pCSPm.d.cts +13 -0
- package/package.json +6 -9
- package/dist/chunk-D3OIZD5L.js +0 -2953
- package/dist/chunk-D3OIZD5L.js.map +0 -1
- package/dist/types-CBDYydn0.d.cts +0 -60
- package/dist/types-Gn0F4pQf.d.ts +0 -60
package/dist/actions/index.cjs
CHANGED
|
@@ -23,13 +23,11 @@ __export(actions_exports, {
|
|
|
23
23
|
approve: () => approve,
|
|
24
24
|
authorizeHistoricViewForRange: () => authorizeHistoricViewForRange,
|
|
25
25
|
authorizeHistoricViewForTransfer: () => authorizeHistoricViewForTransfer,
|
|
26
|
-
decryptHistoricTransferData: () => decryptHistoricTransferData,
|
|
27
26
|
decryptTokenBalance: () => decryptTokenBalance,
|
|
28
|
-
fundCtxBalance: () => fundCtxBalance,
|
|
29
27
|
getCtxBalance: () => getCtxBalance,
|
|
30
|
-
getCtxFee: () =>
|
|
28
|
+
getCtxFee: () => getCtxRawCost,
|
|
31
29
|
getTransferId: () => getTransferId,
|
|
32
|
-
getValueForCtx: () =>
|
|
30
|
+
getValueForCtx: () => getCtxOperationCost,
|
|
33
31
|
registerViewerKey: () => registerViewerKey,
|
|
34
32
|
requestTransferDecryption: () => requestTransferDecryption,
|
|
35
33
|
revokeHistoricView: () => revokeHistoricView,
|
|
@@ -40,2747 +38,2746 @@ __export(actions_exports, {
|
|
|
40
38
|
module.exports = __toCommonJS(actions_exports);
|
|
41
39
|
|
|
42
40
|
// src/actions/transfers.ts
|
|
43
|
-
var
|
|
41
|
+
var import_viem = require("viem");
|
|
44
42
|
|
|
45
43
|
// src/abi/confidentialWrapper.ts
|
|
46
44
|
var confidentialWrapperAbi = [
|
|
47
45
|
{
|
|
48
|
-
|
|
46
|
+
inputs: [
|
|
49
47
|
{
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
internalType: "bool",
|
|
49
|
+
name: "proxyMode",
|
|
50
|
+
type: "bool"
|
|
53
51
|
},
|
|
54
52
|
{
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
53
|
+
internalType: "contract IERC20Metadata",
|
|
54
|
+
name: "underlyingToken",
|
|
55
|
+
type: "address"
|
|
58
56
|
},
|
|
59
57
|
{
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
58
|
+
internalType: "string",
|
|
59
|
+
name: "version_",
|
|
60
|
+
type: "string"
|
|
63
61
|
},
|
|
64
62
|
{
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
63
|
+
internalType: "address",
|
|
64
|
+
name: "initialAuthority",
|
|
65
|
+
type: "address"
|
|
68
66
|
}
|
|
69
67
|
],
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
stateMutability: "nonpayable",
|
|
69
|
+
type: "constructor"
|
|
72
70
|
},
|
|
73
71
|
{
|
|
74
|
-
|
|
72
|
+
inputs: [
|
|
75
73
|
{
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
74
|
+
internalType: "address",
|
|
75
|
+
name: "authority",
|
|
76
|
+
type: "address"
|
|
79
77
|
}
|
|
80
78
|
],
|
|
81
|
-
|
|
82
|
-
|
|
79
|
+
name: "AccessManagedInvalidAuthority",
|
|
80
|
+
type: "error"
|
|
83
81
|
},
|
|
84
82
|
{
|
|
85
|
-
|
|
83
|
+
inputs: [
|
|
86
84
|
{
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
85
|
+
internalType: "address",
|
|
86
|
+
name: "caller",
|
|
87
|
+
type: "address"
|
|
90
88
|
},
|
|
91
89
|
{
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
90
|
+
internalType: "uint32",
|
|
91
|
+
name: "delay",
|
|
92
|
+
type: "uint32"
|
|
95
93
|
}
|
|
96
94
|
],
|
|
97
|
-
|
|
98
|
-
|
|
95
|
+
name: "AccessManagedRequiredDelay",
|
|
96
|
+
type: "error"
|
|
99
97
|
},
|
|
100
98
|
{
|
|
101
|
-
|
|
99
|
+
inputs: [
|
|
102
100
|
{
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
101
|
+
internalType: "address",
|
|
102
|
+
name: "caller",
|
|
103
|
+
type: "address"
|
|
106
104
|
}
|
|
107
105
|
],
|
|
108
|
-
|
|
109
|
-
|
|
106
|
+
name: "AccessManagedUnauthorized",
|
|
107
|
+
type: "error"
|
|
110
108
|
},
|
|
111
109
|
{
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
110
|
+
inputs: [],
|
|
111
|
+
name: "AccessViolation",
|
|
112
|
+
type: "error"
|
|
115
113
|
},
|
|
116
114
|
{
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
115
|
+
inputs: [],
|
|
116
|
+
name: "ActionNotRecognized",
|
|
117
|
+
type: "error"
|
|
120
118
|
},
|
|
121
119
|
{
|
|
122
|
-
|
|
120
|
+
inputs: [
|
|
123
121
|
{
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
122
|
+
internalType: "uint256",
|
|
123
|
+
name: "validBefore",
|
|
124
|
+
type: "uint256"
|
|
127
125
|
}
|
|
128
126
|
],
|
|
129
|
-
|
|
130
|
-
|
|
127
|
+
name: "AuthorizationIsExpired",
|
|
128
|
+
type: "error"
|
|
131
129
|
},
|
|
132
130
|
{
|
|
133
|
-
|
|
131
|
+
inputs: [
|
|
134
132
|
{
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
133
|
+
internalType: "uint256",
|
|
134
|
+
name: "validAfter",
|
|
135
|
+
type: "uint256"
|
|
138
136
|
}
|
|
139
137
|
],
|
|
140
|
-
|
|
141
|
-
|
|
138
|
+
name: "AuthorizationIsNotYetValid",
|
|
139
|
+
type: "error"
|
|
142
140
|
},
|
|
143
141
|
{
|
|
144
|
-
|
|
142
|
+
inputs: [
|
|
145
143
|
{
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
144
|
+
internalType: "address",
|
|
145
|
+
name: "authorizer",
|
|
146
|
+
type: "address"
|
|
149
147
|
},
|
|
150
148
|
{
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
149
|
+
internalType: "bytes32",
|
|
150
|
+
name: "nonce",
|
|
151
|
+
type: "bytes32"
|
|
154
152
|
}
|
|
155
153
|
],
|
|
156
|
-
|
|
157
|
-
|
|
154
|
+
name: "AuthorizationUsedError",
|
|
155
|
+
type: "error"
|
|
158
156
|
},
|
|
159
157
|
{
|
|
160
|
-
|
|
158
|
+
inputs: [
|
|
161
159
|
{
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
160
|
+
internalType: "uint256",
|
|
161
|
+
name: "errorCode",
|
|
162
|
+
type: "uint256"
|
|
165
163
|
}
|
|
166
164
|
],
|
|
167
|
-
|
|
168
|
-
|
|
165
|
+
name: "CTXAbiToRlpConversionFailed",
|
|
166
|
+
type: "error"
|
|
169
167
|
},
|
|
170
168
|
{
|
|
171
|
-
|
|
169
|
+
inputs: [
|
|
172
170
|
{
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
171
|
+
internalType: "uint256",
|
|
172
|
+
name: "errorCode",
|
|
173
|
+
type: "uint256"
|
|
176
174
|
}
|
|
177
175
|
],
|
|
178
|
-
|
|
179
|
-
|
|
176
|
+
name: "CTXAbiToRlpUnknownError",
|
|
177
|
+
type: "error"
|
|
180
178
|
},
|
|
181
179
|
{
|
|
182
|
-
|
|
180
|
+
inputs: [
|
|
183
181
|
{
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
182
|
+
internalType: "uint256",
|
|
183
|
+
name: "errorCode",
|
|
184
|
+
type: "uint256"
|
|
187
185
|
}
|
|
188
186
|
],
|
|
189
|
-
|
|
190
|
-
|
|
187
|
+
name: "CTXCountNotVerifyTransaction",
|
|
188
|
+
type: "error"
|
|
191
189
|
},
|
|
192
190
|
{
|
|
193
|
-
|
|
191
|
+
inputs: [
|
|
194
192
|
{
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
193
|
+
internalType: "uint256",
|
|
194
|
+
name: "errorCode",
|
|
195
|
+
type: "uint256"
|
|
198
196
|
}
|
|
199
197
|
],
|
|
200
|
-
|
|
201
|
-
|
|
198
|
+
name: "CTXDataOffsetOutOfBounds",
|
|
199
|
+
type: "error"
|
|
202
200
|
},
|
|
203
201
|
{
|
|
204
|
-
|
|
202
|
+
inputs: [
|
|
205
203
|
{
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
204
|
+
internalType: "uint256",
|
|
205
|
+
name: "errorCode",
|
|
206
|
+
type: "uint256"
|
|
209
207
|
}
|
|
210
208
|
],
|
|
211
|
-
|
|
212
|
-
|
|
209
|
+
name: "CTXDataTooShort",
|
|
210
|
+
type: "error"
|
|
213
211
|
},
|
|
214
212
|
{
|
|
215
|
-
|
|
213
|
+
inputs: [
|
|
216
214
|
{
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
215
|
+
internalType: "uint256",
|
|
216
|
+
name: "errorCode",
|
|
217
|
+
type: "uint256"
|
|
220
218
|
}
|
|
221
219
|
],
|
|
222
|
-
|
|
223
|
-
|
|
220
|
+
name: "CTXInputTooShort",
|
|
221
|
+
type: "error"
|
|
224
222
|
},
|
|
225
223
|
{
|
|
226
|
-
|
|
224
|
+
inputs: [
|
|
227
225
|
{
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
226
|
+
internalType: "uint256",
|
|
227
|
+
name: "errorCode",
|
|
228
|
+
type: "uint256"
|
|
231
229
|
}
|
|
232
230
|
],
|
|
233
|
-
|
|
234
|
-
|
|
231
|
+
name: "CTXInvalidDestination",
|
|
232
|
+
type: "error"
|
|
235
233
|
},
|
|
236
234
|
{
|
|
237
|
-
|
|
235
|
+
inputs: [
|
|
238
236
|
{
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
237
|
+
internalType: "uint256",
|
|
238
|
+
name: "errorCode",
|
|
239
|
+
type: "uint256"
|
|
242
240
|
}
|
|
243
241
|
],
|
|
244
|
-
|
|
245
|
-
|
|
242
|
+
name: "CTXInvalidGasLimit",
|
|
243
|
+
type: "error"
|
|
246
244
|
},
|
|
247
245
|
{
|
|
248
|
-
|
|
246
|
+
inputs: [
|
|
249
247
|
{
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
248
|
+
internalType: "uint256",
|
|
249
|
+
name: "errorCode",
|
|
250
|
+
type: "uint256"
|
|
253
251
|
}
|
|
254
252
|
],
|
|
255
|
-
|
|
256
|
-
|
|
253
|
+
name: "CTXInvalidSignature",
|
|
254
|
+
type: "error"
|
|
257
255
|
},
|
|
258
256
|
{
|
|
259
|
-
|
|
257
|
+
inputs: [
|
|
260
258
|
{
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
259
|
+
internalType: "uint256",
|
|
260
|
+
name: "errorCode",
|
|
261
|
+
type: "uint256"
|
|
264
262
|
}
|
|
265
263
|
],
|
|
266
|
-
|
|
267
|
-
|
|
264
|
+
name: "CTXInvalidTransaction",
|
|
265
|
+
type: "error"
|
|
268
266
|
},
|
|
269
267
|
{
|
|
270
|
-
|
|
268
|
+
inputs: [
|
|
271
269
|
{
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
270
|
+
internalType: "uint256",
|
|
271
|
+
name: "errorCode",
|
|
272
|
+
type: "uint256"
|
|
275
273
|
}
|
|
276
274
|
],
|
|
277
|
-
|
|
278
|
-
|
|
275
|
+
name: "CTXUnknownError",
|
|
276
|
+
type: "error"
|
|
279
277
|
},
|
|
280
278
|
{
|
|
281
|
-
|
|
279
|
+
inputs: [
|
|
282
280
|
{
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
281
|
+
internalType: "address",
|
|
282
|
+
name: "caller",
|
|
283
|
+
type: "address"
|
|
286
284
|
},
|
|
287
285
|
{
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
286
|
+
internalType: "address",
|
|
287
|
+
name: "payee",
|
|
288
|
+
type: "address"
|
|
291
289
|
}
|
|
292
290
|
],
|
|
293
|
-
|
|
294
|
-
|
|
291
|
+
name: "CallerMustBeThePayee",
|
|
292
|
+
type: "error"
|
|
295
293
|
},
|
|
296
294
|
{
|
|
297
|
-
|
|
295
|
+
inputs: [
|
|
298
296
|
{
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
297
|
+
internalType: "uint256",
|
|
298
|
+
name: "errorCode",
|
|
299
|
+
type: "uint256"
|
|
302
300
|
}
|
|
303
301
|
],
|
|
304
|
-
|
|
305
|
-
|
|
302
|
+
name: "DataLengthMismatch",
|
|
303
|
+
type: "error"
|
|
306
304
|
},
|
|
307
305
|
{
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
306
|
+
inputs: [],
|
|
307
|
+
name: "DecryptionBadFormat",
|
|
308
|
+
type: "error"
|
|
311
309
|
},
|
|
312
310
|
{
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
311
|
+
inputs: [],
|
|
312
|
+
name: "ECDSAInvalidSignature",
|
|
313
|
+
type: "error"
|
|
316
314
|
},
|
|
317
315
|
{
|
|
318
|
-
|
|
316
|
+
inputs: [
|
|
319
317
|
{
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
318
|
+
internalType: "uint256",
|
|
319
|
+
name: "length",
|
|
320
|
+
type: "uint256"
|
|
323
321
|
}
|
|
324
322
|
],
|
|
325
|
-
|
|
326
|
-
|
|
323
|
+
name: "ECDSAInvalidSignatureLength",
|
|
324
|
+
type: "error"
|
|
327
325
|
},
|
|
328
326
|
{
|
|
329
|
-
|
|
327
|
+
inputs: [
|
|
330
328
|
{
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
329
|
+
internalType: "bytes32",
|
|
330
|
+
name: "s",
|
|
331
|
+
type: "bytes32"
|
|
334
332
|
}
|
|
335
333
|
],
|
|
336
|
-
|
|
337
|
-
|
|
334
|
+
name: "ECDSAInvalidSignatureS",
|
|
335
|
+
type: "error"
|
|
338
336
|
},
|
|
339
337
|
{
|
|
340
|
-
|
|
338
|
+
inputs: [
|
|
341
339
|
{
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
340
|
+
internalType: "uint256",
|
|
341
|
+
name: "errorCode",
|
|
342
|
+
type: "uint256"
|
|
345
343
|
}
|
|
346
344
|
],
|
|
347
|
-
|
|
348
|
-
|
|
345
|
+
name: "ECIESEncryptionFailed",
|
|
346
|
+
type: "error"
|
|
349
347
|
},
|
|
350
348
|
{
|
|
351
|
-
|
|
349
|
+
inputs: [
|
|
352
350
|
{
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
351
|
+
internalType: "uint256",
|
|
352
|
+
name: "errorCode",
|
|
353
|
+
type: "uint256"
|
|
356
354
|
}
|
|
357
355
|
],
|
|
358
|
-
|
|
359
|
-
|
|
356
|
+
name: "ECIESInvalidPublicKey",
|
|
357
|
+
type: "error"
|
|
360
358
|
},
|
|
361
359
|
{
|
|
362
|
-
|
|
360
|
+
inputs: [
|
|
363
361
|
{
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
362
|
+
internalType: "address",
|
|
363
|
+
name: "spender",
|
|
364
|
+
type: "address"
|
|
367
365
|
},
|
|
368
366
|
{
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
367
|
+
internalType: "uint256",
|
|
368
|
+
name: "allowance",
|
|
369
|
+
type: "uint256"
|
|
372
370
|
},
|
|
373
371
|
{
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
372
|
+
internalType: "uint256",
|
|
373
|
+
name: "needed",
|
|
374
|
+
type: "uint256"
|
|
377
375
|
}
|
|
378
376
|
],
|
|
379
|
-
|
|
380
|
-
|
|
377
|
+
name: "ERC20InsufficientAllowance",
|
|
378
|
+
type: "error"
|
|
381
379
|
},
|
|
382
380
|
{
|
|
383
|
-
|
|
381
|
+
inputs: [
|
|
384
382
|
{
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
383
|
+
internalType: "address",
|
|
384
|
+
name: "sender",
|
|
385
|
+
type: "address"
|
|
388
386
|
},
|
|
389
387
|
{
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
388
|
+
internalType: "uint256",
|
|
389
|
+
name: "balance",
|
|
390
|
+
type: "uint256"
|
|
393
391
|
},
|
|
394
392
|
{
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
393
|
+
internalType: "uint256",
|
|
394
|
+
name: "needed",
|
|
395
|
+
type: "uint256"
|
|
398
396
|
}
|
|
399
397
|
],
|
|
400
|
-
|
|
401
|
-
|
|
398
|
+
name: "ERC20InsufficientBalance",
|
|
399
|
+
type: "error"
|
|
402
400
|
},
|
|
403
401
|
{
|
|
404
|
-
|
|
402
|
+
inputs: [
|
|
405
403
|
{
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
404
|
+
internalType: "address",
|
|
405
|
+
name: "approver",
|
|
406
|
+
type: "address"
|
|
409
407
|
}
|
|
410
408
|
],
|
|
411
|
-
|
|
412
|
-
|
|
409
|
+
name: "ERC20InvalidApprover",
|
|
410
|
+
type: "error"
|
|
413
411
|
},
|
|
414
412
|
{
|
|
415
|
-
|
|
413
|
+
inputs: [
|
|
416
414
|
{
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
415
|
+
internalType: "address",
|
|
416
|
+
name: "receiver",
|
|
417
|
+
type: "address"
|
|
420
418
|
}
|
|
421
419
|
],
|
|
422
|
-
|
|
423
|
-
|
|
420
|
+
name: "ERC20InvalidReceiver",
|
|
421
|
+
type: "error"
|
|
424
422
|
},
|
|
425
423
|
{
|
|
426
|
-
|
|
424
|
+
inputs: [
|
|
427
425
|
{
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
426
|
+
internalType: "address",
|
|
427
|
+
name: "sender",
|
|
428
|
+
type: "address"
|
|
431
429
|
}
|
|
432
430
|
],
|
|
433
|
-
|
|
434
|
-
|
|
431
|
+
name: "ERC20InvalidSender",
|
|
432
|
+
type: "error"
|
|
435
433
|
},
|
|
436
434
|
{
|
|
437
|
-
|
|
435
|
+
inputs: [
|
|
438
436
|
{
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
437
|
+
internalType: "address",
|
|
438
|
+
name: "spender",
|
|
439
|
+
type: "address"
|
|
442
440
|
}
|
|
443
441
|
],
|
|
444
|
-
|
|
445
|
-
|
|
442
|
+
name: "ERC20InvalidSpender",
|
|
443
|
+
type: "error"
|
|
446
444
|
},
|
|
447
445
|
{
|
|
448
|
-
|
|
446
|
+
inputs: [
|
|
449
447
|
{
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
448
|
+
internalType: "address",
|
|
449
|
+
name: "token",
|
|
450
|
+
type: "address"
|
|
453
451
|
}
|
|
454
452
|
],
|
|
455
|
-
|
|
456
|
-
|
|
453
|
+
name: "ERC20InvalidUnderlying",
|
|
454
|
+
type: "error"
|
|
457
455
|
},
|
|
458
456
|
{
|
|
459
|
-
|
|
457
|
+
inputs: [
|
|
460
458
|
{
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
459
|
+
internalType: "uint256",
|
|
460
|
+
name: "deadline",
|
|
461
|
+
type: "uint256"
|
|
464
462
|
}
|
|
465
463
|
],
|
|
466
|
-
|
|
467
|
-
|
|
464
|
+
name: "ERC2612ExpiredSignature",
|
|
465
|
+
type: "error"
|
|
468
466
|
},
|
|
469
467
|
{
|
|
470
|
-
|
|
468
|
+
inputs: [
|
|
471
469
|
{
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
470
|
+
internalType: "address",
|
|
471
|
+
name: "signer",
|
|
472
|
+
type: "address"
|
|
475
473
|
},
|
|
476
474
|
{
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
475
|
+
internalType: "address",
|
|
476
|
+
name: "owner",
|
|
477
|
+
type: "address"
|
|
480
478
|
}
|
|
481
479
|
],
|
|
482
|
-
|
|
483
|
-
|
|
480
|
+
name: "ERC2612InvalidSigner",
|
|
481
|
+
type: "error"
|
|
484
482
|
},
|
|
485
483
|
{
|
|
486
|
-
|
|
484
|
+
inputs: [
|
|
487
485
|
{
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
486
|
+
internalType: "address",
|
|
487
|
+
name: "precompiledContract",
|
|
488
|
+
type: "address"
|
|
491
489
|
}
|
|
492
490
|
],
|
|
493
|
-
|
|
494
|
-
|
|
491
|
+
name: "EmptyReturnData",
|
|
492
|
+
type: "error"
|
|
495
493
|
},
|
|
496
494
|
{
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
495
|
+
inputs: [],
|
|
496
|
+
name: "FailedCall",
|
|
497
|
+
type: "error"
|
|
500
498
|
},
|
|
501
499
|
{
|
|
502
|
-
|
|
500
|
+
inputs: [
|
|
503
501
|
{
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
502
|
+
internalType: "address",
|
|
503
|
+
name: "precompiledContract",
|
|
504
|
+
type: "address"
|
|
507
505
|
},
|
|
508
506
|
{
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
507
|
+
internalType: "uint256",
|
|
508
|
+
name: "expected",
|
|
509
|
+
type: "uint256"
|
|
512
510
|
},
|
|
513
511
|
{
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
512
|
+
internalType: "uint256",
|
|
513
|
+
name: "actual",
|
|
514
|
+
type: "uint256"
|
|
517
515
|
}
|
|
518
516
|
],
|
|
519
|
-
|
|
520
|
-
|
|
517
|
+
name: "IncorrectReturnDataLength",
|
|
518
|
+
type: "error"
|
|
521
519
|
},
|
|
522
520
|
{
|
|
523
|
-
|
|
521
|
+
inputs: [
|
|
524
522
|
{
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
523
|
+
internalType: "uint256",
|
|
524
|
+
name: "errorCode",
|
|
525
|
+
type: "uint256"
|
|
528
526
|
}
|
|
529
527
|
],
|
|
530
|
-
|
|
531
|
-
|
|
528
|
+
name: "InputNot32ByteAligned",
|
|
529
|
+
type: "error"
|
|
532
530
|
},
|
|
533
531
|
{
|
|
534
|
-
|
|
532
|
+
inputs: [
|
|
535
533
|
{
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
534
|
+
internalType: "uint256",
|
|
535
|
+
name: "errorCode",
|
|
536
|
+
type: "uint256"
|
|
539
537
|
}
|
|
540
538
|
],
|
|
541
|
-
|
|
542
|
-
|
|
539
|
+
name: "InputTooLarge",
|
|
540
|
+
type: "error"
|
|
543
541
|
},
|
|
544
542
|
{
|
|
545
|
-
|
|
543
|
+
inputs: [
|
|
546
544
|
{
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
545
|
+
internalType: "uint256",
|
|
546
|
+
name: "errorCode",
|
|
547
|
+
type: "uint256"
|
|
550
548
|
}
|
|
551
549
|
],
|
|
552
|
-
|
|
553
|
-
|
|
550
|
+
name: "InputTooShort",
|
|
551
|
+
type: "error"
|
|
554
552
|
},
|
|
555
553
|
{
|
|
556
|
-
|
|
554
|
+
inputs: [
|
|
557
555
|
{
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
556
|
+
internalType: "uint256",
|
|
557
|
+
name: "balance",
|
|
558
|
+
type: "uint256"
|
|
561
559
|
},
|
|
562
560
|
{
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
561
|
+
internalType: "uint256",
|
|
562
|
+
name: "needed",
|
|
563
|
+
type: "uint256"
|
|
566
564
|
}
|
|
567
565
|
],
|
|
568
|
-
|
|
569
|
-
|
|
566
|
+
name: "InsufficientBalance",
|
|
567
|
+
type: "error"
|
|
570
568
|
},
|
|
571
569
|
{
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
570
|
+
inputs: [],
|
|
571
|
+
name: "InsufficientBalance",
|
|
572
|
+
type: "error"
|
|
575
573
|
},
|
|
576
574
|
{
|
|
577
|
-
|
|
575
|
+
inputs: [
|
|
578
576
|
{
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
577
|
+
internalType: "uint256",
|
|
578
|
+
name: "required",
|
|
579
|
+
type: "uint256"
|
|
582
580
|
},
|
|
583
581
|
{
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
582
|
+
internalType: "uint256",
|
|
583
|
+
name: "available",
|
|
584
|
+
type: "uint256"
|
|
587
585
|
}
|
|
588
586
|
],
|
|
589
|
-
|
|
590
|
-
|
|
587
|
+
name: "InsufficientGasToken",
|
|
588
|
+
type: "error"
|
|
591
589
|
},
|
|
592
590
|
{
|
|
593
|
-
|
|
591
|
+
inputs: [
|
|
594
592
|
{
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
593
|
+
internalType: "address",
|
|
594
|
+
name: "account",
|
|
595
|
+
type: "address"
|
|
598
596
|
},
|
|
599
597
|
{
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
598
|
+
internalType: "uint256",
|
|
599
|
+
name: "currentNonce",
|
|
600
|
+
type: "uint256"
|
|
603
601
|
}
|
|
604
602
|
],
|
|
605
|
-
|
|
606
|
-
|
|
603
|
+
name: "InvalidAccountNonce",
|
|
604
|
+
type: "error"
|
|
607
605
|
},
|
|
608
606
|
{
|
|
609
|
-
|
|
607
|
+
inputs: [
|
|
610
608
|
{
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
609
|
+
internalType: "uint256",
|
|
610
|
+
name: "errorCode",
|
|
611
|
+
type: "uint256"
|
|
614
612
|
}
|
|
615
613
|
],
|
|
616
|
-
|
|
617
|
-
|
|
614
|
+
name: "InvalidDataOffset",
|
|
615
|
+
type: "error"
|
|
618
616
|
},
|
|
619
617
|
{
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
618
|
+
inputs: [],
|
|
619
|
+
name: "InvalidInitialization",
|
|
620
|
+
type: "error"
|
|
623
621
|
},
|
|
624
622
|
{
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
623
|
+
inputs: [],
|
|
624
|
+
name: "InvalidPublicKey",
|
|
625
|
+
type: "error"
|
|
628
626
|
},
|
|
629
627
|
{
|
|
630
|
-
|
|
628
|
+
inputs: [
|
|
631
629
|
{
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
630
|
+
internalType: "address",
|
|
631
|
+
name: "precompiledContract",
|
|
632
|
+
type: "address"
|
|
635
633
|
},
|
|
636
634
|
{
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
635
|
+
internalType: "uint256",
|
|
636
|
+
name: "expectedMin",
|
|
637
|
+
type: "uint256"
|
|
640
638
|
},
|
|
641
639
|
{
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
640
|
+
internalType: "uint256",
|
|
641
|
+
name: "actual",
|
|
642
|
+
type: "uint256"
|
|
645
643
|
}
|
|
646
644
|
],
|
|
647
|
-
|
|
648
|
-
|
|
645
|
+
name: "InvalidReturnDataSize",
|
|
646
|
+
type: "error"
|
|
649
647
|
},
|
|
650
648
|
{
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
649
|
+
inputs: [],
|
|
650
|
+
name: "InvalidSaltForTransactionValue",
|
|
651
|
+
type: "error"
|
|
654
652
|
},
|
|
655
653
|
{
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
654
|
+
inputs: [],
|
|
655
|
+
name: "InvalidSignature",
|
|
656
|
+
type: "error"
|
|
659
657
|
},
|
|
660
658
|
{
|
|
661
|
-
|
|
659
|
+
inputs: [
|
|
662
660
|
{
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
661
|
+
internalType: "uint256",
|
|
662
|
+
name: "fromTimestamp",
|
|
663
|
+
type: "uint256"
|
|
666
664
|
},
|
|
667
665
|
{
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
666
|
+
internalType: "uint256",
|
|
667
|
+
name: "toTimestamp",
|
|
668
|
+
type: "uint256"
|
|
671
669
|
}
|
|
672
670
|
],
|
|
673
|
-
|
|
674
|
-
|
|
671
|
+
name: "InvalidTimeRange",
|
|
672
|
+
type: "error"
|
|
675
673
|
},
|
|
676
674
|
{
|
|
677
|
-
|
|
675
|
+
inputs: [
|
|
678
676
|
{
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
677
|
+
internalType: "uint256",
|
|
678
|
+
name: "transferId",
|
|
679
|
+
type: "uint256"
|
|
682
680
|
}
|
|
683
681
|
],
|
|
684
|
-
|
|
685
|
-
|
|
682
|
+
name: "InvalidTransferId",
|
|
683
|
+
type: "error"
|
|
686
684
|
},
|
|
687
685
|
{
|
|
688
|
-
|
|
686
|
+
inputs: [
|
|
689
687
|
{
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
688
|
+
internalType: "address",
|
|
689
|
+
name: "holder",
|
|
690
|
+
type: "address"
|
|
693
691
|
}
|
|
694
692
|
],
|
|
695
|
-
|
|
696
|
-
|
|
693
|
+
name: "NoViewerRegisteredForHolder",
|
|
694
|
+
type: "error"
|
|
697
695
|
},
|
|
698
696
|
{
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
697
|
+
inputs: [],
|
|
698
|
+
name: "NotInitializing",
|
|
699
|
+
type: "error"
|
|
702
700
|
},
|
|
703
701
|
{
|
|
704
|
-
|
|
702
|
+
inputs: [
|
|
705
703
|
{
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
704
|
+
internalType: "address",
|
|
705
|
+
name: "to",
|
|
706
|
+
type: "address"
|
|
709
707
|
},
|
|
710
708
|
{
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
709
|
+
internalType: "uint256",
|
|
710
|
+
name: "value",
|
|
711
|
+
type: "uint256"
|
|
714
712
|
}
|
|
715
713
|
],
|
|
716
|
-
|
|
717
|
-
|
|
714
|
+
name: "OutdatedMint",
|
|
715
|
+
type: "error"
|
|
718
716
|
},
|
|
719
717
|
{
|
|
720
|
-
|
|
718
|
+
inputs: [
|
|
721
719
|
{
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
720
|
+
internalType: "address",
|
|
721
|
+
name: "viewer",
|
|
722
|
+
type: "address"
|
|
725
723
|
}
|
|
726
724
|
],
|
|
727
|
-
|
|
728
|
-
|
|
725
|
+
name: "PublicKeyIsNotRegistered",
|
|
726
|
+
type: "error"
|
|
729
727
|
},
|
|
730
728
|
{
|
|
731
|
-
|
|
729
|
+
inputs: [
|
|
732
730
|
{
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
731
|
+
internalType: "address",
|
|
732
|
+
name: "token",
|
|
733
|
+
type: "address"
|
|
736
734
|
}
|
|
737
735
|
],
|
|
738
|
-
|
|
739
|
-
|
|
736
|
+
name: "SafeERC20FailedOperation",
|
|
737
|
+
type: "error"
|
|
740
738
|
},
|
|
741
739
|
{
|
|
742
|
-
|
|
740
|
+
inputs: [
|
|
743
741
|
{
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
742
|
+
internalType: "uint256",
|
|
743
|
+
name: "errorCode",
|
|
744
|
+
type: "uint256"
|
|
747
745
|
}
|
|
748
746
|
],
|
|
749
|
-
|
|
750
|
-
|
|
747
|
+
name: "TrailingPaddingNotZeros",
|
|
748
|
+
type: "error"
|
|
751
749
|
},
|
|
752
750
|
{
|
|
753
|
-
|
|
751
|
+
inputs: [
|
|
754
752
|
{
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
753
|
+
internalType: "uint256",
|
|
754
|
+
name: "errorCode",
|
|
755
|
+
type: "uint256"
|
|
758
756
|
}
|
|
759
757
|
],
|
|
760
|
-
|
|
761
|
-
|
|
758
|
+
name: "UnknownEncryptionError",
|
|
759
|
+
type: "error"
|
|
762
760
|
},
|
|
763
761
|
{
|
|
764
|
-
|
|
762
|
+
inputs: [
|
|
765
763
|
{
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
764
|
+
internalType: "bytes",
|
|
765
|
+
name: "errorData",
|
|
766
|
+
type: "bytes"
|
|
769
767
|
}
|
|
770
768
|
],
|
|
771
|
-
|
|
772
|
-
|
|
769
|
+
name: "UnknownError",
|
|
770
|
+
type: "error"
|
|
773
771
|
},
|
|
774
772
|
{
|
|
775
|
-
|
|
773
|
+
inputs: [
|
|
776
774
|
{
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
775
|
+
internalType: "address",
|
|
776
|
+
name: "viewer",
|
|
777
|
+
type: "address"
|
|
780
778
|
},
|
|
781
779
|
{
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
780
|
+
internalType: "uint256",
|
|
781
|
+
name: "transferId",
|
|
782
|
+
type: "uint256"
|
|
785
783
|
}
|
|
786
784
|
],
|
|
787
|
-
|
|
788
|
-
|
|
785
|
+
name: "UserIsNotAuthorizedToDecryptTransfer",
|
|
786
|
+
type: "error"
|
|
789
787
|
},
|
|
790
788
|
{
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
789
|
+
inputs: [],
|
|
790
|
+
name: "ValueIsEncrypted",
|
|
791
|
+
type: "error"
|
|
794
792
|
},
|
|
795
793
|
{
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
794
|
+
inputs: [],
|
|
795
|
+
name: "ValueWasNotEncryptedCorrectly",
|
|
796
|
+
type: "error"
|
|
799
797
|
},
|
|
800
798
|
{
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
799
|
+
inputs: [],
|
|
800
|
+
name: "WrongInitializer",
|
|
801
|
+
type: "error"
|
|
804
802
|
},
|
|
805
803
|
{
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
804
|
+
inputs: [],
|
|
805
|
+
name: "WrongPlaintextFormat",
|
|
806
|
+
type: "error"
|
|
809
807
|
},
|
|
810
808
|
{
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
809
|
+
inputs: [],
|
|
810
|
+
name: "ZeroAddress",
|
|
811
|
+
type: "error"
|
|
814
812
|
},
|
|
815
813
|
{
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
814
|
+
inputs: [],
|
|
815
|
+
name: "ZeroValue",
|
|
816
|
+
type: "error"
|
|
819
817
|
},
|
|
820
818
|
{
|
|
821
|
-
|
|
822
|
-
|
|
819
|
+
anonymous: false,
|
|
820
|
+
inputs: [
|
|
823
821
|
{
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
822
|
+
indexed: true,
|
|
823
|
+
internalType: "address",
|
|
824
|
+
name: "owner",
|
|
825
|
+
type: "address"
|
|
828
826
|
},
|
|
829
827
|
{
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
828
|
+
indexed: true,
|
|
829
|
+
internalType: "address",
|
|
830
|
+
name: "spender",
|
|
831
|
+
type: "address"
|
|
834
832
|
},
|
|
835
833
|
{
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
834
|
+
indexed: false,
|
|
835
|
+
internalType: "uint256",
|
|
836
|
+
name: "value",
|
|
837
|
+
type: "uint256"
|
|
840
838
|
}
|
|
841
839
|
],
|
|
842
|
-
|
|
843
|
-
|
|
840
|
+
name: "Approval",
|
|
841
|
+
type: "event"
|
|
844
842
|
},
|
|
845
843
|
{
|
|
846
|
-
|
|
847
|
-
|
|
844
|
+
anonymous: false,
|
|
845
|
+
inputs: [
|
|
848
846
|
{
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
847
|
+
indexed: false,
|
|
848
|
+
internalType: "address",
|
|
849
|
+
name: "authority",
|
|
850
|
+
type: "address"
|
|
853
851
|
}
|
|
854
852
|
],
|
|
855
|
-
|
|
856
|
-
|
|
853
|
+
name: "AuthorityUpdated",
|
|
854
|
+
type: "event"
|
|
857
855
|
},
|
|
858
856
|
{
|
|
859
|
-
|
|
860
|
-
|
|
857
|
+
anonymous: false,
|
|
858
|
+
inputs: [
|
|
861
859
|
{
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
860
|
+
indexed: true,
|
|
861
|
+
internalType: "address",
|
|
862
|
+
name: "authorizer",
|
|
863
|
+
type: "address"
|
|
866
864
|
},
|
|
867
865
|
{
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
866
|
+
indexed: true,
|
|
867
|
+
internalType: "bytes32",
|
|
868
|
+
name: "nonce",
|
|
869
|
+
type: "bytes32"
|
|
872
870
|
}
|
|
873
871
|
],
|
|
874
|
-
|
|
875
|
-
|
|
872
|
+
name: "AuthorizationCanceled",
|
|
873
|
+
type: "event"
|
|
876
874
|
},
|
|
877
875
|
{
|
|
878
|
-
|
|
879
|
-
|
|
876
|
+
anonymous: false,
|
|
877
|
+
inputs: [
|
|
880
878
|
{
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
879
|
+
indexed: true,
|
|
880
|
+
internalType: "address",
|
|
881
|
+
name: "authorizer",
|
|
882
|
+
type: "address"
|
|
885
883
|
},
|
|
886
884
|
{
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
885
|
+
indexed: true,
|
|
886
|
+
internalType: "bytes32",
|
|
887
|
+
name: "nonce",
|
|
888
|
+
type: "bytes32"
|
|
891
889
|
}
|
|
892
890
|
],
|
|
893
|
-
|
|
894
|
-
|
|
891
|
+
name: "AuthorizationUsed",
|
|
892
|
+
type: "event"
|
|
895
893
|
},
|
|
896
894
|
{
|
|
897
|
-
|
|
898
|
-
|
|
895
|
+
anonymous: false,
|
|
896
|
+
inputs: [
|
|
899
897
|
{
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
898
|
+
indexed: true,
|
|
899
|
+
internalType: "address",
|
|
900
|
+
name: "callbackSender",
|
|
901
|
+
type: "address"
|
|
904
902
|
}
|
|
905
903
|
],
|
|
906
|
-
|
|
907
|
-
|
|
904
|
+
name: "CTXResubmitted",
|
|
905
|
+
type: "event"
|
|
908
906
|
},
|
|
909
907
|
{
|
|
910
|
-
|
|
911
|
-
|
|
908
|
+
anonymous: false,
|
|
909
|
+
inputs: [
|
|
912
910
|
{
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
911
|
+
indexed: true,
|
|
912
|
+
internalType: "address",
|
|
913
|
+
name: "callbackSender",
|
|
914
|
+
type: "address"
|
|
917
915
|
}
|
|
918
916
|
],
|
|
919
|
-
|
|
920
|
-
|
|
917
|
+
name: "CTXSubmitted",
|
|
918
|
+
type: "event"
|
|
921
919
|
},
|
|
922
920
|
{
|
|
923
|
-
|
|
924
|
-
|
|
921
|
+
anonymous: false,
|
|
922
|
+
inputs: [
|
|
925
923
|
{
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
924
|
+
indexed: true,
|
|
925
|
+
internalType: "uint256",
|
|
926
|
+
name: "newFee",
|
|
927
|
+
type: "uint256"
|
|
930
928
|
}
|
|
931
929
|
],
|
|
932
|
-
|
|
933
|
-
|
|
930
|
+
name: "CallbackFeeChanged",
|
|
931
|
+
type: "event"
|
|
934
932
|
},
|
|
935
933
|
{
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
934
|
+
anonymous: false,
|
|
935
|
+
inputs: [],
|
|
936
|
+
name: "EIP712DomainChanged",
|
|
937
|
+
type: "event"
|
|
940
938
|
},
|
|
941
939
|
{
|
|
942
|
-
|
|
943
|
-
|
|
940
|
+
anonymous: false,
|
|
941
|
+
inputs: [
|
|
944
942
|
{
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
943
|
+
indexed: true,
|
|
944
|
+
internalType: "address",
|
|
945
|
+
name: "newAddress",
|
|
946
|
+
type: "address"
|
|
949
947
|
}
|
|
950
948
|
],
|
|
951
|
-
|
|
952
|
-
|
|
949
|
+
name: "EncryptECIESAddressChanged",
|
|
950
|
+
type: "event"
|
|
953
951
|
},
|
|
954
952
|
{
|
|
955
|
-
|
|
956
|
-
|
|
953
|
+
anonymous: false,
|
|
954
|
+
inputs: [
|
|
957
955
|
{
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
956
|
+
indexed: true,
|
|
957
|
+
internalType: "address",
|
|
958
|
+
name: "newAddress",
|
|
959
|
+
type: "address"
|
|
962
960
|
}
|
|
963
961
|
],
|
|
964
|
-
|
|
965
|
-
|
|
962
|
+
name: "EncryptTEAddressChanged",
|
|
963
|
+
type: "event"
|
|
966
964
|
},
|
|
967
965
|
{
|
|
968
|
-
|
|
969
|
-
|
|
966
|
+
anonymous: false,
|
|
967
|
+
inputs: [
|
|
970
968
|
{
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
969
|
+
indexed: true,
|
|
970
|
+
internalType: "uint256",
|
|
971
|
+
name: "transferId",
|
|
972
|
+
type: "uint256"
|
|
975
973
|
},
|
|
976
974
|
{
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
975
|
+
indexed: true,
|
|
976
|
+
internalType: "address",
|
|
977
|
+
name: "from",
|
|
978
|
+
type: "address"
|
|
981
979
|
},
|
|
982
980
|
{
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
981
|
+
indexed: true,
|
|
982
|
+
internalType: "address",
|
|
983
|
+
name: "to",
|
|
984
|
+
type: "address"
|
|
987
985
|
},
|
|
988
986
|
{
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
987
|
+
indexed: false,
|
|
988
|
+
internalType: "bytes",
|
|
989
|
+
name: "encryptedData",
|
|
990
|
+
type: "bytes"
|
|
993
991
|
}
|
|
994
992
|
],
|
|
995
|
-
|
|
996
|
-
|
|
993
|
+
name: "EncryptedTransfer",
|
|
994
|
+
type: "event"
|
|
997
995
|
},
|
|
998
996
|
{
|
|
999
|
-
|
|
1000
|
-
|
|
997
|
+
anonymous: false,
|
|
998
|
+
inputs: [
|
|
1001
999
|
{
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1000
|
+
indexed: true,
|
|
1001
|
+
internalType: "address",
|
|
1002
|
+
name: "sender",
|
|
1003
|
+
type: "address"
|
|
1006
1004
|
},
|
|
1007
1005
|
{
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1006
|
+
indexed: true,
|
|
1007
|
+
internalType: "address",
|
|
1008
|
+
name: "receiver",
|
|
1009
|
+
type: "address"
|
|
1012
1010
|
},
|
|
1013
1011
|
{
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1012
|
+
indexed: true,
|
|
1013
|
+
internalType: "uint256",
|
|
1014
|
+
name: "value",
|
|
1015
|
+
type: "uint256"
|
|
1018
1016
|
}
|
|
1019
1017
|
],
|
|
1020
|
-
|
|
1021
|
-
|
|
1018
|
+
name: "GasTokenBalanceToppedUp",
|
|
1019
|
+
type: "event"
|
|
1022
1020
|
},
|
|
1023
1021
|
{
|
|
1024
|
-
|
|
1025
|
-
|
|
1022
|
+
anonymous: false,
|
|
1023
|
+
inputs: [
|
|
1026
1024
|
{
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1025
|
+
indexed: true,
|
|
1026
|
+
internalType: "address",
|
|
1027
|
+
name: "receiver",
|
|
1028
|
+
type: "address"
|
|
1031
1029
|
},
|
|
1032
1030
|
{
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1031
|
+
indexed: true,
|
|
1032
|
+
internalType: "uint256",
|
|
1033
|
+
name: "value",
|
|
1034
|
+
type: "uint256"
|
|
1037
1035
|
}
|
|
1038
1036
|
],
|
|
1039
|
-
|
|
1040
|
-
|
|
1037
|
+
name: "GasTokenWithdrawn",
|
|
1038
|
+
type: "event"
|
|
1041
1039
|
},
|
|
1042
1040
|
{
|
|
1043
|
-
|
|
1044
|
-
|
|
1041
|
+
anonymous: false,
|
|
1042
|
+
inputs: [
|
|
1045
1043
|
{
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1044
|
+
indexed: true,
|
|
1045
|
+
internalType: "address",
|
|
1046
|
+
name: "holder",
|
|
1047
|
+
type: "address"
|
|
1050
1048
|
},
|
|
1051
1049
|
{
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1050
|
+
indexed: true,
|
|
1051
|
+
internalType: "address",
|
|
1052
|
+
name: "viewer",
|
|
1053
|
+
type: "address"
|
|
1056
1054
|
}
|
|
1057
1055
|
],
|
|
1058
|
-
|
|
1059
|
-
|
|
1056
|
+
name: "HistoricViewPermissionsRevoked",
|
|
1057
|
+
type: "event"
|
|
1060
1058
|
},
|
|
1061
1059
|
{
|
|
1062
|
-
|
|
1063
|
-
|
|
1060
|
+
anonymous: false,
|
|
1061
|
+
inputs: [
|
|
1064
1062
|
{
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1063
|
+
indexed: true,
|
|
1064
|
+
internalType: "address",
|
|
1065
|
+
name: "holder",
|
|
1066
|
+
type: "address"
|
|
1069
1067
|
},
|
|
1070
1068
|
{
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1069
|
+
indexed: true,
|
|
1070
|
+
internalType: "address",
|
|
1071
|
+
name: "viewer",
|
|
1072
|
+
type: "address"
|
|
1075
1073
|
},
|
|
1076
1074
|
{
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1075
|
+
indexed: false,
|
|
1076
|
+
internalType: "uint256",
|
|
1077
|
+
name: "fromTimestamp",
|
|
1078
|
+
type: "uint256"
|
|
1081
1079
|
},
|
|
1082
1080
|
{
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1081
|
+
indexed: false,
|
|
1082
|
+
internalType: "uint256",
|
|
1083
|
+
name: "toTimestamp",
|
|
1084
|
+
type: "uint256"
|
|
1087
1085
|
}
|
|
1088
1086
|
],
|
|
1089
|
-
|
|
1090
|
-
|
|
1087
|
+
name: "HistoricViewTimeRangeAuthorized",
|
|
1088
|
+
type: "event"
|
|
1091
1089
|
},
|
|
1092
1090
|
{
|
|
1093
|
-
|
|
1094
|
-
|
|
1091
|
+
anonymous: false,
|
|
1092
|
+
inputs: [
|
|
1095
1093
|
{
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1094
|
+
indexed: true,
|
|
1095
|
+
internalType: "address",
|
|
1096
|
+
name: "holder",
|
|
1097
|
+
type: "address"
|
|
1100
1098
|
},
|
|
1101
1099
|
{
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1100
|
+
indexed: true,
|
|
1101
|
+
internalType: "address",
|
|
1102
|
+
name: "viewer",
|
|
1103
|
+
type: "address"
|
|
1106
1104
|
}
|
|
1107
1105
|
],
|
|
1108
|
-
|
|
1109
|
-
|
|
1106
|
+
name: "HistoricViewTimeRangeRevoked",
|
|
1107
|
+
type: "event"
|
|
1110
1108
|
},
|
|
1111
1109
|
{
|
|
1112
|
-
|
|
1113
|
-
|
|
1110
|
+
anonymous: false,
|
|
1111
|
+
inputs: [
|
|
1114
1112
|
{
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1113
|
+
indexed: true,
|
|
1114
|
+
internalType: "address",
|
|
1115
|
+
name: "holder",
|
|
1116
|
+
type: "address"
|
|
1119
1117
|
},
|
|
1120
1118
|
{
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1119
|
+
indexed: true,
|
|
1120
|
+
internalType: "address",
|
|
1121
|
+
name: "viewer",
|
|
1122
|
+
type: "address"
|
|
1125
1123
|
},
|
|
1126
1124
|
{
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1125
|
+
indexed: true,
|
|
1126
|
+
internalType: "uint256",
|
|
1127
|
+
name: "transferId",
|
|
1128
|
+
type: "uint256"
|
|
1131
1129
|
}
|
|
1132
1130
|
],
|
|
1133
|
-
|
|
1134
|
-
|
|
1131
|
+
name: "HistoricViewTransferIdAuthorized",
|
|
1132
|
+
type: "event"
|
|
1135
1133
|
},
|
|
1136
1134
|
{
|
|
1137
|
-
|
|
1138
|
-
|
|
1135
|
+
anonymous: false,
|
|
1136
|
+
inputs: [
|
|
1139
1137
|
{
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1138
|
+
indexed: true,
|
|
1139
|
+
internalType: "address",
|
|
1140
|
+
name: "holder",
|
|
1141
|
+
type: "address"
|
|
1144
1142
|
},
|
|
1145
1143
|
{
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1144
|
+
indexed: true,
|
|
1145
|
+
internalType: "address",
|
|
1146
|
+
name: "viewer",
|
|
1147
|
+
type: "address"
|
|
1150
1148
|
},
|
|
1151
1149
|
{
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1150
|
+
indexed: true,
|
|
1151
|
+
internalType: "uint256",
|
|
1152
|
+
name: "transferId",
|
|
1153
|
+
type: "uint256"
|
|
1156
1154
|
}
|
|
1157
1155
|
],
|
|
1158
|
-
|
|
1159
|
-
|
|
1156
|
+
name: "HistoricViewTransferIdRevoked",
|
|
1157
|
+
type: "event"
|
|
1160
1158
|
},
|
|
1161
1159
|
{
|
|
1162
|
-
|
|
1163
|
-
|
|
1160
|
+
anonymous: false,
|
|
1161
|
+
inputs: [
|
|
1164
1162
|
{
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1163
|
+
indexed: false,
|
|
1164
|
+
internalType: "uint64",
|
|
1165
|
+
name: "version",
|
|
1166
|
+
type: "uint64"
|
|
1169
1167
|
}
|
|
1170
1168
|
],
|
|
1171
|
-
|
|
1172
|
-
|
|
1169
|
+
name: "Initialized",
|
|
1170
|
+
type: "event"
|
|
1173
1171
|
},
|
|
1174
1172
|
{
|
|
1175
|
-
|
|
1176
|
-
|
|
1173
|
+
anonymous: false,
|
|
1174
|
+
inputs: [
|
|
1177
1175
|
{
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1176
|
+
indexed: true,
|
|
1177
|
+
internalType: "address",
|
|
1178
|
+
name: "viewer",
|
|
1179
|
+
type: "address"
|
|
1182
1180
|
}
|
|
1183
1181
|
],
|
|
1184
|
-
|
|
1185
|
-
|
|
1182
|
+
name: "PublicKeyRegistered",
|
|
1183
|
+
type: "event"
|
|
1186
1184
|
},
|
|
1187
1185
|
{
|
|
1188
|
-
|
|
1189
|
-
|
|
1186
|
+
anonymous: false,
|
|
1187
|
+
inputs: [
|
|
1190
1188
|
{
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1189
|
+
indexed: true,
|
|
1190
|
+
internalType: "address",
|
|
1191
|
+
name: "viewer",
|
|
1192
|
+
type: "address"
|
|
1195
1193
|
},
|
|
1196
1194
|
{
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1195
|
+
indexed: true,
|
|
1196
|
+
internalType: "address",
|
|
1197
|
+
name: "from",
|
|
1198
|
+
type: "address"
|
|
1201
1199
|
},
|
|
1202
1200
|
{
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1201
|
+
indexed: true,
|
|
1202
|
+
internalType: "address",
|
|
1203
|
+
name: "to",
|
|
1204
|
+
type: "address"
|
|
1207
1205
|
},
|
|
1208
1206
|
{
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1207
|
+
indexed: false,
|
|
1208
|
+
internalType: "bytes",
|
|
1209
|
+
name: "encryptedTransfer",
|
|
1210
|
+
type: "bytes"
|
|
1213
1211
|
}
|
|
1214
1212
|
],
|
|
1215
|
-
|
|
1216
|
-
|
|
1213
|
+
name: "ReEncryptedTransfer",
|
|
1214
|
+
type: "event"
|
|
1217
1215
|
},
|
|
1218
1216
|
{
|
|
1219
|
-
|
|
1220
|
-
|
|
1217
|
+
anonymous: false,
|
|
1218
|
+
inputs: [
|
|
1221
1219
|
{
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1220
|
+
indexed: true,
|
|
1221
|
+
internalType: "address",
|
|
1222
|
+
name: "newAddress",
|
|
1223
|
+
type: "address"
|
|
1226
1224
|
}
|
|
1227
1225
|
],
|
|
1228
|
-
|
|
1229
|
-
|
|
1226
|
+
name: "SubmitCTXAddressChanged",
|
|
1227
|
+
type: "event"
|
|
1230
1228
|
},
|
|
1231
1229
|
{
|
|
1232
|
-
|
|
1233
|
-
|
|
1230
|
+
anonymous: false,
|
|
1231
|
+
inputs: [
|
|
1234
1232
|
{
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1233
|
+
indexed: true,
|
|
1234
|
+
internalType: "address",
|
|
1235
|
+
name: "from",
|
|
1236
|
+
type: "address"
|
|
1239
1237
|
},
|
|
1240
1238
|
{
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1239
|
+
indexed: true,
|
|
1240
|
+
internalType: "address",
|
|
1241
|
+
name: "to",
|
|
1242
|
+
type: "address"
|
|
1245
1243
|
},
|
|
1246
1244
|
{
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1245
|
+
indexed: false,
|
|
1246
|
+
internalType: "uint256",
|
|
1247
|
+
name: "value",
|
|
1248
|
+
type: "uint256"
|
|
1251
1249
|
}
|
|
1252
1250
|
],
|
|
1253
|
-
|
|
1254
|
-
|
|
1251
|
+
name: "Transfer",
|
|
1252
|
+
type: "event"
|
|
1255
1253
|
},
|
|
1256
1254
|
{
|
|
1257
|
-
|
|
1258
|
-
|
|
1255
|
+
anonymous: false,
|
|
1256
|
+
inputs: [
|
|
1259
1257
|
{
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1258
|
+
indexed: true,
|
|
1259
|
+
internalType: "address",
|
|
1260
|
+
name: "from",
|
|
1261
|
+
type: "address"
|
|
1264
1262
|
},
|
|
1265
1263
|
{
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1264
|
+
indexed: true,
|
|
1265
|
+
internalType: "address",
|
|
1266
|
+
name: "to",
|
|
1267
|
+
type: "address"
|
|
1270
1268
|
}
|
|
1271
1269
|
],
|
|
1272
|
-
|
|
1273
|
-
|
|
1270
|
+
name: "Transfer",
|
|
1271
|
+
type: "event"
|
|
1274
1272
|
},
|
|
1275
1273
|
{
|
|
1276
|
-
|
|
1277
|
-
|
|
1274
|
+
anonymous: false,
|
|
1275
|
+
inputs: [
|
|
1278
1276
|
{
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1277
|
+
indexed: true,
|
|
1278
|
+
internalType: "address",
|
|
1279
|
+
name: "from",
|
|
1280
|
+
type: "address"
|
|
1283
1281
|
},
|
|
1284
1282
|
{
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1283
|
+
indexed: true,
|
|
1284
|
+
internalType: "address",
|
|
1285
|
+
name: "to",
|
|
1286
|
+
type: "address"
|
|
1289
1287
|
},
|
|
1290
1288
|
{
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1289
|
+
indexed: true,
|
|
1290
|
+
internalType: "uint256",
|
|
1291
|
+
name: "transferId",
|
|
1292
|
+
type: "uint256"
|
|
1295
1293
|
},
|
|
1296
1294
|
{
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1295
|
+
indexed: false,
|
|
1296
|
+
internalType: "bytes",
|
|
1297
|
+
name: "encryptedValue",
|
|
1298
|
+
type: "bytes"
|
|
1301
1299
|
}
|
|
1302
1300
|
],
|
|
1303
|
-
|
|
1304
|
-
|
|
1301
|
+
name: "TransferValueEncryptedForRecipient",
|
|
1302
|
+
type: "event"
|
|
1305
1303
|
},
|
|
1306
1304
|
{
|
|
1307
|
-
|
|
1308
|
-
|
|
1305
|
+
anonymous: false,
|
|
1306
|
+
inputs: [
|
|
1309
1307
|
{
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1308
|
+
indexed: true,
|
|
1309
|
+
internalType: "address",
|
|
1310
|
+
name: "from",
|
|
1311
|
+
type: "address"
|
|
1314
1312
|
},
|
|
1315
1313
|
{
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1314
|
+
indexed: true,
|
|
1315
|
+
internalType: "address",
|
|
1316
|
+
name: "to",
|
|
1317
|
+
type: "address"
|
|
1320
1318
|
},
|
|
1321
1319
|
{
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1320
|
+
indexed: true,
|
|
1321
|
+
internalType: "uint256",
|
|
1322
|
+
name: "transferId",
|
|
1323
|
+
type: "uint256"
|
|
1326
1324
|
},
|
|
1327
1325
|
{
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1326
|
+
indexed: false,
|
|
1327
|
+
internalType: "bytes",
|
|
1328
|
+
name: "encryptedValue",
|
|
1329
|
+
type: "bytes"
|
|
1332
1330
|
}
|
|
1333
1331
|
],
|
|
1334
|
-
|
|
1335
|
-
|
|
1332
|
+
name: "TransferValueEncryptedForSender",
|
|
1333
|
+
type: "event"
|
|
1336
1334
|
},
|
|
1337
1335
|
{
|
|
1338
|
-
|
|
1339
|
-
|
|
1336
|
+
anonymous: false,
|
|
1337
|
+
inputs: [
|
|
1340
1338
|
{
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1339
|
+
indexed: true,
|
|
1340
|
+
internalType: "address",
|
|
1341
|
+
name: "holder",
|
|
1342
|
+
type: "address"
|
|
1345
1343
|
},
|
|
1346
1344
|
{
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1345
|
+
indexed: true,
|
|
1346
|
+
internalType: "address",
|
|
1347
|
+
name: "newViewer",
|
|
1348
|
+
type: "address"
|
|
1351
1349
|
}
|
|
1352
1350
|
],
|
|
1353
|
-
|
|
1354
|
-
|
|
1351
|
+
name: "ViewerChanged",
|
|
1352
|
+
type: "event"
|
|
1355
1353
|
},
|
|
1356
1354
|
{
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1355
|
+
inputs: [],
|
|
1356
|
+
name: "CANCEL_AUTHORIZATION_TYPEHASH",
|
|
1357
|
+
outputs: [
|
|
1360
1358
|
{
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1359
|
+
internalType: "bytes32",
|
|
1360
|
+
name: "",
|
|
1361
|
+
type: "bytes32"
|
|
1364
1362
|
}
|
|
1365
1363
|
],
|
|
1366
|
-
|
|
1367
|
-
|
|
1364
|
+
stateMutability: "view",
|
|
1365
|
+
type: "function"
|
|
1368
1366
|
},
|
|
1369
1367
|
{
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1368
|
+
inputs: [],
|
|
1369
|
+
name: "DOMAIN_SEPARATOR",
|
|
1370
|
+
outputs: [
|
|
1373
1371
|
{
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1372
|
+
internalType: "bytes32",
|
|
1373
|
+
name: "",
|
|
1374
|
+
type: "bytes32"
|
|
1377
1375
|
}
|
|
1378
1376
|
],
|
|
1379
|
-
|
|
1380
|
-
|
|
1377
|
+
stateMutability: "view",
|
|
1378
|
+
type: "function"
|
|
1381
1379
|
},
|
|
1382
1380
|
{
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1381
|
+
inputs: [],
|
|
1382
|
+
name: "ENCRYPTED_RECEIVE_WITH_AUTHORIZATION_TYPEHASH",
|
|
1383
|
+
outputs: [
|
|
1386
1384
|
{
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1385
|
+
internalType: "bytes32",
|
|
1386
|
+
name: "",
|
|
1387
|
+
type: "bytes32"
|
|
1390
1388
|
}
|
|
1391
1389
|
],
|
|
1392
|
-
|
|
1393
|
-
|
|
1390
|
+
stateMutability: "view",
|
|
1391
|
+
type: "function"
|
|
1394
1392
|
},
|
|
1395
1393
|
{
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1394
|
+
inputs: [],
|
|
1395
|
+
name: "ENCRYPTED_TRANSFER_WITH_AUTHORIZATION_TYPEHASH",
|
|
1396
|
+
outputs: [
|
|
1399
1397
|
{
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1398
|
+
internalType: "bytes32",
|
|
1399
|
+
name: "",
|
|
1400
|
+
type: "bytes32"
|
|
1403
1401
|
}
|
|
1404
1402
|
],
|
|
1405
|
-
|
|
1406
|
-
|
|
1403
|
+
stateMutability: "view",
|
|
1404
|
+
type: "function"
|
|
1407
1405
|
},
|
|
1408
1406
|
{
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1407
|
+
inputs: [],
|
|
1408
|
+
name: "RECEIVE_WITH_AUTHORIZATION_TYPEHASH",
|
|
1409
|
+
outputs: [
|
|
1412
1410
|
{
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1411
|
+
internalType: "bytes32",
|
|
1412
|
+
name: "",
|
|
1413
|
+
type: "bytes32"
|
|
1416
1414
|
}
|
|
1417
1415
|
],
|
|
1418
|
-
|
|
1419
|
-
|
|
1416
|
+
stateMutability: "view",
|
|
1417
|
+
type: "function"
|
|
1420
1418
|
},
|
|
1421
1419
|
{
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1420
|
+
inputs: [],
|
|
1421
|
+
name: "TRANSFER_WITH_AUTHORIZATION_TYPEHASH",
|
|
1422
|
+
outputs: [
|
|
1425
1423
|
{
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1424
|
+
internalType: "bytes32",
|
|
1425
|
+
name: "",
|
|
1426
|
+
type: "bytes32"
|
|
1429
1427
|
}
|
|
1430
1428
|
],
|
|
1431
|
-
|
|
1432
|
-
|
|
1429
|
+
stateMutability: "view",
|
|
1430
|
+
type: "function"
|
|
1433
1431
|
},
|
|
1434
1432
|
{
|
|
1435
|
-
|
|
1433
|
+
inputs: [
|
|
1436
1434
|
{
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1435
|
+
internalType: "address",
|
|
1436
|
+
name: "owner",
|
|
1437
|
+
type: "address"
|
|
1440
1438
|
},
|
|
1441
1439
|
{
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1440
|
+
internalType: "address",
|
|
1441
|
+
name: "spender",
|
|
1442
|
+
type: "address"
|
|
1445
1443
|
}
|
|
1446
1444
|
],
|
|
1447
|
-
|
|
1448
|
-
|
|
1445
|
+
name: "allowance",
|
|
1446
|
+
outputs: [
|
|
1449
1447
|
{
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1448
|
+
internalType: "uint256",
|
|
1449
|
+
name: "",
|
|
1450
|
+
type: "uint256"
|
|
1453
1451
|
}
|
|
1454
1452
|
],
|
|
1455
|
-
|
|
1456
|
-
|
|
1453
|
+
stateMutability: "view",
|
|
1454
|
+
type: "function"
|
|
1457
1455
|
},
|
|
1458
1456
|
{
|
|
1459
|
-
|
|
1457
|
+
inputs: [
|
|
1460
1458
|
{
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1459
|
+
internalType: "address",
|
|
1460
|
+
name: "spender",
|
|
1461
|
+
type: "address"
|
|
1464
1462
|
},
|
|
1465
1463
|
{
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1464
|
+
internalType: "uint256",
|
|
1465
|
+
name: "value",
|
|
1466
|
+
type: "uint256"
|
|
1469
1467
|
}
|
|
1470
1468
|
],
|
|
1471
|
-
|
|
1472
|
-
|
|
1469
|
+
name: "approve",
|
|
1470
|
+
outputs: [
|
|
1473
1471
|
{
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1472
|
+
internalType: "bool",
|
|
1473
|
+
name: "",
|
|
1474
|
+
type: "bool"
|
|
1477
1475
|
}
|
|
1478
1476
|
],
|
|
1479
|
-
|
|
1480
|
-
|
|
1477
|
+
stateMutability: "nonpayable",
|
|
1478
|
+
type: "function"
|
|
1481
1479
|
},
|
|
1482
1480
|
{
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1481
|
+
inputs: [],
|
|
1482
|
+
name: "authority",
|
|
1483
|
+
outputs: [
|
|
1486
1484
|
{
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1485
|
+
internalType: "address",
|
|
1486
|
+
name: "",
|
|
1487
|
+
type: "address"
|
|
1490
1488
|
}
|
|
1491
1489
|
],
|
|
1492
|
-
|
|
1493
|
-
|
|
1490
|
+
stateMutability: "view",
|
|
1491
|
+
type: "function"
|
|
1494
1492
|
},
|
|
1495
1493
|
{
|
|
1496
|
-
|
|
1494
|
+
inputs: [
|
|
1497
1495
|
{
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1496
|
+
internalType: "address",
|
|
1497
|
+
name: "authorizer",
|
|
1498
|
+
type: "address"
|
|
1501
1499
|
},
|
|
1502
1500
|
{
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1501
|
+
internalType: "bytes32",
|
|
1502
|
+
name: "nonce",
|
|
1503
|
+
type: "bytes32"
|
|
1506
1504
|
}
|
|
1507
1505
|
],
|
|
1508
|
-
|
|
1509
|
-
|
|
1506
|
+
name: "authorizationState",
|
|
1507
|
+
outputs: [
|
|
1510
1508
|
{
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1509
|
+
internalType: "bool",
|
|
1510
|
+
name: "used",
|
|
1511
|
+
type: "bool"
|
|
1514
1512
|
}
|
|
1515
1513
|
],
|
|
1516
|
-
|
|
1517
|
-
|
|
1514
|
+
stateMutability: "view",
|
|
1515
|
+
type: "function"
|
|
1518
1516
|
},
|
|
1519
1517
|
{
|
|
1520
|
-
|
|
1518
|
+
inputs: [
|
|
1521
1519
|
{
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1520
|
+
internalType: "address",
|
|
1521
|
+
name: "viewer",
|
|
1522
|
+
type: "address"
|
|
1525
1523
|
},
|
|
1526
1524
|
{
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1525
|
+
internalType: "uint256",
|
|
1526
|
+
name: "fromTimestamp",
|
|
1527
|
+
type: "uint256"
|
|
1530
1528
|
},
|
|
1531
1529
|
{
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1530
|
+
internalType: "uint256",
|
|
1531
|
+
name: "toTimestamp",
|
|
1532
|
+
type: "uint256"
|
|
1535
1533
|
}
|
|
1536
1534
|
],
|
|
1537
|
-
|
|
1538
|
-
|
|
1535
|
+
name: "authorizeHistoricViewTimeRange",
|
|
1536
|
+
outputs: [
|
|
1539
1537
|
{
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1538
|
+
internalType: "bool",
|
|
1539
|
+
name: "success",
|
|
1540
|
+
type: "bool"
|
|
1543
1541
|
}
|
|
1544
1542
|
],
|
|
1545
|
-
|
|
1546
|
-
|
|
1543
|
+
stateMutability: "nonpayable",
|
|
1544
|
+
type: "function"
|
|
1547
1545
|
},
|
|
1548
1546
|
{
|
|
1549
|
-
|
|
1547
|
+
inputs: [
|
|
1550
1548
|
{
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1549
|
+
internalType: "address",
|
|
1550
|
+
name: "viewer",
|
|
1551
|
+
type: "address"
|
|
1554
1552
|
},
|
|
1555
1553
|
{
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1554
|
+
internalType: "uint256",
|
|
1555
|
+
name: "transferId",
|
|
1556
|
+
type: "uint256"
|
|
1559
1557
|
}
|
|
1560
1558
|
],
|
|
1561
|
-
|
|
1562
|
-
|
|
1559
|
+
name: "authorizeHistoricViewTransferId",
|
|
1560
|
+
outputs: [
|
|
1563
1561
|
{
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1562
|
+
internalType: "bool",
|
|
1563
|
+
name: "success",
|
|
1564
|
+
type: "bool"
|
|
1567
1565
|
}
|
|
1568
1566
|
],
|
|
1569
|
-
|
|
1570
|
-
|
|
1567
|
+
stateMutability: "nonpayable",
|
|
1568
|
+
type: "function"
|
|
1571
1569
|
},
|
|
1572
1570
|
{
|
|
1573
|
-
|
|
1571
|
+
inputs: [
|
|
1574
1572
|
{
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1573
|
+
internalType: "address",
|
|
1574
|
+
name: "account",
|
|
1575
|
+
type: "address"
|
|
1578
1576
|
}
|
|
1579
1577
|
],
|
|
1580
|
-
|
|
1581
|
-
|
|
1578
|
+
name: "balanceOf",
|
|
1579
|
+
outputs: [
|
|
1582
1580
|
{
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1581
|
+
internalType: "uint256",
|
|
1582
|
+
name: "balance",
|
|
1583
|
+
type: "uint256"
|
|
1586
1584
|
}
|
|
1587
1585
|
],
|
|
1588
|
-
|
|
1589
|
-
|
|
1586
|
+
stateMutability: "pure",
|
|
1587
|
+
type: "function"
|
|
1590
1588
|
},
|
|
1591
1589
|
{
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1590
|
+
inputs: [],
|
|
1591
|
+
name: "callbackFee",
|
|
1592
|
+
outputs: [
|
|
1595
1593
|
{
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1594
|
+
internalType: "uint256",
|
|
1595
|
+
name: "",
|
|
1596
|
+
type: "uint256"
|
|
1599
1597
|
}
|
|
1600
1598
|
],
|
|
1601
|
-
|
|
1602
|
-
|
|
1599
|
+
stateMutability: "view",
|
|
1600
|
+
type: "function"
|
|
1603
1601
|
},
|
|
1604
1602
|
{
|
|
1605
|
-
|
|
1603
|
+
inputs: [
|
|
1606
1604
|
{
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1605
|
+
internalType: "address",
|
|
1606
|
+
name: "viewer",
|
|
1607
|
+
type: "address"
|
|
1610
1608
|
},
|
|
1611
1609
|
{
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1610
|
+
internalType: "uint256",
|
|
1611
|
+
name: "transferId",
|
|
1612
|
+
type: "uint256"
|
|
1615
1613
|
},
|
|
1616
1614
|
{
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1615
|
+
internalType: "address",
|
|
1616
|
+
name: "from",
|
|
1617
|
+
type: "address"
|
|
1620
1618
|
},
|
|
1621
1619
|
{
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1620
|
+
internalType: "address",
|
|
1621
|
+
name: "to",
|
|
1622
|
+
type: "address"
|
|
1625
1623
|
},
|
|
1626
1624
|
{
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1625
|
+
internalType: "uint256",
|
|
1626
|
+
name: "timestamp",
|
|
1627
|
+
type: "uint256"
|
|
1630
1628
|
}
|
|
1631
1629
|
],
|
|
1632
|
-
|
|
1633
|
-
|
|
1630
|
+
name: "canDecryptHistoricTransfer",
|
|
1631
|
+
outputs: [
|
|
1634
1632
|
{
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1633
|
+
internalType: "bool",
|
|
1634
|
+
name: "canDecrypt",
|
|
1635
|
+
type: "bool"
|
|
1638
1636
|
}
|
|
1639
1637
|
],
|
|
1640
|
-
|
|
1641
|
-
|
|
1638
|
+
stateMutability: "view",
|
|
1639
|
+
type: "function"
|
|
1642
1640
|
},
|
|
1643
1641
|
{
|
|
1644
|
-
|
|
1642
|
+
inputs: [
|
|
1645
1643
|
{
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1644
|
+
internalType: "address",
|
|
1645
|
+
name: "authorizer",
|
|
1646
|
+
type: "address"
|
|
1649
1647
|
},
|
|
1650
1648
|
{
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1649
|
+
internalType: "bytes32",
|
|
1650
|
+
name: "nonce",
|
|
1651
|
+
type: "bytes32"
|
|
1654
1652
|
},
|
|
1655
1653
|
{
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1654
|
+
internalType: "uint8",
|
|
1655
|
+
name: "v",
|
|
1656
|
+
type: "uint8"
|
|
1659
1657
|
},
|
|
1660
1658
|
{
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1659
|
+
internalType: "bytes32",
|
|
1660
|
+
name: "r",
|
|
1661
|
+
type: "bytes32"
|
|
1664
1662
|
},
|
|
1665
1663
|
{
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1664
|
+
internalType: "bytes32",
|
|
1665
|
+
name: "s",
|
|
1666
|
+
type: "bytes32"
|
|
1669
1667
|
}
|
|
1670
1668
|
],
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1669
|
+
name: "cancelAuthorization",
|
|
1670
|
+
outputs: [],
|
|
1671
|
+
stateMutability: "nonpayable",
|
|
1672
|
+
type: "function"
|
|
1675
1673
|
},
|
|
1676
1674
|
{
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1675
|
+
inputs: [],
|
|
1676
|
+
name: "decimals",
|
|
1677
|
+
outputs: [
|
|
1680
1678
|
{
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1679
|
+
internalType: "uint8",
|
|
1680
|
+
name: "decimalsValue",
|
|
1681
|
+
type: "uint8"
|
|
1684
1682
|
}
|
|
1685
1683
|
],
|
|
1686
|
-
|
|
1687
|
-
|
|
1684
|
+
stateMutability: "view",
|
|
1685
|
+
type: "function"
|
|
1688
1686
|
},
|
|
1689
1687
|
{
|
|
1690
|
-
|
|
1688
|
+
inputs: [
|
|
1691
1689
|
{
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1690
|
+
internalType: "address",
|
|
1691
|
+
name: "account",
|
|
1692
|
+
type: "address"
|
|
1695
1693
|
},
|
|
1696
1694
|
{
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1695
|
+
internalType: "uint256",
|
|
1696
|
+
name: "value",
|
|
1697
|
+
type: "uint256"
|
|
1700
1698
|
}
|
|
1701
1699
|
],
|
|
1702
|
-
|
|
1703
|
-
|
|
1700
|
+
name: "depositFor",
|
|
1701
|
+
outputs: [
|
|
1704
1702
|
{
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1703
|
+
internalType: "bool",
|
|
1704
|
+
name: "success",
|
|
1705
|
+
type: "bool"
|
|
1708
1706
|
}
|
|
1709
1707
|
],
|
|
1710
|
-
|
|
1711
|
-
|
|
1708
|
+
stateMutability: "nonpayable",
|
|
1709
|
+
type: "function"
|
|
1712
1710
|
},
|
|
1713
1711
|
{
|
|
1714
|
-
|
|
1712
|
+
inputs: [
|
|
1715
1713
|
{
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1714
|
+
internalType: "address",
|
|
1715
|
+
name: "account",
|
|
1716
|
+
type: "address"
|
|
1719
1717
|
},
|
|
1720
1718
|
{
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1719
|
+
internalType: "uint256",
|
|
1720
|
+
name: "value",
|
|
1721
|
+
type: "uint256"
|
|
1724
1722
|
}
|
|
1725
1723
|
],
|
|
1726
|
-
|
|
1727
|
-
|
|
1724
|
+
name: "depositForWithGasToken",
|
|
1725
|
+
outputs: [
|
|
1728
1726
|
{
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1727
|
+
internalType: "bool",
|
|
1728
|
+
name: "success",
|
|
1729
|
+
type: "bool"
|
|
1732
1730
|
}
|
|
1733
1731
|
],
|
|
1734
|
-
|
|
1735
|
-
|
|
1732
|
+
stateMutability: "payable",
|
|
1733
|
+
type: "function"
|
|
1736
1734
|
},
|
|
1737
1735
|
{
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1736
|
+
inputs: [],
|
|
1737
|
+
name: "eip712Domain",
|
|
1738
|
+
outputs: [
|
|
1741
1739
|
{
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1740
|
+
internalType: "bytes1",
|
|
1741
|
+
name: "fields",
|
|
1742
|
+
type: "bytes1"
|
|
1745
1743
|
},
|
|
1746
1744
|
{
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1745
|
+
internalType: "string",
|
|
1746
|
+
name: "name",
|
|
1747
|
+
type: "string"
|
|
1750
1748
|
},
|
|
1751
1749
|
{
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1750
|
+
internalType: "string",
|
|
1751
|
+
name: "version",
|
|
1752
|
+
type: "string"
|
|
1755
1753
|
},
|
|
1756
1754
|
{
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1755
|
+
internalType: "uint256",
|
|
1756
|
+
name: "chainId",
|
|
1757
|
+
type: "uint256"
|
|
1760
1758
|
},
|
|
1761
1759
|
{
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1760
|
+
internalType: "address",
|
|
1761
|
+
name: "verifyingContract",
|
|
1762
|
+
type: "address"
|
|
1765
1763
|
},
|
|
1766
1764
|
{
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1765
|
+
internalType: "bytes32",
|
|
1766
|
+
name: "salt",
|
|
1767
|
+
type: "bytes32"
|
|
1770
1768
|
},
|
|
1771
1769
|
{
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1770
|
+
internalType: "uint256[]",
|
|
1771
|
+
name: "extensions",
|
|
1772
|
+
type: "uint256[]"
|
|
1775
1773
|
}
|
|
1776
1774
|
],
|
|
1777
|
-
|
|
1778
|
-
|
|
1775
|
+
stateMutability: "view",
|
|
1776
|
+
type: "function"
|
|
1779
1777
|
},
|
|
1780
1778
|
{
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1779
|
+
inputs: [],
|
|
1780
|
+
name: "encryptECIESAddress",
|
|
1781
|
+
outputs: [
|
|
1784
1782
|
{
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1783
|
+
internalType: "address",
|
|
1784
|
+
name: "",
|
|
1785
|
+
type: "address"
|
|
1788
1786
|
}
|
|
1789
1787
|
],
|
|
1790
|
-
|
|
1791
|
-
|
|
1788
|
+
stateMutability: "view",
|
|
1789
|
+
type: "function"
|
|
1792
1790
|
},
|
|
1793
1791
|
{
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1792
|
+
inputs: [],
|
|
1793
|
+
name: "encryptTEAddress",
|
|
1794
|
+
outputs: [
|
|
1797
1795
|
{
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1796
|
+
internalType: "address",
|
|
1797
|
+
name: "",
|
|
1798
|
+
type: "address"
|
|
1801
1799
|
}
|
|
1802
1800
|
],
|
|
1803
|
-
|
|
1804
|
-
|
|
1801
|
+
stateMutability: "view",
|
|
1802
|
+
type: "function"
|
|
1805
1803
|
},
|
|
1806
1804
|
{
|
|
1807
|
-
|
|
1805
|
+
inputs: [
|
|
1808
1806
|
{
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1807
|
+
internalType: "address",
|
|
1808
|
+
name: "holder",
|
|
1809
|
+
type: "address"
|
|
1812
1810
|
},
|
|
1813
1811
|
{
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1812
|
+
internalType: "uint256",
|
|
1813
|
+
name: "value",
|
|
1814
|
+
type: "uint256"
|
|
1817
1815
|
}
|
|
1818
1816
|
],
|
|
1819
|
-
|
|
1820
|
-
|
|
1817
|
+
name: "encryptValue",
|
|
1818
|
+
outputs: [
|
|
1821
1819
|
{
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1820
|
+
internalType: "bytes",
|
|
1821
|
+
name: "encryptedValue",
|
|
1822
|
+
type: "bytes"
|
|
1825
1823
|
}
|
|
1826
1824
|
],
|
|
1827
|
-
|
|
1828
|
-
|
|
1825
|
+
stateMutability: "view",
|
|
1826
|
+
type: "function"
|
|
1829
1827
|
},
|
|
1830
1828
|
{
|
|
1831
|
-
|
|
1829
|
+
inputs: [
|
|
1832
1830
|
{
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1831
|
+
internalType: "address",
|
|
1832
|
+
name: "holder",
|
|
1833
|
+
type: "address"
|
|
1836
1834
|
}
|
|
1837
1835
|
],
|
|
1838
|
-
|
|
1839
|
-
|
|
1836
|
+
name: "encryptedBalanceOf",
|
|
1837
|
+
outputs: [
|
|
1840
1838
|
{
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1839
|
+
internalType: "bytes",
|
|
1840
|
+
name: "encryptedBalance",
|
|
1841
|
+
type: "bytes"
|
|
1844
1842
|
}
|
|
1845
1843
|
],
|
|
1846
|
-
|
|
1847
|
-
|
|
1844
|
+
stateMutability: "view",
|
|
1845
|
+
type: "function"
|
|
1848
1846
|
},
|
|
1849
1847
|
{
|
|
1850
|
-
|
|
1848
|
+
inputs: [
|
|
1851
1849
|
{
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1850
|
+
internalType: "address",
|
|
1851
|
+
name: "from",
|
|
1852
|
+
type: "address"
|
|
1855
1853
|
},
|
|
1856
1854
|
{
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1855
|
+
internalType: "address",
|
|
1856
|
+
name: "to",
|
|
1857
|
+
type: "address"
|
|
1860
1858
|
},
|
|
1861
1859
|
{
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1860
|
+
internalType: "bytes",
|
|
1861
|
+
name: "value",
|
|
1862
|
+
type: "bytes"
|
|
1865
1863
|
},
|
|
1866
1864
|
{
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1865
|
+
internalType: "uint256",
|
|
1866
|
+
name: "validAfter",
|
|
1867
|
+
type: "uint256"
|
|
1870
1868
|
},
|
|
1871
1869
|
{
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1870
|
+
internalType: "uint256",
|
|
1871
|
+
name: "validBefore",
|
|
1872
|
+
type: "uint256"
|
|
1875
1873
|
},
|
|
1876
1874
|
{
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1875
|
+
internalType: "bytes32",
|
|
1876
|
+
name: "nonce",
|
|
1877
|
+
type: "bytes32"
|
|
1880
1878
|
},
|
|
1881
1879
|
{
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1880
|
+
internalType: "uint8",
|
|
1881
|
+
name: "v",
|
|
1882
|
+
type: "uint8"
|
|
1885
1883
|
},
|
|
1886
1884
|
{
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1885
|
+
internalType: "bytes32",
|
|
1886
|
+
name: "r",
|
|
1887
|
+
type: "bytes32"
|
|
1890
1888
|
},
|
|
1891
1889
|
{
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1890
|
+
internalType: "bytes32",
|
|
1891
|
+
name: "s",
|
|
1892
|
+
type: "bytes32"
|
|
1895
1893
|
}
|
|
1896
1894
|
],
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1895
|
+
name: "encryptedReceiveWithAuthorization",
|
|
1896
|
+
outputs: [],
|
|
1897
|
+
stateMutability: "payable",
|
|
1898
|
+
type: "function"
|
|
1901
1899
|
},
|
|
1902
1900
|
{
|
|
1903
|
-
|
|
1901
|
+
inputs: [
|
|
1904
1902
|
{
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1903
|
+
internalType: "address",
|
|
1904
|
+
name: "to",
|
|
1905
|
+
type: "address"
|
|
1908
1906
|
},
|
|
1909
1907
|
{
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1908
|
+
internalType: "bytes",
|
|
1909
|
+
name: "value",
|
|
1910
|
+
type: "bytes"
|
|
1913
1911
|
}
|
|
1914
1912
|
],
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1913
|
+
name: "encryptedTransfer",
|
|
1914
|
+
outputs: [],
|
|
1915
|
+
stateMutability: "payable",
|
|
1916
|
+
type: "function"
|
|
1919
1917
|
},
|
|
1920
1918
|
{
|
|
1921
|
-
|
|
1919
|
+
inputs: [
|
|
1922
1920
|
{
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1921
|
+
internalType: "address",
|
|
1922
|
+
name: "from",
|
|
1923
|
+
type: "address"
|
|
1926
1924
|
},
|
|
1927
1925
|
{
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1926
|
+
internalType: "address",
|
|
1927
|
+
name: "to",
|
|
1928
|
+
type: "address"
|
|
1931
1929
|
},
|
|
1932
1930
|
{
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1931
|
+
internalType: "bytes",
|
|
1932
|
+
name: "value",
|
|
1933
|
+
type: "bytes"
|
|
1936
1934
|
}
|
|
1937
1935
|
],
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1936
|
+
name: "encryptedTransferFrom",
|
|
1937
|
+
outputs: [],
|
|
1938
|
+
stateMutability: "payable",
|
|
1939
|
+
type: "function"
|
|
1942
1940
|
},
|
|
1943
1941
|
{
|
|
1944
|
-
|
|
1942
|
+
inputs: [
|
|
1945
1943
|
{
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1944
|
+
internalType: "address",
|
|
1945
|
+
name: "from",
|
|
1946
|
+
type: "address"
|
|
1949
1947
|
},
|
|
1950
1948
|
{
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1949
|
+
internalType: "address",
|
|
1950
|
+
name: "to",
|
|
1951
|
+
type: "address"
|
|
1954
1952
|
},
|
|
1955
1953
|
{
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1954
|
+
internalType: "bytes",
|
|
1955
|
+
name: "value",
|
|
1956
|
+
type: "bytes"
|
|
1959
1957
|
},
|
|
1960
1958
|
{
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1959
|
+
internalType: "uint256",
|
|
1960
|
+
name: "validAfter",
|
|
1961
|
+
type: "uint256"
|
|
1964
1962
|
},
|
|
1965
1963
|
{
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1964
|
+
internalType: "uint256",
|
|
1965
|
+
name: "validBefore",
|
|
1966
|
+
type: "uint256"
|
|
1969
1967
|
},
|
|
1970
1968
|
{
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1969
|
+
internalType: "bytes32",
|
|
1970
|
+
name: "nonce",
|
|
1971
|
+
type: "bytes32"
|
|
1974
1972
|
},
|
|
1975
1973
|
{
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1974
|
+
internalType: "uint8",
|
|
1975
|
+
name: "v",
|
|
1976
|
+
type: "uint8"
|
|
1979
1977
|
},
|
|
1980
1978
|
{
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1979
|
+
internalType: "bytes32",
|
|
1980
|
+
name: "r",
|
|
1981
|
+
type: "bytes32"
|
|
1984
1982
|
},
|
|
1985
1983
|
{
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1984
|
+
internalType: "bytes32",
|
|
1985
|
+
name: "s",
|
|
1986
|
+
type: "bytes32"
|
|
1989
1987
|
}
|
|
1990
1988
|
],
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1989
|
+
name: "encryptedTransferWithAuthorization",
|
|
1990
|
+
outputs: [],
|
|
1991
|
+
stateMutability: "payable",
|
|
1992
|
+
type: "function"
|
|
1995
1993
|
},
|
|
1996
1994
|
{
|
|
1997
|
-
|
|
1995
|
+
inputs: [
|
|
1998
1996
|
{
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
1997
|
+
internalType: "address",
|
|
1998
|
+
name: "receiver",
|
|
1999
|
+
type: "address"
|
|
2002
2000
|
}
|
|
2003
2001
|
],
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2002
|
+
name: "fundWithGasToken",
|
|
2003
|
+
outputs: [],
|
|
2004
|
+
stateMutability: "payable",
|
|
2005
|
+
type: "function"
|
|
2008
2006
|
},
|
|
2009
2007
|
{
|
|
2010
|
-
|
|
2008
|
+
inputs: [
|
|
2011
2009
|
{
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2010
|
+
internalType: "address",
|
|
2011
|
+
name: "holder",
|
|
2012
|
+
type: "address"
|
|
2015
2013
|
}
|
|
2016
2014
|
],
|
|
2017
|
-
|
|
2018
|
-
|
|
2015
|
+
name: "gasTokenBalanceOf",
|
|
2016
|
+
outputs: [
|
|
2019
2017
|
{
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2018
|
+
internalType: "uint256",
|
|
2019
|
+
name: "balance",
|
|
2020
|
+
type: "uint256"
|
|
2023
2021
|
}
|
|
2024
2022
|
],
|
|
2025
|
-
|
|
2026
|
-
|
|
2023
|
+
stateMutability: "view",
|
|
2024
|
+
type: "function"
|
|
2027
2025
|
},
|
|
2028
2026
|
{
|
|
2029
|
-
|
|
2027
|
+
inputs: [
|
|
2030
2028
|
{
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2029
|
+
internalType: "string",
|
|
2030
|
+
name: "",
|
|
2031
|
+
type: "string"
|
|
2034
2032
|
},
|
|
2035
2033
|
{
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2034
|
+
internalType: "string",
|
|
2035
|
+
name: "",
|
|
2036
|
+
type: "string"
|
|
2039
2037
|
},
|
|
2040
2038
|
{
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2039
|
+
internalType: "string",
|
|
2040
|
+
name: "",
|
|
2041
|
+
type: "string"
|
|
2044
2042
|
},
|
|
2045
2043
|
{
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2044
|
+
internalType: "address",
|
|
2045
|
+
name: "",
|
|
2046
|
+
type: "address"
|
|
2049
2047
|
}
|
|
2050
2048
|
],
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2049
|
+
name: "initialize",
|
|
2050
|
+
outputs: [],
|
|
2051
|
+
stateMutability: "pure",
|
|
2052
|
+
type: "function"
|
|
2055
2053
|
},
|
|
2056
2054
|
{
|
|
2057
|
-
|
|
2055
|
+
inputs: [
|
|
2058
2056
|
{
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2057
|
+
internalType: "contract IERC20Metadata",
|
|
2058
|
+
name: "underlyingToken",
|
|
2059
|
+
type: "address"
|
|
2062
2060
|
},
|
|
2063
2061
|
{
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2062
|
+
internalType: "string",
|
|
2063
|
+
name: "version_",
|
|
2064
|
+
type: "string"
|
|
2067
2065
|
},
|
|
2068
2066
|
{
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2067
|
+
internalType: "address",
|
|
2068
|
+
name: "initialAuthority",
|
|
2069
|
+
type: "address"
|
|
2072
2070
|
}
|
|
2073
2071
|
],
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2072
|
+
name: "initialize",
|
|
2073
|
+
outputs: [],
|
|
2074
|
+
stateMutability: "nonpayable",
|
|
2075
|
+
type: "function"
|
|
2078
2076
|
},
|
|
2079
2077
|
{
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2078
|
+
inputs: [],
|
|
2079
|
+
name: "isConsumingScheduledOp",
|
|
2080
|
+
outputs: [
|
|
2083
2081
|
{
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2082
|
+
internalType: "bytes4",
|
|
2083
|
+
name: "",
|
|
2084
|
+
type: "bytes4"
|
|
2087
2085
|
}
|
|
2088
2086
|
],
|
|
2089
|
-
|
|
2090
|
-
|
|
2087
|
+
stateMutability: "view",
|
|
2088
|
+
type: "function"
|
|
2091
2089
|
},
|
|
2092
2090
|
{
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2091
|
+
inputs: [],
|
|
2092
|
+
name: "name",
|
|
2093
|
+
outputs: [
|
|
2096
2094
|
{
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2095
|
+
internalType: "string",
|
|
2096
|
+
name: "",
|
|
2097
|
+
type: "string"
|
|
2100
2098
|
}
|
|
2101
2099
|
],
|
|
2102
|
-
|
|
2103
|
-
|
|
2100
|
+
stateMutability: "view",
|
|
2101
|
+
type: "function"
|
|
2104
2102
|
},
|
|
2105
2103
|
{
|
|
2106
|
-
|
|
2104
|
+
inputs: [
|
|
2107
2105
|
{
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2106
|
+
internalType: "address",
|
|
2107
|
+
name: "owner",
|
|
2108
|
+
type: "address"
|
|
2111
2109
|
}
|
|
2112
2110
|
],
|
|
2113
|
-
|
|
2114
|
-
|
|
2111
|
+
name: "nonces",
|
|
2112
|
+
outputs: [
|
|
2115
2113
|
{
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2114
|
+
internalType: "uint256",
|
|
2115
|
+
name: "",
|
|
2116
|
+
type: "uint256"
|
|
2119
2117
|
}
|
|
2120
2118
|
],
|
|
2121
|
-
|
|
2122
|
-
|
|
2119
|
+
stateMutability: "view",
|
|
2120
|
+
type: "function"
|
|
2123
2121
|
},
|
|
2124
2122
|
{
|
|
2125
|
-
|
|
2123
|
+
inputs: [
|
|
2126
2124
|
{
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2125
|
+
internalType: "bytes[]",
|
|
2126
|
+
name: "decryptedArguments",
|
|
2127
|
+
type: "bytes[]"
|
|
2130
2128
|
},
|
|
2131
2129
|
{
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2130
|
+
internalType: "bytes[]",
|
|
2131
|
+
name: "plaintextArguments",
|
|
2132
|
+
type: "bytes[]"
|
|
2135
2133
|
}
|
|
2136
2134
|
],
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2135
|
+
name: "onDecrypt",
|
|
2136
|
+
outputs: [],
|
|
2137
|
+
stateMutability: "nonpayable",
|
|
2138
|
+
type: "function"
|
|
2141
2139
|
},
|
|
2142
2140
|
{
|
|
2143
|
-
|
|
2141
|
+
inputs: [
|
|
2144
2142
|
{
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2143
|
+
internalType: "address",
|
|
2144
|
+
name: "owner",
|
|
2145
|
+
type: "address"
|
|
2148
2146
|
},
|
|
2149
2147
|
{
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2148
|
+
internalType: "address",
|
|
2149
|
+
name: "spender",
|
|
2150
|
+
type: "address"
|
|
2153
2151
|
},
|
|
2154
2152
|
{
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2153
|
+
internalType: "uint256",
|
|
2154
|
+
name: "value",
|
|
2155
|
+
type: "uint256"
|
|
2158
2156
|
},
|
|
2159
2157
|
{
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2158
|
+
internalType: "uint256",
|
|
2159
|
+
name: "deadline",
|
|
2160
|
+
type: "uint256"
|
|
2163
2161
|
},
|
|
2164
2162
|
{
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2163
|
+
internalType: "uint8",
|
|
2164
|
+
name: "v",
|
|
2165
|
+
type: "uint8"
|
|
2168
2166
|
},
|
|
2169
2167
|
{
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2168
|
+
internalType: "bytes32",
|
|
2169
|
+
name: "r",
|
|
2170
|
+
type: "bytes32"
|
|
2173
2171
|
},
|
|
2174
2172
|
{
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2173
|
+
internalType: "bytes32",
|
|
2174
|
+
name: "s",
|
|
2175
|
+
type: "bytes32"
|
|
2178
2176
|
}
|
|
2179
2177
|
],
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2178
|
+
name: "permit",
|
|
2179
|
+
outputs: [],
|
|
2180
|
+
stateMutability: "nonpayable",
|
|
2181
|
+
type: "function"
|
|
2184
2182
|
},
|
|
2185
2183
|
{
|
|
2186
|
-
|
|
2184
|
+
inputs: [
|
|
2187
2185
|
{
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2186
|
+
internalType: "address",
|
|
2187
|
+
name: "accountAddress",
|
|
2188
|
+
type: "address"
|
|
2191
2189
|
}
|
|
2192
2190
|
],
|
|
2193
|
-
|
|
2194
|
-
|
|
2191
|
+
name: "publicKeys",
|
|
2192
|
+
outputs: [
|
|
2195
2193
|
{
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2194
|
+
internalType: "bytes32",
|
|
2195
|
+
name: "x",
|
|
2196
|
+
type: "bytes32"
|
|
2199
2197
|
},
|
|
2200
2198
|
{
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2199
|
+
internalType: "bytes32",
|
|
2200
|
+
name: "y",
|
|
2201
|
+
type: "bytes32"
|
|
2204
2202
|
}
|
|
2205
2203
|
],
|
|
2206
|
-
|
|
2207
|
-
|
|
2204
|
+
stateMutability: "view",
|
|
2205
|
+
type: "function"
|
|
2208
2206
|
},
|
|
2209
2207
|
{
|
|
2210
|
-
|
|
2208
|
+
inputs: [
|
|
2211
2209
|
{
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2210
|
+
internalType: "address",
|
|
2211
|
+
name: "from",
|
|
2212
|
+
type: "address"
|
|
2215
2213
|
},
|
|
2216
2214
|
{
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2215
|
+
internalType: "address",
|
|
2216
|
+
name: "to",
|
|
2217
|
+
type: "address"
|
|
2220
2218
|
},
|
|
2221
2219
|
{
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2220
|
+
internalType: "uint256",
|
|
2221
|
+
name: "value",
|
|
2222
|
+
type: "uint256"
|
|
2225
2223
|
},
|
|
2226
2224
|
{
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2225
|
+
internalType: "uint256",
|
|
2226
|
+
name: "validAfter",
|
|
2227
|
+
type: "uint256"
|
|
2230
2228
|
},
|
|
2231
2229
|
{
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2230
|
+
internalType: "uint256",
|
|
2231
|
+
name: "validBefore",
|
|
2232
|
+
type: "uint256"
|
|
2235
2233
|
},
|
|
2236
2234
|
{
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2235
|
+
internalType: "bytes32",
|
|
2236
|
+
name: "nonce",
|
|
2237
|
+
type: "bytes32"
|
|
2240
2238
|
},
|
|
2241
2239
|
{
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2240
|
+
internalType: "uint8",
|
|
2241
|
+
name: "v",
|
|
2242
|
+
type: "uint8"
|
|
2245
2243
|
},
|
|
2246
2244
|
{
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2245
|
+
internalType: "bytes32",
|
|
2246
|
+
name: "r",
|
|
2247
|
+
type: "bytes32"
|
|
2250
2248
|
},
|
|
2251
2249
|
{
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2250
|
+
internalType: "bytes32",
|
|
2251
|
+
name: "s",
|
|
2252
|
+
type: "bytes32"
|
|
2255
2253
|
}
|
|
2256
2254
|
],
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2255
|
+
name: "receiveWithAuthorization",
|
|
2256
|
+
outputs: [],
|
|
2257
|
+
stateMutability: "nonpayable",
|
|
2258
|
+
type: "function"
|
|
2261
2259
|
},
|
|
2262
2260
|
{
|
|
2263
|
-
|
|
2261
|
+
inputs: [
|
|
2264
2262
|
{
|
|
2265
|
-
|
|
2263
|
+
components: [
|
|
2266
2264
|
{
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2265
|
+
internalType: "bytes32",
|
|
2266
|
+
name: "x",
|
|
2267
|
+
type: "bytes32"
|
|
2270
2268
|
},
|
|
2271
2269
|
{
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2270
|
+
internalType: "bytes32",
|
|
2271
|
+
name: "y",
|
|
2272
|
+
type: "bytes32"
|
|
2275
2273
|
}
|
|
2276
2274
|
],
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2275
|
+
internalType: "struct PublicKey",
|
|
2276
|
+
name: "publicKey",
|
|
2277
|
+
type: "tuple"
|
|
2280
2278
|
}
|
|
2281
2279
|
],
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2280
|
+
name: "registerPublicKey",
|
|
2281
|
+
outputs: [],
|
|
2282
|
+
stateMutability: "nonpayable",
|
|
2283
|
+
type: "function"
|
|
2286
2284
|
},
|
|
2287
2285
|
{
|
|
2288
|
-
|
|
2286
|
+
inputs: [
|
|
2289
2287
|
{
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2288
|
+
internalType: "address",
|
|
2289
|
+
name: "account",
|
|
2290
|
+
type: "address"
|
|
2293
2291
|
},
|
|
2294
2292
|
{
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2293
|
+
internalType: "uint256",
|
|
2294
|
+
name: "value",
|
|
2295
|
+
type: "uint256"
|
|
2298
2296
|
}
|
|
2299
2297
|
],
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2298
|
+
name: "releaseTo",
|
|
2299
|
+
outputs: [],
|
|
2300
|
+
stateMutability: "nonpayable",
|
|
2301
|
+
type: "function"
|
|
2304
2302
|
},
|
|
2305
2303
|
{
|
|
2306
|
-
|
|
2304
|
+
inputs: [
|
|
2307
2305
|
{
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2306
|
+
internalType: "address",
|
|
2307
|
+
name: "viewer",
|
|
2308
|
+
type: "address"
|
|
2311
2309
|
}
|
|
2312
2310
|
],
|
|
2313
|
-
|
|
2314
|
-
|
|
2311
|
+
name: "removeHistoricViewAuth",
|
|
2312
|
+
outputs: [
|
|
2315
2313
|
{
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2314
|
+
internalType: "bool",
|
|
2315
|
+
name: "success",
|
|
2316
|
+
type: "bool"
|
|
2319
2317
|
}
|
|
2320
2318
|
],
|
|
2321
|
-
|
|
2322
|
-
|
|
2319
|
+
stateMutability: "nonpayable",
|
|
2320
|
+
type: "function"
|
|
2323
2321
|
},
|
|
2324
2322
|
{
|
|
2325
|
-
|
|
2323
|
+
inputs: [
|
|
2326
2324
|
{
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2325
|
+
internalType: "address",
|
|
2326
|
+
name: "viewer",
|
|
2327
|
+
type: "address"
|
|
2330
2328
|
}
|
|
2331
2329
|
],
|
|
2332
|
-
|
|
2333
|
-
|
|
2330
|
+
name: "removeHistoricViewTimeRange",
|
|
2331
|
+
outputs: [
|
|
2334
2332
|
{
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2333
|
+
internalType: "bool",
|
|
2334
|
+
name: "success",
|
|
2335
|
+
type: "bool"
|
|
2338
2336
|
}
|
|
2339
2337
|
],
|
|
2340
|
-
|
|
2341
|
-
|
|
2338
|
+
stateMutability: "nonpayable",
|
|
2339
|
+
type: "function"
|
|
2342
2340
|
},
|
|
2343
2341
|
{
|
|
2344
|
-
|
|
2342
|
+
inputs: [
|
|
2345
2343
|
{
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2344
|
+
internalType: "address",
|
|
2345
|
+
name: "viewer",
|
|
2346
|
+
type: "address"
|
|
2349
2347
|
},
|
|
2350
2348
|
{
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2349
|
+
internalType: "uint256",
|
|
2350
|
+
name: "transferId",
|
|
2351
|
+
type: "uint256"
|
|
2354
2352
|
}
|
|
2355
2353
|
],
|
|
2356
|
-
|
|
2357
|
-
|
|
2354
|
+
name: "removeHistoricViewTransferId",
|
|
2355
|
+
outputs: [
|
|
2358
2356
|
{
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2357
|
+
internalType: "bool",
|
|
2358
|
+
name: "success",
|
|
2359
|
+
type: "bool"
|
|
2362
2360
|
}
|
|
2363
2361
|
],
|
|
2364
|
-
|
|
2365
|
-
|
|
2362
|
+
stateMutability: "nonpayable",
|
|
2363
|
+
type: "function"
|
|
2366
2364
|
},
|
|
2367
2365
|
{
|
|
2368
|
-
|
|
2366
|
+
inputs: [
|
|
2369
2367
|
{
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2368
|
+
internalType: "bytes",
|
|
2369
|
+
name: "encryptedTransferData",
|
|
2370
|
+
type: "bytes"
|
|
2373
2371
|
}
|
|
2374
2372
|
],
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2373
|
+
name: "requestDecryptHistoricTransfer",
|
|
2374
|
+
outputs: [],
|
|
2375
|
+
stateMutability: "payable",
|
|
2376
|
+
type: "function"
|
|
2379
2377
|
},
|
|
2380
2378
|
{
|
|
2381
|
-
|
|
2379
|
+
inputs: [
|
|
2382
2380
|
{
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2381
|
+
internalType: "bytes",
|
|
2382
|
+
name: "encryptedTransferData",
|
|
2383
|
+
type: "bytes"
|
|
2386
2384
|
},
|
|
2387
2385
|
{
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2386
|
+
internalType: "address",
|
|
2387
|
+
name: "historicViewer",
|
|
2388
|
+
type: "address"
|
|
2391
2389
|
}
|
|
2392
2390
|
],
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2391
|
+
name: "requestDecryptHistoricTransferFor",
|
|
2392
|
+
outputs: [],
|
|
2393
|
+
stateMutability: "payable",
|
|
2394
|
+
type: "function"
|
|
2397
2395
|
},
|
|
2398
2396
|
{
|
|
2399
|
-
|
|
2397
|
+
inputs: [
|
|
2400
2398
|
{
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2399
|
+
internalType: "address",
|
|
2400
|
+
name: "holder",
|
|
2401
|
+
type: "address"
|
|
2404
2402
|
}
|
|
2405
2403
|
],
|
|
2406
|
-
|
|
2407
|
-
|
|
2404
|
+
name: "requestedMints",
|
|
2405
|
+
outputs: [
|
|
2408
2406
|
{
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2407
|
+
internalType: "uint256",
|
|
2408
|
+
name: "value",
|
|
2409
|
+
type: "uint256"
|
|
2412
2410
|
}
|
|
2413
2411
|
],
|
|
2414
|
-
|
|
2415
|
-
|
|
2412
|
+
stateMutability: "view",
|
|
2413
|
+
type: "function"
|
|
2416
2414
|
},
|
|
2417
2415
|
{
|
|
2418
|
-
|
|
2416
|
+
inputs: [
|
|
2419
2417
|
{
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2418
|
+
internalType: "uint256",
|
|
2419
|
+
name: "value",
|
|
2420
|
+
type: "uint256"
|
|
2423
2421
|
},
|
|
2424
2422
|
{
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2423
|
+
internalType: "address",
|
|
2424
|
+
name: "receiver",
|
|
2425
|
+
type: "address"
|
|
2428
2426
|
}
|
|
2429
2427
|
],
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2428
|
+
name: "retrieveGasToken",
|
|
2429
|
+
outputs: [],
|
|
2430
|
+
stateMutability: "nonpayable",
|
|
2431
|
+
type: "function"
|
|
2434
2432
|
},
|
|
2435
2433
|
{
|
|
2436
|
-
|
|
2434
|
+
inputs: [
|
|
2437
2435
|
{
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2436
|
+
internalType: "address",
|
|
2437
|
+
name: "newAuthority",
|
|
2438
|
+
type: "address"
|
|
2441
2439
|
}
|
|
2442
2440
|
],
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2441
|
+
name: "setAuthority",
|
|
2442
|
+
outputs: [],
|
|
2443
|
+
stateMutability: "nonpayable",
|
|
2444
|
+
type: "function"
|
|
2447
2445
|
},
|
|
2448
2446
|
{
|
|
2449
|
-
|
|
2447
|
+
inputs: [
|
|
2450
2448
|
{
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2449
|
+
internalType: "uint256",
|
|
2450
|
+
name: "newFee",
|
|
2451
|
+
type: "uint256"
|
|
2454
2452
|
}
|
|
2455
2453
|
],
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2454
|
+
name: "setCallbackFee",
|
|
2455
|
+
outputs: [],
|
|
2456
|
+
stateMutability: "nonpayable",
|
|
2457
|
+
type: "function"
|
|
2460
2458
|
},
|
|
2461
2459
|
{
|
|
2462
|
-
|
|
2460
|
+
inputs: [
|
|
2463
2461
|
{
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2462
|
+
internalType: "address",
|
|
2463
|
+
name: "newAddress",
|
|
2464
|
+
type: "address"
|
|
2467
2465
|
}
|
|
2468
2466
|
],
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2467
|
+
name: "setEncryptECIESAddress",
|
|
2468
|
+
outputs: [],
|
|
2469
|
+
stateMutability: "nonpayable",
|
|
2470
|
+
type: "function"
|
|
2473
2471
|
},
|
|
2474
2472
|
{
|
|
2475
|
-
|
|
2473
|
+
inputs: [
|
|
2476
2474
|
{
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2475
|
+
internalType: "address",
|
|
2476
|
+
name: "newAddress",
|
|
2477
|
+
type: "address"
|
|
2480
2478
|
}
|
|
2481
2479
|
],
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2480
|
+
name: "setEncryptTEAddress",
|
|
2481
|
+
outputs: [],
|
|
2482
|
+
stateMutability: "nonpayable",
|
|
2483
|
+
type: "function"
|
|
2486
2484
|
},
|
|
2487
2485
|
{
|
|
2488
|
-
|
|
2486
|
+
inputs: [
|
|
2489
2487
|
{
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2488
|
+
internalType: "address",
|
|
2489
|
+
name: "newAddress",
|
|
2490
|
+
type: "address"
|
|
2493
2491
|
}
|
|
2494
2492
|
],
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2493
|
+
name: "setSubmitCTXAddress",
|
|
2494
|
+
outputs: [],
|
|
2495
|
+
stateMutability: "nonpayable",
|
|
2496
|
+
type: "function"
|
|
2499
2497
|
},
|
|
2500
2498
|
{
|
|
2501
|
-
|
|
2499
|
+
inputs: [
|
|
2502
2500
|
{
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2501
|
+
internalType: "address",
|
|
2502
|
+
name: "viewer",
|
|
2503
|
+
type: "address"
|
|
2506
2504
|
}
|
|
2507
2505
|
],
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2506
|
+
name: "setViewerAddress",
|
|
2507
|
+
outputs: [],
|
|
2508
|
+
stateMutability: "payable",
|
|
2509
|
+
type: "function"
|
|
2512
2510
|
},
|
|
2513
2511
|
{
|
|
2514
|
-
|
|
2512
|
+
inputs: [
|
|
2515
2513
|
{
|
|
2516
|
-
|
|
2514
|
+
components: [
|
|
2517
2515
|
{
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2516
|
+
internalType: "bytes32",
|
|
2517
|
+
name: "x",
|
|
2518
|
+
type: "bytes32"
|
|
2521
2519
|
},
|
|
2522
2520
|
{
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2521
|
+
internalType: "bytes32",
|
|
2522
|
+
name: "y",
|
|
2523
|
+
type: "bytes32"
|
|
2526
2524
|
}
|
|
2527
2525
|
],
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2526
|
+
internalType: "struct PublicKey",
|
|
2527
|
+
name: "publicKey",
|
|
2528
|
+
type: "tuple"
|
|
2531
2529
|
}
|
|
2532
2530
|
],
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2531
|
+
name: "setViewerPublicKey",
|
|
2532
|
+
outputs: [],
|
|
2533
|
+
stateMutability: "payable",
|
|
2534
|
+
type: "function"
|
|
2537
2535
|
},
|
|
2538
2536
|
{
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2537
|
+
inputs: [],
|
|
2538
|
+
name: "submitCTXAddress",
|
|
2539
|
+
outputs: [
|
|
2542
2540
|
{
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2541
|
+
internalType: "address",
|
|
2542
|
+
name: "",
|
|
2543
|
+
type: "address"
|
|
2546
2544
|
}
|
|
2547
2545
|
],
|
|
2548
|
-
|
|
2549
|
-
|
|
2546
|
+
stateMutability: "view",
|
|
2547
|
+
type: "function"
|
|
2550
2548
|
},
|
|
2551
2549
|
{
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2550
|
+
inputs: [],
|
|
2551
|
+
name: "symbol",
|
|
2552
|
+
outputs: [
|
|
2555
2553
|
{
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2554
|
+
internalType: "string",
|
|
2555
|
+
name: "",
|
|
2556
|
+
type: "string"
|
|
2559
2557
|
}
|
|
2560
2558
|
],
|
|
2561
|
-
|
|
2562
|
-
|
|
2559
|
+
stateMutability: "view",
|
|
2560
|
+
type: "function"
|
|
2563
2561
|
},
|
|
2564
2562
|
{
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2563
|
+
inputs: [],
|
|
2564
|
+
name: "totalSupply",
|
|
2565
|
+
outputs: [
|
|
2568
2566
|
{
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2567
|
+
internalType: "uint256",
|
|
2568
|
+
name: "supply",
|
|
2569
|
+
type: "uint256"
|
|
2572
2570
|
}
|
|
2573
2571
|
],
|
|
2574
|
-
|
|
2575
|
-
|
|
2572
|
+
stateMutability: "view",
|
|
2573
|
+
type: "function"
|
|
2576
2574
|
},
|
|
2577
2575
|
{
|
|
2578
|
-
|
|
2576
|
+
inputs: [
|
|
2579
2577
|
{
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2578
|
+
internalType: "address",
|
|
2579
|
+
name: "to",
|
|
2580
|
+
type: "address"
|
|
2583
2581
|
},
|
|
2584
2582
|
{
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2583
|
+
internalType: "uint256",
|
|
2584
|
+
name: "value",
|
|
2585
|
+
type: "uint256"
|
|
2588
2586
|
}
|
|
2589
2587
|
],
|
|
2590
|
-
|
|
2591
|
-
|
|
2588
|
+
name: "transfer",
|
|
2589
|
+
outputs: [
|
|
2592
2590
|
{
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2591
|
+
internalType: "bool",
|
|
2592
|
+
name: "",
|
|
2593
|
+
type: "bool"
|
|
2596
2594
|
}
|
|
2597
2595
|
],
|
|
2598
|
-
|
|
2599
|
-
|
|
2596
|
+
stateMutability: "nonpayable",
|
|
2597
|
+
type: "function"
|
|
2600
2598
|
},
|
|
2601
2599
|
{
|
|
2602
|
-
|
|
2600
|
+
inputs: [
|
|
2603
2601
|
{
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2602
|
+
internalType: "address",
|
|
2603
|
+
name: "from",
|
|
2604
|
+
type: "address"
|
|
2607
2605
|
},
|
|
2608
2606
|
{
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2607
|
+
internalType: "address",
|
|
2608
|
+
name: "to",
|
|
2609
|
+
type: "address"
|
|
2612
2610
|
},
|
|
2613
2611
|
{
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2612
|
+
internalType: "uint256",
|
|
2613
|
+
name: "value",
|
|
2614
|
+
type: "uint256"
|
|
2617
2615
|
}
|
|
2618
2616
|
],
|
|
2619
|
-
|
|
2620
|
-
|
|
2617
|
+
name: "transferFrom",
|
|
2618
|
+
outputs: [
|
|
2621
2619
|
{
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2620
|
+
internalType: "bool",
|
|
2621
|
+
name: "result",
|
|
2622
|
+
type: "bool"
|
|
2625
2623
|
}
|
|
2626
2624
|
],
|
|
2627
|
-
|
|
2628
|
-
|
|
2625
|
+
stateMutability: "nonpayable",
|
|
2626
|
+
type: "function"
|
|
2629
2627
|
},
|
|
2630
2628
|
{
|
|
2631
|
-
|
|
2629
|
+
inputs: [
|
|
2632
2630
|
{
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2631
|
+
internalType: "address",
|
|
2632
|
+
name: "from",
|
|
2633
|
+
type: "address"
|
|
2636
2634
|
},
|
|
2637
2635
|
{
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2636
|
+
internalType: "address",
|
|
2637
|
+
name: "to",
|
|
2638
|
+
type: "address"
|
|
2641
2639
|
},
|
|
2642
2640
|
{
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2641
|
+
internalType: "uint256",
|
|
2642
|
+
name: "value",
|
|
2643
|
+
type: "uint256"
|
|
2646
2644
|
},
|
|
2647
2645
|
{
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2646
|
+
internalType: "uint256",
|
|
2647
|
+
name: "validAfter",
|
|
2648
|
+
type: "uint256"
|
|
2651
2649
|
},
|
|
2652
2650
|
{
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2651
|
+
internalType: "uint256",
|
|
2652
|
+
name: "validBefore",
|
|
2653
|
+
type: "uint256"
|
|
2656
2654
|
},
|
|
2657
2655
|
{
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2656
|
+
internalType: "bytes32",
|
|
2657
|
+
name: "nonce",
|
|
2658
|
+
type: "bytes32"
|
|
2661
2659
|
},
|
|
2662
2660
|
{
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2661
|
+
internalType: "uint8",
|
|
2662
|
+
name: "v",
|
|
2663
|
+
type: "uint8"
|
|
2666
2664
|
},
|
|
2667
2665
|
{
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2666
|
+
internalType: "bytes32",
|
|
2667
|
+
name: "r",
|
|
2668
|
+
type: "bytes32"
|
|
2671
2669
|
},
|
|
2672
2670
|
{
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2671
|
+
internalType: "bytes32",
|
|
2672
|
+
name: "s",
|
|
2673
|
+
type: "bytes32"
|
|
2676
2674
|
}
|
|
2677
2675
|
],
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2676
|
+
name: "transferWithAuthorization",
|
|
2677
|
+
outputs: [],
|
|
2678
|
+
stateMutability: "nonpayable",
|
|
2679
|
+
type: "function"
|
|
2682
2680
|
},
|
|
2683
2681
|
{
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2682
|
+
inputs: [],
|
|
2683
|
+
name: "underlying",
|
|
2684
|
+
outputs: [
|
|
2687
2685
|
{
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2686
|
+
internalType: "contract IERC20",
|
|
2687
|
+
name: "",
|
|
2688
|
+
type: "address"
|
|
2691
2689
|
}
|
|
2692
2690
|
],
|
|
2693
|
-
|
|
2694
|
-
|
|
2691
|
+
stateMutability: "view",
|
|
2692
|
+
type: "function"
|
|
2695
2693
|
},
|
|
2696
2694
|
{
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2695
|
+
inputs: [],
|
|
2696
|
+
name: "version",
|
|
2697
|
+
outputs: [
|
|
2700
2698
|
{
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2699
|
+
internalType: "string",
|
|
2700
|
+
name: "",
|
|
2701
|
+
type: "string"
|
|
2704
2702
|
}
|
|
2705
2703
|
],
|
|
2706
|
-
|
|
2707
|
-
|
|
2704
|
+
stateMutability: "view",
|
|
2705
|
+
type: "function"
|
|
2708
2706
|
},
|
|
2709
2707
|
{
|
|
2710
|
-
|
|
2708
|
+
inputs: [
|
|
2711
2709
|
{
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2710
|
+
internalType: "address",
|
|
2711
|
+
name: "holder",
|
|
2712
|
+
type: "address"
|
|
2715
2713
|
}
|
|
2716
2714
|
],
|
|
2717
|
-
|
|
2718
|
-
|
|
2715
|
+
name: "viewerAddresses",
|
|
2716
|
+
outputs: [
|
|
2719
2717
|
{
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2718
|
+
internalType: "address",
|
|
2719
|
+
name: "viewerAddress",
|
|
2720
|
+
type: "address"
|
|
2723
2721
|
}
|
|
2724
2722
|
],
|
|
2725
|
-
|
|
2726
|
-
|
|
2723
|
+
stateMutability: "view",
|
|
2724
|
+
type: "function"
|
|
2727
2725
|
},
|
|
2728
2726
|
{
|
|
2729
|
-
|
|
2727
|
+
inputs: [
|
|
2730
2728
|
{
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2729
|
+
internalType: "address",
|
|
2730
|
+
name: "account",
|
|
2731
|
+
type: "address"
|
|
2734
2732
|
},
|
|
2735
2733
|
{
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2734
|
+
internalType: "uint256",
|
|
2735
|
+
name: "value",
|
|
2736
|
+
type: "uint256"
|
|
2739
2737
|
}
|
|
2740
2738
|
],
|
|
2741
|
-
|
|
2742
|
-
|
|
2739
|
+
name: "withdrawTo",
|
|
2740
|
+
outputs: [
|
|
2743
2741
|
{
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2742
|
+
internalType: "bool",
|
|
2743
|
+
name: "success",
|
|
2744
|
+
type: "bool"
|
|
2747
2745
|
}
|
|
2748
2746
|
],
|
|
2749
|
-
|
|
2750
|
-
|
|
2747
|
+
stateMutability: "nonpayable",
|
|
2748
|
+
type: "function"
|
|
2751
2749
|
},
|
|
2752
2750
|
{
|
|
2753
|
-
|
|
2751
|
+
inputs: [
|
|
2754
2752
|
{
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2753
|
+
internalType: "address",
|
|
2754
|
+
name: "account",
|
|
2755
|
+
type: "address"
|
|
2758
2756
|
},
|
|
2759
2757
|
{
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2758
|
+
internalType: "uint256",
|
|
2759
|
+
name: "value",
|
|
2760
|
+
type: "uint256"
|
|
2763
2761
|
}
|
|
2764
2762
|
],
|
|
2765
|
-
|
|
2766
|
-
|
|
2763
|
+
name: "withdrawToWithGasToken",
|
|
2764
|
+
outputs: [
|
|
2767
2765
|
{
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2766
|
+
internalType: "bool",
|
|
2767
|
+
name: "success",
|
|
2768
|
+
type: "bool"
|
|
2771
2769
|
}
|
|
2772
2770
|
],
|
|
2773
|
-
|
|
2774
|
-
|
|
2771
|
+
stateMutability: "payable",
|
|
2772
|
+
type: "function"
|
|
2775
2773
|
},
|
|
2776
2774
|
{
|
|
2777
|
-
|
|
2778
|
-
|
|
2775
|
+
stateMutability: "payable",
|
|
2776
|
+
type: "receive"
|
|
2779
2777
|
}
|
|
2780
2778
|
];
|
|
2781
2779
|
|
|
2782
2780
|
// src/actions/funding.ts
|
|
2783
|
-
var import_viem = require("viem");
|
|
2784
2781
|
var CTX_RESERVE_THRESHOLD = 1n;
|
|
2785
2782
|
async function getCtxBalance(config) {
|
|
2786
2783
|
return await config.publicClient.readContract({
|
|
@@ -2790,90 +2787,78 @@ async function getCtxBalance(config) {
|
|
|
2790
2787
|
args: [config.signer.address]
|
|
2791
2788
|
});
|
|
2792
2789
|
}
|
|
2793
|
-
async function
|
|
2790
|
+
async function getCtxRawCost(config) {
|
|
2794
2791
|
return await config.publicClient.readContract({
|
|
2795
2792
|
address: config.address,
|
|
2796
2793
|
abi: confidentialWrapperAbi,
|
|
2797
2794
|
functionName: "callbackFee"
|
|
2798
2795
|
});
|
|
2799
2796
|
}
|
|
2800
|
-
async function
|
|
2801
|
-
const
|
|
2802
|
-
abi: confidentialWrapperAbi,
|
|
2803
|
-
functionName: "fundWithGasToken",
|
|
2804
|
-
args: [config.signer.address]
|
|
2805
|
-
});
|
|
2806
|
-
return config.signer.sendTransaction({
|
|
2807
|
-
to: config.address,
|
|
2808
|
-
data,
|
|
2809
|
-
value: params.amount
|
|
2810
|
-
});
|
|
2811
|
-
}
|
|
2812
|
-
async function getValueForCtx(config) {
|
|
2813
|
-
const [fee, balance] = await Promise.all([getCtxFee(config), getCtxBalance(config)]);
|
|
2797
|
+
async function getCtxOperationCost(config) {
|
|
2798
|
+
const [fee, balance] = await Promise.all([getCtxRawCost(config), getCtxBalance(config)]);
|
|
2814
2799
|
const topUp = CTX_RESERVE_THRESHOLD * fee - balance;
|
|
2815
2800
|
return fee + (topUp > 0n ? topUp : 0n);
|
|
2816
2801
|
}
|
|
2817
2802
|
|
|
2818
2803
|
// src/actions/transfers.ts
|
|
2819
|
-
async function approve(config,
|
|
2820
|
-
const data = (0,
|
|
2804
|
+
async function approve(config, spender, amount) {
|
|
2805
|
+
const data = (0, import_viem.encodeFunctionData)({
|
|
2821
2806
|
abi: confidentialWrapperAbi,
|
|
2822
2807
|
functionName: "approve",
|
|
2823
|
-
args: [
|
|
2808
|
+
args: [spender, amount]
|
|
2824
2809
|
});
|
|
2825
2810
|
return config.signer.sendTransaction({ to: config.address, data });
|
|
2826
2811
|
}
|
|
2827
|
-
async function transfer(config,
|
|
2828
|
-
const value = await
|
|
2829
|
-
const valueHex = (0,
|
|
2812
|
+
async function transfer(config, to, amount) {
|
|
2813
|
+
const value = await getCtxOperationCost(config);
|
|
2814
|
+
const valueHex = (0, import_viem.encodeAbiParameters)(
|
|
2830
2815
|
[{ type: "address" }, { type: "uint256" }],
|
|
2831
|
-
[config.signer.address,
|
|
2816
|
+
[config.signer.address, amount]
|
|
2832
2817
|
);
|
|
2833
2818
|
const encryptedValue = await config.bite.encryptMessageForCTX(valueHex, config.address);
|
|
2834
|
-
const data = (0,
|
|
2819
|
+
const data = (0, import_viem.encodeFunctionData)({
|
|
2835
2820
|
abi: confidentialWrapperAbi,
|
|
2836
2821
|
functionName: "encryptedTransfer",
|
|
2837
|
-
args: [
|
|
2822
|
+
args: [to, encryptedValue]
|
|
2838
2823
|
});
|
|
2839
2824
|
return config.signer.sendTransaction({ to: config.address, data, value });
|
|
2840
2825
|
}
|
|
2841
|
-
async function wrap(config,
|
|
2842
|
-
const value = await
|
|
2843
|
-
const data = (0,
|
|
2826
|
+
async function wrap(config, receiver, amount) {
|
|
2827
|
+
const value = await getCtxOperationCost(config);
|
|
2828
|
+
const data = (0, import_viem.encodeFunctionData)({
|
|
2844
2829
|
abi: confidentialWrapperAbi,
|
|
2845
2830
|
functionName: "depositForWithGasToken",
|
|
2846
|
-
args: [
|
|
2831
|
+
args: [receiver, amount]
|
|
2847
2832
|
});
|
|
2848
2833
|
return config.signer.sendTransaction({ to: config.address, data, value });
|
|
2849
2834
|
}
|
|
2850
|
-
async function unwrap(config,
|
|
2851
|
-
const value = await
|
|
2852
|
-
const data = (0,
|
|
2835
|
+
async function unwrap(config, receiver, amount) {
|
|
2836
|
+
const value = await getCtxOperationCost(config);
|
|
2837
|
+
const data = (0, import_viem.encodeFunctionData)({
|
|
2853
2838
|
abi: confidentialWrapperAbi,
|
|
2854
2839
|
functionName: "withdrawToWithGasToken",
|
|
2855
|
-
args: [
|
|
2840
|
+
args: [receiver, amount]
|
|
2856
2841
|
});
|
|
2857
2842
|
return config.signer.sendTransaction({ to: config.address, data, value });
|
|
2858
2843
|
}
|
|
2859
2844
|
|
|
2860
2845
|
// src/actions/decrypt.ts
|
|
2861
|
-
var
|
|
2846
|
+
var import_viem3 = require("viem");
|
|
2862
2847
|
|
|
2863
2848
|
// src/utils/crypto.ts
|
|
2864
2849
|
var import_secp256k1 = require("@noble/curves/secp256k1");
|
|
2865
2850
|
var import_sha256 = require("@noble/hashes/sha256");
|
|
2866
2851
|
var import_aes = require("@noble/ciphers/aes");
|
|
2867
|
-
var
|
|
2852
|
+
var import_viem2 = require("viem");
|
|
2868
2853
|
function bytesToBigInt(bytes) {
|
|
2869
2854
|
if (bytes.length === 0) {
|
|
2870
2855
|
return 0n;
|
|
2871
2856
|
}
|
|
2872
|
-
const hexValue = (0,
|
|
2857
|
+
const hexValue = (0, import_viem2.bytesToHex)(bytes);
|
|
2873
2858
|
return BigInt(hexValue === "0x" ? "0x0" : hexValue);
|
|
2874
2859
|
}
|
|
2875
2860
|
function decryptEciesPayload(encryptedHex, privateKey) {
|
|
2876
|
-
const payload = (0,
|
|
2861
|
+
const payload = (0, import_viem2.hexToBytes)(encryptedHex);
|
|
2877
2862
|
if (payload.length < 65) {
|
|
2878
2863
|
throw new Error("Encrypted payload is too short.");
|
|
2879
2864
|
}
|
|
@@ -2887,7 +2872,7 @@ function decryptEciesPayload(encryptedHex, privateKey) {
|
|
|
2887
2872
|
throw new Error("Invalid AES-CBC ciphertext length.");
|
|
2888
2873
|
}
|
|
2889
2874
|
const sharedSecret = import_secp256k1.secp256k1.getSharedSecret(
|
|
2890
|
-
(0,
|
|
2875
|
+
(0, import_viem2.hexToBytes)(privateKey),
|
|
2891
2876
|
ephemeralCompressedPublicKey,
|
|
2892
2877
|
true
|
|
2893
2878
|
);
|
|
@@ -2895,23 +2880,6 @@ function decryptEciesPayload(encryptedHex, privateKey) {
|
|
|
2895
2880
|
const keyMaterial = Uint8Array.from(encryptionKey);
|
|
2896
2881
|
return (0, import_aes.cbc)(keyMaterial, iv).decrypt(ciphertext);
|
|
2897
2882
|
}
|
|
2898
|
-
function tryDecodeTransferData(encoded) {
|
|
2899
|
-
try {
|
|
2900
|
-
const [from, to, value, timestamp, transferId] = (0, import_viem3.decodeAbiParameters)(
|
|
2901
|
-
[
|
|
2902
|
-
{ type: "address" },
|
|
2903
|
-
{ type: "address" },
|
|
2904
|
-
{ type: "uint256" },
|
|
2905
|
-
{ type: "uint256" },
|
|
2906
|
-
{ type: "uint256" }
|
|
2907
|
-
],
|
|
2908
|
-
encoded
|
|
2909
|
-
);
|
|
2910
|
-
return { from, to, value, timestamp, transferId };
|
|
2911
|
-
} catch {
|
|
2912
|
-
return void 0;
|
|
2913
|
-
}
|
|
2914
|
-
}
|
|
2915
2883
|
async function decryptBalance(encryptedHex, privateKey) {
|
|
2916
2884
|
const plaintext = decryptEciesPayload(encryptedHex, privateKey);
|
|
2917
2885
|
if (plaintext.length <= 32) {
|
|
@@ -2919,40 +2887,21 @@ async function decryptBalance(encryptedHex, privateKey) {
|
|
|
2919
2887
|
}
|
|
2920
2888
|
return bytesToBigInt(plaintext.slice(-32));
|
|
2921
2889
|
}
|
|
2922
|
-
async function decryptTransferData(encryptedHex, privateKey) {
|
|
2923
|
-
const plaintext = decryptEciesPayload(encryptedHex, privateKey);
|
|
2924
|
-
const direct = tryDecodeTransferData((0, import_viem3.bytesToHex)(plaintext));
|
|
2925
|
-
if (direct) {
|
|
2926
|
-
return direct;
|
|
2927
|
-
}
|
|
2928
|
-
const structSizeBytes = 32 * 5;
|
|
2929
|
-
if (plaintext.length >= structSizeBytes) {
|
|
2930
|
-
const trailing = plaintext.slice(-structSizeBytes);
|
|
2931
|
-
const trailingDecoded = tryDecodeTransferData((0, import_viem3.bytesToHex)(trailing));
|
|
2932
|
-
if (trailingDecoded) {
|
|
2933
|
-
return trailingDecoded;
|
|
2934
|
-
}
|
|
2935
|
-
}
|
|
2936
|
-
throw new Error("Unable to decode decrypted transfer payload as TransferData struct.");
|
|
2937
|
-
}
|
|
2938
2890
|
|
|
2939
2891
|
// src/actions/decrypt.ts
|
|
2940
|
-
async function decryptTokenBalance(config,
|
|
2892
|
+
async function decryptTokenBalance(config, viewerKey) {
|
|
2941
2893
|
const raw = await config.publicClient.readContract({
|
|
2942
2894
|
address: config.address,
|
|
2943
2895
|
abi: confidentialWrapperAbi,
|
|
2944
2896
|
functionName: "encryptedBalanceOf",
|
|
2945
2897
|
args: [config.signer.address]
|
|
2946
2898
|
});
|
|
2947
|
-
const encryptedHex = typeof raw === "string" ? raw : (0,
|
|
2948
|
-
return decryptBalance(encryptedHex,
|
|
2949
|
-
}
|
|
2950
|
-
async function decryptHistoricTransferData(params) {
|
|
2951
|
-
return decryptTransferData(params.encryptedData, params.viewerKey);
|
|
2899
|
+
const encryptedHex = typeof raw === "string" ? raw : (0, import_viem3.bytesToHex)(raw);
|
|
2900
|
+
return decryptBalance(encryptedHex, viewerKey);
|
|
2952
2901
|
}
|
|
2953
|
-
async function getTransferId(config,
|
|
2954
|
-
const receipt = await config.publicClient.waitForTransactionReceipt({ hash:
|
|
2955
|
-
const events = (0,
|
|
2902
|
+
async function getTransferId(config, ctxHash) {
|
|
2903
|
+
const receipt = await config.publicClient.waitForTransactionReceipt({ hash: ctxHash });
|
|
2904
|
+
const events = (0, import_viem3.parseEventLogs)({
|
|
2956
2905
|
abi: confidentialWrapperAbi,
|
|
2957
2906
|
logs: receipt.logs,
|
|
2958
2907
|
eventName: "EncryptedTransfer"
|
|
@@ -2969,10 +2918,10 @@ async function getTransferId(config, params) {
|
|
|
2969
2918
|
}
|
|
2970
2919
|
|
|
2971
2920
|
// src/actions/access.ts
|
|
2972
|
-
var
|
|
2921
|
+
var import_viem5 = require("viem");
|
|
2973
2922
|
|
|
2974
2923
|
// src/utils/viewerKey.ts
|
|
2975
|
-
var
|
|
2924
|
+
var import_viem4 = require("viem");
|
|
2976
2925
|
var import_utils = require("viem/utils");
|
|
2977
2926
|
var import_secp256k12 = require("@noble/curves/secp256k1");
|
|
2978
2927
|
function parsePublicKeyCoordinates(publicKey) {
|
|
@@ -2987,43 +2936,43 @@ function parsePublicKeyCoordinates(publicKey) {
|
|
|
2987
2936
|
}
|
|
2988
2937
|
|
|
2989
2938
|
// src/actions/access.ts
|
|
2990
|
-
async function registerViewerKey(config,
|
|
2991
|
-
const { x, y } = parsePublicKeyCoordinates(
|
|
2992
|
-
const data = (0,
|
|
2939
|
+
async function registerViewerKey(config, publicKey) {
|
|
2940
|
+
const { x, y } = parsePublicKeyCoordinates(publicKey);
|
|
2941
|
+
const data = (0, import_viem5.encodeFunctionData)({
|
|
2993
2942
|
abi: confidentialWrapperAbi,
|
|
2994
2943
|
functionName: "setViewerPublicKey",
|
|
2995
2944
|
args: [{ x, y }]
|
|
2996
2945
|
});
|
|
2997
2946
|
return config.signer.sendTransaction({ to: config.address, data });
|
|
2998
2947
|
}
|
|
2999
|
-
async function authorizeHistoricViewForRange(config,
|
|
3000
|
-
const data = (0,
|
|
2948
|
+
async function authorizeHistoricViewForRange(config, address, fromTimestamp, toTimestamp) {
|
|
2949
|
+
const data = (0, import_viem5.encodeFunctionData)({
|
|
3001
2950
|
abi: confidentialWrapperAbi,
|
|
3002
2951
|
functionName: "authorizeHistoricViewTimeRange",
|
|
3003
|
-
args: [
|
|
2952
|
+
args: [address, fromTimestamp, toTimestamp]
|
|
3004
2953
|
});
|
|
3005
2954
|
return config.signer.sendTransaction({ to: config.address, data });
|
|
3006
2955
|
}
|
|
3007
|
-
async function authorizeHistoricViewForTransfer(config,
|
|
3008
|
-
const data = (0,
|
|
2956
|
+
async function authorizeHistoricViewForTransfer(config, address, transferId) {
|
|
2957
|
+
const data = (0, import_viem5.encodeFunctionData)({
|
|
3009
2958
|
abi: confidentialWrapperAbi,
|
|
3010
2959
|
functionName: "authorizeHistoricViewTransferId",
|
|
3011
|
-
args: [
|
|
2960
|
+
args: [address, transferId]
|
|
3012
2961
|
});
|
|
3013
2962
|
return config.signer.sendTransaction({ to: config.address, data });
|
|
3014
2963
|
}
|
|
3015
|
-
async function revokeHistoricView(config,
|
|
3016
|
-
const data = (0,
|
|
2964
|
+
async function revokeHistoricView(config, address) {
|
|
2965
|
+
const data = (0, import_viem5.encodeFunctionData)({
|
|
3017
2966
|
abi: confidentialWrapperAbi,
|
|
3018
2967
|
functionName: "removeHistoricViewAuth",
|
|
3019
|
-
args: [
|
|
2968
|
+
args: [address]
|
|
3020
2969
|
});
|
|
3021
2970
|
return config.signer.sendTransaction({ to: config.address, data });
|
|
3022
2971
|
}
|
|
3023
|
-
async function requestTransferDecryption(config,
|
|
3024
|
-
const value = await
|
|
3025
|
-
const receipt = await config.publicClient.waitForTransactionReceipt({ hash:
|
|
3026
|
-
const events = (0,
|
|
2972
|
+
async function requestTransferDecryption(config, ctxHash) {
|
|
2973
|
+
const value = await getCtxOperationCost(config);
|
|
2974
|
+
const receipt = await config.publicClient.waitForTransactionReceipt({ hash: ctxHash });
|
|
2975
|
+
const events = (0, import_viem5.parseEventLogs)({
|
|
3027
2976
|
abi: confidentialWrapperAbi,
|
|
3028
2977
|
logs: receipt.logs,
|
|
3029
2978
|
eventName: "EncryptedTransfer"
|
|
@@ -3053,7 +3002,7 @@ async function requestTransferDecryption(config, params) {
|
|
|
3053
3002
|
if (!canDecrypt) {
|
|
3054
3003
|
throw new Error("Viewer is not authorized to decrypt this historic transfer.");
|
|
3055
3004
|
}
|
|
3056
|
-
const data = (0,
|
|
3005
|
+
const data = (0, import_viem5.encodeFunctionData)({
|
|
3057
3006
|
abi: confidentialWrapperAbi,
|
|
3058
3007
|
functionName: "requestDecryptHistoricTransferFor",
|
|
3059
3008
|
args: [encryptedData, viewerAddress]
|
|
@@ -3065,9 +3014,7 @@ async function requestTransferDecryption(config, params) {
|
|
|
3065
3014
|
approve,
|
|
3066
3015
|
authorizeHistoricViewForRange,
|
|
3067
3016
|
authorizeHistoricViewForTransfer,
|
|
3068
|
-
decryptHistoricTransferData,
|
|
3069
3017
|
decryptTokenBalance,
|
|
3070
|
-
fundCtxBalance,
|
|
3071
3018
|
getCtxBalance,
|
|
3072
3019
|
getCtxFee,
|
|
3073
3020
|
getTransferId,
|