@pufferfinance/puffer-sdk 1.2.2 → 1.3.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/dist/{ccip-DRvnT9Rr.js → ccip-3UC0TC9X.js} +2 -2
- package/dist/{ccip-DRvnT9Rr.js.map → ccip-3UC0TC9X.js.map} +1 -1
- package/dist/{ccip-D9qbW2rG.cjs → ccip-DQ94bmby.cjs} +2 -2
- package/dist/{ccip-D9qbW2rG.cjs.map → ccip-DQ94bmby.cjs.map} +1 -1
- package/dist/contracts/abis/mainnet/PufLocker.d.ts +4 -0
- package/dist/contracts/abis/mainnet/PufferL2Depositor.d.ts +22 -0
- package/dist/contracts/abis/puf-locker-abis.d.ts +4 -0
- package/dist/contracts/abis/puffer-depositor-abis.d.ts +22 -0
- package/dist/contracts/handlers/puf-locker-handler.d.ts +282 -675
- package/dist/contracts/handlers/puffer-l2-depositor-handler.d.ts +1392 -1207
- package/dist/{main-BxOuZ8N8.cjs → main-CqqE1ac9.cjs} +11 -11
- package/dist/{main-BxOuZ8N8.cjs.map → main-CqqE1ac9.cjs.map} +1 -1
- package/dist/{main-DKOXyfBM.js → main-pCx1muph.js} +645 -658
- package/dist/{main-DKOXyfBM.js.map → main-pCx1muph.js.map} +1 -1
- package/dist/main.cjs +1 -1
- package/dist/main.js +1 -1
- package/package.json +1 -1
|
@@ -2,6 +2,14 @@ import { WalletClient, PublicClient, Address } from 'viem';
|
|
|
2
2
|
import { Chain, ViemChain } from '../../chains/constants';
|
|
3
3
|
import { Token } from '../tokens';
|
|
4
4
|
|
|
5
|
+
export type L2DepositParams = {
|
|
6
|
+
token: Token;
|
|
7
|
+
account: Address;
|
|
8
|
+
value: bigint;
|
|
9
|
+
referralCode?: bigint;
|
|
10
|
+
lockPeriod?: bigint;
|
|
11
|
+
isPreapproved?: boolean;
|
|
12
|
+
};
|
|
5
13
|
/**
|
|
6
14
|
* Handler for the `PufferL2Depositor` contract exposing methods to
|
|
7
15
|
* interact with the contract.
|
|
@@ -55,6 +63,14 @@ export declare class PufferL2DepositorHandler {
|
|
|
55
63
|
factoryData?: `0x${string}` | undefined;
|
|
56
64
|
stateOverride?: import('viem').StateOverride | undefined;
|
|
57
65
|
} | undefined) => Promise<`0x${string}`>;
|
|
66
|
+
PUFFER_LOCKER: (options?: {
|
|
67
|
+
blockNumber?: bigint | undefined;
|
|
68
|
+
account?: `0x${string}` | import('viem').Account | undefined;
|
|
69
|
+
blockTag?: import('viem').BlockTag | undefined;
|
|
70
|
+
factory?: `0x${string}` | undefined;
|
|
71
|
+
factoryData?: `0x${string}` | undefined;
|
|
72
|
+
stateOverride?: import('viem').StateOverride | undefined;
|
|
73
|
+
} | undefined) => Promise<`0x${string}`>;
|
|
58
74
|
WETH: (options?: {
|
|
59
75
|
blockNumber?: bigint | undefined;
|
|
60
76
|
account?: `0x${string}` | import('viem').Account | undefined;
|
|
@@ -79,7 +95,7 @@ export declare class PufferL2DepositorHandler {
|
|
|
79
95
|
v: number;
|
|
80
96
|
r: `0x${string}`;
|
|
81
97
|
s: `0x${string}`;
|
|
82
|
-
}, bigint], options: import('viem/chains').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
|
|
98
|
+
}, bigint, bigint], options: import('viem/chains').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
|
|
83
99
|
readonly inputs: readonly [{
|
|
84
100
|
readonly internalType: "address";
|
|
85
101
|
readonly name: "accessManager";
|
|
@@ -88,6 +104,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
88
104
|
readonly internalType: "address";
|
|
89
105
|
readonly name: "weth";
|
|
90
106
|
readonly type: "address";
|
|
107
|
+
}, {
|
|
108
|
+
readonly internalType: "contract IPufLocker";
|
|
109
|
+
readonly name: "locker";
|
|
110
|
+
readonly type: "address";
|
|
91
111
|
}];
|
|
92
112
|
readonly stateMutability: "nonpayable";
|
|
93
113
|
readonly type: "constructor";
|
|
@@ -229,25 +249,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
229
249
|
readonly type: "bool";
|
|
230
250
|
}];
|
|
231
251
|
readonly name: "SetIsMigratorAllowed";
|
|
232
|
-
/**
|
|
233
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
234
|
-
* doesn't make the transaction but returns two methods namely
|
|
235
|
-
* `transact` and `estimate`.
|
|
236
|
-
*
|
|
237
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
238
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
239
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
240
|
-
*
|
|
241
|
-
* @param token Token to deposit.
|
|
242
|
-
* @param walletAddress Wallet address to take the token from.
|
|
243
|
-
* @param value Value in wei of the token to deposit.
|
|
244
|
-
* @param referralCode Referral code for the deposit.
|
|
245
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
246
|
-
* transaction.
|
|
247
|
-
*
|
|
248
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
249
|
-
* transaction.
|
|
250
|
-
*/
|
|
251
252
|
readonly type: "event";
|
|
252
253
|
}, {
|
|
253
254
|
readonly anonymous: false;
|
|
@@ -279,6 +280,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
279
280
|
}];
|
|
280
281
|
readonly name: "TokenRemoved";
|
|
281
282
|
readonly type: "event";
|
|
283
|
+
}, {
|
|
284
|
+
readonly inputs: readonly [];
|
|
285
|
+
readonly name: "PUFFER_LOCKER";
|
|
286
|
+
readonly outputs: readonly [{
|
|
287
|
+
readonly internalType: "contract IPufLocker";
|
|
288
|
+
readonly name: "";
|
|
289
|
+
readonly type: "address";
|
|
290
|
+
}];
|
|
291
|
+
readonly stateMutability: "view";
|
|
292
|
+
readonly type: "function";
|
|
282
293
|
}, {
|
|
283
294
|
readonly inputs: readonly [];
|
|
284
295
|
readonly name: "WETH";
|
|
@@ -347,6 +358,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
347
358
|
readonly internalType: "uint256";
|
|
348
359
|
readonly name: "referralCode";
|
|
349
360
|
readonly type: "uint256";
|
|
361
|
+
}, {
|
|
362
|
+
readonly internalType: "uint128";
|
|
363
|
+
readonly name: "lockPeriod";
|
|
364
|
+
readonly type: "uint128";
|
|
350
365
|
}];
|
|
351
366
|
readonly name: "deposit";
|
|
352
367
|
readonly outputs: readonly [];
|
|
@@ -361,6 +376,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
361
376
|
readonly internalType: "uint256";
|
|
362
377
|
readonly name: "referralCode";
|
|
363
378
|
readonly type: "uint256";
|
|
379
|
+
}, {
|
|
380
|
+
readonly internalType: "uint128";
|
|
381
|
+
readonly name: "lockPeriod";
|
|
382
|
+
readonly type: "uint128";
|
|
364
383
|
}];
|
|
365
384
|
readonly name: "depositETH";
|
|
366
385
|
readonly outputs: readonly [];
|
|
@@ -454,8 +473,8 @@ export declare class PufferL2DepositorHandler {
|
|
|
454
473
|
v: number;
|
|
455
474
|
r: `0x${string}`;
|
|
456
475
|
s: `0x${string}`;
|
|
457
|
-
}, bigint], ViemChain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<bigint>;
|
|
458
|
-
depositETH: (args: readonly [`0x${string}`, bigint], options: import('viem/chains').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
|
|
476
|
+
}, bigint, bigint], ViemChain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<bigint>;
|
|
477
|
+
depositETH: (args: readonly [`0x${string}`, bigint, bigint], options: import('viem/chains').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
|
|
459
478
|
readonly inputs: readonly [{
|
|
460
479
|
readonly internalType: "address";
|
|
461
480
|
readonly name: "accessManager";
|
|
@@ -464,6 +483,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
464
483
|
readonly internalType: "address";
|
|
465
484
|
readonly name: "weth";
|
|
466
485
|
readonly type: "address";
|
|
486
|
+
}, {
|
|
487
|
+
readonly internalType: "contract IPufLocker";
|
|
488
|
+
readonly name: "locker";
|
|
489
|
+
readonly type: "address";
|
|
467
490
|
}];
|
|
468
491
|
readonly stateMutability: "nonpayable";
|
|
469
492
|
readonly type: "constructor";
|
|
@@ -605,25 +628,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
605
628
|
readonly type: "bool";
|
|
606
629
|
}];
|
|
607
630
|
readonly name: "SetIsMigratorAllowed";
|
|
608
|
-
/**
|
|
609
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
610
|
-
* doesn't make the transaction but returns two methods namely
|
|
611
|
-
* `transact` and `estimate`.
|
|
612
|
-
*
|
|
613
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
614
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
615
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
616
|
-
*
|
|
617
|
-
* @param token Token to deposit.
|
|
618
|
-
* @param walletAddress Wallet address to take the token from.
|
|
619
|
-
* @param value Value in wei of the token to deposit.
|
|
620
|
-
* @param referralCode Referral code for the deposit.
|
|
621
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
622
|
-
* transaction.
|
|
623
|
-
*
|
|
624
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
625
|
-
* transaction.
|
|
626
|
-
*/
|
|
627
631
|
readonly type: "event";
|
|
628
632
|
}, {
|
|
629
633
|
readonly anonymous: false;
|
|
@@ -655,6 +659,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
655
659
|
}];
|
|
656
660
|
readonly name: "TokenRemoved";
|
|
657
661
|
readonly type: "event";
|
|
662
|
+
}, {
|
|
663
|
+
readonly inputs: readonly [];
|
|
664
|
+
readonly name: "PUFFER_LOCKER";
|
|
665
|
+
readonly outputs: readonly [{
|
|
666
|
+
readonly internalType: "contract IPufLocker";
|
|
667
|
+
readonly name: "";
|
|
668
|
+
readonly type: "address";
|
|
669
|
+
}];
|
|
670
|
+
readonly stateMutability: "view";
|
|
671
|
+
readonly type: "function";
|
|
658
672
|
}, {
|
|
659
673
|
readonly inputs: readonly [];
|
|
660
674
|
readonly name: "WETH";
|
|
@@ -723,6 +737,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
723
737
|
readonly internalType: "uint256";
|
|
724
738
|
readonly name: "referralCode";
|
|
725
739
|
readonly type: "uint256";
|
|
740
|
+
}, {
|
|
741
|
+
readonly internalType: "uint128";
|
|
742
|
+
readonly name: "lockPeriod";
|
|
743
|
+
readonly type: "uint128";
|
|
726
744
|
}];
|
|
727
745
|
readonly name: "deposit";
|
|
728
746
|
readonly outputs: readonly [];
|
|
@@ -737,6 +755,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
737
755
|
readonly internalType: "uint256";
|
|
738
756
|
readonly name: "referralCode";
|
|
739
757
|
readonly type: "uint256";
|
|
758
|
+
}, {
|
|
759
|
+
readonly internalType: "uint128";
|
|
760
|
+
readonly name: "lockPeriod";
|
|
761
|
+
readonly type: "uint128";
|
|
740
762
|
}];
|
|
741
763
|
readonly name: "depositETH";
|
|
742
764
|
readonly outputs: readonly [];
|
|
@@ -824,7 +846,7 @@ export declare class PufferL2DepositorHandler {
|
|
|
824
846
|
}];
|
|
825
847
|
readonly stateMutability: "view";
|
|
826
848
|
readonly type: "function";
|
|
827
|
-
}], "depositETH", readonly [`0x${string}`, bigint], ViemChain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<bigint>;
|
|
849
|
+
}], "depositETH", readonly [`0x${string}`, bigint, bigint], ViemChain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<bigint>;
|
|
828
850
|
setAuthority: (args: readonly [`0x${string}`], options: import('viem/chains').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
|
|
829
851
|
readonly inputs: readonly [{
|
|
830
852
|
readonly internalType: "address";
|
|
@@ -834,6 +856,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
834
856
|
readonly internalType: "address";
|
|
835
857
|
readonly name: "weth";
|
|
836
858
|
readonly type: "address";
|
|
859
|
+
}, {
|
|
860
|
+
readonly internalType: "contract IPufLocker";
|
|
861
|
+
readonly name: "locker";
|
|
862
|
+
readonly type: "address";
|
|
837
863
|
}];
|
|
838
864
|
readonly stateMutability: "nonpayable";
|
|
839
865
|
readonly type: "constructor";
|
|
@@ -975,25 +1001,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
975
1001
|
readonly type: "bool";
|
|
976
1002
|
}];
|
|
977
1003
|
readonly name: "SetIsMigratorAllowed";
|
|
978
|
-
/**
|
|
979
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
980
|
-
* doesn't make the transaction but returns two methods namely
|
|
981
|
-
* `transact` and `estimate`.
|
|
982
|
-
*
|
|
983
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
984
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
985
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
986
|
-
*
|
|
987
|
-
* @param token Token to deposit.
|
|
988
|
-
* @param walletAddress Wallet address to take the token from.
|
|
989
|
-
* @param value Value in wei of the token to deposit.
|
|
990
|
-
* @param referralCode Referral code for the deposit.
|
|
991
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
992
|
-
* transaction.
|
|
993
|
-
*
|
|
994
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
995
|
-
* transaction.
|
|
996
|
-
*/
|
|
997
1004
|
readonly type: "event";
|
|
998
1005
|
}, {
|
|
999
1006
|
readonly anonymous: false;
|
|
@@ -1025,6 +1032,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
1025
1032
|
}];
|
|
1026
1033
|
readonly name: "TokenRemoved";
|
|
1027
1034
|
readonly type: "event";
|
|
1035
|
+
}, {
|
|
1036
|
+
readonly inputs: readonly [];
|
|
1037
|
+
readonly name: "PUFFER_LOCKER";
|
|
1038
|
+
readonly outputs: readonly [{
|
|
1039
|
+
readonly internalType: "contract IPufLocker";
|
|
1040
|
+
readonly name: "";
|
|
1041
|
+
readonly type: "address";
|
|
1042
|
+
}];
|
|
1043
|
+
readonly stateMutability: "view";
|
|
1044
|
+
readonly type: "function";
|
|
1028
1045
|
}, {
|
|
1029
1046
|
readonly inputs: readonly [];
|
|
1030
1047
|
readonly name: "WETH";
|
|
@@ -1093,6 +1110,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
1093
1110
|
readonly internalType: "uint256";
|
|
1094
1111
|
readonly name: "referralCode";
|
|
1095
1112
|
readonly type: "uint256";
|
|
1113
|
+
}, {
|
|
1114
|
+
readonly internalType: "uint128";
|
|
1115
|
+
readonly name: "lockPeriod";
|
|
1116
|
+
readonly type: "uint128";
|
|
1096
1117
|
}];
|
|
1097
1118
|
readonly name: "deposit";
|
|
1098
1119
|
readonly outputs: readonly [];
|
|
@@ -1107,6 +1128,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
1107
1128
|
readonly internalType: "uint256";
|
|
1108
1129
|
readonly name: "referralCode";
|
|
1109
1130
|
readonly type: "uint256";
|
|
1131
|
+
}, {
|
|
1132
|
+
readonly internalType: "uint128";
|
|
1133
|
+
readonly name: "lockPeriod";
|
|
1134
|
+
readonly type: "uint128";
|
|
1110
1135
|
}];
|
|
1111
1136
|
readonly name: "depositETH";
|
|
1112
1137
|
readonly outputs: readonly [];
|
|
@@ -1204,6 +1229,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
1204
1229
|
readonly internalType: "address";
|
|
1205
1230
|
readonly name: "weth";
|
|
1206
1231
|
readonly type: "address";
|
|
1232
|
+
}, {
|
|
1233
|
+
readonly internalType: "contract IPufLocker";
|
|
1234
|
+
readonly name: "locker";
|
|
1235
|
+
readonly type: "address";
|
|
1207
1236
|
}];
|
|
1208
1237
|
readonly stateMutability: "nonpayable";
|
|
1209
1238
|
readonly type: "constructor";
|
|
@@ -1345,25 +1374,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
1345
1374
|
readonly type: "bool";
|
|
1346
1375
|
}];
|
|
1347
1376
|
readonly name: "SetIsMigratorAllowed";
|
|
1348
|
-
/**
|
|
1349
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
1350
|
-
* doesn't make the transaction but returns two methods namely
|
|
1351
|
-
* `transact` and `estimate`.
|
|
1352
|
-
*
|
|
1353
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
1354
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
1355
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
1356
|
-
*
|
|
1357
|
-
* @param token Token to deposit.
|
|
1358
|
-
* @param walletAddress Wallet address to take the token from.
|
|
1359
|
-
* @param value Value in wei of the token to deposit.
|
|
1360
|
-
* @param referralCode Referral code for the deposit.
|
|
1361
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
1362
|
-
* transaction.
|
|
1363
|
-
*
|
|
1364
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
1365
|
-
* transaction.
|
|
1366
|
-
*/
|
|
1367
1377
|
readonly type: "event";
|
|
1368
1378
|
}, {
|
|
1369
1379
|
readonly anonymous: false;
|
|
@@ -1395,6 +1405,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
1395
1405
|
}];
|
|
1396
1406
|
readonly name: "TokenRemoved";
|
|
1397
1407
|
readonly type: "event";
|
|
1408
|
+
}, {
|
|
1409
|
+
readonly inputs: readonly [];
|
|
1410
|
+
readonly name: "PUFFER_LOCKER";
|
|
1411
|
+
readonly outputs: readonly [{
|
|
1412
|
+
readonly internalType: "contract IPufLocker";
|
|
1413
|
+
readonly name: "";
|
|
1414
|
+
readonly type: "address";
|
|
1415
|
+
}];
|
|
1416
|
+
readonly stateMutability: "view";
|
|
1417
|
+
readonly type: "function";
|
|
1398
1418
|
}, {
|
|
1399
1419
|
readonly inputs: readonly [];
|
|
1400
1420
|
readonly name: "WETH";
|
|
@@ -1463,6 +1483,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
1463
1483
|
readonly internalType: "uint256";
|
|
1464
1484
|
readonly name: "referralCode";
|
|
1465
1485
|
readonly type: "uint256";
|
|
1486
|
+
}, {
|
|
1487
|
+
readonly internalType: "uint128";
|
|
1488
|
+
readonly name: "lockPeriod";
|
|
1489
|
+
readonly type: "uint128";
|
|
1466
1490
|
}];
|
|
1467
1491
|
readonly name: "deposit";
|
|
1468
1492
|
readonly outputs: readonly [];
|
|
@@ -1477,6 +1501,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
1477
1501
|
readonly internalType: "uint256";
|
|
1478
1502
|
readonly name: "referralCode";
|
|
1479
1503
|
readonly type: "uint256";
|
|
1504
|
+
}, {
|
|
1505
|
+
readonly internalType: "uint128";
|
|
1506
|
+
readonly name: "lockPeriod";
|
|
1507
|
+
readonly type: "uint128";
|
|
1480
1508
|
}];
|
|
1481
1509
|
readonly name: "depositETH";
|
|
1482
1510
|
readonly outputs: readonly [];
|
|
@@ -1574,6 +1602,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
1574
1602
|
readonly internalType: "address";
|
|
1575
1603
|
readonly name: "weth";
|
|
1576
1604
|
readonly type: "address";
|
|
1605
|
+
}, {
|
|
1606
|
+
readonly internalType: "contract IPufLocker";
|
|
1607
|
+
readonly name: "locker";
|
|
1608
|
+
readonly type: "address";
|
|
1577
1609
|
}];
|
|
1578
1610
|
readonly stateMutability: "nonpayable";
|
|
1579
1611
|
readonly type: "constructor";
|
|
@@ -1715,25 +1747,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
1715
1747
|
readonly type: "bool";
|
|
1716
1748
|
}];
|
|
1717
1749
|
readonly name: "SetIsMigratorAllowed";
|
|
1718
|
-
/**
|
|
1719
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
1720
|
-
* doesn't make the transaction but returns two methods namely
|
|
1721
|
-
* `transact` and `estimate`.
|
|
1722
|
-
*
|
|
1723
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
1724
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
1725
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
1726
|
-
*
|
|
1727
|
-
* @param token Token to deposit.
|
|
1728
|
-
* @param walletAddress Wallet address to take the token from.
|
|
1729
|
-
* @param value Value in wei of the token to deposit.
|
|
1730
|
-
* @param referralCode Referral code for the deposit.
|
|
1731
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
1732
|
-
* transaction.
|
|
1733
|
-
*
|
|
1734
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
1735
|
-
* transaction.
|
|
1736
|
-
*/
|
|
1737
1750
|
readonly type: "event";
|
|
1738
1751
|
}, {
|
|
1739
1752
|
readonly anonymous: false;
|
|
@@ -1765,6 +1778,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
1765
1778
|
}];
|
|
1766
1779
|
readonly name: "TokenRemoved";
|
|
1767
1780
|
readonly type: "event";
|
|
1781
|
+
}, {
|
|
1782
|
+
readonly inputs: readonly [];
|
|
1783
|
+
readonly name: "PUFFER_LOCKER";
|
|
1784
|
+
readonly outputs: readonly [{
|
|
1785
|
+
readonly internalType: "contract IPufLocker";
|
|
1786
|
+
readonly name: "";
|
|
1787
|
+
readonly type: "address";
|
|
1788
|
+
}];
|
|
1789
|
+
readonly stateMutability: "view";
|
|
1790
|
+
readonly type: "function";
|
|
1768
1791
|
}, {
|
|
1769
1792
|
readonly inputs: readonly [];
|
|
1770
1793
|
readonly name: "WETH";
|
|
@@ -1833,6 +1856,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
1833
1856
|
readonly internalType: "uint256";
|
|
1834
1857
|
readonly name: "referralCode";
|
|
1835
1858
|
readonly type: "uint256";
|
|
1859
|
+
}, {
|
|
1860
|
+
readonly internalType: "uint128";
|
|
1861
|
+
readonly name: "lockPeriod";
|
|
1862
|
+
readonly type: "uint128";
|
|
1836
1863
|
}];
|
|
1837
1864
|
readonly name: "deposit";
|
|
1838
1865
|
readonly outputs: readonly [];
|
|
@@ -1847,6 +1874,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
1847
1874
|
readonly internalType: "uint256";
|
|
1848
1875
|
readonly name: "referralCode";
|
|
1849
1876
|
readonly type: "uint256";
|
|
1877
|
+
}, {
|
|
1878
|
+
readonly internalType: "uint128";
|
|
1879
|
+
readonly name: "lockPeriod";
|
|
1880
|
+
readonly type: "uint128";
|
|
1850
1881
|
}];
|
|
1851
1882
|
readonly name: "depositETH";
|
|
1852
1883
|
readonly outputs: readonly [];
|
|
@@ -1944,6 +1975,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
1944
1975
|
readonly internalType: "address";
|
|
1945
1976
|
readonly name: "weth";
|
|
1946
1977
|
readonly type: "address";
|
|
1978
|
+
}, {
|
|
1979
|
+
readonly internalType: "contract IPufLocker";
|
|
1980
|
+
readonly name: "locker";
|
|
1981
|
+
readonly type: "address";
|
|
1947
1982
|
}];
|
|
1948
1983
|
readonly stateMutability: "nonpayable";
|
|
1949
1984
|
readonly type: "constructor";
|
|
@@ -2085,25 +2120,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
2085
2120
|
readonly type: "bool";
|
|
2086
2121
|
}];
|
|
2087
2122
|
readonly name: "SetIsMigratorAllowed";
|
|
2088
|
-
/**
|
|
2089
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
2090
|
-
* doesn't make the transaction but returns two methods namely
|
|
2091
|
-
* `transact` and `estimate`.
|
|
2092
|
-
*
|
|
2093
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
2094
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
2095
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
2096
|
-
*
|
|
2097
|
-
* @param token Token to deposit.
|
|
2098
|
-
* @param walletAddress Wallet address to take the token from.
|
|
2099
|
-
* @param value Value in wei of the token to deposit.
|
|
2100
|
-
* @param referralCode Referral code for the deposit.
|
|
2101
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
2102
|
-
* transaction.
|
|
2103
|
-
*
|
|
2104
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
2105
|
-
* transaction.
|
|
2106
|
-
*/
|
|
2107
2123
|
readonly type: "event";
|
|
2108
2124
|
}, {
|
|
2109
2125
|
readonly anonymous: false;
|
|
@@ -2135,6 +2151,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
2135
2151
|
}];
|
|
2136
2152
|
readonly name: "TokenRemoved";
|
|
2137
2153
|
readonly type: "event";
|
|
2154
|
+
}, {
|
|
2155
|
+
readonly inputs: readonly [];
|
|
2156
|
+
readonly name: "PUFFER_LOCKER";
|
|
2157
|
+
readonly outputs: readonly [{
|
|
2158
|
+
readonly internalType: "contract IPufLocker";
|
|
2159
|
+
readonly name: "";
|
|
2160
|
+
readonly type: "address";
|
|
2161
|
+
}];
|
|
2162
|
+
readonly stateMutability: "view";
|
|
2163
|
+
readonly type: "function";
|
|
2138
2164
|
}, {
|
|
2139
2165
|
readonly inputs: readonly [];
|
|
2140
2166
|
readonly name: "WETH";
|
|
@@ -2203,6 +2229,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
2203
2229
|
readonly internalType: "uint256";
|
|
2204
2230
|
readonly name: "referralCode";
|
|
2205
2231
|
readonly type: "uint256";
|
|
2232
|
+
}, {
|
|
2233
|
+
readonly internalType: "uint128";
|
|
2234
|
+
readonly name: "lockPeriod";
|
|
2235
|
+
readonly type: "uint128";
|
|
2206
2236
|
}];
|
|
2207
2237
|
readonly name: "deposit";
|
|
2208
2238
|
readonly outputs: readonly [];
|
|
@@ -2217,6 +2247,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
2217
2247
|
readonly internalType: "uint256";
|
|
2218
2248
|
readonly name: "referralCode";
|
|
2219
2249
|
readonly type: "uint256";
|
|
2250
|
+
}, {
|
|
2251
|
+
readonly internalType: "uint128";
|
|
2252
|
+
readonly name: "lockPeriod";
|
|
2253
|
+
readonly type: "uint128";
|
|
2220
2254
|
}];
|
|
2221
2255
|
readonly name: "depositETH";
|
|
2222
2256
|
readonly outputs: readonly [];
|
|
@@ -2314,6 +2348,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
2314
2348
|
readonly internalType: "address";
|
|
2315
2349
|
readonly name: "weth";
|
|
2316
2350
|
readonly type: "address";
|
|
2351
|
+
}, {
|
|
2352
|
+
readonly internalType: "contract IPufLocker";
|
|
2353
|
+
readonly name: "locker";
|
|
2354
|
+
readonly type: "address";
|
|
2317
2355
|
}];
|
|
2318
2356
|
readonly stateMutability: "nonpayable";
|
|
2319
2357
|
readonly type: "constructor";
|
|
@@ -2455,25 +2493,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
2455
2493
|
readonly type: "bool";
|
|
2456
2494
|
}];
|
|
2457
2495
|
readonly name: "SetIsMigratorAllowed";
|
|
2458
|
-
/**
|
|
2459
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
2460
|
-
* doesn't make the transaction but returns two methods namely
|
|
2461
|
-
* `transact` and `estimate`.
|
|
2462
|
-
*
|
|
2463
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
2464
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
2465
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
2466
|
-
*
|
|
2467
|
-
* @param token Token to deposit.
|
|
2468
|
-
* @param walletAddress Wallet address to take the token from.
|
|
2469
|
-
* @param value Value in wei of the token to deposit.
|
|
2470
|
-
* @param referralCode Referral code for the deposit.
|
|
2471
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
2472
|
-
* transaction.
|
|
2473
|
-
*
|
|
2474
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
2475
|
-
* transaction.
|
|
2476
|
-
*/
|
|
2477
2496
|
readonly type: "event";
|
|
2478
2497
|
}, {
|
|
2479
2498
|
readonly anonymous: false;
|
|
@@ -2505,6 +2524,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
2505
2524
|
}];
|
|
2506
2525
|
readonly name: "TokenRemoved";
|
|
2507
2526
|
readonly type: "event";
|
|
2527
|
+
}, {
|
|
2528
|
+
readonly inputs: readonly [];
|
|
2529
|
+
readonly name: "PUFFER_LOCKER";
|
|
2530
|
+
readonly outputs: readonly [{
|
|
2531
|
+
readonly internalType: "contract IPufLocker";
|
|
2532
|
+
readonly name: "";
|
|
2533
|
+
readonly type: "address";
|
|
2534
|
+
}];
|
|
2535
|
+
readonly stateMutability: "view";
|
|
2536
|
+
readonly type: "function";
|
|
2508
2537
|
}, {
|
|
2509
2538
|
readonly inputs: readonly [];
|
|
2510
2539
|
readonly name: "WETH";
|
|
@@ -2573,6 +2602,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
2573
2602
|
readonly internalType: "uint256";
|
|
2574
2603
|
readonly name: "referralCode";
|
|
2575
2604
|
readonly type: "uint256";
|
|
2605
|
+
}, {
|
|
2606
|
+
readonly internalType: "uint128";
|
|
2607
|
+
readonly name: "lockPeriod";
|
|
2608
|
+
readonly type: "uint128";
|
|
2576
2609
|
}];
|
|
2577
2610
|
readonly name: "deposit";
|
|
2578
2611
|
readonly outputs: readonly [];
|
|
@@ -2587,6 +2620,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
2587
2620
|
readonly internalType: "uint256";
|
|
2588
2621
|
readonly name: "referralCode";
|
|
2589
2622
|
readonly type: "uint256";
|
|
2623
|
+
}, {
|
|
2624
|
+
readonly internalType: "uint128";
|
|
2625
|
+
readonly name: "lockPeriod";
|
|
2626
|
+
readonly type: "uint128";
|
|
2590
2627
|
}];
|
|
2591
2628
|
readonly name: "depositETH";
|
|
2592
2629
|
readonly outputs: readonly [];
|
|
@@ -2682,7 +2719,7 @@ export declare class PufferL2DepositorHandler {
|
|
|
2682
2719
|
v: number;
|
|
2683
2720
|
r: `0x${string}`;
|
|
2684
2721
|
s: `0x${string}`;
|
|
2685
|
-
}, bigint], options: import('viem/chains').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
|
|
2722
|
+
}, bigint, bigint], options: import('viem/chains').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
|
|
2686
2723
|
readonly inputs: readonly [{
|
|
2687
2724
|
readonly internalType: "address";
|
|
2688
2725
|
readonly name: "accessManager";
|
|
@@ -2691,6 +2728,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
2691
2728
|
readonly internalType: "address";
|
|
2692
2729
|
readonly name: "weth";
|
|
2693
2730
|
readonly type: "address";
|
|
2731
|
+
}, {
|
|
2732
|
+
readonly internalType: "contract IPufLocker";
|
|
2733
|
+
readonly name: "locker";
|
|
2734
|
+
readonly type: "address";
|
|
2694
2735
|
}];
|
|
2695
2736
|
readonly stateMutability: "nonpayable";
|
|
2696
2737
|
readonly type: "constructor";
|
|
@@ -2832,25 +2873,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
2832
2873
|
readonly type: "bool";
|
|
2833
2874
|
}];
|
|
2834
2875
|
readonly name: "SetIsMigratorAllowed";
|
|
2835
|
-
/**
|
|
2836
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
2837
|
-
* doesn't make the transaction but returns two methods namely
|
|
2838
|
-
* `transact` and `estimate`.
|
|
2839
|
-
*
|
|
2840
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
2841
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
2842
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
2843
|
-
*
|
|
2844
|
-
* @param token Token to deposit.
|
|
2845
|
-
* @param walletAddress Wallet address to take the token from.
|
|
2846
|
-
* @param value Value in wei of the token to deposit.
|
|
2847
|
-
* @param referralCode Referral code for the deposit.
|
|
2848
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
2849
|
-
* transaction.
|
|
2850
|
-
*
|
|
2851
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
2852
|
-
* transaction.
|
|
2853
|
-
*/
|
|
2854
2876
|
readonly type: "event";
|
|
2855
2877
|
}, {
|
|
2856
2878
|
readonly anonymous: false;
|
|
@@ -2882,6 +2904,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
2882
2904
|
}];
|
|
2883
2905
|
readonly name: "TokenRemoved";
|
|
2884
2906
|
readonly type: "event";
|
|
2907
|
+
}, {
|
|
2908
|
+
readonly inputs: readonly [];
|
|
2909
|
+
readonly name: "PUFFER_LOCKER";
|
|
2910
|
+
readonly outputs: readonly [{
|
|
2911
|
+
readonly internalType: "contract IPufLocker";
|
|
2912
|
+
readonly name: "";
|
|
2913
|
+
readonly type: "address";
|
|
2914
|
+
}];
|
|
2915
|
+
readonly stateMutability: "view";
|
|
2916
|
+
readonly type: "function";
|
|
2885
2917
|
}, {
|
|
2886
2918
|
readonly inputs: readonly [];
|
|
2887
2919
|
readonly name: "WETH";
|
|
@@ -2950,6 +2982,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
2950
2982
|
readonly internalType: "uint256";
|
|
2951
2983
|
readonly name: "referralCode";
|
|
2952
2984
|
readonly type: "uint256";
|
|
2985
|
+
}, {
|
|
2986
|
+
readonly internalType: "uint128";
|
|
2987
|
+
readonly name: "lockPeriod";
|
|
2988
|
+
readonly type: "uint128";
|
|
2953
2989
|
}];
|
|
2954
2990
|
readonly name: "deposit";
|
|
2955
2991
|
readonly outputs: readonly [];
|
|
@@ -2964,6 +3000,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
2964
3000
|
readonly internalType: "uint256";
|
|
2965
3001
|
readonly name: "referralCode";
|
|
2966
3002
|
readonly type: "uint256";
|
|
3003
|
+
}, {
|
|
3004
|
+
readonly internalType: "uint128";
|
|
3005
|
+
readonly name: "lockPeriod";
|
|
3006
|
+
readonly type: "uint128";
|
|
2967
3007
|
}];
|
|
2968
3008
|
readonly name: "depositETH";
|
|
2969
3009
|
readonly outputs: readonly [];
|
|
@@ -3057,8 +3097,8 @@ export declare class PufferL2DepositorHandler {
|
|
|
3057
3097
|
v: number;
|
|
3058
3098
|
r: `0x${string}`;
|
|
3059
3099
|
s: `0x${string}`;
|
|
3060
|
-
}, bigint], ViemChain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<bigint>;
|
|
3061
|
-
depositETH: (args: readonly [`0x${string}`, bigint], options: import('viem/chains').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
|
|
3100
|
+
}, bigint, bigint], ViemChain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<bigint>;
|
|
3101
|
+
depositETH: (args: readonly [`0x${string}`, bigint, bigint], options: import('viem/chains').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
|
|
3062
3102
|
readonly inputs: readonly [{
|
|
3063
3103
|
readonly internalType: "address";
|
|
3064
3104
|
readonly name: "accessManager";
|
|
@@ -3067,6 +3107,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
3067
3107
|
readonly internalType: "address";
|
|
3068
3108
|
readonly name: "weth";
|
|
3069
3109
|
readonly type: "address";
|
|
3110
|
+
}, {
|
|
3111
|
+
readonly internalType: "contract IPufLocker";
|
|
3112
|
+
readonly name: "locker";
|
|
3113
|
+
readonly type: "address";
|
|
3070
3114
|
}];
|
|
3071
3115
|
readonly stateMutability: "nonpayable";
|
|
3072
3116
|
readonly type: "constructor";
|
|
@@ -3208,25 +3252,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
3208
3252
|
readonly type: "bool";
|
|
3209
3253
|
}];
|
|
3210
3254
|
readonly name: "SetIsMigratorAllowed";
|
|
3211
|
-
/**
|
|
3212
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
3213
|
-
* doesn't make the transaction but returns two methods namely
|
|
3214
|
-
* `transact` and `estimate`.
|
|
3215
|
-
*
|
|
3216
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
3217
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
3218
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
3219
|
-
*
|
|
3220
|
-
* @param token Token to deposit.
|
|
3221
|
-
* @param walletAddress Wallet address to take the token from.
|
|
3222
|
-
* @param value Value in wei of the token to deposit.
|
|
3223
|
-
* @param referralCode Referral code for the deposit.
|
|
3224
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
3225
|
-
* transaction.
|
|
3226
|
-
*
|
|
3227
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
3228
|
-
* transaction.
|
|
3229
|
-
*/
|
|
3230
3255
|
readonly type: "event";
|
|
3231
3256
|
}, {
|
|
3232
3257
|
readonly anonymous: false;
|
|
@@ -3258,6 +3283,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
3258
3283
|
}];
|
|
3259
3284
|
readonly name: "TokenRemoved";
|
|
3260
3285
|
readonly type: "event";
|
|
3286
|
+
}, {
|
|
3287
|
+
readonly inputs: readonly [];
|
|
3288
|
+
readonly name: "PUFFER_LOCKER";
|
|
3289
|
+
readonly outputs: readonly [{
|
|
3290
|
+
readonly internalType: "contract IPufLocker";
|
|
3291
|
+
readonly name: "";
|
|
3292
|
+
readonly type: "address";
|
|
3293
|
+
}];
|
|
3294
|
+
readonly stateMutability: "view";
|
|
3295
|
+
readonly type: "function";
|
|
3261
3296
|
}, {
|
|
3262
3297
|
readonly inputs: readonly [];
|
|
3263
3298
|
readonly name: "WETH";
|
|
@@ -3326,6 +3361,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
3326
3361
|
readonly internalType: "uint256";
|
|
3327
3362
|
readonly name: "referralCode";
|
|
3328
3363
|
readonly type: "uint256";
|
|
3364
|
+
}, {
|
|
3365
|
+
readonly internalType: "uint128";
|
|
3366
|
+
readonly name: "lockPeriod";
|
|
3367
|
+
readonly type: "uint128";
|
|
3329
3368
|
}];
|
|
3330
3369
|
readonly name: "deposit";
|
|
3331
3370
|
readonly outputs: readonly [];
|
|
@@ -3340,6 +3379,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
3340
3379
|
readonly internalType: "uint256";
|
|
3341
3380
|
readonly name: "referralCode";
|
|
3342
3381
|
readonly type: "uint256";
|
|
3382
|
+
}, {
|
|
3383
|
+
readonly internalType: "uint128";
|
|
3384
|
+
readonly name: "lockPeriod";
|
|
3385
|
+
readonly type: "uint128";
|
|
3343
3386
|
}];
|
|
3344
3387
|
readonly name: "depositETH";
|
|
3345
3388
|
readonly outputs: readonly [];
|
|
@@ -3427,7 +3470,7 @@ export declare class PufferL2DepositorHandler {
|
|
|
3427
3470
|
}];
|
|
3428
3471
|
readonly stateMutability: "view";
|
|
3429
3472
|
readonly type: "function";
|
|
3430
|
-
}], "depositETH", readonly [`0x${string}`, bigint], ViemChain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<bigint>;
|
|
3473
|
+
}], "depositETH", readonly [`0x${string}`, bigint, bigint], ViemChain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<bigint>;
|
|
3431
3474
|
setAuthority: (args: readonly [`0x${string}`], options: import('viem/chains').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
|
|
3432
3475
|
readonly inputs: readonly [{
|
|
3433
3476
|
readonly internalType: "address";
|
|
@@ -3437,6 +3480,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
3437
3480
|
readonly internalType: "address";
|
|
3438
3481
|
readonly name: "weth";
|
|
3439
3482
|
readonly type: "address";
|
|
3483
|
+
}, {
|
|
3484
|
+
readonly internalType: "contract IPufLocker";
|
|
3485
|
+
readonly name: "locker";
|
|
3486
|
+
readonly type: "address";
|
|
3440
3487
|
}];
|
|
3441
3488
|
readonly stateMutability: "nonpayable";
|
|
3442
3489
|
readonly type: "constructor";
|
|
@@ -3578,25 +3625,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
3578
3625
|
readonly type: "bool";
|
|
3579
3626
|
}];
|
|
3580
3627
|
readonly name: "SetIsMigratorAllowed";
|
|
3581
|
-
/**
|
|
3582
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
3583
|
-
* doesn't make the transaction but returns two methods namely
|
|
3584
|
-
* `transact` and `estimate`.
|
|
3585
|
-
*
|
|
3586
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
3587
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
3588
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
3589
|
-
*
|
|
3590
|
-
* @param token Token to deposit.
|
|
3591
|
-
* @param walletAddress Wallet address to take the token from.
|
|
3592
|
-
* @param value Value in wei of the token to deposit.
|
|
3593
|
-
* @param referralCode Referral code for the deposit.
|
|
3594
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
3595
|
-
* transaction.
|
|
3596
|
-
*
|
|
3597
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
3598
|
-
* transaction.
|
|
3599
|
-
*/
|
|
3600
3628
|
readonly type: "event";
|
|
3601
3629
|
}, {
|
|
3602
3630
|
readonly anonymous: false;
|
|
@@ -3628,6 +3656,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
3628
3656
|
}];
|
|
3629
3657
|
readonly name: "TokenRemoved";
|
|
3630
3658
|
readonly type: "event";
|
|
3659
|
+
}, {
|
|
3660
|
+
readonly inputs: readonly [];
|
|
3661
|
+
readonly name: "PUFFER_LOCKER";
|
|
3662
|
+
readonly outputs: readonly [{
|
|
3663
|
+
readonly internalType: "contract IPufLocker";
|
|
3664
|
+
readonly name: "";
|
|
3665
|
+
readonly type: "address";
|
|
3666
|
+
}];
|
|
3667
|
+
readonly stateMutability: "view";
|
|
3668
|
+
readonly type: "function";
|
|
3631
3669
|
}, {
|
|
3632
3670
|
readonly inputs: readonly [];
|
|
3633
3671
|
readonly name: "WETH";
|
|
@@ -3696,6 +3734,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
3696
3734
|
readonly internalType: "uint256";
|
|
3697
3735
|
readonly name: "referralCode";
|
|
3698
3736
|
readonly type: "uint256";
|
|
3737
|
+
}, {
|
|
3738
|
+
readonly internalType: "uint128";
|
|
3739
|
+
readonly name: "lockPeriod";
|
|
3740
|
+
readonly type: "uint128";
|
|
3699
3741
|
}];
|
|
3700
3742
|
readonly name: "deposit";
|
|
3701
3743
|
readonly outputs: readonly [];
|
|
@@ -3710,6 +3752,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
3710
3752
|
readonly internalType: "uint256";
|
|
3711
3753
|
readonly name: "referralCode";
|
|
3712
3754
|
readonly type: "uint256";
|
|
3755
|
+
}, {
|
|
3756
|
+
readonly internalType: "uint128";
|
|
3757
|
+
readonly name: "lockPeriod";
|
|
3758
|
+
readonly type: "uint128";
|
|
3713
3759
|
}];
|
|
3714
3760
|
readonly name: "depositETH";
|
|
3715
3761
|
readonly outputs: readonly [];
|
|
@@ -3807,6 +3853,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
3807
3853
|
readonly internalType: "address";
|
|
3808
3854
|
readonly name: "weth";
|
|
3809
3855
|
readonly type: "address";
|
|
3856
|
+
}, {
|
|
3857
|
+
readonly internalType: "contract IPufLocker";
|
|
3858
|
+
readonly name: "locker";
|
|
3859
|
+
readonly type: "address";
|
|
3810
3860
|
}];
|
|
3811
3861
|
readonly stateMutability: "nonpayable";
|
|
3812
3862
|
readonly type: "constructor";
|
|
@@ -3948,25 +3998,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
3948
3998
|
readonly type: "bool";
|
|
3949
3999
|
}];
|
|
3950
4000
|
readonly name: "SetIsMigratorAllowed";
|
|
3951
|
-
/**
|
|
3952
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
3953
|
-
* doesn't make the transaction but returns two methods namely
|
|
3954
|
-
* `transact` and `estimate`.
|
|
3955
|
-
*
|
|
3956
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
3957
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
3958
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
3959
|
-
*
|
|
3960
|
-
* @param token Token to deposit.
|
|
3961
|
-
* @param walletAddress Wallet address to take the token from.
|
|
3962
|
-
* @param value Value in wei of the token to deposit.
|
|
3963
|
-
* @param referralCode Referral code for the deposit.
|
|
3964
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
3965
|
-
* transaction.
|
|
3966
|
-
*
|
|
3967
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
3968
|
-
* transaction.
|
|
3969
|
-
*/
|
|
3970
4001
|
readonly type: "event";
|
|
3971
4002
|
}, {
|
|
3972
4003
|
readonly anonymous: false;
|
|
@@ -3998,6 +4029,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
3998
4029
|
}];
|
|
3999
4030
|
readonly name: "TokenRemoved";
|
|
4000
4031
|
readonly type: "event";
|
|
4032
|
+
}, {
|
|
4033
|
+
readonly inputs: readonly [];
|
|
4034
|
+
readonly name: "PUFFER_LOCKER";
|
|
4035
|
+
readonly outputs: readonly [{
|
|
4036
|
+
readonly internalType: "contract IPufLocker";
|
|
4037
|
+
readonly name: "";
|
|
4038
|
+
readonly type: "address";
|
|
4039
|
+
}];
|
|
4040
|
+
readonly stateMutability: "view";
|
|
4041
|
+
readonly type: "function";
|
|
4001
4042
|
}, {
|
|
4002
4043
|
readonly inputs: readonly [];
|
|
4003
4044
|
readonly name: "WETH";
|
|
@@ -4066,6 +4107,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
4066
4107
|
readonly internalType: "uint256";
|
|
4067
4108
|
readonly name: "referralCode";
|
|
4068
4109
|
readonly type: "uint256";
|
|
4110
|
+
}, {
|
|
4111
|
+
readonly internalType: "uint128";
|
|
4112
|
+
readonly name: "lockPeriod";
|
|
4113
|
+
readonly type: "uint128";
|
|
4069
4114
|
}];
|
|
4070
4115
|
readonly name: "deposit";
|
|
4071
4116
|
readonly outputs: readonly [];
|
|
@@ -4080,6 +4125,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
4080
4125
|
readonly internalType: "uint256";
|
|
4081
4126
|
readonly name: "referralCode";
|
|
4082
4127
|
readonly type: "uint256";
|
|
4128
|
+
}, {
|
|
4129
|
+
readonly internalType: "uint128";
|
|
4130
|
+
readonly name: "lockPeriod";
|
|
4131
|
+
readonly type: "uint128";
|
|
4083
4132
|
}];
|
|
4084
4133
|
readonly name: "depositETH";
|
|
4085
4134
|
readonly outputs: readonly [];
|
|
@@ -4177,6 +4226,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
4177
4226
|
readonly internalType: "address";
|
|
4178
4227
|
readonly name: "weth";
|
|
4179
4228
|
readonly type: "address";
|
|
4229
|
+
}, {
|
|
4230
|
+
readonly internalType: "contract IPufLocker";
|
|
4231
|
+
readonly name: "locker";
|
|
4232
|
+
readonly type: "address";
|
|
4180
4233
|
}];
|
|
4181
4234
|
readonly stateMutability: "nonpayable";
|
|
4182
4235
|
readonly type: "constructor";
|
|
@@ -4318,25 +4371,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
4318
4371
|
readonly type: "bool";
|
|
4319
4372
|
}];
|
|
4320
4373
|
readonly name: "SetIsMigratorAllowed";
|
|
4321
|
-
/**
|
|
4322
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
4323
|
-
* doesn't make the transaction but returns two methods namely
|
|
4324
|
-
* `transact` and `estimate`.
|
|
4325
|
-
*
|
|
4326
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
4327
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
4328
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
4329
|
-
*
|
|
4330
|
-
* @param token Token to deposit.
|
|
4331
|
-
* @param walletAddress Wallet address to take the token from.
|
|
4332
|
-
* @param value Value in wei of the token to deposit.
|
|
4333
|
-
* @param referralCode Referral code for the deposit.
|
|
4334
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
4335
|
-
* transaction.
|
|
4336
|
-
*
|
|
4337
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
4338
|
-
* transaction.
|
|
4339
|
-
*/
|
|
4340
4374
|
readonly type: "event";
|
|
4341
4375
|
}, {
|
|
4342
4376
|
readonly anonymous: false;
|
|
@@ -4368,6 +4402,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
4368
4402
|
}];
|
|
4369
4403
|
readonly name: "TokenRemoved";
|
|
4370
4404
|
readonly type: "event";
|
|
4405
|
+
}, {
|
|
4406
|
+
readonly inputs: readonly [];
|
|
4407
|
+
readonly name: "PUFFER_LOCKER";
|
|
4408
|
+
readonly outputs: readonly [{
|
|
4409
|
+
readonly internalType: "contract IPufLocker";
|
|
4410
|
+
readonly name: "";
|
|
4411
|
+
readonly type: "address";
|
|
4412
|
+
}];
|
|
4413
|
+
readonly stateMutability: "view";
|
|
4414
|
+
readonly type: "function";
|
|
4371
4415
|
}, {
|
|
4372
4416
|
readonly inputs: readonly [];
|
|
4373
4417
|
readonly name: "WETH";
|
|
@@ -4436,6 +4480,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
4436
4480
|
readonly internalType: "uint256";
|
|
4437
4481
|
readonly name: "referralCode";
|
|
4438
4482
|
readonly type: "uint256";
|
|
4483
|
+
}, {
|
|
4484
|
+
readonly internalType: "uint128";
|
|
4485
|
+
readonly name: "lockPeriod";
|
|
4486
|
+
readonly type: "uint128";
|
|
4439
4487
|
}];
|
|
4440
4488
|
readonly name: "deposit";
|
|
4441
4489
|
readonly outputs: readonly [];
|
|
@@ -4450,6 +4498,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
4450
4498
|
readonly internalType: "uint256";
|
|
4451
4499
|
readonly name: "referralCode";
|
|
4452
4500
|
readonly type: "uint256";
|
|
4501
|
+
}, {
|
|
4502
|
+
readonly internalType: "uint128";
|
|
4503
|
+
readonly name: "lockPeriod";
|
|
4504
|
+
readonly type: "uint128";
|
|
4453
4505
|
}];
|
|
4454
4506
|
readonly name: "depositETH";
|
|
4455
4507
|
readonly outputs: readonly [];
|
|
@@ -4547,6 +4599,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
4547
4599
|
readonly internalType: "address";
|
|
4548
4600
|
readonly name: "weth";
|
|
4549
4601
|
readonly type: "address";
|
|
4602
|
+
}, {
|
|
4603
|
+
readonly internalType: "contract IPufLocker";
|
|
4604
|
+
readonly name: "locker";
|
|
4605
|
+
readonly type: "address";
|
|
4550
4606
|
}];
|
|
4551
4607
|
readonly stateMutability: "nonpayable";
|
|
4552
4608
|
readonly type: "constructor";
|
|
@@ -4688,25 +4744,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
4688
4744
|
readonly type: "bool";
|
|
4689
4745
|
}];
|
|
4690
4746
|
readonly name: "SetIsMigratorAllowed";
|
|
4691
|
-
/**
|
|
4692
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
4693
|
-
* doesn't make the transaction but returns two methods namely
|
|
4694
|
-
* `transact` and `estimate`.
|
|
4695
|
-
*
|
|
4696
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
4697
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
4698
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
4699
|
-
*
|
|
4700
|
-
* @param token Token to deposit.
|
|
4701
|
-
* @param walletAddress Wallet address to take the token from.
|
|
4702
|
-
* @param value Value in wei of the token to deposit.
|
|
4703
|
-
* @param referralCode Referral code for the deposit.
|
|
4704
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
4705
|
-
* transaction.
|
|
4706
|
-
*
|
|
4707
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
4708
|
-
* transaction.
|
|
4709
|
-
*/
|
|
4710
4747
|
readonly type: "event";
|
|
4711
4748
|
}, {
|
|
4712
4749
|
readonly anonymous: false;
|
|
@@ -4738,6 +4775,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
4738
4775
|
}];
|
|
4739
4776
|
readonly name: "TokenRemoved";
|
|
4740
4777
|
readonly type: "event";
|
|
4778
|
+
}, {
|
|
4779
|
+
readonly inputs: readonly [];
|
|
4780
|
+
readonly name: "PUFFER_LOCKER";
|
|
4781
|
+
readonly outputs: readonly [{
|
|
4782
|
+
readonly internalType: "contract IPufLocker";
|
|
4783
|
+
readonly name: "";
|
|
4784
|
+
readonly type: "address";
|
|
4785
|
+
}];
|
|
4786
|
+
readonly stateMutability: "view";
|
|
4787
|
+
readonly type: "function";
|
|
4741
4788
|
}, {
|
|
4742
4789
|
readonly inputs: readonly [];
|
|
4743
4790
|
readonly name: "WETH";
|
|
@@ -4806,6 +4853,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
4806
4853
|
readonly internalType: "uint256";
|
|
4807
4854
|
readonly name: "referralCode";
|
|
4808
4855
|
readonly type: "uint256";
|
|
4856
|
+
}, {
|
|
4857
|
+
readonly internalType: "uint128";
|
|
4858
|
+
readonly name: "lockPeriod";
|
|
4859
|
+
readonly type: "uint128";
|
|
4809
4860
|
}];
|
|
4810
4861
|
readonly name: "deposit";
|
|
4811
4862
|
readonly outputs: readonly [];
|
|
@@ -4820,6 +4871,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
4820
4871
|
readonly internalType: "uint256";
|
|
4821
4872
|
readonly name: "referralCode";
|
|
4822
4873
|
readonly type: "uint256";
|
|
4874
|
+
}, {
|
|
4875
|
+
readonly internalType: "uint128";
|
|
4876
|
+
readonly name: "lockPeriod";
|
|
4877
|
+
readonly type: "uint128";
|
|
4823
4878
|
}];
|
|
4824
4879
|
readonly name: "depositETH";
|
|
4825
4880
|
readonly outputs: readonly [];
|
|
@@ -4917,6 +4972,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
4917
4972
|
readonly internalType: "address";
|
|
4918
4973
|
readonly name: "weth";
|
|
4919
4974
|
readonly type: "address";
|
|
4975
|
+
}, {
|
|
4976
|
+
readonly internalType: "contract IPufLocker";
|
|
4977
|
+
readonly name: "locker";
|
|
4978
|
+
readonly type: "address";
|
|
4920
4979
|
}];
|
|
4921
4980
|
readonly stateMutability: "nonpayable";
|
|
4922
4981
|
readonly type: "constructor";
|
|
@@ -5058,25 +5117,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
5058
5117
|
readonly type: "bool";
|
|
5059
5118
|
}];
|
|
5060
5119
|
readonly name: "SetIsMigratorAllowed";
|
|
5061
|
-
/**
|
|
5062
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
5063
|
-
* doesn't make the transaction but returns two methods namely
|
|
5064
|
-
* `transact` and `estimate`.
|
|
5065
|
-
*
|
|
5066
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
5067
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
5068
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
5069
|
-
*
|
|
5070
|
-
* @param token Token to deposit.
|
|
5071
|
-
* @param walletAddress Wallet address to take the token from.
|
|
5072
|
-
* @param value Value in wei of the token to deposit.
|
|
5073
|
-
* @param referralCode Referral code for the deposit.
|
|
5074
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
5075
|
-
* transaction.
|
|
5076
|
-
*
|
|
5077
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
5078
|
-
* transaction.
|
|
5079
|
-
*/
|
|
5080
5120
|
readonly type: "event";
|
|
5081
5121
|
}, {
|
|
5082
5122
|
readonly anonymous: false;
|
|
@@ -5108,6 +5148,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
5108
5148
|
}];
|
|
5109
5149
|
readonly name: "TokenRemoved";
|
|
5110
5150
|
readonly type: "event";
|
|
5151
|
+
}, {
|
|
5152
|
+
readonly inputs: readonly [];
|
|
5153
|
+
readonly name: "PUFFER_LOCKER";
|
|
5154
|
+
readonly outputs: readonly [{
|
|
5155
|
+
readonly internalType: "contract IPufLocker";
|
|
5156
|
+
readonly name: "";
|
|
5157
|
+
readonly type: "address";
|
|
5158
|
+
}];
|
|
5159
|
+
readonly stateMutability: "view";
|
|
5160
|
+
readonly type: "function";
|
|
5111
5161
|
}, {
|
|
5112
5162
|
readonly inputs: readonly [];
|
|
5113
5163
|
readonly name: "WETH";
|
|
@@ -5176,6 +5226,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
5176
5226
|
readonly internalType: "uint256";
|
|
5177
5227
|
readonly name: "referralCode";
|
|
5178
5228
|
readonly type: "uint256";
|
|
5229
|
+
}, {
|
|
5230
|
+
readonly internalType: "uint128";
|
|
5231
|
+
readonly name: "lockPeriod";
|
|
5232
|
+
readonly type: "uint128";
|
|
5179
5233
|
}];
|
|
5180
5234
|
readonly name: "deposit";
|
|
5181
5235
|
readonly outputs: readonly [];
|
|
@@ -5190,6 +5244,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
5190
5244
|
readonly internalType: "uint256";
|
|
5191
5245
|
readonly name: "referralCode";
|
|
5192
5246
|
readonly type: "uint256";
|
|
5247
|
+
}, {
|
|
5248
|
+
readonly internalType: "uint128";
|
|
5249
|
+
readonly name: "lockPeriod";
|
|
5250
|
+
readonly type: "uint128";
|
|
5193
5251
|
}];
|
|
5194
5252
|
readonly name: "depositETH";
|
|
5195
5253
|
readonly outputs: readonly [];
|
|
@@ -5286,7 +5344,7 @@ export declare class PufferL2DepositorHandler {
|
|
|
5286
5344
|
v: number;
|
|
5287
5345
|
r: `0x${string}`;
|
|
5288
5346
|
s: `0x${string}`;
|
|
5289
|
-
}, bigint], options?: Omit<import('viem').SimulateContractParameters<readonly [{
|
|
5347
|
+
}, bigint, bigint], options?: Omit<import('viem').SimulateContractParameters<readonly [{
|
|
5290
5348
|
readonly inputs: readonly [{
|
|
5291
5349
|
readonly internalType: "address";
|
|
5292
5350
|
readonly name: "accessManager";
|
|
@@ -5295,6 +5353,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
5295
5353
|
readonly internalType: "address";
|
|
5296
5354
|
readonly name: "weth";
|
|
5297
5355
|
readonly type: "address";
|
|
5356
|
+
}, {
|
|
5357
|
+
readonly internalType: "contract IPufLocker";
|
|
5358
|
+
readonly name: "locker";
|
|
5359
|
+
readonly type: "address";
|
|
5298
5360
|
}];
|
|
5299
5361
|
readonly stateMutability: "nonpayable";
|
|
5300
5362
|
readonly type: "constructor";
|
|
@@ -5436,25 +5498,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
5436
5498
|
readonly type: "bool";
|
|
5437
5499
|
}];
|
|
5438
5500
|
readonly name: "SetIsMigratorAllowed";
|
|
5439
|
-
/**
|
|
5440
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
5441
|
-
* doesn't make the transaction but returns two methods namely
|
|
5442
|
-
* `transact` and `estimate`.
|
|
5443
|
-
*
|
|
5444
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
5445
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
5446
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
5447
|
-
*
|
|
5448
|
-
* @param token Token to deposit.
|
|
5449
|
-
* @param walletAddress Wallet address to take the token from.
|
|
5450
|
-
* @param value Value in wei of the token to deposit.
|
|
5451
|
-
* @param referralCode Referral code for the deposit.
|
|
5452
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
5453
|
-
* transaction.
|
|
5454
|
-
*
|
|
5455
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
5456
|
-
* transaction.
|
|
5457
|
-
*/
|
|
5458
5501
|
readonly type: "event";
|
|
5459
5502
|
}, {
|
|
5460
5503
|
readonly anonymous: false;
|
|
@@ -5486,6 +5529,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
5486
5529
|
}];
|
|
5487
5530
|
readonly name: "TokenRemoved";
|
|
5488
5531
|
readonly type: "event";
|
|
5532
|
+
}, {
|
|
5533
|
+
readonly inputs: readonly [];
|
|
5534
|
+
readonly name: "PUFFER_LOCKER";
|
|
5535
|
+
readonly outputs: readonly [{
|
|
5536
|
+
readonly internalType: "contract IPufLocker";
|
|
5537
|
+
readonly name: "";
|
|
5538
|
+
readonly type: "address";
|
|
5539
|
+
}];
|
|
5540
|
+
readonly stateMutability: "view";
|
|
5541
|
+
readonly type: "function";
|
|
5489
5542
|
}, {
|
|
5490
5543
|
readonly inputs: readonly [];
|
|
5491
5544
|
readonly name: "WETH";
|
|
@@ -5554,6 +5607,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
5554
5607
|
readonly internalType: "uint256";
|
|
5555
5608
|
readonly name: "referralCode";
|
|
5556
5609
|
readonly type: "uint256";
|
|
5610
|
+
}, {
|
|
5611
|
+
readonly internalType: "uint128";
|
|
5612
|
+
readonly name: "lockPeriod";
|
|
5613
|
+
readonly type: "uint128";
|
|
5557
5614
|
}];
|
|
5558
5615
|
readonly name: "deposit";
|
|
5559
5616
|
readonly outputs: readonly [];
|
|
@@ -5568,6 +5625,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
5568
5625
|
readonly internalType: "uint256";
|
|
5569
5626
|
readonly name: "referralCode";
|
|
5570
5627
|
readonly type: "uint256";
|
|
5628
|
+
}, {
|
|
5629
|
+
readonly internalType: "uint128";
|
|
5630
|
+
readonly name: "lockPeriod";
|
|
5631
|
+
readonly type: "uint128";
|
|
5571
5632
|
}];
|
|
5572
5633
|
readonly name: "depositETH";
|
|
5573
5634
|
readonly outputs: readonly [];
|
|
@@ -5661,7 +5722,7 @@ export declare class PufferL2DepositorHandler {
|
|
|
5661
5722
|
v: number;
|
|
5662
5723
|
r: `0x${string}`;
|
|
5663
5724
|
s: `0x${string}`;
|
|
5664
|
-
}, bigint], ViemChain | undefined, TChainOverride, TAccountOverride>, "address" | "abi" | "args" | "functionName"> | undefined) => Promise<import('viem').SimulateContractReturnType<readonly [{
|
|
5725
|
+
}, bigint, bigint], ViemChain | undefined, TChainOverride, TAccountOverride>, "address" | "abi" | "args" | "functionName"> | undefined) => Promise<import('viem').SimulateContractReturnType<readonly [{
|
|
5665
5726
|
readonly inputs: readonly [{
|
|
5666
5727
|
readonly internalType: "address";
|
|
5667
5728
|
readonly name: "accessManager";
|
|
@@ -5670,6 +5731,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
5670
5731
|
readonly internalType: "address";
|
|
5671
5732
|
readonly name: "weth";
|
|
5672
5733
|
readonly type: "address";
|
|
5734
|
+
}, {
|
|
5735
|
+
readonly internalType: "contract IPufLocker";
|
|
5736
|
+
readonly name: "locker";
|
|
5737
|
+
readonly type: "address";
|
|
5673
5738
|
}];
|
|
5674
5739
|
readonly stateMutability: "nonpayable";
|
|
5675
5740
|
readonly type: "constructor";
|
|
@@ -5811,25 +5876,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
5811
5876
|
readonly type: "bool";
|
|
5812
5877
|
}];
|
|
5813
5878
|
readonly name: "SetIsMigratorAllowed";
|
|
5814
|
-
/**
|
|
5815
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
5816
|
-
* doesn't make the transaction but returns two methods namely
|
|
5817
|
-
* `transact` and `estimate`.
|
|
5818
|
-
*
|
|
5819
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
5820
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
5821
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
5822
|
-
*
|
|
5823
|
-
* @param token Token to deposit.
|
|
5824
|
-
* @param walletAddress Wallet address to take the token from.
|
|
5825
|
-
* @param value Value in wei of the token to deposit.
|
|
5826
|
-
* @param referralCode Referral code for the deposit.
|
|
5827
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
5828
|
-
* transaction.
|
|
5829
|
-
*
|
|
5830
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
5831
|
-
* transaction.
|
|
5832
|
-
*/
|
|
5833
5879
|
readonly type: "event";
|
|
5834
5880
|
}, {
|
|
5835
5881
|
readonly anonymous: false;
|
|
@@ -5861,6 +5907,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
5861
5907
|
}];
|
|
5862
5908
|
readonly name: "TokenRemoved";
|
|
5863
5909
|
readonly type: "event";
|
|
5910
|
+
}, {
|
|
5911
|
+
readonly inputs: readonly [];
|
|
5912
|
+
readonly name: "PUFFER_LOCKER";
|
|
5913
|
+
readonly outputs: readonly [{
|
|
5914
|
+
readonly internalType: "contract IPufLocker";
|
|
5915
|
+
readonly name: "";
|
|
5916
|
+
readonly type: "address";
|
|
5917
|
+
}];
|
|
5918
|
+
readonly stateMutability: "view";
|
|
5919
|
+
readonly type: "function";
|
|
5864
5920
|
}, {
|
|
5865
5921
|
readonly inputs: readonly [];
|
|
5866
5922
|
readonly name: "WETH";
|
|
@@ -5929,6 +5985,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
5929
5985
|
readonly internalType: "uint256";
|
|
5930
5986
|
readonly name: "referralCode";
|
|
5931
5987
|
readonly type: "uint256";
|
|
5988
|
+
}, {
|
|
5989
|
+
readonly internalType: "uint128";
|
|
5990
|
+
readonly name: "lockPeriod";
|
|
5991
|
+
readonly type: "uint128";
|
|
5932
5992
|
}];
|
|
5933
5993
|
readonly name: "deposit";
|
|
5934
5994
|
readonly outputs: readonly [];
|
|
@@ -5943,6 +6003,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
5943
6003
|
readonly internalType: "uint256";
|
|
5944
6004
|
readonly name: "referralCode";
|
|
5945
6005
|
readonly type: "uint256";
|
|
6006
|
+
}, {
|
|
6007
|
+
readonly internalType: "uint128";
|
|
6008
|
+
readonly name: "lockPeriod";
|
|
6009
|
+
readonly type: "uint128";
|
|
5946
6010
|
}];
|
|
5947
6011
|
readonly name: "depositETH";
|
|
5948
6012
|
readonly outputs: readonly [];
|
|
@@ -6036,8 +6100,8 @@ export declare class PufferL2DepositorHandler {
|
|
|
6036
6100
|
v: number;
|
|
6037
6101
|
r: `0x${string}`;
|
|
6038
6102
|
s: `0x${string}`;
|
|
6039
|
-
}, bigint], ViemChain | undefined, import('viem').Account | undefined, TChainOverride, TAccountOverride>>;
|
|
6040
|
-
depositETH: <TChainOverride_1 extends ViemChain | undefined = undefined, TAccountOverride_1 extends `0x${string}` | import('viem').Account | undefined = undefined>(args: readonly [`0x${string}`, bigint], options?: Omit<import('viem').SimulateContractParameters<readonly [{
|
|
6103
|
+
}, bigint, bigint], ViemChain | undefined, import('viem').Account | undefined, TChainOverride, TAccountOverride>>;
|
|
6104
|
+
depositETH: <TChainOverride_1 extends ViemChain | undefined = undefined, TAccountOverride_1 extends `0x${string}` | import('viem').Account | undefined = undefined>(args: readonly [`0x${string}`, bigint, bigint], options?: Omit<import('viem').SimulateContractParameters<readonly [{
|
|
6041
6105
|
readonly inputs: readonly [{
|
|
6042
6106
|
readonly internalType: "address";
|
|
6043
6107
|
readonly name: "accessManager";
|
|
@@ -6046,6 +6110,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
6046
6110
|
readonly internalType: "address";
|
|
6047
6111
|
readonly name: "weth";
|
|
6048
6112
|
readonly type: "address";
|
|
6113
|
+
}, {
|
|
6114
|
+
readonly internalType: "contract IPufLocker";
|
|
6115
|
+
readonly name: "locker";
|
|
6116
|
+
readonly type: "address";
|
|
6049
6117
|
}];
|
|
6050
6118
|
readonly stateMutability: "nonpayable";
|
|
6051
6119
|
readonly type: "constructor";
|
|
@@ -6187,25 +6255,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
6187
6255
|
readonly type: "bool";
|
|
6188
6256
|
}];
|
|
6189
6257
|
readonly name: "SetIsMigratorAllowed";
|
|
6190
|
-
/**
|
|
6191
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
6192
|
-
* doesn't make the transaction but returns two methods namely
|
|
6193
|
-
* `transact` and `estimate`.
|
|
6194
|
-
*
|
|
6195
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
6196
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
6197
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
6198
|
-
*
|
|
6199
|
-
* @param token Token to deposit.
|
|
6200
|
-
* @param walletAddress Wallet address to take the token from.
|
|
6201
|
-
* @param value Value in wei of the token to deposit.
|
|
6202
|
-
* @param referralCode Referral code for the deposit.
|
|
6203
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
6204
|
-
* transaction.
|
|
6205
|
-
*
|
|
6206
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
6207
|
-
* transaction.
|
|
6208
|
-
*/
|
|
6209
6258
|
readonly type: "event";
|
|
6210
6259
|
}, {
|
|
6211
6260
|
readonly anonymous: false;
|
|
@@ -6237,6 +6286,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
6237
6286
|
}];
|
|
6238
6287
|
readonly name: "TokenRemoved";
|
|
6239
6288
|
readonly type: "event";
|
|
6289
|
+
}, {
|
|
6290
|
+
readonly inputs: readonly [];
|
|
6291
|
+
readonly name: "PUFFER_LOCKER";
|
|
6292
|
+
readonly outputs: readonly [{
|
|
6293
|
+
readonly internalType: "contract IPufLocker";
|
|
6294
|
+
readonly name: "";
|
|
6295
|
+
readonly type: "address";
|
|
6296
|
+
}];
|
|
6297
|
+
readonly stateMutability: "view";
|
|
6298
|
+
readonly type: "function";
|
|
6240
6299
|
}, {
|
|
6241
6300
|
readonly inputs: readonly [];
|
|
6242
6301
|
readonly name: "WETH";
|
|
@@ -6305,6 +6364,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
6305
6364
|
readonly internalType: "uint256";
|
|
6306
6365
|
readonly name: "referralCode";
|
|
6307
6366
|
readonly type: "uint256";
|
|
6367
|
+
}, {
|
|
6368
|
+
readonly internalType: "uint128";
|
|
6369
|
+
readonly name: "lockPeriod";
|
|
6370
|
+
readonly type: "uint128";
|
|
6308
6371
|
}];
|
|
6309
6372
|
readonly name: "deposit";
|
|
6310
6373
|
readonly outputs: readonly [];
|
|
@@ -6319,6 +6382,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
6319
6382
|
readonly internalType: "uint256";
|
|
6320
6383
|
readonly name: "referralCode";
|
|
6321
6384
|
readonly type: "uint256";
|
|
6385
|
+
}, {
|
|
6386
|
+
readonly internalType: "uint128";
|
|
6387
|
+
readonly name: "lockPeriod";
|
|
6388
|
+
readonly type: "uint128";
|
|
6322
6389
|
}];
|
|
6323
6390
|
readonly name: "depositETH";
|
|
6324
6391
|
readonly outputs: readonly [];
|
|
@@ -6406,7 +6473,7 @@ export declare class PufferL2DepositorHandler {
|
|
|
6406
6473
|
}];
|
|
6407
6474
|
readonly stateMutability: "view";
|
|
6408
6475
|
readonly type: "function";
|
|
6409
|
-
}], "depositETH", readonly [`0x${string}`, bigint], ViemChain | undefined, TChainOverride_1, TAccountOverride_1>, "address" | "abi" | "args" | "functionName"> | undefined) => Promise<import('viem').SimulateContractReturnType<readonly [{
|
|
6476
|
+
}], "depositETH", readonly [`0x${string}`, bigint, bigint], ViemChain | undefined, TChainOverride_1, TAccountOverride_1>, "address" | "abi" | "args" | "functionName"> | undefined) => Promise<import('viem').SimulateContractReturnType<readonly [{
|
|
6410
6477
|
readonly inputs: readonly [{
|
|
6411
6478
|
readonly internalType: "address";
|
|
6412
6479
|
readonly name: "accessManager";
|
|
@@ -6415,6 +6482,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
6415
6482
|
readonly internalType: "address";
|
|
6416
6483
|
readonly name: "weth";
|
|
6417
6484
|
readonly type: "address";
|
|
6485
|
+
}, {
|
|
6486
|
+
readonly internalType: "contract IPufLocker";
|
|
6487
|
+
readonly name: "locker";
|
|
6488
|
+
readonly type: "address";
|
|
6418
6489
|
}];
|
|
6419
6490
|
readonly stateMutability: "nonpayable";
|
|
6420
6491
|
readonly type: "constructor";
|
|
@@ -6556,25 +6627,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
6556
6627
|
readonly type: "bool";
|
|
6557
6628
|
}];
|
|
6558
6629
|
readonly name: "SetIsMigratorAllowed";
|
|
6559
|
-
/**
|
|
6560
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
6561
|
-
* doesn't make the transaction but returns two methods namely
|
|
6562
|
-
* `transact` and `estimate`.
|
|
6563
|
-
*
|
|
6564
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
6565
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
6566
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
6567
|
-
*
|
|
6568
|
-
* @param token Token to deposit.
|
|
6569
|
-
* @param walletAddress Wallet address to take the token from.
|
|
6570
|
-
* @param value Value in wei of the token to deposit.
|
|
6571
|
-
* @param referralCode Referral code for the deposit.
|
|
6572
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
6573
|
-
* transaction.
|
|
6574
|
-
*
|
|
6575
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
6576
|
-
* transaction.
|
|
6577
|
-
*/
|
|
6578
6630
|
readonly type: "event";
|
|
6579
6631
|
}, {
|
|
6580
6632
|
readonly anonymous: false;
|
|
@@ -6606,6 +6658,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
6606
6658
|
}];
|
|
6607
6659
|
readonly name: "TokenRemoved";
|
|
6608
6660
|
readonly type: "event";
|
|
6661
|
+
}, {
|
|
6662
|
+
readonly inputs: readonly [];
|
|
6663
|
+
readonly name: "PUFFER_LOCKER";
|
|
6664
|
+
readonly outputs: readonly [{
|
|
6665
|
+
readonly internalType: "contract IPufLocker";
|
|
6666
|
+
readonly name: "";
|
|
6667
|
+
readonly type: "address";
|
|
6668
|
+
}];
|
|
6669
|
+
readonly stateMutability: "view";
|
|
6670
|
+
readonly type: "function";
|
|
6609
6671
|
}, {
|
|
6610
6672
|
readonly inputs: readonly [];
|
|
6611
6673
|
readonly name: "WETH";
|
|
@@ -6674,6 +6736,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
6674
6736
|
readonly internalType: "uint256";
|
|
6675
6737
|
readonly name: "referralCode";
|
|
6676
6738
|
readonly type: "uint256";
|
|
6739
|
+
}, {
|
|
6740
|
+
readonly internalType: "uint128";
|
|
6741
|
+
readonly name: "lockPeriod";
|
|
6742
|
+
readonly type: "uint128";
|
|
6677
6743
|
}];
|
|
6678
6744
|
readonly name: "deposit";
|
|
6679
6745
|
readonly outputs: readonly [];
|
|
@@ -6688,6 +6754,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
6688
6754
|
readonly internalType: "uint256";
|
|
6689
6755
|
readonly name: "referralCode";
|
|
6690
6756
|
readonly type: "uint256";
|
|
6757
|
+
}, {
|
|
6758
|
+
readonly internalType: "uint128";
|
|
6759
|
+
readonly name: "lockPeriod";
|
|
6760
|
+
readonly type: "uint128";
|
|
6691
6761
|
}];
|
|
6692
6762
|
readonly name: "depositETH";
|
|
6693
6763
|
readonly outputs: readonly [];
|
|
@@ -6775,7 +6845,7 @@ export declare class PufferL2DepositorHandler {
|
|
|
6775
6845
|
}];
|
|
6776
6846
|
readonly stateMutability: "view";
|
|
6777
6847
|
readonly type: "function";
|
|
6778
|
-
}], "depositETH", readonly [`0x${string}`, bigint], ViemChain | undefined, import('viem').Account | undefined, TChainOverride_1, TAccountOverride_1>>;
|
|
6848
|
+
}], "depositETH", readonly [`0x${string}`, bigint, bigint], ViemChain | undefined, import('viem').Account | undefined, TChainOverride_1, TAccountOverride_1>>;
|
|
6779
6849
|
setAuthority: <TChainOverride_2 extends ViemChain | undefined = undefined, TAccountOverride_2 extends `0x${string}` | import('viem').Account | undefined = undefined>(args: readonly [`0x${string}`], options?: Omit<import('viem').SimulateContractParameters<readonly [{
|
|
6780
6850
|
readonly inputs: readonly [{
|
|
6781
6851
|
readonly internalType: "address";
|
|
@@ -6785,6 +6855,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
6785
6855
|
readonly internalType: "address";
|
|
6786
6856
|
readonly name: "weth";
|
|
6787
6857
|
readonly type: "address";
|
|
6858
|
+
}, {
|
|
6859
|
+
readonly internalType: "contract IPufLocker";
|
|
6860
|
+
readonly name: "locker";
|
|
6861
|
+
readonly type: "address";
|
|
6788
6862
|
}];
|
|
6789
6863
|
readonly stateMutability: "nonpayable";
|
|
6790
6864
|
readonly type: "constructor";
|
|
@@ -6926,25 +7000,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
6926
7000
|
readonly type: "bool";
|
|
6927
7001
|
}];
|
|
6928
7002
|
readonly name: "SetIsMigratorAllowed";
|
|
6929
|
-
/**
|
|
6930
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
6931
|
-
* doesn't make the transaction but returns two methods namely
|
|
6932
|
-
* `transact` and `estimate`.
|
|
6933
|
-
*
|
|
6934
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
6935
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
6936
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
6937
|
-
*
|
|
6938
|
-
* @param token Token to deposit.
|
|
6939
|
-
* @param walletAddress Wallet address to take the token from.
|
|
6940
|
-
* @param value Value in wei of the token to deposit.
|
|
6941
|
-
* @param referralCode Referral code for the deposit.
|
|
6942
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
6943
|
-
* transaction.
|
|
6944
|
-
*
|
|
6945
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
6946
|
-
* transaction.
|
|
6947
|
-
*/
|
|
6948
7003
|
readonly type: "event";
|
|
6949
7004
|
}, {
|
|
6950
7005
|
readonly anonymous: false;
|
|
@@ -6976,6 +7031,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
6976
7031
|
}];
|
|
6977
7032
|
readonly name: "TokenRemoved";
|
|
6978
7033
|
readonly type: "event";
|
|
7034
|
+
}, {
|
|
7035
|
+
readonly inputs: readonly [];
|
|
7036
|
+
readonly name: "PUFFER_LOCKER";
|
|
7037
|
+
readonly outputs: readonly [{
|
|
7038
|
+
readonly internalType: "contract IPufLocker";
|
|
7039
|
+
readonly name: "";
|
|
7040
|
+
readonly type: "address";
|
|
7041
|
+
}];
|
|
7042
|
+
readonly stateMutability: "view";
|
|
7043
|
+
readonly type: "function";
|
|
6979
7044
|
}, {
|
|
6980
7045
|
readonly inputs: readonly [];
|
|
6981
7046
|
readonly name: "WETH";
|
|
@@ -7044,6 +7109,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
7044
7109
|
readonly internalType: "uint256";
|
|
7045
7110
|
readonly name: "referralCode";
|
|
7046
7111
|
readonly type: "uint256";
|
|
7112
|
+
}, {
|
|
7113
|
+
readonly internalType: "uint128";
|
|
7114
|
+
readonly name: "lockPeriod";
|
|
7115
|
+
readonly type: "uint128";
|
|
7047
7116
|
}];
|
|
7048
7117
|
readonly name: "deposit";
|
|
7049
7118
|
readonly outputs: readonly [];
|
|
@@ -7058,6 +7127,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
7058
7127
|
readonly internalType: "uint256";
|
|
7059
7128
|
readonly name: "referralCode";
|
|
7060
7129
|
readonly type: "uint256";
|
|
7130
|
+
}, {
|
|
7131
|
+
readonly internalType: "uint128";
|
|
7132
|
+
readonly name: "lockPeriod";
|
|
7133
|
+
readonly type: "uint128";
|
|
7061
7134
|
}];
|
|
7062
7135
|
readonly name: "depositETH";
|
|
7063
7136
|
readonly outputs: readonly [];
|
|
@@ -7154,6 +7227,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
7154
7227
|
readonly internalType: "address";
|
|
7155
7228
|
readonly name: "weth";
|
|
7156
7229
|
readonly type: "address";
|
|
7230
|
+
}, {
|
|
7231
|
+
readonly internalType: "contract IPufLocker";
|
|
7232
|
+
readonly name: "locker";
|
|
7233
|
+
readonly type: "address";
|
|
7157
7234
|
}];
|
|
7158
7235
|
readonly stateMutability: "nonpayable";
|
|
7159
7236
|
readonly type: "constructor";
|
|
@@ -7295,25 +7372,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
7295
7372
|
readonly type: "bool";
|
|
7296
7373
|
}];
|
|
7297
7374
|
readonly name: "SetIsMigratorAllowed";
|
|
7298
|
-
/**
|
|
7299
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
7300
|
-
* doesn't make the transaction but returns two methods namely
|
|
7301
|
-
* `transact` and `estimate`.
|
|
7302
|
-
*
|
|
7303
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
7304
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
7305
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
7306
|
-
*
|
|
7307
|
-
* @param token Token to deposit.
|
|
7308
|
-
* @param walletAddress Wallet address to take the token from.
|
|
7309
|
-
* @param value Value in wei of the token to deposit.
|
|
7310
|
-
* @param referralCode Referral code for the deposit.
|
|
7311
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
7312
|
-
* transaction.
|
|
7313
|
-
*
|
|
7314
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
7315
|
-
* transaction.
|
|
7316
|
-
*/
|
|
7317
7375
|
readonly type: "event";
|
|
7318
7376
|
}, {
|
|
7319
7377
|
readonly anonymous: false;
|
|
@@ -7345,6 +7403,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
7345
7403
|
}];
|
|
7346
7404
|
readonly name: "TokenRemoved";
|
|
7347
7405
|
readonly type: "event";
|
|
7406
|
+
}, {
|
|
7407
|
+
readonly inputs: readonly [];
|
|
7408
|
+
readonly name: "PUFFER_LOCKER";
|
|
7409
|
+
readonly outputs: readonly [{
|
|
7410
|
+
readonly internalType: "contract IPufLocker";
|
|
7411
|
+
readonly name: "";
|
|
7412
|
+
readonly type: "address";
|
|
7413
|
+
}];
|
|
7414
|
+
readonly stateMutability: "view";
|
|
7415
|
+
readonly type: "function";
|
|
7348
7416
|
}, {
|
|
7349
7417
|
readonly inputs: readonly [];
|
|
7350
7418
|
readonly name: "WETH";
|
|
@@ -7413,6 +7481,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
7413
7481
|
readonly internalType: "uint256";
|
|
7414
7482
|
readonly name: "referralCode";
|
|
7415
7483
|
readonly type: "uint256";
|
|
7484
|
+
}, {
|
|
7485
|
+
readonly internalType: "uint128";
|
|
7486
|
+
readonly name: "lockPeriod";
|
|
7487
|
+
readonly type: "uint128";
|
|
7416
7488
|
}];
|
|
7417
7489
|
readonly name: "deposit";
|
|
7418
7490
|
readonly outputs: readonly [];
|
|
@@ -7427,6 +7499,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
7427
7499
|
readonly internalType: "uint256";
|
|
7428
7500
|
readonly name: "referralCode";
|
|
7429
7501
|
readonly type: "uint256";
|
|
7502
|
+
}, {
|
|
7503
|
+
readonly internalType: "uint128";
|
|
7504
|
+
readonly name: "lockPeriod";
|
|
7505
|
+
readonly type: "uint128";
|
|
7430
7506
|
}];
|
|
7431
7507
|
readonly name: "depositETH";
|
|
7432
7508
|
readonly outputs: readonly [];
|
|
@@ -7524,6 +7600,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
7524
7600
|
readonly internalType: "address";
|
|
7525
7601
|
readonly name: "weth";
|
|
7526
7602
|
readonly type: "address";
|
|
7603
|
+
}, {
|
|
7604
|
+
readonly internalType: "contract IPufLocker";
|
|
7605
|
+
readonly name: "locker";
|
|
7606
|
+
readonly type: "address";
|
|
7527
7607
|
}];
|
|
7528
7608
|
readonly stateMutability: "nonpayable";
|
|
7529
7609
|
readonly type: "constructor";
|
|
@@ -7665,25 +7745,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
7665
7745
|
readonly type: "bool";
|
|
7666
7746
|
}];
|
|
7667
7747
|
readonly name: "SetIsMigratorAllowed";
|
|
7668
|
-
/**
|
|
7669
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
7670
|
-
* doesn't make the transaction but returns two methods namely
|
|
7671
|
-
* `transact` and `estimate`.
|
|
7672
|
-
*
|
|
7673
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
7674
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
7675
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
7676
|
-
*
|
|
7677
|
-
* @param token Token to deposit.
|
|
7678
|
-
* @param walletAddress Wallet address to take the token from.
|
|
7679
|
-
* @param value Value in wei of the token to deposit.
|
|
7680
|
-
* @param referralCode Referral code for the deposit.
|
|
7681
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
7682
|
-
* transaction.
|
|
7683
|
-
*
|
|
7684
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
7685
|
-
* transaction.
|
|
7686
|
-
*/
|
|
7687
7748
|
readonly type: "event";
|
|
7688
7749
|
}, {
|
|
7689
7750
|
readonly anonymous: false;
|
|
@@ -7717,18 +7778,28 @@ export declare class PufferL2DepositorHandler {
|
|
|
7717
7778
|
readonly type: "event";
|
|
7718
7779
|
}, {
|
|
7719
7780
|
readonly inputs: readonly [];
|
|
7720
|
-
readonly name: "
|
|
7781
|
+
readonly name: "PUFFER_LOCKER";
|
|
7721
7782
|
readonly outputs: readonly [{
|
|
7722
|
-
readonly internalType: "
|
|
7783
|
+
readonly internalType: "contract IPufLocker";
|
|
7723
7784
|
readonly name: "";
|
|
7724
7785
|
readonly type: "address";
|
|
7725
7786
|
}];
|
|
7726
7787
|
readonly stateMutability: "view";
|
|
7727
7788
|
readonly type: "function";
|
|
7728
7789
|
}, {
|
|
7729
|
-
readonly inputs: readonly [
|
|
7790
|
+
readonly inputs: readonly [];
|
|
7791
|
+
readonly name: "WETH";
|
|
7792
|
+
readonly outputs: readonly [{
|
|
7730
7793
|
readonly internalType: "address";
|
|
7731
|
-
readonly name: "
|
|
7794
|
+
readonly name: "";
|
|
7795
|
+
readonly type: "address";
|
|
7796
|
+
}];
|
|
7797
|
+
readonly stateMutability: "view";
|
|
7798
|
+
readonly type: "function";
|
|
7799
|
+
}, {
|
|
7800
|
+
readonly inputs: readonly [{
|
|
7801
|
+
readonly internalType: "address";
|
|
7802
|
+
readonly name: "token";
|
|
7732
7803
|
readonly type: "address";
|
|
7733
7804
|
}];
|
|
7734
7805
|
readonly name: "addNewToken";
|
|
@@ -7783,6 +7854,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
7783
7854
|
readonly internalType: "uint256";
|
|
7784
7855
|
readonly name: "referralCode";
|
|
7785
7856
|
readonly type: "uint256";
|
|
7857
|
+
}, {
|
|
7858
|
+
readonly internalType: "uint128";
|
|
7859
|
+
readonly name: "lockPeriod";
|
|
7860
|
+
readonly type: "uint128";
|
|
7786
7861
|
}];
|
|
7787
7862
|
readonly name: "deposit";
|
|
7788
7863
|
readonly outputs: readonly [];
|
|
@@ -7797,6 +7872,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
7797
7872
|
readonly internalType: "uint256";
|
|
7798
7873
|
readonly name: "referralCode";
|
|
7799
7874
|
readonly type: "uint256";
|
|
7875
|
+
}, {
|
|
7876
|
+
readonly internalType: "uint128";
|
|
7877
|
+
readonly name: "lockPeriod";
|
|
7878
|
+
readonly type: "uint128";
|
|
7800
7879
|
}];
|
|
7801
7880
|
readonly name: "depositETH";
|
|
7802
7881
|
readonly outputs: readonly [];
|
|
@@ -7893,6 +7972,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
7893
7972
|
readonly internalType: "address";
|
|
7894
7973
|
readonly name: "weth";
|
|
7895
7974
|
readonly type: "address";
|
|
7975
|
+
}, {
|
|
7976
|
+
readonly internalType: "contract IPufLocker";
|
|
7977
|
+
readonly name: "locker";
|
|
7978
|
+
readonly type: "address";
|
|
7896
7979
|
}];
|
|
7897
7980
|
readonly stateMutability: "nonpayable";
|
|
7898
7981
|
readonly type: "constructor";
|
|
@@ -8034,25 +8117,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
8034
8117
|
readonly type: "bool";
|
|
8035
8118
|
}];
|
|
8036
8119
|
readonly name: "SetIsMigratorAllowed";
|
|
8037
|
-
/**
|
|
8038
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
8039
|
-
* doesn't make the transaction but returns two methods namely
|
|
8040
|
-
* `transact` and `estimate`.
|
|
8041
|
-
*
|
|
8042
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
8043
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
8044
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
8045
|
-
*
|
|
8046
|
-
* @param token Token to deposit.
|
|
8047
|
-
* @param walletAddress Wallet address to take the token from.
|
|
8048
|
-
* @param value Value in wei of the token to deposit.
|
|
8049
|
-
* @param referralCode Referral code for the deposit.
|
|
8050
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
8051
|
-
* transaction.
|
|
8052
|
-
*
|
|
8053
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
8054
|
-
* transaction.
|
|
8055
|
-
*/
|
|
8056
8120
|
readonly type: "event";
|
|
8057
8121
|
}, {
|
|
8058
8122
|
readonly anonymous: false;
|
|
@@ -8084,6 +8148,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
8084
8148
|
}];
|
|
8085
8149
|
readonly name: "TokenRemoved";
|
|
8086
8150
|
readonly type: "event";
|
|
8151
|
+
}, {
|
|
8152
|
+
readonly inputs: readonly [];
|
|
8153
|
+
readonly name: "PUFFER_LOCKER";
|
|
8154
|
+
readonly outputs: readonly [{
|
|
8155
|
+
readonly internalType: "contract IPufLocker";
|
|
8156
|
+
readonly name: "";
|
|
8157
|
+
readonly type: "address";
|
|
8158
|
+
}];
|
|
8159
|
+
readonly stateMutability: "view";
|
|
8160
|
+
readonly type: "function";
|
|
8087
8161
|
}, {
|
|
8088
8162
|
readonly inputs: readonly [];
|
|
8089
8163
|
readonly name: "WETH";
|
|
@@ -8152,6 +8226,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
8152
8226
|
readonly internalType: "uint256";
|
|
8153
8227
|
readonly name: "referralCode";
|
|
8154
8228
|
readonly type: "uint256";
|
|
8229
|
+
}, {
|
|
8230
|
+
readonly internalType: "uint128";
|
|
8231
|
+
readonly name: "lockPeriod";
|
|
8232
|
+
readonly type: "uint128";
|
|
8155
8233
|
}];
|
|
8156
8234
|
readonly name: "deposit";
|
|
8157
8235
|
readonly outputs: readonly [];
|
|
@@ -8166,6 +8244,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
8166
8244
|
readonly internalType: "uint256";
|
|
8167
8245
|
readonly name: "referralCode";
|
|
8168
8246
|
readonly type: "uint256";
|
|
8247
|
+
}, {
|
|
8248
|
+
readonly internalType: "uint128";
|
|
8249
|
+
readonly name: "lockPeriod";
|
|
8250
|
+
readonly type: "uint128";
|
|
8169
8251
|
}];
|
|
8170
8252
|
readonly name: "depositETH";
|
|
8171
8253
|
readonly outputs: readonly [];
|
|
@@ -8263,6 +8345,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
8263
8345
|
readonly internalType: "address";
|
|
8264
8346
|
readonly name: "weth";
|
|
8265
8347
|
readonly type: "address";
|
|
8348
|
+
}, {
|
|
8349
|
+
readonly internalType: "contract IPufLocker";
|
|
8350
|
+
readonly name: "locker";
|
|
8351
|
+
readonly type: "address";
|
|
8266
8352
|
}];
|
|
8267
8353
|
readonly stateMutability: "nonpayable";
|
|
8268
8354
|
readonly type: "constructor";
|
|
@@ -8404,25 +8490,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
8404
8490
|
readonly type: "bool";
|
|
8405
8491
|
}];
|
|
8406
8492
|
readonly name: "SetIsMigratorAllowed";
|
|
8407
|
-
/**
|
|
8408
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
8409
|
-
* doesn't make the transaction but returns two methods namely
|
|
8410
|
-
* `transact` and `estimate`.
|
|
8411
|
-
*
|
|
8412
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
8413
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
8414
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
8415
|
-
*
|
|
8416
|
-
* @param token Token to deposit.
|
|
8417
|
-
* @param walletAddress Wallet address to take the token from.
|
|
8418
|
-
* @param value Value in wei of the token to deposit.
|
|
8419
|
-
* @param referralCode Referral code for the deposit.
|
|
8420
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
8421
|
-
* transaction.
|
|
8422
|
-
*
|
|
8423
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
8424
|
-
* transaction.
|
|
8425
|
-
*/
|
|
8426
8493
|
readonly type: "event";
|
|
8427
8494
|
}, {
|
|
8428
8495
|
readonly anonymous: false;
|
|
@@ -8454,6 +8521,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
8454
8521
|
}];
|
|
8455
8522
|
readonly name: "TokenRemoved";
|
|
8456
8523
|
readonly type: "event";
|
|
8524
|
+
}, {
|
|
8525
|
+
readonly inputs: readonly [];
|
|
8526
|
+
readonly name: "PUFFER_LOCKER";
|
|
8527
|
+
readonly outputs: readonly [{
|
|
8528
|
+
readonly internalType: "contract IPufLocker";
|
|
8529
|
+
readonly name: "";
|
|
8530
|
+
readonly type: "address";
|
|
8531
|
+
}];
|
|
8532
|
+
readonly stateMutability: "view";
|
|
8533
|
+
readonly type: "function";
|
|
8457
8534
|
}, {
|
|
8458
8535
|
readonly inputs: readonly [];
|
|
8459
8536
|
readonly name: "WETH";
|
|
@@ -8522,6 +8599,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
8522
8599
|
readonly internalType: "uint256";
|
|
8523
8600
|
readonly name: "referralCode";
|
|
8524
8601
|
readonly type: "uint256";
|
|
8602
|
+
}, {
|
|
8603
|
+
readonly internalType: "uint128";
|
|
8604
|
+
readonly name: "lockPeriod";
|
|
8605
|
+
readonly type: "uint128";
|
|
8525
8606
|
}];
|
|
8526
8607
|
readonly name: "deposit";
|
|
8527
8608
|
readonly outputs: readonly [];
|
|
@@ -8536,6 +8617,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
8536
8617
|
readonly internalType: "uint256";
|
|
8537
8618
|
readonly name: "referralCode";
|
|
8538
8619
|
readonly type: "uint256";
|
|
8620
|
+
}, {
|
|
8621
|
+
readonly internalType: "uint128";
|
|
8622
|
+
readonly name: "lockPeriod";
|
|
8623
|
+
readonly type: "uint128";
|
|
8539
8624
|
}];
|
|
8540
8625
|
readonly name: "depositETH";
|
|
8541
8626
|
readonly outputs: readonly [];
|
|
@@ -8632,6 +8717,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
8632
8717
|
readonly internalType: "address";
|
|
8633
8718
|
readonly name: "weth";
|
|
8634
8719
|
readonly type: "address";
|
|
8720
|
+
}, {
|
|
8721
|
+
readonly internalType: "contract IPufLocker";
|
|
8722
|
+
readonly name: "locker";
|
|
8723
|
+
readonly type: "address";
|
|
8635
8724
|
}];
|
|
8636
8725
|
readonly stateMutability: "nonpayable";
|
|
8637
8726
|
readonly type: "constructor";
|
|
@@ -8773,25 +8862,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
8773
8862
|
readonly type: "bool";
|
|
8774
8863
|
}];
|
|
8775
8864
|
readonly name: "SetIsMigratorAllowed";
|
|
8776
|
-
/**
|
|
8777
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
8778
|
-
* doesn't make the transaction but returns two methods namely
|
|
8779
|
-
* `transact` and `estimate`.
|
|
8780
|
-
*
|
|
8781
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
8782
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
8783
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
8784
|
-
*
|
|
8785
|
-
* @param token Token to deposit.
|
|
8786
|
-
* @param walletAddress Wallet address to take the token from.
|
|
8787
|
-
* @param value Value in wei of the token to deposit.
|
|
8788
|
-
* @param referralCode Referral code for the deposit.
|
|
8789
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
8790
|
-
* transaction.
|
|
8791
|
-
*
|
|
8792
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
8793
|
-
* transaction.
|
|
8794
|
-
*/
|
|
8795
8865
|
readonly type: "event";
|
|
8796
8866
|
}, {
|
|
8797
8867
|
readonly anonymous: false;
|
|
@@ -8823,6 +8893,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
8823
8893
|
}];
|
|
8824
8894
|
readonly name: "TokenRemoved";
|
|
8825
8895
|
readonly type: "event";
|
|
8896
|
+
}, {
|
|
8897
|
+
readonly inputs: readonly [];
|
|
8898
|
+
readonly name: "PUFFER_LOCKER";
|
|
8899
|
+
readonly outputs: readonly [{
|
|
8900
|
+
readonly internalType: "contract IPufLocker";
|
|
8901
|
+
readonly name: "";
|
|
8902
|
+
readonly type: "address";
|
|
8903
|
+
}];
|
|
8904
|
+
readonly stateMutability: "view";
|
|
8905
|
+
readonly type: "function";
|
|
8826
8906
|
}, {
|
|
8827
8907
|
readonly inputs: readonly [];
|
|
8828
8908
|
readonly name: "WETH";
|
|
@@ -8891,6 +8971,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
8891
8971
|
readonly internalType: "uint256";
|
|
8892
8972
|
readonly name: "referralCode";
|
|
8893
8973
|
readonly type: "uint256";
|
|
8974
|
+
}, {
|
|
8975
|
+
readonly internalType: "uint128";
|
|
8976
|
+
readonly name: "lockPeriod";
|
|
8977
|
+
readonly type: "uint128";
|
|
8894
8978
|
}];
|
|
8895
8979
|
readonly name: "deposit";
|
|
8896
8980
|
readonly outputs: readonly [];
|
|
@@ -8905,6 +8989,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
8905
8989
|
readonly internalType: "uint256";
|
|
8906
8990
|
readonly name: "referralCode";
|
|
8907
8991
|
readonly type: "uint256";
|
|
8992
|
+
}, {
|
|
8993
|
+
readonly internalType: "uint128";
|
|
8994
|
+
readonly name: "lockPeriod";
|
|
8995
|
+
readonly type: "uint128";
|
|
8908
8996
|
}];
|
|
8909
8997
|
readonly name: "depositETH";
|
|
8910
8998
|
readonly outputs: readonly [];
|
|
@@ -9002,6 +9090,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
9002
9090
|
readonly internalType: "address";
|
|
9003
9091
|
readonly name: "weth";
|
|
9004
9092
|
readonly type: "address";
|
|
9093
|
+
}, {
|
|
9094
|
+
readonly internalType: "contract IPufLocker";
|
|
9095
|
+
readonly name: "locker";
|
|
9096
|
+
readonly type: "address";
|
|
9005
9097
|
}];
|
|
9006
9098
|
readonly stateMutability: "nonpayable";
|
|
9007
9099
|
readonly type: "constructor";
|
|
@@ -9143,25 +9235,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
9143
9235
|
readonly type: "bool";
|
|
9144
9236
|
}];
|
|
9145
9237
|
readonly name: "SetIsMigratorAllowed";
|
|
9146
|
-
/**
|
|
9147
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
9148
|
-
* doesn't make the transaction but returns two methods namely
|
|
9149
|
-
* `transact` and `estimate`.
|
|
9150
|
-
*
|
|
9151
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
9152
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
9153
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
9154
|
-
*
|
|
9155
|
-
* @param token Token to deposit.
|
|
9156
|
-
* @param walletAddress Wallet address to take the token from.
|
|
9157
|
-
* @param value Value in wei of the token to deposit.
|
|
9158
|
-
* @param referralCode Referral code for the deposit.
|
|
9159
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
9160
|
-
* transaction.
|
|
9161
|
-
*
|
|
9162
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
9163
|
-
* transaction.
|
|
9164
|
-
*/
|
|
9165
9238
|
readonly type: "event";
|
|
9166
9239
|
}, {
|
|
9167
9240
|
readonly anonymous: false;
|
|
@@ -9193,6 +9266,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
9193
9266
|
}];
|
|
9194
9267
|
readonly name: "TokenRemoved";
|
|
9195
9268
|
readonly type: "event";
|
|
9269
|
+
}, {
|
|
9270
|
+
readonly inputs: readonly [];
|
|
9271
|
+
readonly name: "PUFFER_LOCKER";
|
|
9272
|
+
readonly outputs: readonly [{
|
|
9273
|
+
readonly internalType: "contract IPufLocker";
|
|
9274
|
+
readonly name: "";
|
|
9275
|
+
readonly type: "address";
|
|
9276
|
+
}];
|
|
9277
|
+
readonly stateMutability: "view";
|
|
9278
|
+
readonly type: "function";
|
|
9196
9279
|
}, {
|
|
9197
9280
|
readonly inputs: readonly [];
|
|
9198
9281
|
readonly name: "WETH";
|
|
@@ -9261,6 +9344,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
9261
9344
|
readonly internalType: "uint256";
|
|
9262
9345
|
readonly name: "referralCode";
|
|
9263
9346
|
readonly type: "uint256";
|
|
9347
|
+
}, {
|
|
9348
|
+
readonly internalType: "uint128";
|
|
9349
|
+
readonly name: "lockPeriod";
|
|
9350
|
+
readonly type: "uint128";
|
|
9264
9351
|
}];
|
|
9265
9352
|
readonly name: "deposit";
|
|
9266
9353
|
readonly outputs: readonly [];
|
|
@@ -9275,6 +9362,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
9275
9362
|
readonly internalType: "uint256";
|
|
9276
9363
|
readonly name: "referralCode";
|
|
9277
9364
|
readonly type: "uint256";
|
|
9365
|
+
}, {
|
|
9366
|
+
readonly internalType: "uint128";
|
|
9367
|
+
readonly name: "lockPeriod";
|
|
9368
|
+
readonly type: "uint128";
|
|
9278
9369
|
}];
|
|
9279
9370
|
readonly name: "depositETH";
|
|
9280
9371
|
readonly outputs: readonly [];
|
|
@@ -9371,6 +9462,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
9371
9462
|
readonly internalType: "address";
|
|
9372
9463
|
readonly name: "weth";
|
|
9373
9464
|
readonly type: "address";
|
|
9465
|
+
}, {
|
|
9466
|
+
readonly internalType: "contract IPufLocker";
|
|
9467
|
+
readonly name: "locker";
|
|
9468
|
+
readonly type: "address";
|
|
9374
9469
|
}];
|
|
9375
9470
|
readonly stateMutability: "nonpayable";
|
|
9376
9471
|
readonly type: "constructor";
|
|
@@ -9512,25 +9607,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
9512
9607
|
readonly type: "bool";
|
|
9513
9608
|
}];
|
|
9514
9609
|
readonly name: "SetIsMigratorAllowed";
|
|
9515
|
-
/**
|
|
9516
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
9517
|
-
* doesn't make the transaction but returns two methods namely
|
|
9518
|
-
* `transact` and `estimate`.
|
|
9519
|
-
*
|
|
9520
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
9521
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
9522
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
9523
|
-
*
|
|
9524
|
-
* @param token Token to deposit.
|
|
9525
|
-
* @param walletAddress Wallet address to take the token from.
|
|
9526
|
-
* @param value Value in wei of the token to deposit.
|
|
9527
|
-
* @param referralCode Referral code for the deposit.
|
|
9528
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
9529
|
-
* transaction.
|
|
9530
|
-
*
|
|
9531
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
9532
|
-
* transaction.
|
|
9533
|
-
*/
|
|
9534
9610
|
readonly type: "event";
|
|
9535
9611
|
}, {
|
|
9536
9612
|
readonly anonymous: false;
|
|
@@ -9562,6 +9638,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
9562
9638
|
}];
|
|
9563
9639
|
readonly name: "TokenRemoved";
|
|
9564
9640
|
readonly type: "event";
|
|
9641
|
+
}, {
|
|
9642
|
+
readonly inputs: readonly [];
|
|
9643
|
+
readonly name: "PUFFER_LOCKER";
|
|
9644
|
+
readonly outputs: readonly [{
|
|
9645
|
+
readonly internalType: "contract IPufLocker";
|
|
9646
|
+
readonly name: "";
|
|
9647
|
+
readonly type: "address";
|
|
9648
|
+
}];
|
|
9649
|
+
readonly stateMutability: "view";
|
|
9650
|
+
readonly type: "function";
|
|
9565
9651
|
}, {
|
|
9566
9652
|
readonly inputs: readonly [];
|
|
9567
9653
|
readonly name: "WETH";
|
|
@@ -9630,6 +9716,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
9630
9716
|
readonly internalType: "uint256";
|
|
9631
9717
|
readonly name: "referralCode";
|
|
9632
9718
|
readonly type: "uint256";
|
|
9719
|
+
}, {
|
|
9720
|
+
readonly internalType: "uint128";
|
|
9721
|
+
readonly name: "lockPeriod";
|
|
9722
|
+
readonly type: "uint128";
|
|
9633
9723
|
}];
|
|
9634
9724
|
readonly name: "deposit";
|
|
9635
9725
|
readonly outputs: readonly [];
|
|
@@ -9644,6 +9734,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
9644
9734
|
readonly internalType: "uint256";
|
|
9645
9735
|
readonly name: "referralCode";
|
|
9646
9736
|
readonly type: "uint256";
|
|
9737
|
+
}, {
|
|
9738
|
+
readonly internalType: "uint128";
|
|
9739
|
+
readonly name: "lockPeriod";
|
|
9740
|
+
readonly type: "uint128";
|
|
9647
9741
|
}];
|
|
9648
9742
|
readonly name: "depositETH";
|
|
9649
9743
|
readonly outputs: readonly [];
|
|
@@ -9741,6 +9835,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
9741
9835
|
readonly internalType: "address";
|
|
9742
9836
|
readonly name: "weth";
|
|
9743
9837
|
readonly type: "address";
|
|
9838
|
+
}, {
|
|
9839
|
+
readonly internalType: "contract IPufLocker";
|
|
9840
|
+
readonly name: "locker";
|
|
9841
|
+
readonly type: "address";
|
|
9744
9842
|
}];
|
|
9745
9843
|
readonly stateMutability: "nonpayable";
|
|
9746
9844
|
readonly type: "constructor";
|
|
@@ -9882,25 +9980,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
9882
9980
|
readonly type: "bool";
|
|
9883
9981
|
}];
|
|
9884
9982
|
readonly name: "SetIsMigratorAllowed";
|
|
9885
|
-
/**
|
|
9886
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
9887
|
-
* doesn't make the transaction but returns two methods namely
|
|
9888
|
-
* `transact` and `estimate`.
|
|
9889
|
-
*
|
|
9890
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
9891
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
9892
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
9893
|
-
*
|
|
9894
|
-
* @param token Token to deposit.
|
|
9895
|
-
* @param walletAddress Wallet address to take the token from.
|
|
9896
|
-
* @param value Value in wei of the token to deposit.
|
|
9897
|
-
* @param referralCode Referral code for the deposit.
|
|
9898
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
9899
|
-
* transaction.
|
|
9900
|
-
*
|
|
9901
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
9902
|
-
* transaction.
|
|
9903
|
-
*/
|
|
9904
9983
|
readonly type: "event";
|
|
9905
9984
|
}, {
|
|
9906
9985
|
readonly anonymous: false;
|
|
@@ -9932,6 +10011,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
9932
10011
|
}];
|
|
9933
10012
|
readonly name: "TokenRemoved";
|
|
9934
10013
|
readonly type: "event";
|
|
10014
|
+
}, {
|
|
10015
|
+
readonly inputs: readonly [];
|
|
10016
|
+
readonly name: "PUFFER_LOCKER";
|
|
10017
|
+
readonly outputs: readonly [{
|
|
10018
|
+
readonly internalType: "contract IPufLocker";
|
|
10019
|
+
readonly name: "";
|
|
10020
|
+
readonly type: "address";
|
|
10021
|
+
}];
|
|
10022
|
+
readonly stateMutability: "view";
|
|
10023
|
+
readonly type: "function";
|
|
9935
10024
|
}, {
|
|
9936
10025
|
readonly inputs: readonly [];
|
|
9937
10026
|
readonly name: "WETH";
|
|
@@ -10000,6 +10089,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
10000
10089
|
readonly internalType: "uint256";
|
|
10001
10090
|
readonly name: "referralCode";
|
|
10002
10091
|
readonly type: "uint256";
|
|
10092
|
+
}, {
|
|
10093
|
+
readonly internalType: "uint128";
|
|
10094
|
+
readonly name: "lockPeriod";
|
|
10095
|
+
readonly type: "uint128";
|
|
10003
10096
|
}];
|
|
10004
10097
|
readonly name: "deposit";
|
|
10005
10098
|
readonly outputs: readonly [];
|
|
@@ -10014,6 +10107,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
10014
10107
|
readonly internalType: "uint256";
|
|
10015
10108
|
readonly name: "referralCode";
|
|
10016
10109
|
readonly type: "uint256";
|
|
10110
|
+
}, {
|
|
10111
|
+
readonly internalType: "uint128";
|
|
10112
|
+
readonly name: "lockPeriod";
|
|
10113
|
+
readonly type: "uint128";
|
|
10017
10114
|
}];
|
|
10018
10115
|
readonly name: "depositETH";
|
|
10019
10116
|
readonly outputs: readonly [];
|
|
@@ -10110,6 +10207,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
10110
10207
|
readonly internalType: "address";
|
|
10111
10208
|
readonly name: "weth";
|
|
10112
10209
|
readonly type: "address";
|
|
10210
|
+
}, {
|
|
10211
|
+
readonly internalType: "contract IPufLocker";
|
|
10212
|
+
readonly name: "locker";
|
|
10213
|
+
readonly type: "address";
|
|
10113
10214
|
}];
|
|
10114
10215
|
readonly stateMutability: "nonpayable";
|
|
10115
10216
|
readonly type: "constructor";
|
|
@@ -10251,25 +10352,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
10251
10352
|
readonly type: "bool";
|
|
10252
10353
|
}];
|
|
10253
10354
|
readonly name: "SetIsMigratorAllowed";
|
|
10254
|
-
/**
|
|
10255
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
10256
|
-
* doesn't make the transaction but returns two methods namely
|
|
10257
|
-
* `transact` and `estimate`.
|
|
10258
|
-
*
|
|
10259
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
10260
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
10261
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
10262
|
-
*
|
|
10263
|
-
* @param token Token to deposit.
|
|
10264
|
-
* @param walletAddress Wallet address to take the token from.
|
|
10265
|
-
* @param value Value in wei of the token to deposit.
|
|
10266
|
-
* @param referralCode Referral code for the deposit.
|
|
10267
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
10268
|
-
* transaction.
|
|
10269
|
-
*
|
|
10270
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
10271
|
-
* transaction.
|
|
10272
|
-
*/
|
|
10273
10355
|
readonly type: "event";
|
|
10274
10356
|
}, {
|
|
10275
10357
|
readonly anonymous: false;
|
|
@@ -10301,6 +10383,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
10301
10383
|
}];
|
|
10302
10384
|
readonly name: "TokenRemoved";
|
|
10303
10385
|
readonly type: "event";
|
|
10386
|
+
}, {
|
|
10387
|
+
readonly inputs: readonly [];
|
|
10388
|
+
readonly name: "PUFFER_LOCKER";
|
|
10389
|
+
readonly outputs: readonly [{
|
|
10390
|
+
readonly internalType: "contract IPufLocker";
|
|
10391
|
+
readonly name: "";
|
|
10392
|
+
readonly type: "address";
|
|
10393
|
+
}];
|
|
10394
|
+
readonly stateMutability: "view";
|
|
10395
|
+
readonly type: "function";
|
|
10304
10396
|
}, {
|
|
10305
10397
|
readonly inputs: readonly [];
|
|
10306
10398
|
readonly name: "WETH";
|
|
@@ -10369,6 +10461,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
10369
10461
|
readonly internalType: "uint256";
|
|
10370
10462
|
readonly name: "referralCode";
|
|
10371
10463
|
readonly type: "uint256";
|
|
10464
|
+
}, {
|
|
10465
|
+
readonly internalType: "uint128";
|
|
10466
|
+
readonly name: "lockPeriod";
|
|
10467
|
+
readonly type: "uint128";
|
|
10372
10468
|
}];
|
|
10373
10469
|
readonly name: "deposit";
|
|
10374
10470
|
readonly outputs: readonly [];
|
|
@@ -10383,6 +10479,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
10383
10479
|
readonly internalType: "uint256";
|
|
10384
10480
|
readonly name: "referralCode";
|
|
10385
10481
|
readonly type: "uint256";
|
|
10482
|
+
}, {
|
|
10483
|
+
readonly internalType: "uint128";
|
|
10484
|
+
readonly name: "lockPeriod";
|
|
10485
|
+
readonly type: "uint128";
|
|
10386
10486
|
}];
|
|
10387
10487
|
readonly name: "depositETH";
|
|
10388
10488
|
readonly outputs: readonly [];
|
|
@@ -10487,6 +10587,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
10487
10587
|
readonly internalType: "address";
|
|
10488
10588
|
readonly name: "weth";
|
|
10489
10589
|
readonly type: "address";
|
|
10590
|
+
}, {
|
|
10591
|
+
readonly internalType: "contract IPufLocker";
|
|
10592
|
+
readonly name: "locker";
|
|
10593
|
+
readonly type: "address";
|
|
10490
10594
|
}];
|
|
10491
10595
|
readonly stateMutability: "nonpayable";
|
|
10492
10596
|
readonly type: "constructor";
|
|
@@ -10628,25 +10732,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
10628
10732
|
readonly type: "bool";
|
|
10629
10733
|
}];
|
|
10630
10734
|
readonly name: "SetIsMigratorAllowed";
|
|
10631
|
-
/**
|
|
10632
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
10633
|
-
* doesn't make the transaction but returns two methods namely
|
|
10634
|
-
* `transact` and `estimate`.
|
|
10635
|
-
*
|
|
10636
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
10637
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
10638
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
10639
|
-
*
|
|
10640
|
-
* @param token Token to deposit.
|
|
10641
|
-
* @param walletAddress Wallet address to take the token from.
|
|
10642
|
-
* @param value Value in wei of the token to deposit.
|
|
10643
|
-
* @param referralCode Referral code for the deposit.
|
|
10644
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
10645
|
-
* transaction.
|
|
10646
|
-
*
|
|
10647
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
10648
|
-
* transaction.
|
|
10649
|
-
*/
|
|
10650
10735
|
readonly type: "event";
|
|
10651
10736
|
}, {
|
|
10652
10737
|
readonly anonymous: false;
|
|
@@ -10678,6 +10763,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
10678
10763
|
}];
|
|
10679
10764
|
readonly name: "TokenRemoved";
|
|
10680
10765
|
readonly type: "event";
|
|
10766
|
+
}, {
|
|
10767
|
+
readonly inputs: readonly [];
|
|
10768
|
+
readonly name: "PUFFER_LOCKER";
|
|
10769
|
+
readonly outputs: readonly [{
|
|
10770
|
+
readonly internalType: "contract IPufLocker";
|
|
10771
|
+
readonly name: "";
|
|
10772
|
+
readonly type: "address";
|
|
10773
|
+
}];
|
|
10774
|
+
readonly stateMutability: "view";
|
|
10775
|
+
readonly type: "function";
|
|
10681
10776
|
}, {
|
|
10682
10777
|
readonly inputs: readonly [];
|
|
10683
10778
|
readonly name: "WETH";
|
|
@@ -10746,6 +10841,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
10746
10841
|
readonly internalType: "uint256";
|
|
10747
10842
|
readonly name: "referralCode";
|
|
10748
10843
|
readonly type: "uint256";
|
|
10844
|
+
}, {
|
|
10845
|
+
readonly internalType: "uint128";
|
|
10846
|
+
readonly name: "lockPeriod";
|
|
10847
|
+
readonly type: "uint128";
|
|
10749
10848
|
}];
|
|
10750
10849
|
readonly name: "deposit";
|
|
10751
10850
|
readonly outputs: readonly [];
|
|
@@ -10760,6 +10859,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
10760
10859
|
readonly internalType: "uint256";
|
|
10761
10860
|
readonly name: "referralCode";
|
|
10762
10861
|
readonly type: "uint256";
|
|
10862
|
+
}, {
|
|
10863
|
+
readonly internalType: "uint128";
|
|
10864
|
+
readonly name: "lockPeriod";
|
|
10865
|
+
readonly type: "uint128";
|
|
10763
10866
|
}];
|
|
10764
10867
|
readonly name: "depositETH";
|
|
10765
10868
|
readonly outputs: readonly [];
|
|
@@ -10870,6 +10973,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
10870
10973
|
readonly internalType: "address";
|
|
10871
10974
|
readonly name: "weth";
|
|
10872
10975
|
readonly type: "address";
|
|
10976
|
+
}, {
|
|
10977
|
+
readonly internalType: "contract IPufLocker";
|
|
10978
|
+
readonly name: "locker";
|
|
10979
|
+
readonly type: "address";
|
|
10873
10980
|
}];
|
|
10874
10981
|
readonly stateMutability: "nonpayable";
|
|
10875
10982
|
readonly type: "constructor";
|
|
@@ -11011,25 +11118,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
11011
11118
|
readonly type: "bool";
|
|
11012
11119
|
}];
|
|
11013
11120
|
readonly name: "SetIsMigratorAllowed";
|
|
11014
|
-
/**
|
|
11015
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
11016
|
-
* doesn't make the transaction but returns two methods namely
|
|
11017
|
-
* `transact` and `estimate`.
|
|
11018
|
-
*
|
|
11019
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
11020
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
11021
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
11022
|
-
*
|
|
11023
|
-
* @param token Token to deposit.
|
|
11024
|
-
* @param walletAddress Wallet address to take the token from.
|
|
11025
|
-
* @param value Value in wei of the token to deposit.
|
|
11026
|
-
* @param referralCode Referral code for the deposit.
|
|
11027
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
11028
|
-
* transaction.
|
|
11029
|
-
*
|
|
11030
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
11031
|
-
* transaction.
|
|
11032
|
-
*/
|
|
11033
11121
|
readonly type: "event";
|
|
11034
11122
|
}, {
|
|
11035
11123
|
readonly anonymous: false;
|
|
@@ -11061,6 +11149,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
11061
11149
|
}];
|
|
11062
11150
|
readonly name: "TokenRemoved";
|
|
11063
11151
|
readonly type: "event";
|
|
11152
|
+
}, {
|
|
11153
|
+
readonly inputs: readonly [];
|
|
11154
|
+
readonly name: "PUFFER_LOCKER";
|
|
11155
|
+
readonly outputs: readonly [{
|
|
11156
|
+
readonly internalType: "contract IPufLocker";
|
|
11157
|
+
readonly name: "";
|
|
11158
|
+
readonly type: "address";
|
|
11159
|
+
}];
|
|
11160
|
+
readonly stateMutability: "view";
|
|
11161
|
+
readonly type: "function";
|
|
11064
11162
|
}, {
|
|
11065
11163
|
readonly inputs: readonly [];
|
|
11066
11164
|
readonly name: "WETH";
|
|
@@ -11129,6 +11227,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
11129
11227
|
readonly internalType: "uint256";
|
|
11130
11228
|
readonly name: "referralCode";
|
|
11131
11229
|
readonly type: "uint256";
|
|
11230
|
+
}, {
|
|
11231
|
+
readonly internalType: "uint128";
|
|
11232
|
+
readonly name: "lockPeriod";
|
|
11233
|
+
readonly type: "uint128";
|
|
11132
11234
|
}];
|
|
11133
11235
|
readonly name: "deposit";
|
|
11134
11236
|
readonly outputs: readonly [];
|
|
@@ -11143,6 +11245,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
11143
11245
|
readonly internalType: "uint256";
|
|
11144
11246
|
readonly name: "referralCode";
|
|
11145
11247
|
readonly type: "uint256";
|
|
11248
|
+
}, {
|
|
11249
|
+
readonly internalType: "uint128";
|
|
11250
|
+
readonly name: "lockPeriod";
|
|
11251
|
+
readonly type: "uint128";
|
|
11146
11252
|
}];
|
|
11147
11253
|
readonly name: "depositETH";
|
|
11148
11254
|
readonly outputs: readonly [];
|
|
@@ -11261,6 +11367,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
11261
11367
|
readonly internalType: "address";
|
|
11262
11368
|
readonly name: "weth";
|
|
11263
11369
|
readonly type: "address";
|
|
11370
|
+
}, {
|
|
11371
|
+
readonly internalType: "contract IPufLocker";
|
|
11372
|
+
readonly name: "locker";
|
|
11373
|
+
readonly type: "address";
|
|
11264
11374
|
}];
|
|
11265
11375
|
readonly stateMutability: "nonpayable";
|
|
11266
11376
|
readonly type: "constructor";
|
|
@@ -11402,25 +11512,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
11402
11512
|
readonly type: "bool";
|
|
11403
11513
|
}];
|
|
11404
11514
|
readonly name: "SetIsMigratorAllowed";
|
|
11405
|
-
/**
|
|
11406
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
11407
|
-
* doesn't make the transaction but returns two methods namely
|
|
11408
|
-
* `transact` and `estimate`.
|
|
11409
|
-
*
|
|
11410
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
11411
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
11412
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
11413
|
-
*
|
|
11414
|
-
* @param token Token to deposit.
|
|
11415
|
-
* @param walletAddress Wallet address to take the token from.
|
|
11416
|
-
* @param value Value in wei of the token to deposit.
|
|
11417
|
-
* @param referralCode Referral code for the deposit.
|
|
11418
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
11419
|
-
* transaction.
|
|
11420
|
-
*
|
|
11421
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
11422
|
-
* transaction.
|
|
11423
|
-
*/
|
|
11424
11515
|
readonly type: "event";
|
|
11425
11516
|
}, {
|
|
11426
11517
|
readonly anonymous: false;
|
|
@@ -11452,6 +11543,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
11452
11543
|
}];
|
|
11453
11544
|
readonly name: "TokenRemoved";
|
|
11454
11545
|
readonly type: "event";
|
|
11546
|
+
}, {
|
|
11547
|
+
readonly inputs: readonly [];
|
|
11548
|
+
readonly name: "PUFFER_LOCKER";
|
|
11549
|
+
readonly outputs: readonly [{
|
|
11550
|
+
readonly internalType: "contract IPufLocker";
|
|
11551
|
+
readonly name: "";
|
|
11552
|
+
readonly type: "address";
|
|
11553
|
+
}];
|
|
11554
|
+
readonly stateMutability: "view";
|
|
11555
|
+
readonly type: "function";
|
|
11455
11556
|
}, {
|
|
11456
11557
|
readonly inputs: readonly [];
|
|
11457
11558
|
readonly name: "WETH";
|
|
@@ -11520,6 +11621,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
11520
11621
|
readonly internalType: "uint256";
|
|
11521
11622
|
readonly name: "referralCode";
|
|
11522
11623
|
readonly type: "uint256";
|
|
11624
|
+
}, {
|
|
11625
|
+
readonly internalType: "uint128";
|
|
11626
|
+
readonly name: "lockPeriod";
|
|
11627
|
+
readonly type: "uint128";
|
|
11523
11628
|
}];
|
|
11524
11629
|
readonly name: "deposit";
|
|
11525
11630
|
readonly outputs: readonly [];
|
|
@@ -11534,6 +11639,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
11534
11639
|
readonly internalType: "uint256";
|
|
11535
11640
|
readonly name: "referralCode";
|
|
11536
11641
|
readonly type: "uint256";
|
|
11642
|
+
}, {
|
|
11643
|
+
readonly internalType: "uint128";
|
|
11644
|
+
readonly name: "lockPeriod";
|
|
11645
|
+
readonly type: "uint128";
|
|
11537
11646
|
}];
|
|
11538
11647
|
readonly name: "depositETH";
|
|
11539
11648
|
readonly outputs: readonly [];
|
|
@@ -11644,6 +11753,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
11644
11753
|
readonly internalType: "address";
|
|
11645
11754
|
readonly name: "weth";
|
|
11646
11755
|
readonly type: "address";
|
|
11756
|
+
}, {
|
|
11757
|
+
readonly internalType: "contract IPufLocker";
|
|
11758
|
+
readonly name: "locker";
|
|
11759
|
+
readonly type: "address";
|
|
11647
11760
|
}];
|
|
11648
11761
|
readonly stateMutability: "nonpayable";
|
|
11649
11762
|
readonly type: "constructor";
|
|
@@ -11785,25 +11898,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
11785
11898
|
readonly type: "bool";
|
|
11786
11899
|
}];
|
|
11787
11900
|
readonly name: "SetIsMigratorAllowed";
|
|
11788
|
-
/**
|
|
11789
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
11790
|
-
* doesn't make the transaction but returns two methods namely
|
|
11791
|
-
* `transact` and `estimate`.
|
|
11792
|
-
*
|
|
11793
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
11794
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
11795
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
11796
|
-
*
|
|
11797
|
-
* @param token Token to deposit.
|
|
11798
|
-
* @param walletAddress Wallet address to take the token from.
|
|
11799
|
-
* @param value Value in wei of the token to deposit.
|
|
11800
|
-
* @param referralCode Referral code for the deposit.
|
|
11801
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
11802
|
-
* transaction.
|
|
11803
|
-
*
|
|
11804
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
11805
|
-
* transaction.
|
|
11806
|
-
*/
|
|
11807
11901
|
readonly type: "event";
|
|
11808
11902
|
}, {
|
|
11809
11903
|
readonly anonymous: false;
|
|
@@ -11835,6 +11929,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
11835
11929
|
}];
|
|
11836
11930
|
readonly name: "TokenRemoved";
|
|
11837
11931
|
readonly type: "event";
|
|
11932
|
+
}, {
|
|
11933
|
+
readonly inputs: readonly [];
|
|
11934
|
+
readonly name: "PUFFER_LOCKER";
|
|
11935
|
+
readonly outputs: readonly [{
|
|
11936
|
+
readonly internalType: "contract IPufLocker";
|
|
11937
|
+
readonly name: "";
|
|
11938
|
+
readonly type: "address";
|
|
11939
|
+
}];
|
|
11940
|
+
readonly stateMutability: "view";
|
|
11941
|
+
readonly type: "function";
|
|
11838
11942
|
}, {
|
|
11839
11943
|
readonly inputs: readonly [];
|
|
11840
11944
|
readonly name: "WETH";
|
|
@@ -11903,6 +12007,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
11903
12007
|
readonly internalType: "uint256";
|
|
11904
12008
|
readonly name: "referralCode";
|
|
11905
12009
|
readonly type: "uint256";
|
|
12010
|
+
}, {
|
|
12011
|
+
readonly internalType: "uint128";
|
|
12012
|
+
readonly name: "lockPeriod";
|
|
12013
|
+
readonly type: "uint128";
|
|
11906
12014
|
}];
|
|
11907
12015
|
readonly name: "deposit";
|
|
11908
12016
|
readonly outputs: readonly [];
|
|
@@ -11917,6 +12025,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
11917
12025
|
readonly internalType: "uint256";
|
|
11918
12026
|
readonly name: "referralCode";
|
|
11919
12027
|
readonly type: "uint256";
|
|
12028
|
+
}, {
|
|
12029
|
+
readonly internalType: "uint128";
|
|
12030
|
+
readonly name: "lockPeriod";
|
|
12031
|
+
readonly type: "uint128";
|
|
11920
12032
|
}];
|
|
11921
12033
|
readonly name: "depositETH";
|
|
11922
12034
|
readonly outputs: readonly [];
|
|
@@ -12027,6 +12139,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
12027
12139
|
readonly internalType: "address";
|
|
12028
12140
|
readonly name: "weth";
|
|
12029
12141
|
readonly type: "address";
|
|
12142
|
+
}, {
|
|
12143
|
+
readonly internalType: "contract IPufLocker";
|
|
12144
|
+
readonly name: "locker";
|
|
12145
|
+
readonly type: "address";
|
|
12030
12146
|
}];
|
|
12031
12147
|
readonly stateMutability: "nonpayable";
|
|
12032
12148
|
readonly type: "constructor";
|
|
@@ -12168,25 +12284,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
12168
12284
|
readonly type: "bool";
|
|
12169
12285
|
}];
|
|
12170
12286
|
readonly name: "SetIsMigratorAllowed";
|
|
12171
|
-
/**
|
|
12172
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
12173
|
-
* doesn't make the transaction but returns two methods namely
|
|
12174
|
-
* `transact` and `estimate`.
|
|
12175
|
-
*
|
|
12176
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
12177
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
12178
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
12179
|
-
*
|
|
12180
|
-
* @param token Token to deposit.
|
|
12181
|
-
* @param walletAddress Wallet address to take the token from.
|
|
12182
|
-
* @param value Value in wei of the token to deposit.
|
|
12183
|
-
* @param referralCode Referral code for the deposit.
|
|
12184
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
12185
|
-
* transaction.
|
|
12186
|
-
*
|
|
12187
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
12188
|
-
* transaction.
|
|
12189
|
-
*/
|
|
12190
12287
|
readonly type: "event";
|
|
12191
12288
|
}, {
|
|
12192
12289
|
readonly anonymous: false;
|
|
@@ -12218,6 +12315,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
12218
12315
|
}];
|
|
12219
12316
|
readonly name: "TokenRemoved";
|
|
12220
12317
|
readonly type: "event";
|
|
12318
|
+
}, {
|
|
12319
|
+
readonly inputs: readonly [];
|
|
12320
|
+
readonly name: "PUFFER_LOCKER";
|
|
12321
|
+
readonly outputs: readonly [{
|
|
12322
|
+
readonly internalType: "contract IPufLocker";
|
|
12323
|
+
readonly name: "";
|
|
12324
|
+
readonly type: "address";
|
|
12325
|
+
}];
|
|
12326
|
+
readonly stateMutability: "view";
|
|
12327
|
+
readonly type: "function";
|
|
12221
12328
|
}, {
|
|
12222
12329
|
readonly inputs: readonly [];
|
|
12223
12330
|
readonly name: "WETH";
|
|
@@ -12286,6 +12393,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
12286
12393
|
readonly internalType: "uint256";
|
|
12287
12394
|
readonly name: "referralCode";
|
|
12288
12395
|
readonly type: "uint256";
|
|
12396
|
+
}, {
|
|
12397
|
+
readonly internalType: "uint128";
|
|
12398
|
+
readonly name: "lockPeriod";
|
|
12399
|
+
readonly type: "uint128";
|
|
12289
12400
|
}];
|
|
12290
12401
|
readonly name: "deposit";
|
|
12291
12402
|
readonly outputs: readonly [];
|
|
@@ -12300,6 +12411,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
12300
12411
|
readonly internalType: "uint256";
|
|
12301
12412
|
readonly name: "referralCode";
|
|
12302
12413
|
readonly type: "uint256";
|
|
12414
|
+
}, {
|
|
12415
|
+
readonly internalType: "uint128";
|
|
12416
|
+
readonly name: "lockPeriod";
|
|
12417
|
+
readonly type: "uint128";
|
|
12303
12418
|
}];
|
|
12304
12419
|
readonly name: "depositETH";
|
|
12305
12420
|
readonly outputs: readonly [];
|
|
@@ -12410,6 +12525,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
12410
12525
|
readonly internalType: "address";
|
|
12411
12526
|
readonly name: "weth";
|
|
12412
12527
|
readonly type: "address";
|
|
12528
|
+
}, {
|
|
12529
|
+
readonly internalType: "contract IPufLocker";
|
|
12530
|
+
readonly name: "locker";
|
|
12531
|
+
readonly type: "address";
|
|
12413
12532
|
}];
|
|
12414
12533
|
readonly stateMutability: "nonpayable";
|
|
12415
12534
|
readonly type: "constructor";
|
|
@@ -12551,25 +12670,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
12551
12670
|
readonly type: "bool";
|
|
12552
12671
|
}];
|
|
12553
12672
|
readonly name: "SetIsMigratorAllowed";
|
|
12554
|
-
/**
|
|
12555
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
12556
|
-
* doesn't make the transaction but returns two methods namely
|
|
12557
|
-
* `transact` and `estimate`.
|
|
12558
|
-
*
|
|
12559
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
12560
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
12561
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
12562
|
-
*
|
|
12563
|
-
* @param token Token to deposit.
|
|
12564
|
-
* @param walletAddress Wallet address to take the token from.
|
|
12565
|
-
* @param value Value in wei of the token to deposit.
|
|
12566
|
-
* @param referralCode Referral code for the deposit.
|
|
12567
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
12568
|
-
* transaction.
|
|
12569
|
-
*
|
|
12570
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
12571
|
-
* transaction.
|
|
12572
|
-
*/
|
|
12573
12673
|
readonly type: "event";
|
|
12574
12674
|
}, {
|
|
12575
12675
|
readonly anonymous: false;
|
|
@@ -12601,6 +12701,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
12601
12701
|
}];
|
|
12602
12702
|
readonly name: "TokenRemoved";
|
|
12603
12703
|
readonly type: "event";
|
|
12704
|
+
}, {
|
|
12705
|
+
readonly inputs: readonly [];
|
|
12706
|
+
readonly name: "PUFFER_LOCKER";
|
|
12707
|
+
readonly outputs: readonly [{
|
|
12708
|
+
readonly internalType: "contract IPufLocker";
|
|
12709
|
+
readonly name: "";
|
|
12710
|
+
readonly type: "address";
|
|
12711
|
+
}];
|
|
12712
|
+
readonly stateMutability: "view";
|
|
12713
|
+
readonly type: "function";
|
|
12604
12714
|
}, {
|
|
12605
12715
|
readonly inputs: readonly [];
|
|
12606
12716
|
readonly name: "WETH";
|
|
@@ -12669,6 +12779,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
12669
12779
|
readonly internalType: "uint256";
|
|
12670
12780
|
readonly name: "referralCode";
|
|
12671
12781
|
readonly type: "uint256";
|
|
12782
|
+
}, {
|
|
12783
|
+
readonly internalType: "uint128";
|
|
12784
|
+
readonly name: "lockPeriod";
|
|
12785
|
+
readonly type: "uint128";
|
|
12672
12786
|
}];
|
|
12673
12787
|
readonly name: "deposit";
|
|
12674
12788
|
readonly outputs: readonly [];
|
|
@@ -12683,6 +12797,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
12683
12797
|
readonly internalType: "uint256";
|
|
12684
12798
|
readonly name: "referralCode";
|
|
12685
12799
|
readonly type: "uint256";
|
|
12800
|
+
}, {
|
|
12801
|
+
readonly internalType: "uint128";
|
|
12802
|
+
readonly name: "lockPeriod";
|
|
12803
|
+
readonly type: "uint128";
|
|
12686
12804
|
}];
|
|
12687
12805
|
readonly name: "depositETH";
|
|
12688
12806
|
readonly outputs: readonly [];
|
|
@@ -12787,6 +12905,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
12787
12905
|
readonly internalType: "address";
|
|
12788
12906
|
readonly name: "weth";
|
|
12789
12907
|
readonly type: "address";
|
|
12908
|
+
}, {
|
|
12909
|
+
readonly internalType: "contract IPufLocker";
|
|
12910
|
+
readonly name: "locker";
|
|
12911
|
+
readonly type: "address";
|
|
12790
12912
|
}];
|
|
12791
12913
|
readonly stateMutability: "nonpayable";
|
|
12792
12914
|
readonly type: "constructor";
|
|
@@ -12928,25 +13050,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
12928
13050
|
readonly type: "bool";
|
|
12929
13051
|
}];
|
|
12930
13052
|
readonly name: "SetIsMigratorAllowed";
|
|
12931
|
-
/**
|
|
12932
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
12933
|
-
* doesn't make the transaction but returns two methods namely
|
|
12934
|
-
* `transact` and `estimate`.
|
|
12935
|
-
*
|
|
12936
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
12937
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
12938
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
12939
|
-
*
|
|
12940
|
-
* @param token Token to deposit.
|
|
12941
|
-
* @param walletAddress Wallet address to take the token from.
|
|
12942
|
-
* @param value Value in wei of the token to deposit.
|
|
12943
|
-
* @param referralCode Referral code for the deposit.
|
|
12944
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
12945
|
-
* transaction.
|
|
12946
|
-
*
|
|
12947
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
12948
|
-
* transaction.
|
|
12949
|
-
*/
|
|
12950
13053
|
readonly type: "event";
|
|
12951
13054
|
}, {
|
|
12952
13055
|
readonly anonymous: false;
|
|
@@ -12978,6 +13081,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
12978
13081
|
}];
|
|
12979
13082
|
readonly name: "TokenRemoved";
|
|
12980
13083
|
readonly type: "event";
|
|
13084
|
+
}, {
|
|
13085
|
+
readonly inputs: readonly [];
|
|
13086
|
+
readonly name: "PUFFER_LOCKER";
|
|
13087
|
+
readonly outputs: readonly [{
|
|
13088
|
+
readonly internalType: "contract IPufLocker";
|
|
13089
|
+
readonly name: "";
|
|
13090
|
+
readonly type: "address";
|
|
13091
|
+
}];
|
|
13092
|
+
readonly stateMutability: "view";
|
|
13093
|
+
readonly type: "function";
|
|
12981
13094
|
}, {
|
|
12982
13095
|
readonly inputs: readonly [];
|
|
12983
13096
|
readonly name: "WETH";
|
|
@@ -13046,6 +13159,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
13046
13159
|
readonly internalType: "uint256";
|
|
13047
13160
|
readonly name: "referralCode";
|
|
13048
13161
|
readonly type: "uint256";
|
|
13162
|
+
}, {
|
|
13163
|
+
readonly internalType: "uint128";
|
|
13164
|
+
readonly name: "lockPeriod";
|
|
13165
|
+
readonly type: "uint128";
|
|
13049
13166
|
}];
|
|
13050
13167
|
readonly name: "deposit";
|
|
13051
13168
|
readonly outputs: readonly [];
|
|
@@ -13060,6 +13177,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
13060
13177
|
readonly internalType: "uint256";
|
|
13061
13178
|
readonly name: "referralCode";
|
|
13062
13179
|
readonly type: "uint256";
|
|
13180
|
+
}, {
|
|
13181
|
+
readonly internalType: "uint128";
|
|
13182
|
+
readonly name: "lockPeriod";
|
|
13183
|
+
readonly type: "uint128";
|
|
13063
13184
|
}];
|
|
13064
13185
|
readonly name: "depositETH";
|
|
13065
13186
|
readonly outputs: readonly [];
|
|
@@ -13164,6 +13285,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
13164
13285
|
readonly internalType: "address";
|
|
13165
13286
|
readonly name: "weth";
|
|
13166
13287
|
readonly type: "address";
|
|
13288
|
+
}, {
|
|
13289
|
+
readonly internalType: "contract IPufLocker";
|
|
13290
|
+
readonly name: "locker";
|
|
13291
|
+
readonly type: "address";
|
|
13167
13292
|
}];
|
|
13168
13293
|
readonly stateMutability: "nonpayable";
|
|
13169
13294
|
readonly type: "constructor";
|
|
@@ -13305,25 +13430,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
13305
13430
|
readonly type: "bool";
|
|
13306
13431
|
}];
|
|
13307
13432
|
readonly name: "SetIsMigratorAllowed";
|
|
13308
|
-
/**
|
|
13309
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
13310
|
-
* doesn't make the transaction but returns two methods namely
|
|
13311
|
-
* `transact` and `estimate`.
|
|
13312
|
-
*
|
|
13313
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
13314
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
13315
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
13316
|
-
*
|
|
13317
|
-
* @param token Token to deposit.
|
|
13318
|
-
* @param walletAddress Wallet address to take the token from.
|
|
13319
|
-
* @param value Value in wei of the token to deposit.
|
|
13320
|
-
* @param referralCode Referral code for the deposit.
|
|
13321
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
13322
|
-
* transaction.
|
|
13323
|
-
*
|
|
13324
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
13325
|
-
* transaction.
|
|
13326
|
-
*/
|
|
13327
13433
|
readonly type: "event";
|
|
13328
13434
|
}, {
|
|
13329
13435
|
readonly anonymous: false;
|
|
@@ -13355,6 +13461,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
13355
13461
|
}];
|
|
13356
13462
|
readonly name: "TokenRemoved";
|
|
13357
13463
|
readonly type: "event";
|
|
13464
|
+
}, {
|
|
13465
|
+
readonly inputs: readonly [];
|
|
13466
|
+
readonly name: "PUFFER_LOCKER";
|
|
13467
|
+
readonly outputs: readonly [{
|
|
13468
|
+
readonly internalType: "contract IPufLocker";
|
|
13469
|
+
readonly name: "";
|
|
13470
|
+
readonly type: "address";
|
|
13471
|
+
}];
|
|
13472
|
+
readonly stateMutability: "view";
|
|
13473
|
+
readonly type: "function";
|
|
13358
13474
|
}, {
|
|
13359
13475
|
readonly inputs: readonly [];
|
|
13360
13476
|
readonly name: "WETH";
|
|
@@ -13423,6 +13539,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
13423
13539
|
readonly internalType: "uint256";
|
|
13424
13540
|
readonly name: "referralCode";
|
|
13425
13541
|
readonly type: "uint256";
|
|
13542
|
+
}, {
|
|
13543
|
+
readonly internalType: "uint128";
|
|
13544
|
+
readonly name: "lockPeriod";
|
|
13545
|
+
readonly type: "uint128";
|
|
13426
13546
|
}];
|
|
13427
13547
|
readonly name: "deposit";
|
|
13428
13548
|
readonly outputs: readonly [];
|
|
@@ -13437,6 +13557,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
13437
13557
|
readonly internalType: "uint256";
|
|
13438
13558
|
readonly name: "referralCode";
|
|
13439
13559
|
readonly type: "uint256";
|
|
13560
|
+
}, {
|
|
13561
|
+
readonly internalType: "uint128";
|
|
13562
|
+
readonly name: "lockPeriod";
|
|
13563
|
+
readonly type: "uint128";
|
|
13440
13564
|
}];
|
|
13441
13565
|
readonly name: "depositETH";
|
|
13442
13566
|
readonly outputs: readonly [];
|
|
@@ -13543,6 +13667,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
13543
13667
|
readonly internalType: "address";
|
|
13544
13668
|
readonly name: "weth";
|
|
13545
13669
|
readonly type: "address";
|
|
13670
|
+
}, {
|
|
13671
|
+
readonly internalType: "contract IPufLocker";
|
|
13672
|
+
readonly name: "locker";
|
|
13673
|
+
readonly type: "address";
|
|
13546
13674
|
}];
|
|
13547
13675
|
readonly stateMutability: "nonpayable";
|
|
13548
13676
|
readonly type: "constructor";
|
|
@@ -13684,25 +13812,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
13684
13812
|
readonly type: "bool";
|
|
13685
13813
|
}];
|
|
13686
13814
|
readonly name: "SetIsMigratorAllowed";
|
|
13687
|
-
/**
|
|
13688
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
13689
|
-
* doesn't make the transaction but returns two methods namely
|
|
13690
|
-
* `transact` and `estimate`.
|
|
13691
|
-
*
|
|
13692
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
13693
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
13694
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
13695
|
-
*
|
|
13696
|
-
* @param token Token to deposit.
|
|
13697
|
-
* @param walletAddress Wallet address to take the token from.
|
|
13698
|
-
* @param value Value in wei of the token to deposit.
|
|
13699
|
-
* @param referralCode Referral code for the deposit.
|
|
13700
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
13701
|
-
* transaction.
|
|
13702
|
-
*
|
|
13703
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
13704
|
-
* transaction.
|
|
13705
|
-
*/
|
|
13706
13815
|
readonly type: "event";
|
|
13707
13816
|
}, {
|
|
13708
13817
|
readonly anonymous: false;
|
|
@@ -13734,6 +13843,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
13734
13843
|
}];
|
|
13735
13844
|
readonly name: "TokenRemoved";
|
|
13736
13845
|
readonly type: "event";
|
|
13846
|
+
}, {
|
|
13847
|
+
readonly inputs: readonly [];
|
|
13848
|
+
readonly name: "PUFFER_LOCKER";
|
|
13849
|
+
readonly outputs: readonly [{
|
|
13850
|
+
readonly internalType: "contract IPufLocker";
|
|
13851
|
+
readonly name: "";
|
|
13852
|
+
readonly type: "address";
|
|
13853
|
+
}];
|
|
13854
|
+
readonly stateMutability: "view";
|
|
13855
|
+
readonly type: "function";
|
|
13737
13856
|
}, {
|
|
13738
13857
|
readonly inputs: readonly [];
|
|
13739
13858
|
readonly name: "WETH";
|
|
@@ -13802,6 +13921,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
13802
13921
|
readonly internalType: "uint256";
|
|
13803
13922
|
readonly name: "referralCode";
|
|
13804
13923
|
readonly type: "uint256";
|
|
13924
|
+
}, {
|
|
13925
|
+
readonly internalType: "uint128";
|
|
13926
|
+
readonly name: "lockPeriod";
|
|
13927
|
+
readonly type: "uint128";
|
|
13805
13928
|
}];
|
|
13806
13929
|
readonly name: "deposit";
|
|
13807
13930
|
readonly outputs: readonly [];
|
|
@@ -13816,6 +13939,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
13816
13939
|
readonly internalType: "uint256";
|
|
13817
13940
|
readonly name: "referralCode";
|
|
13818
13941
|
readonly type: "uint256";
|
|
13942
|
+
}, {
|
|
13943
|
+
readonly internalType: "uint128";
|
|
13944
|
+
readonly name: "lockPeriod";
|
|
13945
|
+
readonly type: "uint128";
|
|
13819
13946
|
}];
|
|
13820
13947
|
readonly name: "depositETH";
|
|
13821
13948
|
readonly outputs: readonly [];
|
|
@@ -13920,6 +14047,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
13920
14047
|
readonly internalType: "address";
|
|
13921
14048
|
readonly name: "weth";
|
|
13922
14049
|
readonly type: "address";
|
|
14050
|
+
}, {
|
|
14051
|
+
readonly internalType: "contract IPufLocker";
|
|
14052
|
+
readonly name: "locker";
|
|
14053
|
+
readonly type: "address";
|
|
13923
14054
|
}];
|
|
13924
14055
|
readonly stateMutability: "nonpayable";
|
|
13925
14056
|
readonly type: "constructor";
|
|
@@ -14061,25 +14192,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
14061
14192
|
readonly type: "bool";
|
|
14062
14193
|
}];
|
|
14063
14194
|
readonly name: "SetIsMigratorAllowed";
|
|
14064
|
-
/**
|
|
14065
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
14066
|
-
* doesn't make the transaction but returns two methods namely
|
|
14067
|
-
* `transact` and `estimate`.
|
|
14068
|
-
*
|
|
14069
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
14070
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
14071
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
14072
|
-
*
|
|
14073
|
-
* @param token Token to deposit.
|
|
14074
|
-
* @param walletAddress Wallet address to take the token from.
|
|
14075
|
-
* @param value Value in wei of the token to deposit.
|
|
14076
|
-
* @param referralCode Referral code for the deposit.
|
|
14077
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
14078
|
-
* transaction.
|
|
14079
|
-
*
|
|
14080
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
14081
|
-
* transaction.
|
|
14082
|
-
*/
|
|
14083
14195
|
readonly type: "event";
|
|
14084
14196
|
}, {
|
|
14085
14197
|
readonly anonymous: false;
|
|
@@ -14111,6 +14223,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
14111
14223
|
}];
|
|
14112
14224
|
readonly name: "TokenRemoved";
|
|
14113
14225
|
readonly type: "event";
|
|
14226
|
+
}, {
|
|
14227
|
+
readonly inputs: readonly [];
|
|
14228
|
+
readonly name: "PUFFER_LOCKER";
|
|
14229
|
+
readonly outputs: readonly [{
|
|
14230
|
+
readonly internalType: "contract IPufLocker";
|
|
14231
|
+
readonly name: "";
|
|
14232
|
+
readonly type: "address";
|
|
14233
|
+
}];
|
|
14234
|
+
readonly stateMutability: "view";
|
|
14235
|
+
readonly type: "function";
|
|
14114
14236
|
}, {
|
|
14115
14237
|
readonly inputs: readonly [];
|
|
14116
14238
|
readonly name: "WETH";
|
|
@@ -14179,6 +14301,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
14179
14301
|
readonly internalType: "uint256";
|
|
14180
14302
|
readonly name: "referralCode";
|
|
14181
14303
|
readonly type: "uint256";
|
|
14304
|
+
}, {
|
|
14305
|
+
readonly internalType: "uint128";
|
|
14306
|
+
readonly name: "lockPeriod";
|
|
14307
|
+
readonly type: "uint128";
|
|
14182
14308
|
}];
|
|
14183
14309
|
readonly name: "deposit";
|
|
14184
14310
|
readonly outputs: readonly [];
|
|
@@ -14193,6 +14319,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
14193
14319
|
readonly internalType: "uint256";
|
|
14194
14320
|
readonly name: "referralCode";
|
|
14195
14321
|
readonly type: "uint256";
|
|
14322
|
+
}, {
|
|
14323
|
+
readonly internalType: "uint128";
|
|
14324
|
+
readonly name: "lockPeriod";
|
|
14325
|
+
readonly type: "uint128";
|
|
14196
14326
|
}];
|
|
14197
14327
|
readonly name: "depositETH";
|
|
14198
14328
|
readonly outputs: readonly [];
|
|
@@ -14297,6 +14427,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
14297
14427
|
readonly internalType: "address";
|
|
14298
14428
|
readonly name: "weth";
|
|
14299
14429
|
readonly type: "address";
|
|
14430
|
+
}, {
|
|
14431
|
+
readonly internalType: "contract IPufLocker";
|
|
14432
|
+
readonly name: "locker";
|
|
14433
|
+
readonly type: "address";
|
|
14300
14434
|
}];
|
|
14301
14435
|
readonly stateMutability: "nonpayable";
|
|
14302
14436
|
readonly type: "constructor";
|
|
@@ -14438,25 +14572,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
14438
14572
|
readonly type: "bool";
|
|
14439
14573
|
}];
|
|
14440
14574
|
readonly name: "SetIsMigratorAllowed";
|
|
14441
|
-
/**
|
|
14442
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
14443
|
-
* doesn't make the transaction but returns two methods namely
|
|
14444
|
-
* `transact` and `estimate`.
|
|
14445
|
-
*
|
|
14446
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
14447
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
14448
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
14449
|
-
*
|
|
14450
|
-
* @param token Token to deposit.
|
|
14451
|
-
* @param walletAddress Wallet address to take the token from.
|
|
14452
|
-
* @param value Value in wei of the token to deposit.
|
|
14453
|
-
* @param referralCode Referral code for the deposit.
|
|
14454
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
14455
|
-
* transaction.
|
|
14456
|
-
*
|
|
14457
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
14458
|
-
* transaction.
|
|
14459
|
-
*/
|
|
14460
14575
|
readonly type: "event";
|
|
14461
14576
|
}, {
|
|
14462
14577
|
readonly anonymous: false;
|
|
@@ -14488,6 +14603,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
14488
14603
|
}];
|
|
14489
14604
|
readonly name: "TokenRemoved";
|
|
14490
14605
|
readonly type: "event";
|
|
14606
|
+
}, {
|
|
14607
|
+
readonly inputs: readonly [];
|
|
14608
|
+
readonly name: "PUFFER_LOCKER";
|
|
14609
|
+
readonly outputs: readonly [{
|
|
14610
|
+
readonly internalType: "contract IPufLocker";
|
|
14611
|
+
readonly name: "";
|
|
14612
|
+
readonly type: "address";
|
|
14613
|
+
}];
|
|
14614
|
+
readonly stateMutability: "view";
|
|
14615
|
+
readonly type: "function";
|
|
14491
14616
|
}, {
|
|
14492
14617
|
readonly inputs: readonly [];
|
|
14493
14618
|
readonly name: "WETH";
|
|
@@ -14556,6 +14681,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
14556
14681
|
readonly internalType: "uint256";
|
|
14557
14682
|
readonly name: "referralCode";
|
|
14558
14683
|
readonly type: "uint256";
|
|
14684
|
+
}, {
|
|
14685
|
+
readonly internalType: "uint128";
|
|
14686
|
+
readonly name: "lockPeriod";
|
|
14687
|
+
readonly type: "uint128";
|
|
14559
14688
|
}];
|
|
14560
14689
|
readonly name: "deposit";
|
|
14561
14690
|
readonly outputs: readonly [];
|
|
@@ -14570,6 +14699,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
14570
14699
|
readonly internalType: "uint256";
|
|
14571
14700
|
readonly name: "referralCode";
|
|
14572
14701
|
readonly type: "uint256";
|
|
14702
|
+
}, {
|
|
14703
|
+
readonly internalType: "uint128";
|
|
14704
|
+
readonly name: "lockPeriod";
|
|
14705
|
+
readonly type: "uint128";
|
|
14573
14706
|
}];
|
|
14574
14707
|
readonly name: "depositETH";
|
|
14575
14708
|
readonly outputs: readonly [];
|
|
@@ -14674,6 +14807,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
14674
14807
|
readonly internalType: "address";
|
|
14675
14808
|
readonly name: "weth";
|
|
14676
14809
|
readonly type: "address";
|
|
14810
|
+
}, {
|
|
14811
|
+
readonly internalType: "contract IPufLocker";
|
|
14812
|
+
readonly name: "locker";
|
|
14813
|
+
readonly type: "address";
|
|
14677
14814
|
}];
|
|
14678
14815
|
readonly stateMutability: "nonpayable";
|
|
14679
14816
|
readonly type: "constructor";
|
|
@@ -14815,25 +14952,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
14815
14952
|
readonly type: "bool";
|
|
14816
14953
|
}];
|
|
14817
14954
|
readonly name: "SetIsMigratorAllowed";
|
|
14818
|
-
/**
|
|
14819
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
14820
|
-
* doesn't make the transaction but returns two methods namely
|
|
14821
|
-
* `transact` and `estimate`.
|
|
14822
|
-
*
|
|
14823
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
14824
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
14825
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
14826
|
-
*
|
|
14827
|
-
* @param token Token to deposit.
|
|
14828
|
-
* @param walletAddress Wallet address to take the token from.
|
|
14829
|
-
* @param value Value in wei of the token to deposit.
|
|
14830
|
-
* @param referralCode Referral code for the deposit.
|
|
14831
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
14832
|
-
* transaction.
|
|
14833
|
-
*
|
|
14834
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
14835
|
-
* transaction.
|
|
14836
|
-
*/
|
|
14837
14955
|
readonly type: "event";
|
|
14838
14956
|
}, {
|
|
14839
14957
|
readonly anonymous: false;
|
|
@@ -14865,6 +14983,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
14865
14983
|
}];
|
|
14866
14984
|
readonly name: "TokenRemoved";
|
|
14867
14985
|
readonly type: "event";
|
|
14986
|
+
}, {
|
|
14987
|
+
readonly inputs: readonly [];
|
|
14988
|
+
readonly name: "PUFFER_LOCKER";
|
|
14989
|
+
readonly outputs: readonly [{
|
|
14990
|
+
readonly internalType: "contract IPufLocker";
|
|
14991
|
+
readonly name: "";
|
|
14992
|
+
readonly type: "address";
|
|
14993
|
+
}];
|
|
14994
|
+
readonly stateMutability: "view";
|
|
14995
|
+
readonly type: "function";
|
|
14868
14996
|
}, {
|
|
14869
14997
|
readonly inputs: readonly [];
|
|
14870
14998
|
readonly name: "WETH";
|
|
@@ -14933,6 +15061,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
14933
15061
|
readonly internalType: "uint256";
|
|
14934
15062
|
readonly name: "referralCode";
|
|
14935
15063
|
readonly type: "uint256";
|
|
15064
|
+
}, {
|
|
15065
|
+
readonly internalType: "uint128";
|
|
15066
|
+
readonly name: "lockPeriod";
|
|
15067
|
+
readonly type: "uint128";
|
|
14936
15068
|
}];
|
|
14937
15069
|
readonly name: "deposit";
|
|
14938
15070
|
readonly outputs: readonly [];
|
|
@@ -14947,6 +15079,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
14947
15079
|
readonly internalType: "uint256";
|
|
14948
15080
|
readonly name: "referralCode";
|
|
14949
15081
|
readonly type: "uint256";
|
|
15082
|
+
}, {
|
|
15083
|
+
readonly internalType: "uint128";
|
|
15084
|
+
readonly name: "lockPeriod";
|
|
15085
|
+
readonly type: "uint128";
|
|
14950
15086
|
}];
|
|
14951
15087
|
readonly name: "depositETH";
|
|
14952
15088
|
readonly outputs: readonly [];
|
|
@@ -15052,6 +15188,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
15052
15188
|
readonly internalType: "address";
|
|
15053
15189
|
readonly name: "weth";
|
|
15054
15190
|
readonly type: "address";
|
|
15191
|
+
}, {
|
|
15192
|
+
readonly internalType: "contract IPufLocker";
|
|
15193
|
+
readonly name: "locker";
|
|
15194
|
+
readonly type: "address";
|
|
15055
15195
|
}];
|
|
15056
15196
|
readonly stateMutability: "nonpayable";
|
|
15057
15197
|
readonly type: "constructor";
|
|
@@ -15193,25 +15333,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
15193
15333
|
readonly type: "bool";
|
|
15194
15334
|
}];
|
|
15195
15335
|
readonly name: "SetIsMigratorAllowed";
|
|
15196
|
-
/**
|
|
15197
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
15198
|
-
* doesn't make the transaction but returns two methods namely
|
|
15199
|
-
* `transact` and `estimate`.
|
|
15200
|
-
*
|
|
15201
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
15202
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
15203
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
15204
|
-
*
|
|
15205
|
-
* @param token Token to deposit.
|
|
15206
|
-
* @param walletAddress Wallet address to take the token from.
|
|
15207
|
-
* @param value Value in wei of the token to deposit.
|
|
15208
|
-
* @param referralCode Referral code for the deposit.
|
|
15209
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
15210
|
-
* transaction.
|
|
15211
|
-
*
|
|
15212
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
15213
|
-
* transaction.
|
|
15214
|
-
*/
|
|
15215
15336
|
readonly type: "event";
|
|
15216
15337
|
}, {
|
|
15217
15338
|
readonly anonymous: false;
|
|
@@ -15243,6 +15364,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
15243
15364
|
}];
|
|
15244
15365
|
readonly name: "TokenRemoved";
|
|
15245
15366
|
readonly type: "event";
|
|
15367
|
+
}, {
|
|
15368
|
+
readonly inputs: readonly [];
|
|
15369
|
+
readonly name: "PUFFER_LOCKER";
|
|
15370
|
+
readonly outputs: readonly [{
|
|
15371
|
+
readonly internalType: "contract IPufLocker";
|
|
15372
|
+
readonly name: "";
|
|
15373
|
+
readonly type: "address";
|
|
15374
|
+
}];
|
|
15375
|
+
readonly stateMutability: "view";
|
|
15376
|
+
readonly type: "function";
|
|
15246
15377
|
}, {
|
|
15247
15378
|
readonly inputs: readonly [];
|
|
15248
15379
|
readonly name: "WETH";
|
|
@@ -15311,6 +15442,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
15311
15442
|
readonly internalType: "uint256";
|
|
15312
15443
|
readonly name: "referralCode";
|
|
15313
15444
|
readonly type: "uint256";
|
|
15445
|
+
}, {
|
|
15446
|
+
readonly internalType: "uint128";
|
|
15447
|
+
readonly name: "lockPeriod";
|
|
15448
|
+
readonly type: "uint128";
|
|
15314
15449
|
}];
|
|
15315
15450
|
readonly name: "deposit";
|
|
15316
15451
|
readonly outputs: readonly [];
|
|
@@ -15325,6 +15460,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
15325
15460
|
readonly internalType: "uint256";
|
|
15326
15461
|
readonly name: "referralCode";
|
|
15327
15462
|
readonly type: "uint256";
|
|
15463
|
+
}, {
|
|
15464
|
+
readonly internalType: "uint128";
|
|
15465
|
+
readonly name: "lockPeriod";
|
|
15466
|
+
readonly type: "uint128";
|
|
15328
15467
|
}];
|
|
15329
15468
|
readonly name: "depositETH";
|
|
15330
15469
|
readonly outputs: readonly [];
|
|
@@ -15432,6 +15571,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
15432
15571
|
readonly internalType: "address";
|
|
15433
15572
|
readonly name: "weth";
|
|
15434
15573
|
readonly type: "address";
|
|
15574
|
+
}, {
|
|
15575
|
+
readonly internalType: "contract IPufLocker";
|
|
15576
|
+
readonly name: "locker";
|
|
15577
|
+
readonly type: "address";
|
|
15435
15578
|
}];
|
|
15436
15579
|
readonly stateMutability: "nonpayable";
|
|
15437
15580
|
readonly type: "constructor";
|
|
@@ -15573,25 +15716,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
15573
15716
|
readonly type: "bool";
|
|
15574
15717
|
}];
|
|
15575
15718
|
readonly name: "SetIsMigratorAllowed";
|
|
15576
|
-
/**
|
|
15577
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
15578
|
-
* doesn't make the transaction but returns two methods namely
|
|
15579
|
-
* `transact` and `estimate`.
|
|
15580
|
-
*
|
|
15581
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
15582
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
15583
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
15584
|
-
*
|
|
15585
|
-
* @param token Token to deposit.
|
|
15586
|
-
* @param walletAddress Wallet address to take the token from.
|
|
15587
|
-
* @param value Value in wei of the token to deposit.
|
|
15588
|
-
* @param referralCode Referral code for the deposit.
|
|
15589
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
15590
|
-
* transaction.
|
|
15591
|
-
*
|
|
15592
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
15593
|
-
* transaction.
|
|
15594
|
-
*/
|
|
15595
15719
|
readonly type: "event";
|
|
15596
15720
|
}, {
|
|
15597
15721
|
readonly anonymous: false;
|
|
@@ -15623,6 +15747,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
15623
15747
|
}];
|
|
15624
15748
|
readonly name: "TokenRemoved";
|
|
15625
15749
|
readonly type: "event";
|
|
15750
|
+
}, {
|
|
15751
|
+
readonly inputs: readonly [];
|
|
15752
|
+
readonly name: "PUFFER_LOCKER";
|
|
15753
|
+
readonly outputs: readonly [{
|
|
15754
|
+
readonly internalType: "contract IPufLocker";
|
|
15755
|
+
readonly name: "";
|
|
15756
|
+
readonly type: "address";
|
|
15757
|
+
}];
|
|
15758
|
+
readonly stateMutability: "view";
|
|
15759
|
+
readonly type: "function";
|
|
15626
15760
|
}, {
|
|
15627
15761
|
readonly inputs: readonly [];
|
|
15628
15762
|
readonly name: "WETH";
|
|
@@ -15691,6 +15825,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
15691
15825
|
readonly internalType: "uint256";
|
|
15692
15826
|
readonly name: "referralCode";
|
|
15693
15827
|
readonly type: "uint256";
|
|
15828
|
+
}, {
|
|
15829
|
+
readonly internalType: "uint128";
|
|
15830
|
+
readonly name: "lockPeriod";
|
|
15831
|
+
readonly type: "uint128";
|
|
15694
15832
|
}];
|
|
15695
15833
|
readonly name: "deposit";
|
|
15696
15834
|
readonly outputs: readonly [];
|
|
@@ -15705,6 +15843,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
15705
15843
|
readonly internalType: "uint256";
|
|
15706
15844
|
readonly name: "referralCode";
|
|
15707
15845
|
readonly type: "uint256";
|
|
15846
|
+
}, {
|
|
15847
|
+
readonly internalType: "uint128";
|
|
15848
|
+
readonly name: "lockPeriod";
|
|
15849
|
+
readonly type: "uint128";
|
|
15708
15850
|
}];
|
|
15709
15851
|
readonly name: "depositETH";
|
|
15710
15852
|
readonly outputs: readonly [];
|
|
@@ -15814,6 +15956,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
15814
15956
|
readonly internalType: "address";
|
|
15815
15957
|
readonly name: "weth";
|
|
15816
15958
|
readonly type: "address";
|
|
15959
|
+
}, {
|
|
15960
|
+
readonly internalType: "contract IPufLocker";
|
|
15961
|
+
readonly name: "locker";
|
|
15962
|
+
readonly type: "address";
|
|
15817
15963
|
}];
|
|
15818
15964
|
readonly stateMutability: "nonpayable";
|
|
15819
15965
|
readonly type: "constructor";
|
|
@@ -15955,25 +16101,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
15955
16101
|
readonly type: "bool";
|
|
15956
16102
|
}];
|
|
15957
16103
|
readonly name: "SetIsMigratorAllowed";
|
|
15958
|
-
/**
|
|
15959
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
15960
|
-
* doesn't make the transaction but returns two methods namely
|
|
15961
|
-
* `transact` and `estimate`.
|
|
15962
|
-
*
|
|
15963
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
15964
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
15965
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
15966
|
-
*
|
|
15967
|
-
* @param token Token to deposit.
|
|
15968
|
-
* @param walletAddress Wallet address to take the token from.
|
|
15969
|
-
* @param value Value in wei of the token to deposit.
|
|
15970
|
-
* @param referralCode Referral code for the deposit.
|
|
15971
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
15972
|
-
* transaction.
|
|
15973
|
-
*
|
|
15974
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
15975
|
-
* transaction.
|
|
15976
|
-
*/
|
|
15977
16104
|
readonly type: "event";
|
|
15978
16105
|
}, {
|
|
15979
16106
|
readonly anonymous: false;
|
|
@@ -16005,6 +16132,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
16005
16132
|
}];
|
|
16006
16133
|
readonly name: "TokenRemoved";
|
|
16007
16134
|
readonly type: "event";
|
|
16135
|
+
}, {
|
|
16136
|
+
readonly inputs: readonly [];
|
|
16137
|
+
readonly name: "PUFFER_LOCKER";
|
|
16138
|
+
readonly outputs: readonly [{
|
|
16139
|
+
readonly internalType: "contract IPufLocker";
|
|
16140
|
+
readonly name: "";
|
|
16141
|
+
readonly type: "address";
|
|
16142
|
+
}];
|
|
16143
|
+
readonly stateMutability: "view";
|
|
16144
|
+
readonly type: "function";
|
|
16008
16145
|
}, {
|
|
16009
16146
|
readonly inputs: readonly [];
|
|
16010
16147
|
readonly name: "WETH";
|
|
@@ -16073,6 +16210,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
16073
16210
|
readonly internalType: "uint256";
|
|
16074
16211
|
readonly name: "referralCode";
|
|
16075
16212
|
readonly type: "uint256";
|
|
16213
|
+
}, {
|
|
16214
|
+
readonly internalType: "uint128";
|
|
16215
|
+
readonly name: "lockPeriod";
|
|
16216
|
+
readonly type: "uint128";
|
|
16076
16217
|
}];
|
|
16077
16218
|
readonly name: "deposit";
|
|
16078
16219
|
readonly outputs: readonly [];
|
|
@@ -16087,6 +16228,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
16087
16228
|
readonly internalType: "uint256";
|
|
16088
16229
|
readonly name: "referralCode";
|
|
16089
16230
|
readonly type: "uint256";
|
|
16231
|
+
}, {
|
|
16232
|
+
readonly internalType: "uint128";
|
|
16233
|
+
readonly name: "lockPeriod";
|
|
16234
|
+
readonly type: "uint128";
|
|
16090
16235
|
}];
|
|
16091
16236
|
readonly name: "depositETH";
|
|
16092
16237
|
readonly outputs: readonly [];
|
|
@@ -16194,6 +16339,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
16194
16339
|
readonly internalType: "address";
|
|
16195
16340
|
readonly name: "weth";
|
|
16196
16341
|
readonly type: "address";
|
|
16342
|
+
}, {
|
|
16343
|
+
readonly internalType: "contract IPufLocker";
|
|
16344
|
+
readonly name: "locker";
|
|
16345
|
+
readonly type: "address";
|
|
16197
16346
|
}];
|
|
16198
16347
|
readonly stateMutability: "nonpayable";
|
|
16199
16348
|
readonly type: "constructor";
|
|
@@ -16335,25 +16484,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
16335
16484
|
readonly type: "bool";
|
|
16336
16485
|
}];
|
|
16337
16486
|
readonly name: "SetIsMigratorAllowed";
|
|
16338
|
-
/**
|
|
16339
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
16340
|
-
* doesn't make the transaction but returns two methods namely
|
|
16341
|
-
* `transact` and `estimate`.
|
|
16342
|
-
*
|
|
16343
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
16344
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
16345
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
16346
|
-
*
|
|
16347
|
-
* @param token Token to deposit.
|
|
16348
|
-
* @param walletAddress Wallet address to take the token from.
|
|
16349
|
-
* @param value Value in wei of the token to deposit.
|
|
16350
|
-
* @param referralCode Referral code for the deposit.
|
|
16351
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
16352
|
-
* transaction.
|
|
16353
|
-
*
|
|
16354
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
16355
|
-
* transaction.
|
|
16356
|
-
*/
|
|
16357
16487
|
readonly type: "event";
|
|
16358
16488
|
}, {
|
|
16359
16489
|
readonly anonymous: false;
|
|
@@ -16385,6 +16515,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
16385
16515
|
}];
|
|
16386
16516
|
readonly name: "TokenRemoved";
|
|
16387
16517
|
readonly type: "event";
|
|
16518
|
+
}, {
|
|
16519
|
+
readonly inputs: readonly [];
|
|
16520
|
+
readonly name: "PUFFER_LOCKER";
|
|
16521
|
+
readonly outputs: readonly [{
|
|
16522
|
+
readonly internalType: "contract IPufLocker";
|
|
16523
|
+
readonly name: "";
|
|
16524
|
+
readonly type: "address";
|
|
16525
|
+
}];
|
|
16526
|
+
readonly stateMutability: "view";
|
|
16527
|
+
readonly type: "function";
|
|
16388
16528
|
}, {
|
|
16389
16529
|
readonly inputs: readonly [];
|
|
16390
16530
|
readonly name: "WETH";
|
|
@@ -16453,6 +16593,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
16453
16593
|
readonly internalType: "uint256";
|
|
16454
16594
|
readonly name: "referralCode";
|
|
16455
16595
|
readonly type: "uint256";
|
|
16596
|
+
}, {
|
|
16597
|
+
readonly internalType: "uint128";
|
|
16598
|
+
readonly name: "lockPeriod";
|
|
16599
|
+
readonly type: "uint128";
|
|
16456
16600
|
}];
|
|
16457
16601
|
readonly name: "deposit";
|
|
16458
16602
|
readonly outputs: readonly [];
|
|
@@ -16467,6 +16611,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
16467
16611
|
readonly internalType: "uint256";
|
|
16468
16612
|
readonly name: "referralCode";
|
|
16469
16613
|
readonly type: "uint256";
|
|
16614
|
+
}, {
|
|
16615
|
+
readonly internalType: "uint128";
|
|
16616
|
+
readonly name: "lockPeriod";
|
|
16617
|
+
readonly type: "uint128";
|
|
16470
16618
|
}];
|
|
16471
16619
|
readonly name: "depositETH";
|
|
16472
16620
|
readonly outputs: readonly [];
|
|
@@ -16574,6 +16722,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
16574
16722
|
readonly internalType: "address";
|
|
16575
16723
|
readonly name: "weth";
|
|
16576
16724
|
readonly type: "address";
|
|
16725
|
+
}, {
|
|
16726
|
+
readonly internalType: "contract IPufLocker";
|
|
16727
|
+
readonly name: "locker";
|
|
16728
|
+
readonly type: "address";
|
|
16577
16729
|
}];
|
|
16578
16730
|
readonly stateMutability: "nonpayable";
|
|
16579
16731
|
readonly type: "constructor";
|
|
@@ -16715,25 +16867,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
16715
16867
|
readonly type: "bool";
|
|
16716
16868
|
}];
|
|
16717
16869
|
readonly name: "SetIsMigratorAllowed";
|
|
16718
|
-
/**
|
|
16719
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
16720
|
-
* doesn't make the transaction but returns two methods namely
|
|
16721
|
-
* `transact` and `estimate`.
|
|
16722
|
-
*
|
|
16723
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
16724
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
16725
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
16726
|
-
*
|
|
16727
|
-
* @param token Token to deposit.
|
|
16728
|
-
* @param walletAddress Wallet address to take the token from.
|
|
16729
|
-
* @param value Value in wei of the token to deposit.
|
|
16730
|
-
* @param referralCode Referral code for the deposit.
|
|
16731
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
16732
|
-
* transaction.
|
|
16733
|
-
*
|
|
16734
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
16735
|
-
* transaction.
|
|
16736
|
-
*/
|
|
16737
16870
|
readonly type: "event";
|
|
16738
16871
|
}, {
|
|
16739
16872
|
readonly anonymous: false;
|
|
@@ -16765,6 +16898,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
16765
16898
|
}];
|
|
16766
16899
|
readonly name: "TokenRemoved";
|
|
16767
16900
|
readonly type: "event";
|
|
16901
|
+
}, {
|
|
16902
|
+
readonly inputs: readonly [];
|
|
16903
|
+
readonly name: "PUFFER_LOCKER";
|
|
16904
|
+
readonly outputs: readonly [{
|
|
16905
|
+
readonly internalType: "contract IPufLocker";
|
|
16906
|
+
readonly name: "";
|
|
16907
|
+
readonly type: "address";
|
|
16908
|
+
}];
|
|
16909
|
+
readonly stateMutability: "view";
|
|
16910
|
+
readonly type: "function";
|
|
16768
16911
|
}, {
|
|
16769
16912
|
readonly inputs: readonly [];
|
|
16770
16913
|
readonly name: "WETH";
|
|
@@ -16833,6 +16976,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
16833
16976
|
readonly internalType: "uint256";
|
|
16834
16977
|
readonly name: "referralCode";
|
|
16835
16978
|
readonly type: "uint256";
|
|
16979
|
+
}, {
|
|
16980
|
+
readonly internalType: "uint128";
|
|
16981
|
+
readonly name: "lockPeriod";
|
|
16982
|
+
readonly type: "uint128";
|
|
16836
16983
|
}];
|
|
16837
16984
|
readonly name: "deposit";
|
|
16838
16985
|
readonly outputs: readonly [];
|
|
@@ -16847,6 +16994,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
16847
16994
|
readonly internalType: "uint256";
|
|
16848
16995
|
readonly name: "referralCode";
|
|
16849
16996
|
readonly type: "uint256";
|
|
16997
|
+
}, {
|
|
16998
|
+
readonly internalType: "uint128";
|
|
16999
|
+
readonly name: "lockPeriod";
|
|
17000
|
+
readonly type: "uint128";
|
|
16850
17001
|
}];
|
|
16851
17002
|
readonly name: "depositETH";
|
|
16852
17003
|
readonly outputs: readonly [];
|
|
@@ -16954,6 +17105,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
16954
17105
|
readonly internalType: "address";
|
|
16955
17106
|
readonly name: "weth";
|
|
16956
17107
|
readonly type: "address";
|
|
17108
|
+
}, {
|
|
17109
|
+
readonly internalType: "contract IPufLocker";
|
|
17110
|
+
readonly name: "locker";
|
|
17111
|
+
readonly type: "address";
|
|
16957
17112
|
}];
|
|
16958
17113
|
readonly stateMutability: "nonpayable";
|
|
16959
17114
|
readonly type: "constructor";
|
|
@@ -17095,25 +17250,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
17095
17250
|
readonly type: "bool";
|
|
17096
17251
|
}];
|
|
17097
17252
|
readonly name: "SetIsMigratorAllowed";
|
|
17098
|
-
/**
|
|
17099
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
17100
|
-
* doesn't make the transaction but returns two methods namely
|
|
17101
|
-
* `transact` and `estimate`.
|
|
17102
|
-
*
|
|
17103
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
17104
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
17105
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
17106
|
-
*
|
|
17107
|
-
* @param token Token to deposit.
|
|
17108
|
-
* @param walletAddress Wallet address to take the token from.
|
|
17109
|
-
* @param value Value in wei of the token to deposit.
|
|
17110
|
-
* @param referralCode Referral code for the deposit.
|
|
17111
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
17112
|
-
* transaction.
|
|
17113
|
-
*
|
|
17114
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
17115
|
-
* transaction.
|
|
17116
|
-
*/
|
|
17117
17253
|
readonly type: "event";
|
|
17118
17254
|
}, {
|
|
17119
17255
|
readonly anonymous: false;
|
|
@@ -17145,6 +17281,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
17145
17281
|
}];
|
|
17146
17282
|
readonly name: "TokenRemoved";
|
|
17147
17283
|
readonly type: "event";
|
|
17284
|
+
}, {
|
|
17285
|
+
readonly inputs: readonly [];
|
|
17286
|
+
readonly name: "PUFFER_LOCKER";
|
|
17287
|
+
readonly outputs: readonly [{
|
|
17288
|
+
readonly internalType: "contract IPufLocker";
|
|
17289
|
+
readonly name: "";
|
|
17290
|
+
readonly type: "address";
|
|
17291
|
+
}];
|
|
17292
|
+
readonly stateMutability: "view";
|
|
17293
|
+
readonly type: "function";
|
|
17148
17294
|
}, {
|
|
17149
17295
|
readonly inputs: readonly [];
|
|
17150
17296
|
readonly name: "WETH";
|
|
@@ -17213,6 +17359,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
17213
17359
|
readonly internalType: "uint256";
|
|
17214
17360
|
readonly name: "referralCode";
|
|
17215
17361
|
readonly type: "uint256";
|
|
17362
|
+
}, {
|
|
17363
|
+
readonly internalType: "uint128";
|
|
17364
|
+
readonly name: "lockPeriod";
|
|
17365
|
+
readonly type: "uint128";
|
|
17216
17366
|
}];
|
|
17217
17367
|
readonly name: "deposit";
|
|
17218
17368
|
readonly outputs: readonly [];
|
|
@@ -17227,6 +17377,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
17227
17377
|
readonly internalType: "uint256";
|
|
17228
17378
|
readonly name: "referralCode";
|
|
17229
17379
|
readonly type: "uint256";
|
|
17380
|
+
}, {
|
|
17381
|
+
readonly internalType: "uint128";
|
|
17382
|
+
readonly name: "lockPeriod";
|
|
17383
|
+
readonly type: "uint128";
|
|
17230
17384
|
}];
|
|
17231
17385
|
readonly name: "depositETH";
|
|
17232
17386
|
readonly outputs: readonly [];
|
|
@@ -17328,6 +17482,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
17328
17482
|
readonly internalType: "address";
|
|
17329
17483
|
readonly name: "weth";
|
|
17330
17484
|
readonly type: "address";
|
|
17485
|
+
}, {
|
|
17486
|
+
readonly internalType: "contract IPufLocker";
|
|
17487
|
+
readonly name: "locker";
|
|
17488
|
+
readonly type: "address";
|
|
17331
17489
|
}];
|
|
17332
17490
|
readonly stateMutability: "nonpayable";
|
|
17333
17491
|
readonly type: "constructor";
|
|
@@ -17469,25 +17627,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
17469
17627
|
readonly type: "bool";
|
|
17470
17628
|
}];
|
|
17471
17629
|
readonly name: "SetIsMigratorAllowed";
|
|
17472
|
-
/**
|
|
17473
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
17474
|
-
* doesn't make the transaction but returns two methods namely
|
|
17475
|
-
* `transact` and `estimate`.
|
|
17476
|
-
*
|
|
17477
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
17478
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
17479
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
17480
|
-
*
|
|
17481
|
-
* @param token Token to deposit.
|
|
17482
|
-
* @param walletAddress Wallet address to take the token from.
|
|
17483
|
-
* @param value Value in wei of the token to deposit.
|
|
17484
|
-
* @param referralCode Referral code for the deposit.
|
|
17485
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
17486
|
-
* transaction.
|
|
17487
|
-
*
|
|
17488
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
17489
|
-
* transaction.
|
|
17490
|
-
*/
|
|
17491
17630
|
readonly type: "event";
|
|
17492
17631
|
}, {
|
|
17493
17632
|
readonly anonymous: false;
|
|
@@ -17519,6 +17658,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
17519
17658
|
}];
|
|
17520
17659
|
readonly name: "TokenRemoved";
|
|
17521
17660
|
readonly type: "event";
|
|
17661
|
+
}, {
|
|
17662
|
+
readonly inputs: readonly [];
|
|
17663
|
+
readonly name: "PUFFER_LOCKER";
|
|
17664
|
+
readonly outputs: readonly [{
|
|
17665
|
+
readonly internalType: "contract IPufLocker";
|
|
17666
|
+
readonly name: "";
|
|
17667
|
+
readonly type: "address";
|
|
17668
|
+
}];
|
|
17669
|
+
readonly stateMutability: "view";
|
|
17670
|
+
readonly type: "function";
|
|
17522
17671
|
}, {
|
|
17523
17672
|
readonly inputs: readonly [];
|
|
17524
17673
|
readonly name: "WETH";
|
|
@@ -17587,6 +17736,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
17587
17736
|
readonly internalType: "uint256";
|
|
17588
17737
|
readonly name: "referralCode";
|
|
17589
17738
|
readonly type: "uint256";
|
|
17739
|
+
}, {
|
|
17740
|
+
readonly internalType: "uint128";
|
|
17741
|
+
readonly name: "lockPeriod";
|
|
17742
|
+
readonly type: "uint128";
|
|
17590
17743
|
}];
|
|
17591
17744
|
readonly name: "deposit";
|
|
17592
17745
|
readonly outputs: readonly [];
|
|
@@ -17601,6 +17754,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
17601
17754
|
readonly internalType: "uint256";
|
|
17602
17755
|
readonly name: "referralCode";
|
|
17603
17756
|
readonly type: "uint256";
|
|
17757
|
+
}, {
|
|
17758
|
+
readonly internalType: "uint128";
|
|
17759
|
+
readonly name: "lockPeriod";
|
|
17760
|
+
readonly type: "uint128";
|
|
17604
17761
|
}];
|
|
17605
17762
|
readonly name: "depositETH";
|
|
17606
17763
|
readonly outputs: readonly [];
|
|
@@ -17694,7 +17851,7 @@ export declare class PufferL2DepositorHandler {
|
|
|
17694
17851
|
v: number;
|
|
17695
17852
|
r: `0x${string}`;
|
|
17696
17853
|
s: `0x${string}`;
|
|
17697
|
-
}, bigint], ViemChain | undefined, import('viem').Account | undefined, TChainOverride_7>, "address" | "abi" | "args" | "functionName"> extends infer T_5 ? { [K in keyof T_5]: import('viem').UnionOmit<import('viem').WriteContractParameters<readonly [{
|
|
17854
|
+
}, bigint, bigint], ViemChain | undefined, import('viem').Account | undefined, TChainOverride_7>, "address" | "abi" | "args" | "functionName"> extends infer T_5 ? { [K in keyof T_5]: import('viem').UnionOmit<import('viem').WriteContractParameters<readonly [{
|
|
17698
17855
|
readonly inputs: readonly [{
|
|
17699
17856
|
readonly internalType: "address";
|
|
17700
17857
|
readonly name: "accessManager";
|
|
@@ -17703,6 +17860,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
17703
17860
|
readonly internalType: "address";
|
|
17704
17861
|
readonly name: "weth";
|
|
17705
17862
|
readonly type: "address";
|
|
17863
|
+
}, {
|
|
17864
|
+
readonly internalType: "contract IPufLocker";
|
|
17865
|
+
readonly name: "locker";
|
|
17866
|
+
readonly type: "address";
|
|
17706
17867
|
}];
|
|
17707
17868
|
readonly stateMutability: "nonpayable";
|
|
17708
17869
|
readonly type: "constructor";
|
|
@@ -17844,25 +18005,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
17844
18005
|
readonly type: "bool";
|
|
17845
18006
|
}];
|
|
17846
18007
|
readonly name: "SetIsMigratorAllowed";
|
|
17847
|
-
/**
|
|
17848
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
17849
|
-
* doesn't make the transaction but returns two methods namely
|
|
17850
|
-
* `transact` and `estimate`.
|
|
17851
|
-
*
|
|
17852
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
17853
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
17854
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
17855
|
-
*
|
|
17856
|
-
* @param token Token to deposit.
|
|
17857
|
-
* @param walletAddress Wallet address to take the token from.
|
|
17858
|
-
* @param value Value in wei of the token to deposit.
|
|
17859
|
-
* @param referralCode Referral code for the deposit.
|
|
17860
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
17861
|
-
* transaction.
|
|
17862
|
-
*
|
|
17863
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
17864
|
-
* transaction.
|
|
17865
|
-
*/
|
|
17866
18008
|
readonly type: "event";
|
|
17867
18009
|
}, {
|
|
17868
18010
|
readonly anonymous: false;
|
|
@@ -17894,6 +18036,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
17894
18036
|
}];
|
|
17895
18037
|
readonly name: "TokenRemoved";
|
|
17896
18038
|
readonly type: "event";
|
|
18039
|
+
}, {
|
|
18040
|
+
readonly inputs: readonly [];
|
|
18041
|
+
readonly name: "PUFFER_LOCKER";
|
|
18042
|
+
readonly outputs: readonly [{
|
|
18043
|
+
readonly internalType: "contract IPufLocker";
|
|
18044
|
+
readonly name: "";
|
|
18045
|
+
readonly type: "address";
|
|
18046
|
+
}];
|
|
18047
|
+
readonly stateMutability: "view";
|
|
18048
|
+
readonly type: "function";
|
|
17897
18049
|
}, {
|
|
17898
18050
|
readonly inputs: readonly [];
|
|
17899
18051
|
readonly name: "WETH";
|
|
@@ -17962,6 +18114,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
17962
18114
|
readonly internalType: "uint256";
|
|
17963
18115
|
readonly name: "referralCode";
|
|
17964
18116
|
readonly type: "uint256";
|
|
18117
|
+
}, {
|
|
18118
|
+
readonly internalType: "uint128";
|
|
18119
|
+
readonly name: "lockPeriod";
|
|
18120
|
+
readonly type: "uint128";
|
|
17965
18121
|
}];
|
|
17966
18122
|
readonly name: "deposit";
|
|
17967
18123
|
readonly outputs: readonly [];
|
|
@@ -17976,6 +18132,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
17976
18132
|
readonly internalType: "uint256";
|
|
17977
18133
|
readonly name: "referralCode";
|
|
17978
18134
|
readonly type: "uint256";
|
|
18135
|
+
}, {
|
|
18136
|
+
readonly internalType: "uint128";
|
|
18137
|
+
readonly name: "lockPeriod";
|
|
18138
|
+
readonly type: "uint128";
|
|
17979
18139
|
}];
|
|
17980
18140
|
readonly name: "depositETH";
|
|
17981
18141
|
readonly outputs: readonly [];
|
|
@@ -18069,13 +18229,13 @@ export declare class PufferL2DepositorHandler {
|
|
|
18069
18229
|
v: number;
|
|
18070
18230
|
r: `0x${string}`;
|
|
18071
18231
|
s: `0x${string}`;
|
|
18072
|
-
}, bigint], ViemChain | undefined, import('viem').Account | undefined, TChainOverride_7>, "address" | "abi" | "args" | "functionName">[K]; } : never>(args: readonly [`0x${string}`, `0x${string}`, {
|
|
18232
|
+
}, bigint, bigint], ViemChain | undefined, import('viem').Account | undefined, TChainOverride_7>, "address" | "abi" | "args" | "functionName">[K]; } : never>(args: readonly [`0x${string}`, `0x${string}`, {
|
|
18073
18233
|
deadline: bigint;
|
|
18074
18234
|
amount: bigint;
|
|
18075
18235
|
v: number;
|
|
18076
18236
|
r: `0x${string}`;
|
|
18077
18237
|
s: `0x${string}`;
|
|
18078
|
-
}, bigint], options: Options) => Promise<`0x${string}`>;
|
|
18238
|
+
}, bigint, bigint], options: Options) => Promise<`0x${string}`>;
|
|
18079
18239
|
depositETH: <TChainOverride_8 extends ViemChain | undefined, Options_1 extends import('viem').UnionOmit<import('viem').WriteContractParameters<readonly [{
|
|
18080
18240
|
readonly inputs: readonly [{
|
|
18081
18241
|
readonly internalType: "address";
|
|
@@ -18085,6 +18245,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
18085
18245
|
readonly internalType: "address";
|
|
18086
18246
|
readonly name: "weth";
|
|
18087
18247
|
readonly type: "address";
|
|
18248
|
+
}, {
|
|
18249
|
+
readonly internalType: "contract IPufLocker";
|
|
18250
|
+
readonly name: "locker";
|
|
18251
|
+
readonly type: "address";
|
|
18088
18252
|
}];
|
|
18089
18253
|
readonly stateMutability: "nonpayable";
|
|
18090
18254
|
readonly type: "constructor";
|
|
@@ -18226,25 +18390,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
18226
18390
|
readonly type: "bool";
|
|
18227
18391
|
}];
|
|
18228
18392
|
readonly name: "SetIsMigratorAllowed";
|
|
18229
|
-
/**
|
|
18230
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
18231
|
-
* doesn't make the transaction but returns two methods namely
|
|
18232
|
-
* `transact` and `estimate`.
|
|
18233
|
-
*
|
|
18234
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
18235
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
18236
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
18237
|
-
*
|
|
18238
|
-
* @param token Token to deposit.
|
|
18239
|
-
* @param walletAddress Wallet address to take the token from.
|
|
18240
|
-
* @param value Value in wei of the token to deposit.
|
|
18241
|
-
* @param referralCode Referral code for the deposit.
|
|
18242
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
18243
|
-
* transaction.
|
|
18244
|
-
*
|
|
18245
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
18246
|
-
* transaction.
|
|
18247
|
-
*/
|
|
18248
18393
|
readonly type: "event";
|
|
18249
18394
|
}, {
|
|
18250
18395
|
readonly anonymous: false;
|
|
@@ -18276,6 +18421,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
18276
18421
|
}];
|
|
18277
18422
|
readonly name: "TokenRemoved";
|
|
18278
18423
|
readonly type: "event";
|
|
18424
|
+
}, {
|
|
18425
|
+
readonly inputs: readonly [];
|
|
18426
|
+
readonly name: "PUFFER_LOCKER";
|
|
18427
|
+
readonly outputs: readonly [{
|
|
18428
|
+
readonly internalType: "contract IPufLocker";
|
|
18429
|
+
readonly name: "";
|
|
18430
|
+
readonly type: "address";
|
|
18431
|
+
}];
|
|
18432
|
+
readonly stateMutability: "view";
|
|
18433
|
+
readonly type: "function";
|
|
18279
18434
|
}, {
|
|
18280
18435
|
readonly inputs: readonly [];
|
|
18281
18436
|
readonly name: "WETH";
|
|
@@ -18344,6 +18499,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
18344
18499
|
readonly internalType: "uint256";
|
|
18345
18500
|
readonly name: "referralCode";
|
|
18346
18501
|
readonly type: "uint256";
|
|
18502
|
+
}, {
|
|
18503
|
+
readonly internalType: "uint128";
|
|
18504
|
+
readonly name: "lockPeriod";
|
|
18505
|
+
readonly type: "uint128";
|
|
18347
18506
|
}];
|
|
18348
18507
|
readonly name: "deposit";
|
|
18349
18508
|
readonly outputs: readonly [];
|
|
@@ -18358,6 +18517,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
18358
18517
|
readonly internalType: "uint256";
|
|
18359
18518
|
readonly name: "referralCode";
|
|
18360
18519
|
readonly type: "uint256";
|
|
18520
|
+
}, {
|
|
18521
|
+
readonly internalType: "uint128";
|
|
18522
|
+
readonly name: "lockPeriod";
|
|
18523
|
+
readonly type: "uint128";
|
|
18361
18524
|
}];
|
|
18362
18525
|
readonly name: "depositETH";
|
|
18363
18526
|
readonly outputs: readonly [];
|
|
@@ -18445,7 +18608,7 @@ export declare class PufferL2DepositorHandler {
|
|
|
18445
18608
|
}];
|
|
18446
18609
|
readonly stateMutability: "view";
|
|
18447
18610
|
readonly type: "function";
|
|
18448
|
-
}], "depositETH", readonly [`0x${string}`, bigint], ViemChain | undefined, import('viem').Account | undefined, TChainOverride_8>, "address" | "abi" | "args" | "functionName"> extends infer T_6 ? { [K_1 in keyof T_6]: import('viem').UnionOmit<import('viem').WriteContractParameters<readonly [{
|
|
18611
|
+
}], "depositETH", readonly [`0x${string}`, bigint, bigint], ViemChain | undefined, import('viem').Account | undefined, TChainOverride_8>, "address" | "abi" | "args" | "functionName"> extends infer T_6 ? { [K_1 in keyof T_6]: import('viem').UnionOmit<import('viem').WriteContractParameters<readonly [{
|
|
18449
18612
|
readonly inputs: readonly [{
|
|
18450
18613
|
readonly internalType: "address";
|
|
18451
18614
|
readonly name: "accessManager";
|
|
@@ -18454,6 +18617,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
18454
18617
|
readonly internalType: "address";
|
|
18455
18618
|
readonly name: "weth";
|
|
18456
18619
|
readonly type: "address";
|
|
18620
|
+
}, {
|
|
18621
|
+
readonly internalType: "contract IPufLocker";
|
|
18622
|
+
readonly name: "locker";
|
|
18623
|
+
readonly type: "address";
|
|
18457
18624
|
}];
|
|
18458
18625
|
readonly stateMutability: "nonpayable";
|
|
18459
18626
|
readonly type: "constructor";
|
|
@@ -18595,25 +18762,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
18595
18762
|
readonly type: "bool";
|
|
18596
18763
|
}];
|
|
18597
18764
|
readonly name: "SetIsMigratorAllowed";
|
|
18598
|
-
/**
|
|
18599
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
18600
|
-
* doesn't make the transaction but returns two methods namely
|
|
18601
|
-
* `transact` and `estimate`.
|
|
18602
|
-
*
|
|
18603
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
18604
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
18605
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
18606
|
-
*
|
|
18607
|
-
* @param token Token to deposit.
|
|
18608
|
-
* @param walletAddress Wallet address to take the token from.
|
|
18609
|
-
* @param value Value in wei of the token to deposit.
|
|
18610
|
-
* @param referralCode Referral code for the deposit.
|
|
18611
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
18612
|
-
* transaction.
|
|
18613
|
-
*
|
|
18614
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
18615
|
-
* transaction.
|
|
18616
|
-
*/
|
|
18617
18765
|
readonly type: "event";
|
|
18618
18766
|
}, {
|
|
18619
18767
|
readonly anonymous: false;
|
|
@@ -18645,6 +18793,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
18645
18793
|
}];
|
|
18646
18794
|
readonly name: "TokenRemoved";
|
|
18647
18795
|
readonly type: "event";
|
|
18796
|
+
}, {
|
|
18797
|
+
readonly inputs: readonly [];
|
|
18798
|
+
readonly name: "PUFFER_LOCKER";
|
|
18799
|
+
readonly outputs: readonly [{
|
|
18800
|
+
readonly internalType: "contract IPufLocker";
|
|
18801
|
+
readonly name: "";
|
|
18802
|
+
readonly type: "address";
|
|
18803
|
+
}];
|
|
18804
|
+
readonly stateMutability: "view";
|
|
18805
|
+
readonly type: "function";
|
|
18648
18806
|
}, {
|
|
18649
18807
|
readonly inputs: readonly [];
|
|
18650
18808
|
readonly name: "WETH";
|
|
@@ -18713,6 +18871,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
18713
18871
|
readonly internalType: "uint256";
|
|
18714
18872
|
readonly name: "referralCode";
|
|
18715
18873
|
readonly type: "uint256";
|
|
18874
|
+
}, {
|
|
18875
|
+
readonly internalType: "uint128";
|
|
18876
|
+
readonly name: "lockPeriod";
|
|
18877
|
+
readonly type: "uint128";
|
|
18716
18878
|
}];
|
|
18717
18879
|
readonly name: "deposit";
|
|
18718
18880
|
readonly outputs: readonly [];
|
|
@@ -18727,6 +18889,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
18727
18889
|
readonly internalType: "uint256";
|
|
18728
18890
|
readonly name: "referralCode";
|
|
18729
18891
|
readonly type: "uint256";
|
|
18892
|
+
}, {
|
|
18893
|
+
readonly internalType: "uint128";
|
|
18894
|
+
readonly name: "lockPeriod";
|
|
18895
|
+
readonly type: "uint128";
|
|
18730
18896
|
}];
|
|
18731
18897
|
readonly name: "depositETH";
|
|
18732
18898
|
readonly outputs: readonly [];
|
|
@@ -18814,7 +18980,7 @@ export declare class PufferL2DepositorHandler {
|
|
|
18814
18980
|
}];
|
|
18815
18981
|
readonly stateMutability: "view";
|
|
18816
18982
|
readonly type: "function";
|
|
18817
|
-
}], "depositETH", readonly [`0x${string}`, bigint], ViemChain | undefined, import('viem').Account | undefined, TChainOverride_8>, "address" | "abi" | "args" | "functionName">[K_1]; } : never>(args: readonly [`0x${string}`, bigint], options: Options_1) => Promise<`0x${string}`>;
|
|
18983
|
+
}], "depositETH", readonly [`0x${string}`, bigint, bigint], ViemChain | undefined, import('viem').Account | undefined, TChainOverride_8>, "address" | "abi" | "args" | "functionName">[K_1]; } : never>(args: readonly [`0x${string}`, bigint, bigint], options: Options_1) => Promise<`0x${string}`>;
|
|
18818
18984
|
setAuthority: <TChainOverride_9 extends ViemChain | undefined, Options_2 extends import('viem').UnionOmit<import('viem').WriteContractParameters<readonly [{
|
|
18819
18985
|
readonly inputs: readonly [{
|
|
18820
18986
|
readonly internalType: "address";
|
|
@@ -18824,6 +18990,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
18824
18990
|
readonly internalType: "address";
|
|
18825
18991
|
readonly name: "weth";
|
|
18826
18992
|
readonly type: "address";
|
|
18993
|
+
}, {
|
|
18994
|
+
readonly internalType: "contract IPufLocker";
|
|
18995
|
+
readonly name: "locker";
|
|
18996
|
+
readonly type: "address";
|
|
18827
18997
|
}];
|
|
18828
18998
|
readonly stateMutability: "nonpayable";
|
|
18829
18999
|
readonly type: "constructor";
|
|
@@ -18965,25 +19135,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
18965
19135
|
readonly type: "bool";
|
|
18966
19136
|
}];
|
|
18967
19137
|
readonly name: "SetIsMigratorAllowed";
|
|
18968
|
-
/**
|
|
18969
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
18970
|
-
* doesn't make the transaction but returns two methods namely
|
|
18971
|
-
* `transact` and `estimate`.
|
|
18972
|
-
*
|
|
18973
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
18974
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
18975
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
18976
|
-
*
|
|
18977
|
-
* @param token Token to deposit.
|
|
18978
|
-
* @param walletAddress Wallet address to take the token from.
|
|
18979
|
-
* @param value Value in wei of the token to deposit.
|
|
18980
|
-
* @param referralCode Referral code for the deposit.
|
|
18981
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
18982
|
-
* transaction.
|
|
18983
|
-
*
|
|
18984
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
18985
|
-
* transaction.
|
|
18986
|
-
*/
|
|
18987
19138
|
readonly type: "event";
|
|
18988
19139
|
}, {
|
|
18989
19140
|
readonly anonymous: false;
|
|
@@ -19015,6 +19166,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
19015
19166
|
}];
|
|
19016
19167
|
readonly name: "TokenRemoved";
|
|
19017
19168
|
readonly type: "event";
|
|
19169
|
+
}, {
|
|
19170
|
+
readonly inputs: readonly [];
|
|
19171
|
+
readonly name: "PUFFER_LOCKER";
|
|
19172
|
+
readonly outputs: readonly [{
|
|
19173
|
+
readonly internalType: "contract IPufLocker";
|
|
19174
|
+
readonly name: "";
|
|
19175
|
+
readonly type: "address";
|
|
19176
|
+
}];
|
|
19177
|
+
readonly stateMutability: "view";
|
|
19178
|
+
readonly type: "function";
|
|
19018
19179
|
}, {
|
|
19019
19180
|
readonly inputs: readonly [];
|
|
19020
19181
|
readonly name: "WETH";
|
|
@@ -19083,6 +19244,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
19083
19244
|
readonly internalType: "uint256";
|
|
19084
19245
|
readonly name: "referralCode";
|
|
19085
19246
|
readonly type: "uint256";
|
|
19247
|
+
}, {
|
|
19248
|
+
readonly internalType: "uint128";
|
|
19249
|
+
readonly name: "lockPeriod";
|
|
19250
|
+
readonly type: "uint128";
|
|
19086
19251
|
}];
|
|
19087
19252
|
readonly name: "deposit";
|
|
19088
19253
|
readonly outputs: readonly [];
|
|
@@ -19097,6 +19262,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
19097
19262
|
readonly internalType: "uint256";
|
|
19098
19263
|
readonly name: "referralCode";
|
|
19099
19264
|
readonly type: "uint256";
|
|
19265
|
+
}, {
|
|
19266
|
+
readonly internalType: "uint128";
|
|
19267
|
+
readonly name: "lockPeriod";
|
|
19268
|
+
readonly type: "uint128";
|
|
19100
19269
|
}];
|
|
19101
19270
|
readonly name: "depositETH";
|
|
19102
19271
|
readonly outputs: readonly [];
|
|
@@ -19193,6 +19362,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
19193
19362
|
readonly internalType: "address";
|
|
19194
19363
|
readonly name: "weth";
|
|
19195
19364
|
readonly type: "address";
|
|
19365
|
+
}, {
|
|
19366
|
+
readonly internalType: "contract IPufLocker";
|
|
19367
|
+
readonly name: "locker";
|
|
19368
|
+
readonly type: "address";
|
|
19196
19369
|
}];
|
|
19197
19370
|
readonly stateMutability: "nonpayable";
|
|
19198
19371
|
readonly type: "constructor";
|
|
@@ -19334,25 +19507,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
19334
19507
|
readonly type: "bool";
|
|
19335
19508
|
}];
|
|
19336
19509
|
readonly name: "SetIsMigratorAllowed";
|
|
19337
|
-
/**
|
|
19338
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
19339
|
-
* doesn't make the transaction but returns two methods namely
|
|
19340
|
-
* `transact` and `estimate`.
|
|
19341
|
-
*
|
|
19342
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
19343
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
19344
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
19345
|
-
*
|
|
19346
|
-
* @param token Token to deposit.
|
|
19347
|
-
* @param walletAddress Wallet address to take the token from.
|
|
19348
|
-
* @param value Value in wei of the token to deposit.
|
|
19349
|
-
* @param referralCode Referral code for the deposit.
|
|
19350
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
19351
|
-
* transaction.
|
|
19352
|
-
*
|
|
19353
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
19354
|
-
* transaction.
|
|
19355
|
-
*/
|
|
19356
19510
|
readonly type: "event";
|
|
19357
19511
|
}, {
|
|
19358
19512
|
readonly anonymous: false;
|
|
@@ -19384,6 +19538,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
19384
19538
|
}];
|
|
19385
19539
|
readonly name: "TokenRemoved";
|
|
19386
19540
|
readonly type: "event";
|
|
19541
|
+
}, {
|
|
19542
|
+
readonly inputs: readonly [];
|
|
19543
|
+
readonly name: "PUFFER_LOCKER";
|
|
19544
|
+
readonly outputs: readonly [{
|
|
19545
|
+
readonly internalType: "contract IPufLocker";
|
|
19546
|
+
readonly name: "";
|
|
19547
|
+
readonly type: "address";
|
|
19548
|
+
}];
|
|
19549
|
+
readonly stateMutability: "view";
|
|
19550
|
+
readonly type: "function";
|
|
19387
19551
|
}, {
|
|
19388
19552
|
readonly inputs: readonly [];
|
|
19389
19553
|
readonly name: "WETH";
|
|
@@ -19452,6 +19616,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
19452
19616
|
readonly internalType: "uint256";
|
|
19453
19617
|
readonly name: "referralCode";
|
|
19454
19618
|
readonly type: "uint256";
|
|
19619
|
+
}, {
|
|
19620
|
+
readonly internalType: "uint128";
|
|
19621
|
+
readonly name: "lockPeriod";
|
|
19622
|
+
readonly type: "uint128";
|
|
19455
19623
|
}];
|
|
19456
19624
|
readonly name: "deposit";
|
|
19457
19625
|
readonly outputs: readonly [];
|
|
@@ -19466,6 +19634,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
19466
19634
|
readonly internalType: "uint256";
|
|
19467
19635
|
readonly name: "referralCode";
|
|
19468
19636
|
readonly type: "uint256";
|
|
19637
|
+
}, {
|
|
19638
|
+
readonly internalType: "uint128";
|
|
19639
|
+
readonly name: "lockPeriod";
|
|
19640
|
+
readonly type: "uint128";
|
|
19469
19641
|
}];
|
|
19470
19642
|
readonly name: "depositETH";
|
|
19471
19643
|
readonly outputs: readonly [];
|
|
@@ -19563,6 +19735,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
19563
19735
|
readonly internalType: "address";
|
|
19564
19736
|
readonly name: "weth";
|
|
19565
19737
|
readonly type: "address";
|
|
19738
|
+
}, {
|
|
19739
|
+
readonly internalType: "contract IPufLocker";
|
|
19740
|
+
readonly name: "locker";
|
|
19741
|
+
readonly type: "address";
|
|
19566
19742
|
}];
|
|
19567
19743
|
readonly stateMutability: "nonpayable";
|
|
19568
19744
|
readonly type: "constructor";
|
|
@@ -19704,25 +19880,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
19704
19880
|
readonly type: "bool";
|
|
19705
19881
|
}];
|
|
19706
19882
|
readonly name: "SetIsMigratorAllowed";
|
|
19707
|
-
/**
|
|
19708
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
19709
|
-
* doesn't make the transaction but returns two methods namely
|
|
19710
|
-
* `transact` and `estimate`.
|
|
19711
|
-
*
|
|
19712
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
19713
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
19714
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
19715
|
-
*
|
|
19716
|
-
* @param token Token to deposit.
|
|
19717
|
-
* @param walletAddress Wallet address to take the token from.
|
|
19718
|
-
* @param value Value in wei of the token to deposit.
|
|
19719
|
-
* @param referralCode Referral code for the deposit.
|
|
19720
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
19721
|
-
* transaction.
|
|
19722
|
-
*
|
|
19723
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
19724
|
-
* transaction.
|
|
19725
|
-
*/
|
|
19726
19883
|
readonly type: "event";
|
|
19727
19884
|
}, {
|
|
19728
19885
|
readonly anonymous: false;
|
|
@@ -19754,6 +19911,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
19754
19911
|
}];
|
|
19755
19912
|
readonly name: "TokenRemoved";
|
|
19756
19913
|
readonly type: "event";
|
|
19914
|
+
}, {
|
|
19915
|
+
readonly inputs: readonly [];
|
|
19916
|
+
readonly name: "PUFFER_LOCKER";
|
|
19917
|
+
readonly outputs: readonly [{
|
|
19918
|
+
readonly internalType: "contract IPufLocker";
|
|
19919
|
+
readonly name: "";
|
|
19920
|
+
readonly type: "address";
|
|
19921
|
+
}];
|
|
19922
|
+
readonly stateMutability: "view";
|
|
19923
|
+
readonly type: "function";
|
|
19757
19924
|
}, {
|
|
19758
19925
|
readonly inputs: readonly [];
|
|
19759
19926
|
readonly name: "WETH";
|
|
@@ -19822,6 +19989,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
19822
19989
|
readonly internalType: "uint256";
|
|
19823
19990
|
readonly name: "referralCode";
|
|
19824
19991
|
readonly type: "uint256";
|
|
19992
|
+
}, {
|
|
19993
|
+
readonly internalType: "uint128";
|
|
19994
|
+
readonly name: "lockPeriod";
|
|
19995
|
+
readonly type: "uint128";
|
|
19825
19996
|
}];
|
|
19826
19997
|
readonly name: "deposit";
|
|
19827
19998
|
readonly outputs: readonly [];
|
|
@@ -19836,6 +20007,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
19836
20007
|
readonly internalType: "uint256";
|
|
19837
20008
|
readonly name: "referralCode";
|
|
19838
20009
|
readonly type: "uint256";
|
|
20010
|
+
}, {
|
|
20011
|
+
readonly internalType: "uint128";
|
|
20012
|
+
readonly name: "lockPeriod";
|
|
20013
|
+
readonly type: "uint128";
|
|
19839
20014
|
}];
|
|
19840
20015
|
readonly name: "depositETH";
|
|
19841
20016
|
readonly outputs: readonly [];
|
|
@@ -19932,6 +20107,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
19932
20107
|
readonly internalType: "address";
|
|
19933
20108
|
readonly name: "weth";
|
|
19934
20109
|
readonly type: "address";
|
|
20110
|
+
}, {
|
|
20111
|
+
readonly internalType: "contract IPufLocker";
|
|
20112
|
+
readonly name: "locker";
|
|
20113
|
+
readonly type: "address";
|
|
19935
20114
|
}];
|
|
19936
20115
|
readonly stateMutability: "nonpayable";
|
|
19937
20116
|
readonly type: "constructor";
|
|
@@ -20073,25 +20252,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
20073
20252
|
readonly type: "bool";
|
|
20074
20253
|
}];
|
|
20075
20254
|
readonly name: "SetIsMigratorAllowed";
|
|
20076
|
-
/**
|
|
20077
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
20078
|
-
* doesn't make the transaction but returns two methods namely
|
|
20079
|
-
* `transact` and `estimate`.
|
|
20080
|
-
*
|
|
20081
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
20082
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
20083
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
20084
|
-
*
|
|
20085
|
-
* @param token Token to deposit.
|
|
20086
|
-
* @param walletAddress Wallet address to take the token from.
|
|
20087
|
-
* @param value Value in wei of the token to deposit.
|
|
20088
|
-
* @param referralCode Referral code for the deposit.
|
|
20089
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
20090
|
-
* transaction.
|
|
20091
|
-
*
|
|
20092
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
20093
|
-
* transaction.
|
|
20094
|
-
*/
|
|
20095
20255
|
readonly type: "event";
|
|
20096
20256
|
}, {
|
|
20097
20257
|
readonly anonymous: false;
|
|
@@ -20123,6 +20283,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
20123
20283
|
}];
|
|
20124
20284
|
readonly name: "TokenRemoved";
|
|
20125
20285
|
readonly type: "event";
|
|
20286
|
+
}, {
|
|
20287
|
+
readonly inputs: readonly [];
|
|
20288
|
+
readonly name: "PUFFER_LOCKER";
|
|
20289
|
+
readonly outputs: readonly [{
|
|
20290
|
+
readonly internalType: "contract IPufLocker";
|
|
20291
|
+
readonly name: "";
|
|
20292
|
+
readonly type: "address";
|
|
20293
|
+
}];
|
|
20294
|
+
readonly stateMutability: "view";
|
|
20295
|
+
readonly type: "function";
|
|
20126
20296
|
}, {
|
|
20127
20297
|
readonly inputs: readonly [];
|
|
20128
20298
|
readonly name: "WETH";
|
|
@@ -20191,6 +20361,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
20191
20361
|
readonly internalType: "uint256";
|
|
20192
20362
|
readonly name: "referralCode";
|
|
20193
20363
|
readonly type: "uint256";
|
|
20364
|
+
}, {
|
|
20365
|
+
readonly internalType: "uint128";
|
|
20366
|
+
readonly name: "lockPeriod";
|
|
20367
|
+
readonly type: "uint128";
|
|
20194
20368
|
}];
|
|
20195
20369
|
readonly name: "deposit";
|
|
20196
20370
|
readonly outputs: readonly [];
|
|
@@ -20205,6 +20379,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
20205
20379
|
readonly internalType: "uint256";
|
|
20206
20380
|
readonly name: "referralCode";
|
|
20207
20381
|
readonly type: "uint256";
|
|
20382
|
+
}, {
|
|
20383
|
+
readonly internalType: "uint128";
|
|
20384
|
+
readonly name: "lockPeriod";
|
|
20385
|
+
readonly type: "uint128";
|
|
20208
20386
|
}];
|
|
20209
20387
|
readonly name: "depositETH";
|
|
20210
20388
|
readonly outputs: readonly [];
|
|
@@ -20302,6 +20480,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
20302
20480
|
readonly internalType: "address";
|
|
20303
20481
|
readonly name: "weth";
|
|
20304
20482
|
readonly type: "address";
|
|
20483
|
+
}, {
|
|
20484
|
+
readonly internalType: "contract IPufLocker";
|
|
20485
|
+
readonly name: "locker";
|
|
20486
|
+
readonly type: "address";
|
|
20305
20487
|
}];
|
|
20306
20488
|
readonly stateMutability: "nonpayable";
|
|
20307
20489
|
readonly type: "constructor";
|
|
@@ -20443,25 +20625,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
20443
20625
|
readonly type: "bool";
|
|
20444
20626
|
}];
|
|
20445
20627
|
readonly name: "SetIsMigratorAllowed";
|
|
20446
|
-
/**
|
|
20447
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
20448
|
-
* doesn't make the transaction but returns two methods namely
|
|
20449
|
-
* `transact` and `estimate`.
|
|
20450
|
-
*
|
|
20451
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
20452
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
20453
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
20454
|
-
*
|
|
20455
|
-
* @param token Token to deposit.
|
|
20456
|
-
* @param walletAddress Wallet address to take the token from.
|
|
20457
|
-
* @param value Value in wei of the token to deposit.
|
|
20458
|
-
* @param referralCode Referral code for the deposit.
|
|
20459
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
20460
|
-
* transaction.
|
|
20461
|
-
*
|
|
20462
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
20463
|
-
* transaction.
|
|
20464
|
-
*/
|
|
20465
20628
|
readonly type: "event";
|
|
20466
20629
|
}, {
|
|
20467
20630
|
readonly anonymous: false;
|
|
@@ -20493,6 +20656,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
20493
20656
|
}];
|
|
20494
20657
|
readonly name: "TokenRemoved";
|
|
20495
20658
|
readonly type: "event";
|
|
20659
|
+
}, {
|
|
20660
|
+
readonly inputs: readonly [];
|
|
20661
|
+
readonly name: "PUFFER_LOCKER";
|
|
20662
|
+
readonly outputs: readonly [{
|
|
20663
|
+
readonly internalType: "contract IPufLocker";
|
|
20664
|
+
readonly name: "";
|
|
20665
|
+
readonly type: "address";
|
|
20666
|
+
}];
|
|
20667
|
+
readonly stateMutability: "view";
|
|
20668
|
+
readonly type: "function";
|
|
20496
20669
|
}, {
|
|
20497
20670
|
readonly inputs: readonly [];
|
|
20498
20671
|
readonly name: "WETH";
|
|
@@ -20561,6 +20734,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
20561
20734
|
readonly internalType: "uint256";
|
|
20562
20735
|
readonly name: "referralCode";
|
|
20563
20736
|
readonly type: "uint256";
|
|
20737
|
+
}, {
|
|
20738
|
+
readonly internalType: "uint128";
|
|
20739
|
+
readonly name: "lockPeriod";
|
|
20740
|
+
readonly type: "uint128";
|
|
20564
20741
|
}];
|
|
20565
20742
|
readonly name: "deposit";
|
|
20566
20743
|
readonly outputs: readonly [];
|
|
@@ -20575,6 +20752,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
20575
20752
|
readonly internalType: "uint256";
|
|
20576
20753
|
readonly name: "referralCode";
|
|
20577
20754
|
readonly type: "uint256";
|
|
20755
|
+
}, {
|
|
20756
|
+
readonly internalType: "uint128";
|
|
20757
|
+
readonly name: "lockPeriod";
|
|
20758
|
+
readonly type: "uint128";
|
|
20578
20759
|
}];
|
|
20579
20760
|
readonly name: "depositETH";
|
|
20580
20761
|
readonly outputs: readonly [];
|
|
@@ -20671,6 +20852,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
20671
20852
|
readonly internalType: "address";
|
|
20672
20853
|
readonly name: "weth";
|
|
20673
20854
|
readonly type: "address";
|
|
20855
|
+
}, {
|
|
20856
|
+
readonly internalType: "contract IPufLocker";
|
|
20857
|
+
readonly name: "locker";
|
|
20858
|
+
readonly type: "address";
|
|
20674
20859
|
}];
|
|
20675
20860
|
readonly stateMutability: "nonpayable";
|
|
20676
20861
|
readonly type: "constructor";
|
|
@@ -20812,25 +20997,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
20812
20997
|
readonly type: "bool";
|
|
20813
20998
|
}];
|
|
20814
20999
|
readonly name: "SetIsMigratorAllowed";
|
|
20815
|
-
/**
|
|
20816
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
20817
|
-
* doesn't make the transaction but returns two methods namely
|
|
20818
|
-
* `transact` and `estimate`.
|
|
20819
|
-
*
|
|
20820
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
20821
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
20822
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
20823
|
-
*
|
|
20824
|
-
* @param token Token to deposit.
|
|
20825
|
-
* @param walletAddress Wallet address to take the token from.
|
|
20826
|
-
* @param value Value in wei of the token to deposit.
|
|
20827
|
-
* @param referralCode Referral code for the deposit.
|
|
20828
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
20829
|
-
* transaction.
|
|
20830
|
-
*
|
|
20831
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
20832
|
-
* transaction.
|
|
20833
|
-
*/
|
|
20834
21000
|
readonly type: "event";
|
|
20835
21001
|
}, {
|
|
20836
21002
|
readonly anonymous: false;
|
|
@@ -20862,6 +21028,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
20862
21028
|
}];
|
|
20863
21029
|
readonly name: "TokenRemoved";
|
|
20864
21030
|
readonly type: "event";
|
|
21031
|
+
}, {
|
|
21032
|
+
readonly inputs: readonly [];
|
|
21033
|
+
readonly name: "PUFFER_LOCKER";
|
|
21034
|
+
readonly outputs: readonly [{
|
|
21035
|
+
readonly internalType: "contract IPufLocker";
|
|
21036
|
+
readonly name: "";
|
|
21037
|
+
readonly type: "address";
|
|
21038
|
+
}];
|
|
21039
|
+
readonly stateMutability: "view";
|
|
21040
|
+
readonly type: "function";
|
|
20865
21041
|
}, {
|
|
20866
21042
|
readonly inputs: readonly [];
|
|
20867
21043
|
readonly name: "WETH";
|
|
@@ -20930,6 +21106,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
20930
21106
|
readonly internalType: "uint256";
|
|
20931
21107
|
readonly name: "referralCode";
|
|
20932
21108
|
readonly type: "uint256";
|
|
21109
|
+
}, {
|
|
21110
|
+
readonly internalType: "uint128";
|
|
21111
|
+
readonly name: "lockPeriod";
|
|
21112
|
+
readonly type: "uint128";
|
|
20933
21113
|
}];
|
|
20934
21114
|
readonly name: "deposit";
|
|
20935
21115
|
readonly outputs: readonly [];
|
|
@@ -20944,6 +21124,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
20944
21124
|
readonly internalType: "uint256";
|
|
20945
21125
|
readonly name: "referralCode";
|
|
20946
21126
|
readonly type: "uint256";
|
|
21127
|
+
}, {
|
|
21128
|
+
readonly internalType: "uint128";
|
|
21129
|
+
readonly name: "lockPeriod";
|
|
21130
|
+
readonly type: "uint128";
|
|
20947
21131
|
}];
|
|
20948
21132
|
readonly name: "depositETH";
|
|
20949
21133
|
readonly outputs: readonly [];
|
|
@@ -21041,6 +21225,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
21041
21225
|
readonly internalType: "address";
|
|
21042
21226
|
readonly name: "weth";
|
|
21043
21227
|
readonly type: "address";
|
|
21228
|
+
}, {
|
|
21229
|
+
readonly internalType: "contract IPufLocker";
|
|
21230
|
+
readonly name: "locker";
|
|
21231
|
+
readonly type: "address";
|
|
21044
21232
|
}];
|
|
21045
21233
|
readonly stateMutability: "nonpayable";
|
|
21046
21234
|
readonly type: "constructor";
|
|
@@ -21182,25 +21370,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
21182
21370
|
readonly type: "bool";
|
|
21183
21371
|
}];
|
|
21184
21372
|
readonly name: "SetIsMigratorAllowed";
|
|
21185
|
-
/**
|
|
21186
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
21187
|
-
* doesn't make the transaction but returns two methods namely
|
|
21188
|
-
* `transact` and `estimate`.
|
|
21189
|
-
*
|
|
21190
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
21191
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
21192
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
21193
|
-
*
|
|
21194
|
-
* @param token Token to deposit.
|
|
21195
|
-
* @param walletAddress Wallet address to take the token from.
|
|
21196
|
-
* @param value Value in wei of the token to deposit.
|
|
21197
|
-
* @param referralCode Referral code for the deposit.
|
|
21198
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
21199
|
-
* transaction.
|
|
21200
|
-
*
|
|
21201
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
21202
|
-
* transaction.
|
|
21203
|
-
*/
|
|
21204
21373
|
readonly type: "event";
|
|
21205
21374
|
}, {
|
|
21206
21375
|
readonly anonymous: false;
|
|
@@ -21232,6 +21401,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
21232
21401
|
}];
|
|
21233
21402
|
readonly name: "TokenRemoved";
|
|
21234
21403
|
readonly type: "event";
|
|
21404
|
+
}, {
|
|
21405
|
+
readonly inputs: readonly [];
|
|
21406
|
+
readonly name: "PUFFER_LOCKER";
|
|
21407
|
+
readonly outputs: readonly [{
|
|
21408
|
+
readonly internalType: "contract IPufLocker";
|
|
21409
|
+
readonly name: "";
|
|
21410
|
+
readonly type: "address";
|
|
21411
|
+
}];
|
|
21412
|
+
readonly stateMutability: "view";
|
|
21413
|
+
readonly type: "function";
|
|
21235
21414
|
}, {
|
|
21236
21415
|
readonly inputs: readonly [];
|
|
21237
21416
|
readonly name: "WETH";
|
|
@@ -21300,6 +21479,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
21300
21479
|
readonly internalType: "uint256";
|
|
21301
21480
|
readonly name: "referralCode";
|
|
21302
21481
|
readonly type: "uint256";
|
|
21482
|
+
}, {
|
|
21483
|
+
readonly internalType: "uint128";
|
|
21484
|
+
readonly name: "lockPeriod";
|
|
21485
|
+
readonly type: "uint128";
|
|
21303
21486
|
}];
|
|
21304
21487
|
readonly name: "deposit";
|
|
21305
21488
|
readonly outputs: readonly [];
|
|
@@ -21314,6 +21497,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
21314
21497
|
readonly internalType: "uint256";
|
|
21315
21498
|
readonly name: "referralCode";
|
|
21316
21499
|
readonly type: "uint256";
|
|
21500
|
+
}, {
|
|
21501
|
+
readonly internalType: "uint128";
|
|
21502
|
+
readonly name: "lockPeriod";
|
|
21503
|
+
readonly type: "uint128";
|
|
21317
21504
|
}];
|
|
21318
21505
|
readonly name: "depositETH";
|
|
21319
21506
|
readonly outputs: readonly [];
|
|
@@ -21410,6 +21597,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
21410
21597
|
readonly internalType: "address";
|
|
21411
21598
|
readonly name: "weth";
|
|
21412
21599
|
readonly type: "address";
|
|
21600
|
+
}, {
|
|
21601
|
+
readonly internalType: "contract IPufLocker";
|
|
21602
|
+
readonly name: "locker";
|
|
21603
|
+
readonly type: "address";
|
|
21413
21604
|
}];
|
|
21414
21605
|
readonly stateMutability: "nonpayable";
|
|
21415
21606
|
readonly type: "constructor";
|
|
@@ -21551,25 +21742,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
21551
21742
|
readonly type: "bool";
|
|
21552
21743
|
}];
|
|
21553
21744
|
readonly name: "SetIsMigratorAllowed";
|
|
21554
|
-
/**
|
|
21555
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
21556
|
-
* doesn't make the transaction but returns two methods namely
|
|
21557
|
-
* `transact` and `estimate`.
|
|
21558
|
-
*
|
|
21559
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
21560
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
21561
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
21562
|
-
*
|
|
21563
|
-
* @param token Token to deposit.
|
|
21564
|
-
* @param walletAddress Wallet address to take the token from.
|
|
21565
|
-
* @param value Value in wei of the token to deposit.
|
|
21566
|
-
* @param referralCode Referral code for the deposit.
|
|
21567
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
21568
|
-
* transaction.
|
|
21569
|
-
*
|
|
21570
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
21571
|
-
* transaction.
|
|
21572
|
-
*/
|
|
21573
21745
|
readonly type: "event";
|
|
21574
21746
|
}, {
|
|
21575
21747
|
readonly anonymous: false;
|
|
@@ -21601,6 +21773,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
21601
21773
|
}];
|
|
21602
21774
|
readonly name: "TokenRemoved";
|
|
21603
21775
|
readonly type: "event";
|
|
21776
|
+
}, {
|
|
21777
|
+
readonly inputs: readonly [];
|
|
21778
|
+
readonly name: "PUFFER_LOCKER";
|
|
21779
|
+
readonly outputs: readonly [{
|
|
21780
|
+
readonly internalType: "contract IPufLocker";
|
|
21781
|
+
readonly name: "";
|
|
21782
|
+
readonly type: "address";
|
|
21783
|
+
}];
|
|
21784
|
+
readonly stateMutability: "view";
|
|
21785
|
+
readonly type: "function";
|
|
21604
21786
|
}, {
|
|
21605
21787
|
readonly inputs: readonly [];
|
|
21606
21788
|
readonly name: "WETH";
|
|
@@ -21669,6 +21851,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
21669
21851
|
readonly internalType: "uint256";
|
|
21670
21852
|
readonly name: "referralCode";
|
|
21671
21853
|
readonly type: "uint256";
|
|
21854
|
+
}, {
|
|
21855
|
+
readonly internalType: "uint128";
|
|
21856
|
+
readonly name: "lockPeriod";
|
|
21857
|
+
readonly type: "uint128";
|
|
21672
21858
|
}];
|
|
21673
21859
|
readonly name: "deposit";
|
|
21674
21860
|
readonly outputs: readonly [];
|
|
@@ -21683,6 +21869,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
21683
21869
|
readonly internalType: "uint256";
|
|
21684
21870
|
readonly name: "referralCode";
|
|
21685
21871
|
readonly type: "uint256";
|
|
21872
|
+
}, {
|
|
21873
|
+
readonly internalType: "uint128";
|
|
21874
|
+
readonly name: "lockPeriod";
|
|
21875
|
+
readonly type: "uint128";
|
|
21686
21876
|
}];
|
|
21687
21877
|
readonly name: "depositETH";
|
|
21688
21878
|
readonly outputs: readonly [];
|
|
@@ -21780,6 +21970,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
21780
21970
|
readonly internalType: "address";
|
|
21781
21971
|
readonly name: "weth";
|
|
21782
21972
|
readonly type: "address";
|
|
21973
|
+
}, {
|
|
21974
|
+
readonly internalType: "contract IPufLocker";
|
|
21975
|
+
readonly name: "locker";
|
|
21976
|
+
readonly type: "address";
|
|
21783
21977
|
}];
|
|
21784
21978
|
readonly stateMutability: "nonpayable";
|
|
21785
21979
|
readonly type: "constructor";
|
|
@@ -21921,25 +22115,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
21921
22115
|
readonly type: "bool";
|
|
21922
22116
|
}];
|
|
21923
22117
|
readonly name: "SetIsMigratorAllowed";
|
|
21924
|
-
/**
|
|
21925
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
21926
|
-
* doesn't make the transaction but returns two methods namely
|
|
21927
|
-
* `transact` and `estimate`.
|
|
21928
|
-
*
|
|
21929
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
21930
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
21931
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
21932
|
-
*
|
|
21933
|
-
* @param token Token to deposit.
|
|
21934
|
-
* @param walletAddress Wallet address to take the token from.
|
|
21935
|
-
* @param value Value in wei of the token to deposit.
|
|
21936
|
-
* @param referralCode Referral code for the deposit.
|
|
21937
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
21938
|
-
* transaction.
|
|
21939
|
-
*
|
|
21940
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
21941
|
-
* transaction.
|
|
21942
|
-
*/
|
|
21943
22118
|
readonly type: "event";
|
|
21944
22119
|
}, {
|
|
21945
22120
|
readonly anonymous: false;
|
|
@@ -21971,6 +22146,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
21971
22146
|
}];
|
|
21972
22147
|
readonly name: "TokenRemoved";
|
|
21973
22148
|
readonly type: "event";
|
|
22149
|
+
}, {
|
|
22150
|
+
readonly inputs: readonly [];
|
|
22151
|
+
readonly name: "PUFFER_LOCKER";
|
|
22152
|
+
readonly outputs: readonly [{
|
|
22153
|
+
readonly internalType: "contract IPufLocker";
|
|
22154
|
+
readonly name: "";
|
|
22155
|
+
readonly type: "address";
|
|
22156
|
+
}];
|
|
22157
|
+
readonly stateMutability: "view";
|
|
22158
|
+
readonly type: "function";
|
|
21974
22159
|
}, {
|
|
21975
22160
|
readonly inputs: readonly [];
|
|
21976
22161
|
readonly name: "WETH";
|
|
@@ -22039,6 +22224,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
22039
22224
|
readonly internalType: "uint256";
|
|
22040
22225
|
readonly name: "referralCode";
|
|
22041
22226
|
readonly type: "uint256";
|
|
22227
|
+
}, {
|
|
22228
|
+
readonly internalType: "uint128";
|
|
22229
|
+
readonly name: "lockPeriod";
|
|
22230
|
+
readonly type: "uint128";
|
|
22042
22231
|
}];
|
|
22043
22232
|
readonly name: "deposit";
|
|
22044
22233
|
readonly outputs: readonly [];
|
|
@@ -22053,6 +22242,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
22053
22242
|
readonly internalType: "uint256";
|
|
22054
22243
|
readonly name: "referralCode";
|
|
22055
22244
|
readonly type: "uint256";
|
|
22245
|
+
}, {
|
|
22246
|
+
readonly internalType: "uint128";
|
|
22247
|
+
readonly name: "lockPeriod";
|
|
22248
|
+
readonly type: "uint128";
|
|
22056
22249
|
}];
|
|
22057
22250
|
readonly name: "depositETH";
|
|
22058
22251
|
readonly outputs: readonly [];
|
|
@@ -22149,6 +22342,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
22149
22342
|
readonly internalType: "address";
|
|
22150
22343
|
readonly name: "weth";
|
|
22151
22344
|
readonly type: "address";
|
|
22345
|
+
}, {
|
|
22346
|
+
readonly internalType: "contract IPufLocker";
|
|
22347
|
+
readonly name: "locker";
|
|
22348
|
+
readonly type: "address";
|
|
22152
22349
|
}];
|
|
22153
22350
|
readonly stateMutability: "nonpayable";
|
|
22154
22351
|
readonly type: "constructor";
|
|
@@ -22290,25 +22487,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
22290
22487
|
readonly type: "bool";
|
|
22291
22488
|
}];
|
|
22292
22489
|
readonly name: "SetIsMigratorAllowed";
|
|
22293
|
-
/**
|
|
22294
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
22295
|
-
* doesn't make the transaction but returns two methods namely
|
|
22296
|
-
* `transact` and `estimate`.
|
|
22297
|
-
*
|
|
22298
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
22299
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
22300
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
22301
|
-
*
|
|
22302
|
-
* @param token Token to deposit.
|
|
22303
|
-
* @param walletAddress Wallet address to take the token from.
|
|
22304
|
-
* @param value Value in wei of the token to deposit.
|
|
22305
|
-
* @param referralCode Referral code for the deposit.
|
|
22306
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
22307
|
-
* transaction.
|
|
22308
|
-
*
|
|
22309
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
22310
|
-
* transaction.
|
|
22311
|
-
*/
|
|
22312
22490
|
readonly type: "event";
|
|
22313
22491
|
}, {
|
|
22314
22492
|
readonly anonymous: false;
|
|
@@ -22340,6 +22518,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
22340
22518
|
}];
|
|
22341
22519
|
readonly name: "TokenRemoved";
|
|
22342
22520
|
readonly type: "event";
|
|
22521
|
+
}, {
|
|
22522
|
+
readonly inputs: readonly [];
|
|
22523
|
+
readonly name: "PUFFER_LOCKER";
|
|
22524
|
+
readonly outputs: readonly [{
|
|
22525
|
+
readonly internalType: "contract IPufLocker";
|
|
22526
|
+
readonly name: "";
|
|
22527
|
+
readonly type: "address";
|
|
22528
|
+
}];
|
|
22529
|
+
readonly stateMutability: "view";
|
|
22530
|
+
readonly type: "function";
|
|
22343
22531
|
}, {
|
|
22344
22532
|
readonly inputs: readonly [];
|
|
22345
22533
|
readonly name: "WETH";
|
|
@@ -22408,6 +22596,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
22408
22596
|
readonly internalType: "uint256";
|
|
22409
22597
|
readonly name: "referralCode";
|
|
22410
22598
|
readonly type: "uint256";
|
|
22599
|
+
}, {
|
|
22600
|
+
readonly internalType: "uint128";
|
|
22601
|
+
readonly name: "lockPeriod";
|
|
22602
|
+
readonly type: "uint128";
|
|
22411
22603
|
}];
|
|
22412
22604
|
readonly name: "deposit";
|
|
22413
22605
|
readonly outputs: readonly [];
|
|
@@ -22422,6 +22614,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
22422
22614
|
readonly internalType: "uint256";
|
|
22423
22615
|
readonly name: "referralCode";
|
|
22424
22616
|
readonly type: "uint256";
|
|
22617
|
+
}, {
|
|
22618
|
+
readonly internalType: "uint128";
|
|
22619
|
+
readonly name: "lockPeriod";
|
|
22620
|
+
readonly type: "uint128";
|
|
22425
22621
|
}];
|
|
22426
22622
|
readonly name: "depositETH";
|
|
22427
22623
|
readonly outputs: readonly [];
|
|
@@ -22521,6 +22717,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
22521
22717
|
readonly internalType: "address";
|
|
22522
22718
|
readonly name: "weth";
|
|
22523
22719
|
readonly type: "address";
|
|
22720
|
+
}, {
|
|
22721
|
+
readonly internalType: "contract IPufLocker";
|
|
22722
|
+
readonly name: "locker";
|
|
22723
|
+
readonly type: "address";
|
|
22524
22724
|
}];
|
|
22525
22725
|
readonly stateMutability: "nonpayable";
|
|
22526
22726
|
readonly type: "constructor";
|
|
@@ -22662,25 +22862,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
22662
22862
|
readonly type: "bool";
|
|
22663
22863
|
}];
|
|
22664
22864
|
readonly name: "SetIsMigratorAllowed";
|
|
22665
|
-
/**
|
|
22666
|
-
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
22667
|
-
* doesn't make the transaction but returns two methods namely
|
|
22668
|
-
* `transact` and `estimate`.
|
|
22669
|
-
*
|
|
22670
|
-
* Note that not all token contracts support permit signatures (e.g.
|
|
22671
|
-
* USDC). If a token's contract doesn't support permit signatures, use
|
|
22672
|
-
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
22673
|
-
*
|
|
22674
|
-
* @param token Token to deposit.
|
|
22675
|
-
* @param walletAddress Wallet address to take the token from.
|
|
22676
|
-
* @param value Value in wei of the token to deposit.
|
|
22677
|
-
* @param referralCode Referral code for the deposit.
|
|
22678
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
22679
|
-
* transaction.
|
|
22680
|
-
*
|
|
22681
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
22682
|
-
* transaction.
|
|
22683
|
-
*/
|
|
22684
22865
|
readonly type: "event";
|
|
22685
22866
|
}, {
|
|
22686
22867
|
readonly anonymous: false;
|
|
@@ -22712,6 +22893,16 @@ export declare class PufferL2DepositorHandler {
|
|
|
22712
22893
|
}];
|
|
22713
22894
|
readonly name: "TokenRemoved";
|
|
22714
22895
|
readonly type: "event";
|
|
22896
|
+
}, {
|
|
22897
|
+
readonly inputs: readonly [];
|
|
22898
|
+
readonly name: "PUFFER_LOCKER";
|
|
22899
|
+
readonly outputs: readonly [{
|
|
22900
|
+
readonly internalType: "contract IPufLocker";
|
|
22901
|
+
readonly name: "";
|
|
22902
|
+
readonly type: "address";
|
|
22903
|
+
}];
|
|
22904
|
+
readonly stateMutability: "view";
|
|
22905
|
+
readonly type: "function";
|
|
22715
22906
|
}, {
|
|
22716
22907
|
readonly inputs: readonly [];
|
|
22717
22908
|
readonly name: "WETH";
|
|
@@ -22780,6 +22971,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
22780
22971
|
readonly internalType: "uint256";
|
|
22781
22972
|
readonly name: "referralCode";
|
|
22782
22973
|
readonly type: "uint256";
|
|
22974
|
+
}, {
|
|
22975
|
+
readonly internalType: "uint128";
|
|
22976
|
+
readonly name: "lockPeriod";
|
|
22977
|
+
readonly type: "uint128";
|
|
22783
22978
|
}];
|
|
22784
22979
|
readonly name: "deposit";
|
|
22785
22980
|
readonly outputs: readonly [];
|
|
@@ -22794,6 +22989,10 @@ export declare class PufferL2DepositorHandler {
|
|
|
22794
22989
|
readonly internalType: "uint256";
|
|
22795
22990
|
readonly name: "referralCode";
|
|
22796
22991
|
readonly type: "uint256";
|
|
22992
|
+
}, {
|
|
22993
|
+
readonly internalType: "uint128";
|
|
22994
|
+
readonly name: "lockPeriod";
|
|
22995
|
+
readonly type: "uint128";
|
|
22797
22996
|
}];
|
|
22798
22997
|
readonly name: "depositETH";
|
|
22799
22998
|
readonly outputs: readonly [];
|
|
@@ -22883,25 +23082,6 @@ export declare class PufferL2DepositorHandler {
|
|
|
22883
23082
|
readonly type: "function";
|
|
22884
23083
|
}];
|
|
22885
23084
|
};
|
|
22886
|
-
/**
|
|
22887
|
-
* Deposit the given token which is pre-approved using
|
|
22888
|
-
* `Token.approve()` in exchange for wrapped PufToken. This doesn't
|
|
22889
|
-
* make the transaction but returns two methods namely `transact` and
|
|
22890
|
-
* `estimate`.
|
|
22891
|
-
*
|
|
22892
|
-
* @param token Token to deposit.
|
|
22893
|
-
* @param walletAddress Wallet address to take the token from.
|
|
22894
|
-
* @param value Value in wei of the token to deposit.
|
|
22895
|
-
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
22896
|
-
* transaction.
|
|
22897
|
-
*
|
|
22898
|
-
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
22899
|
-
* transaction.
|
|
22900
|
-
*/
|
|
22901
|
-
depositPreApproved(token: Token, walletAddress: Address, value: bigint): {
|
|
22902
|
-
transact: () => Promise<`0x${string}`>;
|
|
22903
|
-
estimate: () => Promise<bigint>;
|
|
22904
|
-
};
|
|
22905
23085
|
/**
|
|
22906
23086
|
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
22907
23087
|
* doesn't make the transaction but returns two methods namely
|
|
@@ -22909,19 +23089,24 @@ export declare class PufferL2DepositorHandler {
|
|
|
22909
23089
|
*
|
|
22910
23090
|
* Note that not all token contracts support permit signatures (e.g.
|
|
22911
23091
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
22912
|
-
* `Token.approve()` and
|
|
23092
|
+
* `Token.approve()` and be sure to set the option `isPreapproved` to
|
|
23093
|
+
* `true`.
|
|
22913
23094
|
*
|
|
22914
|
-
* @param token Token to deposit.
|
|
22915
|
-
* @param
|
|
22916
|
-
* @param value Value in wei of the token to deposit.
|
|
22917
|
-
* @param referralCode Referral code for the deposit.
|
|
23095
|
+
* @param depositParams.token Token to deposit.
|
|
23096
|
+
* @param depositParams.account Wallet address to take the token from.
|
|
23097
|
+
* @param depositParams.value Value in wei of the token to deposit.
|
|
23098
|
+
* @param depositParams.referralCode Referral code for the deposit.
|
|
23099
|
+
* @param depositParams.lockPeriod The period for the deposit in
|
|
23100
|
+
* seconds.
|
|
23101
|
+
* @param depositParams.isPreapproved Whether the token is
|
|
23102
|
+
* pre-approved or needs a permit.
|
|
22918
23103
|
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
22919
23104
|
* transaction.
|
|
22920
23105
|
*
|
|
22921
23106
|
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
22922
23107
|
* transaction.
|
|
22923
23108
|
*/
|
|
22924
|
-
deposit(
|
|
23109
|
+
deposit(depositParams: L2DepositParams): Promise<{
|
|
22925
23110
|
transact: () => Promise<`0x${string}`>;
|
|
22926
23111
|
estimate: () => Promise<bigint>;
|
|
22927
23112
|
}>;
|