@hinkal/common 0.2.13 → 0.2.15
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/getRelayerURL.cjs +1 -1
- package/API/getRelayerURL.mjs +4 -4
- package/API/getServerURL.cjs +1 -1
- package/API/getServerURL.d.ts +1 -1
- package/API/getServerURL.mjs +14 -12
- 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 +14 -0
- package/API/tenderly.api.mjs +55 -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 +11 -11
- 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 +2 -2
- package/constants/chains.constants.mjs +32 -35
- 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 +10115 -3422
- package/constants/deploy-data/deploy-data-avalanche.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-avalanche.json.mjs +10112 -3415
- package/constants/deploy-data/deploy-data-base.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-base.json.mjs +9408 -3725
- package/constants/deploy-data/deploy-data-bnbMainnet.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-bnbMainnet.json.mjs +9893 -3194
- package/constants/deploy-data/deploy-data-ethMainnet.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-ethMainnet.json.mjs +6318 -3587
- 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 +10113 -3422
- package/constants/deploy-data/deploy-data-polygon.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-polygon.json.mjs +10092 -3423
- 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 +8 -0
- package/constants/protocol.constants.mjs +29 -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 +34 -6
- package/constants/server.constants.mjs +48 -20
- 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 +350 -110
- package/constants/token-data/arbMainnetRegistryFixed.json.cjs +1 -1
- package/constants/token-data/arbMainnetRegistryFixed.json.mjs +334 -100
- package/constants/token-data/avalancheRegistry.json.cjs +1 -1
- package/constants/token-data/avalancheRegistry.json.mjs +236 -68
- package/constants/token-data/avalancheRegistryFixed.json.cjs +1 -1
- package/constants/token-data/avalancheRegistryFixed.json.mjs +236 -68
- package/constants/token-data/baseRegistry.json.cjs +1 -1
- package/constants/token-data/baseRegistry.json.mjs +224 -59
- package/constants/token-data/baseRegistryFixed.json.cjs +1 -1
- package/constants/token-data/baseRegistryFixed.json.mjs +212 -56
- 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 +1017 -344
- package/constants/token-data/ethMainnetRegistryFixed.json.cjs +1 -1
- package/constants/token-data/ethMainnetRegistryFixed.json.mjs +946 -303
- package/constants/token-data/index.cjs +1 -0
- package/constants/token-data/index.d.ts +1496 -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 +530 -155
- package/constants/token-data/polygonRegistryFixed.json.cjs +1 -1
- package/constants/token-data/polygonRegistryFixed.json.mjs +504 -147
- 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 +7 -1
- package/constants/vite.constants.mjs +27 -22
- package/data-structures/Hinkal/Hinkal.cjs +1 -1
- package/data-structures/Hinkal/Hinkal.d.ts +48 -20
- package/data-structures/Hinkal/Hinkal.mjs +264 -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 +86 -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 +7 -2
- package/data-structures/merkle-tree/MerkleTree.mjs +85 -70
- 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 +20 -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/getTokenHolder.cjs +1 -0
- package/functions/web3/getTokenHolder.d.ts +1 -0
- package/functions/web3/getTokenHolder.mjs +12 -0
- package/functions/web3/index.d.ts +1 -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 +739 -609
- 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
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { RpcSimulateResult, RpcSimulateTransactionBody, RpcSimulateTransactionResponse, RpcTransactionParams, SimulateTxBody, SimulateTxResponse } from '../types/tenderly.api.types';
|
|
2
|
+
export declare const simulateTx: (simulateTxBody: SimulateTxBody) => Promise<SimulateTxResponse>;
|
|
3
|
+
export declare const tenderlyRpcLinks: {
|
|
4
|
+
[x: number]: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const rpcSimulateTransaction: (chainId: number, simulateTxBody: RpcSimulateTransactionBody) => Promise<RpcSimulateTransactionResponse>;
|
|
7
|
+
export declare const rpcSimulateBundle: (chainId: number, simulateTxBody: RpcSimulateTransactionBody<RpcTransactionParams[]>) => Promise<RpcSimulateTransactionResponse<RpcSimulateResult[]>>;
|
|
8
|
+
export declare const rpcGetStorageChanges: (chainId: number, address: string, offset: string) => Promise<any>;
|
|
9
|
+
export declare const WALLET_API: {
|
|
10
|
+
rpcGetStorageChanges: (chainId: number, address: string, offset: string) => Promise<any>;
|
|
11
|
+
rpcSimulateTransaction: (chainId: number, simulateTxBody: RpcSimulateTransactionBody) => Promise<RpcSimulateTransactionResponse>;
|
|
12
|
+
rpcSimulateBundle: (chainId: number, simulateTxBody: RpcSimulateTransactionBody<RpcTransactionParams[]>) => Promise<RpcSimulateTransactionResponse<RpcSimulateResult[]>>;
|
|
13
|
+
simulateTx: (simulateTxBody: SimulateTxBody) => Promise<SimulateTxResponse>;
|
|
14
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import s from "axios";
|
|
2
|
+
import { chainIds as a } from "../constants/chains.constants.mjs";
|
|
3
|
+
const c = "7o1iPUgCIjLI0rSxj2yuz9-Z3052uUc4", p = "hinkal-org", i = "project", d = `https://api.tenderly.co/api/v1/account/${p}/project/${i}`, n = { "X-Access-Key": c }, l = async (t) => (await s.post(
|
|
4
|
+
`${d}/simulate`,
|
|
5
|
+
{ ...t },
|
|
6
|
+
{
|
|
7
|
+
headers: n
|
|
8
|
+
}
|
|
9
|
+
)).data, r = {
|
|
10
|
+
[a.optimism]: "https://optimism.gateway.tenderly.co/2A3r4RCMoAZVmQOpNqRO29",
|
|
11
|
+
[a.base]: "https://base.gateway.tenderly.co/73UtIBn1YiCyhqRJuKTkWl",
|
|
12
|
+
[a.ethMainnet]: "https://mainnet.gateway.tenderly.co/SW3mROrzKEQYSq3RkStJ7",
|
|
13
|
+
[a.avalanche]: "https://avalanche.gateway.tenderly.co/2YdoJTNLCUHfzwvqIUVgwZ",
|
|
14
|
+
[a.arbMainnet]: "https://arbitrum.gateway.tenderly.co/4dUF2wEnsmvFw9fqLpoLga",
|
|
15
|
+
[a.polygon]: "https://polygon.gateway.tenderly.co/32hCaUScB41nXgyzCmeDVu"
|
|
16
|
+
}, m = async (t, e) => (await s.post(
|
|
17
|
+
r[t],
|
|
18
|
+
{ jsonrpc: "2.0", id: 0, method: "tenderly_simulateTransaction", params: e.params },
|
|
19
|
+
{
|
|
20
|
+
headers: n
|
|
21
|
+
}
|
|
22
|
+
)).data, y = async (t, e) => (await s.post(
|
|
23
|
+
r[t],
|
|
24
|
+
{ jsonrpc: "2.0", id: 0, method: "tenderly_simulateBundle", params: e.params },
|
|
25
|
+
{ headers: n }
|
|
26
|
+
)).data, h = async (t, e, o) => (await s.post(
|
|
27
|
+
r[t],
|
|
28
|
+
{
|
|
29
|
+
jsonrpc: "2.0",
|
|
30
|
+
id: 0,
|
|
31
|
+
method: "tenderly_getStorageChanges",
|
|
32
|
+
params: [
|
|
33
|
+
{
|
|
34
|
+
address: e,
|
|
35
|
+
offset: o
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
headers: n
|
|
41
|
+
}
|
|
42
|
+
)).data, S = {
|
|
43
|
+
rpcGetStorageChanges: h,
|
|
44
|
+
rpcSimulateTransaction: m,
|
|
45
|
+
rpcSimulateBundle: y,
|
|
46
|
+
simulateTx: l
|
|
47
|
+
};
|
|
48
|
+
export {
|
|
49
|
+
S as WALLET_API,
|
|
50
|
+
h as rpcGetStorageChanges,
|
|
51
|
+
y as rpcSimulateBundle,
|
|
52
|
+
m as rpcSimulateTransaction,
|
|
53
|
+
l as simulateTx,
|
|
54
|
+
r as tenderlyRpcLinks
|
|
55
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("axios"),o=require("../constants/server.constants.cjs"),n=require("./getServerURL.cjs"),s=async(e,t)=>(await r.post(`${n.getServerURL(e)}${o.API_CONFIG.ROUTES.getTokensInfo}`,{tokenAddresses:t})).data;exports.tokensInfoCall=s;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import r from "axios";
|
|
2
|
+
import { API_CONFIG as e } from "../constants/server.constants.mjs";
|
|
3
|
+
import { getServerURL as a } from "./getServerURL.mjs";
|
|
4
|
+
const f = async (o, t) => (await r.post(`${a(o)}${e.ROUTES.getTokensInfo}`, {
|
|
5
|
+
tokenAddresses: t
|
|
6
|
+
})).data;
|
|
7
|
+
export {
|
|
8
|
+
f as tokensInfoCall
|
|
9
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("axios"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("axios"),n=require("./getServerURL.cjs"),i=require("../constants/server.constants.cjs"),c=async(e,t)=>{const{data:s}=await a.get(`${n.getServerURL(e)}${i.API_CONFIG.ROUTES.userGetLatestCertifiedHashes(t)}`);return s},u=async(e,t,s,r)=>(await a.get(`${n.getServerURL(e)}${i.API_CONFIG.ROUTES.userGetTransactions(t,s,r)}`)).data,T=async(e,t,s,r,o)=>(await a.post(`${n.getServerURL(e)}${i.API_CONFIG.ROUTES.userVerifyTransactions}`,{transactionHashes:t,zkCallDataArray:s,backendToken:r,ethereumAddress:o})).data;exports.userGetLatestCertifiedHashes=c;exports.userGetTransactions=u;exports.userVerifyTransactions=T;
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { NewZkCallDataType } from '../types/snark.types';
|
|
2
2
|
import { RawTx } from '../types/transactions.types';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
hasCertifiedAll: boolean;
|
|
3
|
+
import { HashInfoByChain } from '../types';
|
|
4
|
+
interface IUserGetLatestCertifiedHashes {
|
|
5
|
+
lastCertifiedHashes: HashInfoByChain;
|
|
7
6
|
}
|
|
8
|
-
export declare const
|
|
7
|
+
export declare const userGetLatestCertifiedHashes: (chainId: number, ethereumAddress: string) => Promise<IUserGetLatestCertifiedHashes>;
|
|
9
8
|
interface IUserGetTransactions {
|
|
10
9
|
transactions: RawTx[];
|
|
11
10
|
}
|
|
12
|
-
export declare const userGetTransactions: (chainId: number, week?: number, lastHash?: string) => Promise<IUserGetTransactions>;
|
|
11
|
+
export declare const userGetTransactions: (chainId: number, week?: number, lastHash?: string, startWeek?: number) => Promise<IUserGetTransactions>;
|
|
13
12
|
interface IUserVerifyTransactions {
|
|
14
13
|
trade: number;
|
|
15
14
|
transactions: number;
|
|
16
15
|
lockedDeposit: number;
|
|
17
16
|
verification: boolean;
|
|
18
17
|
}
|
|
19
|
-
export declare const userVerifyTransactions: (chainId: number, transactionHashes: string[], zkCallDataArray: NewZkCallDataType[], backendToken: string, ethereumAddress: string
|
|
18
|
+
export declare const userVerifyTransactions: (chainId: number, transactionHashes: string[], zkCallDataArray: NewZkCallDataType[], backendToken: string, ethereumAddress: string) => Promise<IUserVerifyTransactions>;
|
|
20
19
|
export {};
|
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from "axios";
|
|
2
2
|
import { getServerURL as n } from "./getServerURL.mjs";
|
|
3
|
-
import { API_CONFIG as
|
|
4
|
-
const
|
|
5
|
-
const { data: r } = await
|
|
6
|
-
`${n(t)}${
|
|
3
|
+
import { API_CONFIG as o } from "../constants/server.constants.mjs";
|
|
4
|
+
const m = async (t, s) => {
|
|
5
|
+
const { data: r } = await e.get(
|
|
6
|
+
`${n(t)}${o.ROUTES.userGetLatestCertifiedHashes(s)}`
|
|
7
7
|
);
|
|
8
8
|
return r;
|
|
9
|
-
}, $ = async (t,
|
|
10
|
-
`${n(t)}${
|
|
11
|
-
)).data,
|
|
12
|
-
transactionHashes:
|
|
9
|
+
}, $ = async (t, s, r, a) => (await e.get(
|
|
10
|
+
`${n(t)}${o.ROUTES.userGetTransactions(s, r, a)}`
|
|
11
|
+
)).data, d = async (t, s, r, a, i) => (await e.post(`${n(t)}${o.ROUTES.userVerifyTransactions}`, {
|
|
12
|
+
transactionHashes: s,
|
|
13
13
|
zkCallDataArray: r,
|
|
14
|
-
backendToken:
|
|
15
|
-
ethereumAddress: i
|
|
16
|
-
week: c
|
|
14
|
+
backendToken: a,
|
|
15
|
+
ethereumAddress: i
|
|
17
16
|
})).data;
|
|
18
17
|
export {
|
|
18
|
+
m as userGetLatestCertifiedHashes,
|
|
19
19
|
$ as userGetTransactions,
|
|
20
|
-
|
|
21
|
-
S as verificationStartDate
|
|
20
|
+
d as userVerifyTransactions
|
|
22
21
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../types/circom-data.types.cjs");const n=require("../types/external-action.types.cjs");require("./vite.constants.cjs");require("../types/transactions.types.cjs");require("../types/curve.types.cjs");require("../types/activities.types.cjs");const a=require("./chains.constants.cjs"),e="0x270B7748CdF8243bFe68FaCE7230ef0fCE695389",E="0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",d={[n.ExternalActionId.Uniswap]:{[a.chainIds.ethMainnet]:"0x1111111254EEB25477B68fb85Ed929f73A960582",[a.chainIds.polygon]:"0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",[a.chainIds.optimism]:"0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",[a.chainIds.arbMainnet]:"0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",[a.chainIds.bnbMainnet]:"0xB971eF87ede563556b2ED4b1C0b0019111Dd85d2",[a.chainIds.avalanche]:"0xbb00FF08d01D300023C629E8fFfFcb65A5a578cE",[a.chainIds.base]:"0x2626664c2603336E57B271c5C0b26F421741e481"},[n.ExternalActionId.Odos]:{[a.chainIds.ethMainnet]:"0xCf5540fFFCdC3d510B18bFcA6d2b9987b0772559",[a.chainIds.polygon]:"0x4E3288c9ca110bCC82bf38F09A7b425c095d92Bf",[a.chainIds.optimism]:"0xCa423977156BB05b13A2BA3b76Bc5419E2fE9680",[a.chainIds.arbMainnet]:"0xa669e7A0d4b3e4Fa48af2dE86BD4CD7126Be4e13",[a.chainIds.bnbMainnet]:"0x89b8AA89FDd0507a99d334CBe3C808fAFC7d850E",[a.chainIds.avalanche]:"0x88de50B233052e4Fb783d4F6db78Cc34fEa3e9FC",[a.chainIds.base]:"0x19cEeAd7105607Cd444F5ad10dd51356436095a1"},[n.ExternalActionId.OneInch]:{[a.chainIds.ethMainnet]:"0x1111111254EEB25477B68fb85Ed929f73A960582",[a.chainIds.polygon]:"0x1111111254EEB25477B68fb85Ed929f73A960582",[a.chainIds.optimism]:"0x1111111254EEB25477B68fb85Ed929f73A960582",[a.chainIds.arbMainnet]:"0x1111111254EEB25477B68fb85Ed929f73A960582",[a.chainIds.bnbMainnet]:"0x1111111254EEB25477B68fb85Ed929f73A960582",[a.chainIds.avalanche]:"0x1111111254EEB25477B68fb85Ed929f73A960582",[a.chainIds.base]:"0x1111111254EEB25477B68fb85Ed929f73A960582"}},c={[a.chainIds.ethMainnet]:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",[a.chainIds.polygon]:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",[a.chainIds.optimism]:"0x4200000000000000000000000000000000000006",[a.chainIds.arbMainnet]:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",[a.chainIds.bnbMainnet]:"0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",[a.chainIds.avalanche]:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",[a.chainIds.base]:"0x4200000000000000000000000000000000000006"};exports.HETH_ERC20_TOKEN_ADDRESS=e;exports.NATIVE_TOKEN_WRAPPER_ADDRESSES=c;exports.SWAP_ROUTER_ADDRESSES=d;exports.WETH_ERC20_TOKEN_ADDRESS=E;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const HETH_ERC20_TOKEN_ADDRESS = "0x270B7748CdF8243bFe68FaCE7230ef0fCE695389";
|
|
2
|
+
export declare const WETH_ERC20_TOKEN_ADDRESS = "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2";
|
|
3
|
+
export declare const SWAP_ROUTER_ADDRESSES: {
|
|
4
|
+
Uniswap: {
|
|
5
|
+
[x: number]: string;
|
|
6
|
+
};
|
|
7
|
+
Odos: {
|
|
8
|
+
[x: number]: string;
|
|
9
|
+
};
|
|
10
|
+
OneInch: {
|
|
11
|
+
[x: number]: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export declare const NATIVE_TOKEN_WRAPPER_ADDRESSES: {
|
|
15
|
+
[x: number]: string;
|
|
16
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import "../types/circom-data.types.mjs";
|
|
2
|
+
import { ExternalActionId as E } from "../types/external-action.types.mjs";
|
|
3
|
+
import "./vite.constants.mjs";
|
|
4
|
+
import "../types/transactions.types.mjs";
|
|
5
|
+
import "../types/curve.types.mjs";
|
|
6
|
+
import "../types/activities.types.mjs";
|
|
7
|
+
import { chainIds as b } from "./chains.constants.mjs";
|
|
8
|
+
const t = "0x270B7748CdF8243bFe68FaCE7230ef0fCE695389", B = "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", C = {
|
|
9
|
+
[E.Uniswap]: {
|
|
10
|
+
[b.ethMainnet]: "0x1111111254EEB25477B68fb85Ed929f73A960582",
|
|
11
|
+
[b.polygon]: "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
|
|
12
|
+
[b.optimism]: "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
|
|
13
|
+
[b.arbMainnet]: "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
|
|
14
|
+
[b.bnbMainnet]: "0xB971eF87ede563556b2ED4b1C0b0019111Dd85d2",
|
|
15
|
+
[b.avalanche]: "0xbb00FF08d01D300023C629E8fFfFcb65A5a578cE",
|
|
16
|
+
[b.base]: "0x2626664c2603336E57B271c5C0b26F421741e481"
|
|
17
|
+
},
|
|
18
|
+
[E.Odos]: {
|
|
19
|
+
[b.ethMainnet]: "0xCf5540fFFCdC3d510B18bFcA6d2b9987b0772559",
|
|
20
|
+
[b.polygon]: "0x4E3288c9ca110bCC82bf38F09A7b425c095d92Bf",
|
|
21
|
+
[b.optimism]: "0xCa423977156BB05b13A2BA3b76Bc5419E2fE9680",
|
|
22
|
+
[b.arbMainnet]: "0xa669e7A0d4b3e4Fa48af2dE86BD4CD7126Be4e13",
|
|
23
|
+
[b.bnbMainnet]: "0x89b8AA89FDd0507a99d334CBe3C808fAFC7d850E",
|
|
24
|
+
[b.avalanche]: "0x88de50B233052e4Fb783d4F6db78Cc34fEa3e9FC",
|
|
25
|
+
[b.base]: "0x19cEeAd7105607Cd444F5ad10dd51356436095a1"
|
|
26
|
+
},
|
|
27
|
+
[E.OneInch]: {
|
|
28
|
+
[b.ethMainnet]: "0x1111111254EEB25477B68fb85Ed929f73A960582",
|
|
29
|
+
[b.polygon]: "0x1111111254EEB25477B68fb85Ed929f73A960582",
|
|
30
|
+
[b.optimism]: "0x1111111254EEB25477B68fb85Ed929f73A960582",
|
|
31
|
+
[b.arbMainnet]: "0x1111111254EEB25477B68fb85Ed929f73A960582",
|
|
32
|
+
[b.bnbMainnet]: "0x1111111254EEB25477B68fb85Ed929f73A960582",
|
|
33
|
+
[b.avalanche]: "0x1111111254EEB25477B68fb85Ed929f73A960582",
|
|
34
|
+
[b.base]: "0x1111111254EEB25477B68fb85Ed929f73A960582"
|
|
35
|
+
}
|
|
36
|
+
}, F = {
|
|
37
|
+
[b.ethMainnet]: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
|
|
38
|
+
[b.polygon]: "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",
|
|
39
|
+
[b.optimism]: "0x4200000000000000000000000000000000000006",
|
|
40
|
+
[b.arbMainnet]: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
|
|
41
|
+
[b.bnbMainnet]: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",
|
|
42
|
+
[b.avalanche]: "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",
|
|
43
|
+
[b.base]: "0x4200000000000000000000000000000000000006"
|
|
44
|
+
};
|
|
45
|
+
export {
|
|
46
|
+
t as HETH_ERC20_TOKEN_ADDRESS,
|
|
47
|
+
F as NATIVE_TOKEN_WRAPPER_ADDRESSES,
|
|
48
|
+
C as SWAP_ROUTER_ADDRESSES,
|
|
49
|
+
B as WETH_ERC20_TOKEN_ADDRESS
|
|
50
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t="https://d1nvbznp963lfd.cloudfront.net/assets/",o={CHEVRON:`${t}Chevron.svg`,MOON:`${t}Moon.svg`,SUN:`${t}Sun.svg`,ARROW_LEFT:`${t}ArrowLeft.svg`,AUTHENTO_LIGHT:`${t}AuthentoLogoLight.png`,AUTHENTO_DARK:`${t}AuthentoLogoDark.png`,KING:`${t}King.svg`,CIRCLE_STRIKETHROUGH:`${t}CircleStrikethrough.svg`,RIGHT_SQUARE:`${t}RightSquare.svg`,COINBASE_DARK:`${t}CoinbaseDark.png`,COINBASE_LIGHT:`${t}CoinbaseLight.png`};exports.IMAGE_PATHS=o;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
const
|
|
2
|
-
CHEVRON: `${
|
|
3
|
-
MOON: `${
|
|
4
|
-
SUN: `${
|
|
5
|
-
ARROW_LEFT: `${
|
|
6
|
-
AUTHENTO_LIGHT: `${
|
|
7
|
-
AUTHENTO_DARK: `${
|
|
8
|
-
KING: `${
|
|
9
|
-
CIRCLE_STRIKETHROUGH: `${
|
|
10
|
-
RIGHT_SQUARE: `${
|
|
11
|
-
COINBASE_DARK: `${
|
|
12
|
-
COINBASE_LIGHT: `${
|
|
1
|
+
const g = "https://d1nvbznp963lfd.cloudfront.net/assets/", n = {
|
|
2
|
+
CHEVRON: `${g}Chevron.svg`,
|
|
3
|
+
MOON: `${g}Moon.svg`,
|
|
4
|
+
SUN: `${g}Sun.svg`,
|
|
5
|
+
ARROW_LEFT: `${g}ArrowLeft.svg`,
|
|
6
|
+
AUTHENTO_LIGHT: `${g}AuthentoLogoLight.png`,
|
|
7
|
+
AUTHENTO_DARK: `${g}AuthentoLogoDark.png`,
|
|
8
|
+
KING: `${g}King.svg`,
|
|
9
|
+
CIRCLE_STRIKETHROUGH: `${g}CircleStrikethrough.svg`,
|
|
10
|
+
RIGHT_SQUARE: `${g}RightSquare.svg`,
|
|
11
|
+
COINBASE_DARK: `${g}CoinbaseDark.png`,
|
|
12
|
+
COINBASE_LIGHT: `${g}CoinbaseLight.png`
|
|
13
13
|
};
|
|
14
14
|
export {
|
|
15
|
-
|
|
15
|
+
n as IMAGE_PATHS
|
|
16
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chains.constants.cjs"),s=require("./deploy-data/deploy-data-bnbMainnet.json.cjs"),a=require("./deploy-data/deploy-data-arbMainnet.json.cjs"),n=require("./deploy-data/deploy-data-ethMainnet.json.cjs"),c=require("./deploy-data/deploy-data-optimism.json.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chains.constants.cjs"),s=require("./deploy-data/deploy-data-bnbMainnet.json.cjs"),a=require("./deploy-data/deploy-data-arbMainnet.json.cjs"),n=require("./deploy-data/deploy-data-ethMainnet.json.cjs"),c=require("./deploy-data/deploy-data-optimism.json.cjs"),d=require("./deploy-data/deploy-data-polygon.json.cjs"),r=require("./deploy-data/deploy-data-avalanche.json.cjs"),o=require("./deploy-data/deploy-data-base.json.cjs"),i=[{chainId:e.chainIds.ethMainnet,sourceChain:"Ethereum",sourceAddress:n.default.accessTokenAddress},{chainId:e.chainIds.arbMainnet,sourceChain:"arbitrum",sourceAddress:a.default.accessTokenAddress},{chainId:e.chainIds.polygon,sourceChain:"Polygon",sourceAddress:d.default.accessTokenAddress},{chainId:e.chainIds.avalanche,sourceChain:"Avalanche",sourceAddress:r.default.accessTokenAddress},{chainId:e.chainIds.bnbMainnet,sourceChain:"binance",sourceAddress:s.default.accessTokenAddress},{chainId:e.chainIds.optimism,sourceChain:"optimism",sourceAddress:c.default.accessTokenAddress},{chainId:e.chainIds.base,sourceChain:"base",sourceAddress:o.default.accessTokenAddress}];exports.AxelarRegistry=i;
|
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
import { chainIds as s } from "./chains.constants.mjs";
|
|
2
2
|
import e from "./deploy-data/deploy-data-bnbMainnet.json.mjs";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import a from "./deploy-data/deploy-data-arbMainnet.json.mjs";
|
|
4
|
+
import r from "./deploy-data/deploy-data-ethMainnet.json.mjs";
|
|
5
5
|
import o from "./deploy-data/deploy-data-optimism.json.mjs";
|
|
6
6
|
import n from "./deploy-data/deploy-data-polygon.json.mjs";
|
|
7
7
|
import c from "./deploy-data/deploy-data-avalanche.json.mjs";
|
|
8
8
|
import i from "./deploy-data/deploy-data-base.json.mjs";
|
|
9
|
-
const
|
|
9
|
+
const f = [
|
|
10
10
|
{
|
|
11
11
|
chainId: s.ethMainnet,
|
|
12
12
|
sourceChain: "Ethereum",
|
|
13
|
-
sourceAddress:
|
|
13
|
+
sourceAddress: r.accessTokenAddress
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
chainId: s.arbMainnet,
|
|
17
17
|
sourceChain: "arbitrum",
|
|
18
|
-
sourceAddress:
|
|
18
|
+
sourceAddress: a.accessTokenAddress
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
chainId: s.polygon,
|
|
22
22
|
sourceChain: "Polygon",
|
|
23
|
-
sourceAddress: n.
|
|
23
|
+
sourceAddress: n.accessTokenAddress
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
chainId: s.avalanche,
|
|
27
27
|
sourceChain: "Avalanche",
|
|
28
|
-
sourceAddress: c.
|
|
28
|
+
sourceAddress: c.accessTokenAddress
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
chainId: s.bnbMainnet,
|
|
32
32
|
sourceChain: "binance",
|
|
33
|
-
sourceAddress: e.
|
|
33
|
+
sourceAddress: e.accessTokenAddress
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
chainId: s.optimism,
|
|
37
37
|
sourceChain: "optimism",
|
|
38
|
-
sourceAddress: o.
|
|
38
|
+
sourceAddress: o.accessTokenAddress
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
chainId: s.base,
|
|
42
42
|
sourceChain: "base",
|
|
43
|
-
sourceAddress: i.
|
|
43
|
+
sourceAddress: i.accessTokenAddress
|
|
44
44
|
}
|
|
45
45
|
];
|
|
46
46
|
export {
|
|
47
|
-
|
|
47
|
+
f as AxelarRegistry
|
|
48
48
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=6;exports.MAX_DISPLAY_DECIMALS=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MAX_DISPLAY_DECIMALS = 6;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./deploy-data/deploy-data-bnbMainnet.json.cjs"),i=require("./deploy-data/deploy-data-arbMainnet.json.cjs"),p=require("./deploy-data/deploy-data-ethMainnet.json.cjs"),l=require("./deploy-data/deploy-data-optimism.json.cjs"),d=require("./deploy-data/deploy-data-polygon.json.cjs"),h=require("./deploy-data/deploy-data-avalanche.json.cjs"),u=require("./deploy-data/deploy-data-base.json.cjs"),m=require("./deploy-data/deploy-data-localhost.json.cjs"),b=require("./deploy-data/deploy-data-axelar1.json.cjs"),y=require("./deploy-data/deploy-data-axelar2.json.cjs"),n=require("./vite.constants.cjs"),t={polygon:137,arbMainnet:42161,ethMainnet:1,avalanche:43114,bnbMainnet:56,optimism:10,base:8453,bnbTestnet:97,polygonMumbai:80001,mainnetSepolia:11155111,optimismSepolia:11155420,axelar1:2500,axelar2:2501,localhost:31337,hardhat:31337},r=t.ethMainnet,o=e=>!![t.axelar1,t.axelar2,t.localhost].includes(e),A=e=>e?o(e)?r:e:r,a={[t.ethMainnet]:{name:"Ethereum",chainId:t.ethMainnet,rpcUrl:"https://rpc.ankr.com/eth",fetchRpcUrl:"https://eth-mainnet.g.alchemy.com/v2/XzUgeU8YiIIzkD7j2GWnTsFUck7wGgK9",supported:!0,contractData:p.default,quoterV2Address:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",uniswapV3FactoryAddress:"0x1F98431c8aD98523631AE4a59f267346ea31F984",priority:1,privateMempoolRpcUrl:"https://relay.flashbots.net"},[t.arbMainnet]:{name:"Arbitrum",chainId:t.arbMainnet,rpcUrl:"https://endpoints.omniatech.io/v1/arbitrum/one/public",fetchRpcUrl:"https://arb-mainnet.g.alchemy.com/v2/XzUgeU8YiIIzkD7j2GWnTsFUck7wGgK9",supported:!0,contractData:i.default,quoterV2Address:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",uniswapV3FactoryAddress:"0x1F98431c8aD98523631AE4a59f267346ea31F984",priority:2},[t.optimism]:{name:"Optimism",chainId:t.optimism,rpcUrl:"https://optimism-mainnet.infura.io/v3/c26b99456bb6464bb498926ff5162903",fetchRpcUrl:"https://opt-mainnet.g.alchemy.com/v2/XzUgeU8YiIIzkD7j2GWnTsFUck7wGgK9",supported:!0,contractData:l.default,quoterV2Address:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",uniswapV3FactoryAddress:"0x1F98431c8aD98523631AE4a59f267346ea31F984",priority:3},[t.polygon]:{name:"Polygon",chainId:t.polygon,rpcUrl:"https://polygon-rpc.com",fetchRpcUrl:"https://polygon-mainnet.g.alchemy.com/v2/XzUgeU8YiIIzkD7j2GWnTsFUck7wGgK9",supported:!0,contractData:d.default,quoterV2Address:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",uniswapV3FactoryAddress:"0x1F98431c8aD98523631AE4a59f267346ea31F984",priority:4},[t.avalanche]:{name:"Avalanche",chainId:t.avalanche,rpcUrl:"https://api.avax.network/ext/bc/C/rpc",fetchRpcUrl:"https://avax-mainnet.g.alchemy.com/v2/XzUgeU8YiIIzkD7j2GWnTsFUck7wGgK9",supported:!0,contractData:h.default,quoterV2Address:"0xbe0F5544EC67e9B3b2D979aaA43f18Fd87E6257F",uniswapV3FactoryAddress:"0x740b1c1de25031C31FF4fC9A62f554A55cdC1baD",priority:5},[t.bnbMainnet]:{name:"BNB Chain",chainId:t.bnbMainnet,rpcUrl:"https://bsc-dataseed.binance.org",fetchRpcUrl:"https://bnb-mainnet.g.alchemy.com/v2/XzUgeU8YiIIzkD7j2GWnTsFUck7wGgK9",supported:!0,contractData:c.default,quoterV2Address:"0x78D78E420Da98ad378D7799bE8f4AF69033EB077",uniswapV3FactoryAddress:"0xdB1d10011AD0Ff90774D0C6Bb92e5C5c8b4461F7",priority:6},[t.base]:{name:"Base",chainId:t.base,rpcUrl:"https://mainnet.base.org/",fetchRpcUrl:"https://base-mainnet.g.alchemy.com/v2/XzUgeU8YiIIzkD7j2GWnTsFUck7wGgK9",supported:!0,contractData:u.default,quoterV2Address:"0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",uniswapV3FactoryAddress:"0x33128a8fC17869897dcE68Ed026d694621f6FDfD",priority:7},...n.isDevelopment?{}:{}},F={name:"Localhost",chainId:t.localhost,rpcUrl:"http://127.0.0.1:8545",fetchRpcUrl:"http://127.0.0.1:8545",supported:!0,contractData:m.default,quoterV2Address:a[r].quoterV2Address,uniswapV3FactoryAddress:a[r].uniswapV3FactoryAddress,priority:7},D={name:"axelar1",chainId:t.axelar1,rpcUrl:"http://localhost:8600/0",fetchRpcUrl:"http://localhost:8600/0",supported:!0,contractData:b.default,quoterV2Address:a[r].quoterV2Address,uniswapV3FactoryAddress:a[r].uniswapV3FactoryAddress,priority:8},f={name:"axelar2",chainId:t.axelar2,rpcUrl:"http://localhost:8600/1",fetchRpcUrl:"http://localhost:8600/1",supported:!0,contractData:y.default,quoterV2Address:a[r].quoterV2Address,uniswapV3FactoryAddress:a[r].uniswapV3FactoryAddress,priority:9};n.isDevelopment&&(a[t.localhost]=F,a[t.axelar1]=D,a[t.axelar2]=f);const U=[t.ethMainnet,t.arbMainnet,t.avalanche,t.bnbMainnet,t.polygon,t.optimism,t.base];var s=(e=>(e.Mainnet="Mainnet",e.Testnet="Testnet",e.Local="Local",e))(s||{});const g={Mainnet:[t.polygon,t.arbMainnet,t.ethMainnet,t.bnbMainnet,t.optimism,t.avalanche,t.base],Testnet:[t.bnbTestnet,t.polygonMumbai],Local:[t.localhost,t.axelar1,t.axelar2]},I=e=>[t.optimism,t.base].includes(e),x=t.ethMainnet,w=[t.ethMainnet,t.optimism,t.base,t.polygon,t.arbMainnet,t.avalanche];exports.EthereumNetworkType=s;exports.WALLET_INITIAL_CHAIN_ID=x;exports.WALLET_SUPPORTED_CHAINS=w;exports.chainIds=t;exports.chainIdsByType=g;exports.crossChainAccessTokenNetworks=U;exports.getNonLocalhostChainId=A;exports.isLocalNetwork=o;exports.isOptimismLike=I;exports.localhostNetwork=r;exports.networkRegistry=a;
|
|
@@ -31,6 +31,6 @@ export declare const chainIdsByType: {
|
|
|
31
31
|
Testnet: number[];
|
|
32
32
|
Local: number[];
|
|
33
33
|
};
|
|
34
|
-
export declare const isOptimismEcotoneLike: (chainId: number) => boolean;
|
|
35
|
-
export declare const isOptimismBedrockLike: (_chainId: number) => boolean;
|
|
36
34
|
export declare const isOptimismLike: (chainId: number) => boolean;
|
|
35
|
+
export declare const WALLET_INITIAL_CHAIN_ID: number;
|
|
36
|
+
export declare const WALLET_SUPPORTED_CHAINS: number[];
|
|
@@ -8,7 +8,7 @@ import d from "./deploy-data/deploy-data-base.json.mjs";
|
|
|
8
8
|
import m from "./deploy-data/deploy-data-localhost.json.mjs";
|
|
9
9
|
import h from "./deploy-data/deploy-data-axelar1.json.mjs";
|
|
10
10
|
import b from "./deploy-data/deploy-data-axelar2.json.mjs";
|
|
11
|
-
import { isDevelopment as
|
|
11
|
+
import { isDevelopment as n } from "./vite.constants.mjs";
|
|
12
12
|
const t = {
|
|
13
13
|
polygon: 137,
|
|
14
14
|
arbMainnet: 42161,
|
|
@@ -25,7 +25,7 @@ const t = {
|
|
|
25
25
|
axelar2: 2501,
|
|
26
26
|
localhost: 31337,
|
|
27
27
|
hardhat: 31337
|
|
28
|
-
},
|
|
28
|
+
}, r = t.ethMainnet, u = (a) => !![t.axelar1, t.axelar2, t.localhost].includes(a), B = (a) => a ? u(a) ? r : a : r, e = {
|
|
29
29
|
[t.ethMainnet]: {
|
|
30
30
|
name: "Ethereum",
|
|
31
31
|
chainId: t.ethMainnet,
|
|
@@ -35,7 +35,6 @@ const t = {
|
|
|
35
35
|
contractData: c,
|
|
36
36
|
quoterV2Address: "0x61fFE014bA17989E743c5F6cB21bF9697530B21e",
|
|
37
37
|
uniswapV3FactoryAddress: "0x1F98431c8aD98523631AE4a59f267346ea31F984",
|
|
38
|
-
accessTokenMintingFee: "0",
|
|
39
38
|
priority: 1,
|
|
40
39
|
privateMempoolRpcUrl: "https://relay.flashbots.net"
|
|
41
40
|
},
|
|
@@ -48,7 +47,6 @@ const t = {
|
|
|
48
47
|
contractData: s,
|
|
49
48
|
quoterV2Address: "0x61fFE014bA17989E743c5F6cB21bF9697530B21e",
|
|
50
49
|
uniswapV3FactoryAddress: "0x1F98431c8aD98523631AE4a59f267346ea31F984",
|
|
51
|
-
accessTokenMintingFee: "0",
|
|
52
50
|
priority: 2
|
|
53
51
|
},
|
|
54
52
|
[t.optimism]: {
|
|
@@ -60,7 +58,6 @@ const t = {
|
|
|
60
58
|
contractData: i,
|
|
61
59
|
quoterV2Address: "0x61fFE014bA17989E743c5F6cB21bF9697530B21e",
|
|
62
60
|
uniswapV3FactoryAddress: "0x1F98431c8aD98523631AE4a59f267346ea31F984",
|
|
63
|
-
accessTokenMintingFee: "0",
|
|
64
61
|
priority: 3
|
|
65
62
|
},
|
|
66
63
|
[t.polygon]: {
|
|
@@ -72,7 +69,6 @@ const t = {
|
|
|
72
69
|
contractData: p,
|
|
73
70
|
quoterV2Address: "0x61fFE014bA17989E743c5F6cB21bF9697530B21e",
|
|
74
71
|
uniswapV3FactoryAddress: "0x1F98431c8aD98523631AE4a59f267346ea31F984",
|
|
75
|
-
accessTokenMintingFee: "0",
|
|
76
72
|
priority: 4
|
|
77
73
|
},
|
|
78
74
|
[t.avalanche]: {
|
|
@@ -84,7 +80,6 @@ const t = {
|
|
|
84
80
|
contractData: l,
|
|
85
81
|
quoterV2Address: "0xbe0F5544EC67e9B3b2D979aaA43f18Fd87E6257F",
|
|
86
82
|
uniswapV3FactoryAddress: "0x740b1c1de25031C31FF4fC9A62f554A55cdC1baD",
|
|
87
|
-
accessTokenMintingFee: "0",
|
|
88
83
|
priority: 5
|
|
89
84
|
},
|
|
90
85
|
[t.bnbMainnet]: {
|
|
@@ -97,7 +92,6 @@ const t = {
|
|
|
97
92
|
contractData: o,
|
|
98
93
|
quoterV2Address: "0x78D78E420Da98ad378D7799bE8f4AF69033EB077",
|
|
99
94
|
uniswapV3FactoryAddress: "0xdB1d10011AD0Ff90774D0C6Bb92e5C5c8b4461F7",
|
|
100
|
-
accessTokenMintingFee: "0",
|
|
101
95
|
priority: 6
|
|
102
96
|
},
|
|
103
97
|
[t.base]: {
|
|
@@ -110,31 +104,28 @@ const t = {
|
|
|
110
104
|
contractData: d,
|
|
111
105
|
quoterV2Address: "0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",
|
|
112
106
|
uniswapV3FactoryAddress: "0x33128a8fC17869897dcE68Ed026d694621f6FDfD",
|
|
113
|
-
accessTokenMintingFee: "0",
|
|
114
107
|
priority: 7
|
|
115
108
|
},
|
|
116
|
-
...
|
|
117
|
-
},
|
|
109
|
+
...n ? {} : {}
|
|
110
|
+
}, F = {
|
|
118
111
|
name: "Localhost",
|
|
119
112
|
chainId: t.localhost,
|
|
120
|
-
rpcUrl: "http://
|
|
121
|
-
fetchRpcUrl: "http://
|
|
113
|
+
rpcUrl: "http://127.0.0.1:8545",
|
|
114
|
+
fetchRpcUrl: "http://127.0.0.1:8545",
|
|
122
115
|
supported: !0,
|
|
123
116
|
contractData: m,
|
|
124
|
-
quoterV2Address: e[
|
|
125
|
-
uniswapV3FactoryAddress: e[
|
|
126
|
-
accessTokenMintingFee: e[n].accessTokenMintingFee,
|
|
117
|
+
quoterV2Address: e[r].quoterV2Address,
|
|
118
|
+
uniswapV3FactoryAddress: e[r].uniswapV3FactoryAddress,
|
|
127
119
|
priority: 7
|
|
128
|
-
},
|
|
120
|
+
}, A = {
|
|
129
121
|
name: "axelar1",
|
|
130
122
|
chainId: t.axelar1,
|
|
131
123
|
rpcUrl: "http://localhost:8600/0",
|
|
132
124
|
fetchRpcUrl: "http://localhost:8600/0",
|
|
133
125
|
supported: !0,
|
|
134
126
|
contractData: h,
|
|
135
|
-
quoterV2Address: e[
|
|
136
|
-
uniswapV3FactoryAddress: e[
|
|
137
|
-
accessTokenMintingFee: e[n].accessTokenMintingFee,
|
|
127
|
+
quoterV2Address: e[r].quoterV2Address,
|
|
128
|
+
uniswapV3FactoryAddress: e[r].uniswapV3FactoryAddress,
|
|
138
129
|
priority: 8
|
|
139
130
|
}, f = {
|
|
140
131
|
name: "axelar2",
|
|
@@ -143,13 +134,12 @@ const t = {
|
|
|
143
134
|
fetchRpcUrl: "http://localhost:8600/1",
|
|
144
135
|
supported: !0,
|
|
145
136
|
contractData: b,
|
|
146
|
-
quoterV2Address: e[
|
|
147
|
-
uniswapV3FactoryAddress: e[
|
|
148
|
-
accessTokenMintingFee: e[n].accessTokenMintingFee,
|
|
137
|
+
quoterV2Address: e[r].quoterV2Address,
|
|
138
|
+
uniswapV3FactoryAddress: e[r].uniswapV3FactoryAddress,
|
|
149
139
|
priority: 9
|
|
150
140
|
};
|
|
151
|
-
|
|
152
|
-
const
|
|
141
|
+
n && (e[t.localhost] = F, e[t.axelar1] = A, e[t.axelar2] = f);
|
|
142
|
+
const T = [
|
|
153
143
|
t.ethMainnet,
|
|
154
144
|
t.arbMainnet,
|
|
155
145
|
t.avalanche,
|
|
@@ -159,7 +149,7 @@ const G = [
|
|
|
159
149
|
t.base
|
|
160
150
|
];
|
|
161
151
|
var y = /* @__PURE__ */ ((a) => (a.Mainnet = "Mainnet", a.Testnet = "Testnet", a.Local = "Local", a))(y || {});
|
|
162
|
-
const
|
|
152
|
+
const C = {
|
|
163
153
|
Mainnet: [
|
|
164
154
|
t.polygon,
|
|
165
155
|
t.arbMainnet,
|
|
@@ -171,17 +161,24 @@ const q = {
|
|
|
171
161
|
],
|
|
172
162
|
Testnet: [t.bnbTestnet, t.polygonMumbai],
|
|
173
163
|
Local: [t.localhost, t.axelar1, t.axelar2]
|
|
174
|
-
},
|
|
164
|
+
}, z = (a) => [t.optimism, t.base].includes(a), G = t.ethMainnet, q = [
|
|
165
|
+
t.ethMainnet,
|
|
166
|
+
t.optimism,
|
|
167
|
+
t.base,
|
|
168
|
+
t.polygon,
|
|
169
|
+
t.arbMainnet,
|
|
170
|
+
t.avalanche
|
|
171
|
+
];
|
|
175
172
|
export {
|
|
176
173
|
y as EthereumNetworkType,
|
|
174
|
+
G as WALLET_INITIAL_CHAIN_ID,
|
|
175
|
+
q as WALLET_SUPPORTED_CHAINS,
|
|
177
176
|
t as chainIds,
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
C as isOptimismLike,
|
|
185
|
-
n as localhostNetwork,
|
|
177
|
+
C as chainIdsByType,
|
|
178
|
+
T as crossChainAccessTokenNetworks,
|
|
179
|
+
B as getNonLocalhostChainId,
|
|
180
|
+
u as isLocalNetwork,
|
|
181
|
+
z as isOptimismLike,
|
|
182
|
+
r as localhostNetwork,
|
|
186
183
|
e as networkRegistry
|
|
187
184
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("ethers"),y=require("../externalABIs/BeefyVaultAbi.json.cjs"),T=require("../externalABIs/CurveReadingWrapperAbi.json.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("ethers"),y=require("../externalABIs/BeefyVaultAbi.json.cjs"),T=require("../externalABIs/CurveReadingWrapperAbi.json.cjs"),f=require("../externalABIs/CurveWrappedMainPool.json.cjs"),k=require("../externalABIs/ERC20.json.cjs"),v=require("../externalABIs/IQuoterV2.json.cjs"),I=require("../externalABIs/IUniswapV3Factory.json.cjs"),w=require("../externalABIs/LidoStEthAbi.json.cjs"),x=require("../externalABIs/LidoStMaticAbi.json.cjs"),h=require("../externalABIs/LidoWithdrawalQueueERC721Abi.json.cjs"),m=require("../externalABIs/PoLidoNftAbi.json.cjs"),B=require("../externalABIs/LidoWstEthAbi.json.cjs"),P=require("../externalABIs/LidoStakeManagerAbi.json.cjs"),W=require("../externalABIs/BeefyRouterAbi.json.cjs"),S=require("../externalABIs/BeefyStrategyAbi.json.cjs"),L=require("../externalABIs/BeefyZapAbi.json.cjs"),E=require("../externalABIs/BeefyZapOneInchAbi.json.cjs"),g=require("../externalABIs/ConvexBoosterAbi.json.cjs"),q=require("../externalABIs/ConvexBoosterAbiMainnet.json.cjs"),V=require("../externalABIs/ConvexRewardPoolAbi.json.cjs"),_=require("../externalABIs/CurveZap.json.cjs"),H=require("../externalABIs/CvxCrvUtilities.json.cjs"),M=require("../externalABIs/PendleRouterAbi.json.cjs"),R=require("../externalABIs/IUniswapV3Pool.json.cjs"),N=require("../externalABIs/UniswapV2PoolAbi.json.cjs"),s=require("./chains.constants.cjs"),t=require("../types/ethereum-network.types.cjs"),a=require("./lido.constants.cjs"),c={abi:I.default.abi},l={abi:R.default.abi},u={abi:N.default.abi},d={abi:v.default.abi},O=new n.ethers.utils.Interface(["function coins(int128 arg0) external view returns (address)"]),U=new n.ethers.utils.Interface(["function balances(int128 arg0) external view returns (uint256)"]),r=e=>new n.ethers.utils.Interface([`function calc_token_amount(uint256[${e||""}] _amounts, bool is_deposit) external view returns (uint256)`,"function coins(uint256 arg0) external view returns (address)","function calc_withdraw_one_coin(uint256 token_amount, uint256 i) external view returns (uint256)","function fee() external view returns (uint256)"]),o=e=>new n.ethers.utils.Interface([`function calc_token_amount(uint256[${e}] _amounts) external view returns (uint256)`,"function coins(uint256 arg0) external view returns (address)","function calc_withdraw_one_coin(uint256 token_amount, uint256 i) external view returns (uint256)","function fee() external view returns (uint256)"]),F=new n.ethers.utils.Interface(["function claimable_tokens(address addr) external view returns (uint256)"]),Q=new n.ethers.utils.Interface(["function lockedSupply() external view returns (uint256)"]),Z=new n.ethers.utils.Interface(["function checkpoint(uint256 lpBalance, uint256 prevTimeStamp, uint256 currentTimeStamp) external returns (uint256, uint256[] memory)","function claimable(uint256 lpBalance, uint256 prevTimeStamp) external returns (uint256, uint256[] memory)"]),G={[t.ContractType.HinkalContract]:e=>({abi:e.hinkalABI,address:e.hinkalAddress}),[t.ContractType.HinkalHelperContract]:e=>({abi:e.hinkalHelperABI,address:e.hinkalHelperAddress}),[t.ContractType.AccessTokenContract]:e=>({abi:e.accessTokenABI,address:e.accessTokenAddress}),[t.ContractType.MerkleTreeContract]:()=>({abi:new n.ethers.utils.Interface(["function getRootHash() public view returns (uint256)"])}),[t.ContractType.UniswapV3FactoryContract]:()=>({abi:c.abi}),[t.ContractType.UniswapV3PoolContract]:()=>({abi:l.abi}),[t.ContractType.UniswapV2PoolContract]:()=>({abi:u.abi}),[t.ContractType.UniswapV3QuoterContract]:()=>({abi:d.abi}),[t.ContractType.ERC20Contract]:()=>({abi:k.default.abi}),[t.ContractType.WATokenContract]:e=>({abi:e.waTokenABI}),[t.ContractType.ContractWithNonces]:()=>({abi:new n.ethers.utils.Interface(["function nonces(address owner) external view returns (uint)"])}),[t.ContractType.PermitterContract]:e=>({abi:e.permitterABI,address:e.permitterAddress}),[t.ContractType.CurveExternalAction]:e=>({address:e.curveExternalActionInstanceAddress,abi:e.curveExternalActionABI}),[t.ContractType.WrappedStakedCurveLp]:e=>({abi:e.wrappedStakedCurveLpABI}),[t.ContractType.WrappedStakedRewardsCurveLp]:()=>({abi:Z}),[t.ContractType.CurveWrappedMainPool]:()=>({abi:f.default.abi}),[t.ContractType.CurveReadingWrapper]:()=>({abi:T.default.abi}),[t.ContractType.CurvePoolLPTokenAmountCalculator2]:()=>({abi:r(2)}),[t.ContractType.CurvePoolLPTokenAmountCalculator3]:()=>({abi:r(3)}),[t.ContractType.CurvePoolLPTokenAmountCalculator4]:()=>({abi:r(4)}),[t.ContractType.CurvePoolLPTokenAmountCalculatorDynamic]:()=>({abi:r()}),[t.ContractType.CurvePoolLPTokenAmountCalculator2OneArg]:()=>({abi:o(2)}),[t.ContractType.CurvePoolLPTokenAmountCalculator3OneArg]:()=>({abi:o(3)}),[t.ContractType.CurvePoolLPTokenAmountCalculator4OneArg]:()=>({abi:o(4)}),[t.ContractType.CurvePoolWithIntCoins]:()=>({abi:O}),[t.ContractType.CurvePoolWithIntBalances]:()=>({abi:U}),[t.ContractType.OneInchExternalActionContract]:e=>({address:e.oneInchExternalActionInstanceAddress}),[t.ContractType.CurveGauge]:()=>({abi:F}),[t.ContractType.CurveZaps]:()=>({abi:_.default.abi}),[t.ContractType.ConvexExternalAction]:e=>({address:e.convexExternalActionInstanceAddress,abi:e.convexExternalActionABI}),[t.ContractType.WrappedStakedConvexLp]:e=>({abi:e.wrappedStakedConvexLpABI}),[t.ContractType.ConvexBooster]:()=>({abi:g.default.abi}),[t.ContractType.ConvexBoosterMainnet]:()=>({abi:q.default.abi}),[t.ContractType.ConvexRewardPool]:()=>({abi:V.default.abi}),[t.ContractType.ConvexCvxLocker]:()=>({abi:Q}),[t.ContractType.ConvexStakePool]:()=>({abi:new n.ethers.utils.Interface(["function totalSupply() external view returns (uint256)"])}),[t.ContractType.ConvexCvxCRVWrapper]:()=>({abi:new n.ethers.utils.Interface(["function totalSupply() external view returns (uint256)"])}),[t.ContractType.ConvexCxvCrvUtillities]:()=>({abi:H.default.abi}),[t.ContractType.BeefyVault]:()=>({abi:y.default.abi}),[t.ContractType.BeefyZap]:()=>({abi:L.default.abi}),[t.ContractType.BeefyRouter]:()=>({abi:W.default.abi}),[t.ContractType.BeefyZapOneInch]:()=>({abi:E.default.abi}),[t.ContractType.BeefyStrategy]:()=>({abi:S.default.abi}),[t.ContractType.BeefyExternalAction]:e=>({abi:e.BeefyExternalActionABI,address:e.beefyExternalActionInstanceAddress}),[t.ContractType.BeefyStakeExternalAction]:e=>({abi:e.BeefyStakeExternalActionABI,address:e.beefyStakeExternalActionInstanceAddress}),[t.ContractType.WrappedStakedBeefyLp]:e=>({abi:e.WrappedStakedBeefyLpABI}),[t.ContractType.LidoWstEther]:()=>({abi:B,address:a.lidoWstEthContractAddress}),[t.ContractType.LidoStEther]:()=>({abi:w,address:a.lidoStEthContractAddress}),[t.ContractType.LidoWithdrawalQueueERC721]:()=>({abi:h,address:a.lidoWithdrawalQueueERC721Address}),[t.ContractType.PendleGeneralExternalAction]:e=>({abi:e.pendleExternalActionABI,address:e.pendleExternalActionInstanceAddress}),[t.ContractType.WstYtToken]:e=>({abi:e.WstYtTokenABI}),[t.ContractType.WstPendleLPToken]:e=>({abi:e.WstPendleLPABI}),[t.ContractType.PendleRouter]:e=>({abi:M.default.abi,address:e.pendleExternalActionInstanceAddress}),[t.ContractType.PoLidoNFT]:()=>({abi:m,address:a.poLidoNftAddress}),[t.ContractType.LidoStMatic]:()=>({abi:x,address:a.lidoStMaticAddress}),[t.ContractType.LidoStakeManager]:()=>({abi:P,address:a.lidoStakeManagerAddress}),[t.ContractType.VolatileVault]:e=>({abi:e.VolatileVaultABI,address:e.volatileVaultInstanceAddress}),[t.ContractType.VolatileTokenAction]:e=>({abi:e.VolatileTokenActionABI,address:e.volatileTokenActionInstanceAddress}),[t.ContractType.HinkalWrapper]:e=>({abi:e.HinkalWrapperABI,address:e.hinkalWrapperAddress}),[t.ContractType.HinkalWrapper2]:e=>({abi:e.HinkalWrapper2ABI??e.HinkalWrapperABI,address:e.hinkalWrapper2Address??e.hinkalWrapperAddress}),[t.ContractType.HinkalStakeExternalAction]:e=>({abi:e.HinkalStakeExternalActionABI,address:e.hinkalStakeExternalActionAddress}),[t.ContractType.HToken]:e=>({abi:e.HTokenABI}),[t.ContractType.HinkalWalletFactory]:e=>({abi:e.hinkalWalletFactoryABI,address:e.hinkalWalletFactoryAddress})},Y=e=>{const{contractData:p}=s.networkRegistry[s.getNonLocalhostChainId(e)],C=JSON.stringify(p.hinkalABI),i=new n.utils.Interface(C),b=i.getSighash("transact"),A=i.getSighash("transactWithExternalAction");return{hinkalInterface:i,transactMethodId:b,transactWithExternalActionMethodId:A,NewCommitment:"NewCommitment",NewCommitmentTopic:"0xc2e3bd2d00c3cf4d09298e5a0cfd317cf7a6e5bf15d467cfa805a91e1a4a221d"}};exports.contractMetadataMapping=G;exports.getHinkalParameters=Y;exports.uniswapV2PoolData=u;exports.uniswapV3FactoryData=c;exports.uniswapV3PoolData=l;exports.uniswapV3QuoterData=d;
|