@pufferfinance/puffer-sdk 1.2.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ccip-DNUqn1xf.cjs → ccip-D9qbW2rG.cjs} +2 -2
- package/dist/{ccip-DNUqn1xf.cjs.map → ccip-D9qbW2rG.cjs.map} +1 -1
- package/dist/{ccip-CzWPognK.js → ccip-DRvnT9Rr.js} +2 -2
- package/dist/{ccip-CzWPognK.js.map → ccip-DRvnT9Rr.js.map} +1 -1
- package/dist/contracts/addresses.d.ts +1 -1
- package/dist/contracts/handlers/erc20-permit-handler.d.ts +309 -37
- package/dist/contracts/handlers/puf-locker-handler.d.ts +732 -258
- package/dist/contracts/handlers/puffer-l2-depositor-handler.d.ts +375 -314
- package/dist/contracts/tokens.d.ts +21 -5
- package/dist/{main--Ww95s5e.cjs → main-BxOuZ8N8.cjs} +33 -33
- package/dist/{main--Ww95s5e.cjs.map → main-BxOuZ8N8.cjs.map} +1 -1
- package/dist/{main-Cl9ZFxdC.js → main-DKOXyfBM.js} +1208 -1122
- package/dist/{main-Cl9ZFxdC.js.map → main-DKOXyfBM.js.map} +1 -1
- package/dist/main.cjs +1 -1
- package/dist/main.js +11 -8
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WalletClient, PublicClient, Address } from 'viem';
|
|
2
2
|
import { Chain, ViemChain } from '../../chains/constants';
|
|
3
|
-
import {
|
|
3
|
+
import { Token } from '../tokens';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Handler for the `PufferL2Depositor` contract exposing methods to
|
|
@@ -228,14 +228,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
228
228
|
readonly name: "isAllowed";
|
|
229
229
|
readonly type: "bool";
|
|
230
230
|
}];
|
|
231
|
-
readonly name: "SetIsMigratorAllowed";
|
|
232
|
-
|
|
233
|
-
* the
|
|
234
|
-
*
|
|
231
|
+
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`.
|
|
235
236
|
*
|
|
236
237
|
* Note that not all token contracts support permit signatures (e.g.
|
|
237
238
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
238
|
-
* `Token.approve()` and call `
|
|
239
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
239
240
|
*
|
|
240
241
|
* @param token Token to deposit.
|
|
241
242
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -603,14 +604,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
603
604
|
readonly name: "isAllowed";
|
|
604
605
|
readonly type: "bool";
|
|
605
606
|
}];
|
|
606
|
-
readonly name: "SetIsMigratorAllowed";
|
|
607
|
-
|
|
608
|
-
* the
|
|
609
|
-
*
|
|
607
|
+
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`.
|
|
610
612
|
*
|
|
611
613
|
* Note that not all token contracts support permit signatures (e.g.
|
|
612
614
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
613
|
-
* `Token.approve()` and call `
|
|
615
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
614
616
|
*
|
|
615
617
|
* @param token Token to deposit.
|
|
616
618
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -972,14 +974,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
972
974
|
readonly name: "isAllowed";
|
|
973
975
|
readonly type: "bool";
|
|
974
976
|
}];
|
|
975
|
-
readonly name: "SetIsMigratorAllowed";
|
|
976
|
-
|
|
977
|
-
* the
|
|
978
|
-
*
|
|
977
|
+
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`.
|
|
979
982
|
*
|
|
980
983
|
* Note that not all token contracts support permit signatures (e.g.
|
|
981
984
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
982
|
-
* `Token.approve()` and call `
|
|
985
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
983
986
|
*
|
|
984
987
|
* @param token Token to deposit.
|
|
985
988
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -1341,14 +1344,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
1341
1344
|
readonly name: "isAllowed";
|
|
1342
1345
|
readonly type: "bool";
|
|
1343
1346
|
}];
|
|
1344
|
-
readonly name: "SetIsMigratorAllowed";
|
|
1345
|
-
|
|
1346
|
-
* the
|
|
1347
|
-
*
|
|
1347
|
+
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`.
|
|
1348
1352
|
*
|
|
1349
1353
|
* Note that not all token contracts support permit signatures (e.g.
|
|
1350
1354
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
1351
|
-
* `Token.approve()` and call `
|
|
1355
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
1352
1356
|
*
|
|
1353
1357
|
* @param token Token to deposit.
|
|
1354
1358
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -1710,14 +1714,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
1710
1714
|
readonly name: "isAllowed";
|
|
1711
1715
|
readonly type: "bool";
|
|
1712
1716
|
}];
|
|
1713
|
-
readonly name: "SetIsMigratorAllowed";
|
|
1714
|
-
|
|
1715
|
-
* the
|
|
1716
|
-
*
|
|
1717
|
+
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`.
|
|
1717
1722
|
*
|
|
1718
1723
|
* Note that not all token contracts support permit signatures (e.g.
|
|
1719
1724
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
1720
|
-
* `Token.approve()` and call `
|
|
1725
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
1721
1726
|
*
|
|
1722
1727
|
* @param token Token to deposit.
|
|
1723
1728
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -2079,14 +2084,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
2079
2084
|
readonly name: "isAllowed";
|
|
2080
2085
|
readonly type: "bool";
|
|
2081
2086
|
}];
|
|
2082
|
-
readonly name: "SetIsMigratorAllowed";
|
|
2083
|
-
|
|
2084
|
-
* the
|
|
2085
|
-
*
|
|
2087
|
+
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`.
|
|
2086
2092
|
*
|
|
2087
2093
|
* Note that not all token contracts support permit signatures (e.g.
|
|
2088
2094
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
2089
|
-
* `Token.approve()` and call `
|
|
2095
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
2090
2096
|
*
|
|
2091
2097
|
* @param token Token to deposit.
|
|
2092
2098
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -2448,14 +2454,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
2448
2454
|
readonly name: "isAllowed";
|
|
2449
2455
|
readonly type: "bool";
|
|
2450
2456
|
}];
|
|
2451
|
-
readonly name: "SetIsMigratorAllowed";
|
|
2452
|
-
|
|
2453
|
-
* the
|
|
2454
|
-
*
|
|
2457
|
+
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`.
|
|
2455
2462
|
*
|
|
2456
2463
|
* Note that not all token contracts support permit signatures (e.g.
|
|
2457
2464
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
2458
|
-
* `Token.approve()` and call `
|
|
2465
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
2459
2466
|
*
|
|
2460
2467
|
* @param token Token to deposit.
|
|
2461
2468
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -2824,14 +2831,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
2824
2831
|
readonly name: "isAllowed";
|
|
2825
2832
|
readonly type: "bool";
|
|
2826
2833
|
}];
|
|
2827
|
-
readonly name: "SetIsMigratorAllowed";
|
|
2828
|
-
|
|
2829
|
-
* the
|
|
2830
|
-
*
|
|
2834
|
+
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`.
|
|
2831
2839
|
*
|
|
2832
2840
|
* Note that not all token contracts support permit signatures (e.g.
|
|
2833
2841
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
2834
|
-
* `Token.approve()` and call `
|
|
2842
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
2835
2843
|
*
|
|
2836
2844
|
* @param token Token to deposit.
|
|
2837
2845
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -3199,14 +3207,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
3199
3207
|
readonly name: "isAllowed";
|
|
3200
3208
|
readonly type: "bool";
|
|
3201
3209
|
}];
|
|
3202
|
-
readonly name: "SetIsMigratorAllowed";
|
|
3203
|
-
|
|
3204
|
-
* the
|
|
3205
|
-
*
|
|
3210
|
+
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`.
|
|
3206
3215
|
*
|
|
3207
3216
|
* Note that not all token contracts support permit signatures (e.g.
|
|
3208
3217
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
3209
|
-
* `Token.approve()` and call `
|
|
3218
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
3210
3219
|
*
|
|
3211
3220
|
* @param token Token to deposit.
|
|
3212
3221
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -3568,14 +3577,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
3568
3577
|
readonly name: "isAllowed";
|
|
3569
3578
|
readonly type: "bool";
|
|
3570
3579
|
}];
|
|
3571
|
-
readonly name: "SetIsMigratorAllowed";
|
|
3572
|
-
|
|
3573
|
-
* the
|
|
3574
|
-
*
|
|
3580
|
+
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`.
|
|
3575
3585
|
*
|
|
3576
3586
|
* Note that not all token contracts support permit signatures (e.g.
|
|
3577
3587
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
3578
|
-
* `Token.approve()` and call `
|
|
3588
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
3579
3589
|
*
|
|
3580
3590
|
* @param token Token to deposit.
|
|
3581
3591
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -3937,14 +3947,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
3937
3947
|
readonly name: "isAllowed";
|
|
3938
3948
|
readonly type: "bool";
|
|
3939
3949
|
}];
|
|
3940
|
-
readonly name: "SetIsMigratorAllowed";
|
|
3941
|
-
|
|
3942
|
-
* the
|
|
3943
|
-
*
|
|
3950
|
+
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`.
|
|
3944
3955
|
*
|
|
3945
3956
|
* Note that not all token contracts support permit signatures (e.g.
|
|
3946
3957
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
3947
|
-
* `Token.approve()` and call `
|
|
3958
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
3948
3959
|
*
|
|
3949
3960
|
* @param token Token to deposit.
|
|
3950
3961
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -4306,14 +4317,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
4306
4317
|
readonly name: "isAllowed";
|
|
4307
4318
|
readonly type: "bool";
|
|
4308
4319
|
}];
|
|
4309
|
-
readonly name: "SetIsMigratorAllowed";
|
|
4310
|
-
|
|
4311
|
-
* the
|
|
4312
|
-
*
|
|
4320
|
+
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`.
|
|
4313
4325
|
*
|
|
4314
4326
|
* Note that not all token contracts support permit signatures (e.g.
|
|
4315
4327
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
4316
|
-
* `Token.approve()` and call `
|
|
4328
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
4317
4329
|
*
|
|
4318
4330
|
* @param token Token to deposit.
|
|
4319
4331
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -4675,14 +4687,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
4675
4687
|
readonly name: "isAllowed";
|
|
4676
4688
|
readonly type: "bool";
|
|
4677
4689
|
}];
|
|
4678
|
-
readonly name: "SetIsMigratorAllowed";
|
|
4679
|
-
|
|
4680
|
-
* the
|
|
4681
|
-
*
|
|
4690
|
+
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`.
|
|
4682
4695
|
*
|
|
4683
4696
|
* Note that not all token contracts support permit signatures (e.g.
|
|
4684
4697
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
4685
|
-
* `Token.approve()` and call `
|
|
4698
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
4686
4699
|
*
|
|
4687
4700
|
* @param token Token to deposit.
|
|
4688
4701
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -5044,14 +5057,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
5044
5057
|
readonly name: "isAllowed";
|
|
5045
5058
|
readonly type: "bool";
|
|
5046
5059
|
}];
|
|
5047
|
-
readonly name: "SetIsMigratorAllowed";
|
|
5048
|
-
|
|
5049
|
-
* the
|
|
5050
|
-
*
|
|
5060
|
+
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`.
|
|
5051
5065
|
*
|
|
5052
5066
|
* Note that not all token contracts support permit signatures (e.g.
|
|
5053
5067
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
5054
|
-
* `Token.approve()` and call `
|
|
5068
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
5055
5069
|
*
|
|
5056
5070
|
* @param token Token to deposit.
|
|
5057
5071
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -5421,14 +5435,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
5421
5435
|
readonly name: "isAllowed";
|
|
5422
5436
|
readonly type: "bool";
|
|
5423
5437
|
}];
|
|
5424
|
-
readonly name: "SetIsMigratorAllowed";
|
|
5425
|
-
|
|
5426
|
-
* the
|
|
5427
|
-
*
|
|
5438
|
+
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`.
|
|
5428
5443
|
*
|
|
5429
5444
|
* Note that not all token contracts support permit signatures (e.g.
|
|
5430
5445
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
5431
|
-
* `Token.approve()` and call `
|
|
5446
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
5432
5447
|
*
|
|
5433
5448
|
* @param token Token to deposit.
|
|
5434
5449
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -5795,14 +5810,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
5795
5810
|
readonly name: "isAllowed";
|
|
5796
5811
|
readonly type: "bool";
|
|
5797
5812
|
}];
|
|
5798
|
-
readonly name: "SetIsMigratorAllowed";
|
|
5799
|
-
|
|
5800
|
-
* the
|
|
5801
|
-
*
|
|
5813
|
+
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`.
|
|
5802
5818
|
*
|
|
5803
5819
|
* Note that not all token contracts support permit signatures (e.g.
|
|
5804
5820
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
5805
|
-
* `Token.approve()` and call `
|
|
5821
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
5806
5822
|
*
|
|
5807
5823
|
* @param token Token to deposit.
|
|
5808
5824
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -6170,14 +6186,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
6170
6186
|
readonly name: "isAllowed";
|
|
6171
6187
|
readonly type: "bool";
|
|
6172
6188
|
}];
|
|
6173
|
-
readonly name: "SetIsMigratorAllowed";
|
|
6174
|
-
|
|
6175
|
-
* the
|
|
6176
|
-
*
|
|
6189
|
+
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`.
|
|
6177
6194
|
*
|
|
6178
6195
|
* Note that not all token contracts support permit signatures (e.g.
|
|
6179
6196
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
6180
|
-
* `Token.approve()` and call `
|
|
6197
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
6181
6198
|
*
|
|
6182
6199
|
* @param token Token to deposit.
|
|
6183
6200
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -6538,14 +6555,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
6538
6555
|
readonly name: "isAllowed";
|
|
6539
6556
|
readonly type: "bool";
|
|
6540
6557
|
}];
|
|
6541
|
-
readonly name: "SetIsMigratorAllowed";
|
|
6542
|
-
|
|
6543
|
-
* the
|
|
6544
|
-
*
|
|
6558
|
+
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`.
|
|
6545
6563
|
*
|
|
6546
6564
|
* Note that not all token contracts support permit signatures (e.g.
|
|
6547
6565
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
6548
|
-
* `Token.approve()` and call `
|
|
6566
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
6549
6567
|
*
|
|
6550
6568
|
* @param token Token to deposit.
|
|
6551
6569
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -6907,14 +6925,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
6907
6925
|
readonly name: "isAllowed";
|
|
6908
6926
|
readonly type: "bool";
|
|
6909
6927
|
}];
|
|
6910
|
-
readonly name: "SetIsMigratorAllowed";
|
|
6911
|
-
|
|
6912
|
-
* the
|
|
6913
|
-
*
|
|
6928
|
+
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`.
|
|
6914
6933
|
*
|
|
6915
6934
|
* Note that not all token contracts support permit signatures (e.g.
|
|
6916
6935
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
6917
|
-
* `Token.approve()` and call `
|
|
6936
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
6918
6937
|
*
|
|
6919
6938
|
* @param token Token to deposit.
|
|
6920
6939
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -7275,14 +7294,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
7275
7294
|
readonly name: "isAllowed";
|
|
7276
7295
|
readonly type: "bool";
|
|
7277
7296
|
}];
|
|
7278
|
-
readonly name: "SetIsMigratorAllowed";
|
|
7279
|
-
|
|
7280
|
-
* the
|
|
7281
|
-
*
|
|
7297
|
+
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`.
|
|
7282
7302
|
*
|
|
7283
7303
|
* Note that not all token contracts support permit signatures (e.g.
|
|
7284
7304
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
7285
|
-
* `Token.approve()` and call `
|
|
7305
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
7286
7306
|
*
|
|
7287
7307
|
* @param token Token to deposit.
|
|
7288
7308
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -7644,14 +7664,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
7644
7664
|
readonly name: "isAllowed";
|
|
7645
7665
|
readonly type: "bool";
|
|
7646
7666
|
}];
|
|
7647
|
-
readonly name: "SetIsMigratorAllowed";
|
|
7648
|
-
|
|
7649
|
-
* the
|
|
7650
|
-
*
|
|
7667
|
+
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`.
|
|
7651
7672
|
*
|
|
7652
7673
|
* Note that not all token contracts support permit signatures (e.g.
|
|
7653
7674
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
7654
|
-
* `Token.approve()` and call `
|
|
7675
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
7655
7676
|
*
|
|
7656
7677
|
* @param token Token to deposit.
|
|
7657
7678
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -8012,14 +8033,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
8012
8033
|
readonly name: "isAllowed";
|
|
8013
8034
|
readonly type: "bool";
|
|
8014
8035
|
}];
|
|
8015
|
-
readonly name: "SetIsMigratorAllowed";
|
|
8016
|
-
|
|
8017
|
-
* the
|
|
8018
|
-
*
|
|
8036
|
+
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`.
|
|
8019
8041
|
*
|
|
8020
8042
|
* Note that not all token contracts support permit signatures (e.g.
|
|
8021
8043
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
8022
|
-
* `Token.approve()` and call `
|
|
8044
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
8023
8045
|
*
|
|
8024
8046
|
* @param token Token to deposit.
|
|
8025
8047
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -8381,14 +8403,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
8381
8403
|
readonly name: "isAllowed";
|
|
8382
8404
|
readonly type: "bool";
|
|
8383
8405
|
}];
|
|
8384
|
-
readonly name: "SetIsMigratorAllowed";
|
|
8385
|
-
|
|
8386
|
-
* the
|
|
8387
|
-
*
|
|
8406
|
+
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`.
|
|
8388
8411
|
*
|
|
8389
8412
|
* Note that not all token contracts support permit signatures (e.g.
|
|
8390
8413
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
8391
|
-
* `Token.approve()` and call `
|
|
8414
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
8392
8415
|
*
|
|
8393
8416
|
* @param token Token to deposit.
|
|
8394
8417
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -8749,14 +8772,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
8749
8772
|
readonly name: "isAllowed";
|
|
8750
8773
|
readonly type: "bool";
|
|
8751
8774
|
}];
|
|
8752
|
-
readonly name: "SetIsMigratorAllowed";
|
|
8753
|
-
|
|
8754
|
-
* the
|
|
8755
|
-
*
|
|
8775
|
+
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`.
|
|
8756
8780
|
*
|
|
8757
8781
|
* Note that not all token contracts support permit signatures (e.g.
|
|
8758
8782
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
8759
|
-
* `Token.approve()` and call `
|
|
8783
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
8760
8784
|
*
|
|
8761
8785
|
* @param token Token to deposit.
|
|
8762
8786
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -9118,14 +9142,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
9118
9142
|
readonly name: "isAllowed";
|
|
9119
9143
|
readonly type: "bool";
|
|
9120
9144
|
}];
|
|
9121
|
-
readonly name: "SetIsMigratorAllowed";
|
|
9122
|
-
|
|
9123
|
-
* the
|
|
9124
|
-
*
|
|
9145
|
+
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`.
|
|
9125
9150
|
*
|
|
9126
9151
|
* Note that not all token contracts support permit signatures (e.g.
|
|
9127
9152
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
9128
|
-
* `Token.approve()` and call `
|
|
9153
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
9129
9154
|
*
|
|
9130
9155
|
* @param token Token to deposit.
|
|
9131
9156
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -9486,14 +9511,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
9486
9511
|
readonly name: "isAllowed";
|
|
9487
9512
|
readonly type: "bool";
|
|
9488
9513
|
}];
|
|
9489
|
-
readonly name: "SetIsMigratorAllowed";
|
|
9490
|
-
|
|
9491
|
-
* the
|
|
9492
|
-
*
|
|
9514
|
+
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`.
|
|
9493
9519
|
*
|
|
9494
9520
|
* Note that not all token contracts support permit signatures (e.g.
|
|
9495
9521
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
9496
|
-
* `Token.approve()` and call `
|
|
9522
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
9497
9523
|
*
|
|
9498
9524
|
* @param token Token to deposit.
|
|
9499
9525
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -9855,14 +9881,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
9855
9881
|
readonly name: "isAllowed";
|
|
9856
9882
|
readonly type: "bool";
|
|
9857
9883
|
}];
|
|
9858
|
-
readonly name: "SetIsMigratorAllowed";
|
|
9859
|
-
|
|
9860
|
-
* the
|
|
9861
|
-
*
|
|
9884
|
+
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`.
|
|
9862
9889
|
*
|
|
9863
9890
|
* Note that not all token contracts support permit signatures (e.g.
|
|
9864
9891
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
9865
|
-
* `Token.approve()` and call `
|
|
9892
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
9866
9893
|
*
|
|
9867
9894
|
* @param token Token to deposit.
|
|
9868
9895
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -10223,14 +10250,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
10223
10250
|
readonly name: "isAllowed";
|
|
10224
10251
|
readonly type: "bool";
|
|
10225
10252
|
}];
|
|
10226
|
-
readonly name: "SetIsMigratorAllowed";
|
|
10227
|
-
|
|
10228
|
-
* the
|
|
10229
|
-
*
|
|
10253
|
+
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`.
|
|
10230
10258
|
*
|
|
10231
10259
|
* Note that not all token contracts support permit signatures (e.g.
|
|
10232
10260
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
10233
|
-
* `Token.approve()` and call `
|
|
10261
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
10234
10262
|
*
|
|
10235
10263
|
* @param token Token to deposit.
|
|
10236
10264
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -10599,14 +10627,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
10599
10627
|
readonly name: "isAllowed";
|
|
10600
10628
|
readonly type: "bool";
|
|
10601
10629
|
}];
|
|
10602
|
-
readonly name: "SetIsMigratorAllowed";
|
|
10603
|
-
|
|
10604
|
-
* the
|
|
10605
|
-
*
|
|
10630
|
+
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`.
|
|
10606
10635
|
*
|
|
10607
10636
|
* Note that not all token contracts support permit signatures (e.g.
|
|
10608
10637
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
10609
|
-
* `Token.approve()` and call `
|
|
10638
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
10610
10639
|
*
|
|
10611
10640
|
* @param token Token to deposit.
|
|
10612
10641
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -10981,14 +11010,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
10981
11010
|
readonly name: "isAllowed";
|
|
10982
11011
|
readonly type: "bool";
|
|
10983
11012
|
}];
|
|
10984
|
-
readonly name: "SetIsMigratorAllowed";
|
|
10985
|
-
|
|
10986
|
-
* the
|
|
10987
|
-
*
|
|
11013
|
+
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`.
|
|
10988
11018
|
*
|
|
10989
11019
|
* Note that not all token contracts support permit signatures (e.g.
|
|
10990
11020
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
10991
|
-
* `Token.approve()` and call `
|
|
11021
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
10992
11022
|
*
|
|
10993
11023
|
* @param token Token to deposit.
|
|
10994
11024
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -11371,14 +11401,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
11371
11401
|
readonly name: "isAllowed";
|
|
11372
11402
|
readonly type: "bool";
|
|
11373
11403
|
}];
|
|
11374
|
-
readonly name: "SetIsMigratorAllowed";
|
|
11375
|
-
|
|
11376
|
-
* the
|
|
11377
|
-
*
|
|
11404
|
+
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`.
|
|
11378
11409
|
*
|
|
11379
11410
|
* Note that not all token contracts support permit signatures (e.g.
|
|
11380
11411
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
11381
|
-
* `Token.approve()` and call `
|
|
11412
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
11382
11413
|
*
|
|
11383
11414
|
* @param token Token to deposit.
|
|
11384
11415
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -11753,14 +11784,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
11753
11784
|
readonly name: "isAllowed";
|
|
11754
11785
|
readonly type: "bool";
|
|
11755
11786
|
}];
|
|
11756
|
-
readonly name: "SetIsMigratorAllowed";
|
|
11757
|
-
|
|
11758
|
-
* the
|
|
11759
|
-
*
|
|
11787
|
+
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`.
|
|
11760
11792
|
*
|
|
11761
11793
|
* Note that not all token contracts support permit signatures (e.g.
|
|
11762
11794
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
11763
|
-
* `Token.approve()` and call `
|
|
11795
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
11764
11796
|
*
|
|
11765
11797
|
* @param token Token to deposit.
|
|
11766
11798
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -12135,14 +12167,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
12135
12167
|
readonly name: "isAllowed";
|
|
12136
12168
|
readonly type: "bool";
|
|
12137
12169
|
}];
|
|
12138
|
-
readonly name: "SetIsMigratorAllowed";
|
|
12139
|
-
|
|
12140
|
-
* the
|
|
12141
|
-
*
|
|
12170
|
+
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`.
|
|
12142
12175
|
*
|
|
12143
12176
|
* Note that not all token contracts support permit signatures (e.g.
|
|
12144
12177
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
12145
|
-
* `Token.approve()` and call `
|
|
12178
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
12146
12179
|
*
|
|
12147
12180
|
* @param token Token to deposit.
|
|
12148
12181
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -12517,14 +12550,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
12517
12550
|
readonly name: "isAllowed";
|
|
12518
12551
|
readonly type: "bool";
|
|
12519
12552
|
}];
|
|
12520
|
-
readonly name: "SetIsMigratorAllowed";
|
|
12521
|
-
|
|
12522
|
-
* the
|
|
12523
|
-
*
|
|
12553
|
+
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`.
|
|
12524
12558
|
*
|
|
12525
12559
|
* Note that not all token contracts support permit signatures (e.g.
|
|
12526
12560
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
12527
|
-
* `Token.approve()` and call `
|
|
12561
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
12528
12562
|
*
|
|
12529
12563
|
* @param token Token to deposit.
|
|
12530
12564
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -12893,14 +12927,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
12893
12927
|
readonly name: "isAllowed";
|
|
12894
12928
|
readonly type: "bool";
|
|
12895
12929
|
}];
|
|
12896
|
-
readonly name: "SetIsMigratorAllowed";
|
|
12897
|
-
|
|
12898
|
-
* the
|
|
12899
|
-
*
|
|
12930
|
+
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`.
|
|
12900
12935
|
*
|
|
12901
12936
|
* Note that not all token contracts support permit signatures (e.g.
|
|
12902
12937
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
12903
|
-
* `Token.approve()` and call `
|
|
12938
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
12904
12939
|
*
|
|
12905
12940
|
* @param token Token to deposit.
|
|
12906
12941
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -13269,14 +13304,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
13269
13304
|
readonly name: "isAllowed";
|
|
13270
13305
|
readonly type: "bool";
|
|
13271
13306
|
}];
|
|
13272
|
-
readonly name: "SetIsMigratorAllowed";
|
|
13273
|
-
|
|
13274
|
-
* the
|
|
13275
|
-
*
|
|
13307
|
+
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`.
|
|
13276
13312
|
*
|
|
13277
13313
|
* Note that not all token contracts support permit signatures (e.g.
|
|
13278
13314
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
13279
|
-
* `Token.approve()` and call `
|
|
13315
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
13280
13316
|
*
|
|
13281
13317
|
* @param token Token to deposit.
|
|
13282
13318
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -13647,14 +13683,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
13647
13683
|
readonly name: "isAllowed";
|
|
13648
13684
|
readonly type: "bool";
|
|
13649
13685
|
}];
|
|
13650
|
-
readonly name: "SetIsMigratorAllowed";
|
|
13651
|
-
|
|
13652
|
-
* the
|
|
13653
|
-
*
|
|
13686
|
+
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`.
|
|
13654
13691
|
*
|
|
13655
13692
|
* Note that not all token contracts support permit signatures (e.g.
|
|
13656
13693
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
13657
|
-
* `Token.approve()` and call `
|
|
13694
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
13658
13695
|
*
|
|
13659
13696
|
* @param token Token to deposit.
|
|
13660
13697
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -14023,14 +14060,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
14023
14060
|
readonly name: "isAllowed";
|
|
14024
14061
|
readonly type: "bool";
|
|
14025
14062
|
}];
|
|
14026
|
-
readonly name: "SetIsMigratorAllowed";
|
|
14027
|
-
|
|
14028
|
-
* the
|
|
14029
|
-
*
|
|
14063
|
+
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`.
|
|
14030
14068
|
*
|
|
14031
14069
|
* Note that not all token contracts support permit signatures (e.g.
|
|
14032
14070
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
14033
|
-
* `Token.approve()` and call `
|
|
14071
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
14034
14072
|
*
|
|
14035
14073
|
* @param token Token to deposit.
|
|
14036
14074
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -14399,14 +14437,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
14399
14437
|
readonly name: "isAllowed";
|
|
14400
14438
|
readonly type: "bool";
|
|
14401
14439
|
}];
|
|
14402
|
-
readonly name: "SetIsMigratorAllowed";
|
|
14403
|
-
|
|
14404
|
-
* the
|
|
14405
|
-
*
|
|
14440
|
+
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`.
|
|
14406
14445
|
*
|
|
14407
14446
|
* Note that not all token contracts support permit signatures (e.g.
|
|
14408
14447
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
14409
|
-
* `Token.approve()` and call `
|
|
14448
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
14410
14449
|
*
|
|
14411
14450
|
* @param token Token to deposit.
|
|
14412
14451
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -14775,14 +14814,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
14775
14814
|
readonly name: "isAllowed";
|
|
14776
14815
|
readonly type: "bool";
|
|
14777
14816
|
}];
|
|
14778
|
-
readonly name: "SetIsMigratorAllowed";
|
|
14779
|
-
|
|
14780
|
-
* the
|
|
14781
|
-
*
|
|
14817
|
+
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`.
|
|
14782
14822
|
*
|
|
14783
14823
|
* Note that not all token contracts support permit signatures (e.g.
|
|
14784
14824
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
14785
|
-
* `Token.approve()` and call `
|
|
14825
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
14786
14826
|
*
|
|
14787
14827
|
* @param token Token to deposit.
|
|
14788
14828
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -15152,14 +15192,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
15152
15192
|
readonly name: "isAllowed";
|
|
15153
15193
|
readonly type: "bool";
|
|
15154
15194
|
}];
|
|
15155
|
-
readonly name: "SetIsMigratorAllowed";
|
|
15156
|
-
|
|
15157
|
-
* the
|
|
15158
|
-
*
|
|
15195
|
+
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`.
|
|
15159
15200
|
*
|
|
15160
15201
|
* Note that not all token contracts support permit signatures (e.g.
|
|
15161
15202
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
15162
|
-
* `Token.approve()` and call `
|
|
15203
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
15163
15204
|
*
|
|
15164
15205
|
* @param token Token to deposit.
|
|
15165
15206
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -15531,14 +15572,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
15531
15572
|
readonly name: "isAllowed";
|
|
15532
15573
|
readonly type: "bool";
|
|
15533
15574
|
}];
|
|
15534
|
-
readonly name: "SetIsMigratorAllowed";
|
|
15535
|
-
|
|
15536
|
-
* the
|
|
15537
|
-
*
|
|
15575
|
+
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`.
|
|
15538
15580
|
*
|
|
15539
15581
|
* Note that not all token contracts support permit signatures (e.g.
|
|
15540
15582
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
15541
|
-
* `Token.approve()` and call `
|
|
15583
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
15542
15584
|
*
|
|
15543
15585
|
* @param token Token to deposit.
|
|
15544
15586
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -15912,14 +15954,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
15912
15954
|
readonly name: "isAllowed";
|
|
15913
15955
|
readonly type: "bool";
|
|
15914
15956
|
}];
|
|
15915
|
-
readonly name: "SetIsMigratorAllowed";
|
|
15916
|
-
|
|
15917
|
-
* the
|
|
15918
|
-
*
|
|
15957
|
+
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`.
|
|
15919
15962
|
*
|
|
15920
15963
|
* Note that not all token contracts support permit signatures (e.g.
|
|
15921
15964
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
15922
|
-
* `Token.approve()` and call `
|
|
15965
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
15923
15966
|
*
|
|
15924
15967
|
* @param token Token to deposit.
|
|
15925
15968
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -16291,14 +16334,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
16291
16334
|
readonly name: "isAllowed";
|
|
16292
16335
|
readonly type: "bool";
|
|
16293
16336
|
}];
|
|
16294
|
-
readonly name: "SetIsMigratorAllowed";
|
|
16295
|
-
|
|
16296
|
-
* the
|
|
16297
|
-
*
|
|
16337
|
+
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`.
|
|
16298
16342
|
*
|
|
16299
16343
|
* Note that not all token contracts support permit signatures (e.g.
|
|
16300
16344
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
16301
|
-
* `Token.approve()` and call `
|
|
16345
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
16302
16346
|
*
|
|
16303
16347
|
* @param token Token to deposit.
|
|
16304
16348
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -16670,14 +16714,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
16670
16714
|
readonly name: "isAllowed";
|
|
16671
16715
|
readonly type: "bool";
|
|
16672
16716
|
}];
|
|
16673
|
-
readonly name: "SetIsMigratorAllowed";
|
|
16674
|
-
|
|
16675
|
-
* the
|
|
16676
|
-
*
|
|
16717
|
+
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`.
|
|
16677
16722
|
*
|
|
16678
16723
|
* Note that not all token contracts support permit signatures (e.g.
|
|
16679
16724
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
16680
|
-
* `Token.approve()` and call `
|
|
16725
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
16681
16726
|
*
|
|
16682
16727
|
* @param token Token to deposit.
|
|
16683
16728
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -17049,14 +17094,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
17049
17094
|
readonly name: "isAllowed";
|
|
17050
17095
|
readonly type: "bool";
|
|
17051
17096
|
}];
|
|
17052
|
-
readonly name: "SetIsMigratorAllowed";
|
|
17053
|
-
|
|
17054
|
-
* the
|
|
17055
|
-
*
|
|
17097
|
+
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`.
|
|
17056
17102
|
*
|
|
17057
17103
|
* Note that not all token contracts support permit signatures (e.g.
|
|
17058
17104
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
17059
|
-
* `Token.approve()` and call `
|
|
17105
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
17060
17106
|
*
|
|
17061
17107
|
* @param token Token to deposit.
|
|
17062
17108
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -17422,14 +17468,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
17422
17468
|
readonly name: "isAllowed";
|
|
17423
17469
|
readonly type: "bool";
|
|
17424
17470
|
}];
|
|
17425
|
-
readonly name: "SetIsMigratorAllowed";
|
|
17426
|
-
|
|
17427
|
-
* the
|
|
17428
|
-
*
|
|
17471
|
+
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`.
|
|
17429
17476
|
*
|
|
17430
17477
|
* Note that not all token contracts support permit signatures (e.g.
|
|
17431
17478
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
17432
|
-
* `Token.approve()` and call `
|
|
17479
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
17433
17480
|
*
|
|
17434
17481
|
* @param token Token to deposit.
|
|
17435
17482
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -17796,14 +17843,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
17796
17843
|
readonly name: "isAllowed";
|
|
17797
17844
|
readonly type: "bool";
|
|
17798
17845
|
}];
|
|
17799
|
-
readonly name: "SetIsMigratorAllowed";
|
|
17800
|
-
|
|
17801
|
-
* the
|
|
17802
|
-
*
|
|
17846
|
+
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`.
|
|
17803
17851
|
*
|
|
17804
17852
|
* Note that not all token contracts support permit signatures (e.g.
|
|
17805
17853
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
17806
|
-
* `Token.approve()` and call `
|
|
17854
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
17807
17855
|
*
|
|
17808
17856
|
* @param token Token to deposit.
|
|
17809
17857
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -18177,14 +18225,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
18177
18225
|
readonly name: "isAllowed";
|
|
18178
18226
|
readonly type: "bool";
|
|
18179
18227
|
}];
|
|
18180
|
-
readonly name: "SetIsMigratorAllowed";
|
|
18181
|
-
|
|
18182
|
-
* the
|
|
18183
|
-
*
|
|
18228
|
+
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`.
|
|
18184
18233
|
*
|
|
18185
18234
|
* Note that not all token contracts support permit signatures (e.g.
|
|
18186
18235
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
18187
|
-
* `Token.approve()` and call `
|
|
18236
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
18188
18237
|
*
|
|
18189
18238
|
* @param token Token to deposit.
|
|
18190
18239
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -18545,14 +18594,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
18545
18594
|
readonly name: "isAllowed";
|
|
18546
18595
|
readonly type: "bool";
|
|
18547
18596
|
}];
|
|
18548
|
-
readonly name: "SetIsMigratorAllowed";
|
|
18549
|
-
|
|
18550
|
-
* the
|
|
18551
|
-
*
|
|
18597
|
+
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`.
|
|
18552
18602
|
*
|
|
18553
18603
|
* Note that not all token contracts support permit signatures (e.g.
|
|
18554
18604
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
18555
|
-
* `Token.approve()` and call `
|
|
18605
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
18556
18606
|
*
|
|
18557
18607
|
* @param token Token to deposit.
|
|
18558
18608
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -18914,14 +18964,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
18914
18964
|
readonly name: "isAllowed";
|
|
18915
18965
|
readonly type: "bool";
|
|
18916
18966
|
}];
|
|
18917
|
-
readonly name: "SetIsMigratorAllowed";
|
|
18918
|
-
|
|
18919
|
-
* the
|
|
18920
|
-
*
|
|
18967
|
+
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`.
|
|
18921
18972
|
*
|
|
18922
18973
|
* Note that not all token contracts support permit signatures (e.g.
|
|
18923
18974
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
18924
|
-
* `Token.approve()` and call `
|
|
18975
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
18925
18976
|
*
|
|
18926
18977
|
* @param token Token to deposit.
|
|
18927
18978
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -19282,14 +19333,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
19282
19333
|
readonly name: "isAllowed";
|
|
19283
19334
|
readonly type: "bool";
|
|
19284
19335
|
}];
|
|
19285
|
-
readonly name: "SetIsMigratorAllowed";
|
|
19286
|
-
|
|
19287
|
-
* the
|
|
19288
|
-
*
|
|
19336
|
+
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`.
|
|
19289
19341
|
*
|
|
19290
19342
|
* Note that not all token contracts support permit signatures (e.g.
|
|
19291
19343
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
19292
|
-
* `Token.approve()` and call `
|
|
19344
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
19293
19345
|
*
|
|
19294
19346
|
* @param token Token to deposit.
|
|
19295
19347
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -19651,14 +19703,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
19651
19703
|
readonly name: "isAllowed";
|
|
19652
19704
|
readonly type: "bool";
|
|
19653
19705
|
}];
|
|
19654
|
-
readonly name: "SetIsMigratorAllowed";
|
|
19655
|
-
|
|
19656
|
-
* the
|
|
19657
|
-
*
|
|
19706
|
+
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`.
|
|
19658
19711
|
*
|
|
19659
19712
|
* Note that not all token contracts support permit signatures (e.g.
|
|
19660
19713
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
19661
|
-
* `Token.approve()` and call `
|
|
19714
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
19662
19715
|
*
|
|
19663
19716
|
* @param token Token to deposit.
|
|
19664
19717
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -20019,14 +20072,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
20019
20072
|
readonly name: "isAllowed";
|
|
20020
20073
|
readonly type: "bool";
|
|
20021
20074
|
}];
|
|
20022
|
-
readonly name: "SetIsMigratorAllowed";
|
|
20023
|
-
|
|
20024
|
-
* the
|
|
20025
|
-
*
|
|
20075
|
+
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`.
|
|
20026
20080
|
*
|
|
20027
20081
|
* Note that not all token contracts support permit signatures (e.g.
|
|
20028
20082
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
20029
|
-
* `Token.approve()` and call `
|
|
20083
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
20030
20084
|
*
|
|
20031
20085
|
* @param token Token to deposit.
|
|
20032
20086
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -20388,14 +20442,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
20388
20442
|
readonly name: "isAllowed";
|
|
20389
20443
|
readonly type: "bool";
|
|
20390
20444
|
}];
|
|
20391
|
-
readonly name: "SetIsMigratorAllowed";
|
|
20392
|
-
|
|
20393
|
-
* the
|
|
20394
|
-
*
|
|
20445
|
+
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`.
|
|
20395
20450
|
*
|
|
20396
20451
|
* Note that not all token contracts support permit signatures (e.g.
|
|
20397
20452
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
20398
|
-
* `Token.approve()` and call `
|
|
20453
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
20399
20454
|
*
|
|
20400
20455
|
* @param token Token to deposit.
|
|
20401
20456
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -20756,14 +20811,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
20756
20811
|
readonly name: "isAllowed";
|
|
20757
20812
|
readonly type: "bool";
|
|
20758
20813
|
}];
|
|
20759
|
-
readonly name: "SetIsMigratorAllowed";
|
|
20760
|
-
|
|
20761
|
-
* the
|
|
20762
|
-
*
|
|
20814
|
+
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`.
|
|
20763
20819
|
*
|
|
20764
20820
|
* Note that not all token contracts support permit signatures (e.g.
|
|
20765
20821
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
20766
|
-
* `Token.approve()` and call `
|
|
20822
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
20767
20823
|
*
|
|
20768
20824
|
* @param token Token to deposit.
|
|
20769
20825
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -21125,14 +21181,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
21125
21181
|
readonly name: "isAllowed";
|
|
21126
21182
|
readonly type: "bool";
|
|
21127
21183
|
}];
|
|
21128
|
-
readonly name: "SetIsMigratorAllowed";
|
|
21129
|
-
|
|
21130
|
-
* the
|
|
21131
|
-
*
|
|
21184
|
+
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`.
|
|
21132
21189
|
*
|
|
21133
21190
|
* Note that not all token contracts support permit signatures (e.g.
|
|
21134
21191
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
21135
|
-
* `Token.approve()` and call `
|
|
21192
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
21136
21193
|
*
|
|
21137
21194
|
* @param token Token to deposit.
|
|
21138
21195
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -21493,14 +21550,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
21493
21550
|
readonly name: "isAllowed";
|
|
21494
21551
|
readonly type: "bool";
|
|
21495
21552
|
}];
|
|
21496
|
-
readonly name: "SetIsMigratorAllowed";
|
|
21497
|
-
|
|
21498
|
-
* the
|
|
21499
|
-
*
|
|
21553
|
+
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`.
|
|
21500
21558
|
*
|
|
21501
21559
|
* Note that not all token contracts support permit signatures (e.g.
|
|
21502
21560
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
21503
|
-
* `Token.approve()` and call `
|
|
21561
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
21504
21562
|
*
|
|
21505
21563
|
* @param token Token to deposit.
|
|
21506
21564
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -21862,14 +21920,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
21862
21920
|
readonly name: "isAllowed";
|
|
21863
21921
|
readonly type: "bool";
|
|
21864
21922
|
}];
|
|
21865
|
-
readonly name: "SetIsMigratorAllowed";
|
|
21866
|
-
|
|
21867
|
-
* the
|
|
21868
|
-
*
|
|
21923
|
+
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`.
|
|
21869
21928
|
*
|
|
21870
21929
|
* Note that not all token contracts support permit signatures (e.g.
|
|
21871
21930
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
21872
|
-
* `Token.approve()` and call `
|
|
21931
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
21873
21932
|
*
|
|
21874
21933
|
* @param token Token to deposit.
|
|
21875
21934
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -22230,14 +22289,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
22230
22289
|
readonly name: "isAllowed";
|
|
22231
22290
|
readonly type: "bool";
|
|
22232
22291
|
}];
|
|
22233
|
-
readonly name: "SetIsMigratorAllowed";
|
|
22234
|
-
|
|
22235
|
-
* the
|
|
22236
|
-
*
|
|
22292
|
+
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`.
|
|
22237
22297
|
*
|
|
22238
22298
|
* Note that not all token contracts support permit signatures (e.g.
|
|
22239
22299
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
22240
|
-
* `Token.approve()` and call `
|
|
22300
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
22241
22301
|
*
|
|
22242
22302
|
* @param token Token to deposit.
|
|
22243
22303
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -22601,14 +22661,15 @@ export declare class PufferL2DepositorHandler {
|
|
|
22601
22661
|
readonly name: "isAllowed";
|
|
22602
22662
|
readonly type: "bool";
|
|
22603
22663
|
}];
|
|
22604
|
-
readonly name: "SetIsMigratorAllowed";
|
|
22605
|
-
|
|
22606
|
-
* the
|
|
22607
|
-
*
|
|
22664
|
+
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`.
|
|
22608
22669
|
*
|
|
22609
22670
|
* Note that not all token contracts support permit signatures (e.g.
|
|
22610
22671
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
22611
|
-
* `Token.approve()` and call `
|
|
22672
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
22612
22673
|
*
|
|
22613
22674
|
* @param token Token to deposit.
|
|
22614
22675
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -22824,8 +22885,8 @@ export declare class PufferL2DepositorHandler {
|
|
|
22824
22885
|
};
|
|
22825
22886
|
/**
|
|
22826
22887
|
* Deposit the given token which is pre-approved using
|
|
22827
|
-
* `
|
|
22828
|
-
* transaction but returns two methods namely `transact` and
|
|
22888
|
+
* `Token.approve()` in exchange for wrapped PufToken. This doesn't
|
|
22889
|
+
* make the transaction but returns two methods namely `transact` and
|
|
22829
22890
|
* `estimate`.
|
|
22830
22891
|
*
|
|
22831
22892
|
* @param token Token to deposit.
|
|
@@ -22837,18 +22898,18 @@ export declare class PufferL2DepositorHandler {
|
|
|
22837
22898
|
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
22838
22899
|
* transaction.
|
|
22839
22900
|
*/
|
|
22840
|
-
|
|
22901
|
+
depositPreApproved(token: Token, walletAddress: Address, value: bigint): {
|
|
22841
22902
|
transact: () => Promise<`0x${string}`>;
|
|
22842
22903
|
estimate: () => Promise<bigint>;
|
|
22843
22904
|
};
|
|
22844
22905
|
/**
|
|
22845
|
-
* Deposit the given token in exchange for
|
|
22846
|
-
* the transaction but returns two methods namely
|
|
22847
|
-
* `estimate`.
|
|
22906
|
+
* Deposit the given token in exchange for the wrapped PufToken. This
|
|
22907
|
+
* doesn't make the transaction but returns two methods namely
|
|
22908
|
+
* `transact` and `estimate`.
|
|
22848
22909
|
*
|
|
22849
22910
|
* Note that not all token contracts support permit signatures (e.g.
|
|
22850
22911
|
* USDC). If a token's contract doesn't support permit signatures, use
|
|
22851
|
-
* `Token.approve()` and call `
|
|
22912
|
+
* `Token.approve()` and call `this.depositPreApproved()` instead.
|
|
22852
22913
|
*
|
|
22853
22914
|
* @param token Token to deposit.
|
|
22854
22915
|
* @param walletAddress Wallet address to take the token from.
|
|
@@ -22860,7 +22921,7 @@ export declare class PufferL2DepositorHandler {
|
|
|
22860
22921
|
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
22861
22922
|
* transaction.
|
|
22862
22923
|
*/
|
|
22863
|
-
deposit(token:
|
|
22924
|
+
deposit(token: Token, walletAddress: Address, value: bigint, referralCode?: bigint): Promise<{
|
|
22864
22925
|
transact: () => Promise<`0x${string}`>;
|
|
22865
22926
|
estimate: () => Promise<bigint>;
|
|
22866
22927
|
}>;
|