@hinkal/common 0.2.2 → 0.2.4
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/API/API.cjs +1 -1
- package/API/API.d.ts +2 -2
- package/API/API.mjs +22 -22
- package/API/duneAPI.cjs +1 -1
- package/API/duneAPI.mjs +3 -2
- package/API/userVerifyTransactions.cjs +1 -1
- package/API/userVerifyTransactions.d.ts +6 -7
- package/API/userVerifyTransactions.mjs +13 -14
- package/README.md +32 -22
- package/constants/chains.constants.cjs +1 -1
- package/constants/chains.constants.mjs +2 -2
- package/constants/contracts.constants.cjs +1 -1
- package/constants/contracts.constants.mjs +138 -134
- package/constants/deploy-data/deploy-data-arbMainnet.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-arbMainnet.json.mjs +846 -11
- package/constants/deploy-data/deploy-data-avalanche.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-avalanche.json.mjs +848 -13
- package/constants/deploy-data/deploy-data-base.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-base.json.mjs +852 -17
- package/constants/deploy-data/deploy-data-bnbMainnet.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-bnbMainnet.json.mjs +855 -20
- package/constants/deploy-data/deploy-data-ethMainnet.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-ethMainnet.json.mjs +850 -15
- package/constants/deploy-data/deploy-data-localhost.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-localhost.json.mjs +935 -100
- package/constants/deploy-data/deploy-data-optimism.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-optimism.json.mjs +844 -9
- package/constants/deploy-data/deploy-data-polygon.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-polygon.json.mjs +844 -9
- package/constants/kyc.constants.cjs +1 -1
- package/constants/kyc.constants.mjs +30 -18
- package/constants/server.constants.cjs +1 -1
- package/constants/server.constants.d.ts +3 -2
- package/constants/server.constants.mjs +7 -6
- package/constants/token-data/ERC20Registry.cjs +1 -1
- package/constants/token-data/ERC20Registry.mjs +48 -48
- package/constants/token-data/arbMainnetRegistry.json.cjs +1 -1
- package/constants/token-data/arbMainnetRegistry.json.mjs +4 -1
- package/constants/token-data/arbMainnetRegistryFixed.json.cjs +1 -1
- package/constants/token-data/arbMainnetRegistryFixed.json.mjs +4 -1
- package/constants/token-data/avalancheRegistry.json.cjs +1 -1
- package/constants/token-data/avalancheRegistry.json.mjs +4 -1
- package/constants/token-data/avalancheRegistryFixed.json.cjs +1 -1
- package/constants/token-data/avalancheRegistryFixed.json.mjs +4 -1
- package/constants/token-data/baseRegistry.json.cjs +1 -1
- package/constants/token-data/baseRegistry.json.mjs +4 -1
- package/constants/token-data/baseRegistryFixed.json.cjs +1 -1
- package/constants/token-data/baseRegistryFixed.json.mjs +4 -1
- package/constants/token-data/bnbMainnetRegistry.json.cjs +1 -1
- package/constants/token-data/bnbMainnetRegistry.json.mjs +12 -9
- package/constants/token-data/bnbMainnetRegistryFixed.json.cjs +1 -1
- package/constants/token-data/bnbMainnetRegistryFixed.json.mjs +12 -9
- package/constants/token-data/ethMainnetRegistry.json.cjs +1 -1
- package/constants/token-data/ethMainnetRegistry.json.mjs +15 -12
- package/constants/token-data/ethMainnetRegistryFixed.json.cjs +1 -1
- package/constants/token-data/ethMainnetRegistryFixed.json.mjs +15 -12
- package/constants/token-data/index.cjs +1 -0
- package/constants/token-data/index.d.ts +972 -15
- package/constants/token-data/index.mjs +34 -0
- package/constants/token-data/localhostRegistry.json.cjs +1 -1
- package/constants/token-data/localhostRegistry.json.mjs +15 -12
- package/constants/token-data/optimismRegistry.json.cjs +1 -1
- package/constants/token-data/optimismRegistry.json.mjs +4 -1
- package/constants/token-data/optimismRegistryFixed.json.cjs +1 -1
- package/constants/token-data/optimismRegistryFixed.json.mjs +4 -1
- package/constants/token-data/polygonRegistry.json.cjs +1 -1
- package/constants/token-data/polygonRegistry.json.mjs +4 -1
- package/constants/token-data/polygonRegistryFixed.json.cjs +1 -1
- package/constants/token-data/polygonRegistryFixed.json.mjs +4 -1
- package/data-structures/Hinkal/Hinkal.cjs +1 -1
- package/data-structures/Hinkal/Hinkal.d.ts +2 -0
- package/data-structures/Hinkal/Hinkal.mjs +38 -32
- package/data-structures/Hinkal/IHinkal.d.ts +2 -0
- package/data-structures/Hinkal/hinkalActionBeefy.cjs +1 -1
- package/data-structures/Hinkal/hinkalActionBeefy.mjs +21 -20
- package/data-structures/Hinkal/hinkalActionConvex.cjs +1 -1
- package/data-structures/Hinkal/hinkalActionConvex.mjs +13 -12
- package/data-structures/Hinkal/hinkalActionCurve.cjs +1 -1
- package/data-structures/Hinkal/hinkalActionCurve.mjs +15 -14
- package/data-structures/Hinkal/hinkalActionLidoEth.cjs +1 -1
- package/data-structures/Hinkal/hinkalActionLidoEth.mjs +17 -16
- package/data-structures/Hinkal/hinkalActionPendle.cjs +1 -1
- package/data-structures/Hinkal/hinkalActionPendle.d.ts +1 -1
- package/data-structures/Hinkal/hinkalActionPendle.mjs +24 -23
- package/data-structures/Hinkal/hinkalActionPendleLP.cjs +1 -1
- package/data-structures/Hinkal/hinkalActionPendleLP.mjs +21 -20
- package/data-structures/Hinkal/hinkalActionStake.cjs +1 -1
- package/data-structures/Hinkal/hinkalActionStake.d.ts +1 -1
- package/data-structures/Hinkal/hinkalActionStake.mjs +6 -5
- package/data-structures/Hinkal/hinkalActionVolatile.cjs +1 -1
- package/data-structures/Hinkal/hinkalActionVolatile.d.ts +1 -1
- package/data-structures/Hinkal/hinkalActionVolatile.mjs +9 -8
- package/data-structures/Hinkal/hinkalDeposit.cjs +1 -1
- package/data-structures/Hinkal/hinkalDeposit.d.ts +2 -2
- package/data-structures/Hinkal/hinkalDeposit.mjs +93 -54
- package/data-structures/Hinkal/hinkalGetZkMeProvider.cjs +1 -1
- package/data-structures/Hinkal/hinkalGetZkMeProvider.mjs +3 -2
- package/data-structures/Hinkal/hinkalPrivateWallet.cjs +1 -1
- package/data-structures/Hinkal/hinkalPrivateWallet.mjs +5 -4
- package/data-structures/Hinkal/hinkalSwap.cjs +1 -1
- package/data-structures/Hinkal/hinkalSwap.mjs +23 -22
- package/data-structures/Hinkal/hinkalWithdraw.cjs +1 -1
- package/data-structures/Hinkal/hinkalWithdraw.d.ts +1 -1
- package/data-structures/Hinkal/hinkalWithdraw.mjs +13 -12
- package/data-structures/merkle-tree/MerkleTree.cjs +1 -1
- package/data-structures/merkle-tree/MerkleTree.d.ts +2 -0
- package/data-structures/merkle-tree/MerkleTree.mjs +38 -25
- package/data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.cjs +1 -0
- package/data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.d.ts +3 -0
- package/data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.mjs +9 -0
- package/data-structures/merkle-tree/index.d.ts +1 -0
- package/data-structures/transactions-manager/TransactionsManager.cjs +1 -1
- package/data-structures/transactions-manager/TransactionsManager.d.ts +6 -5
- package/data-structures/transactions-manager/TransactionsManager.mjs +118 -111
- package/error-handling/error-codes.constants.cjs +1 -1
- package/error-handling/error-codes.constants.d.ts +4 -0
- package/error-handling/error-codes.constants.mjs +6 -2
- package/externalABIs/BabPassport.json.cjs +1 -1
- package/externalABIs/BabPassport.json.mjs +8 -3
- package/externalABIs/BeefyRouterAbi.json.cjs +1 -1
- package/externalABIs/BeefyRouterAbi.json.mjs +5 -2
- package/externalABIs/BeefyStrategyAbi.json.cjs +1 -1
- package/externalABIs/BeefyStrategyAbi.json.mjs +5 -2
- package/externalABIs/BeefyVaultAbi.json.cjs +1 -1
- package/externalABIs/BeefyVaultAbi.json.mjs +5 -2
- package/externalABIs/BeefyZapAbi.json.cjs +1 -1
- package/externalABIs/BeefyZapAbi.json.mjs +5 -2
- package/externalABIs/BeefyZapOneInchAbi.json.cjs +1 -1
- package/externalABIs/BeefyZapOneInchAbi.json.mjs +5 -2
- package/externalABIs/ConvexBoosterAbi.json.cjs +1 -1
- package/externalABIs/ConvexBoosterAbi.json.mjs +5 -2
- package/externalABIs/ConvexBoosterAbiMainnet.json.cjs +1 -1
- package/externalABIs/ConvexBoosterAbiMainnet.json.mjs +5 -2
- package/externalABIs/ConvexRewardPoolAbi.json.cjs +1 -1
- package/externalABIs/ConvexRewardPoolAbi.json.mjs +5 -2
- package/externalABIs/CurveReadingWrapperAbi.json.cjs +1 -1
- package/externalABIs/CurveReadingWrapperAbi.json.mjs +5 -2
- package/externalABIs/CurveWrappedMainPool.json.cjs +1 -1
- package/externalABIs/CurveWrappedMainPool.json.mjs +5 -2
- package/externalABIs/CurveZap.json.cjs +1 -1
- package/externalABIs/CurveZap.json.mjs +5 -2
- package/externalABIs/CvxCrvUtilities.json.cjs +1 -1
- package/externalABIs/CvxCrvUtilities.json.mjs +5 -2
- package/externalABIs/ERC20.json.cjs +1 -1
- package/externalABIs/ERC20.json.mjs +20 -3
- package/externalABIs/GalxePassport.json.cjs +1 -1
- package/externalABIs/GalxePassport.json.mjs +8 -3
- package/externalABIs/IQuoterV2.json.cjs +1 -1
- package/externalABIs/IQuoterV2.json.mjs +20 -3
- package/externalABIs/ISwapRouter.json.cjs +1 -1
- package/externalABIs/ISwapRouter.json.mjs +5 -2
- package/externalABIs/IUniswapV3Factory.json.cjs +1 -1
- package/externalABIs/IUniswapV3Factory.json.mjs +20 -3
- package/externalABIs/IUniswapV3Pool.json.cjs +1 -1
- package/externalABIs/IUniswapV3Pool.json.mjs +20 -3
- package/externalABIs/PendleRouterAbi.json.cjs +1 -1
- package/externalABIs/PendleRouterAbi.json.mjs +5 -2
- package/externalABIs/UniswapV2PoolAbi.json.cjs +1 -1
- package/externalABIs/UniswapV2PoolAbi.json.mjs +16 -3
- package/externalABIs/index.cjs +1 -0
- package/externalABIs/index.d.ts +307 -11
- package/externalABIs/index.mjs +23 -0
- package/externalABIs/transactionsProver.json.cjs +1 -1
- package/externalABIs/transactionsProver.json.mjs +20 -3
- package/functions/kyc/zkMeHelper.cjs +1 -1
- package/functions/kyc/zkMeHelper.d.ts +0 -1
- package/functions/kyc/zkMeHelper.mjs +8 -11
- package/functions/pre-transaction/process-gas-estimates.cjs +1 -1
- package/functions/pre-transaction/process-gas-estimates.mjs +3 -2
- package/functions/private-wallet/opProducer.cjs +1 -1
- package/functions/private-wallet/opProducer.mjs +9 -10
- package/functions/protocols/convex.protocols.cjs +1 -1
- package/functions/protocols/convex.protocols.mjs +3 -2
- package/functions/protocols/pendle.helpers.cjs +1 -1
- package/functions/protocols/pendle.helpers.mjs +14 -13
- package/functions/snarkjs/constant.cjs +1 -1
- package/functions/snarkjs/constant.d.ts +1 -0
- package/functions/snarkjs/constant.mjs +6 -5
- package/functions/snarkjs/constructEmporiumProof.cjs +1 -1
- package/functions/snarkjs/constructEmporiumProof.d.ts +1 -1
- package/functions/snarkjs/constructEmporiumProof.mjs +31 -31
- package/functions/snarkjs/constructGeneralZkProof.cjs +1 -1
- package/functions/snarkjs/constructGeneralZkProof.d.ts +1 -1
- package/functions/snarkjs/constructGeneralZkProof.mjs +76 -75
- package/functions/snarkjs/generateZkProof.cjs +1 -1
- package/functions/snarkjs/generateZkProof.d.ts +1 -1
- package/functions/snarkjs/generateZkProof.mjs +4 -15
- package/functions/snarkjs/generateZkProofEnclave.cjs +1 -0
- package/functions/snarkjs/generateZkProofEnclave.d.ts +5 -0
- package/functions/snarkjs/generateZkProofEnclave.mjs +33 -0
- package/functions/snarkjs/generateZkProofSelf.cjs +1 -0
- package/functions/snarkjs/generateZkProofSelf.d.ts +5 -0
- package/functions/snarkjs/generateZkProofSelf.mjs +17 -0
- package/functions/utils/axelar.utils.cjs +1 -1
- package/functions/utils/axelar.utils.mjs +3 -2
- package/functions/utils/cacheDevice.utils.cjs +1 -1
- package/functions/utils/cacheDevice.utils.mjs +9 -8
- package/functions/utils/erc20tokenFunctions.cjs +1 -1
- package/functions/utils/erc20tokenFunctions.mjs +8 -7
- package/functions/utils/evmNetworkFunctions.cjs +1 -1
- package/functions/utils/evmNetworkFunctions.mjs +4 -3
- package/functions/utils/userAgent.cjs +1 -1
- package/functions/utils/userAgent.mjs +8 -8
- package/functions/web3/functionCalls/accessTokenCalls.cjs +1 -1
- package/functions/web3/functionCalls/accessTokenCalls.mjs +8 -8
- package/functions/web3/functionCalls/transactCallDirect.cjs +1 -1
- package/functions/web3/functionCalls/transactCallDirect.d.ts +1 -1
- package/functions/web3/functionCalls/transactCallDirect.mjs +43 -29
- package/functions/web3/functionCalls/transactCallRelayer.cjs +1 -1
- package/functions/web3/functionCalls/transactCallRelayer.mjs +10 -8
- package/functions/web3/getContractMetadata.cjs +1 -0
- package/functions/web3/getContractMetadata.d.ts +5 -0
- package/functions/web3/getContractMetadata.mjs +30 -0
- package/functions/web3/odosAPI.cjs +1 -1
- package/functions/web3/odosAPI.d.ts +1 -2
- package/functions/web3/odosAPI.mjs +19 -18
- package/functions/web3/oneInchAPI.cjs +1 -1
- package/functions/web3/oneInchAPI.d.ts +1 -2
- package/functions/web3/oneInchAPI.mjs +17 -15
- package/functions/web3/uniswapAPI.cjs +1 -1
- package/functions/web3/uniswapAPI.d.ts +4 -4
- package/functions/web3/uniswapAPI.mjs +54 -43
- package/index.cjs +1 -1
- package/index.mjs +617 -638
- package/package.json +4 -3
- package/providers/EthersProviderAdapter.cjs +1 -1
- package/providers/EthersProviderAdapter.d.ts +1 -0
- package/providers/EthersProviderAdapter.mjs +26 -37
- package/providers/WagmiProviderAdapter.cjs +1 -1
- package/providers/WagmiProviderAdapter.d.ts +1 -1
- package/providers/WagmiProviderAdapter.mjs +52 -66
- package/providers/exportProviers.d.ts +1 -1
- package/providers/prepareEthersHinkal.cjs +1 -1
- package/providers/prepareEthersHinkal.mjs +4 -2
- package/providers/prepareWagmiHinkal.cjs +1 -1
- package/providers/prepareWagmiHinkal.mjs +4 -2
- package/types/ethereum-network.types.cjs +1 -1
- package/types/ethereum-network.types.d.ts +62 -59
- package/types/ethereum-network.types.mjs +1 -1
- package/types/hinkal.types.d.ts +4 -0
- package/types/kyc.types.cjs +1 -1
- package/types/kyc.types.d.ts +1 -1
- package/types/kyc.types.mjs +1 -1
- package/types/remote-proof.types.d.ts +15 -0
- package/types/rewards.types.d.ts +5 -0
- package/types/time.types.cjs +1 -1
- package/types/time.types.mjs +1 -1
- package/webworker/zkProofWorker/zkProofWorkerLauncher.cjs +1 -1
- package/webworker/zkProofWorker/zkProofWorkerLauncher.mjs +1 -1
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import { ethers as t, utils as c } from "ethers";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
2
|
+
import u from "../externalABIs/BeefyVaultAbi.json.mjs";
|
|
3
|
+
import p from "../externalABIs/CurveReadingWrapperAbi.json.mjs";
|
|
4
|
+
import A from "../externalABIs/CurveWrappedMainPool.json.mjs";
|
|
5
|
+
import b from "../externalABIs/ERC20.json.mjs";
|
|
6
|
+
import m from "../externalABIs/IQuoterV2.json.mjs";
|
|
7
|
+
import f from "../externalABIs/IUniswapV3Factory.json.mjs";
|
|
8
8
|
import C from "../externalABIs/LidoStEthAbi.json.mjs";
|
|
9
9
|
import k from "../externalABIs/LidoStMaticAbi.json.mjs";
|
|
10
10
|
import I from "../externalABIs/LidoWithdrawalQueueERC721Abi.json.mjs";
|
|
11
11
|
import v from "../externalABIs/PoLidoNftAbi.json.mjs";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import { networkRegistry as
|
|
27
|
-
import { ContractType as
|
|
28
|
-
import { lidoWstEthContractAddress as
|
|
29
|
-
const
|
|
30
|
-
abi: f
|
|
31
|
-
},
|
|
32
|
-
abi:
|
|
33
|
-
}, Z = {
|
|
34
|
-
abi: V
|
|
12
|
+
import B from "../externalABIs/LidoWstEthAbi.json.mjs";
|
|
13
|
+
import x from "../externalABIs/LidoStakeManagerAbi.json.mjs";
|
|
14
|
+
import w from "../externalABIs/BeefyRouterAbi.json.mjs";
|
|
15
|
+
import h from "../externalABIs/BeefyStrategyAbi.json.mjs";
|
|
16
|
+
import P from "../externalABIs/BeefyZapAbi.json.mjs";
|
|
17
|
+
import W from "../externalABIs/BeefyZapOneInchAbi.json.mjs";
|
|
18
|
+
import S from "../externalABIs/ConvexBoosterAbi.json.mjs";
|
|
19
|
+
import E from "../externalABIs/ConvexBoosterAbiMainnet.json.mjs";
|
|
20
|
+
import T from "../externalABIs/ConvexRewardPoolAbi.json.mjs";
|
|
21
|
+
import y from "../externalABIs/CurveZap.json.mjs";
|
|
22
|
+
import L from "../externalABIs/CvxCrvUtilities.json.mjs";
|
|
23
|
+
import g from "../externalABIs/PendleRouterAbi.json.mjs";
|
|
24
|
+
import V from "../externalABIs/IUniswapV3Pool.json.mjs";
|
|
25
|
+
import R from "../externalABIs/UniswapV2PoolAbi.json.mjs";
|
|
26
|
+
import { networkRegistry as M, getNonLocalhostChainId as H } from "./chains.constants.mjs";
|
|
27
|
+
import { ContractType as n } from "../types/ethereum-network.types.mjs";
|
|
28
|
+
import { lidoWstEthContractAddress as _, lidoStEthContractAddress as N, lidoWithdrawalQueueERC721Address as O, poLidoNftAddress as Q, lidoStMaticAddress as U, lidoStakeManagerAddress as Z } from "./lido.constants.mjs";
|
|
29
|
+
const F = {
|
|
30
|
+
abi: f.abi
|
|
31
|
+
}, G = {
|
|
32
|
+
abi: V.abi
|
|
35
33
|
}, Y = {
|
|
36
|
-
abi:
|
|
34
|
+
abi: R.abi
|
|
35
|
+
}, $ = {
|
|
36
|
+
abi: m.abi
|
|
37
37
|
}, J = new t.utils.Interface([
|
|
38
38
|
"function coins(int128 arg0) external view returns (address)"
|
|
39
39
|
]), j = new t.utils.Interface([
|
|
40
40
|
"function balances(int128 arg0) external view returns (uint256)"
|
|
41
|
-
]),
|
|
41
|
+
]), a = (e) => new t.utils.Interface([
|
|
42
42
|
`function calc_token_amount(uint256[${e || ""}] _amounts, bool is_deposit) external view returns (uint256)`,
|
|
43
43
|
"function coins(uint256 arg0) external view returns (address)",
|
|
44
44
|
"function calc_withdraw_one_coin(uint256 token_amount, uint256 i) external view returns (uint256)",
|
|
45
45
|
"function fee() external view returns (uint256)"
|
|
46
|
-
]),
|
|
46
|
+
]), i = (e) => new t.utils.Interface([
|
|
47
47
|
`function calc_token_amount(uint256[${e}] _amounts) external view returns (uint256)`,
|
|
48
48
|
"function coins(uint256 arg0) external view returns (address)",
|
|
49
49
|
"function calc_withdraw_one_coin(uint256 token_amount, uint256 i) external view returns (uint256)",
|
|
@@ -56,218 +56,222 @@ const G = {
|
|
|
56
56
|
"function checkpoint(uint256 lpBalance, uint256 prevTimeStamp, uint256 currentTimeStamp) external returns (uint256, uint256[] memory)",
|
|
57
57
|
"function claimable(uint256 lpBalance, uint256 prevTimeStamp) external returns (uint256, uint256[] memory)"
|
|
58
58
|
]), Ee = {
|
|
59
|
-
[
|
|
59
|
+
[n.HinkalContract]: (e) => ({
|
|
60
60
|
abi: e.hinkalABI,
|
|
61
61
|
address: e.hinkalAddress
|
|
62
62
|
}),
|
|
63
|
-
[
|
|
63
|
+
[n.HinkalHelperContract]: (e) => ({
|
|
64
64
|
abi: e.hinkalHelperABI,
|
|
65
65
|
address: e.hinkalHelperAddress
|
|
66
66
|
}),
|
|
67
|
-
[
|
|
67
|
+
[n.CrossChainAccessTokenContract]: (e) => ({
|
|
68
68
|
abi: e.crossChainAccessTokenABI,
|
|
69
69
|
address: e.crossChainAccessTokenAddress
|
|
70
70
|
}),
|
|
71
|
-
[
|
|
72
|
-
abi:
|
|
71
|
+
[n.CrossChainAccessTokenManagerContract]: (e) => ({
|
|
72
|
+
abi: e.crossChainAccessTokenManagerABI,
|
|
73
|
+
address: e.crossChainAccessTokenManagerAddress
|
|
73
74
|
}),
|
|
74
|
-
[
|
|
75
|
-
abi:
|
|
75
|
+
[n.MerkleTreeContract]: () => ({
|
|
76
|
+
abi: new t.utils.Interface(["function getRootHash() public view returns (uint256)"])
|
|
76
77
|
}),
|
|
77
|
-
[
|
|
78
|
+
[n.UniswapV3FactoryContract]: () => ({
|
|
78
79
|
abi: F.abi
|
|
79
80
|
}),
|
|
80
|
-
[
|
|
81
|
-
abi:
|
|
81
|
+
[n.UniswapV3PoolContract]: () => ({
|
|
82
|
+
abi: G.abi
|
|
82
83
|
}),
|
|
83
|
-
[
|
|
84
|
+
[n.UniswapV2PoolContract]: () => ({
|
|
84
85
|
abi: Y.abi
|
|
85
86
|
}),
|
|
86
|
-
[
|
|
87
|
-
abi:
|
|
87
|
+
[n.UniswapV3QuoterContract]: () => ({
|
|
88
|
+
abi: $.abi
|
|
88
89
|
}),
|
|
89
|
-
[
|
|
90
|
+
[n.ERC20Contract]: () => ({
|
|
91
|
+
abi: b.abi
|
|
92
|
+
}),
|
|
93
|
+
[n.WATokenContract]: (e) => ({
|
|
90
94
|
abi: e.waTokenABI
|
|
91
95
|
}),
|
|
92
|
-
[
|
|
96
|
+
[n.ContractWithNonces]: () => ({
|
|
93
97
|
abi: new t.utils.Interface(["function nonces(address owner) external view returns (uint)"])
|
|
94
98
|
}),
|
|
95
|
-
[
|
|
99
|
+
[n.PermitterContract]: (e) => ({
|
|
96
100
|
abi: e.permitterABI,
|
|
97
101
|
address: e.permitterAddress
|
|
98
102
|
}),
|
|
99
|
-
[
|
|
103
|
+
[n.CurveExternalAction]: (e) => ({
|
|
100
104
|
address: e.curveExternalActionInstanceAddress,
|
|
101
105
|
abi: e.curveExternalActionABI
|
|
102
106
|
}),
|
|
103
|
-
[
|
|
107
|
+
[n.WrappedStakedCurveLp]: (e) => ({
|
|
104
108
|
abi: e.wrappedStakedCurveLpABI
|
|
105
109
|
}),
|
|
106
|
-
[
|
|
110
|
+
[n.WrappedStakedRewardsCurveLp]: () => ({
|
|
107
111
|
abi: K
|
|
108
112
|
}),
|
|
109
|
-
[
|
|
110
|
-
abi:
|
|
113
|
+
[n.CurveWrappedMainPool]: () => ({
|
|
114
|
+
abi: A.abi
|
|
111
115
|
}),
|
|
112
|
-
[
|
|
113
|
-
abi:
|
|
116
|
+
[n.CurveReadingWrapper]: () => ({
|
|
117
|
+
abi: p.abi
|
|
114
118
|
}),
|
|
115
119
|
// we use curveReadingWrapper has withdraw one coin as uint whereas curveWrappedMainPool has it as int
|
|
116
|
-
[
|
|
117
|
-
abi:
|
|
120
|
+
[n.CurvePoolLPTokenAmountCalculator2]: () => ({
|
|
121
|
+
abi: a(2)
|
|
118
122
|
}),
|
|
119
|
-
[
|
|
120
|
-
abi:
|
|
123
|
+
[n.CurvePoolLPTokenAmountCalculator3]: () => ({
|
|
124
|
+
abi: a(3)
|
|
121
125
|
}),
|
|
122
|
-
[
|
|
123
|
-
abi:
|
|
126
|
+
[n.CurvePoolLPTokenAmountCalculator4]: () => ({
|
|
127
|
+
abi: a(4)
|
|
124
128
|
}),
|
|
125
|
-
[
|
|
126
|
-
abi:
|
|
129
|
+
[n.CurvePoolLPTokenAmountCalculatorDynamic]: () => ({
|
|
130
|
+
abi: a()
|
|
127
131
|
}),
|
|
128
|
-
[
|
|
129
|
-
abi:
|
|
132
|
+
[n.CurvePoolLPTokenAmountCalculator2OneArg]: () => ({
|
|
133
|
+
abi: i(2)
|
|
130
134
|
}),
|
|
131
|
-
[
|
|
132
|
-
abi:
|
|
135
|
+
[n.CurvePoolLPTokenAmountCalculator3OneArg]: () => ({
|
|
136
|
+
abi: i(3)
|
|
133
137
|
}),
|
|
134
|
-
[
|
|
135
|
-
abi:
|
|
138
|
+
[n.CurvePoolLPTokenAmountCalculator4OneArg]: () => ({
|
|
139
|
+
abi: i(4)
|
|
136
140
|
}),
|
|
137
|
-
[
|
|
138
|
-
[
|
|
139
|
-
[
|
|
141
|
+
[n.CurvePoolWithIntCoins]: () => ({ abi: J }),
|
|
142
|
+
[n.CurvePoolWithIntBalances]: () => ({ abi: j }),
|
|
143
|
+
[n.OneInchExternalActionContract]: (e) => ({
|
|
140
144
|
address: e.oneInchExternalActionInstanceAddress
|
|
141
145
|
}),
|
|
142
|
-
[
|
|
146
|
+
[n.CurveGauge]: () => ({
|
|
143
147
|
abi: q
|
|
144
148
|
}),
|
|
145
|
-
[
|
|
146
|
-
abi:
|
|
149
|
+
[n.CurveZaps]: () => ({
|
|
150
|
+
abi: y.abi
|
|
147
151
|
}),
|
|
148
|
-
[
|
|
152
|
+
[n.ConvexExternalAction]: (e) => ({
|
|
149
153
|
address: e.convexExternalActionInstanceAddress,
|
|
150
154
|
abi: e.convexExternalActionABI
|
|
151
155
|
}),
|
|
152
|
-
[
|
|
153
|
-
[
|
|
154
|
-
abi:
|
|
156
|
+
[n.WrappedStakedConvexLp]: (e) => ({ abi: e.wrappedStakedConvexLpABI }),
|
|
157
|
+
[n.ConvexBooster]: () => ({
|
|
158
|
+
abi: S.abi
|
|
155
159
|
}),
|
|
156
|
-
[
|
|
157
|
-
abi: E
|
|
160
|
+
[n.ConvexBoosterMainnet]: () => ({
|
|
161
|
+
abi: E.abi
|
|
158
162
|
}),
|
|
159
|
-
[
|
|
160
|
-
abi:
|
|
163
|
+
[n.ConvexRewardPool]: () => ({
|
|
164
|
+
abi: T.abi
|
|
161
165
|
}),
|
|
162
|
-
[
|
|
166
|
+
[n.ConvexCvxLocker]: () => ({
|
|
163
167
|
abi: z
|
|
164
168
|
}),
|
|
165
|
-
[
|
|
169
|
+
[n.ConvexStakePool]: () => ({
|
|
166
170
|
abi: new t.utils.Interface(["function totalSupply() external view returns (uint256)"])
|
|
167
171
|
}),
|
|
168
|
-
[
|
|
172
|
+
[n.ConvexCvxCRVWrapper]: () => ({
|
|
169
173
|
abi: new t.utils.Interface(["function totalSupply() external view returns (uint256)"])
|
|
170
174
|
}),
|
|
171
|
-
[
|
|
172
|
-
abi:
|
|
175
|
+
[n.ConvexCxvCrvUtillities]: () => ({
|
|
176
|
+
abi: L.abi
|
|
173
177
|
}),
|
|
174
|
-
[
|
|
175
|
-
abi: u
|
|
178
|
+
[n.BeefyVault]: () => ({
|
|
179
|
+
abi: u.abi
|
|
176
180
|
}),
|
|
177
|
-
[
|
|
178
|
-
abi: P
|
|
181
|
+
[n.BeefyZap]: () => ({
|
|
182
|
+
abi: P.abi
|
|
179
183
|
}),
|
|
180
|
-
[
|
|
181
|
-
abi:
|
|
184
|
+
[n.BeefyRouter]: () => ({
|
|
185
|
+
abi: w.abi
|
|
182
186
|
}),
|
|
183
|
-
[
|
|
184
|
-
abi:
|
|
187
|
+
[n.BeefyZapOneInch]: () => ({
|
|
188
|
+
abi: W.abi
|
|
185
189
|
}),
|
|
186
|
-
[
|
|
187
|
-
abi:
|
|
190
|
+
[n.BeefyStrategy]: () => ({
|
|
191
|
+
abi: h.abi
|
|
188
192
|
}),
|
|
189
|
-
[
|
|
193
|
+
[n.BeefyExternalAction]: (e) => ({
|
|
190
194
|
abi: e.BeefyExternalActionABI,
|
|
191
195
|
address: e.beefyExternalActionInstanceAddress
|
|
192
196
|
}),
|
|
193
|
-
[
|
|
197
|
+
[n.BeefyStakeExternalAction]: (e) => ({
|
|
194
198
|
abi: e.BeefyStakeExternalActionABI,
|
|
195
199
|
address: e.beefyStakeExternalActionInstanceAddress
|
|
196
200
|
}),
|
|
197
|
-
[
|
|
201
|
+
[n.WrappedStakedBeefyLp]: (e) => ({
|
|
198
202
|
abi: e.WrappedStakedBeefyLpABI
|
|
199
203
|
}),
|
|
200
|
-
[
|
|
201
|
-
abi:
|
|
202
|
-
address:
|
|
204
|
+
[n.LidoWstEther]: () => ({
|
|
205
|
+
abi: B,
|
|
206
|
+
address: _
|
|
203
207
|
}),
|
|
204
|
-
[
|
|
208
|
+
[n.LidoStEther]: () => ({
|
|
205
209
|
abi: C,
|
|
206
|
-
address:
|
|
210
|
+
address: N
|
|
207
211
|
}),
|
|
208
|
-
[
|
|
212
|
+
[n.LidoWithdrawalQueueERC721]: () => ({
|
|
209
213
|
abi: I,
|
|
210
|
-
address:
|
|
214
|
+
address: O
|
|
211
215
|
}),
|
|
212
|
-
[
|
|
216
|
+
[n.PendleGeneralExternalAction]: (e) => ({
|
|
213
217
|
abi: e.pendleExternalActionABI,
|
|
214
218
|
address: e.pendleExternalActionInstanceAddress
|
|
215
219
|
}),
|
|
216
|
-
[
|
|
220
|
+
[n.WstYtToken]: (e) => ({
|
|
217
221
|
abi: e.WstYtTokenABI
|
|
218
222
|
}),
|
|
219
|
-
[
|
|
223
|
+
[n.WstPendleLPToken]: (e) => ({
|
|
220
224
|
abi: e.WstPendleLPABI
|
|
221
225
|
}),
|
|
222
|
-
[
|
|
223
|
-
abi:
|
|
226
|
+
[n.PendleRouter]: (e) => ({
|
|
227
|
+
abi: g.abi,
|
|
224
228
|
address: e.pendleExternalActionInstanceAddress
|
|
225
229
|
}),
|
|
226
|
-
[
|
|
230
|
+
[n.PoLidoNFT]: () => ({
|
|
227
231
|
abi: v,
|
|
228
|
-
address: O
|
|
229
|
-
}),
|
|
230
|
-
[a.LidoStMatic]: () => ({
|
|
231
|
-
abi: k,
|
|
232
232
|
address: Q
|
|
233
233
|
}),
|
|
234
|
-
[
|
|
235
|
-
abi:
|
|
234
|
+
[n.LidoStMatic]: () => ({
|
|
235
|
+
abi: k,
|
|
236
236
|
address: U
|
|
237
237
|
}),
|
|
238
|
-
[
|
|
238
|
+
[n.LidoStakeManager]: () => ({
|
|
239
|
+
abi: x,
|
|
240
|
+
address: Z
|
|
241
|
+
}),
|
|
242
|
+
[n.VolatileVault]: (e) => ({
|
|
239
243
|
abi: e.VolatileVaultABI,
|
|
240
244
|
address: e.volatileVaultInstanceAddress
|
|
241
245
|
}),
|
|
242
|
-
[
|
|
246
|
+
[n.VolatileTokenAction]: (e) => ({
|
|
243
247
|
abi: e.VolatileTokenActionABI,
|
|
244
248
|
address: e.volatileTokenActionInstanceAddress
|
|
245
249
|
}),
|
|
246
|
-
[
|
|
250
|
+
[n.HinkalWrapper]: (e) => ({
|
|
247
251
|
abi: e.HinkalWrapperABI,
|
|
248
252
|
address: e.hinkalWrapperAddress
|
|
249
253
|
}),
|
|
250
|
-
[
|
|
254
|
+
[n.HinkalWrapper2]: (e) => ({
|
|
251
255
|
// return old one if new one isn't available
|
|
252
256
|
abi: e.HinkalWrapper2ABI ?? e.HinkalWrapperABI,
|
|
253
257
|
address: e.hinkalWrapper2Address ?? e.hinkalWrapperAddress
|
|
254
258
|
}),
|
|
255
|
-
[
|
|
259
|
+
[n.HinkalStakeExternalAction]: (e) => ({
|
|
256
260
|
abi: e.HinkalStakeExternalActionABI,
|
|
257
261
|
address: e.hinkalStakeExternalActionAddress
|
|
258
262
|
}),
|
|
259
|
-
[
|
|
263
|
+
[n.HToken]: (e) => ({
|
|
260
264
|
abi: e.HTokenABI
|
|
261
265
|
})
|
|
262
|
-
},
|
|
263
|
-
const { contractData: o } = H
|
|
264
|
-
return { hinkalInterface:
|
|
266
|
+
}, Te = (e) => {
|
|
267
|
+
const { contractData: o } = M[H(e)], s = JSON.stringify(o.hinkalABI), r = new c.Interface(s), l = r.getSighash("transact"), d = r.getSighash("transactWithExternalAction");
|
|
268
|
+
return { hinkalInterface: r, transactMethodId: l, transactWithExternalActionMethodId: d, NewCommitment: "NewCommitment", NewCommitmentTopic: "0xc2e3bd2d00c3cf4d09298e5a0cfd317cf7a6e5bf15d467cfa805a91e1a4a221d" };
|
|
265
269
|
};
|
|
266
270
|
export {
|
|
267
271
|
Ee as contractMetadataMapping,
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
272
|
+
Te as getHinkalParameters,
|
|
273
|
+
Y as uniswapV2PoolData,
|
|
274
|
+
F as uniswapV3FactoryData,
|
|
275
|
+
G as uniswapV3PoolData,
|
|
276
|
+
$ as uniswapV3QuoterData
|
|
273
277
|
};
|