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