@pufferfinance/puffer-sdk 1.6.1 → 1.7.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.
Files changed (87) hide show
  1. package/dist/api/puffer-client.cjs +1 -1
  2. package/dist/api/puffer-client.cjs.map +1 -1
  3. package/dist/api/puffer-client.d.ts +9 -3
  4. package/dist/api/puffer-client.js +65 -51
  5. package/dist/api/puffer-client.js.map +1 -1
  6. package/dist/contracts/abis/mainnet/Accountant.cjs +2 -0
  7. package/dist/contracts/abis/mainnet/Accountant.cjs.map +1 -0
  8. package/dist/contracts/abis/mainnet/Accountant.d.ts +521 -0
  9. package/dist/contracts/abis/mainnet/Accountant.js +494 -0
  10. package/dist/contracts/abis/mainnet/Accountant.js.map +1 -0
  11. package/dist/contracts/abis/mainnet/BoringVault.cjs +2 -0
  12. package/dist/contracts/abis/mainnet/BoringVault.cjs.map +1 -0
  13. package/dist/contracts/abis/mainnet/{PufToken.d.ts → BoringVault.d.ts} +395 -449
  14. package/dist/contracts/abis/mainnet/BoringVault.js +407 -0
  15. package/dist/contracts/abis/mainnet/BoringVault.js.map +1 -0
  16. package/dist/contracts/abis/mainnet/Teller.cjs +2 -0
  17. package/dist/contracts/abis/mainnet/Teller.cjs.map +1 -0
  18. package/dist/contracts/abis/mainnet/Teller.d.ts +541 -0
  19. package/dist/contracts/abis/mainnet/Teller.js +450 -0
  20. package/dist/contracts/abis/mainnet/Teller.js.map +1 -0
  21. package/dist/contracts/abis/nucleus-accountant-abis.cjs +2 -0
  22. package/dist/contracts/abis/nucleus-accountant-abis.cjs.map +1 -0
  23. package/dist/contracts/abis/nucleus-accountant-abis.d.ts +525 -0
  24. package/dist/contracts/abis/nucleus-accountant-abis.js +9 -0
  25. package/dist/contracts/abis/nucleus-accountant-abis.js.map +1 -0
  26. package/dist/contracts/abis/nucleus-boring-vault-abis.cjs +2 -0
  27. package/dist/contracts/abis/nucleus-boring-vault-abis.cjs.map +1 -0
  28. package/dist/contracts/abis/{puf-token-abis.d.ts → nucleus-boring-vault-abis.d.ts} +396 -450
  29. package/dist/contracts/abis/nucleus-boring-vault-abis.js +9 -0
  30. package/dist/contracts/abis/nucleus-boring-vault-abis.js.map +1 -0
  31. package/dist/contracts/abis/nucleus-teller-abis.cjs +2 -0
  32. package/dist/contracts/abis/nucleus-teller-abis.cjs.map +1 -0
  33. package/dist/contracts/abis/nucleus-teller-abis.d.ts +545 -0
  34. package/dist/contracts/abis/nucleus-teller-abis.js +9 -0
  35. package/dist/contracts/abis/nucleus-teller-abis.js.map +1 -0
  36. package/dist/contracts/addresses.cjs +1 -1
  37. package/dist/contracts/addresses.cjs.map +1 -1
  38. package/dist/contracts/addresses.d.ts +6 -0
  39. package/dist/contracts/addresses.js +15 -8
  40. package/dist/contracts/addresses.js.map +1 -1
  41. package/dist/contracts/handlers/erc20-permit-handler.cjs +1 -1
  42. package/dist/contracts/handlers/erc20-permit-handler.cjs.map +1 -1
  43. package/dist/contracts/handlers/erc20-permit-handler.d.ts +2 -2
  44. package/dist/contracts/handlers/erc20-permit-handler.js +4 -4
  45. package/dist/contracts/handlers/erc20-permit-handler.js.map +1 -1
  46. package/dist/contracts/handlers/nucleus-accountant-handler.cjs +2 -0
  47. package/dist/contracts/handlers/nucleus-accountant-handler.cjs.map +1 -0
  48. package/dist/contracts/handlers/nucleus-accountant-handler.d.ts +6702 -0
  49. package/dist/contracts/handlers/nucleus-accountant-handler.js +81 -0
  50. package/dist/contracts/handlers/nucleus-accountant-handler.js.map +1 -0
  51. package/dist/contracts/handlers/nucleus-boring-vault-handler.cjs +2 -0
  52. package/dist/contracts/handlers/nucleus-boring-vault-handler.cjs.map +1 -0
  53. package/dist/contracts/handlers/{puf-token-handler.d.ts → nucleus-boring-vault-handler.d.ts} +463 -517
  54. package/dist/contracts/handlers/nucleus-boring-vault-handler.js +155 -0
  55. package/dist/contracts/handlers/nucleus-boring-vault-handler.js.map +1 -0
  56. package/dist/contracts/handlers/nucleus-teller-handler.cjs +2 -0
  57. package/dist/contracts/handlers/nucleus-teller-handler.cjs.map +1 -0
  58. package/dist/contracts/handlers/nucleus-teller-handler.d.ts +6764 -0
  59. package/dist/contracts/handlers/nucleus-teller-handler.js +145 -0
  60. package/dist/contracts/handlers/nucleus-teller-handler.js.map +1 -0
  61. package/dist/contracts/handlers/puf-locker-handler.cjs.map +1 -1
  62. package/dist/contracts/handlers/puf-locker-handler.d.ts +5 -5
  63. package/dist/contracts/handlers/puf-locker-handler.js.map +1 -1
  64. package/dist/contracts/tokens.cjs +1 -1
  65. package/dist/contracts/tokens.cjs.map +1 -1
  66. package/dist/contracts/tokens.d.ts +3 -24
  67. package/dist/contracts/tokens.js +38 -96
  68. package/dist/contracts/tokens.js.map +1 -1
  69. package/dist/main.cjs +1 -1
  70. package/dist/main.d.ts +0 -1
  71. package/dist/main.js +23 -26
  72. package/dist/main.js.map +1 -1
  73. package/dist/utils/version.cjs +1 -1
  74. package/dist/utils/version.js +1 -1
  75. package/package.json +1 -1
  76. package/dist/contracts/abis/mainnet/PufToken.cjs +0 -2
  77. package/dist/contracts/abis/mainnet/PufToken.cjs.map +0 -1
  78. package/dist/contracts/abis/mainnet/PufToken.js +0 -883
  79. package/dist/contracts/abis/mainnet/PufToken.js.map +0 -1
  80. package/dist/contracts/abis/puf-token-abis.cjs +0 -2
  81. package/dist/contracts/abis/puf-token-abis.cjs.map +0 -1
  82. package/dist/contracts/abis/puf-token-abis.js +0 -10
  83. package/dist/contracts/abis/puf-token-abis.js.map +0 -1
  84. package/dist/contracts/handlers/puf-token-handler.cjs +0 -2
  85. package/dist/contracts/handlers/puf-token-handler.cjs.map +0 -1
  86. package/dist/contracts/handlers/puf-token-handler.js +0 -174
  87. package/dist/contracts/handlers/puf-token-handler.js.map +0 -1
