@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
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
import { CircomDataJsonType, CommitmentValidationDataType, DimDataType } from './circom-data.types';
|
|
2
|
+
import { NewZkCallDataType } from './snark.types';
|
|
3
|
+
import { AuthorizationData, FeeStructure } from './hinkal.types';
|
|
4
|
+
import { ExternalActionId } from './external-action.types';
|
|
5
|
+
import { AdminDataType } from './admin.types';
|
|
6
|
+
import { SolanaArgs, SolanaSwapAccounts, SolanaSwapArgs, SolanaTransactAccounts } from './solana.types';
|
|
7
|
+
export interface SignedEnclaveResponse {
|
|
8
|
+
data: string;
|
|
9
|
+
signature: string;
|
|
10
|
+
}
|
|
11
|
+
export interface SpeculativeUtxo {
|
|
12
|
+
amount: string;
|
|
13
|
+
erc20TokenAddress: string;
|
|
14
|
+
mintAddress: string;
|
|
15
|
+
timeStamp: string;
|
|
16
|
+
stealthAddress: string;
|
|
17
|
+
isBlocked: boolean;
|
|
18
|
+
H0: [string, string];
|
|
19
|
+
}
|
|
20
|
+
export interface SpeculativeTreeParams {
|
|
21
|
+
pendingLeaves: string[];
|
|
22
|
+
inputUtxos: SpeculativeUtxo[][];
|
|
23
|
+
}
|
|
24
|
+
export interface PrepareTxBase {
|
|
25
|
+
chainId: number;
|
|
26
|
+
hinkalAddress?: string;
|
|
27
|
+
erc20Addresses: string[];
|
|
28
|
+
externalAddress: string;
|
|
29
|
+
originalSender?: string;
|
|
30
|
+
relay?: string;
|
|
31
|
+
feeStructure?: FeeStructure;
|
|
32
|
+
externalActionId?: ExternalActionId;
|
|
33
|
+
externalActionMetadata?: string;
|
|
34
|
+
onChainCreation?: boolean[];
|
|
35
|
+
recipientAddress?: string[];
|
|
36
|
+
inputCommitments?: string[];
|
|
37
|
+
useBlockedUtxos?: boolean;
|
|
38
|
+
createBlockedUtxos?: boolean;
|
|
39
|
+
skipLock?: boolean;
|
|
40
|
+
forceEmptyUtxos?: boolean;
|
|
41
|
+
speculative?: SpeculativeTreeParams;
|
|
42
|
+
}
|
|
43
|
+
export type PrepareSolanaTxFunctionName = 'transact' | 'transfer' | 'swap';
|
|
44
|
+
export type PrepareSolanaTxInstruction = SolanaSwapArgs['hinkalInstructions'][number];
|
|
45
|
+
export interface PrepareSolanaTxAccountMeta {
|
|
46
|
+
pubkey: string;
|
|
47
|
+
isSigner: boolean;
|
|
48
|
+
isWritable: boolean;
|
|
49
|
+
}
|
|
50
|
+
export interface PrepareSolanaTxBase {
|
|
51
|
+
chainId: number;
|
|
52
|
+
mintAddresses: string[];
|
|
53
|
+
relayAddress: string;
|
|
54
|
+
recipient: string;
|
|
55
|
+
signer?: string;
|
|
56
|
+
functionName: PrepareSolanaTxFunctionName;
|
|
57
|
+
accounts: SolanaTransactAccounts | SolanaSwapAccounts;
|
|
58
|
+
onChainCreation?: boolean[];
|
|
59
|
+
hinkalInstructions?: PrepareSolanaTxInstruction[];
|
|
60
|
+
remainingAccounts?: PrepareSolanaTxAccountMeta[];
|
|
61
|
+
recipientAddress?: string;
|
|
62
|
+
inputCommitments?: string[];
|
|
63
|
+
useBlockedUtxos?: boolean;
|
|
64
|
+
recipientAmount?: string;
|
|
65
|
+
displayRecipient?: string;
|
|
66
|
+
speculative?: SpeculativeTreeParams;
|
|
67
|
+
}
|
|
68
|
+
export interface PrepareSolanaTxParams extends PrepareSolanaTxBase {
|
|
69
|
+
amountChanges: bigint[];
|
|
70
|
+
relayerFee?: bigint;
|
|
71
|
+
variableRate?: bigint;
|
|
72
|
+
swapperAccountSalt?: bigint;
|
|
73
|
+
recipientAmounts?: bigint[];
|
|
74
|
+
messageSeed?: bigint;
|
|
75
|
+
}
|
|
76
|
+
export type RemoteFeeStructureRequest = {
|
|
77
|
+
feeToken: string;
|
|
78
|
+
flatFee: string;
|
|
79
|
+
variableRate: string;
|
|
80
|
+
};
|
|
81
|
+
export interface PrepareSolanaTxRequestType extends Omit<PrepareSolanaTxBase, 'chainId'> {
|
|
82
|
+
chainId: number;
|
|
83
|
+
amountChanges: string[];
|
|
84
|
+
relayerFee?: string;
|
|
85
|
+
variableRate?: string;
|
|
86
|
+
swapperAccountSalt?: string;
|
|
87
|
+
recipientAmounts?: string[];
|
|
88
|
+
messageSeed?: string;
|
|
89
|
+
nullifyingKey: string;
|
|
90
|
+
spendingPublicKey: [string, string];
|
|
91
|
+
}
|
|
92
|
+
export interface EchoedPrepareSolanaTxRequestType extends Omit<PrepareSolanaTxBase, 'chainId' | 'signer' | 'onChainCreation' | 'hinkalInstructions' | 'remainingAccounts' | 'recipientAddress' | 'inputCommitments' | 'useBlockedUtxos'> {
|
|
93
|
+
chainId: string;
|
|
94
|
+
amountChanges: string[];
|
|
95
|
+
signer: string;
|
|
96
|
+
relayerFee: string;
|
|
97
|
+
variableRate: string;
|
|
98
|
+
onChainCreation: boolean[] | null;
|
|
99
|
+
hinkalInstructions: PrepareSolanaTxInstruction[] | null;
|
|
100
|
+
remainingAccounts: PrepareSolanaTxAccountMeta[] | null;
|
|
101
|
+
swapperAccountSalt: string;
|
|
102
|
+
recipientAddress: string;
|
|
103
|
+
recipientAmounts: string[] | null;
|
|
104
|
+
inputCommitments: string[] | null;
|
|
105
|
+
useBlockedUtxos: boolean;
|
|
106
|
+
messageSeed: string;
|
|
107
|
+
}
|
|
108
|
+
export interface PrepareTxParams extends PrepareTxBase {
|
|
109
|
+
amountChanges: bigint[];
|
|
110
|
+
recipientAmounts?: bigint[][];
|
|
111
|
+
selfOutputAmounts?: bigint[];
|
|
112
|
+
messageSeed?: bigint;
|
|
113
|
+
slippageValues?: bigint[];
|
|
114
|
+
}
|
|
115
|
+
export interface PrepareTxRequestType extends PrepareTxBase {
|
|
116
|
+
amountChanges: string[];
|
|
117
|
+
recipientAmounts?: string[][];
|
|
118
|
+
selfOutputAmounts?: string[];
|
|
119
|
+
messageSeed?: string;
|
|
120
|
+
nullifyingKey: string;
|
|
121
|
+
spendingPublicKey: [string, string];
|
|
122
|
+
slippageValues?: string[];
|
|
123
|
+
}
|
|
124
|
+
export interface EchoedPrepareTxRequestType {
|
|
125
|
+
chainId: string;
|
|
126
|
+
hinkalAddress: string;
|
|
127
|
+
erc20Addresses: string[];
|
|
128
|
+
amountChanges: string[];
|
|
129
|
+
externalAddress: string;
|
|
130
|
+
originalSender?: string;
|
|
131
|
+
relay: string;
|
|
132
|
+
feeStructure: {
|
|
133
|
+
feeToken: string;
|
|
134
|
+
flatFee: string;
|
|
135
|
+
variableRate: string;
|
|
136
|
+
} | null;
|
|
137
|
+
externalActionId: string;
|
|
138
|
+
externalActionMetadata: string;
|
|
139
|
+
onChainCreation: boolean[] | null;
|
|
140
|
+
recipientAddress: string[] | null;
|
|
141
|
+
recipientAmounts: string[][] | null;
|
|
142
|
+
selfOutputAmounts: string[] | null;
|
|
143
|
+
inputCommitments: string[] | null;
|
|
144
|
+
useBlockedUtxos: boolean;
|
|
145
|
+
createBlockedUtxos: boolean;
|
|
146
|
+
forceEmptyUtxos?: boolean;
|
|
147
|
+
messageSeed: string;
|
|
148
|
+
skipLock: boolean;
|
|
149
|
+
speculative?: SpeculativeTreeParams;
|
|
150
|
+
slippageValues: string[] | null;
|
|
151
|
+
}
|
|
152
|
+
export interface EstimateNullifiersParams {
|
|
153
|
+
chainId: number;
|
|
154
|
+
mintAddresses: string[];
|
|
155
|
+
amountChanges: bigint[];
|
|
156
|
+
useBlockedUtxos?: boolean;
|
|
157
|
+
}
|
|
158
|
+
export interface EstimateNullifiersRequestType extends Omit<EstimateNullifiersParams, 'amountChanges'> {
|
|
159
|
+
amountChanges: string[];
|
|
160
|
+
nullifyingKey: string;
|
|
161
|
+
spendingPublicKey: [string, string];
|
|
162
|
+
}
|
|
163
|
+
export interface EstimateNullifiersResponseType {
|
|
164
|
+
nullifierCount: number;
|
|
165
|
+
}
|
|
166
|
+
export interface PreparedJobType {
|
|
167
|
+
jobId: string;
|
|
168
|
+
signedMessageHash: string;
|
|
169
|
+
}
|
|
170
|
+
export interface EnclaveWitnessPreimage {
|
|
171
|
+
rootHashHinkal: string;
|
|
172
|
+
outTimeStamp: string;
|
|
173
|
+
outH1Ax: string;
|
|
174
|
+
outH1Ay: string;
|
|
175
|
+
h0Ax: string;
|
|
176
|
+
h0Ay: string;
|
|
177
|
+
outAmounts: string[][];
|
|
178
|
+
outNoteH0Ax: string[][];
|
|
179
|
+
outNoteH0Ay: string[][];
|
|
180
|
+
messageSeed: string;
|
|
181
|
+
encryptedOutputs: string[][];
|
|
182
|
+
onChainEncryptedOutput: string;
|
|
183
|
+
inAmounts: string[][];
|
|
184
|
+
inH0Ax: string[][];
|
|
185
|
+
inH0Ay: string[][];
|
|
186
|
+
inTimeStamps: string[][];
|
|
187
|
+
}
|
|
188
|
+
export interface PrepareTxResponseType extends PreparedJobType, EnclaveWitnessPreimage {
|
|
189
|
+
request: EchoedPrepareTxRequestType;
|
|
190
|
+
}
|
|
191
|
+
export interface PrepareSolanaTxResponseType extends PreparedJobType, EnclaveWitnessPreimage {
|
|
192
|
+
request: EchoedPrepareSolanaTxRequestType;
|
|
193
|
+
dimensions: DimDataType;
|
|
194
|
+
}
|
|
195
|
+
export interface PrepareStuckWithdrawRequestType {
|
|
196
|
+
chainId: number;
|
|
197
|
+
hinkalAddress?: string;
|
|
198
|
+
erc20Address: string;
|
|
199
|
+
externalAddress: string;
|
|
200
|
+
relay: string;
|
|
201
|
+
feeStructure: FeeStructure;
|
|
202
|
+
hashedEthereumAddress: string;
|
|
203
|
+
nullifyingKey: string;
|
|
204
|
+
spendingPublicKey: [string, string];
|
|
205
|
+
}
|
|
206
|
+
export interface EchoedPrepareStuckWithdrawRequestType {
|
|
207
|
+
chainId: string;
|
|
208
|
+
hinkalAddress: string;
|
|
209
|
+
erc20Address: string;
|
|
210
|
+
externalAddress: string;
|
|
211
|
+
relay: string;
|
|
212
|
+
feeStructure: {
|
|
213
|
+
feeToken: string;
|
|
214
|
+
flatFee: string;
|
|
215
|
+
variableRate: string;
|
|
216
|
+
};
|
|
217
|
+
hashedEthereumAddress: string;
|
|
218
|
+
}
|
|
219
|
+
export interface PreparedStuckWithdrawJobType extends PreparedJobType, EnclaveWitnessPreimage {
|
|
220
|
+
dimensions: DimDataType;
|
|
221
|
+
}
|
|
222
|
+
export interface PrepareStuckWithdrawResponseType {
|
|
223
|
+
jobs: PreparedStuckWithdrawJobType[];
|
|
224
|
+
request: EchoedPrepareStuckWithdrawRequestType;
|
|
225
|
+
}
|
|
226
|
+
export interface PrepareSolanaStuckWithdrawParams {
|
|
227
|
+
chainId: number;
|
|
228
|
+
mintAddress: string;
|
|
229
|
+
recipient: string;
|
|
230
|
+
relayAddress: string;
|
|
231
|
+
accounts: SolanaTransactAccounts;
|
|
232
|
+
feeStructures: Record<string, FeeStructure>;
|
|
233
|
+
hashedEthereumAddress: string;
|
|
234
|
+
}
|
|
235
|
+
export interface PrepareSolanaStuckWithdrawRequestType extends Omit<PrepareSolanaStuckWithdrawParams, 'feeStructures'> {
|
|
236
|
+
feeStructures: Record<string, RemoteFeeStructureRequest>;
|
|
237
|
+
nullifyingKey: string;
|
|
238
|
+
spendingPublicKey: [string, string];
|
|
239
|
+
}
|
|
240
|
+
export interface EchoedPrepareSolanaStuckWithdrawRequestType {
|
|
241
|
+
chainId: string;
|
|
242
|
+
mintAddress: string;
|
|
243
|
+
recipient: string;
|
|
244
|
+
relayAddress: string;
|
|
245
|
+
signer: string;
|
|
246
|
+
accounts: SolanaTransactAccounts;
|
|
247
|
+
feeStructures: Record<string, RemoteFeeStructureRequest>;
|
|
248
|
+
hashedEthereumAddress: string;
|
|
249
|
+
}
|
|
250
|
+
export interface PrepareSolanaStuckWithdrawResponseType {
|
|
251
|
+
jobs: PreparedStuckWithdrawJobType[];
|
|
252
|
+
request: EchoedPrepareSolanaStuckWithdrawRequestType;
|
|
253
|
+
}
|
|
254
|
+
export interface FinalizeTxRequestType {
|
|
255
|
+
jobId: string;
|
|
256
|
+
eddsaSignature: {
|
|
257
|
+
R8: [string, string];
|
|
258
|
+
S: string;
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
export interface FinalizeTxResponseType {
|
|
262
|
+
zkCallData: NewZkCallDataType;
|
|
263
|
+
circomData: CircomDataJsonType;
|
|
264
|
+
dimData: DimDataType;
|
|
265
|
+
commitmentValidationData?: CommitmentValidationDataType;
|
|
266
|
+
tronProofSignature?: {
|
|
267
|
+
v: number;
|
|
268
|
+
r: string;
|
|
269
|
+
s: string;
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
export interface FinalizeSolanaTxResponseType {
|
|
273
|
+
solanaArgs: SolanaArgs;
|
|
274
|
+
commitmentValidationData?: CommitmentValidationDataType;
|
|
275
|
+
}
|
|
276
|
+
export interface FinalizeTxRelayRequestType {
|
|
277
|
+
jobId: string;
|
|
278
|
+
eddsaSignature: {
|
|
279
|
+
R8: [string, string];
|
|
280
|
+
S: string;
|
|
281
|
+
};
|
|
282
|
+
chainId: number;
|
|
283
|
+
adminData?: AdminDataType;
|
|
284
|
+
authorizationData?: AuthorizationData;
|
|
285
|
+
withUniswapWorkAround?: boolean;
|
|
286
|
+
}
|
|
287
|
+
export interface FinalizeSolanaTxRelayRequestType {
|
|
288
|
+
jobId: string;
|
|
289
|
+
eddsaSignature: {
|
|
290
|
+
R8: [string, string];
|
|
291
|
+
S: string;
|
|
292
|
+
};
|
|
293
|
+
chainId: number;
|
|
294
|
+
adminData?: AdminDataType;
|
|
295
|
+
}
|
|
296
|
+
export interface FinalizeTxRelayResponseType {
|
|
297
|
+
txHash: string;
|
|
298
|
+
}
|
|
@@ -5,13 +5,8 @@ export declare enum ScheduledTransactionStatus {
|
|
|
5
5
|
WAITING_FOR_RELAYER = "waiting_for_relayer",
|
|
6
6
|
SENT_ON_CHAIN = "sent_on_chain",
|
|
7
7
|
COMPLETED = "completed",
|
|
8
|
-
FAILED = "failed"
|
|
9
|
-
|
|
10
|
-
export declare enum DepositAndWithdrawPhase {
|
|
11
|
-
BEFORE_DEPOSIT = "before_deposit",
|
|
12
|
-
AFTER_DEPOSIT = "after_deposit",
|
|
13
|
-
BEFORE_SCHEDULE_WITHDRAW = "before_schedule_withdraw",
|
|
14
|
-
AFTER_SCHEDULE_WITHDRAW = "after_schedule_withdraw"
|
|
8
|
+
FAILED = "failed",
|
|
9
|
+
DEPOSIT_FAILED = "deposit_failed"
|
|
15
10
|
}
|
|
16
11
|
export interface ScheduledTransactionItemStatus {
|
|
17
12
|
status: ScheduledTransactionStatus;
|
|
@@ -31,6 +26,27 @@ export interface ScheduledTransactionResponseItem {
|
|
|
31
26
|
createdAt: string;
|
|
32
27
|
externalAddress: string;
|
|
33
28
|
transactionHash?: string;
|
|
29
|
+
destinationChainId?: number;
|
|
30
|
+
destinationTokenAddress?: string;
|
|
31
|
+
destinationTokenAmount?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface ScheduledTransactionCacheLeg {
|
|
34
|
+
scheduledTime: string;
|
|
35
|
+
status: ScheduledTransactionStatus;
|
|
36
|
+
txHash: string | null;
|
|
37
|
+
externalAddress: string;
|
|
38
|
+
amount: string;
|
|
39
|
+
destinationChainId?: number;
|
|
40
|
+
destinationTokenAddress?: string;
|
|
41
|
+
destinationTokenAmount?: string;
|
|
42
|
+
}
|
|
43
|
+
export interface ScheduledTransactionCacheEntry {
|
|
44
|
+
scheduleId: string;
|
|
45
|
+
depositTxHash: string;
|
|
46
|
+
chainId: number;
|
|
47
|
+
erc20TokenAddress: string;
|
|
48
|
+
createdAt: string;
|
|
49
|
+
legs: ScheduledTransactionCacheLeg[];
|
|
34
50
|
}
|
|
35
51
|
export interface RecipientUtxo {
|
|
36
52
|
recipientAddress: string;
|
|
@@ -40,15 +56,12 @@ export interface ClaimableUtxo {
|
|
|
40
56
|
chainId: number;
|
|
41
57
|
senderAddress: string;
|
|
42
58
|
utxo: Utxo;
|
|
43
|
-
claimableSignature
|
|
44
|
-
}
|
|
45
|
-
export interface PendingEnclaveUtxo extends ClaimableUtxo {
|
|
46
|
-
recipientAddress: string;
|
|
59
|
+
claimableSignature: string;
|
|
47
60
|
}
|
|
48
61
|
export interface FallbackRecipientUtxoPlan {
|
|
49
62
|
recipientIndex: number;
|
|
50
63
|
recipientAddress: string;
|
|
51
64
|
shieldedPrivateKey: string;
|
|
52
|
-
claimableSignature
|
|
65
|
+
claimableSignature: string;
|
|
53
66
|
utxo: Utxo;
|
|
54
67
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
interface ZkBaseInputType {
|
|
2
2
|
rootHashHinkal: bigint | undefined;
|
|
3
|
+
rootHashHinkalIndex: bigint | undefined;
|
|
3
4
|
shieldedPrivateKey: string;
|
|
4
5
|
inAmounts: string[];
|
|
5
6
|
inBlindings: string[];
|
|
@@ -7,9 +8,6 @@ interface ZkBaseInputType {
|
|
|
7
8
|
inCommitmentSiblings: string[][];
|
|
8
9
|
inCommitmentSiblingSides: string[][];
|
|
9
10
|
outCommitments: string[];
|
|
10
|
-
rootHashAccessToken: bigint | undefined;
|
|
11
|
-
accessTokenSiblings: string[];
|
|
12
|
-
accessTokenSiblingSides: string[];
|
|
13
11
|
relayFee: bigint;
|
|
14
12
|
relay: string;
|
|
15
13
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=function(e){return e.Relayer=`relayer`,e.ProofOnly=`proofOnly`,e}({});exports.SolanaSubmitMode=e;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { UserKeys } from '../data-structures/crypto-keys/keys';
|
|
2
|
+
import { Utxo } from '../data-structures/utxo/Utxo';
|
|
3
|
+
import { AdminDataType } from './admin.types';
|
|
4
|
+
import { CommitmentValidationDataType } from './circom-data.types';
|
|
5
|
+
import { PrepareSolanaTxParams } from './remote-tx-build.types';
|
|
6
|
+
import { SolanaArgs } from './solana.types';
|
|
7
|
+
export declare enum SolanaSubmitMode {
|
|
8
|
+
Relayer = "relayer",
|
|
9
|
+
ProofOnly = "proofOnly"
|
|
10
|
+
}
|
|
11
|
+
export interface SolanaTransactNotes {
|
|
12
|
+
inputNullifiers: string[];
|
|
13
|
+
outCommitments: string[];
|
|
14
|
+
encryptedOutputs: string[];
|
|
15
|
+
}
|
|
16
|
+
export interface SolanaTransactProof {
|
|
17
|
+
args: SolanaArgs;
|
|
18
|
+
commitmentValidationData?: CommitmentValidationDataType;
|
|
19
|
+
notes?: SolanaTransactNotes;
|
|
20
|
+
}
|
|
21
|
+
export interface SolanaRelayerSubmit {
|
|
22
|
+
mode: SolanaSubmitMode.Relayer;
|
|
23
|
+
adminData?: AdminDataType;
|
|
24
|
+
}
|
|
25
|
+
export interface SolanaProofOnlySubmit {
|
|
26
|
+
mode: SolanaSubmitMode.ProofOnly;
|
|
27
|
+
}
|
|
28
|
+
export type SolanaTransactSubmit = SolanaRelayerSubmit | SolanaProofOnlySubmit;
|
|
29
|
+
export interface HinkalSolanaTransactParams extends Omit<PrepareSolanaTxParams, 'inputCommitments'> {
|
|
30
|
+
submit: SolanaTransactSubmit;
|
|
31
|
+
inputUtxos?: Utxo[][];
|
|
32
|
+
userKeys?: UserKeys;
|
|
33
|
+
onTxSubmitLocally?: (notes: SolanaTransactNotes) => void;
|
|
34
|
+
}
|
|
35
|
+
export type SolanaTransactResult = string | SolanaTransactProof;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=function(e){return e.Shield=`shield`,e.Send=`send`,e}({});exports.SolanaSponsoredTxKind=e;
|
|
@@ -31,9 +31,12 @@ export interface SolanaArgs {
|
|
|
31
31
|
relayerFee: string;
|
|
32
32
|
variableRate?: string | null;
|
|
33
33
|
dimensions: DimDataType;
|
|
34
|
+
rootHashIndex: string;
|
|
34
35
|
}
|
|
35
36
|
export type SolanaTransactArgs = SolanaArgs;
|
|
36
37
|
export interface SolanaSwapArgs extends SolanaArgs {
|
|
38
|
+
onChainEncryptedOutput: string;
|
|
39
|
+
onChainCreation: boolean[];
|
|
37
40
|
hinkalInstructions: Array<{
|
|
38
41
|
accountIndexes: number[];
|
|
39
42
|
data: number[];
|
|
@@ -47,9 +50,6 @@ export interface SolanaTransactAccounts extends SolanaAccounts {
|
|
|
47
50
|
mint?: string;
|
|
48
51
|
}
|
|
49
52
|
export interface SolanaSwapAccounts extends SolanaAccounts {
|
|
50
|
-
storageAccount: string;
|
|
51
|
-
storageVault: string;
|
|
52
|
-
swapperAccount: string;
|
|
53
53
|
mintFrom: string | null;
|
|
54
54
|
mintTo: string | null;
|
|
55
55
|
remainingAccounts: OKXAccount[];
|
|
@@ -73,12 +73,21 @@ export type SolanaTransactionBody = (SolanaTransactBody | SolanaSwapBody) & {
|
|
|
73
73
|
recipientAmount?: string;
|
|
74
74
|
adminData?: AdminDataType;
|
|
75
75
|
displayRecipient?: string;
|
|
76
|
+
destinationChainId?: number;
|
|
77
|
+
destinationTokenAddress?: string;
|
|
78
|
+
destinationTokenAmount?: string;
|
|
76
79
|
};
|
|
80
|
+
export declare enum SolanaSponsoredTxKind {
|
|
81
|
+
Shield = "shield",
|
|
82
|
+
Send = "send"
|
|
83
|
+
}
|
|
77
84
|
export interface SolanaTransactionParams {
|
|
78
85
|
mintFrom?: string;
|
|
79
86
|
mintTo?: string;
|
|
80
87
|
recipient?: string;
|
|
81
88
|
nullifierCount?: number;
|
|
89
|
+
rootInsertCount?: number;
|
|
90
|
+
ataCreationCount?: number;
|
|
82
91
|
}
|
|
83
92
|
export interface SolanaAccountKeys {
|
|
84
93
|
storageAccount: string;
|
|
@@ -25,6 +25,76 @@ export type SimulateTxBody = {
|
|
|
25
25
|
value?: string;
|
|
26
26
|
save?: boolean;
|
|
27
27
|
save_if_fails?: boolean;
|
|
28
|
+
state_objects?: {
|
|
29
|
+
[address: string]: {
|
|
30
|
+
balance?: string;
|
|
31
|
+
nonce?: number;
|
|
32
|
+
code?: string;
|
|
33
|
+
storage?: Record<string, string>;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export type SimulateBundleTxAssetChange = {
|
|
38
|
+
type: string;
|
|
39
|
+
from?: string;
|
|
40
|
+
to?: string;
|
|
41
|
+
amount?: string | null;
|
|
42
|
+
raw_amount?: string;
|
|
43
|
+
dollar_value?: string;
|
|
44
|
+
token_id?: string;
|
|
45
|
+
token_info?: {
|
|
46
|
+
standard?: string;
|
|
47
|
+
type?: string;
|
|
48
|
+
contract_address?: string;
|
|
49
|
+
symbol?: string;
|
|
50
|
+
name?: string;
|
|
51
|
+
logo?: string;
|
|
52
|
+
decimals?: number;
|
|
53
|
+
dollar_value?: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export type SimulateBundleTxCallTraceEntry = {
|
|
57
|
+
call_type?: string;
|
|
58
|
+
from?: string;
|
|
59
|
+
to?: string;
|
|
60
|
+
address?: string;
|
|
61
|
+
gas?: number;
|
|
62
|
+
gas_used?: number;
|
|
63
|
+
input?: string;
|
|
64
|
+
output?: string;
|
|
65
|
+
value?: string | number;
|
|
66
|
+
error?: string;
|
|
67
|
+
error_reason?: string;
|
|
68
|
+
function_name?: string;
|
|
69
|
+
calls?: SimulateBundleTxCallTraceEntry[] | null;
|
|
70
|
+
};
|
|
71
|
+
export type SimulateBundleTxStateDiffRaw = {
|
|
72
|
+
address?: string;
|
|
73
|
+
key?: string;
|
|
74
|
+
original?: string;
|
|
75
|
+
dirty?: string;
|
|
76
|
+
};
|
|
77
|
+
export type SimulateBundleTxStateDiff = {
|
|
78
|
+
address?: string;
|
|
79
|
+
raw?: SimulateBundleTxStateDiffRaw[] | null;
|
|
80
|
+
};
|
|
81
|
+
export type SimulateBundleTxResult = {
|
|
82
|
+
transaction?: {
|
|
83
|
+
status?: boolean;
|
|
84
|
+
gas_used?: number;
|
|
85
|
+
block_number?: number;
|
|
86
|
+
transaction_info?: {
|
|
87
|
+
asset_changes?: SimulateBundleTxAssetChange[] | null;
|
|
88
|
+
call_trace?: SimulateBundleTxCallTraceEntry | null;
|
|
89
|
+
state_diff?: SimulateBundleTxStateDiff[] | null;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
error?: {
|
|
93
|
+
message?: string;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
export type SimulateBundleTxResponse = {
|
|
97
|
+
simulation_results: SimulateBundleTxResult[];
|
|
28
98
|
};
|
|
29
99
|
export type SimulateTxResponse = {
|
|
30
100
|
transaction: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=function(e){return e
|
|
1
|
+
var e=function(e){return e.Public=`public`,e.Confidential=`confidential`,e}({});exports.TemporaryWalletRecoveryDestination=e;
|
|
@@ -81,8 +81,18 @@ export interface PrivateRecipientInfo {
|
|
|
81
81
|
amount: bigint;
|
|
82
82
|
token: ERC20Token;
|
|
83
83
|
}
|
|
84
|
+
export declare enum TemporaryWalletRecoveryDestination {
|
|
85
|
+
Public = "public",
|
|
86
|
+
Confidential = "confidential"
|
|
87
|
+
}
|
|
88
|
+
export interface TemporaryWalletNonceEntry {
|
|
89
|
+
nonce: number;
|
|
90
|
+
recoveryDestination: TemporaryWalletRecoveryDestination;
|
|
91
|
+
createdAt?: string;
|
|
92
|
+
}
|
|
84
93
|
export interface TemporaryWalletBalance extends TokenBalanceWithUsdValue {
|
|
85
94
|
nonce: number;
|
|
86
95
|
ethAddress: string;
|
|
87
96
|
privateKey: string;
|
|
97
|
+
recoveryDestination: TemporaryWalletRecoveryDestination;
|
|
88
98
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region libs/shared/common/src/types/token.types.ts
|
|
2
2
|
var e = /* @__PURE__ */ function(e) {
|
|
3
|
-
return e
|
|
3
|
+
return e.Public = "public", e.Confidential = "confidential", e;
|
|
4
4
|
}({});
|
|
5
5
|
//#endregion
|
|
6
|
-
export { e as
|
|
6
|
+
export { e as TemporaryWalletRecoveryDestination };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=function(e){return e.Relayer=`relayer`,e.Self=`self`,e.ProofOnly=`proofOnly`,e}({});exports.SubmitMode=e;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ethers } from 'ethers';
|
|
2
|
+
import { Types as TronWebTypes } from 'tronweb';
|
|
3
|
+
import { UserKeys } from '../data-structures/crypto-keys/keys';
|
|
4
|
+
import { Utxo } from '../data-structures/utxo/Utxo';
|
|
5
|
+
import { AdminDataType } from './admin.types';
|
|
6
|
+
import { CircomDataType, CommitmentValidationDataType, DimDataType } from './circom-data.types';
|
|
7
|
+
import { AuthorizationData } from './hinkal.types';
|
|
8
|
+
import { PrepareTxParams } from './remote-tx-build.types';
|
|
9
|
+
import { NewZkCallDataType } from './snark.types';
|
|
10
|
+
import { ERC20Token } from './token.types';
|
|
11
|
+
export declare enum SubmitMode {
|
|
12
|
+
Relayer = "relayer",
|
|
13
|
+
Self = "self",
|
|
14
|
+
ProofOnly = "proofOnly"
|
|
15
|
+
}
|
|
16
|
+
export interface TronProofSignature {
|
|
17
|
+
v: number;
|
|
18
|
+
r: string;
|
|
19
|
+
s: string;
|
|
20
|
+
}
|
|
21
|
+
export interface TransactProof {
|
|
22
|
+
zkCallData: NewZkCallDataType;
|
|
23
|
+
circomData: CircomDataType;
|
|
24
|
+
dimData: DimDataType;
|
|
25
|
+
commitmentValidationData?: CommitmentValidationDataType;
|
|
26
|
+
tronProofSignature?: TronProofSignature;
|
|
27
|
+
}
|
|
28
|
+
export interface RelayerSubmit {
|
|
29
|
+
mode: SubmitMode.Relayer;
|
|
30
|
+
adminData?: AdminDataType;
|
|
31
|
+
authorizationData?: AuthorizationData;
|
|
32
|
+
withUniswapWorkAround?: boolean;
|
|
33
|
+
}
|
|
34
|
+
export interface SelfSubmit {
|
|
35
|
+
mode: SubmitMode.Self;
|
|
36
|
+
erc20Tokens: ERC20Token[];
|
|
37
|
+
approvalAmounts: bigint[];
|
|
38
|
+
preEstimateGas?: boolean;
|
|
39
|
+
returnTxData?: boolean;
|
|
40
|
+
}
|
|
41
|
+
export interface ProofOnlySubmit {
|
|
42
|
+
mode: SubmitMode.ProofOnly;
|
|
43
|
+
}
|
|
44
|
+
export type TransactSubmit = RelayerSubmit | SelfSubmit | ProofOnlySubmit;
|
|
45
|
+
export interface HinkalTransactParams extends Omit<PrepareTxParams, 'inputCommitments'> {
|
|
46
|
+
submit: TransactSubmit;
|
|
47
|
+
inputUtxos?: Utxo[][];
|
|
48
|
+
userKeys?: UserKeys;
|
|
49
|
+
subAccountPrivateKey?: string;
|
|
50
|
+
emporiumOps?: string[];
|
|
51
|
+
onTxSubmitLocally?: (circomData: CircomDataType) => void;
|
|
52
|
+
}
|
|
53
|
+
export type TransactResult = string | ethers.TransactionResponse | ethers.TransactionRequest | TronWebTypes.Transaction<TronWebTypes.TriggerSmartContract> | TransactProof;
|
|
@@ -135,7 +135,6 @@ export interface PrepareHinkalFromSerializedArgs {
|
|
|
135
135
|
generateProofRemotely: boolean;
|
|
136
136
|
serializedCache: Record<string, string>;
|
|
137
137
|
stealthPairCache: Record<string, string>;
|
|
138
|
-
stealthAddressCache: Record<string, string>;
|
|
139
138
|
}
|
|
140
139
|
export type TransactionRequest = (TransferTokenRequest | ReceiveFromSubAccountRequest | SwapTokensRequest | PrivateTransactionFromProxyRequest | SendProxySendRequest | ProxySwapTokensRequest | BatchTransactionRequest | SignAndSendSolanaTransactionRequest) & {
|
|
141
140
|
prepareHinkalArgs: PrepareHinkalFromSerializedArgs;
|