@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
package/API/API.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`./callRelayer.cjs`),t=require(`./getTokenPrice.cjs`),n=require(`./
|
|
1
|
+
const e=require(`./callRelayer.cjs`),t=require(`./getTokenPrice.cjs`),n=require(`./callMonitor.cjs`),r=require(`./relayCalls.cjs`),i=require(`./kycCalls.cjs`),a=require(`./callOdosAPI.cjs`),o=require(`./simulate-transaction.cjs`),s=require(`./simulate-batch-tx.cjs`),c=require(`./token-calls.cjs`),l=require(`./get-token-data.cjs`),u=require(`./enclaveUtxoCalls.cjs`),d=require(`./generate-trading-points.cjs`),f=require(`./brotherhoodCalls.cjs`),p=require(`./leaderboardCalls.cjs`),m=require(`./referralsCalls.cjs`),h=require(`./accessCodeCalls.cjs`),g=require(`./rewardsUserCalls.cjs`),_=require(`./weeklyAnalyticCalls.cjs`),v=require(`./send-telegram-callback.cjs`),y=require(`./proxyAccountsCalls.cjs`),b=require(`./seedless-calls.cjs`),x=require(`./scheduled-transactions-calls.cjs`),S=require(`./temporaryWalletCalls.cjs`),C=require(`./onrampCalls.cjs`),w=require(`./get-token-price-chart-data.cjs`),T=require(`./privacy-score-calls.cjs`),E=require(`./privateSendRecipientInfoCalls.cjs`),D=require(`./privateSendNonceCalls.cjs`),O=require(`./snapshot-event-calls.cjs`),k=require(`./privateSendEmailNotificationsCalls.cjs`),A=require(`./tronSubsidyCalls.cjs`),j=require(`./dashboardAccountCalls.cjs`),M=require(`./dashboardContactCalls.cjs`),N=require(`./dashboardPayoutCalls.cjs`),P=require(`./dashboardAccountMemberCalls.cjs`),F=require(`./dashboardBalanceCalls.cjs`),I=require(`./dashboardTransactionCalls.cjs`);var L={getUserKycStatus:i.getUserKycStatus,setAiPriseVerificationUrl:i.setAiPriseVerificationUrl,getReclaimVerificationRequest:i.getReclaimVerificationRequest,getZkMeAccessToken:i.getZkMeAccessToken,getTokenPrices:t.getTokenPrices,getOdosPriceForToken:a.getOdosPriceForToken,getTokenPriceChartData:w.getTokenPriceChartData,getTokenPreviousDayPrices:t.getTokenPreviousDayPrices,getIdleRelay:r.getIdleRelay,generateTradingPoints:d.generateTradingPoints,generateAumPoints:d.generateAumPoints,getBrotherhoodUsers:f.getBrotherhoodUsers,getCurrentUserBrotherhoodUsers:f.getCurrentUserBrotherhoodUsers,getBrotherhood:f.getBrotherhood,editBrotherhood:f.editBrotherhood,createBrotherhood:f.createBrotherhood,getCurrentUserBrotherhood:f.getCurrentUserBrotherhood,getPublicBrotherhoods:f.getPublicBrotherhoods,leaveBrotherhood:f.leaveBrotherhood,joinBrotherhood:f.joinBrotherhood,getUserAnalytics:_.getUserAnalytics,getBrotherhoodAnalytics:_.getBrotherhoodAnalytics,connectRewardsUser:g.connectRewardsUser,updateRewardsUser:g.updateRewardsUser,getRewardsUser:g.getRewardsUser,checkUsernameAvailability:g.checkUsernameAvailability,disconnectSocialNetwork:g.disconnectSocialNetwork,getUserCurrentLeaderboard:p.getUserCurrentLeaderboard,getBrotherhoodsLeaderboard:p.getBrotherhoodsLeaderboard,getCurrentUserReferral:m.getCurrentUserReferral,submitReferralCode:m.submitReferralCode,getCurrentUserAppliedReferralCode:m.getCurrentUserAppliedReferralCode,submitAccessCode:h.submitAccessCode,getAccessCodeBenefits:h.getAccessCodeBenefits,simulateTransaction:o.simulateTransaction,simulateBatchTx:s.simulateBatchTx,tokensInfoCall:c.tokensInfoCall,getTokenData:l.getTokenData,decryptUtxoEnclaveCall:u.decryptUtxoEnclaveCall,storeUtxoEnclaveCall:u.storeUtxoEnclaveCall,getUtxosEnclaveCall:u.getUtxosEnclaveCall,sendTelegramCallback:v.sendTelegramCallback,getTasksProgress:g.getTasksProgress,getSwapStreak:g.getSwapStreak,getProxyAccounts:y.getProxyAccounts,updateProxyAccounts:y.updateProxyAccounts,getNftMultiplier:g.getNftMultiplier,monitor:n.monitor,callRelayerSolanaTransactBatchAPI:e.callRelayerSolanaTransactBatchAPI,seedlessInit:b.seedlessInit,seedlessBackup:b.seedlessBackup,seedlessCheckPassword:b.seedlessCheckPassword,seedlessStatus:b.seedlessStatus,seedlessSalt:b.seedlessSalt,getScheduledTransactions:x.getScheduledTransactions,getTemporaryWalletNonces:S.getTemporaryWalletNonces,addTemporaryWalletNonce:S.addTemporaryWalletNonce,removeTemporaryWalletNonce:S.removeTemporaryWalletNonce,encodeMoonPayBuyUrl:C.encodeMoonPayBuyUrl,generateMoonPayQuote:C.generateMoonPayQuote,getPrivateTransactionRatio:T.getPrivateTransactionRatio,savePrivacyScoreAndGetPrivacyRank:T.savePrivacyScoreAndGetPrivacyRank,allocatePrivateSendRecipientInfos:E.allocatePrivateSendRecipientInfos,syncPrivateSendNonce:D.syncPrivateSendNonce,reservePrivateSendNonceRange:D.reservePrivateSendNonceRange,getSnapshotServerEvents:O.getSnapshotServerEvents,sendPrivateSendEmailNotifications:k.sendPrivateSendEmailNotifications,checkTronSubsidyEligibility:A.checkTronSubsidyEligibility,recordTronSubsidyUsage:A.recordTronSubsidyUsage,getDashboardAccount:j.getDashboardAccount,updateDashboardAccount:j.updateDashboardAccount,addDashboardContact:M.addDashboardContact,deleteDashboardContact:M.deleteDashboardContact,deleteDashboardAccount:j.deleteDashboardAccount,updateDashboardContact:M.updateDashboardContact,getDashboardContacts:M.getDashboardContacts,updateUserProfile:P.updateUserProfile,sendDashboardInvitationEmail:P.sendDashboardInvitationEmail,removeMember:P.removeMember,editMember:P.editMember,createDashboardPayout:N.createDashboardPayout,getDashboardPayouts:N.getDashboardPayouts,syncDashboardBalances:F.syncDashboardBalances,getDashboardBalances:F.getDashboardBalances,changePayoutStatus:N.changePayoutStatus,createDashboardTransactions:I.createDashboardTransactions,getDashboardTransactions:I.getDashboardTransactions};exports.API=L;
|
package/API/API.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { getIdleRelay } from './relayCalls';
|
|
2
2
|
import { getTokenPreviousDayPrices, getTokenPrices } from './getTokenPrice';
|
|
3
|
-
import {
|
|
3
|
+
import { getReclaimVerificationRequest, getUserKycStatus, getZkMeAccessToken, setAiPriseVerificationUrl } from './kycCalls';
|
|
4
4
|
import { getOdosPriceForToken } from './callOdosAPI';
|
|
5
5
|
import { simulateTransaction } from './simulate-transaction';
|
|
6
6
|
import { simulateBatchTx } from './simulate-batch-tx';
|
|
7
7
|
import { tokensInfoCall } from './token-calls';
|
|
8
8
|
import { getTokenData } from './get-token-data';
|
|
9
9
|
import { decryptUtxoEnclaveCall, getUtxosEnclaveCall, storeUtxoEnclaveCall } from './enclaveUtxoCalls';
|
|
10
|
-
import { getSignatureEnclaveCall, storeSignatureEnclaveCall } from './enclaveSignatureCalls';
|
|
11
10
|
import { generateAumPoints, generateTradingPoints } from './generate-trading-points';
|
|
12
11
|
import { createBrotherhood, editBrotherhood, getBrotherhood, getBrotherhoodUsers, getCurrentUserBrotherhood, getCurrentUserBrotherhoodUsers, getPublicBrotherhoods, joinBrotherhood, leaveBrotherhood } from './brotherhoodCalls';
|
|
13
12
|
import { getBrotherhoodsLeaderboard, getUserCurrentLeaderboard } from './leaderboardCalls';
|
|
@@ -18,7 +17,6 @@ import { getBrotherhoodAnalytics, getUserAnalytics } from './weeklyAnalyticCalls
|
|
|
18
17
|
import { sendTelegramCallback } from './send-telegram-callback';
|
|
19
18
|
import { getProxyAccounts, updateProxyAccounts } from './proxyAccountsCalls';
|
|
20
19
|
import { monitor } from './callMonitor';
|
|
21
|
-
import { generateAddAccessToken, generateMultiPaymentDepositLimitless, generateProoflessDepositLimitless } from './solana-calls';
|
|
22
20
|
import { callRelayerSolanaTransactBatchAPI } from './callRelayer';
|
|
23
21
|
import { seedlessBackup, seedlessCheckPassword, seedlessInit, seedlessSalt, seedlessStatus } from './seedless-calls';
|
|
24
22
|
import { getScheduledTransactions } from './scheduled-transactions-calls';
|
|
@@ -26,15 +24,20 @@ import { addTemporaryWalletNonce, getTemporaryWalletNonces, removeTemporaryWalle
|
|
|
26
24
|
import { encodeMoonPayBuyUrl, generateMoonPayQuote } from './onrampCalls';
|
|
27
25
|
import { getTokenPriceChartData } from './get-token-price-chart-data';
|
|
28
26
|
import { getPrivateTransactionRatio, savePrivacyScoreAndGetPrivacyRank } from './privacy-score-calls';
|
|
29
|
-
import { allocatePrivateSendRecipientInfos
|
|
27
|
+
import { allocatePrivateSendRecipientInfos } from './privateSendRecipientInfoCalls';
|
|
30
28
|
import { reservePrivateSendNonceRange, syncPrivateSendNonce } from './privateSendNonceCalls';
|
|
31
29
|
import { getSnapshotServerEvents } from './snapshot-event-calls';
|
|
32
30
|
import { sendPrivateSendEmailNotifications } from './privateSendEmailNotificationsCalls';
|
|
33
31
|
import { checkTronSubsidyEligibility, recordTronSubsidyUsage } from './tronSubsidyCalls';
|
|
32
|
+
import { deleteDashboardAccount, getDashboardAccount, updateDashboardAccount } from './dashboardAccountCalls';
|
|
33
|
+
import { addDashboardContact, deleteDashboardContact, getDashboardContacts, updateDashboardContact } from './dashboardContactCalls';
|
|
34
|
+
import { changePayoutStatus, createDashboardPayout, getDashboardPayouts } from './dashboardPayoutCalls';
|
|
35
|
+
import { editMember, removeMember, sendDashboardInvitationEmail, updateUserProfile } from './dashboardAccountMemberCalls';
|
|
36
|
+
import { getDashboardBalances, syncDashboardBalances } from './dashboardBalanceCalls';
|
|
37
|
+
import { createDashboardTransactions, getDashboardTransactions } from './dashboardTransactionCalls';
|
|
34
38
|
export type IAPI = {
|
|
35
39
|
getUserKycStatus: typeof getUserKycStatus;
|
|
36
40
|
setAiPriseVerificationUrl: typeof setAiPriseVerificationUrl;
|
|
37
|
-
getAccessTokenSignature: typeof getAccessTokenSignature;
|
|
38
41
|
getReclaimVerificationRequest: typeof getReclaimVerificationRequest;
|
|
39
42
|
getZkMeAccessToken: typeof getZkMeAccessToken;
|
|
40
43
|
getTokenPrices: typeof getTokenPrices;
|
|
@@ -49,8 +52,6 @@ export type IAPI = {
|
|
|
49
52
|
decryptUtxoEnclaveCall: typeof decryptUtxoEnclaveCall;
|
|
50
53
|
storeUtxoEnclaveCall: typeof storeUtxoEnclaveCall;
|
|
51
54
|
getUtxosEnclaveCall: typeof getUtxosEnclaveCall;
|
|
52
|
-
storeSignatureEnclaveCall: typeof storeSignatureEnclaveCall;
|
|
53
|
-
getSignatureEnclaveCall: typeof getSignatureEnclaveCall;
|
|
54
55
|
generateTradingPoints: typeof generateTradingPoints;
|
|
55
56
|
getBrotherhoodUsers: typeof getBrotherhoodUsers;
|
|
56
57
|
getCurrentUserBrotherhoodUsers: typeof getCurrentUserBrotherhoodUsers;
|
|
@@ -83,9 +84,6 @@ export type IAPI = {
|
|
|
83
84
|
updateProxyAccounts: typeof updateProxyAccounts;
|
|
84
85
|
getNftMultiplier: typeof getNftMultiplier;
|
|
85
86
|
monitor: typeof monitor;
|
|
86
|
-
generateProoflessDepositLimitless: typeof generateProoflessDepositLimitless;
|
|
87
|
-
generateMultiPaymentDepositLimitless: typeof generateMultiPaymentDepositLimitless;
|
|
88
|
-
generateAddAccessToken: typeof generateAddAccessToken;
|
|
89
87
|
callRelayerSolanaTransactBatchAPI: typeof callRelayerSolanaTransactBatchAPI;
|
|
90
88
|
seedlessInit: typeof seedlessInit;
|
|
91
89
|
seedlessBackup: typeof seedlessBackup;
|
|
@@ -100,7 +98,6 @@ export type IAPI = {
|
|
|
100
98
|
generateMoonPayQuote: typeof generateMoonPayQuote;
|
|
101
99
|
getPrivateTransactionRatio: typeof getPrivateTransactionRatio;
|
|
102
100
|
savePrivacyScoreAndGetPrivacyRank: typeof savePrivacyScoreAndGetPrivacyRank;
|
|
103
|
-
topUpPrivateSendRecipientInfos: typeof topUpPrivateSendRecipientInfos;
|
|
104
101
|
allocatePrivateSendRecipientInfos: typeof allocatePrivateSendRecipientInfos;
|
|
105
102
|
syncPrivateSendNonce: typeof syncPrivateSendNonce;
|
|
106
103
|
reservePrivateSendNonceRange: typeof reservePrivateSendNonceRange;
|
|
@@ -108,5 +105,23 @@ export type IAPI = {
|
|
|
108
105
|
sendPrivateSendEmailNotifications: typeof sendPrivateSendEmailNotifications;
|
|
109
106
|
checkTronSubsidyEligibility: typeof checkTronSubsidyEligibility;
|
|
110
107
|
recordTronSubsidyUsage: typeof recordTronSubsidyUsage;
|
|
108
|
+
getDashboardAccount: typeof getDashboardAccount;
|
|
109
|
+
updateDashboardAccount: typeof updateDashboardAccount;
|
|
110
|
+
deleteDashboardAccount: typeof deleteDashboardAccount;
|
|
111
|
+
updateUserProfile: typeof updateUserProfile;
|
|
112
|
+
addDashboardContact: typeof addDashboardContact;
|
|
113
|
+
deleteDashboardContact: typeof deleteDashboardContact;
|
|
114
|
+
updateDashboardContact: typeof updateDashboardContact;
|
|
115
|
+
getDashboardContacts: typeof getDashboardContacts;
|
|
116
|
+
sendDashboardInvitationEmail: typeof sendDashboardInvitationEmail;
|
|
117
|
+
removeMember: typeof removeMember;
|
|
118
|
+
editMember: typeof editMember;
|
|
119
|
+
createDashboardPayout: typeof createDashboardPayout;
|
|
120
|
+
getDashboardPayouts: typeof getDashboardPayouts;
|
|
121
|
+
syncDashboardBalances: typeof syncDashboardBalances;
|
|
122
|
+
getDashboardBalances: typeof getDashboardBalances;
|
|
123
|
+
changePayoutStatus: typeof changePayoutStatus;
|
|
124
|
+
createDashboardTransactions: typeof createDashboardTransactions;
|
|
125
|
+
getDashboardTransactions: typeof getDashboardTransactions;
|
|
111
126
|
};
|
|
112
127
|
export declare const API: IAPI;
|
package/API/API.mjs
CHANGED
|
@@ -1,73 +1,76 @@
|
|
|
1
1
|
import { callRelayerSolanaTransactBatchAPI as e } from "./callRelayer.mjs";
|
|
2
2
|
import { getTokenPreviousDayPrices as t, getTokenPrices as n } from "./getTokenPrice.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { monitor as r } from "./callMonitor.mjs";
|
|
4
|
+
import { getIdleRelay as i } from "./relayCalls.mjs";
|
|
5
|
+
import { getReclaimVerificationRequest as a, getUserKycStatus as o, getZkMeAccessToken as s, setAiPriseVerificationUrl as c } from "./kycCalls.mjs";
|
|
5
6
|
import { getOdosPriceForToken as l } from "./callOdosAPI.mjs";
|
|
6
7
|
import { simulateTransaction as u } from "./simulate-transaction.mjs";
|
|
7
8
|
import { simulateBatchTx as d } from "./simulate-batch-tx.mjs";
|
|
8
9
|
import { tokensInfoCall as f } from "./token-calls.mjs";
|
|
9
10
|
import { getTokenData as p } from "./get-token-data.mjs";
|
|
10
11
|
import { decryptUtxoEnclaveCall as m, getUtxosEnclaveCall as h, storeUtxoEnclaveCall as g } from "./enclaveUtxoCalls.mjs";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
12
|
+
import { generateAumPoints as _, generateTradingPoints as v } from "./generate-trading-points.mjs";
|
|
13
|
+
import { createBrotherhood as y, editBrotherhood as b, getBrotherhood as x, getBrotherhoodUsers as S, getCurrentUserBrotherhood as C, getCurrentUserBrotherhoodUsers as w, getPublicBrotherhoods as T, joinBrotherhood as E, leaveBrotherhood as D } from "./brotherhoodCalls.mjs";
|
|
14
|
+
import { getBrotherhoodsLeaderboard as O, getUserCurrentLeaderboard as k } from "./leaderboardCalls.mjs";
|
|
15
|
+
import { getCurrentUserAppliedReferralCode as A, getCurrentUserReferral as j, submitReferralCode as M } from "./referralsCalls.mjs";
|
|
16
|
+
import { getAccessCodeBenefits as N, submitAccessCode as P } from "./accessCodeCalls.mjs";
|
|
17
|
+
import { checkUsernameAvailability as F, connectRewardsUser as I, disconnectSocialNetwork as L, getNftMultiplier as R, getRewardsUser as z, getSwapStreak as B, getTasksProgress as V, updateRewardsUser as H } from "./rewardsUserCalls.mjs";
|
|
18
|
+
import { getBrotherhoodAnalytics as U, getUserAnalytics as W } from "./weeklyAnalyticCalls.mjs";
|
|
19
|
+
import { sendTelegramCallback as G } from "./send-telegram-callback.mjs";
|
|
20
|
+
import { getProxyAccounts as K, updateProxyAccounts as q } from "./proxyAccountsCalls.mjs";
|
|
21
|
+
import { seedlessBackup as J, seedlessCheckPassword as Y, seedlessInit as X, seedlessSalt as Z, seedlessStatus as Q } from "./seedless-calls.mjs";
|
|
22
|
+
import { getScheduledTransactions as $ } from "./scheduled-transactions-calls.mjs";
|
|
23
|
+
import { addTemporaryWalletNonce as ee, getTemporaryWalletNonces as te, removeTemporaryWalletNonce as ne } from "./temporaryWalletCalls.mjs";
|
|
24
|
+
import { encodeMoonPayBuyUrl as re, generateMoonPayQuote as ie } from "./onrampCalls.mjs";
|
|
25
|
+
import { getTokenPriceChartData as ae } from "./get-token-price-chart-data.mjs";
|
|
26
|
+
import { getPrivateTransactionRatio as oe, savePrivacyScoreAndGetPrivacyRank as se } from "./privacy-score-calls.mjs";
|
|
27
|
+
import { allocatePrivateSendRecipientInfos as ce } from "./privateSendRecipientInfoCalls.mjs";
|
|
28
|
+
import { reservePrivateSendNonceRange as le, syncPrivateSendNonce as ue } from "./privateSendNonceCalls.mjs";
|
|
29
|
+
import { getSnapshotServerEvents as de } from "./snapshot-event-calls.mjs";
|
|
30
|
+
import { sendPrivateSendEmailNotifications as fe } from "./privateSendEmailNotificationsCalls.mjs";
|
|
31
|
+
import { checkTronSubsidyEligibility as pe, recordTronSubsidyUsage as me } from "./tronSubsidyCalls.mjs";
|
|
32
|
+
import { deleteDashboardAccount as he, getDashboardAccount as ge, updateDashboardAccount as _e } from "./dashboardAccountCalls.mjs";
|
|
33
|
+
import { addDashboardContact as ve, deleteDashboardContact as ye, getDashboardContacts as be, updateDashboardContact as xe } from "./dashboardContactCalls.mjs";
|
|
34
|
+
import { changePayoutStatus as Se, createDashboardPayout as Ce, getDashboardPayouts as we } from "./dashboardPayoutCalls.mjs";
|
|
35
|
+
import { editMember as Te, removeMember as Ee, sendDashboardInvitationEmail as De, updateUserProfile as Oe } from "./dashboardAccountMemberCalls.mjs";
|
|
36
|
+
import { getDashboardBalances as ke, syncDashboardBalances as Ae } from "./dashboardBalanceCalls.mjs";
|
|
37
|
+
import { createDashboardTransactions as je, getDashboardTransactions as Me } from "./dashboardTransactionCalls.mjs";
|
|
34
38
|
//#region libs/shared/common/src/API/API.ts
|
|
35
|
-
var
|
|
39
|
+
var Ne = {
|
|
36
40
|
getUserKycStatus: o,
|
|
37
41
|
setAiPriseVerificationUrl: c,
|
|
38
|
-
getAccessTokenSignature: i,
|
|
39
42
|
getReclaimVerificationRequest: a,
|
|
40
43
|
getZkMeAccessToken: s,
|
|
41
44
|
getTokenPrices: n,
|
|
42
45
|
getOdosPriceForToken: l,
|
|
43
|
-
getTokenPriceChartData:
|
|
46
|
+
getTokenPriceChartData: ae,
|
|
44
47
|
getTokenPreviousDayPrices: t,
|
|
45
|
-
getIdleRelay:
|
|
46
|
-
generateTradingPoints:
|
|
47
|
-
generateAumPoints:
|
|
48
|
-
getBrotherhoodUsers:
|
|
49
|
-
getCurrentUserBrotherhoodUsers:
|
|
50
|
-
getBrotherhood:
|
|
51
|
-
editBrotherhood:
|
|
52
|
-
createBrotherhood:
|
|
53
|
-
getCurrentUserBrotherhood:
|
|
54
|
-
getPublicBrotherhoods:
|
|
55
|
-
leaveBrotherhood:
|
|
56
|
-
joinBrotherhood:
|
|
57
|
-
getUserAnalytics:
|
|
58
|
-
getBrotherhoodAnalytics:
|
|
59
|
-
connectRewardsUser:
|
|
60
|
-
updateRewardsUser:
|
|
61
|
-
getRewardsUser:
|
|
62
|
-
checkUsernameAvailability:
|
|
63
|
-
disconnectSocialNetwork:
|
|
64
|
-
getUserCurrentLeaderboard:
|
|
65
|
-
getBrotherhoodsLeaderboard:
|
|
66
|
-
getCurrentUserReferral:
|
|
67
|
-
submitReferralCode:
|
|
68
|
-
getCurrentUserAppliedReferralCode:
|
|
69
|
-
submitAccessCode:
|
|
70
|
-
getAccessCodeBenefits:
|
|
48
|
+
getIdleRelay: i,
|
|
49
|
+
generateTradingPoints: v,
|
|
50
|
+
generateAumPoints: _,
|
|
51
|
+
getBrotherhoodUsers: S,
|
|
52
|
+
getCurrentUserBrotherhoodUsers: w,
|
|
53
|
+
getBrotherhood: x,
|
|
54
|
+
editBrotherhood: b,
|
|
55
|
+
createBrotherhood: y,
|
|
56
|
+
getCurrentUserBrotherhood: C,
|
|
57
|
+
getPublicBrotherhoods: T,
|
|
58
|
+
leaveBrotherhood: D,
|
|
59
|
+
joinBrotherhood: E,
|
|
60
|
+
getUserAnalytics: W,
|
|
61
|
+
getBrotherhoodAnalytics: U,
|
|
62
|
+
connectRewardsUser: I,
|
|
63
|
+
updateRewardsUser: H,
|
|
64
|
+
getRewardsUser: z,
|
|
65
|
+
checkUsernameAvailability: F,
|
|
66
|
+
disconnectSocialNetwork: L,
|
|
67
|
+
getUserCurrentLeaderboard: k,
|
|
68
|
+
getBrotherhoodsLeaderboard: O,
|
|
69
|
+
getCurrentUserReferral: j,
|
|
70
|
+
submitReferralCode: M,
|
|
71
|
+
getCurrentUserAppliedReferralCode: A,
|
|
72
|
+
submitAccessCode: P,
|
|
73
|
+
getAccessCodeBenefits: N,
|
|
71
74
|
simulateTransaction: u,
|
|
72
75
|
simulateBatchTx: d,
|
|
73
76
|
tokensInfoCall: f,
|
|
@@ -75,40 +78,52 @@ var Se = {
|
|
|
75
78
|
decryptUtxoEnclaveCall: m,
|
|
76
79
|
storeUtxoEnclaveCall: g,
|
|
77
80
|
getUtxosEnclaveCall: h,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
getNftMultiplier: B,
|
|
86
|
-
monitor: X,
|
|
87
|
-
generateProoflessDepositLimitless: $,
|
|
88
|
-
generateMultiPaymentDepositLimitless: Q,
|
|
89
|
-
generateAddAccessToken: Z,
|
|
81
|
+
sendTelegramCallback: G,
|
|
82
|
+
getTasksProgress: V,
|
|
83
|
+
getSwapStreak: B,
|
|
84
|
+
getProxyAccounts: K,
|
|
85
|
+
updateProxyAccounts: q,
|
|
86
|
+
getNftMultiplier: R,
|
|
87
|
+
monitor: r,
|
|
90
88
|
callRelayerSolanaTransactBatchAPI: e,
|
|
91
|
-
seedlessInit:
|
|
92
|
-
seedlessBackup:
|
|
93
|
-
seedlessCheckPassword:
|
|
94
|
-
seedlessStatus:
|
|
95
|
-
seedlessSalt:
|
|
96
|
-
getScheduledTransactions:
|
|
97
|
-
getTemporaryWalletNonces:
|
|
98
|
-
addTemporaryWalletNonce:
|
|
99
|
-
removeTemporaryWalletNonce:
|
|
100
|
-
encodeMoonPayBuyUrl:
|
|
101
|
-
generateMoonPayQuote:
|
|
102
|
-
getPrivateTransactionRatio:
|
|
103
|
-
savePrivacyScoreAndGetPrivacyRank:
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
89
|
+
seedlessInit: X,
|
|
90
|
+
seedlessBackup: J,
|
|
91
|
+
seedlessCheckPassword: Y,
|
|
92
|
+
seedlessStatus: Q,
|
|
93
|
+
seedlessSalt: Z,
|
|
94
|
+
getScheduledTransactions: $,
|
|
95
|
+
getTemporaryWalletNonces: te,
|
|
96
|
+
addTemporaryWalletNonce: ee,
|
|
97
|
+
removeTemporaryWalletNonce: ne,
|
|
98
|
+
encodeMoonPayBuyUrl: re,
|
|
99
|
+
generateMoonPayQuote: ie,
|
|
100
|
+
getPrivateTransactionRatio: oe,
|
|
101
|
+
savePrivacyScoreAndGetPrivacyRank: se,
|
|
102
|
+
allocatePrivateSendRecipientInfos: ce,
|
|
103
|
+
syncPrivateSendNonce: ue,
|
|
104
|
+
reservePrivateSendNonceRange: le,
|
|
105
|
+
getSnapshotServerEvents: de,
|
|
106
|
+
sendPrivateSendEmailNotifications: fe,
|
|
107
|
+
checkTronSubsidyEligibility: pe,
|
|
108
|
+
recordTronSubsidyUsage: me,
|
|
109
|
+
getDashboardAccount: ge,
|
|
110
|
+
updateDashboardAccount: _e,
|
|
111
|
+
addDashboardContact: ve,
|
|
112
|
+
deleteDashboardContact: ye,
|
|
113
|
+
deleteDashboardAccount: he,
|
|
114
|
+
updateDashboardContact: xe,
|
|
115
|
+
getDashboardContacts: be,
|
|
116
|
+
updateUserProfile: Oe,
|
|
117
|
+
sendDashboardInvitationEmail: De,
|
|
118
|
+
removeMember: Ee,
|
|
119
|
+
editMember: Te,
|
|
120
|
+
createDashboardPayout: Ce,
|
|
121
|
+
getDashboardPayouts: we,
|
|
122
|
+
syncDashboardBalances: Ae,
|
|
123
|
+
getDashboardBalances: ke,
|
|
124
|
+
changePayoutStatus: Se,
|
|
125
|
+
createDashboardTransactions: je,
|
|
126
|
+
getDashboardTransactions: Me
|
|
112
127
|
};
|
|
113
128
|
//#endregion
|
|
114
|
-
export {
|
|
129
|
+
export { Ne as API };
|
package/API/callMonitor.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`);var r=r=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.monitor}`,{address:r});exports.monitor=r;
|
|
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=r=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.monitor}`,{address:r}),i=async r=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.monitorBatch}`,{addresses:r});exports.monitor=r,exports.monitorBatch=i;
|
package/API/callMonitor.d.ts
CHANGED
|
@@ -1 +1,9 @@
|
|
|
1
1
|
export declare const monitor: (address: string) => Promise<void>;
|
|
2
|
+
type MonitorBatchResponse = {
|
|
3
|
+
riskyAddresses: {
|
|
4
|
+
address: string;
|
|
5
|
+
blockedReason?: string;
|
|
6
|
+
}[];
|
|
7
|
+
};
|
|
8
|
+
export declare const monitorBatch: (addresses: string[]) => Promise<MonitorBatchResponse>;
|
|
9
|
+
export {};
|
package/API/callMonitor.mjs
CHANGED
|
@@ -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/callMonitor.ts
|
|
6
|
-
var r = (r) => n.post(`${t}${e.ROUTES.monitor}`, { address: r });
|
|
6
|
+
var r = (r) => n.post(`${t}${e.ROUTES.monitor}`, { address: r }), i = async (r) => n.post(`${t}${e.ROUTES.monitorBatch}`, { addresses: r });
|
|
7
7
|
//#endregion
|
|
8
|
-
export { r as monitor };
|
|
8
|
+
export { r as monitor, i as monitorBatch };
|
package/API/callRelayer.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CircomDataJsonType, DimDataType } from '../types/circom-data.types';
|
|
1
|
+
import { CircomDataJsonType, CommitmentValidationDataType, DimDataType } from '../types/circom-data.types';
|
|
2
2
|
import { AuthorizationData } from '../types/hinkal.types';
|
|
3
3
|
import { AdminDataType } from '../types/admin.types';
|
|
4
4
|
import { SolanaTransactionBody } from '../types/solana.types';
|
|
@@ -9,6 +9,7 @@ export interface HinkalTransactionRequestBody {
|
|
|
9
9
|
c: [string, string];
|
|
10
10
|
dimData: DimDataType;
|
|
11
11
|
circomData: CircomDataJsonType;
|
|
12
|
+
commitmentValidationData?: CommitmentValidationDataType;
|
|
12
13
|
withUniswapWorkAround?: boolean;
|
|
13
14
|
authorizationData?: AuthorizationData;
|
|
14
15
|
adminData?: AdminDataType;
|
|
@@ -26,6 +27,7 @@ export interface HinkalTransactionBatchRequestBody {
|
|
|
26
27
|
hashedEthereumAddress: string;
|
|
27
28
|
txCompletionTime?: number;
|
|
28
29
|
ref?: string;
|
|
30
|
+
hashedDashboardAccountId?: string;
|
|
29
31
|
}
|
|
30
32
|
export interface SolanaTransactionBatchRequestBody {
|
|
31
33
|
chainId: number;
|
|
@@ -33,6 +35,7 @@ export interface SolanaTransactionBatchRequestBody {
|
|
|
33
35
|
hashedEthereumAddress: string;
|
|
34
36
|
txCompletionTime?: number;
|
|
35
37
|
ref?: string;
|
|
38
|
+
hashedDashboardAccountId?: string;
|
|
36
39
|
}
|
|
37
40
|
export declare function callRelayerTransactBatchAPI(requestBody: HinkalTransactionBatchRequestBody): Promise<any>;
|
|
38
41
|
export declare function callRelayerSolanaTransactBatchAPI(requestBody: SolanaTransactionBatchRequestBody): Promise<any>;
|
|
@@ -0,0 +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`);const r=require(`../constants/auth.constants.cjs`),i=require(`../functions/utils/auth.utils.cjs`);var a=async()=>n.httpClient.get(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.getDashboardAccount}`,{headers:i.getAuthHeaders(r.HINKAL_DASHBOARD_TOKEN)}),o=async a=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.updateDashboardAccount}`,a,{headers:i.getAuthHeaders(r.HINKAL_DASHBOARD_TOKEN)}),s=async()=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.deleteDashboardAccount}`,{},{headers:i.getAuthHeaders(r.HINKAL_DASHBOARD_TOKEN)});exports.deleteDashboardAccount=s,exports.getDashboardAccount=a,exports.updateDashboardAccount=o;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AccountMember, DashboardAccountClient } from '../types';
|
|
2
|
+
interface GetAndUpdateDashboardAccountResponse {
|
|
3
|
+
dashboardAccount: DashboardAccountClient;
|
|
4
|
+
currentMember: AccountMember;
|
|
5
|
+
}
|
|
6
|
+
export declare const getDashboardAccount: () => Promise<GetAndUpdateDashboardAccountResponse>;
|
|
7
|
+
interface UpdateDashboardAccountData {
|
|
8
|
+
organizationName?: string;
|
|
9
|
+
defaultDeliveryMethod?: string;
|
|
10
|
+
organizationEmail?: string;
|
|
11
|
+
defaultNetworkChainId?: number;
|
|
12
|
+
organizationImage?: string;
|
|
13
|
+
ethereumAddress?: string;
|
|
14
|
+
tronAddress?: string;
|
|
15
|
+
solanaAddress?: string;
|
|
16
|
+
notifications?: {
|
|
17
|
+
payoutApprovalRequested: boolean;
|
|
18
|
+
largePayoutAlerts: boolean;
|
|
19
|
+
balanceLowWarning: boolean;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export declare const updateDashboardAccount: (data: UpdateDashboardAccountData) => Promise<GetAndUpdateDashboardAccountResponse>;
|
|
23
|
+
export declare const deleteDashboardAccount: () => Promise<any>;
|
|
24
|
+
export {};
|
|
@@ -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/dashboardAccountCalls.ts
|
|
8
|
+
var a = async () => n.get(`${t}${e.ROUTES.getDashboardAccount}`, { headers: i(r) }), o = async (a) => n.post(`${t}${e.ROUTES.updateDashboardAccount}`, a, { headers: i(r) }), s = async () => n.post(`${t}${e.ROUTES.deleteDashboardAccount}`, {}, { headers: i(r) });
|
|
9
|
+
//#endregion
|
|
10
|
+
export { s as deleteDashboardAccount, a as getDashboardAccount, o as updateDashboardAccount };
|
|
@@ -0,0 +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`);const r=require(`../constants/auth.constants.cjs`),i=require(`../functions/utils/auth.utils.cjs`);var a=async a=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.updateUserProfile}`,a,{headers:i.getAuthHeaders(r.HINKAL_DASHBOARD_TOKEN)}),o=async({email:a,username:o})=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.sendDashboardInvitationEmail}`,{email:a,username:o},{headers:i.getAuthHeaders(r.HINKAL_DASHBOARD_TOKEN)}),s=async({email:a})=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.removeMember}`,{email:a},{headers:i.getAuthHeaders(r.HINKAL_DASHBOARD_TOKEN)}),c=async({email:a,newUsername:o})=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.editMember}`,{email:a,newUsername:o},{headers:i.getAuthHeaders(r.HINKAL_DASHBOARD_TOKEN)});exports.editMember=c,exports.removeMember=s,exports.sendDashboardInvitationEmail=o,exports.updateUserProfile=a;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { AccountMember, DashboardAccountClient } from '../types';
|
|
2
|
+
interface UpdateUserProfileData {
|
|
3
|
+
username?: string;
|
|
4
|
+
email?: string;
|
|
5
|
+
profileImage?: string;
|
|
6
|
+
}
|
|
7
|
+
interface UpdateUserProfileResponse {
|
|
8
|
+
currentMember: AccountMember;
|
|
9
|
+
}
|
|
10
|
+
export declare const updateUserProfile: (data: UpdateUserProfileData) => Promise<UpdateUserProfileResponse>;
|
|
11
|
+
interface SendDashboardInvitationEmailData {
|
|
12
|
+
email: string;
|
|
13
|
+
username: string;
|
|
14
|
+
}
|
|
15
|
+
interface SendDashboardInvitationEmailResponse {
|
|
16
|
+
updatedAccount: DashboardAccountClient;
|
|
17
|
+
}
|
|
18
|
+
export declare const sendDashboardInvitationEmail: ({ email, username }: SendDashboardInvitationEmailData) => Promise<SendDashboardInvitationEmailResponse>;
|
|
19
|
+
interface RemoveMemberData {
|
|
20
|
+
email: string;
|
|
21
|
+
}
|
|
22
|
+
interface RemoveMemberResponse {
|
|
23
|
+
updatedAccount: DashboardAccountClient;
|
|
24
|
+
}
|
|
25
|
+
export declare const removeMember: ({ email }: RemoveMemberData) => Promise<RemoveMemberResponse>;
|
|
26
|
+
interface EditMemberData {
|
|
27
|
+
email: string;
|
|
28
|
+
newUsername: string;
|
|
29
|
+
}
|
|
30
|
+
interface EditMemberResponse {
|
|
31
|
+
updatedAccount: DashboardAccountClient;
|
|
32
|
+
}
|
|
33
|
+
export declare const editMember: ({ email, newUsername }: EditMemberData) => Promise<EditMemberResponse>;
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
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/dashboardAccountMemberCalls.ts
|
|
8
|
+
var a = async (a) => n.post(`${t}${e.ROUTES.updateUserProfile}`, a, { headers: i(r) }), o = async ({ email: a, username: o }) => n.post(`${t}${e.ROUTES.sendDashboardInvitationEmail}`, {
|
|
9
|
+
email: a,
|
|
10
|
+
username: o
|
|
11
|
+
}, { headers: i(r) }), s = async ({ email: a }) => n.post(`${t}${e.ROUTES.removeMember}`, { email: a }, { headers: i(r) }), c = async ({ email: a, newUsername: o }) => n.post(`${t}${e.ROUTES.editMember}`, {
|
|
12
|
+
email: a,
|
|
13
|
+
newUsername: o
|
|
14
|
+
}, { headers: i(r) });
|
|
15
|
+
//#endregion
|
|
16
|
+
export { c as editMember, s as removeMember, o as sendDashboardInvitationEmail, a as updateUserProfile };
|
|
@@ -0,0 +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`);const r=require(`../constants/auth.constants.cjs`),i=require(`../functions/utils/auth.utils.cjs`);var a=async({privateBalances:a,publicBalances:o})=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.syncDashboardBalances}`,{privateBalances:a,publicBalances:o},{headers:i.getAuthHeaders(r.HINKAL_DASHBOARD_TOKEN)}),o=async()=>n.httpClient.get(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.getDashboardBalances}`,{headers:i.getAuthHeaders(r.HINKAL_DASHBOARD_TOKEN)});exports.getDashboardBalances=o,exports.syncDashboardBalances=a;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DashboardDbBalance, DeserializedEncryptedBalances } from '../types';
|
|
2
|
+
interface SyncDashboardBalancesProps {
|
|
3
|
+
privateBalances: DashboardDbBalance[];
|
|
4
|
+
publicBalances: DashboardDbBalance[];
|
|
5
|
+
}
|
|
6
|
+
export declare const syncDashboardBalances: ({ privateBalances, publicBalances }: SyncDashboardBalancesProps) => Promise<any>;
|
|
7
|
+
interface SyncDashboardBalancesResponse {
|
|
8
|
+
balances: DeserializedEncryptedBalances;
|
|
9
|
+
updatedAt: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const getDashboardBalances: () => Promise<SyncDashboardBalancesResponse>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
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/dashboardBalanceCalls.ts
|
|
8
|
+
var a = async ({ privateBalances: a, publicBalances: o }) => n.post(`${t}${e.ROUTES.syncDashboardBalances}`, {
|
|
9
|
+
privateBalances: a,
|
|
10
|
+
publicBalances: o
|
|
11
|
+
}, { headers: i(r) }), o = async () => n.get(`${t}${e.ROUTES.getDashboardBalances}`, { headers: i(r) });
|
|
12
|
+
//#endregion
|
|
13
|
+
export { o as getDashboardBalances, a as syncDashboardBalances };
|
|
@@ -0,0 +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`);const r=require(`../constants/auth.constants.cjs`),i=require(`../functions/utils/auth.utils.cjs`);var a=async a=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.addDashboardContact}`,{contact:a},{headers:i.getAuthHeaders(r.HINKAL_DASHBOARD_TOKEN)}),o=async a=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.deleteDashboardContact}`,{contact:a},{headers:i.getAuthHeaders(r.HINKAL_DASHBOARD_TOKEN)}),s=async(a,o)=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.updateDashboardContact}`,{contact:a,contactToEditAddress:o},{headers:i.getAuthHeaders(r.HINKAL_DASHBOARD_TOKEN)}),c=async()=>n.httpClient.get(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.getDashboardContacts}`,{headers:i.getAuthHeaders(r.HINKAL_DASHBOARD_TOKEN)});exports.addDashboardContact=a,exports.deleteDashboardContact=o,exports.getDashboardContacts=c,exports.updateDashboardContact=s;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Contact } from '../types';
|
|
2
|
+
interface ContactResponse {
|
|
3
|
+
contacts: Contact[];
|
|
4
|
+
}
|
|
5
|
+
export declare const addDashboardContact: (contact: Contact) => Promise<ContactResponse>;
|
|
6
|
+
export declare const deleteDashboardContact: (contact: Contact) => Promise<ContactResponse>;
|
|
7
|
+
export declare const updateDashboardContact: (contact: Contact, contactToEditAddress: string) => Promise<ContactResponse>;
|
|
8
|
+
export declare const getDashboardContacts: () => Promise<ContactResponse>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
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/dashboardContactCalls.ts
|
|
8
|
+
var a = async (a) => n.post(`${t}${e.ROUTES.addDashboardContact}`, { contact: a }, { headers: i(r) }), o = async (a) => n.post(`${t}${e.ROUTES.deleteDashboardContact}`, { contact: a }, { headers: i(r) }), s = async (a, o) => n.post(`${t}${e.ROUTES.updateDashboardContact}`, {
|
|
9
|
+
contact: a,
|
|
10
|
+
contactToEditAddress: o
|
|
11
|
+
}, { headers: i(r) }), c = async () => n.get(`${t}${e.ROUTES.getDashboardContacts}`, { headers: i(r) });
|
|
12
|
+
//#endregion
|
|
13
|
+
export { a as addDashboardContact, o as deleteDashboardContact, c as getDashboardContacts, s as updateDashboardContact };
|
|
@@ -0,0 +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`);const r=require(`../constants/auth.constants.cjs`),i=require(`../functions/utils/auth.utils.cjs`);var a=async({payoutItems:a})=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.createDashboardPayout}`,{payoutItems:a},{headers:i.getAuthHeaders(r.HINKAL_DASHBOARD_TOKEN)}),o=async()=>n.httpClient.get(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.getDashboardPayouts}`,{headers:i.getAuthHeaders(r.HINKAL_DASHBOARD_TOKEN)}),s=async({payoutId:a,status:o})=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.changePayoutStatus}`,{payoutId:a,status:o},{headers:i.getAuthHeaders(r.HINKAL_DASHBOARD_TOKEN)});exports.changePayoutStatus=s,exports.createDashboardPayout=a,exports.getDashboardPayouts=o;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DashboardPayout, PayoutItem, PayoutStatus } from '../types';
|
|
2
|
+
interface CreateDashboardPayoutResponse {
|
|
3
|
+
payout: DashboardPayout;
|
|
4
|
+
}
|
|
5
|
+
export declare const createDashboardPayout: ({ payoutItems }: {
|
|
6
|
+
payoutItems: PayoutItem[];
|
|
7
|
+
}) => Promise<CreateDashboardPayoutResponse>;
|
|
8
|
+
export declare const getDashboardPayouts: () => Promise<any>;
|
|
9
|
+
interface ChangePayoutStatusProps {
|
|
10
|
+
payoutId: string;
|
|
11
|
+
status: PayoutStatus;
|
|
12
|
+
}
|
|
13
|
+
export declare const changePayoutStatus: ({ payoutId, status }: ChangePayoutStatusProps) => Promise<any>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
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/dashboardPayoutCalls.ts
|
|
8
|
+
var a = async ({ payoutItems: a }) => n.post(`${t}${e.ROUTES.createDashboardPayout}`, { payoutItems: a }, { headers: i(r) }), o = async () => n.get(`${t}${e.ROUTES.getDashboardPayouts}`, { headers: i(r) }), s = async ({ payoutId: a, status: o }) => n.post(`${t}${e.ROUTES.changePayoutStatus}`, {
|
|
9
|
+
payoutId: a,
|
|
10
|
+
status: o
|
|
11
|
+
}, { headers: i(r) });
|
|
12
|
+
//#endregion
|
|
13
|
+
export { s as changePayoutStatus, a as createDashboardPayout, o as getDashboardPayouts };
|
|
@@ -0,0 +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`);const r=require(`../constants/auth.constants.cjs`),i=require(`../functions/utils/auth.utils.cjs`);var a=async a=>n.httpClient.post(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.createDashboardTransactions}`,{transactions:a},{headers:i.getAuthHeaders(r.HINKAL_DASHBOARD_TOKEN)}),o=async()=>n.httpClient.get(`${t.SERVER_URL}${e.API_CONFIG.ROUTES.getDashboardTransactions}`,{headers:i.getAuthHeaders(r.HINKAL_DASHBOARD_TOKEN)});exports.createDashboardTransactions=a,exports.getDashboardTransactions=o;
|