@@ -0,0 +1,9 @@
1
+ import { C as o } from "../../constants-rWWWhxR_.js";
2
+ import { BoringVault as r } from "./mainnet/BoringVault.js";
3
+ const n = {
4
+ [o.Mainnet]: { BoringVault: r }
5
+ };
6
+ export {
7
+ n as NUCLEUS_BORING_VAULT_ABIS
8
+ };
9
+ //# sourceMappingURL=nucleus-boring-vault-abis.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nucleus-boring-vault-abis.js","sources":["../../../lib/contracts/abis/nucleus-boring-vault-abis.ts"],"sourcesContent":["import { Chain } from '../../chains/constants';\nimport { BoringVault } from './mainnet/BoringVault';\n\nexport const NUCLEUS_BORING_VAULT_ABIS = {\n [Chain.Mainnet]: { BoringVault },\n};\n"],"names":["NUCLEUS_BORING_VAULT_ABIS","Chain","BoringVault"],"mappings":";;AAGO,MAAMA,IAA4B;AAAA,EACvC,CAACC,EAAM,OAAO,GAAG,EAAE,aAAAC,EAAY;AACjC;"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../constants-BvU-JhfL.cjs"),t=require("./mainnet/Teller.cjs"),n={[e.Chain.Mainnet]:{Teller:t.Teller}};exports.NUCLEUS_TELLER_ABIS=n;
2
+ //# sourceMappingURL=nucleus-teller-abis.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nucleus-teller-abis.cjs","sources":["../../../lib/contracts/abis/nucleus-teller-abis.ts"],"sourcesContent":["import { Chain } from '../../chains/constants';\nimport { Teller } from './mainnet/Teller';\n\nexport const NUCLEUS_TELLER_ABIS = {\n [Chain.Mainnet]: { Teller },\n};\n"],"names":["NUCLEUS_TELLER_ABIS","Chain","Teller"],"mappings":"kKAGaA,EAAsB,CACjC,CAACC,EAAA,MAAM,OAAO,EAAG,CAAA,OAAEC,QAAO,CAC5B"}
@@ -0,0 +1,545 @@
1
+ export declare const NUCLEUS_TELLER_ABIS: {
2
+ [x: number]: {
3
+ Teller: readonly [{
4
+ readonly inputs: readonly [{
5
+ readonly internalType: "address";
6
+ readonly name: "_owner";
7
+ readonly type: "address";
8
+ }, {
9
+ readonly internalType: "address";
10
+ readonly name: "_vault";
11
+ readonly type: "address";
12
+ }, {
13
+ readonly internalType: "address";
14
+ readonly name: "_accountant";
15
+ readonly type: "address";
16
+ }];
17
+ readonly stateMutability: "nonpayable";
18
+ readonly type: "constructor";
19
+ }, {
20
+ readonly inputs: readonly [];
21
+ readonly name: "TellerWithMultiAssetSupport__AssetNotSupported";
22
+ readonly type: "error";
23
+ }, {
24
+ readonly inputs: readonly [];
25
+ readonly name: "TellerWithMultiAssetSupport__BadDepositHash";
26
+ readonly type: "error";
27
+ }, {
28
+ readonly inputs: readonly [];
29
+ readonly name: "TellerWithMultiAssetSupport__MinimumAssetsNotMet";
30
+ readonly type: "error";
31
+ }, {
32
+ readonly inputs: readonly [];
33
+ readonly name: "TellerWithMultiAssetSupport__MinimumMintNotMet";
34
+ readonly type: "error";
35
+ }, {
36
+ readonly inputs: readonly [];
37
+ readonly name: "TellerWithMultiAssetSupport__Paused";
38
+ readonly type: "error";
39
+ }, {
40
+ readonly inputs: readonly [];
41
+ readonly name: "TellerWithMultiAssetSupport__PermitFailedAndAllowanceTooLow";
42
+ readonly type: "error";
43
+ }, {
44
+ readonly inputs: readonly [];
45
+ readonly name: "TellerWithMultiAssetSupport__ShareLockPeriodTooLong";
46
+ readonly type: "error";
47
+ }, {
48
+ readonly inputs: readonly [];
49
+ readonly name: "TellerWithMultiAssetSupport__SharesAreLocked";
50
+ readonly type: "error";
51
+ }, {
52
+ readonly inputs: readonly [];
53
+ readonly name: "TellerWithMultiAssetSupport__SharesAreUnLocked";
54
+ readonly type: "error";
55
+ }, {
56
+ readonly inputs: readonly [];
57
+ readonly name: "TellerWithMultiAssetSupport__ZeroAssets";
58
+ readonly type: "error";
59
+ }, {
60
+ readonly inputs: readonly [];
61
+ readonly name: "TellerWithMultiAssetSupport__ZeroShares";
62
+ readonly type: "error";
63
+ }, {
64
+ readonly anonymous: false;
65
+ readonly inputs: readonly [{
66
+ readonly indexed: true;
67
+ readonly internalType: "address";
68
+ readonly name: "asset";
69
+ readonly type: "address";
70
+ }];
71
+ readonly name: "AssetAdded";
72
+ readonly type: "event";
73
+ }, {
74
+ readonly anonymous: false;
75
+ readonly inputs: readonly [{
76
+ readonly indexed: true;
77
+ readonly internalType: "address";
78
+ readonly name: "asset";
79
+ readonly type: "address";
80
+ }];
81
+ readonly name: "AssetRemoved";
82
+ readonly type: "event";
83
+ }, {
84
+ readonly anonymous: false;
85
+ readonly inputs: readonly [{
86
+ readonly indexed: true;
87
+ readonly internalType: "address";
88
+ readonly name: "user";
89
+ readonly type: "address";
90
+ }, {
91
+ readonly indexed: true;
92
+ readonly internalType: "contract Authority";
93
+ readonly name: "newAuthority";
94
+ readonly type: "address";
95
+ }];
96
+ readonly name: "AuthorityUpdated";
97
+ readonly type: "event";
98
+ }, {
99
+ readonly anonymous: false;
100
+ readonly inputs: readonly [{
101
+ readonly indexed: true;
102
+ readonly internalType: "address";
103
+ readonly name: "asset";
104
+ readonly type: "address";
105
+ }, {
106
+ readonly indexed: false;
107
+ readonly internalType: "uint256";
108
+ readonly name: "depositAmount";
109
+ readonly type: "uint256";
110
+ }];
111
+ readonly name: "BulkDeposit";
112
+ readonly type: "event";
113
+ }, {
114
+ readonly anonymous: false;
115
+ readonly inputs: readonly [{
116
+ readonly indexed: true;
117
+ readonly internalType: "address";
118
+ readonly name: "asset";
119
+ readonly type: "address";
120
+ }, {
121
+ readonly indexed: false;
122
+ readonly internalType: "uint256";
123
+ readonly name: "shareAmount";
124
+ readonly type: "uint256";
125
+ }];
126
+ readonly name: "BulkWithdraw";
127
+ readonly type: "event";
128
+ }, {
129
+ readonly anonymous: false;
130
+ readonly inputs: readonly [{
131
+ readonly indexed: true;
132
+ readonly internalType: "uint256";
133
+ readonly name: "nonce";
134
+ readonly type: "uint256";
135
+ }, {
136
+ readonly indexed: true;
137
+ readonly internalType: "address";
138
+ readonly name: "receiver";
139
+ readonly type: "address";
140
+ }, {
141
+ readonly indexed: true;
142
+ readonly internalType: "address";
143
+ readonly name: "depositAsset";
144
+ readonly type: "address";
145
+ }, {
146
+ readonly indexed: false;
147
+ readonly internalType: "uint256";
148
+ readonly name: "depositAmount";
149
+ readonly type: "uint256";
150
+ }, {
151
+ readonly indexed: false;
152
+ readonly internalType: "uint256";
153
+ readonly name: "shareAmount";
154
+ readonly type: "uint256";
155
+ }, {
156
+ readonly indexed: false;
157
+ readonly internalType: "uint256";
158
+ readonly name: "depositTimestamp";
159
+ readonly type: "uint256";
160
+ }, {
161
+ readonly indexed: false;
162
+ readonly internalType: "uint256";
163
+ readonly name: "shareLockPeriodAtTimeOfDeposit";
164
+ readonly type: "uint256";
165
+ }];
166
+ readonly name: "Deposit";
167
+ readonly type: "event";
168
+ }, {
169
+ readonly anonymous: false;
170
+ readonly inputs: readonly [{
171
+ readonly indexed: true;
172
+ readonly internalType: "uint256";
173
+ readonly name: "nonce";
174
+ readonly type: "uint256";
175
+ }, {
176
+ readonly indexed: false;
177
+ readonly internalType: "bytes32";
178
+ readonly name: "depositHash";
179
+ readonly type: "bytes32";
180
+ }, {
181
+ readonly indexed: true;
182
+ readonly internalType: "address";
183
+ readonly name: "user";
184
+ readonly type: "address";
185
+ }];
186
+ readonly name: "DepositRefunded";
187
+ readonly type: "event";
188
+ }, {
189
+ readonly anonymous: false;
190
+ readonly inputs: readonly [{
191
+ readonly indexed: true;
192
+ readonly internalType: "address";
193
+ readonly name: "user";
194
+ readonly type: "address";
195
+ }, {
196
+ readonly indexed: true;
197
+ readonly internalType: "address";
198
+ readonly name: "newOwner";
199
+ readonly type: "address";
200
+ }];
201
+ readonly name: "OwnershipTransferred";
202
+ readonly type: "event";
203
+ }, {
204
+ readonly anonymous: false;
205
+ readonly inputs: readonly [];
206
+ readonly name: "Paused";
207
+ readonly type: "event";
208
+ }, {
209
+ readonly anonymous: false;
210
+ readonly inputs: readonly [];
211
+ readonly name: "Unpaused";
212
+ readonly type: "event";
213
+ }, {
214
+ readonly inputs: readonly [];
215
+ readonly name: "accountant";
216
+ readonly outputs: readonly [{
217
+ readonly internalType: "contract AccountantWithRateProviders";
218
+ readonly name: "";
219
+ readonly type: "address";
220
+ }];
221
+ readonly stateMutability: "view";
222
+ readonly type: "function";
223
+ }, {
224
+ readonly inputs: readonly [{
225
+ readonly internalType: "contract ERC20";
226
+ readonly name: "asset";
227
+ readonly type: "address";
228
+ }];
229
+ readonly name: "addAsset";
230
+ readonly outputs: readonly [];
231
+ readonly stateMutability: "nonpayable";
232
+ readonly type: "function";
233
+ }, {
234
+ readonly inputs: readonly [];
235
+ readonly name: "authority";
236
+ readonly outputs: readonly [{
237
+ readonly internalType: "contract Authority";
238
+ readonly name: "";
239
+ readonly type: "address";
240
+ }];
241
+ readonly stateMutability: "view";
242
+ readonly type: "function";
243
+ }, {
244
+ readonly inputs: readonly [{
245
+ readonly internalType: "address";
246
+ readonly name: "from";
247
+ readonly type: "address";
248
+ }];
249
+ readonly name: "beforeTransfer";
250
+ readonly outputs: readonly [];
251
+ readonly stateMutability: "view";
252
+ readonly type: "function";
253
+ }, {
254
+ readonly inputs: readonly [{
255
+ readonly internalType: "contract ERC20";
256
+ readonly name: "depositAsset";
257
+ readonly type: "address";
258
+ }, {
259
+ readonly internalType: "uint256";
260
+ readonly name: "depositAmount";
261
+ readonly type: "uint256";
262
+ }, {
263
+ readonly internalType: "uint256";
264
+ readonly name: "minimumMint";
265
+ readonly type: "uint256";
266
+ }, {
267
+ readonly internalType: "address";
268
+ readonly name: "to";
269
+ readonly type: "address";
270
+ }];
271
+ readonly name: "bulkDeposit";
272
+ readonly outputs: readonly [{
273
+ readonly internalType: "uint256";
274
+ readonly name: "shares";
275
+ readonly type: "uint256";
276
+ }];
277
+ readonly stateMutability: "nonpayable";
278
+ readonly type: "function";
279
+ }, {
280
+ readonly inputs: readonly [{
281
+ readonly internalType: "contract ERC20";
282
+ readonly name: "withdrawAsset";
283
+ readonly type: "address";
284
+ }, {
285
+ readonly internalType: "uint256";
286
+ readonly name: "shareAmount";
287
+ readonly type: "uint256";
288
+ }, {
289
+ readonly internalType: "uint256";
290
+ readonly name: "minimumAssets";
291
+ readonly type: "uint256";
292
+ }, {
293
+ readonly internalType: "address";
294
+ readonly name: "to";
295
+ readonly type: "address";
296
+ }];
297
+ readonly name: "bulkWithdraw";
298
+ readonly outputs: readonly [{
299
+ readonly internalType: "uint256";
300
+ readonly name: "assetsOut";
301
+ readonly type: "uint256";
302
+ }];
303
+ readonly stateMutability: "nonpayable";
304
+ readonly type: "function";
305
+ }, {
306
+ readonly inputs: readonly [{
307
+ readonly internalType: "contract ERC20";
308
+ readonly name: "depositAsset";
309
+ readonly type: "address";
310
+ }, {
311
+ readonly internalType: "uint256";
312
+ readonly name: "depositAmount";
313
+ readonly type: "uint256";
314
+ }, {
315
+ readonly internalType: "uint256";
316
+ readonly name: "minimumMint";
317
+ readonly type: "uint256";
318
+ }];
319
+ readonly name: "deposit";
320
+ readonly outputs: readonly [{
321
+ readonly internalType: "uint256";
322
+ readonly name: "shares";
323
+ readonly type: "uint256";
324
+ }];
325
+ readonly stateMutability: "nonpayable";
326
+ readonly type: "function";
327
+ }, {
328
+ readonly inputs: readonly [];
329
+ readonly name: "depositNonce";
330
+ readonly outputs: readonly [{
331
+ readonly internalType: "uint96";
332
+ readonly name: "";
333
+ readonly type: "uint96";
334
+ }];
335
+ readonly stateMutability: "view";
336
+ readonly type: "function";
337
+ }, {
338
+ readonly inputs: readonly [{
339
+ readonly internalType: "contract ERC20";
340
+ readonly name: "depositAsset";
341
+ readonly type: "address";
342
+ }, {
343
+ readonly internalType: "uint256";
344
+ readonly name: "depositAmount";
345
+ readonly type: "uint256";
346
+ }, {
347
+ readonly internalType: "uint256";
348
+ readonly name: "minimumMint";
349
+ readonly type: "uint256";
350
+ }, {
351
+ readonly internalType: "uint256";
352
+ readonly name: "deadline";
353
+ readonly type: "uint256";
354
+ }, {
355
+ readonly internalType: "uint8";
356
+ readonly name: "v";
357
+ readonly type: "uint8";
358
+ }, {
359
+ readonly internalType: "bytes32";
360
+ readonly name: "r";
361
+ readonly type: "bytes32";
362
+ }, {
363
+ readonly internalType: "bytes32";
364
+ readonly name: "s";
365
+ readonly type: "bytes32";
366
+ }];
367
+ readonly name: "depositWithPermit";
368
+ readonly outputs: readonly [{
369
+ readonly internalType: "uint256";
370
+ readonly name: "shares";
371
+ readonly type: "uint256";
372
+ }];
373
+ readonly stateMutability: "nonpayable";
374
+ readonly type: "function";
375
+ }, {
376
+ readonly inputs: readonly [];
377
+ readonly name: "isPaused";
378
+ readonly outputs: readonly [{
379
+ readonly internalType: "bool";
380
+ readonly name: "";
381
+ readonly type: "bool";
382
+ }];
383
+ readonly stateMutability: "view";
384
+ readonly type: "function";
385
+ }, {
386
+ readonly inputs: readonly [{
387
+ readonly internalType: "contract ERC20";
388
+ readonly name: "";
389
+ readonly type: "address";
390
+ }];
391
+ readonly name: "isSupported";
392
+ readonly outputs: readonly [{
393
+ readonly internalType: "bool";
394
+ readonly name: "";
395
+ readonly type: "bool";
396
+ }];
397
+ readonly stateMutability: "view";
398
+ readonly type: "function";
399
+ }, {
400
+ readonly inputs: readonly [];
401
+ readonly name: "owner";
402
+ readonly outputs: readonly [{
403
+ readonly internalType: "address";
404
+ readonly name: "";
405
+ readonly type: "address";
406
+ }];
407
+ readonly stateMutability: "view";
408
+ readonly type: "function";
409
+ }, {
410
+ readonly inputs: readonly [];
411
+ readonly name: "pause";
412
+ readonly outputs: readonly [];
413
+ readonly stateMutability: "nonpayable";
414
+ readonly type: "function";
415
+ }, {
416
+ readonly inputs: readonly [{
417
+ readonly internalType: "uint256";
418
+ readonly name: "";
419
+ readonly type: "uint256";
420
+ }];
421
+ readonly name: "publicDepositHistory";
422
+ readonly outputs: readonly [{
423
+ readonly internalType: "bytes32";
424
+ readonly name: "";
425
+ readonly type: "bytes32";
426
+ }];
427
+ readonly stateMutability: "view";
428
+ readonly type: "function";
429
+ }, {
430
+ readonly inputs: readonly [{
431
+ readonly internalType: "uint256";
432
+ readonly name: "nonce";
433
+ readonly type: "uint256";
434
+ }, {
435
+ readonly internalType: "address";
436
+ readonly name: "receiver";
437
+ readonly type: "address";
438
+ }, {
439
+ readonly internalType: "address";
440
+ readonly name: "depositAsset";
441
+ readonly type: "address";
442
+ }, {
443
+ readonly internalType: "uint256";
444
+ readonly name: "depositAmount";
445
+ readonly type: "uint256";
446
+ }, {
447
+ readonly internalType: "uint256";
448
+ readonly name: "shareAmount";
449
+ readonly type: "uint256";
450
+ }, {
451
+ readonly internalType: "uint256";
452
+ readonly name: "depositTimestamp";
453
+ readonly type: "uint256";
454
+ }, {
455
+ readonly internalType: "uint256";
456
+ readonly name: "shareLockUpPeriodAtTimeOfDeposit";
457
+ readonly type: "uint256";
458
+ }];
459
+ readonly name: "refundDeposit";
460
+ readonly outputs: readonly [];
461
+ readonly stateMutability: "nonpayable";
462
+ readonly type: "function";
463
+ }, {
464
+ readonly inputs: readonly [{
465
+ readonly internalType: "contract ERC20";
466
+ readonly name: "asset";
467
+ readonly type: "address";
468
+ }];
469
+ readonly name: "removeAsset";
470
+ readonly outputs: readonly [];
471
+ readonly stateMutability: "nonpayable";
472
+ readonly type: "function";
473
+ }, {
474
+ readonly inputs: readonly [{
475
+ readonly internalType: "contract Authority";
476
+ readonly name: "newAuthority";
477
+ readonly type: "address";
478
+ }];
479
+ readonly name: "setAuthority";
480
+ readonly outputs: readonly [];
481
+ readonly stateMutability: "nonpayable";
482
+ readonly type: "function";
483
+ }, {
484
+ readonly inputs: readonly [{
485
+ readonly internalType: "uint64";
486
+ readonly name: "_shareLockPeriod";
487
+ readonly type: "uint64";
488
+ }];
489
+ readonly name: "setShareLockPeriod";
490
+ readonly outputs: readonly [];
491
+ readonly stateMutability: "nonpayable";
492
+ readonly type: "function";
493
+ }, {
494
+ readonly inputs: readonly [];
495
+ readonly name: "shareLockPeriod";
496
+ readonly outputs: readonly [{
497
+ readonly internalType: "uint64";
498
+ readonly name: "";
499
+ readonly type: "uint64";
500
+ }];
501
+ readonly stateMutability: "view";
502
+ readonly type: "function";
503
+ }, {
504
+ readonly inputs: readonly [{
505
+ readonly internalType: "address";
506
+ readonly name: "";
507
+ readonly type: "address";
508
+ }];
509
+ readonly name: "shareUnlockTime";
510
+ readonly outputs: readonly [{
511
+ readonly internalType: "uint256";
512
+ readonly name: "";
513
+ readonly type: "uint256";
514
+ }];
515
+ readonly stateMutability: "view";
516
+ readonly type: "function";
517
+ }, {
518
+ readonly inputs: readonly [{
519
+ readonly internalType: "address";
520
+ readonly name: "newOwner";
521
+ readonly type: "address";
522
+ }];
523
+ readonly name: "transferOwnership";
524
+ readonly outputs: readonly [];
525
+ readonly stateMutability: "nonpayable";
526
+ readonly type: "function";
527
+ }, {
528
+ readonly inputs: readonly [];
529
+ readonly name: "unpause";
530
+ readonly outputs: readonly [];
531
+ readonly stateMutability: "nonpayable";
532
+ readonly type: "function";
533
+ }, {
534
+ readonly inputs: readonly [];
535
+ readonly name: "vault";
536
+ readonly outputs: readonly [{
537
+ readonly internalType: "contract BoringVault";
538
+ readonly name: "";
539
+ readonly type: "address";
540
+ }];
541
+ readonly stateMutability: "view";
542
+ readonly type: "function";
543
+ }];
544
+ };
545
+ };
@@ -0,0 +1,9 @@
1
+ import { C as o } from "../../constants-rWWWhxR_.js";
2
+ import { Teller as r } from "./mainnet/Teller.js";
3
+ const i = {
4
+ [o.Mainnet]: { Teller: r }
5
+ };
6
+ export {
7
+ i as NUCLEUS_TELLER_ABIS
8
+ };
9
+ //# sourceMappingURL=nucleus-teller-abis.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nucleus-teller-abis.js","sources":["../../../lib/contracts/abis/nucleus-teller-abis.ts"],"sourcesContent":["import { Chain } from '../../chains/constants';\nimport { Teller } from './mainnet/Teller';\n\nexport const NUCLEUS_TELLER_ABIS = {\n [Chain.Mainnet]: { Teller },\n};\n"],"names":["NUCLEUS_TELLER_ABIS","Chain","Teller"],"mappings":";;AAGO,MAAMA,IAAsB;AAAA,EACjC,CAACC,EAAM,OAAO,GAAG,EAAE,QAAAC,EAAO;AAC5B;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../constants-BvU-JhfL.cjs"),e={[a.Chain.Mainnet]:{PufferVault:"0xD9A442856C234a39a81a089C06451EBAa4306a72",PufferDepositor:"0x4aa799c5dfc01ee7d790e3bf1a7c2257ce1dceff",PufferL2Depositor:"0x3436E0B85cd929929F5802e792CFE282166E0259",PufLocker:"0x48e8dE138C246c14248C94d2D616a2F9eb4590D2",L1RewardManager:"0x157788cc028Ac6405bD406f2D1e0A8A22b3cf17b",L2RewardManager:"0x0000000000000000000000000000000000000000",PufferWithdrawalManager:"0x8a253974f1de9f64d79f1eaaf850faf406802fce"},[a.Chain.Holesky]:{PufferVault:"0x9196830bB4c05504E0A8475A0aD566AceEB6BeC9",PufferDepositor:"0x824AC05aeb86A0aD770b8acDe0906d2d4a6c4A8c",PufferL2Depositor:"0x0af6998e4828ad8ef8f79a9288d0a861890f791d",PufLocker:"0xa58983ad0899a452b7420bc57228e329d7ba92b6",L1RewardManager:"0x10f970bcb84B82B82a65eBCbF45F26dD26D69F12",L2RewardManager:"0x58C046794f69A8830b0BE737022a45b4acd01dE5",PufferWithdrawalManager:"0x5A3E1069B66800c0ecbc91bd81b1AE4D1804DBc4"},[a.Chain.Base]:{L2RewardManager:"0xF9Dd335bF363b2E4ecFe3c94A86EBD7Dd3Dcf0e7"}};exports.CONTRACT_ADDRESSES=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../constants-BvU-JhfL.cjs"),a={[e.Chain.Mainnet]:{PufferVault:"0xD9A442856C234a39a81a089C06451EBAa4306a72",PufferDepositor:"0x4aa799c5dfc01ee7d790e3bf1a7c2257ce1dceff",PufferL2Depositor:"0x3436E0B85cd929929F5802e792CFE282166E0259",PufLocker:"0x48e8dE138C246c14248C94d2D616a2F9eb4590D2",L1RewardManager:"0x157788cc028Ac6405bD406f2D1e0A8A22b3cf17b",L2RewardManager:"0x0000000000000000000000000000000000000000",PufferWithdrawalManager:"0x8a253974f1de9f64d79f1eaaf850faf406802fce",NucleusBoringVault:"0x196ead472583bc1e9af7a05f860d9857e1bd3dcc",NucleusAccountant:"0xa9fb7e2922216debe3fd5e1bbe7591ee446dc21c",NucleusTeller:"0x08eb2eccdf6ebd7aba601791f23ec5b5f68a1d53"},[e.Chain.Holesky]:{PufferVault:"0x9196830bB4c05504E0A8475A0aD566AceEB6BeC9",PufferDepositor:"0x824AC05aeb86A0aD770b8acDe0906d2d4a6c4A8c",PufferL2Depositor:"0x0af6998e4828ad8ef8f79a9288d0a861890f791d",PufLocker:"0xa58983ad0899a452b7420bc57228e329d7ba92b6",L1RewardManager:"0x10f970bcb84B82B82a65eBCbF45F26dD26D69F12",L2RewardManager:"0x58C046794f69A8830b0BE737022a45b4acd01dE5",PufferWithdrawalManager:"0x5A3E1069B66800c0ecbc91bd81b1AE4D1804DBc4",NucleusBoringVault:"0x0000000000000000000000000000000000000000",NucleusAccountant:"0x0000000000000000000000000000000000000000",NucleusTeller:"0x0000000000000000000000000000000000000000"},[e.Chain.Base]:{L2RewardManager:"0xF9Dd335bF363b2E4ecFe3c94A86EBD7Dd3Dcf0e7"}};exports.CONTRACT_ADDRESSES=a;
2
2
  //# sourceMappingURL=addresses.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"addresses.cjs","sources":["../../lib/contracts/addresses.ts"],"sourcesContent":["import { Chain } from '../chains/constants';\n\n// Source of truth:\n// https://github.com/PufferFinance/Deployments-and-ACL/tree/main/docs/deployments\nexport const CONTRACT_ADDRESSES = {\n [Chain.Mainnet]: {\n PufferVault: '0xD9A442856C234a39a81a089C06451EBAa4306a72',\n PufferDepositor: '0x4aa799c5dfc01ee7d790e3bf1a7c2257ce1dceff',\n PufferL2Depositor: '0x3436E0B85cd929929F5802e792CFE282166E0259',\n PufLocker: '0x48e8dE138C246c14248C94d2D616a2F9eb4590D2',\n L1RewardManager: '0x157788cc028Ac6405bD406f2D1e0A8A22b3cf17b',\n // L2RewardManager is not deployed to mainnet but base.\n L2RewardManager: '0x0000000000000000000000000000000000000000',\n // Deployed on a fork\n // https://dashboard.tenderly.co/explorer/fork/f7fd7621-7280-47e5-8521-81b24142814f/transactions.\n PufferWithdrawalManager: '0x8a253974f1de9f64d79f1eaaf850faf406802fce',\n },\n [Chain.Holesky]: {\n PufferVault: '0x9196830bB4c05504E0A8475A0aD566AceEB6BeC9',\n PufferDepositor: '0x824AC05aeb86A0aD770b8acDe0906d2d4a6c4A8c',\n PufferL2Depositor: '0x0af6998e4828ad8ef8f79a9288d0a861890f791d',\n PufLocker: '0xa58983ad0899a452b7420bc57228e329d7ba92b6',\n L1RewardManager: '0x10f970bcb84B82B82a65eBCbF45F26dD26D69F12',\n L2RewardManager: '0x58C046794f69A8830b0BE737022a45b4acd01dE5',\n PufferWithdrawalManager: '0x5A3E1069B66800c0ecbc91bd81b1AE4D1804DBc4',\n },\n [Chain.Base]: {\n L2RewardManager: '0xF9Dd335bF363b2E4ecFe3c94A86EBD7Dd3Dcf0e7',\n },\n};\n"],"names":["CONTRACT_ADDRESSES","Chain"],"mappings":"6HAIaA,EAAqB,CAChC,CAACC,EAAAA,MAAM,OAAO,EAAG,CACf,YAAa,6CACb,gBAAiB,6CACjB,kBAAmB,6CACnB,UAAW,6CACX,gBAAiB,6CAEjB,gBAAiB,6CAGjB,wBAAyB,4CAC3B,EACA,CAACA,EAAAA,MAAM,OAAO,EAAG,CACf,YAAa,6CACb,gBAAiB,6CACjB,kBAAmB,6CACnB,UAAW,6CACX,gBAAiB,6CACjB,gBAAiB,6CACjB,wBAAyB,4CAC3B,EACA,CAACA,EAAAA,MAAM,IAAI,EAAG,CACZ,gBAAiB,4CACnB,CACF"}
