@gurge/sdk 0.3.150 → 0.3.151
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/README.md +43 -29
- package/common/src/API/API.cjs +1 -1
- package/common/src/API/API.d.ts +21 -46
- package/common/src/API/API.mjs +96 -121
- package/common/src/API/admin-calls.cjs +1 -1
- package/common/src/API/admin-calls.d.ts +1 -1
- package/common/src/API/admin-calls.mjs +3 -1
- package/common/src/API/callLifiAPI.cjs +1 -1
- package/common/src/API/callLifiAPI.d.ts +4 -0
- package/common/src/API/callLifiAPI.mjs +7 -2
- package/common/src/API/callNearIntentsAPI.cjs +1 -1
- package/common/src/API/callNearIntentsAPI.mjs +2 -2
- package/common/src/API/callRelayer.cjs +1 -1
- package/common/src/API/callRelayer.d.ts +36 -1
- package/common/src/API/callRelayer.mjs +7 -1
- package/common/src/API/dashboardAccountMemberCalls.cjs +1 -1
- package/common/src/API/dashboardAccountMemberCalls.d.ts +15 -0
- package/common/src/API/dashboardAccountMemberCalls.mjs +5 -2
- package/common/src/API/dashboardPayoutCalls.cjs +1 -1
- package/common/src/API/dashboardPayoutCalls.d.ts +2 -1
- package/common/src/API/dashboardPayoutCalls.mjs +4 -1
- package/common/src/API/dashboardTransactionCalls.cjs +1 -1
- package/common/src/API/dashboardTransactionCalls.d.ts +4 -1
- package/common/src/API/dashboardTransactionCalls.mjs +2 -2
- package/common/src/API/enclaveRecipientInfoCalls.d.ts +0 -2
- package/common/src/API/enclaveSignatureCalls.cjs +1 -1
- package/common/src/API/enclaveSignatureCalls.d.ts +2 -1
- package/common/src/API/enclaveSignatureCalls.mjs +5 -8
- package/common/src/API/enclaveUtxoCalls.cjs +1 -1
- package/common/src/API/enclaveUtxoCalls.d.ts +40 -27
- package/common/src/API/enclaveUtxoCalls.mjs +16 -17
- package/common/src/API/evm-rpc-fallback.cjs +1 -0
- package/common/src/API/evm-rpc-fallback.d.ts +1 -0
- package/common/src/API/evm-rpc-fallback.mjs +17 -0
- package/common/src/API/evm-token-assets.d.ts +8 -0
- package/common/src/API/getOdosPriceForToken.cjs +1 -0
- package/common/src/API/getOdosPriceForToken.d.ts +1 -0
- package/common/src/API/getOdosPriceForToken.mjs +14 -0
- package/common/src/API/getWebsiteURL.d.ts +1 -3
- package/common/src/API/index.cjs +1 -1
- package/common/src/API/index.d.ts +2 -3
- package/common/src/API/index.mjs +4 -5
- package/common/src/API/payoutNotificationStateCalls.cjs +1 -0
- package/common/src/API/payoutNotificationStateCalls.d.ts +10 -0
- package/common/src/API/payoutNotificationStateCalls.mjs +10 -0
- package/common/src/API/privateSendRecipientInfoCalls.cjs +1 -1
- package/common/src/API/privateSendRecipientInfoCalls.d.ts +3 -6
- package/common/src/API/privateSendRecipientInfoCalls.mjs +12 -6
- package/common/src/API/proxyAccountsCalls.cjs +1 -1
- package/common/src/API/proxyAccountsCalls.d.ts +2 -3
- package/common/src/API/proxyAccountsCalls.mjs +11 -10
- package/common/src/API/rewardsUserCalls.cjs +1 -1
- package/common/src/API/rewardsUserCalls.d.ts +1 -40
- package/common/src/API/rewardsUserCalls.mjs +2 -10
- package/common/src/API/route-config.cjs +1 -0
- package/common/src/API/route-config.d.ts +1 -0
- package/common/src/API/route-config.mjs +26 -0
- package/common/src/API/scheduled-transactions-calls.cjs +1 -1
- package/common/src/API/scheduled-transactions-calls.d.ts +2 -5
- package/common/src/API/scheduled-transactions-calls.mjs +2 -6
- package/common/src/API/solana-nft-assets.d.ts +1 -0
- package/common/src/API/solana-priority-fee.cjs +1 -0
- package/common/src/API/solana-priority-fee.d.ts +3 -0
- package/common/src/API/solana-priority-fee.mjs +20 -0
- package/common/src/API/solana-rpc-fallback.cjs +1 -0
- package/common/src/API/solana-rpc-fallback.d.ts +1 -0
- package/common/src/API/solana-rpc-fallback.mjs +13 -0
- package/common/src/API/temporaryWalletCalls.cjs +1 -1
- package/common/src/API/temporaryWalletCalls.d.ts +3 -5
- package/common/src/API/temporaryWalletCalls.mjs +8 -9
- package/common/src/API/tenderly.api.cjs +1 -1
- package/common/src/API/tenderly.api.d.ts +5 -10
- package/common/src/API/tenderly.api.mjs +1 -1
- package/common/src/API/weeklyAnalyticCalls.cjs +1 -1
- package/common/src/API/weeklyAnalyticCalls.d.ts +1 -11
- package/common/src/API/weeklyAnalyticCalls.mjs +2 -5
- package/common/src/constants/addresses.constants.cjs +1 -1
- package/common/src/constants/addresses.constants.d.ts +4 -46
- package/common/src/constants/addresses.constants.mjs +19 -60
- package/common/src/constants/balance.constants.cjs +1 -0
- package/common/src/constants/balance.constants.d.ts +3 -0
- package/common/src/constants/balance.constants.mjs +4 -0
- package/common/src/constants/bridging.constants.cjs +1 -1
- package/common/src/constants/bridging.constants.d.ts +10 -0
- package/common/src/constants/bridging.constants.mjs +2 -1
- package/common/src/constants/chains.constants.cjs +1 -1
- package/common/src/constants/chains.constants.d.ts +21 -19
- package/common/src/constants/chains.constants.mjs +175 -198
- package/common/src/constants/coingecko.constants.cjs +1 -1
- package/common/src/constants/coingecko.constants.d.ts +3 -1
- package/common/src/constants/coingecko.constants.mjs +1 -1
- package/common/src/constants/contracts.constants.cjs +1 -1
- package/common/src/constants/contracts.constants.d.ts +1 -109
- package/common/src/constants/contracts.constants.mjs +16 -34
- package/common/src/constants/deploy-data/deploy-data-arbMainnet.json.cjs +1 -1
- package/common/src/constants/deploy-data/deploy-data-arbMainnet.json.mjs +8 -9
- package/common/src/constants/deploy-data/deploy-data-arcTestnet.json.cjs +1 -1
- package/common/src/constants/deploy-data/deploy-data-arcTestnet.json.mjs +7 -6
- package/common/src/constants/deploy-data/deploy-data-base.json.cjs +1 -1
- package/common/src/constants/deploy-data/deploy-data-base.json.mjs +8 -9
- package/common/src/constants/deploy-data/deploy-data-bnbMainnet.json.cjs +1 -0
- package/common/src/constants/deploy-data/deploy-data-bnbMainnet.json.mjs +12 -0
- package/common/src/constants/deploy-data/deploy-data-ethMainnet.json.cjs +1 -1
- package/common/src/constants/deploy-data/deploy-data-ethMainnet.json.mjs +8 -9
- package/common/src/constants/deploy-data/deploy-data-localhost.json.cjs +1 -1
- package/common/src/constants/deploy-data/deploy-data-localhost.json.mjs +0 -3
- package/common/src/constants/deploy-data/deploy-data-optimism.json.cjs +1 -1
- package/common/src/constants/deploy-data/deploy-data-optimism.json.mjs +8 -9
- package/common/src/constants/deploy-data/deploy-data-optimismTest.json.cjs +1 -1
- package/common/src/constants/deploy-data/deploy-data-optimismTest.json.mjs +5 -9
- package/common/src/constants/deploy-data/deploy-data-polygon.json.cjs +1 -1
- package/common/src/constants/deploy-data/deploy-data-polygon.json.mjs +8 -9
- package/common/src/constants/deploy-data/deploy-data-sepoliaTestnet.json.cjs +1 -1
- package/common/src/constants/deploy-data/deploy-data-sepoliaTestnet.json.mjs +0 -1
- package/common/src/constants/deploy-data/deploy-data-solana.json.cjs +1 -1
- package/common/src/constants/deploy-data/deploy-data-solana.json.mjs +2 -2
- package/common/src/constants/deploy-data/deploy-data-tempo.json.cjs +1 -1
- package/common/src/constants/deploy-data/deploy-data-tempo.json.mjs +7 -7
- package/common/src/constants/deploy-data/deploy-data-tronMainnet.json.cjs +1 -1
- package/common/src/constants/deploy-data/deploy-data-tronMainnet.json.mjs +2 -4
- package/common/src/constants/deploy-data/deploy-data-tronNile.json.cjs +1 -1
- package/common/src/constants/deploy-data/deploy-data-tronNile.json.mjs +2 -4
- package/common/src/constants/deploy-data/index.cjs +1 -1
- package/common/src/constants/deploy-data/index.d.ts +2 -1
- package/common/src/constants/deploy-data/index.mjs +16 -15
- package/common/src/constants/deploy-data/shared-deploy-data-evm.json.cjs +1 -1
- package/common/src/constants/deploy-data/shared-deploy-data-evm.json.mjs +36 -45
- package/common/src/constants/deploy-data/shared-deploy-data-solana.json.cjs +1 -1
- package/common/src/constants/deploy-data/shared-deploy-data-solana.json.mjs +1 -1
- package/common/src/constants/deploy-data/shared-deploy-data-tron.json.cjs +1 -1
- package/common/src/constants/deploy-data/shared-deploy-data-tron.json.mjs +2 -46
- package/common/src/constants/enclaveAuth.constants.d.ts +5 -0
- package/common/src/constants/events.constants.cjs +1 -1
- package/common/src/constants/events.constants.mjs +1 -15
- package/common/src/constants/fees.constants.cjs +1 -1
- package/common/src/constants/fees.constants.mjs +2 -2
- package/common/src/constants/index.cjs +1 -1
- package/common/src/constants/index.d.ts +1 -3
- package/common/src/constants/index.mjs +1 -1
- package/common/src/constants/lifi.constants.cjs +1 -1
- package/common/src/constants/lifi.constants.mjs +6 -3
- package/common/src/constants/mediaUrls.constants.d.ts +0 -1
- package/common/src/constants/okx.constants.d.ts +1 -0
- package/common/src/constants/pay.constants.d.ts +1 -0
- package/common/src/constants/protocol.constants.cjs +2 -1
- package/common/src/constants/protocol.constants.d.ts +22 -12
- package/common/src/constants/protocol.constants.mjs +3 -15
- package/common/src/constants/server.constants.cjs +1 -1
- package/common/src/constants/server.constants.d.ts +14 -36
- package/common/src/constants/server.constants.mjs +19 -49
- package/common/src/constants/tokens.constants.cjs +1 -1
- package/common/src/constants/tokens.constants.d.ts +1 -0
- package/common/src/constants/tokens.constants.mjs +4 -1
- package/common/src/constants/tx-confirmation.constants.cjs +1 -1
- package/common/src/constants/tx-confirmation.constants.d.ts +1 -0
- package/common/src/constants/tx-confirmation.constants.mjs +2 -2
- package/common/src/crypto/ecdh-sealed-keys.cjs +1 -1
- package/common/src/crypto/ecdh-sealed-keys.mjs +17 -2
- package/common/src/crypto/index.cjs +1 -1
- package/common/src/crypto/index.d.ts +0 -1
- package/common/src/crypto/index.mjs +1 -2
- package/common/src/data-structures/ApprovalDBs/EventsPublicApprovalsDB.d.ts +1 -2
- package/common/src/data-structures/Hinkal/Hinkal.cjs +1 -1
- package/common/src/data-structures/Hinkal/Hinkal.d.ts +18 -23
- package/common/src/data-structures/Hinkal/Hinkal.mjs +142 -174
- package/common/src/data-structures/Hinkal/IHinkal.d.ts +18 -24
- package/common/src/data-structures/Hinkal/handleAutoDepositBack.cjs +1 -1
- package/common/src/data-structures/Hinkal/handleAutoDepositBack.d.ts +1 -1
- package/common/src/data-structures/Hinkal/handleAutoDepositBack.mjs +36 -35
- package/common/src/data-structures/Hinkal/hinkalActionReceive.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalActionReceive.mjs +13 -11
- package/common/src/data-structures/Hinkal/hinkalBridgePrivateToPrivate.cjs +1 -0
- package/common/src/data-structures/Hinkal/hinkalBridgePrivateToPrivate.d.ts +6 -0
- package/common/src/data-structures/Hinkal/hinkalBridgePrivateToPrivate.mjs +100 -0
- package/common/src/data-structures/Hinkal/hinkalClaimUtxo.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalClaimUtxo.d.ts +1 -1
- package/common/src/data-structures/Hinkal/hinkalClaimUtxo.mjs +40 -50
- package/common/src/data-structures/Hinkal/hinkalDeposit.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalDeposit.d.ts +1 -0
- package/common/src/data-structures/Hinkal/hinkalDeposit.mjs +50 -119
- package/common/src/data-structures/Hinkal/hinkalDepositAndBridge.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalDepositAndBridge.d.ts +2 -2
- package/common/src/data-structures/Hinkal/hinkalDepositAndBridge.mjs +113 -109
- package/common/src/data-structures/Hinkal/hinkalDepositAndWithdraw.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalDepositAndWithdraw.d.ts +3 -2
- package/common/src/data-structures/Hinkal/hinkalDepositAndWithdraw.mjs +98 -64
- package/common/src/data-structures/Hinkal/hinkalDepositOnChainUtxos.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalDepositOnChainUtxos.d.ts +20 -7
- package/common/src/data-structures/Hinkal/hinkalDepositOnChainUtxos.mjs +50 -48
- package/common/src/data-structures/Hinkal/hinkalNearDepositAndBridge.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalNearDepositAndBridge.mjs +8 -3
- package/common/src/data-structures/Hinkal/hinkalPalEvmDeposit.d.ts +1 -1
- package/common/src/data-structures/Hinkal/hinkalPalTronDepositPrepare.d.ts +2 -2
- package/common/src/data-structures/Hinkal/hinkalPrivateWallet.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalPrivateWallet.mjs +50 -38
- package/common/src/data-structures/Hinkal/hinkalProoflessDeposit.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalProoflessDeposit.d.ts +2 -3
- package/common/src/data-structures/Hinkal/hinkalProoflessDeposit.mjs +52 -117
- package/common/src/data-structures/Hinkal/hinkalProoflessDeposit.utils.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalProoflessDeposit.utils.d.ts +3 -0
- package/common/src/data-structures/Hinkal/hinkalProoflessDeposit.utils.mjs +26 -32
- package/common/src/data-structures/Hinkal/hinkalProxySend.cjs +1 -0
- package/common/src/data-structures/Hinkal/hinkalProxySend.d.ts +6 -0
- package/common/src/data-structures/Hinkal/hinkalProxySend.mjs +16 -0
- package/common/src/data-structures/Hinkal/hinkalProxySwap.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalProxySwap.d.ts +1 -1
- package/common/src/data-structures/Hinkal/hinkalProxySwap.mjs +13 -12
- package/common/src/data-structures/Hinkal/hinkalProxyToPrivate.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalProxyToPrivate.mjs +19 -17
- package/common/src/data-structures/Hinkal/hinkalSolanaClaimUtxo.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaClaimUtxo.d.ts +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaClaimUtxo.mjs +50 -79
- package/common/src/data-structures/Hinkal/hinkalSolanaDeposit.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaDeposit.d.ts +2 -2
- package/common/src/data-structures/Hinkal/hinkalSolanaDeposit.mjs +47 -51
- package/common/src/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.d.ts +8 -4
- package/common/src/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.mjs +115 -133
- package/common/src/data-structures/Hinkal/hinkalSolanaProoflessDeposit.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaProoflessDeposit.d.ts +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaProoflessDeposit.mjs +16 -12
- package/common/src/data-structures/Hinkal/hinkalSolanaProxySend.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaProxySend.mjs +1 -3
- package/common/src/data-structures/Hinkal/hinkalSolanaProxyShield.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaProxyShield.d.ts +24 -2
- package/common/src/data-structures/Hinkal/hinkalSolanaProxyShield.mjs +82 -56
- package/common/src/data-structures/Hinkal/hinkalSolanaProxySwap.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaProxySwap.d.ts +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaProxySwap.mjs +11 -13
- package/common/src/data-structures/Hinkal/hinkalSolanaSponsoredShield.cjs +1 -0
- package/common/src/data-structures/Hinkal/hinkalSolanaSponsoredShield.d.ts +8 -0
- package/common/src/data-structures/Hinkal/hinkalSolanaSponsoredShield.mjs +32 -0
- package/common/src/data-structures/Hinkal/hinkalSolanaSwap.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaSwap.mjs +58 -79
- package/common/src/data-structures/Hinkal/hinkalSolanaTransact.cjs +1 -0
- package/common/src/data-structures/Hinkal/hinkalSolanaTransact.d.ts +3 -0
- package/common/src/data-structures/Hinkal/hinkalSolanaTransact.mjs +119 -0
- package/common/src/data-structures/Hinkal/hinkalSolanaTransfer.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaTransfer.d.ts +2 -30
- package/common/src/data-structures/Hinkal/hinkalSolanaTransfer.mjs +46 -77
- package/common/src/data-structures/Hinkal/hinkalSolanaWithdraw.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaWithdraw.d.ts +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaWithdraw.mjs +46 -57
- package/common/src/data-structures/Hinkal/hinkalSwap.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSwap.d.ts +1 -1
- package/common/src/data-structures/Hinkal/hinkalSwap.mjs +32 -32
- package/common/src/data-structures/Hinkal/hinkalTransact.cjs +1 -0
- package/common/src/data-structures/Hinkal/hinkalTransact.d.ts +3 -0
- package/common/src/data-structures/Hinkal/hinkalTransact.mjs +106 -0
- package/common/src/data-structures/Hinkal/hinkalTransfer.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalTransfer.mjs +39 -44
- package/common/src/data-structures/Hinkal/hinkalWithdraw.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalWithdraw.d.ts +1 -1
- package/common/src/data-structures/Hinkal/hinkalWithdraw.mjs +38 -49
- package/common/src/data-structures/Hinkal/hinkalWithdrawStuckUtxos.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalWithdrawStuckUtxos.mjs +160 -102
- package/common/src/data-structures/Hinkal/index.d.ts +2 -1
- package/common/src/data-structures/Hinkal/prepareTronDepositToSelf.d.ts +27 -0
- package/common/src/data-structures/Hinkal/resetMerkleTrees.cjs +1 -1
- package/common/src/data-structures/Hinkal/resetMerkleTrees.mjs +7 -6
- package/common/src/data-structures/IndexedDB/activity-db.cjs +1 -1
- package/common/src/data-structures/IndexedDB/activity-db.mjs +34 -34
- package/common/src/data-structures/IndexedDB/contact-db.cjs +1 -1
- package/common/src/data-structures/IndexedDB/contact-db.d.ts +0 -1
- package/common/src/data-structures/IndexedDB/contact-db.mjs +14 -28
- package/common/src/data-structures/IndexedDB/index.cjs +1 -1
- package/common/src/data-structures/IndexedDB/index.d.ts +1 -0
- package/common/src/data-structures/IndexedDB/index.mjs +1 -0
- package/common/src/data-structures/IndexedDB/key-val-store.cjs +1 -1
- package/common/src/data-structures/IndexedDB/key-val-store.d.ts +2 -0
- package/common/src/data-structures/IndexedDB/key-val-store.mjs +14 -0
- package/common/src/data-structures/IndexedDB/pay-activity-db.cjs +1 -1
- package/common/src/data-structures/IndexedDB/pay-activity-db.mjs +43 -1
- package/common/src/data-structures/IndexedDB/private-balances-db.cjs +1 -1
- package/common/src/data-structures/IndexedDB/private-balances-db.d.ts +1 -0
- package/common/src/data-structures/IndexedDB/private-balances-db.mjs +3 -0
- package/common/src/data-structures/IndexedDB/scheduled-transactions-db.cjs +1 -0
- package/common/src/data-structures/IndexedDB/scheduled-transactions-db.d.ts +11 -0
- package/common/src/data-structures/IndexedDB/scheduled-transactions-db.mjs +34 -0
- package/common/src/data-structures/IndexedDB/signatures-db.cjs +1 -1
- package/common/src/data-structures/IndexedDB/signatures-db.mjs +11 -11
- package/common/src/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.cjs +1 -1
- package/common/src/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.d.ts +1 -0
- package/common/src/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.mjs +29 -26
- package/common/src/data-structures/TokenDBs/AlchemyPublicTokensDB.d.ts +0 -1
- package/common/src/data-structures/TokenDBs/PrivateTokensDB.cjs +1 -1
- package/common/src/data-structures/TokenDBs/PrivateTokensDB.mjs +17 -18
- package/common/src/data-structures/TokenDBs/TronPublicTokensDB.d.ts +1 -0
- package/common/src/data-structures/WalletManager/WalletManager.d.ts +1 -0
- package/common/src/data-structures/cacheDevices/BaseCacheDevice.cjs +1 -1
- package/common/src/data-structures/cacheDevices/BaseCacheDevice.d.ts +1 -0
- package/common/src/data-structures/cacheDevices/BaseCacheDevice.mjs +3 -0
- package/common/src/data-structures/cacheDevices/FileCacheDevice.cjs +1 -1
- package/common/src/data-structures/cacheDevices/FileCacheDevice.d.ts +3 -0
- package/common/src/data-structures/cacheDevices/FileCacheDevice.mjs +12 -3
- package/common/src/data-structures/crypto-keys/decodeUTXO.cjs +1 -1
- package/common/src/data-structures/crypto-keys/decodeUTXO.d.ts +9 -9
- package/common/src/data-structures/crypto-keys/decodeUTXO.mjs +11 -71
- package/common/src/data-structures/crypto-keys/encryptDecryptUtxo.cjs +1 -1
- package/common/src/data-structures/crypto-keys/encryptDecryptUtxo.d.ts +2 -3
- package/common/src/data-structures/crypto-keys/encryptDecryptUtxo.mjs +39 -23
- package/common/src/data-structures/crypto-keys/keys.cjs +1 -1
- package/common/src/data-structures/crypto-keys/keys.d.ts +13 -27
- package/common/src/data-structures/crypto-keys/keys.mjs +64 -79
- package/common/src/data-structures/event-service/evm/BlockchainEventEmitter.cjs +1 -1
- package/common/src/data-structures/event-service/evm/BlockchainEventEmitter.d.ts +3 -2
- package/common/src/data-structures/event-service/evm/BlockchainEventEmitter.mjs +46 -38
- package/common/src/data-structures/event-service/evm/ClientBlockchainEventEmitter.cjs +1 -1
- package/common/src/data-structures/event-service/evm/ClientBlockchainEventEmitter.d.ts +1 -1
- package/common/src/data-structures/event-service/evm/ClientBlockchainEventEmitter.mjs +2 -2
- package/common/src/data-structures/event-service/solana/AbstractSolanaCommitmentsSnapshotService.cjs +1 -1
- package/common/src/data-structures/event-service/solana/AbstractSolanaCommitmentsSnapshotService.mjs +27 -23
- package/common/src/data-structures/merkle-tree/MerkleTree.cjs +1 -1
- package/common/src/data-structures/merkle-tree/MerkleTree.d.ts +11 -0
- package/common/src/data-structures/merkle-tree/MerkleTree.mjs +12 -1
- package/common/src/data-structures/private-balances/HinkalPrivateBalanceController.cjs +1 -1
- package/common/src/data-structures/private-balances/HinkalPrivateBalanceController.d.ts +4 -0
- package/common/src/data-structures/private-balances/HinkalPrivateBalanceController.mjs +100 -86
- package/common/src/data-structures/provider-adapter/IProviderAdapter.d.ts +1 -5
- package/common/src/data-structures/token-price-fetcher/TokenChecker.cjs +1 -1
- package/common/src/data-structures/token-price-fetcher/TokenChecker.d.ts +1 -0
- package/common/src/data-structures/token-price-fetcher/TokenChecker.mjs +5 -3
- package/common/src/data-structures/utxo/Utxo.cjs +1 -1
- package/common/src/data-structures/utxo/Utxo.d.ts +1 -4
- package/common/src/data-structures/utxo/Utxo.mjs +7 -17
- package/common/src/error-handling/error-codes.constants.cjs +2 -2
- package/common/src/error-handling/error-codes.constants.d.ts +14 -14
- package/common/src/error-handling/error-codes.constants.mjs +30 -32
- package/common/src/error-handling/get-error.message.cjs +1 -1
- package/common/src/error-handling/get-error.message.mjs +28 -18
- package/common/src/error-handling/index.cjs +1 -1
- package/common/src/error-handling/index.d.ts +1 -0
- package/common/src/error-handling/index.mjs +1 -0
- package/common/src/externalABIs/index.cjs +1 -1
- package/common/src/externalABIs/index.d.ts +1 -113
- package/common/src/externalABIs/index.mjs +2 -6
- package/common/src/functions/auto-deposit-back-helpers/get-gas-token-records.cjs +1 -1
- package/common/src/functions/auto-deposit-back-helpers/get-gas-token-records.mjs +7 -6
- package/common/src/functions/auto-deposit-back-helpers/select-gas-token.cjs +1 -1
- package/common/src/functions/auto-deposit-back-helpers/select-gas-token.mjs +8 -8
- package/common/src/functions/index.cjs +1 -1
- package/common/src/functions/index.d.ts +0 -1
- package/common/src/functions/index.mjs +21 -20
- package/common/src/functions/pre-transaction/buildCommitmentValidationData.cjs +1 -1
- package/common/src/functions/pre-transaction/buildCommitmentValidationData.mjs +36 -38
- package/common/src/functions/pre-transaction/calculateSolanaNullifierCount.cjs +1 -1
- package/common/src/functions/pre-transaction/calculateSolanaNullifierCount.mjs +38 -5
- package/common/src/functions/pre-transaction/ensureAmountChanges.cjs +1 -1
- package/common/src/functions/pre-transaction/ensureAmountChanges.mjs +3 -10
- package/common/src/functions/pre-transaction/getExternalSwapAddress.cjs +1 -1
- package/common/src/functions/pre-transaction/getExternalSwapAddress.mjs +2 -18
- package/common/src/functions/pre-transaction/getSolanaCalldataHash.cjs +1 -1
- package/common/src/functions/pre-transaction/getSolanaCalldataHash.d.ts +1 -1
- package/common/src/functions/pre-transaction/getSolanaCalldataHash.mjs +11 -10
- package/common/src/functions/pre-transaction/getVolatileTransferAmount.cjs +1 -1
- package/common/src/functions/pre-transaction/getVolatileTransferAmount.mjs +1 -1
- package/common/src/functions/pre-transaction/index.cjs +1 -1
- package/common/src/functions/pre-transaction/index.d.ts +2 -2
- package/common/src/functions/pre-transaction/index.mjs +2 -3
- package/common/src/functions/pre-transaction/merge-with-fee-structure-emporium.cjs +1 -1
- package/common/src/functions/pre-transaction/merge-with-fee-structure-emporium.mjs +2 -2
- package/common/src/functions/pre-transaction/outputUtxoProcessing.cjs +1 -1
- package/common/src/functions/pre-transaction/outputUtxoProcessing.d.ts +2 -1
- package/common/src/functions/pre-transaction/outputUtxoProcessing.mjs +19 -18
- package/common/src/functions/pre-transaction/sendV0Transaction.cjs +2 -2
- package/common/src/functions/pre-transaction/sendV0Transaction.d.ts +5 -2
- package/common/src/functions/pre-transaction/sendV0Transaction.mjs +4 -4
- package/common/src/functions/pre-transaction/solana-public-signals.d.ts +1 -0
- package/common/src/functions/pre-transaction/solana.cjs +1 -1
- package/common/src/functions/pre-transaction/solana.d.ts +13 -0
- package/common/src/functions/pre-transaction/solana.mjs +46 -21
- package/common/src/functions/pre-transaction/solanaTransfer.utils.cjs +1 -1
- package/common/src/functions/pre-transaction/solanaTransfer.utils.mjs +16 -15
- package/common/src/functions/pre-transaction/speculativeUtxo.cjs +1 -0
- package/common/src/functions/pre-transaction/speculativeUtxo.d.ts +9 -0
- package/common/src/functions/pre-transaction/speculativeUtxo.mjs +19 -0
- package/common/src/functions/pre-transaction/store-proof.cjs +1 -1
- package/common/src/functions/pre-transaction/store-proof.d.ts +1 -1
- package/common/src/functions/pre-transaction/store-proof.mjs +1 -0
- package/common/src/functions/private-wallet/emporium.helpers.cjs +1 -1
- package/common/src/functions/private-wallet/emporium.helpers.d.ts +9 -3
- package/common/src/functions/private-wallet/emporium.helpers.mjs +116 -72
- package/common/src/functions/private-wallet/emporium.swap.helpers.cjs +1 -1
- package/common/src/functions/private-wallet/emporium.swap.helpers.d.ts +0 -1
- package/common/src/functions/private-wallet/emporium.swap.helpers.mjs +38 -80
- package/common/src/functions/private-wallet/index.cjs +1 -1
- package/common/src/functions/private-wallet/index.d.ts +0 -1
- package/common/src/functions/private-wallet/index.mjs +0 -1
- package/common/src/functions/snarkjs/common.snarkjs.cjs +1 -1
- package/common/src/functions/snarkjs/common.snarkjs.d.ts +4 -4
- package/common/src/functions/snarkjs/common.snarkjs.mjs +104 -65
- package/common/src/functions/snarkjs/constant.cjs +1 -1
- package/common/src/functions/snarkjs/constant.d.ts +231 -144
- package/common/src/functions/snarkjs/constant.mjs +231 -145
- package/common/src/functions/snarkjs/constructGeneralZkProof.cjs +1 -1
- package/common/src/functions/snarkjs/constructGeneralZkProof.d.ts +1 -1
- package/common/src/functions/snarkjs/constructGeneralZkProof.mjs +85 -69
- package/common/src/functions/snarkjs/constructSignatureFromMnemonicProofInput.cjs +1 -0
- package/common/src/functions/snarkjs/constructSignatureFromMnemonicProofInput.d.ts +7 -0
- package/common/src/functions/snarkjs/constructSignatureFromMnemonicProofInput.mjs +2 -0
- package/common/src/functions/snarkjs/constructSolanaZkProof.cjs +1 -1
- package/common/src/functions/snarkjs/constructSolanaZkProof.d.ts +4 -1
- package/common/src/functions/snarkjs/constructSolanaZkProof.mjs +62 -61
- package/common/src/functions/snarkjs/constructTxEnclave.cjs +1 -0
- package/common/src/functions/snarkjs/constructTxEnclave.d.ts +34 -0
- package/common/src/functions/snarkjs/constructTxEnclave.mjs +95 -0
- package/common/src/functions/snarkjs/constructTxEnclaveVerify.cjs +1 -0
- package/common/src/functions/snarkjs/constructTxEnclaveVerify.d.ts +5 -0
- package/common/src/functions/snarkjs/constructTxEnclaveVerify.mjs +295 -0
- package/common/src/functions/snarkjs/fetchMerkleTreeSiblings.d.ts +1 -3
- package/common/src/functions/snarkjs/fetchOnChainRootHashes.cjs +1 -1
- package/common/src/functions/snarkjs/fetchOnChainRootHashes.d.ts +1 -0
- package/common/src/functions/snarkjs/fetchOnChainRootHashes.mjs +16 -18
- package/common/src/functions/snarkjs/fetchTronInsertionSiblings.cjs +1 -0
- package/common/src/functions/snarkjs/fetchTronInsertionSiblings.d.ts +7 -0
- package/common/src/functions/snarkjs/fetchTronInsertionSiblings.mjs +13 -0
- package/common/src/functions/snarkjs/generateCircomData.cjs +1 -1
- package/common/src/functions/snarkjs/generateCircomData.d.ts +1 -1
- package/common/src/functions/snarkjs/generateCircomData.mjs +41 -31
- package/common/src/functions/snarkjs/generateMainAndCommitmentZkProof.cjs +1 -1
- package/common/src/functions/snarkjs/generateMainAndCommitmentZkProof.d.ts +1 -1
- package/common/src/functions/snarkjs/generateMainAndCommitmentZkProof.mjs +7 -7
- package/common/src/functions/snarkjs/generateSignatureFromMnemonicProof.cjs +1 -0
- package/common/src/functions/snarkjs/generateSignatureFromMnemonicProof.d.ts +2 -0
- package/common/src/functions/snarkjs/generateSignatureFromMnemonicProof.mjs +3 -0
- package/common/src/functions/snarkjs/generateZkProof.cjs +1 -1
- package/common/src/functions/snarkjs/generateZkProof.d.ts +1 -1
- package/common/src/functions/snarkjs/generateZkProof.mjs +9 -16
- package/common/src/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.cjs +1 -1
- package/common/src/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.d.ts +4 -2
- package/common/src/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.mjs +19 -13
- package/common/src/functions/snarkjs/getZKFiles.cjs +1 -1
- package/common/src/functions/snarkjs/getZKFiles.mjs +9 -3
- package/common/src/functions/snarkjs/index.cjs +1 -1
- package/common/src/functions/snarkjs/index.d.ts +2 -0
- package/common/src/functions/snarkjs/index.mjs +2 -0
- package/common/src/functions/snarkjs/signedMessageHash.cjs +1 -1
- package/common/src/functions/snarkjs/signedMessageHash.d.ts +16 -0
- package/common/src/functions/snarkjs/signedMessageHash.mjs +36 -7
- package/common/src/functions/snarkjs/verifySignedEnclaveResponse.cjs +1 -0
- package/common/src/functions/snarkjs/verifySignedEnclaveResponse.d.ts +1 -0
- package/common/src/functions/snarkjs/verifySignedEnclaveResponse.mjs +11 -0
- package/common/src/functions/utils/addresses.cjs +1 -1
- package/common/src/functions/utils/addresses.d.ts +2 -1
- package/common/src/functions/utils/addresses.mjs +30 -21
- package/common/src/functions/utils/bridge-arrival.utils.cjs +1 -0
- package/common/src/functions/utils/bridge-arrival.utils.d.ts +1 -0
- package/common/src/functions/utils/bridge-arrival.utils.mjs +16 -0
- package/common/src/functions/utils/bridge-claimable-utxo.utils.cjs +1 -0
- package/common/src/functions/utils/bridge-claimable-utxo.utils.d.ts +19 -0
- package/common/src/functions/utils/bridge-claimable-utxo.utils.mjs +24 -0
- package/common/src/functions/utils/bridge-claimable.utils.cjs +1 -0
- package/common/src/functions/utils/bridge-claimable.utils.d.ts +15 -0
- package/common/src/functions/utils/bridge-claimable.utils.mjs +3 -0
- package/common/src/functions/utils/bridge-flow.utils.cjs +1 -0
- package/common/src/functions/utils/bridge-flow.utils.d.ts +4 -0
- package/common/src/functions/utils/bridge-flow.utils.mjs +2 -0
- package/common/src/functions/utils/buildClaimableDepositPlan.d.ts +3 -2
- package/common/src/functions/utils/convertEmporiumOpToCallInfo.cjs +1 -1
- package/common/src/functions/utils/convertEmporiumOpToCallInfo.mjs +5 -10
- package/common/src/functions/utils/convertIntegrationProviderToExternalActionId.cjs +1 -1
- package/common/src/functions/utils/convertIntegrationProviderToExternalActionId.mjs +1 -1
- package/common/src/functions/utils/create-provider.cjs +1 -1
- package/common/src/functions/utils/create-provider.d.ts +9 -2
- package/common/src/functions/utils/create-provider.mjs +45 -9
- package/common/src/functions/utils/deposit-claimable.utils.cjs +1 -1
- package/common/src/functions/utils/deposit-claimable.utils.d.ts +2 -5
- package/common/src/functions/utils/deposit-claimable.utils.mjs +3 -6
- package/common/src/functions/utils/enclave-recipient-info-storage.cjs +1 -1
- package/common/src/functions/utils/enclave-recipient-info-storage.d.ts +4 -1
- package/common/src/functions/utils/enclave-recipient-info-storage.mjs +1 -0
- package/common/src/functions/utils/enclave-signature-storage.cjs +1 -1
- package/common/src/functions/utils/enclave-signature-storage.d.ts +1 -1
- package/common/src/functions/utils/enclave-signature-storage.mjs +3 -3
- package/common/src/functions/utils/enclave-utxo-storage.cjs +1 -1
- package/common/src/functions/utils/enclave-utxo-storage.d.ts +6 -7
- package/common/src/functions/utils/enclave-utxo-storage.mjs +16 -2
- package/common/src/functions/utils/enclaveSessionSigning.cjs +1 -0
- package/common/src/functions/utils/enclaveSessionSigning.d.ts +16 -0
- package/common/src/functions/utils/enclaveSessionSigning.mjs +2 -0
- package/common/src/functions/utils/encodeTokenWithId.cjs +1 -1
- package/common/src/functions/utils/encodeTokenWithId.d.ts +1 -2
- package/common/src/functions/utils/encodeTokenWithId.mjs +2 -5
- package/common/src/functions/utils/encryptInputForEnclave.cjs +1 -1
- package/common/src/functions/utils/encryptInputForEnclave.d.ts +8 -0
- package/common/src/functions/utils/encryptInputForEnclave.mjs +43 -23
- package/common/src/functions/utils/erc20tokenFunctions.cjs +1 -1
- package/common/src/functions/utils/erc20tokenFunctions.mjs +2 -15
- package/common/src/functions/utils/fees.utils.cjs +1 -1
- package/common/src/functions/utils/fees.utils.d.ts +3 -0
- package/common/src/functions/utils/fees.utils.mjs +42 -29
- package/common/src/functions/utils/formatter.d.ts +2 -0
- package/common/src/functions/utils/getDataFromTransaction.d.ts +4 -3
- package/common/src/functions/utils/getRecipientInfoFromUserKeys.cjs +1 -1
- package/common/src/functions/utils/getRecipientInfoFromUserKeys.mjs +2 -3
- package/common/src/functions/utils/getUtxosFromReceipt.utils.cjs +1 -1
- package/common/src/functions/utils/getUtxosFromReceipt.utils.d.ts +1 -1
- package/common/src/functions/utils/getUtxosFromReceipt.utils.mjs +2 -26
- package/common/src/functions/utils/getUtxosFromReceiptSolana.cjs +1 -1
- package/common/src/functions/utils/getUtxosFromReceiptSolana.mjs +7 -24
- package/common/src/functions/utils/index.cjs +1 -1
- package/common/src/functions/utils/index.d.ts +17 -3
- package/common/src/functions/utils/index.mjs +27 -13
- package/common/src/functions/utils/ipfs.d.ts +2 -3
- package/common/src/functions/utils/legacyKeys.cjs +1 -0
- package/common/src/functions/utils/legacyKeys.d.ts +10 -0
- package/common/src/functions/utils/legacyKeys.mjs +8 -0
- package/common/src/functions/utils/lifi.utils.d.ts +3 -0
- package/common/src/functions/utils/mnemonics.cjs +1 -1
- package/common/src/functions/utils/mnemonics.mjs +4 -6
- package/common/src/functions/utils/nearIntents.utils.cjs +1 -1
- package/common/src/functions/utils/nearIntents.utils.mjs +27 -13
- package/common/src/functions/utils/networks.utils.d.ts +1 -0
- package/common/src/functions/utils/prepareHinkal.cjs +1 -1
- package/common/src/functions/utils/prepareHinkal.d.ts +1 -3
- package/common/src/functions/utils/prepareHinkal.mjs +2 -1
- package/common/src/functions/utils/process.utils.cjs +1 -1
- package/common/src/functions/utils/process.utils.d.ts +0 -1
- package/common/src/functions/utils/process.utils.mjs +2 -11
- package/common/src/functions/utils/proxyAvatar.utils.cjs +1 -0
- package/common/src/functions/utils/proxyAvatar.utils.mjs +3 -0
- package/common/src/functions/utils/publicBalance.utils.cjs +1 -1
- package/common/src/functions/utils/publicBalance.utils.d.ts +0 -1
- package/common/src/functions/utils/publicBalance.utils.mjs +37 -23
- package/common/src/functions/utils/recovery-balance.utils.cjs +1 -0
- package/common/src/functions/utils/recovery-balance.utils.d.ts +2 -0
- package/common/src/functions/utils/recovery-balance.utils.mjs +1 -0
- package/common/src/functions/utils/resolve-domain-address.cjs +1 -0
- package/common/src/functions/utils/resolve-domain-address.d.ts +4 -0
- package/common/src/functions/utils/resolve-domain-address.mjs +3 -0
- package/common/src/functions/utils/serialize-utxos.utils.cjs +1 -1
- package/common/src/functions/utils/serialize-utxos.utils.mjs +6 -4
- package/common/src/functions/utils/solana-program.utils.cjs +1 -0
- package/common/src/functions/utils/solana-program.utils.d.ts +3 -0
- package/common/src/functions/utils/solana-program.utils.mjs +17 -0
- package/common/src/functions/utils/solana-sponsored.utils.cjs +1 -0
- package/common/src/functions/utils/solana-sponsored.utils.d.ts +22 -0
- package/common/src/functions/utils/solana-sponsored.utils.mjs +30 -0
- package/common/src/functions/utils/solanaMint.utils.cjs +1 -1
- package/common/src/functions/utils/solanaMint.utils.d.ts +7 -0
- package/common/src/functions/utils/solanaMint.utils.mjs +18 -8
- package/common/src/functions/utils/sponsored-shield.utils.cjs +1 -0
- package/common/src/functions/utils/sponsored-shield.utils.d.ts +3 -0
- package/common/src/functions/utils/sponsored-shield.utils.mjs +3 -0
- package/common/src/functions/utils/temp-wallet.utils.cjs +1 -0
- package/common/src/functions/utils/temp-wallet.utils.d.ts +8 -0
- package/common/src/functions/utils/temp-wallet.utils.mjs +43 -0
- package/common/src/functions/utils/temporary-wallet-recovery.utils.cjs +1 -0
- package/common/src/functions/utils/temporary-wallet-recovery.utils.d.ts +7 -0
- package/common/src/functions/utils/temporary-wallet-recovery.utils.mjs +10 -0
- package/common/src/functions/utils/transfer-claimable.utils.cjs +1 -1
- package/common/src/functions/utils/transfer-claimable.utils.d.ts +1 -2
- package/common/src/functions/utils/transfer-claimable.utils.mjs +1 -4
- package/common/src/functions/utils/tron.utils.cjs +1 -1
- package/common/src/functions/utils/tron.utils.d.ts +5 -14
- package/common/src/functions/utils/tron.utils.mjs +89 -152
- package/common/src/functions/utils/tronSimulation.utils.cjs +1 -1
- package/common/src/functions/utils/tronSimulation.utils.mjs +4 -6
- package/common/src/functions/utils/tx-confirmation.utils.cjs +1 -1
- package/common/src/functions/utils/tx-confirmation.utils.d.ts +1 -0
- package/common/src/functions/utils/tx-confirmation.utils.mjs +16 -13
- package/common/src/functions/utils/validateWalletAddress.cjs +1 -0
- package/common/src/functions/utils/validateWalletAddress.d.ts +1 -0
- package/common/src/functions/utils/validateWalletAddress.mjs +2 -0
- package/common/src/functions/utils/voidWallets.utils.cjs +1 -0
- package/common/src/functions/utils/voidWallets.utils.d.ts +4 -0
- package/common/src/functions/utils/voidWallets.utils.mjs +1 -0
- package/common/src/functions/utils/waasStamp.cjs +1 -0
- package/common/src/functions/utils/waasStamp.d.ts +5 -0
- package/common/src/functions/utils/waasStamp.mjs +2 -0
- package/common/src/functions/web3/connectors.utils.d.ts +1 -0
- package/common/src/functions/web3/etherFunctions.d.ts +1 -0
- package/common/src/functions/web3/events/getInputUtxoAndBalance.cjs +1 -1
- package/common/src/functions/web3/events/getInputUtxoAndBalance.d.ts +5 -12
- package/common/src/functions/web3/events/getInputUtxoAndBalance.mjs +50 -61
- package/common/src/functions/web3/events/getInputUtxosEnclave.cjs +1 -1
- package/common/src/functions/web3/events/getInputUtxosEnclave.d.ts +4 -3
- package/common/src/functions/web3/events/getInputUtxosEnclave.mjs +42 -35
- package/common/src/functions/web3/events/getShieldedBalance.cjs +1 -1
- package/common/src/functions/web3/events/getShieldedBalance.d.ts +4 -4
- package/common/src/functions/web3/events/getShieldedBalance.mjs +109 -93
- package/common/src/functions/web3/fetchSolanaMerkleTreeRootHash.cjs +1 -1
- package/common/src/functions/web3/fetchSolanaMerkleTreeRootHash.mjs +9 -6
- package/common/src/functions/web3/functionCalls/approveToken.cjs +1 -1
- package/common/src/functions/web3/functionCalls/approveToken.d.ts +1 -1
- package/common/src/functions/web3/functionCalls/approveToken.mjs +21 -107
- package/common/src/functions/web3/functionCalls/constructBatchCall.cjs +1 -1
- package/common/src/functions/web3/functionCalls/constructBatchCall.d.ts +2 -2
- package/common/src/functions/web3/functionCalls/constructBatchCall.mjs +23 -18
- package/common/src/functions/web3/functionCalls/submitProof.cjs +1 -0
- package/common/src/functions/web3/functionCalls/submitProof.d.ts +5 -0
- package/common/src/functions/web3/functionCalls/submitProof.mjs +26 -0
- package/common/src/functions/web3/functionCalls/transactCallDirectTron.cjs +1 -1
- package/common/src/functions/web3/functionCalls/transactCallDirectTron.d.ts +7 -3
- package/common/src/functions/web3/functionCalls/transactCallDirectTron.mjs +81 -53
- package/common/src/functions/web3/functionCalls/transactCallRelayer.cjs +1 -1
- package/common/src/functions/web3/functionCalls/transactCallRelayer.d.ts +8 -13
- package/common/src/functions/web3/functionCalls/transactCallRelayer.mjs +12 -8
- package/common/src/functions/web3/getPublicAddressBalance.cjs +1 -1
- package/common/src/functions/web3/getPublicAddressBalance.d.ts +1 -2
- package/common/src/functions/web3/getPublicAddressBalance.mjs +6 -5
- package/common/src/functions/web3/getTokenHolder.cjs +1 -1
- package/common/src/functions/web3/getTokenHolder.mjs +3 -2
- package/common/src/functions/web3/index.cjs +1 -1
- package/common/src/functions/web3/index.d.ts +1 -4
- package/common/src/functions/web3/index.mjs +1 -4
- package/common/src/functions/web3/lifiAPI.cjs +1 -1
- package/common/src/functions/web3/lifiAPI.mjs +38 -7
- package/common/src/providers/EthersProviderAdapter.cjs +1 -1
- package/common/src/providers/EthersProviderAdapter.d.ts +0 -1
- package/common/src/providers/EthersProviderAdapter.mjs +0 -3
- package/common/src/providers/SolanaProviderAdapter.cjs +1 -1
- package/common/src/providers/SolanaProviderAdapter.d.ts +1 -5
- package/common/src/providers/SolanaProviderAdapter.mjs +4 -11
- package/common/src/providers/TronProviderAdapter.cjs +1 -1
- package/common/src/providers/TronProviderAdapter.d.ts +0 -1
- package/common/src/providers/TronProviderAdapter.mjs +7 -4
- package/common/src/providers/WagmiProviderAdapter.cjs +1 -1
- package/common/src/providers/WagmiProviderAdapter.d.ts +0 -1
- package/common/src/providers/WagmiProviderAdapter.mjs +32 -39
- package/common/src/types/API.types.d.ts +0 -4
- package/common/src/types/WeeklyAnalytics.types.d.ts +1 -26
- package/common/src/types/activities.types.cjs +1 -1
- package/common/src/types/activities.types.d.ts +0 -9
- package/common/src/types/activities.types.mjs +1 -1
- package/common/src/types/admin.types.cjs +1 -1
- package/common/src/types/admin.types.d.ts +4 -1
- package/common/src/types/admin.types.mjs +1 -1
- package/common/src/types/bridging-tx.types.d.ts +26 -3
- package/common/src/types/cache.types.cjs +1 -1
- package/common/src/types/cache.types.d.ts +4 -3
- package/common/src/types/cache.types.mjs +1 -1
- package/common/src/types/circom-data.types.cjs +1 -1
- package/common/src/types/circom-data.types.d.ts +32 -27
- package/common/src/types/circom-data.types.mjs +1 -1
- package/common/src/types/commitments.types.d.ts +2 -0
- package/common/src/types/dashboard-account.d.ts +15 -0
- package/common/src/types/dashboard-payout.types.d.ts +1 -0
- package/common/src/types/dashboard-transaction.types.d.ts +3 -0
- package/common/src/types/enclaveApi.types.d.ts +77 -0
- package/common/src/types/ethereum-network.types.cjs +1 -1
- package/common/src/types/ethereum-network.types.d.ts +13 -29
- package/common/src/types/ethereum-network.types.mjs +1 -1
- package/common/src/types/events.types.d.ts +1 -0
- package/common/src/types/external-action.types.cjs +1 -1
- package/common/src/types/external-action.types.d.ts +4 -7
- package/common/src/types/external-action.types.mjs +1 -1
- package/common/src/types/hinkal.types.cjs +1 -1
- package/common/src/types/hinkal.types.d.ts +12 -29
- package/common/src/types/hinkal.types.mjs +12 -20
- package/common/src/types/index.cjs +1 -1
- package/common/src/types/index.d.ts +6 -5
- package/common/src/types/index.mjs +3 -2
- package/common/src/types/near-intents.types.d.ts +2 -0
- package/common/src/types/new-rewards.type.d.ts +0 -70
- package/common/src/types/offscreen.types.cjs +1 -1
- package/common/src/types/offscreen.types.d.ts +0 -1
- package/common/src/types/offscreen.types.mjs +1 -1
- package/common/src/types/pay-activities.types.d.ts +24 -4
- package/common/src/types/payout-notification.types.d.ts +11 -0
- package/common/src/types/proxy-progress.types.d.ts +5 -0
- package/common/src/types/remote-proof.types.d.ts +5 -6
- package/common/src/types/remote-tx-build.types.d.ts +298 -0
- package/common/src/types/scheduled-transactions.types.d.ts +25 -12
- package/common/src/types/snark.types.d.ts +1 -3
- package/common/src/types/solana-transact.types.cjs +1 -0
- package/common/src/types/solana-transact.types.d.ts +35 -0
- package/common/src/types/solana-transact.types.mjs +6 -0
- package/common/src/types/solana.types.cjs +1 -0
- package/common/src/types/solana.types.d.ts +12 -3
- package/common/src/types/solana.types.mjs +6 -0
- package/common/src/types/temp-wallet.types.d.ts +9 -0
- package/common/src/types/tenderly.api.types.d.ts +70 -0
- package/common/src/types/token.types.cjs +1 -1
- package/common/src/types/token.types.d.ts +10 -0
- package/common/src/types/token.types.mjs +2 -2
- package/common/src/types/transact.types.cjs +1 -0
- package/common/src/types/transact.types.d.ts +53 -0
- package/common/src/types/transact.types.mjs +6 -0
- package/common/src/types/transaction.types.d.ts +0 -1
- package/common/src/types/transactions.types.d.ts +0 -1
- package/common/src/webworker/logError-ScFy7p5w.js +2 -0
- package/common/src/webworker/package.json +26 -25
- package/common/src/webworker/snarkjsWorker/snarkjsWorkerLauncher.ts?worker&url.cjs +1 -1
- package/common/src/webworker/snarkjsWorker/snarkjsWorkerLauncher.ts?worker&url.mjs +1 -1
- package/common/src/webworker/snarkjsWorkerNode.cjs +1 -1
- package/common/src/webworker/utxoWorker/utxoWorker.types.d.ts +4 -2
- package/common/src/webworker/utxoWorker/utxoWorkerLauncher.ts?worker&url.cjs +1 -1
- package/common/src/webworker/utxoWorker/utxoWorkerLauncher.ts?worker&url.mjs +1 -1
- package/common/src/webworker/utxoWorkerNode.cjs +1 -1
- package/common/src/webworker/viteWorkerURL.constant.cjs +3 -3
- package/common/src/webworker/viteWorkerURL.constant.mjs +3 -3
- package/common/src/webworker/workerProxy-B_eSl85g.js +1 -0
- package/common/src/webworker/zkProofWorker/zkProofWorkerLauncher.ts?worker&url.cjs +1 -1
- package/common/src/webworker/zkProofWorker/zkProofWorkerLauncher.ts?worker&url.mjs +1 -1
- package/common/src/webworker/zkProofWorkerNode.cjs +1 -1
- package/index.cjs +1 -1
- package/index.mjs +1 -1
- package/internal/swapApi.cjs +1 -1
- package/internal/swapApi.d.ts +3 -3
- package/internal/swapApi.mjs +22 -25
- package/package.json +26 -25
- package/providers/prepareEthersHinkal.cjs +1 -1
- package/providers/prepareEthersHinkal.d.ts +1 -0
- package/providers/prepareEthersHinkal.mjs +2 -2
- package/providers/prepareSolanaHinkal.cjs +1 -1
- package/providers/prepareSolanaHinkal.d.ts +1 -0
- package/providers/prepareSolanaHinkal.mjs +2 -2
- package/providers/prepareTronHinkal.cjs +1 -1
- package/providers/prepareTronHinkal.d.ts +1 -0
- package/providers/prepareTronHinkal.mjs +2 -2
- package/providers/prepareWagmiHinkal.cjs +1 -1
- package/providers/prepareWagmiHinkal.d.ts +1 -0
- package/providers/prepareWagmiHinkal.mjs +2 -2
- package/services/Hinkal.cjs +1 -1
- package/services/Hinkal.d.ts +16 -10
- package/services/Hinkal.mjs +29 -17
- package/types/IHinkal.d.ts +16 -10
- package/types/swap.types.d.ts +3 -20
- package/common/src/API/accessCodeCalls.cjs +0 -1
- package/common/src/API/accessCodeCalls.d.ts +0 -23
- package/common/src/API/accessCodeCalls.mjs +0 -13
- package/common/src/API/brotherhoodCalls.cjs +0 -1
- package/common/src/API/brotherhoodCalls.d.ts +0 -82
- package/common/src/API/brotherhoodCalls.mjs +0 -17
- package/common/src/API/callOdosAPI.cjs +0 -1
- package/common/src/API/callOdosAPI.d.ts +0 -63
- package/common/src/API/callOdosAPI.mjs +0 -18
- package/common/src/API/callOneInchAPI.cjs +0 -1
- package/common/src/API/callOneInchAPI.d.ts +0 -18
- package/common/src/API/callOneInchAPI.mjs +0 -13
- package/common/src/API/deposit-and-withdraw-status-calls.cjs +0 -1
- package/common/src/API/deposit-and-withdraw-status-calls.d.ts +0 -21
- package/common/src/API/deposit-and-withdraw-status-calls.mjs +0 -13
- package/common/src/API/generate-trading-points.cjs +0 -1
- package/common/src/API/generate-trading-points.d.ts +0 -27
- package/common/src/API/generate-trading-points.mjs +0 -23
- package/common/src/API/getAnyRecipientInfo.d.ts +0 -1
- package/common/src/API/leaderboardCalls.cjs +0 -1
- package/common/src/API/leaderboardCalls.d.ts +0 -14
- package/common/src/API/leaderboardCalls.mjs +0 -8
- package/common/src/API/referralsCalls.cjs +0 -1
- package/common/src/API/referralsCalls.d.ts +0 -22
- package/common/src/API/referralsCalls.mjs +0 -11
- package/common/src/API/send-telegram-callback.cjs +0 -1
- package/common/src/API/send-telegram-callback.d.ts +0 -7
- package/common/src/API/send-telegram-callback.mjs +0 -11
- package/common/src/constants/mystery-boxes.constants.d.ts +0 -0
- package/common/src/constants/price-impact.constants.d.ts +0 -2
- package/common/src/constants/rewards.constants.d.ts +0 -15
- package/common/src/constants/tasks.constants.cjs +0 -1
- package/common/src/constants/tasks.constants.d.ts +0 -9
- package/common/src/constants/tasks.constants.mjs +0 -124
- package/common/src/crypto/ecdh-dual-path.cjs +0 -1
- package/common/src/crypto/ecdh-dual-path.d.ts +0 -13
- package/common/src/crypto/ecdh-dual-path.mjs +0 -6
- package/common/src/data-structures/Hinkal/hinkalMultiSend.cjs +0 -1
- package/common/src/data-structures/Hinkal/hinkalMultiSend.d.ts +0 -3
- package/common/src/data-structures/Hinkal/hinkalMultiSend.mjs +0 -12
- package/common/src/data-structures/Hinkal/hinkalProoflessDepositViaWrapper.cjs +0 -1
- package/common/src/data-structures/Hinkal/hinkalProoflessDepositViaWrapper.d.ts +0 -6
- package/common/src/data-structures/Hinkal/hinkalProoflessDepositViaWrapper.mjs +0 -128
- package/common/src/data-structures/Hinkal/prepareDepositOnChainUtxosZkProof.cjs +0 -1
- package/common/src/data-structures/Hinkal/prepareDepositOnChainUtxosZkProof.d.ts +0 -22
- package/common/src/data-structures/Hinkal/prepareDepositOnChainUtxosZkProof.mjs +0 -34
- package/common/src/data-structures/TokenDBs/AlchemyPublicTokensDB.cjs +0 -1
- package/common/src/data-structures/TokenDBs/AlchemyPublicTokensDB.mjs +0 -172
- package/common/src/data-structures/TokenDBs/ArcPublicTokensDB.cjs +0 -1
- package/common/src/data-structures/TokenDBs/ArcPublicTokensDB.mjs +0 -94
- package/common/src/data-structures/TokenDBs/EventsPublicTokensDB.cjs +0 -1
- package/common/src/data-structures/TokenDBs/EventsPublicTokensDB.mjs +0 -134
- package/common/src/data-structures/TokenDBs/PublicTokensDB.cjs +0 -1
- package/common/src/data-structures/TokenDBs/PublicTokensDB.mjs +0 -32
- package/common/src/data-structures/TokenDBs/TempoPublicTokensDB.cjs +0 -1
- package/common/src/data-structures/TokenDBs/TempoPublicTokensDB.mjs +0 -41
- package/common/src/data-structures/TokenDBs/TronPublicTokensDB.cjs +0 -1
- package/common/src/data-structures/TokenDBs/TronPublicTokensDB.mjs +0 -47
- package/common/src/data-structures/TokenDBs/index.cjs +0 -1
- package/common/src/data-structures/TokenDBs/index.mjs +0 -6
- package/common/src/externalABIs/IQuoterV2.json.cjs +0 -1
- package/common/src/externalABIs/IQuoterV2.json.mjs +0 -203
- package/common/src/externalABIs/ISwapRouter.json.cjs +0 -1
- package/common/src/externalABIs/ISwapRouter.json.mjs +0 -537
- package/common/src/externalABIs/IUniswapV3Factory.json.cjs +0 -1
- package/common/src/externalABIs/IUniswapV3Factory.json.mjs +0 -188
- package/common/src/externalABIs/IUniswapV3Pool.json.cjs +0 -1
- package/common/src/externalABIs/IUniswapV3Pool.json.mjs +0 -938
- package/common/src/externalABIs/UniswapV2PoolAbi.json.cjs +0 -1
- package/common/src/externalABIs/UniswapV2PoolAbi.json.mjs +0 -78
- package/common/src/functions/pre-transaction/interaction-to-action.cjs +0 -1
- package/common/src/functions/pre-transaction/interaction-to-action.d.ts +0 -2
- package/common/src/functions/pre-transaction/interaction-to-action.mjs +0 -1
- package/common/src/functions/pre-transaction/recipientUtxoProcessing.cjs +0 -1
- package/common/src/functions/pre-transaction/recipientUtxoProcessing.d.ts +0 -3
- package/common/src/functions/pre-transaction/recipientUtxoProcessing.mjs +0 -32
- package/common/src/functions/pre-transaction/waitForDepositedUtxosInMerkleTree.cjs +0 -1
- package/common/src/functions/pre-transaction/waitForDepositedUtxosInMerkleTree.mjs +0 -29
- package/common/src/functions/private-wallet/opProducer.cjs +0 -1
- package/common/src/functions/private-wallet/opProducer.d.ts +0 -5
- package/common/src/functions/private-wallet/opProducer.mjs +0 -3
- package/common/src/functions/snarkjs/generateZkProofEnclave.cjs +0 -1
- package/common/src/functions/snarkjs/generateZkProofEnclave.d.ts +0 -5
- package/common/src/functions/snarkjs/generateZkProofEnclave.mjs +0 -27
- package/common/src/functions/utils/bit.operations.cjs +0 -1
- package/common/src/functions/utils/bit.operations.d.ts +0 -3
- package/common/src/functions/utils/bit.operations.mjs +0 -4
- package/common/src/functions/utils/get-signature-header.cjs +0 -1
- package/common/src/functions/utils/get-signature-header.d.ts +0 -5
- package/common/src/functions/utils/get-signature-header.mjs +0 -4
- package/common/src/functions/utils/ipfs.cjs +0 -1
- package/common/src/functions/utils/ipfs.mjs +0 -1
- package/common/src/functions/utils/reloadPage.cjs +0 -1
- package/common/src/functions/utils/reloadPage.mjs +0 -4
- package/common/src/functions/web3/getSolanaPriorityFee.cjs +0 -1
- package/common/src/functions/web3/getSolanaPriorityFee.d.ts +0 -3
- package/common/src/functions/web3/getSolanaPriorityFee.mjs +0 -26
- package/common/src/functions/web3/odosAPI.cjs +0 -1
- package/common/src/functions/web3/odosAPI.d.ts +0 -5
- package/common/src/functions/web3/odosAPI.mjs +0 -35
- package/common/src/functions/web3/oneInchAPI.cjs +0 -1
- package/common/src/functions/web3/oneInchAPI.d.ts +0 -5
- package/common/src/functions/web3/oneInchAPI.mjs +0 -34
- package/common/src/functions/web3/uniswapAPI.cjs +0 -1
- package/common/src/functions/web3/uniswapAPI.d.ts +0 -16
- package/common/src/functions/web3/uniswapAPI.mjs +0 -60
- package/common/src/types/brotherhood-user.types.d.ts +0 -11
- package/common/src/types/crypto.types.d.ts +0 -8
- package/common/src/types/generatePoints.d.ts +0 -14
- package/common/src/types/new-rewards.type.cjs +0 -1
- package/common/src/types/new-rewards.type.mjs +0 -10
- package/common/src/types/referral.types.d.ts +0 -12
- package/common/src/types/rewards.types.d.ts +0 -34
- package/common/src/types/scheduled-transactions.types.cjs +0 -1
- package/common/src/types/scheduled-transactions.types.mjs +0 -6
- package/common/src/types/token-with-id.types.d.ts +0 -4
- package/common/src/webworker/logError-CZYZ3oyV.js +0 -2
- package/common/src/webworker/workerProxy-DPeuP2Mg.js +0 -1
|
@@ -2,6 +2,7 @@ export * from './amounts.utils';
|
|
|
2
2
|
export * from './abi.utils';
|
|
3
3
|
export * from './cacheFunctions';
|
|
4
4
|
export * from './create-provider';
|
|
5
|
+
export * from './resolve-domain-address';
|
|
5
6
|
export * from './external-action.utils';
|
|
6
7
|
export * from './erc20tokenFunctions';
|
|
7
8
|
export * from './requireEnv';
|
|
@@ -15,6 +16,7 @@ export * from './reloadPage';
|
|
|
15
16
|
export * from './string.utils';
|
|
16
17
|
export * from './nickname.utils';
|
|
17
18
|
export * from './caseInsensitive.utils';
|
|
19
|
+
export * from './encodeTokenWithId';
|
|
18
20
|
export * from './time.utils';
|
|
19
21
|
export * from './cacheDevice.utils';
|
|
20
22
|
export * from './process.utils';
|
|
@@ -38,7 +40,7 @@ export * from './inLogicMetadata';
|
|
|
38
40
|
export * from './networks.utils';
|
|
39
41
|
export * from './is-valid-url';
|
|
40
42
|
export * from './postToOffscreen';
|
|
41
|
-
export * from './
|
|
43
|
+
export * from './solana-program.utils';
|
|
42
44
|
export * from './solanaMint.utils';
|
|
43
45
|
export * from './solanaSendPreflight.utils';
|
|
44
46
|
export * from './prepareHinkal';
|
|
@@ -46,6 +48,7 @@ export * from './bytes32.utils';
|
|
|
46
48
|
export * from './getUtxosFromReceipt.utils';
|
|
47
49
|
export * from './getUtxosFromReceiptSolana';
|
|
48
50
|
export * from './fees.utils';
|
|
51
|
+
export * from './recovery-balance.utils';
|
|
49
52
|
export * from './proxyAvatar.utils';
|
|
50
53
|
export * from './validateUsername';
|
|
51
54
|
export * from './enclave-utxo-storage';
|
|
@@ -53,14 +56,20 @@ export * from './enclave-signature-storage';
|
|
|
53
56
|
export * from './serialize-utxos.utils';
|
|
54
57
|
export * from './tx-confirmation.utils';
|
|
55
58
|
export * from './buildClaimableDepositPlan';
|
|
59
|
+
export * from './deposit-claimable.utils';
|
|
56
60
|
export * from './pay-routing.utils';
|
|
57
61
|
export * from './formatter';
|
|
58
62
|
export * from './tron.utils';
|
|
59
63
|
export * from './tronSimulation.utils';
|
|
60
64
|
export * from './getSignerFromContract';
|
|
61
65
|
export * from './getContractAddress';
|
|
62
|
-
export * from './deposit-claimable.utils';
|
|
63
66
|
export * from './transfer-claimable.utils';
|
|
67
|
+
export * from './bridge-arrival.utils';
|
|
68
|
+
export * from './bridge-claimable.utils';
|
|
69
|
+
export * from './bridge-flow.utils';
|
|
70
|
+
export * from './solana-sponsored.utils';
|
|
71
|
+
export * from './temp-wallet.utils';
|
|
72
|
+
export * from './temporary-wallet-recovery.utils';
|
|
64
73
|
export * from './auth.utils';
|
|
65
74
|
export * from './getWalletGroupKey.utils';
|
|
66
75
|
export * from './encryptInputForEnclave';
|
|
@@ -70,6 +79,11 @@ export * from './lifi.utils';
|
|
|
70
79
|
export * from './enclave-recipient-info-storage';
|
|
71
80
|
export * from './solana-memo';
|
|
72
81
|
export * from './mnemonics';
|
|
82
|
+
export * from './legacyKeys';
|
|
73
83
|
export * from './customEnclaveFunctionsRegister';
|
|
74
|
-
export * from './bit.operations';
|
|
75
84
|
export * from './nearIntents.utils';
|
|
85
|
+
export * from './voidWallets.utils';
|
|
86
|
+
export * from './enclaveSessionSigning';
|
|
87
|
+
export * from './validateWalletAddress';
|
|
88
|
+
export * from './waasStamp';
|
|
89
|
+
export * from './sponsored-shield.utils';
|
|
@@ -5,14 +5,15 @@ import "./amounts.utils.mjs";
|
|
|
5
5
|
import "./time.utils.mjs";
|
|
6
6
|
import "./upToDateState.mjs";
|
|
7
7
|
import "./cacheFunctions.mjs";
|
|
8
|
+
import "./encodeTokenWithId.mjs";
|
|
8
9
|
import "./enclaveHandshakeService.mjs";
|
|
9
10
|
import "./encryptInputForEnclave.mjs";
|
|
10
11
|
import "./solanaMint.utils.mjs";
|
|
11
|
-
import "./customEnclaveFunctionsRegister.mjs";
|
|
12
12
|
import "./serialize-utxos.utils.mjs";
|
|
13
|
-
import "./
|
|
13
|
+
import "./customEnclaveFunctionsRegister.mjs";
|
|
14
14
|
import "./tron.utils.mjs";
|
|
15
|
-
import "./
|
|
15
|
+
import "./addresses.mjs";
|
|
16
|
+
import "./legacyKeys.mjs";
|
|
16
17
|
import "./auth.utils.mjs";
|
|
17
18
|
import "./string.utils.mjs";
|
|
18
19
|
import "./token-check.utils.mjs";
|
|
@@ -21,27 +22,30 @@ import "./mutexes.utils.mjs";
|
|
|
21
22
|
import "./erc20tokenFunctions.mjs";
|
|
22
23
|
import "../pre-transaction/outputUtxoProcessing.mjs";
|
|
23
24
|
import "./external-action.utils.mjs";
|
|
24
|
-
import "./bit.operations.mjs";
|
|
25
25
|
import "../pre-transaction/solana.mjs";
|
|
26
26
|
import "../pre-transaction/process-gas-estimates.mjs";
|
|
27
27
|
import "../pre-transaction/getVolatileTransferAmount.mjs";
|
|
28
28
|
import "../pre-transaction/constructAdminData.mjs";
|
|
29
29
|
import "./create-provider.mjs";
|
|
30
|
+
import "../pre-transaction/calculateSolanaNullifierCount.mjs";
|
|
30
31
|
import "../pre-transaction/convert-okx-instructions.mjs";
|
|
31
32
|
import "./process.utils.mjs";
|
|
32
33
|
import "../pre-transaction/sendV0Transaction.mjs";
|
|
33
34
|
import "./bytes32.utils.mjs";
|
|
34
|
-
import "../pre-transaction/recipientUtxoProcessing.mjs";
|
|
35
|
-
import "../pre-transaction/ensureAmountChanges.mjs";
|
|
36
35
|
import "../pre-transaction/getFeeStructure.mjs";
|
|
37
|
-
import "../pre-transaction/
|
|
36
|
+
import "../pre-transaction/getExternalSwapAddress.mjs";
|
|
37
|
+
import "../pre-transaction/speculativeUtxo.mjs";
|
|
38
38
|
import "../pre-transaction/buildCommitmentValidationData.mjs";
|
|
39
39
|
import "../pre-transaction/index.mjs";
|
|
40
|
+
import "./solana-program.utils.mjs";
|
|
41
|
+
import "./getContractAddress.mjs";
|
|
42
|
+
import "./getSignerFromContract.mjs";
|
|
43
|
+
import "./tronSimulation.utils.mjs";
|
|
44
|
+
import "./resolve-domain-address.mjs";
|
|
40
45
|
import "./resolve-sync.utils.mjs";
|
|
41
46
|
import "./convertIntegrationProviderToExternalActionId.mjs";
|
|
42
47
|
import "./evmNetworkFunctions.mjs";
|
|
43
48
|
import "./userAgent.mjs";
|
|
44
|
-
import "./reloadPage.mjs";
|
|
45
49
|
import "./cacheDevice.utils.mjs";
|
|
46
50
|
import "./getBlockExplorerUrl.mjs";
|
|
47
51
|
import "./involves-permit2-op.mjs";
|
|
@@ -55,23 +59,33 @@ import "./inLogicMetadata.mjs";
|
|
|
55
59
|
import "./networks.utils.mjs";
|
|
56
60
|
import "./postToOffscreen.mjs";
|
|
57
61
|
import "./solanaSendPreflight.utils.mjs";
|
|
62
|
+
import "./voidWallets.utils.mjs";
|
|
58
63
|
import "./prepareHinkal.mjs";
|
|
59
|
-
import "./getContractAddress.mjs";
|
|
60
64
|
import "./getUtxosFromReceipt.utils.mjs";
|
|
61
65
|
import "./getUtxosFromReceiptSolana.mjs";
|
|
62
66
|
import "./fees.utils.mjs";
|
|
67
|
+
import "./recovery-balance.utils.mjs";
|
|
68
|
+
import "./proxyAvatar.utils.mjs";
|
|
63
69
|
import "./enclave-utxo-storage.mjs";
|
|
64
70
|
import "./enclave-signature-storage.mjs";
|
|
65
71
|
import "./tx-confirmation.utils.mjs";
|
|
66
72
|
import "./buildClaimableDepositPlan.mjs";
|
|
67
|
-
import "./formatter.mjs";
|
|
68
|
-
import "./tronSimulation.utils.mjs";
|
|
69
|
-
import "./getSignerFromContract.mjs";
|
|
70
73
|
import "./deposit-claimable.utils.mjs";
|
|
74
|
+
import "./formatter.mjs";
|
|
71
75
|
import "./transfer-claimable.utils.mjs";
|
|
76
|
+
import "./bridge-arrival.utils.mjs";
|
|
77
|
+
import "./bridge-flow.utils.mjs";
|
|
78
|
+
import "./bridge-claimable.utils.mjs";
|
|
79
|
+
import "./solana-sponsored.utils.mjs";
|
|
80
|
+
import "./temp-wallet.utils.mjs";
|
|
81
|
+
import "./enclave-recipient-info-storage.mjs";
|
|
82
|
+
import "./temporary-wallet-recovery.utils.mjs";
|
|
72
83
|
import "./dispatchBalanceRefreshes.mjs";
|
|
73
84
|
import "./lifi.utils.mjs";
|
|
74
|
-
import "./enclave-recipient-info-storage.mjs";
|
|
75
85
|
import "./solana-memo.mjs";
|
|
76
86
|
import "./mnemonics.mjs";
|
|
77
87
|
import "./nearIntents.utils.mjs";
|
|
88
|
+
import "./enclaveSessionSigning.mjs";
|
|
89
|
+
import "./validateWalletAddress.mjs";
|
|
90
|
+
import "./waasStamp.mjs";
|
|
91
|
+
import "./sponsored-shield.utils.mjs";
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Formats URL correctly for use retrieving assets hosted on IPFS.
|
|
3
3
|
*
|
|
4
4
|
* @param ipfsUrl - The IFPS URL pointed at the asset.
|
|
5
|
-
* @
|
|
6
|
-
* @returns A formatted URL, with the user's preferred IPFS gateway and format (subdomain or not), pointing to an asset hosted on IPFS.
|
|
5
|
+
* @returns A formatted URL, with the user's preferred IPFS gateway, pointing to an asset hosted on IPFS.
|
|
7
6
|
*/
|
|
8
|
-
export declare const getFormattedIpfsUrl: (ipfsUrl: string
|
|
7
|
+
export declare const getFormattedIpfsUrl: (ipfsUrl: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`../../../../_virtual/_rolldown/runtime.cjs`);require(`../../crypto/poseidon.cjs`);let t=require(`ethers`);require(`@solana/web3.js`);let n=require(`bs58`);n=e.__toESM(n);var r=e=>t.ethers.keccak256(e);exports.generateLegacyShieldedPrivateKey=r;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface LegacyAddresses {
|
|
2
|
+
ethereumAddress: string;
|
|
3
|
+
solanaPublicKey: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const generateLegacySignatureFromSeedPhrases: (seedPhrases: string[]) => string;
|
|
6
|
+
export declare const generateLegacyShieldedPrivateKey: (legacySignature: string) => string;
|
|
7
|
+
export declare const generateAddressesFromSignature: (signature: string) => LegacyAddresses;
|
|
8
|
+
export declare const generateLegacySignerPrivateKeyFromNonce: (signature: string, walletNonce: bigint) => string;
|
|
9
|
+
export declare const generateLegacySignerSolanaPrivateKeyFromNonce: (signature: string, walletNonce: bigint) => string;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "../../crypto/poseidon.mjs";
|
|
2
|
+
import { ethers as e } from "ethers";
|
|
3
|
+
import "@solana/web3.js";
|
|
4
|
+
import "bs58";
|
|
5
|
+
//#region libs/shared/common/src/functions/utils/legacyKeys.ts
|
|
6
|
+
var t = (t) => e.keccak256(t);
|
|
7
|
+
//#endregion
|
|
8
|
+
export { t as generateLegacyShieldedPrivateKey };
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { ERC20Token } from '../../types/token.types';
|
|
2
2
|
export declare const getLifiScanURL: (txHash: string) => string;
|
|
3
|
+
export declare const getLifiQuoteOutputRatio: (fromAmountUSD: string, toAmountUSD: string) => number | undefined;
|
|
4
|
+
export declare const isLifiQuotePlausible: (fromAmountUSD: string, toAmountUSD: string) => boolean;
|
|
5
|
+
export declare const isLifiQuoteAcceptable: (fromAmountUSD: string, toAmountUSD: string, executionDurationSeconds: number | undefined) => boolean;
|
|
3
6
|
export declare const getEquivalentBridgedTokenForTempo: (sourceToken: ERC20Token, destChainId: number, destTokenList: ERC20Token[]) => ERC20Token | undefined;
|
|
4
7
|
export declare const getEquivalentNativeToken: (sourceChainId: number, destChainId: number, fullTokenList: ERC20Token[]) => ERC20Token | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`../../../../_virtual/_rolldown/runtime.cjs`);
|
|
1
|
+
require(`../../../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../crypto/poseidon.cjs`);let t=require(`ethers`);var n=n=>e.poseidonHash(t.ethers.hexlify(t.ethers.toUtf8Bytes(n.join(` `))));exports.generateHashFromSeedPhrases=n;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { poseidonHash as e } from "../../crypto/poseidon.mjs";
|
|
2
|
+
import { ethers as t } from "ethers";
|
|
2
3
|
//#region libs/shared/common/src/functions/utils/mnemonics.ts
|
|
3
|
-
var
|
|
4
|
-
let n = t.join(" "), r = e.toUtf8Bytes(n);
|
|
5
|
-
return e.keccak256(r);
|
|
6
|
-
};
|
|
4
|
+
var n = (n) => e(t.hexlify(t.toUtf8Bytes(n.join(" "))));
|
|
7
5
|
//#endregion
|
|
8
|
-
export {
|
|
6
|
+
export { n as generateHashFromSeedPhrases };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`../../constants/chains.constants.cjs`)
|
|
1
|
+
const e=require(`../../constants/chains.constants.cjs`),t=require(`../../constants/protocol.constants.cjs`),n=require(`./caseInsensitive.utils.cjs`),r=require(`./tron.utils.cjs`),i=require(`./addresses.cjs`),a=require(`../../types/external-action.types.cjs`);require(`./erc20tokenFunctions.cjs`);const o=require(`../pre-transaction/getFeeStructure.cjs`),s=require(`../../constants/bridging.constants.cjs`),c=require(`../../API/callNearIntentsAPI.cjs`);var l=(t,n)=>{if(!n||!e.isTronLike(t))return n;try{return r.addressToHexFormat(n)}catch{return n}},u=async(e,t)=>{let r=s.NEAR_INTENTS_BLOCKCHAIN_BY_CHAIN_ID[e];if(!r)throw Error(`NEAR Intents does not support chain ${e}`);let a=(await c.getNearIntentsTokens()).filter(e=>e.blockchain===r),o=i.isNativePlaceholderAddress(t)?a.find(e=>!e.contractAddress):a.find(r=>r.contractAddress&&n.caseInsensitiveEqual(l(e,r.contractAddress),t));if(!o)throw Error(`No NEAR Intents asset for token ${t} on chain ${e}`);return o.assetId},d=(e,n,r)=>o.getFeeStructure(e,n.erc20TokenAddress,[n.erc20TokenAddress],a.ExternalActionId.Transact,[],t.PAY_SEND_VARIABLE_RATE,{mintTo:n.erc20TokenAddress,recipient:r,nullifierCount:n.erc20TokenAddress===`11111111111111111111111111111111`?0:1});exports.buildNearBridgeFeeStructure=d,exports.resolveNearAssetId=u;
|
|
@@ -1,17 +1,31 @@
|
|
|
1
|
-
import "../../constants/chains.constants.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
1
|
+
import { isTronLike as e } from "../../constants/chains.constants.mjs";
|
|
2
|
+
import { PAY_SEND_VARIABLE_RATE as t } from "../../constants/protocol.constants.mjs";
|
|
3
|
+
import { caseInsensitiveEqual as n } from "./caseInsensitive.utils.mjs";
|
|
4
|
+
import { addressToHexFormat as r } from "./tron.utils.mjs";
|
|
5
|
+
import { isNativePlaceholderAddress as i } from "./addresses.mjs";
|
|
6
|
+
import { ExternalActionId as a } from "../../types/external-action.types.mjs";
|
|
6
7
|
import "./erc20tokenFunctions.mjs";
|
|
7
|
-
import { getFeeStructure as
|
|
8
|
-
import "../../constants/bridging.constants.mjs";
|
|
9
|
-
import "../../API/callNearIntentsAPI.mjs";
|
|
8
|
+
import { getFeeStructure as o } from "../pre-transaction/getFeeStructure.mjs";
|
|
9
|
+
import { NEAR_INTENTS_BLOCKCHAIN_BY_CHAIN_ID as s } from "../../constants/bridging.constants.mjs";
|
|
10
|
+
import { getNearIntentsTokens as c } from "../../API/callNearIntentsAPI.mjs";
|
|
10
11
|
//#region libs/shared/common/src/functions/utils/nearIntents.utils.ts
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
var l = (t, n) => {
|
|
13
|
+
if (!n || !e(t)) return n;
|
|
14
|
+
try {
|
|
15
|
+
return r(n);
|
|
16
|
+
} catch {
|
|
17
|
+
return n;
|
|
18
|
+
}
|
|
19
|
+
}, u = async (e, t) => {
|
|
20
|
+
let r = s[e];
|
|
21
|
+
if (!r) throw Error(`NEAR Intents does not support chain ${e}`);
|
|
22
|
+
let a = (await c()).filter((e) => e.blockchain === r), o = i(t) ? a.find((e) => !e.contractAddress) : a.find((r) => r.contractAddress && n(l(e, r.contractAddress), t));
|
|
23
|
+
if (!o) throw Error(`No NEAR Intents asset for token ${t} on chain ${e}`);
|
|
24
|
+
return o.assetId;
|
|
25
|
+
}, d = (e, n, r) => o(e, n.erc20TokenAddress, [n.erc20TokenAddress], a.Transact, [], t, {
|
|
26
|
+
mintTo: n.erc20TokenAddress,
|
|
27
|
+
recipient: r,
|
|
28
|
+
nullifierCount: n.erc20TokenAddress === "11111111111111111111111111111111" ? 0 : 1
|
|
15
29
|
});
|
|
16
30
|
//#endregion
|
|
17
|
-
export {
|
|
31
|
+
export { d as buildNearBridgeFeeStructure, u as resolveNearAssetId };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`../../constants/chains.constants.cjs`),require(`./create-provider.cjs`),require(`../../crypto/preProcessing.cjs`),require(`../../providers/EthersProviderAdapter.cjs`),require(`../../providers/SolanaProviderAdapter.cjs`),require(`
|
|
1
|
+
require(`../../constants/chains.constants.cjs`),require(`./legacyKeys.cjs`),require(`./create-provider.cjs`),require(`../../crypto/preProcessing.cjs`),require(`../../providers/EthersProviderAdapter.cjs`),require(`../../providers/SolanaProviderAdapter.cjs`),require(`./voidWallets.utils.cjs`),require(`ethers`);
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { ethers } from 'ethers';
|
|
2
2
|
import { IHinkal } from '../../data-structures/Hinkal/IHinkal';
|
|
3
|
-
import { SolanaWallet } from '../../types/solana.types';
|
|
4
3
|
export declare const createSigner: (privateKey: string) => ethers.Wallet;
|
|
5
4
|
export declare const createVoidSigner: (address: string) => ethers.VoidSigner;
|
|
6
5
|
export declare const prepareHinkal: (hinkal: IHinkal, signer: ethers.Wallet) => Promise<void>;
|
|
7
6
|
export declare const prepareEthersProviderAdapter: (hinkal: IHinkal, ethereumAddress: string) => Promise<void>;
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const prepareSolanaProviderAdapter: (hinkal: IHinkal, ethereumAddress: string) => Promise<void>;
|
|
7
|
+
export declare const prepareSolanaProviderAdapter: (hinkal: IHinkal, solanaAddress: string) => Promise<void>;
|
|
10
8
|
export declare const prepareHinkalWithSignature: (hinkal: IHinkal, ethereumAddress: string, signature: string) => Promise<void>;
|
|
11
9
|
export declare const prepareHinkalFromSeedPhrases: (hinkal: IHinkal, seedPhrases: string[]) => Promise<void>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import "../../constants/chains.constants.mjs";
|
|
2
|
+
import "./legacyKeys.mjs";
|
|
2
3
|
import "./create-provider.mjs";
|
|
3
4
|
import "../../crypto/preProcessing.mjs";
|
|
4
5
|
import "../../providers/EthersProviderAdapter.mjs";
|
|
5
6
|
import "../../providers/SolanaProviderAdapter.mjs";
|
|
7
|
+
import "./voidWallets.utils.mjs";
|
|
6
8
|
import "ethers";
|
|
7
|
-
import "@solana/web3.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=e=>new Promise(t=>{setTimeout(t,e)}),t=async(
|
|
1
|
+
var e=e=>new Promise(t=>{setTimeout(t,e)}),t=async(t,n={})=>{let r=n.intervalMs??5e3,i=n.timeoutMs??6e4,a=Math.floor(i/r)+1;for(let n=0;n<a;n+=1){try{let e=await t();if(e!=null)return e}catch{}n<a-1&&await e(r)}};exports.pollForValue=t,exports.wait=e;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/** pause execution for a number of miliseconds */
|
|
2
2
|
export declare const wait: (miliseconds: number) => Promise<unknown>;
|
|
3
|
-
export declare const withTimeout: <T>(promise: Promise<T>, timeoutMs?: number) => Promise<T>;
|
|
4
3
|
type PollForValueOptions = {
|
|
5
4
|
intervalMs?: number;
|
|
6
5
|
timeoutMs?: number;
|
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
//#region libs/shared/common/src/functions/utils/process.utils.ts
|
|
2
2
|
var e = (e) => new Promise((t) => {
|
|
3
3
|
setTimeout(t, e);
|
|
4
|
-
}), t = async (
|
|
5
|
-
let n, r = new Promise((e, r) => {
|
|
6
|
-
n = setTimeout(() => r(/* @__PURE__ */ Error(`Timeout after ${t}ms`)), t);
|
|
7
|
-
});
|
|
8
|
-
try {
|
|
9
|
-
return await Promise.race([e, r]);
|
|
10
|
-
} finally {
|
|
11
|
-
clearTimeout(n);
|
|
12
|
-
}
|
|
13
|
-
}, n = async (t, n = {}) => {
|
|
4
|
+
}), t = async (t, n = {}) => {
|
|
14
5
|
let r = n.intervalMs ?? 5e3, i = n.timeoutMs ?? 6e4, a = Math.floor(i / r) + 1;
|
|
15
6
|
for (let n = 0; n < a; n += 1) {
|
|
16
7
|
try {
|
|
@@ -21,4 +12,4 @@ var e = (e) => new Promise((t) => {
|
|
|
21
12
|
}
|
|
22
13
|
};
|
|
23
14
|
//#endregion
|
|
24
|
-
export {
|
|
15
|
+
export { t as pollForValue, e as wait };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=()=>Math.floor(Math.random()*353);exports.getRandomProxyAvatarIndex=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`../../../../_virtual/_rolldown/runtime.cjs`)
|
|
1
|
+
require(`../../../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../constants/chains.constants.cjs`),t=require(`../../constants/protocol.constants.cjs`);require(`../../data-structures/http/index.cjs`);const n=require(`./solanaMint.utils.cjs`),r=require(`../../error-handling/logger.cjs`),i=require(`./addresses.cjs`),a=require(`./erc20tokenFunctions.cjs`);require(`../../data-structures/token-price-fetcher/TokenChecker.cjs`);const o=require(`./create-provider.cjs`);require(`../../externalABIs/index.cjs`);const s=require(`../../externalABIs/swapAbi.cjs`);require(`../../data-structures/IndexedDB/key-val-store.cjs`);let c=require(`ethers`),l=require(`@solana/web3.js`);var u=async(e,n,r)=>{try{let i=r.erc20TokenAddress,a,o=new c.ethers.Contract(r.erc20TokenAddress,s.ERC20ABI,e);a=i===t.zeroAddress?await e.getBalance(n):await o?.balanceOf(n);let l=a;return l<=0n?null:{token:r,balance:l}}catch{return null}},d=async(e,t,r)=>{if(r.erc20TokenAddress===`11111111111111111111111111111111`)return BigInt(await e.getBalance(t));let i=await n.getSolanaAtaAddress(r,t);if(!await e.getAccountInfo(i))return 0n;let a=await e.getTokenAccountBalance(i);return BigInt(a.value.amount)},f=async(n,u,f)=>{try{if(e.isSolanaLike(n)){if(!i.isValidSolanaPublicKey(u))return null;let{rpcUrl:t}=e.networkRegistry[n],r=o.createCustomSolanaConnection(t),s=new l.PublicKey(u);if(f===`11111111111111111111111111111111`)return BigInt(await r.getBalance(s));let c=await a.getErc20TokenFromAPI(n,f);return c?d(r,s,c):null}let r=o.createJsonRpcProvider(n),p=new c.ethers.Contract(f,s.ERC20ABI,r),m;return m=f===t.zeroAddress?await r.getBalance(u):await p?.balanceOf(u),m}catch{return r.Logger.error(`Failed to fetch public balance for address ${u}`),null}};exports.getPublicBalance=u,exports.getPublicBalanceByTokenAddress=f;
|
|
@@ -3,5 +3,4 @@ import { ERC20Token, TokenBalance } from '../../types/token.types';
|
|
|
3
3
|
export declare const getPublicBalance: (provider: ethers.JsonRpcProvider, ethereumAddress: string, token: ERC20Token) => Promise<TokenBalance | null>;
|
|
4
4
|
export declare const getPublicBalancesOfTokens: (chainId: number, ethereumAddress: string, tokens?: ERC20Token[]) => Promise<TokenBalance[]>;
|
|
5
5
|
export declare const getPublicBalanceByTokenAddress: (chainId: number, ethereumAddress: string, tokenAddress: string) => Promise<bigint | null>;
|
|
6
|
-
export declare const getPublicTransactionCount: (chainId: number, address: string) => Promise<number>;
|
|
7
6
|
export declare const getSolanaPublicBalances: (chainId: number, ethereumAddress: string, tokensToUpdate: ERC20Token[]) => Promise<TokenBalance[]>;
|
|
@@ -1,36 +1,50 @@
|
|
|
1
|
-
import "../../constants/chains.constants.mjs";
|
|
2
|
-
import { zeroAddress as
|
|
1
|
+
import { isSolanaLike as e, networkRegistry as t } from "../../constants/chains.constants.mjs";
|
|
2
|
+
import { zeroAddress as n } from "../../constants/protocol.constants.mjs";
|
|
3
3
|
import "../../data-structures/http/index.mjs";
|
|
4
|
-
import "./
|
|
4
|
+
import { getSolanaAtaAddress as r } from "./solanaMint.utils.mjs";
|
|
5
|
+
import { Logger as i } from "../../error-handling/logger.mjs";
|
|
6
|
+
import { isValidSolanaPublicKey as a } from "./addresses.mjs";
|
|
7
|
+
import { getErc20TokenFromAPI as o } from "./erc20tokenFunctions.mjs";
|
|
8
|
+
import "../../data-structures/token-price-fetcher/TokenChecker.mjs";
|
|
9
|
+
import { createCustomSolanaConnection as s, createJsonRpcProvider as c } from "./create-provider.mjs";
|
|
5
10
|
import "../../externalABIs/index.mjs";
|
|
6
|
-
import {
|
|
7
|
-
import "
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import "./ipfs.mjs";
|
|
11
|
-
import { ethers as i } from "ethers";
|
|
12
|
-
import "@solana/web3.js";
|
|
13
|
-
import "@solana/spl-token";
|
|
11
|
+
import { ERC20ABI as l } from "../../externalABIs/swapAbi.mjs";
|
|
12
|
+
import "../../data-structures/IndexedDB/key-val-store.mjs";
|
|
13
|
+
import { ethers as u } from "ethers";
|
|
14
|
+
import { PublicKey as d } from "@solana/web3.js";
|
|
14
15
|
//#region libs/shared/common/src/functions/utils/publicBalance.utils.ts
|
|
15
|
-
var
|
|
16
|
+
var f = async (e, t, r) => {
|
|
16
17
|
try {
|
|
17
|
-
let
|
|
18
|
-
|
|
19
|
-
let
|
|
20
|
-
return
|
|
21
|
-
token:
|
|
22
|
-
balance:
|
|
18
|
+
let i = r.erc20TokenAddress, a, o = new u.Contract(r.erc20TokenAddress, l, e);
|
|
19
|
+
a = i === n ? await e.getBalance(t) : await o?.balanceOf(t);
|
|
20
|
+
let s = a;
|
|
21
|
+
return s <= 0n ? null : {
|
|
22
|
+
token: r,
|
|
23
|
+
balance: s
|
|
23
24
|
};
|
|
24
25
|
} catch {
|
|
25
26
|
return null;
|
|
26
27
|
}
|
|
27
|
-
},
|
|
28
|
+
}, p = async (e, t, n) => {
|
|
29
|
+
if (n.erc20TokenAddress === "11111111111111111111111111111111") return BigInt(await e.getBalance(t));
|
|
30
|
+
let i = await r(n, t);
|
|
31
|
+
if (!await e.getAccountInfo(i)) return 0n;
|
|
32
|
+
let a = await e.getTokenAccountBalance(i);
|
|
33
|
+
return BigInt(a.value.amount);
|
|
34
|
+
}, m = async (r, f, m) => {
|
|
28
35
|
try {
|
|
29
|
-
|
|
30
|
-
|
|
36
|
+
if (e(r)) {
|
|
37
|
+
if (!a(f)) return null;
|
|
38
|
+
let { rpcUrl: e } = t[r], n = s(e), i = new d(f);
|
|
39
|
+
if (m === "11111111111111111111111111111111") return BigInt(await n.getBalance(i));
|
|
40
|
+
let c = await o(r, m);
|
|
41
|
+
return c ? p(n, i, c) : null;
|
|
42
|
+
}
|
|
43
|
+
let i = c(r), h = new u.Contract(m, l, i), g;
|
|
44
|
+
return g = m === n ? await i.getBalance(f) : await h?.balanceOf(f), g;
|
|
31
45
|
} catch {
|
|
32
|
-
return
|
|
46
|
+
return i.error(`Failed to fetch public balance for address ${f}`), null;
|
|
33
47
|
}
|
|
34
48
|
};
|
|
35
49
|
//#endregion
|
|
36
|
-
export {
|
|
50
|
+
export { f as getPublicBalance, m as getPublicBalanceByTokenAddress };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../../data-structures/token-price-fetcher/TokenChecker.cjs`);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../data-structures/token-price-fetcher/TokenChecker.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../../constants/chains.constants.cjs`),require(`./create-provider.cjs`),require(`../../API/resolve-sns.cjs`);
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const isEnsDomain: (input: string) => boolean;
|
|
2
|
+
export declare const isSnsDomain: (input: string) => boolean;
|
|
3
|
+
export declare const resolveDomainAddress: (input: string) => Promise<string | null>;
|
|
4
|
+
export declare const resolveRecipientAddressForChain: (recipient: string, chainId: number) => Promise<string | null>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=e=>{let{
|
|
1
|
+
var e=e=>{let{H0:t,randomization:n,...r}=e;return{...r,amount:e.amount.toString(),spendingPublicKey:e.spendingPublicKey?.map(e=>e.toString()),randomization:n?.toString(),H0:t?[t[0].toString(),t[1].toString()]:void 0}},t=e=>{let{H0:t,randomization:n,...r}=e;return{...r,amount:BigInt(e.amount),spendingPublicKey:e.spendingPublicKey?.map(e=>BigInt(e)),randomization:n?BigInt(n):void 0,H0:t?[BigInt(t[0]),BigInt(t[1])]:void 0}};exports.deserializeUtxoConstructorParams=t,exports.serializeUtxoConstructorParams=e;
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
//#region libs/shared/common/src/functions/utils/serialize-utxos.utils.ts
|
|
2
2
|
var e = (e) => {
|
|
3
|
-
let {
|
|
3
|
+
let { H0: t, randomization: n, ...r } = e;
|
|
4
4
|
return {
|
|
5
5
|
...r,
|
|
6
6
|
amount: e.amount.toString(),
|
|
7
7
|
spendingPublicKey: e.spendingPublicKey?.map((e) => e.toString()),
|
|
8
|
-
|
|
8
|
+
randomization: n?.toString(),
|
|
9
|
+
H0: t ? [t[0].toString(), t[1].toString()] : void 0
|
|
9
10
|
};
|
|
10
11
|
}, t = (e) => {
|
|
11
|
-
let {
|
|
12
|
+
let { H0: t, randomization: n, ...r } = e;
|
|
12
13
|
return {
|
|
13
14
|
...r,
|
|
14
15
|
amount: BigInt(e.amount),
|
|
15
16
|
spendingPublicKey: e.spendingPublicKey?.map((e) => BigInt(e)),
|
|
16
|
-
|
|
17
|
+
randomization: n ? BigInt(n) : void 0,
|
|
18
|
+
H0: t ? [BigInt(t[0]), BigInt(t[1])] : void 0
|
|
17
19
|
};
|
|
18
20
|
};
|
|
19
21
|
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../../../../_virtual/_rolldown/runtime.cjs`);let e=require(`@solana/web3.js`),t=require(`@coral-xyz/anchor`);var n=()=>{let t=e.Keypair.generate();return{publicKey:t.publicKey,payer:t,signTransaction:async e=>e,signAllTransactions:async e=>e}},r=(e,r)=>new t.Program(r,new t.AnchorProvider(e,n(),{preflightCommitment:`confirmed`,commitment:`confirmed`}));exports.createReadOnlySolanaProgram=r;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Keypair as e } from "@solana/web3.js";
|
|
2
|
+
import { AnchorProvider as t, Program as n } from "@coral-xyz/anchor";
|
|
3
|
+
//#region libs/shared/common/src/functions/utils/solana-program.utils.ts
|
|
4
|
+
var r = () => {
|
|
5
|
+
let t = e.generate();
|
|
6
|
+
return {
|
|
7
|
+
publicKey: t.publicKey,
|
|
8
|
+
payer: t,
|
|
9
|
+
signTransaction: async (e) => e,
|
|
10
|
+
signAllTransactions: async (e) => e
|
|
11
|
+
};
|
|
12
|
+
}, i = (e, i) => new n(i, new t(e, r(), {
|
|
13
|
+
preflightCommitment: "confirmed",
|
|
14
|
+
commitment: "confirmed"
|
|
15
|
+
}));
|
|
16
|
+
//#endregion
|
|
17
|
+
export { i as createReadOnlySolanaProgram };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../../../../_virtual/_rolldown/runtime.cjs`),require(`../../constants/protocol.constants.cjs`),require(`./solanaMint.utils.cjs`);const e=require(`../../API/API.cjs`),t=require(`../../data-structures/AccountActions/AccountActions.cjs`);let n=require(`@solana/web3.js`);require(`@solana/spl-token`);var r=async({chainId:r,tempSubAccount:i,intent:a})=>{let o=i.solanaPrivateKey??i.privateKey;if(!o)throw Error(`No signing key available for Solana sponsored transaction`);let s=await e.API.callRelayerSolanaSponsoredBuildAPI({...a,chainId:r});if(s.status!==`success`||!s.serializedTx||!s.ticketId)throw Error(s.error||`Solana sponsored transaction could not be built`);let c=n.VersionedTransaction.deserialize(Buffer.from(s.serializedTx,`base64`));t.AccountActions.signSolanaTransactionFromPrivateKey(r,o,c);let l=await e.API.callRelayerSolanaSponsoredSubmitAPI({chainId:r,ticketId:s.ticketId,serializedTx:Buffer.from(c.serialize()).toString(`base64`)});if(l.status!==`success`||!l.txHash)throw Error(l.error||`Solana sponsored transaction failed`);return{txHash:l.txHash,feeWei:BigInt(s.fee??`0`)}};exports.sendSolanaSponsoredTx=r;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Connection, PublicKey, TransactionInstruction } from '@solana/web3.js';
|
|
2
|
+
import { SolanaSponsoredBuildRequestBody } from '../../API/callRelayer';
|
|
3
|
+
import { SubAccount } from '../../types/proxy.types';
|
|
4
|
+
import { ERC20Token } from '../../types/token.types';
|
|
5
|
+
interface SolanaAtaEntry {
|
|
6
|
+
ata: PublicKey;
|
|
7
|
+
instruction?: TransactionInstruction;
|
|
8
|
+
}
|
|
9
|
+
interface SendSolanaSponsoredTxParams {
|
|
10
|
+
chainId: number;
|
|
11
|
+
tempSubAccount: SubAccount;
|
|
12
|
+
intent: Omit<SolanaSponsoredBuildRequestBody, 'chainId'>;
|
|
13
|
+
}
|
|
14
|
+
export declare const buildCreateSolanaAtaInstructionsIfMissing: (connection: Connection, payer: PublicKey, owners: PublicKey[], token: ERC20Token) => Promise<SolanaAtaEntry[] | undefined>;
|
|
15
|
+
export declare const buildSolanaRootBucketPrefund: (connection: Connection, relayerPubkey: PublicKey, rootBucketCurrent: PublicKey, rootInsertCount: number) => Promise<TransactionInstruction>;
|
|
16
|
+
export declare const buildCloseSolanaAtaInstruction: (token: ERC20Token, ata: PublicKey, owner: PublicKey, rentRecipient: PublicKey) => TransactionInstruction;
|
|
17
|
+
export declare const buildSolanaTokenTransferInstruction: (token: ERC20Token, fromAta: PublicKey, toAta: PublicKey, owner: PublicKey, amount: bigint) => TransactionInstruction;
|
|
18
|
+
export declare const sendSolanaSponsoredTx: ({ chainId, tempSubAccount, intent, }: SendSolanaSponsoredTxParams) => Promise<{
|
|
19
|
+
txHash: string;
|
|
20
|
+
feeWei: bigint;
|
|
21
|
+
}>;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import "../../constants/protocol.constants.mjs";
|
|
2
|
+
import "./solanaMint.utils.mjs";
|
|
3
|
+
import { API as e } from "../../API/API.mjs";
|
|
4
|
+
import { AccountActions as t } from "../../data-structures/AccountActions/AccountActions.mjs";
|
|
5
|
+
import { VersionedTransaction as n } from "@solana/web3.js";
|
|
6
|
+
import "@solana/spl-token";
|
|
7
|
+
//#region libs/shared/common/src/functions/utils/solana-sponsored.utils.ts
|
|
8
|
+
var r = async ({ chainId: r, tempSubAccount: i, intent: a }) => {
|
|
9
|
+
let o = i.solanaPrivateKey ?? i.privateKey;
|
|
10
|
+
if (!o) throw Error("No signing key available for Solana sponsored transaction");
|
|
11
|
+
let s = await e.callRelayerSolanaSponsoredBuildAPI({
|
|
12
|
+
...a,
|
|
13
|
+
chainId: r
|
|
14
|
+
});
|
|
15
|
+
if (s.status !== "success" || !s.serializedTx || !s.ticketId) throw Error(s.error || "Solana sponsored transaction could not be built");
|
|
16
|
+
let c = n.deserialize(Buffer.from(s.serializedTx, "base64"));
|
|
17
|
+
t.signSolanaTransactionFromPrivateKey(r, o, c);
|
|
18
|
+
let l = await e.callRelayerSolanaSponsoredSubmitAPI({
|
|
19
|
+
chainId: r,
|
|
20
|
+
ticketId: s.ticketId,
|
|
21
|
+
serializedTx: Buffer.from(c.serialize()).toString("base64")
|
|
22
|
+
});
|
|
23
|
+
if (l.status !== "success" || !l.txHash) throw Error(l.error || "Solana sponsored transaction failed");
|
|
24
|
+
return {
|
|
25
|
+
txHash: l.txHash,
|
|
26
|
+
feeWei: BigInt(s.fee ?? "0")
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
export { r as sendSolanaSponsoredTx };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`../../../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../crypto/poseidon.cjs`);let t=require(`ethers`),n=require(`@solana/web3.js`);var r=e=>{let n=e.toBytes();return BigInt(t.ethers.hexlify(n))},
|
|
1
|
+
require(`../../../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../crypto/poseidon.cjs`);let t=require(`ethers`),n=require(`@solana/web3.js`),r=require(`@solana/spl-token`);var i=e=>e?r.TOKEN_2022_PROGRAM_ID:r.TOKEN_PROGRAM_ID,a=(e,t)=>(0,r.getAssociatedTokenAddress)(new n.PublicKey(e.erc20TokenAddress),t,!0,i(e.is2022Program)),o=e=>{let n=e.toBytes();return BigInt(t.ethers.hexlify(n))},s=t=>{let r=typeof t==`string`?new n.PublicKey(t):t,i=o(r),a=i/2n**128n,s=i%2n**128n;return{mintAccountPart1:a,mintAccountPart2:s,compressedAddress:e.poseidonHash(a,s),mintPublicKey:r}},c=e=>{if(!e)return;let r=t.ethers.getBytes(e);if(r.length!==32)return;let i=new n.PublicKey(r),a=i.toBase58(),{compressedAddress:o}=s(i);return{mintBase58:a,compressedAddress:o}};exports.convertPublicKeyToBigint=o,exports.formatMintAddress=s,exports.getSolanaAtaAddress=a,exports.getSolanaTokenProgramId=i,exports.normalizeSolanaMintAddress=c;
|