@gitmyabi/usdt 1.0.22 → 1.0.27
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 +6 -6
- package/contracts/{TetherUSD_json.d.ts → PermittableToken_json.d.ts} +552 -679
- package/contracts/{TetherUSD_json.js → PermittableToken_json.js} +639 -761
- package/contracts/{TetherUSD_json.ts → PermittableToken_json.ts} +667 -837
- package/contracts/TokenProxy_json.d.ts +145 -0
- package/contracts/TokenProxy_json.js +177 -0
- package/contracts/TokenProxy_json.ts +207 -0
- package/contracts/index.d.ts +4 -2
- package/contracts/index.js +7 -4
- package/contracts/index.ts +4 -2
- package/package.json +3 -3
|
@@ -2,889 +2,905 @@ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType }
|
|
|
2
2
|
import { getContract } from 'viem';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* PermittableToken_json ABI
|
|
6
6
|
*
|
|
7
7
|
* This ABI is typed using viem's type system for full type safety.
|
|
8
8
|
*/
|
|
9
|
-
export const
|
|
9
|
+
export const PermittableToken_jsonAbi = [
|
|
10
10
|
{
|
|
11
|
+
"constant": true,
|
|
11
12
|
"inputs": [],
|
|
12
|
-
"
|
|
13
|
-
"
|
|
13
|
+
"name": "mintingFinished",
|
|
14
|
+
"outputs": [
|
|
15
|
+
{
|
|
16
|
+
"name": "",
|
|
17
|
+
"type": "bool"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"payable": false,
|
|
21
|
+
"stateMutability": "view",
|
|
22
|
+
"type": "function"
|
|
14
23
|
},
|
|
15
24
|
{
|
|
16
|
-
"
|
|
17
|
-
"inputs": [
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"internalType": "address",
|
|
21
|
-
"name": "owner",
|
|
22
|
-
"type": "address"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"indexed": true,
|
|
26
|
-
"internalType": "address",
|
|
27
|
-
"name": "spender",
|
|
28
|
-
"type": "address"
|
|
29
|
-
},
|
|
25
|
+
"constant": true,
|
|
26
|
+
"inputs": [],
|
|
27
|
+
"name": "name",
|
|
28
|
+
"outputs": [
|
|
30
29
|
{
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"name": "value",
|
|
34
|
-
"type": "uint256"
|
|
30
|
+
"name": "",
|
|
31
|
+
"type": "string"
|
|
35
32
|
}
|
|
36
33
|
],
|
|
37
|
-
"
|
|
38
|
-
"
|
|
34
|
+
"payable": false,
|
|
35
|
+
"stateMutability": "view",
|
|
36
|
+
"type": "function"
|
|
39
37
|
},
|
|
40
38
|
{
|
|
41
|
-
"
|
|
39
|
+
"constant": false,
|
|
42
40
|
"inputs": [
|
|
43
41
|
{
|
|
44
|
-
"
|
|
45
|
-
"internalType": "address",
|
|
46
|
-
"name": "account",
|
|
42
|
+
"name": "_to",
|
|
47
43
|
"type": "address"
|
|
48
44
|
},
|
|
49
45
|
{
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
|
|
46
|
+
"name": "_value",
|
|
47
|
+
"type": "uint256"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"name": "approve",
|
|
51
|
+
"outputs": [
|
|
52
|
+
{
|
|
53
|
+
"name": "result",
|
|
53
54
|
"type": "bool"
|
|
54
55
|
}
|
|
55
56
|
],
|
|
56
|
-
"
|
|
57
|
-
"
|
|
57
|
+
"payable": false,
|
|
58
|
+
"stateMutability": "nonpayable",
|
|
59
|
+
"type": "function"
|
|
58
60
|
},
|
|
59
61
|
{
|
|
60
|
-
"
|
|
62
|
+
"constant": false,
|
|
61
63
|
"inputs": [
|
|
62
64
|
{
|
|
63
|
-
"
|
|
64
|
-
"internalType": "address",
|
|
65
|
-
"name": "from",
|
|
65
|
+
"name": "_bridgeContract",
|
|
66
66
|
"type": "address"
|
|
67
|
-
}
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"name": "setBridgeContract",
|
|
70
|
+
"outputs": [],
|
|
71
|
+
"payable": false,
|
|
72
|
+
"stateMutability": "nonpayable",
|
|
73
|
+
"type": "function"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"constant": true,
|
|
77
|
+
"inputs": [],
|
|
78
|
+
"name": "totalSupply",
|
|
79
|
+
"outputs": [
|
|
68
80
|
{
|
|
69
|
-
"
|
|
70
|
-
"internalType": "uint256",
|
|
71
|
-
"name": "amount",
|
|
81
|
+
"name": "",
|
|
72
82
|
"type": "uint256"
|
|
73
83
|
}
|
|
74
84
|
],
|
|
75
|
-
"
|
|
76
|
-
"
|
|
85
|
+
"payable": false,
|
|
86
|
+
"stateMutability": "view",
|
|
87
|
+
"type": "function"
|
|
77
88
|
},
|
|
78
89
|
{
|
|
79
|
-
"
|
|
90
|
+
"constant": false,
|
|
80
91
|
"inputs": [
|
|
81
92
|
{
|
|
82
|
-
"
|
|
83
|
-
"internalType": "address",
|
|
84
|
-
"name": "oldCollector",
|
|
93
|
+
"name": "_sender",
|
|
85
94
|
"type": "address"
|
|
86
95
|
},
|
|
87
96
|
{
|
|
88
|
-
"
|
|
89
|
-
"internalType": "address",
|
|
90
|
-
"name": "newCollector",
|
|
97
|
+
"name": "_recipient",
|
|
91
98
|
"type": "address"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "_amount",
|
|
102
|
+
"type": "uint256"
|
|
92
103
|
}
|
|
93
104
|
],
|
|
94
|
-
"name": "
|
|
95
|
-
"
|
|
105
|
+
"name": "transferFrom",
|
|
106
|
+
"outputs": [
|
|
107
|
+
{
|
|
108
|
+
"name": "",
|
|
109
|
+
"type": "bool"
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"payable": false,
|
|
113
|
+
"stateMutability": "nonpayable",
|
|
114
|
+
"type": "function"
|
|
96
115
|
},
|
|
97
116
|
{
|
|
98
|
-
"
|
|
99
|
-
"inputs": [
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
"internalType": "uint256",
|
|
103
|
-
"name": "oldFee",
|
|
104
|
-
"type": "uint256"
|
|
105
|
-
},
|
|
117
|
+
"constant": true,
|
|
118
|
+
"inputs": [],
|
|
119
|
+
"name": "PERMIT_TYPEHASH",
|
|
120
|
+
"outputs": [
|
|
106
121
|
{
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"name": "newFee",
|
|
110
|
-
"type": "uint256"
|
|
122
|
+
"name": "",
|
|
123
|
+
"type": "bytes32"
|
|
111
124
|
}
|
|
112
125
|
],
|
|
113
|
-
"
|
|
114
|
-
"
|
|
126
|
+
"payable": false,
|
|
127
|
+
"stateMutability": "view",
|
|
128
|
+
"type": "function"
|
|
115
129
|
},
|
|
116
130
|
{
|
|
117
|
-
"
|
|
118
|
-
"inputs": [
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
"internalType": "uint256",
|
|
122
|
-
"name": "oldMax",
|
|
123
|
-
"type": "uint256"
|
|
124
|
-
},
|
|
131
|
+
"constant": true,
|
|
132
|
+
"inputs": [],
|
|
133
|
+
"name": "decimals",
|
|
134
|
+
"outputs": [
|
|
125
135
|
{
|
|
126
|
-
"
|
|
127
|
-
"
|
|
128
|
-
"name": "newMax",
|
|
129
|
-
"type": "uint256"
|
|
136
|
+
"name": "",
|
|
137
|
+
"type": "uint8"
|
|
130
138
|
}
|
|
131
139
|
],
|
|
132
|
-
"
|
|
133
|
-
"
|
|
140
|
+
"payable": false,
|
|
141
|
+
"stateMutability": "view",
|
|
142
|
+
"type": "function"
|
|
134
143
|
},
|
|
135
144
|
{
|
|
136
|
-
"
|
|
137
|
-
"inputs": [
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
"internalType": "address",
|
|
141
|
-
"name": "to",
|
|
142
|
-
"type": "address"
|
|
143
|
-
},
|
|
145
|
+
"constant": true,
|
|
146
|
+
"inputs": [],
|
|
147
|
+
"name": "DOMAIN_SEPARATOR",
|
|
148
|
+
"outputs": [
|
|
144
149
|
{
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
"name": "amount",
|
|
148
|
-
"type": "uint256"
|
|
150
|
+
"name": "",
|
|
151
|
+
"type": "bytes32"
|
|
149
152
|
}
|
|
150
153
|
],
|
|
151
|
-
"
|
|
152
|
-
"
|
|
154
|
+
"payable": false,
|
|
155
|
+
"stateMutability": "view",
|
|
156
|
+
"type": "function"
|
|
153
157
|
},
|
|
154
158
|
{
|
|
155
|
-
"
|
|
159
|
+
"constant": false,
|
|
156
160
|
"inputs": [
|
|
157
161
|
{
|
|
158
|
-
"
|
|
159
|
-
"internalType": "address",
|
|
160
|
-
"name": "previousOwner",
|
|
162
|
+
"name": "_to",
|
|
161
163
|
"type": "address"
|
|
162
164
|
},
|
|
163
165
|
{
|
|
164
|
-
"
|
|
165
|
-
"
|
|
166
|
-
"name": "newOwner",
|
|
167
|
-
"type": "address"
|
|
166
|
+
"name": "_addedValue",
|
|
167
|
+
"type": "uint256"
|
|
168
168
|
}
|
|
169
169
|
],
|
|
170
|
-
"name": "
|
|
171
|
-
"
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
"anonymous": false,
|
|
175
|
-
"inputs": [
|
|
170
|
+
"name": "increaseAllowance",
|
|
171
|
+
"outputs": [
|
|
176
172
|
{
|
|
177
|
-
"
|
|
178
|
-
"
|
|
179
|
-
"name": "by",
|
|
180
|
-
"type": "address"
|
|
173
|
+
"name": "result",
|
|
174
|
+
"type": "bool"
|
|
181
175
|
}
|
|
182
176
|
],
|
|
183
|
-
"
|
|
184
|
-
"
|
|
177
|
+
"payable": false,
|
|
178
|
+
"stateMutability": "nonpayable",
|
|
179
|
+
"type": "function"
|
|
185
180
|
},
|
|
186
181
|
{
|
|
187
|
-
"
|
|
182
|
+
"constant": false,
|
|
188
183
|
"inputs": [
|
|
189
184
|
{
|
|
190
|
-
"
|
|
191
|
-
"internalType": "address",
|
|
192
|
-
"name": "from",
|
|
185
|
+
"name": "_to",
|
|
193
186
|
"type": "address"
|
|
194
187
|
},
|
|
195
188
|
{
|
|
196
|
-
"
|
|
197
|
-
"
|
|
198
|
-
"name": "to",
|
|
199
|
-
"type": "address"
|
|
189
|
+
"name": "_value",
|
|
190
|
+
"type": "uint256"
|
|
200
191
|
},
|
|
201
192
|
{
|
|
202
|
-
"
|
|
203
|
-
"
|
|
204
|
-
"name": "value",
|
|
205
|
-
"type": "uint256"
|
|
193
|
+
"name": "_data",
|
|
194
|
+
"type": "bytes"
|
|
206
195
|
}
|
|
207
196
|
],
|
|
208
|
-
"name": "
|
|
209
|
-
"
|
|
197
|
+
"name": "transferAndCall",
|
|
198
|
+
"outputs": [
|
|
199
|
+
{
|
|
200
|
+
"name": "",
|
|
201
|
+
"type": "bool"
|
|
202
|
+
}
|
|
203
|
+
],
|
|
204
|
+
"payable": false,
|
|
205
|
+
"stateMutability": "nonpayable",
|
|
206
|
+
"type": "function"
|
|
210
207
|
},
|
|
211
208
|
{
|
|
212
|
-
"
|
|
209
|
+
"constant": false,
|
|
213
210
|
"inputs": [
|
|
214
211
|
{
|
|
215
|
-
"
|
|
216
|
-
"internalType": "address",
|
|
217
|
-
"name": "by",
|
|
212
|
+
"name": "_to",
|
|
218
213
|
"type": "address"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"name": "_amount",
|
|
217
|
+
"type": "uint256"
|
|
219
218
|
}
|
|
220
219
|
],
|
|
221
|
-
"name": "
|
|
222
|
-
"type": "event"
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
"inputs": [],
|
|
226
|
-
"name": "VERSION",
|
|
220
|
+
"name": "mint",
|
|
227
221
|
"outputs": [
|
|
228
222
|
{
|
|
229
|
-
"internalType": "bytes32",
|
|
230
223
|
"name": "",
|
|
231
|
-
"type": "
|
|
224
|
+
"type": "bool"
|
|
232
225
|
}
|
|
233
226
|
],
|
|
234
|
-
"
|
|
235
|
-
"type": "function"
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
"inputs": [],
|
|
239
|
-
"name": "acceptOwnership",
|
|
240
|
-
"outputs": [],
|
|
227
|
+
"payable": false,
|
|
241
228
|
"stateMutability": "nonpayable",
|
|
242
229
|
"type": "function"
|
|
243
230
|
},
|
|
244
231
|
{
|
|
232
|
+
"constant": false,
|
|
245
233
|
"inputs": [
|
|
246
234
|
{
|
|
247
|
-
"
|
|
248
|
-
"
|
|
249
|
-
"type": "address"
|
|
235
|
+
"name": "_value",
|
|
236
|
+
"type": "uint256"
|
|
250
237
|
}
|
|
251
238
|
],
|
|
252
|
-
"name": "
|
|
239
|
+
"name": "burn",
|
|
253
240
|
"outputs": [],
|
|
241
|
+
"payable": false,
|
|
254
242
|
"stateMutability": "nonpayable",
|
|
255
243
|
"type": "function"
|
|
256
244
|
},
|
|
257
245
|
{
|
|
258
|
-
"
|
|
246
|
+
"constant": true,
|
|
247
|
+
"inputs": [],
|
|
248
|
+
"name": "version",
|
|
249
|
+
"outputs": [
|
|
259
250
|
{
|
|
260
|
-
"
|
|
261
|
-
"
|
|
262
|
-
"type": "address"
|
|
251
|
+
"name": "",
|
|
252
|
+
"type": "string"
|
|
263
253
|
}
|
|
264
254
|
],
|
|
265
|
-
"
|
|
266
|
-
"
|
|
267
|
-
"stateMutability": "nonpayable",
|
|
255
|
+
"payable": false,
|
|
256
|
+
"stateMutability": "view",
|
|
268
257
|
"type": "function"
|
|
269
258
|
},
|
|
270
259
|
{
|
|
260
|
+
"constant": false,
|
|
271
261
|
"inputs": [
|
|
272
262
|
{
|
|
273
|
-
"
|
|
274
|
-
"name": "_owner",
|
|
263
|
+
"name": "_spender",
|
|
275
264
|
"type": "address"
|
|
276
265
|
},
|
|
277
266
|
{
|
|
278
|
-
"
|
|
279
|
-
"
|
|
280
|
-
"type": "address"
|
|
267
|
+
"name": "_subtractedValue",
|
|
268
|
+
"type": "uint256"
|
|
281
269
|
}
|
|
282
270
|
],
|
|
283
|
-
"name": "
|
|
271
|
+
"name": "decreaseApproval",
|
|
284
272
|
"outputs": [
|
|
285
273
|
{
|
|
286
|
-
"internalType": "uint256",
|
|
287
274
|
"name": "",
|
|
288
|
-
"type": "
|
|
275
|
+
"type": "bool"
|
|
289
276
|
}
|
|
290
277
|
],
|
|
291
|
-
"
|
|
278
|
+
"payable": false,
|
|
279
|
+
"stateMutability": "nonpayable",
|
|
292
280
|
"type": "function"
|
|
293
281
|
},
|
|
294
282
|
{
|
|
283
|
+
"constant": false,
|
|
295
284
|
"inputs": [
|
|
296
285
|
{
|
|
297
|
-
"
|
|
298
|
-
"name": "spender",
|
|
286
|
+
"name": "_token",
|
|
299
287
|
"type": "address"
|
|
300
288
|
},
|
|
301
289
|
{
|
|
302
|
-
"
|
|
303
|
-
"
|
|
304
|
-
"type": "uint256"
|
|
305
|
-
}
|
|
306
|
-
],
|
|
307
|
-
"name": "approve",
|
|
308
|
-
"outputs": [
|
|
309
|
-
{
|
|
310
|
-
"internalType": "bool",
|
|
311
|
-
"name": "",
|
|
312
|
-
"type": "bool"
|
|
290
|
+
"name": "_to",
|
|
291
|
+
"type": "address"
|
|
313
292
|
}
|
|
314
293
|
],
|
|
294
|
+
"name": "claimTokens",
|
|
295
|
+
"outputs": [],
|
|
296
|
+
"payable": false,
|
|
315
297
|
"stateMutability": "nonpayable",
|
|
316
298
|
"type": "function"
|
|
317
299
|
},
|
|
318
300
|
{
|
|
301
|
+
"constant": true,
|
|
319
302
|
"inputs": [
|
|
320
303
|
{
|
|
321
|
-
"
|
|
322
|
-
"name": "account",
|
|
304
|
+
"name": "_owner",
|
|
323
305
|
"type": "address"
|
|
324
306
|
}
|
|
325
307
|
],
|
|
326
308
|
"name": "balanceOf",
|
|
327
309
|
"outputs": [
|
|
328
310
|
{
|
|
329
|
-
"internalType": "uint256",
|
|
330
311
|
"name": "",
|
|
331
312
|
"type": "uint256"
|
|
332
313
|
}
|
|
333
314
|
],
|
|
315
|
+
"payable": false,
|
|
334
316
|
"stateMutability": "view",
|
|
335
317
|
"type": "function"
|
|
336
318
|
},
|
|
337
319
|
{
|
|
338
|
-
"
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
"name": "account",
|
|
342
|
-
"type": "address"
|
|
343
|
-
},
|
|
344
|
-
{
|
|
345
|
-
"internalType": "bool",
|
|
346
|
-
"name": "status",
|
|
347
|
-
"type": "bool"
|
|
348
|
-
}
|
|
349
|
-
],
|
|
350
|
-
"name": "blacklist",
|
|
320
|
+
"constant": false,
|
|
321
|
+
"inputs": [],
|
|
322
|
+
"name": "renounceOwnership",
|
|
351
323
|
"outputs": [],
|
|
324
|
+
"payable": false,
|
|
352
325
|
"stateMutability": "nonpayable",
|
|
353
326
|
"type": "function"
|
|
354
327
|
},
|
|
355
328
|
{
|
|
329
|
+
"constant": true,
|
|
356
330
|
"inputs": [
|
|
357
331
|
{
|
|
358
|
-
"
|
|
359
|
-
"name": "",
|
|
332
|
+
"name": "_address",
|
|
360
333
|
"type": "address"
|
|
361
334
|
}
|
|
362
335
|
],
|
|
363
|
-
"name": "
|
|
336
|
+
"name": "isBridge",
|
|
364
337
|
"outputs": [
|
|
365
338
|
{
|
|
366
|
-
"internalType": "bool",
|
|
367
339
|
"name": "",
|
|
368
340
|
"type": "bool"
|
|
369
341
|
}
|
|
370
342
|
],
|
|
343
|
+
"payable": false,
|
|
371
344
|
"stateMutability": "view",
|
|
372
345
|
"type": "function"
|
|
373
346
|
},
|
|
374
347
|
{
|
|
375
|
-
"
|
|
348
|
+
"constant": false,
|
|
349
|
+
"inputs": [],
|
|
350
|
+
"name": "finishMinting",
|
|
351
|
+
"outputs": [
|
|
376
352
|
{
|
|
377
|
-
"
|
|
378
|
-
"
|
|
379
|
-
"type": "uint256"
|
|
353
|
+
"name": "",
|
|
354
|
+
"type": "bool"
|
|
380
355
|
}
|
|
381
356
|
],
|
|
382
|
-
"
|
|
383
|
-
"outputs": [],
|
|
357
|
+
"payable": false,
|
|
384
358
|
"stateMutability": "nonpayable",
|
|
385
359
|
"type": "function"
|
|
386
360
|
},
|
|
387
361
|
{
|
|
362
|
+
"constant": true,
|
|
388
363
|
"inputs": [
|
|
389
364
|
{
|
|
390
|
-
"
|
|
391
|
-
"name": "from",
|
|
365
|
+
"name": "",
|
|
392
366
|
"type": "address"
|
|
393
|
-
}
|
|
367
|
+
}
|
|
368
|
+
],
|
|
369
|
+
"name": "nonces",
|
|
370
|
+
"outputs": [
|
|
394
371
|
{
|
|
395
|
-
"
|
|
396
|
-
"name": "amount",
|
|
372
|
+
"name": "",
|
|
397
373
|
"type": "uint256"
|
|
398
374
|
}
|
|
399
375
|
],
|
|
400
|
-
"
|
|
401
|
-
"
|
|
402
|
-
"stateMutability": "nonpayable",
|
|
376
|
+
"payable": false,
|
|
377
|
+
"stateMutability": "view",
|
|
403
378
|
"type": "function"
|
|
404
379
|
},
|
|
405
380
|
{
|
|
381
|
+
"constant": true,
|
|
406
382
|
"inputs": [],
|
|
407
|
-
"name": "
|
|
383
|
+
"name": "getTokenInterfacesVersion",
|
|
384
|
+
"outputs": [
|
|
385
|
+
{
|
|
386
|
+
"name": "major",
|
|
387
|
+
"type": "uint64"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"name": "minor",
|
|
391
|
+
"type": "uint64"
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"name": "patch",
|
|
395
|
+
"type": "uint64"
|
|
396
|
+
}
|
|
397
|
+
],
|
|
398
|
+
"payable": false,
|
|
399
|
+
"stateMutability": "pure",
|
|
400
|
+
"type": "function"
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"constant": true,
|
|
404
|
+
"inputs": [],
|
|
405
|
+
"name": "owner",
|
|
408
406
|
"outputs": [
|
|
409
407
|
{
|
|
410
|
-
"internalType": "address",
|
|
411
408
|
"name": "",
|
|
412
409
|
"type": "address"
|
|
413
410
|
}
|
|
414
411
|
],
|
|
412
|
+
"payable": false,
|
|
415
413
|
"stateMutability": "view",
|
|
416
414
|
"type": "function"
|
|
417
415
|
},
|
|
418
416
|
{
|
|
417
|
+
"constant": false,
|
|
418
|
+
"inputs": [
|
|
419
|
+
{
|
|
420
|
+
"name": "_holder",
|
|
421
|
+
"type": "address"
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"name": "_spender",
|
|
425
|
+
"type": "address"
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"name": "_nonce",
|
|
429
|
+
"type": "uint256"
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"name": "_expiry",
|
|
433
|
+
"type": "uint256"
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"name": "_allowed",
|
|
437
|
+
"type": "bool"
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"name": "_v",
|
|
441
|
+
"type": "uint8"
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"name": "_r",
|
|
445
|
+
"type": "bytes32"
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"name": "_s",
|
|
449
|
+
"type": "bytes32"
|
|
450
|
+
}
|
|
451
|
+
],
|
|
452
|
+
"name": "permit",
|
|
453
|
+
"outputs": [],
|
|
454
|
+
"payable": false,
|
|
455
|
+
"stateMutability": "nonpayable",
|
|
456
|
+
"type": "function"
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
"constant": true,
|
|
419
460
|
"inputs": [],
|
|
420
|
-
"name": "
|
|
461
|
+
"name": "symbol",
|
|
421
462
|
"outputs": [
|
|
422
463
|
{
|
|
423
|
-
"internalType": "uint8",
|
|
424
464
|
"name": "",
|
|
425
|
-
"type": "
|
|
465
|
+
"type": "string"
|
|
426
466
|
}
|
|
427
467
|
],
|
|
468
|
+
"payable": false,
|
|
428
469
|
"stateMutability": "view",
|
|
429
470
|
"type": "function"
|
|
430
471
|
},
|
|
431
472
|
{
|
|
473
|
+
"constant": false,
|
|
432
474
|
"inputs": [
|
|
433
475
|
{
|
|
434
|
-
"
|
|
435
|
-
"
|
|
436
|
-
"type": "address[]"
|
|
476
|
+
"name": "spender",
|
|
477
|
+
"type": "address"
|
|
437
478
|
},
|
|
438
479
|
{
|
|
439
|
-
"
|
|
440
|
-
"name": "value",
|
|
480
|
+
"name": "subtractedValue",
|
|
441
481
|
"type": "uint256"
|
|
442
482
|
}
|
|
443
483
|
],
|
|
444
|
-
"name": "
|
|
484
|
+
"name": "decreaseAllowance",
|
|
445
485
|
"outputs": [
|
|
446
486
|
{
|
|
447
|
-
"internalType": "bool",
|
|
448
487
|
"name": "",
|
|
449
488
|
"type": "bool"
|
|
450
489
|
}
|
|
451
490
|
],
|
|
491
|
+
"payable": false,
|
|
452
492
|
"stateMutability": "nonpayable",
|
|
453
493
|
"type": "function"
|
|
454
494
|
},
|
|
455
495
|
{
|
|
456
|
-
"
|
|
457
|
-
"
|
|
458
|
-
"outputs": [
|
|
496
|
+
"constant": false,
|
|
497
|
+
"inputs": [
|
|
459
498
|
{
|
|
460
|
-
"
|
|
461
|
-
"name": "",
|
|
499
|
+
"name": "_to",
|
|
462
500
|
"type": "address"
|
|
463
|
-
}
|
|
464
|
-
],
|
|
465
|
-
"stateMutability": "view",
|
|
466
|
-
"type": "function"
|
|
467
|
-
},
|
|
468
|
-
{
|
|
469
|
-
"inputs": [
|
|
501
|
+
},
|
|
470
502
|
{
|
|
471
|
-
"
|
|
472
|
-
"name": "amount",
|
|
503
|
+
"name": "_value",
|
|
473
504
|
"type": "uint256"
|
|
474
505
|
}
|
|
475
506
|
],
|
|
476
|
-
"name": "
|
|
507
|
+
"name": "transfer",
|
|
477
508
|
"outputs": [
|
|
478
509
|
{
|
|
479
|
-
"internalType": "uint256",
|
|
480
510
|
"name": "",
|
|
481
|
-
"type": "
|
|
511
|
+
"type": "bool"
|
|
482
512
|
}
|
|
483
513
|
],
|
|
484
|
-
"
|
|
514
|
+
"payable": false,
|
|
515
|
+
"stateMutability": "nonpayable",
|
|
485
516
|
"type": "function"
|
|
486
517
|
},
|
|
487
518
|
{
|
|
519
|
+
"constant": false,
|
|
488
520
|
"inputs": [
|
|
489
521
|
{
|
|
490
|
-
"
|
|
491
|
-
"name": "account",
|
|
522
|
+
"name": "_to",
|
|
492
523
|
"type": "address"
|
|
493
|
-
}
|
|
494
|
-
],
|
|
495
|
-
"name": "isMinter",
|
|
496
|
-
"outputs": [
|
|
524
|
+
},
|
|
497
525
|
{
|
|
498
|
-
"
|
|
499
|
-
"
|
|
500
|
-
"type": "bool"
|
|
526
|
+
"name": "_amount",
|
|
527
|
+
"type": "uint256"
|
|
501
528
|
}
|
|
502
529
|
],
|
|
503
|
-
"
|
|
530
|
+
"name": "push",
|
|
531
|
+
"outputs": [],
|
|
532
|
+
"payable": false,
|
|
533
|
+
"stateMutability": "nonpayable",
|
|
504
534
|
"type": "function"
|
|
505
535
|
},
|
|
506
536
|
{
|
|
537
|
+
"constant": false,
|
|
507
538
|
"inputs": [
|
|
508
539
|
{
|
|
509
|
-
"
|
|
510
|
-
"name": "account",
|
|
540
|
+
"name": "_from",
|
|
511
541
|
"type": "address"
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
"name": "_to",
|
|
545
|
+
"type": "address"
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
"name": "_amount",
|
|
549
|
+
"type": "uint256"
|
|
512
550
|
}
|
|
513
551
|
],
|
|
514
|
-
"name": "
|
|
552
|
+
"name": "move",
|
|
553
|
+
"outputs": [],
|
|
554
|
+
"payable": false,
|
|
555
|
+
"stateMutability": "nonpayable",
|
|
556
|
+
"type": "function"
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
"constant": true,
|
|
560
|
+
"inputs": [],
|
|
561
|
+
"name": "PERMIT_TYPEHASH_LEGACY",
|
|
515
562
|
"outputs": [
|
|
516
563
|
{
|
|
517
|
-
"internalType": "bool",
|
|
518
564
|
"name": "",
|
|
519
|
-
"type": "
|
|
565
|
+
"type": "bytes32"
|
|
520
566
|
}
|
|
521
567
|
],
|
|
568
|
+
"payable": false,
|
|
522
569
|
"stateMutability": "view",
|
|
523
570
|
"type": "function"
|
|
524
571
|
},
|
|
525
572
|
{
|
|
573
|
+
"constant": true,
|
|
526
574
|
"inputs": [],
|
|
527
|
-
"name": "
|
|
575
|
+
"name": "bridgeContract",
|
|
528
576
|
"outputs": [
|
|
529
577
|
{
|
|
530
|
-
"internalType": "uint256",
|
|
531
578
|
"name": "",
|
|
532
|
-
"type": "
|
|
579
|
+
"type": "address"
|
|
533
580
|
}
|
|
534
581
|
],
|
|
582
|
+
"payable": false,
|
|
535
583
|
"stateMutability": "view",
|
|
536
584
|
"type": "function"
|
|
537
585
|
},
|
|
538
586
|
{
|
|
587
|
+
"constant": false,
|
|
539
588
|
"inputs": [
|
|
540
589
|
{
|
|
541
|
-
"
|
|
542
|
-
"name": "to",
|
|
590
|
+
"name": "_holder",
|
|
543
591
|
"type": "address"
|
|
544
592
|
},
|
|
545
593
|
{
|
|
546
|
-
"
|
|
547
|
-
"
|
|
594
|
+
"name": "_spender",
|
|
595
|
+
"type": "address"
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"name": "_value",
|
|
599
|
+
"type": "uint256"
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
"name": "_deadline",
|
|
548
603
|
"type": "uint256"
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
"name": "_v",
|
|
607
|
+
"type": "uint8"
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
"name": "_r",
|
|
611
|
+
"type": "bytes32"
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
"name": "_s",
|
|
615
|
+
"type": "bytes32"
|
|
549
616
|
}
|
|
550
617
|
],
|
|
551
|
-
"name": "
|
|
618
|
+
"name": "permit",
|
|
552
619
|
"outputs": [],
|
|
620
|
+
"payable": false,
|
|
553
621
|
"stateMutability": "nonpayable",
|
|
554
622
|
"type": "function"
|
|
555
623
|
},
|
|
556
624
|
{
|
|
625
|
+
"constant": false,
|
|
557
626
|
"inputs": [
|
|
558
627
|
{
|
|
559
|
-
"
|
|
560
|
-
"name": "",
|
|
628
|
+
"name": "_spender",
|
|
561
629
|
"type": "address"
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
"name": "_addedValue",
|
|
633
|
+
"type": "uint256"
|
|
562
634
|
}
|
|
563
635
|
],
|
|
564
|
-
"name": "
|
|
636
|
+
"name": "increaseApproval",
|
|
565
637
|
"outputs": [
|
|
566
638
|
{
|
|
567
|
-
"internalType": "bool",
|
|
568
639
|
"name": "",
|
|
569
640
|
"type": "bool"
|
|
570
641
|
}
|
|
571
642
|
],
|
|
572
|
-
"
|
|
643
|
+
"payable": false,
|
|
644
|
+
"stateMutability": "nonpayable",
|
|
573
645
|
"type": "function"
|
|
574
646
|
},
|
|
575
647
|
{
|
|
648
|
+
"constant": true,
|
|
576
649
|
"inputs": [
|
|
577
650
|
{
|
|
578
|
-
"
|
|
579
|
-
"
|
|
580
|
-
"type": "address[]"
|
|
651
|
+
"name": "_owner",
|
|
652
|
+
"type": "address"
|
|
581
653
|
},
|
|
582
654
|
{
|
|
583
|
-
"
|
|
584
|
-
"
|
|
585
|
-
"type": "uint256[]"
|
|
586
|
-
}
|
|
587
|
-
],
|
|
588
|
-
"name": "multiTransfer",
|
|
589
|
-
"outputs": [
|
|
590
|
-
{
|
|
591
|
-
"internalType": "bool",
|
|
592
|
-
"name": "",
|
|
593
|
-
"type": "bool"
|
|
655
|
+
"name": "_spender",
|
|
656
|
+
"type": "address"
|
|
594
657
|
}
|
|
595
658
|
],
|
|
596
|
-
"
|
|
597
|
-
"type": "function"
|
|
598
|
-
},
|
|
599
|
-
{
|
|
600
|
-
"inputs": [],
|
|
601
|
-
"name": "name",
|
|
659
|
+
"name": "allowance",
|
|
602
660
|
"outputs": [
|
|
603
661
|
{
|
|
604
|
-
"internalType": "string",
|
|
605
662
|
"name": "",
|
|
606
|
-
"type": "
|
|
663
|
+
"type": "uint256"
|
|
607
664
|
}
|
|
608
665
|
],
|
|
666
|
+
"payable": false,
|
|
609
667
|
"stateMutability": "view",
|
|
610
668
|
"type": "function"
|
|
611
669
|
},
|
|
612
670
|
{
|
|
613
|
-
"
|
|
614
|
-
"
|
|
615
|
-
"outputs": [
|
|
671
|
+
"constant": false,
|
|
672
|
+
"inputs": [
|
|
616
673
|
{
|
|
617
|
-
"
|
|
618
|
-
"name": "",
|
|
674
|
+
"name": "_from",
|
|
619
675
|
"type": "address"
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"name": "_amount",
|
|
679
|
+
"type": "uint256"
|
|
620
680
|
}
|
|
621
681
|
],
|
|
622
|
-
"
|
|
623
|
-
"type": "function"
|
|
624
|
-
},
|
|
625
|
-
{
|
|
626
|
-
"inputs": [],
|
|
627
|
-
"name": "pause",
|
|
682
|
+
"name": "pull",
|
|
628
683
|
"outputs": [],
|
|
684
|
+
"payable": false,
|
|
629
685
|
"stateMutability": "nonpayable",
|
|
630
686
|
"type": "function"
|
|
631
687
|
},
|
|
632
688
|
{
|
|
633
|
-
"
|
|
634
|
-
"
|
|
635
|
-
"outputs": [
|
|
689
|
+
"constant": false,
|
|
690
|
+
"inputs": [
|
|
636
691
|
{
|
|
637
|
-
"
|
|
638
|
-
"
|
|
639
|
-
"type": "bool"
|
|
692
|
+
"name": "_newOwner",
|
|
693
|
+
"type": "address"
|
|
640
694
|
}
|
|
641
695
|
],
|
|
642
|
-
"
|
|
696
|
+
"name": "transferOwnership",
|
|
697
|
+
"outputs": [],
|
|
698
|
+
"payable": false,
|
|
699
|
+
"stateMutability": "nonpayable",
|
|
643
700
|
"type": "function"
|
|
644
701
|
},
|
|
645
702
|
{
|
|
703
|
+
"constant": true,
|
|
646
704
|
"inputs": [
|
|
647
705
|
{
|
|
648
|
-
"internalType": "address",
|
|
649
706
|
"name": "",
|
|
650
707
|
"type": "address"
|
|
651
|
-
}
|
|
652
|
-
],
|
|
653
|
-
"name": "pausers",
|
|
654
|
-
"outputs": [
|
|
708
|
+
},
|
|
655
709
|
{
|
|
656
|
-
"internalType": "bool",
|
|
657
710
|
"name": "",
|
|
658
|
-
"type": "
|
|
711
|
+
"type": "address"
|
|
659
712
|
}
|
|
660
713
|
],
|
|
661
|
-
"
|
|
662
|
-
"type": "function"
|
|
663
|
-
},
|
|
664
|
-
{
|
|
665
|
-
"inputs": [],
|
|
666
|
-
"name": "pendingOwner",
|
|
714
|
+
"name": "expirations",
|
|
667
715
|
"outputs": [
|
|
668
716
|
{
|
|
669
|
-
"internalType": "address",
|
|
670
717
|
"name": "",
|
|
671
|
-
"type": "
|
|
718
|
+
"type": "uint256"
|
|
672
719
|
}
|
|
673
720
|
],
|
|
721
|
+
"payable": false,
|
|
674
722
|
"stateMutability": "view",
|
|
675
723
|
"type": "function"
|
|
676
724
|
},
|
|
677
725
|
{
|
|
678
726
|
"inputs": [
|
|
679
727
|
{
|
|
680
|
-
"
|
|
681
|
-
"
|
|
682
|
-
|
|
683
|
-
}
|
|
684
|
-
],
|
|
685
|
-
"name": "removeMinter",
|
|
686
|
-
"outputs": [],
|
|
687
|
-
"stateMutability": "nonpayable",
|
|
688
|
-
"type": "function"
|
|
689
|
-
},
|
|
690
|
-
{
|
|
691
|
-
"inputs": [
|
|
728
|
+
"name": "_name",
|
|
729
|
+
"type": "string"
|
|
730
|
+
},
|
|
692
731
|
{
|
|
693
|
-
"
|
|
694
|
-
"
|
|
695
|
-
|
|
732
|
+
"name": "_symbol",
|
|
733
|
+
"type": "string"
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
"name": "_decimals",
|
|
737
|
+
"type": "uint8"
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
"name": "_chainId",
|
|
741
|
+
"type": "uint256"
|
|
696
742
|
}
|
|
697
743
|
],
|
|
698
|
-
"
|
|
699
|
-
"outputs": [],
|
|
744
|
+
"payable": false,
|
|
700
745
|
"stateMutability": "nonpayable",
|
|
701
|
-
"type": "
|
|
746
|
+
"type": "constructor"
|
|
702
747
|
},
|
|
703
748
|
{
|
|
749
|
+
"anonymous": false,
|
|
704
750
|
"inputs": [
|
|
705
751
|
{
|
|
706
|
-
"
|
|
707
|
-
"name": "
|
|
752
|
+
"indexed": true,
|
|
753
|
+
"name": "to",
|
|
708
754
|
"type": "address"
|
|
709
755
|
},
|
|
710
756
|
{
|
|
711
|
-
"
|
|
757
|
+
"indexed": false,
|
|
712
758
|
"name": "amount",
|
|
713
759
|
"type": "uint256"
|
|
714
760
|
}
|
|
715
761
|
],
|
|
716
|
-
"name": "
|
|
717
|
-
"
|
|
718
|
-
"stateMutability": "nonpayable",
|
|
719
|
-
"type": "function"
|
|
762
|
+
"name": "Mint",
|
|
763
|
+
"type": "event"
|
|
720
764
|
},
|
|
721
765
|
{
|
|
722
|
-
"
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
"type": "address"
|
|
727
|
-
}
|
|
728
|
-
],
|
|
729
|
-
"name": "setFeeCollector",
|
|
730
|
-
"outputs": [],
|
|
731
|
-
"stateMutability": "nonpayable",
|
|
732
|
-
"type": "function"
|
|
766
|
+
"anonymous": false,
|
|
767
|
+
"inputs": [],
|
|
768
|
+
"name": "MintFinished",
|
|
769
|
+
"type": "event"
|
|
733
770
|
},
|
|
734
771
|
{
|
|
772
|
+
"anonymous": false,
|
|
735
773
|
"inputs": [
|
|
736
774
|
{
|
|
737
|
-
"
|
|
738
|
-
"name": "
|
|
739
|
-
"type": "
|
|
775
|
+
"indexed": true,
|
|
776
|
+
"name": "previousOwner",
|
|
777
|
+
"type": "address"
|
|
740
778
|
}
|
|
741
779
|
],
|
|
742
|
-
"name": "
|
|
743
|
-
"
|
|
744
|
-
"stateMutability": "nonpayable",
|
|
745
|
-
"type": "function"
|
|
780
|
+
"name": "OwnershipRenounced",
|
|
781
|
+
"type": "event"
|
|
746
782
|
},
|
|
747
783
|
{
|
|
784
|
+
"anonymous": false,
|
|
748
785
|
"inputs": [
|
|
749
786
|
{
|
|
750
|
-
"
|
|
751
|
-
"name": "
|
|
752
|
-
"type": "
|
|
753
|
-
}
|
|
754
|
-
],
|
|
755
|
-
"name": "setTransferFee",
|
|
756
|
-
"outputs": [],
|
|
757
|
-
"stateMutability": "nonpayable",
|
|
758
|
-
"type": "function"
|
|
759
|
-
},
|
|
760
|
-
{
|
|
761
|
-
"inputs": [],
|
|
762
|
-
"name": "symbol",
|
|
763
|
-
"outputs": [
|
|
787
|
+
"indexed": true,
|
|
788
|
+
"name": "previousOwner",
|
|
789
|
+
"type": "address"
|
|
790
|
+
},
|
|
764
791
|
{
|
|
765
|
-
"
|
|
766
|
-
"name": "",
|
|
767
|
-
"type": "
|
|
792
|
+
"indexed": true,
|
|
793
|
+
"name": "newOwner",
|
|
794
|
+
"type": "address"
|
|
768
795
|
}
|
|
769
796
|
],
|
|
770
|
-
"
|
|
771
|
-
"type": "
|
|
797
|
+
"name": "OwnershipTransferred",
|
|
798
|
+
"type": "event"
|
|
772
799
|
},
|
|
773
800
|
{
|
|
774
|
-
"
|
|
775
|
-
"
|
|
776
|
-
"outputs": [
|
|
801
|
+
"anonymous": false,
|
|
802
|
+
"inputs": [
|
|
777
803
|
{
|
|
778
|
-
"
|
|
779
|
-
"name": "",
|
|
804
|
+
"indexed": true,
|
|
805
|
+
"name": "burner",
|
|
806
|
+
"type": "address"
|
|
807
|
+
},
|
|
808
|
+
{
|
|
809
|
+
"indexed": false,
|
|
810
|
+
"name": "value",
|
|
780
811
|
"type": "uint256"
|
|
781
812
|
}
|
|
782
813
|
],
|
|
783
|
-
"
|
|
784
|
-
"type": "
|
|
814
|
+
"name": "Burn",
|
|
815
|
+
"type": "event"
|
|
785
816
|
},
|
|
786
817
|
{
|
|
818
|
+
"anonymous": false,
|
|
787
819
|
"inputs": [
|
|
788
820
|
{
|
|
789
|
-
"
|
|
821
|
+
"indexed": true,
|
|
822
|
+
"name": "from",
|
|
823
|
+
"type": "address"
|
|
824
|
+
},
|
|
825
|
+
{
|
|
826
|
+
"indexed": true,
|
|
790
827
|
"name": "to",
|
|
791
828
|
"type": "address"
|
|
792
829
|
},
|
|
793
830
|
{
|
|
794
|
-
"
|
|
831
|
+
"indexed": false,
|
|
795
832
|
"name": "value",
|
|
796
833
|
"type": "uint256"
|
|
797
|
-
}
|
|
798
|
-
],
|
|
799
|
-
"name": "transfer",
|
|
800
|
-
"outputs": [
|
|
834
|
+
},
|
|
801
835
|
{
|
|
802
|
-
"
|
|
803
|
-
"name": "",
|
|
804
|
-
"type": "
|
|
836
|
+
"indexed": false,
|
|
837
|
+
"name": "data",
|
|
838
|
+
"type": "bytes"
|
|
805
839
|
}
|
|
806
840
|
],
|
|
807
|
-
"
|
|
808
|
-
"type": "
|
|
841
|
+
"name": "Transfer",
|
|
842
|
+
"type": "event"
|
|
809
843
|
},
|
|
810
844
|
{
|
|
811
|
-
"
|
|
812
|
-
"
|
|
813
|
-
"outputs": [
|
|
845
|
+
"anonymous": false,
|
|
846
|
+
"inputs": [
|
|
814
847
|
{
|
|
815
|
-
"
|
|
816
|
-
"name": "",
|
|
848
|
+
"indexed": true,
|
|
849
|
+
"name": "owner",
|
|
850
|
+
"type": "address"
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
"indexed": true,
|
|
854
|
+
"name": "spender",
|
|
855
|
+
"type": "address"
|
|
856
|
+
},
|
|
857
|
+
{
|
|
858
|
+
"indexed": false,
|
|
859
|
+
"name": "value",
|
|
817
860
|
"type": "uint256"
|
|
818
861
|
}
|
|
819
862
|
],
|
|
820
|
-
"
|
|
821
|
-
"type": "
|
|
863
|
+
"name": "Approval",
|
|
864
|
+
"type": "event"
|
|
822
865
|
},
|
|
823
866
|
{
|
|
867
|
+
"anonymous": false,
|
|
824
868
|
"inputs": [
|
|
825
869
|
{
|
|
826
|
-
"
|
|
870
|
+
"indexed": true,
|
|
827
871
|
"name": "from",
|
|
828
872
|
"type": "address"
|
|
829
873
|
},
|
|
830
874
|
{
|
|
831
|
-
"
|
|
875
|
+
"indexed": true,
|
|
832
876
|
"name": "to",
|
|
833
877
|
"type": "address"
|
|
834
878
|
},
|
|
835
879
|
{
|
|
836
|
-
"
|
|
880
|
+
"indexed": false,
|
|
837
881
|
"name": "value",
|
|
838
882
|
"type": "uint256"
|
|
839
883
|
}
|
|
840
884
|
],
|
|
841
|
-
"name": "
|
|
842
|
-
"
|
|
843
|
-
{
|
|
844
|
-
"internalType": "bool",
|
|
845
|
-
"name": "",
|
|
846
|
-
"type": "bool"
|
|
847
|
-
}
|
|
848
|
-
],
|
|
849
|
-
"stateMutability": "nonpayable",
|
|
850
|
-
"type": "function"
|
|
851
|
-
},
|
|
852
|
-
{
|
|
853
|
-
"inputs": [
|
|
854
|
-
{
|
|
855
|
-
"internalType": "address",
|
|
856
|
-
"name": "newOwner",
|
|
857
|
-
"type": "address"
|
|
858
|
-
}
|
|
859
|
-
],
|
|
860
|
-
"name": "transferOwnership",
|
|
861
|
-
"outputs": [],
|
|
862
|
-
"stateMutability": "nonpayable",
|
|
863
|
-
"type": "function"
|
|
864
|
-
},
|
|
865
|
-
{
|
|
866
|
-
"inputs": [],
|
|
867
|
-
"name": "unpause",
|
|
868
|
-
"outputs": [],
|
|
869
|
-
"stateMutability": "nonpayable",
|
|
870
|
-
"type": "function"
|
|
885
|
+
"name": "Transfer",
|
|
886
|
+
"type": "event"
|
|
871
887
|
}
|
|
872
888
|
] as const satisfies Abi;
|
|
873
889
|
|
|
874
890
|
/**
|
|
875
|
-
* Type-safe ABI for
|
|
891
|
+
* Type-safe ABI for PermittableToken_json
|
|
876
892
|
*/
|
|
877
|
-
export type
|
|
893
|
+
export type PermittableToken_jsonAbi = typeof PermittableToken_jsonAbi;
|
|
878
894
|
|
|
879
895
|
/**
|
|
880
|
-
* Contract instance type for
|
|
896
|
+
* Contract instance type for PermittableToken_json
|
|
881
897
|
*/
|
|
882
898
|
// Use any for contract type to avoid complex viem type issues
|
|
883
899
|
// The runtime behavior is type-safe through viem's ABI typing
|
|
884
|
-
export type
|
|
900
|
+
export type PermittableToken_jsonContract = any;
|
|
885
901
|
|
|
886
902
|
/**
|
|
887
|
-
*
|
|
903
|
+
* PermittableToken_json Contract Class
|
|
888
904
|
*
|
|
889
905
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
890
906
|
*
|
|
@@ -892,12 +908,12 @@ export type TetherUSD_jsonContract = any;
|
|
|
892
908
|
* ```typescript
|
|
893
909
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
894
910
|
* import { mainnet } from 'viem/chains';
|
|
895
|
-
* import {
|
|
911
|
+
* import { PermittableToken_json } from 'PermittableToken_json';
|
|
896
912
|
*
|
|
897
913
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
898
914
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
899
915
|
*
|
|
900
|
-
* const contract = new
|
|
916
|
+
* const contract = new PermittableToken_json('0x...', { publicClient, walletClient });
|
|
901
917
|
*
|
|
902
918
|
* // Read functions
|
|
903
919
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -915,8 +931,8 @@ export type TetherUSD_jsonContract = any;
|
|
|
915
931
|
* });
|
|
916
932
|
* ```
|
|
917
933
|
*/
|
|
918
|
-
export class
|
|
919
|
-
private contract:
|
|
934
|
+
export class PermittableToken_json {
|
|
935
|
+
private contract: PermittableToken_jsonContract;
|
|
920
936
|
private contractAddress: Address;
|
|
921
937
|
private publicClient: PublicClient;
|
|
922
938
|
|
|
@@ -931,7 +947,7 @@ export class TetherUSD_json {
|
|
|
931
947
|
this.publicClient = clients.publicClient;
|
|
932
948
|
this.contract = getContract({
|
|
933
949
|
address,
|
|
934
|
-
abi:
|
|
950
|
+
abi: PermittableToken_jsonAbi,
|
|
935
951
|
client: {
|
|
936
952
|
public: clients.publicClient,
|
|
937
953
|
wallet: clients.walletClient,
|
|
@@ -949,48 +965,40 @@ export class TetherUSD_json {
|
|
|
949
965
|
/**
|
|
950
966
|
* Get the underlying viem contract instance
|
|
951
967
|
*/
|
|
952
|
-
getContract():
|
|
968
|
+
getContract(): PermittableToken_jsonContract {
|
|
953
969
|
return this.contract;
|
|
954
970
|
}
|
|
955
971
|
|
|
956
972
|
/**
|
|
957
|
-
*
|
|
958
|
-
* view
|
|
959
|
-
*/
|
|
960
|
-
async VERSION(): Promise<`0x${string}`> {
|
|
961
|
-
return this.contract.read.VERSION() as Promise<`0x${string}`>;
|
|
962
|
-
}
|
|
963
|
-
|
|
964
|
-
/**
|
|
965
|
-
* allowance
|
|
973
|
+
* mintingFinished
|
|
966
974
|
* view
|
|
967
975
|
*/
|
|
968
|
-
async
|
|
969
|
-
return this.contract.read.
|
|
976
|
+
async mintingFinished(): Promise<boolean> {
|
|
977
|
+
return this.contract.read.mintingFinished() as Promise<boolean>;
|
|
970
978
|
}
|
|
971
979
|
|
|
972
980
|
/**
|
|
973
|
-
*
|
|
981
|
+
* name
|
|
974
982
|
* view
|
|
975
983
|
*/
|
|
976
|
-
async
|
|
977
|
-
return this.contract.read.
|
|
984
|
+
async name(): Promise<string> {
|
|
985
|
+
return this.contract.read.name() as Promise<string>;
|
|
978
986
|
}
|
|
979
987
|
|
|
980
988
|
/**
|
|
981
|
-
*
|
|
989
|
+
* totalSupply
|
|
982
990
|
* view
|
|
983
991
|
*/
|
|
984
|
-
async
|
|
985
|
-
return this.contract.read.
|
|
992
|
+
async totalSupply(): Promise<bigint> {
|
|
993
|
+
return this.contract.read.totalSupply() as Promise<bigint>;
|
|
986
994
|
}
|
|
987
995
|
|
|
988
996
|
/**
|
|
989
|
-
*
|
|
997
|
+
* PERMIT_TYPEHASH
|
|
990
998
|
* view
|
|
991
999
|
*/
|
|
992
|
-
async
|
|
993
|
-
return this.contract.read.
|
|
1000
|
+
async PERMIT_TYPEHASH(): Promise<`0x${string}`> {
|
|
1001
|
+
return this.contract.read.PERMIT_TYPEHASH() as Promise<`0x${string}`>;
|
|
994
1002
|
}
|
|
995
1003
|
|
|
996
1004
|
/**
|
|
@@ -1002,59 +1010,51 @@ export class TetherUSD_json {
|
|
|
1002
1010
|
}
|
|
1003
1011
|
|
|
1004
1012
|
/**
|
|
1005
|
-
*
|
|
1006
|
-
* view
|
|
1007
|
-
*/
|
|
1008
|
-
async feeCollector(): Promise<`0x${string}`> {
|
|
1009
|
-
return this.contract.read.feeCollector() as Promise<`0x${string}`>;
|
|
1010
|
-
}
|
|
1011
|
-
|
|
1012
|
-
/**
|
|
1013
|
-
* getFeeForAmount
|
|
1013
|
+
* DOMAIN_SEPARATOR
|
|
1014
1014
|
* view
|
|
1015
1015
|
*/
|
|
1016
|
-
async
|
|
1017
|
-
return this.contract.read.
|
|
1016
|
+
async DOMAIN_SEPARATOR(): Promise<`0x${string}`> {
|
|
1017
|
+
return this.contract.read.DOMAIN_SEPARATOR() as Promise<`0x${string}`>;
|
|
1018
1018
|
}
|
|
1019
1019
|
|
|
1020
1020
|
/**
|
|
1021
|
-
*
|
|
1021
|
+
* version
|
|
1022
1022
|
* view
|
|
1023
1023
|
*/
|
|
1024
|
-
async
|
|
1025
|
-
return this.contract.read.
|
|
1024
|
+
async version(): Promise<string> {
|
|
1025
|
+
return this.contract.read.version() as Promise<string>;
|
|
1026
1026
|
}
|
|
1027
1027
|
|
|
1028
1028
|
/**
|
|
1029
|
-
*
|
|
1029
|
+
* balanceOf
|
|
1030
1030
|
* view
|
|
1031
1031
|
*/
|
|
1032
|
-
async
|
|
1033
|
-
return this.contract.read.
|
|
1032
|
+
async balanceOf(_owner: `0x${string}`): Promise<bigint> {
|
|
1033
|
+
return this.contract.read.balanceOf([_owner] as const) as Promise<bigint>;
|
|
1034
1034
|
}
|
|
1035
1035
|
|
|
1036
1036
|
/**
|
|
1037
|
-
*
|
|
1037
|
+
* isBridge
|
|
1038
1038
|
* view
|
|
1039
1039
|
*/
|
|
1040
|
-
async
|
|
1041
|
-
return this.contract.read.
|
|
1040
|
+
async isBridge(_address: `0x${string}`): Promise<boolean> {
|
|
1041
|
+
return this.contract.read.isBridge([_address] as const) as Promise<boolean>;
|
|
1042
1042
|
}
|
|
1043
1043
|
|
|
1044
1044
|
/**
|
|
1045
|
-
*
|
|
1045
|
+
* nonces
|
|
1046
1046
|
* view
|
|
1047
1047
|
*/
|
|
1048
|
-
async
|
|
1049
|
-
return this.contract.read.
|
|
1048
|
+
async nonces(arg0: `0x${string}`): Promise<bigint> {
|
|
1049
|
+
return this.contract.read.nonces([arg0] as const) as Promise<bigint>;
|
|
1050
1050
|
}
|
|
1051
1051
|
|
|
1052
1052
|
/**
|
|
1053
|
-
*
|
|
1054
|
-
*
|
|
1053
|
+
* getTokenInterfacesVersion
|
|
1054
|
+
* pure
|
|
1055
1055
|
*/
|
|
1056
|
-
async
|
|
1057
|
-
return this.contract.read.
|
|
1056
|
+
async getTokenInterfacesVersion(): Promise<[bigint, bigint, bigint]> {
|
|
1057
|
+
return this.contract.read.getTokenInterfacesVersion() as Promise<[bigint, bigint, bigint]>;
|
|
1058
1058
|
}
|
|
1059
1059
|
|
|
1060
1060
|
/**
|
|
@@ -1066,59 +1066,51 @@ export class TetherUSD_json {
|
|
|
1066
1066
|
}
|
|
1067
1067
|
|
|
1068
1068
|
/**
|
|
1069
|
-
*
|
|
1070
|
-
* view
|
|
1071
|
-
*/
|
|
1072
|
-
async paused(): Promise<boolean> {
|
|
1073
|
-
return this.contract.read.paused() as Promise<boolean>;
|
|
1074
|
-
}
|
|
1075
|
-
|
|
1076
|
-
/**
|
|
1077
|
-
* pausers
|
|
1069
|
+
* symbol
|
|
1078
1070
|
* view
|
|
1079
1071
|
*/
|
|
1080
|
-
async
|
|
1081
|
-
return this.contract.read.
|
|
1072
|
+
async symbol(): Promise<string> {
|
|
1073
|
+
return this.contract.read.symbol() as Promise<string>;
|
|
1082
1074
|
}
|
|
1083
1075
|
|
|
1084
1076
|
/**
|
|
1085
|
-
*
|
|
1077
|
+
* PERMIT_TYPEHASH_LEGACY
|
|
1086
1078
|
* view
|
|
1087
1079
|
*/
|
|
1088
|
-
async
|
|
1089
|
-
return this.contract.read.
|
|
1080
|
+
async PERMIT_TYPEHASH_LEGACY(): Promise<`0x${string}`> {
|
|
1081
|
+
return this.contract.read.PERMIT_TYPEHASH_LEGACY() as Promise<`0x${string}`>;
|
|
1090
1082
|
}
|
|
1091
1083
|
|
|
1092
1084
|
/**
|
|
1093
|
-
*
|
|
1085
|
+
* bridgeContract
|
|
1094
1086
|
* view
|
|
1095
1087
|
*/
|
|
1096
|
-
async
|
|
1097
|
-
return this.contract.read.
|
|
1088
|
+
async bridgeContract(): Promise<`0x${string}`> {
|
|
1089
|
+
return this.contract.read.bridgeContract() as Promise<`0x${string}`>;
|
|
1098
1090
|
}
|
|
1099
1091
|
|
|
1100
1092
|
/**
|
|
1101
|
-
*
|
|
1093
|
+
* allowance
|
|
1102
1094
|
* view
|
|
1103
1095
|
*/
|
|
1104
|
-
async
|
|
1105
|
-
return this.contract.read.
|
|
1096
|
+
async allowance(_owner: `0x${string}`, _spender: `0x${string}`): Promise<bigint> {
|
|
1097
|
+
return this.contract.read.allowance([_owner, _spender] as const) as Promise<bigint>;
|
|
1106
1098
|
}
|
|
1107
1099
|
|
|
1108
1100
|
/**
|
|
1109
|
-
*
|
|
1101
|
+
* expirations
|
|
1110
1102
|
* view
|
|
1111
1103
|
*/
|
|
1112
|
-
async
|
|
1113
|
-
return this.contract.read.
|
|
1104
|
+
async expirations(arg0: `0x${string}`, arg1: `0x${string}`): Promise<bigint> {
|
|
1105
|
+
return this.contract.read.expirations([arg0, arg1] as const) as Promise<bigint>;
|
|
1114
1106
|
}
|
|
1115
1107
|
|
|
1116
1108
|
/**
|
|
1117
|
-
*
|
|
1109
|
+
* approve
|
|
1118
1110
|
* nonpayable
|
|
1119
1111
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1120
1112
|
*/
|
|
1121
|
-
async
|
|
1113
|
+
async approve(_to: `0x${string}`, _value: bigint, options?: {
|
|
1122
1114
|
accessList?: import('viem').AccessList;
|
|
1123
1115
|
authorizationList?: import('viem').AuthorizationList;
|
|
1124
1116
|
chain?: import('viem').Chain | null;
|
|
@@ -1133,15 +1125,15 @@ export class TetherUSD_json {
|
|
|
1133
1125
|
if (!this.contract.write) {
|
|
1134
1126
|
throw new Error('Wallet client is required for write operations');
|
|
1135
1127
|
}
|
|
1136
|
-
return this.contract.write.
|
|
1128
|
+
return this.contract.write.approve([_to, _value] as const, options) as Promise<`0x${string}`>;
|
|
1137
1129
|
}
|
|
1138
1130
|
|
|
1139
1131
|
/**
|
|
1140
|
-
*
|
|
1132
|
+
* setBridgeContract
|
|
1141
1133
|
* nonpayable
|
|
1142
1134
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1143
1135
|
*/
|
|
1144
|
-
async
|
|
1136
|
+
async setBridgeContract(_bridgeContract: `0x${string}`, options?: {
|
|
1145
1137
|
accessList?: import('viem').AccessList;
|
|
1146
1138
|
authorizationList?: import('viem').AuthorizationList;
|
|
1147
1139
|
chain?: import('viem').Chain | null;
|
|
@@ -1156,15 +1148,15 @@ export class TetherUSD_json {
|
|
|
1156
1148
|
if (!this.contract.write) {
|
|
1157
1149
|
throw new Error('Wallet client is required for write operations');
|
|
1158
1150
|
}
|
|
1159
|
-
return this.contract.write.
|
|
1151
|
+
return this.contract.write.setBridgeContract([_bridgeContract] as const, options) as Promise<`0x${string}`>;
|
|
1160
1152
|
}
|
|
1161
1153
|
|
|
1162
1154
|
/**
|
|
1163
|
-
*
|
|
1155
|
+
* transferFrom
|
|
1164
1156
|
* nonpayable
|
|
1165
1157
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1166
1158
|
*/
|
|
1167
|
-
async
|
|
1159
|
+
async transferFrom(_sender: `0x${string}`, _recipient: `0x${string}`, _amount: bigint, options?: {
|
|
1168
1160
|
accessList?: import('viem').AccessList;
|
|
1169
1161
|
authorizationList?: import('viem').AuthorizationList;
|
|
1170
1162
|
chain?: import('viem').Chain | null;
|
|
@@ -1179,15 +1171,15 @@ export class TetherUSD_json {
|
|
|
1179
1171
|
if (!this.contract.write) {
|
|
1180
1172
|
throw new Error('Wallet client is required for write operations');
|
|
1181
1173
|
}
|
|
1182
|
-
return this.contract.write.
|
|
1174
|
+
return this.contract.write.transferFrom([_sender, _recipient, _amount] as const, options) as Promise<`0x${string}`>;
|
|
1183
1175
|
}
|
|
1184
1176
|
|
|
1185
1177
|
/**
|
|
1186
|
-
*
|
|
1178
|
+
* increaseAllowance
|
|
1187
1179
|
* nonpayable
|
|
1188
1180
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1189
1181
|
*/
|
|
1190
|
-
async
|
|
1182
|
+
async increaseAllowance(_to: `0x${string}`, _addedValue: bigint, options?: {
|
|
1191
1183
|
accessList?: import('viem').AccessList;
|
|
1192
1184
|
authorizationList?: import('viem').AuthorizationList;
|
|
1193
1185
|
chain?: import('viem').Chain | null;
|
|
@@ -1202,15 +1194,15 @@ export class TetherUSD_json {
|
|
|
1202
1194
|
if (!this.contract.write) {
|
|
1203
1195
|
throw new Error('Wallet client is required for write operations');
|
|
1204
1196
|
}
|
|
1205
|
-
return this.contract.write.
|
|
1197
|
+
return this.contract.write.increaseAllowance([_to, _addedValue] as const, options) as Promise<`0x${string}`>;
|
|
1206
1198
|
}
|
|
1207
1199
|
|
|
1208
1200
|
/**
|
|
1209
|
-
*
|
|
1201
|
+
* transferAndCall
|
|
1210
1202
|
* nonpayable
|
|
1211
1203
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1212
1204
|
*/
|
|
1213
|
-
async
|
|
1205
|
+
async transferAndCall(_to: `0x${string}`, _value: bigint, _data: `0x${string}`, options?: {
|
|
1214
1206
|
accessList?: import('viem').AccessList;
|
|
1215
1207
|
authorizationList?: import('viem').AuthorizationList;
|
|
1216
1208
|
chain?: import('viem').Chain | null;
|
|
@@ -1225,15 +1217,15 @@ export class TetherUSD_json {
|
|
|
1225
1217
|
if (!this.contract.write) {
|
|
1226
1218
|
throw new Error('Wallet client is required for write operations');
|
|
1227
1219
|
}
|
|
1228
|
-
return this.contract.write.
|
|
1220
|
+
return this.contract.write.transferAndCall([_to, _value, _data] as const, options) as Promise<`0x${string}`>;
|
|
1229
1221
|
}
|
|
1230
1222
|
|
|
1231
1223
|
/**
|
|
1232
|
-
*
|
|
1224
|
+
* mint
|
|
1233
1225
|
* nonpayable
|
|
1234
1226
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1235
1227
|
*/
|
|
1236
|
-
async
|
|
1228
|
+
async mint(_to: `0x${string}`, _amount: bigint, options?: {
|
|
1237
1229
|
accessList?: import('viem').AccessList;
|
|
1238
1230
|
authorizationList?: import('viem').AuthorizationList;
|
|
1239
1231
|
chain?: import('viem').Chain | null;
|
|
@@ -1248,15 +1240,15 @@ export class TetherUSD_json {
|
|
|
1248
1240
|
if (!this.contract.write) {
|
|
1249
1241
|
throw new Error('Wallet client is required for write operations');
|
|
1250
1242
|
}
|
|
1251
|
-
return this.contract.write.
|
|
1243
|
+
return this.contract.write.mint([_to, _amount] as const, options) as Promise<`0x${string}`>;
|
|
1252
1244
|
}
|
|
1253
1245
|
|
|
1254
1246
|
/**
|
|
1255
|
-
*
|
|
1247
|
+
* burn
|
|
1256
1248
|
* nonpayable
|
|
1257
1249
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1258
1250
|
*/
|
|
1259
|
-
async
|
|
1251
|
+
async burn(_value: bigint, options?: {
|
|
1260
1252
|
accessList?: import('viem').AccessList;
|
|
1261
1253
|
authorizationList?: import('viem').AuthorizationList;
|
|
1262
1254
|
chain?: import('viem').Chain | null;
|
|
@@ -1271,15 +1263,15 @@ export class TetherUSD_json {
|
|
|
1271
1263
|
if (!this.contract.write) {
|
|
1272
1264
|
throw new Error('Wallet client is required for write operations');
|
|
1273
1265
|
}
|
|
1274
|
-
return this.contract.write.
|
|
1266
|
+
return this.contract.write.burn([_value] as const, options) as Promise<`0x${string}`>;
|
|
1275
1267
|
}
|
|
1276
1268
|
|
|
1277
1269
|
/**
|
|
1278
|
-
*
|
|
1270
|
+
* decreaseApproval
|
|
1279
1271
|
* nonpayable
|
|
1280
1272
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1281
1273
|
*/
|
|
1282
|
-
async
|
|
1274
|
+
async decreaseApproval(_spender: `0x${string}`, _subtractedValue: bigint, options?: {
|
|
1283
1275
|
accessList?: import('viem').AccessList;
|
|
1284
1276
|
authorizationList?: import('viem').AuthorizationList;
|
|
1285
1277
|
chain?: import('viem').Chain | null;
|
|
@@ -1294,15 +1286,15 @@ export class TetherUSD_json {
|
|
|
1294
1286
|
if (!this.contract.write) {
|
|
1295
1287
|
throw new Error('Wallet client is required for write operations');
|
|
1296
1288
|
}
|
|
1297
|
-
return this.contract.write.
|
|
1289
|
+
return this.contract.write.decreaseApproval([_spender, _subtractedValue] as const, options) as Promise<`0x${string}`>;
|
|
1298
1290
|
}
|
|
1299
1291
|
|
|
1300
1292
|
/**
|
|
1301
|
-
*
|
|
1293
|
+
* claimTokens
|
|
1302
1294
|
* nonpayable
|
|
1303
1295
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1304
1296
|
*/
|
|
1305
|
-
async
|
|
1297
|
+
async claimTokens(_token: `0x${string}`, _to: `0x${string}`, options?: {
|
|
1306
1298
|
accessList?: import('viem').AccessList;
|
|
1307
1299
|
authorizationList?: import('viem').AuthorizationList;
|
|
1308
1300
|
chain?: import('viem').Chain | null;
|
|
@@ -1317,15 +1309,15 @@ export class TetherUSD_json {
|
|
|
1317
1309
|
if (!this.contract.write) {
|
|
1318
1310
|
throw new Error('Wallet client is required for write operations');
|
|
1319
1311
|
}
|
|
1320
|
-
return this.contract.write.
|
|
1312
|
+
return this.contract.write.claimTokens([_token, _to] as const, options) as Promise<`0x${string}`>;
|
|
1321
1313
|
}
|
|
1322
1314
|
|
|
1323
1315
|
/**
|
|
1324
|
-
*
|
|
1316
|
+
* renounceOwnership
|
|
1325
1317
|
* nonpayable
|
|
1326
1318
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1327
1319
|
*/
|
|
1328
|
-
async
|
|
1320
|
+
async renounceOwnership(options?: {
|
|
1329
1321
|
accessList?: import('viem').AccessList;
|
|
1330
1322
|
authorizationList?: import('viem').AuthorizationList;
|
|
1331
1323
|
chain?: import('viem').Chain | null;
|
|
@@ -1340,15 +1332,15 @@ export class TetherUSD_json {
|
|
|
1340
1332
|
if (!this.contract.write) {
|
|
1341
1333
|
throw new Error('Wallet client is required for write operations');
|
|
1342
1334
|
}
|
|
1343
|
-
return this.contract.write.
|
|
1335
|
+
return this.contract.write.renounceOwnership(options) as Promise<`0x${string}`>;
|
|
1344
1336
|
}
|
|
1345
1337
|
|
|
1346
1338
|
/**
|
|
1347
|
-
*
|
|
1339
|
+
* finishMinting
|
|
1348
1340
|
* nonpayable
|
|
1349
1341
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1350
1342
|
*/
|
|
1351
|
-
async
|
|
1343
|
+
async finishMinting(options?: {
|
|
1352
1344
|
accessList?: import('viem').AccessList;
|
|
1353
1345
|
authorizationList?: import('viem').AuthorizationList;
|
|
1354
1346
|
chain?: import('viem').Chain | null;
|
|
@@ -1363,15 +1355,10 @@ export class TetherUSD_json {
|
|
|
1363
1355
|
if (!this.contract.write) {
|
|
1364
1356
|
throw new Error('Wallet client is required for write operations');
|
|
1365
1357
|
}
|
|
1366
|
-
return this.contract.write.
|
|
1358
|
+
return this.contract.write.finishMinting(options) as Promise<`0x${string}`>;
|
|
1367
1359
|
}
|
|
1368
1360
|
|
|
1369
|
-
|
|
1370
|
-
* removeMinter
|
|
1371
|
-
* nonpayable
|
|
1372
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1373
|
-
*/
|
|
1374
|
-
async removeMinter(account: `0x${string}`, options?: {
|
|
1361
|
+
async permit(_holder: `0x${string}`, _spender: `0x${string}`, _nonce: bigint, _expiry: bigint, _allowed: boolean, _v: bigint, _r: `0x${string}`, _s: `0x${string}`, options?: {
|
|
1375
1362
|
accessList?: import('viem').AccessList;
|
|
1376
1363
|
authorizationList?: import('viem').AuthorizationList;
|
|
1377
1364
|
chain?: import('viem').Chain | null;
|
|
@@ -1382,19 +1369,8 @@ export class TetherUSD_json {
|
|
|
1382
1369
|
maxPriorityFeePerGas?: bigint;
|
|
1383
1370
|
nonce?: number;
|
|
1384
1371
|
value?: bigint;
|
|
1385
|
-
}): Promise<`0x${string}
|
|
1386
|
-
|
|
1387
|
-
throw new Error('Wallet client is required for write operations');
|
|
1388
|
-
}
|
|
1389
|
-
return this.contract.write.removeMinter([account] as const, options) as Promise<`0x${string}`>;
|
|
1390
|
-
}
|
|
1391
|
-
|
|
1392
|
-
/**
|
|
1393
|
-
* removePauser
|
|
1394
|
-
* nonpayable
|
|
1395
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1396
|
-
*/
|
|
1397
|
-
async removePauser(account: `0x${string}`, options?: {
|
|
1372
|
+
}): Promise<`0x${string}`>;
|
|
1373
|
+
async permit(_holder: `0x${string}`, _spender: `0x${string}`, _value: bigint, _deadline: bigint, _v: bigint, _r: `0x${string}`, _s: `0x${string}`, options?: {
|
|
1398
1374
|
accessList?: import('viem').AccessList;
|
|
1399
1375
|
authorizationList?: import('viem').AuthorizationList;
|
|
1400
1376
|
chain?: import('viem').Chain | null;
|
|
@@ -1405,19 +1381,20 @@ export class TetherUSD_json {
|
|
|
1405
1381
|
maxPriorityFeePerGas?: bigint;
|
|
1406
1382
|
nonce?: number;
|
|
1407
1383
|
value?: bigint;
|
|
1408
|
-
}): Promise<`0x${string}
|
|
1384
|
+
}): Promise<`0x${string}`>;
|
|
1385
|
+
async permit(...args: any[]): Promise<`0x${string}`> {
|
|
1409
1386
|
if (!this.contract.write) {
|
|
1410
1387
|
throw new Error('Wallet client is required for write operations');
|
|
1411
1388
|
}
|
|
1412
|
-
return this.contract.write.
|
|
1389
|
+
return this.contract.write.permit(args as any) as Promise<`0x${string}`>;
|
|
1413
1390
|
}
|
|
1414
1391
|
|
|
1415
1392
|
/**
|
|
1416
|
-
*
|
|
1393
|
+
* decreaseAllowance
|
|
1417
1394
|
* nonpayable
|
|
1418
1395
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1419
1396
|
*/
|
|
1420
|
-
async
|
|
1397
|
+
async decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
|
|
1421
1398
|
accessList?: import('viem').AccessList;
|
|
1422
1399
|
authorizationList?: import('viem').AuthorizationList;
|
|
1423
1400
|
chain?: import('viem').Chain | null;
|
|
@@ -1432,15 +1409,15 @@ export class TetherUSD_json {
|
|
|
1432
1409
|
if (!this.contract.write) {
|
|
1433
1410
|
throw new Error('Wallet client is required for write operations');
|
|
1434
1411
|
}
|
|
1435
|
-
return this.contract.write.
|
|
1412
|
+
return this.contract.write.decreaseAllowance([spender, subtractedValue] as const, options) as Promise<`0x${string}`>;
|
|
1436
1413
|
}
|
|
1437
1414
|
|
|
1438
1415
|
/**
|
|
1439
|
-
*
|
|
1416
|
+
* transfer
|
|
1440
1417
|
* nonpayable
|
|
1441
1418
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1442
1419
|
*/
|
|
1443
|
-
async
|
|
1420
|
+
async transfer(_to: `0x${string}`, _value: bigint, options?: {
|
|
1444
1421
|
accessList?: import('viem').AccessList;
|
|
1445
1422
|
authorizationList?: import('viem').AuthorizationList;
|
|
1446
1423
|
chain?: import('viem').Chain | null;
|
|
@@ -1455,15 +1432,15 @@ export class TetherUSD_json {
|
|
|
1455
1432
|
if (!this.contract.write) {
|
|
1456
1433
|
throw new Error('Wallet client is required for write operations');
|
|
1457
1434
|
}
|
|
1458
|
-
return this.contract.write.
|
|
1435
|
+
return this.contract.write.transfer([_to, _value] as const, options) as Promise<`0x${string}`>;
|
|
1459
1436
|
}
|
|
1460
1437
|
|
|
1461
1438
|
/**
|
|
1462
|
-
*
|
|
1439
|
+
* push
|
|
1463
1440
|
* nonpayable
|
|
1464
1441
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1465
1442
|
*/
|
|
1466
|
-
async
|
|
1443
|
+
async push(_to: `0x${string}`, _amount: bigint, options?: {
|
|
1467
1444
|
accessList?: import('viem').AccessList;
|
|
1468
1445
|
authorizationList?: import('viem').AuthorizationList;
|
|
1469
1446
|
chain?: import('viem').Chain | null;
|
|
@@ -1478,15 +1455,15 @@ export class TetherUSD_json {
|
|
|
1478
1455
|
if (!this.contract.write) {
|
|
1479
1456
|
throw new Error('Wallet client is required for write operations');
|
|
1480
1457
|
}
|
|
1481
|
-
return this.contract.write.
|
|
1458
|
+
return this.contract.write.push([_to, _amount] as const, options) as Promise<`0x${string}`>;
|
|
1482
1459
|
}
|
|
1483
1460
|
|
|
1484
1461
|
/**
|
|
1485
|
-
*
|
|
1462
|
+
* move
|
|
1486
1463
|
* nonpayable
|
|
1487
1464
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1488
1465
|
*/
|
|
1489
|
-
async
|
|
1466
|
+
async move(_from: `0x${string}`, _to: `0x${string}`, _amount: bigint, options?: {
|
|
1490
1467
|
accessList?: import('viem').AccessList;
|
|
1491
1468
|
authorizationList?: import('viem').AuthorizationList;
|
|
1492
1469
|
chain?: import('viem').Chain | null;
|
|
@@ -1501,15 +1478,15 @@ export class TetherUSD_json {
|
|
|
1501
1478
|
if (!this.contract.write) {
|
|
1502
1479
|
throw new Error('Wallet client is required for write operations');
|
|
1503
1480
|
}
|
|
1504
|
-
return this.contract.write.
|
|
1481
|
+
return this.contract.write.move([_from, _to, _amount] as const, options) as Promise<`0x${string}`>;
|
|
1505
1482
|
}
|
|
1506
1483
|
|
|
1507
1484
|
/**
|
|
1508
|
-
*
|
|
1485
|
+
* increaseApproval
|
|
1509
1486
|
* nonpayable
|
|
1510
1487
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1511
1488
|
*/
|
|
1512
|
-
async
|
|
1489
|
+
async increaseApproval(_spender: `0x${string}`, _addedValue: bigint, options?: {
|
|
1513
1490
|
accessList?: import('viem').AccessList;
|
|
1514
1491
|
authorizationList?: import('viem').AuthorizationList;
|
|
1515
1492
|
chain?: import('viem').Chain | null;
|
|
@@ -1524,15 +1501,15 @@ export class TetherUSD_json {
|
|
|
1524
1501
|
if (!this.contract.write) {
|
|
1525
1502
|
throw new Error('Wallet client is required for write operations');
|
|
1526
1503
|
}
|
|
1527
|
-
return this.contract.write.
|
|
1504
|
+
return this.contract.write.increaseApproval([_spender, _addedValue] as const, options) as Promise<`0x${string}`>;
|
|
1528
1505
|
}
|
|
1529
1506
|
|
|
1530
1507
|
/**
|
|
1531
|
-
*
|
|
1508
|
+
* pull
|
|
1532
1509
|
* nonpayable
|
|
1533
1510
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1534
1511
|
*/
|
|
1535
|
-
async
|
|
1512
|
+
async pull(_from: `0x${string}`, _amount: bigint, options?: {
|
|
1536
1513
|
accessList?: import('viem').AccessList;
|
|
1537
1514
|
authorizationList?: import('viem').AuthorizationList;
|
|
1538
1515
|
chain?: import('viem').Chain | null;
|
|
@@ -1547,7 +1524,7 @@ export class TetherUSD_json {
|
|
|
1547
1524
|
if (!this.contract.write) {
|
|
1548
1525
|
throw new Error('Wallet client is required for write operations');
|
|
1549
1526
|
}
|
|
1550
|
-
return this.contract.write.
|
|
1527
|
+
return this.contract.write.pull([_from, _amount] as const, options) as Promise<`0x${string}`>;
|
|
1551
1528
|
}
|
|
1552
1529
|
|
|
1553
1530
|
/**
|
|
@@ -1555,30 +1532,7 @@ export class TetherUSD_json {
|
|
|
1555
1532
|
* nonpayable
|
|
1556
1533
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1557
1534
|
*/
|
|
1558
|
-
async transferOwnership(
|
|
1559
|
-
accessList?: import('viem').AccessList;
|
|
1560
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1561
|
-
chain?: import('viem').Chain | null;
|
|
1562
|
-
dataSuffix?: `0x${string}`;
|
|
1563
|
-
gas?: bigint;
|
|
1564
|
-
gasPrice?: bigint;
|
|
1565
|
-
maxFeePerGas?: bigint;
|
|
1566
|
-
maxPriorityFeePerGas?: bigint;
|
|
1567
|
-
nonce?: number;
|
|
1568
|
-
value?: bigint;
|
|
1569
|
-
}): Promise<`0x${string}`> {
|
|
1570
|
-
if (!this.contract.write) {
|
|
1571
|
-
throw new Error('Wallet client is required for write operations');
|
|
1572
|
-
}
|
|
1573
|
-
return this.contract.write.transferOwnership([newOwner] as const, options) as Promise<`0x${string}`>;
|
|
1574
|
-
}
|
|
1575
|
-
|
|
1576
|
-
/**
|
|
1577
|
-
* unpause
|
|
1578
|
-
* nonpayable
|
|
1579
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1580
|
-
*/
|
|
1581
|
-
async unpause(options?: {
|
|
1535
|
+
async transferOwnership(_newOwner: `0x${string}`, options?: {
|
|
1582
1536
|
accessList?: import('viem').AccessList;
|
|
1583
1537
|
authorizationList?: import('viem').AuthorizationList;
|
|
1584
1538
|
chain?: import('viem').Chain | null;
|
|
@@ -1593,7 +1547,7 @@ export class TetherUSD_json {
|
|
|
1593
1547
|
if (!this.contract.write) {
|
|
1594
1548
|
throw new Error('Wallet client is required for write operations');
|
|
1595
1549
|
}
|
|
1596
|
-
return this.contract.write.
|
|
1550
|
+
return this.contract.write.transferOwnership([_newOwner] as const, options) as Promise<`0x${string}`>;
|
|
1597
1551
|
}
|
|
1598
1552
|
|
|
1599
1553
|
|
|
@@ -1613,30 +1567,11 @@ export class TetherUSD_json {
|
|
|
1613
1567
|
}
|
|
1614
1568
|
return {
|
|
1615
1569
|
/**
|
|
1616
|
-
* Simulate
|
|
1617
|
-
* Returns gas estimate and result without sending transaction
|
|
1618
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1619
|
-
*/
|
|
1620
|
-
async acceptOwnership(options?: {
|
|
1621
|
-
accessList?: import('viem').AccessList;
|
|
1622
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1623
|
-
chain?: import('viem').Chain | null;
|
|
1624
|
-
dataSuffix?: `0x${string}`;
|
|
1625
|
-
gas?: bigint;
|
|
1626
|
-
gasPrice?: bigint;
|
|
1627
|
-
maxFeePerGas?: bigint;
|
|
1628
|
-
maxPriorityFeePerGas?: bigint;
|
|
1629
|
-
nonce?: number;
|
|
1630
|
-
value?: bigint;
|
|
1631
|
-
}): Promise<void> {
|
|
1632
|
-
return contract.simulate.acceptOwnership(options) as Promise<void>;
|
|
1633
|
-
},
|
|
1634
|
-
/**
|
|
1635
|
-
* Simulate addMinter
|
|
1570
|
+
* Simulate approve
|
|
1636
1571
|
* Returns gas estimate and result without sending transaction
|
|
1637
1572
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1638
1573
|
*/
|
|
1639
|
-
async
|
|
1574
|
+
async approve(_to: `0x${string}`, _value: bigint, options?: {
|
|
1640
1575
|
accessList?: import('viem').AccessList;
|
|
1641
1576
|
authorizationList?: import('viem').AuthorizationList;
|
|
1642
1577
|
chain?: import('viem').Chain | null;
|
|
@@ -1647,15 +1582,15 @@ export class TetherUSD_json {
|
|
|
1647
1582
|
maxPriorityFeePerGas?: bigint;
|
|
1648
1583
|
nonce?: number;
|
|
1649
1584
|
value?: bigint;
|
|
1650
|
-
}): Promise<
|
|
1651
|
-
return contract.simulate.
|
|
1585
|
+
}): Promise<boolean> {
|
|
1586
|
+
return contract.simulate.approve([_to, _value] as const, options) as Promise<boolean>;
|
|
1652
1587
|
},
|
|
1653
1588
|
/**
|
|
1654
|
-
* Simulate
|
|
1589
|
+
* Simulate setBridgeContract
|
|
1655
1590
|
* Returns gas estimate and result without sending transaction
|
|
1656
1591
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1657
1592
|
*/
|
|
1658
|
-
async
|
|
1593
|
+
async setBridgeContract(_bridgeContract: `0x${string}`, options?: {
|
|
1659
1594
|
accessList?: import('viem').AccessList;
|
|
1660
1595
|
authorizationList?: import('viem').AuthorizationList;
|
|
1661
1596
|
chain?: import('viem').Chain | null;
|
|
@@ -1667,14 +1602,14 @@ export class TetherUSD_json {
|
|
|
1667
1602
|
nonce?: number;
|
|
1668
1603
|
value?: bigint;
|
|
1669
1604
|
}): Promise<void> {
|
|
1670
|
-
return contract.simulate.
|
|
1605
|
+
return contract.simulate.setBridgeContract([_bridgeContract] as const, options) as Promise<void>;
|
|
1671
1606
|
},
|
|
1672
1607
|
/**
|
|
1673
|
-
* Simulate
|
|
1608
|
+
* Simulate transferFrom
|
|
1674
1609
|
* Returns gas estimate and result without sending transaction
|
|
1675
1610
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1676
1611
|
*/
|
|
1677
|
-
async
|
|
1612
|
+
async transferFrom(_sender: `0x${string}`, _recipient: `0x${string}`, _amount: bigint, options?: {
|
|
1678
1613
|
accessList?: import('viem').AccessList;
|
|
1679
1614
|
authorizationList?: import('viem').AuthorizationList;
|
|
1680
1615
|
chain?: import('viem').Chain | null;
|
|
@@ -1686,33 +1621,14 @@ export class TetherUSD_json {
|
|
|
1686
1621
|
nonce?: number;
|
|
1687
1622
|
value?: bigint;
|
|
1688
1623
|
}): Promise<boolean> {
|
|
1689
|
-
return contract.simulate.
|
|
1690
|
-
},
|
|
1691
|
-
/**
|
|
1692
|
-
* Simulate blacklist
|
|
1693
|
-
* Returns gas estimate and result without sending transaction
|
|
1694
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1695
|
-
*/
|
|
1696
|
-
async blacklist(account: `0x${string}`, status: boolean, options?: {
|
|
1697
|
-
accessList?: import('viem').AccessList;
|
|
1698
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1699
|
-
chain?: import('viem').Chain | null;
|
|
1700
|
-
dataSuffix?: `0x${string}`;
|
|
1701
|
-
gas?: bigint;
|
|
1702
|
-
gasPrice?: bigint;
|
|
1703
|
-
maxFeePerGas?: bigint;
|
|
1704
|
-
maxPriorityFeePerGas?: bigint;
|
|
1705
|
-
nonce?: number;
|
|
1706
|
-
value?: bigint;
|
|
1707
|
-
}): Promise<void> {
|
|
1708
|
-
return contract.simulate.blacklist([account, status] as const, options) as Promise<void>;
|
|
1624
|
+
return contract.simulate.transferFrom([_sender, _recipient, _amount] as const, options) as Promise<boolean>;
|
|
1709
1625
|
},
|
|
1710
1626
|
/**
|
|
1711
|
-
* Simulate
|
|
1627
|
+
* Simulate increaseAllowance
|
|
1712
1628
|
* Returns gas estimate and result without sending transaction
|
|
1713
1629
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1714
1630
|
*/
|
|
1715
|
-
async
|
|
1631
|
+
async increaseAllowance(_to: `0x${string}`, _addedValue: bigint, options?: {
|
|
1716
1632
|
accessList?: import('viem').AccessList;
|
|
1717
1633
|
authorizationList?: import('viem').AuthorizationList;
|
|
1718
1634
|
chain?: import('viem').Chain | null;
|
|
@@ -1723,15 +1639,15 @@ export class TetherUSD_json {
|
|
|
1723
1639
|
maxPriorityFeePerGas?: bigint;
|
|
1724
1640
|
nonce?: number;
|
|
1725
1641
|
value?: bigint;
|
|
1726
|
-
}): Promise<
|
|
1727
|
-
return contract.simulate.
|
|
1642
|
+
}): Promise<boolean> {
|
|
1643
|
+
return contract.simulate.increaseAllowance([_to, _addedValue] as const, options) as Promise<boolean>;
|
|
1728
1644
|
},
|
|
1729
1645
|
/**
|
|
1730
|
-
* Simulate
|
|
1646
|
+
* Simulate transferAndCall
|
|
1731
1647
|
* Returns gas estimate and result without sending transaction
|
|
1732
1648
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1733
1649
|
*/
|
|
1734
|
-
async
|
|
1650
|
+
async transferAndCall(_to: `0x${string}`, _value: bigint, _data: `0x${string}`, options?: {
|
|
1735
1651
|
accessList?: import('viem').AccessList;
|
|
1736
1652
|
authorizationList?: import('viem').AuthorizationList;
|
|
1737
1653
|
chain?: import('viem').Chain | null;
|
|
@@ -1742,15 +1658,15 @@ export class TetherUSD_json {
|
|
|
1742
1658
|
maxPriorityFeePerGas?: bigint;
|
|
1743
1659
|
nonce?: number;
|
|
1744
1660
|
value?: bigint;
|
|
1745
|
-
}): Promise<
|
|
1746
|
-
return contract.simulate.
|
|
1661
|
+
}): Promise<boolean> {
|
|
1662
|
+
return contract.simulate.transferAndCall([_to, _value, _data] as const, options) as Promise<boolean>;
|
|
1747
1663
|
},
|
|
1748
1664
|
/**
|
|
1749
|
-
* Simulate
|
|
1665
|
+
* Simulate mint
|
|
1750
1666
|
* Returns gas estimate and result without sending transaction
|
|
1751
1667
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1752
1668
|
*/
|
|
1753
|
-
async
|
|
1669
|
+
async mint(_to: `0x${string}`, _amount: bigint, options?: {
|
|
1754
1670
|
accessList?: import('viem').AccessList;
|
|
1755
1671
|
authorizationList?: import('viem').AuthorizationList;
|
|
1756
1672
|
chain?: import('viem').Chain | null;
|
|
@@ -1762,14 +1678,14 @@ export class TetherUSD_json {
|
|
|
1762
1678
|
nonce?: number;
|
|
1763
1679
|
value?: bigint;
|
|
1764
1680
|
}): Promise<boolean> {
|
|
1765
|
-
return contract.simulate.
|
|
1681
|
+
return contract.simulate.mint([_to, _amount] as const, options) as Promise<boolean>;
|
|
1766
1682
|
},
|
|
1767
1683
|
/**
|
|
1768
|
-
* Simulate
|
|
1684
|
+
* Simulate burn
|
|
1769
1685
|
* Returns gas estimate and result without sending transaction
|
|
1770
1686
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1771
1687
|
*/
|
|
1772
|
-
async
|
|
1688
|
+
async burn(_value: bigint, options?: {
|
|
1773
1689
|
accessList?: import('viem').AccessList;
|
|
1774
1690
|
authorizationList?: import('viem').AuthorizationList;
|
|
1775
1691
|
chain?: import('viem').Chain | null;
|
|
@@ -1781,14 +1697,14 @@ export class TetherUSD_json {
|
|
|
1781
1697
|
nonce?: number;
|
|
1782
1698
|
value?: bigint;
|
|
1783
1699
|
}): Promise<void> {
|
|
1784
|
-
return contract.simulate.
|
|
1700
|
+
return contract.simulate.burn([_value] as const, options) as Promise<void>;
|
|
1785
1701
|
},
|
|
1786
1702
|
/**
|
|
1787
|
-
* Simulate
|
|
1703
|
+
* Simulate decreaseApproval
|
|
1788
1704
|
* Returns gas estimate and result without sending transaction
|
|
1789
1705
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1790
1706
|
*/
|
|
1791
|
-
async
|
|
1707
|
+
async decreaseApproval(_spender: `0x${string}`, _subtractedValue: bigint, options?: {
|
|
1792
1708
|
accessList?: import('viem').AccessList;
|
|
1793
1709
|
authorizationList?: import('viem').AuthorizationList;
|
|
1794
1710
|
chain?: import('viem').Chain | null;
|
|
@@ -1800,14 +1716,14 @@ export class TetherUSD_json {
|
|
|
1800
1716
|
nonce?: number;
|
|
1801
1717
|
value?: bigint;
|
|
1802
1718
|
}): Promise<boolean> {
|
|
1803
|
-
return contract.simulate.
|
|
1719
|
+
return contract.simulate.decreaseApproval([_spender, _subtractedValue] as const, options) as Promise<boolean>;
|
|
1804
1720
|
},
|
|
1805
1721
|
/**
|
|
1806
|
-
* Simulate
|
|
1722
|
+
* Simulate claimTokens
|
|
1807
1723
|
* Returns gas estimate and result without sending transaction
|
|
1808
1724
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1809
1725
|
*/
|
|
1810
|
-
async
|
|
1726
|
+
async claimTokens(_token: `0x${string}`, _to: `0x${string}`, options?: {
|
|
1811
1727
|
accessList?: import('viem').AccessList;
|
|
1812
1728
|
authorizationList?: import('viem').AuthorizationList;
|
|
1813
1729
|
chain?: import('viem').Chain | null;
|
|
@@ -1819,14 +1735,14 @@ export class TetherUSD_json {
|
|
|
1819
1735
|
nonce?: number;
|
|
1820
1736
|
value?: bigint;
|
|
1821
1737
|
}): Promise<void> {
|
|
1822
|
-
return contract.simulate.
|
|
1738
|
+
return contract.simulate.claimTokens([_token, _to] as const, options) as Promise<void>;
|
|
1823
1739
|
},
|
|
1824
1740
|
/**
|
|
1825
|
-
* Simulate
|
|
1741
|
+
* Simulate renounceOwnership
|
|
1826
1742
|
* Returns gas estimate and result without sending transaction
|
|
1827
1743
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1828
1744
|
*/
|
|
1829
|
-
async
|
|
1745
|
+
async renounceOwnership(options?: {
|
|
1830
1746
|
accessList?: import('viem').AccessList;
|
|
1831
1747
|
authorizationList?: import('viem').AuthorizationList;
|
|
1832
1748
|
chain?: import('viem').Chain | null;
|
|
@@ -1838,14 +1754,14 @@ export class TetherUSD_json {
|
|
|
1838
1754
|
nonce?: number;
|
|
1839
1755
|
value?: bigint;
|
|
1840
1756
|
}): Promise<void> {
|
|
1841
|
-
return contract.simulate.
|
|
1757
|
+
return contract.simulate.renounceOwnership(options) as Promise<void>;
|
|
1842
1758
|
},
|
|
1843
1759
|
/**
|
|
1844
|
-
* Simulate
|
|
1760
|
+
* Simulate finishMinting
|
|
1845
1761
|
* Returns gas estimate and result without sending transaction
|
|
1846
1762
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1847
1763
|
*/
|
|
1848
|
-
async
|
|
1764
|
+
async finishMinting(options?: {
|
|
1849
1765
|
accessList?: import('viem').AccessList;
|
|
1850
1766
|
authorizationList?: import('viem').AuthorizationList;
|
|
1851
1767
|
chain?: import('viem').Chain | null;
|
|
@@ -1856,34 +1772,24 @@ export class TetherUSD_json {
|
|
|
1856
1772
|
maxPriorityFeePerGas?: bigint;
|
|
1857
1773
|
nonce?: number;
|
|
1858
1774
|
value?: bigint;
|
|
1859
|
-
}): Promise<
|
|
1860
|
-
return contract.simulate.
|
|
1775
|
+
}): Promise<boolean> {
|
|
1776
|
+
return contract.simulate.finishMinting(options) as Promise<boolean>;
|
|
1861
1777
|
},
|
|
1862
1778
|
/**
|
|
1863
|
-
* Simulate
|
|
1779
|
+
* Simulate permit
|
|
1864
1780
|
* Returns gas estimate and result without sending transaction
|
|
1781
|
+
* Supports multiple overloads: (address, address, uint256, uint256, bool, uint8, bytes32, bytes32), (address, address, uint256, uint256, uint8, bytes32, bytes32)
|
|
1865
1782
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1866
1783
|
*/
|
|
1867
|
-
async
|
|
1868
|
-
|
|
1869
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1870
|
-
chain?: import('viem').Chain | null;
|
|
1871
|
-
dataSuffix?: `0x${string}`;
|
|
1872
|
-
gas?: bigint;
|
|
1873
|
-
gasPrice?: bigint;
|
|
1874
|
-
maxFeePerGas?: bigint;
|
|
1875
|
-
maxPriorityFeePerGas?: bigint;
|
|
1876
|
-
nonce?: number;
|
|
1877
|
-
value?: bigint;
|
|
1878
|
-
}): Promise<void> {
|
|
1879
|
-
return contract.simulate.rescueERC20([tokenAddress, amount] as const, options) as Promise<void>;
|
|
1784
|
+
async permit(...args: any[]): Promise<any> {
|
|
1785
|
+
return contract.simulate.permit(args as any) as Promise<any>;
|
|
1880
1786
|
},
|
|
1881
1787
|
/**
|
|
1882
|
-
* Simulate
|
|
1788
|
+
* Simulate decreaseAllowance
|
|
1883
1789
|
* Returns gas estimate and result without sending transaction
|
|
1884
1790
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1885
1791
|
*/
|
|
1886
|
-
async
|
|
1792
|
+
async decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
|
|
1887
1793
|
accessList?: import('viem').AccessList;
|
|
1888
1794
|
authorizationList?: import('viem').AuthorizationList;
|
|
1889
1795
|
chain?: import('viem').Chain | null;
|
|
@@ -1894,15 +1800,15 @@ export class TetherUSD_json {
|
|
|
1894
1800
|
maxPriorityFeePerGas?: bigint;
|
|
1895
1801
|
nonce?: number;
|
|
1896
1802
|
value?: bigint;
|
|
1897
|
-
}): Promise<
|
|
1898
|
-
return contract.simulate.
|
|
1803
|
+
}): Promise<boolean> {
|
|
1804
|
+
return contract.simulate.decreaseAllowance([spender, subtractedValue] as const, options) as Promise<boolean>;
|
|
1899
1805
|
},
|
|
1900
1806
|
/**
|
|
1901
|
-
* Simulate
|
|
1807
|
+
* Simulate transfer
|
|
1902
1808
|
* Returns gas estimate and result without sending transaction
|
|
1903
1809
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1904
1810
|
*/
|
|
1905
|
-
async
|
|
1811
|
+
async transfer(_to: `0x${string}`, _value: bigint, options?: {
|
|
1906
1812
|
accessList?: import('viem').AccessList;
|
|
1907
1813
|
authorizationList?: import('viem').AuthorizationList;
|
|
1908
1814
|
chain?: import('viem').Chain | null;
|
|
@@ -1913,15 +1819,15 @@ export class TetherUSD_json {
|
|
|
1913
1819
|
maxPriorityFeePerGas?: bigint;
|
|
1914
1820
|
nonce?: number;
|
|
1915
1821
|
value?: bigint;
|
|
1916
|
-
}): Promise<
|
|
1917
|
-
return contract.simulate.
|
|
1822
|
+
}): Promise<boolean> {
|
|
1823
|
+
return contract.simulate.transfer([_to, _value] as const, options) as Promise<boolean>;
|
|
1918
1824
|
},
|
|
1919
1825
|
/**
|
|
1920
|
-
* Simulate
|
|
1826
|
+
* Simulate push
|
|
1921
1827
|
* Returns gas estimate and result without sending transaction
|
|
1922
1828
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1923
1829
|
*/
|
|
1924
|
-
async
|
|
1830
|
+
async push(_to: `0x${string}`, _amount: bigint, options?: {
|
|
1925
1831
|
accessList?: import('viem').AccessList;
|
|
1926
1832
|
authorizationList?: import('viem').AuthorizationList;
|
|
1927
1833
|
chain?: import('viem').Chain | null;
|
|
@@ -1933,14 +1839,14 @@ export class TetherUSD_json {
|
|
|
1933
1839
|
nonce?: number;
|
|
1934
1840
|
value?: bigint;
|
|
1935
1841
|
}): Promise<void> {
|
|
1936
|
-
return contract.simulate.
|
|
1842
|
+
return contract.simulate.push([_to, _amount] as const, options) as Promise<void>;
|
|
1937
1843
|
},
|
|
1938
1844
|
/**
|
|
1939
|
-
* Simulate
|
|
1845
|
+
* Simulate move
|
|
1940
1846
|
* Returns gas estimate and result without sending transaction
|
|
1941
1847
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1942
1848
|
*/
|
|
1943
|
-
async
|
|
1849
|
+
async move(_from: `0x${string}`, _to: `0x${string}`, _amount: bigint, options?: {
|
|
1944
1850
|
accessList?: import('viem').AccessList;
|
|
1945
1851
|
authorizationList?: import('viem').AuthorizationList;
|
|
1946
1852
|
chain?: import('viem').Chain | null;
|
|
@@ -1951,15 +1857,15 @@ export class TetherUSD_json {
|
|
|
1951
1857
|
maxPriorityFeePerGas?: bigint;
|
|
1952
1858
|
nonce?: number;
|
|
1953
1859
|
value?: bigint;
|
|
1954
|
-
}): Promise<
|
|
1955
|
-
return contract.simulate.
|
|
1860
|
+
}): Promise<void> {
|
|
1861
|
+
return contract.simulate.move([_from, _to, _amount] as const, options) as Promise<void>;
|
|
1956
1862
|
},
|
|
1957
1863
|
/**
|
|
1958
|
-
* Simulate
|
|
1864
|
+
* Simulate increaseApproval
|
|
1959
1865
|
* Returns gas estimate and result without sending transaction
|
|
1960
1866
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1961
1867
|
*/
|
|
1962
|
-
async
|
|
1868
|
+
async increaseApproval(_spender: `0x${string}`, _addedValue: bigint, options?: {
|
|
1963
1869
|
accessList?: import('viem').AccessList;
|
|
1964
1870
|
authorizationList?: import('viem').AuthorizationList;
|
|
1965
1871
|
chain?: import('viem').Chain | null;
|
|
@@ -1971,14 +1877,14 @@ export class TetherUSD_json {
|
|
|
1971
1877
|
nonce?: number;
|
|
1972
1878
|
value?: bigint;
|
|
1973
1879
|
}): Promise<boolean> {
|
|
1974
|
-
return contract.simulate.
|
|
1880
|
+
return contract.simulate.increaseApproval([_spender, _addedValue] as const, options) as Promise<boolean>;
|
|
1975
1881
|
},
|
|
1976
1882
|
/**
|
|
1977
|
-
* Simulate
|
|
1883
|
+
* Simulate pull
|
|
1978
1884
|
* Returns gas estimate and result without sending transaction
|
|
1979
1885
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1980
1886
|
*/
|
|
1981
|
-
async
|
|
1887
|
+
async pull(_from: `0x${string}`, _amount: bigint, options?: {
|
|
1982
1888
|
accessList?: import('viem').AccessList;
|
|
1983
1889
|
authorizationList?: import('viem').AuthorizationList;
|
|
1984
1890
|
chain?: import('viem').Chain | null;
|
|
@@ -1990,14 +1896,14 @@ export class TetherUSD_json {
|
|
|
1990
1896
|
nonce?: number;
|
|
1991
1897
|
value?: bigint;
|
|
1992
1898
|
}): Promise<void> {
|
|
1993
|
-
return contract.simulate.
|
|
1899
|
+
return contract.simulate.pull([_from, _amount] as const, options) as Promise<void>;
|
|
1994
1900
|
},
|
|
1995
1901
|
/**
|
|
1996
|
-
* Simulate
|
|
1902
|
+
* Simulate transferOwnership
|
|
1997
1903
|
* Returns gas estimate and result without sending transaction
|
|
1998
1904
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1999
1905
|
*/
|
|
2000
|
-
async
|
|
1906
|
+
async transferOwnership(_newOwner: `0x${string}`, options?: {
|
|
2001
1907
|
accessList?: import('viem').AccessList;
|
|
2002
1908
|
authorizationList?: import('viem').AuthorizationList;
|
|
2003
1909
|
chain?: import('viem').Chain | null;
|
|
@@ -2009,7 +1915,7 @@ export class TetherUSD_json {
|
|
|
2009
1915
|
nonce?: number;
|
|
2010
1916
|
value?: bigint;
|
|
2011
1917
|
}): Promise<void> {
|
|
2012
|
-
return contract.simulate.
|
|
1918
|
+
return contract.simulate.transferOwnership([_newOwner] as const, options) as Promise<void>;
|
|
2013
1919
|
}
|
|
2014
1920
|
};
|
|
2015
1921
|
}
|
|
@@ -2029,73 +1935,16 @@ export class TetherUSD_json {
|
|
|
2029
1935
|
get watch() {
|
|
2030
1936
|
return {
|
|
2031
1937
|
/**
|
|
2032
|
-
* Watch
|
|
2033
|
-
* @param callback Function to call when event is emitted
|
|
2034
|
-
* @param filter Optional filter for indexed parameters
|
|
2035
|
-
* @returns Unwatch function to stop listening
|
|
2036
|
-
*/
|
|
2037
|
-
Approval: (callback: (event: { owner: `0x${string}`; spender: `0x${string}`; value: bigint }) => void, filter?: { owner: `0x${string}`; spender: `0x${string}` }) => {
|
|
2038
|
-
return this.publicClient.watchContractEvent({
|
|
2039
|
-
address: this.contractAddress,
|
|
2040
|
-
abi: TetherUSD_jsonAbi,
|
|
2041
|
-
eventName: 'Approval',
|
|
2042
|
-
args: filter,
|
|
2043
|
-
onLogs: (logs: any[]) => {
|
|
2044
|
-
logs.forEach((log: any) => {
|
|
2045
|
-
callback(log.args as any);
|
|
2046
|
-
});
|
|
2047
|
-
},
|
|
2048
|
-
}) as () => void;
|
|
2049
|
-
},
|
|
2050
|
-
/**
|
|
2051
|
-
* Watch Blacklisted events
|
|
2052
|
-
* @param callback Function to call when event is emitted
|
|
2053
|
-
* @param filter Optional filter for indexed parameters
|
|
2054
|
-
* @returns Unwatch function to stop listening
|
|
2055
|
-
*/
|
|
2056
|
-
Blacklisted: (callback: (event: { account: `0x${string}`; status: boolean }) => void, filter?: { account: `0x${string}` }) => {
|
|
2057
|
-
return this.publicClient.watchContractEvent({
|
|
2058
|
-
address: this.contractAddress,
|
|
2059
|
-
abi: TetherUSD_jsonAbi,
|
|
2060
|
-
eventName: 'Blacklisted',
|
|
2061
|
-
args: filter,
|
|
2062
|
-
onLogs: (logs: any[]) => {
|
|
2063
|
-
logs.forEach((log: any) => {
|
|
2064
|
-
callback(log.args as any);
|
|
2065
|
-
});
|
|
2066
|
-
},
|
|
2067
|
-
}) as () => void;
|
|
2068
|
-
},
|
|
2069
|
-
/**
|
|
2070
|
-
* Watch Burned events
|
|
2071
|
-
* @param callback Function to call when event is emitted
|
|
2072
|
-
* @param filter Optional filter for indexed parameters
|
|
2073
|
-
* @returns Unwatch function to stop listening
|
|
2074
|
-
*/
|
|
2075
|
-
Burned: (callback: (event: { from: `0x${string}`; amount: bigint }) => void, filter?: { from: `0x${string}` }) => {
|
|
2076
|
-
return this.publicClient.watchContractEvent({
|
|
2077
|
-
address: this.contractAddress,
|
|
2078
|
-
abi: TetherUSD_jsonAbi,
|
|
2079
|
-
eventName: 'Burned',
|
|
2080
|
-
args: filter,
|
|
2081
|
-
onLogs: (logs: any[]) => {
|
|
2082
|
-
logs.forEach((log: any) => {
|
|
2083
|
-
callback(log.args as any);
|
|
2084
|
-
});
|
|
2085
|
-
},
|
|
2086
|
-
}) as () => void;
|
|
2087
|
-
},
|
|
2088
|
-
/**
|
|
2089
|
-
* Watch FeeCollectorUpdated events
|
|
1938
|
+
* Watch Mint events
|
|
2090
1939
|
* @param callback Function to call when event is emitted
|
|
2091
1940
|
* @param filter Optional filter for indexed parameters
|
|
2092
1941
|
* @returns Unwatch function to stop listening
|
|
2093
1942
|
*/
|
|
2094
|
-
|
|
1943
|
+
Mint: (callback: (event: { to: `0x${string}`; amount: bigint }) => void, filter?: { to: `0x${string}` }) => {
|
|
2095
1944
|
return this.publicClient.watchContractEvent({
|
|
2096
1945
|
address: this.contractAddress,
|
|
2097
|
-
abi:
|
|
2098
|
-
eventName: '
|
|
1946
|
+
abi: PermittableToken_jsonAbi,
|
|
1947
|
+
eventName: 'Mint',
|
|
2099
1948
|
args: filter,
|
|
2100
1949
|
onLogs: (logs: any[]) => {
|
|
2101
1950
|
logs.forEach((log: any) => {
|
|
@@ -2105,35 +1954,16 @@ export class TetherUSD_json {
|
|
|
2105
1954
|
}) as () => void;
|
|
2106
1955
|
},
|
|
2107
1956
|
/**
|
|
2108
|
-
* Watch
|
|
2109
|
-
* @param callback Function to call when event is emitted
|
|
2110
|
-
* @param filter Optional filter for indexed parameters
|
|
2111
|
-
* @returns Unwatch function to stop listening
|
|
2112
|
-
*/
|
|
2113
|
-
FeeUpdated: (callback: (event: { oldFee: bigint; newFee: bigint }) => void) => {
|
|
2114
|
-
return this.publicClient.watchContractEvent({
|
|
2115
|
-
address: this.contractAddress,
|
|
2116
|
-
abi: TetherUSD_jsonAbi,
|
|
2117
|
-
eventName: 'FeeUpdated',
|
|
2118
|
-
|
|
2119
|
-
onLogs: (logs: any[]) => {
|
|
2120
|
-
logs.forEach((log: any) => {
|
|
2121
|
-
callback(log.args as any);
|
|
2122
|
-
});
|
|
2123
|
-
},
|
|
2124
|
-
}) as () => void;
|
|
2125
|
-
},
|
|
2126
|
-
/**
|
|
2127
|
-
* Watch MaxTransferUpdated events
|
|
1957
|
+
* Watch MintFinished events
|
|
2128
1958
|
* @param callback Function to call when event is emitted
|
|
2129
1959
|
* @param filter Optional filter for indexed parameters
|
|
2130
1960
|
* @returns Unwatch function to stop listening
|
|
2131
1961
|
*/
|
|
2132
|
-
|
|
1962
|
+
MintFinished: (callback: (event: { }) => void) => {
|
|
2133
1963
|
return this.publicClient.watchContractEvent({
|
|
2134
1964
|
address: this.contractAddress,
|
|
2135
|
-
abi:
|
|
2136
|
-
eventName: '
|
|
1965
|
+
abi: PermittableToken_jsonAbi,
|
|
1966
|
+
eventName: 'MintFinished',
|
|
2137
1967
|
|
|
2138
1968
|
onLogs: (logs: any[]) => {
|
|
2139
1969
|
logs.forEach((log: any) => {
|
|
@@ -2143,16 +1973,16 @@ export class TetherUSD_json {
|
|
|
2143
1973
|
}) as () => void;
|
|
2144
1974
|
},
|
|
2145
1975
|
/**
|
|
2146
|
-
* Watch
|
|
1976
|
+
* Watch OwnershipRenounced events
|
|
2147
1977
|
* @param callback Function to call when event is emitted
|
|
2148
1978
|
* @param filter Optional filter for indexed parameters
|
|
2149
1979
|
* @returns Unwatch function to stop listening
|
|
2150
1980
|
*/
|
|
2151
|
-
|
|
1981
|
+
OwnershipRenounced: (callback: (event: { previousOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}` }) => {
|
|
2152
1982
|
return this.publicClient.watchContractEvent({
|
|
2153
1983
|
address: this.contractAddress,
|
|
2154
|
-
abi:
|
|
2155
|
-
eventName: '
|
|
1984
|
+
abi: PermittableToken_jsonAbi,
|
|
1985
|
+
eventName: 'OwnershipRenounced',
|
|
2156
1986
|
args: filter,
|
|
2157
1987
|
onLogs: (logs: any[]) => {
|
|
2158
1988
|
logs.forEach((log: any) => {
|
|
@@ -2170,7 +2000,7 @@ export class TetherUSD_json {
|
|
|
2170
2000
|
OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => {
|
|
2171
2001
|
return this.publicClient.watchContractEvent({
|
|
2172
2002
|
address: this.contractAddress,
|
|
2173
|
-
abi:
|
|
2003
|
+
abi: PermittableToken_jsonAbi,
|
|
2174
2004
|
eventName: 'OwnershipTransferred',
|
|
2175
2005
|
args: filter,
|
|
2176
2006
|
onLogs: (logs: any[]) => {
|
|
@@ -2181,16 +2011,16 @@ export class TetherUSD_json {
|
|
|
2181
2011
|
}) as () => void;
|
|
2182
2012
|
},
|
|
2183
2013
|
/**
|
|
2184
|
-
* Watch
|
|
2014
|
+
* Watch Burn events
|
|
2185
2015
|
* @param callback Function to call when event is emitted
|
|
2186
2016
|
* @param filter Optional filter for indexed parameters
|
|
2187
2017
|
* @returns Unwatch function to stop listening
|
|
2188
2018
|
*/
|
|
2189
|
-
|
|
2019
|
+
Burn: (callback: (event: { burner: `0x${string}`; value: bigint }) => void, filter?: { burner: `0x${string}` }) => {
|
|
2190
2020
|
return this.publicClient.watchContractEvent({
|
|
2191
2021
|
address: this.contractAddress,
|
|
2192
|
-
abi:
|
|
2193
|
-
eventName: '
|
|
2022
|
+
abi: PermittableToken_jsonAbi,
|
|
2023
|
+
eventName: 'Burn',
|
|
2194
2024
|
args: filter,
|
|
2195
2025
|
onLogs: (logs: any[]) => {
|
|
2196
2026
|
logs.forEach((log: any) => {
|
|
@@ -2205,10 +2035,10 @@ export class TetherUSD_json {
|
|
|
2205
2035
|
* @param filter Optional filter for indexed parameters
|
|
2206
2036
|
* @returns Unwatch function to stop listening
|
|
2207
2037
|
*/
|
|
2208
|
-
Transfer: (callback: (event: { from: `0x${string}`; to: `0x${string}`; value: bigint }) => void, filter?: { from: `0x${string}`; to: `0x${string}` }) => {
|
|
2038
|
+
Transfer: (callback: (event: { from: `0x${string}`; to: `0x${string}`; value: bigint; data: `0x${string}` }) => void, filter?: { from: `0x${string}`; to: `0x${string}` }) => {
|
|
2209
2039
|
return this.publicClient.watchContractEvent({
|
|
2210
2040
|
address: this.contractAddress,
|
|
2211
|
-
abi:
|
|
2041
|
+
abi: PermittableToken_jsonAbi,
|
|
2212
2042
|
eventName: 'Transfer',
|
|
2213
2043
|
args: filter,
|
|
2214
2044
|
onLogs: (logs: any[]) => {
|
|
@@ -2219,16 +2049,16 @@ export class TetherUSD_json {
|
|
|
2219
2049
|
}) as () => void;
|
|
2220
2050
|
},
|
|
2221
2051
|
/**
|
|
2222
|
-
* Watch
|
|
2052
|
+
* Watch Approval events
|
|
2223
2053
|
* @param callback Function to call when event is emitted
|
|
2224
2054
|
* @param filter Optional filter for indexed parameters
|
|
2225
2055
|
* @returns Unwatch function to stop listening
|
|
2226
2056
|
*/
|
|
2227
|
-
|
|
2057
|
+
Approval: (callback: (event: { owner: `0x${string}`; spender: `0x${string}`; value: bigint }) => void, filter?: { owner: `0x${string}`; spender: `0x${string}` }) => {
|
|
2228
2058
|
return this.publicClient.watchContractEvent({
|
|
2229
2059
|
address: this.contractAddress,
|
|
2230
|
-
abi:
|
|
2231
|
-
eventName: '
|
|
2060
|
+
abi: PermittableToken_jsonAbi,
|
|
2061
|
+
eventName: 'Approval',
|
|
2232
2062
|
args: filter,
|
|
2233
2063
|
onLogs: (logs: any[]) => {
|
|
2234
2064
|
logs.forEach((log: any) => {
|