@hinkal/common 0.2.30 → 0.2.32
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 +26 -11
- package/API/API.mjs +103 -88
- package/API/callMonitor.cjs +1 -1
- package/API/callMonitor.d.ts +8 -0
- package/API/callMonitor.mjs +2 -2
- package/API/callRelayer.d.ts +4 -1
- package/API/dashboardAccountCalls.cjs +1 -0
- package/API/dashboardAccountCalls.d.ts +24 -0
- package/API/dashboardAccountCalls.mjs +10 -0
- package/API/dashboardAccountMemberCalls.cjs +1 -0
- package/API/dashboardAccountMemberCalls.d.ts +34 -0
- package/API/dashboardAccountMemberCalls.mjs +16 -0
- package/API/dashboardBalanceCalls.cjs +1 -0
- package/API/dashboardBalanceCalls.d.ts +12 -0
- package/API/dashboardBalanceCalls.mjs +13 -0
- package/API/dashboardContactCalls.cjs +1 -0
- package/API/dashboardContactCalls.d.ts +9 -0
- package/API/dashboardContactCalls.mjs +13 -0
- package/API/dashboardPayoutCalls.cjs +1 -0
- package/API/dashboardPayoutCalls.d.ts +14 -0
- package/API/dashboardPayoutCalls.mjs +13 -0
- package/API/dashboardTransactionCalls.cjs +1 -0
- package/API/dashboardTransactionCalls.d.ts +3 -0
- package/API/dashboardTransactionCalls.mjs +10 -0
- package/API/enclaveRecipientInfoCalls.cjs +1 -0
- package/API/enclaveRecipientInfoCalls.d.ts +14 -0
- package/API/enclaveRecipientInfoCalls.mjs +7 -0
- package/API/enclaveSignatureCalls.cjs +1 -1
- package/API/enclaveSignatureCalls.d.ts +3 -8
- package/API/enclaveSignatureCalls.mjs +6 -8
- package/API/enclaveUtxoCalls.cjs +1 -1
- package/API/enclaveUtxoCalls.d.ts +8 -2
- package/API/enclaveUtxoCalls.mjs +5 -3
- package/API/fetchCommitmentsCache.cjs +1 -1
- package/API/fetchCommitmentsCache.d.ts +1 -19
- package/API/fetchCommitmentsCache.mjs +9 -22
- package/API/getAnyRecipientInfo.d.ts +1 -0
- package/API/getServerURL.cjs +1 -1
- package/API/getServerURL.d.ts +3 -0
- package/API/getServerURL.mjs +15 -32
- package/API/getWebsiteURL.cjs +1 -1
- package/API/getWebsiteURL.d.ts +3 -2
- package/API/getWebsiteURL.mjs +12 -5
- package/API/index.cjs +1 -1
- package/API/index.d.ts +2 -0
- package/API/index.mjs +2 -0
- package/API/kycCalls.cjs +1 -1
- package/API/kycCalls.d.ts +0 -5
- package/API/kycCalls.mjs +3 -10
- package/API/privateSendRecipientInfoCalls.cjs +1 -1
- package/API/privateSendRecipientInfoCalls.d.ts +0 -10
- package/API/privateSendRecipientInfoCalls.mjs +2 -2
- package/API/scheduled-transactions-calls.cjs +1 -1
- package/API/scheduled-transactions-calls.d.ts +8 -2
- package/API/scheduled-transactions-calls.mjs +5 -4
- package/API/tenderly.api.cjs +1 -1
- package/API/tenderly.api.d.ts +1 -1
- package/API/tenderly.api.mjs +1 -1
- package/constants/addresses.constants.cjs +1 -1
- package/constants/addresses.constants.d.ts +10 -7
- package/constants/addresses.constants.mjs +11 -8
- package/constants/assets.constants.cjs +1 -1
- package/constants/assets.constants.mjs +1 -1
- package/constants/auth.constants.cjs +1 -0
- package/constants/auth.constants.d.ts +2 -0
- package/constants/auth.constants.mjs +4 -0
- package/constants/backend.constants.cjs +1 -1
- package/constants/backend.constants.d.ts +0 -1
- package/constants/backend.constants.mjs +0 -1
- package/constants/bridging.constants.cjs +1 -1
- package/constants/bridging.constants.d.ts +2 -0
- package/constants/bridging.constants.mjs +7 -3
- package/constants/chains.constants.cjs +1 -1
- package/constants/chains.constants.d.ts +25 -8
- package/constants/chains.constants.mjs +168 -127
- package/constants/coingecko.constants.cjs +1 -1
- package/constants/coingecko.constants.d.ts +5 -3
- package/constants/coingecko.constants.mjs +8 -5
- package/constants/contracts.constants.cjs +1 -1
- package/constants/contracts.constants.mjs +0 -4
- package/constants/deploy-data/deploy-data-arbMainnet.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-arbMainnet.json.mjs +125 -850
- package/constants/deploy-data/deploy-data-arcTestnet.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-arcTestnet.json.mjs +97 -1013
- package/constants/deploy-data/deploy-data-base.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-base.json.mjs +132 -869
- package/constants/deploy-data/deploy-data-ethMainnet.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-ethMainnet.json.mjs +132 -871
- package/constants/deploy-data/deploy-data-localhost.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-localhost.json.mjs +6 -808
- package/constants/deploy-data/deploy-data-optimism.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-optimism.json.mjs +132 -869
- package/constants/deploy-data/deploy-data-optimismTest.json.cjs +1 -0
- package/constants/deploy-data/deploy-data-optimismTest.json.mjs +3565 -0
- package/constants/deploy-data/deploy-data-polygon.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-polygon.json.mjs +132 -869
- package/constants/deploy-data/deploy-data-sepoliaTestnet.json.cjs +1 -0
- package/constants/deploy-data/deploy-data-sepoliaTestnet.json.mjs +3561 -0
- package/constants/deploy-data/deploy-data-solana.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-solana.json.mjs +1 -1
- package/constants/deploy-data/deploy-data-tempo.json.cjs +1 -0
- package/constants/deploy-data/deploy-data-tempo.json.mjs +3563 -0
- package/constants/deploy-data/deploy-data-tronMainnet.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-tronMainnet.json.mjs +133 -870
- package/constants/deploy-data/deploy-data-tronNile.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-tronNile.json.mjs +133 -870
- package/constants/deploy-data/index.d.ts +4 -1
- package/constants/events.constants.cjs +1 -1
- package/constants/events.constants.mjs +4 -1
- package/constants/fees.constants.cjs +1 -1
- package/constants/fees.constants.d.ts +5 -1
- package/constants/fees.constants.mjs +9 -5
- package/constants/index.cjs +1 -1
- package/constants/index.d.ts +2 -1
- package/constants/index.mjs +6 -2
- package/constants/kyc.constants.cjs +1 -1
- package/constants/kyc.constants.d.ts +1 -1
- package/constants/kyc.constants.mjs +38 -37
- package/constants/lifi.constants.cjs +1 -1
- package/constants/lifi.constants.d.ts +2 -0
- package/constants/lifi.constants.mjs +7 -2
- package/constants/mediaUrls.constants.cjs +1 -1
- package/constants/mediaUrls.constants.d.ts +7 -1
- package/constants/mediaUrls.constants.mjs +9 -3
- package/constants/price-impact.constants.cjs +1 -0
- package/constants/price-impact.constants.d.ts +2 -0
- package/constants/price-impact.constants.mjs +4 -0
- package/constants/protocol.constants.cjs +1 -1
- package/constants/protocol.constants.d.ts +4 -1
- package/constants/protocol.constants.mjs +2 -2
- package/constants/reorg-depths.constants.cjs +1 -1
- package/constants/reorg-depths.constants.d.ts +3 -1
- package/constants/reorg-depths.constants.mjs +3 -1
- package/constants/save-depths.cjs +1 -1
- package/constants/save-depths.d.ts +3 -1
- package/constants/save-depths.mjs +3 -1
- package/constants/server.constants.cjs +1 -1
- package/constants/server.constants.d.ts +33 -8
- package/constants/server.constants.mjs +44 -24
- package/constants/token-data/ERC20Registry.cjs +1 -1
- package/constants/token-data/ERC20Registry.mjs +20 -9
- package/constants/token-data/arbMainnetRegistry.json.cjs +1 -1
- package/constants/token-data/arbMainnetRegistry.json.mjs +24 -24
- package/constants/token-data/arbMainnetRegistryFixed.json.cjs +1 -1
- package/constants/token-data/arbMainnetRegistryFixed.json.mjs +24 -24
- package/constants/token-data/arcTestnetRegistry.json.cjs +1 -1
- package/constants/token-data/arcTestnetRegistry.json.mjs +3 -3
- package/constants/token-data/baseRegistry.json.cjs +1 -1
- package/constants/token-data/baseRegistry.json.mjs +20 -12
- package/constants/token-data/baseRegistryFixed.json.cjs +1 -1
- package/constants/token-data/baseRegistryFixed.json.mjs +18 -10
- package/constants/token-data/ethMainnetRegistry.json.cjs +1 -1
- package/constants/token-data/ethMainnetRegistry.json.mjs +38 -38
- package/constants/token-data/ethMainnetRegistryFixed.json.cjs +1 -1
- package/constants/token-data/ethMainnetRegistryFixed.json.mjs +38 -38
- package/constants/token-data/localhostRegistry.json.cjs +1 -1
- package/constants/token-data/localhostRegistry.json.mjs +211 -211
- package/constants/token-data/optimismRegistry.json.cjs +1 -1
- package/constants/token-data/optimismRegistry.json.mjs +36 -28
- package/constants/token-data/optimismRegistryFixed.json.cjs +1 -1
- package/constants/token-data/optimismRegistryFixed.json.mjs +36 -28
- package/constants/token-data/polygonRegistry.json.cjs +1 -1
- package/constants/token-data/polygonRegistry.json.mjs +34 -26
- package/constants/token-data/polygonRegistryFixed.json.cjs +1 -1
- package/constants/token-data/polygonRegistryFixed.json.mjs +34 -26
- package/constants/token-data/sepoliaTestnetRegistry.json.cjs +1 -0
- package/constants/token-data/sepoliaTestnetRegistry.json.mjs +21 -0
- package/constants/token-data/solanaMainnetRegistry.json.cjs +1 -1
- package/constants/token-data/solanaMainnetRegistry.json.mjs +1 -1
- package/constants/token-data/tempoRegistry.json.cjs +1 -0
- package/constants/token-data/tempoRegistry.json.mjs +37 -0
- package/constants/token-data/tronMainnetRegistry.json.cjs +1 -1
- package/constants/token-data/tronMainnetRegistry.json.mjs +26 -15
- package/constants/token-data/tronNileRegistry.json.cjs +1 -1
- package/constants/token-data/tronNileRegistry.json.mjs +2 -2
- package/constants/tokens.constants.cjs +1 -1
- package/constants/tokens.constants.d.ts +1 -0
- package/constants/tokens.constants.mjs +10 -3
- package/constants/vite.constants.cjs +1 -1
- package/constants/vite.constants.mjs +23 -5
- package/constants/wallet.constants.cjs +1 -1
- package/constants/wallet.constants.d.ts +1 -1
- package/constants/wallet.constants.mjs +2 -18
- package/crypto/babyJub.d.ts +1 -1
- package/crypto/ecdh-dual-path.cjs +1 -0
- package/crypto/ecdh-dual-path.d.ts +13 -0
- package/crypto/ecdh-dual-path.mjs +39 -0
- package/crypto/ecdh-sealed-keys.cjs +1 -0
- package/crypto/ecdh-sealed-keys.d.ts +22 -0
- package/crypto/ecdh-sealed-keys.mjs +33 -0
- package/crypto/ecdh.cjs +1 -0
- package/crypto/ecdh.d.ts +2 -0
- package/crypto/ecdh.mjs +9 -0
- package/crypto/eddsa.cjs +1 -0
- package/crypto/eddsa.d.ts +8 -0
- package/crypto/eddsa.mjs +12 -0
- package/crypto/index.cjs +1 -1
- package/crypto/index.d.ts +4 -0
- package/crypto/index.mjs +4 -0
- package/crypto/preProcessing.cjs +1 -1
- package/crypto/preProcessing.d.ts +1 -1
- package/crypto/preProcessing.mjs +10 -8
- package/data-structures/AccountActions/AccountActions.cjs +1 -1
- package/data-structures/AccountActions/AccountActions.mjs +3 -2
- package/data-structures/ApprovalDBs/EventsPublicApprovalsDB.cjs +1 -1
- package/data-structures/ApprovalDBs/EventsPublicApprovalsDB.mjs +2 -3
- package/data-structures/Hinkal/Hinkal.cjs +1 -1
- package/data-structures/Hinkal/Hinkal.d.ts +16 -21
- package/data-structures/Hinkal/Hinkal.mjs +144 -160
- package/data-structures/Hinkal/IHinkal.d.ts +13 -19
- package/data-structures/Hinkal/handleAutoDepositBack.cjs +1 -1
- package/data-structures/Hinkal/handleAutoDepositBack.mjs +15 -15
- package/data-structures/Hinkal/hinkalClaimUtxo.cjs +1 -1
- package/data-structures/Hinkal/hinkalClaimUtxo.d.ts +1 -2
- package/data-structures/Hinkal/hinkalClaimUtxo.mjs +49 -47
- package/data-structures/Hinkal/hinkalDeposit.cjs +1 -1
- package/data-structures/Hinkal/hinkalDeposit.d.ts +5 -3
- package/data-structures/Hinkal/hinkalDeposit.mjs +106 -50
- package/data-structures/Hinkal/hinkalDepositAndBridge.cjs +1 -1
- package/data-structures/Hinkal/hinkalDepositAndBridge.d.ts +1 -1
- package/data-structures/Hinkal/hinkalDepositAndBridge.mjs +94 -87
- package/data-structures/Hinkal/hinkalDepositAndWithdraw.cjs +1 -1
- package/data-structures/Hinkal/hinkalDepositAndWithdraw.d.ts +3 -2
- package/data-structures/Hinkal/hinkalDepositAndWithdraw.mjs +48 -48
- package/data-structures/Hinkal/hinkalDepositOnChainUtxos.cjs +1 -1
- package/data-structures/Hinkal/hinkalDepositOnChainUtxos.mjs +41 -63
- package/data-structures/Hinkal/hinkalPalEvmDeposit.cjs +1 -0
- package/data-structures/Hinkal/hinkalPalEvmDeposit.d.ts +9 -0
- package/data-structures/Hinkal/hinkalPalEvmDeposit.mjs +19 -0
- package/data-structures/Hinkal/hinkalPalSolanaDepositPrepare.cjs +1 -0
- package/data-structures/Hinkal/hinkalPalSolanaDepositPrepare.d.ts +9 -0
- package/data-structures/Hinkal/hinkalPalSolanaDepositPrepare.mjs +18 -0
- package/data-structures/Hinkal/hinkalPalTronDepositPrepare.cjs +1 -0
- package/data-structures/Hinkal/hinkalPalTronDepositPrepare.d.ts +9 -0
- package/data-structures/Hinkal/hinkalPalTronDepositPrepare.mjs +17 -0
- package/data-structures/Hinkal/hinkalPrivateWallet.cjs +1 -1
- package/data-structures/Hinkal/hinkalPrivateWallet.mjs +46 -50
- package/data-structures/Hinkal/hinkalProoflessDeposit.cjs +1 -1
- package/data-structures/Hinkal/hinkalProoflessDeposit.d.ts +4 -1
- package/data-structures/Hinkal/hinkalProoflessDeposit.mjs +84 -128
- package/data-structures/Hinkal/hinkalProoflessDeposit.utils.cjs +1 -0
- package/data-structures/Hinkal/hinkalProoflessDeposit.utils.d.ts +7 -0
- package/data-structures/Hinkal/hinkalProoflessDeposit.utils.mjs +51 -0
- package/data-structures/Hinkal/hinkalProoflessDepositViaWrapper.cjs +1 -0
- package/data-structures/Hinkal/hinkalProoflessDepositViaWrapper.d.ts +6 -0
- package/data-structures/Hinkal/hinkalProoflessDepositViaWrapper.mjs +128 -0
- package/data-structures/Hinkal/hinkalSolanaClaimUtxo.cjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaClaimUtxo.d.ts +2 -2
- package/data-structures/Hinkal/hinkalSolanaClaimUtxo.mjs +68 -69
- package/data-structures/Hinkal/hinkalSolanaDeposit.cjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaDeposit.d.ts +4 -3
- package/data-structures/Hinkal/hinkalSolanaDeposit.mjs +96 -57
- package/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.cjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.d.ts +20 -2
- package/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.mjs +114 -122
- package/data-structures/Hinkal/hinkalSolanaProoflessDeposit.cjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaProoflessDeposit.d.ts +1 -1
- package/data-structures/Hinkal/hinkalSolanaProoflessDeposit.mjs +12 -17
- package/data-structures/Hinkal/hinkalSolanaProxyShield.cjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaProxyShield.mjs +38 -40
- package/data-structures/Hinkal/hinkalSolanaProxySwap.cjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaProxySwap.d.ts +4 -3
- package/data-structures/Hinkal/hinkalSolanaProxySwap.mjs +68 -52
- package/data-structures/Hinkal/hinkalSolanaSwap.cjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaSwap.d.ts +2 -2
- package/data-structures/Hinkal/hinkalSolanaSwap.mjs +67 -72
- package/data-structures/Hinkal/hinkalSolanaTransfer.cjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaTransfer.d.ts +2 -1
- package/data-structures/Hinkal/hinkalSolanaTransfer.mjs +56 -61
- package/data-structures/Hinkal/hinkalSolanaWithdraw.cjs +1 -1
- package/data-structures/Hinkal/hinkalSolanaWithdraw.mjs +38 -48
- package/data-structures/Hinkal/hinkalSwap.cjs +1 -1
- package/data-structures/Hinkal/hinkalSwap.mjs +32 -42
- package/data-structures/Hinkal/hinkalTransfer.cjs +1 -1
- package/data-structures/Hinkal/hinkalTransfer.mjs +41 -54
- package/data-structures/Hinkal/hinkalWithdraw.cjs +1 -1
- package/data-structures/Hinkal/hinkalWithdraw.mjs +43 -56
- package/data-structures/Hinkal/hinkalWithdrawStuckUtxos.cjs +1 -1
- package/data-structures/Hinkal/hinkalWithdrawStuckUtxos.mjs +87 -108
- package/data-structures/Hinkal/index.cjs +1 -1
- package/data-structures/Hinkal/index.d.ts +5 -0
- package/data-structures/Hinkal/index.mjs +5 -0
- package/data-structures/Hinkal/prepareDepositOnChainUtxosZkProof.cjs +1 -0
- package/data-structures/Hinkal/prepareDepositOnChainUtxosZkProof.d.ts +22 -0
- package/data-structures/Hinkal/prepareDepositOnChainUtxosZkProof.mjs +34 -0
- package/data-structures/Hinkal/resetMerkleTrees.cjs +1 -1
- package/data-structures/Hinkal/resetMerkleTrees.mjs +33 -40
- package/data-structures/IndexedDB/activity-db.cjs +1 -1
- package/data-structures/IndexedDB/activity-db.mjs +25 -24
- package/data-structures/IndexedDB/contact-db.cjs +1 -1
- package/data-structures/IndexedDB/contact-db.d.ts +1 -0
- package/data-structures/IndexedDB/contact-db.mjs +30 -16
- package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.cjs +1 -1
- package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.d.ts +1 -1
- package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.mjs +4 -4
- package/data-structures/TokenDBs/AlchemyPublicTokensDB.cjs +1 -1
- package/data-structures/TokenDBs/AlchemyPublicTokensDB.mjs +37 -34
- package/data-structures/TokenDBs/EventsPublicTokensDB.cjs +1 -1
- package/data-structures/TokenDBs/EventsPublicTokensDB.d.ts +2 -0
- package/data-structures/TokenDBs/EventsPublicTokensDB.mjs +65 -50
- package/data-structures/TokenDBs/PrivateTokensDB.cjs +1 -1
- package/data-structures/TokenDBs/PrivateTokensDB.mjs +2 -1
- package/data-structures/WalletManager/WalletManager.cjs +1 -0
- package/data-structures/WalletManager/WalletManager.d.ts +51 -0
- package/data-structures/WalletManager/WalletManager.mjs +99 -0
- package/data-structures/WalletManager/index.cjs +1 -0
- package/data-structures/WalletManager/index.d.ts +1 -0
- package/data-structures/WalletManager/index.mjs +1 -0
- package/data-structures/crypto-keys/decodeUTXO.cjs +1 -1
- package/data-structures/crypto-keys/decodeUTXO.d.ts +5 -3
- package/data-structures/crypto-keys/decodeUTXO.mjs +49 -46
- package/data-structures/crypto-keys/encryptDecryptUtxo.cjs +1 -1
- package/data-structures/crypto-keys/encryptDecryptUtxo.mjs +32 -40
- package/data-structures/crypto-keys/keys.cjs +1 -1
- package/data-structures/crypto-keys/keys.d.ts +51 -24
- package/data-structures/crypto-keys/keys.mjs +104 -43
- package/data-structures/custom-token-registry/CustomTokenRegistry.cjs +1 -1
- package/data-structures/custom-token-registry/CustomTokenRegistry.mjs +2 -2
- package/data-structures/event-service/evm/BlockchainEventEmitter.cjs +1 -1
- package/data-structures/event-service/evm/BlockchainEventEmitter.d.ts +2 -2
- package/data-structures/event-service/evm/BlockchainEventEmitter.mjs +4 -4
- package/data-structures/event-service/evm/PollingBlockchainEventEmitter.cjs +1 -1
- package/data-structures/event-service/evm/PollingBlockchainEventEmitter.mjs +1 -1
- package/data-structures/event-service/helpers/ClientEventHelper.cjs +1 -1
- package/data-structures/event-service/helpers/ClientEventHelper.mjs +3 -3
- package/data-structures/event-service/helpers/PollingEventHelper.cjs +1 -1
- package/data-structures/event-service/helpers/PollingEventHelper.d.ts +2 -0
- package/data-structures/event-service/helpers/PollingEventHelper.mjs +7 -3
- package/data-structures/event-service/index.cjs +1 -1
- package/data-structures/event-service/index.d.ts +0 -3
- package/data-structures/event-service/index.mjs +0 -3
- package/data-structures/event-service/solana/PollingSolanaBlockchainEventEmitter.cjs +1 -1
- package/data-structures/event-service/solana/PollingSolanaBlockchainEventEmitter.mjs +1 -1
- package/data-structures/event-service/solana/SolanaBlockchainEventEmitter.cjs +1 -1
- package/data-structures/event-service/solana/SolanaBlockchainEventEmitter.d.ts +2 -2
- package/data-structures/event-service/solana/SolanaBlockchainEventEmitter.mjs +5 -5
- package/data-structures/index.cjs +1 -1
- package/data-structures/index.d.ts +1 -0
- package/data-structures/index.mjs +10 -10
- package/data-structures/merkle-tree/index.cjs +1 -1
- package/data-structures/merkle-tree/index.d.ts +0 -1
- package/data-structures/merkle-tree/index.mjs +0 -1
- package/data-structures/provider-adapter/IProviderAdapter.d.ts +6 -0
- package/data-structures/snapshot/SnapshotFetcherService.cjs +1 -1
- package/data-structures/snapshot/SnapshotFetcherService.d.ts +0 -2
- package/data-structures/snapshot/SnapshotFetcherService.mjs +0 -6
- package/data-structures/snapshot/index.cjs +1 -1
- package/data-structures/snapshot/index.d.ts +0 -3
- package/data-structures/snapshot/index.mjs +0 -3
- package/data-structures/utxo/Utxo.cjs +1 -1
- package/data-structures/utxo/Utxo.d.ts +16 -10
- package/data-structures/utxo/Utxo.mjs +40 -38
- package/error-handling/customErrors/HttpError.cjs +1 -0
- package/error-handling/customErrors/HttpError.d.ts +4 -0
- package/error-handling/customErrors/HttpError.mjs +8 -0
- package/error-handling/customErrors/index.cjs +1 -1
- package/error-handling/customErrors/index.d.ts +1 -0
- package/error-handling/customErrors/index.mjs +1 -0
- package/error-handling/error-codes.constants.cjs +1 -1
- package/error-handling/error-codes.constants.d.ts +11 -0
- package/error-handling/error-codes.constants.mjs +13 -2
- package/error-handling/index.cjs +1 -1
- package/error-handling/index.mjs +1 -0
- package/error-handling/retrySolanaError.cjs +1 -0
- package/error-handling/retrySolanaError.d.ts +1 -0
- package/error-handling/retrySolanaError.mjs +4 -0
- package/externalABIs/index.cjs +1 -1
- package/externalABIs/index.d.ts +1 -16
- package/externalABIs/index.mjs +4 -5
- package/functions/auto-deposit-back-helpers/get-gas-token-records.d.ts +1 -1
- package/functions/auto-deposit-back-helpers/get-tokens-to-deposit-back.d.ts +1 -1
- package/functions/index.cjs +1 -1
- package/functions/index.mjs +28 -19
- package/functions/kyc/checkTokenLimitsUSD.cjs +1 -1
- package/functions/kyc/checkTokenLimitsUSD.mjs +15 -15
- package/functions/kyc/index.cjs +1 -1
- package/functions/kyc/index.d.ts +0 -1
- package/functions/kyc/index.mjs +0 -1
- package/functions/pre-transaction/addressTableLookup.cjs +1 -1
- package/functions/pre-transaction/addressTableLookup.mjs +21 -18
- package/functions/pre-transaction/buildCommitmentValidationData.cjs +1 -0
- package/functions/pre-transaction/buildCommitmentValidationData.d.ts +4 -0
- package/functions/pre-transaction/buildCommitmentValidationData.mjs +58 -0
- package/functions/pre-transaction/calculateSolanaNullifierCount.cjs +1 -0
- package/functions/pre-transaction/calculateSolanaNullifierCount.d.ts +2 -0
- package/functions/pre-transaction/calculateSolanaNullifierCount.mjs +23 -0
- package/functions/pre-transaction/constructAdminData.cjs +1 -1
- package/functions/pre-transaction/constructAdminData.mjs +4 -4
- package/functions/pre-transaction/index.cjs +1 -1
- package/functions/pre-transaction/index.d.ts +2 -3
- package/functions/pre-transaction/index.mjs +3 -4
- package/functions/pre-transaction/outputUtxoProcessing.cjs +1 -1
- package/functions/pre-transaction/outputUtxoProcessing.d.ts +1 -1
- package/functions/pre-transaction/outputUtxoProcessing.mjs +22 -19
- package/functions/pre-transaction/recipientUtxoProcessing.cjs +1 -1
- package/functions/pre-transaction/recipientUtxoProcessing.mjs +11 -9
- package/functions/pre-transaction/sendInitNullifiersTransaction.cjs +1 -1
- package/functions/pre-transaction/sendInitNullifiersTransaction.mjs +9 -9
- package/functions/pre-transaction/sendV0Transaction.cjs +1 -1
- package/functions/pre-transaction/sendV0Transaction.mjs +45 -43
- package/functions/pre-transaction/solana-public-signals.cjs +1 -1
- package/functions/pre-transaction/solana-public-signals.d.ts +7 -6
- package/functions/pre-transaction/solana-public-signals.mjs +22 -19
- package/functions/pre-transaction/solana.cjs +1 -1
- package/functions/pre-transaction/solana.d.ts +0 -4
- package/functions/pre-transaction/solana.mjs +7 -27
- package/functions/pre-transaction/store-proof.cjs +1 -1
- package/functions/pre-transaction/store-proof.mjs +3 -3
- package/functions/private-wallet/emporium.helpers.cjs +1 -1
- package/functions/private-wallet/emporium.helpers.d.ts +14 -4
- package/functions/private-wallet/emporium.helpers.mjs +84 -74
- package/functions/private-wallet/emporium.swap.helpers.cjs +1 -1
- package/functions/private-wallet/emporium.swap.helpers.mjs +6 -6
- package/functions/snarkjs/common.snarkjs.cjs +1 -1
- package/functions/snarkjs/common.snarkjs.d.ts +8 -13
- package/functions/snarkjs/common.snarkjs.mjs +65 -74
- package/functions/snarkjs/constant.cjs +1 -1
- package/functions/snarkjs/constant.d.ts +146 -426
- package/functions/snarkjs/constant.mjs +149 -430
- package/functions/snarkjs/constructGeneralZkProof.cjs +1 -1
- package/functions/snarkjs/constructGeneralZkProof.d.ts +2 -3
- package/functions/snarkjs/constructGeneralZkProof.mjs +74 -57
- package/functions/snarkjs/constructSolanaZkProof.cjs +1 -1
- package/functions/snarkjs/constructSolanaZkProof.d.ts +1 -2
- package/functions/snarkjs/constructSolanaZkProof.mjs +65 -37
- package/functions/snarkjs/fetchMerkleTreeSiblings.cjs +1 -1
- package/functions/snarkjs/fetchMerkleTreeSiblings.d.ts +1 -1
- package/functions/snarkjs/fetchMerkleTreeSiblings.mjs +6 -10
- package/functions/snarkjs/fetchOnChainRootHashes.cjs +1 -1
- package/functions/snarkjs/fetchOnChainRootHashes.d.ts +0 -1
- package/functions/snarkjs/fetchOnChainRootHashes.mjs +22 -7
- package/functions/snarkjs/generateCircomData.cjs +1 -1
- package/functions/snarkjs/generateCircomData.d.ts +2 -2
- package/functions/snarkjs/generateCircomData.mjs +29 -31
- package/functions/snarkjs/generateZkProof.cjs +1 -1
- package/functions/snarkjs/generateZkProof.mjs +20 -10
- package/functions/snarkjs/generateZkProofEnclave.cjs +1 -1
- package/functions/snarkjs/generateZkProofEnclave.mjs +15 -18
- package/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.cjs +1 -1
- package/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.d.ts +2 -9
- package/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.mjs +40 -94
- package/functions/snarkjs/getZKFiles.cjs +1 -1
- package/functions/snarkjs/getZKFiles.d.ts +1 -0
- package/functions/snarkjs/getZKFiles.mjs +2 -2
- package/functions/snarkjs/index.cjs +1 -1
- package/functions/snarkjs/index.d.ts +2 -1
- package/functions/snarkjs/index.mjs +2 -1
- package/functions/snarkjs/signedMessageHash.cjs +1 -0
- package/functions/snarkjs/signedMessageHash.d.ts +31 -0
- package/functions/snarkjs/signedMessageHash.mjs +49 -0
- package/functions/snarkjs/verifyCommitmentValidationData.cjs +1 -0
- package/functions/snarkjs/verifyCommitmentValidationData.d.ts +4 -0
- package/functions/snarkjs/verifyCommitmentValidationData.mjs +43 -0
- package/functions/utils/addresses.cjs +1 -1
- package/functions/utils/addresses.d.ts +2 -0
- package/functions/utils/addresses.mjs +12 -8
- package/functions/utils/aggregateTokenAmounts.cjs +1 -0
- package/functions/utils/aggregateTokenAmounts.d.ts +2 -0
- package/functions/utils/aggregateTokenAmounts.mjs +26 -0
- package/functions/utils/amounts.utils.cjs +1 -1
- package/functions/utils/amounts.utils.d.ts +0 -1
- package/functions/utils/amounts.utils.mjs +18 -18
- package/functions/utils/auth.utils.cjs +1 -0
- package/functions/utils/auth.utils.d.ts +5 -0
- package/functions/utils/auth.utils.mjs +7 -0
- package/functions/utils/bit.operations.cjs +1 -0
- package/functions/utils/bit.operations.d.ts +3 -0
- package/functions/utils/bit.operations.mjs +4 -0
- package/functions/utils/buildClaimableDepositPlan.cjs +1 -1
- package/functions/utils/buildClaimableDepositPlan.d.ts +3 -2
- package/functions/utils/buildClaimableDepositPlan.mjs +32 -24
- package/functions/utils/cacheFunctions.cjs +1 -1
- package/functions/utils/cacheFunctions.d.ts +0 -4
- package/functions/utils/cacheFunctions.mjs +33 -47
- package/functions/utils/create-provider.cjs +1 -1
- package/functions/utils/create-provider.d.ts +2 -3
- package/functions/utils/create-provider.mjs +9 -9
- package/functions/utils/customEnclaveFunctionsRegister.cjs +1 -0
- package/functions/utils/customEnclaveFunctionsRegister.d.ts +18 -0
- package/functions/utils/customEnclaveFunctionsRegister.mjs +8 -0
- package/functions/utils/deposit-claimable.utils.cjs +1 -0
- package/functions/utils/deposit-claimable.utils.d.ts +6 -0
- package/functions/utils/deposit-claimable.utils.mjs +106 -0
- package/functions/utils/dispatchBalanceRefreshes.cjs +1 -0
- package/functions/utils/dispatchBalanceRefreshes.d.ts +4 -0
- package/functions/utils/dispatchBalanceRefreshes.mjs +44 -0
- package/functions/utils/enclave-recipient-info-storage.cjs +1 -0
- package/functions/utils/enclave-recipient-info-storage.d.ts +2 -0
- package/functions/utils/enclave-recipient-info-storage.mjs +17 -0
- package/functions/utils/enclave-signature-storage.cjs +1 -1
- package/functions/utils/enclave-signature-storage.d.ts +1 -2
- package/functions/utils/enclave-signature-storage.mjs +6 -9
- package/functions/utils/enclave-utxo-storage.cjs +1 -1
- package/functions/utils/enclave-utxo-storage.d.ts +3 -2
- package/functions/utils/enclave-utxo-storage.mjs +18 -21
- package/functions/utils/encodeTokenWithId.cjs +1 -1
- package/functions/utils/encodeTokenWithId.mjs +1 -1
- package/functions/utils/encryptInputForEnclave.cjs +1 -1
- package/functions/utils/encryptInputForEnclave.mjs +17 -23
- package/functions/utils/enum.utils.cjs +1 -0
- package/functions/utils/enum.utils.mjs +12 -0
- package/functions/utils/erc20tokenFunctions.cjs +1 -1
- package/functions/utils/erc20tokenFunctions.d.ts +2 -0
- package/functions/utils/erc20tokenFunctions.mjs +26 -16
- package/functions/utils/evmNetworkFunctions.d.ts +1 -2
- package/functions/utils/fees.utils.cjs +1 -1
- package/functions/utils/fees.utils.d.ts +2 -1
- package/functions/utils/fees.utils.mjs +30 -16
- package/functions/utils/formatter.cjs +1 -0
- package/functions/utils/formatter.d.ts +1 -0
- package/functions/utils/formatter.mjs +15 -0
- package/functions/utils/getBlockExplorerUrl.cjs +1 -1
- package/functions/utils/getBlockExplorerUrl.mjs +1 -1
- package/functions/utils/getRecipientInfoFromUserKeys.cjs +1 -1
- package/functions/utils/getRecipientInfoFromUserKeys.d.ts +2 -0
- package/functions/utils/getRecipientInfoFromUserKeys.mjs +14 -9
- package/functions/utils/getUtxosFromReceipt.utils.cjs +1 -1
- package/functions/utils/getUtxosFromReceipt.utils.d.ts +1 -0
- package/functions/utils/getUtxosFromReceipt.utils.mjs +43 -27
- package/functions/utils/getUtxosFromReceiptSolana.cjs +1 -1
- package/functions/utils/getUtxosFromReceiptSolana.d.ts +1 -0
- package/functions/utils/getUtxosFromReceiptSolana.mjs +36 -21
- package/functions/utils/getWalletGroupKey.utils.cjs +1 -1
- package/functions/utils/getWalletGroupKey.utils.mjs +4 -1
- package/functions/utils/index.cjs +1 -1
- package/functions/utils/index.d.ts +14 -1
- package/functions/utils/index.mjs +21 -9
- package/functions/utils/lifi.utils.cjs +1 -0
- package/functions/utils/lifi.utils.d.ts +3 -0
- package/functions/utils/lifi.utils.mjs +30 -0
- package/functions/utils/mnemonics.cjs +1 -0
- package/functions/utils/mnemonics.d.ts +1 -0
- package/functions/utils/mnemonics.mjs +8 -0
- package/functions/utils/pay-routing.utils.cjs +1 -0
- package/functions/utils/pay-routing.utils.d.ts +4 -0
- package/functions/utils/pay-routing.utils.mjs +17 -0
- package/functions/utils/prepareHinkal.cjs +1 -1
- package/functions/utils/prepareHinkal.mjs +29 -29
- package/functions/utils/publicBalance.utils.cjs +1 -1
- package/functions/utils/publicBalance.utils.mjs +5 -5
- package/functions/utils/serialize-utxos.utils.cjs +1 -1
- package/functions/utils/serialize-utxos.utils.mjs +6 -2
- package/functions/utils/solana-memo.cjs +1 -0
- package/functions/utils/solana-memo.d.ts +3 -0
- package/functions/utils/solana-memo.mjs +15 -0
- package/functions/utils/solanaSendPreflight.utils.cjs +1 -0
- package/functions/utils/solanaSendPreflight.utils.d.ts +6 -0
- package/functions/utils/solanaSendPreflight.utils.mjs +21 -0
- package/functions/utils/string.utils.cjs +1 -1
- package/functions/utils/string.utils.mjs +1 -1
- package/functions/utils/time.utils.cjs +1 -1
- package/functions/utils/time.utils.d.ts +6 -0
- package/functions/utils/time.utils.mjs +23 -16
- package/functions/utils/token-check.utils.cjs +1 -1
- package/functions/utils/token-check.utils.d.ts +1 -0
- package/functions/utils/token-check.utils.mjs +9 -8
- package/functions/utils/transfer-claimable.utils.cjs +1 -0
- package/functions/utils/transfer-claimable.utils.d.ts +9 -0
- package/functions/utils/transfer-claimable.utils.mjs +93 -0
- package/functions/utils/tron.utils.cjs +1 -1
- package/functions/utils/tron.utils.d.ts +11 -1
- package/functions/utils/tron.utils.mjs +85 -40
- package/functions/utils/tx-confirmation.utils.cjs +1 -1
- package/functions/utils/tx-confirmation.utils.d.ts +1 -1
- package/functions/utils/tx-confirmation.utils.mjs +5 -5
- package/functions/utils/userAgent.cjs +1 -1
- package/functions/utils/userAgent.d.ts +1 -0
- package/functions/utils/userAgent.mjs +4 -1
- package/functions/web3/connectors.utils.cjs +1 -1
- package/functions/web3/connectors.utils.d.ts +1 -0
- package/functions/web3/connectors.utils.mjs +5 -2
- package/functions/web3/events/balanceChangedHandler.cjs +1 -1
- package/functions/web3/events/balanceChangedHandler.d.ts +2 -1
- package/functions/web3/events/balanceChangedHandler.mjs +3 -3
- package/functions/web3/events/getInputUtxoAndBalance.cjs +1 -1
- package/functions/web3/events/getInputUtxoAndBalance.d.ts +1 -1
- package/functions/web3/events/getInputUtxoAndBalance.mjs +21 -20
- package/functions/web3/events/getInputUtxosEnclave.cjs +1 -1
- package/functions/web3/events/getInputUtxosEnclave.d.ts +2 -1
- package/functions/web3/events/getInputUtxosEnclave.mjs +25 -18
- package/functions/web3/events/getShieldedBalance.cjs +1 -1
- package/functions/web3/events/getShieldedBalance.mjs +15 -17
- package/functions/web3/events/getTransactionLogEvents.cjs +1 -1
- package/functions/web3/events/getTransactionLogEvents.d.ts +8 -5
- package/functions/web3/events/getTransactionLogEvents.mjs +1 -1
- package/functions/web3/events/index.cjs +1 -1
- package/functions/web3/events/index.d.ts +0 -2
- package/functions/web3/events/index.mjs +0 -2
- package/functions/web3/functionCalls/constructBatchCall.cjs +1 -1
- package/functions/web3/functionCalls/constructBatchCall.d.ts +1 -0
- package/functions/web3/functionCalls/constructBatchCall.mjs +10 -2
- package/functions/web3/functionCalls/transactCallDirectTron.cjs +1 -1
- package/functions/web3/functionCalls/transactCallDirectTron.d.ts +4 -1
- package/functions/web3/functionCalls/transactCallDirectTron.mjs +89 -55
- package/functions/web3/functionCalls/transactCallRelayer.cjs +1 -1
- package/functions/web3/functionCalls/transactCallRelayer.d.ts +5 -4
- package/functions/web3/functionCalls/transactCallRelayer.mjs +17 -13
- package/functions/web3/getContractMetadata.cjs +1 -1
- package/functions/web3/getContractMetadata.mjs +1 -1
- package/functions/web3/getTokenHolder.cjs +1 -1
- package/functions/web3/getTokenHolder.mjs +1 -1
- package/functions/web3/index.cjs +1 -1
- package/functions/web3/index.d.ts +0 -1
- package/functions/web3/index.mjs +0 -3
- package/functions/web3/lifiAPI.cjs +1 -1
- package/functions/web3/lifiAPI.mjs +28 -19
- package/functions/web3/oneInchAPI.cjs +1 -1
- package/functions/web3/oneInchAPI.mjs +1 -1
- package/index.cjs +1 -1
- package/index.mjs +331 -309
- package/package.json +5 -2
- package/providers/EthersProviderAdapter.cjs +1 -1
- package/providers/EthersProviderAdapter.mjs +1 -1
- package/providers/SolanaProviderAdapter.cjs +1 -1
- package/providers/SolanaProviderAdapter.d.ts +10 -1
- package/providers/SolanaProviderAdapter.mjs +38 -2
- package/providers/TronProviderAdapter.cjs +1 -1
- package/providers/TronProviderAdapter.mjs +2 -2
- package/providers/WagmiProviderAdapter.cjs +1 -1
- package/providers/WagmiProviderAdapter.d.ts +3 -1
- package/providers/WagmiProviderAdapter.mjs +62 -52
- package/providers/prepareSolanaHinkal.cjs +1 -1
- package/providers/prepareSolanaHinkal.mjs +3 -3
- package/types/admin.types.cjs +1 -1
- package/types/admin.types.d.ts +1 -8
- package/types/admin.types.mjs +1 -1
- package/types/cache.types.cjs +1 -1
- package/types/cache.types.d.ts +2 -1
- package/types/cache.types.mjs +1 -1
- package/types/chains.types.cjs +1 -0
- package/types/chains.types.d.ts +11 -0
- package/types/chains.types.mjs +8 -0
- package/types/circom-data.types.d.ts +13 -0
- package/types/commitments.types.d.ts +0 -6
- package/types/contacts.types.d.ts +1 -0
- package/types/dashboard-account.cjs +1 -0
- package/types/dashboard-account.d.ts +101 -0
- package/types/dashboard-account.mjs +8 -0
- package/types/dashboard-payout.types.cjs +1 -0
- package/types/dashboard-payout.types.d.ts +29 -0
- package/types/dashboard-payout.types.mjs +8 -0
- package/types/dashboard-transaction.types.d.ts +22 -0
- package/types/ethereum-network.types.cjs +1 -1
- package/types/ethereum-network.types.d.ts +15 -18
- package/types/ethereum-network.types.mjs +1 -1
- package/types/events.types.cjs +1 -1
- package/types/events.types.d.ts +2 -3
- package/types/events.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/hinkal.types.cjs +1 -1
- package/types/hinkal.types.d.ts +6 -17
- package/types/hinkal.types.mjs +16 -18
- package/types/index.cjs +1 -1
- package/types/index.d.ts +6 -0
- package/types/index.mjs +3 -0
- package/types/pay-activities.types.d.ts +3 -0
- package/types/pay-routing.types.d.ts +9 -0
- package/types/scheduled-transactions.types.d.ts +7 -0
- package/types/solana.types.d.ts +5 -6
- package/types/token-prices.types.d.ts +4 -0
- package/types/transaction.types.d.ts +1 -3
- package/webworker/WorkerWrapper.cjs +1 -0
- package/webworker/WorkerWrapper.d.ts +9 -0
- package/webworker/WorkerWrapper.mjs +22 -0
- package/webworker/logError-fCJ4HXQz.js +22 -0
- package/webworker/package.json +112 -0
- package/webworker/performTaskWithWorker.cjs +1 -1
- package/webworker/performTaskWithWorker.mjs +4 -4
- package/webworker/snarkjsWorker/snarkjsWorkerLauncher.ts?worker&url.cjs +1 -1
- package/webworker/snarkjsWorker/snarkjsWorkerLauncher.ts?worker&url.mjs +1 -1
- package/webworker/snarkjsWorker/snarkjsWorkerLogic.d.ts +0 -3
- package/webworker/snarkjsWorker/snarkjsWorkerNode.d.ts +0 -0
- package/webworker/snarkjsWorkerNode.cjs +3 -0
- package/webworker/utxoWorker/utxoWorkerLauncher.ts?worker&url.cjs +1 -1
- package/webworker/utxoWorker/utxoWorkerLauncher.ts?worker&url.mjs +1 -1
- package/webworker/utxoWorker/utxoWorkerLogic.d.ts +0 -3
- package/webworker/utxoWorker/utxoWorkerNode.d.ts +0 -0
- package/webworker/utxoWorkerNode.cjs +1 -0
- package/webworker/viteWorkerURL.constant.cjs +4 -4
- package/webworker/viteWorkerURL.constant.mjs +4 -4
- package/webworker/worker.registry.cjs +1 -1
- package/webworker/worker.registry.mjs +6 -3
- package/webworker/workerFactory.cjs +1 -1
- package/webworker/workerFactory.d.ts +4 -1
- package/webworker/workerFactory.mjs +31 -17
- package/webworker/workerProxy-BNBqYien.js +130 -0
- package/webworker/workerProxy.d.ts +1 -1
- package/webworker/workerThreadsPatch.d.ts +1 -0
- package/webworker/zkProofWorker/zkProofWorker.types.cjs +1 -1
- package/webworker/zkProofWorker/zkProofWorker.types.d.ts +3 -13
- package/webworker/zkProofWorker/zkProofWorker.types.mjs +1 -1
- package/webworker/zkProofWorker/zkProofWorkerLauncher.ts?worker&url.cjs +1 -1
- package/webworker/zkProofWorker/zkProofWorkerLauncher.ts?worker&url.mjs +1 -1
- package/webworker/zkProofWorker/zkProofWorkerLogic.d.ts +1 -5
- package/webworker/zkProofWorker/zkProofWorkerNode.d.ts +0 -0
- package/webworker/zkProofWorkerNode.cjs +1 -0
- package/API/solana-calls.cjs +0 -1
- package/API/solana-calls.d.ts +0 -38
- package/API/solana-calls.mjs +0 -8
- package/constants/non-circular-tokens.constants.cjs +0 -1
- package/constants/non-circular-tokens.constants.d.ts +0 -1
- package/constants/non-circular-tokens.constants.mjs +0 -4
- package/data-structures/Hinkal/hinkalCheckSolanaTokenRegistry.cjs +0 -1
- package/data-structures/Hinkal/hinkalCheckSolanaTokenRegistry.d.ts +0 -3
- package/data-structures/Hinkal/hinkalCheckSolanaTokenRegistry.mjs +0 -15
- package/data-structures/Hinkal/hinkalCheckTokenRegistry.cjs +0 -1
- package/data-structures/Hinkal/hinkalCheckTokenRegistry.d.ts +0 -4
- package/data-structures/Hinkal/hinkalCheckTokenRegistry.mjs +0 -18
- package/data-structures/event-service/evm/AbstractAccessTokenSnapshotService.cjs +0 -1
- package/data-structures/event-service/evm/AbstractAccessTokenSnapshotService.d.ts +0 -35
- package/data-structures/event-service/evm/AbstractAccessTokenSnapshotService.mjs +0 -75
- package/data-structures/event-service/evm/AbstractApprovalsSnapshotService.cjs +0 -1
- package/data-structures/event-service/evm/AbstractApprovalsSnapshotService.d.ts +0 -30
- package/data-structures/event-service/evm/AbstractApprovalsSnapshotService.mjs +0 -81
- package/data-structures/event-service/solana/AbstractSolanaAccessTokenSnapshotService.cjs +0 -1
- package/data-structures/event-service/solana/AbstractSolanaAccessTokenSnapshotService.d.ts +0 -35
- package/data-structures/event-service/solana/AbstractSolanaAccessTokenSnapshotService.mjs +0 -76
- package/data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.cjs +0 -1
- package/data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.d.ts +0 -2
- package/data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.mjs +0 -13
- package/data-structures/snapshot/evm-snapshots/ClientAccessTokenSnapshotService.cjs +0 -1
- package/data-structures/snapshot/evm-snapshots/ClientAccessTokenSnapshotService.d.ts +0 -8
- package/data-structures/snapshot/evm-snapshots/ClientAccessTokenSnapshotService.mjs +0 -29
- package/data-structures/snapshot/evm-snapshots/ClientApprovalsSnapshotService.cjs +0 -1
- package/data-structures/snapshot/evm-snapshots/ClientApprovalsSnapshotService.d.ts +0 -8
- package/data-structures/snapshot/evm-snapshots/ClientApprovalsSnapshotService.mjs +0 -30
- package/data-structures/snapshot/solana-snapshots/ClientSolanaAccessTokenSnapshotService.cjs +0 -1
- package/data-structures/snapshot/solana-snapshots/ClientSolanaAccessTokenSnapshotService.d.ts +0 -8
- package/data-structures/snapshot/solana-snapshots/ClientSolanaAccessTokenSnapshotService.mjs +0 -26
- package/externalABIs/transactionsProver.json.cjs +0 -1
- package/externalABIs/transactionsProver.json.mjs +0 -43
- package/functions/pre-transaction/getKycAndSignatureData.cjs +0 -1
- package/functions/pre-transaction/getKycAndSignatureData.d.ts +0 -5
- package/functions/pre-transaction/getKycAndSignatureData.mjs +0 -12
- package/functions/pre-transaction/getSignatureDataForTransact.cjs +0 -1
- package/functions/pre-transaction/getSignatureDataForTransact.d.ts +0 -3
- package/functions/pre-transaction/getSignatureDataForTransact.mjs +0 -6
- package/functions/pre-transaction/initTokenLimitIfNeeded.cjs +0 -1
- package/functions/pre-transaction/initTokenLimitIfNeeded.d.ts +0 -3
- package/functions/pre-transaction/initTokenLimitIfNeeded.mjs +0 -17
- package/functions/pre-transaction/outputApprovalDataProcessing.cjs +0 -1
- package/functions/pre-transaction/outputApprovalDataProcessing.d.ts +0 -10
- package/functions/pre-transaction/outputApprovalDataProcessing.mjs +0 -22
- package/functions/pre-transaction/shouldPatchAccessTokenMerkleTree.cjs +0 -1
- package/functions/pre-transaction/shouldPatchAccessTokenMerkleTree.d.ts +0 -6
- package/functions/pre-transaction/shouldPatchAccessTokenMerkleTree.mjs +0 -11
- package/functions/snarkjs/constructEmporiumProof.cjs +0 -1
- package/functions/snarkjs/constructEmporiumProof.d.ts +0 -13
- package/functions/snarkjs/constructEmporiumProof.mjs +0 -74
- package/functions/utils/processUseApprovalUtxoData.cjs +0 -1
- package/functions/utils/processUseApprovalUtxoData.d.ts +0 -3
- package/functions/utils/processUseApprovalUtxoData.mjs +0 -13
- package/functions/web3/events/balanceChangedCustomHandler.cjs +0 -1
- package/functions/web3/events/balanceChangedCustomHandler.d.ts +0 -2
- package/functions/web3/events/balanceChangedCustomHandler.mjs +0 -9
- package/functions/web3/events/getApprovedBalance.cjs +0 -1
- package/functions/web3/events/getApprovedBalance.d.ts +0 -6
- package/functions/web3/events/getApprovedBalance.mjs +0 -37
- package/functions/web3/functionCalls/accessTokenCalls.cjs +0 -1
- package/functions/web3/functionCalls/accessTokenCalls.d.ts +0 -2
- package/functions/web3/functionCalls/accessTokenCalls.mjs +0 -19
- package/functions/web3/tron-wagmi-adapter.cjs +0 -1
- package/functions/web3/tron-wagmi-adapter.d.ts +0 -8
- package/functions/web3/tron-wagmi-adapter.mjs +0 -27
- package/providers/CustomEthersProvider.d.ts +0 -10
- package/webworker/snarkjsWorker/snarkjsWorkerLogic.cjs +0 -1
- package/webworker/snarkjsWorker/snarkjsWorkerLogic.mjs +0 -30
- package/webworker/utxoWorker/utxoWorkerLogic.cjs +0 -1
- package/webworker/utxoWorker/utxoWorkerLogic.mjs +0 -69
- package/webworker/workerProxy.cjs +0 -1
- package/webworker/workerProxy.mjs +0 -33
- package/webworker/zkProofWorker/zkProofWorkerLogic.cjs +0 -1
- package/webworker/zkProofWorker/zkProofWorkerLogic.mjs +0 -45
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { API_CONFIG as e } from "../constants/server.constants.mjs";
|
|
2
|
+
import { SERVER_URL as t } from "./getServerURL.mjs";
|
|
3
|
+
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
|
+
import "../data-structures/http/index.mjs";
|
|
5
|
+
import { HINKAL_DASHBOARD_TOKEN as r } from "../constants/auth.constants.mjs";
|
|
6
|
+
import { getAuthHeaders as i } from "../functions/utils/auth.utils.mjs";
|
|
7
|
+
//#region libs/shared/common/src/API/dashboardTransactionCalls.ts
|
|
8
|
+
var a = async (a) => n.post(`${t}${e.ROUTES.createDashboardTransactions}`, { transactions: a }, { headers: i(r) }), o = async () => n.get(`${t}${e.ROUTES.getDashboardTransactions}`, { headers: i(r) });
|
|
9
|
+
//#endregion
|
|
10
|
+
export { a as createDashboardTransactions, o as getDashboardTransactions };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.cjs`);const t=require(`../functions/snarkjs/constant.cjs`);var n=async n=>e.httpClient.post(`${t.ENCLAVE_URL}/store-recipient-infos`,n);exports.storeRecipientInfosViaEnclave=n;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface StoreRecipientInfosRequest {
|
|
2
|
+
ethAddress: string;
|
|
3
|
+
encryptedSignature: string;
|
|
4
|
+
key: string;
|
|
5
|
+
targetCount: number;
|
|
6
|
+
isSolanaLedger: boolean;
|
|
7
|
+
txMessageForSolanaLedger: string | undefined;
|
|
8
|
+
}
|
|
9
|
+
interface StoreRecipientInfosResponse {
|
|
10
|
+
status: 'success';
|
|
11
|
+
generated: number;
|
|
12
|
+
}
|
|
13
|
+
export declare const storeRecipientInfosViaEnclave: (request: StoreRecipientInfosRequest) => Promise<StoreRecipientInfosResponse>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { httpClient as e } from "../data-structures/http/HttpClient.mjs";
|
|
2
|
+
import "../data-structures/http/index.mjs";
|
|
3
|
+
import { ENCLAVE_URL as t } from "../functions/snarkjs/constant.mjs";
|
|
4
|
+
//#region libs/shared/common/src/API/enclaveRecipientInfoCalls.ts
|
|
5
|
+
var n = async (n) => e.post(`${t}/store-recipient-infos`, n);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as storeRecipientInfosViaEnclave };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.cjs`);const t=require(`../functions/snarkjs/constant.cjs`);var n=async(n,r,i)=>e.httpClient.post(`${t.
|
|
1
|
+
const e=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.cjs`);const t=require(`../functions/snarkjs/constant.cjs`);var n=async(n,r,i,a,o)=>e.httpClient.post(`${t.ENCLAVE_URL}/store-and-get-signature`,{ethAddress:n,encryptedSignature:r,key:i,isSolanaLedger:a,txMessageForSolanaLedger:o});exports.storeAndGetSignatureEnclaveCall=n;
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
interface
|
|
2
|
-
|
|
1
|
+
interface IStoreAndGetSignatureResponse {
|
|
2
|
+
signature: string;
|
|
3
3
|
}
|
|
4
|
-
export declare const
|
|
5
|
-
interface GetSignatureResponse {
|
|
6
|
-
found: boolean;
|
|
7
|
-
signature?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const getSignatureEnclaveCall: (ethAddress: string, encryptedAuthSignature: string, key: string) => Promise<GetSignatureResponse>;
|
|
4
|
+
export declare const storeAndGetSignatureEnclaveCall: (ethAddress: string, encryptedSignature: string, key: string, isSolanaLedger: boolean, txMessageForSolanaLedger?: string) => Promise<IStoreAndGetSignatureResponse>;
|
|
10
5
|
export {};
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { httpClient as e } from "../data-structures/http/HttpClient.mjs";
|
|
2
2
|
import "../data-structures/http/index.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { ENCLAVE_URL as t } from "../functions/snarkjs/constant.mjs";
|
|
4
4
|
//#region libs/shared/common/src/API/enclaveSignatureCalls.ts
|
|
5
|
-
var n = async (n, r, i) => e.post(`${t}/store-signature`, {
|
|
5
|
+
var n = async (n, r, i, a, o) => e.post(`${t}/store-and-get-signature`, {
|
|
6
6
|
ethAddress: n,
|
|
7
7
|
encryptedSignature: r,
|
|
8
|
-
key: i
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
encryptedAuthSignature: r,
|
|
12
|
-
key: i
|
|
8
|
+
key: i,
|
|
9
|
+
isSolanaLedger: a,
|
|
10
|
+
txMessageForSolanaLedger: o
|
|
13
11
|
});
|
|
14
12
|
//#endregion
|
|
15
|
-
export {
|
|
13
|
+
export { n as storeAndGetSignatureEnclaveCall };
|
package/API/enclaveUtxoCalls.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`../_virtual/_rolldown/runtime.cjs`);const e=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.cjs`);const t=require(`../functions/snarkjs/constant.cjs`);var n=new(require(`async-mutex`)).Mutex,r=async(r,i,a)=>n.runExclusive(async()=>await e.httpClient.post(`${t.
|
|
1
|
+
require(`../_virtual/_rolldown/runtime.cjs`);const e=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.cjs`);const t=require(`../functions/snarkjs/constant.cjs`);var n=new(require(`async-mutex`)).Mutex,r=async(r,i,a)=>n.runExclusive(async()=>await e.httpClient.post(`${t.ENCLAVE_URL}/decrypt-utxos`,{chainId:r,input:a,key:i})),i=async(n,r,i,a)=>await e.httpClient.post(`${t.ENCLAVE_URL}/store-utxo`,{recipientEthAddress:n,encryptedUtxo:r,key:i,chainId:a}),a=async(n,r,i,a,o,s)=>await e.httpClient.post(`${t.ENCLAVE_URL}/get-utxos`,{ethAddress:n,encryptedSignature:r,key:i,chainId:a,isSolanaLedger:o,txMessageForSolanaLedger:s});exports.decryptUtxoEnclaveCall=r,exports.getUtxosEnclaveCall=a,exports.storeUtxoEnclaveCall=i;
|
|
@@ -31,10 +31,16 @@ export interface UtxoResponse {
|
|
|
31
31
|
timeStamp: string;
|
|
32
32
|
tokenId: number;
|
|
33
33
|
senderAddress: string;
|
|
34
|
-
|
|
34
|
+
/** Legacy field; maps to nullifyingKey for old deposits. */
|
|
35
|
+
shieldedPrivateKey?: string;
|
|
36
|
+
nullifyingKey?: string;
|
|
37
|
+
claimableSignature?: string;
|
|
38
|
+
spendingPublicKey?: string[];
|
|
39
|
+
H0?: [string, string];
|
|
40
|
+
isNewStyle?: boolean;
|
|
35
41
|
}
|
|
36
42
|
export interface GetUtxosResponse {
|
|
37
43
|
utxos: UtxoResponse[];
|
|
38
44
|
}
|
|
39
|
-
export declare const getUtxosEnclaveCall: (ethAddress: string, encryptedSignature: string, key: string, chainId: number) => Promise<GetUtxosResponse>;
|
|
45
|
+
export declare const getUtxosEnclaveCall: (ethAddress: string, encryptedSignature: string, key: string, chainId: number, isSolanaLedger: boolean, txMessageForSolanaLedger?: string) => Promise<GetUtxosResponse>;
|
|
40
46
|
export {};
|
package/API/enclaveUtxoCalls.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { httpClient as e } from "../data-structures/http/HttpClient.mjs";
|
|
2
2
|
import "../data-structures/http/index.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { ENCLAVE_URL as t } from "../functions/snarkjs/constant.mjs";
|
|
4
4
|
import { Mutex as n } from "async-mutex";
|
|
5
5
|
//#region libs/shared/common/src/API/enclaveUtxoCalls.ts
|
|
6
6
|
var r = new n(), i = async (n, i, a) => r.runExclusive(async () => await e.post(`${t}/decrypt-utxos`, {
|
|
@@ -12,11 +12,13 @@ var r = new n(), i = async (n, i, a) => r.runExclusive(async () => await e.post(
|
|
|
12
12
|
encryptedUtxo: r,
|
|
13
13
|
key: i,
|
|
14
14
|
chainId: a
|
|
15
|
-
}), o = async (n, r, i, a) => await e.post(`${t}/get-utxos`, {
|
|
15
|
+
}), o = async (n, r, i, a, o, s) => await e.post(`${t}/get-utxos`, {
|
|
16
16
|
ethAddress: n,
|
|
17
17
|
encryptedSignature: r,
|
|
18
18
|
key: i,
|
|
19
|
-
chainId: a
|
|
19
|
+
chainId: a,
|
|
20
|
+
isSolanaLedger: o,
|
|
21
|
+
txMessageForSolanaLedger: s
|
|
20
22
|
});
|
|
21
23
|
//#endregion
|
|
22
24
|
export { i as decryptUtxoEnclaveCall, o as getUtxosEnclaveCall, a as storeUtxoEnclaveCall };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.cjs`);var r=async r=>{let{commitments:i,
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.cjs`);var r=async r=>{let{commitments:i,nullifiers:a}=await n.httpClient.get(`${t.SNAPSHOT_SERVER_URL}${e.API_CONFIG.ROUTES.getSnapshots(r)}`),[o,s]=await Promise.all([n.httpClient.get(i.url).then(e=>({...e,...i})),n.httpClient.get(a.url).then(e=>({...e,...a}))]);return{commitments:o,nullifiers:s}};exports.fetchSnapshots=r;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { MerkleTreeJson } from '../data-structures/merkle-tree/MerkleTree';
|
|
2
|
-
import {
|
|
3
|
-
import { ApprovedUtxo, EncryptedOutputWithCommitment, EncryptedOutputWithSign } from '../types';
|
|
2
|
+
import { EncryptedOutputWithCommitment, EncryptedOutputWithSign } from '../types';
|
|
4
3
|
export interface ICommitmentsTreeSnapshot {
|
|
5
4
|
merkleTree: MerkleTreeJson;
|
|
6
5
|
latestBlockNumber: number;
|
|
@@ -9,29 +8,12 @@ export interface ICommitmentsTreeSnapshot {
|
|
|
9
8
|
chainId: number;
|
|
10
9
|
encryptedOutputsByCommitment: EncryptedOutputWithCommitment[];
|
|
11
10
|
}
|
|
12
|
-
export interface IAccessTokenTreeSnapshot {
|
|
13
|
-
merkleTree: MerkleTreeJson;
|
|
14
|
-
senderAddresses: string[];
|
|
15
|
-
senderAddressIndexMap?: SenderAddressIndexMapJson;
|
|
16
|
-
latestBlockNumber: number;
|
|
17
|
-
accessTokenContractAddress: string;
|
|
18
|
-
chainId: number;
|
|
19
|
-
}
|
|
20
|
-
export interface IApprovalsSnapshot {
|
|
21
|
-
approvals: Record<string, ApprovedUtxo<string>[]>;
|
|
22
|
-
events: string[];
|
|
23
|
-
latestBlockNumber: number;
|
|
24
|
-
hinkalAddress: string;
|
|
25
|
-
chainId: number;
|
|
26
|
-
}
|
|
27
11
|
export interface INullifiersSnapshot {
|
|
28
12
|
nullifiers: string[];
|
|
29
13
|
latestBlockNumber: number;
|
|
30
14
|
}
|
|
31
15
|
export interface ISnapshotsResponse {
|
|
32
16
|
commitments: ICommitmentsTreeSnapshot;
|
|
33
|
-
accessTokens: IAccessTokenTreeSnapshot;
|
|
34
17
|
nullifiers: INullifiersSnapshot;
|
|
35
|
-
approvals?: IApprovalsSnapshot;
|
|
36
18
|
}
|
|
37
19
|
export declare const fetchSnapshots: (chainId: number) => Promise<ISnapshotsResponse>;
|
|
@@ -4,29 +4,16 @@ import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
|
4
4
|
import "../data-structures/http/index.mjs";
|
|
5
5
|
//#region libs/shared/common/src/API/fetchCommitmentsCache.ts
|
|
6
6
|
var r = async (r) => {
|
|
7
|
-
let { commitments: i,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
...a
|
|
15
|
-
})),
|
|
16
|
-
n.get(o.url).then((e) => ({
|
|
17
|
-
...e,
|
|
18
|
-
...o
|
|
19
|
-
})),
|
|
20
|
-
s ? n.get(s.url).then((e) => ({
|
|
21
|
-
...e,
|
|
22
|
-
...s
|
|
23
|
-
})) : void 0
|
|
24
|
-
]);
|
|
7
|
+
let { commitments: i, nullifiers: a } = await n.get(`${t}${e.ROUTES.getSnapshots(r)}`), [o, s] = await Promise.all([n.get(i.url).then((e) => ({
|
|
8
|
+
...e,
|
|
9
|
+
...i
|
|
10
|
+
})), n.get(a.url).then((e) => ({
|
|
11
|
+
...e,
|
|
12
|
+
...a
|
|
13
|
+
}))]);
|
|
25
14
|
return {
|
|
26
|
-
commitments:
|
|
27
|
-
|
|
28
|
-
nullifiers: u,
|
|
29
|
-
approvals: d
|
|
15
|
+
commitments: o,
|
|
16
|
+
nullifiers: s
|
|
30
17
|
};
|
|
31
18
|
};
|
|
32
19
|
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getAnyRecipientInfo: (recipientAddress: string) => Promise<string | null>;
|
package/API/getServerURL.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/vite.constants.cjs`),t=require(`../constants/server.constants.cjs`);var n=()=>{switch(e.deploymentMode){case e.DEPLOYMENT_MODE.DEVELOPMENT:return
|
|
1
|
+
const e=require(`../constants/vite.constants.cjs`),t=require(`../constants/server.constants.cjs`);var n=(()=>{switch(e.deploymentMode){case e.DEPLOYMENT_MODE.DEVELOPMENT:return t.STAGING_URL;case e.DEPLOYMENT_MODE.PLAYGROUND:return t.PLAYGROUND_URL;case e.DEPLOYMENT_MODE.STAGING:return t.STAGING_URL;case e.DEPLOYMENT_MODE.PRODUCTION:return t.PRODUCTION_URL;default:return t.PRODUCTION_URL}})(),r=()=>`${n}${t.SERVER_URL_ENDPOINT}`,i=()=>`${n}${t.RELAYER_URL_ENDPOINT}`,a=()=>`${n}${t.SNAPSHOT_SERVER_URL_ENDPOINT}`,o=()=>`${n}${t.DATA_SERVER_URL_ENDPOINT}`,s=()=>`${n}${t.FUND_COMPLIANCE_URL_ENDPOINT}`,c=()=>{switch(e.deploymentMode){case e.DEPLOYMENT_MODE.DEVELOPMENT:return t.ENCLAVE_API_STAGING_URL;case e.DEPLOYMENT_MODE.PLAYGROUND:return t.ENCLAVE_API_STAGING_URL;case e.DEPLOYMENT_MODE.STAGING:return t.ENCLAVE_API_STAGING_URL;case e.DEPLOYMENT_MODE.PRODUCTION:return t.ENCLAVE_API_PRODUCTION_URL;default:return t.ENCLAVE_API_PRODUCTION_URL}},l=r(),u=i(),d=a(),f=o(),p=s(),m=c();exports.BACK_END_URL=n,exports.DATA_SERVER_URL=f,exports.ENCLAVE_API_URL=m,exports.FUND_COMPLIANCE_URL=p,exports.RELAYER_URL=u,exports.SERVER_URL=l,exports.SNAPSHOT_SERVER_URL=d;
|
package/API/getServerURL.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
export declare const BACK_END_URL: string;
|
|
1
2
|
export declare const SERVER_URL: string;
|
|
2
3
|
export declare const RELAYER_URL: string;
|
|
3
4
|
export declare const SNAPSHOT_SERVER_URL: string;
|
|
4
5
|
export declare const DATA_SERVER_URL: string;
|
|
6
|
+
export declare const FUND_COMPLIANCE_URL: string;
|
|
7
|
+
export declare const ENCLAVE_API_URL: string;
|
package/API/getServerURL.mjs
CHANGED
|
@@ -1,38 +1,21 @@
|
|
|
1
1
|
import { DEPLOYMENT_MODE as e, deploymentMode as t } from "../constants/vite.constants.mjs";
|
|
2
|
-
import { DATA_SERVER_URL_ENDPOINT as n,
|
|
3
|
-
|
|
4
|
-
var l = () => {
|
|
2
|
+
import { DATA_SERVER_URL_ENDPOINT as n, ENCLAVE_API_PRODUCTION_URL as r, ENCLAVE_API_STAGING_URL as i, FUND_COMPLIANCE_URL_ENDPOINT as a, PLAYGROUND_URL as o, PRODUCTION_URL as s, RELAYER_URL_ENDPOINT as c, SERVER_URL_ENDPOINT as l, SNAPSHOT_SERVER_URL_ENDPOINT as u, STAGING_URL as d } from "../constants/server.constants.mjs";
|
|
3
|
+
var f = (() => {
|
|
5
4
|
switch (t) {
|
|
6
|
-
case e.DEVELOPMENT: return
|
|
7
|
-
case e.PLAYGROUND: return
|
|
8
|
-
case e.STAGING: return
|
|
9
|
-
case e.PRODUCTION: return
|
|
10
|
-
default: return
|
|
5
|
+
case e.DEVELOPMENT: return d;
|
|
6
|
+
case e.PLAYGROUND: return o;
|
|
7
|
+
case e.STAGING: return d;
|
|
8
|
+
case e.PRODUCTION: return s;
|
|
9
|
+
default: return s;
|
|
11
10
|
}
|
|
12
|
-
}, u = () => {
|
|
11
|
+
})(), p = () => `${f}${l}`, m = () => `${f}${c}`, h = () => `${f}${u}`, g = () => `${f}${n}`, _ = () => `${f}${a}`, v = () => {
|
|
13
12
|
switch (t) {
|
|
14
|
-
case e.DEVELOPMENT: return
|
|
15
|
-
case e.PLAYGROUND: return
|
|
16
|
-
case e.STAGING: return
|
|
17
|
-
case e.PRODUCTION: return
|
|
18
|
-
default: return
|
|
13
|
+
case e.DEVELOPMENT: return i;
|
|
14
|
+
case e.PLAYGROUND: return i;
|
|
15
|
+
case e.STAGING: return i;
|
|
16
|
+
case e.PRODUCTION: return r;
|
|
17
|
+
default: return r;
|
|
19
18
|
}
|
|
20
|
-
},
|
|
21
|
-
switch (t) {
|
|
22
|
-
case e.DEVELOPMENT: return `${c}${s}`;
|
|
23
|
-
case e.PLAYGROUND: return `${r}${s}`;
|
|
24
|
-
case e.STAGING: return `${c}${s}`;
|
|
25
|
-
case e.PRODUCTION: return `${i}${s}`;
|
|
26
|
-
default: return `${i}${s}`;
|
|
27
|
-
}
|
|
28
|
-
}, f = () => {
|
|
29
|
-
switch (t) {
|
|
30
|
-
case e.DEVELOPMENT: return `${c}${n}`;
|
|
31
|
-
case e.PLAYGROUND: return `${r}${n}`;
|
|
32
|
-
case e.STAGING: return `${c}${n}`;
|
|
33
|
-
case e.PRODUCTION:
|
|
34
|
-
default: return `${i}${n}`;
|
|
35
|
-
}
|
|
36
|
-
}, p = l(), m = u(), h = d(), g = f();
|
|
19
|
+
}, y = p(), b = m(), x = h(), S = g(), C = _(), w = v();
|
|
37
20
|
//#endregion
|
|
38
|
-
export {
|
|
21
|
+
export { f as BACK_END_URL, S as DATA_SERVER_URL, w as ENCLAVE_API_URL, C as FUND_COMPLIANCE_URL, b as RELAYER_URL, y as SERVER_URL, x as SNAPSHOT_SERVER_URL };
|
package/API/getWebsiteURL.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/vite.constants.cjs`);require(`../constants/index.cjs`);var t=`http://localhost:4230`,n=`https://hinkal-playground-landing.netlify.app`,r=`https://staging-hinkal-landing.netlify.app`,i=`https://hinkal.
|
|
1
|
+
const e=require(`../constants/vite.constants.cjs`);require(`../constants/index.cjs`);var t=`http://localhost:4230`,n=`https://hinkal-playground-landing.netlify.app`,r=`https://staging-hinkal-landing.netlify.app`,i=`https://hinkal.io`,a=`http://localhost:4118`,o=`https://hinkal-playground-onboarding.netlify.app`,s=`https://staging-hinkal-onboarding.netlify.app`,c=`https://onboarding.hinkal.pro`,l=`http://localhost:4117`,u=`https://hinkal-playground.netlify.app`,d=`https://staging-hinkal-rewards.netlify.app`,f=`https://rewards.hinkal.pro`,p=`http://localhost:4116`,m=`https://hinkal-playground-pay.netlify.app`,h=`https://staging-hinkal-pay.netlify.app`,g=`https://pay.hinkal.io`,_=`http://localhost:4120`,v=`https://hinkal-playground.netlify.app`,y=`https://staging-hinkal-dashboard.netlify.app`,b=`https://prime.hinkal.io`,x=()=>{switch(e.deploymentMode){case e.DEPLOYMENT_MODE.DEVELOPMENT:return t;case e.DEPLOYMENT_MODE.PLAYGROUND:return n;case e.DEPLOYMENT_MODE.STAGING:return r;case e.DEPLOYMENT_MODE.PRODUCTION:default:return i}},S=()=>{switch(e.deploymentMode){case e.DEPLOYMENT_MODE.DEVELOPMENT:return a;case e.DEPLOYMENT_MODE.PLAYGROUND:return o;case e.DEPLOYMENT_MODE.STAGING:return s;case e.DEPLOYMENT_MODE.PRODUCTION:default:return c}},C=()=>{switch(e.deploymentMode){case e.DEPLOYMENT_MODE.DEVELOPMENT:return l;case e.DEPLOYMENT_MODE.PLAYGROUND:return u;case e.DEPLOYMENT_MODE.STAGING:return d;case e.DEPLOYMENT_MODE.PRODUCTION:default:return f}},w=()=>{switch(e.deploymentMode){case e.DEPLOYMENT_MODE.DEVELOPMENT:return p;case e.DEPLOYMENT_MODE.PLAYGROUND:return m;case e.DEPLOYMENT_MODE.STAGING:return h;case e.DEPLOYMENT_MODE.PRODUCTION:default:return g}},T=()=>{switch(e.deploymentMode){case e.DEPLOYMENT_MODE.DEVELOPMENT:return _;case e.DEPLOYMENT_MODE.PLAYGROUND:return v;case e.DEPLOYMENT_MODE.STAGING:return y;default:return b}};exports.getDashboardURL=T,exports.getHinkalLandingURL=x,exports.getPayURL=w,exports.getRewardsURL=C,exports.getWalletOnboardingURL=S;
|
package/API/getWebsiteURL.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export declare const getHinkalLandingURL: () => "http://localhost:4230" | "https://hinkal-playground-landing.netlify.app" | "https://staging-hinkal-landing.netlify.app"
|
|
1
|
+
export declare const getHinkalLandingURL: () => "https://hinkal.io" | "http://localhost:4230" | "https://hinkal-playground-landing.netlify.app" | "https://staging-hinkal-landing.netlify.app";
|
|
2
2
|
export declare const getWalletOnboardingURL: () => "http://localhost:4118" | "https://hinkal-playground-onboarding.netlify.app" | "https://staging-hinkal-onboarding.netlify.app" | "https://onboarding.hinkal.pro";
|
|
3
3
|
export declare const getRewardsURL: () => "http://localhost:4117" | "https://hinkal-playground.netlify.app" | "https://staging-hinkal-rewards.netlify.app" | "https://rewards.hinkal.pro";
|
|
4
|
-
export declare const getPayURL: () => "http://localhost:4116" | "https://hinkal-playground-pay.netlify.app" | "https://staging-hinkal-pay.netlify.app"
|
|
4
|
+
export declare const getPayURL: () => "https://pay.hinkal.io" | "http://localhost:4116" | "https://hinkal-playground-pay.netlify.app" | "https://staging-hinkal-pay.netlify.app";
|
|
5
|
+
export declare const getDashboardURL: () => "https://hinkal-playground.netlify.app" | "http://localhost:4120" | "https://staging-hinkal-dashboard.netlify.app" | "https://prime.hinkal.io";
|
package/API/getWebsiteURL.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DEPLOYMENT_MODE as e, deploymentMode as t } from "../constants/vite.constants.mjs";
|
|
2
2
|
import "../constants/index.mjs";
|
|
3
3
|
//#region libs/shared/common/src/API/getWebsiteURL.ts
|
|
4
|
-
var n = "http://localhost:4230", r = "https://hinkal-playground-landing.netlify.app", i = "https://staging-hinkal-landing.netlify.app", a = "https://hinkal.
|
|
4
|
+
var n = "http://localhost:4230", r = "https://hinkal-playground-landing.netlify.app", i = "https://staging-hinkal-landing.netlify.app", a = "https://hinkal.io", o = "http://localhost:4118", s = "https://hinkal-playground-onboarding.netlify.app", c = "https://staging-hinkal-onboarding.netlify.app", l = "https://onboarding.hinkal.pro", u = "http://localhost:4117", d = "https://hinkal-playground.netlify.app", f = "https://staging-hinkal-rewards.netlify.app", p = "https://rewards.hinkal.pro", m = "http://localhost:4116", h = "https://hinkal-playground-pay.netlify.app", g = "https://staging-hinkal-pay.netlify.app", _ = "https://pay.hinkal.io", v = "http://localhost:4120", y = "https://hinkal-playground.netlify.app", b = "https://staging-hinkal-dashboard.netlify.app", x = "https://prime.hinkal.io", S = () => {
|
|
5
5
|
switch (t) {
|
|
6
6
|
case e.DEVELOPMENT: return n;
|
|
7
7
|
case e.PLAYGROUND: return r;
|
|
@@ -9,7 +9,7 @@ var n = "http://localhost:4230", r = "https://hinkal-playground-landing.netlify.
|
|
|
9
9
|
case e.PRODUCTION:
|
|
10
10
|
default: return a;
|
|
11
11
|
}
|
|
12
|
-
},
|
|
12
|
+
}, C = () => {
|
|
13
13
|
switch (t) {
|
|
14
14
|
case e.DEVELOPMENT: return o;
|
|
15
15
|
case e.PLAYGROUND: return s;
|
|
@@ -17,7 +17,7 @@ var n = "http://localhost:4230", r = "https://hinkal-playground-landing.netlify.
|
|
|
17
17
|
case e.PRODUCTION:
|
|
18
18
|
default: return l;
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, w = () => {
|
|
21
21
|
switch (t) {
|
|
22
22
|
case e.DEVELOPMENT: return u;
|
|
23
23
|
case e.PLAYGROUND: return d;
|
|
@@ -25,7 +25,7 @@ var n = "http://localhost:4230", r = "https://hinkal-playground-landing.netlify.
|
|
|
25
25
|
case e.PRODUCTION:
|
|
26
26
|
default: return p;
|
|
27
27
|
}
|
|
28
|
-
},
|
|
28
|
+
}, T = () => {
|
|
29
29
|
switch (t) {
|
|
30
30
|
case e.DEVELOPMENT: return m;
|
|
31
31
|
case e.PLAYGROUND: return h;
|
|
@@ -33,6 +33,13 @@ var n = "http://localhost:4230", r = "https://hinkal-playground-landing.netlify.
|
|
|
33
33
|
case e.PRODUCTION:
|
|
34
34
|
default: return _;
|
|
35
35
|
}
|
|
36
|
+
}, E = () => {
|
|
37
|
+
switch (t) {
|
|
38
|
+
case e.DEVELOPMENT: return v;
|
|
39
|
+
case e.PLAYGROUND: return y;
|
|
40
|
+
case e.STAGING: return b;
|
|
41
|
+
default: return x;
|
|
42
|
+
}
|
|
36
43
|
};
|
|
37
44
|
//#endregion
|
|
38
|
-
export {
|
|
45
|
+
export { E as getDashboardURL, S as getHinkalLandingURL, T as getPayURL, w as getRewardsURL, C as getWalletOnboardingURL };
|
package/API/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./getServerURL.cjs`),require(`./getCoingeckoPrice.cjs`),require(`./callOneInchAPI.cjs`),require(`./callRelayer.cjs`),require(`./getGasEstimates.cjs`),require(`./getTokenPrice.cjs`),require(`./checkRisk.cjs`),require(`./relayCalls.cjs`),require(`./token-calls.cjs`),require(`./generate-trading-points.cjs`),require(`./brotherhoodCalls.cjs`),require(`./seedless-calls.cjs`),require(`./scheduled-transactions-calls.cjs`),require(`./temporaryWalletCalls.cjs`),require(`./privateSendRecipientInfoCalls.cjs`),require(`./privateSendEmailNotificationsCalls.cjs`),require(`./API.cjs`),require(`./tenderly.api.cjs`),require(`./callLifiAPI.cjs`),require(`./getWebsiteURL.cjs`),require(`./resolve-sns.cjs`),require(`./admin-calls.cjs`);
|
|
1
|
+
require(`./getServerURL.cjs`),require(`./getCoingeckoPrice.cjs`),require(`./callOneInchAPI.cjs`),require(`./callRelayer.cjs`),require(`./getGasEstimates.cjs`),require(`./getTokenPrice.cjs`),require(`./checkRisk.cjs`),require(`./callMonitor.cjs`),require(`./relayCalls.cjs`),require(`./token-calls.cjs`),require(`./generate-trading-points.cjs`),require(`./brotherhoodCalls.cjs`),require(`./seedless-calls.cjs`),require(`./scheduled-transactions-calls.cjs`),require(`./temporaryWalletCalls.cjs`),require(`./privateSendRecipientInfoCalls.cjs`),require(`./privateSendEmailNotificationsCalls.cjs`),require(`./API.cjs`),require(`./tenderly.api.cjs`),require(`./callLifiAPI.cjs`),require(`./getWebsiteURL.cjs`),require(`./resolve-sns.cjs`),require(`./admin-calls.cjs`),require(`./enclaveRecipientInfoCalls.cjs`);
|
package/API/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './callRelayer';
|
|
|
5
5
|
export * from './getGasEstimates';
|
|
6
6
|
export * from './getTokenPrice';
|
|
7
7
|
export * from './checkRisk';
|
|
8
|
+
export * from './callMonitor';
|
|
8
9
|
export * from './relayCalls';
|
|
9
10
|
export * from './API';
|
|
10
11
|
export * from './tenderly.api';
|
|
@@ -20,3 +21,4 @@ export * from './temporaryWalletCalls';
|
|
|
20
21
|
export * from './privateSendRecipientInfoCalls';
|
|
21
22
|
export * from './privateSendEmailNotificationsCalls';
|
|
22
23
|
export * from './admin-calls';
|
|
24
|
+
export * from './enclaveRecipientInfoCalls';
|
package/API/index.mjs
CHANGED
|
@@ -5,6 +5,7 @@ import "./callRelayer.mjs";
|
|
|
5
5
|
import "./getGasEstimates.mjs";
|
|
6
6
|
import "./getTokenPrice.mjs";
|
|
7
7
|
import "./checkRisk.mjs";
|
|
8
|
+
import "./callMonitor.mjs";
|
|
8
9
|
import "./relayCalls.mjs";
|
|
9
10
|
import "./token-calls.mjs";
|
|
10
11
|
import "./generate-trading-points.mjs";
|
|
@@ -20,3 +21,4 @@ import "./callLifiAPI.mjs";
|
|
|
20
21
|
import "./getWebsiteURL.mjs";
|
|
21
22
|
import "./resolve-sns.mjs";
|
|
22
23
|
import "./admin-calls.mjs";
|
|
24
|
+
import "./enclaveRecipientInfoCalls.mjs";
|
package/API/kycCalls.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.cjs`);async function r(r){return n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.checkKycStatus}`,{ethereumAddress:r})}async function i(r,i,a){return n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.startUserVerification}`,{ethereumAddress:r,verificationSessionId:i,verificationType:a})}async function a(r,i,a
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.cjs`);async function r(r){return n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.checkKycStatus}`,{ethereumAddress:r})}async function i(r,i,a){return n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.startUserVerification}`,{ethereumAddress:r,verificationSessionId:i,verificationType:a})}async function a(r,i,a,o){return n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.startReclaimVerification}`,{ethereumAddress:i,providerId:r,userSignature:a,withSignature:o})}var o=async()=>(await n.httpClient.get(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.zkMeAccessToken}`)).accessToken;exports.getReclaimVerificationRequest=a,exports.getUserKycStatus=r,exports.getZkMeAccessToken=o,exports.setAiPriseVerificationUrl=i;
|
package/API/kycCalls.d.ts
CHANGED
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import { KycVerificationResult, Passports, VERIFICATION_TYPE } from '../types/kyc.types';
|
|
2
|
-
import { SignatureData } from '../types/crypto.types';
|
|
3
2
|
interface IGetKycStatus {
|
|
4
3
|
verificationResult: KycVerificationResult;
|
|
5
4
|
passportIds?: Passports[];
|
|
6
5
|
}
|
|
7
6
|
export declare function getUserKycStatus(ethereumOrSolanaAddress: string): Promise<IGetKycStatus>;
|
|
8
7
|
export declare function setAiPriseVerificationUrl(ethereumAddress: string, verificationSessionId: string, verificationType: VERIFICATION_TYPE): Promise<any>;
|
|
9
|
-
interface AccessTokenSignatureResponse {
|
|
10
|
-
signatureData: SignatureData;
|
|
11
|
-
}
|
|
12
|
-
export declare function getAccessTokenSignature(chainId: number, ethereumAddress: string, accessKey: string): Promise<AccessTokenSignatureResponse>;
|
|
13
8
|
interface ReclaimVerificationRequestResponse {
|
|
14
9
|
reclaimProofRequestConfig: string;
|
|
15
10
|
message?: string;
|
package/API/kycCalls.mjs
CHANGED
|
@@ -13,14 +13,7 @@ async function i(r, i, a) {
|
|
|
13
13
|
verificationType: a
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
|
-
async function a(r, i, a) {
|
|
17
|
-
return n.post(`${t}${e.ROUTES.getUserSignature}`, {
|
|
18
|
-
chainId: r,
|
|
19
|
-
ethereumAddress: i,
|
|
20
|
-
accessKey: a
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
async function o(r, i, a, o) {
|
|
16
|
+
async function a(r, i, a, o) {
|
|
24
17
|
return n.post(`${t}${e.ROUTES.startReclaimVerification}`, {
|
|
25
18
|
ethereumAddress: i,
|
|
26
19
|
providerId: r,
|
|
@@ -28,6 +21,6 @@ async function o(r, i, a, o) {
|
|
|
28
21
|
withSignature: o
|
|
29
22
|
});
|
|
30
23
|
}
|
|
31
|
-
var
|
|
24
|
+
var o = async () => (await n.get(`${t}${e.ROUTES.zkMeAccessToken}`)).accessToken;
|
|
32
25
|
//#endregion
|
|
33
|
-
export { a as
|
|
26
|
+
export { a as getReclaimVerificationRequest, r as getUserKycStatus, o as getZkMeAccessToken, i as setAiPriseVerificationUrl };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.cjs`);var r=async r=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.cjs`);var r=async r=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.privateSendAllocateRecipientInfos}`,r);exports.allocatePrivateSendRecipientInfos=r;
|
|
@@ -2,20 +2,10 @@ export interface PrivateSendAllocation {
|
|
|
2
2
|
recipientAddress: string;
|
|
3
3
|
recipientInfo: string | undefined;
|
|
4
4
|
}
|
|
5
|
-
export interface TopUpPrivateSendRecipientInfosRequest {
|
|
6
|
-
ethereumAddress: string;
|
|
7
|
-
recipientInfos: string[];
|
|
8
|
-
targetCount?: number;
|
|
9
|
-
}
|
|
10
|
-
export interface TopUpPrivateSendRecipientInfosResponse {
|
|
11
|
-
availableCount: number;
|
|
12
|
-
targetCount: number;
|
|
13
|
-
}
|
|
14
5
|
export interface AllocatePrivateSendRecipientInfosRequest {
|
|
15
6
|
recipientAddresses: string[];
|
|
16
7
|
}
|
|
17
8
|
export interface AllocatePrivateSendRecipientInfosResponse {
|
|
18
9
|
allocations: PrivateSendAllocation[];
|
|
19
10
|
}
|
|
20
|
-
export declare const topUpPrivateSendRecipientInfos: (request: TopUpPrivateSendRecipientInfosRequest) => Promise<TopUpPrivateSendRecipientInfosResponse>;
|
|
21
11
|
export declare const allocatePrivateSendRecipientInfos: (request: AllocatePrivateSendRecipientInfosRequest) => Promise<AllocatePrivateSendRecipientInfosResponse>;
|
|
@@ -3,6 +3,6 @@ import { SERVER_URL as t } from "./getServerURL.mjs";
|
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
4
|
import "../data-structures/http/index.mjs";
|
|
5
5
|
//#region libs/shared/common/src/API/privateSendRecipientInfoCalls.ts
|
|
6
|
-
var r = async (r) => n.post(`${t}${e.ROUTES.
|
|
6
|
+
var r = async (r) => n.post(`${t}${e.ROUTES.privateSendAllocateRecipientInfos}`, r);
|
|
7
7
|
//#endregion
|
|
8
|
-
export {
|
|
8
|
+
export { r as allocatePrivateSendRecipientInfos };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);var r=(r,i)=>n.httpClient.post(`${t.RELAYER_URL}${e.RELAYER_CONFIG.getScheduledTransactions}`,{isSolana:r,hashedEthereumAddress:i}),
|
|
1
|
+
const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);var r=r=>n.httpClient.get(`${t.RELAYER_URL}${e.RELAYER_CONFIG.getScheduledTransactionById(r)}`),i=(r,i,a)=>n.httpClient.post(`${t.RELAYER_URL}${e.RELAYER_CONFIG.getScheduledTransactions}`,{isSolana:r,hashedEthereumAddress:i,hashedDashboardAccountId:a}),a=r=>n.httpClient.post(`${t.RELAYER_URL}${e.RELAYER_CONFIG.getScheduledTransactionsNullifierIndexes}`,r);exports.getScheduledTransactionById=r,exports.getScheduledTransactions=i,exports.getScheduledTransactionsNullifierIndexes=a;
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import { ScheduledTransactionResponseItem } from '../types';
|
|
1
|
+
import { ScheduledTransactionItemStatus, ScheduledTransactionResponseItem } from '../types';
|
|
2
|
+
export interface ScheduledTransactionByIdResponse {
|
|
3
|
+
scheduleId: string;
|
|
4
|
+
chainId: number;
|
|
5
|
+
transactions: ScheduledTransactionItemStatus[];
|
|
6
|
+
}
|
|
2
7
|
interface ScheduledTransactionResponseInterface {
|
|
3
8
|
transactions: ScheduledTransactionResponseItem[];
|
|
4
9
|
}
|
|
5
|
-
export declare const
|
|
10
|
+
export declare const getScheduledTransactionById: (scheduleId: string) => Promise<ScheduledTransactionByIdResponse>;
|
|
11
|
+
export declare const getScheduledTransactions: (isSolana: boolean, hashedEthereumAddress?: string, hashedDashboardAccountId?: string) => Promise<ScheduledTransactionResponseInterface>;
|
|
6
12
|
interface ScheduledTransactionsNullifierIndexesRequest {
|
|
7
13
|
hashedEthereumAddress: string;
|
|
8
14
|
nullifiers: string[];
|
|
@@ -2,9 +2,10 @@ import { RELAYER_CONFIG as e } from "../constants/server.constants.mjs";
|
|
|
2
2
|
import { RELAYER_URL as t } from "./getServerURL.mjs";
|
|
3
3
|
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
|
|
4
4
|
//#region libs/shared/common/src/API/scheduled-transactions-calls.ts
|
|
5
|
-
var r = (r, i) => n.post(`${t}${e.getScheduledTransactions}`, {
|
|
5
|
+
var r = (r) => n.get(`${t}${e.getScheduledTransactionById(r)}`), i = (r, i, a) => n.post(`${t}${e.getScheduledTransactions}`, {
|
|
6
6
|
isSolana: r,
|
|
7
|
-
hashedEthereumAddress: i
|
|
8
|
-
|
|
7
|
+
hashedEthereumAddress: i,
|
|
8
|
+
hashedDashboardAccountId: a
|
|
9
|
+
}), a = (r) => n.post(`${t}${e.getScheduledTransactionsNullifierIndexes}`, r);
|
|
9
10
|
//#endregion
|
|
10
|
-
export { r as
|
|
11
|
+
export { r as getScheduledTransactionById, i as getScheduledTransactions, a as getScheduledTransactionsNullifierIndexes };
|
package/API/tenderly.api.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../constants/chains.constants.cjs`),t=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.cjs`);var n=`7o1iPUgCIjLI0rSxj2yuz9-Z3052uUc4`,r=`https://api.tenderly.co/api/v1/account/hinkal-org/project/project`,i={"X-Access-Key":n},a=async e=>await t.httpClient.post(`${r}/simulate`,{...e},{headers:i}),o={[e.chainIds.optimism]:`https://optimism.gateway.tenderly.co/2A3r4RCMoAZVmQOpNqRO29`,[e.chainIds.
|
|
1
|
+
const e=require(`../constants/chains.constants.cjs`),t=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.cjs`);var n=`7o1iPUgCIjLI0rSxj2yuz9-Z3052uUc4`,r=`https://api.tenderly.co/api/v1/account/hinkal-org/project/project`,i={"X-Access-Key":n},a=async e=>await t.httpClient.post(`${r}/simulate`,{...e},{headers:i}),o={[e.chainIds.optimism]:`https://optimism.gateway.tenderly.co/2A3r4RCMoAZVmQOpNqRO29`,[e.chainIds.optimismTest]:`https://optimism.gateway.tenderly.co/2A3r4RCMoAZVmQOpNqRO29`,[e.chainIds.base]:`https://base.gateway.tenderly.co/73UtIBn1YiCyhqRJuKTkWl`,[e.chainIds.ethMainnet]:`https://mainnet.gateway.tenderly.co/SW3mROrzKEQYSq3RkStJ7`,[e.chainIds.arbMainnet]:`https://arbitrum.gateway.tenderly.co/4dUF2wEnsmvFw9fqLpoLga`,[e.chainIds.polygon]:`https://polygon.gateway.tenderly.co/32hCaUScB41nXgyzCmeDVu`},s=async(e,n)=>await t.httpClient.post(o[e],{jsonrpc:`2.0`,id:0,method:`tenderly_simulateTransaction`,params:n.params},{headers:i}),c=async(e,n)=>await t.httpClient.post(o[e],{jsonrpc:`2.0`,id:0,method:`tenderly_simulateBundle`,params:n.params},{headers:i}),l=async(e,n,r)=>await t.httpClient.post(o[e],{jsonrpc:`2.0`,id:0,method:`tenderly_getStorageChanges`,params:[{address:n,offset:r}]},{headers:i}),u={rpcGetStorageChanges:l,rpcSimulateTransaction:s,rpcSimulateBundle:c,simulateTx:a};exports.WALLET_API=u,exports.rpcGetStorageChanges=l,exports.rpcSimulateBundle=c,exports.rpcSimulateTransaction=s,exports.simulateTx=a,exports.tenderlyRpcLinks=o;
|
package/API/tenderly.api.d.ts
CHANGED
|
@@ -3,9 +3,9 @@ import { chainIds } from '../constants/chains.constants';
|
|
|
3
3
|
export declare const simulateTx: (simulateTxBody: SimulateTxBody) => Promise<SimulateTxResponse>;
|
|
4
4
|
export declare const tenderlyRpcLinks: {
|
|
5
5
|
[chainIds.optimism]: string;
|
|
6
|
+
[chainIds.optimismTest]: string;
|
|
6
7
|
[chainIds.base]: string;
|
|
7
8
|
[chainIds.ethMainnet]: string;
|
|
8
|
-
[chainIds.avalanche]: string;
|
|
9
9
|
[chainIds.arbMainnet]: string;
|
|
10
10
|
[chainIds.polygon]: string;
|
|
11
11
|
};
|
package/API/tenderly.api.mjs
CHANGED
|
@@ -4,9 +4,9 @@ import "../data-structures/http/index.mjs";
|
|
|
4
4
|
//#region libs/shared/common/src/API/tenderly.api.ts
|
|
5
5
|
var n = "7o1iPUgCIjLI0rSxj2yuz9-Z3052uUc4", r = "https://api.tenderly.co/api/v1/account/hinkal-org/project/project", i = { "X-Access-Key": n }, a = async (e) => await t.post(`${r}/simulate`, { ...e }, { headers: i }), o = {
|
|
6
6
|
[e.optimism]: "https://optimism.gateway.tenderly.co/2A3r4RCMoAZVmQOpNqRO29",
|
|
7
|
+
[e.optimismTest]: "https://optimism.gateway.tenderly.co/2A3r4RCMoAZVmQOpNqRO29",
|
|
7
8
|
[e.base]: "https://base.gateway.tenderly.co/73UtIBn1YiCyhqRJuKTkWl",
|
|
8
9
|
[e.ethMainnet]: "https://mainnet.gateway.tenderly.co/SW3mROrzKEQYSq3RkStJ7",
|
|
9
|
-
[e.avalanche]: "https://avalanche.gateway.tenderly.co/2YdoJTNLCUHfzwvqIUVgwZ",
|
|
10
10
|
[e.arbMainnet]: "https://arbitrum.gateway.tenderly.co/4dUF2wEnsmvFw9fqLpoLga",
|
|
11
11
|
[e.polygon]: "https://polygon.gateway.tenderly.co/32hCaUScB41nXgyzCmeDVu"
|
|
12
12
|
}, s = async (e, n) => await t.post(o[e], {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../types/external-action.types.cjs`),t=require(`./chains.constants.cjs`);require(`../types/index.cjs`);var n=`0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2`,r={[e.ExternalActionId.Uniswap]:{[t.chainIds.ethMainnet]:`0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45`,[t.chainIds.polygon]:`0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45`,[t.chainIds.optimism]:`0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45`,[t.chainIds.
|
|
1
|
+
const e=require(`../types/external-action.types.cjs`),t=require(`./chains.constants.cjs`);require(`../types/index.cjs`);var n=`0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2`,r={[e.ExternalActionId.Uniswap]:{[t.chainIds.ethMainnet]:`0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45`,[t.chainIds.polygon]:`0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45`,[t.chainIds.optimism]:`0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45`,[t.chainIds.optimismTest]:`0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45`,[t.chainIds.arbMainnet]:`0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45`,[t.chainIds.bnbMainnet]:`0xB971eF87ede563556b2ED4b1C0b0019111Dd85d2`,[t.chainIds.base]:`0x2626664c2603336E57B271c5C0b26F421741e481`},[e.ExternalActionId.Odos]:{[t.chainIds.ethMainnet]:`0xCf5540fFFCdC3d510B18bFcA6d2b9987b0772559`,[t.chainIds.polygon]:`0x4E3288c9ca110bCC82bf38F09A7b425c095d92Bf`,[t.chainIds.optimism]:`0xCa423977156BB05b13A2BA3b76Bc5419E2fE9680`,[t.chainIds.optimismTest]:`0xCa423977156BB05b13A2BA3b76Bc5419E2fE9680`,[t.chainIds.arbMainnet]:`0xa669e7A0d4b3e4Fa48af2dE86BD4CD7126Be4e13`,[t.chainIds.bnbMainnet]:`0x89b8AA89FDd0507a99d334CBe3C808fAFC7d850E`,[t.chainIds.base]:`0x19cEeAd7105607Cd444F5ad10dd51356436095a1`},[e.ExternalActionId.OneInch]:{[t.chainIds.ethMainnet]:`0x1111111254EEB25477B68fb85Ed929f73A960582`,[t.chainIds.polygon]:`0x1111111254EEB25477B68fb85Ed929f73A960582`,[t.chainIds.optimism]:`0x1111111254EEB25477B68fb85Ed929f73A960582`,[t.chainIds.optimismTest]:`0x1111111254EEB25477B68fb85Ed929f73A960582`,[t.chainIds.arbMainnet]:`0x1111111254EEB25477B68fb85Ed929f73A960582`,[t.chainIds.bnbMainnet]:`0x1111111254EEB25477B68fb85Ed929f73A960582`,[t.chainIds.base]:`0x1111111254EEB25477B68fb85Ed929f73A960582`},[e.ExternalActionId.Lifi]:{[t.chainIds.ethMainnet]:`0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE`,[t.chainIds.polygon]:`0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE`,[t.chainIds.optimism]:`0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE`,[t.chainIds.optimismTest]:`0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE`,[t.chainIds.arbMainnet]:`0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE`,[t.chainIds.bnbMainnet]:`0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE`,[t.chainIds.base]:`0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE`,[t.chainIds.tempo]:`0x2cAcAE8e22418E65dcf7651c67aEbe6288EB8243`,[t.chainIds.solanaMainnet]:`3i5JeuZuUxeKtVysUnwQNGerJP2bSMX9fTFfS4Nxe3Br`,[t.chainIds.solanaLocalnet]:`3i5JeuZuUxeKtVysUnwQNGerJP2bSMX9fTFfS4Nxe3Br`}},i={[t.chainIds.ethMainnet]:`0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2`,[t.chainIds.polygon]:`0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270`,[t.chainIds.optimism]:`0x4200000000000000000000000000000000000006`,[t.chainIds.optimismTest]:`0x4200000000000000000000000000000000000006`,[t.chainIds.arbMainnet]:`0x82aF49447D8a07e3bd95BD0d56f35241523fBab1`,[t.chainIds.bnbMainnet]:`0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c`,[t.chainIds.base]:`0x4200000000000000000000000000000000000006`},a={[t.chainIds.ethMainnet]:`0xdaC7Fb8AC2e47F412e8556Fd13256D90FBae08CD`,[t.chainIds.polygon]:`0x9759Baf5eEfa817E3FdF4C488ED51a334e948C05`,[t.chainIds.optimism]:`0xDe6A7d13c7E01582F5989b14cdf64d4bc6608364`,[t.chainIds.optimismTest]:`0xDe6A7d13c7E01582F5989b14cdf64d4bc6608364`,[t.chainIds.arbMainnet]:`0xF43D84490c6A155f2DDDF501db378D77151590f4`,[t.chainIds.bnbMainnet]:`0x5fa6773A7dC2CA3fB411f9Ef157F30e91aa1e53d`,[t.chainIds.base]:`0x86B9e7F2698C0776b988085b5Ca8d7D6A1Dff74b`},o={[t.chainIds.ethMainnet]:`0x1D69943ea7D9874b43f9FbcC2B6a4f0f433F602d`,[t.chainIds.polygon]:`0x5181606B45302Bb7b83e03DC7c5390ec9e4d973f`,[t.chainIds.optimism]:`0x0720a259A8CaBb9ef0F6a6334fEB4da5f45a8579`,[t.chainIds.optimismTest]:`0x0720a259A8CaBb9ef0F6a6334fEB4da5f45a8579`,[t.chainIds.arbMainnet]:`0x7ae4AD3f4D2df012807C3CC50fc0d4bB19Cc9800`,[t.chainIds.bnbMainnet]:`0x4200000000000000000000000000000000000000`,[t.chainIds.base]:`0xB69B207994506697196E5C1Ce40233c06040BB79`};exports.NATIVE_TOKEN_WRAPPER_ADDRESSES=i,exports.SWAP_FEE_TAKER_ADDRESSES=o,exports.SWAP_ROUTER_ADDRESSES=r,exports.WETH_ERC20_TOKEN_ADDRESS=n,exports.WRAPPER_TOKEN_EXCHANGE_ADDRESSES=a;
|