@pufferfinance/puffer-sdk 1.13.2 → 1.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/puffer-client-helpers.cjs +1 -1
- package/dist/api/puffer-client-helpers.cjs.map +1 -1
- package/dist/api/puffer-client-helpers.js +3 -3
- package/dist/api/puffer-client-helpers.js.map +1 -1
- package/dist/api/puffer-client.cjs +1 -1
- package/dist/api/puffer-client.js +2 -2
- package/dist/{ccip-C0xwQhXU.cjs → ccip-BYEwaDSr.cjs} +2 -2
- package/dist/{ccip-C0xwQhXU.cjs.map → ccip-BYEwaDSr.cjs.map} +1 -1
- package/dist/{ccip-K-z2PL4P.js → ccip-DA_MOIPz.js} +3 -3
- package/dist/{ccip-K-z2PL4P.js.map → ccip-DA_MOIPz.js.map} +1 -1
- package/dist/chains/constants.cjs +1 -1
- package/dist/chains/constants.d.ts +4 -1
- package/dist/chains/constants.js +1 -1
- package/dist/constants-5WxIZnbu.cjs +9 -0
- package/dist/constants-5WxIZnbu.cjs.map +1 -0
- package/dist/{constants-CH7Tz5jz.js → constants-BDqMRitM.js} +924 -798
- package/dist/constants-BDqMRitM.js.map +1 -0
- package/dist/contracts/abis/mainnet/Accountant.cjs +1 -1
- package/dist/contracts/abis/mainnet/Accountant.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/Accountant.d.ts +13 -457
- package/dist/contracts/abis/mainnet/Accountant.js +12 -441
- package/dist/contracts/abis/mainnet/Accountant.js.map +1 -1
- package/dist/contracts/abis/mainnet/BoringVault.cjs +1 -1
- package/dist/contracts/abis/mainnet/BoringVault.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/BoringVault.d.ts +18 -505
- package/dist/contracts/abis/mainnet/BoringVault.js +15 -346
- package/dist/contracts/abis/mainnet/BoringVault.js.map +1 -1
- package/dist/contracts/abis/mainnet/CarrotStaker.cjs +1 -1
- package/dist/contracts/abis/mainnet/CarrotStaker.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/CarrotStaker.d.ts +2 -371
- package/dist/contracts/abis/mainnet/CarrotStaker.js +4 -295
- package/dist/contracts/abis/mainnet/CarrotStaker.js.map +1 -1
- package/dist/contracts/abis/mainnet/Distributor.cjs +1 -1
- package/dist/contracts/abis/mainnet/Distributor.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/Distributor.d.ts +0 -413
- package/dist/contracts/abis/mainnet/Distributor.js +2 -355
- package/dist/contracts/abis/mainnet/Distributor.js.map +1 -1
- package/dist/contracts/abis/mainnet/L1RewardManager.cjs +1 -1
- package/dist/contracts/abis/mainnet/L1RewardManager.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/L1RewardManager.d.ts +0 -489
- package/dist/contracts/abis/mainnet/L1RewardManager.js +0 -411
- package/dist/contracts/abis/mainnet/L1RewardManager.js.map +1 -1
- package/dist/contracts/abis/mainnet/L2RewardManager.cjs +1 -1
- package/dist/contracts/abis/mainnet/L2RewardManager.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/L2RewardManager.d.ts +23 -569
- package/dist/contracts/abis/mainnet/L2RewardManager.js +16 -484
- package/dist/contracts/abis/mainnet/L2RewardManager.js.map +1 -1
- package/dist/contracts/abis/mainnet/PufLocker.cjs +1 -1
- package/dist/contracts/abis/mainnet/PufLocker.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/PufLocker.d.ts +29 -371
- package/dist/contracts/abis/mainnet/PufLocker.js +15 -285
- package/dist/contracts/abis/mainnet/PufLocker.js.map +1 -1
- package/dist/contracts/abis/mainnet/PufferL2Depositor.cjs +1 -1
- package/dist/contracts/abis/mainnet/PufferL2Depositor.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/PufferL2Depositor.d.ts +0 -325
- package/dist/contracts/abis/mainnet/PufferL2Depositor.js +0 -270
- package/dist/contracts/abis/mainnet/PufferL2Depositor.js.map +1 -1
- package/dist/contracts/abis/mainnet/PufferVaultV2.cjs +1 -1
- package/dist/contracts/abis/mainnet/PufferVaultV2.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/PufferVaultV2.d.ts +35 -1289
- package/dist/contracts/abis/mainnet/PufferVaultV2.js +45 -1681
- package/dist/contracts/abis/mainnet/PufferVaultV2.js.map +1 -1
- package/dist/contracts/abis/mainnet/PufferWithdrawalManager.cjs +1 -1
- package/dist/contracts/abis/mainnet/PufferWithdrawalManager.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/PufferWithdrawalManager.d.ts +3 -426
- package/dist/contracts/abis/mainnet/PufferWithdrawalManager.js +5 -552
- package/dist/contracts/abis/mainnet/PufferWithdrawalManager.js.map +1 -1
- package/dist/contracts/abis/mainnet/Teller.cjs +1 -1
- package/dist/contracts/abis/mainnet/Teller.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/Teller.d.ts +18 -444
- package/dist/contracts/abis/mainnet/Teller.js +15 -390
- package/dist/contracts/abis/mainnet/Teller.js.map +1 -1
- package/dist/contracts/abis/mainnet/mtwCARROT.cjs +1 -1
- package/dist/contracts/abis/mainnet/mtwCARROT.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/mtwCARROT.d.ts +69 -399
- package/dist/contracts/abis/mainnet/mtwCARROT.js +43 -346
- package/dist/contracts/abis/mainnet/mtwCARROT.js.map +1 -1
- package/dist/contracts/addresses.cjs +1 -1
- package/dist/contracts/addresses.cjs.map +1 -1
- package/dist/contracts/addresses.js +4 -1
- package/dist/contracts/addresses.js.map +1 -1
- package/dist/contracts/handlers/carrot-staking-handler.cjs +1 -1
- package/dist/contracts/handlers/carrot-staking-handler.d.ts +1652 -0
- package/dist/contracts/handlers/carrot-staking-handler.js +2 -2
- package/dist/contracts/handlers/distributor-handler.cjs +1 -1
- package/dist/contracts/handlers/distributor-handler.cjs.map +1 -1
- package/dist/contracts/handlers/distributor-handler.d.ts +8762 -0
- package/dist/contracts/handlers/distributor-handler.js +13 -127
- package/dist/contracts/handlers/distributor-handler.js.map +1 -1
- package/dist/contracts/handlers/erc20-permit-handler.cjs +1 -1
- package/dist/contracts/handlers/erc20-permit-handler.cjs.map +1 -1
- package/dist/contracts/handlers/erc20-permit-handler.d.ts +4 -4
- package/dist/contracts/handlers/erc20-permit-handler.js +14 -14
- package/dist/contracts/handlers/erc20-permit-handler.js.map +1 -1
- package/dist/contracts/handlers/l1-reward-manager-handler.cjs +1 -1
- package/dist/contracts/handlers/l1-reward-manager-handler.cjs.map +1 -1
- package/dist/contracts/handlers/l1-reward-manager-handler.d.ts +339 -0
- package/dist/contracts/handlers/l1-reward-manager-handler.js +14 -14
- package/dist/contracts/handlers/l1-reward-manager-handler.js.map +1 -1
- package/dist/contracts/handlers/l2-reward-manager-handler.cjs +1 -1
- package/dist/contracts/handlers/l2-reward-manager-handler.cjs.map +1 -1
- package/dist/contracts/handlers/l2-reward-manager-handler.d.ts +2423 -0
- package/dist/contracts/handlers/l2-reward-manager-handler.js +6 -6
- package/dist/contracts/handlers/l2-reward-manager-handler.js.map +1 -1
- package/dist/contracts/handlers/mtw-carrot-handler.cjs +1 -1
- package/dist/contracts/handlers/mtw-carrot-handler.d.ts +14333 -0
- package/dist/contracts/handlers/mtw-carrot-handler.js +2 -2
- package/dist/contracts/handlers/nucleus-accountant-handler.cjs +1 -1
- package/dist/contracts/handlers/nucleus-accountant-handler.cjs.map +1 -1
- package/dist/contracts/handlers/nucleus-accountant-handler.d.ts +620 -0
- package/dist/contracts/handlers/nucleus-accountant-handler.js +8 -8
- package/dist/contracts/handlers/nucleus-accountant-handler.js.map +1 -1
- package/dist/contracts/handlers/nucleus-atomic-queue-handler.cjs +1 -1
- package/dist/contracts/handlers/nucleus-atomic-queue-handler.cjs.map +1 -1
- package/dist/contracts/handlers/nucleus-atomic-queue-handler.js +9 -9
- package/dist/contracts/handlers/nucleus-atomic-queue-handler.js.map +1 -1
- package/dist/contracts/handlers/nucleus-boring-vault-handler.cjs +1 -1
- package/dist/contracts/handlers/nucleus-boring-vault-handler.cjs.map +1 -1
- package/dist/contracts/handlers/nucleus-boring-vault-handler.d.ts +3917 -0
- package/dist/contracts/handlers/nucleus-boring-vault-handler.js +24 -24
- package/dist/contracts/handlers/nucleus-boring-vault-handler.js.map +1 -1
- package/dist/contracts/handlers/nucleus-teller-handler.cjs +1 -1
- package/dist/contracts/handlers/nucleus-teller-handler.cjs.map +1 -1
- package/dist/contracts/handlers/nucleus-teller-handler.d.ts +2209 -0
- package/dist/contracts/handlers/nucleus-teller-handler.js +14 -14
- package/dist/contracts/handlers/nucleus-teller-handler.js.map +1 -1
- package/dist/contracts/handlers/puf-locker-handler.cjs +1 -1
- package/dist/contracts/handlers/puf-locker-handler.cjs.map +1 -1
- package/dist/contracts/handlers/puf-locker-handler.d.ts +2389 -0
- package/dist/contracts/handlers/puf-locker-handler.js +12 -12
- package/dist/contracts/handlers/puf-locker-handler.js.map +1 -1
- package/dist/contracts/handlers/puffer-depositor-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-depositor-handler.cjs.map +1 -1
- package/dist/contracts/handlers/puffer-depositor-handler.d.ts +100 -100
- package/dist/contracts/handlers/puffer-depositor-handler.js +19 -19
- package/dist/contracts/handlers/puffer-depositor-handler.js.map +1 -1
- package/dist/contracts/handlers/puffer-l2-depositor-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-l2-depositor-handler.cjs.map +1 -1
- package/dist/contracts/handlers/puffer-l2-depositor-handler.d.ts +471 -0
- package/dist/contracts/handlers/puffer-l2-depositor-handler.js +17 -17
- package/dist/contracts/handlers/puffer-l2-depositor-handler.js.map +1 -1
- package/dist/contracts/handlers/puffer-vault-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-vault-handler.cjs.map +1 -1
- package/dist/contracts/handlers/puffer-vault-handler.d.ts +4657 -0
- package/dist/contracts/handlers/puffer-vault-handler.js +4 -4
- package/dist/contracts/handlers/puffer-vault-handler.js.map +1 -1
- package/dist/contracts/handlers/puffer-withdrawal-manager-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-withdrawal-manager-handler.cjs.map +1 -1
- package/dist/contracts/handlers/puffer-withdrawal-manager-handler.d.ts +1882 -0
- package/dist/contracts/handlers/puffer-withdrawal-manager-handler.js +10 -10
- package/dist/contracts/handlers/puffer-withdrawal-manager-handler.js.map +1 -1
- package/dist/contracts/tokens.cjs +1 -1
- package/dist/contracts/tokens.cjs.map +1 -1
- package/dist/contracts/tokens.d.ts +3 -1
- package/dist/contracts/tokens.js +71 -60
- package/dist/contracts/tokens.js.map +1 -1
- package/dist/contracts/vaults-addresses.cjs +1 -1
- package/dist/contracts/vaults-addresses.d.ts +5 -4
- package/dist/contracts/vaults-addresses.js +1 -1
- package/dist/{createWalletClient-DNLhBkOd.js → createWalletClient-DMXR-Bug.js} +4 -4
- package/dist/{createWalletClient-DNLhBkOd.js.map → createWalletClient-DMXR-Bug.js.map} +1 -1
- package/dist/{createWalletClient-Di5of07E.cjs → createWalletClient-L7tR5Gda.cjs} +2 -2
- package/dist/{createWalletClient-Di5of07E.cjs.map → createWalletClient-L7tR5Gda.cjs.map} +1 -1
- package/dist/{getContract-ChPFzc5y.cjs → getContract-Bt9GsQBq.cjs} +2 -2
- package/dist/{getContract-ChPFzc5y.cjs.map → getContract-Bt9GsQBq.cjs.map} +1 -1
- package/dist/{getContract-6ajhFbP2.js → getContract-DXPZJOBy.js} +2 -2
- package/dist/{getContract-6ajhFbP2.js.map → getContract-DXPZJOBy.js.map} +1 -1
- package/dist/main.cjs +1 -1
- package/dist/main.js +1 -1
- package/dist/{secp256k1-Ev0s9Yr6.js → secp256k1-D02y6Pc-.js} +2 -2
- package/dist/{secp256k1-Ev0s9Yr6.js.map → secp256k1-D02y6Pc-.js.map} +1 -1
- package/dist/{secp256k1-B8plqpXf.cjs → secp256k1-q_akf6f-.cjs} +2 -2
- package/dist/{secp256k1-B8plqpXf.cjs.map → secp256k1-q_akf6f-.cjs.map} +1 -1
- package/dist/utils/version.cjs +1 -1
- package/dist/utils/version.js +1 -1
- package/dist/{writeContract-CjcOEtWX.js → writeContract-BsrMQkg5.js} +4 -4
- package/dist/{writeContract-CjcOEtWX.js.map → writeContract-BsrMQkg5.js.map} +1 -1
- package/dist/{writeContract-BatuNuTe.cjs → writeContract-Cbrw62uO.cjs} +3 -3
- package/dist/{writeContract-BatuNuTe.cjs.map → writeContract-Cbrw62uO.cjs.map} +1 -1
- package/package.json +2 -2
- package/dist/constants-BcPRVxdH.cjs +0 -9
- package/dist/constants-BcPRVxdH.cjs.map +0 -1
- package/dist/constants-CH7Tz5jz.js.map +0 -1
- package/dist/contracts/abis/holesky/PufferDepositor.cjs +0 -2
- package/dist/contracts/abis/holesky/PufferDepositor.cjs.map +0 -1
- package/dist/contracts/abis/holesky/PufferDepositor.d.ts +0 -283
- package/dist/contracts/abis/holesky/PufferDepositor.js +0 -377
- package/dist/contracts/abis/holesky/PufferDepositor.js.map +0 -1
- package/dist/contracts/abis/holesky/PufferVaultV2.cjs +0 -2
- package/dist/contracts/abis/holesky/PufferVaultV2.cjs.map +0 -1
- package/dist/contracts/abis/holesky/PufferVaultV2.d.ts +0 -1361
- package/dist/contracts/abis/holesky/PufferVaultV2.js +0 -1787
- package/dist/contracts/abis/holesky/PufferVaultV2.js.map +0 -1
- package/dist/contracts/abis/l1-reward-manager-abis.cjs +0 -2
- package/dist/contracts/abis/l1-reward-manager-abis.cjs.map +0 -1
- package/dist/contracts/abis/l1-reward-manager-abis.d.ts +0 -527
- package/dist/contracts/abis/l1-reward-manager-abis.js +0 -10
- package/dist/contracts/abis/l1-reward-manager-abis.js.map +0 -1
- package/dist/contracts/abis/l2-reward-manager-abis.cjs +0 -2
- package/dist/contracts/abis/l2-reward-manager-abis.cjs.map +0 -1
- package/dist/contracts/abis/l2-reward-manager-abis.d.ts +0 -709
- package/dist/contracts/abis/l2-reward-manager-abis.js +0 -11
- package/dist/contracts/abis/l2-reward-manager-abis.js.map +0 -1
- package/dist/contracts/abis/nucleus-accountant-abis.cjs +0 -2
- package/dist/contracts/abis/nucleus-accountant-abis.cjs.map +0 -1
- package/dist/contracts/abis/nucleus-accountant-abis.d.ts +0 -525
- package/dist/contracts/abis/nucleus-accountant-abis.js +0 -9
- package/dist/contracts/abis/nucleus-accountant-abis.js.map +0 -1
- package/dist/contracts/abis/nucleus-atomic-queue-abis.cjs +0 -2
- package/dist/contracts/abis/nucleus-atomic-queue-abis.cjs.map +0 -1
- package/dist/contracts/abis/nucleus-atomic-queue-abis.d.ts +0 -332
- package/dist/contracts/abis/nucleus-atomic-queue-abis.js +0 -9
- package/dist/contracts/abis/nucleus-atomic-queue-abis.js.map +0 -1
- package/dist/contracts/abis/nucleus-boring-vault-abis.cjs +0 -2
- package/dist/contracts/abis/nucleus-boring-vault-abis.cjs.map +0 -1
- package/dist/contracts/abis/nucleus-boring-vault-abis.d.ts +0 -626
- package/dist/contracts/abis/nucleus-boring-vault-abis.js +0 -9
- package/dist/contracts/abis/nucleus-boring-vault-abis.js.map +0 -1
- package/dist/contracts/abis/nucleus-teller-abis.cjs +0 -2
- package/dist/contracts/abis/nucleus-teller-abis.cjs.map +0 -1
- package/dist/contracts/abis/nucleus-teller-abis.d.ts +0 -545
- package/dist/contracts/abis/nucleus-teller-abis.js +0 -9
- package/dist/contracts/abis/nucleus-teller-abis.js.map +0 -1
- package/dist/contracts/abis/puf-locker-abis.cjs +0 -2
- package/dist/contracts/abis/puf-locker-abis.cjs.map +0 -1
- package/dist/contracts/abis/puf-locker-abis.d.ts +0 -484
- package/dist/contracts/abis/puf-locker-abis.js +0 -10
- package/dist/contracts/abis/puf-locker-abis.js.map +0 -1
- package/dist/contracts/abis/puffer-depositor-abis.cjs +0 -2
- package/dist/contracts/abis/puffer-depositor-abis.cjs.map +0 -1
- package/dist/contracts/abis/puffer-depositor-abis.d.ts +0 -664
- package/dist/contracts/abis/puffer-depositor-abis.js +0 -20
- package/dist/contracts/abis/puffer-depositor-abis.js.map +0 -1
- package/dist/contracts/abis/puffer-vault-abis.cjs +0 -2
- package/dist/contracts/abis/puffer-vault-abis.cjs.map +0 -1
- package/dist/contracts/abis/puffer-vault-abis.d.ts +0 -2787
- package/dist/contracts/abis/puffer-vault-abis.js +0 -15
- package/dist/contracts/abis/puffer-vault-abis.js.map +0 -1
- package/dist/contracts/abis/puffer-withdrawal-manager-abis.cjs +0 -2
- package/dist/contracts/abis/puffer-withdrawal-manager-abis.cjs.map +0 -1
- package/dist/contracts/abis/puffer-withdrawal-manager-abis.d.ts +0 -514
- package/dist/contracts/abis/puffer-withdrawal-manager-abis.js +0 -10
- package/dist/contracts/abis/puffer-withdrawal-manager-abis.js.map +0 -1
- package/dist/contracts/abis/tokens-abis.cjs +0 -2
- package/dist/contracts/abis/tokens-abis.cjs.map +0 -1
- package/dist/contracts/abis/tokens-abis.d.ts +0 -396
- package/dist/contracts/abis/tokens-abis.js +0 -6
- package/dist/contracts/abis/tokens-abis.js.map +0 -1
|
@@ -0,0 +1,2209 @@
|
|
|
1
|
+
import { WalletClient, PublicClient, Address } from 'viem';
|
|
2
|
+
import { Chain, ViemChain } from '../../chains/constants';
|
|
3
|
+
import { Token, UnifiToken } from '../tokens';
|
|
4
|
+
export type DepositParams = {
|
|
5
|
+
account: Address;
|
|
6
|
+
token: Token;
|
|
7
|
+
unifiToken: UnifiToken;
|
|
8
|
+
amount: bigint;
|
|
9
|
+
minimumMint: bigint;
|
|
10
|
+
isPreapproved?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export type DepositWithPermitParams = {
|
|
13
|
+
account: Address;
|
|
14
|
+
depositAsset: Address;
|
|
15
|
+
depositAmount: bigint;
|
|
16
|
+
minimumMint: bigint;
|
|
17
|
+
deadline: bigint;
|
|
18
|
+
v: number;
|
|
19
|
+
r: Address;
|
|
20
|
+
s: Address;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Handler for the `Teller` contract from nucleus.
|
|
24
|
+
*/
|
|
25
|
+
export declare class NucleusTellerHandler {
|
|
26
|
+
private chain;
|
|
27
|
+
private walletClient;
|
|
28
|
+
private publicClient;
|
|
29
|
+
private viemChain;
|
|
30
|
+
private erc20PermitHandler;
|
|
31
|
+
private token;
|
|
32
|
+
/**
|
|
33
|
+
* Create the handler for processing tokens.
|
|
34
|
+
*
|
|
35
|
+
* @param chain Chain to use for the client.
|
|
36
|
+
* @param walletClient The wallet client to use for wallet
|
|
37
|
+
* interactions.
|
|
38
|
+
* @param publicClient The public client to use for public
|
|
39
|
+
* interactions.
|
|
40
|
+
*/
|
|
41
|
+
constructor(chain: Chain, walletClient: WalletClient, publicClient: PublicClient);
|
|
42
|
+
/**
|
|
43
|
+
* Set the UniFi token to use for executing transactions on the
|
|
44
|
+
* contract.
|
|
45
|
+
*
|
|
46
|
+
* @param token UniFi token to use for the handler.
|
|
47
|
+
* @returns The handler.
|
|
48
|
+
*/
|
|
49
|
+
withToken(token: UnifiToken): this;
|
|
50
|
+
/**
|
|
51
|
+
* Get the contract. This is a method because the typings are complex
|
|
52
|
+
* and lost when trying to make it a member.
|
|
53
|
+
*
|
|
54
|
+
* @returns The viem contract.
|
|
55
|
+
*/
|
|
56
|
+
getContract(): {
|
|
57
|
+
read: {
|
|
58
|
+
accountant: (options?: import('viem').Prettify<import('viem').UnionOmit<import('viem').ReadContractParameters<readonly [{
|
|
59
|
+
readonly inputs: readonly [];
|
|
60
|
+
readonly name: "accountant";
|
|
61
|
+
readonly outputs: readonly [{
|
|
62
|
+
readonly internalType: "contract AccountantWithRateProviders";
|
|
63
|
+
readonly name: "";
|
|
64
|
+
readonly type: "address";
|
|
65
|
+
}];
|
|
66
|
+
readonly stateMutability: "view";
|
|
67
|
+
readonly type: "function";
|
|
68
|
+
}, {
|
|
69
|
+
readonly inputs: readonly [];
|
|
70
|
+
readonly name: "vault";
|
|
71
|
+
readonly outputs: readonly [{
|
|
72
|
+
readonly internalType: "contract BoringVault";
|
|
73
|
+
readonly name: "";
|
|
74
|
+
readonly type: "address";
|
|
75
|
+
}];
|
|
76
|
+
readonly stateMutability: "view";
|
|
77
|
+
readonly type: "function";
|
|
78
|
+
}, {
|
|
79
|
+
readonly inputs: readonly [];
|
|
80
|
+
readonly name: "shareLockPeriod";
|
|
81
|
+
readonly outputs: readonly [{
|
|
82
|
+
readonly internalType: "uint64";
|
|
83
|
+
readonly name: "";
|
|
84
|
+
readonly type: "uint64";
|
|
85
|
+
}];
|
|
86
|
+
readonly stateMutability: "view";
|
|
87
|
+
readonly type: "function";
|
|
88
|
+
}, {
|
|
89
|
+
readonly inputs: readonly [{
|
|
90
|
+
readonly internalType: "address";
|
|
91
|
+
readonly name: "";
|
|
92
|
+
readonly type: "address";
|
|
93
|
+
}];
|
|
94
|
+
readonly name: "shareUnlockTime";
|
|
95
|
+
readonly outputs: readonly [{
|
|
96
|
+
readonly internalType: "uint256";
|
|
97
|
+
readonly name: "";
|
|
98
|
+
readonly type: "uint256";
|
|
99
|
+
}];
|
|
100
|
+
readonly stateMutability: "view";
|
|
101
|
+
readonly type: "function";
|
|
102
|
+
}, {
|
|
103
|
+
readonly inputs: readonly [];
|
|
104
|
+
readonly name: "isPaused";
|
|
105
|
+
readonly outputs: readonly [{
|
|
106
|
+
readonly internalType: "bool";
|
|
107
|
+
readonly name: "";
|
|
108
|
+
readonly type: "bool";
|
|
109
|
+
}];
|
|
110
|
+
readonly stateMutability: "view";
|
|
111
|
+
readonly type: "function";
|
|
112
|
+
}, {
|
|
113
|
+
readonly inputs: readonly [{
|
|
114
|
+
readonly internalType: "contract ERC20";
|
|
115
|
+
readonly name: "depositAsset";
|
|
116
|
+
readonly type: "address";
|
|
117
|
+
}, {
|
|
118
|
+
readonly internalType: "uint256";
|
|
119
|
+
readonly name: "depositAmount";
|
|
120
|
+
readonly type: "uint256";
|
|
121
|
+
}, {
|
|
122
|
+
readonly internalType: "uint256";
|
|
123
|
+
readonly name: "minimumMint";
|
|
124
|
+
readonly type: "uint256";
|
|
125
|
+
}];
|
|
126
|
+
readonly name: "deposit";
|
|
127
|
+
readonly outputs: readonly [{
|
|
128
|
+
readonly internalType: "uint256";
|
|
129
|
+
readonly name: "shares";
|
|
130
|
+
readonly type: "uint256";
|
|
131
|
+
}];
|
|
132
|
+
readonly stateMutability: "nonpayable";
|
|
133
|
+
readonly type: "function";
|
|
134
|
+
}, {
|
|
135
|
+
readonly inputs: readonly [{
|
|
136
|
+
readonly internalType: "contract ERC20";
|
|
137
|
+
readonly name: "depositAsset";
|
|
138
|
+
readonly type: "address";
|
|
139
|
+
}, {
|
|
140
|
+
readonly internalType: "uint256";
|
|
141
|
+
readonly name: "depositAmount";
|
|
142
|
+
readonly type: "uint256";
|
|
143
|
+
}, {
|
|
144
|
+
readonly internalType: "uint256";
|
|
145
|
+
readonly name: "minimumMint";
|
|
146
|
+
readonly type: "uint256";
|
|
147
|
+
}, {
|
|
148
|
+
readonly internalType: "uint256";
|
|
149
|
+
readonly name: "deadline";
|
|
150
|
+
readonly type: "uint256";
|
|
151
|
+
}, {
|
|
152
|
+
readonly internalType: "uint8";
|
|
153
|
+
readonly name: "v";
|
|
154
|
+
readonly type: "uint8";
|
|
155
|
+
}, {
|
|
156
|
+
readonly internalType: "bytes32";
|
|
157
|
+
readonly name: "r";
|
|
158
|
+
readonly type: "bytes32";
|
|
159
|
+
}, {
|
|
160
|
+
readonly internalType: "bytes32";
|
|
161
|
+
readonly name: "s";
|
|
162
|
+
readonly type: "bytes32";
|
|
163
|
+
}];
|
|
164
|
+
readonly name: "depositWithPermit";
|
|
165
|
+
readonly outputs: readonly [{
|
|
166
|
+
readonly internalType: "uint256";
|
|
167
|
+
readonly name: "shares";
|
|
168
|
+
readonly type: "uint256";
|
|
169
|
+
}];
|
|
170
|
+
readonly stateMutability: "nonpayable";
|
|
171
|
+
readonly type: "function";
|
|
172
|
+
}], "accountant", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<`0x${string}`>;
|
|
173
|
+
vault: (options?: import('viem').Prettify<import('viem').UnionOmit<import('viem').ReadContractParameters<readonly [{
|
|
174
|
+
readonly inputs: readonly [];
|
|
175
|
+
readonly name: "accountant";
|
|
176
|
+
readonly outputs: readonly [{
|
|
177
|
+
readonly internalType: "contract AccountantWithRateProviders";
|
|
178
|
+
readonly name: "";
|
|
179
|
+
readonly type: "address";
|
|
180
|
+
}];
|
|
181
|
+
readonly stateMutability: "view";
|
|
182
|
+
readonly type: "function";
|
|
183
|
+
}, {
|
|
184
|
+
readonly inputs: readonly [];
|
|
185
|
+
readonly name: "vault";
|
|
186
|
+
readonly outputs: readonly [{
|
|
187
|
+
readonly internalType: "contract BoringVault";
|
|
188
|
+
readonly name: "";
|
|
189
|
+
readonly type: "address";
|
|
190
|
+
}];
|
|
191
|
+
readonly stateMutability: "view";
|
|
192
|
+
readonly type: "function";
|
|
193
|
+
}, {
|
|
194
|
+
readonly inputs: readonly [];
|
|
195
|
+
readonly name: "shareLockPeriod";
|
|
196
|
+
readonly outputs: readonly [{
|
|
197
|
+
readonly internalType: "uint64";
|
|
198
|
+
readonly name: "";
|
|
199
|
+
readonly type: "uint64";
|
|
200
|
+
}];
|
|
201
|
+
readonly stateMutability: "view";
|
|
202
|
+
readonly type: "function";
|
|
203
|
+
}, {
|
|
204
|
+
readonly inputs: readonly [{
|
|
205
|
+
readonly internalType: "address";
|
|
206
|
+
readonly name: "";
|
|
207
|
+
readonly type: "address";
|
|
208
|
+
}];
|
|
209
|
+
readonly name: "shareUnlockTime";
|
|
210
|
+
readonly outputs: readonly [{
|
|
211
|
+
readonly internalType: "uint256";
|
|
212
|
+
readonly name: "";
|
|
213
|
+
readonly type: "uint256";
|
|
214
|
+
}];
|
|
215
|
+
readonly stateMutability: "view";
|
|
216
|
+
readonly type: "function";
|
|
217
|
+
}, {
|
|
218
|
+
readonly inputs: readonly [];
|
|
219
|
+
readonly name: "isPaused";
|
|
220
|
+
readonly outputs: readonly [{
|
|
221
|
+
readonly internalType: "bool";
|
|
222
|
+
readonly name: "";
|
|
223
|
+
readonly type: "bool";
|
|
224
|
+
}];
|
|
225
|
+
readonly stateMutability: "view";
|
|
226
|
+
readonly type: "function";
|
|
227
|
+
}, {
|
|
228
|
+
readonly inputs: readonly [{
|
|
229
|
+
readonly internalType: "contract ERC20";
|
|
230
|
+
readonly name: "depositAsset";
|
|
231
|
+
readonly type: "address";
|
|
232
|
+
}, {
|
|
233
|
+
readonly internalType: "uint256";
|
|
234
|
+
readonly name: "depositAmount";
|
|
235
|
+
readonly type: "uint256";
|
|
236
|
+
}, {
|
|
237
|
+
readonly internalType: "uint256";
|
|
238
|
+
readonly name: "minimumMint";
|
|
239
|
+
readonly type: "uint256";
|
|
240
|
+
}];
|
|
241
|
+
readonly name: "deposit";
|
|
242
|
+
readonly outputs: readonly [{
|
|
243
|
+
readonly internalType: "uint256";
|
|
244
|
+
readonly name: "shares";
|
|
245
|
+
readonly type: "uint256";
|
|
246
|
+
}];
|
|
247
|
+
readonly stateMutability: "nonpayable";
|
|
248
|
+
readonly type: "function";
|
|
249
|
+
}, {
|
|
250
|
+
readonly inputs: readonly [{
|
|
251
|
+
readonly internalType: "contract ERC20";
|
|
252
|
+
readonly name: "depositAsset";
|
|
253
|
+
readonly type: "address";
|
|
254
|
+
}, {
|
|
255
|
+
readonly internalType: "uint256";
|
|
256
|
+
readonly name: "depositAmount";
|
|
257
|
+
readonly type: "uint256";
|
|
258
|
+
}, {
|
|
259
|
+
readonly internalType: "uint256";
|
|
260
|
+
readonly name: "minimumMint";
|
|
261
|
+
readonly type: "uint256";
|
|
262
|
+
}, {
|
|
263
|
+
readonly internalType: "uint256";
|
|
264
|
+
readonly name: "deadline";
|
|
265
|
+
readonly type: "uint256";
|
|
266
|
+
}, {
|
|
267
|
+
readonly internalType: "uint8";
|
|
268
|
+
readonly name: "v";
|
|
269
|
+
readonly type: "uint8";
|
|
270
|
+
}, {
|
|
271
|
+
readonly internalType: "bytes32";
|
|
272
|
+
readonly name: "r";
|
|
273
|
+
readonly type: "bytes32";
|
|
274
|
+
}, {
|
|
275
|
+
readonly internalType: "bytes32";
|
|
276
|
+
readonly name: "s";
|
|
277
|
+
readonly type: "bytes32";
|
|
278
|
+
}];
|
|
279
|
+
readonly name: "depositWithPermit";
|
|
280
|
+
readonly outputs: readonly [{
|
|
281
|
+
readonly internalType: "uint256";
|
|
282
|
+
readonly name: "shares";
|
|
283
|
+
readonly type: "uint256";
|
|
284
|
+
}];
|
|
285
|
+
readonly stateMutability: "nonpayable";
|
|
286
|
+
readonly type: "function";
|
|
287
|
+
}], "vault", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<`0x${string}`>;
|
|
288
|
+
shareLockPeriod: (options?: import('viem').Prettify<import('viem').UnionOmit<import('viem').ReadContractParameters<readonly [{
|
|
289
|
+
readonly inputs: readonly [];
|
|
290
|
+
readonly name: "accountant";
|
|
291
|
+
readonly outputs: readonly [{
|
|
292
|
+
readonly internalType: "contract AccountantWithRateProviders";
|
|
293
|
+
readonly name: "";
|
|
294
|
+
readonly type: "address";
|
|
295
|
+
}];
|
|
296
|
+
readonly stateMutability: "view";
|
|
297
|
+
readonly type: "function";
|
|
298
|
+
}, {
|
|
299
|
+
readonly inputs: readonly [];
|
|
300
|
+
readonly name: "vault";
|
|
301
|
+
readonly outputs: readonly [{
|
|
302
|
+
readonly internalType: "contract BoringVault";
|
|
303
|
+
readonly name: "";
|
|
304
|
+
readonly type: "address";
|
|
305
|
+
}];
|
|
306
|
+
readonly stateMutability: "view";
|
|
307
|
+
readonly type: "function";
|
|
308
|
+
}, {
|
|
309
|
+
readonly inputs: readonly [];
|
|
310
|
+
readonly name: "shareLockPeriod";
|
|
311
|
+
readonly outputs: readonly [{
|
|
312
|
+
readonly internalType: "uint64";
|
|
313
|
+
readonly name: "";
|
|
314
|
+
readonly type: "uint64";
|
|
315
|
+
}];
|
|
316
|
+
readonly stateMutability: "view";
|
|
317
|
+
readonly type: "function";
|
|
318
|
+
}, {
|
|
319
|
+
readonly inputs: readonly [{
|
|
320
|
+
readonly internalType: "address";
|
|
321
|
+
readonly name: "";
|
|
322
|
+
readonly type: "address";
|
|
323
|
+
}];
|
|
324
|
+
readonly name: "shareUnlockTime";
|
|
325
|
+
readonly outputs: readonly [{
|
|
326
|
+
readonly internalType: "uint256";
|
|
327
|
+
readonly name: "";
|
|
328
|
+
readonly type: "uint256";
|
|
329
|
+
}];
|
|
330
|
+
readonly stateMutability: "view";
|
|
331
|
+
readonly type: "function";
|
|
332
|
+
}, {
|
|
333
|
+
readonly inputs: readonly [];
|
|
334
|
+
readonly name: "isPaused";
|
|
335
|
+
readonly outputs: readonly [{
|
|
336
|
+
readonly internalType: "bool";
|
|
337
|
+
readonly name: "";
|
|
338
|
+
readonly type: "bool";
|
|
339
|
+
}];
|
|
340
|
+
readonly stateMutability: "view";
|
|
341
|
+
readonly type: "function";
|
|
342
|
+
}, {
|
|
343
|
+
readonly inputs: readonly [{
|
|
344
|
+
readonly internalType: "contract ERC20";
|
|
345
|
+
readonly name: "depositAsset";
|
|
346
|
+
readonly type: "address";
|
|
347
|
+
}, {
|
|
348
|
+
readonly internalType: "uint256";
|
|
349
|
+
readonly name: "depositAmount";
|
|
350
|
+
readonly type: "uint256";
|
|
351
|
+
}, {
|
|
352
|
+
readonly internalType: "uint256";
|
|
353
|
+
readonly name: "minimumMint";
|
|
354
|
+
readonly type: "uint256";
|
|
355
|
+
}];
|
|
356
|
+
readonly name: "deposit";
|
|
357
|
+
readonly outputs: readonly [{
|
|
358
|
+
readonly internalType: "uint256";
|
|
359
|
+
readonly name: "shares";
|
|
360
|
+
readonly type: "uint256";
|
|
361
|
+
}];
|
|
362
|
+
readonly stateMutability: "nonpayable";
|
|
363
|
+
readonly type: "function";
|
|
364
|
+
}, {
|
|
365
|
+
readonly inputs: readonly [{
|
|
366
|
+
readonly internalType: "contract ERC20";
|
|
367
|
+
readonly name: "depositAsset";
|
|
368
|
+
readonly type: "address";
|
|
369
|
+
}, {
|
|
370
|
+
readonly internalType: "uint256";
|
|
371
|
+
readonly name: "depositAmount";
|
|
372
|
+
readonly type: "uint256";
|
|
373
|
+
}, {
|
|
374
|
+
readonly internalType: "uint256";
|
|
375
|
+
readonly name: "minimumMint";
|
|
376
|
+
readonly type: "uint256";
|
|
377
|
+
}, {
|
|
378
|
+
readonly internalType: "uint256";
|
|
379
|
+
readonly name: "deadline";
|
|
380
|
+
readonly type: "uint256";
|
|
381
|
+
}, {
|
|
382
|
+
readonly internalType: "uint8";
|
|
383
|
+
readonly name: "v";
|
|
384
|
+
readonly type: "uint8";
|
|
385
|
+
}, {
|
|
386
|
+
readonly internalType: "bytes32";
|
|
387
|
+
readonly name: "r";
|
|
388
|
+
readonly type: "bytes32";
|
|
389
|
+
}, {
|
|
390
|
+
readonly internalType: "bytes32";
|
|
391
|
+
readonly name: "s";
|
|
392
|
+
readonly type: "bytes32";
|
|
393
|
+
}];
|
|
394
|
+
readonly name: "depositWithPermit";
|
|
395
|
+
readonly outputs: readonly [{
|
|
396
|
+
readonly internalType: "uint256";
|
|
397
|
+
readonly name: "shares";
|
|
398
|
+
readonly type: "uint256";
|
|
399
|
+
}];
|
|
400
|
+
readonly stateMutability: "nonpayable";
|
|
401
|
+
readonly type: "function";
|
|
402
|
+
}], "shareLockPeriod", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
403
|
+
shareUnlockTime: (args: readonly [`0x${string}`], options?: import('viem').Prettify<import('viem').UnionOmit<import('viem').ReadContractParameters<readonly [{
|
|
404
|
+
readonly inputs: readonly [];
|
|
405
|
+
readonly name: "accountant";
|
|
406
|
+
readonly outputs: readonly [{
|
|
407
|
+
readonly internalType: "contract AccountantWithRateProviders";
|
|
408
|
+
readonly name: "";
|
|
409
|
+
readonly type: "address";
|
|
410
|
+
}];
|
|
411
|
+
readonly stateMutability: "view";
|
|
412
|
+
readonly type: "function";
|
|
413
|
+
}, {
|
|
414
|
+
readonly inputs: readonly [];
|
|
415
|
+
readonly name: "vault";
|
|
416
|
+
readonly outputs: readonly [{
|
|
417
|
+
readonly internalType: "contract BoringVault";
|
|
418
|
+
readonly name: "";
|
|
419
|
+
readonly type: "address";
|
|
420
|
+
}];
|
|
421
|
+
readonly stateMutability: "view";
|
|
422
|
+
readonly type: "function";
|
|
423
|
+
}, {
|
|
424
|
+
readonly inputs: readonly [];
|
|
425
|
+
readonly name: "shareLockPeriod";
|
|
426
|
+
readonly outputs: readonly [{
|
|
427
|
+
readonly internalType: "uint64";
|
|
428
|
+
readonly name: "";
|
|
429
|
+
readonly type: "uint64";
|
|
430
|
+
}];
|
|
431
|
+
readonly stateMutability: "view";
|
|
432
|
+
readonly type: "function";
|
|
433
|
+
}, {
|
|
434
|
+
readonly inputs: readonly [{
|
|
435
|
+
readonly internalType: "address";
|
|
436
|
+
readonly name: "";
|
|
437
|
+
readonly type: "address";
|
|
438
|
+
}];
|
|
439
|
+
readonly name: "shareUnlockTime";
|
|
440
|
+
readonly outputs: readonly [{
|
|
441
|
+
readonly internalType: "uint256";
|
|
442
|
+
readonly name: "";
|
|
443
|
+
readonly type: "uint256";
|
|
444
|
+
}];
|
|
445
|
+
readonly stateMutability: "view";
|
|
446
|
+
readonly type: "function";
|
|
447
|
+
}, {
|
|
448
|
+
readonly inputs: readonly [];
|
|
449
|
+
readonly name: "isPaused";
|
|
450
|
+
readonly outputs: readonly [{
|
|
451
|
+
readonly internalType: "bool";
|
|
452
|
+
readonly name: "";
|
|
453
|
+
readonly type: "bool";
|
|
454
|
+
}];
|
|
455
|
+
readonly stateMutability: "view";
|
|
456
|
+
readonly type: "function";
|
|
457
|
+
}, {
|
|
458
|
+
readonly inputs: readonly [{
|
|
459
|
+
readonly internalType: "contract ERC20";
|
|
460
|
+
readonly name: "depositAsset";
|
|
461
|
+
readonly type: "address";
|
|
462
|
+
}, {
|
|
463
|
+
readonly internalType: "uint256";
|
|
464
|
+
readonly name: "depositAmount";
|
|
465
|
+
readonly type: "uint256";
|
|
466
|
+
}, {
|
|
467
|
+
readonly internalType: "uint256";
|
|
468
|
+
readonly name: "minimumMint";
|
|
469
|
+
readonly type: "uint256";
|
|
470
|
+
}];
|
|
471
|
+
readonly name: "deposit";
|
|
472
|
+
readonly outputs: readonly [{
|
|
473
|
+
readonly internalType: "uint256";
|
|
474
|
+
readonly name: "shares";
|
|
475
|
+
readonly type: "uint256";
|
|
476
|
+
}];
|
|
477
|
+
readonly stateMutability: "nonpayable";
|
|
478
|
+
readonly type: "function";
|
|
479
|
+
}, {
|
|
480
|
+
readonly inputs: readonly [{
|
|
481
|
+
readonly internalType: "contract ERC20";
|
|
482
|
+
readonly name: "depositAsset";
|
|
483
|
+
readonly type: "address";
|
|
484
|
+
}, {
|
|
485
|
+
readonly internalType: "uint256";
|
|
486
|
+
readonly name: "depositAmount";
|
|
487
|
+
readonly type: "uint256";
|
|
488
|
+
}, {
|
|
489
|
+
readonly internalType: "uint256";
|
|
490
|
+
readonly name: "minimumMint";
|
|
491
|
+
readonly type: "uint256";
|
|
492
|
+
}, {
|
|
493
|
+
readonly internalType: "uint256";
|
|
494
|
+
readonly name: "deadline";
|
|
495
|
+
readonly type: "uint256";
|
|
496
|
+
}, {
|
|
497
|
+
readonly internalType: "uint8";
|
|
498
|
+
readonly name: "v";
|
|
499
|
+
readonly type: "uint8";
|
|
500
|
+
}, {
|
|
501
|
+
readonly internalType: "bytes32";
|
|
502
|
+
readonly name: "r";
|
|
503
|
+
readonly type: "bytes32";
|
|
504
|
+
}, {
|
|
505
|
+
readonly internalType: "bytes32";
|
|
506
|
+
readonly name: "s";
|
|
507
|
+
readonly type: "bytes32";
|
|
508
|
+
}];
|
|
509
|
+
readonly name: "depositWithPermit";
|
|
510
|
+
readonly outputs: readonly [{
|
|
511
|
+
readonly internalType: "uint256";
|
|
512
|
+
readonly name: "shares";
|
|
513
|
+
readonly type: "uint256";
|
|
514
|
+
}];
|
|
515
|
+
readonly stateMutability: "nonpayable";
|
|
516
|
+
readonly type: "function";
|
|
517
|
+
}], "shareUnlockTime", readonly [`0x${string}`]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
518
|
+
isPaused: (options?: import('viem').Prettify<import('viem').UnionOmit<import('viem').ReadContractParameters<readonly [{
|
|
519
|
+
readonly inputs: readonly [];
|
|
520
|
+
readonly name: "accountant";
|
|
521
|
+
readonly outputs: readonly [{
|
|
522
|
+
readonly internalType: "contract AccountantWithRateProviders";
|
|
523
|
+
readonly name: "";
|
|
524
|
+
readonly type: "address";
|
|
525
|
+
}];
|
|
526
|
+
readonly stateMutability: "view";
|
|
527
|
+
readonly type: "function";
|
|
528
|
+
}, {
|
|
529
|
+
readonly inputs: readonly [];
|
|
530
|
+
readonly name: "vault";
|
|
531
|
+
readonly outputs: readonly [{
|
|
532
|
+
readonly internalType: "contract BoringVault";
|
|
533
|
+
readonly name: "";
|
|
534
|
+
readonly type: "address";
|
|
535
|
+
}];
|
|
536
|
+
readonly stateMutability: "view";
|
|
537
|
+
readonly type: "function";
|
|
538
|
+
}, {
|
|
539
|
+
readonly inputs: readonly [];
|
|
540
|
+
readonly name: "shareLockPeriod";
|
|
541
|
+
readonly outputs: readonly [{
|
|
542
|
+
readonly internalType: "uint64";
|
|
543
|
+
readonly name: "";
|
|
544
|
+
readonly type: "uint64";
|
|
545
|
+
}];
|
|
546
|
+
readonly stateMutability: "view";
|
|
547
|
+
readonly type: "function";
|
|
548
|
+
}, {
|
|
549
|
+
readonly inputs: readonly [{
|
|
550
|
+
readonly internalType: "address";
|
|
551
|
+
readonly name: "";
|
|
552
|
+
readonly type: "address";
|
|
553
|
+
}];
|
|
554
|
+
readonly name: "shareUnlockTime";
|
|
555
|
+
readonly outputs: readonly [{
|
|
556
|
+
readonly internalType: "uint256";
|
|
557
|
+
readonly name: "";
|
|
558
|
+
readonly type: "uint256";
|
|
559
|
+
}];
|
|
560
|
+
readonly stateMutability: "view";
|
|
561
|
+
readonly type: "function";
|
|
562
|
+
}, {
|
|
563
|
+
readonly inputs: readonly [];
|
|
564
|
+
readonly name: "isPaused";
|
|
565
|
+
readonly outputs: readonly [{
|
|
566
|
+
readonly internalType: "bool";
|
|
567
|
+
readonly name: "";
|
|
568
|
+
readonly type: "bool";
|
|
569
|
+
}];
|
|
570
|
+
readonly stateMutability: "view";
|
|
571
|
+
readonly type: "function";
|
|
572
|
+
}, {
|
|
573
|
+
readonly inputs: readonly [{
|
|
574
|
+
readonly internalType: "contract ERC20";
|
|
575
|
+
readonly name: "depositAsset";
|
|
576
|
+
readonly type: "address";
|
|
577
|
+
}, {
|
|
578
|
+
readonly internalType: "uint256";
|
|
579
|
+
readonly name: "depositAmount";
|
|
580
|
+
readonly type: "uint256";
|
|
581
|
+
}, {
|
|
582
|
+
readonly internalType: "uint256";
|
|
583
|
+
readonly name: "minimumMint";
|
|
584
|
+
readonly type: "uint256";
|
|
585
|
+
}];
|
|
586
|
+
readonly name: "deposit";
|
|
587
|
+
readonly outputs: readonly [{
|
|
588
|
+
readonly internalType: "uint256";
|
|
589
|
+
readonly name: "shares";
|
|
590
|
+
readonly type: "uint256";
|
|
591
|
+
}];
|
|
592
|
+
readonly stateMutability: "nonpayable";
|
|
593
|
+
readonly type: "function";
|
|
594
|
+
}, {
|
|
595
|
+
readonly inputs: readonly [{
|
|
596
|
+
readonly internalType: "contract ERC20";
|
|
597
|
+
readonly name: "depositAsset";
|
|
598
|
+
readonly type: "address";
|
|
599
|
+
}, {
|
|
600
|
+
readonly internalType: "uint256";
|
|
601
|
+
readonly name: "depositAmount";
|
|
602
|
+
readonly type: "uint256";
|
|
603
|
+
}, {
|
|
604
|
+
readonly internalType: "uint256";
|
|
605
|
+
readonly name: "minimumMint";
|
|
606
|
+
readonly type: "uint256";
|
|
607
|
+
}, {
|
|
608
|
+
readonly internalType: "uint256";
|
|
609
|
+
readonly name: "deadline";
|
|
610
|
+
readonly type: "uint256";
|
|
611
|
+
}, {
|
|
612
|
+
readonly internalType: "uint8";
|
|
613
|
+
readonly name: "v";
|
|
614
|
+
readonly type: "uint8";
|
|
615
|
+
}, {
|
|
616
|
+
readonly internalType: "bytes32";
|
|
617
|
+
readonly name: "r";
|
|
618
|
+
readonly type: "bytes32";
|
|
619
|
+
}, {
|
|
620
|
+
readonly internalType: "bytes32";
|
|
621
|
+
readonly name: "s";
|
|
622
|
+
readonly type: "bytes32";
|
|
623
|
+
}];
|
|
624
|
+
readonly name: "depositWithPermit";
|
|
625
|
+
readonly outputs: readonly [{
|
|
626
|
+
readonly internalType: "uint256";
|
|
627
|
+
readonly name: "shares";
|
|
628
|
+
readonly type: "uint256";
|
|
629
|
+
}];
|
|
630
|
+
readonly stateMutability: "nonpayable";
|
|
631
|
+
readonly type: "function";
|
|
632
|
+
}], "isPaused", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<boolean>;
|
|
633
|
+
};
|
|
634
|
+
estimateGas: {
|
|
635
|
+
deposit: (args: readonly [`0x${string}`, bigint, bigint], options: import('viem').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
|
|
636
|
+
readonly inputs: readonly [];
|
|
637
|
+
readonly name: "accountant";
|
|
638
|
+
readonly outputs: readonly [{
|
|
639
|
+
readonly internalType: "contract AccountantWithRateProviders";
|
|
640
|
+
readonly name: "";
|
|
641
|
+
readonly type: "address";
|
|
642
|
+
}];
|
|
643
|
+
readonly stateMutability: "view";
|
|
644
|
+
readonly type: "function";
|
|
645
|
+
}, {
|
|
646
|
+
readonly inputs: readonly [];
|
|
647
|
+
readonly name: "vault";
|
|
648
|
+
readonly outputs: readonly [{
|
|
649
|
+
readonly internalType: "contract BoringVault";
|
|
650
|
+
readonly name: "";
|
|
651
|
+
readonly type: "address";
|
|
652
|
+
}];
|
|
653
|
+
readonly stateMutability: "view";
|
|
654
|
+
readonly type: "function";
|
|
655
|
+
}, {
|
|
656
|
+
readonly inputs: readonly [];
|
|
657
|
+
readonly name: "shareLockPeriod";
|
|
658
|
+
readonly outputs: readonly [{
|
|
659
|
+
readonly internalType: "uint64";
|
|
660
|
+
readonly name: "";
|
|
661
|
+
readonly type: "uint64";
|
|
662
|
+
}];
|
|
663
|
+
readonly stateMutability: "view";
|
|
664
|
+
readonly type: "function";
|
|
665
|
+
}, {
|
|
666
|
+
readonly inputs: readonly [{
|
|
667
|
+
readonly internalType: "address";
|
|
668
|
+
readonly name: "";
|
|
669
|
+
readonly type: "address";
|
|
670
|
+
}];
|
|
671
|
+
readonly name: "shareUnlockTime";
|
|
672
|
+
readonly outputs: readonly [{
|
|
673
|
+
readonly internalType: "uint256";
|
|
674
|
+
readonly name: "";
|
|
675
|
+
readonly type: "uint256";
|
|
676
|
+
}];
|
|
677
|
+
readonly stateMutability: "view";
|
|
678
|
+
readonly type: "function";
|
|
679
|
+
}, {
|
|
680
|
+
readonly inputs: readonly [];
|
|
681
|
+
readonly name: "isPaused";
|
|
682
|
+
readonly outputs: readonly [{
|
|
683
|
+
readonly internalType: "bool";
|
|
684
|
+
readonly name: "";
|
|
685
|
+
readonly type: "bool";
|
|
686
|
+
}];
|
|
687
|
+
readonly stateMutability: "view";
|
|
688
|
+
readonly type: "function";
|
|
689
|
+
}, {
|
|
690
|
+
readonly inputs: readonly [{
|
|
691
|
+
readonly internalType: "contract ERC20";
|
|
692
|
+
readonly name: "depositAsset";
|
|
693
|
+
readonly type: "address";
|
|
694
|
+
}, {
|
|
695
|
+
readonly internalType: "uint256";
|
|
696
|
+
readonly name: "depositAmount";
|
|
697
|
+
readonly type: "uint256";
|
|
698
|
+
}, {
|
|
699
|
+
readonly internalType: "uint256";
|
|
700
|
+
readonly name: "minimumMint";
|
|
701
|
+
readonly type: "uint256";
|
|
702
|
+
}];
|
|
703
|
+
readonly name: "deposit";
|
|
704
|
+
readonly outputs: readonly [{
|
|
705
|
+
readonly internalType: "uint256";
|
|
706
|
+
readonly name: "shares";
|
|
707
|
+
readonly type: "uint256";
|
|
708
|
+
}];
|
|
709
|
+
readonly stateMutability: "nonpayable";
|
|
710
|
+
readonly type: "function";
|
|
711
|
+
}, {
|
|
712
|
+
readonly inputs: readonly [{
|
|
713
|
+
readonly internalType: "contract ERC20";
|
|
714
|
+
readonly name: "depositAsset";
|
|
715
|
+
readonly type: "address";
|
|
716
|
+
}, {
|
|
717
|
+
readonly internalType: "uint256";
|
|
718
|
+
readonly name: "depositAmount";
|
|
719
|
+
readonly type: "uint256";
|
|
720
|
+
}, {
|
|
721
|
+
readonly internalType: "uint256";
|
|
722
|
+
readonly name: "minimumMint";
|
|
723
|
+
readonly type: "uint256";
|
|
724
|
+
}, {
|
|
725
|
+
readonly internalType: "uint256";
|
|
726
|
+
readonly name: "deadline";
|
|
727
|
+
readonly type: "uint256";
|
|
728
|
+
}, {
|
|
729
|
+
readonly internalType: "uint8";
|
|
730
|
+
readonly name: "v";
|
|
731
|
+
readonly type: "uint8";
|
|
732
|
+
}, {
|
|
733
|
+
readonly internalType: "bytes32";
|
|
734
|
+
readonly name: "r";
|
|
735
|
+
readonly type: "bytes32";
|
|
736
|
+
}, {
|
|
737
|
+
readonly internalType: "bytes32";
|
|
738
|
+
readonly name: "s";
|
|
739
|
+
readonly type: "bytes32";
|
|
740
|
+
}];
|
|
741
|
+
readonly name: "depositWithPermit";
|
|
742
|
+
readonly outputs: readonly [{
|
|
743
|
+
readonly internalType: "uint256";
|
|
744
|
+
readonly name: "shares";
|
|
745
|
+
readonly type: "uint256";
|
|
746
|
+
}];
|
|
747
|
+
readonly stateMutability: "nonpayable";
|
|
748
|
+
readonly type: "function";
|
|
749
|
+
}], "deposit", readonly [`0x${string}`, bigint, bigint], ViemChain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<import('viem').EstimateContractGasReturnType>;
|
|
750
|
+
depositWithPermit: (args: readonly [`0x${string}`, bigint, bigint, bigint, number, `0x${string}`, `0x${string}`], options: import('viem').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
|
|
751
|
+
readonly inputs: readonly [];
|
|
752
|
+
readonly name: "accountant";
|
|
753
|
+
readonly outputs: readonly [{
|
|
754
|
+
readonly internalType: "contract AccountantWithRateProviders";
|
|
755
|
+
readonly name: "";
|
|
756
|
+
readonly type: "address";
|
|
757
|
+
}];
|
|
758
|
+
readonly stateMutability: "view";
|
|
759
|
+
readonly type: "function";
|
|
760
|
+
}, {
|
|
761
|
+
readonly inputs: readonly [];
|
|
762
|
+
readonly name: "vault";
|
|
763
|
+
readonly outputs: readonly [{
|
|
764
|
+
readonly internalType: "contract BoringVault";
|
|
765
|
+
readonly name: "";
|
|
766
|
+
readonly type: "address";
|
|
767
|
+
}];
|
|
768
|
+
readonly stateMutability: "view";
|
|
769
|
+
readonly type: "function";
|
|
770
|
+
}, {
|
|
771
|
+
readonly inputs: readonly [];
|
|
772
|
+
readonly name: "shareLockPeriod";
|
|
773
|
+
readonly outputs: readonly [{
|
|
774
|
+
readonly internalType: "uint64";
|
|
775
|
+
readonly name: "";
|
|
776
|
+
readonly type: "uint64";
|
|
777
|
+
}];
|
|
778
|
+
readonly stateMutability: "view";
|
|
779
|
+
readonly type: "function";
|
|
780
|
+
}, {
|
|
781
|
+
readonly inputs: readonly [{
|
|
782
|
+
readonly internalType: "address";
|
|
783
|
+
readonly name: "";
|
|
784
|
+
readonly type: "address";
|
|
785
|
+
}];
|
|
786
|
+
readonly name: "shareUnlockTime";
|
|
787
|
+
readonly outputs: readonly [{
|
|
788
|
+
readonly internalType: "uint256";
|
|
789
|
+
readonly name: "";
|
|
790
|
+
readonly type: "uint256";
|
|
791
|
+
}];
|
|
792
|
+
readonly stateMutability: "view";
|
|
793
|
+
readonly type: "function";
|
|
794
|
+
}, {
|
|
795
|
+
readonly inputs: readonly [];
|
|
796
|
+
readonly name: "isPaused";
|
|
797
|
+
readonly outputs: readonly [{
|
|
798
|
+
readonly internalType: "bool";
|
|
799
|
+
readonly name: "";
|
|
800
|
+
readonly type: "bool";
|
|
801
|
+
}];
|
|
802
|
+
readonly stateMutability: "view";
|
|
803
|
+
readonly type: "function";
|
|
804
|
+
}, {
|
|
805
|
+
readonly inputs: readonly [{
|
|
806
|
+
readonly internalType: "contract ERC20";
|
|
807
|
+
readonly name: "depositAsset";
|
|
808
|
+
readonly type: "address";
|
|
809
|
+
}, {
|
|
810
|
+
readonly internalType: "uint256";
|
|
811
|
+
readonly name: "depositAmount";
|
|
812
|
+
readonly type: "uint256";
|
|
813
|
+
}, {
|
|
814
|
+
readonly internalType: "uint256";
|
|
815
|
+
readonly name: "minimumMint";
|
|
816
|
+
readonly type: "uint256";
|
|
817
|
+
}];
|
|
818
|
+
readonly name: "deposit";
|
|
819
|
+
readonly outputs: readonly [{
|
|
820
|
+
readonly internalType: "uint256";
|
|
821
|
+
readonly name: "shares";
|
|
822
|
+
readonly type: "uint256";
|
|
823
|
+
}];
|
|
824
|
+
readonly stateMutability: "nonpayable";
|
|
825
|
+
readonly type: "function";
|
|
826
|
+
}, {
|
|
827
|
+
readonly inputs: readonly [{
|
|
828
|
+
readonly internalType: "contract ERC20";
|
|
829
|
+
readonly name: "depositAsset";
|
|
830
|
+
readonly type: "address";
|
|
831
|
+
}, {
|
|
832
|
+
readonly internalType: "uint256";
|
|
833
|
+
readonly name: "depositAmount";
|
|
834
|
+
readonly type: "uint256";
|
|
835
|
+
}, {
|
|
836
|
+
readonly internalType: "uint256";
|
|
837
|
+
readonly name: "minimumMint";
|
|
838
|
+
readonly type: "uint256";
|
|
839
|
+
}, {
|
|
840
|
+
readonly internalType: "uint256";
|
|
841
|
+
readonly name: "deadline";
|
|
842
|
+
readonly type: "uint256";
|
|
843
|
+
}, {
|
|
844
|
+
readonly internalType: "uint8";
|
|
845
|
+
readonly name: "v";
|
|
846
|
+
readonly type: "uint8";
|
|
847
|
+
}, {
|
|
848
|
+
readonly internalType: "bytes32";
|
|
849
|
+
readonly name: "r";
|
|
850
|
+
readonly type: "bytes32";
|
|
851
|
+
}, {
|
|
852
|
+
readonly internalType: "bytes32";
|
|
853
|
+
readonly name: "s";
|
|
854
|
+
readonly type: "bytes32";
|
|
855
|
+
}];
|
|
856
|
+
readonly name: "depositWithPermit";
|
|
857
|
+
readonly outputs: readonly [{
|
|
858
|
+
readonly internalType: "uint256";
|
|
859
|
+
readonly name: "shares";
|
|
860
|
+
readonly type: "uint256";
|
|
861
|
+
}];
|
|
862
|
+
readonly stateMutability: "nonpayable";
|
|
863
|
+
readonly type: "function";
|
|
864
|
+
}], "depositWithPermit", readonly [`0x${string}`, bigint, bigint, bigint, number, `0x${string}`, `0x${string}`], ViemChain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<import('viem').EstimateContractGasReturnType>;
|
|
865
|
+
} & {
|
|
866
|
+
deposit: (args: readonly [`0x${string}`, bigint, bigint], options: import('viem').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
|
|
867
|
+
readonly inputs: readonly [];
|
|
868
|
+
readonly name: "accountant";
|
|
869
|
+
readonly outputs: readonly [{
|
|
870
|
+
readonly internalType: "contract AccountantWithRateProviders";
|
|
871
|
+
readonly name: "";
|
|
872
|
+
readonly type: "address";
|
|
873
|
+
}];
|
|
874
|
+
readonly stateMutability: "view";
|
|
875
|
+
readonly type: "function";
|
|
876
|
+
}, {
|
|
877
|
+
readonly inputs: readonly [];
|
|
878
|
+
readonly name: "vault";
|
|
879
|
+
readonly outputs: readonly [{
|
|
880
|
+
readonly internalType: "contract BoringVault";
|
|
881
|
+
readonly name: "";
|
|
882
|
+
readonly type: "address";
|
|
883
|
+
}];
|
|
884
|
+
readonly stateMutability: "view";
|
|
885
|
+
readonly type: "function";
|
|
886
|
+
}, {
|
|
887
|
+
readonly inputs: readonly [];
|
|
888
|
+
readonly name: "shareLockPeriod";
|
|
889
|
+
readonly outputs: readonly [{
|
|
890
|
+
readonly internalType: "uint64";
|
|
891
|
+
readonly name: "";
|
|
892
|
+
readonly type: "uint64";
|
|
893
|
+
}];
|
|
894
|
+
readonly stateMutability: "view";
|
|
895
|
+
readonly type: "function";
|
|
896
|
+
}, {
|
|
897
|
+
readonly inputs: readonly [{
|
|
898
|
+
readonly internalType: "address";
|
|
899
|
+
readonly name: "";
|
|
900
|
+
readonly type: "address";
|
|
901
|
+
}];
|
|
902
|
+
readonly name: "shareUnlockTime";
|
|
903
|
+
readonly outputs: readonly [{
|
|
904
|
+
readonly internalType: "uint256";
|
|
905
|
+
readonly name: "";
|
|
906
|
+
readonly type: "uint256";
|
|
907
|
+
}];
|
|
908
|
+
readonly stateMutability: "view";
|
|
909
|
+
readonly type: "function";
|
|
910
|
+
}, {
|
|
911
|
+
readonly inputs: readonly [];
|
|
912
|
+
readonly name: "isPaused";
|
|
913
|
+
readonly outputs: readonly [{
|
|
914
|
+
readonly internalType: "bool";
|
|
915
|
+
readonly name: "";
|
|
916
|
+
readonly type: "bool";
|
|
917
|
+
}];
|
|
918
|
+
readonly stateMutability: "view";
|
|
919
|
+
readonly type: "function";
|
|
920
|
+
}, {
|
|
921
|
+
readonly inputs: readonly [{
|
|
922
|
+
readonly internalType: "contract ERC20";
|
|
923
|
+
readonly name: "depositAsset";
|
|
924
|
+
readonly type: "address";
|
|
925
|
+
}, {
|
|
926
|
+
readonly internalType: "uint256";
|
|
927
|
+
readonly name: "depositAmount";
|
|
928
|
+
readonly type: "uint256";
|
|
929
|
+
}, {
|
|
930
|
+
readonly internalType: "uint256";
|
|
931
|
+
readonly name: "minimumMint";
|
|
932
|
+
readonly type: "uint256";
|
|
933
|
+
}];
|
|
934
|
+
readonly name: "deposit";
|
|
935
|
+
readonly outputs: readonly [{
|
|
936
|
+
readonly internalType: "uint256";
|
|
937
|
+
readonly name: "shares";
|
|
938
|
+
readonly type: "uint256";
|
|
939
|
+
}];
|
|
940
|
+
readonly stateMutability: "nonpayable";
|
|
941
|
+
readonly type: "function";
|
|
942
|
+
}, {
|
|
943
|
+
readonly inputs: readonly [{
|
|
944
|
+
readonly internalType: "contract ERC20";
|
|
945
|
+
readonly name: "depositAsset";
|
|
946
|
+
readonly type: "address";
|
|
947
|
+
}, {
|
|
948
|
+
readonly internalType: "uint256";
|
|
949
|
+
readonly name: "depositAmount";
|
|
950
|
+
readonly type: "uint256";
|
|
951
|
+
}, {
|
|
952
|
+
readonly internalType: "uint256";
|
|
953
|
+
readonly name: "minimumMint";
|
|
954
|
+
readonly type: "uint256";
|
|
955
|
+
}, {
|
|
956
|
+
readonly internalType: "uint256";
|
|
957
|
+
readonly name: "deadline";
|
|
958
|
+
readonly type: "uint256";
|
|
959
|
+
}, {
|
|
960
|
+
readonly internalType: "uint8";
|
|
961
|
+
readonly name: "v";
|
|
962
|
+
readonly type: "uint8";
|
|
963
|
+
}, {
|
|
964
|
+
readonly internalType: "bytes32";
|
|
965
|
+
readonly name: "r";
|
|
966
|
+
readonly type: "bytes32";
|
|
967
|
+
}, {
|
|
968
|
+
readonly internalType: "bytes32";
|
|
969
|
+
readonly name: "s";
|
|
970
|
+
readonly type: "bytes32";
|
|
971
|
+
}];
|
|
972
|
+
readonly name: "depositWithPermit";
|
|
973
|
+
readonly outputs: readonly [{
|
|
974
|
+
readonly internalType: "uint256";
|
|
975
|
+
readonly name: "shares";
|
|
976
|
+
readonly type: "uint256";
|
|
977
|
+
}];
|
|
978
|
+
readonly stateMutability: "nonpayable";
|
|
979
|
+
readonly type: "function";
|
|
980
|
+
}], "deposit", readonly [`0x${string}`, bigint, bigint], ViemChain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<import('viem').EstimateContractGasReturnType>;
|
|
981
|
+
depositWithPermit: (args: readonly [`0x${string}`, bigint, bigint, bigint, number, `0x${string}`, `0x${string}`], options: import('viem').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
|
|
982
|
+
readonly inputs: readonly [];
|
|
983
|
+
readonly name: "accountant";
|
|
984
|
+
readonly outputs: readonly [{
|
|
985
|
+
readonly internalType: "contract AccountantWithRateProviders";
|
|
986
|
+
readonly name: "";
|
|
987
|
+
readonly type: "address";
|
|
988
|
+
}];
|
|
989
|
+
readonly stateMutability: "view";
|
|
990
|
+
readonly type: "function";
|
|
991
|
+
}, {
|
|
992
|
+
readonly inputs: readonly [];
|
|
993
|
+
readonly name: "vault";
|
|
994
|
+
readonly outputs: readonly [{
|
|
995
|
+
readonly internalType: "contract BoringVault";
|
|
996
|
+
readonly name: "";
|
|
997
|
+
readonly type: "address";
|
|
998
|
+
}];
|
|
999
|
+
readonly stateMutability: "view";
|
|
1000
|
+
readonly type: "function";
|
|
1001
|
+
}, {
|
|
1002
|
+
readonly inputs: readonly [];
|
|
1003
|
+
readonly name: "shareLockPeriod";
|
|
1004
|
+
readonly outputs: readonly [{
|
|
1005
|
+
readonly internalType: "uint64";
|
|
1006
|
+
readonly name: "";
|
|
1007
|
+
readonly type: "uint64";
|
|
1008
|
+
}];
|
|
1009
|
+
readonly stateMutability: "view";
|
|
1010
|
+
readonly type: "function";
|
|
1011
|
+
}, {
|
|
1012
|
+
readonly inputs: readonly [{
|
|
1013
|
+
readonly internalType: "address";
|
|
1014
|
+
readonly name: "";
|
|
1015
|
+
readonly type: "address";
|
|
1016
|
+
}];
|
|
1017
|
+
readonly name: "shareUnlockTime";
|
|
1018
|
+
readonly outputs: readonly [{
|
|
1019
|
+
readonly internalType: "uint256";
|
|
1020
|
+
readonly name: "";
|
|
1021
|
+
readonly type: "uint256";
|
|
1022
|
+
}];
|
|
1023
|
+
readonly stateMutability: "view";
|
|
1024
|
+
readonly type: "function";
|
|
1025
|
+
}, {
|
|
1026
|
+
readonly inputs: readonly [];
|
|
1027
|
+
readonly name: "isPaused";
|
|
1028
|
+
readonly outputs: readonly [{
|
|
1029
|
+
readonly internalType: "bool";
|
|
1030
|
+
readonly name: "";
|
|
1031
|
+
readonly type: "bool";
|
|
1032
|
+
}];
|
|
1033
|
+
readonly stateMutability: "view";
|
|
1034
|
+
readonly type: "function";
|
|
1035
|
+
}, {
|
|
1036
|
+
readonly inputs: readonly [{
|
|
1037
|
+
readonly internalType: "contract ERC20";
|
|
1038
|
+
readonly name: "depositAsset";
|
|
1039
|
+
readonly type: "address";
|
|
1040
|
+
}, {
|
|
1041
|
+
readonly internalType: "uint256";
|
|
1042
|
+
readonly name: "depositAmount";
|
|
1043
|
+
readonly type: "uint256";
|
|
1044
|
+
}, {
|
|
1045
|
+
readonly internalType: "uint256";
|
|
1046
|
+
readonly name: "minimumMint";
|
|
1047
|
+
readonly type: "uint256";
|
|
1048
|
+
}];
|
|
1049
|
+
readonly name: "deposit";
|
|
1050
|
+
readonly outputs: readonly [{
|
|
1051
|
+
readonly internalType: "uint256";
|
|
1052
|
+
readonly name: "shares";
|
|
1053
|
+
readonly type: "uint256";
|
|
1054
|
+
}];
|
|
1055
|
+
readonly stateMutability: "nonpayable";
|
|
1056
|
+
readonly type: "function";
|
|
1057
|
+
}, {
|
|
1058
|
+
readonly inputs: readonly [{
|
|
1059
|
+
readonly internalType: "contract ERC20";
|
|
1060
|
+
readonly name: "depositAsset";
|
|
1061
|
+
readonly type: "address";
|
|
1062
|
+
}, {
|
|
1063
|
+
readonly internalType: "uint256";
|
|
1064
|
+
readonly name: "depositAmount";
|
|
1065
|
+
readonly type: "uint256";
|
|
1066
|
+
}, {
|
|
1067
|
+
readonly internalType: "uint256";
|
|
1068
|
+
readonly name: "minimumMint";
|
|
1069
|
+
readonly type: "uint256";
|
|
1070
|
+
}, {
|
|
1071
|
+
readonly internalType: "uint256";
|
|
1072
|
+
readonly name: "deadline";
|
|
1073
|
+
readonly type: "uint256";
|
|
1074
|
+
}, {
|
|
1075
|
+
readonly internalType: "uint8";
|
|
1076
|
+
readonly name: "v";
|
|
1077
|
+
readonly type: "uint8";
|
|
1078
|
+
}, {
|
|
1079
|
+
readonly internalType: "bytes32";
|
|
1080
|
+
readonly name: "r";
|
|
1081
|
+
readonly type: "bytes32";
|
|
1082
|
+
}, {
|
|
1083
|
+
readonly internalType: "bytes32";
|
|
1084
|
+
readonly name: "s";
|
|
1085
|
+
readonly type: "bytes32";
|
|
1086
|
+
}];
|
|
1087
|
+
readonly name: "depositWithPermit";
|
|
1088
|
+
readonly outputs: readonly [{
|
|
1089
|
+
readonly internalType: "uint256";
|
|
1090
|
+
readonly name: "shares";
|
|
1091
|
+
readonly type: "uint256";
|
|
1092
|
+
}];
|
|
1093
|
+
readonly stateMutability: "nonpayable";
|
|
1094
|
+
readonly type: "function";
|
|
1095
|
+
}], "depositWithPermit", readonly [`0x${string}`, bigint, bigint, bigint, number, `0x${string}`, `0x${string}`], ViemChain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<import('viem').EstimateContractGasReturnType>;
|
|
1096
|
+
};
|
|
1097
|
+
simulate: {
|
|
1098
|
+
deposit: <chainOverride extends ViemChain | undefined = undefined, accountOverride extends import('viem').Account | Address | undefined = undefined>(args: readonly [`0x${string}`, bigint, bigint], options?: Omit<import('viem').SimulateContractParameters<readonly [{
|
|
1099
|
+
readonly inputs: readonly [];
|
|
1100
|
+
readonly name: "accountant";
|
|
1101
|
+
readonly outputs: readonly [{
|
|
1102
|
+
readonly internalType: "contract AccountantWithRateProviders";
|
|
1103
|
+
readonly name: "";
|
|
1104
|
+
readonly type: "address";
|
|
1105
|
+
}];
|
|
1106
|
+
readonly stateMutability: "view";
|
|
1107
|
+
readonly type: "function";
|
|
1108
|
+
}, {
|
|
1109
|
+
readonly inputs: readonly [];
|
|
1110
|
+
readonly name: "vault";
|
|
1111
|
+
readonly outputs: readonly [{
|
|
1112
|
+
readonly internalType: "contract BoringVault";
|
|
1113
|
+
readonly name: "";
|
|
1114
|
+
readonly type: "address";
|
|
1115
|
+
}];
|
|
1116
|
+
readonly stateMutability: "view";
|
|
1117
|
+
readonly type: "function";
|
|
1118
|
+
}, {
|
|
1119
|
+
readonly inputs: readonly [];
|
|
1120
|
+
readonly name: "shareLockPeriod";
|
|
1121
|
+
readonly outputs: readonly [{
|
|
1122
|
+
readonly internalType: "uint64";
|
|
1123
|
+
readonly name: "";
|
|
1124
|
+
readonly type: "uint64";
|
|
1125
|
+
}];
|
|
1126
|
+
readonly stateMutability: "view";
|
|
1127
|
+
readonly type: "function";
|
|
1128
|
+
}, {
|
|
1129
|
+
readonly inputs: readonly [{
|
|
1130
|
+
readonly internalType: "address";
|
|
1131
|
+
readonly name: "";
|
|
1132
|
+
readonly type: "address";
|
|
1133
|
+
}];
|
|
1134
|
+
readonly name: "shareUnlockTime";
|
|
1135
|
+
readonly outputs: readonly [{
|
|
1136
|
+
readonly internalType: "uint256";
|
|
1137
|
+
readonly name: "";
|
|
1138
|
+
readonly type: "uint256";
|
|
1139
|
+
}];
|
|
1140
|
+
readonly stateMutability: "view";
|
|
1141
|
+
readonly type: "function";
|
|
1142
|
+
}, {
|
|
1143
|
+
readonly inputs: readonly [];
|
|
1144
|
+
readonly name: "isPaused";
|
|
1145
|
+
readonly outputs: readonly [{
|
|
1146
|
+
readonly internalType: "bool";
|
|
1147
|
+
readonly name: "";
|
|
1148
|
+
readonly type: "bool";
|
|
1149
|
+
}];
|
|
1150
|
+
readonly stateMutability: "view";
|
|
1151
|
+
readonly type: "function";
|
|
1152
|
+
}, {
|
|
1153
|
+
readonly inputs: readonly [{
|
|
1154
|
+
readonly internalType: "contract ERC20";
|
|
1155
|
+
readonly name: "depositAsset";
|
|
1156
|
+
readonly type: "address";
|
|
1157
|
+
}, {
|
|
1158
|
+
readonly internalType: "uint256";
|
|
1159
|
+
readonly name: "depositAmount";
|
|
1160
|
+
readonly type: "uint256";
|
|
1161
|
+
}, {
|
|
1162
|
+
readonly internalType: "uint256";
|
|
1163
|
+
readonly name: "minimumMint";
|
|
1164
|
+
readonly type: "uint256";
|
|
1165
|
+
}];
|
|
1166
|
+
readonly name: "deposit";
|
|
1167
|
+
readonly outputs: readonly [{
|
|
1168
|
+
readonly internalType: "uint256";
|
|
1169
|
+
readonly name: "shares";
|
|
1170
|
+
readonly type: "uint256";
|
|
1171
|
+
}];
|
|
1172
|
+
readonly stateMutability: "nonpayable";
|
|
1173
|
+
readonly type: "function";
|
|
1174
|
+
}, {
|
|
1175
|
+
readonly inputs: readonly [{
|
|
1176
|
+
readonly internalType: "contract ERC20";
|
|
1177
|
+
readonly name: "depositAsset";
|
|
1178
|
+
readonly type: "address";
|
|
1179
|
+
}, {
|
|
1180
|
+
readonly internalType: "uint256";
|
|
1181
|
+
readonly name: "depositAmount";
|
|
1182
|
+
readonly type: "uint256";
|
|
1183
|
+
}, {
|
|
1184
|
+
readonly internalType: "uint256";
|
|
1185
|
+
readonly name: "minimumMint";
|
|
1186
|
+
readonly type: "uint256";
|
|
1187
|
+
}, {
|
|
1188
|
+
readonly internalType: "uint256";
|
|
1189
|
+
readonly name: "deadline";
|
|
1190
|
+
readonly type: "uint256";
|
|
1191
|
+
}, {
|
|
1192
|
+
readonly internalType: "uint8";
|
|
1193
|
+
readonly name: "v";
|
|
1194
|
+
readonly type: "uint8";
|
|
1195
|
+
}, {
|
|
1196
|
+
readonly internalType: "bytes32";
|
|
1197
|
+
readonly name: "r";
|
|
1198
|
+
readonly type: "bytes32";
|
|
1199
|
+
}, {
|
|
1200
|
+
readonly internalType: "bytes32";
|
|
1201
|
+
readonly name: "s";
|
|
1202
|
+
readonly type: "bytes32";
|
|
1203
|
+
}];
|
|
1204
|
+
readonly name: "depositWithPermit";
|
|
1205
|
+
readonly outputs: readonly [{
|
|
1206
|
+
readonly internalType: "uint256";
|
|
1207
|
+
readonly name: "shares";
|
|
1208
|
+
readonly type: "uint256";
|
|
1209
|
+
}];
|
|
1210
|
+
readonly stateMutability: "nonpayable";
|
|
1211
|
+
readonly type: "function";
|
|
1212
|
+
}], "deposit", readonly [`0x${string}`, bigint, bigint], ViemChain | undefined, chainOverride, accountOverride>, "address" | "abi" | "args" | "functionName"> | undefined) => Promise<import('viem').SimulateContractReturnType<readonly [{
|
|
1213
|
+
readonly inputs: readonly [];
|
|
1214
|
+
readonly name: "accountant";
|
|
1215
|
+
readonly outputs: readonly [{
|
|
1216
|
+
readonly internalType: "contract AccountantWithRateProviders";
|
|
1217
|
+
readonly name: "";
|
|
1218
|
+
readonly type: "address";
|
|
1219
|
+
}];
|
|
1220
|
+
readonly stateMutability: "view";
|
|
1221
|
+
readonly type: "function";
|
|
1222
|
+
}, {
|
|
1223
|
+
readonly inputs: readonly [];
|
|
1224
|
+
readonly name: "vault";
|
|
1225
|
+
readonly outputs: readonly [{
|
|
1226
|
+
readonly internalType: "contract BoringVault";
|
|
1227
|
+
readonly name: "";
|
|
1228
|
+
readonly type: "address";
|
|
1229
|
+
}];
|
|
1230
|
+
readonly stateMutability: "view";
|
|
1231
|
+
readonly type: "function";
|
|
1232
|
+
}, {
|
|
1233
|
+
readonly inputs: readonly [];
|
|
1234
|
+
readonly name: "shareLockPeriod";
|
|
1235
|
+
readonly outputs: readonly [{
|
|
1236
|
+
readonly internalType: "uint64";
|
|
1237
|
+
readonly name: "";
|
|
1238
|
+
readonly type: "uint64";
|
|
1239
|
+
}];
|
|
1240
|
+
readonly stateMutability: "view";
|
|
1241
|
+
readonly type: "function";
|
|
1242
|
+
}, {
|
|
1243
|
+
readonly inputs: readonly [{
|
|
1244
|
+
readonly internalType: "address";
|
|
1245
|
+
readonly name: "";
|
|
1246
|
+
readonly type: "address";
|
|
1247
|
+
}];
|
|
1248
|
+
readonly name: "shareUnlockTime";
|
|
1249
|
+
readonly outputs: readonly [{
|
|
1250
|
+
readonly internalType: "uint256";
|
|
1251
|
+
readonly name: "";
|
|
1252
|
+
readonly type: "uint256";
|
|
1253
|
+
}];
|
|
1254
|
+
readonly stateMutability: "view";
|
|
1255
|
+
readonly type: "function";
|
|
1256
|
+
}, {
|
|
1257
|
+
readonly inputs: readonly [];
|
|
1258
|
+
readonly name: "isPaused";
|
|
1259
|
+
readonly outputs: readonly [{
|
|
1260
|
+
readonly internalType: "bool";
|
|
1261
|
+
readonly name: "";
|
|
1262
|
+
readonly type: "bool";
|
|
1263
|
+
}];
|
|
1264
|
+
readonly stateMutability: "view";
|
|
1265
|
+
readonly type: "function";
|
|
1266
|
+
}, {
|
|
1267
|
+
readonly inputs: readonly [{
|
|
1268
|
+
readonly internalType: "contract ERC20";
|
|
1269
|
+
readonly name: "depositAsset";
|
|
1270
|
+
readonly type: "address";
|
|
1271
|
+
}, {
|
|
1272
|
+
readonly internalType: "uint256";
|
|
1273
|
+
readonly name: "depositAmount";
|
|
1274
|
+
readonly type: "uint256";
|
|
1275
|
+
}, {
|
|
1276
|
+
readonly internalType: "uint256";
|
|
1277
|
+
readonly name: "minimumMint";
|
|
1278
|
+
readonly type: "uint256";
|
|
1279
|
+
}];
|
|
1280
|
+
readonly name: "deposit";
|
|
1281
|
+
readonly outputs: readonly [{
|
|
1282
|
+
readonly internalType: "uint256";
|
|
1283
|
+
readonly name: "shares";
|
|
1284
|
+
readonly type: "uint256";
|
|
1285
|
+
}];
|
|
1286
|
+
readonly stateMutability: "nonpayable";
|
|
1287
|
+
readonly type: "function";
|
|
1288
|
+
}, {
|
|
1289
|
+
readonly inputs: readonly [{
|
|
1290
|
+
readonly internalType: "contract ERC20";
|
|
1291
|
+
readonly name: "depositAsset";
|
|
1292
|
+
readonly type: "address";
|
|
1293
|
+
}, {
|
|
1294
|
+
readonly internalType: "uint256";
|
|
1295
|
+
readonly name: "depositAmount";
|
|
1296
|
+
readonly type: "uint256";
|
|
1297
|
+
}, {
|
|
1298
|
+
readonly internalType: "uint256";
|
|
1299
|
+
readonly name: "minimumMint";
|
|
1300
|
+
readonly type: "uint256";
|
|
1301
|
+
}, {
|
|
1302
|
+
readonly internalType: "uint256";
|
|
1303
|
+
readonly name: "deadline";
|
|
1304
|
+
readonly type: "uint256";
|
|
1305
|
+
}, {
|
|
1306
|
+
readonly internalType: "uint8";
|
|
1307
|
+
readonly name: "v";
|
|
1308
|
+
readonly type: "uint8";
|
|
1309
|
+
}, {
|
|
1310
|
+
readonly internalType: "bytes32";
|
|
1311
|
+
readonly name: "r";
|
|
1312
|
+
readonly type: "bytes32";
|
|
1313
|
+
}, {
|
|
1314
|
+
readonly internalType: "bytes32";
|
|
1315
|
+
readonly name: "s";
|
|
1316
|
+
readonly type: "bytes32";
|
|
1317
|
+
}];
|
|
1318
|
+
readonly name: "depositWithPermit";
|
|
1319
|
+
readonly outputs: readonly [{
|
|
1320
|
+
readonly internalType: "uint256";
|
|
1321
|
+
readonly name: "shares";
|
|
1322
|
+
readonly type: "uint256";
|
|
1323
|
+
}];
|
|
1324
|
+
readonly stateMutability: "nonpayable";
|
|
1325
|
+
readonly type: "function";
|
|
1326
|
+
}], "deposit", readonly [`0x${string}`, bigint, bigint], ViemChain | undefined, import('viem').Account | undefined, chainOverride, accountOverride>>;
|
|
1327
|
+
depositWithPermit: <chainOverride extends ViemChain | undefined = undefined, accountOverride extends import('viem').Account | Address | undefined = undefined>(args: readonly [`0x${string}`, bigint, bigint, bigint, number, `0x${string}`, `0x${string}`], options?: Omit<import('viem').SimulateContractParameters<readonly [{
|
|
1328
|
+
readonly inputs: readonly [];
|
|
1329
|
+
readonly name: "accountant";
|
|
1330
|
+
readonly outputs: readonly [{
|
|
1331
|
+
readonly internalType: "contract AccountantWithRateProviders";
|
|
1332
|
+
readonly name: "";
|
|
1333
|
+
readonly type: "address";
|
|
1334
|
+
}];
|
|
1335
|
+
readonly stateMutability: "view";
|
|
1336
|
+
readonly type: "function";
|
|
1337
|
+
}, {
|
|
1338
|
+
readonly inputs: readonly [];
|
|
1339
|
+
readonly name: "vault";
|
|
1340
|
+
readonly outputs: readonly [{
|
|
1341
|
+
readonly internalType: "contract BoringVault";
|
|
1342
|
+
readonly name: "";
|
|
1343
|
+
readonly type: "address";
|
|
1344
|
+
}];
|
|
1345
|
+
readonly stateMutability: "view";
|
|
1346
|
+
readonly type: "function";
|
|
1347
|
+
}, {
|
|
1348
|
+
readonly inputs: readonly [];
|
|
1349
|
+
readonly name: "shareLockPeriod";
|
|
1350
|
+
readonly outputs: readonly [{
|
|
1351
|
+
readonly internalType: "uint64";
|
|
1352
|
+
readonly name: "";
|
|
1353
|
+
readonly type: "uint64";
|
|
1354
|
+
}];
|
|
1355
|
+
readonly stateMutability: "view";
|
|
1356
|
+
readonly type: "function";
|
|
1357
|
+
}, {
|
|
1358
|
+
readonly inputs: readonly [{
|
|
1359
|
+
readonly internalType: "address";
|
|
1360
|
+
readonly name: "";
|
|
1361
|
+
readonly type: "address";
|
|
1362
|
+
}];
|
|
1363
|
+
readonly name: "shareUnlockTime";
|
|
1364
|
+
readonly outputs: readonly [{
|
|
1365
|
+
readonly internalType: "uint256";
|
|
1366
|
+
readonly name: "";
|
|
1367
|
+
readonly type: "uint256";
|
|
1368
|
+
}];
|
|
1369
|
+
readonly stateMutability: "view";
|
|
1370
|
+
readonly type: "function";
|
|
1371
|
+
}, {
|
|
1372
|
+
readonly inputs: readonly [];
|
|
1373
|
+
readonly name: "isPaused";
|
|
1374
|
+
readonly outputs: readonly [{
|
|
1375
|
+
readonly internalType: "bool";
|
|
1376
|
+
readonly name: "";
|
|
1377
|
+
readonly type: "bool";
|
|
1378
|
+
}];
|
|
1379
|
+
readonly stateMutability: "view";
|
|
1380
|
+
readonly type: "function";
|
|
1381
|
+
}, {
|
|
1382
|
+
readonly inputs: readonly [{
|
|
1383
|
+
readonly internalType: "contract ERC20";
|
|
1384
|
+
readonly name: "depositAsset";
|
|
1385
|
+
readonly type: "address";
|
|
1386
|
+
}, {
|
|
1387
|
+
readonly internalType: "uint256";
|
|
1388
|
+
readonly name: "depositAmount";
|
|
1389
|
+
readonly type: "uint256";
|
|
1390
|
+
}, {
|
|
1391
|
+
readonly internalType: "uint256";
|
|
1392
|
+
readonly name: "minimumMint";
|
|
1393
|
+
readonly type: "uint256";
|
|
1394
|
+
}];
|
|
1395
|
+
readonly name: "deposit";
|
|
1396
|
+
readonly outputs: readonly [{
|
|
1397
|
+
readonly internalType: "uint256";
|
|
1398
|
+
readonly name: "shares";
|
|
1399
|
+
readonly type: "uint256";
|
|
1400
|
+
}];
|
|
1401
|
+
readonly stateMutability: "nonpayable";
|
|
1402
|
+
readonly type: "function";
|
|
1403
|
+
}, {
|
|
1404
|
+
readonly inputs: readonly [{
|
|
1405
|
+
readonly internalType: "contract ERC20";
|
|
1406
|
+
readonly name: "depositAsset";
|
|
1407
|
+
readonly type: "address";
|
|
1408
|
+
}, {
|
|
1409
|
+
readonly internalType: "uint256";
|
|
1410
|
+
readonly name: "depositAmount";
|
|
1411
|
+
readonly type: "uint256";
|
|
1412
|
+
}, {
|
|
1413
|
+
readonly internalType: "uint256";
|
|
1414
|
+
readonly name: "minimumMint";
|
|
1415
|
+
readonly type: "uint256";
|
|
1416
|
+
}, {
|
|
1417
|
+
readonly internalType: "uint256";
|
|
1418
|
+
readonly name: "deadline";
|
|
1419
|
+
readonly type: "uint256";
|
|
1420
|
+
}, {
|
|
1421
|
+
readonly internalType: "uint8";
|
|
1422
|
+
readonly name: "v";
|
|
1423
|
+
readonly type: "uint8";
|
|
1424
|
+
}, {
|
|
1425
|
+
readonly internalType: "bytes32";
|
|
1426
|
+
readonly name: "r";
|
|
1427
|
+
readonly type: "bytes32";
|
|
1428
|
+
}, {
|
|
1429
|
+
readonly internalType: "bytes32";
|
|
1430
|
+
readonly name: "s";
|
|
1431
|
+
readonly type: "bytes32";
|
|
1432
|
+
}];
|
|
1433
|
+
readonly name: "depositWithPermit";
|
|
1434
|
+
readonly outputs: readonly [{
|
|
1435
|
+
readonly internalType: "uint256";
|
|
1436
|
+
readonly name: "shares";
|
|
1437
|
+
readonly type: "uint256";
|
|
1438
|
+
}];
|
|
1439
|
+
readonly stateMutability: "nonpayable";
|
|
1440
|
+
readonly type: "function";
|
|
1441
|
+
}], "depositWithPermit", readonly [`0x${string}`, bigint, bigint, bigint, number, `0x${string}`, `0x${string}`], ViemChain | undefined, chainOverride, accountOverride>, "address" | "abi" | "args" | "functionName"> | undefined) => Promise<import('viem').SimulateContractReturnType<readonly [{
|
|
1442
|
+
readonly inputs: readonly [];
|
|
1443
|
+
readonly name: "accountant";
|
|
1444
|
+
readonly outputs: readonly [{
|
|
1445
|
+
readonly internalType: "contract AccountantWithRateProviders";
|
|
1446
|
+
readonly name: "";
|
|
1447
|
+
readonly type: "address";
|
|
1448
|
+
}];
|
|
1449
|
+
readonly stateMutability: "view";
|
|
1450
|
+
readonly type: "function";
|
|
1451
|
+
}, {
|
|
1452
|
+
readonly inputs: readonly [];
|
|
1453
|
+
readonly name: "vault";
|
|
1454
|
+
readonly outputs: readonly [{
|
|
1455
|
+
readonly internalType: "contract BoringVault";
|
|
1456
|
+
readonly name: "";
|
|
1457
|
+
readonly type: "address";
|
|
1458
|
+
}];
|
|
1459
|
+
readonly stateMutability: "view";
|
|
1460
|
+
readonly type: "function";
|
|
1461
|
+
}, {
|
|
1462
|
+
readonly inputs: readonly [];
|
|
1463
|
+
readonly name: "shareLockPeriod";
|
|
1464
|
+
readonly outputs: readonly [{
|
|
1465
|
+
readonly internalType: "uint64";
|
|
1466
|
+
readonly name: "";
|
|
1467
|
+
readonly type: "uint64";
|
|
1468
|
+
}];
|
|
1469
|
+
readonly stateMutability: "view";
|
|
1470
|
+
readonly type: "function";
|
|
1471
|
+
}, {
|
|
1472
|
+
readonly inputs: readonly [{
|
|
1473
|
+
readonly internalType: "address";
|
|
1474
|
+
readonly name: "";
|
|
1475
|
+
readonly type: "address";
|
|
1476
|
+
}];
|
|
1477
|
+
readonly name: "shareUnlockTime";
|
|
1478
|
+
readonly outputs: readonly [{
|
|
1479
|
+
readonly internalType: "uint256";
|
|
1480
|
+
readonly name: "";
|
|
1481
|
+
readonly type: "uint256";
|
|
1482
|
+
}];
|
|
1483
|
+
readonly stateMutability: "view";
|
|
1484
|
+
readonly type: "function";
|
|
1485
|
+
}, {
|
|
1486
|
+
readonly inputs: readonly [];
|
|
1487
|
+
readonly name: "isPaused";
|
|
1488
|
+
readonly outputs: readonly [{
|
|
1489
|
+
readonly internalType: "bool";
|
|
1490
|
+
readonly name: "";
|
|
1491
|
+
readonly type: "bool";
|
|
1492
|
+
}];
|
|
1493
|
+
readonly stateMutability: "view";
|
|
1494
|
+
readonly type: "function";
|
|
1495
|
+
}, {
|
|
1496
|
+
readonly inputs: readonly [{
|
|
1497
|
+
readonly internalType: "contract ERC20";
|
|
1498
|
+
readonly name: "depositAsset";
|
|
1499
|
+
readonly type: "address";
|
|
1500
|
+
}, {
|
|
1501
|
+
readonly internalType: "uint256";
|
|
1502
|
+
readonly name: "depositAmount";
|
|
1503
|
+
readonly type: "uint256";
|
|
1504
|
+
}, {
|
|
1505
|
+
readonly internalType: "uint256";
|
|
1506
|
+
readonly name: "minimumMint";
|
|
1507
|
+
readonly type: "uint256";
|
|
1508
|
+
}];
|
|
1509
|
+
readonly name: "deposit";
|
|
1510
|
+
readonly outputs: readonly [{
|
|
1511
|
+
readonly internalType: "uint256";
|
|
1512
|
+
readonly name: "shares";
|
|
1513
|
+
readonly type: "uint256";
|
|
1514
|
+
}];
|
|
1515
|
+
readonly stateMutability: "nonpayable";
|
|
1516
|
+
readonly type: "function";
|
|
1517
|
+
}, {
|
|
1518
|
+
readonly inputs: readonly [{
|
|
1519
|
+
readonly internalType: "contract ERC20";
|
|
1520
|
+
readonly name: "depositAsset";
|
|
1521
|
+
readonly type: "address";
|
|
1522
|
+
}, {
|
|
1523
|
+
readonly internalType: "uint256";
|
|
1524
|
+
readonly name: "depositAmount";
|
|
1525
|
+
readonly type: "uint256";
|
|
1526
|
+
}, {
|
|
1527
|
+
readonly internalType: "uint256";
|
|
1528
|
+
readonly name: "minimumMint";
|
|
1529
|
+
readonly type: "uint256";
|
|
1530
|
+
}, {
|
|
1531
|
+
readonly internalType: "uint256";
|
|
1532
|
+
readonly name: "deadline";
|
|
1533
|
+
readonly type: "uint256";
|
|
1534
|
+
}, {
|
|
1535
|
+
readonly internalType: "uint8";
|
|
1536
|
+
readonly name: "v";
|
|
1537
|
+
readonly type: "uint8";
|
|
1538
|
+
}, {
|
|
1539
|
+
readonly internalType: "bytes32";
|
|
1540
|
+
readonly name: "r";
|
|
1541
|
+
readonly type: "bytes32";
|
|
1542
|
+
}, {
|
|
1543
|
+
readonly internalType: "bytes32";
|
|
1544
|
+
readonly name: "s";
|
|
1545
|
+
readonly type: "bytes32";
|
|
1546
|
+
}];
|
|
1547
|
+
readonly name: "depositWithPermit";
|
|
1548
|
+
readonly outputs: readonly [{
|
|
1549
|
+
readonly internalType: "uint256";
|
|
1550
|
+
readonly name: "shares";
|
|
1551
|
+
readonly type: "uint256";
|
|
1552
|
+
}];
|
|
1553
|
+
readonly stateMutability: "nonpayable";
|
|
1554
|
+
readonly type: "function";
|
|
1555
|
+
}], "depositWithPermit", readonly [`0x${string}`, bigint, bigint, bigint, number, `0x${string}`, `0x${string}`], ViemChain | undefined, import('viem').Account | undefined, chainOverride, accountOverride>>;
|
|
1556
|
+
};
|
|
1557
|
+
write: {
|
|
1558
|
+
deposit: <chainOverride extends ViemChain | undefined, options extends import('viem').UnionOmit<import('viem').WriteContractParameters<readonly [{
|
|
1559
|
+
readonly inputs: readonly [];
|
|
1560
|
+
readonly name: "accountant";
|
|
1561
|
+
readonly outputs: readonly [{
|
|
1562
|
+
readonly internalType: "contract AccountantWithRateProviders";
|
|
1563
|
+
readonly name: "";
|
|
1564
|
+
readonly type: "address";
|
|
1565
|
+
}];
|
|
1566
|
+
readonly stateMutability: "view";
|
|
1567
|
+
readonly type: "function";
|
|
1568
|
+
}, {
|
|
1569
|
+
readonly inputs: readonly [];
|
|
1570
|
+
readonly name: "vault";
|
|
1571
|
+
readonly outputs: readonly [{
|
|
1572
|
+
readonly internalType: "contract BoringVault";
|
|
1573
|
+
readonly name: "";
|
|
1574
|
+
readonly type: "address";
|
|
1575
|
+
}];
|
|
1576
|
+
readonly stateMutability: "view";
|
|
1577
|
+
readonly type: "function";
|
|
1578
|
+
}, {
|
|
1579
|
+
readonly inputs: readonly [];
|
|
1580
|
+
readonly name: "shareLockPeriod";
|
|
1581
|
+
readonly outputs: readonly [{
|
|
1582
|
+
readonly internalType: "uint64";
|
|
1583
|
+
readonly name: "";
|
|
1584
|
+
readonly type: "uint64";
|
|
1585
|
+
}];
|
|
1586
|
+
readonly stateMutability: "view";
|
|
1587
|
+
readonly type: "function";
|
|
1588
|
+
}, {
|
|
1589
|
+
readonly inputs: readonly [{
|
|
1590
|
+
readonly internalType: "address";
|
|
1591
|
+
readonly name: "";
|
|
1592
|
+
readonly type: "address";
|
|
1593
|
+
}];
|
|
1594
|
+
readonly name: "shareUnlockTime";
|
|
1595
|
+
readonly outputs: readonly [{
|
|
1596
|
+
readonly internalType: "uint256";
|
|
1597
|
+
readonly name: "";
|
|
1598
|
+
readonly type: "uint256";
|
|
1599
|
+
}];
|
|
1600
|
+
readonly stateMutability: "view";
|
|
1601
|
+
readonly type: "function";
|
|
1602
|
+
}, {
|
|
1603
|
+
readonly inputs: readonly [];
|
|
1604
|
+
readonly name: "isPaused";
|
|
1605
|
+
readonly outputs: readonly [{
|
|
1606
|
+
readonly internalType: "bool";
|
|
1607
|
+
readonly name: "";
|
|
1608
|
+
readonly type: "bool";
|
|
1609
|
+
}];
|
|
1610
|
+
readonly stateMutability: "view";
|
|
1611
|
+
readonly type: "function";
|
|
1612
|
+
}, {
|
|
1613
|
+
readonly inputs: readonly [{
|
|
1614
|
+
readonly internalType: "contract ERC20";
|
|
1615
|
+
readonly name: "depositAsset";
|
|
1616
|
+
readonly type: "address";
|
|
1617
|
+
}, {
|
|
1618
|
+
readonly internalType: "uint256";
|
|
1619
|
+
readonly name: "depositAmount";
|
|
1620
|
+
readonly type: "uint256";
|
|
1621
|
+
}, {
|
|
1622
|
+
readonly internalType: "uint256";
|
|
1623
|
+
readonly name: "minimumMint";
|
|
1624
|
+
readonly type: "uint256";
|
|
1625
|
+
}];
|
|
1626
|
+
readonly name: "deposit";
|
|
1627
|
+
readonly outputs: readonly [{
|
|
1628
|
+
readonly internalType: "uint256";
|
|
1629
|
+
readonly name: "shares";
|
|
1630
|
+
readonly type: "uint256";
|
|
1631
|
+
}];
|
|
1632
|
+
readonly stateMutability: "nonpayable";
|
|
1633
|
+
readonly type: "function";
|
|
1634
|
+
}, {
|
|
1635
|
+
readonly inputs: readonly [{
|
|
1636
|
+
readonly internalType: "contract ERC20";
|
|
1637
|
+
readonly name: "depositAsset";
|
|
1638
|
+
readonly type: "address";
|
|
1639
|
+
}, {
|
|
1640
|
+
readonly internalType: "uint256";
|
|
1641
|
+
readonly name: "depositAmount";
|
|
1642
|
+
readonly type: "uint256";
|
|
1643
|
+
}, {
|
|
1644
|
+
readonly internalType: "uint256";
|
|
1645
|
+
readonly name: "minimumMint";
|
|
1646
|
+
readonly type: "uint256";
|
|
1647
|
+
}, {
|
|
1648
|
+
readonly internalType: "uint256";
|
|
1649
|
+
readonly name: "deadline";
|
|
1650
|
+
readonly type: "uint256";
|
|
1651
|
+
}, {
|
|
1652
|
+
readonly internalType: "uint8";
|
|
1653
|
+
readonly name: "v";
|
|
1654
|
+
readonly type: "uint8";
|
|
1655
|
+
}, {
|
|
1656
|
+
readonly internalType: "bytes32";
|
|
1657
|
+
readonly name: "r";
|
|
1658
|
+
readonly type: "bytes32";
|
|
1659
|
+
}, {
|
|
1660
|
+
readonly internalType: "bytes32";
|
|
1661
|
+
readonly name: "s";
|
|
1662
|
+
readonly type: "bytes32";
|
|
1663
|
+
}];
|
|
1664
|
+
readonly name: "depositWithPermit";
|
|
1665
|
+
readonly outputs: readonly [{
|
|
1666
|
+
readonly internalType: "uint256";
|
|
1667
|
+
readonly name: "shares";
|
|
1668
|
+
readonly type: "uint256";
|
|
1669
|
+
}];
|
|
1670
|
+
readonly stateMutability: "nonpayable";
|
|
1671
|
+
readonly type: "function";
|
|
1672
|
+
}], "deposit", readonly [`0x${string}`, bigint, bigint], ViemChain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "abi" | "args" | "functionName"> extends infer T ? { [K in keyof T]: import('viem').UnionOmit<import('viem').WriteContractParameters<readonly [{
|
|
1673
|
+
readonly inputs: readonly [];
|
|
1674
|
+
readonly name: "accountant";
|
|
1675
|
+
readonly outputs: readonly [{
|
|
1676
|
+
readonly internalType: "contract AccountantWithRateProviders";
|
|
1677
|
+
readonly name: "";
|
|
1678
|
+
readonly type: "address";
|
|
1679
|
+
}];
|
|
1680
|
+
readonly stateMutability: "view";
|
|
1681
|
+
readonly type: "function";
|
|
1682
|
+
}, {
|
|
1683
|
+
readonly inputs: readonly [];
|
|
1684
|
+
readonly name: "vault";
|
|
1685
|
+
readonly outputs: readonly [{
|
|
1686
|
+
readonly internalType: "contract BoringVault";
|
|
1687
|
+
readonly name: "";
|
|
1688
|
+
readonly type: "address";
|
|
1689
|
+
}];
|
|
1690
|
+
readonly stateMutability: "view";
|
|
1691
|
+
readonly type: "function";
|
|
1692
|
+
}, {
|
|
1693
|
+
readonly inputs: readonly [];
|
|
1694
|
+
readonly name: "shareLockPeriod";
|
|
1695
|
+
readonly outputs: readonly [{
|
|
1696
|
+
readonly internalType: "uint64";
|
|
1697
|
+
readonly name: "";
|
|
1698
|
+
readonly type: "uint64";
|
|
1699
|
+
}];
|
|
1700
|
+
readonly stateMutability: "view";
|
|
1701
|
+
readonly type: "function";
|
|
1702
|
+
}, {
|
|
1703
|
+
readonly inputs: readonly [{
|
|
1704
|
+
readonly internalType: "address";
|
|
1705
|
+
readonly name: "";
|
|
1706
|
+
readonly type: "address";
|
|
1707
|
+
}];
|
|
1708
|
+
readonly name: "shareUnlockTime";
|
|
1709
|
+
readonly outputs: readonly [{
|
|
1710
|
+
readonly internalType: "uint256";
|
|
1711
|
+
readonly name: "";
|
|
1712
|
+
readonly type: "uint256";
|
|
1713
|
+
}];
|
|
1714
|
+
readonly stateMutability: "view";
|
|
1715
|
+
readonly type: "function";
|
|
1716
|
+
}, {
|
|
1717
|
+
readonly inputs: readonly [];
|
|
1718
|
+
readonly name: "isPaused";
|
|
1719
|
+
readonly outputs: readonly [{
|
|
1720
|
+
readonly internalType: "bool";
|
|
1721
|
+
readonly name: "";
|
|
1722
|
+
readonly type: "bool";
|
|
1723
|
+
}];
|
|
1724
|
+
readonly stateMutability: "view";
|
|
1725
|
+
readonly type: "function";
|
|
1726
|
+
}, {
|
|
1727
|
+
readonly inputs: readonly [{
|
|
1728
|
+
readonly internalType: "contract ERC20";
|
|
1729
|
+
readonly name: "depositAsset";
|
|
1730
|
+
readonly type: "address";
|
|
1731
|
+
}, {
|
|
1732
|
+
readonly internalType: "uint256";
|
|
1733
|
+
readonly name: "depositAmount";
|
|
1734
|
+
readonly type: "uint256";
|
|
1735
|
+
}, {
|
|
1736
|
+
readonly internalType: "uint256";
|
|
1737
|
+
readonly name: "minimumMint";
|
|
1738
|
+
readonly type: "uint256";
|
|
1739
|
+
}];
|
|
1740
|
+
readonly name: "deposit";
|
|
1741
|
+
readonly outputs: readonly [{
|
|
1742
|
+
readonly internalType: "uint256";
|
|
1743
|
+
readonly name: "shares";
|
|
1744
|
+
readonly type: "uint256";
|
|
1745
|
+
}];
|
|
1746
|
+
readonly stateMutability: "nonpayable";
|
|
1747
|
+
readonly type: "function";
|
|
1748
|
+
}, {
|
|
1749
|
+
readonly inputs: readonly [{
|
|
1750
|
+
readonly internalType: "contract ERC20";
|
|
1751
|
+
readonly name: "depositAsset";
|
|
1752
|
+
readonly type: "address";
|
|
1753
|
+
}, {
|
|
1754
|
+
readonly internalType: "uint256";
|
|
1755
|
+
readonly name: "depositAmount";
|
|
1756
|
+
readonly type: "uint256";
|
|
1757
|
+
}, {
|
|
1758
|
+
readonly internalType: "uint256";
|
|
1759
|
+
readonly name: "minimumMint";
|
|
1760
|
+
readonly type: "uint256";
|
|
1761
|
+
}, {
|
|
1762
|
+
readonly internalType: "uint256";
|
|
1763
|
+
readonly name: "deadline";
|
|
1764
|
+
readonly type: "uint256";
|
|
1765
|
+
}, {
|
|
1766
|
+
readonly internalType: "uint8";
|
|
1767
|
+
readonly name: "v";
|
|
1768
|
+
readonly type: "uint8";
|
|
1769
|
+
}, {
|
|
1770
|
+
readonly internalType: "bytes32";
|
|
1771
|
+
readonly name: "r";
|
|
1772
|
+
readonly type: "bytes32";
|
|
1773
|
+
}, {
|
|
1774
|
+
readonly internalType: "bytes32";
|
|
1775
|
+
readonly name: "s";
|
|
1776
|
+
readonly type: "bytes32";
|
|
1777
|
+
}];
|
|
1778
|
+
readonly name: "depositWithPermit";
|
|
1779
|
+
readonly outputs: readonly [{
|
|
1780
|
+
readonly internalType: "uint256";
|
|
1781
|
+
readonly name: "shares";
|
|
1782
|
+
readonly type: "uint256";
|
|
1783
|
+
}];
|
|
1784
|
+
readonly stateMutability: "nonpayable";
|
|
1785
|
+
readonly type: "function";
|
|
1786
|
+
}], "deposit", readonly [`0x${string}`, bigint, bigint], ViemChain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "abi" | "args" | "functionName">[K]; } : never>(args: readonly [`0x${string}`, bigint, bigint], options: options) => Promise<import('viem').WriteContractReturnType>;
|
|
1787
|
+
depositWithPermit: <chainOverride extends ViemChain | undefined, options extends import('viem').UnionOmit<import('viem').WriteContractParameters<readonly [{
|
|
1788
|
+
readonly inputs: readonly [];
|
|
1789
|
+
readonly name: "accountant";
|
|
1790
|
+
readonly outputs: readonly [{
|
|
1791
|
+
readonly internalType: "contract AccountantWithRateProviders";
|
|
1792
|
+
readonly name: "";
|
|
1793
|
+
readonly type: "address";
|
|
1794
|
+
}];
|
|
1795
|
+
readonly stateMutability: "view";
|
|
1796
|
+
readonly type: "function";
|
|
1797
|
+
}, {
|
|
1798
|
+
readonly inputs: readonly [];
|
|
1799
|
+
readonly name: "vault";
|
|
1800
|
+
readonly outputs: readonly [{
|
|
1801
|
+
readonly internalType: "contract BoringVault";
|
|
1802
|
+
readonly name: "";
|
|
1803
|
+
readonly type: "address";
|
|
1804
|
+
}];
|
|
1805
|
+
readonly stateMutability: "view";
|
|
1806
|
+
readonly type: "function";
|
|
1807
|
+
}, {
|
|
1808
|
+
readonly inputs: readonly [];
|
|
1809
|
+
readonly name: "shareLockPeriod";
|
|
1810
|
+
readonly outputs: readonly [{
|
|
1811
|
+
readonly internalType: "uint64";
|
|
1812
|
+
readonly name: "";
|
|
1813
|
+
readonly type: "uint64";
|
|
1814
|
+
}];
|
|
1815
|
+
readonly stateMutability: "view";
|
|
1816
|
+
readonly type: "function";
|
|
1817
|
+
}, {
|
|
1818
|
+
readonly inputs: readonly [{
|
|
1819
|
+
readonly internalType: "address";
|
|
1820
|
+
readonly name: "";
|
|
1821
|
+
readonly type: "address";
|
|
1822
|
+
}];
|
|
1823
|
+
readonly name: "shareUnlockTime";
|
|
1824
|
+
readonly outputs: readonly [{
|
|
1825
|
+
readonly internalType: "uint256";
|
|
1826
|
+
readonly name: "";
|
|
1827
|
+
readonly type: "uint256";
|
|
1828
|
+
}];
|
|
1829
|
+
readonly stateMutability: "view";
|
|
1830
|
+
readonly type: "function";
|
|
1831
|
+
}, {
|
|
1832
|
+
readonly inputs: readonly [];
|
|
1833
|
+
readonly name: "isPaused";
|
|
1834
|
+
readonly outputs: readonly [{
|
|
1835
|
+
readonly internalType: "bool";
|
|
1836
|
+
readonly name: "";
|
|
1837
|
+
readonly type: "bool";
|
|
1838
|
+
}];
|
|
1839
|
+
readonly stateMutability: "view";
|
|
1840
|
+
readonly type: "function";
|
|
1841
|
+
}, {
|
|
1842
|
+
readonly inputs: readonly [{
|
|
1843
|
+
readonly internalType: "contract ERC20";
|
|
1844
|
+
readonly name: "depositAsset";
|
|
1845
|
+
readonly type: "address";
|
|
1846
|
+
}, {
|
|
1847
|
+
readonly internalType: "uint256";
|
|
1848
|
+
readonly name: "depositAmount";
|
|
1849
|
+
readonly type: "uint256";
|
|
1850
|
+
}, {
|
|
1851
|
+
readonly internalType: "uint256";
|
|
1852
|
+
readonly name: "minimumMint";
|
|
1853
|
+
readonly type: "uint256";
|
|
1854
|
+
}];
|
|
1855
|
+
readonly name: "deposit";
|
|
1856
|
+
readonly outputs: readonly [{
|
|
1857
|
+
readonly internalType: "uint256";
|
|
1858
|
+
readonly name: "shares";
|
|
1859
|
+
readonly type: "uint256";
|
|
1860
|
+
}];
|
|
1861
|
+
readonly stateMutability: "nonpayable";
|
|
1862
|
+
readonly type: "function";
|
|
1863
|
+
}, {
|
|
1864
|
+
readonly inputs: readonly [{
|
|
1865
|
+
readonly internalType: "contract ERC20";
|
|
1866
|
+
readonly name: "depositAsset";
|
|
1867
|
+
readonly type: "address";
|
|
1868
|
+
}, {
|
|
1869
|
+
readonly internalType: "uint256";
|
|
1870
|
+
readonly name: "depositAmount";
|
|
1871
|
+
readonly type: "uint256";
|
|
1872
|
+
}, {
|
|
1873
|
+
readonly internalType: "uint256";
|
|
1874
|
+
readonly name: "minimumMint";
|
|
1875
|
+
readonly type: "uint256";
|
|
1876
|
+
}, {
|
|
1877
|
+
readonly internalType: "uint256";
|
|
1878
|
+
readonly name: "deadline";
|
|
1879
|
+
readonly type: "uint256";
|
|
1880
|
+
}, {
|
|
1881
|
+
readonly internalType: "uint8";
|
|
1882
|
+
readonly name: "v";
|
|
1883
|
+
readonly type: "uint8";
|
|
1884
|
+
}, {
|
|
1885
|
+
readonly internalType: "bytes32";
|
|
1886
|
+
readonly name: "r";
|
|
1887
|
+
readonly type: "bytes32";
|
|
1888
|
+
}, {
|
|
1889
|
+
readonly internalType: "bytes32";
|
|
1890
|
+
readonly name: "s";
|
|
1891
|
+
readonly type: "bytes32";
|
|
1892
|
+
}];
|
|
1893
|
+
readonly name: "depositWithPermit";
|
|
1894
|
+
readonly outputs: readonly [{
|
|
1895
|
+
readonly internalType: "uint256";
|
|
1896
|
+
readonly name: "shares";
|
|
1897
|
+
readonly type: "uint256";
|
|
1898
|
+
}];
|
|
1899
|
+
readonly stateMutability: "nonpayable";
|
|
1900
|
+
readonly type: "function";
|
|
1901
|
+
}], "depositWithPermit", readonly [`0x${string}`, bigint, bigint, bigint, number, `0x${string}`, `0x${string}`], ViemChain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "abi" | "args" | "functionName"> extends infer T ? { [K in keyof T]: import('viem').UnionOmit<import('viem').WriteContractParameters<readonly [{
|
|
1902
|
+
readonly inputs: readonly [];
|
|
1903
|
+
readonly name: "accountant";
|
|
1904
|
+
readonly outputs: readonly [{
|
|
1905
|
+
readonly internalType: "contract AccountantWithRateProviders";
|
|
1906
|
+
readonly name: "";
|
|
1907
|
+
readonly type: "address";
|
|
1908
|
+
}];
|
|
1909
|
+
readonly stateMutability: "view";
|
|
1910
|
+
readonly type: "function";
|
|
1911
|
+
}, {
|
|
1912
|
+
readonly inputs: readonly [];
|
|
1913
|
+
readonly name: "vault";
|
|
1914
|
+
readonly outputs: readonly [{
|
|
1915
|
+
readonly internalType: "contract BoringVault";
|
|
1916
|
+
readonly name: "";
|
|
1917
|
+
readonly type: "address";
|
|
1918
|
+
}];
|
|
1919
|
+
readonly stateMutability: "view";
|
|
1920
|
+
readonly type: "function";
|
|
1921
|
+
}, {
|
|
1922
|
+
readonly inputs: readonly [];
|
|
1923
|
+
readonly name: "shareLockPeriod";
|
|
1924
|
+
readonly outputs: readonly [{
|
|
1925
|
+
readonly internalType: "uint64";
|
|
1926
|
+
readonly name: "";
|
|
1927
|
+
readonly type: "uint64";
|
|
1928
|
+
}];
|
|
1929
|
+
readonly stateMutability: "view";
|
|
1930
|
+
readonly type: "function";
|
|
1931
|
+
}, {
|
|
1932
|
+
readonly inputs: readonly [{
|
|
1933
|
+
readonly internalType: "address";
|
|
1934
|
+
readonly name: "";
|
|
1935
|
+
readonly type: "address";
|
|
1936
|
+
}];
|
|
1937
|
+
readonly name: "shareUnlockTime";
|
|
1938
|
+
readonly outputs: readonly [{
|
|
1939
|
+
readonly internalType: "uint256";
|
|
1940
|
+
readonly name: "";
|
|
1941
|
+
readonly type: "uint256";
|
|
1942
|
+
}];
|
|
1943
|
+
readonly stateMutability: "view";
|
|
1944
|
+
readonly type: "function";
|
|
1945
|
+
}, {
|
|
1946
|
+
readonly inputs: readonly [];
|
|
1947
|
+
readonly name: "isPaused";
|
|
1948
|
+
readonly outputs: readonly [{
|
|
1949
|
+
readonly internalType: "bool";
|
|
1950
|
+
readonly name: "";
|
|
1951
|
+
readonly type: "bool";
|
|
1952
|
+
}];
|
|
1953
|
+
readonly stateMutability: "view";
|
|
1954
|
+
readonly type: "function";
|
|
1955
|
+
}, {
|
|
1956
|
+
readonly inputs: readonly [{
|
|
1957
|
+
readonly internalType: "contract ERC20";
|
|
1958
|
+
readonly name: "depositAsset";
|
|
1959
|
+
readonly type: "address";
|
|
1960
|
+
}, {
|
|
1961
|
+
readonly internalType: "uint256";
|
|
1962
|
+
readonly name: "depositAmount";
|
|
1963
|
+
readonly type: "uint256";
|
|
1964
|
+
}, {
|
|
1965
|
+
readonly internalType: "uint256";
|
|
1966
|
+
readonly name: "minimumMint";
|
|
1967
|
+
readonly type: "uint256";
|
|
1968
|
+
}];
|
|
1969
|
+
readonly name: "deposit";
|
|
1970
|
+
readonly outputs: readonly [{
|
|
1971
|
+
readonly internalType: "uint256";
|
|
1972
|
+
readonly name: "shares";
|
|
1973
|
+
readonly type: "uint256";
|
|
1974
|
+
}];
|
|
1975
|
+
readonly stateMutability: "nonpayable";
|
|
1976
|
+
readonly type: "function";
|
|
1977
|
+
}, {
|
|
1978
|
+
readonly inputs: readonly [{
|
|
1979
|
+
readonly internalType: "contract ERC20";
|
|
1980
|
+
readonly name: "depositAsset";
|
|
1981
|
+
readonly type: "address";
|
|
1982
|
+
}, {
|
|
1983
|
+
readonly internalType: "uint256";
|
|
1984
|
+
readonly name: "depositAmount";
|
|
1985
|
+
readonly type: "uint256";
|
|
1986
|
+
}, {
|
|
1987
|
+
readonly internalType: "uint256";
|
|
1988
|
+
readonly name: "minimumMint";
|
|
1989
|
+
readonly type: "uint256";
|
|
1990
|
+
}, {
|
|
1991
|
+
readonly internalType: "uint256";
|
|
1992
|
+
readonly name: "deadline";
|
|
1993
|
+
readonly type: "uint256";
|
|
1994
|
+
}, {
|
|
1995
|
+
readonly internalType: "uint8";
|
|
1996
|
+
readonly name: "v";
|
|
1997
|
+
readonly type: "uint8";
|
|
1998
|
+
}, {
|
|
1999
|
+
readonly internalType: "bytes32";
|
|
2000
|
+
readonly name: "r";
|
|
2001
|
+
readonly type: "bytes32";
|
|
2002
|
+
}, {
|
|
2003
|
+
readonly internalType: "bytes32";
|
|
2004
|
+
readonly name: "s";
|
|
2005
|
+
readonly type: "bytes32";
|
|
2006
|
+
}];
|
|
2007
|
+
readonly name: "depositWithPermit";
|
|
2008
|
+
readonly outputs: readonly [{
|
|
2009
|
+
readonly internalType: "uint256";
|
|
2010
|
+
readonly name: "shares";
|
|
2011
|
+
readonly type: "uint256";
|
|
2012
|
+
}];
|
|
2013
|
+
readonly stateMutability: "nonpayable";
|
|
2014
|
+
readonly type: "function";
|
|
2015
|
+
}], "depositWithPermit", readonly [`0x${string}`, bigint, bigint, bigint, number, `0x${string}`, `0x${string}`], ViemChain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "abi" | "args" | "functionName">[K]; } : never>(args: readonly [`0x${string}`, bigint, bigint, bigint, number, `0x${string}`, `0x${string}`], options: options) => Promise<import('viem').WriteContractReturnType>;
|
|
2016
|
+
};
|
|
2017
|
+
address: `0x${string}`;
|
|
2018
|
+
abi: readonly [{
|
|
2019
|
+
readonly inputs: readonly [];
|
|
2020
|
+
readonly name: "accountant";
|
|
2021
|
+
readonly outputs: readonly [{
|
|
2022
|
+
readonly internalType: "contract AccountantWithRateProviders";
|
|
2023
|
+
readonly name: "";
|
|
2024
|
+
readonly type: "address";
|
|
2025
|
+
}];
|
|
2026
|
+
readonly stateMutability: "view";
|
|
2027
|
+
readonly type: "function";
|
|
2028
|
+
}, {
|
|
2029
|
+
readonly inputs: readonly [];
|
|
2030
|
+
readonly name: "vault";
|
|
2031
|
+
readonly outputs: readonly [{
|
|
2032
|
+
readonly internalType: "contract BoringVault";
|
|
2033
|
+
readonly name: "";
|
|
2034
|
+
readonly type: "address";
|
|
2035
|
+
}];
|
|
2036
|
+
readonly stateMutability: "view";
|
|
2037
|
+
readonly type: "function";
|
|
2038
|
+
}, {
|
|
2039
|
+
readonly inputs: readonly [];
|
|
2040
|
+
readonly name: "shareLockPeriod";
|
|
2041
|
+
readonly outputs: readonly [{
|
|
2042
|
+
readonly internalType: "uint64";
|
|
2043
|
+
readonly name: "";
|
|
2044
|
+
readonly type: "uint64";
|
|
2045
|
+
}];
|
|
2046
|
+
readonly stateMutability: "view";
|
|
2047
|
+
readonly type: "function";
|
|
2048
|
+
}, {
|
|
2049
|
+
readonly inputs: readonly [{
|
|
2050
|
+
readonly internalType: "address";
|
|
2051
|
+
readonly name: "";
|
|
2052
|
+
readonly type: "address";
|
|
2053
|
+
}];
|
|
2054
|
+
readonly name: "shareUnlockTime";
|
|
2055
|
+
readonly outputs: readonly [{
|
|
2056
|
+
readonly internalType: "uint256";
|
|
2057
|
+
readonly name: "";
|
|
2058
|
+
readonly type: "uint256";
|
|
2059
|
+
}];
|
|
2060
|
+
readonly stateMutability: "view";
|
|
2061
|
+
readonly type: "function";
|
|
2062
|
+
}, {
|
|
2063
|
+
readonly inputs: readonly [];
|
|
2064
|
+
readonly name: "isPaused";
|
|
2065
|
+
readonly outputs: readonly [{
|
|
2066
|
+
readonly internalType: "bool";
|
|
2067
|
+
readonly name: "";
|
|
2068
|
+
readonly type: "bool";
|
|
2069
|
+
}];
|
|
2070
|
+
readonly stateMutability: "view";
|
|
2071
|
+
readonly type: "function";
|
|
2072
|
+
}, {
|
|
2073
|
+
readonly inputs: readonly [{
|
|
2074
|
+
readonly internalType: "contract ERC20";
|
|
2075
|
+
readonly name: "depositAsset";
|
|
2076
|
+
readonly type: "address";
|
|
2077
|
+
}, {
|
|
2078
|
+
readonly internalType: "uint256";
|
|
2079
|
+
readonly name: "depositAmount";
|
|
2080
|
+
readonly type: "uint256";
|
|
2081
|
+
}, {
|
|
2082
|
+
readonly internalType: "uint256";
|
|
2083
|
+
readonly name: "minimumMint";
|
|
2084
|
+
readonly type: "uint256";
|
|
2085
|
+
}];
|
|
2086
|
+
readonly name: "deposit";
|
|
2087
|
+
readonly outputs: readonly [{
|
|
2088
|
+
readonly internalType: "uint256";
|
|
2089
|
+
readonly name: "shares";
|
|
2090
|
+
readonly type: "uint256";
|
|
2091
|
+
}];
|
|
2092
|
+
readonly stateMutability: "nonpayable";
|
|
2093
|
+
readonly type: "function";
|
|
2094
|
+
}, {
|
|
2095
|
+
readonly inputs: readonly [{
|
|
2096
|
+
readonly internalType: "contract ERC20";
|
|
2097
|
+
readonly name: "depositAsset";
|
|
2098
|
+
readonly type: "address";
|
|
2099
|
+
}, {
|
|
2100
|
+
readonly internalType: "uint256";
|
|
2101
|
+
readonly name: "depositAmount";
|
|
2102
|
+
readonly type: "uint256";
|
|
2103
|
+
}, {
|
|
2104
|
+
readonly internalType: "uint256";
|
|
2105
|
+
readonly name: "minimumMint";
|
|
2106
|
+
readonly type: "uint256";
|
|
2107
|
+
}, {
|
|
2108
|
+
readonly internalType: "uint256";
|
|
2109
|
+
readonly name: "deadline";
|
|
2110
|
+
readonly type: "uint256";
|
|
2111
|
+
}, {
|
|
2112
|
+
readonly internalType: "uint8";
|
|
2113
|
+
readonly name: "v";
|
|
2114
|
+
readonly type: "uint8";
|
|
2115
|
+
}, {
|
|
2116
|
+
readonly internalType: "bytes32";
|
|
2117
|
+
readonly name: "r";
|
|
2118
|
+
readonly type: "bytes32";
|
|
2119
|
+
}, {
|
|
2120
|
+
readonly internalType: "bytes32";
|
|
2121
|
+
readonly name: "s";
|
|
2122
|
+
readonly type: "bytes32";
|
|
2123
|
+
}];
|
|
2124
|
+
readonly name: "depositWithPermit";
|
|
2125
|
+
readonly outputs: readonly [{
|
|
2126
|
+
readonly internalType: "uint256";
|
|
2127
|
+
readonly name: "shares";
|
|
2128
|
+
readonly type: "uint256";
|
|
2129
|
+
}];
|
|
2130
|
+
readonly stateMutability: "nonpayable";
|
|
2131
|
+
readonly type: "function";
|
|
2132
|
+
}];
|
|
2133
|
+
};
|
|
2134
|
+
/**
|
|
2135
|
+
* Get the address of the `Accountant` contract.
|
|
2136
|
+
*
|
|
2137
|
+
* @returns The address of the `Accountant` contract.
|
|
2138
|
+
*/
|
|
2139
|
+
accountant(): Promise<`0x${string}`>;
|
|
2140
|
+
/**
|
|
2141
|
+
* Get the address of the `BoringVault` contract.
|
|
2142
|
+
*
|
|
2143
|
+
* @returns The address of the `BoringVault` contract.
|
|
2144
|
+
*/
|
|
2145
|
+
vault(): Promise<`0x${string}`>;
|
|
2146
|
+
/**
|
|
2147
|
+
* Get the share lock period.
|
|
2148
|
+
*
|
|
2149
|
+
* @returns The share lock period.
|
|
2150
|
+
*/
|
|
2151
|
+
shareLockPeriod(): Promise<bigint>;
|
|
2152
|
+
/**
|
|
2153
|
+
* Get the share unlock time for the given wallet address.
|
|
2154
|
+
*
|
|
2155
|
+
* @param walletAddress Address of the wallet.
|
|
2156
|
+
* @returns The share unlock time.
|
|
2157
|
+
*/
|
|
2158
|
+
shareUnlockTime(walletAddress: Address): Promise<bigint>;
|
|
2159
|
+
/**
|
|
2160
|
+
* Get the paused state of the contract.
|
|
2161
|
+
*
|
|
2162
|
+
* @returns The paused state of the contract.
|
|
2163
|
+
*/
|
|
2164
|
+
isPaused(): Promise<boolean>;
|
|
2165
|
+
/**
|
|
2166
|
+
* Deposit the given token for staking. This doesn't make the
|
|
2167
|
+
* transaction but returns two methods namely `transact` and
|
|
2168
|
+
* `estimate`.
|
|
2169
|
+
*
|
|
2170
|
+
* @param params Deposit parameters.
|
|
2171
|
+
* @param params.account Address of the caller of the transaction.
|
|
2172
|
+
* @param params.token Token to deposit.
|
|
2173
|
+
* @param params.unifiToken UniFi token to get in return of the deposit.
|
|
2174
|
+
* @param params.amount Amount of the token to deposit.
|
|
2175
|
+
* @param params.minimumMint Minimum amount of shares to mint.
|
|
2176
|
+
* @param params.isPreapproved Whether the token is preapproved.
|
|
2177
|
+
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
2178
|
+
* transaction with the given value.
|
|
2179
|
+
*
|
|
2180
|
+
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
2181
|
+
* transaction.
|
|
2182
|
+
*/
|
|
2183
|
+
deposit(params: DepositParams): Promise<{
|
|
2184
|
+
transact: () => Promise<`0x${string}`>;
|
|
2185
|
+
estimate: () => Promise<bigint>;
|
|
2186
|
+
}>;
|
|
2187
|
+
/**
|
|
2188
|
+
* Deposit an asset/token for staking with a permit.
|
|
2189
|
+
*
|
|
2190
|
+
* @param params Permit parameters.
|
|
2191
|
+
* @param params.account Address of the caller of the transaction.
|
|
2192
|
+
* @param params.depositAsset Address of the asset/token to deposit.
|
|
2193
|
+
* @param params.depositAmount Amount of the asset/token to deposit.
|
|
2194
|
+
* @param params.minimumMint Minimum amount of shares to mint.
|
|
2195
|
+
* @param params.deadline Deadline for the permit.
|
|
2196
|
+
* @param params.v v value of the permit.
|
|
2197
|
+
* @param params.r r value of the permit.
|
|
2198
|
+
* @param params.s s value of the permit.
|
|
2199
|
+
* @returns `transact: () => Promise<Address>` - Used to make the
|
|
2200
|
+
* transaction with the given value.
|
|
2201
|
+
*
|
|
2202
|
+
* `estimate: () => Promise<bigint>` - Gas estimate of the
|
|
2203
|
+
* transaction.
|
|
2204
|
+
*/
|
|
2205
|
+
depositWithPermit(params: DepositWithPermitParams): {
|
|
2206
|
+
transact: () => Promise<`0x${string}`>;
|
|
2207
|
+
estimate: () => Promise<bigint>;
|
|
2208
|
+
};
|
|
2209
|
+
}
|