@gitmyabi/usdt 1.0.28 → 1.0.29
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 +3 -3
- package/contracts/{ERC20Token_json.d.ts → TetherToken_json.d.ts} +648 -329
- package/contracts/{ERC20Token_json.js → TetherToken_json.js} +738 -361
- package/contracts/{ERC20Token_json.ts → TetherToken_json.ts} +835 -371
- package/contracts/index.d.ts +2 -2
- package/contracts/index.js +4 -4
- package/contracts/index.ts +2 -2
- package/package.json +3 -3
|
@@ -1,419 +1,537 @@
|
|
|
1
1
|
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* TetherToken_json ABI
|
|
4
4
|
*
|
|
5
5
|
* This ABI is typed using viem's type system for full type safety.
|
|
6
6
|
*/
|
|
7
|
-
export declare const
|
|
8
|
-
readonly
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
readonly internalType: "string";
|
|
14
|
-
readonly name: "initialSymbol";
|
|
7
|
+
export declare const TetherToken_jsonAbi: readonly [{
|
|
8
|
+
readonly constant: true;
|
|
9
|
+
readonly inputs: readonly [];
|
|
10
|
+
readonly name: "name";
|
|
11
|
+
readonly outputs: readonly [{
|
|
12
|
+
readonly name: "";
|
|
15
13
|
readonly type: "string";
|
|
16
|
-
}, {
|
|
17
|
-
readonly internalType: "uint256";
|
|
18
|
-
readonly name: "initSupply";
|
|
19
|
-
readonly type: "uint256";
|
|
20
|
-
}, {
|
|
21
|
-
readonly internalType: "uint8";
|
|
22
|
-
readonly name: "initialDecimals";
|
|
23
|
-
readonly type: "uint8";
|
|
24
14
|
}];
|
|
25
|
-
readonly
|
|
26
|
-
readonly
|
|
15
|
+
readonly payable: false;
|
|
16
|
+
readonly stateMutability: "view";
|
|
17
|
+
readonly type: "function";
|
|
27
18
|
}, {
|
|
19
|
+
readonly constant: false;
|
|
28
20
|
readonly inputs: readonly [{
|
|
29
|
-
readonly
|
|
30
|
-
readonly name: "spender";
|
|
21
|
+
readonly name: "_upgradedAddress";
|
|
31
22
|
readonly type: "address";
|
|
32
|
-
}, {
|
|
33
|
-
readonly internalType: "uint256";
|
|
34
|
-
readonly name: "allowance";
|
|
35
|
-
readonly type: "uint256";
|
|
36
|
-
}, {
|
|
37
|
-
readonly internalType: "uint256";
|
|
38
|
-
readonly name: "needed";
|
|
39
|
-
readonly type: "uint256";
|
|
40
23
|
}];
|
|
41
|
-
readonly name: "
|
|
42
|
-
readonly
|
|
24
|
+
readonly name: "deprecate";
|
|
25
|
+
readonly outputs: readonly [];
|
|
26
|
+
readonly payable: false;
|
|
27
|
+
readonly stateMutability: "nonpayable";
|
|
28
|
+
readonly type: "function";
|
|
43
29
|
}, {
|
|
30
|
+
readonly constant: false;
|
|
44
31
|
readonly inputs: readonly [{
|
|
45
|
-
readonly
|
|
46
|
-
readonly name: "sender";
|
|
32
|
+
readonly name: "_spender";
|
|
47
33
|
readonly type: "address";
|
|
48
34
|
}, {
|
|
49
|
-
readonly
|
|
50
|
-
readonly name: "balance";
|
|
51
|
-
readonly type: "uint256";
|
|
52
|
-
}, {
|
|
53
|
-
readonly internalType: "uint256";
|
|
54
|
-
readonly name: "needed";
|
|
35
|
+
readonly name: "_value";
|
|
55
36
|
readonly type: "uint256";
|
|
56
37
|
}];
|
|
57
|
-
readonly name: "
|
|
58
|
-
readonly
|
|
38
|
+
readonly name: "approve";
|
|
39
|
+
readonly outputs: readonly [];
|
|
40
|
+
readonly payable: false;
|
|
41
|
+
readonly stateMutability: "nonpayable";
|
|
42
|
+
readonly type: "function";
|
|
59
43
|
}, {
|
|
60
|
-
readonly
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
44
|
+
readonly constant: true;
|
|
45
|
+
readonly inputs: readonly [];
|
|
46
|
+
readonly name: "deprecated";
|
|
47
|
+
readonly outputs: readonly [{
|
|
48
|
+
readonly name: "";
|
|
49
|
+
readonly type: "bool";
|
|
64
50
|
}];
|
|
65
|
-
readonly
|
|
66
|
-
readonly
|
|
51
|
+
readonly payable: false;
|
|
52
|
+
readonly stateMutability: "view";
|
|
53
|
+
readonly type: "function";
|
|
67
54
|
}, {
|
|
55
|
+
readonly constant: false;
|
|
68
56
|
readonly inputs: readonly [{
|
|
69
|
-
readonly
|
|
70
|
-
readonly name: "receiver";
|
|
57
|
+
readonly name: "_evilUser";
|
|
71
58
|
readonly type: "address";
|
|
72
59
|
}];
|
|
73
|
-
readonly name: "
|
|
74
|
-
readonly
|
|
60
|
+
readonly name: "addBlackList";
|
|
61
|
+
readonly outputs: readonly [];
|
|
62
|
+
readonly payable: false;
|
|
63
|
+
readonly stateMutability: "nonpayable";
|
|
64
|
+
readonly type: "function";
|
|
75
65
|
}, {
|
|
76
|
-
readonly
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
66
|
+
readonly constant: true;
|
|
67
|
+
readonly inputs: readonly [];
|
|
68
|
+
readonly name: "totalSupply";
|
|
69
|
+
readonly outputs: readonly [{
|
|
70
|
+
readonly name: "";
|
|
71
|
+
readonly type: "uint256";
|
|
80
72
|
}];
|
|
81
|
-
readonly
|
|
82
|
-
readonly
|
|
73
|
+
readonly payable: false;
|
|
74
|
+
readonly stateMutability: "view";
|
|
75
|
+
readonly type: "function";
|
|
83
76
|
}, {
|
|
77
|
+
readonly constant: false;
|
|
84
78
|
readonly inputs: readonly [{
|
|
85
|
-
readonly
|
|
86
|
-
readonly name: "spender";
|
|
79
|
+
readonly name: "_from";
|
|
87
80
|
readonly type: "address";
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
readonly type: "error";
|
|
91
|
-
}, {
|
|
92
|
-
readonly inputs: readonly [{
|
|
93
|
-
readonly internalType: "address";
|
|
94
|
-
readonly name: "owner";
|
|
81
|
+
}, {
|
|
82
|
+
readonly name: "_to";
|
|
95
83
|
readonly type: "address";
|
|
84
|
+
}, {
|
|
85
|
+
readonly name: "_value";
|
|
86
|
+
readonly type: "uint256";
|
|
96
87
|
}];
|
|
97
|
-
readonly name: "
|
|
98
|
-
readonly
|
|
88
|
+
readonly name: "transferFrom";
|
|
89
|
+
readonly outputs: readonly [];
|
|
90
|
+
readonly payable: false;
|
|
91
|
+
readonly stateMutability: "nonpayable";
|
|
92
|
+
readonly type: "function";
|
|
99
93
|
}, {
|
|
100
|
-
readonly
|
|
101
|
-
|
|
102
|
-
|
|
94
|
+
readonly constant: true;
|
|
95
|
+
readonly inputs: readonly [];
|
|
96
|
+
readonly name: "upgradedAddress";
|
|
97
|
+
readonly outputs: readonly [{
|
|
98
|
+
readonly name: "";
|
|
103
99
|
readonly type: "address";
|
|
104
100
|
}];
|
|
105
|
-
readonly
|
|
106
|
-
readonly
|
|
101
|
+
readonly payable: false;
|
|
102
|
+
readonly stateMutability: "view";
|
|
103
|
+
readonly type: "function";
|
|
107
104
|
}, {
|
|
108
|
-
readonly
|
|
105
|
+
readonly constant: true;
|
|
109
106
|
readonly inputs: readonly [{
|
|
110
|
-
readonly
|
|
111
|
-
readonly internalType: "address";
|
|
112
|
-
readonly name: "owner";
|
|
113
|
-
readonly type: "address";
|
|
114
|
-
}, {
|
|
115
|
-
readonly indexed: true;
|
|
116
|
-
readonly internalType: "address";
|
|
117
|
-
readonly name: "spender";
|
|
107
|
+
readonly name: "";
|
|
118
108
|
readonly type: "address";
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
readonly name: "
|
|
109
|
+
}];
|
|
110
|
+
readonly name: "balances";
|
|
111
|
+
readonly outputs: readonly [{
|
|
112
|
+
readonly name: "";
|
|
123
113
|
readonly type: "uint256";
|
|
124
114
|
}];
|
|
125
|
-
readonly
|
|
126
|
-
readonly
|
|
115
|
+
readonly payable: false;
|
|
116
|
+
readonly stateMutability: "view";
|
|
117
|
+
readonly type: "function";
|
|
127
118
|
}, {
|
|
128
|
-
readonly
|
|
129
|
-
readonly inputs: readonly [
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
readonly name: "
|
|
133
|
-
readonly type: "
|
|
134
|
-
}, {
|
|
135
|
-
readonly indexed: true;
|
|
136
|
-
readonly internalType: "address";
|
|
137
|
-
readonly name: "newOwner";
|
|
138
|
-
readonly type: "address";
|
|
119
|
+
readonly constant: true;
|
|
120
|
+
readonly inputs: readonly [];
|
|
121
|
+
readonly name: "decimals";
|
|
122
|
+
readonly outputs: readonly [{
|
|
123
|
+
readonly name: "";
|
|
124
|
+
readonly type: "uint256";
|
|
139
125
|
}];
|
|
140
|
-
readonly
|
|
141
|
-
readonly
|
|
126
|
+
readonly payable: false;
|
|
127
|
+
readonly stateMutability: "view";
|
|
128
|
+
readonly type: "function";
|
|
142
129
|
}, {
|
|
143
|
-
readonly
|
|
144
|
-
readonly inputs: readonly [
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
readonly name: "
|
|
148
|
-
readonly type: "
|
|
130
|
+
readonly constant: true;
|
|
131
|
+
readonly inputs: readonly [];
|
|
132
|
+
readonly name: "maximumFee";
|
|
133
|
+
readonly outputs: readonly [{
|
|
134
|
+
readonly name: "";
|
|
135
|
+
readonly type: "uint256";
|
|
149
136
|
}];
|
|
150
|
-
readonly
|
|
151
|
-
readonly
|
|
137
|
+
readonly payable: false;
|
|
138
|
+
readonly stateMutability: "view";
|
|
139
|
+
readonly type: "function";
|
|
152
140
|
}, {
|
|
153
|
-
readonly
|
|
154
|
-
readonly inputs: readonly [
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
readonly name: "
|
|
158
|
-
readonly type: "
|
|
141
|
+
readonly constant: true;
|
|
142
|
+
readonly inputs: readonly [];
|
|
143
|
+
readonly name: "_totalSupply";
|
|
144
|
+
readonly outputs: readonly [{
|
|
145
|
+
readonly name: "";
|
|
146
|
+
readonly type: "uint256";
|
|
159
147
|
}];
|
|
160
|
-
readonly
|
|
161
|
-
readonly
|
|
148
|
+
readonly payable: false;
|
|
149
|
+
readonly stateMutability: "view";
|
|
150
|
+
readonly type: "function";
|
|
162
151
|
}, {
|
|
163
|
-
readonly
|
|
164
|
-
readonly inputs: readonly [
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
readonly name: "SetSymbol";
|
|
171
|
-
readonly type: "event";
|
|
152
|
+
readonly constant: false;
|
|
153
|
+
readonly inputs: readonly [];
|
|
154
|
+
readonly name: "unpause";
|
|
155
|
+
readonly outputs: readonly [];
|
|
156
|
+
readonly payable: false;
|
|
157
|
+
readonly stateMutability: "nonpayable";
|
|
158
|
+
readonly type: "function";
|
|
172
159
|
}, {
|
|
173
|
-
readonly
|
|
160
|
+
readonly constant: true;
|
|
174
161
|
readonly inputs: readonly [{
|
|
175
|
-
readonly
|
|
176
|
-
readonly internalType: "address";
|
|
177
|
-
readonly name: "from";
|
|
178
|
-
readonly type: "address";
|
|
179
|
-
}, {
|
|
180
|
-
readonly indexed: true;
|
|
181
|
-
readonly internalType: "address";
|
|
182
|
-
readonly name: "to";
|
|
162
|
+
readonly name: "_maker";
|
|
183
163
|
readonly type: "address";
|
|
184
|
-
}, {
|
|
185
|
-
readonly indexed: false;
|
|
186
|
-
readonly internalType: "uint256";
|
|
187
|
-
readonly name: "value";
|
|
188
|
-
readonly type: "uint256";
|
|
189
164
|
}];
|
|
190
|
-
readonly name: "
|
|
191
|
-
readonly
|
|
165
|
+
readonly name: "getBlackListStatus";
|
|
166
|
+
readonly outputs: readonly [{
|
|
167
|
+
readonly name: "";
|
|
168
|
+
readonly type: "bool";
|
|
169
|
+
}];
|
|
170
|
+
readonly payable: false;
|
|
171
|
+
readonly stateMutability: "view";
|
|
172
|
+
readonly type: "function";
|
|
192
173
|
}, {
|
|
174
|
+
readonly constant: true;
|
|
193
175
|
readonly inputs: readonly [{
|
|
194
|
-
readonly
|
|
195
|
-
readonly name: "owner";
|
|
176
|
+
readonly name: "";
|
|
196
177
|
readonly type: "address";
|
|
197
178
|
}, {
|
|
198
|
-
readonly
|
|
199
|
-
readonly name: "spender";
|
|
179
|
+
readonly name: "";
|
|
200
180
|
readonly type: "address";
|
|
201
181
|
}];
|
|
202
|
-
readonly name: "
|
|
182
|
+
readonly name: "allowed";
|
|
203
183
|
readonly outputs: readonly [{
|
|
204
|
-
readonly internalType: "uint256";
|
|
205
184
|
readonly name: "";
|
|
206
185
|
readonly type: "uint256";
|
|
207
186
|
}];
|
|
187
|
+
readonly payable: false;
|
|
208
188
|
readonly stateMutability: "view";
|
|
209
189
|
readonly type: "function";
|
|
210
190
|
}, {
|
|
211
|
-
readonly
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
readonly type: "address";
|
|
215
|
-
}, {
|
|
216
|
-
readonly internalType: "uint256";
|
|
217
|
-
readonly name: "value";
|
|
218
|
-
readonly type: "uint256";
|
|
219
|
-
}];
|
|
220
|
-
readonly name: "approve";
|
|
191
|
+
readonly constant: true;
|
|
192
|
+
readonly inputs: readonly [];
|
|
193
|
+
readonly name: "paused";
|
|
221
194
|
readonly outputs: readonly [{
|
|
222
|
-
readonly internalType: "bool";
|
|
223
195
|
readonly name: "";
|
|
224
196
|
readonly type: "bool";
|
|
225
197
|
}];
|
|
226
|
-
readonly
|
|
198
|
+
readonly payable: false;
|
|
199
|
+
readonly stateMutability: "view";
|
|
227
200
|
readonly type: "function";
|
|
228
201
|
}, {
|
|
202
|
+
readonly constant: true;
|
|
229
203
|
readonly inputs: readonly [{
|
|
230
|
-
readonly
|
|
231
|
-
readonly name: "account";
|
|
204
|
+
readonly name: "who";
|
|
232
205
|
readonly type: "address";
|
|
233
206
|
}];
|
|
234
207
|
readonly name: "balanceOf";
|
|
235
208
|
readonly outputs: readonly [{
|
|
236
|
-
readonly internalType: "uint256";
|
|
237
209
|
readonly name: "";
|
|
238
210
|
readonly type: "uint256";
|
|
239
211
|
}];
|
|
212
|
+
readonly payable: false;
|
|
240
213
|
readonly stateMutability: "view";
|
|
241
214
|
readonly type: "function";
|
|
242
215
|
}, {
|
|
243
|
-
readonly
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
readonly type: "address";
|
|
247
|
-
}, {
|
|
248
|
-
readonly internalType: "uint256";
|
|
249
|
-
readonly name: "amount";
|
|
250
|
-
readonly type: "uint256";
|
|
251
|
-
}];
|
|
252
|
-
readonly name: "burn";
|
|
216
|
+
readonly constant: false;
|
|
217
|
+
readonly inputs: readonly [];
|
|
218
|
+
readonly name: "pause";
|
|
253
219
|
readonly outputs: readonly [];
|
|
220
|
+
readonly payable: false;
|
|
254
221
|
readonly stateMutability: "nonpayable";
|
|
255
222
|
readonly type: "function";
|
|
256
223
|
}, {
|
|
224
|
+
readonly constant: true;
|
|
257
225
|
readonly inputs: readonly [];
|
|
258
|
-
readonly name: "
|
|
226
|
+
readonly name: "getOwner";
|
|
259
227
|
readonly outputs: readonly [{
|
|
260
|
-
readonly internalType: "uint8";
|
|
261
228
|
readonly name: "";
|
|
262
|
-
readonly type: "
|
|
229
|
+
readonly type: "address";
|
|
263
230
|
}];
|
|
231
|
+
readonly payable: false;
|
|
264
232
|
readonly stateMutability: "view";
|
|
265
233
|
readonly type: "function";
|
|
266
234
|
}, {
|
|
235
|
+
readonly constant: true;
|
|
236
|
+
readonly inputs: readonly [];
|
|
237
|
+
readonly name: "owner";
|
|
238
|
+
readonly outputs: readonly [{
|
|
239
|
+
readonly name: "";
|
|
240
|
+
readonly type: "address";
|
|
241
|
+
}];
|
|
242
|
+
readonly payable: false;
|
|
243
|
+
readonly stateMutability: "view";
|
|
244
|
+
readonly type: "function";
|
|
245
|
+
}, {
|
|
246
|
+
readonly constant: true;
|
|
247
|
+
readonly inputs: readonly [];
|
|
248
|
+
readonly name: "symbol";
|
|
249
|
+
readonly outputs: readonly [{
|
|
250
|
+
readonly name: "";
|
|
251
|
+
readonly type: "string";
|
|
252
|
+
}];
|
|
253
|
+
readonly payable: false;
|
|
254
|
+
readonly stateMutability: "view";
|
|
255
|
+
readonly type: "function";
|
|
256
|
+
}, {
|
|
257
|
+
readonly constant: false;
|
|
267
258
|
readonly inputs: readonly [{
|
|
268
|
-
readonly
|
|
269
|
-
readonly name: "account";
|
|
259
|
+
readonly name: "_to";
|
|
270
260
|
readonly type: "address";
|
|
271
261
|
}, {
|
|
272
|
-
readonly
|
|
262
|
+
readonly name: "_value";
|
|
263
|
+
readonly type: "uint256";
|
|
264
|
+
}];
|
|
265
|
+
readonly name: "transfer";
|
|
266
|
+
readonly outputs: readonly [];
|
|
267
|
+
readonly payable: false;
|
|
268
|
+
readonly stateMutability: "nonpayable";
|
|
269
|
+
readonly type: "function";
|
|
270
|
+
}, {
|
|
271
|
+
readonly constant: false;
|
|
272
|
+
readonly inputs: readonly [{
|
|
273
|
+
readonly name: "newBasisPoints";
|
|
274
|
+
readonly type: "uint256";
|
|
275
|
+
}, {
|
|
276
|
+
readonly name: "newMaxFee";
|
|
277
|
+
readonly type: "uint256";
|
|
278
|
+
}];
|
|
279
|
+
readonly name: "setParams";
|
|
280
|
+
readonly outputs: readonly [];
|
|
281
|
+
readonly payable: false;
|
|
282
|
+
readonly stateMutability: "nonpayable";
|
|
283
|
+
readonly type: "function";
|
|
284
|
+
}, {
|
|
285
|
+
readonly constant: false;
|
|
286
|
+
readonly inputs: readonly [{
|
|
273
287
|
readonly name: "amount";
|
|
274
288
|
readonly type: "uint256";
|
|
275
289
|
}];
|
|
276
|
-
readonly name: "
|
|
290
|
+
readonly name: "issue";
|
|
277
291
|
readonly outputs: readonly [];
|
|
292
|
+
readonly payable: false;
|
|
278
293
|
readonly stateMutability: "nonpayable";
|
|
279
294
|
readonly type: "function";
|
|
280
295
|
}, {
|
|
281
|
-
readonly
|
|
282
|
-
readonly
|
|
296
|
+
readonly constant: false;
|
|
297
|
+
readonly inputs: readonly [{
|
|
298
|
+
readonly name: "amount";
|
|
299
|
+
readonly type: "uint256";
|
|
300
|
+
}];
|
|
301
|
+
readonly name: "redeem";
|
|
302
|
+
readonly outputs: readonly [];
|
|
303
|
+
readonly payable: false;
|
|
304
|
+
readonly stateMutability: "nonpayable";
|
|
305
|
+
readonly type: "function";
|
|
306
|
+
}, {
|
|
307
|
+
readonly constant: true;
|
|
308
|
+
readonly inputs: readonly [{
|
|
309
|
+
readonly name: "_owner";
|
|
310
|
+
readonly type: "address";
|
|
311
|
+
}, {
|
|
312
|
+
readonly name: "_spender";
|
|
313
|
+
readonly type: "address";
|
|
314
|
+
}];
|
|
315
|
+
readonly name: "allowance";
|
|
283
316
|
readonly outputs: readonly [{
|
|
284
|
-
readonly
|
|
285
|
-
readonly
|
|
286
|
-
readonly type: "string";
|
|
317
|
+
readonly name: "remaining";
|
|
318
|
+
readonly type: "uint256";
|
|
287
319
|
}];
|
|
320
|
+
readonly payable: false;
|
|
288
321
|
readonly stateMutability: "view";
|
|
289
322
|
readonly type: "function";
|
|
290
323
|
}, {
|
|
324
|
+
readonly constant: true;
|
|
291
325
|
readonly inputs: readonly [];
|
|
292
|
-
readonly name: "
|
|
326
|
+
readonly name: "basisPointsRate";
|
|
293
327
|
readonly outputs: readonly [{
|
|
294
|
-
readonly
|
|
328
|
+
readonly name: "";
|
|
329
|
+
readonly type: "uint256";
|
|
330
|
+
}];
|
|
331
|
+
readonly payable: false;
|
|
332
|
+
readonly stateMutability: "view";
|
|
333
|
+
readonly type: "function";
|
|
334
|
+
}, {
|
|
335
|
+
readonly constant: true;
|
|
336
|
+
readonly inputs: readonly [{
|
|
295
337
|
readonly name: "";
|
|
296
338
|
readonly type: "address";
|
|
297
339
|
}];
|
|
340
|
+
readonly name: "isBlackListed";
|
|
341
|
+
readonly outputs: readonly [{
|
|
342
|
+
readonly name: "";
|
|
343
|
+
readonly type: "bool";
|
|
344
|
+
}];
|
|
345
|
+
readonly payable: false;
|
|
298
346
|
readonly stateMutability: "view";
|
|
299
347
|
readonly type: "function";
|
|
300
348
|
}, {
|
|
301
|
-
readonly
|
|
302
|
-
readonly
|
|
349
|
+
readonly constant: false;
|
|
350
|
+
readonly inputs: readonly [{
|
|
351
|
+
readonly name: "_clearedUser";
|
|
352
|
+
readonly type: "address";
|
|
353
|
+
}];
|
|
354
|
+
readonly name: "removeBlackList";
|
|
303
355
|
readonly outputs: readonly [];
|
|
356
|
+
readonly payable: false;
|
|
304
357
|
readonly stateMutability: "nonpayable";
|
|
305
358
|
readonly type: "function";
|
|
306
359
|
}, {
|
|
360
|
+
readonly constant: true;
|
|
361
|
+
readonly inputs: readonly [];
|
|
362
|
+
readonly name: "MAX_UINT";
|
|
363
|
+
readonly outputs: readonly [{
|
|
364
|
+
readonly name: "";
|
|
365
|
+
readonly type: "uint256";
|
|
366
|
+
}];
|
|
367
|
+
readonly payable: false;
|
|
368
|
+
readonly stateMutability: "view";
|
|
369
|
+
readonly type: "function";
|
|
370
|
+
}, {
|
|
371
|
+
readonly constant: false;
|
|
307
372
|
readonly inputs: readonly [{
|
|
308
|
-
readonly
|
|
309
|
-
readonly
|
|
310
|
-
readonly type: "uint8";
|
|
373
|
+
readonly name: "newOwner";
|
|
374
|
+
readonly type: "address";
|
|
311
375
|
}];
|
|
312
|
-
readonly name: "
|
|
376
|
+
readonly name: "transferOwnership";
|
|
313
377
|
readonly outputs: readonly [];
|
|
378
|
+
readonly payable: false;
|
|
314
379
|
readonly stateMutability: "nonpayable";
|
|
315
380
|
readonly type: "function";
|
|
316
381
|
}, {
|
|
382
|
+
readonly constant: false;
|
|
317
383
|
readonly inputs: readonly [{
|
|
318
|
-
readonly
|
|
319
|
-
readonly
|
|
320
|
-
readonly type: "string";
|
|
384
|
+
readonly name: "_blackListedUser";
|
|
385
|
+
readonly type: "address";
|
|
321
386
|
}];
|
|
322
|
-
readonly name: "
|
|
387
|
+
readonly name: "destroyBlackFunds";
|
|
323
388
|
readonly outputs: readonly [];
|
|
389
|
+
readonly payable: false;
|
|
324
390
|
readonly stateMutability: "nonpayable";
|
|
325
391
|
readonly type: "function";
|
|
326
392
|
}, {
|
|
327
393
|
readonly inputs: readonly [{
|
|
328
|
-
readonly
|
|
329
|
-
readonly
|
|
394
|
+
readonly name: "_initialSupply";
|
|
395
|
+
readonly type: "uint256";
|
|
396
|
+
}, {
|
|
397
|
+
readonly name: "_name";
|
|
398
|
+
readonly type: "string";
|
|
399
|
+
}, {
|
|
400
|
+
readonly name: "_symbol";
|
|
330
401
|
readonly type: "string";
|
|
402
|
+
}, {
|
|
403
|
+
readonly name: "_decimals";
|
|
404
|
+
readonly type: "uint256";
|
|
331
405
|
}];
|
|
332
|
-
readonly
|
|
333
|
-
readonly outputs: readonly [];
|
|
406
|
+
readonly payable: false;
|
|
334
407
|
readonly stateMutability: "nonpayable";
|
|
335
|
-
readonly type: "
|
|
408
|
+
readonly type: "constructor";
|
|
336
409
|
}, {
|
|
337
|
-
readonly
|
|
338
|
-
readonly
|
|
339
|
-
|
|
340
|
-
readonly
|
|
341
|
-
readonly
|
|
342
|
-
readonly type: "string";
|
|
410
|
+
readonly anonymous: false;
|
|
411
|
+
readonly inputs: readonly [{
|
|
412
|
+
readonly indexed: false;
|
|
413
|
+
readonly name: "amount";
|
|
414
|
+
readonly type: "uint256";
|
|
343
415
|
}];
|
|
344
|
-
readonly
|
|
345
|
-
readonly type: "
|
|
416
|
+
readonly name: "Issue";
|
|
417
|
+
readonly type: "event";
|
|
418
|
+
}, {
|
|
419
|
+
readonly anonymous: false;
|
|
420
|
+
readonly inputs: readonly [{
|
|
421
|
+
readonly indexed: false;
|
|
422
|
+
readonly name: "amount";
|
|
423
|
+
readonly type: "uint256";
|
|
424
|
+
}];
|
|
425
|
+
readonly name: "Redeem";
|
|
426
|
+
readonly type: "event";
|
|
427
|
+
}, {
|
|
428
|
+
readonly anonymous: false;
|
|
429
|
+
readonly inputs: readonly [{
|
|
430
|
+
readonly indexed: false;
|
|
431
|
+
readonly name: "newAddress";
|
|
432
|
+
readonly type: "address";
|
|
433
|
+
}];
|
|
434
|
+
readonly name: "Deprecate";
|
|
435
|
+
readonly type: "event";
|
|
436
|
+
}, {
|
|
437
|
+
readonly anonymous: false;
|
|
438
|
+
readonly inputs: readonly [{
|
|
439
|
+
readonly indexed: false;
|
|
440
|
+
readonly name: "feeBasisPoints";
|
|
441
|
+
readonly type: "uint256";
|
|
442
|
+
}, {
|
|
443
|
+
readonly indexed: false;
|
|
444
|
+
readonly name: "maxFee";
|
|
445
|
+
readonly type: "uint256";
|
|
446
|
+
}];
|
|
447
|
+
readonly name: "Params";
|
|
448
|
+
readonly type: "event";
|
|
449
|
+
}, {
|
|
450
|
+
readonly anonymous: false;
|
|
451
|
+
readonly inputs: readonly [{
|
|
452
|
+
readonly indexed: false;
|
|
453
|
+
readonly name: "_blackListedUser";
|
|
454
|
+
readonly type: "address";
|
|
455
|
+
}, {
|
|
456
|
+
readonly indexed: false;
|
|
457
|
+
readonly name: "_balance";
|
|
458
|
+
readonly type: "uint256";
|
|
459
|
+
}];
|
|
460
|
+
readonly name: "DestroyedBlackFunds";
|
|
461
|
+
readonly type: "event";
|
|
462
|
+
}, {
|
|
463
|
+
readonly anonymous: false;
|
|
464
|
+
readonly inputs: readonly [{
|
|
465
|
+
readonly indexed: false;
|
|
466
|
+
readonly name: "_user";
|
|
467
|
+
readonly type: "address";
|
|
468
|
+
}];
|
|
469
|
+
readonly name: "AddedBlackList";
|
|
470
|
+
readonly type: "event";
|
|
346
471
|
}, {
|
|
347
|
-
readonly
|
|
348
|
-
readonly
|
|
349
|
-
|
|
350
|
-
readonly
|
|
351
|
-
readonly
|
|
352
|
-
readonly type: "uint256";
|
|
472
|
+
readonly anonymous: false;
|
|
473
|
+
readonly inputs: readonly [{
|
|
474
|
+
readonly indexed: false;
|
|
475
|
+
readonly name: "_user";
|
|
476
|
+
readonly type: "address";
|
|
353
477
|
}];
|
|
354
|
-
readonly
|
|
355
|
-
readonly type: "
|
|
478
|
+
readonly name: "RemovedBlackList";
|
|
479
|
+
readonly type: "event";
|
|
356
480
|
}, {
|
|
481
|
+
readonly anonymous: false;
|
|
357
482
|
readonly inputs: readonly [{
|
|
358
|
-
readonly
|
|
359
|
-
readonly name: "
|
|
483
|
+
readonly indexed: true;
|
|
484
|
+
readonly name: "owner";
|
|
360
485
|
readonly type: "address";
|
|
361
486
|
}, {
|
|
362
|
-
readonly
|
|
487
|
+
readonly indexed: true;
|
|
488
|
+
readonly name: "spender";
|
|
489
|
+
readonly type: "address";
|
|
490
|
+
}, {
|
|
491
|
+
readonly indexed: false;
|
|
363
492
|
readonly name: "value";
|
|
364
493
|
readonly type: "uint256";
|
|
365
494
|
}];
|
|
366
|
-
readonly name: "
|
|
367
|
-
readonly
|
|
368
|
-
readonly internalType: "bool";
|
|
369
|
-
readonly name: "";
|
|
370
|
-
readonly type: "bool";
|
|
371
|
-
}];
|
|
372
|
-
readonly stateMutability: "nonpayable";
|
|
373
|
-
readonly type: "function";
|
|
495
|
+
readonly name: "Approval";
|
|
496
|
+
readonly type: "event";
|
|
374
497
|
}, {
|
|
498
|
+
readonly anonymous: false;
|
|
375
499
|
readonly inputs: readonly [{
|
|
376
|
-
readonly
|
|
500
|
+
readonly indexed: true;
|
|
377
501
|
readonly name: "from";
|
|
378
502
|
readonly type: "address";
|
|
379
503
|
}, {
|
|
380
|
-
readonly
|
|
504
|
+
readonly indexed: true;
|
|
381
505
|
readonly name: "to";
|
|
382
506
|
readonly type: "address";
|
|
383
507
|
}, {
|
|
384
|
-
readonly
|
|
508
|
+
readonly indexed: false;
|
|
385
509
|
readonly name: "value";
|
|
386
510
|
readonly type: "uint256";
|
|
387
511
|
}];
|
|
388
|
-
readonly name: "
|
|
389
|
-
readonly
|
|
390
|
-
readonly internalType: "bool";
|
|
391
|
-
readonly name: "";
|
|
392
|
-
readonly type: "bool";
|
|
393
|
-
}];
|
|
394
|
-
readonly stateMutability: "nonpayable";
|
|
395
|
-
readonly type: "function";
|
|
512
|
+
readonly name: "Transfer";
|
|
513
|
+
readonly type: "event";
|
|
396
514
|
}, {
|
|
397
|
-
readonly
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
readonly
|
|
403
|
-
readonly
|
|
404
|
-
readonly
|
|
405
|
-
readonly type: "
|
|
515
|
+
readonly anonymous: false;
|
|
516
|
+
readonly inputs: readonly [];
|
|
517
|
+
readonly name: "Pause";
|
|
518
|
+
readonly type: "event";
|
|
519
|
+
}, {
|
|
520
|
+
readonly anonymous: false;
|
|
521
|
+
readonly inputs: readonly [];
|
|
522
|
+
readonly name: "Unpause";
|
|
523
|
+
readonly type: "event";
|
|
406
524
|
}];
|
|
407
525
|
/**
|
|
408
|
-
* Type-safe ABI for
|
|
526
|
+
* Type-safe ABI for TetherToken_json
|
|
409
527
|
*/
|
|
410
|
-
export type
|
|
528
|
+
export type TetherToken_jsonAbi = typeof TetherToken_jsonAbi;
|
|
411
529
|
/**
|
|
412
|
-
* Contract instance type for
|
|
530
|
+
* Contract instance type for TetherToken_json
|
|
413
531
|
*/
|
|
414
|
-
export type
|
|
532
|
+
export type TetherToken_jsonContract = any;
|
|
415
533
|
/**
|
|
416
|
-
*
|
|
534
|
+
* TetherToken_json Contract Class
|
|
417
535
|
*
|
|
418
536
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
419
537
|
*
|
|
@@ -421,12 +539,12 @@ export type ERC20Token_jsonContract = any;
|
|
|
421
539
|
* ```typescript
|
|
422
540
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
423
541
|
* import { mainnet } from 'viem/chains';
|
|
424
|
-
* import {
|
|
542
|
+
* import { TetherToken_json } from 'TetherToken_json';
|
|
425
543
|
*
|
|
426
544
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
427
545
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
428
546
|
*
|
|
429
|
-
* const contract = new
|
|
547
|
+
* const contract = new TetherToken_json('0x...', { publicClient, walletClient });
|
|
430
548
|
*
|
|
431
549
|
* // Read functions
|
|
432
550
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -444,7 +562,7 @@ export type ERC20Token_jsonContract = any;
|
|
|
444
562
|
* });
|
|
445
563
|
* ```
|
|
446
564
|
*/
|
|
447
|
-
export declare class
|
|
565
|
+
export declare class TetherToken_json {
|
|
448
566
|
private contract;
|
|
449
567
|
private contractAddress;
|
|
450
568
|
private publicClient;
|
|
@@ -459,27 +577,72 @@ export declare class ERC20Token_json {
|
|
|
459
577
|
/**
|
|
460
578
|
* Get the underlying viem contract instance
|
|
461
579
|
*/
|
|
462
|
-
getContract():
|
|
580
|
+
getContract(): TetherToken_jsonContract;
|
|
463
581
|
/**
|
|
464
|
-
*
|
|
582
|
+
* name
|
|
465
583
|
* view
|
|
466
584
|
*/
|
|
467
|
-
|
|
585
|
+
name(): Promise<string>;
|
|
468
586
|
/**
|
|
469
|
-
*
|
|
587
|
+
* deprecated
|
|
588
|
+
* view
|
|
589
|
+
*/
|
|
590
|
+
deprecated(): Promise<boolean>;
|
|
591
|
+
/**
|
|
592
|
+
* totalSupply
|
|
593
|
+
* view
|
|
594
|
+
*/
|
|
595
|
+
totalSupply(): Promise<bigint>;
|
|
596
|
+
/**
|
|
597
|
+
* upgradedAddress
|
|
598
|
+
* view
|
|
599
|
+
*/
|
|
600
|
+
upgradedAddress(): Promise<`0x${string}`>;
|
|
601
|
+
/**
|
|
602
|
+
* balances
|
|
470
603
|
* view
|
|
471
604
|
*/
|
|
472
|
-
|
|
605
|
+
balances(arg0: `0x${string}`): Promise<bigint>;
|
|
473
606
|
/**
|
|
474
607
|
* decimals
|
|
475
608
|
* view
|
|
476
609
|
*/
|
|
477
610
|
decimals(): Promise<bigint>;
|
|
478
611
|
/**
|
|
479
|
-
*
|
|
612
|
+
* maximumFee
|
|
480
613
|
* view
|
|
481
614
|
*/
|
|
482
|
-
|
|
615
|
+
maximumFee(): Promise<bigint>;
|
|
616
|
+
/**
|
|
617
|
+
* _totalSupply
|
|
618
|
+
* view
|
|
619
|
+
*/
|
|
620
|
+
_totalSupply(): Promise<bigint>;
|
|
621
|
+
/**
|
|
622
|
+
* getBlackListStatus
|
|
623
|
+
* view
|
|
624
|
+
*/
|
|
625
|
+
getBlackListStatus(_maker: `0x${string}`): Promise<boolean>;
|
|
626
|
+
/**
|
|
627
|
+
* allowed
|
|
628
|
+
* view
|
|
629
|
+
*/
|
|
630
|
+
allowed(arg0: `0x${string}`, arg1: `0x${string}`): Promise<bigint>;
|
|
631
|
+
/**
|
|
632
|
+
* paused
|
|
633
|
+
* view
|
|
634
|
+
*/
|
|
635
|
+
paused(): Promise<boolean>;
|
|
636
|
+
/**
|
|
637
|
+
* balanceOf
|
|
638
|
+
* view
|
|
639
|
+
*/
|
|
640
|
+
balanceOf(who: `0x${string}`): Promise<bigint>;
|
|
641
|
+
/**
|
|
642
|
+
* getOwner
|
|
643
|
+
* view
|
|
644
|
+
*/
|
|
645
|
+
getOwner(): Promise<`0x${string}`>;
|
|
483
646
|
/**
|
|
484
647
|
* owner
|
|
485
648
|
* view
|
|
@@ -491,16 +654,48 @@ export declare class ERC20Token_json {
|
|
|
491
654
|
*/
|
|
492
655
|
symbol(): Promise<string>;
|
|
493
656
|
/**
|
|
494
|
-
*
|
|
657
|
+
* allowance
|
|
495
658
|
* view
|
|
496
659
|
*/
|
|
497
|
-
|
|
660
|
+
allowance(_owner: `0x${string}`, _spender: `0x${string}`): Promise<bigint>;
|
|
661
|
+
/**
|
|
662
|
+
* basisPointsRate
|
|
663
|
+
* view
|
|
664
|
+
*/
|
|
665
|
+
basisPointsRate(): Promise<bigint>;
|
|
666
|
+
/**
|
|
667
|
+
* isBlackListed
|
|
668
|
+
* view
|
|
669
|
+
*/
|
|
670
|
+
isBlackListed(arg0: `0x${string}`): Promise<boolean>;
|
|
671
|
+
/**
|
|
672
|
+
* MAX_UINT
|
|
673
|
+
* view
|
|
674
|
+
*/
|
|
675
|
+
MAX_UINT(): Promise<bigint>;
|
|
676
|
+
/**
|
|
677
|
+
* deprecate
|
|
678
|
+
* nonpayable
|
|
679
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
680
|
+
*/
|
|
681
|
+
deprecate(_upgradedAddress: `0x${string}`, options?: {
|
|
682
|
+
accessList?: import('viem').AccessList;
|
|
683
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
684
|
+
chain?: import('viem').Chain | null;
|
|
685
|
+
dataSuffix?: `0x${string}`;
|
|
686
|
+
gas?: bigint;
|
|
687
|
+
gasPrice?: bigint;
|
|
688
|
+
maxFeePerGas?: bigint;
|
|
689
|
+
maxPriorityFeePerGas?: bigint;
|
|
690
|
+
nonce?: number;
|
|
691
|
+
value?: bigint;
|
|
692
|
+
}): Promise<`0x${string}`>;
|
|
498
693
|
/**
|
|
499
694
|
* approve
|
|
500
695
|
* nonpayable
|
|
501
696
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
502
697
|
*/
|
|
503
|
-
approve(
|
|
698
|
+
approve(_spender: `0x${string}`, _value: bigint, options?: {
|
|
504
699
|
accessList?: import('viem').AccessList;
|
|
505
700
|
authorizationList?: import('viem').AuthorizationList;
|
|
506
701
|
chain?: import('viem').Chain | null;
|
|
@@ -513,11 +708,11 @@ export declare class ERC20Token_json {
|
|
|
513
708
|
value?: bigint;
|
|
514
709
|
}): Promise<`0x${string}`>;
|
|
515
710
|
/**
|
|
516
|
-
*
|
|
711
|
+
* addBlackList
|
|
517
712
|
* nonpayable
|
|
518
713
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
519
714
|
*/
|
|
520
|
-
|
|
715
|
+
addBlackList(_evilUser: `0x${string}`, options?: {
|
|
521
716
|
accessList?: import('viem').AccessList;
|
|
522
717
|
authorizationList?: import('viem').AuthorizationList;
|
|
523
718
|
chain?: import('viem').Chain | null;
|
|
@@ -530,11 +725,11 @@ export declare class ERC20Token_json {
|
|
|
530
725
|
value?: bigint;
|
|
531
726
|
}): Promise<`0x${string}`>;
|
|
532
727
|
/**
|
|
533
|
-
*
|
|
728
|
+
* transferFrom
|
|
534
729
|
* nonpayable
|
|
535
730
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
536
731
|
*/
|
|
537
|
-
|
|
732
|
+
transferFrom(_from: `0x${string}`, _to: `0x${string}`, _value: bigint, options?: {
|
|
538
733
|
accessList?: import('viem').AccessList;
|
|
539
734
|
authorizationList?: import('viem').AuthorizationList;
|
|
540
735
|
chain?: import('viem').Chain | null;
|
|
@@ -547,11 +742,11 @@ export declare class ERC20Token_json {
|
|
|
547
742
|
value?: bigint;
|
|
548
743
|
}): Promise<`0x${string}`>;
|
|
549
744
|
/**
|
|
550
|
-
*
|
|
745
|
+
* unpause
|
|
551
746
|
* nonpayable
|
|
552
747
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
553
748
|
*/
|
|
554
|
-
|
|
749
|
+
unpause(options?: {
|
|
555
750
|
accessList?: import('viem').AccessList;
|
|
556
751
|
authorizationList?: import('viem').AuthorizationList;
|
|
557
752
|
chain?: import('viem').Chain | null;
|
|
@@ -564,11 +759,11 @@ export declare class ERC20Token_json {
|
|
|
564
759
|
value?: bigint;
|
|
565
760
|
}): Promise<`0x${string}`>;
|
|
566
761
|
/**
|
|
567
|
-
*
|
|
762
|
+
* pause
|
|
568
763
|
* nonpayable
|
|
569
764
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
570
765
|
*/
|
|
571
|
-
|
|
766
|
+
pause(options?: {
|
|
572
767
|
accessList?: import('viem').AccessList;
|
|
573
768
|
authorizationList?: import('viem').AuthorizationList;
|
|
574
769
|
chain?: import('viem').Chain | null;
|
|
@@ -581,11 +776,11 @@ export declare class ERC20Token_json {
|
|
|
581
776
|
value?: bigint;
|
|
582
777
|
}): Promise<`0x${string}`>;
|
|
583
778
|
/**
|
|
584
|
-
*
|
|
779
|
+
* transfer
|
|
585
780
|
* nonpayable
|
|
586
781
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
587
782
|
*/
|
|
588
|
-
|
|
783
|
+
transfer(_to: `0x${string}`, _value: bigint, options?: {
|
|
589
784
|
accessList?: import('viem').AccessList;
|
|
590
785
|
authorizationList?: import('viem').AuthorizationList;
|
|
591
786
|
chain?: import('viem').Chain | null;
|
|
@@ -598,11 +793,11 @@ export declare class ERC20Token_json {
|
|
|
598
793
|
value?: bigint;
|
|
599
794
|
}): Promise<`0x${string}`>;
|
|
600
795
|
/**
|
|
601
|
-
*
|
|
796
|
+
* setParams
|
|
602
797
|
* nonpayable
|
|
603
798
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
604
799
|
*/
|
|
605
|
-
|
|
800
|
+
setParams(newBasisPoints: bigint, newMaxFee: bigint, options?: {
|
|
606
801
|
accessList?: import('viem').AccessList;
|
|
607
802
|
authorizationList?: import('viem').AuthorizationList;
|
|
608
803
|
chain?: import('viem').Chain | null;
|
|
@@ -615,11 +810,11 @@ export declare class ERC20Token_json {
|
|
|
615
810
|
value?: bigint;
|
|
616
811
|
}): Promise<`0x${string}`>;
|
|
617
812
|
/**
|
|
618
|
-
*
|
|
813
|
+
* issue
|
|
619
814
|
* nonpayable
|
|
620
815
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
621
816
|
*/
|
|
622
|
-
|
|
817
|
+
issue(amount: bigint, options?: {
|
|
623
818
|
accessList?: import('viem').AccessList;
|
|
624
819
|
authorizationList?: import('viem').AuthorizationList;
|
|
625
820
|
chain?: import('viem').Chain | null;
|
|
@@ -632,11 +827,28 @@ export declare class ERC20Token_json {
|
|
|
632
827
|
value?: bigint;
|
|
633
828
|
}): Promise<`0x${string}`>;
|
|
634
829
|
/**
|
|
635
|
-
*
|
|
830
|
+
* redeem
|
|
831
|
+
* nonpayable
|
|
832
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
833
|
+
*/
|
|
834
|
+
redeem(amount: bigint, options?: {
|
|
835
|
+
accessList?: import('viem').AccessList;
|
|
836
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
837
|
+
chain?: import('viem').Chain | null;
|
|
838
|
+
dataSuffix?: `0x${string}`;
|
|
839
|
+
gas?: bigint;
|
|
840
|
+
gasPrice?: bigint;
|
|
841
|
+
maxFeePerGas?: bigint;
|
|
842
|
+
maxPriorityFeePerGas?: bigint;
|
|
843
|
+
nonce?: number;
|
|
844
|
+
value?: bigint;
|
|
845
|
+
}): Promise<`0x${string}`>;
|
|
846
|
+
/**
|
|
847
|
+
* removeBlackList
|
|
636
848
|
* nonpayable
|
|
637
849
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
638
850
|
*/
|
|
639
|
-
|
|
851
|
+
removeBlackList(_clearedUser: `0x${string}`, options?: {
|
|
640
852
|
accessList?: import('viem').AccessList;
|
|
641
853
|
authorizationList?: import('viem').AuthorizationList;
|
|
642
854
|
chain?: import('viem').Chain | null;
|
|
@@ -665,6 +877,23 @@ export declare class ERC20Token_json {
|
|
|
665
877
|
nonce?: number;
|
|
666
878
|
value?: bigint;
|
|
667
879
|
}): Promise<`0x${string}`>;
|
|
880
|
+
/**
|
|
881
|
+
* destroyBlackFunds
|
|
882
|
+
* nonpayable
|
|
883
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
884
|
+
*/
|
|
885
|
+
destroyBlackFunds(_blackListedUser: `0x${string}`, options?: {
|
|
886
|
+
accessList?: import('viem').AccessList;
|
|
887
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
888
|
+
chain?: import('viem').Chain | null;
|
|
889
|
+
dataSuffix?: `0x${string}`;
|
|
890
|
+
gas?: bigint;
|
|
891
|
+
gasPrice?: bigint;
|
|
892
|
+
maxFeePerGas?: bigint;
|
|
893
|
+
maxPriorityFeePerGas?: bigint;
|
|
894
|
+
nonce?: number;
|
|
895
|
+
value?: bigint;
|
|
896
|
+
}): Promise<`0x${string}`>;
|
|
668
897
|
/**
|
|
669
898
|
* Simulate contract write operations (dry-run without sending transaction)
|
|
670
899
|
*
|
|
@@ -674,12 +903,29 @@ export declare class ERC20Token_json {
|
|
|
674
903
|
* console.log('Would succeed:', result.result);
|
|
675
904
|
*/
|
|
676
905
|
get simulate(): {
|
|
906
|
+
/**
|
|
907
|
+
* Simulate deprecate
|
|
908
|
+
* Returns gas estimate and result without sending transaction
|
|
909
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
910
|
+
*/
|
|
911
|
+
deprecate(_upgradedAddress: `0x${string}`, options?: {
|
|
912
|
+
accessList?: import("viem").AccessList;
|
|
913
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
914
|
+
chain?: import("viem").Chain | null;
|
|
915
|
+
dataSuffix?: `0x${string}`;
|
|
916
|
+
gas?: bigint;
|
|
917
|
+
gasPrice?: bigint;
|
|
918
|
+
maxFeePerGas?: bigint;
|
|
919
|
+
maxPriorityFeePerGas?: bigint;
|
|
920
|
+
nonce?: number;
|
|
921
|
+
value?: bigint;
|
|
922
|
+
}): Promise<void>;
|
|
677
923
|
/**
|
|
678
924
|
* Simulate approve
|
|
679
925
|
* Returns gas estimate and result without sending transaction
|
|
680
926
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
681
927
|
*/
|
|
682
|
-
approve(
|
|
928
|
+
approve(_spender: `0x${string}`, _value: bigint, options?: {
|
|
683
929
|
accessList?: import("viem").AccessList;
|
|
684
930
|
authorizationList?: import("viem").AuthorizationList;
|
|
685
931
|
chain?: import("viem").Chain | null;
|
|
@@ -690,13 +936,13 @@ export declare class ERC20Token_json {
|
|
|
690
936
|
maxPriorityFeePerGas?: bigint;
|
|
691
937
|
nonce?: number;
|
|
692
938
|
value?: bigint;
|
|
693
|
-
}): Promise<
|
|
939
|
+
}): Promise<void>;
|
|
694
940
|
/**
|
|
695
|
-
* Simulate
|
|
941
|
+
* Simulate addBlackList
|
|
696
942
|
* Returns gas estimate and result without sending transaction
|
|
697
943
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
698
944
|
*/
|
|
699
|
-
|
|
945
|
+
addBlackList(_evilUser: `0x${string}`, options?: {
|
|
700
946
|
accessList?: import("viem").AccessList;
|
|
701
947
|
authorizationList?: import("viem").AuthorizationList;
|
|
702
948
|
chain?: import("viem").Chain | null;
|
|
@@ -709,11 +955,11 @@ export declare class ERC20Token_json {
|
|
|
709
955
|
value?: bigint;
|
|
710
956
|
}): Promise<void>;
|
|
711
957
|
/**
|
|
712
|
-
* Simulate
|
|
958
|
+
* Simulate transferFrom
|
|
713
959
|
* Returns gas estimate and result without sending transaction
|
|
714
960
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
715
961
|
*/
|
|
716
|
-
|
|
962
|
+
transferFrom(_from: `0x${string}`, _to: `0x${string}`, _value: bigint, options?: {
|
|
717
963
|
accessList?: import("viem").AccessList;
|
|
718
964
|
authorizationList?: import("viem").AuthorizationList;
|
|
719
965
|
chain?: import("viem").Chain | null;
|
|
@@ -726,11 +972,11 @@ export declare class ERC20Token_json {
|
|
|
726
972
|
value?: bigint;
|
|
727
973
|
}): Promise<void>;
|
|
728
974
|
/**
|
|
729
|
-
* Simulate
|
|
975
|
+
* Simulate unpause
|
|
730
976
|
* Returns gas estimate and result without sending transaction
|
|
731
977
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
732
978
|
*/
|
|
733
|
-
|
|
979
|
+
unpause(options?: {
|
|
734
980
|
accessList?: import("viem").AccessList;
|
|
735
981
|
authorizationList?: import("viem").AuthorizationList;
|
|
736
982
|
chain?: import("viem").Chain | null;
|
|
@@ -743,11 +989,11 @@ export declare class ERC20Token_json {
|
|
|
743
989
|
value?: bigint;
|
|
744
990
|
}): Promise<void>;
|
|
745
991
|
/**
|
|
746
|
-
* Simulate
|
|
992
|
+
* Simulate pause
|
|
747
993
|
* Returns gas estimate and result without sending transaction
|
|
748
994
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
749
995
|
*/
|
|
750
|
-
|
|
996
|
+
pause(options?: {
|
|
751
997
|
accessList?: import("viem").AccessList;
|
|
752
998
|
authorizationList?: import("viem").AuthorizationList;
|
|
753
999
|
chain?: import("viem").Chain | null;
|
|
@@ -760,11 +1006,11 @@ export declare class ERC20Token_json {
|
|
|
760
1006
|
value?: bigint;
|
|
761
1007
|
}): Promise<void>;
|
|
762
1008
|
/**
|
|
763
|
-
* Simulate
|
|
1009
|
+
* Simulate transfer
|
|
764
1010
|
* Returns gas estimate and result without sending transaction
|
|
765
1011
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
766
1012
|
*/
|
|
767
|
-
|
|
1013
|
+
transfer(_to: `0x${string}`, _value: bigint, options?: {
|
|
768
1014
|
accessList?: import("viem").AccessList;
|
|
769
1015
|
authorizationList?: import("viem").AuthorizationList;
|
|
770
1016
|
chain?: import("viem").Chain | null;
|
|
@@ -777,11 +1023,11 @@ export declare class ERC20Token_json {
|
|
|
777
1023
|
value?: bigint;
|
|
778
1024
|
}): Promise<void>;
|
|
779
1025
|
/**
|
|
780
|
-
* Simulate
|
|
1026
|
+
* Simulate setParams
|
|
781
1027
|
* Returns gas estimate and result without sending transaction
|
|
782
1028
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
783
1029
|
*/
|
|
784
|
-
|
|
1030
|
+
setParams(newBasisPoints: bigint, newMaxFee: bigint, options?: {
|
|
785
1031
|
accessList?: import("viem").AccessList;
|
|
786
1032
|
authorizationList?: import("viem").AuthorizationList;
|
|
787
1033
|
chain?: import("viem").Chain | null;
|
|
@@ -794,11 +1040,11 @@ export declare class ERC20Token_json {
|
|
|
794
1040
|
value?: bigint;
|
|
795
1041
|
}): Promise<void>;
|
|
796
1042
|
/**
|
|
797
|
-
* Simulate
|
|
1043
|
+
* Simulate issue
|
|
798
1044
|
* Returns gas estimate and result without sending transaction
|
|
799
1045
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
800
1046
|
*/
|
|
801
|
-
|
|
1047
|
+
issue(amount: bigint, options?: {
|
|
802
1048
|
accessList?: import("viem").AccessList;
|
|
803
1049
|
authorizationList?: import("viem").AuthorizationList;
|
|
804
1050
|
chain?: import("viem").Chain | null;
|
|
@@ -809,13 +1055,13 @@ export declare class ERC20Token_json {
|
|
|
809
1055
|
maxPriorityFeePerGas?: bigint;
|
|
810
1056
|
nonce?: number;
|
|
811
1057
|
value?: bigint;
|
|
812
|
-
}): Promise<
|
|
1058
|
+
}): Promise<void>;
|
|
813
1059
|
/**
|
|
814
|
-
* Simulate
|
|
1060
|
+
* Simulate redeem
|
|
815
1061
|
* Returns gas estimate and result without sending transaction
|
|
816
1062
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
817
1063
|
*/
|
|
818
|
-
|
|
1064
|
+
redeem(amount: bigint, options?: {
|
|
819
1065
|
accessList?: import("viem").AccessList;
|
|
820
1066
|
authorizationList?: import("viem").AuthorizationList;
|
|
821
1067
|
chain?: import("viem").Chain | null;
|
|
@@ -826,7 +1072,24 @@ export declare class ERC20Token_json {
|
|
|
826
1072
|
maxPriorityFeePerGas?: bigint;
|
|
827
1073
|
nonce?: number;
|
|
828
1074
|
value?: bigint;
|
|
829
|
-
}): Promise<
|
|
1075
|
+
}): Promise<void>;
|
|
1076
|
+
/**
|
|
1077
|
+
* Simulate removeBlackList
|
|
1078
|
+
* Returns gas estimate and result without sending transaction
|
|
1079
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1080
|
+
*/
|
|
1081
|
+
removeBlackList(_clearedUser: `0x${string}`, options?: {
|
|
1082
|
+
accessList?: import("viem").AccessList;
|
|
1083
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1084
|
+
chain?: import("viem").Chain | null;
|
|
1085
|
+
dataSuffix?: `0x${string}`;
|
|
1086
|
+
gas?: bigint;
|
|
1087
|
+
gasPrice?: bigint;
|
|
1088
|
+
maxFeePerGas?: bigint;
|
|
1089
|
+
maxPriorityFeePerGas?: bigint;
|
|
1090
|
+
nonce?: number;
|
|
1091
|
+
value?: bigint;
|
|
1092
|
+
}): Promise<void>;
|
|
830
1093
|
/**
|
|
831
1094
|
* Simulate transferOwnership
|
|
832
1095
|
* Returns gas estimate and result without sending transaction
|
|
@@ -844,6 +1107,23 @@ export declare class ERC20Token_json {
|
|
|
844
1107
|
nonce?: number;
|
|
845
1108
|
value?: bigint;
|
|
846
1109
|
}): Promise<void>;
|
|
1110
|
+
/**
|
|
1111
|
+
* Simulate destroyBlackFunds
|
|
1112
|
+
* Returns gas estimate and result without sending transaction
|
|
1113
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1114
|
+
*/
|
|
1115
|
+
destroyBlackFunds(_blackListedUser: `0x${string}`, options?: {
|
|
1116
|
+
accessList?: import("viem").AccessList;
|
|
1117
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1118
|
+
chain?: import("viem").Chain | null;
|
|
1119
|
+
dataSuffix?: `0x${string}`;
|
|
1120
|
+
gas?: bigint;
|
|
1121
|
+
gasPrice?: bigint;
|
|
1122
|
+
maxFeePerGas?: bigint;
|
|
1123
|
+
maxPriorityFeePerGas?: bigint;
|
|
1124
|
+
nonce?: number;
|
|
1125
|
+
value?: bigint;
|
|
1126
|
+
}): Promise<void>;
|
|
847
1127
|
};
|
|
848
1128
|
/**
|
|
849
1129
|
* Watch contract events
|
|
@@ -859,59 +1139,84 @@ export declare class ERC20Token_json {
|
|
|
859
1139
|
*/
|
|
860
1140
|
get watch(): {
|
|
861
1141
|
/**
|
|
862
|
-
* Watch
|
|
1142
|
+
* Watch Issue events
|
|
863
1143
|
* @param callback Function to call when event is emitted
|
|
864
1144
|
* @param filter Optional filter for indexed parameters
|
|
865
1145
|
* @returns Unwatch function to stop listening
|
|
866
1146
|
*/
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
value: bigint;
|
|
871
|
-
}) => void, filter?: {
|
|
872
|
-
owner: `0x${string}`;
|
|
873
|
-
spender: `0x${string}`;
|
|
874
|
-
}) => () => void;
|
|
1147
|
+
Issue: (callback: (event: {
|
|
1148
|
+
amount: bigint;
|
|
1149
|
+
}) => void) => () => void;
|
|
875
1150
|
/**
|
|
876
|
-
* Watch
|
|
1151
|
+
* Watch Redeem events
|
|
877
1152
|
* @param callback Function to call when event is emitted
|
|
878
1153
|
* @param filter Optional filter for indexed parameters
|
|
879
1154
|
* @returns Unwatch function to stop listening
|
|
880
1155
|
*/
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
1156
|
+
Redeem: (callback: (event: {
|
|
1157
|
+
amount: bigint;
|
|
1158
|
+
}) => void) => () => void;
|
|
1159
|
+
/**
|
|
1160
|
+
* Watch Deprecate events
|
|
1161
|
+
* @param callback Function to call when event is emitted
|
|
1162
|
+
* @param filter Optional filter for indexed parameters
|
|
1163
|
+
* @returns Unwatch function to stop listening
|
|
1164
|
+
*/
|
|
1165
|
+
Deprecate: (callback: (event: {
|
|
1166
|
+
newAddress: `0x${string}`;
|
|
1167
|
+
}) => void) => () => void;
|
|
1168
|
+
/**
|
|
1169
|
+
* Watch Params events
|
|
1170
|
+
* @param callback Function to call when event is emitted
|
|
1171
|
+
* @param filter Optional filter for indexed parameters
|
|
1172
|
+
* @returns Unwatch function to stop listening
|
|
1173
|
+
*/
|
|
1174
|
+
Params: (callback: (event: {
|
|
1175
|
+
feeBasisPoints: bigint;
|
|
1176
|
+
maxFee: bigint;
|
|
1177
|
+
}) => void) => () => void;
|
|
888
1178
|
/**
|
|
889
|
-
* Watch
|
|
1179
|
+
* Watch DestroyedBlackFunds events
|
|
890
1180
|
* @param callback Function to call when event is emitted
|
|
891
1181
|
* @param filter Optional filter for indexed parameters
|
|
892
1182
|
* @returns Unwatch function to stop listening
|
|
893
1183
|
*/
|
|
894
|
-
|
|
895
|
-
|
|
1184
|
+
DestroyedBlackFunds: (callback: (event: {
|
|
1185
|
+
_blackListedUser: `0x${string}`;
|
|
1186
|
+
_balance: bigint;
|
|
896
1187
|
}) => void) => () => void;
|
|
897
1188
|
/**
|
|
898
|
-
* Watch
|
|
1189
|
+
* Watch AddedBlackList events
|
|
899
1190
|
* @param callback Function to call when event is emitted
|
|
900
1191
|
* @param filter Optional filter for indexed parameters
|
|
901
1192
|
* @returns Unwatch function to stop listening
|
|
902
1193
|
*/
|
|
903
|
-
|
|
904
|
-
|
|
1194
|
+
AddedBlackList: (callback: (event: {
|
|
1195
|
+
_user: `0x${string}`;
|
|
905
1196
|
}) => void) => () => void;
|
|
906
1197
|
/**
|
|
907
|
-
* Watch
|
|
1198
|
+
* Watch RemovedBlackList events
|
|
908
1199
|
* @param callback Function to call when event is emitted
|
|
909
1200
|
* @param filter Optional filter for indexed parameters
|
|
910
1201
|
* @returns Unwatch function to stop listening
|
|
911
1202
|
*/
|
|
912
|
-
|
|
913
|
-
|
|
1203
|
+
RemovedBlackList: (callback: (event: {
|
|
1204
|
+
_user: `0x${string}`;
|
|
914
1205
|
}) => void) => () => void;
|
|
1206
|
+
/**
|
|
1207
|
+
* Watch Approval events
|
|
1208
|
+
* @param callback Function to call when event is emitted
|
|
1209
|
+
* @param filter Optional filter for indexed parameters
|
|
1210
|
+
* @returns Unwatch function to stop listening
|
|
1211
|
+
*/
|
|
1212
|
+
Approval: (callback: (event: {
|
|
1213
|
+
owner: `0x${string}`;
|
|
1214
|
+
spender: `0x${string}`;
|
|
1215
|
+
value: bigint;
|
|
1216
|
+
}) => void, filter?: {
|
|
1217
|
+
owner: `0x${string}`;
|
|
1218
|
+
spender: `0x${string}`;
|
|
1219
|
+
}) => () => void;
|
|
915
1220
|
/**
|
|
916
1221
|
* Watch Transfer events
|
|
917
1222
|
* @param callback Function to call when event is emitted
|
|
@@ -926,5 +1231,19 @@ export declare class ERC20Token_json {
|
|
|
926
1231
|
from: `0x${string}`;
|
|
927
1232
|
to: `0x${string}`;
|
|
928
1233
|
}) => () => void;
|
|
1234
|
+
/**
|
|
1235
|
+
* Watch Pause events
|
|
1236
|
+
* @param callback Function to call when event is emitted
|
|
1237
|
+
* @param filter Optional filter for indexed parameters
|
|
1238
|
+
* @returns Unwatch function to stop listening
|
|
1239
|
+
*/
|
|
1240
|
+
Pause: (callback: (event: {}) => void) => () => void;
|
|
1241
|
+
/**
|
|
1242
|
+
* Watch Unpause events
|
|
1243
|
+
* @param callback Function to call when event is emitted
|
|
1244
|
+
* @param filter Optional filter for indexed parameters
|
|
1245
|
+
* @returns Unwatch function to stop listening
|
|
1246
|
+
*/
|
|
1247
|
+
Unpause: (callback: (event: {}) => void) => () => void;
|
|
929
1248
|
};
|
|
930
1249
|
}
|