@ichidao/ichi-vaults-sdk 0.1.43 → 2.0.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/README.md +62 -208
- package/dist/abis/types/AlgebraIntegralPool.d.ts +702 -793
- package/dist/abis/types/AlgebraPool.d.ts +693 -730
- package/dist/abis/types/ClPool.d.ts +789 -871
- package/dist/abis/types/DepositGuard.d.ts +193 -178
- package/dist/abis/types/DepositGuardWithHtsWrapping.d.ts +300 -297
- package/dist/abis/types/ERC20.d.ts +120 -147
- package/dist/abis/types/ERC20Wrapper.d.ts +147 -155
- package/dist/abis/types/IchiVault.d.ts +598 -728
- package/dist/abis/types/MultiFeeDistributer.d.ts +314 -423
- package/dist/abis/types/Multicall.d.ts +58 -73
- package/dist/abis/types/UniswapV3Pool.d.ts +654 -693
- package/dist/abis/types/common.d.ts +40 -12
- package/dist/abis/types/factories/AlgebraIntegralPool__factory.d.ts +2 -3
- package/dist/abis/types/factories/AlgebraIntegralPool__factory.js +10 -13
- package/dist/abis/types/factories/AlgebraIntegralPool__factory.js.map +1 -1
- package/dist/abis/types/factories/AlgebraPool__factory.d.ts +2 -3
- package/dist/abis/types/factories/AlgebraPool__factory.js +10 -13
- package/dist/abis/types/factories/AlgebraPool__factory.js.map +1 -1
- package/dist/abis/types/factories/ClPool__factory.d.ts +2 -3
- package/dist/abis/types/factories/ClPool__factory.js +10 -13
- package/dist/abis/types/factories/ClPool__factory.js.map +1 -1
- package/dist/abis/types/factories/DepositGuardWithHtsWrapping__factory.d.ts +2 -3
- package/dist/abis/types/factories/DepositGuardWithHtsWrapping__factory.js +10 -13
- package/dist/abis/types/factories/DepositGuardWithHtsWrapping__factory.js.map +1 -1
- package/dist/abis/types/factories/DepositGuard__factory.d.ts +2 -3
- package/dist/abis/types/factories/DepositGuard__factory.js +10 -13
- package/dist/abis/types/factories/DepositGuard__factory.js.map +1 -1
- package/dist/abis/types/factories/ERC20Wrapper__factory.d.ts +2 -3
- package/dist/abis/types/factories/ERC20Wrapper__factory.js +10 -13
- package/dist/abis/types/factories/ERC20Wrapper__factory.js.map +1 -1
- package/dist/abis/types/factories/ERC20__factory.d.ts +2 -3
- package/dist/abis/types/factories/ERC20__factory.js +10 -13
- package/dist/abis/types/factories/ERC20__factory.js.map +1 -1
- package/dist/abis/types/factories/IchiVault__factory.d.ts +2 -3
- package/dist/abis/types/factories/IchiVault__factory.js +10 -13
- package/dist/abis/types/factories/IchiVault__factory.js.map +1 -1
- package/dist/abis/types/factories/MultiFeeDistributer__factory.d.ts +2 -3
- package/dist/abis/types/factories/MultiFeeDistributer__factory.js +10 -13
- package/dist/abis/types/factories/MultiFeeDistributer__factory.js.map +1 -1
- package/dist/abis/types/factories/Multicall__factory.d.ts +2 -3
- package/dist/abis/types/factories/Multicall__factory.js +10 -13
- package/dist/abis/types/factories/Multicall__factory.js.map +1 -1
- package/dist/abis/types/factories/UniswapV3Pool__factory.d.ts +2 -3
- package/dist/abis/types/factories/UniswapV3Pool__factory.js +10 -13
- package/dist/abis/types/factories/UniswapV3Pool__factory.js.map +1 -1
- package/dist/src/__tests__/index.test.js +356 -738
- package/dist/src/__tests__/index.test.js.map +1 -1
- package/dist/src/abis/types/AlgebraIntegralPool.d.ts +702 -793
- package/dist/src/abis/types/AlgebraPool.d.ts +693 -730
- package/dist/src/abis/types/ClPool.d.ts +789 -871
- package/dist/src/abis/types/DepositGuard.d.ts +193 -178
- package/dist/src/abis/types/DepositGuardWithHtsWrapping.d.ts +300 -297
- package/dist/src/abis/types/ERC20.d.ts +120 -147
- package/dist/src/abis/types/ERC20Wrapper.d.ts +147 -155
- package/dist/src/abis/types/IchiVault.d.ts +598 -728
- package/dist/src/abis/types/MultiFeeDistributer.d.ts +314 -423
- package/dist/src/abis/types/Multicall.d.ts +58 -73
- package/dist/src/abis/types/UniswapV3Pool.d.ts +654 -693
- package/dist/src/abis/types/common.d.ts +40 -12
- package/dist/src/abis/types/factories/AlgebraIntegralPool__factory.d.ts +2 -3
- package/dist/src/abis/types/factories/AlgebraPool__factory.d.ts +2 -3
- package/dist/src/abis/types/factories/ClPool__factory.d.ts +2 -3
- package/dist/src/abis/types/factories/DepositGuardWithHtsWrapping__factory.d.ts +2 -3
- package/dist/src/abis/types/factories/DepositGuard__factory.d.ts +2 -3
- package/dist/src/abis/types/factories/ERC20Wrapper__factory.d.ts +2 -3
- package/dist/src/abis/types/factories/ERC20__factory.d.ts +2 -3
- package/dist/src/abis/types/factories/IchiVault__factory.d.ts +2 -3
- package/dist/src/abis/types/factories/MultiFeeDistributer__factory.d.ts +2 -3
- package/dist/src/abis/types/factories/Multicall__factory.d.ts +2 -3
- package/dist/src/abis/types/factories/UniswapV3Pool__factory.d.ts +2 -3
- package/dist/src/contracts/index.d.ts +1 -1
- package/dist/src/contracts/index.js +12 -12
- package/dist/src/contracts/index.js.map +1 -1
- package/dist/src/functions/_totalBalances.d.ts +2 -3
- package/dist/src/functions/_totalBalances.js +46 -117
- package/dist/src/functions/_totalBalances.js.map +1 -1
- package/dist/src/functions/_vaultEvents.js +347 -488
- package/dist/src/functions/_vaultEvents.js.map +1 -1
- package/dist/src/functions/_withdrawHelpers.d.ts +2 -3
- package/dist/src/functions/_withdrawHelpers.js +13 -62
- package/dist/src/functions/_withdrawHelpers.js.map +1 -1
- package/dist/src/functions/calculateApr.d.ts +1 -1
- package/dist/src/functions/calculateApr.js +77 -150
- package/dist/src/functions/calculateApr.js.map +1 -1
- package/dist/src/functions/calculateDtr.d.ts +1 -1
- package/dist/src/functions/calculateDtr.js +84 -169
- package/dist/src/functions/calculateDtr.js.map +1 -1
- package/dist/src/functions/calculateFees.d.ts +1 -1
- package/dist/src/functions/calculateFees.js +97 -172
- package/dist/src/functions/calculateFees.js.map +1 -1
- package/dist/src/functions/chains.js +6 -6
- package/dist/src/functions/chains.js.map +1 -1
- package/dist/src/functions/claimRewards.d.ts +3 -4
- package/dist/src/functions/claimRewards.js +29 -92
- package/dist/src/functions/claimRewards.js.map +1 -1
- package/dist/src/functions/deposit.d.ts +7 -9
- package/dist/src/functions/deposit.js +199 -364
- package/dist/src/functions/deposit.js.map +1 -1
- package/dist/src/functions/depositWithHtsWrapping.d.ts +4 -6
- package/dist/src/functions/depositWithHtsWrapping.js +109 -226
- package/dist/src/functions/depositWithHtsWrapping.js.map +1 -1
- package/dist/src/functions/getFeeAprs.d.ts +1 -1
- package/dist/src/functions/getFeeAprs.js +55 -111
- package/dist/src/functions/getFeeAprs.js.map +1 -1
- package/dist/src/functions/priceFromPool.d.ts +3 -4
- package/dist/src/functions/priceFromPool.js +99 -208
- package/dist/src/functions/priceFromPool.js.map +1 -1
- package/dist/src/functions/rewardInfo.js +79 -159
- package/dist/src/functions/rewardInfo.js.map +1 -1
- package/dist/src/functions/totalBalances.d.ts +2 -3
- package/dist/src/functions/totalBalances.js +14 -67
- package/dist/src/functions/totalBalances.js.map +1 -1
- package/dist/src/functions/userBalances.d.ts +2 -3
- package/dist/src/functions/userBalances.js +244 -368
- package/dist/src/functions/userBalances.js.map +1 -1
- package/dist/src/functions/userRewards.d.ts +1 -1
- package/dist/src/functions/userRewards.js +87 -145
- package/dist/src/functions/userRewards.js.map +1 -1
- package/dist/src/functions/vault.d.ts +1 -1
- package/dist/src/functions/vault.js +203 -383
- package/dist/src/functions/vault.js.map +1 -1
- package/dist/src/functions/vaultBasics.js +6 -7
- package/dist/src/functions/vaultBasics.js.map +1 -1
- package/dist/src/functions/vaultMetrics.d.ts +1 -1
- package/dist/src/functions/vaultMetrics.js +111 -189
- package/dist/src/functions/vaultMetrics.js.map +1 -1
- package/dist/src/functions/vaultPositions.d.ts +1 -1
- package/dist/src/functions/vaultPositions.js +69 -134
- package/dist/src/functions/vaultPositions.js.map +1 -1
- package/dist/src/functions/vaultTvl.d.ts +1 -1
- package/dist/src/functions/vaultTvl.js +80 -165
- package/dist/src/functions/vaultTvl.js.map +1 -1
- package/dist/src/functions/withdraw.d.ts +6 -8
- package/dist/src/functions/withdraw.js +165 -295
- package/dist/src/functions/withdraw.js.map +1 -1
- package/dist/src/functions/withdrawWithErc20Wrapping.d.ts +2 -4
- package/dist/src/functions/withdrawWithErc20Wrapping.js +59 -126
- package/dist/src/functions/withdrawWithErc20Wrapping.js.map +1 -1
- package/dist/src/graphql/constants.js +217 -212
- package/dist/src/graphql/constants.js.map +1 -1
- package/dist/src/graphql/functions.js +30 -102
- package/dist/src/graphql/functions.js.map +1 -1
- package/dist/src/graphql/queries.js +407 -42
- package/dist/src/graphql/queries.js.map +1 -1
- package/dist/src/index.cjs.js +2 -2
- package/dist/src/index.esm.js +2 -2
- package/dist/src/src/contracts/index.d.ts +1 -1
- package/dist/src/src/functions/_totalBalances.d.ts +2 -3
- package/dist/src/src/functions/_withdrawHelpers.d.ts +2 -3
- package/dist/src/src/functions/calculateApr.d.ts +1 -1
- package/dist/src/src/functions/calculateDtr.d.ts +1 -1
- package/dist/src/src/functions/calculateFees.d.ts +1 -1
- package/dist/src/src/functions/claimRewards.d.ts +3 -4
- package/dist/src/src/functions/deposit.d.ts +7 -9
- package/dist/src/src/functions/depositWithHtsWrapping.d.ts +4 -6
- package/dist/src/src/functions/getFeeAprs.d.ts +1 -1
- package/dist/src/src/functions/priceFromPool.d.ts +3 -4
- package/dist/src/src/functions/totalBalances.d.ts +2 -3
- package/dist/src/src/functions/userBalances.d.ts +2 -3
- package/dist/src/src/functions/userRewards.d.ts +1 -1
- package/dist/src/src/functions/vault.d.ts +1 -1
- package/dist/src/src/functions/vaultMetrics.d.ts +1 -1
- package/dist/src/src/functions/vaultPositions.d.ts +1 -1
- package/dist/src/src/functions/vaultTvl.d.ts +1 -1
- package/dist/src/src/functions/withdraw.d.ts +6 -8
- package/dist/src/src/functions/withdrawWithErc20Wrapping.d.ts +2 -4
- package/dist/src/src/types/calculateGasMargin.d.ts +1 -2
- package/dist/src/src/types/index.d.ts +12 -13
- package/dist/src/src/utils/amountWithSlippage.d.ts +1 -2
- package/dist/src/src/utils/config/addresses.d.ts +1 -1
- package/dist/src/src/utils/formatBigInt.d.ts +1 -2
- package/dist/src/src/utils/getPrice.d.ts +1 -2
- package/dist/src/src/utils/multicallUtils.d.ts +9 -10
- package/dist/src/src/utils/parseBigInt.d.ts +1 -2
- package/dist/src/types/calculateGasMargin.d.ts +1 -2
- package/dist/src/types/calculateGasMargin.js +4 -5
- package/dist/src/types/calculateGasMargin.js.map +1 -1
- package/dist/src/types/index.d.ts +12 -13
- package/dist/src/types/index.js +1 -0
- package/dist/src/types/index.js.map +1 -1
- package/dist/src/utils/amountWithSlippage.d.ts +1 -2
- package/dist/src/utils/amountWithSlippage.js +1 -1
- package/dist/src/utils/amountWithSlippage.js.map +1 -1
- package/dist/src/utils/cache.js +2 -2
- package/dist/src/utils/cache.js.map +1 -1
- package/dist/src/utils/config/addresses.d.ts +1 -1
- package/dist/src/utils/config/addresses.js +276 -268
- package/dist/src/utils/config/addresses.js.map +1 -1
- package/dist/src/utils/formatBigInt.d.ts +1 -2
- package/dist/src/utils/formatBigInt.js +4 -5
- package/dist/src/utils/formatBigInt.js.map +1 -1
- package/dist/src/utils/getConfigByFactory.js +24 -28
- package/dist/src/utils/getConfigByFactory.js.map +1 -1
- package/dist/src/utils/getGraphUrls.js +8 -12
- package/dist/src/utils/getGraphUrls.js.map +1 -1
- package/dist/src/utils/getPrice.d.ts +1 -2
- package/dist/src/utils/getPrice.js +5 -6
- package/dist/src/utils/getPrice.js.map +1 -1
- package/dist/src/utils/isVelodrome.js +2 -3
- package/dist/src/utils/isVelodrome.js.map +1 -1
- package/dist/src/utils/multicallUtils.d.ts +9 -10
- package/dist/src/utils/multicallUtils.js +38 -93
- package/dist/src/utils/multicallUtils.js.map +1 -1
- package/dist/src/utils/parseBigInt.d.ts +1 -2
- package/dist/src/utils/parseBigInt.js +5 -7
- package/dist/src/utils/parseBigInt.js.map +1 -1
- package/dist/src/utils/positionKey.js +2 -4
- package/dist/src/utils/positionKey.js.map +1 -1
- package/package.json +5 -17
|
@@ -1,61 +1,33 @@
|
|
|
1
|
-
import type { BaseContract,
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"claimableRewards(address)": FunctionFragment;
|
|
10
|
-
"getAllRewards()": FunctionFragment;
|
|
11
|
-
"getReward(address,address[])": FunctionFragment;
|
|
12
|
-
"getUserRewardPerToken(address,address)": FunctionFragment;
|
|
13
|
-
"managers(address)": FunctionFragment;
|
|
14
|
-
"owner()": FunctionFragment;
|
|
15
|
-
"pause()": FunctionFragment;
|
|
16
|
-
"paused()": FunctionFragment;
|
|
17
|
-
"recoverERC20(address,uint256)": FunctionFragment;
|
|
18
|
-
"removeManagers(address[])": FunctionFragment;
|
|
19
|
-
"renounceOwnership()": FunctionFragment;
|
|
20
|
-
"rewardData(address)": FunctionFragment;
|
|
21
|
-
"rewardTokens(uint256)": FunctionFragment;
|
|
22
|
-
"setManagers(address[])": FunctionFragment;
|
|
23
|
-
"stake(uint256,address)": FunctionFragment;
|
|
24
|
-
"stakingToken()": FunctionFragment;
|
|
25
|
-
"totalBalance(address)": FunctionFragment;
|
|
26
|
-
"totalStakes()": FunctionFragment;
|
|
27
|
-
"transferOwnership(address)": FunctionFragment;
|
|
28
|
-
"unpause()": FunctionFragment;
|
|
29
|
-
"unstake(uint256)": FunctionFragment;
|
|
30
|
-
"updateReward()": FunctionFragment;
|
|
31
|
-
"userData(address)": FunctionFragment;
|
|
32
|
-
};
|
|
33
|
-
getFunction(nameOrSignatureOrTopic: "addReward" | "claimable" | "claimableRewards" | "getAllRewards" | "getReward" | "getUserRewardPerToken" | "managers" | "owner" | "pause" | "paused" | "recoverERC20" | "removeManagers" | "renounceOwnership" | "rewardData" | "rewardTokens" | "setManagers" | "stake" | "stakingToken" | "totalBalance" | "totalStakes" | "transferOwnership" | "unpause" | "unstake" | "updateReward" | "userData"): FunctionFragment;
|
|
34
|
-
encodeFunctionData(functionFragment: "addReward", values: [PromiseOrValue<string>]): string;
|
|
35
|
-
encodeFunctionData(functionFragment: "claimable", values: [PromiseOrValue<string>, PromiseOrValue<string>]): string;
|
|
36
|
-
encodeFunctionData(functionFragment: "claimableRewards", values: [PromiseOrValue<string>]): string;
|
|
1
|
+
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "./common";
|
|
3
|
+
export interface MultiFeeDistributerInterface extends Interface {
|
|
4
|
+
getFunction(nameOrSignature: "addReward" | "claimable" | "claimableRewards" | "getAllRewards" | "getReward" | "getUserRewardPerToken" | "managers" | "owner" | "pause" | "paused" | "recoverERC20" | "removeManagers" | "renounceOwnership" | "rewardData" | "rewardTokens" | "setManagers" | "stake" | "stakingToken" | "totalBalance" | "totalStakes" | "transferOwnership" | "unpause" | "unstake" | "updateReward" | "userData"): FunctionFragment;
|
|
5
|
+
getEvent(nameOrSignatureOrTopic: "OwnershipTransferred" | "Paused" | "Recovered" | "RewardPaid" | "RewardsUpdated" | "Stake" | "Unpaused" | "Unstake"): EventFragment;
|
|
6
|
+
encodeFunctionData(functionFragment: "addReward", values: [AddressLike]): string;
|
|
7
|
+
encodeFunctionData(functionFragment: "claimable", values: [AddressLike, AddressLike]): string;
|
|
8
|
+
encodeFunctionData(functionFragment: "claimableRewards", values: [AddressLike]): string;
|
|
37
9
|
encodeFunctionData(functionFragment: "getAllRewards", values?: undefined): string;
|
|
38
|
-
encodeFunctionData(functionFragment: "getReward", values: [
|
|
39
|
-
encodeFunctionData(functionFragment: "getUserRewardPerToken", values: [
|
|
40
|
-
encodeFunctionData(functionFragment: "managers", values: [
|
|
10
|
+
encodeFunctionData(functionFragment: "getReward", values: [AddressLike, AddressLike[]]): string;
|
|
11
|
+
encodeFunctionData(functionFragment: "getUserRewardPerToken", values: [AddressLike, AddressLike]): string;
|
|
12
|
+
encodeFunctionData(functionFragment: "managers", values: [AddressLike]): string;
|
|
41
13
|
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
|
42
14
|
encodeFunctionData(functionFragment: "pause", values?: undefined): string;
|
|
43
15
|
encodeFunctionData(functionFragment: "paused", values?: undefined): string;
|
|
44
|
-
encodeFunctionData(functionFragment: "recoverERC20", values: [
|
|
45
|
-
encodeFunctionData(functionFragment: "removeManagers", values: [
|
|
16
|
+
encodeFunctionData(functionFragment: "recoverERC20", values: [AddressLike, BigNumberish]): string;
|
|
17
|
+
encodeFunctionData(functionFragment: "removeManagers", values: [AddressLike[]]): string;
|
|
46
18
|
encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string;
|
|
47
|
-
encodeFunctionData(functionFragment: "rewardData", values: [
|
|
48
|
-
encodeFunctionData(functionFragment: "rewardTokens", values: [
|
|
49
|
-
encodeFunctionData(functionFragment: "setManagers", values: [
|
|
50
|
-
encodeFunctionData(functionFragment: "stake", values: [
|
|
19
|
+
encodeFunctionData(functionFragment: "rewardData", values: [AddressLike]): string;
|
|
20
|
+
encodeFunctionData(functionFragment: "rewardTokens", values: [BigNumberish]): string;
|
|
21
|
+
encodeFunctionData(functionFragment: "setManagers", values: [AddressLike[]]): string;
|
|
22
|
+
encodeFunctionData(functionFragment: "stake", values: [BigNumberish, AddressLike]): string;
|
|
51
23
|
encodeFunctionData(functionFragment: "stakingToken", values?: undefined): string;
|
|
52
|
-
encodeFunctionData(functionFragment: "totalBalance", values: [
|
|
24
|
+
encodeFunctionData(functionFragment: "totalBalance", values: [AddressLike]): string;
|
|
53
25
|
encodeFunctionData(functionFragment: "totalStakes", values?: undefined): string;
|
|
54
|
-
encodeFunctionData(functionFragment: "transferOwnership", values: [
|
|
26
|
+
encodeFunctionData(functionFragment: "transferOwnership", values: [AddressLike]): string;
|
|
55
27
|
encodeFunctionData(functionFragment: "unpause", values?: undefined): string;
|
|
56
|
-
encodeFunctionData(functionFragment: "unstake", values: [
|
|
28
|
+
encodeFunctionData(functionFragment: "unstake", values: [BigNumberish]): string;
|
|
57
29
|
encodeFunctionData(functionFragment: "updateReward", values?: undefined): string;
|
|
58
|
-
encodeFunctionData(functionFragment: "userData", values: [
|
|
30
|
+
encodeFunctionData(functionFragment: "userData", values: [AddressLike]): string;
|
|
59
31
|
decodeFunctionResult(functionFragment: "addReward", data: BytesLike): Result;
|
|
60
32
|
decodeFunctionResult(functionFragment: "claimable", data: BytesLike): Result;
|
|
61
33
|
decodeFunctionResult(functionFragment: "claimableRewards", data: BytesLike): Result;
|
|
@@ -81,395 +53,314 @@ export interface MultiFeeDistributerInterface extends utils.Interface {
|
|
|
81
53
|
decodeFunctionResult(functionFragment: "unstake", data: BytesLike): Result;
|
|
82
54
|
decodeFunctionResult(functionFragment: "updateReward", data: BytesLike): Result;
|
|
83
55
|
decodeFunctionResult(functionFragment: "userData", data: BytesLike): Result;
|
|
84
|
-
events: {
|
|
85
|
-
"OwnershipTransferred(address,address)": EventFragment;
|
|
86
|
-
"Paused(address)": EventFragment;
|
|
87
|
-
"Recovered(address,uint256)": EventFragment;
|
|
88
|
-
"RewardPaid(address,address,uint256)": EventFragment;
|
|
89
|
-
"RewardsUpdated()": EventFragment;
|
|
90
|
-
"Stake(address,uint256)": EventFragment;
|
|
91
|
-
"Unpaused(address)": EventFragment;
|
|
92
|
-
"Unstake(address,uint256)": EventFragment;
|
|
93
|
-
};
|
|
94
|
-
getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment;
|
|
95
|
-
getEvent(nameOrSignatureOrTopic: "Paused"): EventFragment;
|
|
96
|
-
getEvent(nameOrSignatureOrTopic: "Recovered"): EventFragment;
|
|
97
|
-
getEvent(nameOrSignatureOrTopic: "RewardPaid"): EventFragment;
|
|
98
|
-
getEvent(nameOrSignatureOrTopic: "RewardsUpdated"): EventFragment;
|
|
99
|
-
getEvent(nameOrSignatureOrTopic: "Stake"): EventFragment;
|
|
100
|
-
getEvent(nameOrSignatureOrTopic: "Unpaused"): EventFragment;
|
|
101
|
-
getEvent(nameOrSignatureOrTopic: "Unstake"): EventFragment;
|
|
102
56
|
}
|
|
103
|
-
export
|
|
104
|
-
previousOwner:
|
|
105
|
-
newOwner: string;
|
|
57
|
+
export declare namespace OwnershipTransferredEvent {
|
|
58
|
+
type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
|
|
59
|
+
type OutputTuple = [previousOwner: string, newOwner: string];
|
|
60
|
+
interface OutputObject {
|
|
61
|
+
previousOwner: string;
|
|
62
|
+
newOwner: string;
|
|
63
|
+
}
|
|
64
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
65
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
66
|
+
type Log = TypedEventLog<Event>;
|
|
67
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
106
68
|
}
|
|
107
|
-
export
|
|
108
|
-
|
|
109
|
-
string
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
69
|
+
export declare namespace PausedEvent {
|
|
70
|
+
type InputTuple = [account: AddressLike];
|
|
71
|
+
type OutputTuple = [account: string];
|
|
72
|
+
interface OutputObject {
|
|
73
|
+
account: string;
|
|
74
|
+
}
|
|
75
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
76
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
77
|
+
type Log = TypedEventLog<Event>;
|
|
78
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
114
79
|
}
|
|
115
|
-
export
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
80
|
+
export declare namespace RecoveredEvent {
|
|
81
|
+
type InputTuple = [token: AddressLike, amount: BigNumberish];
|
|
82
|
+
type OutputTuple = [token: string, amount: bigint];
|
|
83
|
+
interface OutputObject {
|
|
84
|
+
token: string;
|
|
85
|
+
amount: bigint;
|
|
86
|
+
}
|
|
87
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
88
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
89
|
+
type Log = TypedEventLog<Event>;
|
|
90
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
120
91
|
}
|
|
121
|
-
export
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
user: string;
|
|
128
|
-
|
|
129
|
-
|
|
92
|
+
export declare namespace RewardPaidEvent {
|
|
93
|
+
type InputTuple = [
|
|
94
|
+
user: AddressLike,
|
|
95
|
+
rewardToken: AddressLike,
|
|
96
|
+
reward: BigNumberish
|
|
97
|
+
];
|
|
98
|
+
type OutputTuple = [user: string, rewardToken: string, reward: bigint];
|
|
99
|
+
interface OutputObject {
|
|
100
|
+
user: string;
|
|
101
|
+
rewardToken: string;
|
|
102
|
+
reward: bigint;
|
|
103
|
+
}
|
|
104
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
105
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
106
|
+
type Log = TypedEventLog<Event>;
|
|
107
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
130
108
|
}
|
|
131
|
-
export
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
109
|
+
export declare namespace RewardsUpdatedEvent {
|
|
110
|
+
type InputTuple = [];
|
|
111
|
+
type OutputTuple = [];
|
|
112
|
+
interface OutputObject {
|
|
113
|
+
}
|
|
114
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
115
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
116
|
+
type Log = TypedEventLog<Event>;
|
|
117
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
138
118
|
}
|
|
139
|
-
export
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
119
|
+
export declare namespace StakeEvent {
|
|
120
|
+
type InputTuple = [user: AddressLike, amount: BigNumberish];
|
|
121
|
+
type OutputTuple = [user: string, amount: bigint];
|
|
122
|
+
interface OutputObject {
|
|
123
|
+
user: string;
|
|
124
|
+
amount: bigint;
|
|
125
|
+
}
|
|
126
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
127
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
128
|
+
type Log = TypedEventLog<Event>;
|
|
129
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
144
130
|
}
|
|
145
|
-
export
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
131
|
+
export declare namespace UnpausedEvent {
|
|
132
|
+
type InputTuple = [account: AddressLike];
|
|
133
|
+
type OutputTuple = [account: string];
|
|
134
|
+
interface OutputObject {
|
|
135
|
+
account: string;
|
|
136
|
+
}
|
|
137
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
138
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
139
|
+
type Log = TypedEventLog<Event>;
|
|
140
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
149
141
|
}
|
|
150
|
-
export
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
142
|
+
export declare namespace UnstakeEvent {
|
|
143
|
+
type InputTuple = [user: AddressLike, receivedAmount: BigNumberish];
|
|
144
|
+
type OutputTuple = [user: string, receivedAmount: bigint];
|
|
145
|
+
interface OutputObject {
|
|
146
|
+
user: string;
|
|
147
|
+
receivedAmount: bigint;
|
|
148
|
+
}
|
|
149
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
150
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
151
|
+
type Log = TypedEventLog<Event>;
|
|
152
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
155
153
|
}
|
|
156
|
-
export type UnstakeEvent = TypedEvent<[string, BigNumber], UnstakeEventObject>;
|
|
157
|
-
export type UnstakeEventFilter = TypedEventFilter<UnstakeEvent>;
|
|
158
154
|
export interface MultiFeeDistributer extends BaseContract {
|
|
159
|
-
connect(
|
|
160
|
-
|
|
161
|
-
deployed(): Promise<this>;
|
|
155
|
+
connect(runner?: ContractRunner | null): MultiFeeDistributer;
|
|
156
|
+
waitForDeployment(): Promise<this>;
|
|
162
157
|
interface: MultiFeeDistributerInterface;
|
|
163
|
-
queryFilter<
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
158
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
159
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
160
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
161
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
162
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
163
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
164
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
165
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
166
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
167
|
+
addReward: TypedContractMethod<[
|
|
168
|
+
_rewardToken: AddressLike
|
|
169
|
+
], [
|
|
170
|
+
void
|
|
171
|
+
], "nonpayable">;
|
|
172
|
+
claimable: TypedContractMethod<[
|
|
173
|
+
arg0: AddressLike,
|
|
174
|
+
arg1: AddressLike
|
|
175
|
+
], [
|
|
176
|
+
bigint
|
|
177
|
+
], "view">;
|
|
178
|
+
claimableRewards: TypedContractMethod<[
|
|
179
|
+
account: AddressLike
|
|
180
|
+
], [
|
|
181
|
+
[string[], bigint[]]
|
|
182
|
+
], "view">;
|
|
183
|
+
getAllRewards: TypedContractMethod<[], [bigint[]], "nonpayable">;
|
|
184
|
+
getReward: TypedContractMethod<[
|
|
185
|
+
_onBehalfOf: AddressLike,
|
|
186
|
+
_rewardTokens: AddressLike[]
|
|
187
|
+
], [
|
|
188
|
+
bigint[]
|
|
189
|
+
], "nonpayable">;
|
|
190
|
+
getUserRewardPerToken: TypedContractMethod<[
|
|
191
|
+
user: AddressLike,
|
|
192
|
+
rewardToken: AddressLike
|
|
193
|
+
], [
|
|
194
|
+
bigint
|
|
195
|
+
], "view">;
|
|
196
|
+
managers: TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
197
|
+
owner: TypedContractMethod<[], [string], "view">;
|
|
198
|
+
pause: TypedContractMethod<[], [void], "nonpayable">;
|
|
199
|
+
paused: TypedContractMethod<[], [boolean], "view">;
|
|
200
|
+
recoverERC20: TypedContractMethod<[
|
|
201
|
+
tokenAddress: AddressLike,
|
|
202
|
+
tokenAmount: BigNumberish
|
|
203
|
+
], [
|
|
204
|
+
void
|
|
205
|
+
], "nonpayable">;
|
|
206
|
+
removeManagers: TypedContractMethod<[
|
|
207
|
+
_managers: AddressLike[]
|
|
208
|
+
], [
|
|
209
|
+
void
|
|
210
|
+
], "nonpayable">;
|
|
211
|
+
renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
|
|
212
|
+
rewardData: TypedContractMethod<[
|
|
213
|
+
arg0: AddressLike
|
|
214
|
+
], [
|
|
215
|
+
[
|
|
216
|
+
bigint,
|
|
217
|
+
bigint,
|
|
218
|
+
bigint
|
|
204
219
|
] & {
|
|
205
|
-
amount:
|
|
206
|
-
lastTimeUpdated:
|
|
207
|
-
rewardPerToken:
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
220
|
+
amount: bigint;
|
|
221
|
+
lastTimeUpdated: bigint;
|
|
222
|
+
rewardPerToken: bigint;
|
|
223
|
+
}
|
|
224
|
+
], "view">;
|
|
225
|
+
rewardTokens: TypedContractMethod<[arg0: BigNumberish], [string], "view">;
|
|
226
|
+
setManagers: TypedContractMethod<[
|
|
227
|
+
_managers: AddressLike[]
|
|
228
|
+
], [
|
|
229
|
+
void
|
|
230
|
+
], "nonpayable">;
|
|
231
|
+
stake: TypedContractMethod<[
|
|
232
|
+
amount: BigNumberish,
|
|
233
|
+
onBehalfOf: AddressLike
|
|
234
|
+
], [
|
|
235
|
+
void
|
|
236
|
+
], "nonpayable">;
|
|
237
|
+
stakingToken: TypedContractMethod<[], [string], "view">;
|
|
238
|
+
totalBalance: TypedContractMethod<[user: AddressLike], [bigint], "view">;
|
|
239
|
+
totalStakes: TypedContractMethod<[], [bigint], "view">;
|
|
240
|
+
transferOwnership: TypedContractMethod<[
|
|
241
|
+
newOwner: AddressLike
|
|
242
|
+
], [
|
|
243
|
+
void
|
|
244
|
+
], "nonpayable">;
|
|
245
|
+
unpause: TypedContractMethod<[], [void], "nonpayable">;
|
|
246
|
+
unstake: TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">;
|
|
247
|
+
updateReward: TypedContractMethod<[], [void], "nonpayable">;
|
|
248
|
+
userData: TypedContractMethod<[
|
|
249
|
+
arg0: AddressLike
|
|
250
|
+
], [
|
|
251
|
+
[
|
|
252
|
+
bigint,
|
|
253
|
+
bigint,
|
|
254
|
+
bigint
|
|
235
255
|
] & {
|
|
236
|
-
tokenAmount:
|
|
237
|
-
lastTimeUpdated:
|
|
238
|
-
tokenClaimable:
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
totalStakes(overrides?: CallOverrides): Promise<BigNumber>;
|
|
287
|
-
transferOwnership(newOwner: PromiseOrValue<string>, overrides?: Overrides & {
|
|
288
|
-
from?: PromiseOrValue<string>;
|
|
289
|
-
}): Promise<ContractTransaction>;
|
|
290
|
-
unpause(overrides?: Overrides & {
|
|
291
|
-
from?: PromiseOrValue<string>;
|
|
292
|
-
}): Promise<ContractTransaction>;
|
|
293
|
-
unstake(amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
294
|
-
from?: PromiseOrValue<string>;
|
|
295
|
-
}): Promise<ContractTransaction>;
|
|
296
|
-
updateReward(overrides?: Overrides & {
|
|
297
|
-
from?: PromiseOrValue<string>;
|
|
298
|
-
}): Promise<ContractTransaction>;
|
|
299
|
-
userData(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[
|
|
300
|
-
BigNumber,
|
|
301
|
-
BigNumber,
|
|
302
|
-
BigNumber
|
|
303
|
-
] & {
|
|
304
|
-
tokenAmount: BigNumber;
|
|
305
|
-
lastTimeUpdated: BigNumber;
|
|
306
|
-
tokenClaimable: BigNumber;
|
|
307
|
-
}>;
|
|
308
|
-
callStatic: {
|
|
309
|
-
addReward(_rewardToken: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
|
|
310
|
-
claimable(arg0: PromiseOrValue<string>, arg1: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
311
|
-
claimableRewards(account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[string[], BigNumber[]]>;
|
|
312
|
-
getAllRewards(overrides?: CallOverrides): Promise<BigNumber[]>;
|
|
313
|
-
getReward(_onBehalfOf: PromiseOrValue<string>, _rewardTokens: PromiseOrValue<string>[], overrides?: CallOverrides): Promise<BigNumber[]>;
|
|
314
|
-
getUserRewardPerToken(user: PromiseOrValue<string>, rewardToken: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
315
|
-
managers(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>;
|
|
316
|
-
owner(overrides?: CallOverrides): Promise<string>;
|
|
317
|
-
pause(overrides?: CallOverrides): Promise<void>;
|
|
318
|
-
paused(overrides?: CallOverrides): Promise<boolean>;
|
|
319
|
-
recoverERC20(tokenAddress: PromiseOrValue<string>, tokenAmount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
|
|
320
|
-
removeManagers(_managers: PromiseOrValue<string>[], overrides?: CallOverrides): Promise<void>;
|
|
321
|
-
renounceOwnership(overrides?: CallOverrides): Promise<void>;
|
|
322
|
-
rewardData(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[
|
|
323
|
-
BigNumber,
|
|
324
|
-
BigNumber,
|
|
325
|
-
BigNumber
|
|
256
|
+
tokenAmount: bigint;
|
|
257
|
+
lastTimeUpdated: bigint;
|
|
258
|
+
tokenClaimable: bigint;
|
|
259
|
+
}
|
|
260
|
+
], "view">;
|
|
261
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
262
|
+
getFunction(nameOrSignature: "addReward"): TypedContractMethod<[_rewardToken: AddressLike], [void], "nonpayable">;
|
|
263
|
+
getFunction(nameOrSignature: "claimable"): TypedContractMethod<[
|
|
264
|
+
arg0: AddressLike,
|
|
265
|
+
arg1: AddressLike
|
|
266
|
+
], [
|
|
267
|
+
bigint
|
|
268
|
+
], "view">;
|
|
269
|
+
getFunction(nameOrSignature: "claimableRewards"): TypedContractMethod<[
|
|
270
|
+
account: AddressLike
|
|
271
|
+
], [
|
|
272
|
+
[string[], bigint[]]
|
|
273
|
+
], "view">;
|
|
274
|
+
getFunction(nameOrSignature: "getAllRewards"): TypedContractMethod<[], [bigint[]], "nonpayable">;
|
|
275
|
+
getFunction(nameOrSignature: "getReward"): TypedContractMethod<[
|
|
276
|
+
_onBehalfOf: AddressLike,
|
|
277
|
+
_rewardTokens: AddressLike[]
|
|
278
|
+
], [
|
|
279
|
+
bigint[]
|
|
280
|
+
], "nonpayable">;
|
|
281
|
+
getFunction(nameOrSignature: "getUserRewardPerToken"): TypedContractMethod<[
|
|
282
|
+
user: AddressLike,
|
|
283
|
+
rewardToken: AddressLike
|
|
284
|
+
], [
|
|
285
|
+
bigint
|
|
286
|
+
], "view">;
|
|
287
|
+
getFunction(nameOrSignature: "managers"): TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
288
|
+
getFunction(nameOrSignature: "owner"): TypedContractMethod<[], [string], "view">;
|
|
289
|
+
getFunction(nameOrSignature: "pause"): TypedContractMethod<[], [void], "nonpayable">;
|
|
290
|
+
getFunction(nameOrSignature: "paused"): TypedContractMethod<[], [boolean], "view">;
|
|
291
|
+
getFunction(nameOrSignature: "recoverERC20"): TypedContractMethod<[
|
|
292
|
+
tokenAddress: AddressLike,
|
|
293
|
+
tokenAmount: BigNumberish
|
|
294
|
+
], [
|
|
295
|
+
void
|
|
296
|
+
], "nonpayable">;
|
|
297
|
+
getFunction(nameOrSignature: "removeManagers"): TypedContractMethod<[_managers: AddressLike[]], [void], "nonpayable">;
|
|
298
|
+
getFunction(nameOrSignature: "renounceOwnership"): TypedContractMethod<[], [void], "nonpayable">;
|
|
299
|
+
getFunction(nameOrSignature: "rewardData"): TypedContractMethod<[
|
|
300
|
+
arg0: AddressLike
|
|
301
|
+
], [
|
|
302
|
+
[
|
|
303
|
+
bigint,
|
|
304
|
+
bigint,
|
|
305
|
+
bigint
|
|
326
306
|
] & {
|
|
327
|
-
amount:
|
|
328
|
-
lastTimeUpdated:
|
|
329
|
-
rewardPerToken:
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
307
|
+
amount: bigint;
|
|
308
|
+
lastTimeUpdated: bigint;
|
|
309
|
+
rewardPerToken: bigint;
|
|
310
|
+
}
|
|
311
|
+
], "view">;
|
|
312
|
+
getFunction(nameOrSignature: "rewardTokens"): TypedContractMethod<[arg0: BigNumberish], [string], "view">;
|
|
313
|
+
getFunction(nameOrSignature: "setManagers"): TypedContractMethod<[_managers: AddressLike[]], [void], "nonpayable">;
|
|
314
|
+
getFunction(nameOrSignature: "stake"): TypedContractMethod<[
|
|
315
|
+
amount: BigNumberish,
|
|
316
|
+
onBehalfOf: AddressLike
|
|
317
|
+
], [
|
|
318
|
+
void
|
|
319
|
+
], "nonpayable">;
|
|
320
|
+
getFunction(nameOrSignature: "stakingToken"): TypedContractMethod<[], [string], "view">;
|
|
321
|
+
getFunction(nameOrSignature: "totalBalance"): TypedContractMethod<[user: AddressLike], [bigint], "view">;
|
|
322
|
+
getFunction(nameOrSignature: "totalStakes"): TypedContractMethod<[], [bigint], "view">;
|
|
323
|
+
getFunction(nameOrSignature: "transferOwnership"): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;
|
|
324
|
+
getFunction(nameOrSignature: "unpause"): TypedContractMethod<[], [void], "nonpayable">;
|
|
325
|
+
getFunction(nameOrSignature: "unstake"): TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">;
|
|
326
|
+
getFunction(nameOrSignature: "updateReward"): TypedContractMethod<[], [void], "nonpayable">;
|
|
327
|
+
getFunction(nameOrSignature: "userData"): TypedContractMethod<[
|
|
328
|
+
arg0: AddressLike
|
|
329
|
+
], [
|
|
330
|
+
[
|
|
331
|
+
bigint,
|
|
332
|
+
bigint,
|
|
333
|
+
bigint
|
|
345
334
|
] & {
|
|
346
|
-
tokenAmount:
|
|
347
|
-
lastTimeUpdated:
|
|
348
|
-
tokenClaimable:
|
|
349
|
-
}
|
|
350
|
-
|
|
335
|
+
tokenAmount: bigint;
|
|
336
|
+
lastTimeUpdated: bigint;
|
|
337
|
+
tokenClaimable: bigint;
|
|
338
|
+
}
|
|
339
|
+
], "view">;
|
|
340
|
+
getEvent(key: "OwnershipTransferred"): TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
341
|
+
getEvent(key: "Paused"): TypedContractEvent<PausedEvent.InputTuple, PausedEvent.OutputTuple, PausedEvent.OutputObject>;
|
|
342
|
+
getEvent(key: "Recovered"): TypedContractEvent<RecoveredEvent.InputTuple, RecoveredEvent.OutputTuple, RecoveredEvent.OutputObject>;
|
|
343
|
+
getEvent(key: "RewardPaid"): TypedContractEvent<RewardPaidEvent.InputTuple, RewardPaidEvent.OutputTuple, RewardPaidEvent.OutputObject>;
|
|
344
|
+
getEvent(key: "RewardsUpdated"): TypedContractEvent<RewardsUpdatedEvent.InputTuple, RewardsUpdatedEvent.OutputTuple, RewardsUpdatedEvent.OutputObject>;
|
|
345
|
+
getEvent(key: "Stake"): TypedContractEvent<StakeEvent.InputTuple, StakeEvent.OutputTuple, StakeEvent.OutputObject>;
|
|
346
|
+
getEvent(key: "Unpaused"): TypedContractEvent<UnpausedEvent.InputTuple, UnpausedEvent.OutputTuple, UnpausedEvent.OutputObject>;
|
|
347
|
+
getEvent(key: "Unstake"): TypedContractEvent<UnstakeEvent.InputTuple, UnstakeEvent.OutputTuple, UnstakeEvent.OutputObject>;
|
|
351
348
|
filters: {
|
|
352
|
-
"OwnershipTransferred(address,address)"
|
|
353
|
-
OwnershipTransferred
|
|
354
|
-
"Paused(address)"
|
|
355
|
-
Paused
|
|
356
|
-
"Recovered(address,uint256)"
|
|
357
|
-
Recovered
|
|
358
|
-
"RewardPaid(address,address,uint256)"
|
|
359
|
-
RewardPaid
|
|
360
|
-
"RewardsUpdated()"
|
|
361
|
-
RewardsUpdated
|
|
362
|
-
"Stake(address,uint256)"
|
|
363
|
-
Stake
|
|
364
|
-
"Unpaused(address)"
|
|
365
|
-
Unpaused
|
|
366
|
-
"Unstake(address,uint256)"
|
|
367
|
-
Unstake
|
|
368
|
-
};
|
|
369
|
-
estimateGas: {
|
|
370
|
-
addReward(_rewardToken: PromiseOrValue<string>, overrides?: Overrides & {
|
|
371
|
-
from?: PromiseOrValue<string>;
|
|
372
|
-
}): Promise<BigNumber>;
|
|
373
|
-
claimable(arg0: PromiseOrValue<string>, arg1: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
374
|
-
claimableRewards(account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
375
|
-
getAllRewards(overrides?: Overrides & {
|
|
376
|
-
from?: PromiseOrValue<string>;
|
|
377
|
-
}): Promise<BigNumber>;
|
|
378
|
-
getReward(_onBehalfOf: PromiseOrValue<string>, _rewardTokens: PromiseOrValue<string>[], overrides?: Overrides & {
|
|
379
|
-
from?: PromiseOrValue<string>;
|
|
380
|
-
}): Promise<BigNumber>;
|
|
381
|
-
getUserRewardPerToken(user: PromiseOrValue<string>, rewardToken: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
382
|
-
managers(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
383
|
-
owner(overrides?: CallOverrides): Promise<BigNumber>;
|
|
384
|
-
pause(overrides?: Overrides & {
|
|
385
|
-
from?: PromiseOrValue<string>;
|
|
386
|
-
}): Promise<BigNumber>;
|
|
387
|
-
paused(overrides?: CallOverrides): Promise<BigNumber>;
|
|
388
|
-
recoverERC20(tokenAddress: PromiseOrValue<string>, tokenAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
389
|
-
from?: PromiseOrValue<string>;
|
|
390
|
-
}): Promise<BigNumber>;
|
|
391
|
-
removeManagers(_managers: PromiseOrValue<string>[], overrides?: Overrides & {
|
|
392
|
-
from?: PromiseOrValue<string>;
|
|
393
|
-
}): Promise<BigNumber>;
|
|
394
|
-
renounceOwnership(overrides?: Overrides & {
|
|
395
|
-
from?: PromiseOrValue<string>;
|
|
396
|
-
}): Promise<BigNumber>;
|
|
397
|
-
rewardData(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
398
|
-
rewardTokens(arg0: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
399
|
-
setManagers(_managers: PromiseOrValue<string>[], overrides?: Overrides & {
|
|
400
|
-
from?: PromiseOrValue<string>;
|
|
401
|
-
}): Promise<BigNumber>;
|
|
402
|
-
stake(amount: PromiseOrValue<BigNumberish>, onBehalfOf: PromiseOrValue<string>, overrides?: Overrides & {
|
|
403
|
-
from?: PromiseOrValue<string>;
|
|
404
|
-
}): Promise<BigNumber>;
|
|
405
|
-
stakingToken(overrides?: CallOverrides): Promise<BigNumber>;
|
|
406
|
-
totalBalance(user: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
407
|
-
totalStakes(overrides?: CallOverrides): Promise<BigNumber>;
|
|
408
|
-
transferOwnership(newOwner: PromiseOrValue<string>, overrides?: Overrides & {
|
|
409
|
-
from?: PromiseOrValue<string>;
|
|
410
|
-
}): Promise<BigNumber>;
|
|
411
|
-
unpause(overrides?: Overrides & {
|
|
412
|
-
from?: PromiseOrValue<string>;
|
|
413
|
-
}): Promise<BigNumber>;
|
|
414
|
-
unstake(amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
415
|
-
from?: PromiseOrValue<string>;
|
|
416
|
-
}): Promise<BigNumber>;
|
|
417
|
-
updateReward(overrides?: Overrides & {
|
|
418
|
-
from?: PromiseOrValue<string>;
|
|
419
|
-
}): Promise<BigNumber>;
|
|
420
|
-
userData(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
421
|
-
};
|
|
422
|
-
populateTransaction: {
|
|
423
|
-
addReward(_rewardToken: PromiseOrValue<string>, overrides?: Overrides & {
|
|
424
|
-
from?: PromiseOrValue<string>;
|
|
425
|
-
}): Promise<PopulatedTransaction>;
|
|
426
|
-
claimable(arg0: PromiseOrValue<string>, arg1: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
427
|
-
claimableRewards(account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
428
|
-
getAllRewards(overrides?: Overrides & {
|
|
429
|
-
from?: PromiseOrValue<string>;
|
|
430
|
-
}): Promise<PopulatedTransaction>;
|
|
431
|
-
getReward(_onBehalfOf: PromiseOrValue<string>, _rewardTokens: PromiseOrValue<string>[], overrides?: Overrides & {
|
|
432
|
-
from?: PromiseOrValue<string>;
|
|
433
|
-
}): Promise<PopulatedTransaction>;
|
|
434
|
-
getUserRewardPerToken(user: PromiseOrValue<string>, rewardToken: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
435
|
-
managers(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
436
|
-
owner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
437
|
-
pause(overrides?: Overrides & {
|
|
438
|
-
from?: PromiseOrValue<string>;
|
|
439
|
-
}): Promise<PopulatedTransaction>;
|
|
440
|
-
paused(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
441
|
-
recoverERC20(tokenAddress: PromiseOrValue<string>, tokenAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
442
|
-
from?: PromiseOrValue<string>;
|
|
443
|
-
}): Promise<PopulatedTransaction>;
|
|
444
|
-
removeManagers(_managers: PromiseOrValue<string>[], overrides?: Overrides & {
|
|
445
|
-
from?: PromiseOrValue<string>;
|
|
446
|
-
}): Promise<PopulatedTransaction>;
|
|
447
|
-
renounceOwnership(overrides?: Overrides & {
|
|
448
|
-
from?: PromiseOrValue<string>;
|
|
449
|
-
}): Promise<PopulatedTransaction>;
|
|
450
|
-
rewardData(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
451
|
-
rewardTokens(arg0: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
452
|
-
setManagers(_managers: PromiseOrValue<string>[], overrides?: Overrides & {
|
|
453
|
-
from?: PromiseOrValue<string>;
|
|
454
|
-
}): Promise<PopulatedTransaction>;
|
|
455
|
-
stake(amount: PromiseOrValue<BigNumberish>, onBehalfOf: PromiseOrValue<string>, overrides?: Overrides & {
|
|
456
|
-
from?: PromiseOrValue<string>;
|
|
457
|
-
}): Promise<PopulatedTransaction>;
|
|
458
|
-
stakingToken(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
459
|
-
totalBalance(user: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
460
|
-
totalStakes(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
461
|
-
transferOwnership(newOwner: PromiseOrValue<string>, overrides?: Overrides & {
|
|
462
|
-
from?: PromiseOrValue<string>;
|
|
463
|
-
}): Promise<PopulatedTransaction>;
|
|
464
|
-
unpause(overrides?: Overrides & {
|
|
465
|
-
from?: PromiseOrValue<string>;
|
|
466
|
-
}): Promise<PopulatedTransaction>;
|
|
467
|
-
unstake(amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
468
|
-
from?: PromiseOrValue<string>;
|
|
469
|
-
}): Promise<PopulatedTransaction>;
|
|
470
|
-
updateReward(overrides?: Overrides & {
|
|
471
|
-
from?: PromiseOrValue<string>;
|
|
472
|
-
}): Promise<PopulatedTransaction>;
|
|
473
|
-
userData(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
349
|
+
"OwnershipTransferred(address,address)": TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
350
|
+
OwnershipTransferred: TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
351
|
+
"Paused(address)": TypedContractEvent<PausedEvent.InputTuple, PausedEvent.OutputTuple, PausedEvent.OutputObject>;
|
|
352
|
+
Paused: TypedContractEvent<PausedEvent.InputTuple, PausedEvent.OutputTuple, PausedEvent.OutputObject>;
|
|
353
|
+
"Recovered(address,uint256)": TypedContractEvent<RecoveredEvent.InputTuple, RecoveredEvent.OutputTuple, RecoveredEvent.OutputObject>;
|
|
354
|
+
Recovered: TypedContractEvent<RecoveredEvent.InputTuple, RecoveredEvent.OutputTuple, RecoveredEvent.OutputObject>;
|
|
355
|
+
"RewardPaid(address,address,uint256)": TypedContractEvent<RewardPaidEvent.InputTuple, RewardPaidEvent.OutputTuple, RewardPaidEvent.OutputObject>;
|
|
356
|
+
RewardPaid: TypedContractEvent<RewardPaidEvent.InputTuple, RewardPaidEvent.OutputTuple, RewardPaidEvent.OutputObject>;
|
|
357
|
+
"RewardsUpdated()": TypedContractEvent<RewardsUpdatedEvent.InputTuple, RewardsUpdatedEvent.OutputTuple, RewardsUpdatedEvent.OutputObject>;
|
|
358
|
+
RewardsUpdated: TypedContractEvent<RewardsUpdatedEvent.InputTuple, RewardsUpdatedEvent.OutputTuple, RewardsUpdatedEvent.OutputObject>;
|
|
359
|
+
"Stake(address,uint256)": TypedContractEvent<StakeEvent.InputTuple, StakeEvent.OutputTuple, StakeEvent.OutputObject>;
|
|
360
|
+
Stake: TypedContractEvent<StakeEvent.InputTuple, StakeEvent.OutputTuple, StakeEvent.OutputObject>;
|
|
361
|
+
"Unpaused(address)": TypedContractEvent<UnpausedEvent.InputTuple, UnpausedEvent.OutputTuple, UnpausedEvent.OutputObject>;
|
|
362
|
+
Unpaused: TypedContractEvent<UnpausedEvent.InputTuple, UnpausedEvent.OutputTuple, UnpausedEvent.OutputObject>;
|
|
363
|
+
"Unstake(address,uint256)": TypedContractEvent<UnstakeEvent.InputTuple, UnstakeEvent.OutputTuple, UnstakeEvent.OutputObject>;
|
|
364
|
+
Unstake: TypedContractEvent<UnstakeEvent.InputTuple, UnstakeEvent.OutputTuple, UnstakeEvent.OutputObject>;
|
|
474
365
|
};
|
|
475
366
|
}
|