1
+ {"version":3,"file":"addresses.cjs","sources":["../../lib/contracts/addresses.ts"],"sourcesContent":["import { Chain } from '../chains/constants';\n\n// Source of truth:\n// https://github.com/PufferFinance/Deployments-and-ACL/tree/main/docs/deployments\nexport const CONTRACT_ADDRESSES = {\n [Chain.Mainnet]: {\n PufferVault: '0xD9A442856C234a39a81a089C06451EBAa4306a72',\n PufferDepositor: '0x4aa799c5dfc01ee7d790e3bf1a7c2257ce1dceff',\n PufferL2Depositor: '0x3436E0B85cd929929F5802e792CFE282166E0259',\n PufLocker: '0x48e8dE138C246c14248C94d2D616a2F9eb4590D2',\n L1RewardManager: '0x157788cc028Ac6405bD406f2D1e0A8A22b3cf17b',\n // L2RewardManager is not deployed to mainnet but base.\n L2RewardManager: '0x0000000000000000000000000000000000000000',\n // Deployed on a fork\n // https://dashboard.tenderly.co/explorer/fork/f7fd7621-7280-47e5-8521-81b24142814f/transactions.\n PufferWithdrawalManager: '0x8a253974f1de9f64d79f1eaaf850faf406802fce',\n NucleusBoringVault: '0x196ead472583bc1e9af7a05f860d9857e1bd3dcc',\n NucleusAccountant: '0xa9fb7e2922216debe3fd5e1bbe7591ee446dc21c',\n NucleusTeller: '0x08eb2eccdf6ebd7aba601791f23ec5b5f68a1d53',\n },\n [Chain.Holesky]: {\n PufferVault: '0x9196830bB4c05504E0A8475A0aD566AceEB6BeC9',\n PufferDepositor: '0x824AC05aeb86A0aD770b8acDe0906d2d4a6c4A8c',\n PufferL2Depositor: '0x0af6998e4828ad8ef8f79a9288d0a861890f791d',\n PufLocker: '0xa58983ad0899a452b7420bc57228e329d7ba92b6',\n L1RewardManager: '0x10f970bcb84B82B82a65eBCbF45F26dD26D69F12',\n L2RewardManager: '0x58C046794f69A8830b0BE737022a45b4acd01dE5',\n // Nucleus contracts are not deployed to holesky.\n PufferWithdrawalManager: '0x5A3E1069B66800c0ecbc91bd81b1AE4D1804DBc4',\n NucleusBoringVault: '0x0000000000000000000000000000000000000000',\n NucleusAccountant: '0x0000000000000000000000000000000000000000',\n NucleusTeller: '0x0000000000000000000000000000000000000000',\n },\n [Chain.Base]: {\n L2RewardManager: '0xF9Dd335bF363b2E4ecFe3c94A86EBD7Dd3Dcf0e7',\n },\n};\n"],"names":["CONTRACT_ADDRESSES","Chain"],"mappings":"6HAIaA,EAAqB,CAChC,CAACC,EAAAA,MAAM,OAAO,EAAG,CACf,YAAa,6CACb,gBAAiB,6CACjB,kBAAmB,6CACnB,UAAW,6CACX,gBAAiB,6CAEjB,gBAAiB,6CAGjB,wBAAyB,6CACzB,mBAAoB,6CACpB,kBAAmB,6CACnB,cAAe,4CACjB,EACA,CAACA,EAAAA,MAAM,OAAO,EAAG,CACf,YAAa,6CACb,gBAAiB,6CACjB,kBAAmB,6CACnB,UAAW,6CACX,gBAAiB,6CACjB,gBAAiB,6CAEjB,wBAAyB,6CACzB,mBAAoB,6CACpB,kBAAmB,6CACnB,cAAe,4CACjB,EACA,CAACA,EAAAA,MAAM,IAAI,EAAG,CACZ,gBAAiB,4CACnB,CACF"}
@@ -7,6 +7,9 @@ export declare const CONTRACT_ADDRESSES: {
7
7
  L1RewardManager: string;
8
8
  L2RewardManager: string;
9
9
  PufferWithdrawalManager: string;
10
+ NucleusBoringVault: string;
11
+ NucleusAccountant: string;
12
+ NucleusTeller: string;
10
13
  } | {
11
14
  L2RewardManager: string;
12
15
  PufferVault?: undefined;
@@ -15,5 +18,8 @@ export declare const CONTRACT_ADDRESSES: {
15
18
  PufLocker?: undefined;
16
19
  L1RewardManager?: undefined;
17
20
  PufferWithdrawalManager?: undefined;
21
+ NucleusBoringVault?: undefined;
22
+ NucleusAccountant?: undefined;
23
+ NucleusTeller?: undefined;
18
24
  };
19
25
  };
