@gitmyabi/eusd 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/contracts/{BoringVault_json.d.ts → EUSD_json.d.ts} +174 -568
- package/contracts/{BoringVault_json.js → EUSD_json.js} +196 -596
- package/contracts/{BoringVault_json.ts → EUSD_json.ts} +216 -711
- 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,49 +1,17 @@
|
|
|
1
1
|
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* EUSD_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
|
|
7
|
+
export declare const EUSD_jsonAbi: readonly [{
|
|
8
8
|
readonly inputs: readonly [{
|
|
9
9
|
readonly internalType: "address";
|
|
10
|
-
readonly name: "
|
|
10
|
+
readonly name: "_config";
|
|
11
11
|
readonly type: "address";
|
|
12
|
-
}, {
|
|
13
|
-
readonly internalType: "string";
|
|
14
|
-
readonly name: "_name";
|
|
15
|
-
readonly type: "string";
|
|
16
|
-
}, {
|
|
17
|
-
readonly internalType: "string";
|
|
18
|
-
readonly name: "_symbol";
|
|
19
|
-
readonly type: "string";
|
|
20
|
-
}, {
|
|
21
|
-
readonly internalType: "uint8";
|
|
22
|
-
readonly name: "_decimals";
|
|
23
|
-
readonly type: "uint8";
|
|
24
12
|
}];
|
|
25
13
|
readonly stateMutability: "nonpayable";
|
|
26
14
|
readonly type: "constructor";
|
|
27
|
-
}, {
|
|
28
|
-
readonly inputs: readonly [{
|
|
29
|
-
readonly internalType: "address";
|
|
30
|
-
readonly name: "target";
|
|
31
|
-
readonly type: "address";
|
|
32
|
-
}];
|
|
33
|
-
readonly name: "AddressEmptyCode";
|
|
34
|
-
readonly type: "error";
|
|
35
|
-
}, {
|
|
36
|
-
readonly inputs: readonly [{
|
|
37
|
-
readonly internalType: "address";
|
|
38
|
-
readonly name: "account";
|
|
39
|
-
readonly type: "address";
|
|
40
|
-
}];
|
|
41
|
-
readonly name: "AddressInsufficientBalance";
|
|
42
|
-
readonly type: "error";
|
|
43
|
-
}, {
|
|
44
|
-
readonly inputs: readonly [];
|
|
45
|
-
readonly name: "FailedInnerCall";
|
|
46
|
-
readonly type: "error";
|
|
47
15
|
}, {
|
|
48
16
|
readonly anonymous: false;
|
|
49
17
|
readonly inputs: readonly [{
|
|
@@ -59,7 +27,7 @@ export declare const BoringVault_jsonAbi: readonly [{
|
|
|
59
27
|
}, {
|
|
60
28
|
readonly indexed: false;
|
|
61
29
|
readonly internalType: "uint256";
|
|
62
|
-
readonly name: "
|
|
30
|
+
readonly name: "value";
|
|
63
31
|
readonly type: "uint256";
|
|
64
32
|
}];
|
|
65
33
|
readonly name: "Approval";
|
|
@@ -69,90 +37,45 @@ export declare const BoringVault_jsonAbi: readonly [{
|
|
|
69
37
|
readonly inputs: readonly [{
|
|
70
38
|
readonly indexed: true;
|
|
71
39
|
readonly internalType: "address";
|
|
72
|
-
readonly name: "
|
|
73
|
-
readonly type: "address";
|
|
74
|
-
}, {
|
|
75
|
-
readonly indexed: true;
|
|
76
|
-
readonly internalType: "contract Authority";
|
|
77
|
-
readonly name: "newAuthority";
|
|
78
|
-
readonly type: "address";
|
|
79
|
-
}];
|
|
80
|
-
readonly name: "AuthorityUpdated";
|
|
81
|
-
readonly type: "event";
|
|
82
|
-
}, {
|
|
83
|
-
readonly anonymous: false;
|
|
84
|
-
readonly inputs: readonly [{
|
|
85
|
-
readonly indexed: true;
|
|
86
|
-
readonly internalType: "address";
|
|
87
|
-
readonly name: "from";
|
|
88
|
-
readonly type: "address";
|
|
89
|
-
}, {
|
|
90
|
-
readonly indexed: true;
|
|
91
|
-
readonly internalType: "address";
|
|
92
|
-
readonly name: "asset";
|
|
40
|
+
readonly name: "account";
|
|
93
41
|
readonly type: "address";
|
|
94
42
|
}, {
|
|
95
43
|
readonly indexed: false;
|
|
96
44
|
readonly internalType: "uint256";
|
|
97
|
-
readonly name: "
|
|
45
|
+
readonly name: "preRebaseTokenAmount";
|
|
98
46
|
readonly type: "uint256";
|
|
99
47
|
}, {
|
|
100
|
-
readonly indexed:
|
|
101
|
-
readonly internalType: "
|
|
102
|
-
readonly name: "
|
|
103
|
-
readonly type: "
|
|
48
|
+
readonly indexed: false;
|
|
49
|
+
readonly internalType: "uint256";
|
|
50
|
+
readonly name: "postRebaseTokenAmount";
|
|
51
|
+
readonly type: "uint256";
|
|
104
52
|
}, {
|
|
105
53
|
readonly indexed: false;
|
|
106
54
|
readonly internalType: "uint256";
|
|
107
|
-
readonly name: "
|
|
55
|
+
readonly name: "sharesAmount";
|
|
108
56
|
readonly type: "uint256";
|
|
109
57
|
}];
|
|
110
|
-
readonly name: "
|
|
58
|
+
readonly name: "SharesBurnt";
|
|
111
59
|
readonly type: "event";
|
|
112
60
|
}, {
|
|
113
61
|
readonly anonymous: false;
|
|
114
62
|
readonly inputs: readonly [{
|
|
115
63
|
readonly indexed: true;
|
|
116
64
|
readonly internalType: "address";
|
|
117
|
-
readonly name: "
|
|
118
|
-
readonly type: "address";
|
|
119
|
-
}, {
|
|
120
|
-
readonly indexed: true;
|
|
121
|
-
readonly internalType: "address";
|
|
122
|
-
readonly name: "asset";
|
|
65
|
+
readonly name: "from";
|
|
123
66
|
readonly type: "address";
|
|
124
|
-
}, {
|
|
125
|
-
readonly indexed: false;
|
|
126
|
-
readonly internalType: "uint256";
|
|
127
|
-
readonly name: "amount";
|
|
128
|
-
readonly type: "uint256";
|
|
129
67
|
}, {
|
|
130
68
|
readonly indexed: true;
|
|
131
69
|
readonly internalType: "address";
|
|
132
|
-
readonly name: "
|
|
70
|
+
readonly name: "to";
|
|
133
71
|
readonly type: "address";
|
|
134
72
|
}, {
|
|
135
73
|
readonly indexed: false;
|
|
136
74
|
readonly internalType: "uint256";
|
|
137
|
-
readonly name: "
|
|
75
|
+
readonly name: "value";
|
|
138
76
|
readonly type: "uint256";
|
|
139
77
|
}];
|
|
140
|
-
readonly name: "
|
|
141
|
-
readonly type: "event";
|
|
142
|
-
}, {
|
|
143
|
-
readonly anonymous: false;
|
|
144
|
-
readonly inputs: readonly [{
|
|
145
|
-
readonly indexed: true;
|
|
146
|
-
readonly internalType: "address";
|
|
147
|
-
readonly name: "user";
|
|
148
|
-
readonly type: "address";
|
|
149
|
-
}, {
|
|
150
|
-
readonly indexed: true;
|
|
151
|
-
readonly internalType: "address";
|
|
152
|
-
readonly name: "newOwner";
|
|
153
|
-
readonly type: "address";
|
|
154
|
-
}];
|
|
155
|
-
readonly name: "OwnershipTransferred";
|
|
78
|
+
readonly name: "Transfer";
|
|
156
79
|
readonly type: "event";
|
|
157
80
|
}, {
|
|
158
81
|
readonly anonymous: false;
|
|
@@ -169,29 +92,19 @@ export declare const BoringVault_jsonAbi: readonly [{
|
|
|
169
92
|
}, {
|
|
170
93
|
readonly indexed: false;
|
|
171
94
|
readonly internalType: "uint256";
|
|
172
|
-
readonly name: "
|
|
95
|
+
readonly name: "sharesValue";
|
|
173
96
|
readonly type: "uint256";
|
|
174
97
|
}];
|
|
175
|
-
readonly name: "
|
|
98
|
+
readonly name: "TransferShares";
|
|
176
99
|
readonly type: "event";
|
|
177
|
-
}, {
|
|
178
|
-
readonly inputs: readonly [];
|
|
179
|
-
readonly name: "DOMAIN_SEPARATOR";
|
|
180
|
-
readonly outputs: readonly [{
|
|
181
|
-
readonly internalType: "bytes32";
|
|
182
|
-
readonly name: "";
|
|
183
|
-
readonly type: "bytes32";
|
|
184
|
-
}];
|
|
185
|
-
readonly stateMutability: "view";
|
|
186
|
-
readonly type: "function";
|
|
187
100
|
}, {
|
|
188
101
|
readonly inputs: readonly [{
|
|
189
102
|
readonly internalType: "address";
|
|
190
|
-
readonly name: "";
|
|
103
|
+
readonly name: "_owner";
|
|
191
104
|
readonly type: "address";
|
|
192
105
|
}, {
|
|
193
106
|
readonly internalType: "address";
|
|
194
|
-
readonly name: "";
|
|
107
|
+
readonly name: "_spender";
|
|
195
108
|
readonly type: "address";
|
|
196
109
|
}];
|
|
197
110
|
readonly name: "allowance";
|
|
@@ -205,11 +118,11 @@ export declare const BoringVault_jsonAbi: readonly [{
|
|
|
205
118
|
}, {
|
|
206
119
|
readonly inputs: readonly [{
|
|
207
120
|
readonly internalType: "address";
|
|
208
|
-
readonly name: "
|
|
121
|
+
readonly name: "_spender";
|
|
209
122
|
readonly type: "address";
|
|
210
123
|
}, {
|
|
211
124
|
readonly internalType: "uint256";
|
|
212
|
-
readonly name: "
|
|
125
|
+
readonly name: "_amount";
|
|
213
126
|
readonly type: "uint256";
|
|
214
127
|
}];
|
|
215
128
|
readonly name: "approve";
|
|
@@ -220,20 +133,10 @@ export declare const BoringVault_jsonAbi: readonly [{
|
|
|
220
133
|
}];
|
|
221
134
|
readonly stateMutability: "nonpayable";
|
|
222
135
|
readonly type: "function";
|
|
223
|
-
}, {
|
|
224
|
-
readonly inputs: readonly [];
|
|
225
|
-
readonly name: "authority";
|
|
226
|
-
readonly outputs: readonly [{
|
|
227
|
-
readonly internalType: "contract Authority";
|
|
228
|
-
readonly name: "";
|
|
229
|
-
readonly type: "address";
|
|
230
|
-
}];
|
|
231
|
-
readonly stateMutability: "view";
|
|
232
|
-
readonly type: "function";
|
|
233
136
|
}, {
|
|
234
137
|
readonly inputs: readonly [{
|
|
235
138
|
readonly internalType: "address";
|
|
236
|
-
readonly name: "";
|
|
139
|
+
readonly name: "_account";
|
|
237
140
|
readonly type: "address";
|
|
238
141
|
}];
|
|
239
142
|
readonly name: "balanceOf";
|
|
@@ -244,139 +147,101 @@ export declare const BoringVault_jsonAbi: readonly [{
|
|
|
244
147
|
}];
|
|
245
148
|
readonly stateMutability: "view";
|
|
246
149
|
readonly type: "function";
|
|
247
|
-
}, {
|
|
248
|
-
readonly inputs: readonly [];
|
|
249
|
-
readonly name: "decimals";
|
|
250
|
-
readonly outputs: readonly [{
|
|
251
|
-
readonly internalType: "uint8";
|
|
252
|
-
readonly name: "";
|
|
253
|
-
readonly type: "uint8";
|
|
254
|
-
}];
|
|
255
|
-
readonly stateMutability: "view";
|
|
256
|
-
readonly type: "function";
|
|
257
150
|
}, {
|
|
258
151
|
readonly inputs: readonly [{
|
|
259
152
|
readonly internalType: "address";
|
|
260
|
-
readonly name: "
|
|
261
|
-
readonly type: "address";
|
|
262
|
-
}, {
|
|
263
|
-
readonly internalType: "contract ERC20";
|
|
264
|
-
readonly name: "asset";
|
|
153
|
+
readonly name: "_account";
|
|
265
154
|
readonly type: "address";
|
|
266
155
|
}, {
|
|
267
156
|
readonly internalType: "uint256";
|
|
268
|
-
readonly name: "
|
|
157
|
+
readonly name: "_burnAmount";
|
|
269
158
|
readonly type: "uint256";
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
readonly type: "address";
|
|
274
|
-
}, {
|
|
159
|
+
}];
|
|
160
|
+
readonly name: "burn";
|
|
161
|
+
readonly outputs: readonly [{
|
|
275
162
|
readonly internalType: "uint256";
|
|
276
|
-
readonly name: "
|
|
163
|
+
readonly name: "newTotalShares";
|
|
277
164
|
readonly type: "uint256";
|
|
278
165
|
}];
|
|
279
|
-
readonly name: "enter";
|
|
280
|
-
readonly outputs: readonly [];
|
|
281
166
|
readonly stateMutability: "nonpayable";
|
|
282
167
|
readonly type: "function";
|
|
283
168
|
}, {
|
|
284
169
|
readonly inputs: readonly [{
|
|
285
170
|
readonly internalType: "address";
|
|
286
|
-
readonly name: "
|
|
287
|
-
readonly type: "address";
|
|
288
|
-
}, {
|
|
289
|
-
readonly internalType: "contract ERC20";
|
|
290
|
-
readonly name: "asset";
|
|
171
|
+
readonly name: "_account";
|
|
291
172
|
readonly type: "address";
|
|
292
173
|
}, {
|
|
293
174
|
readonly internalType: "uint256";
|
|
294
|
-
readonly name: "
|
|
175
|
+
readonly name: "_sharesAmount";
|
|
295
176
|
readonly type: "uint256";
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
readonly type: "address";
|
|
300
|
-
}, {
|
|
177
|
+
}];
|
|
178
|
+
readonly name: "burnShares";
|
|
179
|
+
readonly outputs: readonly [{
|
|
301
180
|
readonly internalType: "uint256";
|
|
302
|
-
readonly name: "
|
|
181
|
+
readonly name: "newTotalShares";
|
|
303
182
|
readonly type: "uint256";
|
|
304
183
|
}];
|
|
305
|
-
readonly name: "exit";
|
|
306
|
-
readonly outputs: readonly [];
|
|
307
184
|
readonly stateMutability: "nonpayable";
|
|
308
185
|
readonly type: "function";
|
|
309
186
|
}, {
|
|
310
187
|
readonly inputs: readonly [];
|
|
311
|
-
readonly name: "
|
|
188
|
+
readonly name: "configurator";
|
|
312
189
|
readonly outputs: readonly [{
|
|
313
|
-
readonly internalType: "contract
|
|
190
|
+
readonly internalType: "contract Iconfigurator";
|
|
314
191
|
readonly name: "";
|
|
315
192
|
readonly type: "address";
|
|
316
193
|
}];
|
|
317
194
|
readonly stateMutability: "view";
|
|
318
195
|
readonly type: "function";
|
|
319
196
|
}, {
|
|
320
|
-
readonly inputs: readonly [
|
|
321
|
-
|
|
322
|
-
readonly name: "targets";
|
|
323
|
-
readonly type: "address[]";
|
|
324
|
-
}, {
|
|
325
|
-
readonly internalType: "bytes[]";
|
|
326
|
-
readonly name: "data";
|
|
327
|
-
readonly type: "bytes[]";
|
|
328
|
-
}, {
|
|
329
|
-
readonly internalType: "uint256[]";
|
|
330
|
-
readonly name: "values";
|
|
331
|
-
readonly type: "uint256[]";
|
|
332
|
-
}];
|
|
333
|
-
readonly name: "manage";
|
|
197
|
+
readonly inputs: readonly [];
|
|
198
|
+
readonly name: "decimals";
|
|
334
199
|
readonly outputs: readonly [{
|
|
335
|
-
readonly internalType: "
|
|
336
|
-
readonly name: "
|
|
337
|
-
readonly type: "
|
|
200
|
+
readonly internalType: "uint8";
|
|
201
|
+
readonly name: "";
|
|
202
|
+
readonly type: "uint8";
|
|
338
203
|
}];
|
|
339
|
-
readonly stateMutability: "
|
|
204
|
+
readonly stateMutability: "pure";
|
|
340
205
|
readonly type: "function";
|
|
341
206
|
}, {
|
|
342
207
|
readonly inputs: readonly [{
|
|
343
208
|
readonly internalType: "address";
|
|
344
|
-
readonly name: "
|
|
209
|
+
readonly name: "spender";
|
|
345
210
|
readonly type: "address";
|
|
346
|
-
}, {
|
|
347
|
-
readonly internalType: "bytes";
|
|
348
|
-
readonly name: "data";
|
|
349
|
-
readonly type: "bytes";
|
|
350
211
|
}, {
|
|
351
212
|
readonly internalType: "uint256";
|
|
352
|
-
readonly name: "
|
|
213
|
+
readonly name: "subtractedValue";
|
|
353
214
|
readonly type: "uint256";
|
|
354
215
|
}];
|
|
355
|
-
readonly name: "
|
|
216
|
+
readonly name: "decreaseAllowance";
|
|
356
217
|
readonly outputs: readonly [{
|
|
357
|
-
readonly internalType: "
|
|
358
|
-
readonly name: "
|
|
359
|
-
readonly type: "
|
|
218
|
+
readonly internalType: "bool";
|
|
219
|
+
readonly name: "";
|
|
220
|
+
readonly type: "bool";
|
|
360
221
|
}];
|
|
361
222
|
readonly stateMutability: "nonpayable";
|
|
362
223
|
readonly type: "function";
|
|
363
224
|
}, {
|
|
364
|
-
readonly inputs: readonly [
|
|
365
|
-
|
|
225
|
+
readonly inputs: readonly [{
|
|
226
|
+
readonly internalType: "uint256";
|
|
227
|
+
readonly name: "_sharesAmount";
|
|
228
|
+
readonly type: "uint256";
|
|
229
|
+
}];
|
|
230
|
+
readonly name: "getMintedEUSDByShares";
|
|
366
231
|
readonly outputs: readonly [{
|
|
367
|
-
readonly internalType: "
|
|
232
|
+
readonly internalType: "uint256";
|
|
368
233
|
readonly name: "";
|
|
369
|
-
readonly type: "
|
|
234
|
+
readonly type: "uint256";
|
|
370
235
|
}];
|
|
371
236
|
readonly stateMutability: "view";
|
|
372
237
|
readonly type: "function";
|
|
373
238
|
}, {
|
|
374
239
|
readonly inputs: readonly [{
|
|
375
|
-
readonly internalType: "
|
|
376
|
-
readonly name: "";
|
|
377
|
-
readonly type: "
|
|
240
|
+
readonly internalType: "uint256";
|
|
241
|
+
readonly name: "_EUSDAmount";
|
|
242
|
+
readonly type: "uint256";
|
|
378
243
|
}];
|
|
379
|
-
readonly name: "
|
|
244
|
+
readonly name: "getSharesByMintedEUSD";
|
|
380
245
|
readonly outputs: readonly [{
|
|
381
246
|
readonly internalType: "uint256";
|
|
382
247
|
readonly name: "";
|
|
@@ -385,166 +250,72 @@ export declare const BoringVault_jsonAbi: readonly [{
|
|
|
385
250
|
readonly stateMutability: "view";
|
|
386
251
|
readonly type: "function";
|
|
387
252
|
}, {
|
|
388
|
-
readonly inputs: readonly [
|
|
389
|
-
|
|
390
|
-
readonly name: "";
|
|
391
|
-
readonly type: "address";
|
|
392
|
-
}, {
|
|
393
|
-
readonly internalType: "address";
|
|
394
|
-
readonly name: "";
|
|
395
|
-
readonly type: "address";
|
|
396
|
-
}, {
|
|
397
|
-
readonly internalType: "uint256[]";
|
|
398
|
-
readonly name: "";
|
|
399
|
-
readonly type: "uint256[]";
|
|
400
|
-
}, {
|
|
401
|
-
readonly internalType: "uint256[]";
|
|
402
|
-
readonly name: "";
|
|
403
|
-
readonly type: "uint256[]";
|
|
404
|
-
}, {
|
|
405
|
-
readonly internalType: "bytes";
|
|
406
|
-
readonly name: "";
|
|
407
|
-
readonly type: "bytes";
|
|
408
|
-
}];
|
|
409
|
-
readonly name: "onERC1155BatchReceived";
|
|
253
|
+
readonly inputs: readonly [];
|
|
254
|
+
readonly name: "getTotalShares";
|
|
410
255
|
readonly outputs: readonly [{
|
|
411
|
-
readonly internalType: "
|
|
256
|
+
readonly internalType: "uint256";
|
|
412
257
|
readonly name: "";
|
|
413
|
-
readonly type: "
|
|
258
|
+
readonly type: "uint256";
|
|
414
259
|
}];
|
|
415
|
-
readonly stateMutability: "
|
|
260
|
+
readonly stateMutability: "view";
|
|
416
261
|
readonly type: "function";
|
|
417
262
|
}, {
|
|
418
263
|
readonly inputs: readonly [{
|
|
419
264
|
readonly internalType: "address";
|
|
420
|
-
readonly name: "";
|
|
421
|
-
readonly type: "address";
|
|
422
|
-
}, {
|
|
423
|
-
readonly internalType: "address";
|
|
424
|
-
readonly name: "";
|
|
265
|
+
readonly name: "_spender";
|
|
425
266
|
readonly type: "address";
|
|
426
267
|
}, {
|
|
427
268
|
readonly internalType: "uint256";
|
|
428
|
-
readonly name: "";
|
|
269
|
+
readonly name: "_addedValue";
|
|
429
270
|
readonly type: "uint256";
|
|
430
|
-
}, {
|
|
431
|
-
readonly internalType: "uint256";
|
|
432
|
-
readonly name: "";
|
|
433
|
-
readonly type: "uint256";
|
|
434
|
-
}, {
|
|
435
|
-
readonly internalType: "bytes";
|
|
436
|
-
readonly name: "";
|
|
437
|
-
readonly type: "bytes";
|
|
438
271
|
}];
|
|
439
|
-
readonly name: "
|
|
272
|
+
readonly name: "increaseAllowance";
|
|
440
273
|
readonly outputs: readonly [{
|
|
441
|
-
readonly internalType: "
|
|
274
|
+
readonly internalType: "bool";
|
|
442
275
|
readonly name: "";
|
|
443
|
-
readonly type: "
|
|
276
|
+
readonly type: "bool";
|
|
444
277
|
}];
|
|
445
278
|
readonly stateMutability: "nonpayable";
|
|
446
279
|
readonly type: "function";
|
|
447
280
|
}, {
|
|
448
281
|
readonly inputs: readonly [{
|
|
449
282
|
readonly internalType: "address";
|
|
450
|
-
readonly name: "";
|
|
451
|
-
readonly type: "address";
|
|
452
|
-
}, {
|
|
453
|
-
readonly internalType: "address";
|
|
454
|
-
readonly name: "";
|
|
283
|
+
readonly name: "_recipient";
|
|
455
284
|
readonly type: "address";
|
|
456
285
|
}, {
|
|
457
286
|
readonly internalType: "uint256";
|
|
458
|
-
readonly name: "";
|
|
287
|
+
readonly name: "_mintAmount";
|
|
459
288
|
readonly type: "uint256";
|
|
460
|
-
}, {
|
|
461
|
-
readonly internalType: "bytes";
|
|
462
|
-
readonly name: "";
|
|
463
|
-
readonly type: "bytes";
|
|
464
289
|
}];
|
|
465
|
-
readonly name: "
|
|
290
|
+
readonly name: "mint";
|
|
466
291
|
readonly outputs: readonly [{
|
|
467
|
-
readonly internalType: "
|
|
468
|
-
readonly name: "";
|
|
469
|
-
readonly type: "
|
|
292
|
+
readonly internalType: "uint256";
|
|
293
|
+
readonly name: "newTotalShares";
|
|
294
|
+
readonly type: "uint256";
|
|
470
295
|
}];
|
|
471
296
|
readonly stateMutability: "nonpayable";
|
|
472
297
|
readonly type: "function";
|
|
473
298
|
}, {
|
|
474
299
|
readonly inputs: readonly [];
|
|
475
|
-
readonly name: "
|
|
300
|
+
readonly name: "name";
|
|
476
301
|
readonly outputs: readonly [{
|
|
477
|
-
readonly internalType: "
|
|
302
|
+
readonly internalType: "string";
|
|
478
303
|
readonly name: "";
|
|
479
|
-
readonly type: "
|
|
480
|
-
}];
|
|
481
|
-
readonly stateMutability: "view";
|
|
482
|
-
readonly type: "function";
|
|
483
|
-
}, {
|
|
484
|
-
readonly inputs: readonly [{
|
|
485
|
-
readonly internalType: "address";
|
|
486
|
-
readonly name: "owner";
|
|
487
|
-
readonly type: "address";
|
|
488
|
-
}, {
|
|
489
|
-
readonly internalType: "address";
|
|
490
|
-
readonly name: "spender";
|
|
491
|
-
readonly type: "address";
|
|
492
|
-
}, {
|
|
493
|
-
readonly internalType: "uint256";
|
|
494
|
-
readonly name: "value";
|
|
495
|
-
readonly type: "uint256";
|
|
496
|
-
}, {
|
|
497
|
-
readonly internalType: "uint256";
|
|
498
|
-
readonly name: "deadline";
|
|
499
|
-
readonly type: "uint256";
|
|
500
|
-
}, {
|
|
501
|
-
readonly internalType: "uint8";
|
|
502
|
-
readonly name: "v";
|
|
503
|
-
readonly type: "uint8";
|
|
504
|
-
}, {
|
|
505
|
-
readonly internalType: "bytes32";
|
|
506
|
-
readonly name: "r";
|
|
507
|
-
readonly type: "bytes32";
|
|
508
|
-
}, {
|
|
509
|
-
readonly internalType: "bytes32";
|
|
510
|
-
readonly name: "s";
|
|
511
|
-
readonly type: "bytes32";
|
|
512
|
-
}];
|
|
513
|
-
readonly name: "permit";
|
|
514
|
-
readonly outputs: readonly [];
|
|
515
|
-
readonly stateMutability: "nonpayable";
|
|
516
|
-
readonly type: "function";
|
|
517
|
-
}, {
|
|
518
|
-
readonly inputs: readonly [{
|
|
519
|
-
readonly internalType: "contract Authority";
|
|
520
|
-
readonly name: "newAuthority";
|
|
521
|
-
readonly type: "address";
|
|
304
|
+
readonly type: "string";
|
|
522
305
|
}];
|
|
523
|
-
readonly
|
|
524
|
-
readonly outputs: readonly [];
|
|
525
|
-
readonly stateMutability: "nonpayable";
|
|
306
|
+
readonly stateMutability: "pure";
|
|
526
307
|
readonly type: "function";
|
|
527
308
|
}, {
|
|
528
309
|
readonly inputs: readonly [{
|
|
529
310
|
readonly internalType: "address";
|
|
530
|
-
readonly name: "
|
|
311
|
+
readonly name: "_account";
|
|
531
312
|
readonly type: "address";
|
|
532
313
|
}];
|
|
533
|
-
readonly name: "
|
|
534
|
-
readonly outputs: readonly [];
|
|
535
|
-
readonly stateMutability: "nonpayable";
|
|
536
|
-
readonly type: "function";
|
|
537
|
-
}, {
|
|
538
|
-
readonly inputs: readonly [{
|
|
539
|
-
readonly internalType: "bytes4";
|
|
540
|
-
readonly name: "interfaceId";
|
|
541
|
-
readonly type: "bytes4";
|
|
542
|
-
}];
|
|
543
|
-
readonly name: "supportsInterface";
|
|
314
|
+
readonly name: "sharesOf";
|
|
544
315
|
readonly outputs: readonly [{
|
|
545
|
-
readonly internalType: "
|
|
316
|
+
readonly internalType: "uint256";
|
|
546
317
|
readonly name: "";
|
|
547
|
-
readonly type: "
|
|
318
|
+
readonly type: "uint256";
|
|
548
319
|
}];
|
|
549
320
|
readonly stateMutability: "view";
|
|
550
321
|
readonly type: "function";
|
|
@@ -556,7 +327,7 @@ export declare const BoringVault_jsonAbi: readonly [{
|
|
|
556
327
|
readonly name: "";
|
|
557
328
|
readonly type: "string";
|
|
558
329
|
}];
|
|
559
|
-
readonly stateMutability: "
|
|
330
|
+
readonly stateMutability: "pure";
|
|
560
331
|
readonly type: "function";
|
|
561
332
|
}, {
|
|
562
333
|
readonly inputs: readonly [];
|
|
@@ -571,11 +342,11 @@ export declare const BoringVault_jsonAbi: readonly [{
|
|
|
571
342
|
}, {
|
|
572
343
|
readonly inputs: readonly [{
|
|
573
344
|
readonly internalType: "address";
|
|
574
|
-
readonly name: "
|
|
345
|
+
readonly name: "_recipient";
|
|
575
346
|
readonly type: "address";
|
|
576
347
|
}, {
|
|
577
348
|
readonly internalType: "uint256";
|
|
578
|
-
readonly name: "
|
|
349
|
+
readonly name: "_amount";
|
|
579
350
|
readonly type: "uint256";
|
|
580
351
|
}];
|
|
581
352
|
readonly name: "transfer";
|
|
@@ -611,27 +382,32 @@ export declare const BoringVault_jsonAbi: readonly [{
|
|
|
611
382
|
}, {
|
|
612
383
|
readonly inputs: readonly [{
|
|
613
384
|
readonly internalType: "address";
|
|
614
|
-
readonly name: "
|
|
385
|
+
readonly name: "_recipient";
|
|
615
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";
|
|
616
397
|
}];
|
|
617
|
-
readonly name: "transferOwnership";
|
|
618
|
-
readonly outputs: readonly [];
|
|
619
398
|
readonly stateMutability: "nonpayable";
|
|
620
399
|
readonly type: "function";
|
|
621
|
-
}, {
|
|
622
|
-
readonly stateMutability: "payable";
|
|
623
|
-
readonly type: "receive";
|
|
624
400
|
}];
|
|
625
401
|
/**
|
|
626
|
-
* Type-safe ABI for
|
|
402
|
+
* Type-safe ABI for EUSD_json
|
|
627
403
|
*/
|
|
628
|
-
export type
|
|
404
|
+
export type EUSD_jsonAbi = typeof EUSD_jsonAbi;
|
|
629
405
|
/**
|
|
630
|
-
* Contract instance type for
|
|
406
|
+
* Contract instance type for EUSD_json
|
|
631
407
|
*/
|
|
632
|
-
export type
|
|
408
|
+
export type EUSD_jsonContract = any;
|
|
633
409
|
/**
|
|
634
|
-
*
|
|
410
|
+
* EUSD_json Contract Class
|
|
635
411
|
*
|
|
636
412
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
637
413
|
*
|
|
@@ -639,12 +415,12 @@ export type BoringVault_jsonContract = any;
|
|
|
639
415
|
* ```typescript
|
|
640
416
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
641
417
|
* import { mainnet } from 'viem/chains';
|
|
642
|
-
* import {
|
|
418
|
+
* import { EUSD_json } from 'EUSD_json';
|
|
643
419
|
*
|
|
644
420
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
645
421
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
646
422
|
*
|
|
647
|
-
* const contract = new
|
|
423
|
+
* const contract = new EUSD_json('0x...', { publicClient, walletClient });
|
|
648
424
|
*
|
|
649
425
|
* // Read functions
|
|
650
426
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -662,7 +438,7 @@ export type BoringVault_jsonContract = any;
|
|
|
662
438
|
* });
|
|
663
439
|
* ```
|
|
664
440
|
*/
|
|
665
|
-
export declare class
|
|
441
|
+
export declare class EUSD_json {
|
|
666
442
|
private contract;
|
|
667
443
|
private contractAddress;
|
|
668
444
|
private publicClient;
|
|
@@ -677,60 +453,55 @@ export declare class BoringVault_json {
|
|
|
677
453
|
/**
|
|
678
454
|
* Get the underlying viem contract instance
|
|
679
455
|
*/
|
|
680
|
-
getContract():
|
|
681
|
-
/**
|
|
682
|
-
* DOMAIN_SEPARATOR
|
|
683
|
-
* view
|
|
684
|
-
*/
|
|
685
|
-
DOMAIN_SEPARATOR(): Promise<`0x${string}`>;
|
|
456
|
+
getContract(): EUSD_jsonContract;
|
|
686
457
|
/**
|
|
687
458
|
* allowance
|
|
688
459
|
* view
|
|
689
460
|
*/
|
|
690
|
-
allowance(
|
|
461
|
+
allowance(_owner: `0x${string}`, _spender: `0x${string}`): Promise<bigint>;
|
|
691
462
|
/**
|
|
692
|
-
*
|
|
463
|
+
* balanceOf
|
|
693
464
|
* view
|
|
694
465
|
*/
|
|
695
|
-
|
|
466
|
+
balanceOf(_account: `0x${string}`): Promise<bigint>;
|
|
696
467
|
/**
|
|
697
|
-
*
|
|
468
|
+
* configurator
|
|
698
469
|
* view
|
|
699
470
|
*/
|
|
700
|
-
|
|
471
|
+
configurator(): Promise<`0x${string}`>;
|
|
701
472
|
/**
|
|
702
473
|
* decimals
|
|
703
|
-
*
|
|
474
|
+
* pure
|
|
704
475
|
*/
|
|
705
476
|
decimals(): Promise<bigint>;
|
|
706
477
|
/**
|
|
707
|
-
*
|
|
478
|
+
* getMintedEUSDByShares
|
|
708
479
|
* view
|
|
709
480
|
*/
|
|
710
|
-
|
|
481
|
+
getMintedEUSDByShares(_sharesAmount: bigint): Promise<bigint>;
|
|
711
482
|
/**
|
|
712
|
-
*
|
|
483
|
+
* getSharesByMintedEUSD
|
|
713
484
|
* view
|
|
714
485
|
*/
|
|
715
|
-
|
|
486
|
+
getSharesByMintedEUSD(_EUSDAmount: bigint): Promise<bigint>;
|
|
716
487
|
/**
|
|
717
|
-
*
|
|
488
|
+
* getTotalShares
|
|
718
489
|
* view
|
|
719
490
|
*/
|
|
720
|
-
|
|
491
|
+
getTotalShares(): Promise<bigint>;
|
|
721
492
|
/**
|
|
722
|
-
*
|
|
723
|
-
*
|
|
493
|
+
* name
|
|
494
|
+
* pure
|
|
724
495
|
*/
|
|
725
|
-
|
|
496
|
+
name(): Promise<string>;
|
|
726
497
|
/**
|
|
727
|
-
*
|
|
498
|
+
* sharesOf
|
|
728
499
|
* view
|
|
729
500
|
*/
|
|
730
|
-
|
|
501
|
+
sharesOf(_account: `0x${string}`): Promise<bigint>;
|
|
731
502
|
/**
|
|
732
503
|
* symbol
|
|
733
|
-
*
|
|
504
|
+
* pure
|
|
734
505
|
*/
|
|
735
506
|
symbol(): Promise<string>;
|
|
736
507
|
/**
|
|
@@ -743,82 +514,7 @@ export declare class BoringVault_json {
|
|
|
743
514
|
* nonpayable
|
|
744
515
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
745
516
|
*/
|
|
746
|
-
approve(
|
|
747
|
-
accessList?: import('viem').AccessList;
|
|
748
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
749
|
-
chain?: import('viem').Chain | null;
|
|
750
|
-
dataSuffix?: `0x${string}`;
|
|
751
|
-
gas?: bigint;
|
|
752
|
-
gasPrice?: bigint;
|
|
753
|
-
maxFeePerGas?: bigint;
|
|
754
|
-
maxPriorityFeePerGas?: bigint;
|
|
755
|
-
nonce?: number;
|
|
756
|
-
value?: bigint;
|
|
757
|
-
}): Promise<`0x${string}`>;
|
|
758
|
-
/**
|
|
759
|
-
* enter
|
|
760
|
-
* nonpayable
|
|
761
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
762
|
-
*/
|
|
763
|
-
enter(from: `0x${string}`, asset: `0x${string}`, assetAmount: bigint, to: `0x${string}`, shareAmount: bigint, options?: {
|
|
764
|
-
accessList?: import('viem').AccessList;
|
|
765
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
766
|
-
chain?: import('viem').Chain | null;
|
|
767
|
-
dataSuffix?: `0x${string}`;
|
|
768
|
-
gas?: bigint;
|
|
769
|
-
gasPrice?: bigint;
|
|
770
|
-
maxFeePerGas?: bigint;
|
|
771
|
-
maxPriorityFeePerGas?: bigint;
|
|
772
|
-
nonce?: number;
|
|
773
|
-
value?: bigint;
|
|
774
|
-
}): Promise<`0x${string}`>;
|
|
775
|
-
/**
|
|
776
|
-
* exit
|
|
777
|
-
* nonpayable
|
|
778
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
779
|
-
*/
|
|
780
|
-
exit(to: `0x${string}`, asset: `0x${string}`, assetAmount: bigint, from: `0x${string}`, shareAmount: bigint, options?: {
|
|
781
|
-
accessList?: import('viem').AccessList;
|
|
782
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
783
|
-
chain?: import('viem').Chain | null;
|
|
784
|
-
dataSuffix?: `0x${string}`;
|
|
785
|
-
gas?: bigint;
|
|
786
|
-
gasPrice?: bigint;
|
|
787
|
-
maxFeePerGas?: bigint;
|
|
788
|
-
maxPriorityFeePerGas?: bigint;
|
|
789
|
-
nonce?: number;
|
|
790
|
-
value?: bigint;
|
|
791
|
-
}): Promise<`0x${string}`>;
|
|
792
|
-
manage(targets: `0x${string}`[], data: `0x${string}`[], values: bigint[], options?: {
|
|
793
|
-
accessList?: import('viem').AccessList;
|
|
794
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
795
|
-
chain?: import('viem').Chain | null;
|
|
796
|
-
dataSuffix?: `0x${string}`;
|
|
797
|
-
gas?: bigint;
|
|
798
|
-
gasPrice?: bigint;
|
|
799
|
-
maxFeePerGas?: bigint;
|
|
800
|
-
maxPriorityFeePerGas?: bigint;
|
|
801
|
-
nonce?: number;
|
|
802
|
-
value?: bigint;
|
|
803
|
-
}): Promise<`0x${string}`>;
|
|
804
|
-
manage(target: `0x${string}`, data: `0x${string}`, value: bigint, options?: {
|
|
805
|
-
accessList?: import('viem').AccessList;
|
|
806
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
807
|
-
chain?: import('viem').Chain | null;
|
|
808
|
-
dataSuffix?: `0x${string}`;
|
|
809
|
-
gas?: bigint;
|
|
810
|
-
gasPrice?: bigint;
|
|
811
|
-
maxFeePerGas?: bigint;
|
|
812
|
-
maxPriorityFeePerGas?: bigint;
|
|
813
|
-
nonce?: number;
|
|
814
|
-
value?: bigint;
|
|
815
|
-
}): Promise<`0x${string}`>;
|
|
816
|
-
/**
|
|
817
|
-
* onERC1155BatchReceived
|
|
818
|
-
* nonpayable
|
|
819
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
820
|
-
*/
|
|
821
|
-
onERC1155BatchReceived(arg0: `0x${string}`, arg1: `0x${string}`, arg2: bigint[], arg3: bigint[], arg4: `0x${string}`, options?: {
|
|
517
|
+
approve(_spender: `0x${string}`, _amount: bigint, options?: {
|
|
822
518
|
accessList?: import('viem').AccessList;
|
|
823
519
|
authorizationList?: import('viem').AuthorizationList;
|
|
824
520
|
chain?: import('viem').Chain | null;
|
|
@@ -831,11 +527,11 @@ export declare class BoringVault_json {
|
|
|
831
527
|
value?: bigint;
|
|
832
528
|
}): Promise<`0x${string}`>;
|
|
833
529
|
/**
|
|
834
|
-
*
|
|
530
|
+
* burn
|
|
835
531
|
* nonpayable
|
|
836
532
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
837
533
|
*/
|
|
838
|
-
|
|
534
|
+
burn(_account: `0x${string}`, _burnAmount: bigint, options?: {
|
|
839
535
|
accessList?: import('viem').AccessList;
|
|
840
536
|
authorizationList?: import('viem').AuthorizationList;
|
|
841
537
|
chain?: import('viem').Chain | null;
|
|
@@ -848,11 +544,11 @@ export declare class BoringVault_json {
|
|
|
848
544
|
value?: bigint;
|
|
849
545
|
}): Promise<`0x${string}`>;
|
|
850
546
|
/**
|
|
851
|
-
*
|
|
547
|
+
* burnShares
|
|
852
548
|
* nonpayable
|
|
853
549
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
854
550
|
*/
|
|
855
|
-
|
|
551
|
+
burnShares(_account: `0x${string}`, _sharesAmount: bigint, options?: {
|
|
856
552
|
accessList?: import('viem').AccessList;
|
|
857
553
|
authorizationList?: import('viem').AuthorizationList;
|
|
858
554
|
chain?: import('viem').Chain | null;
|
|
@@ -865,11 +561,11 @@ export declare class BoringVault_json {
|
|
|
865
561
|
value?: bigint;
|
|
866
562
|
}): Promise<`0x${string}`>;
|
|
867
563
|
/**
|
|
868
|
-
*
|
|
564
|
+
* decreaseAllowance
|
|
869
565
|
* nonpayable
|
|
870
566
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
871
567
|
*/
|
|
872
|
-
|
|
568
|
+
decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
|
|
873
569
|
accessList?: import('viem').AccessList;
|
|
874
570
|
authorizationList?: import('viem').AuthorizationList;
|
|
875
571
|
chain?: import('viem').Chain | null;
|
|
@@ -882,11 +578,11 @@ export declare class BoringVault_json {
|
|
|
882
578
|
value?: bigint;
|
|
883
579
|
}): Promise<`0x${string}`>;
|
|
884
580
|
/**
|
|
885
|
-
*
|
|
581
|
+
* increaseAllowance
|
|
886
582
|
* nonpayable
|
|
887
583
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
888
584
|
*/
|
|
889
|
-
|
|
585
|
+
increaseAllowance(_spender: `0x${string}`, _addedValue: bigint, options?: {
|
|
890
586
|
accessList?: import('viem').AccessList;
|
|
891
587
|
authorizationList?: import('viem').AuthorizationList;
|
|
892
588
|
chain?: import('viem').Chain | null;
|
|
@@ -899,11 +595,11 @@ export declare class BoringVault_json {
|
|
|
899
595
|
value?: bigint;
|
|
900
596
|
}): Promise<`0x${string}`>;
|
|
901
597
|
/**
|
|
902
|
-
*
|
|
598
|
+
* mint
|
|
903
599
|
* nonpayable
|
|
904
600
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
905
601
|
*/
|
|
906
|
-
|
|
602
|
+
mint(_recipient: `0x${string}`, _mintAmount: bigint, options?: {
|
|
907
603
|
accessList?: import('viem').AccessList;
|
|
908
604
|
authorizationList?: import('viem').AuthorizationList;
|
|
909
605
|
chain?: import('viem').Chain | null;
|
|
@@ -920,7 +616,7 @@ export declare class BoringVault_json {
|
|
|
920
616
|
* nonpayable
|
|
921
617
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
922
618
|
*/
|
|
923
|
-
transfer(
|
|
619
|
+
transfer(_recipient: `0x${string}`, _amount: bigint, options?: {
|
|
924
620
|
accessList?: import('viem').AccessList;
|
|
925
621
|
authorizationList?: import('viem').AuthorizationList;
|
|
926
622
|
chain?: import('viem').Chain | null;
|
|
@@ -950,11 +646,11 @@ export declare class BoringVault_json {
|
|
|
950
646
|
value?: bigint;
|
|
951
647
|
}): Promise<`0x${string}`>;
|
|
952
648
|
/**
|
|
953
|
-
*
|
|
649
|
+
* transferShares
|
|
954
650
|
* nonpayable
|
|
955
651
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
956
652
|
*/
|
|
957
|
-
|
|
653
|
+
transferShares(_recipient: `0x${string}`, _sharesAmount: bigint, options?: {
|
|
958
654
|
accessList?: import('viem').AccessList;
|
|
959
655
|
authorizationList?: import('viem').AuthorizationList;
|
|
960
656
|
chain?: import('viem').Chain | null;
|
|
@@ -980,7 +676,7 @@ export declare class BoringVault_json {
|
|
|
980
676
|
* Returns gas estimate and result without sending transaction
|
|
981
677
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
982
678
|
*/
|
|
983
|
-
approve(
|
|
679
|
+
approve(_spender: `0x${string}`, _amount: bigint, options?: {
|
|
984
680
|
accessList?: import("viem").AccessList;
|
|
985
681
|
authorizationList?: import("viem").AuthorizationList;
|
|
986
682
|
chain?: import("viem").Chain | null;
|
|
@@ -993,28 +689,11 @@ export declare class BoringVault_json {
|
|
|
993
689
|
value?: bigint;
|
|
994
690
|
}): Promise<boolean>;
|
|
995
691
|
/**
|
|
996
|
-
* Simulate
|
|
997
|
-
* Returns gas estimate and result without sending transaction
|
|
998
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
999
|
-
*/
|
|
1000
|
-
enter(from: `0x${string}`, asset: `0x${string}`, assetAmount: bigint, to: `0x${string}`, shareAmount: bigint, options?: {
|
|
1001
|
-
accessList?: import("viem").AccessList;
|
|
1002
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
1003
|
-
chain?: import("viem").Chain | null;
|
|
1004
|
-
dataSuffix?: `0x${string}`;
|
|
1005
|
-
gas?: bigint;
|
|
1006
|
-
gasPrice?: bigint;
|
|
1007
|
-
maxFeePerGas?: bigint;
|
|
1008
|
-
maxPriorityFeePerGas?: bigint;
|
|
1009
|
-
nonce?: number;
|
|
1010
|
-
value?: bigint;
|
|
1011
|
-
}): Promise<void>;
|
|
1012
|
-
/**
|
|
1013
|
-
* Simulate exit
|
|
692
|
+
* Simulate burn
|
|
1014
693
|
* Returns gas estimate and result without sending transaction
|
|
1015
694
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1016
695
|
*/
|
|
1017
|
-
|
|
696
|
+
burn(_account: `0x${string}`, _burnAmount: bigint, options?: {
|
|
1018
697
|
accessList?: import("viem").AccessList;
|
|
1019
698
|
authorizationList?: import("viem").AuthorizationList;
|
|
1020
699
|
chain?: import("viem").Chain | null;
|
|
@@ -1025,20 +704,13 @@ export declare class BoringVault_json {
|
|
|
1025
704
|
maxPriorityFeePerGas?: bigint;
|
|
1026
705
|
nonce?: number;
|
|
1027
706
|
value?: bigint;
|
|
1028
|
-
}): Promise<
|
|
1029
|
-
/**
|
|
1030
|
-
* Simulate manage
|
|
1031
|
-
* Returns gas estimate and result without sending transaction
|
|
1032
|
-
* Supports multiple overloads: (address[], bytes[], uint256[]), (address, bytes, uint256)
|
|
1033
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1034
|
-
*/
|
|
1035
|
-
manage(...args: any[]): Promise<any>;
|
|
707
|
+
}): Promise<bigint>;
|
|
1036
708
|
/**
|
|
1037
|
-
* Simulate
|
|
709
|
+
* Simulate burnShares
|
|
1038
710
|
* Returns gas estimate and result without sending transaction
|
|
1039
711
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1040
712
|
*/
|
|
1041
|
-
|
|
713
|
+
burnShares(_account: `0x${string}`, _sharesAmount: bigint, options?: {
|
|
1042
714
|
accessList?: import("viem").AccessList;
|
|
1043
715
|
authorizationList?: import("viem").AuthorizationList;
|
|
1044
716
|
chain?: import("viem").Chain | null;
|
|
@@ -1049,13 +721,13 @@ export declare class BoringVault_json {
|
|
|
1049
721
|
maxPriorityFeePerGas?: bigint;
|
|
1050
722
|
nonce?: number;
|
|
1051
723
|
value?: bigint;
|
|
1052
|
-
}): Promise
|
|
724
|
+
}): Promise<bigint>;
|
|
1053
725
|
/**
|
|
1054
|
-
* Simulate
|
|
726
|
+
* Simulate decreaseAllowance
|
|
1055
727
|
* Returns gas estimate and result without sending transaction
|
|
1056
728
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1057
729
|
*/
|
|
1058
|
-
|
|
730
|
+
decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
|
|
1059
731
|
accessList?: import("viem").AccessList;
|
|
1060
732
|
authorizationList?: import("viem").AuthorizationList;
|
|
1061
733
|
chain?: import("viem").Chain | null;
|
|
@@ -1066,47 +738,13 @@ export declare class BoringVault_json {
|
|
|
1066
738
|
maxPriorityFeePerGas?: bigint;
|
|
1067
739
|
nonce?: number;
|
|
1068
740
|
value?: bigint;
|
|
1069
|
-
}): Promise
|
|
1070
|
-
/**
|
|
1071
|
-
* Simulate onERC721Received
|
|
1072
|
-
* Returns gas estimate and result without sending transaction
|
|
1073
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1074
|
-
*/
|
|
1075
|
-
onERC721Received(arg0: `0x${string}`, arg1: `0x${string}`, arg2: bigint, arg3: `0x${string}`, options?: {
|
|
1076
|
-
accessList?: import("viem").AccessList;
|
|
1077
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
1078
|
-
chain?: import("viem").Chain | null;
|
|
1079
|
-
dataSuffix?: `0x${string}`;
|
|
1080
|
-
gas?: bigint;
|
|
1081
|
-
gasPrice?: bigint;
|
|
1082
|
-
maxFeePerGas?: bigint;
|
|
1083
|
-
maxPriorityFeePerGas?: bigint;
|
|
1084
|
-
nonce?: number;
|
|
1085
|
-
value?: bigint;
|
|
1086
|
-
}): Promise<`0x${string}`>;
|
|
1087
|
-
/**
|
|
1088
|
-
* Simulate permit
|
|
1089
|
-
* Returns gas estimate and result without sending transaction
|
|
1090
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1091
|
-
*/
|
|
1092
|
-
permit(owner: `0x${string}`, spender: `0x${string}`, value: bigint, deadline: bigint, v: bigint, r: `0x${string}`, s: `0x${string}`, options?: {
|
|
1093
|
-
accessList?: import("viem").AccessList;
|
|
1094
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
1095
|
-
chain?: import("viem").Chain | null;
|
|
1096
|
-
dataSuffix?: `0x${string}`;
|
|
1097
|
-
gas?: bigint;
|
|
1098
|
-
gasPrice?: bigint;
|
|
1099
|
-
maxFeePerGas?: bigint;
|
|
1100
|
-
maxPriorityFeePerGas?: bigint;
|
|
1101
|
-
nonce?: number;
|
|
1102
|
-
value?: bigint;
|
|
1103
|
-
}): Promise<void>;
|
|
741
|
+
}): Promise<boolean>;
|
|
1104
742
|
/**
|
|
1105
|
-
* Simulate
|
|
743
|
+
* Simulate increaseAllowance
|
|
1106
744
|
* Returns gas estimate and result without sending transaction
|
|
1107
745
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1108
746
|
*/
|
|
1109
|
-
|
|
747
|
+
increaseAllowance(_spender: `0x${string}`, _addedValue: bigint, options?: {
|
|
1110
748
|
accessList?: import("viem").AccessList;
|
|
1111
749
|
authorizationList?: import("viem").AuthorizationList;
|
|
1112
750
|
chain?: import("viem").Chain | null;
|
|
@@ -1117,13 +755,13 @@ export declare class BoringVault_json {
|
|
|
1117
755
|
maxPriorityFeePerGas?: bigint;
|
|
1118
756
|
nonce?: number;
|
|
1119
757
|
value?: bigint;
|
|
1120
|
-
}): Promise<
|
|
758
|
+
}): Promise<boolean>;
|
|
1121
759
|
/**
|
|
1122
|
-
* Simulate
|
|
760
|
+
* Simulate mint
|
|
1123
761
|
* Returns gas estimate and result without sending transaction
|
|
1124
762
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1125
763
|
*/
|
|
1126
|
-
|
|
764
|
+
mint(_recipient: `0x${string}`, _mintAmount: bigint, options?: {
|
|
1127
765
|
accessList?: import("viem").AccessList;
|
|
1128
766
|
authorizationList?: import("viem").AuthorizationList;
|
|
1129
767
|
chain?: import("viem").Chain | null;
|
|
@@ -1134,13 +772,13 @@ export declare class BoringVault_json {
|
|
|
1134
772
|
maxPriorityFeePerGas?: bigint;
|
|
1135
773
|
nonce?: number;
|
|
1136
774
|
value?: bigint;
|
|
1137
|
-
}): Promise<
|
|
775
|
+
}): Promise<bigint>;
|
|
1138
776
|
/**
|
|
1139
777
|
* Simulate transfer
|
|
1140
778
|
* Returns gas estimate and result without sending transaction
|
|
1141
779
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1142
780
|
*/
|
|
1143
|
-
transfer(
|
|
781
|
+
transfer(_recipient: `0x${string}`, _amount: bigint, options?: {
|
|
1144
782
|
accessList?: import("viem").AccessList;
|
|
1145
783
|
authorizationList?: import("viem").AuthorizationList;
|
|
1146
784
|
chain?: import("viem").Chain | null;
|
|
@@ -1170,11 +808,11 @@ export declare class BoringVault_json {
|
|
|
1170
808
|
value?: bigint;
|
|
1171
809
|
}): Promise<boolean>;
|
|
1172
810
|
/**
|
|
1173
|
-
* Simulate
|
|
811
|
+
* Simulate transferShares
|
|
1174
812
|
* Returns gas estimate and result without sending transaction
|
|
1175
813
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1176
814
|
*/
|
|
1177
|
-
|
|
815
|
+
transferShares(_recipient: `0x${string}`, _sharesAmount: bigint, options?: {
|
|
1178
816
|
accessList?: import("viem").AccessList;
|
|
1179
817
|
authorizationList?: import("viem").AuthorizationList;
|
|
1180
818
|
chain?: import("viem").Chain | null;
|
|
@@ -1185,7 +823,7 @@ export declare class BoringVault_json {
|
|
|
1185
823
|
maxPriorityFeePerGas?: bigint;
|
|
1186
824
|
nonce?: number;
|
|
1187
825
|
value?: bigint;
|
|
1188
|
-
}): Promise<
|
|
826
|
+
}): Promise<bigint>;
|
|
1189
827
|
};
|
|
1190
828
|
/**
|
|
1191
829
|
* Watch contract events
|
|
@@ -1209,81 +847,49 @@ export declare class BoringVault_json {
|
|
|
1209
847
|
Approval: (callback: (event: {
|
|
1210
848
|
owner: `0x${string}`;
|
|
1211
849
|
spender: `0x${string}`;
|
|
1212
|
-
|
|
850
|
+
value: bigint;
|
|
1213
851
|
}) => void, filter?: {
|
|
1214
852
|
owner: `0x${string}`;
|
|
1215
853
|
spender: `0x${string}`;
|
|
1216
854
|
}) => () => void;
|
|
1217
855
|
/**
|
|
1218
|
-
* Watch
|
|
856
|
+
* Watch SharesBurnt events
|
|
1219
857
|
* @param callback Function to call when event is emitted
|
|
1220
858
|
* @param filter Optional filter for indexed parameters
|
|
1221
859
|
* @returns Unwatch function to stop listening
|
|
1222
860
|
*/
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
861
|
+
SharesBurnt: (callback: (event: {
|
|
862
|
+
account: `0x${string}`;
|
|
863
|
+
preRebaseTokenAmount: bigint;
|
|
864
|
+
postRebaseTokenAmount: bigint;
|
|
865
|
+
sharesAmount: bigint;
|
|
1226
866
|
}) => void, filter?: {
|
|
1227
|
-
|
|
1228
|
-
newAuthority: `0x${string}`;
|
|
867
|
+
account: `0x${string}`;
|
|
1229
868
|
}) => () => void;
|
|
1230
869
|
/**
|
|
1231
|
-
* Watch
|
|
870
|
+
* Watch Transfer events
|
|
1232
871
|
* @param callback Function to call when event is emitted
|
|
1233
872
|
* @param filter Optional filter for indexed parameters
|
|
1234
873
|
* @returns Unwatch function to stop listening
|
|
1235
874
|
*/
|
|
1236
|
-
|
|
875
|
+
Transfer: (callback: (event: {
|
|
1237
876
|
from: `0x${string}`;
|
|
1238
|
-
asset: `0x${string}`;
|
|
1239
877
|
to: `0x${string}`;
|
|
1240
|
-
|
|
1241
|
-
shares: bigint;
|
|
878
|
+
value: bigint;
|
|
1242
879
|
}) => void, filter?: {
|
|
1243
880
|
from: `0x${string}`;
|
|
1244
|
-
asset: `0x${string}`;
|
|
1245
881
|
to: `0x${string}`;
|
|
1246
882
|
}) => () => void;
|
|
1247
883
|
/**
|
|
1248
|
-
* Watch
|
|
884
|
+
* Watch TransferShares events
|
|
1249
885
|
* @param callback Function to call when event is emitted
|
|
1250
886
|
* @param filter Optional filter for indexed parameters
|
|
1251
887
|
* @returns Unwatch function to stop listening
|
|
1252
888
|
*/
|
|
1253
|
-
|
|
1254
|
-
to: `0x${string}`;
|
|
1255
|
-
asset: `0x${string}`;
|
|
1256
|
-
from: `0x${string}`;
|
|
1257
|
-
amount: bigint;
|
|
1258
|
-
shares: bigint;
|
|
1259
|
-
}) => void, filter?: {
|
|
1260
|
-
to: `0x${string}`;
|
|
1261
|
-
asset: `0x${string}`;
|
|
1262
|
-
from: `0x${string}`;
|
|
1263
|
-
}) => () => void;
|
|
1264
|
-
/**
|
|
1265
|
-
* Watch OwnershipTransferred events
|
|
1266
|
-
* @param callback Function to call when event is emitted
|
|
1267
|
-
* @param filter Optional filter for indexed parameters
|
|
1268
|
-
* @returns Unwatch function to stop listening
|
|
1269
|
-
*/
|
|
1270
|
-
OwnershipTransferred: (callback: (event: {
|
|
1271
|
-
user: `0x${string}`;
|
|
1272
|
-
newOwner: `0x${string}`;
|
|
1273
|
-
}) => void, filter?: {
|
|
1274
|
-
user: `0x${string}`;
|
|
1275
|
-
newOwner: `0x${string}`;
|
|
1276
|
-
}) => () => void;
|
|
1277
|
-
/**
|
|
1278
|
-
* Watch Transfer events
|
|
1279
|
-
* @param callback Function to call when event is emitted
|
|
1280
|
-
* @param filter Optional filter for indexed parameters
|
|
1281
|
-
* @returns Unwatch function to stop listening
|
|
1282
|
-
*/
|
|
1283
|
-
Transfer: (callback: (event: {
|
|
889
|
+
TransferShares: (callback: (event: {
|
|
1284
890
|
from: `0x${string}`;
|
|
1285
891
|
to: `0x${string}`;
|
|
1286
|
-
|
|
892
|
+
sharesValue: bigint;
|
|
1287
893
|
}) => void, filter?: {
|
|
1288
894
|
from: `0x${string}`;
|
|
1289
895
|
to: `0x${string}`;
|