@pufferfinance/puffer-sdk 1.1.0 → 1.2.0
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 +1 -1
- package/dist/api/puffer-client.d.ts +12 -0
- package/dist/{ccip-BERTKE3h.js → ccip-CzWPognK.js} +2 -2
- package/dist/{ccip-BERTKE3h.js.map → ccip-CzWPognK.js.map} +1 -1
- package/dist/{ccip-CsTi3xD2.cjs → ccip-DNUqn1xf.cjs} +2 -2
- package/dist/{ccip-CsTi3xD2.cjs.map → ccip-DNUqn1xf.cjs.map} +1 -1
- package/dist/contracts/abis/mainnet/PufLocker.d.ts +476 -0
- package/dist/contracts/abis/mainnet/PufToken.d.ts +676 -0
- package/dist/contracts/abis/mainnet/PufferL2Depositor.d.ts +351 -0
- package/dist/contracts/abis/puf-locker-abis.d.ts +480 -0
- package/dist/contracts/abis/puf-token-abis.d.ts +680 -0
- package/dist/contracts/abis/puffer-depositor-abis.d.ts +355 -0
- package/dist/contracts/addresses.d.ts +2 -0
- package/dist/contracts/handlers/erc20-permit-handler.d.ts +13705 -0
- package/dist/contracts/handlers/puf-locker-handler.d.ts +31064 -0
- package/dist/contracts/handlers/puf-locker-handler.test.d.ts +1 -0
- package/dist/contracts/handlers/puf-token-handler.test.d.ts +1 -0
- package/dist/contracts/handlers/puffer-depositor-handler.d.ts +9866 -4
- package/dist/contracts/handlers/puffer-l2-depositor-handler.d.ts +22867 -0
- package/dist/contracts/handlers/puffer-l2-depositor-handler.test.d.ts +1 -0
- package/dist/contracts/tokens.d.ts +14 -1
- package/dist/main--Ww95s5e.cjs +41 -0
- package/dist/main--Ww95s5e.cjs.map +1 -0
- package/dist/{main-CjjW4BLK.js → main-Cl9ZFxdC.js} +4728 -2629
- package/dist/main-Cl9ZFxdC.js.map +1 -0
- package/dist/main.cjs +1 -1
- package/dist/main.d.ts +1 -0
- package/dist/main.js +6 -5
- package/package.json +1 -1
- package/dist/contracts/handlers/puffer-vault-handler.d.ts +0 -62
- package/dist/contracts/handlers/tokens-handler.d.ts +0 -46
- package/dist/main-C4aA8dQe.cjs +0 -41
- package/dist/main-C4aA8dQe.cjs.map +0 -1
- package/dist/main-CjjW4BLK.js.map +0 -1
- /package/dist/contracts/handlers/{tokens-handler.test.d.ts → erc20-permit-handler.test.d.ts} +0 -0
|
@@ -285,3 +285,358 @@ export declare const PUFFER_DEPOSITOR_ABIS: {
|
|
|
285
285
|
}];
|
|
286
286
|
};
|
|
287
287
|
};
|
|
288
|
+
export declare const PUFFER_L2_DEPOSITOR_ABIS: {
|
|
289
|
+
[x: number]: {
|
|
290
|
+
PufferL2Depositor: readonly [{
|
|
291
|
+
readonly inputs: readonly [{
|
|
292
|
+
readonly internalType: "address";
|
|
293
|
+
readonly name: "accessManager";
|
|
294
|
+
readonly type: "address";
|
|
295
|
+
}, {
|
|
296
|
+
readonly internalType: "address";
|
|
297
|
+
readonly name: "weth";
|
|
298
|
+
readonly type: "address";
|
|
299
|
+
}];
|
|
300
|
+
readonly stateMutability: "nonpayable";
|
|
301
|
+
readonly type: "constructor";
|
|
302
|
+
}, {
|
|
303
|
+
readonly inputs: readonly [{
|
|
304
|
+
readonly internalType: "address";
|
|
305
|
+
readonly name: "authority";
|
|
306
|
+
readonly type: "address";
|
|
307
|
+
}];
|
|
308
|
+
readonly name: "AccessManagedInvalidAuthority";
|
|
309
|
+
readonly type: "error";
|
|
310
|
+
}, {
|
|
311
|
+
readonly inputs: readonly [{
|
|
312
|
+
readonly internalType: "address";
|
|
313
|
+
readonly name: "caller";
|
|
314
|
+
readonly type: "address";
|
|
315
|
+
}, {
|
|
316
|
+
readonly internalType: "uint32";
|
|
317
|
+
readonly name: "delay";
|
|
318
|
+
readonly type: "uint32";
|
|
319
|
+
}];
|
|
320
|
+
readonly name: "AccessManagedRequiredDelay";
|
|
321
|
+
readonly type: "error";
|
|
322
|
+
}, {
|
|
323
|
+
readonly inputs: readonly [{
|
|
324
|
+
readonly internalType: "address";
|
|
325
|
+
readonly name: "caller";
|
|
326
|
+
readonly type: "address";
|
|
327
|
+
}];
|
|
328
|
+
readonly name: "AccessManagedUnauthorized";
|
|
329
|
+
readonly type: "error";
|
|
330
|
+
}, {
|
|
331
|
+
readonly inputs: readonly [{
|
|
332
|
+
readonly internalType: "address";
|
|
333
|
+
readonly name: "target";
|
|
334
|
+
readonly type: "address";
|
|
335
|
+
}];
|
|
336
|
+
readonly name: "AddressEmptyCode";
|
|
337
|
+
readonly type: "error";
|
|
338
|
+
}, {
|
|
339
|
+
readonly inputs: readonly [{
|
|
340
|
+
readonly internalType: "address";
|
|
341
|
+
readonly name: "account";
|
|
342
|
+
readonly type: "address";
|
|
343
|
+
}];
|
|
344
|
+
readonly name: "AddressInsufficientBalance";
|
|
345
|
+
readonly type: "error";
|
|
346
|
+
}, {
|
|
347
|
+
readonly inputs: readonly [];
|
|
348
|
+
readonly name: "FailedInnerCall";
|
|
349
|
+
readonly type: "error";
|
|
350
|
+
}, {
|
|
351
|
+
readonly inputs: readonly [];
|
|
352
|
+
readonly name: "InvalidAccount";
|
|
353
|
+
readonly type: "error";
|
|
354
|
+
}, {
|
|
355
|
+
readonly inputs: readonly [];
|
|
356
|
+
readonly name: "InvalidToken";
|
|
357
|
+
readonly type: "error";
|
|
358
|
+
}, {
|
|
359
|
+
readonly inputs: readonly [{
|
|
360
|
+
readonly internalType: "address";
|
|
361
|
+
readonly name: "token";
|
|
362
|
+
readonly type: "address";
|
|
363
|
+
}];
|
|
364
|
+
readonly name: "SafeERC20FailedOperation";
|
|
365
|
+
readonly type: "error";
|
|
366
|
+
}, {
|
|
367
|
+
readonly anonymous: false;
|
|
368
|
+
readonly inputs: readonly [{
|
|
369
|
+
readonly indexed: false;
|
|
370
|
+
readonly internalType: "address";
|
|
371
|
+
readonly name: "authority";
|
|
372
|
+
readonly type: "address";
|
|
373
|
+
}];
|
|
374
|
+
readonly name: "AuthorityUpdated";
|
|
375
|
+
readonly type: "event";
|
|
376
|
+
}, {
|
|
377
|
+
readonly anonymous: false;
|
|
378
|
+
readonly inputs: readonly [{
|
|
379
|
+
readonly indexed: true;
|
|
380
|
+
readonly internalType: "address";
|
|
381
|
+
readonly name: "token";
|
|
382
|
+
readonly type: "address";
|
|
383
|
+
}, {
|
|
384
|
+
readonly indexed: false;
|
|
385
|
+
readonly internalType: "uint256";
|
|
386
|
+
readonly name: "oldDepositCap";
|
|
387
|
+
readonly type: "uint256";
|
|
388
|
+
}, {
|
|
389
|
+
readonly indexed: false;
|
|
390
|
+
readonly internalType: "uint256";
|
|
391
|
+
readonly name: "newDepositCap";
|
|
392
|
+
readonly type: "uint256";
|
|
393
|
+
}];
|
|
394
|
+
readonly name: "DepositCapUpdated";
|
|
395
|
+
readonly type: "event";
|
|
396
|
+
}, {
|
|
397
|
+
readonly anonymous: false;
|
|
398
|
+
readonly inputs: readonly [{
|
|
399
|
+
readonly indexed: true;
|
|
400
|
+
readonly internalType: "address";
|
|
401
|
+
readonly name: "token";
|
|
402
|
+
readonly type: "address";
|
|
403
|
+
}, {
|
|
404
|
+
readonly indexed: true;
|
|
405
|
+
readonly internalType: "address";
|
|
406
|
+
readonly name: "depositor";
|
|
407
|
+
readonly type: "address";
|
|
408
|
+
}, {
|
|
409
|
+
readonly indexed: true;
|
|
410
|
+
readonly internalType: "address";
|
|
411
|
+
readonly name: "account";
|
|
412
|
+
readonly type: "address";
|
|
413
|
+
}, {
|
|
414
|
+
readonly indexed: false;
|
|
415
|
+
readonly internalType: "uint256";
|
|
416
|
+
readonly name: "tokenAmount";
|
|
417
|
+
readonly type: "uint256";
|
|
418
|
+
}, {
|
|
419
|
+
readonly indexed: false;
|
|
420
|
+
readonly internalType: "uint256";
|
|
421
|
+
readonly name: "referralCode";
|
|
422
|
+
readonly type: "uint256";
|
|
423
|
+
}];
|
|
424
|
+
readonly name: "DepositedToken";
|
|
425
|
+
readonly type: "event";
|
|
426
|
+
}, {
|
|
427
|
+
readonly anonymous: false;
|
|
428
|
+
readonly inputs: readonly [{
|
|
429
|
+
readonly indexed: true;
|
|
430
|
+
readonly internalType: "address";
|
|
431
|
+
readonly name: "migrator";
|
|
432
|
+
readonly type: "address";
|
|
433
|
+
}, {
|
|
434
|
+
readonly indexed: false;
|
|
435
|
+
readonly internalType: "bool";
|
|
436
|
+
readonly name: "isAllowed";
|
|
437
|
+
readonly type: "bool";
|
|
438
|
+
}];
|
|
439
|
+
readonly name: "SetIsMigratorAllowed";
|
|
440
|
+
readonly type: "event";
|
|
441
|
+
}, {
|
|
442
|
+
readonly anonymous: false;
|
|
443
|
+
readonly inputs: readonly [{
|
|
444
|
+
readonly indexed: true;
|
|
445
|
+
readonly internalType: "address";
|
|
446
|
+
readonly name: "token";
|
|
447
|
+
readonly type: "address";
|
|
448
|
+
}, {
|
|
449
|
+
readonly indexed: false;
|
|
450
|
+
readonly internalType: "address";
|
|
451
|
+
readonly name: "pufToken";
|
|
452
|
+
readonly type: "address";
|
|
453
|
+
}];
|
|
454
|
+
readonly name: "TokenAdded";
|
|
455
|
+
readonly type: "event";
|
|
456
|
+
}, {
|
|
457
|
+
readonly anonymous: false;
|
|
458
|
+
readonly inputs: readonly [{
|
|
459
|
+
readonly indexed: true;
|
|
460
|
+
readonly internalType: "address";
|
|
461
|
+
readonly name: "token";
|
|
462
|
+
readonly type: "address";
|
|
463
|
+
}, {
|
|
464
|
+
readonly indexed: false;
|
|
465
|
+
readonly internalType: "address";
|
|
466
|
+
readonly name: "pufToken";
|
|
467
|
+
readonly type: "address";
|
|
468
|
+
}];
|
|
469
|
+
readonly name: "TokenRemoved";
|
|
470
|
+
readonly type: "event";
|
|
471
|
+
}, {
|
|
472
|
+
readonly inputs: readonly [];
|
|
473
|
+
readonly name: "WETH";
|
|
474
|
+
readonly outputs: readonly [{
|
|
475
|
+
readonly internalType: "address";
|
|
476
|
+
readonly name: "";
|
|
477
|
+
readonly type: "address";
|
|
478
|
+
}];
|
|
479
|
+
readonly stateMutability: "view";
|
|
480
|
+
readonly type: "function";
|
|
481
|
+
}, {
|
|
482
|
+
readonly inputs: readonly [{
|
|
483
|
+
readonly internalType: "address";
|
|
484
|
+
readonly name: "token";
|
|
485
|
+
readonly type: "address";
|
|
486
|
+
}];
|
|
487
|
+
readonly name: "addNewToken";
|
|
488
|
+
readonly outputs: readonly [];
|
|
489
|
+
readonly stateMutability: "nonpayable";
|
|
490
|
+
readonly type: "function";
|
|
491
|
+
}, {
|
|
492
|
+
readonly inputs: readonly [];
|
|
493
|
+
readonly name: "authority";
|
|
494
|
+
readonly outputs: readonly [{
|
|
495
|
+
readonly internalType: "address";
|
|
496
|
+
readonly name: "";
|
|
497
|
+
readonly type: "address";
|
|
498
|
+
}];
|
|
499
|
+
readonly stateMutability: "view";
|
|
500
|
+
readonly type: "function";
|
|
501
|
+
}, {
|
|
502
|
+
readonly inputs: readonly [{
|
|
503
|
+
readonly internalType: "address";
|
|
504
|
+
readonly name: "token";
|
|
505
|
+
readonly type: "address";
|
|
506
|
+
}, {
|
|
507
|
+
readonly internalType: "address";
|
|
508
|
+
readonly name: "account";
|
|
509
|
+
readonly type: "address";
|
|
510
|
+
}, {
|
|
511
|
+
readonly components: readonly [{
|
|
512
|
+
readonly internalType: "uint256";
|
|
513
|
+
readonly name: "deadline";
|
|
514
|
+
readonly type: "uint256";
|
|
515
|
+
}, {
|
|
516
|
+
readonly internalType: "uint256";
|
|
517
|
+
readonly name: "amount";
|
|
518
|
+
readonly type: "uint256";
|
|
519
|
+
}, {
|
|
520
|
+
readonly internalType: "uint8";
|
|
521
|
+
readonly name: "v";
|
|
522
|
+
readonly type: "uint8";
|
|
523
|
+
}, {
|
|
524
|
+
readonly internalType: "bytes32";
|
|
525
|
+
readonly name: "r";
|
|
526
|
+
readonly type: "bytes32";
|
|
527
|
+
}, {
|
|
528
|
+
readonly internalType: "bytes32";
|
|
529
|
+
readonly name: "s";
|
|
530
|
+
readonly type: "bytes32";
|
|
531
|
+
}];
|
|
532
|
+
readonly internalType: "struct Permit";
|
|
533
|
+
readonly name: "permitData";
|
|
534
|
+
readonly type: "tuple";
|
|
535
|
+
}, {
|
|
536
|
+
readonly internalType: "uint256";
|
|
537
|
+
readonly name: "referralCode";
|
|
538
|
+
readonly type: "uint256";
|
|
539
|
+
}];
|
|
540
|
+
readonly name: "deposit";
|
|
541
|
+
readonly outputs: readonly [];
|
|
542
|
+
readonly stateMutability: "nonpayable";
|
|
543
|
+
readonly type: "function";
|
|
544
|
+
}, {
|
|
545
|
+
readonly inputs: readonly [{
|
|
546
|
+
readonly internalType: "address";
|
|
547
|
+
readonly name: "account";
|
|
548
|
+
readonly type: "address";
|
|
549
|
+
}, {
|
|
550
|
+
readonly internalType: "uint256";
|
|
551
|
+
readonly name: "referralCode";
|
|
552
|
+
readonly type: "uint256";
|
|
553
|
+
}];
|
|
554
|
+
readonly name: "depositETH";
|
|
555
|
+
readonly outputs: readonly [];
|
|
556
|
+
readonly stateMutability: "payable";
|
|
557
|
+
readonly type: "function";
|
|
558
|
+
}, {
|
|
559
|
+
readonly inputs: readonly [{
|
|
560
|
+
readonly internalType: "address";
|
|
561
|
+
readonly name: "migrator";
|
|
562
|
+
readonly type: "address";
|
|
563
|
+
}];
|
|
564
|
+
readonly name: "isAllowedMigrator";
|
|
565
|
+
readonly outputs: readonly [{
|
|
566
|
+
readonly internalType: "bool";
|
|
567
|
+
readonly name: "isAllowed";
|
|
568
|
+
readonly type: "bool";
|
|
569
|
+
}];
|
|
570
|
+
readonly stateMutability: "view";
|
|
571
|
+
readonly type: "function";
|
|
572
|
+
}, {
|
|
573
|
+
readonly inputs: readonly [];
|
|
574
|
+
readonly name: "isConsumingScheduledOp";
|
|
575
|
+
readonly outputs: readonly [{
|
|
576
|
+
readonly internalType: "bytes4";
|
|
577
|
+
readonly name: "";
|
|
578
|
+
readonly type: "bytes4";
|
|
579
|
+
}];
|
|
580
|
+
readonly stateMutability: "view";
|
|
581
|
+
readonly type: "function";
|
|
582
|
+
}, {
|
|
583
|
+
readonly inputs: readonly [];
|
|
584
|
+
readonly name: "revertIfPaused";
|
|
585
|
+
readonly outputs: readonly [];
|
|
586
|
+
readonly stateMutability: "nonpayable";
|
|
587
|
+
readonly type: "function";
|
|
588
|
+
}, {
|
|
589
|
+
readonly inputs: readonly [{
|
|
590
|
+
readonly internalType: "address";
|
|
591
|
+
readonly name: "newAuthority";
|
|
592
|
+
readonly type: "address";
|
|
593
|
+
}];
|
|
594
|
+
readonly name: "setAuthority";
|
|
595
|
+
readonly outputs: readonly [];
|
|
596
|
+
readonly stateMutability: "nonpayable";
|
|
597
|
+
readonly type: "function";
|
|
598
|
+
}, {
|
|
599
|
+
readonly inputs: readonly [{
|
|
600
|
+
readonly internalType: "address";
|
|
601
|
+
readonly name: "token";
|
|
602
|
+
readonly type: "address";
|
|
603
|
+
}, {
|
|
604
|
+
readonly internalType: "uint256";
|
|
605
|
+
readonly name: "newDepositCap";
|
|
606
|
+
readonly type: "uint256";
|
|
607
|
+
}];
|
|
608
|
+
readonly name: "setDepositCap";
|
|
609
|
+
readonly outputs: readonly [];
|
|
610
|
+
readonly stateMutability: "nonpayable";
|
|
611
|
+
readonly type: "function";
|
|
612
|
+
}, {
|
|
613
|
+
readonly inputs: readonly [{
|
|
614
|
+
readonly internalType: "address";
|
|
615
|
+
readonly name: "migrator";
|
|
616
|
+
readonly type: "address";
|
|
617
|
+
}, {
|
|
618
|
+
readonly internalType: "bool";
|
|
619
|
+
readonly name: "allowed";
|
|
620
|
+
readonly type: "bool";
|
|
621
|
+
}];
|
|
622
|
+
readonly name: "setMigrator";
|
|
623
|
+
readonly outputs: readonly [];
|
|
624
|
+
readonly stateMutability: "nonpayable";
|
|
625
|
+
readonly type: "function";
|
|
626
|
+
}, {
|
|
627
|
+
readonly inputs: readonly [{
|
|
628
|
+
readonly internalType: "address";
|
|
629
|
+
readonly name: "token";
|
|
630
|
+
readonly type: "address";
|
|
631
|
+
}];
|
|
632
|
+
readonly name: "tokens";
|
|
633
|
+
readonly outputs: readonly [{
|
|
634
|
+
readonly internalType: "address";
|
|
635
|
+
readonly name: "pufToken";
|
|
636
|
+
readonly type: "address";
|
|
637
|
+
}];
|
|
638
|
+
readonly stateMutability: "view";
|
|
639
|
+
readonly type: "function";
|
|
640
|
+
}];
|
|
641
|
+
};
|
|
642
|
+
};
|