@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
|
@@ -7,65 +7,66 @@ export declare enum ContractType {
|
|
|
7
7
|
HinkalContract = 0,
|
|
8
8
|
HinkalHelperContract = 1,
|
|
9
9
|
CrossChainAccessTokenContract = 2,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
10
|
+
CrossChainAccessTokenManagerContract = 3,
|
|
11
|
+
UniswapV3FactoryContract = 4,
|
|
12
|
+
UniswapV3PoolContract = 5,
|
|
13
|
+
UniswapV3QuoterContract = 6,
|
|
14
|
+
ERC20Contract = 7,
|
|
15
|
+
WATokenContract = 8,
|
|
16
|
+
OneInchExternalActionContract = 9,
|
|
17
|
+
MerkleTreeContract = 10,
|
|
18
|
+
ContractWithNonces = 11,
|
|
19
|
+
PermitterContract = 12,
|
|
20
|
+
CurveWrappedMainPool = 13,
|
|
21
|
+
CurveReadingWrapper = 14,
|
|
22
|
+
CurvePoolLPTokenAmountCalculator2 = 15,
|
|
23
|
+
CurvePoolLPTokenAmountCalculator3 = 16,
|
|
24
|
+
CurvePoolLPTokenAmountCalculator4 = 17,
|
|
25
|
+
CurvePoolLPTokenAmountCalculatorDynamic = 18,
|
|
26
|
+
CurvePoolLPTokenAmountCalculator2OneArg = 19,
|
|
27
|
+
CurvePoolLPTokenAmountCalculator3OneArg = 20,
|
|
28
|
+
CurvePoolLPTokenAmountCalculator4OneArg = 21,
|
|
29
|
+
CurvePoolWithIntCoins = 22,
|
|
30
|
+
CurveExternalAction = 23,
|
|
31
|
+
WrappedStakedCurveLp = 24,
|
|
32
|
+
WrappedStakedRewardsCurveLp = 25,
|
|
33
|
+
CurveGauge = 26,
|
|
34
|
+
ConvexBooster = 27,
|
|
35
|
+
ConvexBoosterMainnet = 28,
|
|
36
|
+
ConvexRewardPool = 29,
|
|
37
|
+
ConvexCvxLocker = 30,
|
|
38
|
+
ConvexStakePool = 31,
|
|
39
|
+
ConvexCvxCRVWrapper = 32,
|
|
40
|
+
ConvexCxvCrvUtillities = 33,
|
|
41
|
+
ConvexExternalAction = 34,
|
|
42
|
+
WrappedStakedConvexLp = 35,
|
|
43
|
+
CurvePoolWithIntBalances = 36,
|
|
44
|
+
CurveZaps = 37,
|
|
45
|
+
BeefyVault = 38,
|
|
46
|
+
BeefyZap = 39,
|
|
47
|
+
BeefyRouter = 40,
|
|
48
|
+
BeefyZapOneInch = 41,
|
|
49
|
+
BeefyExternalAction = 42,
|
|
50
|
+
BeefyStakeExternalAction = 43,
|
|
51
|
+
BeefyStrategy = 44,
|
|
52
|
+
WrappedStakedBeefyLp = 45,
|
|
53
|
+
UniswapV2PoolContract = 46,
|
|
54
|
+
LidoWstEther = 47,
|
|
55
|
+
LidoStEther = 48,
|
|
56
|
+
LidoStMatic = 49,
|
|
57
|
+
LidoWithdrawalQueueERC721 = 50,
|
|
58
|
+
LidoStakeManager = 51,
|
|
59
|
+
PoLidoNFT = 52,
|
|
60
|
+
PendleGeneralExternalAction = 53,
|
|
61
|
+
PendleRouter = 54,
|
|
62
|
+
WstPendleLPToken = 55,
|
|
63
|
+
WstYtToken = 56,
|
|
64
|
+
VolatileVault = 57,
|
|
65
|
+
VolatileTokenAction = 58,
|
|
66
|
+
HinkalWrapper = 59,
|
|
67
|
+
HinkalWrapper2 = 60,
|
|
68
|
+
HinkalStakeExternalAction = 61,
|
|
69
|
+
HToken = 62
|
|
69
70
|
}
|
|
70
71
|
export interface ContractData {
|
|
71
72
|
hinkalAddress: string;
|
|
@@ -74,6 +75,8 @@ export interface ContractData {
|
|
|
74
75
|
hinkalHelperABI?: ContractInterface;
|
|
75
76
|
crossChainAccessTokenAddress?: string;
|
|
76
77
|
crossChainAccessTokenABI?: ContractInterface;
|
|
78
|
+
crossChainAccessTokenManagerAddress?: string;
|
|
79
|
+
crossChainAccessTokenManagerABI?: ContractInterface;
|
|
77
80
|
permitterAddress?: string;
|
|
78
81
|
permitterABI?: ContractInterface;
|
|
79
82
|
uniswapExternalActionAddress?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var l = /* @__PURE__ */ ((e) => (e[e.HinkalContract = 0] = "HinkalContract", e[e.HinkalHelperContract = 1] = "HinkalHelperContract", e[e.CrossChainAccessTokenContract = 2] = "CrossChainAccessTokenContract", e[e.
|
|
1
|
+
var l = /* @__PURE__ */ ((e) => (e[e.HinkalContract = 0] = "HinkalContract", e[e.HinkalHelperContract = 1] = "HinkalHelperContract", e[e.CrossChainAccessTokenContract = 2] = "CrossChainAccessTokenContract", e[e.CrossChainAccessTokenManagerContract = 3] = "CrossChainAccessTokenManagerContract", e[e.UniswapV3FactoryContract = 4] = "UniswapV3FactoryContract", e[e.UniswapV3PoolContract = 5] = "UniswapV3PoolContract", e[e.UniswapV3QuoterContract = 6] = "UniswapV3QuoterContract", e[e.ERC20Contract = 7] = "ERC20Contract", e[e.WATokenContract = 8] = "WATokenContract", e[e.OneInchExternalActionContract = 9] = "OneInchExternalActionContract", e[e.MerkleTreeContract = 10] = "MerkleTreeContract", e[e.ContractWithNonces = 11] = "ContractWithNonces", e[e.PermitterContract = 12] = "PermitterContract", e[e.CurveWrappedMainPool = 13] = "CurveWrappedMainPool", e[e.CurveReadingWrapper = 14] = "CurveReadingWrapper", e[e.CurvePoolLPTokenAmountCalculator2 = 15] = "CurvePoolLPTokenAmountCalculator2", e[e.CurvePoolLPTokenAmountCalculator3 = 16] = "CurvePoolLPTokenAmountCalculator3", e[e.CurvePoolLPTokenAmountCalculator4 = 17] = "CurvePoolLPTokenAmountCalculator4", e[e.CurvePoolLPTokenAmountCalculatorDynamic = 18] = "CurvePoolLPTokenAmountCalculatorDynamic", e[e.CurvePoolLPTokenAmountCalculator2OneArg = 19] = "CurvePoolLPTokenAmountCalculator2OneArg", e[e.CurvePoolLPTokenAmountCalculator3OneArg = 20] = "CurvePoolLPTokenAmountCalculator3OneArg", e[e.CurvePoolLPTokenAmountCalculator4OneArg = 21] = "CurvePoolLPTokenAmountCalculator4OneArg", e[e.CurvePoolWithIntCoins = 22] = "CurvePoolWithIntCoins", e[e.CurveExternalAction = 23] = "CurveExternalAction", e[e.WrappedStakedCurveLp = 24] = "WrappedStakedCurveLp", e[e.WrappedStakedRewardsCurveLp = 25] = "WrappedStakedRewardsCurveLp", e[e.CurveGauge = 26] = "CurveGauge", e[e.ConvexBooster = 27] = "ConvexBooster", e[e.ConvexBoosterMainnet = 28] = "ConvexBoosterMainnet", e[e.ConvexRewardPool = 29] = "ConvexRewardPool", e[e.ConvexCvxLocker = 30] = "ConvexCvxLocker", e[e.ConvexStakePool = 31] = "ConvexStakePool", e[e.ConvexCvxCRVWrapper = 32] = "ConvexCvxCRVWrapper", e[e.ConvexCxvCrvUtillities = 33] = "ConvexCxvCrvUtillities", e[e.ConvexExternalAction = 34] = "ConvexExternalAction", e[e.WrappedStakedConvexLp = 35] = "WrappedStakedConvexLp", e[e.CurvePoolWithIntBalances = 36] = "CurvePoolWithIntBalances", e[e.CurveZaps = 37] = "CurveZaps", e[e.BeefyVault = 38] = "BeefyVault", e[e.BeefyZap = 39] = "BeefyZap", e[e.BeefyRouter = 40] = "BeefyRouter", e[e.BeefyZapOneInch = 41] = "BeefyZapOneInch", e[e.BeefyExternalAction = 42] = "BeefyExternalAction", e[e.BeefyStakeExternalAction = 43] = "BeefyStakeExternalAction", e[e.BeefyStrategy = 44] = "BeefyStrategy", e[e.WrappedStakedBeefyLp = 45] = "WrappedStakedBeefyLp", e[e.UniswapV2PoolContract = 46] = "UniswapV2PoolContract", e[e.LidoWstEther = 47] = "LidoWstEther", e[e.LidoStEther = 48] = "LidoStEther", e[e.LidoStMatic = 49] = "LidoStMatic", e[e.LidoWithdrawalQueueERC721 = 50] = "LidoWithdrawalQueueERC721", e[e.LidoStakeManager = 51] = "LidoStakeManager", e[e.PoLidoNFT = 52] = "PoLidoNFT", e[e.PendleGeneralExternalAction = 53] = "PendleGeneralExternalAction", e[e.PendleRouter = 54] = "PendleRouter", e[e.WstPendleLPToken = 55] = "WstPendleLPToken", e[e.WstYtToken = 56] = "WstYtToken", e[e.VolatileVault = 57] = "VolatileVault", e[e.VolatileTokenAction = 58] = "VolatileTokenAction", e[e.HinkalWrapper = 59] = "HinkalWrapper", e[e.HinkalWrapper2 = 60] = "HinkalWrapper2", e[e.HinkalStakeExternalAction = 61] = "HinkalStakeExternalAction", e[e.HToken = 62] = "HToken", e))(l || {});
|
|
2
2
|
export {
|
|
3
3
|
l as ContractType
|
|
4
4
|
};
|
package/types/hinkal.types.d.ts
CHANGED
|
@@ -13,6 +13,10 @@ export type HinkalConfig = {
|
|
|
13
13
|
* Node only.
|
|
14
14
|
*/
|
|
15
15
|
useFileCache?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Indicator controlling wether the proof should be constructed remotely in secure enclave.
|
|
18
|
+
*/
|
|
19
|
+
generateProofRemotely?: boolean;
|
|
16
20
|
};
|
|
17
21
|
export declare enum EventType {
|
|
18
22
|
BalanceChange = "BalanceChange",
|
package/types/kyc.types.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var E=(e=>(e.USER="USER",e.BUSINESS="BUSINESS",e))(E||{});const a=["USER","BUSINESS"];var N=(e=>(e[e.AiPriseKyc=0]="AiPriseKyc",e[e.AiPriseKyb=1]="AiPriseKyb",e[e.BABPassport=2]="BABPassport",e[e.GalxePassport=3]="GalxePassport",e[e.ZkMePassport=4]="ZkMePassport",e[e.CoinbasePassport=5]="CoinbasePassport",e[e.AuthentoPassport=6]="AuthentoPassport",e[e.AuthentoPassportKyb=7]="AuthentoPassportKyb",e[e.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var E=(e=>(e.USER="USER",e.BUSINESS="BUSINESS",e))(E||{});const a=["USER","BUSINESS"];var N=(e=>(e[e.AiPriseKyc=0]="AiPriseKyc",e[e.AiPriseKyb=1]="AiPriseKyb",e[e.BABPassport=2]="BABPassport",e[e.GalxePassport=3]="GalxePassport",e[e.ZkMePassport=4]="ZkMePassport",e[e.CoinbasePassport=5]="CoinbasePassport",e[e.AuthentoPassport=6]="AuthentoPassport",e[e.AuthentoPassportKyb=7]="AuthentoPassportKyb",e[e.ReclaimCoinbasePassport=8]="ReclaimCoinbasePassport",e[e.ReclaimBNBPassport=9]="ReclaimBNBPassport",e[e.ReclaimOKXPassport=10]="ReclaimOKXPassport",e[e.ReclaimGatePassport=11]="ReclaimGatePassport",e[e.ReclaimKucoinPassport=12]="ReclaimKucoinPassport",e[e.ReclaimMexcPassport=13]="ReclaimMexcPassport",e[e.ReclaimHtxPassport=14]="ReclaimHtxPassport",e))(N||{}),R=(e=>(e.APPROVED="APPROVED",e.DECLINED="DECLINED",e.REVIEW="REVIEW",e.UNKNOWN="UNKNOWN",e))(R||{}),i=(e=>(e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.PENDING="PENDING",e.RUNNING="RUNNING",e.NOT_STARTED="NOT_STARTED",e))(i||{});exports.KycVerificationResult=R;exports.KycVerificationStatus=i;exports.Passports=N;exports.VERIFICATION_TYPE=E;exports.VerificationTypes=a;
|
package/types/kyc.types.d.ts
CHANGED
package/types/kyc.types.mjs
CHANGED
|
@@ -4,7 +4,7 @@ const m = [
|
|
|
4
4
|
"BUSINESS"
|
|
5
5
|
/* BUSINESS */
|
|
6
6
|
];
|
|
7
|
-
var N = /* @__PURE__ */ ((e) => (e[e.AiPriseKyc = 0] = "AiPriseKyc", e[e.AiPriseKyb = 1] = "AiPriseKyb", e[e.BABPassport = 2] = "BABPassport", e[e.GalxePassport = 3] = "GalxePassport", e[e.ZkMePassport = 4] = "ZkMePassport", e[e.CoinbasePassport = 5] = "CoinbasePassport", e[e.AuthentoPassport = 6] = "AuthentoPassport", e[e.AuthentoPassportKyb = 7] = "AuthentoPassportKyb", e[e.
|
|
7
|
+
var N = /* @__PURE__ */ ((e) => (e[e.AiPriseKyc = 0] = "AiPriseKyc", e[e.AiPriseKyb = 1] = "AiPriseKyb", e[e.BABPassport = 2] = "BABPassport", e[e.GalxePassport = 3] = "GalxePassport", e[e.ZkMePassport = 4] = "ZkMePassport", e[e.CoinbasePassport = 5] = "CoinbasePassport", e[e.AuthentoPassport = 6] = "AuthentoPassport", e[e.AuthentoPassportKyb = 7] = "AuthentoPassportKyb", e[e.ReclaimCoinbasePassport = 8] = "ReclaimCoinbasePassport", e[e.ReclaimBNBPassport = 9] = "ReclaimBNBPassport", e[e.ReclaimOKXPassport = 10] = "ReclaimOKXPassport", e[e.ReclaimGatePassport = 11] = "ReclaimGatePassport", e[e.ReclaimKucoinPassport = 12] = "ReclaimKucoinPassport", e[e.ReclaimMexcPassport = 13] = "ReclaimMexcPassport", e[e.ReclaimHtxPassport = 14] = "ReclaimHtxPassport", e))(N || {}), R = /* @__PURE__ */ ((e) => (e.APPROVED = "APPROVED", e.DECLINED = "DECLINED", e.REVIEW = "REVIEW", e.UNKNOWN = "UNKNOWN", e))(R || {}), A = /* @__PURE__ */ ((e) => (e.COMPLETED = "COMPLETED", e.FAILED = "FAILED", e.PENDING = "PENDING", e.RUNNING = "RUNNING", e.NOT_STARTED = "NOT_STARTED", e))(A || {});
|
|
8
8
|
export {
|
|
9
9
|
R as KycVerificationResult,
|
|
10
10
|
A as KycVerificationStatus,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { NewZkCallDataType } from './snark.types';
|
|
2
|
+
export type HandshakeResponseType = {
|
|
3
|
+
public_key: string;
|
|
4
|
+
};
|
|
5
|
+
export type RemoteProofType = {
|
|
6
|
+
pi_a: string[];
|
|
7
|
+
pi_b: string[][];
|
|
8
|
+
pi_c: string[];
|
|
9
|
+
protocol: string;
|
|
10
|
+
};
|
|
11
|
+
export type GenerateProofResponseType = {
|
|
12
|
+
proof: RemoteProofType;
|
|
13
|
+
public_signals: string[];
|
|
14
|
+
zk_calldata: NewZkCallDataType;
|
|
15
|
+
};
|
package/types/rewards.types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { networkRegistry } from '../constants/chains.constants';
|
|
1
2
|
export declare enum TIER_LEVEL {
|
|
2
3
|
None = "None",
|
|
3
4
|
Bronze = "Bronze",
|
|
@@ -218,3 +219,7 @@ export interface HistoryIndexesProps {
|
|
|
218
219
|
lpProgramStartWeek: number;
|
|
219
220
|
raffleProgramStartWeek: number;
|
|
220
221
|
}
|
|
222
|
+
export type HashInfoByChain = Record<keyof typeof networkRegistry, {
|
|
223
|
+
lastCertifiedHash: string;
|
|
224
|
+
week: number;
|
|
225
|
+
}>;
|
package/types/time.types.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=1e3,a=60*c,l=60*a,u=24*l,R=7*u,o=new Date("2024-03-04T00:00:00.000Z"),d=e=>{if(e<0)throw Error("Certification for the past week is not available")},s=e=>(d(e),new Date(new Date(o).setUTCDate(o.getUTCDate()+7*e))),g=e=>{d(e);const t=s(e).getTime()/1e3,n=s(e+1).getTime()/1e3;return{initialTimestamp:t,endTimestamp:n}},r=()=>{const e=new Date().getTime()/1e3;let t=-1,n;do t+=1,{endTimestamp:n}=g(t);while(e>n);return t},f=e=>{if(e===void 0)return r();const t=Number(e);return!Number.isFinite(t)||t<0?r():t},k=(e,t="/")=>[e.getUTCDate(),e.getUTCMonth()+1,e.getUTCFullYear()].join(t),A=e=>{const t=r();return e===t},I=e=>{const t=r();return e<t
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=1e3,a=60*c,l=60*a,u=24*l,R=7*u,o=new Date("2024-03-04T00:00:00.000Z"),d=e=>{if(e<0)throw Error("Certification for the past week is not available")},s=e=>(d(e),new Date(new Date(o).setUTCDate(o.getUTCDate()+7*e))),g=e=>{d(e);const t=s(e).getTime()/1e3,n=s(e+1).getTime()/1e3;return{initialTimestamp:t,endTimestamp:n}},r=()=>{const e=new Date().getTime()/1e3;let t=-1,n;do t+=1,{endTimestamp:n}=g(t);while(e>n);return t},f=e=>{if(e===void 0)return r();const t=Number(e);return!Number.isFinite(t)||t<0?r():t},k=(e,t="/")=>[e.getUTCDate(),e.getUTCMonth()+1,e.getUTCFullYear()].join(t),A=e=>{const t=r();return e===t},I=e=>{const t=r();return e<t},p=e=>{const t=new Date(e);return t.setUTCDate(t.getUTCDate()+1),t.setUTCHours(0),t.setUTCMinutes(0),t.setUTCSeconds(0),t.setUTCMilliseconds(0),t};var E=(e=>(e[e.JANUARY=0]="JANUARY",e[e.FEBRUARY=1]="FEBRUARY",e[e.MARCH=2]="MARCH",e[e.APRIL=3]="APRIL",e[e.MAY=4]="MAY",e[e.JUNE=5]="JUNE",e[e.JULY=6]="JULY",e[e.AUGUST=7]="AUGUST",e[e.SEPTEMBER=8]="SEPTEMBER",e[e.OCTOBER=9]="OCTOBER",e[e.NOVEMBER=10]="NOVEMBER",e[e.DECEMBER=11]="DECEMBER",e))(E||{});const v=(e,t)=>{if(t<0||t>11)throw Error("getNextMonth: incorrect month provided");if(e<2023||e>2025)throw Error("getNextMonth: incorrect year provided");let n=e,i;return t<11?i=t+1:(i=0,n=e+1),{newYear:n,newMonth:i}},W=(e,t)=>{const{newYear:n,newMonth:i}=v(e,t),C=new Date(e,t,1).getTime()/1e3,D=new Date(e,t,8).getTime()/1e3,U=new Date(e,t,15).getTime()/1e3,w=new Date(e,t,23).getTime()/1e3,m=new Date(n,i,1).getTime()/1e3;return[C,D,U,w,m]};exports.MONTHS=E;exports.dayInMilliseconds=u;exports.divideMonthOnIntervals=W;exports.getCurrentWeek=r;exports.getDateFromWeek=s;exports.getNextDay=p;exports.getWeekTimestamps=g;exports.hasCertificationPeriodExpired=I;exports.hourInMilliseconds=l;exports.isWeekCurrent=A;exports.minuteInMilliseconds=a;exports.parseWeek=f;exports.secondInMilliseconds=c;exports.toDateString=k;exports.weekInMilliseconds=R;
|
package/types/time.types.mjs
CHANGED
|
@@ -22,7 +22,7 @@ const w = 1e3, R = 6e4, m = 36e5, f = 864e5, A = 6048e5, r = /* @__PURE__ */ new
|
|
|
22
22
|
return e === t;
|
|
23
23
|
}, p = (e) => {
|
|
24
24
|
const t = i();
|
|
25
|
-
return e < t
|
|
25
|
+
return e < t;
|
|
26
26
|
}, v = (e) => {
|
|
27
27
|
const t = new Date(e);
|
|
28
28
|
return t.setUTCDate(t.getUTCDate() + 1), t.setUTCHours(0), t.setUTCMinutes(0), t.setUTCSeconds(0), t.setUTCMilliseconds(0), t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../../assets/zkProofWorkerLauncher-
|
|
1
|
+
"use strict";const e=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../../assets/zkProofWorkerLauncher-DggSotLy.js").href:new URL("../../assets/zkProofWorkerLauncher-DggSotLy.js",document.currentScript&&document.currentScript.src||document.baseURI).href);module.exports=e;
|