@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
package/types/index.d.ts
CHANGED
|
@@ -25,3 +25,12 @@ export * from './duneAPI.types';
|
|
|
25
25
|
export * from './admin.types';
|
|
26
26
|
export * from './ICacheDevice';
|
|
27
27
|
export * from './hinkalTvl.types';
|
|
28
|
+
export * from './activities.types';
|
|
29
|
+
export * from './wc.types';
|
|
30
|
+
export * from './sandbox.types';
|
|
31
|
+
export * from './with-id.types';
|
|
32
|
+
export * from './balances.types';
|
|
33
|
+
export * from './cache.types';
|
|
34
|
+
export * from './tenderly.api.types';
|
|
35
|
+
export * from './TransactionSimulator.types';
|
|
36
|
+
export * from './earlyAccessCode.types';
|
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,11 @@ 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
|
+
}>;
|
|
226
|
+
export type WeekOption = {
|
|
227
|
+
value: number;
|
|
228
|
+
label: string;
|
|
229
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var n=(r=>(r.TransferToken="TransferToken",r.ReceiveFromShieldedAccount="ReceiveFromShieldedAccount",r.SwapTokens="SwapTokens",r.ShieldTokens="ShieldTokens",r.MintAccessToken="MintAccessToken",r.SignMessage="SignMessage",r.FundApproveAndTransact="FundApproveAndTransact",r.PrivateTransactionFromProxy="PrivateTransactionFromProxy",r.Approve="Approve",r.InsideTransact="InsideTransact",r.ProxySend="ProxySend",r.ProxySwapTokens="ProxySwapTokens",r))(n||{});exports.SandboxRequestType=n;
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { MerkleTreeJson } from '../data-structures/merkle-tree/MerkleTree';
|
|
2
|
+
import { EncryptedOutputWithSign } from './commitments.types';
|
|
3
|
+
import { ExternalActionId } from './external-action.types';
|
|
4
|
+
import { ApprovedUtxo, FeeStructure, IntegrationProvider } from './hinkal.types';
|
|
5
|
+
import { ERC20Token, TokenChanges } from './token.types';
|
|
6
|
+
import { AppMetaData, WCTransactionParameters } from './wc.types';
|
|
7
|
+
import { WithId } from './with-id.types';
|
|
8
|
+
export declare enum SandboxRequestType {
|
|
9
|
+
TransferToken = "TransferToken",
|
|
10
|
+
ReceiveFromShieldedAccount = "ReceiveFromShieldedAccount",
|
|
11
|
+
SwapTokens = "SwapTokens",
|
|
12
|
+
ShieldTokens = "ShieldTokens",
|
|
13
|
+
MintAccessToken = "MintAccessToken",
|
|
14
|
+
SignMessage = "SignMessage",
|
|
15
|
+
FundApproveAndTransact = "FundApproveAndTransact",
|
|
16
|
+
PrivateTransactionFromProxy = "PrivateTransactionFromProxy",
|
|
17
|
+
Approve = "Approve",
|
|
18
|
+
InsideTransact = "InsideTransact",
|
|
19
|
+
ProxySend = "ProxySend",
|
|
20
|
+
ProxySwapTokens = "ProxySwapTokens"
|
|
21
|
+
}
|
|
22
|
+
export interface SandboxTransferableTransaction {
|
|
23
|
+
hash: string;
|
|
24
|
+
from: string;
|
|
25
|
+
to: string;
|
|
26
|
+
gas: bigint;
|
|
27
|
+
gasPrice: bigint;
|
|
28
|
+
value: bigint;
|
|
29
|
+
isRelayerOff: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface TransferTokenRequest {
|
|
32
|
+
type: SandboxRequestType.TransferToken;
|
|
33
|
+
amounts: bigint[];
|
|
34
|
+
erc20Tokens: ERC20Token[];
|
|
35
|
+
to: string;
|
|
36
|
+
isRelayerOff: boolean;
|
|
37
|
+
ownerPublicAddress: string;
|
|
38
|
+
feeToken?: string;
|
|
39
|
+
isFund?: boolean;
|
|
40
|
+
}
|
|
41
|
+
export interface PrivateTransactionBaseRequest {
|
|
42
|
+
txParams: WCTransactionParameters;
|
|
43
|
+
appMetaData: AppMetaData;
|
|
44
|
+
feeToken?: string;
|
|
45
|
+
}
|
|
46
|
+
export interface FundApproveAndTransactRequest extends PrivateTransactionBaseRequest {
|
|
47
|
+
type: SandboxRequestType.FundApproveAndTransact;
|
|
48
|
+
walletNonce: bigint;
|
|
49
|
+
tokenChanges: TokenChanges<bigint>[];
|
|
50
|
+
}
|
|
51
|
+
export interface PrivateTransactionFromProxyRequest extends PrivateTransactionBaseRequest {
|
|
52
|
+
type: SandboxRequestType.PrivateTransactionFromProxy;
|
|
53
|
+
walletNonce: bigint;
|
|
54
|
+
tokenChanges: TokenChanges<bigint>[];
|
|
55
|
+
}
|
|
56
|
+
export interface ApproveRequest extends PrivateTransactionBaseRequest {
|
|
57
|
+
type: SandboxRequestType.Approve;
|
|
58
|
+
approvalAmount: string;
|
|
59
|
+
approvalToken: ERC20Token;
|
|
60
|
+
}
|
|
61
|
+
export interface InsideTransactRequest extends PrivateTransactionBaseRequest {
|
|
62
|
+
type: SandboxRequestType.InsideTransact;
|
|
63
|
+
tokenChanges: TokenChanges<bigint>[];
|
|
64
|
+
}
|
|
65
|
+
export interface ReceiveFromSubAccountRequest {
|
|
66
|
+
type: SandboxRequestType.ReceiveFromShieldedAccount;
|
|
67
|
+
amounts: bigint[];
|
|
68
|
+
erc20Tokens: ERC20Token[];
|
|
69
|
+
walletNonce: bigint;
|
|
70
|
+
ownerPublicAddress: string;
|
|
71
|
+
feeToken?: string;
|
|
72
|
+
feeStructure?: FeeStructure;
|
|
73
|
+
}
|
|
74
|
+
export interface ShieldTokensRequest {
|
|
75
|
+
type: SandboxRequestType.ShieldTokens;
|
|
76
|
+
amounts: bigint[];
|
|
77
|
+
erc20Tokens: ERC20Token[];
|
|
78
|
+
ownerPublicAddress: string;
|
|
79
|
+
}
|
|
80
|
+
export interface SwapTokensRequest {
|
|
81
|
+
type: SandboxRequestType.SwapTokens;
|
|
82
|
+
amountChanges: bigint[];
|
|
83
|
+
erc20Tokens: ERC20Token[];
|
|
84
|
+
externalActionId: ExternalActionId;
|
|
85
|
+
swapData: string;
|
|
86
|
+
isVolatile: boolean;
|
|
87
|
+
ownerPublicAddress: string;
|
|
88
|
+
integrationProvider: IntegrationProvider;
|
|
89
|
+
feeToken?: string;
|
|
90
|
+
feeStructure?: FeeStructure;
|
|
91
|
+
}
|
|
92
|
+
export interface ProxySwapTokensRequest {
|
|
93
|
+
type: SandboxRequestType.ProxySwapTokens;
|
|
94
|
+
amountChanges: bigint[];
|
|
95
|
+
erc20Tokens: ERC20Token[];
|
|
96
|
+
externalActionId: ExternalActionId;
|
|
97
|
+
swapData: string;
|
|
98
|
+
ownerPublicAddress: string;
|
|
99
|
+
integrationProvider: IntegrationProvider;
|
|
100
|
+
walletNonce: bigint;
|
|
101
|
+
feeToken?: string;
|
|
102
|
+
feeStructure?: FeeStructure;
|
|
103
|
+
}
|
|
104
|
+
export interface SignMessageRequest {
|
|
105
|
+
type: SandboxRequestType.SignMessage;
|
|
106
|
+
dataHash: string;
|
|
107
|
+
walletNonce: bigint;
|
|
108
|
+
shouldBeProxyDeployed?: boolean;
|
|
109
|
+
feeToken?: string;
|
|
110
|
+
}
|
|
111
|
+
export interface SendProxySendRequest {
|
|
112
|
+
type: SandboxRequestType.ProxySend;
|
|
113
|
+
amounts: bigint[];
|
|
114
|
+
erc20Tokens: ERC20Token[];
|
|
115
|
+
to: string;
|
|
116
|
+
walletNonce: bigint;
|
|
117
|
+
ownerPublicAddress: string;
|
|
118
|
+
feeToken?: string;
|
|
119
|
+
feeStructure?: FeeStructure;
|
|
120
|
+
}
|
|
121
|
+
export interface PrepareHinkalFromSerializedArgs {
|
|
122
|
+
signature: string;
|
|
123
|
+
ethereumAddress: string;
|
|
124
|
+
chainId: number;
|
|
125
|
+
nullifiers: string[];
|
|
126
|
+
merkleTreeHinkal: MerkleTreeJson;
|
|
127
|
+
merkleTreeAccessToken: MerkleTreeJson;
|
|
128
|
+
encryptedOutputs: EncryptedOutputWithSign<boolean>[];
|
|
129
|
+
approvals: Record<string, ApprovedUtxo[]>;
|
|
130
|
+
generateProofRemotely: boolean;
|
|
131
|
+
serializedCache: Record<string, string>;
|
|
132
|
+
stealthPairCache: Record<string, string>;
|
|
133
|
+
stealthAddressCache: Record<string, string>;
|
|
134
|
+
}
|
|
135
|
+
export type SandboxRequest = (TransferTokenRequest | ReceiveFromSubAccountRequest | SwapTokensRequest | ShieldTokensRequest | SignMessageRequest | FundApproveAndTransactRequest | PrivateTransactionFromProxyRequest | ApproveRequest | InsideTransactRequest | SendProxySendRequest | ProxySwapTokensRequest) & {
|
|
136
|
+
prepareHinkalArgs: PrepareHinkalFromSerializedArgs;
|
|
137
|
+
};
|
|
138
|
+
export type SandboxRuntimeMessageHandler = (message: WithId<SandboxRequest>) => Promise<{
|
|
139
|
+
result: string;
|
|
140
|
+
} | undefined>;
|
|
141
|
+
export interface SandboxResponseError {
|
|
142
|
+
id: number;
|
|
143
|
+
success: false;
|
|
144
|
+
error: Error;
|
|
145
|
+
}
|
|
146
|
+
export interface SandboxResponseBase {
|
|
147
|
+
id: number;
|
|
148
|
+
success: true;
|
|
149
|
+
}
|
|
150
|
+
export interface SandboxResponseTx extends SandboxResponseBase {
|
|
151
|
+
tx: SandboxTransferableTransaction;
|
|
152
|
+
}
|
|
153
|
+
export interface SandboxResponseSignature extends SandboxResponseBase {
|
|
154
|
+
signature: string;
|
|
155
|
+
}
|
|
156
|
+
export type SandboxResponseSuccess = SandboxResponseTx | SandboxResponseSignature;
|
|
157
|
+
export type SandboxResponse = SandboxResponseError | SandboxResponseSuccess;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var n = /* @__PURE__ */ ((r) => (r.TransferToken = "TransferToken", r.ReceiveFromShieldedAccount = "ReceiveFromShieldedAccount", r.SwapTokens = "SwapTokens", r.ShieldTokens = "ShieldTokens", r.MintAccessToken = "MintAccessToken", r.SignMessage = "SignMessage", r.FundApproveAndTransact = "FundApproveAndTransact", r.PrivateTransactionFromProxy = "PrivateTransactionFromProxy", r.Approve = "Approve", r.InsideTransact = "InsideTransact", r.ProxySend = "ProxySend", r.ProxySwapTokens = "ProxySwapTokens", r))(n || {});
|
|
2
|
+
export {
|
|
3
|
+
n as SandboxRequestType
|
|
4
|
+
};
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
export interface SendTransacrtionBase {
|
|
2
|
+
blockOverrides?: {
|
|
3
|
+
number: string;
|
|
4
|
+
timestamp: string;
|
|
5
|
+
};
|
|
6
|
+
stateOverrides?: {
|
|
7
|
+
nonce: number;
|
|
8
|
+
code: string;
|
|
9
|
+
balance: {
|
|
10
|
+
value: number;
|
|
11
|
+
};
|
|
12
|
+
storage: Map<string, string>;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export type SimulateTxBody = {
|
|
16
|
+
network_id: string;
|
|
17
|
+
from: string;
|
|
18
|
+
to: string;
|
|
19
|
+
input: string;
|
|
20
|
+
gas?: number;
|
|
21
|
+
block_number?: number;
|
|
22
|
+
transaction_index?: number;
|
|
23
|
+
gas_price?: string;
|
|
24
|
+
estimate_gas?: boolean;
|
|
25
|
+
value?: string;
|
|
26
|
+
save?: boolean;
|
|
27
|
+
save_if_fails?: boolean;
|
|
28
|
+
};
|
|
29
|
+
export type SimulateTxResponse = {
|
|
30
|
+
transaction: {
|
|
31
|
+
hash: string;
|
|
32
|
+
block_hash: string;
|
|
33
|
+
block_number: number;
|
|
34
|
+
from: string;
|
|
35
|
+
gas: number;
|
|
36
|
+
gas_price: number;
|
|
37
|
+
input: string;
|
|
38
|
+
nonce: number;
|
|
39
|
+
to: string;
|
|
40
|
+
index: number;
|
|
41
|
+
addresses: string[];
|
|
42
|
+
contract_ids: string[];
|
|
43
|
+
network_id: string;
|
|
44
|
+
timestamp: string;
|
|
45
|
+
transaction_info: {
|
|
46
|
+
contract_address: string;
|
|
47
|
+
method: 'approve';
|
|
48
|
+
logs: any[] | null;
|
|
49
|
+
balance_diff: any[] | null;
|
|
50
|
+
nonce_diff: any[] | null;
|
|
51
|
+
state_diff: any[] | null;
|
|
52
|
+
asset_changes: any[] | null;
|
|
53
|
+
exposure_changes: any[] | null;
|
|
54
|
+
balance_changes: any[] | null;
|
|
55
|
+
};
|
|
56
|
+
call_trace: any[] | null;
|
|
57
|
+
simulation: {
|
|
58
|
+
id: string;
|
|
59
|
+
project_id: string;
|
|
60
|
+
network_id: string;
|
|
61
|
+
blocknumber: number;
|
|
62
|
+
transaction_index: number;
|
|
63
|
+
block_header: object;
|
|
64
|
+
nonce: number;
|
|
65
|
+
contracts: any[];
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
simulation: object;
|
|
69
|
+
};
|
|
70
|
+
export type RpcTransactionParams = {
|
|
71
|
+
from: string;
|
|
72
|
+
to: string;
|
|
73
|
+
gas: string;
|
|
74
|
+
gasPrice?: string;
|
|
75
|
+
value: string | bigint;
|
|
76
|
+
input: string;
|
|
77
|
+
maxFeePerGas?: number;
|
|
78
|
+
maxPriorityFeePerGas?: number;
|
|
79
|
+
};
|
|
80
|
+
export type RpcSimulateTransactionBody<T extends RpcTransactionParams | RpcTransactionParams[] = RpcTransactionParams> = {
|
|
81
|
+
params: [
|
|
82
|
+
T,
|
|
83
|
+
string | 'latest' | 'earliest' | 'pending' | 'finalized' | 'safe',
|
|
84
|
+
{
|
|
85
|
+
[key in string]: {
|
|
86
|
+
balance: string;
|
|
87
|
+
nonce?: string;
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
];
|
|
91
|
+
};
|
|
92
|
+
export type StorageStateChange = {
|
|
93
|
+
address: string;
|
|
94
|
+
balance?: {
|
|
95
|
+
previousValue: string;
|
|
96
|
+
newValue: string;
|
|
97
|
+
};
|
|
98
|
+
nonce?: {
|
|
99
|
+
previousValue: string;
|
|
100
|
+
newValue: string;
|
|
101
|
+
};
|
|
102
|
+
storage?: {
|
|
103
|
+
slot: string;
|
|
104
|
+
previousValue: string;
|
|
105
|
+
newValue: string;
|
|
106
|
+
ERC20ChangeType?: 'balance' | 'allowance';
|
|
107
|
+
}[];
|
|
108
|
+
};
|
|
109
|
+
export type RPCSimulationAssetChange = {
|
|
110
|
+
rawAmount: string;
|
|
111
|
+
amount: string | null;
|
|
112
|
+
dollarValue?: string;
|
|
113
|
+
from: string;
|
|
114
|
+
to: string;
|
|
115
|
+
assetInfo: {
|
|
116
|
+
standard: string;
|
|
117
|
+
type: string;
|
|
118
|
+
contractAddress?: string;
|
|
119
|
+
symbol?: string;
|
|
120
|
+
name?: string;
|
|
121
|
+
logo?: string;
|
|
122
|
+
decimals?: number;
|
|
123
|
+
dollarValue?: string;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
export type RPCSimulationExposureChange = {
|
|
127
|
+
assetInfo: {
|
|
128
|
+
standard: string;
|
|
129
|
+
type: string;
|
|
130
|
+
contractAddress: string;
|
|
131
|
+
symbol: string;
|
|
132
|
+
name: string;
|
|
133
|
+
logo: string;
|
|
134
|
+
decimals: number;
|
|
135
|
+
dollarValue: string;
|
|
136
|
+
};
|
|
137
|
+
type: string;
|
|
138
|
+
owner: string;
|
|
139
|
+
spender: string;
|
|
140
|
+
rawAmount: string;
|
|
141
|
+
amount: string;
|
|
142
|
+
dollarValue: string;
|
|
143
|
+
};
|
|
144
|
+
export type RpcSimulateResult = {
|
|
145
|
+
assetChanges: RPCSimulationAssetChange[];
|
|
146
|
+
status: boolean;
|
|
147
|
+
gasUsed: string;
|
|
148
|
+
cumulativeGasUsed: string;
|
|
149
|
+
blockNumber: string;
|
|
150
|
+
type: string;
|
|
151
|
+
logsBloom: string;
|
|
152
|
+
logs: {
|
|
153
|
+
name: string;
|
|
154
|
+
inputs: {
|
|
155
|
+
value: string;
|
|
156
|
+
type: string;
|
|
157
|
+
name: string;
|
|
158
|
+
indexed: boolean;
|
|
159
|
+
}[];
|
|
160
|
+
raw: {
|
|
161
|
+
address: string;
|
|
162
|
+
data: string;
|
|
163
|
+
topics: string[];
|
|
164
|
+
};
|
|
165
|
+
}[];
|
|
166
|
+
stateChanges: StorageStateChange[];
|
|
167
|
+
trace: {
|
|
168
|
+
type: string;
|
|
169
|
+
method: string;
|
|
170
|
+
output: string;
|
|
171
|
+
subtraces: number;
|
|
172
|
+
traceAddress: string[];
|
|
173
|
+
}[];
|
|
174
|
+
exposureChanges: RPCSimulationExposureChange[];
|
|
175
|
+
};
|
|
176
|
+
export type RpcSimulateTransactionResponse<T extends RpcSimulateResult | RpcSimulateResult[] = RpcSimulateResult> = {
|
|
177
|
+
jsonrpc: '2.0';
|
|
178
|
+
id: 0;
|
|
179
|
+
result: T;
|
|
180
|
+
};
|
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;
|
package/types/token.types.d.ts
CHANGED
|
@@ -18,6 +18,9 @@ export interface ERC20Token {
|
|
|
18
18
|
isHToken?: boolean;
|
|
19
19
|
hasHToken?: boolean;
|
|
20
20
|
aaveToken?: boolean;
|
|
21
|
+
allowanceStorageOffset?: number;
|
|
22
|
+
balanceStorageOffset?: number;
|
|
23
|
+
isVyper?: boolean;
|
|
21
24
|
}
|
|
22
25
|
export declare enum ApprovalType {
|
|
23
26
|
Classic = 0,
|
|
@@ -34,3 +37,23 @@ export interface TokenBalance {
|
|
|
34
37
|
timestamp?: string;
|
|
35
38
|
nfts?: NFT[];
|
|
36
39
|
}
|
|
40
|
+
export interface TokenBalanceWithUsdValue extends TokenBalance {
|
|
41
|
+
usdValue: number;
|
|
42
|
+
}
|
|
43
|
+
export interface PublicTokenBalances {
|
|
44
|
+
publicTokenBalances: TokenBalance[];
|
|
45
|
+
isPublicBalancesLoading: boolean;
|
|
46
|
+
}
|
|
47
|
+
export interface PublicTokenBalancesWithUsd {
|
|
48
|
+
publicTokenBalancesWithUSD: TokenBalanceWithUsdValue[];
|
|
49
|
+
publicUsdBalance: number;
|
|
50
|
+
isPublicBalancesLoading: boolean;
|
|
51
|
+
}
|
|
52
|
+
export interface TokenChangesMinimal<T = number> {
|
|
53
|
+
token: ERC20Token;
|
|
54
|
+
amount: T;
|
|
55
|
+
dollarValue?: string;
|
|
56
|
+
}
|
|
57
|
+
export type TokenChanges<T = number> = TokenChangesMinimal<T> & {
|
|
58
|
+
dollarValue: string;
|
|
59
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("ethers"),l=d.BigNumber.from(0),p={blockNumber:0,timeStamp:0,methodId:"",input:"",decodedInput:{erc20TokenAddresses:[],amountChanges:[],flatFees:[0n,0n].map(e=>d.BigNumber.from(e)),externalActionId:l,externalActionMetadata:"",encryptedOutputs:[],hookData:{hookContract:"",preHookContract:"",preHookMetadata:"",postHookMetadata:""},stealthAddressStructure:{extraRandomization:0n,stealthAddress:0n,H0:0n,H1:0n}},logs:[],hash:"",gas:0,gasPrice:0,isError:"",status:""};var u=(e=>(e[e.Confirmed=0]="Confirmed",e[e.Failed=1]="Failed",e[e.Loading=2]="Loading",e[e.NotStarted=3]="NotStarted",e))(u||{}),m=(e=>(e[e.None=0]="None",e[e.Deposit=1]="Deposit",e[e.Mint=2]="Mint",e[e.PoolAdd=3]="PoolAdd",e[e.PoolRemove=4]="PoolRemove",e[e.Redeem=5]="Redeem",e[e.Swap=6]="Swap",e[e.Transfer=7]="Transfer",e[e.Withdraw=8]="Withdraw",e[e.Send=9]="Send",e[e.CurveDeposit=10]="CurveDeposit",e[e.CurveWithdraw=11]="CurveWithdraw",e[e.CurveStake=12]="CurveStake",e[e.CurveUnstake=13]="CurveUnstake",e[e.CurveClaim=14]="CurveClaim",e[e.HinkalStake=15]="HinkalStake",e[e.HinkalUnstake=16]="HinkalUnstake",e[e.ConvexDeposit=17]="ConvexDeposit",e[e.ConvexWithdraw=18]="ConvexWithdraw",e[e.BeefyDeposit=19]="BeefyDeposit",e[e.BeefyWithdraw=20]="BeefyWithdraw",e[e.Fund=21]="Fund",e[e.Receive=22]="Receive",e))(m||{});exports.TransactionAction=m;exports.TransactionStatus=u;exports.emptyDecodedTx=p;
|
|
@@ -52,4 +52,35 @@ export type OnChainUtxo<AmountType = bigint> = {
|
|
|
52
52
|
tokenId: number;
|
|
53
53
|
};
|
|
54
54
|
export declare const emptyDecodedTx: DecodedTx;
|
|
55
|
+
export declare enum TransactionStatus {
|
|
56
|
+
Confirmed = 0,
|
|
57
|
+
Failed = 1,
|
|
58
|
+
Loading = 2,
|
|
59
|
+
NotStarted = 3
|
|
60
|
+
}
|
|
61
|
+
export declare enum TransactionAction {
|
|
62
|
+
None = 0,
|
|
63
|
+
Deposit = 1,
|
|
64
|
+
Mint = 2,
|
|
65
|
+
PoolAdd = 3,
|
|
66
|
+
PoolRemove = 4,
|
|
67
|
+
Redeem = 5,
|
|
68
|
+
Swap = 6,
|
|
69
|
+
Transfer = 7,
|
|
70
|
+
Withdraw = 8,
|
|
71
|
+
Send = 9,
|
|
72
|
+
CurveDeposit = 10,
|
|
73
|
+
CurveWithdraw = 11,
|
|
74
|
+
CurveStake = 12,
|
|
75
|
+
CurveUnstake = 13,
|
|
76
|
+
CurveClaim = 14,
|
|
77
|
+
HinkalStake = 15,
|
|
78
|
+
HinkalUnstake = 16,
|
|
79
|
+
ConvexDeposit = 17,
|
|
80
|
+
ConvexWithdraw = 18,
|
|
81
|
+
BeefyDeposit = 19,
|
|
82
|
+
BeefyWithdraw = 20,
|
|
83
|
+
Fund = 21,
|
|
84
|
+
Receive = 22
|
|
85
|
+
}
|
|
55
86
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BigNumber as
|
|
2
|
-
const
|
|
1
|
+
import { BigNumber as d } from "ethers";
|
|
2
|
+
const m = d.from(0), k = {
|
|
3
3
|
blockNumber: 0,
|
|
4
4
|
timeStamp: 0,
|
|
5
5
|
methodId: "",
|
|
@@ -7,8 +7,8 @@ const o = t.from(0), r = {
|
|
|
7
7
|
decodedInput: {
|
|
8
8
|
erc20TokenAddresses: [],
|
|
9
9
|
amountChanges: [],
|
|
10
|
-
flatFees: [0n, 0n].map((e) =>
|
|
11
|
-
externalActionId:
|
|
10
|
+
flatFees: [0n, 0n].map((e) => d.from(e)),
|
|
11
|
+
externalActionId: m,
|
|
12
12
|
externalActionMetadata: "",
|
|
13
13
|
encryptedOutputs: [],
|
|
14
14
|
hookData: {
|
|
@@ -31,6 +31,9 @@ const o = t.from(0), r = {
|
|
|
31
31
|
isError: "",
|
|
32
32
|
status: ""
|
|
33
33
|
};
|
|
34
|
+
var p = /* @__PURE__ */ ((e) => (e[e.Confirmed = 0] = "Confirmed", e[e.Failed = 1] = "Failed", e[e.Loading = 2] = "Loading", e[e.NotStarted = 3] = "NotStarted", e))(p || {}), C = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Deposit = 1] = "Deposit", e[e.Mint = 2] = "Mint", e[e.PoolAdd = 3] = "PoolAdd", e[e.PoolRemove = 4] = "PoolRemove", e[e.Redeem = 5] = "Redeem", e[e.Swap = 6] = "Swap", e[e.Transfer = 7] = "Transfer", e[e.Withdraw = 8] = "Withdraw", e[e.Send = 9] = "Send", e[e.CurveDeposit = 10] = "CurveDeposit", e[e.CurveWithdraw = 11] = "CurveWithdraw", e[e.CurveStake = 12] = "CurveStake", e[e.CurveUnstake = 13] = "CurveUnstake", e[e.CurveClaim = 14] = "CurveClaim", e[e.HinkalStake = 15] = "HinkalStake", e[e.HinkalUnstake = 16] = "HinkalUnstake", e[e.ConvexDeposit = 17] = "ConvexDeposit", e[e.ConvexWithdraw = 18] = "ConvexWithdraw", e[e.BeefyDeposit = 19] = "BeefyDeposit", e[e.BeefyWithdraw = 20] = "BeefyWithdraw", e[e.Fund = 21] = "Fund", e[e.Receive = 22] = "Receive", e))(C || {});
|
|
34
35
|
export {
|
|
35
|
-
|
|
36
|
+
C as TransactionAction,
|
|
37
|
+
p as TransactionStatus,
|
|
38
|
+
k as emptyDecodedTx
|
|
36
39
|
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { BuildApprovedNamespacesParams } from '@walletconnect/utils';
|
|
2
|
+
export interface VerifyContextOptions {
|
|
3
|
+
verified: {
|
|
4
|
+
origin: string;
|
|
5
|
+
validation: string;
|
|
6
|
+
verifyUrl: string;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export type WCSessionProposalOptions = {
|
|
10
|
+
id: number;
|
|
11
|
+
params: BuildApprovedNamespacesParams['proposal'];
|
|
12
|
+
verifyContext: VerifyContextOptions;
|
|
13
|
+
};
|
|
14
|
+
export type WCSessionRequestOptions = {
|
|
15
|
+
id: number;
|
|
16
|
+
topic: string;
|
|
17
|
+
params: {
|
|
18
|
+
chainId: string;
|
|
19
|
+
request: {
|
|
20
|
+
method: string;
|
|
21
|
+
params: unknown[];
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
verifyContext: VerifyContextOptions;
|
|
25
|
+
};
|
|
26
|
+
export interface TxParametersBase {
|
|
27
|
+
from: string;
|
|
28
|
+
to: string;
|
|
29
|
+
gas?: string;
|
|
30
|
+
gasPrice?: string;
|
|
31
|
+
value: string;
|
|
32
|
+
data?: string;
|
|
33
|
+
}
|
|
34
|
+
export interface WCTransactionParameters<T = number> extends TxParametersBase {
|
|
35
|
+
chainId: T;
|
|
36
|
+
}
|
|
37
|
+
type BaseNamespace = {
|
|
38
|
+
chains?: string[];
|
|
39
|
+
accounts: string[];
|
|
40
|
+
methods: string[];
|
|
41
|
+
events: string[];
|
|
42
|
+
};
|
|
43
|
+
type Namespaces = Record<string, BaseNamespace>;
|
|
44
|
+
export type WCSession = {
|
|
45
|
+
topic: string;
|
|
46
|
+
pairingTopic: string;
|
|
47
|
+
acknowledged: boolean;
|
|
48
|
+
controller: string;
|
|
49
|
+
self: {
|
|
50
|
+
publicKey: string;
|
|
51
|
+
};
|
|
52
|
+
peer: {
|
|
53
|
+
publicKey: string;
|
|
54
|
+
metadata: {
|
|
55
|
+
name: string;
|
|
56
|
+
description: string;
|
|
57
|
+
url: string;
|
|
58
|
+
icons: string[];
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
namespaces: Namespaces;
|
|
62
|
+
};
|
|
63
|
+
export interface WCErrorResponse {
|
|
64
|
+
id: number;
|
|
65
|
+
error: {
|
|
66
|
+
code: number;
|
|
67
|
+
message: string;
|
|
68
|
+
};
|
|
69
|
+
jsonrpc: string;
|
|
70
|
+
}
|
|
71
|
+
export interface WCSuccessResponse {
|
|
72
|
+
id: number;
|
|
73
|
+
result: string | null;
|
|
74
|
+
jsonrpc: string;
|
|
75
|
+
}
|
|
76
|
+
export type WCResponse = WCErrorResponse | WCSuccessResponse;
|
|
77
|
+
export interface WCCofirmationDetails {
|
|
78
|
+
title: string;
|
|
79
|
+
subTitle?: string;
|
|
80
|
+
disclaimer?: string;
|
|
81
|
+
showConnectWith?: boolean;
|
|
82
|
+
confirmBtnLabel?: string;
|
|
83
|
+
}
|
|
84
|
+
export type AppMetaData = {
|
|
85
|
+
url?: string;
|
|
86
|
+
icon: string;
|
|
87
|
+
name: string;
|
|
88
|
+
};
|
|
89
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../../assets/snarkjsWorkerLauncher-
|
|
1
|
+
"use strict";const e=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../../assets/snarkjsWorkerLauncher-DaadjbPk.js").href:new URL("../../assets/snarkjsWorkerLauncher-DaadjbPk.js",document.currentScript&&document.currentScript.src||document.baseURI).href);module.exports=e;
|