@hinkal/common 0.2.13 → 0.2.14
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 +10 -3
- package/API/API.mjs +42 -31
- package/API/ai-calls.cjs +1 -0
- package/API/ai-calls.d.ts +9 -0
- package/API/ai-calls.mjs +13 -0
- package/API/callCurveAPI.cjs +1 -1
- package/API/callCurveAPI.mjs +28 -22
- package/API/callRelayer.d.ts +3 -2
- package/API/dataServerCalls.cjs +1 -1
- package/API/dataServerCalls.d.ts +4 -0
- package/API/dataServerCalls.mjs +11 -7
- package/API/duneAPI.cjs +1 -1
- package/API/duneAPI.mjs +7 -4
- package/API/fetchCommitmentsCache.cjs +1 -1
- package/API/fetchCommitmentsCache.d.ts +9 -1
- package/API/fetchCommitmentsCache.mjs +6 -5
- package/API/getGasEstimates.cjs +1 -1
- package/API/getGasEstimates.d.ts +2 -1
- package/API/getGasEstimates.mjs +10 -9
- package/API/getServerURL.d.ts +1 -1
- package/API/index.d.ts +2 -0
- package/API/is-tx-stateless.cjs +1 -0
- package/API/is-tx-stateless.d.ts +3 -0
- package/API/is-tx-stateless.mjs +9 -0
- package/API/rewardsPointsCalls.cjs +1 -1
- package/API/rewardsPointsCalls.d.ts +3 -3
- package/API/rewardsPointsCalls.mjs +1 -3
- package/API/tenderly.api.cjs +1 -0
- package/API/tenderly.api.d.ts +12 -0
- package/API/tenderly.api.mjs +47 -0
- package/API/token-calls.cjs +1 -0
- package/API/token-calls.d.ts +2 -0
- package/API/token-calls.mjs +9 -0
- package/API/userVerifyTransactions.cjs +1 -1
- package/API/userVerifyTransactions.d.ts +6 -7
- package/API/userVerifyTransactions.mjs +13 -14
- package/constants/addresses.constants.cjs +1 -0
- package/constants/addresses.constants.d.ts +16 -0
- package/constants/addresses.constants.mjs +50 -0
- package/constants/assets.constants.cjs +1 -1
- package/constants/assets.constants.mjs +13 -13
- package/constants/axelar.constants.cjs +1 -1
- package/constants/axelar.constants.mjs +5 -5
- package/constants/balance.constants.cjs +1 -0
- package/constants/balance.constants.d.ts +1 -0
- package/constants/balance.constants.mjs +4 -0
- package/constants/chains.constants.cjs +1 -1
- package/constants/chains.constants.d.ts +0 -2
- package/constants/chains.constants.mjs +28 -40
- package/constants/contracts.constants.cjs +1 -1
- package/constants/contracts.constants.mjs +144 -140
- package/constants/conversion.constants.cjs +1 -0
- package/constants/conversion.constants.d.ts +1 -0
- package/constants/conversion.constants.mjs +4 -0
- 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 +3208 -1550
- package/constants/deploy-data/deploy-data-optimism.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-optimism.json.mjs +10010 -3429
- package/constants/deploy-data/deploy-data-polygon.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-polygon.json.mjs +844 -9
- package/constants/fees.constants.cjs +1 -1
- package/constants/fees.constants.d.ts +5 -3
- package/constants/fees.constants.mjs +22 -19
- package/constants/index.d.ts +6 -0
- package/constants/kyc.constants.cjs +1 -1
- package/constants/kyc.constants.mjs +30 -18
- package/constants/mediaUrls.constants.cjs +1 -0
- package/constants/mediaUrls.constants.d.ts +23 -0
- package/constants/mediaUrls.constants.mjs +26 -0
- package/constants/permit2.constants.cjs +1 -0
- package/constants/permit2.constants.d.ts +2 -0
- package/constants/permit2.constants.mjs +5 -0
- package/constants/protocol.constants.cjs +1 -1
- package/constants/protocol.constants.d.ts +6 -0
- package/constants/protocol.constants.mjs +27 -15
- package/constants/rewards.constants.cjs +1 -1
- package/constants/rewards.constants.mjs +14 -12
- package/constants/server.constants.cjs +1 -1
- package/constants/server.constants.d.ts +14 -6
- package/constants/server.constants.mjs +24 -16
- package/constants/token-data/ERC20Registry.cjs +1 -1
- package/constants/token-data/ERC20Registry.mjs +49 -48
- package/constants/token-data/arbMainnetRegistry.json.cjs +1 -1
- package/constants/token-data/arbMainnetRegistry.json.mjs +89 -86
- package/constants/token-data/arbMainnetRegistryFixed.json.cjs +1 -1
- package/constants/token-data/arbMainnetRegistryFixed.json.mjs +79 -76
- package/constants/token-data/avalancheRegistry.json.cjs +1 -1
- package/constants/token-data/avalancheRegistry.json.mjs +51 -48
- package/constants/token-data/avalancheRegistryFixed.json.cjs +1 -1
- package/constants/token-data/avalancheRegistryFixed.json.mjs +51 -48
- package/constants/token-data/baseRegistry.json.cjs +1 -1
- package/constants/token-data/baseRegistry.json.mjs +34 -31
- package/constants/token-data/baseRegistryFixed.json.cjs +1 -1
- package/constants/token-data/baseRegistryFixed.json.mjs +31 -28
- package/constants/token-data/bnbMainnetRegistry.json.cjs +1 -1
- package/constants/token-data/bnbMainnetRegistry.json.mjs +67 -64
- package/constants/token-data/bnbMainnetRegistryFixed.json.cjs +1 -1
- package/constants/token-data/bnbMainnetRegistryFixed.json.mjs +67 -64
- package/constants/token-data/ethMainnetRegistry.json.cjs +1 -1
- package/constants/token-data/ethMainnetRegistry.json.mjs +229 -226
- package/constants/token-data/ethMainnetRegistryFixed.json.cjs +1 -1
- package/constants/token-data/ethMainnetRegistryFixed.json.mjs +193 -190
- package/constants/token-data/index.cjs +1 -0
- package/constants/token-data/index.d.ts +1063 -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 +296 -276
- package/constants/token-data/optimismRegistry.json.cjs +1 -1
- package/constants/token-data/optimismRegistry.json.mjs +703 -180
- package/constants/token-data/optimismRegistryFixed.json.cjs +1 -1
- package/constants/token-data/optimismRegistryFixed.json.mjs +679 -173
- package/constants/token-data/polygonRegistry.json.cjs +1 -1
- package/constants/token-data/polygonRegistry.json.mjs +110 -107
- package/constants/token-data/polygonRegistryFixed.json.cjs +1 -1
- package/constants/token-data/polygonRegistryFixed.json.mjs +102 -99
- package/constants/token.limits.constants.cjs +1 -0
- package/constants/token.limits.constants.d.ts +5 -0
- package/constants/token.limits.constants.mjs +30 -0
- package/constants/vite.constants.cjs +1 -1
- package/constants/vite.constants.d.ts +5 -0
- package/constants/vite.constants.mjs +26 -22
- package/data-structures/Hinkal/Hinkal.cjs +1 -1
- package/data-structures/Hinkal/Hinkal.d.ts +48 -20
- package/data-structures/Hinkal/Hinkal.mjs +263 -85
- package/data-structures/Hinkal/IHinkal.d.ts +37 -10
- package/data-structures/Hinkal/hinkalActionBeefy.cjs +1 -1
- package/data-structures/Hinkal/hinkalActionBeefy.mjs +25 -23
- package/data-structures/Hinkal/hinkalActionConvex.cjs +1 -1
- package/data-structures/Hinkal/hinkalActionConvex.mjs +11 -9
- package/data-structures/Hinkal/hinkalActionCurve.cjs +1 -1
- package/data-structures/Hinkal/hinkalActionCurve.mjs +18 -16
- package/data-structures/Hinkal/hinkalActionFundApproveAndTransact.cjs +1 -0
- package/data-structures/Hinkal/hinkalActionFundApproveAndTransact.d.ts +3 -0
- package/data-structures/Hinkal/hinkalActionFundApproveAndTransact.mjs +61 -0
- package/data-structures/Hinkal/hinkalActionLidoEth.cjs +1 -1
- package/data-structures/Hinkal/hinkalActionLidoEth.mjs +24 -22
- package/data-structures/Hinkal/hinkalActionPendle.cjs +1 -1
- package/data-structures/Hinkal/hinkalActionPendle.d.ts +1 -1
- package/data-structures/Hinkal/hinkalActionPendle.mjs +17 -15
- package/data-structures/Hinkal/hinkalActionPendleLP.cjs +1 -1
- package/data-structures/Hinkal/hinkalActionPendleLP.mjs +29 -26
- package/data-structures/Hinkal/hinkalActionReceive.cjs +1 -0
- package/data-structures/Hinkal/hinkalActionReceive.d.ts +4 -0
- package/data-structures/Hinkal/hinkalActionReceive.mjs +39 -0
- package/data-structures/Hinkal/hinkalActionStake.cjs +1 -1
- package/data-structures/Hinkal/hinkalActionStake.d.ts +1 -1
- package/data-structures/Hinkal/hinkalActionStake.mjs +15 -11
- package/data-structures/Hinkal/hinkalActionVolatile.cjs +1 -1
- package/data-structures/Hinkal/hinkalActionVolatile.d.ts +1 -1
- package/data-structures/Hinkal/hinkalActionVolatile.mjs +31 -26
- package/data-structures/Hinkal/hinkalApprove.cjs +1 -0
- package/data-structures/Hinkal/hinkalApprove.d.ts +2 -0
- package/data-structures/Hinkal/hinkalApprove.mjs +120 -0
- package/data-structures/Hinkal/hinkalCheckTokenRegistry.cjs +1 -0
- package/data-structures/Hinkal/hinkalCheckTokenRegistry.d.ts +3 -0
- package/data-structures/Hinkal/hinkalCheckTokenRegistry.mjs +12 -0
- package/data-structures/Hinkal/hinkalDeploySubAccount.cjs +1 -0
- package/data-structures/Hinkal/hinkalDeploySubAccount.d.ts +3 -0
- package/data-structures/Hinkal/hinkalDeploySubAccount.mjs +15 -0
- package/data-structures/Hinkal/hinkalDeposit.cjs +1 -1
- package/data-structures/Hinkal/hinkalDeposit.d.ts +3 -2
- package/data-structures/Hinkal/hinkalDeposit.mjs +116 -52
- package/data-structures/Hinkal/hinkalGetRecipientInfo.cjs +1 -0
- package/data-structures/Hinkal/hinkalGetRecipientInfo.d.ts +2 -0
- package/data-structures/Hinkal/hinkalGetRecipientInfo.mjs +10 -0
- package/data-structures/Hinkal/hinkalGetZkMeProvider.cjs +1 -1
- package/data-structures/Hinkal/hinkalGetZkMeProvider.mjs +6 -17
- package/data-structures/Hinkal/hinkalInsideTransact.cjs +1 -0
- package/data-structures/Hinkal/hinkalInsideTransact.d.ts +2 -0
- package/data-structures/Hinkal/hinkalInsideTransact.mjs +111 -0
- package/data-structures/Hinkal/hinkalMultiSend.cjs +1 -0
- package/data-structures/Hinkal/hinkalMultiSend.d.ts +3 -0
- package/data-structures/Hinkal/hinkalMultiSend.mjs +13 -0
- package/data-structures/Hinkal/hinkalPrivateWallet.cjs +1 -1
- package/data-structures/Hinkal/hinkalPrivateWallet.d.ts +2 -1
- package/data-structures/Hinkal/hinkalPrivateWallet.mjs +83 -37
- package/data-structures/Hinkal/hinkalProoflessDeposit.cjs +1 -0
- package/data-structures/Hinkal/hinkalProoflessDeposit.d.ts +4 -0
- package/data-structures/Hinkal/hinkalProoflessDeposit.mjs +46 -0
- package/data-structures/Hinkal/hinkalProxySwap.cjs +1 -0
- package/data-structures/Hinkal/hinkalProxySwap.d.ts +5 -0
- package/data-structures/Hinkal/hinkalProxySwap.mjs +36 -0
- package/data-structures/Hinkal/hinkalSignSubAccount.cjs +1 -0
- package/data-structures/Hinkal/hinkalSignSubAccount.d.ts +3 -0
- package/data-structures/Hinkal/hinkalSignSubAccount.mjs +20 -0
- package/data-structures/Hinkal/hinkalSwap.cjs +1 -1
- package/data-structures/Hinkal/hinkalSwap.d.ts +2 -1
- package/data-structures/Hinkal/hinkalSwap.mjs +69 -60
- package/data-structures/Hinkal/hinkalWithdraw.cjs +1 -1
- package/data-structures/Hinkal/hinkalWithdraw.d.ts +3 -1
- package/data-structures/Hinkal/hinkalWithdraw.mjs +77 -50
- package/data-structures/Hinkal/index.d.ts +1 -0
- package/data-structures/Hinkal/resetMerkleTrees.cjs +1 -1
- package/data-structures/Hinkal/resetMerkleTrees.mjs +18 -11
- package/data-structures/IndexedDB/activity-db.cjs +1 -0
- package/data-structures/IndexedDB/activity-db.d.ts +16 -0
- package/data-structures/IndexedDB/activity-db.mjs +124 -0
- package/data-structures/IndexedDB/balances-db.cjs +1 -0
- package/data-structures/IndexedDB/balances-db.d.ts +13 -0
- package/data-structures/IndexedDB/balances-db.mjs +75 -0
- package/data-structures/IndexedDB/contact-db.cjs +1 -0
- package/data-structures/IndexedDB/contact-db.d.ts +11 -0
- package/data-structures/IndexedDB/contact-db.mjs +44 -0
- package/data-structures/IndexedDB/index.d.ts +5 -0
- package/data-structures/IndexedDB/prices-db.cjs +1 -0
- package/data-structures/IndexedDB/prices-db.d.ts +9 -0
- package/data-structures/IndexedDB/prices-db.mjs +62 -0
- package/data-structures/IndexedDB/private-balances-db.cjs +1 -0
- package/data-structures/IndexedDB/private-balances-db.d.ts +9 -0
- package/data-structures/IndexedDB/private-balances-db.mjs +28 -0
- package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.cjs +1 -1
- package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.mjs +47 -44
- package/data-structures/TokenDBs/PrivateTokensDB.cjs +1 -0
- package/data-structures/TokenDBs/PrivateTokensDB.d.ts +11 -0
- package/data-structures/TokenDBs/PrivateTokensDB.mjs +53 -0
- package/data-structures/TokenDBs/PublicTokensDB.cjs +1 -0
- package/data-structures/TokenDBs/PublicTokensDB.d.ts +13 -0
- package/data-structures/TokenDBs/PublicTokensDB.mjs +81 -0
- package/data-structures/TokenDBs/index.d.ts +2 -0
- package/data-structures/cacheDevices/AttachableMemoryCacheDevice.cjs +1 -0
- package/data-structures/cacheDevices/AttachableMemoryCacheDevice.d.ts +8 -0
- package/data-structures/cacheDevices/AttachableMemoryCacheDevice.mjs +28 -0
- package/data-structures/cacheDevices/BaseCacheDevice.cjs +1 -1
- package/data-structures/cacheDevices/BaseCacheDevice.d.ts +9 -6
- package/data-structures/cacheDevices/BaseCacheDevice.mjs +13 -4
- package/data-structures/cacheDevices/FileCacheDevice.cjs +1 -1
- package/data-structures/cacheDevices/FileCacheDevice.d.ts +1 -0
- package/data-structures/cacheDevices/FileCacheDevice.mjs +7 -3
- package/data-structures/cacheDevices/LocalStorageCacheDevice.cjs +1 -1
- package/data-structures/cacheDevices/LocalStorageCacheDevice.d.ts +2 -1
- package/data-structures/cacheDevices/LocalStorageCacheDevice.mjs +10 -5
- package/data-structures/crypto-keys/decodeUTXO.cjs +1 -1
- package/data-structures/crypto-keys/decodeUTXO.mjs +13 -12
- package/data-structures/crypto-keys/keys.cjs +1 -1
- package/data-structures/crypto-keys/keys.d.ts +13 -3
- package/data-structures/crypto-keys/keys.mjs +45 -34
- package/data-structures/custom-token-registry/CustomTokenRegistry.cjs +1 -1
- package/data-structures/custom-token-registry/CustomTokenRegistry.d.ts +2 -3
- package/data-structures/custom-token-registry/CustomTokenRegistry.mjs +17 -21
- package/data-structures/event-service/AbstractAccessTokenSnapshotService.cjs +1 -1
- package/data-structures/event-service/AbstractAccessTokenSnapshotService.mjs +15 -29
- package/data-structures/event-service/AbstractApprovalsSnapshotService.cjs +1 -0
- package/data-structures/event-service/AbstractApprovalsSnapshotService.d.ts +30 -0
- package/data-structures/event-service/AbstractApprovalsSnapshotService.mjs +104 -0
- package/data-structures/event-service/AbstractCommitmentsSnapshotService.cjs +1 -1
- package/data-structures/event-service/AbstractCommitmentsSnapshotService.mjs +24 -37
- package/data-structures/event-service/AbstractEventService.cjs +1 -1
- package/data-structures/event-service/AbstractEventService.d.ts +1 -1
- package/data-structures/event-service/AbstractEventService.mjs +15 -15
- package/data-structures/event-service/index.d.ts +1 -0
- package/data-structures/index.d.ts +2 -0
- package/data-structures/merkle-tree/MerkleTree.cjs +1 -1
- package/data-structures/merkle-tree/MerkleTree.d.ts +6 -1
- package/data-structures/merkle-tree/MerkleTree.mjs +79 -65
- 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 +13 -0
- package/data-structures/merkle-tree/index.d.ts +1 -0
- package/data-structures/provider-adapter/IProviderAdapter.d.ts +2 -0
- package/data-structures/snapshot/ClientAccessTokenSnapshotService.cjs +1 -1
- package/data-structures/snapshot/ClientAccessTokenSnapshotService.mjs +3 -2
- package/data-structures/snapshot/ClientApprovalsSnapshotService.cjs +1 -0
- package/data-structures/snapshot/ClientApprovalsSnapshotService.d.ts +8 -0
- package/data-structures/snapshot/ClientApprovalsSnapshotService.mjs +23 -0
- package/data-structures/snapshot/ClientCommitmentsSnapshotService.cjs +1 -1
- package/data-structures/snapshot/ClientCommitmentsSnapshotService.mjs +3 -2
- package/data-structures/snapshot/ClientNullifierSnapshotService.cjs +1 -1
- package/data-structures/snapshot/ClientNullifierSnapshotService.mjs +6 -5
- package/data-structures/token-price-fetcher/TokenChecker.cjs +1 -1
- package/data-structures/token-price-fetcher/TokenChecker.d.ts +1 -0
- package/data-structures/token-price-fetcher/TokenChecker.mjs +4 -2
- package/data-structures/transactions-manager/TransactionsManager.cjs +1 -1
- package/data-structures/transactions-manager/TransactionsManager.d.ts +8 -6
- package/data-structures/transactions-manager/TransactionsManager.mjs +124 -122
- package/data-structures/transactions-manager/history/getBeefyData.cjs +1 -1
- package/data-structures/transactions-manager/history/getBeefyData.mjs +3 -2
- package/data-structures/transactions-manager/history/getConvexData.cjs +1 -1
- package/data-structures/transactions-manager/history/getConvexData.mjs +3 -2
- package/data-structures/transactions-manager/history/getCurveData.cjs +1 -1
- package/data-structures/transactions-manager/history/getCurveData.mjs +3 -2
- package/data-structures/transactions-manager/history/getLidoData.cjs +1 -1
- package/data-structures/transactions-manager/history/getLidoData.mjs +3 -2
- package/data-structures/transactions-manager/history/getPendleData.cjs +1 -1
- package/data-structures/transactions-manager/history/getPendleData.mjs +13 -12
- package/data-structures/transactions-manager/history/getTxDetails.cjs +1 -1
- package/data-structures/transactions-manager/history/getTxDetails.mjs +22 -20
- package/data-structures/transactions-manager/history/getVolatileData.cjs +1 -1
- package/data-structures/transactions-manager/history/getVolatileData.mjs +11 -10
- package/data-structures/transactions-manager/history/history.types.cjs +1 -1
- package/data-structures/transactions-manager/history/history.types.mjs +4 -2
- package/data-structures/utxo/Utxo.cjs +1 -1
- package/data-structures/utxo/Utxo.d.ts +3 -3
- package/data-structures/utxo/Utxo.mjs +8 -7
- package/error-handling/error-codes.constants.cjs +2 -2
- package/error-handling/error-codes.constants.d.ts +22 -1
- package/error-handling/error-codes.constants.mjs +129 -112
- package/error-handling/get-error.message.cjs +1 -1
- package/error-handling/get-error.message.mjs +29 -25
- package/error-handling/index.d.ts +1 -0
- package/error-handling/logger.cjs +1 -0
- package/error-handling/logger.d.ts +5 -0
- package/error-handling/logger.mjs +16 -0
- package/error-handling/types.cjs +1 -1
- package/error-handling/types.d.ts +3 -1
- package/error-handling/types.mjs +2 -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/getExternalSwapAddress.cjs +1 -0
- package/functions/pre-transaction/getExternalSwapAddress.d.ts +3 -0
- package/functions/pre-transaction/getExternalSwapAddress.mjs +26 -0
- package/functions/pre-transaction/getFeeStructure.cjs +1 -0
- package/functions/pre-transaction/getFeeStructure.d.ts +4 -0
- package/functions/pre-transaction/getFeeStructure.mjs +30 -0
- package/functions/pre-transaction/getFlatFees.cjs +1 -1
- package/functions/pre-transaction/getFlatFees.d.ts +3 -7
- package/functions/pre-transaction/getFlatFees.mjs +52 -46
- package/functions/pre-transaction/getSignatureDataForTransact.cjs +1 -0
- package/functions/pre-transaction/getSignatureDataForTransact.d.ts +3 -0
- package/functions/pre-transaction/getSignatureDataForTransact.mjs +6 -0
- package/functions/pre-transaction/index.d.ts +1 -0
- package/functions/pre-transaction/interaction-to-action.cjs +1 -1
- package/functions/pre-transaction/interaction-to-action.mjs +3 -2
- package/functions/pre-transaction/merge-with-fee-structure.cjs +1 -0
- package/functions/pre-transaction/merge-with-fee-structure.d.ts +2 -0
- package/functions/pre-transaction/merge-with-fee-structure.mjs +25 -0
- package/functions/pre-transaction/outputApprovalDataProcessing.cjs +1 -0
- package/functions/pre-transaction/outputApprovalDataProcessing.d.ts +16 -0
- package/functions/pre-transaction/outputApprovalDataProcessing.mjs +42 -0
- package/functions/pre-transaction/outputUtxoProcessing.cjs +1 -1
- package/functions/pre-transaction/outputUtxoProcessing.d.ts +1 -1
- package/functions/pre-transaction/outputUtxoProcessing.mjs +19 -30
- package/functions/pre-transaction/process-gas-estimates.cjs +1 -1
- package/functions/pre-transaction/process-gas-estimates.d.ts +2 -2
- package/functions/pre-transaction/process-gas-estimates.mjs +17 -27
- package/functions/pre-transaction/processAmountChanges.cjs +1 -1
- package/functions/pre-transaction/processAmountChanges.mjs +34 -23
- package/functions/pre-transaction/shouldPatchAccessTokenMerkleTree.cjs +1 -0
- package/functions/pre-transaction/shouldPatchAccessTokenMerkleTree.d.ts +6 -0
- package/functions/pre-transaction/shouldPatchAccessTokenMerkleTree.mjs +7 -0
- package/functions/private-wallet/emporium.helpers.cjs +1 -1
- package/functions/private-wallet/emporium.helpers.d.ts +9 -1
- package/functions/private-wallet/emporium.helpers.mjs +117 -22
- package/functions/private-wallet/emporium.swap.helpers.cjs +1 -0
- package/functions/private-wallet/emporium.swap.helpers.d.ts +5 -0
- package/functions/private-wallet/emporium.swap.helpers.mjs +92 -0
- package/functions/private-wallet/index.d.ts +1 -0
- package/functions/private-wallet/opProducer.cjs +1 -1
- package/functions/private-wallet/opProducer.mjs +9 -10
- package/functions/private-wallet/smartContractWalletCalculator.cjs +1 -1
- package/functions/private-wallet/smartContractWalletCalculator.d.ts +5 -1
- package/functions/private-wallet/smartContractWalletCalculator.mjs +22 -17
- package/functions/protocols/convex.protocols.cjs +1 -1
- package/functions/protocols/convex.protocols.mjs +11 -8
- package/functions/protocols/pendle.helpers.cjs +1 -1
- package/functions/protocols/pendle.helpers.mjs +20 -15
- package/functions/snarkjs/common.snarkjs.cjs +1 -1
- package/functions/snarkjs/common.snarkjs.d.ts +8 -5
- package/functions/snarkjs/common.snarkjs.mjs +177 -87
- package/functions/snarkjs/constant.cjs +1 -1
- package/functions/snarkjs/constant.d.ts +223 -1
- package/functions/snarkjs/constant.mjs +315 -94
- package/functions/snarkjs/constructEmporiumProof.cjs +1 -1
- package/functions/snarkjs/constructEmporiumProof.d.ts +6 -3
- package/functions/snarkjs/constructEmporiumProof.mjs +148 -84
- package/functions/snarkjs/constructGeneralZkProof.cjs +1 -1
- package/functions/snarkjs/constructGeneralZkProof.d.ts +5 -3
- package/functions/snarkjs/constructGeneralZkProof.mjs +142 -86
- package/functions/snarkjs/generateCircomData.cjs +1 -1
- package/functions/snarkjs/generateCircomData.d.ts +3 -2
- package/functions/snarkjs/generateCircomData.mjs +33 -35
- package/functions/snarkjs/generateZkProof.cjs +1 -1
- package/functions/snarkjs/generateZkProof.d.ts +2 -2
- package/functions/snarkjs/generateZkProof.mjs +4 -15
- package/functions/snarkjs/generateZkProofEnclave.cjs +1 -0
- package/functions/snarkjs/generateZkProofEnclave.d.ts +6 -0
- package/functions/snarkjs/generateZkProofEnclave.mjs +26 -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/snarkjs/getOriginalSender.cjs +1 -0
- package/functions/snarkjs/getOriginalSender.d.ts +1 -0
- package/functions/snarkjs/getOriginalSender.mjs +5 -0
- package/functions/snarkjs/getZKFiles.cjs +1 -1
- package/functions/snarkjs/getZKFiles.d.ts +3 -2
- package/functions/snarkjs/getZKFiles.mjs +14 -5
- package/functions/utils/addresses.cjs +1 -0
- package/functions/utils/addresses.d.ts +4 -0
- package/functions/utils/addresses.mjs +20 -0
- package/functions/utils/amounts.utils.cjs +1 -1
- package/functions/utils/amounts.utils.d.ts +4 -1
- package/functions/utils/amounts.utils.mjs +29 -27
- package/functions/utils/arraysMatch.cjs +1 -0
- package/functions/utils/arraysMatch.d.ts +1 -0
- package/functions/utils/arraysMatch.mjs +4 -0
- package/functions/utils/axelar.utils.cjs +1 -1
- package/functions/utils/axelar.utils.d.ts +1 -0
- package/functions/utils/axelar.utils.mjs +32 -9
- package/functions/utils/cacheDevice.utils.cjs +1 -1
- package/functions/utils/cacheDevice.utils.mjs +11 -8
- package/functions/utils/cacheFunctions.cjs +1 -1
- package/functions/utils/cacheFunctions.d.ts +10 -7
- package/functions/utils/cacheFunctions.mjs +62 -39
- package/functions/utils/convertEmporiumOpToCallInfo.cjs +1 -0
- package/functions/utils/convertEmporiumOpToCallInfo.d.ts +2 -0
- package/functions/utils/convertEmporiumOpToCallInfo.mjs +10 -0
- package/functions/utils/convertIntegrationProviderToExternalActionId.cjs +1 -1
- package/functions/utils/convertIntegrationProviderToExternalActionId.d.ts +2 -1
- package/functions/utils/convertIntegrationProviderToExternalActionId.mjs +7 -10
- package/functions/utils/encodeTokenWithId.cjs +1 -0
- package/functions/utils/encodeTokenWithId.d.ts +2 -0
- package/functions/utils/encodeTokenWithId.mjs +4 -0
- package/functions/utils/encryptInputForEnclave.cjs +1 -0
- package/functions/utils/encryptInputForEnclave.d.ts +8 -0
- package/functions/utils/encryptInputForEnclave.mjs +43 -0
- package/functions/utils/erc20tokenFunctions.cjs +1 -1
- package/functions/utils/erc20tokenFunctions.d.ts +8 -2
- package/functions/utils/erc20tokenFunctions.mjs +23 -14
- package/functions/utils/evmNetworkFunctions.cjs +1 -1
- package/functions/utils/evmNetworkFunctions.mjs +7 -4
- package/functions/utils/external-action.utils.d.ts +2 -2
- package/functions/utils/fees.utils.cjs +1 -0
- package/functions/utils/fees.utils.d.ts +2 -0
- package/functions/utils/fees.utils.mjs +14 -0
- package/functions/utils/getBlockExplorerUrl.cjs +1 -0
- package/functions/utils/getBlockExplorerUrl.d.ts +1 -0
- package/functions/utils/getBlockExplorerUrl.mjs +6 -0
- package/functions/utils/getRecipientInfoFromUserKeys.cjs +1 -0
- package/functions/utils/getRecipientInfoFromUserKeys.d.ts +3 -0
- package/functions/utils/getRecipientInfoFromUserKeys.mjs +18 -0
- package/functions/utils/index.d.ts +12 -0
- package/functions/utils/involves-permit2-op.cjs +1 -0
- package/functions/utils/involves-permit2-op.d.ts +1 -0
- package/functions/utils/involves-permit2-op.mjs +5 -0
- package/functions/utils/merkleTree.utils.cjs +1 -0
- package/functions/utils/merkleTree.utils.d.ts +2 -0
- package/functions/utils/merkleTree.utils.mjs +19 -0
- package/functions/utils/prepareHinkal.d.ts +6 -0
- package/functions/utils/processUseApprovalUtxoData.cjs +1 -0
- package/functions/utils/processUseApprovalUtxoData.d.ts +3 -0
- package/functions/utils/processUseApprovalUtxoData.mjs +19 -0
- package/functions/utils/publicBalance.utils.cjs +1 -0
- package/functions/utils/publicBalance.utils.d.ts +5 -0
- package/functions/utils/publicBalance.utils.mjs +25 -0
- package/functions/utils/replaceAddressInCalldata.cjs +1 -0
- package/functions/utils/replaceAddressInCalldata.d.ts +1 -0
- package/functions/utils/replaceAddressInCalldata.mjs +7 -0
- package/functions/utils/rpc-int-encode.cjs +1 -0
- package/functions/utils/rpc-int-encode.d.ts +2 -0
- package/functions/utils/rpc-int-encode.mjs +8 -0
- package/functions/utils/serialize.utils.cjs +1 -1
- package/functions/utils/serialize.utils.d.ts +1 -0
- package/functions/utils/serialize.utils.mjs +3 -2
- package/functions/utils/string.utils.cjs +1 -1
- package/functions/utils/string.utils.d.ts +2 -0
- package/functions/utils/string.utils.mjs +28 -14
- package/functions/utils/time.utils.cjs +1 -1
- package/functions/utils/time.utils.d.ts +1 -0
- package/functions/utils/time.utils.mjs +4 -3
- package/functions/utils/token-check.utils.cjs +1 -0
- package/functions/utils/token-check.utils.d.ts +1 -0
- package/functions/utils/token-check.utils.mjs +10 -0
- package/functions/utils/upToDateState.cjs +1 -0
- package/functions/utils/upToDateState.d.ts +2 -0
- package/functions/utils/upToDateState.mjs +11 -0
- package/functions/utils/userAgent.cjs +1 -1
- package/functions/utils/userAgent.mjs +8 -8
- package/functions/web3/events/balanceChangedCustomHandler.cjs +1 -0
- package/functions/web3/events/balanceChangedCustomHandler.d.ts +2 -0
- package/functions/web3/events/balanceChangedCustomHandler.mjs +14 -0
- package/functions/web3/events/balanceChangedHandler.cjs +1 -1
- package/functions/web3/events/balanceChangedHandler.mjs +5 -4
- package/functions/web3/events/getApprovedBalance.cjs +1 -0
- package/functions/web3/events/getApprovedBalance.d.ts +7 -0
- package/functions/web3/events/getApprovedBalance.mjs +80 -0
- package/functions/web3/events/getInputUtxoAndBalance.cjs +1 -1
- package/functions/web3/events/getInputUtxoAndBalance.d.ts +16 -3
- package/functions/web3/events/getInputUtxoAndBalance.mjs +128 -46
- package/functions/web3/events/getShieldedBalance.cjs +2 -2
- package/functions/web3/events/getShieldedBalance.d.ts +1 -1
- package/functions/web3/events/getShieldedBalance.mjs +70 -65
- package/functions/web3/events/index.d.ts +2 -0
- package/functions/web3/functionCalls/accessTokenCalls.cjs +1 -1
- package/functions/web3/functionCalls/accessTokenCalls.d.ts +2 -2
- package/functions/web3/functionCalls/accessTokenCalls.mjs +20 -18
- package/functions/web3/functionCalls/approveToken.cjs +1 -1
- package/functions/web3/functionCalls/approveToken.mjs +8 -7
- package/functions/web3/functionCalls/approveTokensToHinkal.cjs +1 -0
- package/functions/web3/functionCalls/approveTokensToHinkal.d.ts +4 -0
- package/functions/web3/functionCalls/approveTokensToHinkal.mjs +11 -0
- package/functions/web3/functionCalls/estimateGasRelayer.cjs +1 -1
- package/functions/web3/functionCalls/estimateGasRelayer.d.ts +2 -2
- package/functions/web3/functionCalls/estimateGasRelayer.mjs +14 -8
- package/functions/web3/functionCalls/inHinkalApprovalCalls.cjs +1 -0
- package/functions/web3/functionCalls/inHinkalApprovalCalls.d.ts +5 -0
- package/functions/web3/functionCalls/inHinkalApprovalCalls.mjs +32 -0
- package/functions/web3/functionCalls/relayFunctions.d.ts +1 -15
- package/functions/web3/functionCalls/transactCallDirect.cjs +1 -1
- package/functions/web3/functionCalls/transactCallDirect.d.ts +2 -2
- package/functions/web3/functionCalls/transactCallDirect.mjs +31 -30
- package/functions/web3/functionCalls/transactCallRelayer.cjs +1 -1
- package/functions/web3/functionCalls/transactCallRelayer.d.ts +2 -2
- package/functions/web3/functionCalls/transactCallRelayer.mjs +32 -9
- 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 +23 -19
- package/functions/web3/oneInchAPI.cjs +1 -1
- package/functions/web3/oneInchAPI.d.ts +1 -2
- package/functions/web3/oneInchAPI.mjs +20 -15
- package/functions/web3/runContractFunction.cjs +1 -1
- package/functions/web3/runContractFunction.mjs +3 -2
- package/functions/web3/uniswapAPI.cjs +1 -1
- package/functions/web3/uniswapAPI.d.ts +4 -4
- package/functions/web3/uniswapAPI.mjs +57 -43
- package/index.cjs +1 -1
- package/index.mjs +761 -639
- package/package.json +19 -8
- package/providers/EthersProviderAdapter.cjs +1 -1
- package/providers/EthersProviderAdapter.d.ts +8 -3
- package/providers/EthersProviderAdapter.mjs +52 -43
- package/providers/WagmiProviderAdapter.cjs +1 -1
- package/providers/WagmiProviderAdapter.d.ts +4 -1
- package/providers/WagmiProviderAdapter.mjs +53 -56
- package/providers/prepareEthersHinkal.cjs +1 -1
- package/providers/prepareEthersHinkal.mjs +18 -10
- package/providers/prepareWagmiHinkal.cjs +1 -1
- package/providers/prepareWagmiHinkal.mjs +18 -10
- package/types/API.types.d.ts +21 -0
- package/types/ICacheDevice.d.ts +4 -3
- package/types/TransactionSimulator.types.d.ts +9 -0
- package/types/activities.types.cjs +1 -0
- package/types/activities.types.d.ts +45 -0
- package/types/activities.types.mjs +13 -0
- package/types/balances.types.cjs +1 -0
- package/types/balances.types.d.ts +17 -0
- package/types/balances.types.mjs +4 -0
- package/types/cache.types.cjs +1 -0
- package/types/cache.types.d.ts +27 -0
- package/types/cache.types.mjs +4 -0
- package/types/circom-data.types.d.ts +29 -9
- package/types/commitments.types.d.ts +6 -0
- package/types/contacts.types.d.ts +5 -0
- package/types/crypto.types.d.ts +1 -0
- package/types/earlyAccessCode.types.d.ts +4 -0
- package/types/ethereum-network.types.cjs +1 -1
- package/types/ethereum-network.types.d.ts +8 -3
- package/types/ethereum-network.types.mjs +1 -1
- package/types/external-action.types.cjs +1 -1
- package/types/external-action.types.d.ts +2 -1
- package/types/external-action.types.mjs +1 -1
- package/types/fee.types.d.ts +9 -0
- package/types/hinkal.types.cjs +1 -1
- package/types/hinkal.types.d.ts +48 -0
- package/types/hinkal.types.mjs +38 -13
- package/types/index.d.ts +9 -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 +9 -0
- package/types/sandbox.types.cjs +1 -0
- package/types/sandbox.types.d.ts +157 -0
- package/types/sandbox.types.mjs +4 -0
- package/types/tenderly.api.types.d.ts +180 -0
- package/types/time.types.cjs +1 -1
- package/types/time.types.mjs +1 -1
- package/types/token-with-id.types.d.ts +4 -0
- package/types/token.types.d.ts +23 -0
- package/types/transactions.types.cjs +1 -1
- package/types/transactions.types.d.ts +31 -0
- package/types/transactions.types.mjs +8 -5
- package/types/wc.types.d.ts +89 -0
- package/types/with-id.types.d.ts +3 -0
- package/webworker/snarkjsWorker/snarkjsWorkerLauncher.cjs +1 -1
- package/webworker/snarkjsWorker/snarkjsWorkerLauncher.mjs +1 -1
- package/webworker/snarkjsWorker/snarkjsWorkerLogic.cjs +1 -1
- package/webworker/snarkjsWorker/snarkjsWorkerLogic.mjs +26 -26
- package/webworker/utxoWorker/utxoWorkerLauncher.cjs +1 -1
- package/webworker/utxoWorker/utxoWorkerLauncher.mjs +1 -1
- package/webworker/utxoWorker/utxoWorkerLogic.cjs +1 -1
- package/webworker/utxoWorker/utxoWorkerLogic.mjs +58 -50
- package/webworker/viteWorkerURL.constant.cjs +3 -3
- package/webworker/viteWorkerURL.constant.mjs +3 -3
- package/webworker/workerFactory.cjs +1 -1
- package/webworker/workerFactory.mjs +2 -2
- package/webworker/workerProxy.cjs +1 -1
- package/webworker/workerProxy.d.ts +11 -11
- package/webworker/workerProxy.mjs +24 -26
- package/webworker/zkProofWorker/zkProofWorker.types.d.ts +2 -0
- package/webworker/zkProofWorker/zkProofWorkerLauncher.cjs +1 -1
- package/webworker/zkProofWorker/zkProofWorkerLauncher.mjs +1 -1
- package/webworker/zkProofWorker/zkProofWorkerLogic.cjs +1 -1
- package/webworker/zkProofWorker/zkProofWorkerLogic.mjs +47 -61
- package/functions/utils/memoize.utils.cjs +0 -1
- package/functions/utils/memoize.utils.mjs +0 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../functions/utils/amounts.utils.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("./protocol.constants.cjs"),a=require("../functions/utils/amounts.utils.cjs"),S=require("../types/slippage.types.cjs"),r=require("./vite.constants.cjs"),u=(r.isDevelopment,0n),g=(r.isDevelopment,0n),_=I.zeroAddress,b=["ETH","USDC","USDT","DAI"],l=e=>e?u:g,i=(e,n=!1)=>{const t=a.absBigInt(e);return l(n)*t/10000n},c=(e,n)=>{const t=a.absBigInt(e),s=S.slippageLevels[n];return BigInt(Math.round(s*100))*t/10000n},p=(e,n=!1)=>{const t=a.absBigInt(e),s=i(t,n);return t-s},E=(e,n=!1)=>a.absBigInt(e)*10000n/(10000n-l(n)),F=(e,n,t=!1)=>{const s=a.absBigInt(e),o=a.absBigInt(n);return p(s,t)-o},f=(e,n)=>{const t=a.absBigInt(e),s=c(t,n);return t-s},B=(e,n,t,s=!1)=>{const o=a.absBigInt(e),A=a.absBigInt(n),m=f(o,t);return F(m,A,s)};exports.GAS_COST_TOKEN_SYMBOL_OPTIONS=b;exports.HINKAL_EXTERNAL_ACTION_FEE=g;exports.HINKAL_UNIVERSAL_FEE=u;exports.defaultFeeToken=_;exports.getAmountAfterRelayAndFlatFees=F;exports.getAmountAfterRelayAndFlatFeesAndSlippage=B;exports.getAmountAfterRelayFee=p;exports.getAmountAfterSlippage=f;exports.getAmountWithoutFee=E;exports.getHinkalFeeRateInBeeps=l;exports.getRelayFee=i;exports.getSlippageFee=c;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { SlippageType } from '../types/slippage.types';
|
|
2
|
-
export declare const HINKAL_UNIVERSAL_FEE =
|
|
3
|
-
export declare const HINKAL_EXTERNAL_ACTION_FEE =
|
|
4
|
-
export declare const
|
|
2
|
+
export declare const HINKAL_UNIVERSAL_FEE = 0n;
|
|
3
|
+
export declare const HINKAL_EXTERNAL_ACTION_FEE = 0n;
|
|
4
|
+
export declare const defaultFeeToken: string;
|
|
5
|
+
export declare const GAS_COST_TOKEN_SYMBOL_OPTIONS: string[];
|
|
6
|
+
export declare const getHinkalFeeRateInBeeps: (isUniversalFee: boolean) => bigint;
|
|
5
7
|
export declare const getRelayFee: (amount: bigint, isWithdrawal?: boolean) => bigint;
|
|
6
8
|
export declare const getSlippageFee: (amount: bigint, slippageType: SlippageType) => bigint;
|
|
7
9
|
export declare const getAmountAfterRelayFee: (amount: bigint, isWithdrawal?: boolean) => bigint;
|
|
@@ -1,34 +1,37 @@
|
|
|
1
|
+
import { zeroAddress as c } from "./protocol.constants.mjs";
|
|
1
2
|
import { absBigInt as o } from "../functions/utils/amounts.utils.mjs";
|
|
2
|
-
import { slippageLevels as
|
|
3
|
+
import { slippageLevels as u } from "../types/slippage.types.mjs";
|
|
3
4
|
import { isDevelopment as l } from "./vite.constants.mjs";
|
|
4
|
-
const
|
|
5
|
+
const m = 0n, f = 0n, T = c, d = ["ETH", "USDC", "USDT", "DAI"], A = (e) => e ? m : f, i = (e, n = !1) => {
|
|
5
6
|
const t = o(e);
|
|
6
|
-
return
|
|
7
|
+
return A(n) * t / 10000n;
|
|
7
8
|
}, g = (e, n) => {
|
|
8
|
-
const t = o(e), s =
|
|
9
|
+
const t = o(e), s = u[n];
|
|
9
10
|
return BigInt(Math.round(s * 100)) * t / 10000n;
|
|
10
|
-
},
|
|
11
|
-
const t = o(e), s =
|
|
11
|
+
}, F = (e, n = !1) => {
|
|
12
|
+
const t = o(e), s = i(t, n);
|
|
12
13
|
return t - s;
|
|
13
|
-
},
|
|
14
|
+
}, N = (e, n = !1) => o(e) * 10000n / (10000n - A(n)), S = (e, n, t = !1) => {
|
|
14
15
|
const s = o(e), a = o(n);
|
|
15
|
-
return
|
|
16
|
+
return F(s, t) - a;
|
|
16
17
|
}, b = (e, n) => {
|
|
17
18
|
const t = o(e), s = g(t, n);
|
|
18
19
|
return t - s;
|
|
19
|
-
},
|
|
20
|
-
const a = o(e), r = o(n),
|
|
21
|
-
return
|
|
20
|
+
}, B = (e, n, t, s = !1) => {
|
|
21
|
+
const a = o(e), r = o(n), p = b(a, t);
|
|
22
|
+
return S(p, r, s);
|
|
22
23
|
};
|
|
23
24
|
export {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
d as GAS_COST_TOKEN_SYMBOL_OPTIONS,
|
|
26
|
+
f as HINKAL_EXTERNAL_ACTION_FEE,
|
|
27
|
+
m as HINKAL_UNIVERSAL_FEE,
|
|
28
|
+
T as defaultFeeToken,
|
|
29
|
+
S as getAmountAfterRelayAndFlatFees,
|
|
30
|
+
B as getAmountAfterRelayAndFlatFeesAndSlippage,
|
|
31
|
+
F as getAmountAfterRelayFee,
|
|
29
32
|
b as getAmountAfterSlippage,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
N as getAmountWithoutFee,
|
|
34
|
+
A as getHinkalFeeRateInBeeps,
|
|
35
|
+
i as getRelayFee,
|
|
33
36
|
g as getSlippageFee
|
|
34
37
|
};
|
package/constants/index.d.ts
CHANGED
|
@@ -18,3 +18,9 @@ export * from './rewards.constants';
|
|
|
18
18
|
export * from './reorg-depths.constants';
|
|
19
19
|
export * from './beefy.registry';
|
|
20
20
|
export * from './pendle.registry';
|
|
21
|
+
export * from './mediaUrls.constants';
|
|
22
|
+
export * from './permit2.constants';
|
|
23
|
+
export * from './addresses.constants';
|
|
24
|
+
export * from './conversion.constants';
|
|
25
|
+
export * from './token.limits.constants';
|
|
26
|
+
export * from './balance.constants';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../functions/kyc/zkMeHelper.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../functions/kyc/zkMeHelper.cjs"),e=require("../functions/kyc/authentoHelper.cjs"),s=require("../types/kyc.types.cjs"),p=require("./chains.constants.cjs"),l="https://onboard.aiprise.com",c="https://onboard-sandbox.aiprise.com",i={[s.Passports.AiPriseKyc]:{id:s.Passports.AiPriseKyc,shortName:"AiPriseKyc",fullName:" AiPrice Kyc",apiURL:"",onboardURL:"",supportedChainIds:[],supportsAllChains:!0},[s.Passports.AiPriseKyb]:{id:s.Passports.AiPriseKyb,shortName:"AiPriseKyb",fullName:" AiPrice Kyb",apiURL:"",onboardURL:"",supportedChainIds:[],supportsAllChains:!0},[s.Passports.BABPassport]:{id:s.Passports.BABPassport,shortName:"Bab",fullName:"Bab Token",apiURL:"BabPassport",onboardURL:"https://www.binance.com/en/BABT",supportedChainIds:[p.chainIds.bnbMainnet]},[s.Passports.GalxePassport]:{id:s.Passports.GalxePassport,shortName:"Galxe",fullName:"Galxe Passport",apiURL:"GalxePassport",onboardURL:"https://galxe.com/passport",supportedChainIds:[p.chainIds.bnbMainnet]},[s.Passports.ZkMePassport]:{id:s.Passports.ZkMePassport,shortName:"zkMe",fullName:"zkMe Passport",apiURL:"ZkMePassport",onboardURL:"https://widget.zk.me/",customHandleKYC:(a,o,t)=>d.zkMeKycHandler(a,o,t,{merchId:"M2023090671844574053042402155408"}),supportedChainIds:[],supportsAllChains:!0},[s.Passports.CoinbasePassport]:{id:s.Passports.CoinbasePassport,shortName:"coinbase",fullName:"coinbase Passport",apiURL:"coinbasePassport",onboardURL:"https://www.coinbase.com/onchain-verify",supportedChainIds:[],supportsAllChains:!0},[s.Passports.AuthentoPassport]:{id:s.Passports.AuthentoPassport,shortName:"Authento",fullName:"Authento Passport",apiURL:"AuthentoPassport",onboardURL:"https://app.authento.io/",customHandleKYC:(a,o,t)=>e.authentoKycHandler(a,o,t),supportedChainIds:[],supportsAllChains:!0},[s.Passports.AuthentoPassportKyb]:{id:s.Passports.AuthentoPassportKyb,shortName:"Authento",fullName:"Authento Passport",apiURL:"AuthentoPassport",onboardURL:"https://app.authento.io/",customHandleKYC:(a,o,t)=>e.authentoKycHandler(a,o,t),supportedChainIds:[],supportsAllChains:!0}},n={[s.Passports.ReclaimCoinbasePassport]:{id:s.Passports.ReclaimCoinbasePassport,shortName:"ReclaimCoinbase",fullName:" Reclaim Coinbase",apiURL:"",onboardURL:"",supportedChainIds:[],supportsAllChains:!0,params:{providerId:"4ee4ebac-3012-4842-8b7b-e73f3293c97d"}},[s.Passports.ReclaimBNBPassport]:{id:s.Passports.ReclaimBNBPassport,shortName:"ReclaimBNB",fullName:" Reclaim BNB",apiURL:"",onboardURL:"",supportedChainIds:[],supportsAllChains:!0,params:{providerId:"9a8127e6-c5c1-4336-bc49-24a0197f6c56"}},[s.Passports.ReclaimOKXPassport]:{id:s.Passports.ReclaimOKXPassport,shortName:"ReclaimOKX",fullName:" Reclaim OKX",apiURL:"",onboardURL:"",supportedChainIds:[],supportsAllChains:!0,params:{providerId:"4f464d13-d3b0-45b9-bed9-db160a1a5426"}},[s.Passports.ReclaimGatePassport]:{id:s.Passports.ReclaimGatePassport,shortName:"ReclaimGate",fullName:" Reclaim Gate",apiURL:"",onboardURL:"",supportedChainIds:[],supportsAllChains:!0,params:{providerId:"a824a912-52ad-4a84-a096-55728518c3d5"}},[s.Passports.ReclaimKucoinPassport]:{id:s.Passports.ReclaimKucoinPassport,shortName:"ReclaimKraken",fullName:" Reclaim Kraken",apiURL:"",onboardURL:"",supportedChainIds:[],supportsAllChains:!0,params:{providerId:"2a7a2124-04bb-4d8c-bb3b-54b0ddd97342"}},[s.Passports.ReclaimMexcPassport]:{id:s.Passports.ReclaimMexcPassport,shortName:"ReclaimMexc",fullName:" Reclaim Mexc",apiURL:"",onboardURL:"",supportedChainIds:[],supportsAllChains:!0,params:{providerId:"b9a7fa32-41f3-4708-bebf-18869b96bf41"}},[s.Passports.ReclaimHtxPassport]:{id:s.Passports.ReclaimHtxPassport,shortName:"ReclaimHtx",fullName:" Reclaim Htx",apiURL:"",onboardURL:"",supportedChainIds:[],supportsAllChains:!0,params:{providerId:"2fc15466-9106-4a80-b6f3-d21a77445c0a"}}},r={...i,...n},P=Object.values(r).filter((a,o)=>a.onboardURL?.length>0&&Object.values(r).indexOf(a)===o).map(a=>a.onboardURL),u="dbda56e5-31f5-4a37-a895-d4adca6c53fd",m="96050d8d-23c9-4908-b285-2e6dec4c020b",b="Approve Integrity Status proof generation using Reclaim Protocol.";exports.AIPRISE_KYB_TEMPLATE_ID_PROD=m;exports.AIPRISE_KYC_TEMPLATE_ID_PROD=u;exports.RECLAIM_MESSAGE_TO_SIGN=b;exports.ReclaimPassports=n;exports.StandardPassports=i;exports.SupportedPassports=r;exports.aipriseBaseOnboardingProductionUrl=l;exports.aipriseBaseOnboardingSandboxUrl=c;exports.supportedPassportLinks=P;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { zkMeKycHandler as i } from "../functions/kyc/zkMeHelper.mjs";
|
|
2
|
-
import { authentoKycHandler as
|
|
2
|
+
import { authentoKycHandler as t } from "../functions/kyc/authentoHelper.mjs";
|
|
3
3
|
import { Passports as a } from "../types/kyc.types.mjs";
|
|
4
|
-
import { chainIds as
|
|
5
|
-
const
|
|
4
|
+
import { chainIds as r } from "./chains.constants.mjs";
|
|
5
|
+
const b = "https://onboard.aiprise.com", h = "https://onboard-sandbox.aiprise.com", d = {
|
|
6
6
|
[a.AiPriseKyc]: {
|
|
7
7
|
id: a.AiPriseKyc,
|
|
8
8
|
shortName: "AiPriseKyc",
|
|
@@ -27,7 +27,7 @@ const h = "https://onboard.aiprise.com", b = "https://onboard-sandbox.aiprise.co
|
|
|
27
27
|
fullName: "Bab Token",
|
|
28
28
|
apiURL: "BabPassport",
|
|
29
29
|
onboardURL: "https://www.binance.com/en/BABT",
|
|
30
|
-
supportedChainIds: [
|
|
30
|
+
supportedChainIds: [r.bnbMainnet]
|
|
31
31
|
},
|
|
32
32
|
[a.GalxePassport]: {
|
|
33
33
|
id: a.GalxePassport,
|
|
@@ -35,7 +35,7 @@ const h = "https://onboard.aiprise.com", b = "https://onboard-sandbox.aiprise.co
|
|
|
35
35
|
fullName: "Galxe Passport",
|
|
36
36
|
apiURL: "GalxePassport",
|
|
37
37
|
onboardURL: "https://galxe.com/passport",
|
|
38
|
-
supportedChainIds: [
|
|
38
|
+
supportedChainIds: [r.bnbMainnet]
|
|
39
39
|
},
|
|
40
40
|
// [Passports.QuadrataPassport]: {
|
|
41
41
|
// id: Passports.QuadrataPassport,
|
|
@@ -57,11 +57,11 @@ const h = "https://onboard.aiprise.com", b = "https://onboard-sandbox.aiprise.co
|
|
|
57
57
|
fullName: "zkMe Passport",
|
|
58
58
|
apiURL: "ZkMePassport",
|
|
59
59
|
onboardURL: "https://widget.zk.me/",
|
|
60
|
-
customHandleKYC: (s, o,
|
|
61
|
-
merchId: "M2023090671844574053042402155408"
|
|
62
|
-
zkChainId: e.polygon
|
|
60
|
+
customHandleKYC: (s, o, e) => i(s, o, e, {
|
|
61
|
+
merchId: "M2023090671844574053042402155408"
|
|
63
62
|
}),
|
|
64
|
-
supportedChainIds: [
|
|
63
|
+
supportedChainIds: [],
|
|
64
|
+
supportsAllChains: !0
|
|
65
65
|
},
|
|
66
66
|
[a.CoinbasePassport]: {
|
|
67
67
|
id: a.CoinbasePassport,
|
|
@@ -78,7 +78,7 @@ const h = "https://onboard.aiprise.com", b = "https://onboard-sandbox.aiprise.co
|
|
|
78
78
|
fullName: "Authento Passport",
|
|
79
79
|
apiURL: "AuthentoPassport",
|
|
80
80
|
onboardURL: "https://app.authento.io/",
|
|
81
|
-
customHandleKYC: (s, o,
|
|
81
|
+
customHandleKYC: (s, o, e) => t(s, o, e),
|
|
82
82
|
supportedChainIds: [],
|
|
83
83
|
supportsAllChains: !0
|
|
84
84
|
},
|
|
@@ -88,11 +88,23 @@ const h = "https://onboard.aiprise.com", b = "https://onboard-sandbox.aiprise.co
|
|
|
88
88
|
fullName: "Authento Passport",
|
|
89
89
|
apiURL: "AuthentoPassport",
|
|
90
90
|
onboardURL: "https://app.authento.io/",
|
|
91
|
-
customHandleKYC: (s, o,
|
|
91
|
+
customHandleKYC: (s, o, e) => t(s, o, e),
|
|
92
92
|
supportedChainIds: [],
|
|
93
93
|
supportsAllChains: !0
|
|
94
94
|
}
|
|
95
|
-
},
|
|
95
|
+
}, n = {
|
|
96
|
+
[a.ReclaimCoinbasePassport]: {
|
|
97
|
+
id: a.ReclaimCoinbasePassport,
|
|
98
|
+
shortName: "ReclaimCoinbase",
|
|
99
|
+
fullName: " Reclaim Coinbase",
|
|
100
|
+
apiURL: "",
|
|
101
|
+
onboardURL: "",
|
|
102
|
+
supportedChainIds: [],
|
|
103
|
+
supportsAllChains: !0,
|
|
104
|
+
params: {
|
|
105
|
+
providerId: "4ee4ebac-3012-4842-8b7b-e73f3293c97d"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
96
108
|
[a.ReclaimBNBPassport]: {
|
|
97
109
|
id: a.ReclaimBNBPassport,
|
|
98
110
|
shortName: "ReclaimBNB",
|
|
@@ -165,15 +177,15 @@ const h = "https://onboard.aiprise.com", b = "https://onboard-sandbox.aiprise.co
|
|
|
165
177
|
providerId: "2fc15466-9106-4a80-b6f3-d21a77445c0a"
|
|
166
178
|
}
|
|
167
179
|
}
|
|
168
|
-
}, p = { ...
|
|
180
|
+
}, p = { ...d, ...n }, R = Object.values(p).filter((s, o) => s.onboardURL?.length > 0 && Object.values(p).indexOf(s) === o).map((s) => s.onboardURL), P = "dbda56e5-31f5-4a37-a895-d4adca6c53fd", A = "96050d8d-23c9-4908-b285-2e6dec4c020b", C = "Approve Integrity Status proof generation using Reclaim Protocol.";
|
|
169
181
|
export {
|
|
170
182
|
A as AIPRISE_KYB_TEMPLATE_ID_PROD,
|
|
171
183
|
P as AIPRISE_KYC_TEMPLATE_ID_PROD,
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
184
|
+
C as RECLAIM_MESSAGE_TO_SIGN,
|
|
185
|
+
n as ReclaimPassports,
|
|
186
|
+
d as StandardPassports,
|
|
175
187
|
p as SupportedPassports,
|
|
176
|
-
|
|
177
|
-
|
|
188
|
+
b as aipriseBaseOnboardingProductionUrl,
|
|
189
|
+
h as aipriseBaseOnboardingSandboxUrl,
|
|
178
190
|
R as supportedPassportLinks
|
|
179
191
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t={GITHUB:"https://github.com/Novelty-Today/privacy-first-mixer",TWITTER:"https://bit.ly/hinkal_tw",TELEGRAM:"https://bit.ly/hinkal_tg",DOCS:"/Whitepaper.pdf",AUDIT:"/Hinkal_final_Secure3_Audit_Report.pdf",AIPRISE:"https://aiprise.com/",DEMO:"https://www.loom.com/share/a03b147d930d4efdbb993b6bf72746ca",POLY_SCAN:"https://polygonscan.com/",ETH_SCAN:"https://etherscan.io/",BSC_SCAN:"https://bscscan.com/",ARB_SCAN:"https://arbiscan.io/",SNOW_TRACE:"https://snowtrace.io/",OPTIMISM_SCAN:"https://optimistic.etherscan.io/",ETHER_SCAN:"https://etherscan.io/",AVAX_SCAN:"https://snowtrace.io/",BASE_SCAN:"https://basescan.org/",MUMBAI_SCAN:"https://mumbai.polygonscan.com/",OPENSEA_TEST:"https://testnets.opensea.io/",LINKTREE:"https://linktr.ee/hinkal_protocol",DISCORD:"https://discord.gg/hinkalofficial",LINKEDIN:"https://bit.ly/hinkal_li"};exports.mediaUrls=t;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const mediaUrls: {
|
|
2
|
+
GITHUB: string;
|
|
3
|
+
TWITTER: string;
|
|
4
|
+
TELEGRAM: string;
|
|
5
|
+
DOCS: string;
|
|
6
|
+
AUDIT: string;
|
|
7
|
+
AIPRISE: string;
|
|
8
|
+
DEMO: string;
|
|
9
|
+
POLY_SCAN: string;
|
|
10
|
+
ETH_SCAN: string;
|
|
11
|
+
BSC_SCAN: string;
|
|
12
|
+
ARB_SCAN: string;
|
|
13
|
+
SNOW_TRACE: string;
|
|
14
|
+
OPTIMISM_SCAN: string;
|
|
15
|
+
ETHER_SCAN: string;
|
|
16
|
+
AVAX_SCAN: string;
|
|
17
|
+
BASE_SCAN: string;
|
|
18
|
+
MUMBAI_SCAN: string;
|
|
19
|
+
OPENSEA_TEST: string;
|
|
20
|
+
LINKTREE: string;
|
|
21
|
+
DISCORD: string;
|
|
22
|
+
LINKEDIN: string;
|
|
23
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const t = {
|
|
2
|
+
GITHUB: "https://github.com/Novelty-Today/privacy-first-mixer",
|
|
3
|
+
TWITTER: "https://bit.ly/hinkal_tw",
|
|
4
|
+
TELEGRAM: "https://bit.ly/hinkal_tg",
|
|
5
|
+
DOCS: "/Whitepaper.pdf",
|
|
6
|
+
AUDIT: "/Hinkal_final_Secure3_Audit_Report.pdf",
|
|
7
|
+
AIPRISE: "https://aiprise.com/",
|
|
8
|
+
DEMO: "https://www.loom.com/share/a03b147d930d4efdbb993b6bf72746ca",
|
|
9
|
+
POLY_SCAN: "https://polygonscan.com/",
|
|
10
|
+
ETH_SCAN: "https://etherscan.io/",
|
|
11
|
+
BSC_SCAN: "https://bscscan.com/",
|
|
12
|
+
ARB_SCAN: "https://arbiscan.io/",
|
|
13
|
+
SNOW_TRACE: "https://snowtrace.io/",
|
|
14
|
+
OPTIMISM_SCAN: "https://optimistic.etherscan.io/",
|
|
15
|
+
ETHER_SCAN: "https://etherscan.io/",
|
|
16
|
+
AVAX_SCAN: "https://snowtrace.io/",
|
|
17
|
+
BASE_SCAN: "https://basescan.org/",
|
|
18
|
+
MUMBAI_SCAN: "https://mumbai.polygonscan.com/",
|
|
19
|
+
OPENSEA_TEST: "https://testnets.opensea.io/",
|
|
20
|
+
LINKTREE: "https://linktr.ee/hinkal_protocol",
|
|
21
|
+
DISCORD: "https://discord.gg/hinkalofficial",
|
|
22
|
+
LINKEDIN: "https://bit.ly/hinkal_li"
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
t as mediaUrls
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f="0x000000000022D473030F116dDEE9F6B43aC78BA3",a="000000000000000000000000000000000022d473030f116ddee9f6b43ac78ba3ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff";exports.permit2Address=f;exports.uniswapApprovalExtraCallData=a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=`0x${"00".repeat(20)}`,s="0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",t="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",n=s,a="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",c="Hinkal Stake KeyPair Generator",d="0xa33e4e1672ffdc9a08d0d8b50c79a7dee400bb5493d054076ff01733d7646b32",i="0xd1cF73B92B6911244d88Db40e6610658D88244E8",l=60*60*1e3,r=21888242871839275222246405745257275088548364400416034343698204186575808495617n,E=r/2n,u={current:o},S="curve-dao-token",b="lp-3pool-curve",A="convex-finance",f={137:"polygon",42161:"arbitrum",1:"ethereum",43114:"avax",56:"bsc",10:"optimism",8453:"base"},h="0x1626ba7e",m="0xffffffff",e=`0x${"00".repeat(32)}`,y={r:e,s:e,v:e,accessKey:e,nonce:0,ethereumAddress:o};exports.CIRCOM_P=r;exports.CIRCOM_P_HALF=E;exports.EIP1271_FAILURE=m;exports.EIP1271_SUCCESS=h;exports.RELAYER_ADDRESS=i;exports.beefyChainIds=f;exports.crvSymbol=S;exports.curveWithdrawGasTokenAddress=u;exports.curveZeroAddress=n;exports.cvxSymbol=A;exports.defaultSignatureData=y;exports.ethVolatileAddress=a;exports.hinkalSimulationAddress=s;exports.oneInchZeroAddress=t;exports.ownerPublicKey=d;exports.permitSignatureValidFor=l;exports.signaturePhrase=c;exports.threePoolSymbol=b;exports.zeroAddress=o;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import { SignatureData } from '../types/crypto.types';
|
|
1
2
|
export declare const zeroAddress: string;
|
|
3
|
+
export declare const hinkalSimulationAddress = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
|
|
2
4
|
export declare const oneInchZeroAddress = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee";
|
|
3
5
|
export declare const curveZeroAddress = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
|
|
4
6
|
export declare const ethVolatileAddress = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee";
|
|
5
7
|
export declare const signaturePhrase = "Hinkal Stake KeyPair Generator";
|
|
6
8
|
export declare const ownerPublicKey = "0xa33e4e1672ffdc9a08d0d8b50c79a7dee400bb5493d054076ff01733d7646b32";
|
|
9
|
+
export declare const RELAYER_ADDRESS = "0xd1cF73B92B6911244d88Db40e6610658D88244E8";
|
|
7
10
|
export declare const permitSignatureValidFor: number;
|
|
8
11
|
export declare const CIRCOM_P = 21888242871839275222246405745257275088548364400416034343698204186575808495617n;
|
|
9
12
|
export declare const CIRCOM_P_HALF: bigint;
|
|
@@ -16,3 +19,6 @@ export declare const cvxSymbol = "convex-finance";
|
|
|
16
19
|
export declare const beefyChainIds: {
|
|
17
20
|
[key: number]: string;
|
|
18
21
|
};
|
|
22
|
+
export declare const EIP1271_SUCCESS = "0x1626ba7e";
|
|
23
|
+
export declare const EIP1271_FAILURE = "0xffffffff";
|
|
24
|
+
export declare const defaultSignatureData: SignatureData;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const o = `0x${"00".repeat(20)}`, s = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", t = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", c = s, r = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", a = "Hinkal Stake KeyPair Generator", d = "0xa33e4e1672ffdc9a08d0d8b50c79a7dee400bb5493d054076ff01733d7646b32", E = "0xd1cF73B92B6911244d88Db40e6610658D88244E8", i = 60 * 60 * 1e3, n = 21888242871839275222246405745257275088548364400416034343698204186575808495617n, f = n / 2n, l = { current: o }, b = "curve-dao-token", u = "lp-3pool-curve", x = "convex-finance", S = {
|
|
2
2
|
137: "polygon",
|
|
3
3
|
42161: "arbitrum",
|
|
4
4
|
1: "ethereum",
|
|
@@ -6,20 +6,32 @@ const e = `0x${"00".repeat(20)}`, n = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
|
|
|
6
6
|
56: "bsc",
|
|
7
7
|
10: "optimism",
|
|
8
8
|
8453: "base"
|
|
9
|
+
}, A = "0x1626ba7e", m = "0xffffffff", e = `0x${"00".repeat(32)}`, h = {
|
|
10
|
+
r: e,
|
|
11
|
+
s: e,
|
|
12
|
+
v: e,
|
|
13
|
+
accessKey: e,
|
|
14
|
+
nonce: 0,
|
|
15
|
+
ethereumAddress: o
|
|
9
16
|
};
|
|
10
17
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
n as CIRCOM_P,
|
|
19
|
+
f as CIRCOM_P_HALF,
|
|
20
|
+
m as EIP1271_FAILURE,
|
|
21
|
+
A as EIP1271_SUCCESS,
|
|
22
|
+
E as RELAYER_ADDRESS,
|
|
23
|
+
S as beefyChainIds,
|
|
24
|
+
b as crvSymbol,
|
|
25
|
+
l as curveWithdrawGasTokenAddress,
|
|
26
|
+
c as curveZeroAddress,
|
|
27
|
+
x as cvxSymbol,
|
|
28
|
+
h as defaultSignatureData,
|
|
29
|
+
r as ethVolatileAddress,
|
|
30
|
+
s as hinkalSimulationAddress,
|
|
31
|
+
t as oneInchZeroAddress,
|
|
32
|
+
d as ownerPublicKey,
|
|
33
|
+
i as permitSignatureValidFor,
|
|
34
|
+
a as signaturePhrase,
|
|
35
|
+
u as threePoolSymbol,
|
|
36
|
+
o as zeroAddress
|
|
25
37
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../types/circom-data.types.cjs");require("../types/transactions.types.cjs");const e=require("../types/rewards.types.cjs");require("../types/curve.types.cjs");const r=["USDC"],t="https://hinkal-team.gitbook.io/hinkal/users/rebates/referral-program",o="https://hinkal-team.gitbook.io/hinkal/users/rewards/points",
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../types/circom-data.types.cjs");require("./vite.constants.cjs");require("../types/transactions.types.cjs");const e=require("../types/rewards.types.cjs");require("../types/curve.types.cjs");require("../types/activities.types.cjs");const r=["USDC"],t="https://hinkal-team.gitbook.io/hinkal/users/rebates/referral-program",o="https://hinkal-team.gitbook.io/hinkal/users/rewards/points",i="https://hinkal-team.gitbook.io/hinkal/users/rebates/lp-program",s=3,a=9,n={10:2,50:1.6,100:1.2},l=7,E=1e3,S={[e.RafflePrizeType.Silver]:1e4,[e.RafflePrizeType.Gold]:2e4};exports.ACCESS_TOKEN_MINTING_POINTS=E;exports.CERTIFICATION_DISABLE_WEEK=l;exports.REWARD_RECEIVABLE_TOKEN_SYMBOLS=r;exports.RafflePrizePoints=S;exports.boostAmounts=n;exports.lpLink=i;exports.lpProgramStartWeek=s;exports.pointsLink=o;exports.raffleProgramStartWeek=a;exports.referralLink=t;
|
|
@@ -1,27 +1,29 @@
|
|
|
1
1
|
import "../types/circom-data.types.mjs";
|
|
2
|
+
import "./vite.constants.mjs";
|
|
2
3
|
import "../types/transactions.types.mjs";
|
|
3
4
|
import { RafflePrizeType as t } from "../types/rewards.types.mjs";
|
|
4
5
|
import "../types/curve.types.mjs";
|
|
5
|
-
|
|
6
|
+
import "../types/activities.types.mjs";
|
|
7
|
+
const n = ["USDC"], p = "https://hinkal-team.gitbook.io/hinkal/users/rebates/referral-program", l = "https://hinkal-team.gitbook.io/hinkal/users/rewards/points", m = "https://hinkal-team.gitbook.io/hinkal/users/rebates/lp-program", k = 3, E = 9, c = {
|
|
6
8
|
10: 2,
|
|
7
9
|
// if in the top 10
|
|
8
10
|
50: 1.6,
|
|
9
11
|
// if in top 50 but not in top 10
|
|
10
12
|
100: 1.2
|
|
11
13
|
// and so on
|
|
12
|
-
},
|
|
14
|
+
}, S = 7, f = 1e3, h = {
|
|
13
15
|
[t.Silver]: 1e4,
|
|
14
16
|
[t.Gold]: 2e4
|
|
15
17
|
};
|
|
16
18
|
export {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
f as ACCESS_TOKEN_MINTING_POINTS,
|
|
20
|
+
S as CERTIFICATION_DISABLE_WEEK,
|
|
21
|
+
n as REWARD_RECEIVABLE_TOKEN_SYMBOLS,
|
|
22
|
+
h as RafflePrizePoints,
|
|
23
|
+
c as boostAmounts,
|
|
24
|
+
m as lpLink,
|
|
25
|
+
k as lpProgramStartWeek,
|
|
26
|
+
l as pointsLink,
|
|
27
|
+
E as raffleProgramStartWeek,
|
|
28
|
+
p as referralLink
|
|
27
29
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=(e,
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=(e,a)=>`${e}${a!==void 0?`?week=${a}`:""}`,l={ROUTES:{checkKycStatus:"/check-kyc-status",getUserSignature:"/signature-request",startReclaimVerification:"/start-reclaim-verification",startUserVerification:"/start-aiprise-verification",zkMeAccessToken:"/zkMeAccessToken",getCommitmentsSnapshot:"/snapshots/commitments",getApprovalsSnapshot:"/snapshots/approvals",getAccessTokenSnapshot:"/snapshots/access-tokens",callOdosAPI:"/OdosSwapData",callOneInchAPI:"/OneInchSwapData",getOdosPriceForToken:e=>`/getOdosPriceForToken/${e}`,getNullifiers:"/snapshots/nullifiers",axelarGasEstimate:(e,a,i,o)=>`/axelarGasEstimate/${e}/${a}/${i}/${o}`,userHasAccessToken:e=>`/user-has-access-token/${e}`,afterKycCall:"/after-kyc-callback",restoreSnapshots:"/snapshots/restore",beefyGraphAPI:"/BeefyGraphData",monitor:"/monitor",checkRisk:e=>`/check-risk/${e}`,userVerifyTransactions:"/user-verify-transactions",userGetLatestCertifiedHashes:e=>`/user-get-latest-certified-hashes/${e}`,userGetHasCerified:e=>`/user-get-has-certified/${e}`,userGetTransactions:(e,a,i)=>`/user-get-transactions/${e}/${a}/${i}`,getActiveCode:e=>`/get-active-code/${e}`,updateActiveCode:"/update-active-code",getWeeklyReferralCodes:(e,a)=>`/get-weekly-referral-codes/${e}/${a}`,getReferralCodes:e=>s(`/get-referral-codes/${e}`),getRewardsHistory:e=>`/get-rewards-history/${e}`,addReferralCode:"/update-referral-code",getLpProgram:e=>s(`/getLpProgram/${e}`),points:(e,a)=>`/points/${e}/${a}`,leaderboard:e=>`/leaderboard/${e}`,setRewardsReceivingData:"/set-user-rewards-receiving-data",getRewardsReceivingData:e=>`/get-user-rewards-receiving-data/${e}`,seasonLeaderboard:"/season-leaderboard",getUserAnonymityStakingPoints:e=>`/hinkal-points/${e}`,getLimitedAnonymityStakingPoints:e=>`/hinkal-points/limited/${e}`,getUserAnonymityStakingReferralPoints:e=>`/hinkal-referral-codes-info/${e}`,userHasPassword:e=>`/user-has-password/${e}`,userRegisterPassword:"/user-register-password",getNickname:e=>`/get-nickname/${e}`,addNickname:"/update-nickname",getLidoDefiData:"lido/defi",getLidoStats:"lido/stats",getLidoEthStats:"lido/eth-stats",getLidoDiscount:"lido/discount",getLidoRequestTime:"lido/request-time",getLidoMaticReward:"lido/matic-rewards",pendleAddLiquiditySingleToken:"pendle/addLiquiditySingleToken",pendleAddLiquiditySingleSy:"pendle/addLiquiditySingleSy",pendleAddLiquiditySinglePt:"pendle/addLiquiditySinglePt",pendleAddLiquidityDualTokenAndPt:"pendle/addLiquidityDualTokenAndPt",pendleAddLiquidityDualSyAndPt:"pendle/addLiquidityDualSyAndPt",pendleAddLiquiditySingleTokenKeepYt:"pendle/addLiquiditySingleTokenKeepYt",pendleRemoveLiquiditySingleToken:"pendle/removeLiquiditySingleToken",pendleRemoveLiquiditySingleSy:"pendle/removeLiquiditySingleSy",pendleRemoveLiquiditySinglePt:"pendle/removeLiquiditySinglePt",pendleRemoveLiquidityDualTokenAndPt:"pendle/removeLiquidityDualTokenAndPt",pendleRemoveLiquidityDualSyAndPt:"pendle/removeLiquidityDualSyAndPt",pendleMintPyFromToken:"pendle/mintPyFromToken",pendlRedeemPyToToken:"pendle/redeemPyToToken",removeLiquidityDualTokenAndPt:"pendle/removeLiquidityDualTokenAndPt",removeLiquiditySinglePt:"pendle/removeLiquiditySinglePt",pendleSwapExactTokenForYT:"pendle/swapExactTokenForYt",pendleSwapExactTokenForPt:"pendle/swapExactTokenForPt",pendleSwapExactPtForToken:"pendle/swapExactPtForToken",pendleSwapExactPtForYt:"pendle/swapExactPtForYt",pendleSwapExactYtForToken:"pendle/swapExactYtForToken",pendleSwapExactYtForPt:"pendle/swapExactYtForPt",pendleSyTokenInOut:"pendle/syTokenInOut",connextReceiveFee:(e,a)=>`/connextEstimateReceive/${e}/${a}`,stakedYield:"/staked-yield",getPublicWalletInformation:e=>`/get-public-wallet-data/${e}`,getTokenApprovalAmount:"/get-token-approval-amount-from-html",isTxStateless:"/is-tx-stateless",getTokensInfo:"/get-tokens-info",verifyAccessCode:"/verify-access-code",connectCodeToAddress:"/connect-code-to-address"}},d={getGasEstimate:(e,a,i,o,r)=>`/gas-estimation/${e}/${o}/${a}/${i}/${r}`,getTokenPrice:"/get-token-price",getTokenPriceEth:e=>`/get-token-price-in-eth/${e}`,getTokenPrices:"/get-token-prices",TRANSACT:"/general-transact",getIdleRelay:"/get-idle-relay"},p={getUserPoints:e=>`/user-points/${e}`,getAssetChanges:"/asset-changes"},t="http://ec2-54-241-116-187.us-west-1.compute.amazonaws.com",n="http://ec2-54-193-146-86.us-west-1.compute.amazonaws.com",c="https://ethMainnet-data-server.hinkal.pro",h="http://localhost",R=7090,g={polygon:"https://polygon.server.hinkal.pro",arbMainnet:"https://arbMainnet.server.hinkal.pro",ethMainnet:"https://ethMainnet.server.hinkal.pro",bnbMainnet:"https://bnbMainnet.server.hinkal.pro",avalanche:"https://avalanche.server.hinkal.pro",optimism:"http://localhost:7072",base:"https://base.server.hinkal.pro",localhost:"http://localhost:7072"},k={polygon:`${t}:7072`,arbMainnet:`${t}:7070`,ethMainnet:`${t}:7080`,bnbMainnet:`${t}:7076`,avalanche:`${t}:7078`,optimism:`${t}:7082`,base:`${t}:7084`,localhost:"http://localhost:7072"},u={polygon:`${n}:7072`,arbMainnet:`${n}:7070`,ethMainnet:`${n}:7080`,bnbMainnet:`${n}:7076`,avalanche:`${n}:7078`,optimism:"https://optimism-server-pg.hinkal.pro",base:`${n}:7084`,localhost:"http://localhost:7072"},y={polygon:"https://polygon.relayer.hinkal.pro",arbMainnet:"https://arbMainnet.relayer.hinkal.pro",ethMainnet:"https://ethMainnet.relayer.hinkal.pro",bnbMainnet:"https://bnbMainnet.relayer.hinkal.pro",avalanche:"https://avalanche.relayer.hinkal.pro",optimism:"http://localhost:7073",base:"https://base.relayer.hinkal.pro",localhost:"http://localhost:7073"},S={polygon:`${t}:7073`,arbMainnet:`${t}:7071`,ethMainnet:`${t}:7081`,bnbMainnet:`${t}:7077`,avalanche:`${t}:7079`,optimism:`${t}:7083`,base:`${t}:7085`,localhost:"http://localhost:7073"},m={polygon:`${n}:7073`,arbMainnet:`${n}:7071`,ethMainnet:`${n}:7081`,bnbMainnet:`${n}:7077`,avalanche:`${n}:7079`,optimism:"https://optimism-relayer-pg.hinkal.pro",base:`${n}:7085`,localhost:"http://localhost:7073"};exports.API_CONFIG=l;exports.DATA_SERVER_CONFIG=p;exports.DATA_SERVER_PORT=R;exports.DATA_SERVER_URL_LOCAL=h;exports.DATA_SERVER_URL_PRODUCTION=c;exports.PLAYGROUND_RELAYER_URLS=m;exports.PLAYGROUND_SERVER_URLS=u;exports.PLAYGROUND_URL=n;exports.RELAYER_CONFIG=d;exports.RELAYER_URLS=y;exports.SERVER_URLS=g;exports.STAGING_RELAYER_URLS=S;exports.STAGING_SERVER_URLS=k;exports.STAGING_URL=t;
|
|
@@ -7,6 +7,7 @@ export declare const API_CONFIG: {
|
|
|
7
7
|
startUserVerification: string;
|
|
8
8
|
zkMeAccessToken: string;
|
|
9
9
|
getCommitmentsSnapshot: string;
|
|
10
|
+
getApprovalsSnapshot: string;
|
|
10
11
|
getAccessTokenSnapshot: string;
|
|
11
12
|
callOdosAPI: string;
|
|
12
13
|
callOneInchAPI: string;
|
|
@@ -20,8 +21,9 @@ export declare const API_CONFIG: {
|
|
|
20
21
|
monitor: string;
|
|
21
22
|
checkRisk: (address: string) => string;
|
|
22
23
|
userVerifyTransactions: string;
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
userGetLatestCertifiedHashes: (ethereumAddress: string) => string;
|
|
25
|
+
userGetHasCerified: (ethereumAddress: string) => string;
|
|
26
|
+
userGetTransactions: (week?: number, lastHash?: string, startWeek?: number) => string;
|
|
25
27
|
getActiveCode: (ethereumAddress: string) => string;
|
|
26
28
|
updateActiveCode: string;
|
|
27
29
|
getWeeklyReferralCodes: (ethereumAddress: string, week: number) => string;
|
|
@@ -29,11 +31,11 @@ export declare const API_CONFIG: {
|
|
|
29
31
|
getRewardsHistory: (ethereumAddress: string) => string;
|
|
30
32
|
addReferralCode: string;
|
|
31
33
|
getLpProgram: (ethereumAddress: string) => string;
|
|
32
|
-
points: (ethereumAddress: string,
|
|
33
|
-
leaderboard: (
|
|
34
|
+
points: (ethereumAddress: string, week?: number) => string;
|
|
35
|
+
leaderboard: (week?: number) => string;
|
|
34
36
|
setRewardsReceivingData: string;
|
|
35
37
|
getRewardsReceivingData: (ethereumAddress: string) => string;
|
|
36
|
-
seasonLeaderboard:
|
|
38
|
+
seasonLeaderboard: string;
|
|
37
39
|
getUserAnonymityStakingPoints: (ethereumAddress: string) => string;
|
|
38
40
|
getLimitedAnonymityStakingPoints: (ethereumAddress: string) => string;
|
|
39
41
|
getUserAnonymityStakingReferralPoints: (ethereumAddress: string) => string;
|
|
@@ -72,6 +74,11 @@ export declare const API_CONFIG: {
|
|
|
72
74
|
connextReceiveFee: (sourceChainName: string, destChainName: string) => string;
|
|
73
75
|
stakedYield: string;
|
|
74
76
|
getPublicWalletInformation: (ethereumAddress: string) => string;
|
|
77
|
+
getTokenApprovalAmount: string;
|
|
78
|
+
isTxStateless: string;
|
|
79
|
+
getTokensInfo: string;
|
|
80
|
+
verifyAccessCode: string;
|
|
81
|
+
connectCodeToAddress: string;
|
|
75
82
|
};
|
|
76
83
|
};
|
|
77
84
|
export declare const RELAYER_CONFIG: {
|
|
@@ -84,9 +91,10 @@ export declare const RELAYER_CONFIG: {
|
|
|
84
91
|
};
|
|
85
92
|
export declare const DATA_SERVER_CONFIG: {
|
|
86
93
|
getUserPoints: (ethereumAddress: string) => string;
|
|
94
|
+
getAssetChanges: string;
|
|
87
95
|
};
|
|
88
96
|
export declare const STAGING_URL = "http://ec2-54-241-116-187.us-west-1.compute.amazonaws.com";
|
|
89
|
-
export declare const PLAYGROUND_URL = "http://ec2-
|
|
97
|
+
export declare const PLAYGROUND_URL = "http://ec2-54-193-146-86.us-west-1.compute.amazonaws.com";
|
|
90
98
|
export declare const DATA_SERVER_URL_PRODUCTION = "https://ethMainnet-data-server.hinkal.pro";
|
|
91
99
|
export declare const DATA_SERVER_URL_LOCAL = "http://localhost";
|
|
92
100
|
export declare const DATA_SERVER_PORT = 7090;
|