@@ -1,6 +1,6 @@
1
- import { C as a } from "../constants-rWWWhxR_.js";
2
- const f = {
3
- [a.Mainnet]: {
1
+ import { C as e } from "../constants-rWWWhxR_.js";
2
+ const c = {
3
+ [e.Mainnet]: {
4
4
  PufferVault: "0xD9A442856C234a39a81a089C06451EBAa4306a72",
5
5
  PufferDepositor: "0x4aa799c5dfc01ee7d790e3bf1a7c2257ce1dceff",
6
6
  PufferL2Depositor: "0x3436E0B85cd929929F5802e792CFE282166E0259",
@@ -10,22 +10,29 @@ const f = {
10
10
  L2RewardManager: "0x0000000000000000000000000000000000000000",
11
11
  // Deployed on a fork
12
12
  // https://dashboard.tenderly.co/explorer/fork/f7fd7621-7280-47e5-8521-81b24142814f/transactions.
13
- PufferWithdrawalManager: "0x8a253974f1de9f64d79f1eaaf850faf406802fce"
13
+ PufferWithdrawalManager: "0x8a253974f1de9f64d79f1eaaf850faf406802fce",
14
+ NucleusBoringVault: "0x196ead472583bc1e9af7a05f860d9857e1bd3dcc",
15
+ NucleusAccountant: "0xa9fb7e2922216debe3fd5e1bbe7591ee446dc21c",
16
+ NucleusTeller: "0x08eb2eccdf6ebd7aba601791f23ec5b5f68a1d53"
14
17
  },
15
- [a.Holesky]: {
18
+ [e.Holesky]: {
16
19
  PufferVault: "0x9196830bB4c05504E0A8475A0aD566AceEB6BeC9",
17
20
  PufferDepositor: "0x824AC05aeb86A0aD770b8acDe0906d2d4a6c4A8c",
18
21
  PufferL2Depositor: "0x0af6998e4828ad8ef8f79a9288d0a861890f791d",
19
22
  PufLocker: "0xa58983ad0899a452b7420bc57228e329d7ba92b6",
20
23
  L1RewardManager: "0x10f970bcb84B82B82a65eBCbF45F26dD26D69F12",
21
24
  L2RewardManager: "0x58C046794f69A8830b0BE737022a45b4acd01dE5",
22
- PufferWithdrawalManager: "0x5A3E1069B66800c0ecbc91bd81b1AE4D1804DBc4"
25
+ // Nucleus contracts are not deployed to holesky.
26
+ PufferWithdrawalManager: "0x5A3E1069B66800c0ecbc91bd81b1AE4D1804DBc4",
27
+ NucleusBoringVault: "0x0000000000000000000000000000000000000000",
28
+ NucleusAccountant: "0x0000000000000000000000000000000000000000",
29
+ NucleusTeller: "0x0000000000000000000000000000000000000000"
23
30
  },
24
- [a.Base]: {
31
+ [e.Base]: {
25
32
  L2RewardManager: "0xF9Dd335bF363b2E4ecFe3c94A86EBD7Dd3Dcf0e7"
26
33
  }
27
34
  };
28
35
  export {
29
- f as CONTRACT_ADDRESSES
36
+ c as CONTRACT_ADDRESSES
30
37
  };
31
38
  //# sourceMappingURL=addresses.js.map