@pufferfinance/puffer-sdk 1.13.1 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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.map +1 -1
- package/dist/contracts/addresses.d.ts +15 -6
- package/dist/contracts/addresses.js +3 -0
- package/dist/contracts/addresses.js.map +1 -1
- package/dist/contracts/handlers/carrot-staking-handler.d.ts +1652 -0
- 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 +12 -12
- 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 +13 -13
- 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 +4 -4
- package/dist/contracts/handlers/l2-reward-manager-handler.js.map +1 -1
- package/dist/contracts/handlers/mtw-carrot-handler.d.ts +14333 -0
- 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 +22 -22
- 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 +13 -13
- 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 +11 -11
- 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 +18 -18
- 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 +16 -16
- 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 +2 -2
- 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 +8 -8
- package/dist/contracts/handlers/puffer-withdrawal-manager-handler.js.map +1 -1
- package/dist/utils/version.cjs +1 -1
- package/dist/utils/version.js +1 -1
- package/package.json +2 -2
- 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 -1053
- 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 -2124
- 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 -526
- 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 -333
- 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 -627
- 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 -546
- 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 -967
- 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 -1325
- 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 -2789
- 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 -1027
- 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,1652 @@
|
|
|
1
|
+
import { Address, WalletClient, PublicClient } from 'viem';
|
|
2
|
+
import { ViemChain, Chain } from '../../chains/constants';
|
|
3
|
+
/**
|
|
4
|
+
* Handler for the `CarrotStaker` contract.
|
|
5
|
+
*/
|
|
6
|
+
export declare class CarrotStakingHandler {
|
|
7
|
+
private chain;
|
|
8
|
+
private walletClient;
|
|
9
|
+
private publicClient;
|
|
10
|
+
private viemChain;
|
|
11
|
+
/**
|
|
12
|
+
* Create the handler for the `CarrotStaker` contract exposing
|
|
13
|
+
* methods to interact with the contract.
|
|
14
|
+
*
|
|
15
|
+
* @param chain Chain to use for the client.
|
|
16
|
+
* @param walletClient The wallet client to use for wallet
|
|
17
|
+
* interactions.
|
|
18
|
+
* @param publicClient The public client to use for public
|
|
19
|
+
* interactions.
|
|
20
|
+
*/
|
|
21
|
+
constructor(chain: Chain, walletClient: WalletClient, publicClient: PublicClient);
|
|
22
|
+
/**
|
|
23
|
+
* Get the contract. This is a method because the typings are complex
|
|
24
|
+
* and lost when trying to make it a member.
|
|
25
|
+
*
|
|
26
|
+
* @returns The viem contract.
|
|
27
|
+
*/
|
|
28
|
+
getContract(): {
|
|
29
|
+
read: {
|
|
30
|
+
balanceOf: (args: readonly [`0x${string}`], options?: import('viem').Prettify<import('viem').UnionOmit<import('viem').ReadContractParameters<readonly [{
|
|
31
|
+
readonly inputs: readonly [{
|
|
32
|
+
readonly internalType: "address";
|
|
33
|
+
readonly name: "owner";
|
|
34
|
+
readonly type: "address";
|
|
35
|
+
}, {
|
|
36
|
+
readonly internalType: "address";
|
|
37
|
+
readonly name: "spender";
|
|
38
|
+
readonly type: "address";
|
|
39
|
+
}];
|
|
40
|
+
readonly name: "allowance";
|
|
41
|
+
readonly outputs: readonly [{
|
|
42
|
+
readonly internalType: "uint256";
|
|
43
|
+
readonly name: "";
|
|
44
|
+
readonly type: "uint256";
|
|
45
|
+
}];
|
|
46
|
+
readonly stateMutability: "view";
|
|
47
|
+
readonly type: "function";
|
|
48
|
+
}, {
|
|
49
|
+
readonly inputs: readonly [{
|
|
50
|
+
readonly internalType: "address";
|
|
51
|
+
readonly name: "account";
|
|
52
|
+
readonly type: "address";
|
|
53
|
+
}];
|
|
54
|
+
readonly name: "balanceOf";
|
|
55
|
+
readonly outputs: readonly [{
|
|
56
|
+
readonly internalType: "uint256";
|
|
57
|
+
readonly name: "";
|
|
58
|
+
readonly type: "uint256";
|
|
59
|
+
}];
|
|
60
|
+
readonly stateMutability: "view";
|
|
61
|
+
readonly type: "function";
|
|
62
|
+
}, {
|
|
63
|
+
readonly inputs: readonly [];
|
|
64
|
+
readonly name: "decimals";
|
|
65
|
+
readonly outputs: readonly [{
|
|
66
|
+
readonly internalType: "uint8";
|
|
67
|
+
readonly name: "";
|
|
68
|
+
readonly type: "uint8";
|
|
69
|
+
}];
|
|
70
|
+
readonly stateMutability: "view";
|
|
71
|
+
readonly type: "function";
|
|
72
|
+
}, {
|
|
73
|
+
readonly inputs: readonly [];
|
|
74
|
+
readonly name: "isUnstakingAllowed";
|
|
75
|
+
readonly outputs: readonly [{
|
|
76
|
+
readonly internalType: "bool";
|
|
77
|
+
readonly name: "";
|
|
78
|
+
readonly type: "bool";
|
|
79
|
+
}];
|
|
80
|
+
readonly stateMutability: "view";
|
|
81
|
+
readonly type: "function";
|
|
82
|
+
}, {
|
|
83
|
+
readonly inputs: readonly [];
|
|
84
|
+
readonly name: "totalSupply";
|
|
85
|
+
readonly outputs: readonly [{
|
|
86
|
+
readonly internalType: "uint256";
|
|
87
|
+
readonly name: "";
|
|
88
|
+
readonly type: "uint256";
|
|
89
|
+
}];
|
|
90
|
+
readonly stateMutability: "view";
|
|
91
|
+
readonly type: "function";
|
|
92
|
+
}, {
|
|
93
|
+
readonly inputs: readonly [{
|
|
94
|
+
readonly internalType: "uint256";
|
|
95
|
+
readonly name: "amount";
|
|
96
|
+
readonly type: "uint256";
|
|
97
|
+
}];
|
|
98
|
+
readonly name: "stake";
|
|
99
|
+
readonly outputs: readonly [];
|
|
100
|
+
readonly stateMutability: "nonpayable";
|
|
101
|
+
readonly type: "function";
|
|
102
|
+
}, {
|
|
103
|
+
readonly inputs: readonly [{
|
|
104
|
+
readonly internalType: "uint256";
|
|
105
|
+
readonly name: "amount";
|
|
106
|
+
readonly type: "uint256";
|
|
107
|
+
}, {
|
|
108
|
+
readonly internalType: "address";
|
|
109
|
+
readonly name: "recipient";
|
|
110
|
+
readonly type: "address";
|
|
111
|
+
}];
|
|
112
|
+
readonly name: "unstake";
|
|
113
|
+
readonly outputs: readonly [];
|
|
114
|
+
readonly stateMutability: "nonpayable";
|
|
115
|
+
readonly type: "function";
|
|
116
|
+
}], "balanceOf", readonly [`0x${string}`]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
117
|
+
allowance: (args: readonly [`0x${string}`, `0x${string}`], options?: import('viem').Prettify<import('viem').UnionOmit<import('viem').ReadContractParameters<readonly [{
|
|
118
|
+
readonly inputs: readonly [{
|
|
119
|
+
readonly internalType: "address";
|
|
120
|
+
readonly name: "owner";
|
|
121
|
+
readonly type: "address";
|
|
122
|
+
}, {
|
|
123
|
+
readonly internalType: "address";
|
|
124
|
+
readonly name: "spender";
|
|
125
|
+
readonly type: "address";
|
|
126
|
+
}];
|
|
127
|
+
readonly name: "allowance";
|
|
128
|
+
readonly outputs: readonly [{
|
|
129
|
+
readonly internalType: "uint256";
|
|
130
|
+
readonly name: "";
|
|
131
|
+
readonly type: "uint256";
|
|
132
|
+
}];
|
|
133
|
+
readonly stateMutability: "view";
|
|
134
|
+
readonly type: "function";
|
|
135
|
+
}, {
|
|
136
|
+
readonly inputs: readonly [{
|
|
137
|
+
readonly internalType: "address";
|
|
138
|
+
readonly name: "account";
|
|
139
|
+
readonly type: "address";
|
|
140
|
+
}];
|
|
141
|
+
readonly name: "balanceOf";
|
|
142
|
+
readonly outputs: readonly [{
|
|
143
|
+
readonly internalType: "uint256";
|
|
144
|
+
readonly name: "";
|
|
145
|
+
readonly type: "uint256";
|
|
146
|
+
}];
|
|
147
|
+
readonly stateMutability: "view";
|
|
148
|
+
readonly type: "function";
|
|
149
|
+
}, {
|
|
150
|
+
readonly inputs: readonly [];
|
|
151
|
+
readonly name: "decimals";
|
|
152
|
+
readonly outputs: readonly [{
|
|
153
|
+
readonly internalType: "uint8";
|
|
154
|
+
readonly name: "";
|
|
155
|
+
readonly type: "uint8";
|
|
156
|
+
}];
|
|
157
|
+
readonly stateMutability: "view";
|
|
158
|
+
readonly type: "function";
|
|
159
|
+
}, {
|
|
160
|
+
readonly inputs: readonly [];
|
|
161
|
+
readonly name: "isUnstakingAllowed";
|
|
162
|
+
readonly outputs: readonly [{
|
|
163
|
+
readonly internalType: "bool";
|
|
164
|
+
readonly name: "";
|
|
165
|
+
readonly type: "bool";
|
|
166
|
+
}];
|
|
167
|
+
readonly stateMutability: "view";
|
|
168
|
+
readonly type: "function";
|
|
169
|
+
}, {
|
|
170
|
+
readonly inputs: readonly [];
|
|
171
|
+
readonly name: "totalSupply";
|
|
172
|
+
readonly outputs: readonly [{
|
|
173
|
+
readonly internalType: "uint256";
|
|
174
|
+
readonly name: "";
|
|
175
|
+
readonly type: "uint256";
|
|
176
|
+
}];
|
|
177
|
+
readonly stateMutability: "view";
|
|
178
|
+
readonly type: "function";
|
|
179
|
+
}, {
|
|
180
|
+
readonly inputs: readonly [{
|
|
181
|
+
readonly internalType: "uint256";
|
|
182
|
+
readonly name: "amount";
|
|
183
|
+
readonly type: "uint256";
|
|
184
|
+
}];
|
|
185
|
+
readonly name: "stake";
|
|
186
|
+
readonly outputs: readonly [];
|
|
187
|
+
readonly stateMutability: "nonpayable";
|
|
188
|
+
readonly type: "function";
|
|
189
|
+
}, {
|
|
190
|
+
readonly inputs: readonly [{
|
|
191
|
+
readonly internalType: "uint256";
|
|
192
|
+
readonly name: "amount";
|
|
193
|
+
readonly type: "uint256";
|
|
194
|
+
}, {
|
|
195
|
+
readonly internalType: "address";
|
|
196
|
+
readonly name: "recipient";
|
|
197
|
+
readonly type: "address";
|
|
198
|
+
}];
|
|
199
|
+
readonly name: "unstake";
|
|
200
|
+
readonly outputs: readonly [];
|
|
201
|
+
readonly stateMutability: "nonpayable";
|
|
202
|
+
readonly type: "function";
|
|
203
|
+
}], "allowance", readonly [`0x${string}`, `0x${string}`]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
204
|
+
decimals: (options?: import('viem').Prettify<import('viem').UnionOmit<import('viem').ReadContractParameters<readonly [{
|
|
205
|
+
readonly inputs: readonly [{
|
|
206
|
+
readonly internalType: "address";
|
|
207
|
+
readonly name: "owner";
|
|
208
|
+
readonly type: "address";
|
|
209
|
+
}, {
|
|
210
|
+
readonly internalType: "address";
|
|
211
|
+
readonly name: "spender";
|
|
212
|
+
readonly type: "address";
|
|
213
|
+
}];
|
|
214
|
+
readonly name: "allowance";
|
|
215
|
+
readonly outputs: readonly [{
|
|
216
|
+
readonly internalType: "uint256";
|
|
217
|
+
readonly name: "";
|
|
218
|
+
readonly type: "uint256";
|
|
219
|
+
}];
|
|
220
|
+
readonly stateMutability: "view";
|
|
221
|
+
readonly type: "function";
|
|
222
|
+
}, {
|
|
223
|
+
readonly inputs: readonly [{
|
|
224
|
+
readonly internalType: "address";
|
|
225
|
+
readonly name: "account";
|
|
226
|
+
readonly type: "address";
|
|
227
|
+
}];
|
|
228
|
+
readonly name: "balanceOf";
|
|
229
|
+
readonly outputs: readonly [{
|
|
230
|
+
readonly internalType: "uint256";
|
|
231
|
+
readonly name: "";
|
|
232
|
+
readonly type: "uint256";
|
|
233
|
+
}];
|
|
234
|
+
readonly stateMutability: "view";
|
|
235
|
+
readonly type: "function";
|
|
236
|
+
}, {
|
|
237
|
+
readonly inputs: readonly [];
|
|
238
|
+
readonly name: "decimals";
|
|
239
|
+
readonly outputs: readonly [{
|
|
240
|
+
readonly internalType: "uint8";
|
|
241
|
+
readonly name: "";
|
|
242
|
+
readonly type: "uint8";
|
|
243
|
+
}];
|
|
244
|
+
readonly stateMutability: "view";
|
|
245
|
+
readonly type: "function";
|
|
246
|
+
}, {
|
|
247
|
+
readonly inputs: readonly [];
|
|
248
|
+
readonly name: "isUnstakingAllowed";
|
|
249
|
+
readonly outputs: readonly [{
|
|
250
|
+
readonly internalType: "bool";
|
|
251
|
+
readonly name: "";
|
|
252
|
+
readonly type: "bool";
|
|
253
|
+
}];
|
|
254
|
+
readonly stateMutability: "view";
|
|
255
|
+
readonly type: "function";
|
|
256
|
+
}, {
|
|
257
|
+
readonly inputs: readonly [];
|
|
258
|
+
readonly name: "totalSupply";
|
|
259
|
+
readonly outputs: readonly [{
|
|
260
|
+
readonly internalType: "uint256";
|
|
261
|
+
readonly name: "";
|
|
262
|
+
readonly type: "uint256";
|
|
263
|
+
}];
|
|
264
|
+
readonly stateMutability: "view";
|
|
265
|
+
readonly type: "function";
|
|
266
|
+
}, {
|
|
267
|
+
readonly inputs: readonly [{
|
|
268
|
+
readonly internalType: "uint256";
|
|
269
|
+
readonly name: "amount";
|
|
270
|
+
readonly type: "uint256";
|
|
271
|
+
}];
|
|
272
|
+
readonly name: "stake";
|
|
273
|
+
readonly outputs: readonly [];
|
|
274
|
+
readonly stateMutability: "nonpayable";
|
|
275
|
+
readonly type: "function";
|
|
276
|
+
}, {
|
|
277
|
+
readonly inputs: readonly [{
|
|
278
|
+
readonly internalType: "uint256";
|
|
279
|
+
readonly name: "amount";
|
|
280
|
+
readonly type: "uint256";
|
|
281
|
+
}, {
|
|
282
|
+
readonly internalType: "address";
|
|
283
|
+
readonly name: "recipient";
|
|
284
|
+
readonly type: "address";
|
|
285
|
+
}];
|
|
286
|
+
readonly name: "unstake";
|
|
287
|
+
readonly outputs: readonly [];
|
|
288
|
+
readonly stateMutability: "nonpayable";
|
|
289
|
+
readonly type: "function";
|
|
290
|
+
}], "decimals", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<number>;
|
|
291
|
+
totalSupply: (options?: import('viem').Prettify<import('viem').UnionOmit<import('viem').ReadContractParameters<readonly [{
|
|
292
|
+
readonly inputs: readonly [{
|
|
293
|
+
readonly internalType: "address";
|
|
294
|
+
readonly name: "owner";
|
|
295
|
+
readonly type: "address";
|
|
296
|
+
}, {
|
|
297
|
+
readonly internalType: "address";
|
|
298
|
+
readonly name: "spender";
|
|
299
|
+
readonly type: "address";
|
|
300
|
+
}];
|
|
301
|
+
readonly name: "allowance";
|
|
302
|
+
readonly outputs: readonly [{
|
|
303
|
+
readonly internalType: "uint256";
|
|
304
|
+
readonly name: "";
|
|
305
|
+
readonly type: "uint256";
|
|
306
|
+
}];
|
|
307
|
+
readonly stateMutability: "view";
|
|
308
|
+
readonly type: "function";
|
|
309
|
+
}, {
|
|
310
|
+
readonly inputs: readonly [{
|
|
311
|
+
readonly internalType: "address";
|
|
312
|
+
readonly name: "account";
|
|
313
|
+
readonly type: "address";
|
|
314
|
+
}];
|
|
315
|
+
readonly name: "balanceOf";
|
|
316
|
+
readonly outputs: readonly [{
|
|
317
|
+
readonly internalType: "uint256";
|
|
318
|
+
readonly name: "";
|
|
319
|
+
readonly type: "uint256";
|
|
320
|
+
}];
|
|
321
|
+
readonly stateMutability: "view";
|
|
322
|
+
readonly type: "function";
|
|
323
|
+
}, {
|
|
324
|
+
readonly inputs: readonly [];
|
|
325
|
+
readonly name: "decimals";
|
|
326
|
+
readonly outputs: readonly [{
|
|
327
|
+
readonly internalType: "uint8";
|
|
328
|
+
readonly name: "";
|
|
329
|
+
readonly type: "uint8";
|
|
330
|
+
}];
|
|
331
|
+
readonly stateMutability: "view";
|
|
332
|
+
readonly type: "function";
|
|
333
|
+
}, {
|
|
334
|
+
readonly inputs: readonly [];
|
|
335
|
+
readonly name: "isUnstakingAllowed";
|
|
336
|
+
readonly outputs: readonly [{
|
|
337
|
+
readonly internalType: "bool";
|
|
338
|
+
readonly name: "";
|
|
339
|
+
readonly type: "bool";
|
|
340
|
+
}];
|
|
341
|
+
readonly stateMutability: "view";
|
|
342
|
+
readonly type: "function";
|
|
343
|
+
}, {
|
|
344
|
+
readonly inputs: readonly [];
|
|
345
|
+
readonly name: "totalSupply";
|
|
346
|
+
readonly outputs: readonly [{
|
|
347
|
+
readonly internalType: "uint256";
|
|
348
|
+
readonly name: "";
|
|
349
|
+
readonly type: "uint256";
|
|
350
|
+
}];
|
|
351
|
+
readonly stateMutability: "view";
|
|
352
|
+
readonly type: "function";
|
|
353
|
+
}, {
|
|
354
|
+
readonly inputs: readonly [{
|
|
355
|
+
readonly internalType: "uint256";
|
|
356
|
+
readonly name: "amount";
|
|
357
|
+
readonly type: "uint256";
|
|
358
|
+
}];
|
|
359
|
+
readonly name: "stake";
|
|
360
|
+
readonly outputs: readonly [];
|
|
361
|
+
readonly stateMutability: "nonpayable";
|
|
362
|
+
readonly type: "function";
|
|
363
|
+
}, {
|
|
364
|
+
readonly inputs: readonly [{
|
|
365
|
+
readonly internalType: "uint256";
|
|
366
|
+
readonly name: "amount";
|
|
367
|
+
readonly type: "uint256";
|
|
368
|
+
}, {
|
|
369
|
+
readonly internalType: "address";
|
|
370
|
+
readonly name: "recipient";
|
|
371
|
+
readonly type: "address";
|
|
372
|
+
}];
|
|
373
|
+
readonly name: "unstake";
|
|
374
|
+
readonly outputs: readonly [];
|
|
375
|
+
readonly stateMutability: "nonpayable";
|
|
376
|
+
readonly type: "function";
|
|
377
|
+
}], "totalSupply", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
378
|
+
isUnstakingAllowed: (options?: import('viem').Prettify<import('viem').UnionOmit<import('viem').ReadContractParameters<readonly [{
|
|
379
|
+
readonly inputs: readonly [{
|
|
380
|
+
readonly internalType: "address";
|
|
381
|
+
readonly name: "owner";
|
|
382
|
+
readonly type: "address";
|
|
383
|
+
}, {
|
|
384
|
+
readonly internalType: "address";
|
|
385
|
+
readonly name: "spender";
|
|
386
|
+
readonly type: "address";
|
|
387
|
+
}];
|
|
388
|
+
readonly name: "allowance";
|
|
389
|
+
readonly outputs: readonly [{
|
|
390
|
+
readonly internalType: "uint256";
|
|
391
|
+
readonly name: "";
|
|
392
|
+
readonly type: "uint256";
|
|
393
|
+
}];
|
|
394
|
+
readonly stateMutability: "view";
|
|
395
|
+
readonly type: "function";
|
|
396
|
+
}, {
|
|
397
|
+
readonly inputs: readonly [{
|
|
398
|
+
readonly internalType: "address";
|
|
399
|
+
readonly name: "account";
|
|
400
|
+
readonly type: "address";
|
|
401
|
+
}];
|
|
402
|
+
readonly name: "balanceOf";
|
|
403
|
+
readonly outputs: readonly [{
|
|
404
|
+
readonly internalType: "uint256";
|
|
405
|
+
readonly name: "";
|
|
406
|
+
readonly type: "uint256";
|
|
407
|
+
}];
|
|
408
|
+
readonly stateMutability: "view";
|
|
409
|
+
readonly type: "function";
|
|
410
|
+
}, {
|
|
411
|
+
readonly inputs: readonly [];
|
|
412
|
+
readonly name: "decimals";
|
|
413
|
+
readonly outputs: readonly [{
|
|
414
|
+
readonly internalType: "uint8";
|
|
415
|
+
readonly name: "";
|
|
416
|
+
readonly type: "uint8";
|
|
417
|
+
}];
|
|
418
|
+
readonly stateMutability: "view";
|
|
419
|
+
readonly type: "function";
|
|
420
|
+
}, {
|
|
421
|
+
readonly inputs: readonly [];
|
|
422
|
+
readonly name: "isUnstakingAllowed";
|
|
423
|
+
readonly outputs: readonly [{
|
|
424
|
+
readonly internalType: "bool";
|
|
425
|
+
readonly name: "";
|
|
426
|
+
readonly type: "bool";
|
|
427
|
+
}];
|
|
428
|
+
readonly stateMutability: "view";
|
|
429
|
+
readonly type: "function";
|
|
430
|
+
}, {
|
|
431
|
+
readonly inputs: readonly [];
|
|
432
|
+
readonly name: "totalSupply";
|
|
433
|
+
readonly outputs: readonly [{
|
|
434
|
+
readonly internalType: "uint256";
|
|
435
|
+
readonly name: "";
|
|
436
|
+
readonly type: "uint256";
|
|
437
|
+
}];
|
|
438
|
+
readonly stateMutability: "view";
|
|
439
|
+
readonly type: "function";
|
|
440
|
+
}, {
|
|
441
|
+
readonly inputs: readonly [{
|
|
442
|
+
readonly internalType: "uint256";
|
|
443
|
+
readonly name: "amount";
|
|
444
|
+
readonly type: "uint256";
|
|
445
|
+
}];
|
|
446
|
+
readonly name: "stake";
|
|
447
|
+
readonly outputs: readonly [];
|
|
448
|
+
readonly stateMutability: "nonpayable";
|
|
449
|
+
readonly type: "function";
|
|
450
|
+
}, {
|
|
451
|
+
readonly inputs: readonly [{
|
|
452
|
+
readonly internalType: "uint256";
|
|
453
|
+
readonly name: "amount";
|
|
454
|
+
readonly type: "uint256";
|
|
455
|
+
}, {
|
|
456
|
+
readonly internalType: "address";
|
|
457
|
+
readonly name: "recipient";
|
|
458
|
+
readonly type: "address";
|
|
459
|
+
}];
|
|
460
|
+
readonly name: "unstake";
|
|
461
|
+
readonly outputs: readonly [];
|
|
462
|
+
readonly stateMutability: "nonpayable";
|
|
463
|
+
readonly type: "function";
|
|
464
|
+
}], "isUnstakingAllowed", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<boolean>;
|
|
465
|
+
};
|
|
466
|
+
estimateGas: {
|
|
467
|
+
stake: (args: readonly [bigint], options: import('viem').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
|
|
468
|
+
readonly inputs: readonly [{
|
|
469
|
+
readonly internalType: "address";
|
|
470
|
+
readonly name: "owner";
|
|
471
|
+
readonly type: "address";
|
|
472
|
+
}, {
|
|
473
|
+
readonly internalType: "address";
|
|
474
|
+
readonly name: "spender";
|
|
475
|
+
readonly type: "address";
|
|
476
|
+
}];
|
|
477
|
+
readonly name: "allowance";
|
|
478
|
+
readonly outputs: readonly [{
|
|
479
|
+
readonly internalType: "uint256";
|
|
480
|
+
readonly name: "";
|
|
481
|
+
readonly type: "uint256";
|
|
482
|
+
}];
|
|
483
|
+
readonly stateMutability: "view";
|
|
484
|
+
readonly type: "function";
|
|
485
|
+
}, {
|
|
486
|
+
readonly inputs: readonly [{
|
|
487
|
+
readonly internalType: "address";
|
|
488
|
+
readonly name: "account";
|
|
489
|
+
readonly type: "address";
|
|
490
|
+
}];
|
|
491
|
+
readonly name: "balanceOf";
|
|
492
|
+
readonly outputs: readonly [{
|
|
493
|
+
readonly internalType: "uint256";
|
|
494
|
+
readonly name: "";
|
|
495
|
+
readonly type: "uint256";
|
|
496
|
+
}];
|
|
497
|
+
readonly stateMutability: "view";
|
|
498
|
+
readonly type: "function";
|
|
499
|
+
}, {
|
|
500
|
+
readonly inputs: readonly [];
|
|
501
|
+
readonly name: "decimals";
|
|
502
|
+
readonly outputs: readonly [{
|
|
503
|
+
readonly internalType: "uint8";
|
|
504
|
+
readonly name: "";
|
|
505
|
+
readonly type: "uint8";
|
|
506
|
+
}];
|
|
507
|
+
readonly stateMutability: "view";
|
|
508
|
+
readonly type: "function";
|
|
509
|
+
}, {
|
|
510
|
+
readonly inputs: readonly [];
|
|
511
|
+
readonly name: "isUnstakingAllowed";
|
|
512
|
+
readonly outputs: readonly [{
|
|
513
|
+
readonly internalType: "bool";
|
|
514
|
+
readonly name: "";
|
|
515
|
+
readonly type: "bool";
|
|
516
|
+
}];
|
|
517
|
+
readonly stateMutability: "view";
|
|
518
|
+
readonly type: "function";
|
|
519
|
+
}, {
|
|
520
|
+
readonly inputs: readonly [];
|
|
521
|
+
readonly name: "totalSupply";
|
|
522
|
+
readonly outputs: readonly [{
|
|
523
|
+
readonly internalType: "uint256";
|
|
524
|
+
readonly name: "";
|
|
525
|
+
readonly type: "uint256";
|
|
526
|
+
}];
|
|
527
|
+
readonly stateMutability: "view";
|
|
528
|
+
readonly type: "function";
|
|
529
|
+
}, {
|
|
530
|
+
readonly inputs: readonly [{
|
|
531
|
+
readonly internalType: "uint256";
|
|
532
|
+
readonly name: "amount";
|
|
533
|
+
readonly type: "uint256";
|
|
534
|
+
}];
|
|
535
|
+
readonly name: "stake";
|
|
536
|
+
readonly outputs: readonly [];
|
|
537
|
+
readonly stateMutability: "nonpayable";
|
|
538
|
+
readonly type: "function";
|
|
539
|
+
}, {
|
|
540
|
+
readonly inputs: readonly [{
|
|
541
|
+
readonly internalType: "uint256";
|
|
542
|
+
readonly name: "amount";
|
|
543
|
+
readonly type: "uint256";
|
|
544
|
+
}, {
|
|
545
|
+
readonly internalType: "address";
|
|
546
|
+
readonly name: "recipient";
|
|
547
|
+
readonly type: "address";
|
|
548
|
+
}];
|
|
549
|
+
readonly name: "unstake";
|
|
550
|
+
readonly outputs: readonly [];
|
|
551
|
+
readonly stateMutability: "nonpayable";
|
|
552
|
+
readonly type: "function";
|
|
553
|
+
}], "stake", readonly [bigint], ViemChain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<import('viem').EstimateContractGasReturnType>;
|
|
554
|
+
unstake: (args: readonly [bigint, `0x${string}`], options: import('viem').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
|
|
555
|
+
readonly inputs: readonly [{
|
|
556
|
+
readonly internalType: "address";
|
|
557
|
+
readonly name: "owner";
|
|
558
|
+
readonly type: "address";
|
|
559
|
+
}, {
|
|
560
|
+
readonly internalType: "address";
|
|
561
|
+
readonly name: "spender";
|
|
562
|
+
readonly type: "address";
|
|
563
|
+
}];
|
|
564
|
+
readonly name: "allowance";
|
|
565
|
+
readonly outputs: readonly [{
|
|
566
|
+
readonly internalType: "uint256";
|
|
567
|
+
readonly name: "";
|
|
568
|
+
readonly type: "uint256";
|
|
569
|
+
}];
|
|
570
|
+
readonly stateMutability: "view";
|
|
571
|
+
readonly type: "function";
|
|
572
|
+
}, {
|
|
573
|
+
readonly inputs: readonly [{
|
|
574
|
+
readonly internalType: "address";
|
|
575
|
+
readonly name: "account";
|
|
576
|
+
readonly type: "address";
|
|
577
|
+
}];
|
|
578
|
+
readonly name: "balanceOf";
|
|
579
|
+
readonly outputs: readonly [{
|
|
580
|
+
readonly internalType: "uint256";
|
|
581
|
+
readonly name: "";
|
|
582
|
+
readonly type: "uint256";
|
|
583
|
+
}];
|
|
584
|
+
readonly stateMutability: "view";
|
|
585
|
+
readonly type: "function";
|
|
586
|
+
}, {
|
|
587
|
+
readonly inputs: readonly [];
|
|
588
|
+
readonly name: "decimals";
|
|
589
|
+
readonly outputs: readonly [{
|
|
590
|
+
readonly internalType: "uint8";
|
|
591
|
+
readonly name: "";
|
|
592
|
+
readonly type: "uint8";
|
|
593
|
+
}];
|
|
594
|
+
readonly stateMutability: "view";
|
|
595
|
+
readonly type: "function";
|
|
596
|
+
}, {
|
|
597
|
+
readonly inputs: readonly [];
|
|
598
|
+
readonly name: "isUnstakingAllowed";
|
|
599
|
+
readonly outputs: readonly [{
|
|
600
|
+
readonly internalType: "bool";
|
|
601
|
+
readonly name: "";
|
|
602
|
+
readonly type: "bool";
|
|
603
|
+
}];
|
|
604
|
+
readonly stateMutability: "view";
|
|
605
|
+
readonly type: "function";
|
|
606
|
+
}, {
|
|
607
|
+
readonly inputs: readonly [];
|
|
608
|
+
readonly name: "totalSupply";
|
|
609
|
+
readonly outputs: readonly [{
|
|
610
|
+
readonly internalType: "uint256";
|
|
611
|
+
readonly name: "";
|
|
612
|
+
readonly type: "uint256";
|
|
613
|
+
}];
|
|
614
|
+
readonly stateMutability: "view";
|
|
615
|
+
readonly type: "function";
|
|
616
|
+
}, {
|
|
617
|
+
readonly inputs: readonly [{
|
|
618
|
+
readonly internalType: "uint256";
|
|
619
|
+
readonly name: "amount";
|
|
620
|
+
readonly type: "uint256";
|
|
621
|
+
}];
|
|
622
|
+
readonly name: "stake";
|
|
623
|
+
readonly outputs: readonly [];
|
|
624
|
+
readonly stateMutability: "nonpayable";
|
|
625
|
+
readonly type: "function";
|
|
626
|
+
}, {
|
|
627
|
+
readonly inputs: readonly [{
|
|
628
|
+
readonly internalType: "uint256";
|
|
629
|
+
readonly name: "amount";
|
|
630
|
+
readonly type: "uint256";
|
|
631
|
+
}, {
|
|
632
|
+
readonly internalType: "address";
|
|
633
|
+
readonly name: "recipient";
|
|
634
|
+
readonly type: "address";
|
|
635
|
+
}];
|
|
636
|
+
readonly name: "unstake";
|
|
637
|
+
readonly outputs: readonly [];
|
|
638
|
+
readonly stateMutability: "nonpayable";
|
|
639
|
+
readonly type: "function";
|
|
640
|
+
}], "unstake", readonly [bigint, `0x${string}`], ViemChain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<import('viem').EstimateContractGasReturnType>;
|
|
641
|
+
} & {
|
|
642
|
+
stake: (args: readonly [bigint], options: import('viem').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
|
|
643
|
+
readonly inputs: readonly [{
|
|
644
|
+
readonly internalType: "address";
|
|
645
|
+
readonly name: "owner";
|
|
646
|
+
readonly type: "address";
|
|
647
|
+
}, {
|
|
648
|
+
readonly internalType: "address";
|
|
649
|
+
readonly name: "spender";
|
|
650
|
+
readonly type: "address";
|
|
651
|
+
}];
|
|
652
|
+
readonly name: "allowance";
|
|
653
|
+
readonly outputs: readonly [{
|
|
654
|
+
readonly internalType: "uint256";
|
|
655
|
+
readonly name: "";
|
|
656
|
+
readonly type: "uint256";
|
|
657
|
+
}];
|
|
658
|
+
readonly stateMutability: "view";
|
|
659
|
+
readonly type: "function";
|
|
660
|
+
}, {
|
|
661
|
+
readonly inputs: readonly [{
|
|
662
|
+
readonly internalType: "address";
|
|
663
|
+
readonly name: "account";
|
|
664
|
+
readonly type: "address";
|
|
665
|
+
}];
|
|
666
|
+
readonly name: "balanceOf";
|
|
667
|
+
readonly outputs: readonly [{
|
|
668
|
+
readonly internalType: "uint256";
|
|
669
|
+
readonly name: "";
|
|
670
|
+
readonly type: "uint256";
|
|
671
|
+
}];
|
|
672
|
+
readonly stateMutability: "view";
|
|
673
|
+
readonly type: "function";
|
|
674
|
+
}, {
|
|
675
|
+
readonly inputs: readonly [];
|
|
676
|
+
readonly name: "decimals";
|
|
677
|
+
readonly outputs: readonly [{
|
|
678
|
+
readonly internalType: "uint8";
|
|
679
|
+
readonly name: "";
|
|
680
|
+
readonly type: "uint8";
|
|
681
|
+
}];
|
|
682
|
+
readonly stateMutability: "view";
|
|
683
|
+
readonly type: "function";
|
|
684
|
+
}, {
|
|
685
|
+
readonly inputs: readonly [];
|
|
686
|
+
readonly name: "isUnstakingAllowed";
|
|
687
|
+
readonly outputs: readonly [{
|
|
688
|
+
readonly internalType: "bool";
|
|
689
|
+
readonly name: "";
|
|
690
|
+
readonly type: "bool";
|
|
691
|
+
}];
|
|
692
|
+
readonly stateMutability: "view";
|
|
693
|
+
readonly type: "function";
|
|
694
|
+
}, {
|
|
695
|
+
readonly inputs: readonly [];
|
|
696
|
+
readonly name: "totalSupply";
|
|
697
|
+
readonly outputs: readonly [{
|
|
698
|
+
readonly internalType: "uint256";
|
|
699
|
+
readonly name: "";
|
|
700
|
+
readonly type: "uint256";
|
|
701
|
+
}];
|
|
702
|
+
readonly stateMutability: "view";
|
|
703
|
+
readonly type: "function";
|
|
704
|
+
}, {
|
|
705
|
+
readonly inputs: readonly [{
|
|
706
|
+
readonly internalType: "uint256";
|
|
707
|
+
readonly name: "amount";
|
|
708
|
+
readonly type: "uint256";
|
|
709
|
+
}];
|
|
710
|
+
readonly name: "stake";
|
|
711
|
+
readonly outputs: readonly [];
|
|
712
|
+
readonly stateMutability: "nonpayable";
|
|
713
|
+
readonly type: "function";
|
|
714
|
+
}, {
|
|
715
|
+
readonly inputs: readonly [{
|
|
716
|
+
readonly internalType: "uint256";
|
|
717
|
+
readonly name: "amount";
|
|
718
|
+
readonly type: "uint256";
|
|
719
|
+
}, {
|
|
720
|
+
readonly internalType: "address";
|
|
721
|
+
readonly name: "recipient";
|
|
722
|
+
readonly type: "address";
|
|
723
|
+
}];
|
|
724
|
+
readonly name: "unstake";
|
|
725
|
+
readonly outputs: readonly [];
|
|
726
|
+
readonly stateMutability: "nonpayable";
|
|
727
|
+
readonly type: "function";
|
|
728
|
+
}], "stake", readonly [bigint], ViemChain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<import('viem').EstimateContractGasReturnType>;
|
|
729
|
+
unstake: (args: readonly [bigint, `0x${string}`], options: import('viem').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
|
|
730
|
+
readonly inputs: readonly [{
|
|
731
|
+
readonly internalType: "address";
|
|
732
|
+
readonly name: "owner";
|
|
733
|
+
readonly type: "address";
|
|
734
|
+
}, {
|
|
735
|
+
readonly internalType: "address";
|
|
736
|
+
readonly name: "spender";
|
|
737
|
+
readonly type: "address";
|
|
738
|
+
}];
|
|
739
|
+
readonly name: "allowance";
|
|
740
|
+
readonly outputs: readonly [{
|
|
741
|
+
readonly internalType: "uint256";
|
|
742
|
+
readonly name: "";
|
|
743
|
+
readonly type: "uint256";
|
|
744
|
+
}];
|
|
745
|
+
readonly stateMutability: "view";
|
|
746
|
+
readonly type: "function";
|
|
747
|
+
}, {
|
|
748
|
+
readonly inputs: readonly [{
|
|
749
|
+
readonly internalType: "address";
|
|
750
|
+
readonly name: "account";
|
|
751
|
+
readonly type: "address";
|
|
752
|
+
}];
|
|
753
|
+
readonly name: "balanceOf";
|
|
754
|
+
readonly outputs: readonly [{
|
|
755
|
+
readonly internalType: "uint256";
|
|
756
|
+
readonly name: "";
|
|
757
|
+
readonly type: "uint256";
|
|
758
|
+
}];
|
|
759
|
+
readonly stateMutability: "view";
|
|
760
|
+
readonly type: "function";
|
|
761
|
+
}, {
|
|
762
|
+
readonly inputs: readonly [];
|
|
763
|
+
readonly name: "decimals";
|
|
764
|
+
readonly outputs: readonly [{
|
|
765
|
+
readonly internalType: "uint8";
|
|
766
|
+
readonly name: "";
|
|
767
|
+
readonly type: "uint8";
|
|
768
|
+
}];
|
|
769
|
+
readonly stateMutability: "view";
|
|
770
|
+
readonly type: "function";
|
|
771
|
+
}, {
|
|
772
|
+
readonly inputs: readonly [];
|
|
773
|
+
readonly name: "isUnstakingAllowed";
|
|
774
|
+
readonly outputs: readonly [{
|
|
775
|
+
readonly internalType: "bool";
|
|
776
|
+
readonly name: "";
|
|
777
|
+
readonly type: "bool";
|
|
778
|
+
}];
|
|
779
|
+
readonly stateMutability: "view";
|
|
780
|
+
readonly type: "function";
|
|
781
|
+
}, {
|
|
782
|
+
readonly inputs: readonly [];
|
|
783
|
+
readonly name: "totalSupply";
|
|
784
|
+
readonly outputs: readonly [{
|
|
785
|
+
readonly internalType: "uint256";
|
|
786
|
+
readonly name: "";
|
|
787
|
+
readonly type: "uint256";
|
|
788
|
+
}];
|
|
789
|
+
readonly stateMutability: "view";
|
|
790
|
+
readonly type: "function";
|
|
791
|
+
}, {
|
|
792
|
+
readonly inputs: readonly [{
|
|
793
|
+
readonly internalType: "uint256";
|
|
794
|
+
readonly name: "amount";
|
|
795
|
+
readonly type: "uint256";
|
|
796
|
+
}];
|
|
797
|
+
readonly name: "stake";
|
|
798
|
+
readonly outputs: readonly [];
|
|
799
|
+
readonly stateMutability: "nonpayable";
|
|
800
|
+
readonly type: "function";
|
|
801
|
+
}, {
|
|
802
|
+
readonly inputs: readonly [{
|
|
803
|
+
readonly internalType: "uint256";
|
|
804
|
+
readonly name: "amount";
|
|
805
|
+
readonly type: "uint256";
|
|
806
|
+
}, {
|
|
807
|
+
readonly internalType: "address";
|
|
808
|
+
readonly name: "recipient";
|
|
809
|
+
readonly type: "address";
|
|
810
|
+
}];
|
|
811
|
+
readonly name: "unstake";
|
|
812
|
+
readonly outputs: readonly [];
|
|
813
|
+
readonly stateMutability: "nonpayable";
|
|
814
|
+
readonly type: "function";
|
|
815
|
+
}], "unstake", readonly [bigint, `0x${string}`], ViemChain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<import('viem').EstimateContractGasReturnType>;
|
|
816
|
+
};
|
|
817
|
+
simulate: {
|
|
818
|
+
stake: <chainOverride extends ViemChain | undefined = undefined, accountOverride extends import('viem').Account | Address | undefined = undefined>(args: readonly [bigint], options?: Omit<import('viem').SimulateContractParameters<readonly [{
|
|
819
|
+
readonly inputs: readonly [{
|
|
820
|
+
readonly internalType: "address";
|
|
821
|
+
readonly name: "owner";
|
|
822
|
+
readonly type: "address";
|
|
823
|
+
}, {
|
|
824
|
+
readonly internalType: "address";
|
|
825
|
+
readonly name: "spender";
|
|
826
|
+
readonly type: "address";
|
|
827
|
+
}];
|
|
828
|
+
readonly name: "allowance";
|
|
829
|
+
readonly outputs: readonly [{
|
|
830
|
+
readonly internalType: "uint256";
|
|
831
|
+
readonly name: "";
|
|
832
|
+
readonly type: "uint256";
|
|
833
|
+
}];
|
|
834
|
+
readonly stateMutability: "view";
|
|
835
|
+
readonly type: "function";
|
|
836
|
+
}, {
|
|
837
|
+
readonly inputs: readonly [{
|
|
838
|
+
readonly internalType: "address";
|
|
839
|
+
readonly name: "account";
|
|
840
|
+
readonly type: "address";
|
|
841
|
+
}];
|
|
842
|
+
readonly name: "balanceOf";
|
|
843
|
+
readonly outputs: readonly [{
|
|
844
|
+
readonly internalType: "uint256";
|
|
845
|
+
readonly name: "";
|
|
846
|
+
readonly type: "uint256";
|
|
847
|
+
}];
|
|
848
|
+
readonly stateMutability: "view";
|
|
849
|
+
readonly type: "function";
|
|
850
|
+
}, {
|
|
851
|
+
readonly inputs: readonly [];
|
|
852
|
+
readonly name: "decimals";
|
|
853
|
+
readonly outputs: readonly [{
|
|
854
|
+
readonly internalType: "uint8";
|
|
855
|
+
readonly name: "";
|
|
856
|
+
readonly type: "uint8";
|
|
857
|
+
}];
|
|
858
|
+
readonly stateMutability: "view";
|
|
859
|
+
readonly type: "function";
|
|
860
|
+
}, {
|
|
861
|
+
readonly inputs: readonly [];
|
|
862
|
+
readonly name: "isUnstakingAllowed";
|
|
863
|
+
readonly outputs: readonly [{
|
|
864
|
+
readonly internalType: "bool";
|
|
865
|
+
readonly name: "";
|
|
866
|
+
readonly type: "bool";
|
|
867
|
+
}];
|
|
868
|
+
readonly stateMutability: "view";
|
|
869
|
+
readonly type: "function";
|
|
870
|
+
}, {
|
|
871
|
+
readonly inputs: readonly [];
|
|
872
|
+
readonly name: "totalSupply";
|
|
873
|
+
readonly outputs: readonly [{
|
|
874
|
+
readonly internalType: "uint256";
|
|
875
|
+
readonly name: "";
|
|
876
|
+
readonly type: "uint256";
|
|
877
|
+
}];
|
|
878
|
+
readonly stateMutability: "view";
|
|
879
|
+
readonly type: "function";
|
|
880
|
+
}, {
|
|
881
|
+
readonly inputs: readonly [{
|
|
882
|
+
readonly internalType: "uint256";
|
|
883
|
+
readonly name: "amount";
|
|
884
|
+
readonly type: "uint256";
|
|
885
|
+
}];
|
|
886
|
+
readonly name: "stake";
|
|
887
|
+
readonly outputs: readonly [];
|
|
888
|
+
readonly stateMutability: "nonpayable";
|
|
889
|
+
readonly type: "function";
|
|
890
|
+
}, {
|
|
891
|
+
readonly inputs: readonly [{
|
|
892
|
+
readonly internalType: "uint256";
|
|
893
|
+
readonly name: "amount";
|
|
894
|
+
readonly type: "uint256";
|
|
895
|
+
}, {
|
|
896
|
+
readonly internalType: "address";
|
|
897
|
+
readonly name: "recipient";
|
|
898
|
+
readonly type: "address";
|
|
899
|
+
}];
|
|
900
|
+
readonly name: "unstake";
|
|
901
|
+
readonly outputs: readonly [];
|
|
902
|
+
readonly stateMutability: "nonpayable";
|
|
903
|
+
readonly type: "function";
|
|
904
|
+
}], "stake", readonly [bigint], ViemChain | undefined, chainOverride, accountOverride>, "address" | "abi" | "args" | "functionName"> | undefined) => Promise<import('viem').SimulateContractReturnType<readonly [{
|
|
905
|
+
readonly inputs: readonly [{
|
|
906
|
+
readonly internalType: "address";
|
|
907
|
+
readonly name: "owner";
|
|
908
|
+
readonly type: "address";
|
|
909
|
+
}, {
|
|
910
|
+
readonly internalType: "address";
|
|
911
|
+
readonly name: "spender";
|
|
912
|
+
readonly type: "address";
|
|
913
|
+
}];
|
|
914
|
+
readonly name: "allowance";
|
|
915
|
+
readonly outputs: readonly [{
|
|
916
|
+
readonly internalType: "uint256";
|
|
917
|
+
readonly name: "";
|
|
918
|
+
readonly type: "uint256";
|
|
919
|
+
}];
|
|
920
|
+
readonly stateMutability: "view";
|
|
921
|
+
readonly type: "function";
|
|
922
|
+
}, {
|
|
923
|
+
readonly inputs: readonly [{
|
|
924
|
+
readonly internalType: "address";
|
|
925
|
+
readonly name: "account";
|
|
926
|
+
readonly type: "address";
|
|
927
|
+
}];
|
|
928
|
+
readonly name: "balanceOf";
|
|
929
|
+
readonly outputs: readonly [{
|
|
930
|
+
readonly internalType: "uint256";
|
|
931
|
+
readonly name: "";
|
|
932
|
+
readonly type: "uint256";
|
|
933
|
+
}];
|
|
934
|
+
readonly stateMutability: "view";
|
|
935
|
+
readonly type: "function";
|
|
936
|
+
}, {
|
|
937
|
+
readonly inputs: readonly [];
|
|
938
|
+
readonly name: "decimals";
|
|
939
|
+
readonly outputs: readonly [{
|
|
940
|
+
readonly internalType: "uint8";
|
|
941
|
+
readonly name: "";
|
|
942
|
+
readonly type: "uint8";
|
|
943
|
+
}];
|
|
944
|
+
readonly stateMutability: "view";
|
|
945
|
+
readonly type: "function";
|
|
946
|
+
}, {
|
|
947
|
+
readonly inputs: readonly [];
|
|
948
|
+
readonly name: "isUnstakingAllowed";
|
|
949
|
+
readonly outputs: readonly [{
|
|
950
|
+
readonly internalType: "bool";
|
|
951
|
+
readonly name: "";
|
|
952
|
+
readonly type: "bool";
|
|
953
|
+
}];
|
|
954
|
+
readonly stateMutability: "view";
|
|
955
|
+
readonly type: "function";
|
|
956
|
+
}, {
|
|
957
|
+
readonly inputs: readonly [];
|
|
958
|
+
readonly name: "totalSupply";
|
|
959
|
+
readonly outputs: readonly [{
|
|
960
|
+
readonly internalType: "uint256";
|
|
961
|
+
readonly name: "";
|
|
962
|
+
readonly type: "uint256";
|
|
963
|
+
}];
|
|
964
|
+
readonly stateMutability: "view";
|
|
965
|
+
readonly type: "function";
|
|
966
|
+
}, {
|
|
967
|
+
readonly inputs: readonly [{
|
|
968
|
+
readonly internalType: "uint256";
|
|
969
|
+
readonly name: "amount";
|
|
970
|
+
readonly type: "uint256";
|
|
971
|
+
}];
|
|
972
|
+
readonly name: "stake";
|
|
973
|
+
readonly outputs: readonly [];
|
|
974
|
+
readonly stateMutability: "nonpayable";
|
|
975
|
+
readonly type: "function";
|
|
976
|
+
}, {
|
|
977
|
+
readonly inputs: readonly [{
|
|
978
|
+
readonly internalType: "uint256";
|
|
979
|
+
readonly name: "amount";
|
|
980
|
+
readonly type: "uint256";
|
|
981
|
+
}, {
|
|
982
|
+
readonly internalType: "address";
|
|
983
|
+
readonly name: "recipient";
|
|
984
|
+
readonly type: "address";
|
|
985
|
+
}];
|
|
986
|
+
readonly name: "unstake";
|
|
987
|
+
readonly outputs: readonly [];
|
|
988
|
+
readonly stateMutability: "nonpayable";
|
|
989
|
+
readonly type: "function";
|
|
990
|
+
}], "stake", readonly [bigint], ViemChain | undefined, import('viem').Account | undefined, chainOverride, accountOverride>>;
|
|
991
|
+
unstake: <chainOverride extends ViemChain | undefined = undefined, accountOverride extends import('viem').Account | Address | undefined = undefined>(args: readonly [bigint, `0x${string}`], options?: Omit<import('viem').SimulateContractParameters<readonly [{
|
|
992
|
+
readonly inputs: readonly [{
|
|
993
|
+
readonly internalType: "address";
|
|
994
|
+
readonly name: "owner";
|
|
995
|
+
readonly type: "address";
|
|
996
|
+
}, {
|
|
997
|
+
readonly internalType: "address";
|
|
998
|
+
readonly name: "spender";
|
|
999
|
+
readonly type: "address";
|
|
1000
|
+
}];
|
|
1001
|
+
readonly name: "allowance";
|
|
1002
|
+
readonly outputs: readonly [{
|
|
1003
|
+
readonly internalType: "uint256";
|
|
1004
|
+
readonly name: "";
|
|
1005
|
+
readonly type: "uint256";
|
|
1006
|
+
}];
|
|
1007
|
+
readonly stateMutability: "view";
|
|
1008
|
+
readonly type: "function";
|
|
1009
|
+
}, {
|
|
1010
|
+
readonly inputs: readonly [{
|
|
1011
|
+
readonly internalType: "address";
|
|
1012
|
+
readonly name: "account";
|
|
1013
|
+
readonly type: "address";
|
|
1014
|
+
}];
|
|
1015
|
+
readonly name: "balanceOf";
|
|
1016
|
+
readonly outputs: readonly [{
|
|
1017
|
+
readonly internalType: "uint256";
|
|
1018
|
+
readonly name: "";
|
|
1019
|
+
readonly type: "uint256";
|
|
1020
|
+
}];
|
|
1021
|
+
readonly stateMutability: "view";
|
|
1022
|
+
readonly type: "function";
|
|
1023
|
+
}, {
|
|
1024
|
+
readonly inputs: readonly [];
|
|
1025
|
+
readonly name: "decimals";
|
|
1026
|
+
readonly outputs: readonly [{
|
|
1027
|
+
readonly internalType: "uint8";
|
|
1028
|
+
readonly name: "";
|
|
1029
|
+
readonly type: "uint8";
|
|
1030
|
+
}];
|
|
1031
|
+
readonly stateMutability: "view";
|
|
1032
|
+
readonly type: "function";
|
|
1033
|
+
}, {
|
|
1034
|
+
readonly inputs: readonly [];
|
|
1035
|
+
readonly name: "isUnstakingAllowed";
|
|
1036
|
+
readonly outputs: readonly [{
|
|
1037
|
+
readonly internalType: "bool";
|
|
1038
|
+
readonly name: "";
|
|
1039
|
+
readonly type: "bool";
|
|
1040
|
+
}];
|
|
1041
|
+
readonly stateMutability: "view";
|
|
1042
|
+
readonly type: "function";
|
|
1043
|
+
}, {
|
|
1044
|
+
readonly inputs: readonly [];
|
|
1045
|
+
readonly name: "totalSupply";
|
|
1046
|
+
readonly outputs: readonly [{
|
|
1047
|
+
readonly internalType: "uint256";
|
|
1048
|
+
readonly name: "";
|
|
1049
|
+
readonly type: "uint256";
|
|
1050
|
+
}];
|
|
1051
|
+
readonly stateMutability: "view";
|
|
1052
|
+
readonly type: "function";
|
|
1053
|
+
}, {
|
|
1054
|
+
readonly inputs: readonly [{
|
|
1055
|
+
readonly internalType: "uint256";
|
|
1056
|
+
readonly name: "amount";
|
|
1057
|
+
readonly type: "uint256";
|
|
1058
|
+
}];
|
|
1059
|
+
readonly name: "stake";
|
|
1060
|
+
readonly outputs: readonly [];
|
|
1061
|
+
readonly stateMutability: "nonpayable";
|
|
1062
|
+
readonly type: "function";
|
|
1063
|
+
}, {
|
|
1064
|
+
readonly inputs: readonly [{
|
|
1065
|
+
readonly internalType: "uint256";
|
|
1066
|
+
readonly name: "amount";
|
|
1067
|
+
readonly type: "uint256";
|
|
1068
|
+
}, {
|
|
1069
|
+
readonly internalType: "address";
|
|
1070
|
+
readonly name: "recipient";
|
|
1071
|
+
readonly type: "address";
|
|
1072
|
+
}];
|
|
1073
|
+
readonly name: "unstake";
|
|
1074
|
+
readonly outputs: readonly [];
|
|
1075
|
+
readonly stateMutability: "nonpayable";
|
|
1076
|
+
readonly type: "function";
|
|
1077
|
+
}], "unstake", readonly [bigint, `0x${string}`], ViemChain | undefined, chainOverride, accountOverride>, "address" | "abi" | "args" | "functionName"> | undefined) => Promise<import('viem').SimulateContractReturnType<readonly [{
|
|
1078
|
+
readonly inputs: readonly [{
|
|
1079
|
+
readonly internalType: "address";
|
|
1080
|
+
readonly name: "owner";
|
|
1081
|
+
readonly type: "address";
|
|
1082
|
+
}, {
|
|
1083
|
+
readonly internalType: "address";
|
|
1084
|
+
readonly name: "spender";
|
|
1085
|
+
readonly type: "address";
|
|
1086
|
+
}];
|
|
1087
|
+
readonly name: "allowance";
|
|
1088
|
+
readonly outputs: readonly [{
|
|
1089
|
+
readonly internalType: "uint256";
|
|
1090
|
+
readonly name: "";
|
|
1091
|
+
readonly type: "uint256";
|
|
1092
|
+
}];
|
|
1093
|
+
readonly stateMutability: "view";
|
|
1094
|
+
readonly type: "function";
|
|
1095
|
+
}, {
|
|
1096
|
+
readonly inputs: readonly [{
|
|
1097
|
+
readonly internalType: "address";
|
|
1098
|
+
readonly name: "account";
|
|
1099
|
+
readonly type: "address";
|
|
1100
|
+
}];
|
|
1101
|
+
readonly name: "balanceOf";
|
|
1102
|
+
readonly outputs: readonly [{
|
|
1103
|
+
readonly internalType: "uint256";
|
|
1104
|
+
readonly name: "";
|
|
1105
|
+
readonly type: "uint256";
|
|
1106
|
+
}];
|
|
1107
|
+
readonly stateMutability: "view";
|
|
1108
|
+
readonly type: "function";
|
|
1109
|
+
}, {
|
|
1110
|
+
readonly inputs: readonly [];
|
|
1111
|
+
readonly name: "decimals";
|
|
1112
|
+
readonly outputs: readonly [{
|
|
1113
|
+
readonly internalType: "uint8";
|
|
1114
|
+
readonly name: "";
|
|
1115
|
+
readonly type: "uint8";
|
|
1116
|
+
}];
|
|
1117
|
+
readonly stateMutability: "view";
|
|
1118
|
+
readonly type: "function";
|
|
1119
|
+
}, {
|
|
1120
|
+
readonly inputs: readonly [];
|
|
1121
|
+
readonly name: "isUnstakingAllowed";
|
|
1122
|
+
readonly outputs: readonly [{
|
|
1123
|
+
readonly internalType: "bool";
|
|
1124
|
+
readonly name: "";
|
|
1125
|
+
readonly type: "bool";
|
|
1126
|
+
}];
|
|
1127
|
+
readonly stateMutability: "view";
|
|
1128
|
+
readonly type: "function";
|
|
1129
|
+
}, {
|
|
1130
|
+
readonly inputs: readonly [];
|
|
1131
|
+
readonly name: "totalSupply";
|
|
1132
|
+
readonly outputs: readonly [{
|
|
1133
|
+
readonly internalType: "uint256";
|
|
1134
|
+
readonly name: "";
|
|
1135
|
+
readonly type: "uint256";
|
|
1136
|
+
}];
|
|
1137
|
+
readonly stateMutability: "view";
|
|
1138
|
+
readonly type: "function";
|
|
1139
|
+
}, {
|
|
1140
|
+
readonly inputs: readonly [{
|
|
1141
|
+
readonly internalType: "uint256";
|
|
1142
|
+
readonly name: "amount";
|
|
1143
|
+
readonly type: "uint256";
|
|
1144
|
+
}];
|
|
1145
|
+
readonly name: "stake";
|
|
1146
|
+
readonly outputs: readonly [];
|
|
1147
|
+
readonly stateMutability: "nonpayable";
|
|
1148
|
+
readonly type: "function";
|
|
1149
|
+
}, {
|
|
1150
|
+
readonly inputs: readonly [{
|
|
1151
|
+
readonly internalType: "uint256";
|
|
1152
|
+
readonly name: "amount";
|
|
1153
|
+
readonly type: "uint256";
|
|
1154
|
+
}, {
|
|
1155
|
+
readonly internalType: "address";
|
|
1156
|
+
readonly name: "recipient";
|
|
1157
|
+
readonly type: "address";
|
|
1158
|
+
}];
|
|
1159
|
+
readonly name: "unstake";
|
|
1160
|
+
readonly outputs: readonly [];
|
|
1161
|
+
readonly stateMutability: "nonpayable";
|
|
1162
|
+
readonly type: "function";
|
|
1163
|
+
}], "unstake", readonly [bigint, `0x${string}`], ViemChain | undefined, import('viem').Account | undefined, chainOverride, accountOverride>>;
|
|
1164
|
+
};
|
|
1165
|
+
write: {
|
|
1166
|
+
stake: <chainOverride extends ViemChain | undefined, options extends import('viem').UnionOmit<import('viem').WriteContractParameters<readonly [{
|
|
1167
|
+
readonly inputs: readonly [{
|
|
1168
|
+
readonly internalType: "address";
|
|
1169
|
+
readonly name: "owner";
|
|
1170
|
+
readonly type: "address";
|
|
1171
|
+
}, {
|
|
1172
|
+
readonly internalType: "address";
|
|
1173
|
+
readonly name: "spender";
|
|
1174
|
+
readonly type: "address";
|
|
1175
|
+
}];
|
|
1176
|
+
readonly name: "allowance";
|
|
1177
|
+
readonly outputs: readonly [{
|
|
1178
|
+
readonly internalType: "uint256";
|
|
1179
|
+
readonly name: "";
|
|
1180
|
+
readonly type: "uint256";
|
|
1181
|
+
}];
|
|
1182
|
+
readonly stateMutability: "view";
|
|
1183
|
+
readonly type: "function";
|
|
1184
|
+
}, {
|
|
1185
|
+
readonly inputs: readonly [{
|
|
1186
|
+
readonly internalType: "address";
|
|
1187
|
+
readonly name: "account";
|
|
1188
|
+
readonly type: "address";
|
|
1189
|
+
}];
|
|
1190
|
+
readonly name: "balanceOf";
|
|
1191
|
+
readonly outputs: readonly [{
|
|
1192
|
+
readonly internalType: "uint256";
|
|
1193
|
+
readonly name: "";
|
|
1194
|
+
readonly type: "uint256";
|
|
1195
|
+
}];
|
|
1196
|
+
readonly stateMutability: "view";
|
|
1197
|
+
readonly type: "function";
|
|
1198
|
+
}, {
|
|
1199
|
+
readonly inputs: readonly [];
|
|
1200
|
+
readonly name: "decimals";
|
|
1201
|
+
readonly outputs: readonly [{
|
|
1202
|
+
readonly internalType: "uint8";
|
|
1203
|
+
readonly name: "";
|
|
1204
|
+
readonly type: "uint8";
|
|
1205
|
+
}];
|
|
1206
|
+
readonly stateMutability: "view";
|
|
1207
|
+
readonly type: "function";
|
|
1208
|
+
}, {
|
|
1209
|
+
readonly inputs: readonly [];
|
|
1210
|
+
readonly name: "isUnstakingAllowed";
|
|
1211
|
+
readonly outputs: readonly [{
|
|
1212
|
+
readonly internalType: "bool";
|
|
1213
|
+
readonly name: "";
|
|
1214
|
+
readonly type: "bool";
|
|
1215
|
+
}];
|
|
1216
|
+
readonly stateMutability: "view";
|
|
1217
|
+
readonly type: "function";
|
|
1218
|
+
}, {
|
|
1219
|
+
readonly inputs: readonly [];
|
|
1220
|
+
readonly name: "totalSupply";
|
|
1221
|
+
readonly outputs: readonly [{
|
|
1222
|
+
readonly internalType: "uint256";
|
|
1223
|
+
readonly name: "";
|
|
1224
|
+
readonly type: "uint256";
|
|
1225
|
+
}];
|
|
1226
|
+
readonly stateMutability: "view";
|
|
1227
|
+
readonly type: "function";
|
|
1228
|
+
}, {
|
|
1229
|
+
readonly inputs: readonly [{
|
|
1230
|
+
readonly internalType: "uint256";
|
|
1231
|
+
readonly name: "amount";
|
|
1232
|
+
readonly type: "uint256";
|
|
1233
|
+
}];
|
|
1234
|
+
readonly name: "stake";
|
|
1235
|
+
readonly outputs: readonly [];
|
|
1236
|
+
readonly stateMutability: "nonpayable";
|
|
1237
|
+
readonly type: "function";
|
|
1238
|
+
}, {
|
|
1239
|
+
readonly inputs: readonly [{
|
|
1240
|
+
readonly internalType: "uint256";
|
|
1241
|
+
readonly name: "amount";
|
|
1242
|
+
readonly type: "uint256";
|
|
1243
|
+
}, {
|
|
1244
|
+
readonly internalType: "address";
|
|
1245
|
+
readonly name: "recipient";
|
|
1246
|
+
readonly type: "address";
|
|
1247
|
+
}];
|
|
1248
|
+
readonly name: "unstake";
|
|
1249
|
+
readonly outputs: readonly [];
|
|
1250
|
+
readonly stateMutability: "nonpayable";
|
|
1251
|
+
readonly type: "function";
|
|
1252
|
+
}], "stake", readonly [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 [{
|
|
1253
|
+
readonly inputs: readonly [{
|
|
1254
|
+
readonly internalType: "address";
|
|
1255
|
+
readonly name: "owner";
|
|
1256
|
+
readonly type: "address";
|
|
1257
|
+
}, {
|
|
1258
|
+
readonly internalType: "address";
|
|
1259
|
+
readonly name: "spender";
|
|
1260
|
+
readonly type: "address";
|
|
1261
|
+
}];
|
|
1262
|
+
readonly name: "allowance";
|
|
1263
|
+
readonly outputs: readonly [{
|
|
1264
|
+
readonly internalType: "uint256";
|
|
1265
|
+
readonly name: "";
|
|
1266
|
+
readonly type: "uint256";
|
|
1267
|
+
}];
|
|
1268
|
+
readonly stateMutability: "view";
|
|
1269
|
+
readonly type: "function";
|
|
1270
|
+
}, {
|
|
1271
|
+
readonly inputs: readonly [{
|
|
1272
|
+
readonly internalType: "address";
|
|
1273
|
+
readonly name: "account";
|
|
1274
|
+
readonly type: "address";
|
|
1275
|
+
}];
|
|
1276
|
+
readonly name: "balanceOf";
|
|
1277
|
+
readonly outputs: readonly [{
|
|
1278
|
+
readonly internalType: "uint256";
|
|
1279
|
+
readonly name: "";
|
|
1280
|
+
readonly type: "uint256";
|
|
1281
|
+
}];
|
|
1282
|
+
readonly stateMutability: "view";
|
|
1283
|
+
readonly type: "function";
|
|
1284
|
+
}, {
|
|
1285
|
+
readonly inputs: readonly [];
|
|
1286
|
+
readonly name: "decimals";
|
|
1287
|
+
readonly outputs: readonly [{
|
|
1288
|
+
readonly internalType: "uint8";
|
|
1289
|
+
readonly name: "";
|
|
1290
|
+
readonly type: "uint8";
|
|
1291
|
+
}];
|
|
1292
|
+
readonly stateMutability: "view";
|
|
1293
|
+
readonly type: "function";
|
|
1294
|
+
}, {
|
|
1295
|
+
readonly inputs: readonly [];
|
|
1296
|
+
readonly name: "isUnstakingAllowed";
|
|
1297
|
+
readonly outputs: readonly [{
|
|
1298
|
+
readonly internalType: "bool";
|
|
1299
|
+
readonly name: "";
|
|
1300
|
+
readonly type: "bool";
|
|
1301
|
+
}];
|
|
1302
|
+
readonly stateMutability: "view";
|
|
1303
|
+
readonly type: "function";
|
|
1304
|
+
}, {
|
|
1305
|
+
readonly inputs: readonly [];
|
|
1306
|
+
readonly name: "totalSupply";
|
|
1307
|
+
readonly outputs: readonly [{
|
|
1308
|
+
readonly internalType: "uint256";
|
|
1309
|
+
readonly name: "";
|
|
1310
|
+
readonly type: "uint256";
|
|
1311
|
+
}];
|
|
1312
|
+
readonly stateMutability: "view";
|
|
1313
|
+
readonly type: "function";
|
|
1314
|
+
}, {
|
|
1315
|
+
readonly inputs: readonly [{
|
|
1316
|
+
readonly internalType: "uint256";
|
|
1317
|
+
readonly name: "amount";
|
|
1318
|
+
readonly type: "uint256";
|
|
1319
|
+
}];
|
|
1320
|
+
readonly name: "stake";
|
|
1321
|
+
readonly outputs: readonly [];
|
|
1322
|
+
readonly stateMutability: "nonpayable";
|
|
1323
|
+
readonly type: "function";
|
|
1324
|
+
}, {
|
|
1325
|
+
readonly inputs: readonly [{
|
|
1326
|
+
readonly internalType: "uint256";
|
|
1327
|
+
readonly name: "amount";
|
|
1328
|
+
readonly type: "uint256";
|
|
1329
|
+
}, {
|
|
1330
|
+
readonly internalType: "address";
|
|
1331
|
+
readonly name: "recipient";
|
|
1332
|
+
readonly type: "address";
|
|
1333
|
+
}];
|
|
1334
|
+
readonly name: "unstake";
|
|
1335
|
+
readonly outputs: readonly [];
|
|
1336
|
+
readonly stateMutability: "nonpayable";
|
|
1337
|
+
readonly type: "function";
|
|
1338
|
+
}], "stake", readonly [bigint], ViemChain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "abi" | "args" | "functionName">[K]; } : never>(args: readonly [bigint], options: options) => Promise<import('viem').WriteContractReturnType>;
|
|
1339
|
+
unstake: <chainOverride extends ViemChain | undefined, options extends import('viem').UnionOmit<import('viem').WriteContractParameters<readonly [{
|
|
1340
|
+
readonly inputs: readonly [{
|
|
1341
|
+
readonly internalType: "address";
|
|
1342
|
+
readonly name: "owner";
|
|
1343
|
+
readonly type: "address";
|
|
1344
|
+
}, {
|
|
1345
|
+
readonly internalType: "address";
|
|
1346
|
+
readonly name: "spender";
|
|
1347
|
+
readonly type: "address";
|
|
1348
|
+
}];
|
|
1349
|
+
readonly name: "allowance";
|
|
1350
|
+
readonly outputs: readonly [{
|
|
1351
|
+
readonly internalType: "uint256";
|
|
1352
|
+
readonly name: "";
|
|
1353
|
+
readonly type: "uint256";
|
|
1354
|
+
}];
|
|
1355
|
+
readonly stateMutability: "view";
|
|
1356
|
+
readonly type: "function";
|
|
1357
|
+
}, {
|
|
1358
|
+
readonly inputs: readonly [{
|
|
1359
|
+
readonly internalType: "address";
|
|
1360
|
+
readonly name: "account";
|
|
1361
|
+
readonly type: "address";
|
|
1362
|
+
}];
|
|
1363
|
+
readonly name: "balanceOf";
|
|
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: "decimals";
|
|
1374
|
+
readonly outputs: readonly [{
|
|
1375
|
+
readonly internalType: "uint8";
|
|
1376
|
+
readonly name: "";
|
|
1377
|
+
readonly type: "uint8";
|
|
1378
|
+
}];
|
|
1379
|
+
readonly stateMutability: "view";
|
|
1380
|
+
readonly type: "function";
|
|
1381
|
+
}, {
|
|
1382
|
+
readonly inputs: readonly [];
|
|
1383
|
+
readonly name: "isUnstakingAllowed";
|
|
1384
|
+
readonly outputs: readonly [{
|
|
1385
|
+
readonly internalType: "bool";
|
|
1386
|
+
readonly name: "";
|
|
1387
|
+
readonly type: "bool";
|
|
1388
|
+
}];
|
|
1389
|
+
readonly stateMutability: "view";
|
|
1390
|
+
readonly type: "function";
|
|
1391
|
+
}, {
|
|
1392
|
+
readonly inputs: readonly [];
|
|
1393
|
+
readonly name: "totalSupply";
|
|
1394
|
+
readonly outputs: readonly [{
|
|
1395
|
+
readonly internalType: "uint256";
|
|
1396
|
+
readonly name: "";
|
|
1397
|
+
readonly type: "uint256";
|
|
1398
|
+
}];
|
|
1399
|
+
readonly stateMutability: "view";
|
|
1400
|
+
readonly type: "function";
|
|
1401
|
+
}, {
|
|
1402
|
+
readonly inputs: readonly [{
|
|
1403
|
+
readonly internalType: "uint256";
|
|
1404
|
+
readonly name: "amount";
|
|
1405
|
+
readonly type: "uint256";
|
|
1406
|
+
}];
|
|
1407
|
+
readonly name: "stake";
|
|
1408
|
+
readonly outputs: readonly [];
|
|
1409
|
+
readonly stateMutability: "nonpayable";
|
|
1410
|
+
readonly type: "function";
|
|
1411
|
+
}, {
|
|
1412
|
+
readonly inputs: readonly [{
|
|
1413
|
+
readonly internalType: "uint256";
|
|
1414
|
+
readonly name: "amount";
|
|
1415
|
+
readonly type: "uint256";
|
|
1416
|
+
}, {
|
|
1417
|
+
readonly internalType: "address";
|
|
1418
|
+
readonly name: "recipient";
|
|
1419
|
+
readonly type: "address";
|
|
1420
|
+
}];
|
|
1421
|
+
readonly name: "unstake";
|
|
1422
|
+
readonly outputs: readonly [];
|
|
1423
|
+
readonly stateMutability: "nonpayable";
|
|
1424
|
+
readonly type: "function";
|
|
1425
|
+
}], "unstake", readonly [bigint, `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 [{
|
|
1426
|
+
readonly inputs: readonly [{
|
|
1427
|
+
readonly internalType: "address";
|
|
1428
|
+
readonly name: "owner";
|
|
1429
|
+
readonly type: "address";
|
|
1430
|
+
}, {
|
|
1431
|
+
readonly internalType: "address";
|
|
1432
|
+
readonly name: "spender";
|
|
1433
|
+
readonly type: "address";
|
|
1434
|
+
}];
|
|
1435
|
+
readonly name: "allowance";
|
|
1436
|
+
readonly outputs: readonly [{
|
|
1437
|
+
readonly internalType: "uint256";
|
|
1438
|
+
readonly name: "";
|
|
1439
|
+
readonly type: "uint256";
|
|
1440
|
+
}];
|
|
1441
|
+
readonly stateMutability: "view";
|
|
1442
|
+
readonly type: "function";
|
|
1443
|
+
}, {
|
|
1444
|
+
readonly inputs: readonly [{
|
|
1445
|
+
readonly internalType: "address";
|
|
1446
|
+
readonly name: "account";
|
|
1447
|
+
readonly type: "address";
|
|
1448
|
+
}];
|
|
1449
|
+
readonly name: "balanceOf";
|
|
1450
|
+
readonly outputs: readonly [{
|
|
1451
|
+
readonly internalType: "uint256";
|
|
1452
|
+
readonly name: "";
|
|
1453
|
+
readonly type: "uint256";
|
|
1454
|
+
}];
|
|
1455
|
+
readonly stateMutability: "view";
|
|
1456
|
+
readonly type: "function";
|
|
1457
|
+
}, {
|
|
1458
|
+
readonly inputs: readonly [];
|
|
1459
|
+
readonly name: "decimals";
|
|
1460
|
+
readonly outputs: readonly [{
|
|
1461
|
+
readonly internalType: "uint8";
|
|
1462
|
+
readonly name: "";
|
|
1463
|
+
readonly type: "uint8";
|
|
1464
|
+
}];
|
|
1465
|
+
readonly stateMutability: "view";
|
|
1466
|
+
readonly type: "function";
|
|
1467
|
+
}, {
|
|
1468
|
+
readonly inputs: readonly [];
|
|
1469
|
+
readonly name: "isUnstakingAllowed";
|
|
1470
|
+
readonly outputs: readonly [{
|
|
1471
|
+
readonly internalType: "bool";
|
|
1472
|
+
readonly name: "";
|
|
1473
|
+
readonly type: "bool";
|
|
1474
|
+
}];
|
|
1475
|
+
readonly stateMutability: "view";
|
|
1476
|
+
readonly type: "function";
|
|
1477
|
+
}, {
|
|
1478
|
+
readonly inputs: readonly [];
|
|
1479
|
+
readonly name: "totalSupply";
|
|
1480
|
+
readonly outputs: readonly [{
|
|
1481
|
+
readonly internalType: "uint256";
|
|
1482
|
+
readonly name: "";
|
|
1483
|
+
readonly type: "uint256";
|
|
1484
|
+
}];
|
|
1485
|
+
readonly stateMutability: "view";
|
|
1486
|
+
readonly type: "function";
|
|
1487
|
+
}, {
|
|
1488
|
+
readonly inputs: readonly [{
|
|
1489
|
+
readonly internalType: "uint256";
|
|
1490
|
+
readonly name: "amount";
|
|
1491
|
+
readonly type: "uint256";
|
|
1492
|
+
}];
|
|
1493
|
+
readonly name: "stake";
|
|
1494
|
+
readonly outputs: readonly [];
|
|
1495
|
+
readonly stateMutability: "nonpayable";
|
|
1496
|
+
readonly type: "function";
|
|
1497
|
+
}, {
|
|
1498
|
+
readonly inputs: readonly [{
|
|
1499
|
+
readonly internalType: "uint256";
|
|
1500
|
+
readonly name: "amount";
|
|
1501
|
+
readonly type: "uint256";
|
|
1502
|
+
}, {
|
|
1503
|
+
readonly internalType: "address";
|
|
1504
|
+
readonly name: "recipient";
|
|
1505
|
+
readonly type: "address";
|
|
1506
|
+
}];
|
|
1507
|
+
readonly name: "unstake";
|
|
1508
|
+
readonly outputs: readonly [];
|
|
1509
|
+
readonly stateMutability: "nonpayable";
|
|
1510
|
+
readonly type: "function";
|
|
1511
|
+
}], "unstake", readonly [bigint, `0x${string}`], ViemChain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "abi" | "args" | "functionName">[K]; } : never>(args: readonly [bigint, `0x${string}`], options: options) => Promise<import('viem').WriteContractReturnType>;
|
|
1512
|
+
};
|
|
1513
|
+
address: `0x${string}`;
|
|
1514
|
+
abi: readonly [{
|
|
1515
|
+
readonly inputs: readonly [{
|
|
1516
|
+
readonly internalType: "address";
|
|
1517
|
+
readonly name: "owner";
|
|
1518
|
+
readonly type: "address";
|
|
1519
|
+
}, {
|
|
1520
|
+
readonly internalType: "address";
|
|
1521
|
+
readonly name: "spender";
|
|
1522
|
+
readonly type: "address";
|
|
1523
|
+
}];
|
|
1524
|
+
readonly name: "allowance";
|
|
1525
|
+
readonly outputs: readonly [{
|
|
1526
|
+
readonly internalType: "uint256";
|
|
1527
|
+
readonly name: "";
|
|
1528
|
+
readonly type: "uint256";
|
|
1529
|
+
}];
|
|
1530
|
+
readonly stateMutability: "view";
|
|
1531
|
+
readonly type: "function";
|
|
1532
|
+
}, {
|
|
1533
|
+
readonly inputs: readonly [{
|
|
1534
|
+
readonly internalType: "address";
|
|
1535
|
+
readonly name: "account";
|
|
1536
|
+
readonly type: "address";
|
|
1537
|
+
}];
|
|
1538
|
+
readonly name: "balanceOf";
|
|
1539
|
+
readonly outputs: readonly [{
|
|
1540
|
+
readonly internalType: "uint256";
|
|
1541
|
+
readonly name: "";
|
|
1542
|
+
readonly type: "uint256";
|
|
1543
|
+
}];
|
|
1544
|
+
readonly stateMutability: "view";
|
|
1545
|
+
readonly type: "function";
|
|
1546
|
+
}, {
|
|
1547
|
+
readonly inputs: readonly [];
|
|
1548
|
+
readonly name: "decimals";
|
|
1549
|
+
readonly outputs: readonly [{
|
|
1550
|
+
readonly internalType: "uint8";
|
|
1551
|
+
readonly name: "";
|
|
1552
|
+
readonly type: "uint8";
|
|
1553
|
+
}];
|
|
1554
|
+
readonly stateMutability: "view";
|
|
1555
|
+
readonly type: "function";
|
|
1556
|
+
}, {
|
|
1557
|
+
readonly inputs: readonly [];
|
|
1558
|
+
readonly name: "isUnstakingAllowed";
|
|
1559
|
+
readonly outputs: readonly [{
|
|
1560
|
+
readonly internalType: "bool";
|
|
1561
|
+
readonly name: "";
|
|
1562
|
+
readonly type: "bool";
|
|
1563
|
+
}];
|
|
1564
|
+
readonly stateMutability: "view";
|
|
1565
|
+
readonly type: "function";
|
|
1566
|
+
}, {
|
|
1567
|
+
readonly inputs: readonly [];
|
|
1568
|
+
readonly name: "totalSupply";
|
|
1569
|
+
readonly outputs: readonly [{
|
|
1570
|
+
readonly internalType: "uint256";
|
|
1571
|
+
readonly name: "";
|
|
1572
|
+
readonly type: "uint256";
|
|
1573
|
+
}];
|
|
1574
|
+
readonly stateMutability: "view";
|
|
1575
|
+
readonly type: "function";
|
|
1576
|
+
}, {
|
|
1577
|
+
readonly inputs: readonly [{
|
|
1578
|
+
readonly internalType: "uint256";
|
|
1579
|
+
readonly name: "amount";
|
|
1580
|
+
readonly type: "uint256";
|
|
1581
|
+
}];
|
|
1582
|
+
readonly name: "stake";
|
|
1583
|
+
readonly outputs: readonly [];
|
|
1584
|
+
readonly stateMutability: "nonpayable";
|
|
1585
|
+
readonly type: "function";
|
|
1586
|
+
}, {
|
|
1587
|
+
readonly inputs: readonly [{
|
|
1588
|
+
readonly internalType: "uint256";
|
|
1589
|
+
readonly name: "amount";
|
|
1590
|
+
readonly type: "uint256";
|
|
1591
|
+
}, {
|
|
1592
|
+
readonly internalType: "address";
|
|
1593
|
+
readonly name: "recipient";
|
|
1594
|
+
readonly type: "address";
|
|
1595
|
+
}];
|
|
1596
|
+
readonly name: "unstake";
|
|
1597
|
+
readonly outputs: readonly [];
|
|
1598
|
+
readonly stateMutability: "nonpayable";
|
|
1599
|
+
readonly type: "function";
|
|
1600
|
+
}];
|
|
1601
|
+
};
|
|
1602
|
+
/**
|
|
1603
|
+
* Get the allowance for the spender to spend the owner's tokens.
|
|
1604
|
+
*
|
|
1605
|
+
* @param owner The owner of the tokens.
|
|
1606
|
+
* @param spender The spender of the tokens.
|
|
1607
|
+
* @returns The allowance of the owner for the spender.
|
|
1608
|
+
*/
|
|
1609
|
+
allowance(owner: Address, spender: Address): Promise<bigint>;
|
|
1610
|
+
/**
|
|
1611
|
+
* Get the balance of the address.
|
|
1612
|
+
*
|
|
1613
|
+
* @param address The address to get the balance of.
|
|
1614
|
+
* @returns The balance of the address.
|
|
1615
|
+
*/
|
|
1616
|
+
balanceOf(address: Address): Promise<bigint>;
|
|
1617
|
+
/**
|
|
1618
|
+
* Get the number of decimals of the token.
|
|
1619
|
+
*
|
|
1620
|
+
* @returns The number of decimals of the token.
|
|
1621
|
+
*/
|
|
1622
|
+
decimals(): Promise<number>;
|
|
1623
|
+
/**
|
|
1624
|
+
* Get whether unstaking is allowed.
|
|
1625
|
+
*
|
|
1626
|
+
* @returns Whether unstaking is allowed.
|
|
1627
|
+
*/
|
|
1628
|
+
isUnstakingAllowed(): Promise<boolean>;
|
|
1629
|
+
/**
|
|
1630
|
+
* Get the total supply of the token.
|
|
1631
|
+
*
|
|
1632
|
+
* @returns The total supply of the token.
|
|
1633
|
+
*/
|
|
1634
|
+
totalSupply(): Promise<bigint>;
|
|
1635
|
+
/**
|
|
1636
|
+
* Stake CARROT tokens.
|
|
1637
|
+
*
|
|
1638
|
+
* @param account The account to stake CARROT tokens from.
|
|
1639
|
+
* @param amount The amount of CARROT tokens to stake.
|
|
1640
|
+
* @returns The transaction hash.
|
|
1641
|
+
*/
|
|
1642
|
+
stake(account: Address, amount: bigint): Promise<`0x${string}`>;
|
|
1643
|
+
/**
|
|
1644
|
+
* Unstake CARROT tokens.
|
|
1645
|
+
*
|
|
1646
|
+
* @param account The account to unstake CARROT tokens from.
|
|
1647
|
+
* @param amount The amount of CARROT tokens to unstake.
|
|
1648
|
+
* @param recipient The recipient of the unstaked tokens.
|
|
1649
|
+
* @returns The transaction hash.
|
|
1650
|
+
*/
|
|
1651
|
+
unstake(account: Address, amount: bigint, recipient: Address): Promise<`0x${string}`>;
|
|
1652
|
+
}
|