@gitmyabi/erc20 1.0.0 → 1.0.1
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 +4 -4
- package/contracts/{TaxableERC20_json.d.ts → TokenERC20.d.ts} +156 -457
- package/contracts/TokenERC20.js +589 -0
- package/contracts/TokenERC20.ts +760 -0
- package/contracts/index.d.ts +2 -2
- package/contracts/index.js +4 -4
- package/contracts/index.ts +2 -2
- package/package.json +4 -4
- package/contracts/TaxableERC20_json.js +0 -876
- package/contracts/TaxableERC20_json.ts +0 -1143
|
@@ -1,371 +1,241 @@
|
|
|
1
1
|
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* TokenERC20 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: "symbol_";
|
|
7
|
+
export declare const TokenERC20Abi: 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: "uint8";
|
|
18
|
-
readonly name: "decimals_";
|
|
19
|
-
readonly type: "uint8";
|
|
20
|
-
}, {
|
|
21
|
-
readonly internalType: "uint256";
|
|
22
|
-
readonly name: "initialBalance_";
|
|
23
|
-
readonly type: "uint256";
|
|
24
|
-
}, {
|
|
25
|
-
readonly internalType: "uint256";
|
|
26
|
-
readonly name: "taxFeePerMille_";
|
|
27
|
-
readonly type: "uint256";
|
|
28
|
-
}, {
|
|
29
|
-
readonly internalType: "address";
|
|
30
|
-
readonly name: "taxAddress_";
|
|
31
|
-
readonly type: "address";
|
|
32
|
-
}, {
|
|
33
|
-
readonly internalType: "bytes";
|
|
34
|
-
readonly name: "signature_";
|
|
35
|
-
readonly type: "bytes";
|
|
36
|
-
}, {
|
|
37
|
-
readonly internalType: "address payable";
|
|
38
|
-
readonly name: "feeReceiver_";
|
|
39
|
-
readonly type: "address";
|
|
40
14
|
}];
|
|
41
|
-
readonly
|
|
42
|
-
readonly
|
|
15
|
+
readonly payable: false;
|
|
16
|
+
readonly stateMutability: "view";
|
|
17
|
+
readonly type: "function";
|
|
43
18
|
}, {
|
|
44
|
-
readonly
|
|
19
|
+
readonly constant: false;
|
|
45
20
|
readonly inputs: readonly [{
|
|
46
|
-
readonly
|
|
47
|
-
readonly internalType: "address";
|
|
48
|
-
readonly name: "owner";
|
|
49
|
-
readonly type: "address";
|
|
50
|
-
}, {
|
|
51
|
-
readonly indexed: true;
|
|
52
|
-
readonly internalType: "address";
|
|
53
|
-
readonly name: "spender";
|
|
21
|
+
readonly name: "_spender";
|
|
54
22
|
readonly type: "address";
|
|
55
23
|
}, {
|
|
56
|
-
readonly
|
|
57
|
-
readonly internalType: "uint256";
|
|
58
|
-
readonly name: "value";
|
|
24
|
+
readonly name: "_value";
|
|
59
25
|
readonly type: "uint256";
|
|
60
26
|
}];
|
|
61
|
-
readonly name: "
|
|
62
|
-
readonly
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
readonly inputs: readonly [{
|
|
66
|
-
readonly indexed: true;
|
|
67
|
-
readonly internalType: "address";
|
|
68
|
-
readonly name: "previousOwner";
|
|
69
|
-
readonly type: "address";
|
|
70
|
-
}, {
|
|
71
|
-
readonly indexed: true;
|
|
72
|
-
readonly internalType: "address";
|
|
73
|
-
readonly name: "newOwner";
|
|
74
|
-
readonly type: "address";
|
|
75
|
-
}];
|
|
76
|
-
readonly name: "OwnershipTransferred";
|
|
77
|
-
readonly type: "event";
|
|
78
|
-
}, {
|
|
79
|
-
readonly anonymous: false;
|
|
80
|
-
readonly inputs: readonly [{
|
|
81
|
-
readonly indexed: true;
|
|
82
|
-
readonly internalType: "address";
|
|
83
|
-
readonly name: "from";
|
|
84
|
-
readonly type: "address";
|
|
85
|
-
}, {
|
|
86
|
-
readonly indexed: true;
|
|
87
|
-
readonly internalType: "address";
|
|
88
|
-
readonly name: "to";
|
|
89
|
-
readonly type: "address";
|
|
90
|
-
}, {
|
|
91
|
-
readonly indexed: false;
|
|
92
|
-
readonly internalType: "uint256";
|
|
93
|
-
readonly name: "value";
|
|
94
|
-
readonly type: "uint256";
|
|
27
|
+
readonly name: "approve";
|
|
28
|
+
readonly outputs: readonly [{
|
|
29
|
+
readonly name: "success";
|
|
30
|
+
readonly type: "bool";
|
|
95
31
|
}];
|
|
96
|
-
readonly
|
|
97
|
-
readonly
|
|
32
|
+
readonly payable: false;
|
|
33
|
+
readonly stateMutability: "nonpayable";
|
|
34
|
+
readonly type: "function";
|
|
98
35
|
}, {
|
|
99
|
-
readonly
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
readonly type: "address";
|
|
103
|
-
}, {
|
|
104
|
-
readonly internalType: "address";
|
|
105
|
-
readonly name: "spender";
|
|
106
|
-
readonly type: "address";
|
|
107
|
-
}];
|
|
108
|
-
readonly name: "allowance";
|
|
36
|
+
readonly constant: true;
|
|
37
|
+
readonly inputs: readonly [];
|
|
38
|
+
readonly name: "totalSupply";
|
|
109
39
|
readonly outputs: readonly [{
|
|
110
|
-
readonly internalType: "uint256";
|
|
111
40
|
readonly name: "";
|
|
112
41
|
readonly type: "uint256";
|
|
113
42
|
}];
|
|
43
|
+
readonly payable: false;
|
|
114
44
|
readonly stateMutability: "view";
|
|
115
45
|
readonly type: "function";
|
|
116
46
|
}, {
|
|
47
|
+
readonly constant: false;
|
|
117
48
|
readonly inputs: readonly [{
|
|
118
|
-
readonly
|
|
119
|
-
readonly name: "spender";
|
|
49
|
+
readonly name: "_from";
|
|
120
50
|
readonly type: "address";
|
|
121
51
|
}, {
|
|
122
|
-
readonly
|
|
123
|
-
readonly
|
|
52
|
+
readonly name: "_to";
|
|
53
|
+
readonly type: "address";
|
|
54
|
+
}, {
|
|
55
|
+
readonly name: "_value";
|
|
124
56
|
readonly type: "uint256";
|
|
125
57
|
}];
|
|
126
|
-
readonly name: "
|
|
58
|
+
readonly name: "transferFrom";
|
|
127
59
|
readonly outputs: readonly [{
|
|
128
|
-
readonly
|
|
129
|
-
readonly name: "";
|
|
60
|
+
readonly name: "success";
|
|
130
61
|
readonly type: "bool";
|
|
131
62
|
}];
|
|
63
|
+
readonly payable: false;
|
|
132
64
|
readonly stateMutability: "nonpayable";
|
|
133
65
|
readonly type: "function";
|
|
134
66
|
}, {
|
|
135
|
-
readonly
|
|
136
|
-
readonly internalType: "address";
|
|
137
|
-
readonly name: "account";
|
|
138
|
-
readonly type: "address";
|
|
139
|
-
}];
|
|
140
|
-
readonly name: "balanceOf";
|
|
141
|
-
readonly outputs: readonly [{
|
|
142
|
-
readonly internalType: "uint256";
|
|
143
|
-
readonly name: "";
|
|
144
|
-
readonly type: "uint256";
|
|
145
|
-
}];
|
|
146
|
-
readonly stateMutability: "view";
|
|
147
|
-
readonly type: "function";
|
|
148
|
-
}, {
|
|
67
|
+
readonly constant: true;
|
|
149
68
|
readonly inputs: readonly [];
|
|
150
69
|
readonly name: "decimals";
|
|
151
70
|
readonly outputs: readonly [{
|
|
152
|
-
readonly internalType: "uint8";
|
|
153
71
|
readonly name: "";
|
|
154
72
|
readonly type: "uint8";
|
|
155
73
|
}];
|
|
74
|
+
readonly payable: false;
|
|
156
75
|
readonly stateMutability: "view";
|
|
157
76
|
readonly type: "function";
|
|
158
77
|
}, {
|
|
78
|
+
readonly constant: false;
|
|
159
79
|
readonly inputs: readonly [{
|
|
160
|
-
readonly
|
|
161
|
-
readonly name: "spender";
|
|
162
|
-
readonly type: "address";
|
|
163
|
-
}, {
|
|
164
|
-
readonly internalType: "uint256";
|
|
165
|
-
readonly name: "subtractedValue";
|
|
80
|
+
readonly name: "_value";
|
|
166
81
|
readonly type: "uint256";
|
|
167
82
|
}];
|
|
168
|
-
readonly name: "
|
|
83
|
+
readonly name: "burn";
|
|
169
84
|
readonly outputs: readonly [{
|
|
170
|
-
readonly
|
|
171
|
-
readonly name: "";
|
|
85
|
+
readonly name: "success";
|
|
172
86
|
readonly type: "bool";
|
|
173
87
|
}];
|
|
88
|
+
readonly payable: false;
|
|
174
89
|
readonly stateMutability: "nonpayable";
|
|
175
90
|
readonly type: "function";
|
|
176
91
|
}, {
|
|
92
|
+
readonly constant: true;
|
|
177
93
|
readonly inputs: readonly [{
|
|
178
|
-
readonly
|
|
179
|
-
readonly name: "spender";
|
|
94
|
+
readonly name: "";
|
|
180
95
|
readonly type: "address";
|
|
181
|
-
}, {
|
|
182
|
-
readonly internalType: "uint256";
|
|
183
|
-
readonly name: "addedValue";
|
|
184
|
-
readonly type: "uint256";
|
|
185
96
|
}];
|
|
186
|
-
readonly name: "
|
|
97
|
+
readonly name: "balanceOf";
|
|
187
98
|
readonly outputs: readonly [{
|
|
188
|
-
readonly internalType: "bool";
|
|
189
99
|
readonly name: "";
|
|
190
|
-
readonly type: "
|
|
100
|
+
readonly type: "uint256";
|
|
191
101
|
}];
|
|
192
|
-
readonly
|
|
102
|
+
readonly payable: false;
|
|
103
|
+
readonly stateMutability: "view";
|
|
193
104
|
readonly type: "function";
|
|
194
105
|
}, {
|
|
106
|
+
readonly constant: false;
|
|
195
107
|
readonly inputs: readonly [{
|
|
196
|
-
readonly
|
|
197
|
-
readonly name: "account";
|
|
108
|
+
readonly name: "_from";
|
|
198
109
|
readonly type: "address";
|
|
110
|
+
}, {
|
|
111
|
+
readonly name: "_value";
|
|
112
|
+
readonly type: "uint256";
|
|
199
113
|
}];
|
|
200
|
-
readonly name: "
|
|
114
|
+
readonly name: "burnFrom";
|
|
201
115
|
readonly outputs: readonly [{
|
|
202
|
-
readonly
|
|
203
|
-
readonly name: "";
|
|
116
|
+
readonly name: "success";
|
|
204
117
|
readonly type: "bool";
|
|
205
118
|
}];
|
|
206
|
-
readonly
|
|
119
|
+
readonly payable: false;
|
|
120
|
+
readonly stateMutability: "nonpayable";
|
|
207
121
|
readonly type: "function";
|
|
208
122
|
}, {
|
|
123
|
+
readonly constant: true;
|
|
209
124
|
readonly inputs: readonly [];
|
|
210
|
-
readonly name: "
|
|
125
|
+
readonly name: "symbol";
|
|
211
126
|
readonly outputs: readonly [{
|
|
212
|
-
readonly internalType: "string";
|
|
213
127
|
readonly name: "";
|
|
214
128
|
readonly type: "string";
|
|
215
129
|
}];
|
|
130
|
+
readonly payable: false;
|
|
216
131
|
readonly stateMutability: "view";
|
|
217
132
|
readonly type: "function";
|
|
218
133
|
}, {
|
|
219
|
-
readonly
|
|
220
|
-
readonly name: "owner";
|
|
221
|
-
readonly outputs: readonly [{
|
|
222
|
-
readonly internalType: "address";
|
|
223
|
-
readonly name: "";
|
|
224
|
-
readonly type: "address";
|
|
225
|
-
}];
|
|
226
|
-
readonly stateMutability: "view";
|
|
227
|
-
readonly type: "function";
|
|
228
|
-
}, {
|
|
229
|
-
readonly inputs: readonly [];
|
|
230
|
-
readonly name: "renounceOwnership";
|
|
231
|
-
readonly outputs: readonly [];
|
|
232
|
-
readonly stateMutability: "nonpayable";
|
|
233
|
-
readonly type: "function";
|
|
234
|
-
}, {
|
|
134
|
+
readonly constant: false;
|
|
235
135
|
readonly inputs: readonly [{
|
|
236
|
-
readonly
|
|
237
|
-
readonly name: "account";
|
|
136
|
+
readonly name: "_to";
|
|
238
137
|
readonly type: "address";
|
|
239
138
|
}, {
|
|
240
|
-
readonly
|
|
241
|
-
readonly
|
|
242
|
-
readonly type: "bool";
|
|
139
|
+
readonly name: "_value";
|
|
140
|
+
readonly type: "uint256";
|
|
243
141
|
}];
|
|
244
|
-
readonly name: "
|
|
142
|
+
readonly name: "transfer";
|
|
245
143
|
readonly outputs: readonly [];
|
|
144
|
+
readonly payable: false;
|
|
246
145
|
readonly stateMutability: "nonpayable";
|
|
247
146
|
readonly type: "function";
|
|
248
147
|
}, {
|
|
148
|
+
readonly constant: false;
|
|
249
149
|
readonly inputs: readonly [{
|
|
250
|
-
readonly
|
|
251
|
-
readonly name: "taxAddress";
|
|
150
|
+
readonly name: "_spender";
|
|
252
151
|
readonly type: "address";
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
readonly outputs: readonly [];
|
|
256
|
-
readonly stateMutability: "nonpayable";
|
|
257
|
-
readonly type: "function";
|
|
258
|
-
}, {
|
|
259
|
-
readonly inputs: readonly [{
|
|
260
|
-
readonly internalType: "uint256";
|
|
261
|
-
readonly name: "taxFeePerMille";
|
|
152
|
+
}, {
|
|
153
|
+
readonly name: "_value";
|
|
262
154
|
readonly type: "uint256";
|
|
155
|
+
}, {
|
|
156
|
+
readonly name: "_extraData";
|
|
157
|
+
readonly type: "bytes";
|
|
263
158
|
}];
|
|
264
|
-
readonly name: "
|
|
265
|
-
readonly outputs: readonly [];
|
|
266
|
-
readonly stateMutability: "nonpayable";
|
|
267
|
-
readonly type: "function";
|
|
268
|
-
}, {
|
|
269
|
-
readonly inputs: readonly [];
|
|
270
|
-
readonly name: "symbol";
|
|
159
|
+
readonly name: "approveAndCall";
|
|
271
160
|
readonly outputs: readonly [{
|
|
272
|
-
readonly
|
|
273
|
-
readonly
|
|
274
|
-
readonly type: "string";
|
|
161
|
+
readonly name: "success";
|
|
162
|
+
readonly type: "bool";
|
|
275
163
|
}];
|
|
276
|
-
readonly
|
|
164
|
+
readonly payable: false;
|
|
165
|
+
readonly stateMutability: "nonpayable";
|
|
277
166
|
readonly type: "function";
|
|
278
167
|
}, {
|
|
279
|
-
readonly
|
|
280
|
-
readonly
|
|
281
|
-
readonly outputs: readonly [{
|
|
282
|
-
readonly internalType: "address";
|
|
168
|
+
readonly constant: true;
|
|
169
|
+
readonly inputs: readonly [{
|
|
283
170
|
readonly name: "";
|
|
284
171
|
readonly type: "address";
|
|
285
|
-
}
|
|
286
|
-
readonly stateMutability: "view";
|
|
287
|
-
readonly type: "function";
|
|
288
|
-
}, {
|
|
289
|
-
readonly inputs: readonly [];
|
|
290
|
-
readonly name: "taxFeePerMille";
|
|
291
|
-
readonly outputs: readonly [{
|
|
292
|
-
readonly internalType: "uint256";
|
|
172
|
+
}, {
|
|
293
173
|
readonly name: "";
|
|
294
|
-
readonly type: "
|
|
174
|
+
readonly type: "address";
|
|
295
175
|
}];
|
|
296
|
-
readonly
|
|
297
|
-
readonly type: "function";
|
|
298
|
-
}, {
|
|
299
|
-
readonly inputs: readonly [];
|
|
300
|
-
readonly name: "totalSupply";
|
|
176
|
+
readonly name: "allowance";
|
|
301
177
|
readonly outputs: readonly [{
|
|
302
|
-
readonly internalType: "uint256";
|
|
303
178
|
readonly name: "";
|
|
304
179
|
readonly type: "uint256";
|
|
305
180
|
}];
|
|
181
|
+
readonly payable: false;
|
|
306
182
|
readonly stateMutability: "view";
|
|
307
183
|
readonly type: "function";
|
|
308
184
|
}, {
|
|
309
185
|
readonly inputs: readonly [{
|
|
310
|
-
readonly
|
|
311
|
-
readonly name: "to";
|
|
312
|
-
readonly type: "address";
|
|
313
|
-
}, {
|
|
314
|
-
readonly internalType: "uint256";
|
|
315
|
-
readonly name: "amount";
|
|
186
|
+
readonly name: "initialSupply";
|
|
316
187
|
readonly type: "uint256";
|
|
188
|
+
}, {
|
|
189
|
+
readonly name: "tokenName";
|
|
190
|
+
readonly type: "string";
|
|
191
|
+
}, {
|
|
192
|
+
readonly name: "tokenSymbol";
|
|
193
|
+
readonly type: "string";
|
|
317
194
|
}];
|
|
318
|
-
readonly
|
|
319
|
-
readonly outputs: readonly [{
|
|
320
|
-
readonly internalType: "bool";
|
|
321
|
-
readonly name: "";
|
|
322
|
-
readonly type: "bool";
|
|
323
|
-
}];
|
|
195
|
+
readonly payable: false;
|
|
324
196
|
readonly stateMutability: "nonpayable";
|
|
325
|
-
readonly type: "
|
|
197
|
+
readonly type: "constructor";
|
|
326
198
|
}, {
|
|
199
|
+
readonly anonymous: false;
|
|
327
200
|
readonly inputs: readonly [{
|
|
328
|
-
readonly
|
|
201
|
+
readonly indexed: true;
|
|
329
202
|
readonly name: "from";
|
|
330
203
|
readonly type: "address";
|
|
331
204
|
}, {
|
|
332
|
-
readonly
|
|
205
|
+
readonly indexed: true;
|
|
333
206
|
readonly name: "to";
|
|
334
207
|
readonly type: "address";
|
|
335
208
|
}, {
|
|
336
|
-
readonly
|
|
337
|
-
readonly name: "
|
|
209
|
+
readonly indexed: false;
|
|
210
|
+
readonly name: "value";
|
|
338
211
|
readonly type: "uint256";
|
|
339
212
|
}];
|
|
340
|
-
readonly name: "
|
|
341
|
-
readonly
|
|
342
|
-
readonly internalType: "bool";
|
|
343
|
-
readonly name: "";
|
|
344
|
-
readonly type: "bool";
|
|
345
|
-
}];
|
|
346
|
-
readonly stateMutability: "nonpayable";
|
|
347
|
-
readonly type: "function";
|
|
213
|
+
readonly name: "Transfer";
|
|
214
|
+
readonly type: "event";
|
|
348
215
|
}, {
|
|
216
|
+
readonly anonymous: false;
|
|
349
217
|
readonly inputs: readonly [{
|
|
350
|
-
readonly
|
|
351
|
-
readonly name: "
|
|
218
|
+
readonly indexed: true;
|
|
219
|
+
readonly name: "from";
|
|
352
220
|
readonly type: "address";
|
|
221
|
+
}, {
|
|
222
|
+
readonly indexed: false;
|
|
223
|
+
readonly name: "value";
|
|
224
|
+
readonly type: "uint256";
|
|
353
225
|
}];
|
|
354
|
-
readonly name: "
|
|
355
|
-
readonly
|
|
356
|
-
readonly stateMutability: "nonpayable";
|
|
357
|
-
readonly type: "function";
|
|
226
|
+
readonly name: "Burn";
|
|
227
|
+
readonly type: "event";
|
|
358
228
|
}];
|
|
359
229
|
/**
|
|
360
|
-
* Type-safe ABI for
|
|
230
|
+
* Type-safe ABI for TokenERC20
|
|
361
231
|
*/
|
|
362
|
-
export type
|
|
232
|
+
export type TokenERC20Abi = typeof TokenERC20Abi;
|
|
363
233
|
/**
|
|
364
|
-
* Contract instance type for
|
|
234
|
+
* Contract instance type for TokenERC20
|
|
365
235
|
*/
|
|
366
|
-
export type
|
|
236
|
+
export type TokenERC20Contract = any;
|
|
367
237
|
/**
|
|
368
|
-
*
|
|
238
|
+
* TokenERC20 Contract Class
|
|
369
239
|
*
|
|
370
240
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
371
241
|
*
|
|
@@ -373,12 +243,12 @@ export type TaxableERC20_jsonContract = any;
|
|
|
373
243
|
* ```typescript
|
|
374
244
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
375
245
|
* import { mainnet } from 'viem/chains';
|
|
376
|
-
* import {
|
|
246
|
+
* import { TokenERC20 } from 'TokenERC20';
|
|
377
247
|
*
|
|
378
248
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
379
249
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
380
250
|
*
|
|
381
|
-
* const contract = new
|
|
251
|
+
* const contract = new TokenERC20('0x...', { publicClient, walletClient });
|
|
382
252
|
*
|
|
383
253
|
* // Read functions
|
|
384
254
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -396,7 +266,7 @@ export type TaxableERC20_jsonContract = any;
|
|
|
396
266
|
* });
|
|
397
267
|
* ```
|
|
398
268
|
*/
|
|
399
|
-
export declare class
|
|
269
|
+
export declare class TokenERC20 {
|
|
400
270
|
private contract;
|
|
401
271
|
private contractAddress;
|
|
402
272
|
private publicClient;
|
|
@@ -409,65 +279,45 @@ export declare class TaxableERC20_json {
|
|
|
409
279
|
*/
|
|
410
280
|
get address(): Address;
|
|
411
281
|
/**
|
|
412
|
-
* Get the underlying viem contract instance
|
|
282
|
+
* Get the underlying viem contract instance.
|
|
413
283
|
*/
|
|
414
|
-
getContract():
|
|
284
|
+
getContract(): TokenERC20Contract;
|
|
415
285
|
/**
|
|
416
|
-
*
|
|
286
|
+
* name
|
|
417
287
|
* view
|
|
418
288
|
*/
|
|
419
|
-
|
|
289
|
+
name(): Promise<string>;
|
|
420
290
|
/**
|
|
421
|
-
*
|
|
291
|
+
* totalSupply
|
|
422
292
|
* view
|
|
423
293
|
*/
|
|
424
|
-
|
|
294
|
+
totalSupply(): Promise<bigint>;
|
|
425
295
|
/**
|
|
426
296
|
* decimals
|
|
427
297
|
* view
|
|
428
298
|
*/
|
|
429
299
|
decimals(): Promise<bigint>;
|
|
430
300
|
/**
|
|
431
|
-
*
|
|
432
|
-
* view
|
|
433
|
-
*/
|
|
434
|
-
isExcludedFromTaxFee(account: `0x${string}`): Promise<boolean>;
|
|
435
|
-
/**
|
|
436
|
-
* name
|
|
437
|
-
* view
|
|
438
|
-
*/
|
|
439
|
-
name(): Promise<string>;
|
|
440
|
-
/**
|
|
441
|
-
* owner
|
|
301
|
+
* balanceOf
|
|
442
302
|
* view
|
|
443
303
|
*/
|
|
444
|
-
|
|
304
|
+
balanceOf(arg0: `0x${string}`): Promise<bigint>;
|
|
445
305
|
/**
|
|
446
306
|
* symbol
|
|
447
307
|
* view
|
|
448
308
|
*/
|
|
449
309
|
symbol(): Promise<string>;
|
|
450
310
|
/**
|
|
451
|
-
*
|
|
452
|
-
* view
|
|
453
|
-
*/
|
|
454
|
-
taxAddress(): Promise<`0x${string}`>;
|
|
455
|
-
/**
|
|
456
|
-
* taxFeePerMille
|
|
457
|
-
* view
|
|
458
|
-
*/
|
|
459
|
-
taxFeePerMille(): Promise<bigint>;
|
|
460
|
-
/**
|
|
461
|
-
* totalSupply
|
|
311
|
+
* allowance
|
|
462
312
|
* view
|
|
463
313
|
*/
|
|
464
|
-
|
|
314
|
+
allowance(arg0: `0x${string}`, arg1: `0x${string}`): Promise<bigint>;
|
|
465
315
|
/**
|
|
466
316
|
* approve
|
|
467
317
|
* nonpayable
|
|
468
318
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
469
319
|
*/
|
|
470
|
-
approve(
|
|
320
|
+
approve(_spender: `0x${string}`, _value: bigint, options?: {
|
|
471
321
|
accessList?: import('viem').AccessList;
|
|
472
322
|
authorizationList?: import('viem').AuthorizationList;
|
|
473
323
|
chain?: import('viem').Chain | null;
|
|
@@ -480,62 +330,11 @@ export declare class TaxableERC20_json {
|
|
|
480
330
|
value?: bigint;
|
|
481
331
|
}): Promise<`0x${string}`>;
|
|
482
332
|
/**
|
|
483
|
-
*
|
|
484
|
-
* nonpayable
|
|
485
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
486
|
-
*/
|
|
487
|
-
decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
|
|
488
|
-
accessList?: import('viem').AccessList;
|
|
489
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
490
|
-
chain?: import('viem').Chain | null;
|
|
491
|
-
dataSuffix?: `0x${string}`;
|
|
492
|
-
gas?: bigint;
|
|
493
|
-
gasPrice?: bigint;
|
|
494
|
-
maxFeePerGas?: bigint;
|
|
495
|
-
maxPriorityFeePerGas?: bigint;
|
|
496
|
-
nonce?: number;
|
|
497
|
-
value?: bigint;
|
|
498
|
-
}): Promise<`0x${string}`>;
|
|
499
|
-
/**
|
|
500
|
-
* increaseAllowance
|
|
501
|
-
* nonpayable
|
|
502
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
503
|
-
*/
|
|
504
|
-
increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
|
|
505
|
-
accessList?: import('viem').AccessList;
|
|
506
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
507
|
-
chain?: import('viem').Chain | null;
|
|
508
|
-
dataSuffix?: `0x${string}`;
|
|
509
|
-
gas?: bigint;
|
|
510
|
-
gasPrice?: bigint;
|
|
511
|
-
maxFeePerGas?: bigint;
|
|
512
|
-
maxPriorityFeePerGas?: bigint;
|
|
513
|
-
nonce?: number;
|
|
514
|
-
value?: bigint;
|
|
515
|
-
}): Promise<`0x${string}`>;
|
|
516
|
-
/**
|
|
517
|
-
* renounceOwnership
|
|
518
|
-
* nonpayable
|
|
519
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
520
|
-
*/
|
|
521
|
-
renounceOwnership(options?: {
|
|
522
|
-
accessList?: import('viem').AccessList;
|
|
523
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
524
|
-
chain?: import('viem').Chain | null;
|
|
525
|
-
dataSuffix?: `0x${string}`;
|
|
526
|
-
gas?: bigint;
|
|
527
|
-
gasPrice?: bigint;
|
|
528
|
-
maxFeePerGas?: bigint;
|
|
529
|
-
maxPriorityFeePerGas?: bigint;
|
|
530
|
-
nonce?: number;
|
|
531
|
-
value?: bigint;
|
|
532
|
-
}): Promise<`0x${string}`>;
|
|
533
|
-
/**
|
|
534
|
-
* setExclusionFromTaxFee
|
|
333
|
+
* transferFrom
|
|
535
334
|
* nonpayable
|
|
536
335
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
537
336
|
*/
|
|
538
|
-
|
|
337
|
+
transferFrom(_from: `0x${string}`, _to: `0x${string}`, _value: bigint, options?: {
|
|
539
338
|
accessList?: import('viem').AccessList;
|
|
540
339
|
authorizationList?: import('viem').AuthorizationList;
|
|
541
340
|
chain?: import('viem').Chain | null;
|
|
@@ -548,11 +347,11 @@ export declare class TaxableERC20_json {
|
|
|
548
347
|
value?: bigint;
|
|
549
348
|
}): Promise<`0x${string}`>;
|
|
550
349
|
/**
|
|
551
|
-
*
|
|
350
|
+
* burn
|
|
552
351
|
* nonpayable
|
|
553
352
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
554
353
|
*/
|
|
555
|
-
|
|
354
|
+
burn(_value: bigint, options?: {
|
|
556
355
|
accessList?: import('viem').AccessList;
|
|
557
356
|
authorizationList?: import('viem').AuthorizationList;
|
|
558
357
|
chain?: import('viem').Chain | null;
|
|
@@ -565,11 +364,11 @@ export declare class TaxableERC20_json {
|
|
|
565
364
|
value?: bigint;
|
|
566
365
|
}): Promise<`0x${string}`>;
|
|
567
366
|
/**
|
|
568
|
-
*
|
|
367
|
+
* burnFrom
|
|
569
368
|
* nonpayable
|
|
570
369
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
571
370
|
*/
|
|
572
|
-
|
|
371
|
+
burnFrom(_from: `0x${string}`, _value: bigint, options?: {
|
|
573
372
|
accessList?: import('viem').AccessList;
|
|
574
373
|
authorizationList?: import('viem').AuthorizationList;
|
|
575
374
|
chain?: import('viem').Chain | null;
|
|
@@ -586,24 +385,7 @@ export declare class TaxableERC20_json {
|
|
|
586
385
|
* nonpayable
|
|
587
386
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
588
387
|
*/
|
|
589
|
-
transfer(
|
|
590
|
-
accessList?: import('viem').AccessList;
|
|
591
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
592
|
-
chain?: import('viem').Chain | null;
|
|
593
|
-
dataSuffix?: `0x${string}`;
|
|
594
|
-
gas?: bigint;
|
|
595
|
-
gasPrice?: bigint;
|
|
596
|
-
maxFeePerGas?: bigint;
|
|
597
|
-
maxPriorityFeePerGas?: bigint;
|
|
598
|
-
nonce?: number;
|
|
599
|
-
value?: bigint;
|
|
600
|
-
}): Promise<`0x${string}`>;
|
|
601
|
-
/**
|
|
602
|
-
* transferFrom
|
|
603
|
-
* nonpayable
|
|
604
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
605
|
-
*/
|
|
606
|
-
transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
|
|
388
|
+
transfer(_to: `0x${string}`, _value: bigint, options?: {
|
|
607
389
|
accessList?: import('viem').AccessList;
|
|
608
390
|
authorizationList?: import('viem').AuthorizationList;
|
|
609
391
|
chain?: import('viem').Chain | null;
|
|
@@ -616,11 +398,11 @@ export declare class TaxableERC20_json {
|
|
|
616
398
|
value?: bigint;
|
|
617
399
|
}): Promise<`0x${string}`>;
|
|
618
400
|
/**
|
|
619
|
-
*
|
|
401
|
+
* approveAndCall
|
|
620
402
|
* nonpayable
|
|
621
403
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
622
404
|
*/
|
|
623
|
-
|
|
405
|
+
approveAndCall(_spender: `0x${string}`, _value: bigint, _extraData: `0x${string}`, options?: {
|
|
624
406
|
accessList?: import('viem').AccessList;
|
|
625
407
|
authorizationList?: import('viem').AuthorizationList;
|
|
626
408
|
chain?: import('viem').Chain | null;
|
|
@@ -646,7 +428,7 @@ export declare class TaxableERC20_json {
|
|
|
646
428
|
* Returns gas estimate and result without sending transaction
|
|
647
429
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
648
430
|
*/
|
|
649
|
-
approve(
|
|
431
|
+
approve(_spender: `0x${string}`, _value: bigint, options?: {
|
|
650
432
|
accessList?: import("viem").AccessList;
|
|
651
433
|
authorizationList?: import("viem").AuthorizationList;
|
|
652
434
|
chain?: import("viem").Chain | null;
|
|
@@ -659,11 +441,11 @@ export declare class TaxableERC20_json {
|
|
|
659
441
|
value?: bigint;
|
|
660
442
|
}): Promise<boolean>;
|
|
661
443
|
/**
|
|
662
|
-
* Simulate
|
|
444
|
+
* Simulate transferFrom
|
|
663
445
|
* Returns gas estimate and result without sending transaction
|
|
664
446
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
665
447
|
*/
|
|
666
|
-
|
|
448
|
+
transferFrom(_from: `0x${string}`, _to: `0x${string}`, _value: bigint, options?: {
|
|
667
449
|
accessList?: import("viem").AccessList;
|
|
668
450
|
authorizationList?: import("viem").AuthorizationList;
|
|
669
451
|
chain?: import("viem").Chain | null;
|
|
@@ -676,11 +458,11 @@ export declare class TaxableERC20_json {
|
|
|
676
458
|
value?: bigint;
|
|
677
459
|
}): Promise<boolean>;
|
|
678
460
|
/**
|
|
679
|
-
* Simulate
|
|
461
|
+
* Simulate burn
|
|
680
462
|
* Returns gas estimate and result without sending transaction
|
|
681
463
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
682
464
|
*/
|
|
683
|
-
|
|
465
|
+
burn(_value: bigint, options?: {
|
|
684
466
|
accessList?: import("viem").AccessList;
|
|
685
467
|
authorizationList?: import("viem").AuthorizationList;
|
|
686
468
|
chain?: import("viem").Chain | null;
|
|
@@ -693,28 +475,11 @@ export declare class TaxableERC20_json {
|
|
|
693
475
|
value?: bigint;
|
|
694
476
|
}): Promise<boolean>;
|
|
695
477
|
/**
|
|
696
|
-
* Simulate
|
|
697
|
-
* Returns gas estimate and result without sending transaction
|
|
698
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
699
|
-
*/
|
|
700
|
-
renounceOwnership(options?: {
|
|
701
|
-
accessList?: import("viem").AccessList;
|
|
702
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
703
|
-
chain?: import("viem").Chain | null;
|
|
704
|
-
dataSuffix?: `0x${string}`;
|
|
705
|
-
gas?: bigint;
|
|
706
|
-
gasPrice?: bigint;
|
|
707
|
-
maxFeePerGas?: bigint;
|
|
708
|
-
maxPriorityFeePerGas?: bigint;
|
|
709
|
-
nonce?: number;
|
|
710
|
-
value?: bigint;
|
|
711
|
-
}): Promise<void>;
|
|
712
|
-
/**
|
|
713
|
-
* Simulate setExclusionFromTaxFee
|
|
478
|
+
* Simulate burnFrom
|
|
714
479
|
* Returns gas estimate and result without sending transaction
|
|
715
480
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
716
481
|
*/
|
|
717
|
-
|
|
482
|
+
burnFrom(_from: `0x${string}`, _value: bigint, options?: {
|
|
718
483
|
accessList?: import("viem").AccessList;
|
|
719
484
|
authorizationList?: import("viem").AuthorizationList;
|
|
720
485
|
chain?: import("viem").Chain | null;
|
|
@@ -725,47 +490,13 @@ export declare class TaxableERC20_json {
|
|
|
725
490
|
maxPriorityFeePerGas?: bigint;
|
|
726
491
|
nonce?: number;
|
|
727
492
|
value?: bigint;
|
|
728
|
-
}): Promise<
|
|
729
|
-
/**
|
|
730
|
-
* Simulate setTaxAddress
|
|
731
|
-
* Returns gas estimate and result without sending transaction
|
|
732
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
733
|
-
*/
|
|
734
|
-
setTaxAddress(taxAddress: `0x${string}`, options?: {
|
|
735
|
-
accessList?: import("viem").AccessList;
|
|
736
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
737
|
-
chain?: import("viem").Chain | null;
|
|
738
|
-
dataSuffix?: `0x${string}`;
|
|
739
|
-
gas?: bigint;
|
|
740
|
-
gasPrice?: bigint;
|
|
741
|
-
maxFeePerGas?: bigint;
|
|
742
|
-
maxPriorityFeePerGas?: bigint;
|
|
743
|
-
nonce?: number;
|
|
744
|
-
value?: bigint;
|
|
745
|
-
}): Promise<void>;
|
|
746
|
-
/**
|
|
747
|
-
* Simulate setTaxFeePerMille
|
|
748
|
-
* Returns gas estimate and result without sending transaction
|
|
749
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
750
|
-
*/
|
|
751
|
-
setTaxFeePerMille(taxFeePerMille: bigint, options?: {
|
|
752
|
-
accessList?: import("viem").AccessList;
|
|
753
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
754
|
-
chain?: import("viem").Chain | null;
|
|
755
|
-
dataSuffix?: `0x${string}`;
|
|
756
|
-
gas?: bigint;
|
|
757
|
-
gasPrice?: bigint;
|
|
758
|
-
maxFeePerGas?: bigint;
|
|
759
|
-
maxPriorityFeePerGas?: bigint;
|
|
760
|
-
nonce?: number;
|
|
761
|
-
value?: bigint;
|
|
762
|
-
}): Promise<void>;
|
|
493
|
+
}): Promise<boolean>;
|
|
763
494
|
/**
|
|
764
495
|
* Simulate transfer
|
|
765
496
|
* Returns gas estimate and result without sending transaction
|
|
766
497
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
767
498
|
*/
|
|
768
|
-
transfer(
|
|
499
|
+
transfer(_to: `0x${string}`, _value: bigint, options?: {
|
|
769
500
|
accessList?: import("viem").AccessList;
|
|
770
501
|
authorizationList?: import("viem").AuthorizationList;
|
|
771
502
|
chain?: import("viem").Chain | null;
|
|
@@ -776,13 +507,13 @@ export declare class TaxableERC20_json {
|
|
|
776
507
|
maxPriorityFeePerGas?: bigint;
|
|
777
508
|
nonce?: number;
|
|
778
509
|
value?: bigint;
|
|
779
|
-
}): Promise<
|
|
510
|
+
}): Promise<void>;
|
|
780
511
|
/**
|
|
781
|
-
* Simulate
|
|
512
|
+
* Simulate approveAndCall
|
|
782
513
|
* Returns gas estimate and result without sending transaction
|
|
783
514
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
784
515
|
*/
|
|
785
|
-
|
|
516
|
+
approveAndCall(_spender: `0x${string}`, _value: bigint, _extraData: `0x${string}`, options?: {
|
|
786
517
|
accessList?: import("viem").AccessList;
|
|
787
518
|
authorizationList?: import("viem").AuthorizationList;
|
|
788
519
|
chain?: import("viem").Chain | null;
|
|
@@ -794,23 +525,6 @@ export declare class TaxableERC20_json {
|
|
|
794
525
|
nonce?: number;
|
|
795
526
|
value?: bigint;
|
|
796
527
|
}): Promise<boolean>;
|
|
797
|
-
/**
|
|
798
|
-
* Simulate transferOwnership
|
|
799
|
-
* Returns gas estimate and result without sending transaction
|
|
800
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
801
|
-
*/
|
|
802
|
-
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
803
|
-
accessList?: import("viem").AccessList;
|
|
804
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
805
|
-
chain?: import("viem").Chain | null;
|
|
806
|
-
dataSuffix?: `0x${string}`;
|
|
807
|
-
gas?: bigint;
|
|
808
|
-
gasPrice?: bigint;
|
|
809
|
-
maxFeePerGas?: bigint;
|
|
810
|
-
maxPriorityFeePerGas?: bigint;
|
|
811
|
-
nonce?: number;
|
|
812
|
-
value?: bigint;
|
|
813
|
-
}): Promise<void>;
|
|
814
528
|
};
|
|
815
529
|
/**
|
|
816
530
|
* Watch contract events
|
|
@@ -826,45 +540,30 @@ export declare class TaxableERC20_json {
|
|
|
826
540
|
*/
|
|
827
541
|
get watch(): {
|
|
828
542
|
/**
|
|
829
|
-
* Watch
|
|
543
|
+
* Watch Transfer events
|
|
830
544
|
* @param callback Function to call when event is emitted
|
|
831
545
|
* @param filter Optional filter for indexed parameters
|
|
832
546
|
* @returns Unwatch function to stop listening
|
|
833
547
|
*/
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
548
|
+
Transfer: (callback: (event: {
|
|
549
|
+
from: `0x${string}`;
|
|
550
|
+
to: `0x${string}`;
|
|
837
551
|
value: bigint;
|
|
838
552
|
}) => void, filter?: {
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
}) => () => void;
|
|
842
|
-
/**
|
|
843
|
-
* Watch OwnershipTransferred events
|
|
844
|
-
* @param callback Function to call when event is emitted
|
|
845
|
-
* @param filter Optional filter for indexed parameters
|
|
846
|
-
* @returns Unwatch function to stop listening
|
|
847
|
-
*/
|
|
848
|
-
OwnershipTransferred: (callback: (event: {
|
|
849
|
-
previousOwner: `0x${string}`;
|
|
850
|
-
newOwner: `0x${string}`;
|
|
851
|
-
}) => void, filter?: {
|
|
852
|
-
previousOwner: `0x${string}`;
|
|
853
|
-
newOwner: `0x${string}`;
|
|
553
|
+
from?: `0x${string}` | `0x${string}`[] | null;
|
|
554
|
+
to?: `0x${string}` | `0x${string}`[] | null;
|
|
854
555
|
}) => () => void;
|
|
855
556
|
/**
|
|
856
|
-
* Watch
|
|
557
|
+
* Watch Burn events
|
|
857
558
|
* @param callback Function to call when event is emitted
|
|
858
559
|
* @param filter Optional filter for indexed parameters
|
|
859
560
|
* @returns Unwatch function to stop listening
|
|
860
561
|
*/
|
|
861
|
-
|
|
562
|
+
Burn: (callback: (event: {
|
|
862
563
|
from: `0x${string}`;
|
|
863
|
-
to: `0x${string}`;
|
|
864
564
|
value: bigint;
|
|
865
565
|
}) => void, filter?: {
|
|
866
|
-
from
|
|
867
|
-
to: `0x${string}`;
|
|
566
|
+
from?: `0x${string}` | `0x${string}`[] | null;
|
|
868
567
|
}) => () => void;
|
|
869
568
|
};
|
|
870
569
|
}
|