@hinkal/common 0.3.1 → 0.3.2
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/common/src/API/API.cjs +1 -1
- package/common/src/API/API.d.ts +9 -34
- package/common/src/API/API.mjs +75 -100
- package/common/src/API/callOneInchAPI.cjs +1 -1
- package/common/src/API/callOneInchAPI.d.ts +6 -0
- package/common/src/API/callOneInchAPI.mjs +5 -2
- 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/enclaveUtxoCalls.d.ts +9 -1
- package/common/src/API/getWebsiteURL.d.ts +1 -2
- package/common/src/API/index.cjs +1 -1
- package/common/src/API/index.d.ts +1 -2
- package/common/src/API/index.mjs +2 -3
- 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/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 -38
- package/common/src/API/rewardsUserCalls.mjs +2 -9
- package/common/src/API/scheduled-transactions-calls.d.ts +1 -0
- package/common/src/API/temporaryWalletCalls.cjs +1 -1
- package/common/src/API/temporaryWalletCalls.mjs +8 -8
- 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/chains.constants.cjs +1 -1
- package/common/src/constants/chains.constants.mjs +3 -10
- package/common/src/constants/contracts.constants.cjs +1 -1
- package/common/src/constants/contracts.constants.mjs +19 -32
- 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-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-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-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 +8 -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/shared-deploy-data-evm.json.cjs +1 -1
- package/common/src/constants/deploy-data/shared-deploy-data-evm.json.mjs +19 -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 +7 -18
- package/common/src/constants/enclaveAuth.constants.d.ts +5 -0
- package/common/src/constants/index.cjs +1 -1
- package/common/src/constants/index.d.ts +1 -2
- package/common/src/constants/index.mjs +0 -1
- package/common/src/constants/mediaUrls.constants.d.ts +0 -1
- 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 +7 -5
- package/common/src/constants/protocol.constants.mjs +4 -11
- package/common/src/constants/rewards.constants.d.ts +0 -13
- package/common/src/constants/server.constants.cjs +1 -1
- package/common/src/constants/server.constants.d.ts +5 -28
- package/common/src/constants/server.constants.mjs +10 -41
- package/common/src/crypto/ecdh.cjs +1 -1
- package/common/src/crypto/ecdh.mjs +2 -9
- package/common/src/crypto/index.cjs +1 -1
- package/common/src/crypto/index.mjs +1 -1
- package/common/src/data-structures/Hinkal/Hinkal.cjs +1 -1
- package/common/src/data-structures/Hinkal/Hinkal.d.ts +4 -8
- package/common/src/data-structures/Hinkal/Hinkal.mjs +83 -99
- package/common/src/data-structures/Hinkal/IHinkal.d.ts +5 -9
- package/common/src/data-structures/Hinkal/handleAutoDepositBack.cjs +1 -1
- package/common/src/data-structures/Hinkal/handleAutoDepositBack.mjs +22 -22
- package/common/src/data-structures/Hinkal/hinkalBridgePrivateToPrivate.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalBridgePrivateToPrivate.mjs +21 -21
- package/common/src/data-structures/Hinkal/hinkalClaimUtxo.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalClaimUtxo.mjs +6 -9
- package/common/src/data-structures/Hinkal/hinkalDeposit.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalDeposit.mjs +4 -7
- package/common/src/data-structures/Hinkal/hinkalDepositAndBridge.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalDepositAndBridge.mjs +64 -66
- package/common/src/data-structures/Hinkal/hinkalDepositAndWithdraw.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalDepositAndWithdraw.d.ts +1 -1
- package/common/src/data-structures/Hinkal/hinkalDepositAndWithdraw.mjs +47 -51
- package/common/src/data-structures/Hinkal/hinkalDepositOnChainUtxos.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalDepositOnChainUtxos.d.ts +1 -1
- package/common/src/data-structures/Hinkal/hinkalDepositOnChainUtxos.mjs +33 -43
- 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 +6 -6
- package/common/src/data-structures/Hinkal/hinkalProoflessDeposit.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalProoflessDeposit.d.ts +2 -2
- package/common/src/data-structures/Hinkal/hinkalProoflessDeposit.mjs +107 -94
- 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 -14
- package/common/src/data-structures/Hinkal/hinkalProxyToPrivate.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalProxyToPrivate.mjs +4 -4
- package/common/src/data-structures/Hinkal/hinkalSolanaClaimUtxo.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaClaimUtxo.mjs +4 -9
- package/common/src/data-structures/Hinkal/hinkalSolanaDeposit.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaDeposit.mjs +26 -32
- package/common/src/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.mjs +43 -42
- package/common/src/data-structures/Hinkal/hinkalSolanaTransfer.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalSolanaTransfer.mjs +4 -4
- package/common/src/data-structures/Hinkal/hinkalTransfer.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalTransfer.mjs +6 -6
- package/common/src/data-structures/Hinkal/hinkalWithdraw.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalWithdraw.mjs +22 -26
- package/common/src/data-structures/Hinkal/hinkalWithdrawStuckUtxos.cjs +1 -1
- package/common/src/data-structures/Hinkal/hinkalWithdrawStuckUtxos.mjs +21 -24
- package/common/src/data-structures/Hinkal/index.d.ts +0 -1
- package/common/src/data-structures/Hinkal/resetMerkleTrees.cjs +1 -1
- package/common/src/data-structures/Hinkal/resetMerkleTrees.mjs +4 -4
- 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/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/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/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.mjs +25 -25
- package/common/src/data-structures/TokenDBs/AlchemyPublicTokensDB.cjs +1 -1
- package/common/src/data-structures/TokenDBs/AlchemyPublicTokensDB.mjs +12 -12
- package/common/src/data-structures/TokenDBs/ArcPublicTokensDB.cjs +1 -1
- package/common/src/data-structures/TokenDBs/ArcPublicTokensDB.mjs +12 -12
- package/common/src/data-structures/TokenDBs/EventsPublicTokensDB.cjs +1 -1
- package/common/src/data-structures/TokenDBs/EventsPublicTokensDB.mjs +24 -24
- package/common/src/data-structures/TokenDBs/PrivateTokensDB.cjs +1 -1
- package/common/src/data-structures/TokenDBs/PrivateTokensDB.mjs +14 -14
- package/common/src/data-structures/TokenDBs/TronPublicTokensDB.cjs +1 -1
- package/common/src/data-structures/TokenDBs/TronPublicTokensDB.mjs +14 -14
- 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 +8 -9
- package/common/src/data-structures/crypto-keys/decodeUTXO.mjs +38 -48
- 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 +26 -22
- package/common/src/data-structures/crypto-keys/keys.cjs +1 -1
- package/common/src/data-structures/crypto-keys/keys.d.ts +12 -27
- package/common/src/data-structures/crypto-keys/keys.mjs +61 -79
- package/common/src/data-structures/event-service/evm/BlockchainEventEmitter.cjs +1 -1
- package/common/src/data-structures/event-service/evm/BlockchainEventEmitter.d.ts +1 -2
- package/common/src/data-structures/event-service/evm/BlockchainEventEmitter.mjs +4 -10
- 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/private-balances/HinkalPrivateBalanceController.cjs +1 -1
- package/common/src/data-structures/private-balances/HinkalPrivateBalanceController.mjs +40 -40
- package/common/src/data-structures/provider-adapter/IProviderAdapter.d.ts +0 -1
- 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 +0 -3
- package/common/src/error-handling/error-codes.constants.mjs +13 -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/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.mjs +1 -1
- 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/outputUtxoProcessing.cjs +1 -1
- package/common/src/functions/pre-transaction/outputUtxoProcessing.mjs +3 -5
- package/common/src/functions/pre-transaction/recipientUtxoProcessing.cjs +1 -1
- package/common/src/functions/pre-transaction/recipientUtxoProcessing.mjs +3 -5
- 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.mjs +5 -4
- package/common/src/functions/private-wallet/emporium.helpers.cjs +1 -1
- package/common/src/functions/private-wallet/emporium.helpers.d.ts +1 -2
- package/common/src/functions/private-wallet/emporium.helpers.mjs +83 -57
- package/common/src/functions/private-wallet/emporium.swap.helpers.cjs +1 -1
- package/common/src/functions/private-wallet/emporium.swap.helpers.mjs +19 -19
- package/common/src/functions/snarkjs/common.snarkjs.cjs +1 -1
- package/common/src/functions/snarkjs/common.snarkjs.d.ts +2 -3
- package/common/src/functions/snarkjs/common.snarkjs.mjs +45 -47
- package/common/src/functions/snarkjs/constant.cjs +1 -1
- package/common/src/functions/snarkjs/constant.d.ts +151 -144
- package/common/src/functions/snarkjs/constant.mjs +151 -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 +59 -60
- 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.mjs +54 -58
- 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 +14 -5
- 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 +35 -31
- 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/getMerkleTreeSiblingsAndRootHashes.cjs +1 -1
- package/common/src/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.d.ts +2 -0
- package/common/src/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.mjs +18 -12
- 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 +1 -0
- package/common/src/functions/snarkjs/signedMessageHash.mjs +2 -0
- package/common/src/functions/utils/addresses.cjs +1 -1
- package/common/src/functions/utils/addresses.d.ts +0 -1
- package/common/src/functions/utils/addresses.mjs +10 -13
- package/common/src/functions/utils/bridge-flow.utils.d.ts +1 -1
- package/common/src/functions/utils/buildClaimableDepositPlan.d.ts +1 -0
- package/common/src/functions/utils/convertEmporiumOpToCallInfo.cjs +1 -1
- package/common/src/functions/utils/convertEmporiumOpToCallInfo.mjs +5 -10
- package/common/src/functions/utils/enclave-utxo-storage.d.ts +3 -0
- 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/fees.utils.cjs +1 -1
- package/common/src/functions/utils/fees.utils.d.ts +1 -0
- package/common/src/functions/utils/fees.utils.mjs +5 -1
- 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/getUtxosFromReceiptSolana.cjs +1 -1
- package/common/src/functions/utils/getUtxosFromReceiptSolana.mjs +16 -18
- package/common/src/functions/utils/index.cjs +1 -1
- package/common/src/functions/utils/index.d.ts +5 -1
- package/common/src/functions/utils/index.mjs +5 -1
- 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/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 +1 -1
- 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/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/tron.utils.cjs +1 -1
- package/common/src/functions/utils/tron.utils.d.ts +1 -1
- package/common/src/functions/utils/tron.utils.mjs +14 -29
- 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/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 +2 -4
- package/common/src/functions/web3/events/getInputUtxoAndBalance.mjs +9 -16
- package/common/src/functions/web3/events/getShieldedBalance.cjs +1 -1
- package/common/src/functions/web3/events/getShieldedBalance.d.ts +1 -1
- package/common/src/functions/web3/events/getShieldedBalance.mjs +21 -29
- 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/transactCallDirectTron.cjs +1 -1
- package/common/src/functions/web3/functionCalls/transactCallDirectTron.mjs +37 -3
- package/common/src/functions/web3/functionCalls/waitForErc20Approvals.cjs +1 -1
- package/common/src/functions/web3/functionCalls/waitForErc20Approvals.mjs +6 -6
- package/common/src/functions/web3/oneInchAPI.cjs +1 -1
- package/common/src/functions/web3/oneInchAPI.mjs +31 -21
- package/common/src/functions/web3/uniswapAPI.cjs +1 -1
- package/common/src/functions/web3/uniswapAPI.mjs +6 -6
- 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 +0 -1
- package/common/src/providers/SolanaProviderAdapter.mjs +0 -3
- package/common/src/providers/TronProviderAdapter.cjs +1 -1
- package/common/src/providers/TronProviderAdapter.d.ts +0 -1
- package/common/src/providers/TronProviderAdapter.mjs +0 -3
- package/common/src/providers/WagmiProviderAdapter.cjs +1 -1
- package/common/src/providers/WagmiProviderAdapter.d.ts +0 -1
- package/common/src/providers/WagmiProviderAdapter.mjs +5 -9
- package/common/src/types/API.types.d.ts +0 -4
- package/common/src/types/WeeklyAnalytics.types.d.ts +1 -26
- package/common/src/types/cache.types.cjs +1 -1
- package/common/src/types/cache.types.d.ts +2 -2
- 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 +26 -27
- package/common/src/types/circom-data.types.mjs +1 -1
- 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/enclaveApi.types.d.ts +78 -0
- package/common/src/types/ethereum-network.types.cjs +1 -1
- package/common/src/types/ethereum-network.types.d.ts +13 -23
- package/common/src/types/ethereum-network.types.mjs +1 -1
- package/common/src/types/external-action.types.cjs +1 -1
- package/common/src/types/external-action.types.d.ts +2 -3
- 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 +8 -22
- package/common/src/types/hinkal.types.mjs +11 -19
- package/common/src/types/index.cjs +1 -1
- package/common/src/types/index.d.ts +3 -5
- package/common/src/types/index.mjs +0 -1
- package/common/src/types/new-rewards.type.d.ts +0 -70
- 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/snark.types.d.ts +1 -3
- package/common/src/types/token.types.cjs +1 -1
- package/common/src/types/token.types.mjs +1 -3
- 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-uy41lNp1.js +2 -0
- package/common/src/webworker/package.json +1 -1
- 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/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-MheXtWa4.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/package.json +1 -1
- package/services/Hinkal.cjs +1 -1
- package/services/Hinkal.d.ts +1 -2
- package/services/Hinkal.mjs +4 -7
- package/types/IHinkal.d.ts +1 -2
- 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/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/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/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/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/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/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/token-with-id.types.d.ts +0 -4
- package/common/src/webworker/logError-BR5TJP6T.js +0 -2
- package/common/src/webworker/workerProxy-Ddzxn23N.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { HINKAL_SWAP_VARIABLE_RATE as e, zeroAddress as t } from "../../constants/protocol.constants.mjs";
|
|
2
2
|
import { caseInsensitiveEqual as n } from "../utils/caseInsensitive.utils.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { Logger as r } from "../../error-handling/logger.mjs";
|
|
4
|
+
import { ContractType as i } from "../../types/ethereum-network.types.mjs";
|
|
5
|
+
import { ExternalActionId as a } from "../../types/external-action.types.mjs";
|
|
6
6
|
import { replaceAllInstances as o } from "../utils/string.utils.mjs";
|
|
7
7
|
import { getErc20TokensForChainAPI as s } from "../utils/erc20tokenFunctions.mjs";
|
|
8
8
|
import { NATIVE_TOKEN_WRAPPER_ADDRESSES as c, SWAP_FEE_TAKER_ADDRESSES as l, WRAPPER_TOKEN_EXCHANGE_ADDRESSES as u } from "../../constants/addresses.constants.mjs";
|
|
@@ -35,16 +35,16 @@ var g = (e, t, n, r, i, a, o = !1) => {
|
|
|
35
35
|
}), v = async (e, t) => {
|
|
36
36
|
let r = (await s(t)).find((e) => e.symbol === "USDT");
|
|
37
37
|
return r ? n(e, r.erc20TokenAddress) : !1;
|
|
38
|
-
}, y = async (e, t, n,
|
|
38
|
+
}, y = async (e, t, n, i, a, o) => {
|
|
39
39
|
if (await v(d(n), e)) try {
|
|
40
|
-
await n.allowance(
|
|
40
|
+
await n.allowance(i, a) > 0n && t.push(f(n, a, 0n, o));
|
|
41
41
|
} catch (e) {
|
|
42
|
-
|
|
42
|
+
r.error("Error in nullifyUsdtApprovalIfNeeded", e);
|
|
43
43
|
}
|
|
44
|
-
}, b = async (n,
|
|
44
|
+
}, b = async (n, r, a, o, s, c, u, d) => {
|
|
45
45
|
if (a !== t) {
|
|
46
|
-
let t = l[
|
|
47
|
-
await y(
|
|
46
|
+
let t = l[r], d = n.getContractWithFetcher(r, i.ERC20Contract, a), m = await d.balanceOf(o);
|
|
47
|
+
await y(r, c, d, o, t, u), c.push(f(d, t, 2n ** 256n - 1n, u));
|
|
48
48
|
let g = new h.Contract(t, ["function takeSwapFee(address token, uint256 beforeBalance, uint256 variableRate, address relay) external payable"]), _ = s;
|
|
49
49
|
c.push(p({
|
|
50
50
|
contract: g,
|
|
@@ -65,19 +65,19 @@ var g = (e, t, n, r, i, a, o = !1) => {
|
|
|
65
65
|
invokeWallet: u
|
|
66
66
|
}));
|
|
67
67
|
}
|
|
68
|
-
}, x = async (e, n,
|
|
68
|
+
}, x = async (e, n, r, o, s, l, d, m, v, x, S, C, w = !1) => {
|
|
69
69
|
let T = d < 0n ? -1n * d : d, E = [], D = c[n], O = !1, k;
|
|
70
|
-
if (
|
|
70
|
+
if (r === a.OneInch || r === a.Lifi) {
|
|
71
71
|
if (l !== t) {
|
|
72
|
-
let t = e.getContractWithFetcher(n,
|
|
72
|
+
let t = e.getContractWithFetcher(n, i.ERC20Contract, l);
|
|
73
73
|
E.push(f(t, o, T, w));
|
|
74
74
|
}
|
|
75
75
|
let c = 0n;
|
|
76
|
-
return l === t && (c += T), m && v === t && m < 0n && (c += -1n * m), k = _(n,
|
|
76
|
+
return l === t && (c += T), m && v === t && m < 0n && (c += -1n * m), k = _(n, r, o, s, S, c > 0n ? c : void 0, w), E.push(k), (r === a.OneInch || x && r === a.Lifi) && v && m !== void 0 && await b(e, n, v, S, C, E, w, m), E;
|
|
77
77
|
}
|
|
78
78
|
if (!v || !m) throw Error("There should be output token for UniSwap and Odos");
|
|
79
79
|
if (l === t) {
|
|
80
|
-
let t = e.getContractWithFetcher(n,
|
|
80
|
+
let t = e.getContractWithFetcher(n, i.ERC20Contract, D);
|
|
81
81
|
E.push(p({
|
|
82
82
|
contract: t,
|
|
83
83
|
func: "deposit",
|
|
@@ -86,13 +86,13 @@ var g = (e, t, n, r, i, a, o = !1) => {
|
|
|
86
86
|
})), l = D;
|
|
87
87
|
}
|
|
88
88
|
let A = 0n;
|
|
89
|
-
if (v === t && (v = D, O = !0, A = await e.getContractWithFetcher(n,
|
|
90
|
-
let t = e.getContractWithFetcher(n,
|
|
89
|
+
if (v === t && (v = D, O = !0, A = await e.getContractWithFetcher(n, i.ERC20Contract, D).balanceOf(S)), l !== t) {
|
|
90
|
+
let t = e.getContractWithFetcher(n, i.ERC20Contract, l);
|
|
91
91
|
await y(n, E, t, S, o, w), E.push(f(t, o, T, w));
|
|
92
92
|
}
|
|
93
|
-
if (k =
|
|
94
|
-
let t = u[n],
|
|
95
|
-
E.push(f(
|
|
93
|
+
if (k = r === a.Uniswap ? g(o, l, T, v, S, s, w) : _(n, r, o, s, S, void 0, w), E.push(k), await b(e, n, v, S, C, E, w, m), O) {
|
|
94
|
+
let t = u[n], r = e.getContractWithFetcher(n, i.ERC20Contract, D);
|
|
95
|
+
E.push(f(r, t, 2n ** 256n - 1n, w));
|
|
96
96
|
let a = new h.Contract(t, ["function withdrawBalanceDifference(uint256 beforeBalance) external"]);
|
|
97
97
|
E.push(p({
|
|
98
98
|
contract: a,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`../../../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../constants/protocol.constants.cjs`),t=require(`../../data-structures/crypto-keys/keys.cjs`),n=require(`../../types/circom-data.types.cjs`),r=require(`../../data-structures/crypto-keys/encryptDecryptUtxo.cjs`),i=require(`../utils/external-action.utils.cjs`),a=require(`./getOriginalSender.cjs`)
|
|
1
|
+
require(`../../../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../constants/protocol.constants.cjs`),t=require(`../../data-structures/crypto-keys/keys.cjs`),n=require(`../../types/circom-data.types.cjs`),r=require(`../../data-structures/crypto-keys/encryptDecryptUtxo.cjs`),i=require(`../utils/external-action.utils.cjs`),a=require(`./getOriginalSender.cjs`);let o=require(`ethers`);var s=e=>{if(e.H0?.[0]!==void 0&&e.H0[1]!==void 0)return[e.H0[0],e.H0[1]];throw Error(`UTXO missing H0 coordinates for proof input`)},c=Array.from({length:25},()=>`0`),l=e=>e.length>0&&e.every(e=>e.every(e=>BigInt(e.amount)===0n)),u=e=>({inCommitmentSiblings:e.map(e=>e.map(()=>[...c])),inCommitmentSiblingSides:e.map(e=>e.map(()=>[...c])),inNullifiers:e.map(e=>e.map(()=>`0`))}),d=e=>e.map(e=>e.map(e=>e.amount===0n?`0`:e.getCommitment())),f=(t,n,r=!1)=>{let i=[];for(let a=0;a<t.length;a+=1){let o=0n,s=0n;for(let e=0;e<t[a].length;e+=1)o+=t[a][e].amount;for(let e=0;e<n[a].length;e+=1)s+=n[a][e].amount;s-o<0?r?i.push(s-o):i.push(e.CIRCOM_P+(s-o)):i.push(s-o)}return i},p=e=>e.map(e=>e>=0n?0n:e),m=e=>{if(e.length===0)return[];let t=[[``]];for(let n=0;n<e.length;n+=1)n>0&&t.push([``]),e[n].forEach((e,i)=>{t[n][i]=`0x${Buffer.from(r.encryptUtxo(e)).toString(`hex`)}`});return t},h=(e,t)=>`0x${Buffer.from(r.encryptEncryptionKeyAndStealthAddress(e,t.stealthAddress)).toString(`hex`)}`,g=e=>{let t={...e};return t.amountChanges=e.amountChanges.map(e=>e.toString()),t.calldataHash=e.calldataHash.toString(),t.stealthAddressStructure.H0x=e.stealthAddressStructure.H0x.toString(),t.stealthAddressStructure.H0y=e.stealthAddressStructure.H0y.toString(),t.stealthAddressStructure.H1x=e.stealthAddressStructure.H1x.toString(),t.stealthAddressStructure.H1y=e.stealthAddressStructure.H1y.toString(),t.stealthAddressStructure.stealthAddress=e.stealthAddressStructure.stealthAddress.toString(),t.rootHashHinkal=e.rootHashHinkal?.toString(),t.rootHashHinkalIndex=e.rootHashHinkalIndex?.toString(),t.externalActionData={...e.externalActionData,externalActionId:e.externalActionData.externalActionId?.toString()},t.emporiumMessage=e.emporiumMessage?.toString(),t.slippageValues=e.slippageValues.map(e=>e.toString()),t.feeStructure.flatFee=e.feeStructure.flatFee.toString(),t.feeStructure.variableRate=e.feeStructure.variableRate.toString(),t},_=(t,r,s,c,l,u,d,f,p,m,h,g,_,v=`0x`)=>{let y=Object.values(p||n.defaultHookData),b=s??e.zeroAddress,x=_??a.getOriginalSender(b,r),S=typeof c==`bigint`?c:i.getExternalActionIdHash(c),C=o.ethers.AbiCoder.defaultAbiCoder().encode([`uint16`,`address`,`uint256`,`tuple(address externalAddress, uint256 externalActionId, bytes externalActionMetadata)`,`int256[]`],[t,r,l,[b,S,u],m]),w=o.ethers.AbiCoder.defaultAbiCoder().encode([`tuple(address, address, bytes, bytes)`,`bytes[][]`,`bytes`,`tuple(address, uint256, uint256)`,`bool[]`,`address`,`bytes`],[y,d,f,[g.feeToken,g.flatFee,g.variableRate],h,x,v]),T=BigInt(o.ethers.keccak256(C)),E=BigInt(o.ethers.keccak256(w)),D=o.ethers.AbiCoder.defaultAbiCoder().encode([`uint256`,`uint256`],[T,E]);return BigInt(o.ethers.keccak256(D))%e.CIRCOM_P},v=(e,t,n,r,i)=>e.startsWith(`mainEVMCircuitMin0`)?3:2+t.length+n.length+1+r.flat().length+i.flat().length+1+1+1+1+1+1+1,y=(e,n,r)=>{let i=t.UserKeys.getH1FromH0(e,n),a=BigInt(t.UserKeys.getStealthAddress(e,n,r));return{H0x:e[0],H0y:e[1],H1x:i[0],H1y:i[1],stealthAddress:a}},b=(e,n,r)=>{let{H0:i}=t.UserKeys.getRandomizedStealthPair(e,n);return y(i,n,r)},x=(e,t)=>t.length===0?`mainEVMCircuitMin0`:`mainEVMCircuit${e.length}x${e[0].length}x${t[0].length}`;exports.buildOutCommitments=d,exports.buildZeroInputMerkleDataFromSerialized=u,exports.calcAmountChanges=f,exports.calcEncryptedOutputs=m,exports.calcOnchainEncryptedOutput=h,exports.calcPublicSignalCount=v,exports.calcStealthAddressStructure=b,exports.calcStealthAddressStructureFromH0=y,exports.createCallDataHash=_,exports.getSlippageValues=p,exports.getUtxoCircuitH0Coords=s,exports.getZkProofVerifierName=x,exports.hasOnlyZeroAmounts=l,exports.serializeCircomData=g;
|
|
@@ -3,9 +3,7 @@ import { MerkleTree } from '../../data-structures/merkle-tree';
|
|
|
3
3
|
import { CircomDataJsonType, CircomDataType, HookDataType, StealthAddressStructure } from '../../types/circom-data.types';
|
|
4
4
|
import { ExternalActionId } from '../../types/external-action.types';
|
|
5
5
|
import { FeeStructure } from '../../types/hinkal.types';
|
|
6
|
-
import { SignatureData } from '../../types/crypto.types';
|
|
7
6
|
export declare const getUtxoCircuitH0Coords: (utxo: Utxo) => [bigint, bigint];
|
|
8
|
-
export declare const getUtxoCircuitInRandomization: (utxo: Utxo) => string;
|
|
9
7
|
export declare const buildInNullifiers: (inputUtxos: Utxo[][], onChainCreation: boolean[]) => string[][];
|
|
10
8
|
export declare const hasOnlyZeroAmounts: <T extends {
|
|
11
9
|
amount: bigint;
|
|
@@ -19,13 +17,14 @@ export declare const buildOutCommitments: (outputUtxos: Utxo[][]) => string[][];
|
|
|
19
17
|
export declare const calcAmountChanges: (inputUtxos: Utxo[][], outputUtxos: Utxo[][], forCircomData?: boolean) => bigint[];
|
|
20
18
|
export declare const getSlippageValues: (amountChanges: bigint[]) => bigint[];
|
|
21
19
|
export declare const calcEncryptedOutputs: (outputUtxos: Utxo[][]) => string[][];
|
|
20
|
+
export declare const calcOnchainEncryptedOutput: (encryptionKey: string, stealthAddressStructure: StealthAddressStructure) => string;
|
|
22
21
|
export declare const calcCommitmentsSiblingAndSides: (inputUtxos: Utxo[][], merkleTree: MerkleTree<bigint>) => {
|
|
23
22
|
inCommitmentSiblings: string[][][];
|
|
24
23
|
inCommitmentSiblingSides: string[][][];
|
|
25
24
|
};
|
|
26
25
|
export declare const serializeCircomData: (circomData: CircomDataType) => CircomDataJsonType;
|
|
27
26
|
export declare const deserializeCircomData: (circomData: CircomDataJsonType) => CircomDataType;
|
|
28
|
-
export declare const createCallDataHash: (publicSignalCount: number, relay: string, externalAddress: string | undefined, externalActionId: bigint | ExternalActionId, externalActionMetadata: string, encryptedOutputs: string[][], hookData: HookDataType | undefined, slippageValues: bigint[], onChainCreation: boolean[], feeStructure: FeeStructure,
|
|
27
|
+
export declare const createCallDataHash: (publicSignalCount: number, relay: string, externalAddress: string | undefined, externalActionId: bigint | ExternalActionId, emporiumMessage: bigint, externalActionMetadata: string, encryptedOutputs: string[][], onChainEncryptedOutput: string, hookData: HookDataType | undefined, slippageValues: bigint[], onChainCreation: boolean[], feeStructure: FeeStructure, _originalSender?: string, extraData?: string) => bigint;
|
|
29
28
|
export declare const calcPublicSignalCount: (verifierName: string, erc20TokenAddresses: string[], amountChanges: bigint[], inNullifiers: string[][], outCommitments: string[][]) => number;
|
|
30
29
|
export declare const calcStealthAddressStructureFromH0: (H0: [bigint, bigint], nullifyingPrivateKey: string, spendingPublicKey: bigint[]) => StealthAddressStructure;
|
|
31
30
|
export declare const calcStealthAddressStructure: (extraRandomization: bigint, nullifyingPrivateKey: string, spendingPublicKey: bigint[]) => StealthAddressStructure;
|
|
@@ -1,25 +1,19 @@
|
|
|
1
1
|
import { CIRCOM_P as e, zeroAddress as t } from "../../constants/protocol.constants.mjs";
|
|
2
2
|
import { UserKeys as n } from "../../data-structures/crypto-keys/keys.mjs";
|
|
3
3
|
import { defaultHookData as r } from "../../types/circom-data.types.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import { getExternalActionIdHash as
|
|
6
|
-
import { getOriginalSender as
|
|
7
|
-
import { addHighestBitToNumber as s } from "../utils/bit.operations.mjs";
|
|
4
|
+
import { encryptEncryptionKeyAndStealthAddress as i, encryptUtxo as a } from "../../data-structures/crypto-keys/encryptDecryptUtxo.mjs";
|
|
5
|
+
import { getExternalActionIdHash as o } from "../utils/external-action.utils.mjs";
|
|
6
|
+
import { getOriginalSender as s } from "./getOriginalSender.mjs";
|
|
8
7
|
import { ethers as c } from "ethers";
|
|
9
8
|
//#region libs/shared/common/src/functions/snarkjs/common.snarkjs.ts
|
|
10
9
|
var l = (e) => {
|
|
11
10
|
if (e.H0?.[0] !== void 0 && e.H0[1] !== void 0) return [e.H0[0], e.H0[1]];
|
|
12
|
-
if (e.randomization !== void 0) return n.getH0FromRandomization(e.randomization);
|
|
13
11
|
throw Error("UTXO missing H0 coordinates for proof input");
|
|
14
|
-
}, u = (e) => {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
throw Error("UTXO missing randomization for old-style proof input");
|
|
18
|
-
}, d = Array.from({ length: 25 }, () => "0"), f = (e) => e.length > 0 && e.every((e) => e.every((e) => BigInt(e.amount) === 0n)), p = (e) => ({
|
|
19
|
-
inCommitmentSiblings: e.map((e) => e.map(() => [...d])),
|
|
20
|
-
inCommitmentSiblingSides: e.map((e) => e.map(() => [...d])),
|
|
12
|
+
}, u = Array.from({ length: 25 }, () => "0"), d = (e) => e.length > 0 && e.every((e) => e.every((e) => BigInt(e.amount) === 0n)), f = (e) => ({
|
|
13
|
+
inCommitmentSiblings: e.map((e) => e.map(() => [...u])),
|
|
14
|
+
inCommitmentSiblingSides: e.map((e) => e.map(() => [...u])),
|
|
21
15
|
inNullifiers: e.map((e) => e.map(() => "0"))
|
|
22
|
-
}),
|
|
16
|
+
}), p = (e) => e.map((e) => e.map((e) => e.amount === 0n ? "0" : e.getCommitment())), m = (t, n, r = !1) => {
|
|
23
17
|
let i = [];
|
|
24
18
|
for (let a = 0; a < t.length; a += 1) {
|
|
25
19
|
let o = 0n, s = 0n;
|
|
@@ -28,61 +22,65 @@ var l = (e) => {
|
|
|
28
22
|
s - o < 0 ? r ? i.push(s - o) : i.push(e + (s - o)) : i.push(s - o);
|
|
29
23
|
}
|
|
30
24
|
return i;
|
|
31
|
-
},
|
|
25
|
+
}, h = (e) => e.map((e) => e >= 0n ? 0n : e), g = (e) => {
|
|
32
26
|
if (e.length === 0) return [];
|
|
33
27
|
let t = [[""]];
|
|
34
28
|
for (let n = 0; n < e.length; n += 1) n > 0 && t.push([""]), e[n].forEach((e, r) => {
|
|
35
|
-
t[n][r] = `0x${Buffer.from(
|
|
29
|
+
t[n][r] = `0x${Buffer.from(a(e)).toString("hex")}`;
|
|
36
30
|
});
|
|
37
31
|
return t;
|
|
38
|
-
}, v = (e) => {
|
|
32
|
+
}, _ = (e, t) => `0x${Buffer.from(i(e, t.stealthAddress)).toString("hex")}`, v = (e) => {
|
|
39
33
|
let t = { ...e };
|
|
40
|
-
return t.amountChanges = e.amountChanges.map((e) => e.toString()), t.calldataHash = e.calldataHash.toString(), t.
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
let v = Object.values(f || r), y = _ ?? o(s ?? t, i), b = c.AbiCoder.defaultAbiCoder().encode([
|
|
34
|
+
return t.amountChanges = e.amountChanges.map((e) => e.toString()), t.calldataHash = e.calldataHash.toString(), t.stealthAddressStructure.H0x = e.stealthAddressStructure.H0x.toString(), t.stealthAddressStructure.H0y = e.stealthAddressStructure.H0y.toString(), t.stealthAddressStructure.H1x = e.stealthAddressStructure.H1x.toString(), t.stealthAddressStructure.H1y = e.stealthAddressStructure.H1y.toString(), t.stealthAddressStructure.stealthAddress = e.stealthAddressStructure.stealthAddress.toString(), t.rootHashHinkal = e.rootHashHinkal?.toString(), t.rootHashHinkalIndex = e.rootHashHinkalIndex?.toString(), t.externalActionData = {
|
|
35
|
+
...e.externalActionData,
|
|
36
|
+
externalActionId: e.externalActionData.externalActionId?.toString()
|
|
37
|
+
}, t.emporiumMessage = e.emporiumMessage?.toString(), t.slippageValues = e.slippageValues.map((e) => e.toString()), t.feeStructure.flatFee = e.feeStructure.flatFee.toString(), t.feeStructure.variableRate = e.feeStructure.variableRate.toString(), t;
|
|
38
|
+
}, y = (n, i, a, l, u, d, f, p, m, h, g, _, v, y = "0x") => {
|
|
39
|
+
let b = Object.values(m || r), x = a ?? t, S = v ?? s(x, i), C = typeof l == "bigint" ? l : o(l), w = c.AbiCoder.defaultAbiCoder().encode([
|
|
47
40
|
"uint16",
|
|
48
41
|
"address",
|
|
49
|
-
"address",
|
|
50
42
|
"uint256",
|
|
51
|
-
"bytes"
|
|
43
|
+
"tuple(address externalAddress, uint256 externalActionId, bytes externalActionMetadata)",
|
|
44
|
+
"int256[]"
|
|
52
45
|
], [
|
|
53
46
|
n,
|
|
54
47
|
i,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
48
|
+
u,
|
|
49
|
+
[
|
|
50
|
+
x,
|
|
51
|
+
C,
|
|
52
|
+
d
|
|
53
|
+
],
|
|
54
|
+
h
|
|
55
|
+
]), T = c.AbiCoder.defaultAbiCoder().encode([
|
|
59
56
|
"tuple(address, address, bytes, bytes)",
|
|
60
57
|
"bytes[][]",
|
|
58
|
+
"bytes",
|
|
61
59
|
"tuple(address, uint256, uint256)",
|
|
62
|
-
"int256[]",
|
|
63
60
|
"bool[]",
|
|
64
|
-
"
|
|
65
|
-
"
|
|
61
|
+
"address",
|
|
62
|
+
"bytes"
|
|
66
63
|
], [
|
|
67
|
-
|
|
68
|
-
|
|
64
|
+
b,
|
|
65
|
+
f,
|
|
66
|
+
p,
|
|
69
67
|
[
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
68
|
+
_.feeToken,
|
|
69
|
+
_.flatFee,
|
|
70
|
+
_.variableRate
|
|
73
71
|
],
|
|
74
|
-
p,
|
|
75
|
-
m,
|
|
76
72
|
g,
|
|
73
|
+
S,
|
|
77
74
|
y
|
|
78
|
-
]),
|
|
79
|
-
return BigInt(c.keccak256(
|
|
80
|
-
}, b = (e, t, n, r, i) => e.startsWith("mainEVMCircuitMin0") ? 3 : 2 + t.length + n.length + 1 + r.flat().length + i.flat().length + 1 + 1 + 1 + 1 + 1 + 1, x = (e, t, r) => {
|
|
81
|
-
let i = n.getH1FromH0(e, t), a = BigInt(n.
|
|
75
|
+
]), E = BigInt(c.keccak256(w)), D = BigInt(c.keccak256(T)), O = c.AbiCoder.defaultAbiCoder().encode(["uint256", "uint256"], [E, D]);
|
|
76
|
+
return BigInt(c.keccak256(O)) % e;
|
|
77
|
+
}, b = (e, t, n, r, i) => e.startsWith("mainEVMCircuitMin0") ? 3 : 2 + t.length + n.length + 1 + r.flat().length + i.flat().length + 1 + 1 + 1 + 1 + 1 + 1 + 1, x = (e, t, r) => {
|
|
78
|
+
let i = n.getH1FromH0(e, t), a = BigInt(n.getStealthAddress(e, t, r));
|
|
82
79
|
return {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
80
|
+
H0x: e[0],
|
|
81
|
+
H0y: e[1],
|
|
82
|
+
H1x: i[0],
|
|
83
|
+
H1y: i[1],
|
|
86
84
|
stealthAddress: a
|
|
87
85
|
};
|
|
88
86
|
}, S = (e, t, r) => {
|
|
@@ -90,4 +88,4 @@ var l = (e) => {
|
|
|
90
88
|
return x(i, t, r);
|
|
91
89
|
}, C = (e, t) => t.length === 0 ? "mainEVMCircuitMin0" : `mainEVMCircuit${e.length}x${e[0].length}x${t[0].length}`;
|
|
92
90
|
//#endregion
|
|
93
|
-
export {
|
|
91
|
+
export { p as buildOutCommitments, f as buildZeroInputMerkleDataFromSerialized, m as calcAmountChanges, g as calcEncryptedOutputs, _ as calcOnchainEncryptedOutput, b as calcPublicSignalCount, S as calcStealthAddressStructure, x as calcStealthAddressStructureFromH0, y as createCallDataHash, h as getSlippageValues, l as getUtxoCircuitH0Coords, C as getZkProofVerifierName, d as hasOnlyZeroAmounts, v as serializeCircomData };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../../constants/vite.constants.cjs`),t=require(`../../API/getServerURL.cjs`);var n=e.isNotProduction?`https://enclave-staging-v2.hinkal.io`:`https://enclave-server.hinkal.io`,r=`${t.BACK_END_URL}/verifiers-v2/`,i={mainEVMCircuit1x2x1v1x1Wasm:`${r}mainEVMCircuit1x2x1-1.1.wasm`,mainEVMCircuit1x2x1v1x1Zkey:`${r}mainEVMCircuit1x2x1_final-1.1.zkey`,mainEVMCircuit1x6x1v1x1Wasm:`${r}mainEVMCircuit1x6x1-1.1.wasm`,mainEVMCircuit1x6x1v1x1Zkey:`${r}mainEVMCircuit1x6x1_final-1.1.zkey`,mainEVMCircuit2x2x1v1x1Wasm:`${r}mainEVMCircuit2x2x1-1.1.wasm`,mainEVMCircuit2x2x1v1x1Zkey:`${r}mainEVMCircuit2x2x1_final-1.1.zkey`,mainEVMCircuit2x6x1v1x1Wasm:`${r}mainEVMCircuit2x6x1-1.1.wasm`,mainEVMCircuit2x6x1v1x1Zkey:`${r}mainEVMCircuit2x6x1_final-1.1.zkey`,mainEVMCircuit3x2x1v1x1Wasm:`${r}mainEVMCircuit3x2x1-1.1.wasm`,mainEVMCircuit3x2x1v1x1Zkey:`${r}mainEVMCircuit3x2x1_final-1.1.zkey`,mainEVMCircuit3x6x1v1x1Wasm:`${r}mainEVMCircuit3x6x1-1.1.wasm`,mainEVMCircuit3x6x1v1x1Zkey:`${r}mainEVMCircuit3x6x1_final-1.1.zkey`,mainEVMCircuit4x2x1v1x1Wasm:`${r}mainEVMCircuit4x2x1-1.1.wasm`,mainEVMCircuit4x2x1v1x1Zkey:`${r}mainEVMCircuit4x2x1_final-1.1.zkey`,mainEVMCircuit4x6x1v1x1Wasm:`${r}mainEVMCircuit4x6x1-1.1.wasm`,mainEVMCircuit4x6x1v1x1Zkey:`${r}mainEVMCircuit4x6x1_final-1.1.zkey`,mainEVMCircuit5x2x1v1x1Wasm:`${r}mainEVMCircuit5x2x1-1.1.wasm`,mainEVMCircuit5x2x1v1x1Zkey:`${r}mainEVMCircuit5x2x1_final-1.1.zkey`,mainEVMCircuit5x6x1v1x1Wasm:`${r}mainEVMCircuit5x6x1-1.1.wasm`,mainEVMCircuit5x6x1v1x1Zkey:`${r}mainEVMCircuit5x6x1_final-1.1.zkey`,mainEVMCircuit1x2x2v1x1Wasm:`${r}mainEVMCircuit1x2x2-1.1.wasm`,mainEVMCircuit1x2x2v1x1Zkey:`${r}mainEVMCircuit1x2x2_final-1.1.zkey`,mainEVMCircuit1x6x2v1x1Wasm:`${r}mainEVMCircuit1x6x2-1.1.wasm`,mainEVMCircuit1x6x2v1x1Zkey:`${r}mainEVMCircuit1x6x2_final-1.1.zkey`,mainEVMCircuit2x2x2v1x1Wasm:`${r}mainEVMCircuit2x2x2-1.1.wasm`,mainEVMCircuit2x2x2v1x1Zkey:`${r}mainEVMCircuit2x2x2_final-1.1.zkey`,mainEVMCircuit2x6x2v1x1Wasm:`${r}mainEVMCircuit2x6x2-1.1.wasm`,mainEVMCircuit2x6x2v1x1Zkey:`${r}mainEVMCircuit2x6x2_final-1.1.zkey`,mainEVMCircuitMin0v1x1Wasm:`${r}mainEVMCircuitMin0-1.1.wasm`,mainEVMCircuitMin0v1x1Zkey:`${r}mainEVMCircuitMin0_final-1.1.zkey`,mainSolanaCircuit1x2x1v1x1Zkey:`${r}mainSolanaCircuit1x2x1_final-1.1.zkey`,mainSolanaCircuit1x2x1v1x1Wasm:`${r}mainSolanaCircuit1x2x1-1.1.wasm`,mainSolanaCircuit1x2x2v1x1Zkey:`${r}mainSolanaCircuit1x2x2_final-1.1.zkey`,mainSolanaCircuit1x2x2v1x1Wasm:`${r}mainSolanaCircuit1x2x2-1.1.wasm`,mainSolanaCircuit1x6x1v1x1Zkey:`${r}mainSolanaCircuit1x6x1_final-1.1.zkey`,mainSolanaCircuit1x6x1v1x1Wasm:`${r}mainSolanaCircuit1x6x1-1.1.wasm`,mainSolanaCircuit1x6x2v1x1Zkey:`${r}mainSolanaCircuit1x6x2_final-1.1.zkey`,mainSolanaCircuit1x6x2v1x1Wasm:`${r}mainSolanaCircuit1x6x2-1.1.wasm`,mainSolanaCircuit2x2x1v1x1Zkey:`${r}mainSolanaCircuit2x2x1_final-1.1.zkey`,mainSolanaCircuit2x2x1v1x1Wasm:`${r}mainSolanaCircuit2x2x1-1.1.wasm`,mainSolanaCircuit2x6x1v1x1Zkey:`${r}mainSolanaCircuit2x6x1_final-1.1.zkey`,mainSolanaCircuit2x6x1v1x1Wasm:`${r}mainSolanaCircuit2x6x1-1.1.wasm`,commitmentCalculator1x2v1x1Wasm:`${r}commitmentCalculator1x2-1.1.wasm`,commitmentCalculator1x2v1x1Zkey:`${r}commitmentCalculator1x2_final-1.1.zkey`,commitmentCalculator1x2v1x1VK:`${r}commitmentCalculator1x2_final-1.1_verification_key.json`,commitmentCalculator1x6v1x1Wasm:`${r}commitmentCalculator1x6-1.1.wasm`,commitmentCalculator1x6v1x1Zkey:`${r}commitmentCalculator1x6_final-1.1.zkey`,commitmentCalculator1x6v1x1VK:`${r}commitmentCalculator1x6_final-1.1_verification_key.json`,commitmentCalculator2x2v1x1Wasm:`${r}commitmentCalculator2x2-1.1.wasm`,commitmentCalculator2x2v1x1Zkey:`${r}commitmentCalculator2x2_final-1.1.zkey`,commitmentCalculator2x2v1x1VK:`${r}commitmentCalculator2x2_final-1.1_verification_key.json`,commitmentCalculator2x6v1x1Wasm:`${r}commitmentCalculator2x6-1.1.wasm`,commitmentCalculator2x6v1x1Zkey:`${r}commitmentCalculator2x6_final-1.1.zkey`,commitmentCalculator2x6v1x1VK:`${r}commitmentCalculator2x6_final-1.1_verification_key.json`,commitmentCalculator3x2v1x1Wasm:`${r}commitmentCalculator3x2-1.1.wasm`,commitmentCalculator3x2v1x1Zkey:`${r}commitmentCalculator3x2_final-1.1.zkey`,commitmentCalculator3x2v1x1VK:`${r}commitmentCalculator3x2_final-1.1_verification_key.json`,commitmentCalculator3x6v1x1Wasm:`${r}commitmentCalculator3x6-1.1.wasm`,commitmentCalculator3x6v1x1Zkey:`${r}commitmentCalculator3x6_final-1.1.zkey`,commitmentCalculator3x6v1x1VK:`${r}commitmentCalculator3x6_final-1.1_verification_key.json`,commitmentCalculator4x2v1x1Wasm:`${r}commitmentCalculator4x2-1.1.wasm`,commitmentCalculator4x2v1x1Zkey:`${r}commitmentCalculator4x2_final-1.1.zkey`,commitmentCalculator4x2v1x1VK:`${r}commitmentCalculator4x2_final-1.1_verification_key.json`,commitmentCalculator4x6v1x1Wasm:`${r}commitmentCalculator4x6-1.1.wasm`,commitmentCalculator4x6v1x1Zkey:`${r}commitmentCalculator4x6_final-1.1.zkey`,commitmentCalculator4x6v1x1VK:`${r}commitmentCalculator4x6_final-1.1_verification_key.json`,commitmentCalculator5x2v1x1Wasm:`${r}commitmentCalculator5x2-1.1.wasm`,commitmentCalculator5x2v1x1Zkey:`${r}commitmentCalculator5x2_final-1.1.zkey`,commitmentCalculator5x2v1x1VK:`${r}commitmentCalculator5x2_final-1.1_verification_key.json`,commitmentCalculator5x6v1x1Wasm:`${r}commitmentCalculator5x6-1.1.wasm`,commitmentCalculator5x6v1x1Zkey:`${r}commitmentCalculator5x6_final-1.1.zkey`,commitmentCalculator5x6v1x1VK:`${r}commitmentCalculator5x6_final-1.1_verification_key.json`},a={mainEVMCircuit1x2x1v1x1Wasm:`mainEVMCircuit1x2x1-1.1.wasm`,mainEVMCircuit1x2x1v1x1Zkey:`mainEVMCircuit1x2x1_final-1.1.zkey`,mainEVMCircuit1x6x1v1x1Wasm:`mainEVMCircuit1x6x1-1.1.wasm`,mainEVMCircuit1x6x1v1x1Zkey:`mainEVMCircuit1x6x1_final-1.1.zkey`,mainEVMCircuit2x2x1v1x1Wasm:`mainEVMCircuit2x2x1-1.1.wasm`,mainEVMCircuit2x2x1v1x1Zkey:`mainEVMCircuit2x2x1_final-1.1.zkey`,mainEVMCircuit2x6x1v1x1Wasm:`mainEVMCircuit2x6x1-1.1.wasm`,mainEVMCircuit2x6x1v1x1Zkey:`mainEVMCircuit2x6x1_final-1.1.zkey`,mainEVMCircuit3x2x1v1x1Wasm:`mainEVMCircuit3x2x1-1.1.wasm`,mainEVMCircuit3x2x1v1x1Zkey:`mainEVMCircuit3x2x1_final-1.1.zkey`,mainEVMCircuit3x6x1v1x1Wasm:`mainEVMCircuit3x6x1-1.1.wasm`,mainEVMCircuit3x6x1v1x1Zkey:`mainEVMCircuit3x6x1_final-1.1.zkey`,mainEVMCircuit4x2x1v1x1Wasm:`mainEVMCircuit4x2x1-1.1.wasm`,mainEVMCircuit4x2x1v1x1Zkey:`mainEVMCircuit4x2x1_final-1.1.zkey`,mainEVMCircuit4x6x1v1x1Wasm:`mainEVMCircuit4x6x1-1.1.wasm`,mainEVMCircuit4x6x1v1x1Zkey:`mainEVMCircuit4x6x1_final-1.1.zkey`,mainEVMCircuit5x2x1v1x1Wasm:`mainEVMCircuit5x2x1-1.1.wasm`,mainEVMCircuit5x2x1v1x1Zkey:`mainEVMCircuit5x2x1_final-1.1.zkey`,mainEVMCircuit5x6x1v1x1Wasm:`mainEVMCircuit5x6x1-1.1.wasm`,mainEVMCircuit5x6x1v1x1Zkey:`mainEVMCircuit5x6x1_final-1.1.zkey`,mainEVMCircuit1x2x2v1x1Wasm:`mainEVMCircuit1x2x2-1.1.wasm`,mainEVMCircuit1x2x2v1x1Zkey:`mainEVMCircuit1x2x2_final-1.1.zkey`,mainEVMCircuit1x6x2v1x1Wasm:`mainEVMCircuit1x6x2-1.1.wasm`,mainEVMCircuit1x6x2v1x1Zkey:`mainEVMCircuit1x6x2_final-1.1.zkey`,mainEVMCircuit2x2x2v1x1Wasm:`mainEVMCircuit2x2x2-1.1.wasm`,mainEVMCircuit2x2x2v1x1Zkey:`mainEVMCircuit2x2x2_final-1.1.zkey`,mainEVMCircuit2x6x2v1x1Wasm:`mainEVMCircuit2x6x2-1.1.wasm`,mainEVMCircuit2x6x2v1x1Zkey:`mainEVMCircuit2x6x2_final-1.1.zkey`,mainEVMCircuitMin0v1x1Wasm:`mainEVMCircuitMin0-1.1.wasm`,mainEVMCircuitMin0v1x1Zkey:`mainEVMCircuitMin0_final-1.1.zkey`,mainSolanaCircuit1x2x1v1x1Zkey:`mainSolanaCircuit1x2x1_final-1.1.zkey`,mainSolanaCircuit1x2x1v1x1Wasm:`mainSolanaCircuit1x2x1-1.1.wasm`,mainSolanaCircuit1x2x2v1x1Zkey:`mainSolanaCircuit1x2x2_final-1.1.zkey`,mainSolanaCircuit1x2x2v1x1Wasm:`mainSolanaCircuit1x2x2-1.1.wasm`,mainSolanaCircuit1x6x1v1x1Zkey:`mainSolanaCircuit1x6x1_final-1.1.zkey`,mainSolanaCircuit1x6x1v1x1Wasm:`mainSolanaCircuit1x6x1-1.1.wasm`,mainSolanaCircuit1x6x2v1x1Zkey:`mainSolanaCircuit1x6x2_final-1.1.zkey`,mainSolanaCircuit1x6x2v1x1Wasm:`mainSolanaCircuit1x6x2-1.1.wasm`,mainSolanaCircuit2x2x1v1x1Zkey:`mainSolanaCircuit2x2x1_final-1.1.zkey`,mainSolanaCircuit2x2x1v1x1Wasm:`mainSolanaCircuit2x2x1-1.1.wasm`,mainSolanaCircuit2x6x1v1x1Zkey:`mainSolanaCircuit2x6x1_final-1.1.zkey`,mainSolanaCircuit2x6x1v1x1Wasm:`mainSolanaCircuit2x6x1-1.1.wasm`,commitmentCalculator1x2v1x1Zkey:`commitmentCalculator1x2_final-1.1.zkey`,commitmentCalculator1x2v1x1Wasm:`commitmentCalculator1x2-1.1.wasm`,commitmentCalculator1x2v1x1VK:`commitmentCalculator1x2_final-1.1_verification_key.json`,commitmentCalculator1x6v1x1Zkey:`commitmentCalculator1x6_final-1.1.zkey`,commitmentCalculator1x6v1x1Wasm:`commitmentCalculator1x6-1.1.wasm`,commitmentCalculator1x6v1x1VK:`commitmentCalculator1x6_final-1.1_verification_key.json`,commitmentCalculator2x2v1x1Zkey:`commitmentCalculator2x2_final-1.1.zkey`,commitmentCalculator2x2v1x1Wasm:`commitmentCalculator2x2-1.1.wasm`,commitmentCalculator2x2v1x1VK:`commitmentCalculator2x2_final-1.1_verification_key.json`,commitmentCalculator2x6v1x1Zkey:`commitmentCalculator2x6_final-1.1.zkey`,commitmentCalculator2x6v1x1Wasm:`commitmentCalculator2x6-1.1.wasm`,commitmentCalculator2x6v1x1VK:`commitmentCalculator2x6_final-1.1_verification_key.json`,commitmentCalculator3x2v1x1Zkey:`commitmentCalculator3x2_final-1.1.zkey`,commitmentCalculator3x2v1x1Wasm:`commitmentCalculator3x2-1.1.wasm`,commitmentCalculator3x2v1x1VK:`commitmentCalculator3x2_final-1.1_verification_key.json`,commitmentCalculator3x6v1x1Zkey:`commitmentCalculator3x6_final-1.1.zkey`,commitmentCalculator3x6v1x1Wasm:`commitmentCalculator3x6-1.1.wasm`,commitmentCalculator3x6v1x1VK:`commitmentCalculator3x6_final-1.1_verification_key.json`,commitmentCalculator4x2v1x1Zkey:`commitmentCalculator4x2_final-1.1.zkey`,commitmentCalculator4x2v1x1Wasm:`commitmentCalculator4x2-1.1.wasm`,commitmentCalculator4x2v1x1VK:`commitmentCalculator4x2_final-1.1_verification_key.json`,commitmentCalculator4x6v1x1Zkey:`commitmentCalculator4x6_final-1.1.zkey`,commitmentCalculator4x6v1x1Wasm:`commitmentCalculator4x6-1.1.wasm`,commitmentCalculator4x6v1x1VK:`commitmentCalculator4x6_final-1.1_verification_key.json`,commitmentCalculator5x2v1x1Zkey:`commitmentCalculator5x2_final-1.1.zkey`,commitmentCalculator5x2v1x1Wasm:`commitmentCalculator5x2-1.1.wasm`,commitmentCalculator5x2v1x1VK:`commitmentCalculator5x2_final-1.1_verification_key.json`,commitmentCalculator5x6v1x1Zkey:`commitmentCalculator5x6_final-1.1.zkey`,commitmentCalculator5x6v1x1Wasm:`commitmentCalculator5x6-1.1.wasm`,commitmentCalculator5x6v1x1VK:`commitmentCalculator5x6_final-1.1_verification_key.json`};exports.ENCLAVE_URL=n,exports.localVerifiers=a,exports.prodVerifiers=i;
|
|
1
|
+
const e=require(`../../constants/vite.constants.cjs`),t=require(`../../API/getServerURL.cjs`);var n=e.isNotProduction?`https://enclave-staging-v2.hinkal.io`:`https://enclave-server.hinkal.io`,r=`${t.BACK_END_URL}/verifiers-v4/`,i={mainEVMCircuit1x2x1v4Wasm:`${r}mainEVMCircuit1x2x1-4.wasm`,mainEVMCircuit1x2x1v4Zkey:`${r}mainEVMCircuit1x2x1_final-4.zkey`,mainEVMCircuit1x6x1v4Wasm:`${r}mainEVMCircuit1x6x1-4.wasm`,mainEVMCircuit1x6x1v4Zkey:`${r}mainEVMCircuit1x6x1_final-4.zkey`,mainEVMCircuit2x2x1v4Wasm:`${r}mainEVMCircuit2x2x1-4.wasm`,mainEVMCircuit2x2x1v4Zkey:`${r}mainEVMCircuit2x2x1_final-4.zkey`,mainEVMCircuit2x6x1v4Wasm:`${r}mainEVMCircuit2x6x1-4.wasm`,mainEVMCircuit2x6x1v4Zkey:`${r}mainEVMCircuit2x6x1_final-4.zkey`,mainEVMCircuit3x2x1v4Wasm:`${r}mainEVMCircuit3x2x1-4.wasm`,mainEVMCircuit3x2x1v4Zkey:`${r}mainEVMCircuit3x2x1_final-4.zkey`,mainEVMCircuit3x6x1v4Wasm:`${r}mainEVMCircuit3x6x1-4.wasm`,mainEVMCircuit3x6x1v4Zkey:`${r}mainEVMCircuit3x6x1_final-4.zkey`,mainEVMCircuit4x2x1v4Wasm:`${r}mainEVMCircuit4x2x1-4.wasm`,mainEVMCircuit4x2x1v4Zkey:`${r}mainEVMCircuit4x2x1_final-4.zkey`,mainEVMCircuit4x6x1v4Wasm:`${r}mainEVMCircuit4x6x1-4.wasm`,mainEVMCircuit4x6x1v4Zkey:`${r}mainEVMCircuit4x6x1_final-4.zkey`,mainEVMCircuit5x2x1v4Wasm:`${r}mainEVMCircuit5x2x1-4.wasm`,mainEVMCircuit5x2x1v4Zkey:`${r}mainEVMCircuit5x2x1_final-4.zkey`,mainEVMCircuit5x6x1v4Wasm:`${r}mainEVMCircuit5x6x1-4.wasm`,mainEVMCircuit5x6x1v4Zkey:`${r}mainEVMCircuit5x6x1_final-4.zkey`,mainEVMCircuit1x2x2v4Wasm:`${r}mainEVMCircuit1x2x2-4.wasm`,mainEVMCircuit1x2x2v4Zkey:`${r}mainEVMCircuit1x2x2_final-4.zkey`,mainEVMCircuit1x6x2v4Wasm:`${r}mainEVMCircuit1x6x2-4.wasm`,mainEVMCircuit1x6x2v4Zkey:`${r}mainEVMCircuit1x6x2_final-4.zkey`,mainEVMCircuit2x2x2v4Wasm:`${r}mainEVMCircuit2x2x2-4.wasm`,mainEVMCircuit2x2x2v4Zkey:`${r}mainEVMCircuit2x2x2_final-4.zkey`,mainEVMCircuit2x6x2v4Wasm:`${r}mainEVMCircuit2x6x2-4.wasm`,mainEVMCircuit2x6x2v4Zkey:`${r}mainEVMCircuit2x6x2_final-4.zkey`,mainEVMCircuitMin0v4Wasm:`${r}mainEVMCircuitMin0-4.wasm`,mainEVMCircuitMin0v4Zkey:`${r}mainEVMCircuitMin0_final-4.zkey`,mainSolanaCircuit1x2x1v4Zkey:`${r}mainSolanaCircuit1x2x1_final-4.zkey`,mainSolanaCircuit1x2x1v4Wasm:`${r}mainSolanaCircuit1x2x1-4.wasm`,mainSolanaCircuit1x2x2v4Zkey:`${r}mainSolanaCircuit1x2x2_final-4.zkey`,mainSolanaCircuit1x2x2v4Wasm:`${r}mainSolanaCircuit1x2x2-4.wasm`,mainSolanaCircuit1x6x1v4Zkey:`${r}mainSolanaCircuit1x6x1_final-4.zkey`,mainSolanaCircuit1x6x1v4Wasm:`${r}mainSolanaCircuit1x6x1-4.wasm`,mainSolanaCircuit1x6x2v4Zkey:`${r}mainSolanaCircuit1x6x2_final-4.zkey`,mainSolanaCircuit1x6x2v4Wasm:`${r}mainSolanaCircuit1x6x2-4.wasm`,mainSolanaCircuit2x2x1v4Zkey:`${r}mainSolanaCircuit2x2x1_final-4.zkey`,mainSolanaCircuit2x2x1v4Wasm:`${r}mainSolanaCircuit2x2x1-4.wasm`,mainSolanaCircuit2x6x1v4Zkey:`${r}mainSolanaCircuit2x6x1_final-4.zkey`,mainSolanaCircuit2x6x1v4Wasm:`${r}mainSolanaCircuit2x6x1-4.wasm`,commitmentCalculator1x2v4Wasm:`${r}commitmentCalculator1x2-4.wasm`,commitmentCalculator1x2v4Zkey:`${r}commitmentCalculator1x2_final-4.zkey`,commitmentCalculator1x2v4VK:`${r}commitmentCalculator1x2_final-4_verification_key.json`,commitmentCalculator1x6v4Wasm:`${r}commitmentCalculator1x6-4.wasm`,commitmentCalculator1x6v4Zkey:`${r}commitmentCalculator1x6_final-4.zkey`,commitmentCalculator1x6v4VK:`${r}commitmentCalculator1x6_final-4_verification_key.json`,commitmentCalculator2x2v4Wasm:`${r}commitmentCalculator2x2-4.wasm`,commitmentCalculator2x2v4Zkey:`${r}commitmentCalculator2x2_final-4.zkey`,commitmentCalculator2x2v4VK:`${r}commitmentCalculator2x2_final-4_verification_key.json`,commitmentCalculator2x6v4Wasm:`${r}commitmentCalculator2x6-4.wasm`,commitmentCalculator2x6v4Zkey:`${r}commitmentCalculator2x6_final-4.zkey`,commitmentCalculator2x6v4VK:`${r}commitmentCalculator2x6_final-4_verification_key.json`,commitmentCalculator3x2v4Wasm:`${r}commitmentCalculator3x2-4.wasm`,commitmentCalculator3x2v4Zkey:`${r}commitmentCalculator3x2_final-4.zkey`,commitmentCalculator3x2v4VK:`${r}commitmentCalculator3x2_final-4_verification_key.json`,commitmentCalculator3x6v4Wasm:`${r}commitmentCalculator3x6-4.wasm`,commitmentCalculator3x6v4Zkey:`${r}commitmentCalculator3x6_final-4.zkey`,commitmentCalculator3x6v4VK:`${r}commitmentCalculator3x6_final-4_verification_key.json`,commitmentCalculator4x2v4Wasm:`${r}commitmentCalculator4x2-4.wasm`,commitmentCalculator4x2v4Zkey:`${r}commitmentCalculator4x2_final-4.zkey`,commitmentCalculator4x2v4VK:`${r}commitmentCalculator4x2_final-4_verification_key.json`,commitmentCalculator4x6v4Wasm:`${r}commitmentCalculator4x6-4.wasm`,commitmentCalculator4x6v4Zkey:`${r}commitmentCalculator4x6_final-4.zkey`,commitmentCalculator4x6v4VK:`${r}commitmentCalculator4x6_final-4_verification_key.json`,commitmentCalculator5x2v4Wasm:`${r}commitmentCalculator5x2-4.wasm`,commitmentCalculator5x2v4Zkey:`${r}commitmentCalculator5x2_final-4.zkey`,commitmentCalculator5x2v4VK:`${r}commitmentCalculator5x2_final-4_verification_key.json`,commitmentCalculator5x6v4Wasm:`${r}commitmentCalculator5x6-4.wasm`,commitmentCalculator5x6v4Zkey:`${r}commitmentCalculator5x6_final-4.zkey`,commitmentCalculator5x6v4VK:`${r}commitmentCalculator5x6_final-4_verification_key.json`,SignatureFromMnemonicv1x1Wasm:`${r}SignatureFromMnemonic-1.1.wasm`,SignatureFromMnemonicv1x1Zkey:`${r}SignatureFromMnemonic_final-1.1.zkey`,SignatureFromMnemonicv1x1VK:`${r}SignatureFromMnemonic_final-1.1_verification_key.json`},a={mainEVMCircuit1x2x1v4Wasm:`mainEVMCircuit1x2x1-4.wasm`,mainEVMCircuit1x2x1v4Zkey:`mainEVMCircuit1x2x1_final-4.zkey`,mainEVMCircuit1x6x1v4Wasm:`mainEVMCircuit1x6x1-4.wasm`,mainEVMCircuit1x6x1v4Zkey:`mainEVMCircuit1x6x1_final-4.zkey`,mainEVMCircuit2x2x1v4Wasm:`mainEVMCircuit2x2x1-4.wasm`,mainEVMCircuit2x2x1v4Zkey:`mainEVMCircuit2x2x1_final-4.zkey`,mainEVMCircuit2x6x1v4Wasm:`mainEVMCircuit2x6x1-4.wasm`,mainEVMCircuit2x6x1v4Zkey:`mainEVMCircuit2x6x1_final-4.zkey`,mainEVMCircuit3x2x1v4Wasm:`mainEVMCircuit3x2x1-4.wasm`,mainEVMCircuit3x2x1v4Zkey:`mainEVMCircuit3x2x1_final-4.zkey`,mainEVMCircuit3x6x1v4Wasm:`mainEVMCircuit3x6x1-4.wasm`,mainEVMCircuit3x6x1v4Zkey:`mainEVMCircuit3x6x1_final-4.zkey`,mainEVMCircuit4x2x1v4Wasm:`mainEVMCircuit4x2x1-4.wasm`,mainEVMCircuit4x2x1v4Zkey:`mainEVMCircuit4x2x1_final-4.zkey`,mainEVMCircuit4x6x1v4Wasm:`mainEVMCircuit4x6x1-4.wasm`,mainEVMCircuit4x6x1v4Zkey:`mainEVMCircuit4x6x1_final-4.zkey`,mainEVMCircuit5x2x1v4Wasm:`mainEVMCircuit5x2x1-4.wasm`,mainEVMCircuit5x2x1v4Zkey:`mainEVMCircuit5x2x1_final-4.zkey`,mainEVMCircuit5x6x1v4Wasm:`mainEVMCircuit5x6x1-4.wasm`,mainEVMCircuit5x6x1v4Zkey:`mainEVMCircuit5x6x1_final-4.zkey`,mainEVMCircuit1x2x2v4Wasm:`mainEVMCircuit1x2x2-4.wasm`,mainEVMCircuit1x2x2v4Zkey:`mainEVMCircuit1x2x2_final-4.zkey`,mainEVMCircuit1x6x2v4Wasm:`mainEVMCircuit1x6x2-4.wasm`,mainEVMCircuit1x6x2v4Zkey:`mainEVMCircuit1x6x2_final-4.zkey`,mainEVMCircuit2x2x2v4Wasm:`mainEVMCircuit2x2x2-4.wasm`,mainEVMCircuit2x2x2v4Zkey:`mainEVMCircuit2x2x2_final-4.zkey`,mainEVMCircuit2x6x2v4Wasm:`mainEVMCircuit2x6x2-4.wasm`,mainEVMCircuit2x6x2v4Zkey:`mainEVMCircuit2x6x2_final-4.zkey`,mainEVMCircuitMin0v4Wasm:`mainEVMCircuitMin0-4.wasm`,mainEVMCircuitMin0v4Zkey:`mainEVMCircuitMin0_final-4.zkey`,mainSolanaCircuit1x2x1v4Zkey:`mainSolanaCircuit1x2x1_final-4.zkey`,mainSolanaCircuit1x2x1v4Wasm:`mainSolanaCircuit1x2x1-4.wasm`,mainSolanaCircuit1x2x2v4Zkey:`mainSolanaCircuit1x2x2_final-4.zkey`,mainSolanaCircuit1x2x2v4Wasm:`mainSolanaCircuit1x2x2-4.wasm`,mainSolanaCircuit1x6x1v4Zkey:`mainSolanaCircuit1x6x1_final-4.zkey`,mainSolanaCircuit1x6x1v4Wasm:`mainSolanaCircuit1x6x1-4.wasm`,mainSolanaCircuit1x6x2v4Zkey:`mainSolanaCircuit1x6x2_final-4.zkey`,mainSolanaCircuit1x6x2v4Wasm:`mainSolanaCircuit1x6x2-4.wasm`,mainSolanaCircuit2x2x1v4Zkey:`mainSolanaCircuit2x2x1_final-4.zkey`,mainSolanaCircuit2x2x1v4Wasm:`mainSolanaCircuit2x2x1-4.wasm`,mainSolanaCircuit2x6x1v4Zkey:`mainSolanaCircuit2x6x1_final-4.zkey`,mainSolanaCircuit2x6x1v4Wasm:`mainSolanaCircuit2x6x1-4.wasm`,commitmentCalculator1x2v4Zkey:`commitmentCalculator1x2_final-4.zkey`,commitmentCalculator1x2v4Wasm:`commitmentCalculator1x2-4.wasm`,commitmentCalculator1x2v4VK:`commitmentCalculator1x2_final-4_verification_key.json`,commitmentCalculator1x6v4Zkey:`commitmentCalculator1x6_final-4.zkey`,commitmentCalculator1x6v4Wasm:`commitmentCalculator1x6-4.wasm`,commitmentCalculator1x6v4VK:`commitmentCalculator1x6_final-4_verification_key.json`,commitmentCalculator2x2v4Zkey:`commitmentCalculator2x2_final-4.zkey`,commitmentCalculator2x2v4Wasm:`commitmentCalculator2x2-4.wasm`,commitmentCalculator2x2v4VK:`commitmentCalculator2x2_final-4_verification_key.json`,commitmentCalculator2x6v4Zkey:`commitmentCalculator2x6_final-4.zkey`,commitmentCalculator2x6v4Wasm:`commitmentCalculator2x6-4.wasm`,commitmentCalculator2x6v4VK:`commitmentCalculator2x6_final-4_verification_key.json`,commitmentCalculator3x2v4Zkey:`commitmentCalculator3x2_final-4.zkey`,commitmentCalculator3x2v4Wasm:`commitmentCalculator3x2-4.wasm`,commitmentCalculator3x2v4VK:`commitmentCalculator3x2_final-4_verification_key.json`,commitmentCalculator3x6v4Zkey:`commitmentCalculator3x6_final-4.zkey`,commitmentCalculator3x6v4Wasm:`commitmentCalculator3x6-4.wasm`,commitmentCalculator3x6v4VK:`commitmentCalculator3x6_final-4_verification_key.json`,commitmentCalculator4x2v4Zkey:`commitmentCalculator4x2_final-4.zkey`,commitmentCalculator4x2v4Wasm:`commitmentCalculator4x2-4.wasm`,commitmentCalculator4x2v4VK:`commitmentCalculator4x2_final-4_verification_key.json`,commitmentCalculator4x6v4Zkey:`commitmentCalculator4x6_final-4.zkey`,commitmentCalculator4x6v4Wasm:`commitmentCalculator4x6-4.wasm`,commitmentCalculator4x6v4VK:`commitmentCalculator4x6_final-4_verification_key.json`,commitmentCalculator5x2v4Zkey:`commitmentCalculator5x2_final-4.zkey`,commitmentCalculator5x2v4Wasm:`commitmentCalculator5x2-4.wasm`,commitmentCalculator5x2v4VK:`commitmentCalculator5x2_final-4_verification_key.json`,commitmentCalculator5x6v4Zkey:`commitmentCalculator5x6_final-4.zkey`,commitmentCalculator5x6v4Wasm:`commitmentCalculator5x6-4.wasm`,commitmentCalculator5x6v4VK:`commitmentCalculator5x6_final-4_verification_key.json`,SignatureFromMnemonicv1x1Wasm:`SignatureFromMnemonic-1.1.wasm`,SignatureFromMnemonicv1x1Zkey:`SignatureFromMnemonic_final-1.1.zkey`,SignatureFromMnemonicv1x1VK:`SignatureFromMnemonic_final-1.1_verification_key.json`};exports.ENCLAVE_URL=n,exports.localVerifiers=a,exports.prodVerifiers=i;
|
|
@@ -1,149 +1,156 @@
|
|
|
1
1
|
export declare const ENCLAVE_URL: string;
|
|
2
|
+
export declare const ENCLAVE_LEGACY_URL = "https://enclave-legacy.hinkal.io";
|
|
2
3
|
export declare const prodVerifiers: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
4
|
+
mainEVMCircuit1x2x1v4Wasm: string;
|
|
5
|
+
mainEVMCircuit1x2x1v4Zkey: string;
|
|
6
|
+
mainEVMCircuit1x6x1v4Wasm: string;
|
|
7
|
+
mainEVMCircuit1x6x1v4Zkey: string;
|
|
8
|
+
mainEVMCircuit2x2x1v4Wasm: string;
|
|
9
|
+
mainEVMCircuit2x2x1v4Zkey: string;
|
|
10
|
+
mainEVMCircuit2x6x1v4Wasm: string;
|
|
11
|
+
mainEVMCircuit2x6x1v4Zkey: string;
|
|
12
|
+
mainEVMCircuit3x2x1v4Wasm: string;
|
|
13
|
+
mainEVMCircuit3x2x1v4Zkey: string;
|
|
14
|
+
mainEVMCircuit3x6x1v4Wasm: string;
|
|
15
|
+
mainEVMCircuit3x6x1v4Zkey: string;
|
|
16
|
+
mainEVMCircuit4x2x1v4Wasm: string;
|
|
17
|
+
mainEVMCircuit4x2x1v4Zkey: string;
|
|
18
|
+
mainEVMCircuit4x6x1v4Wasm: string;
|
|
19
|
+
mainEVMCircuit4x6x1v4Zkey: string;
|
|
20
|
+
mainEVMCircuit5x2x1v4Wasm: string;
|
|
21
|
+
mainEVMCircuit5x2x1v4Zkey: string;
|
|
22
|
+
mainEVMCircuit5x6x1v4Wasm: string;
|
|
23
|
+
mainEVMCircuit5x6x1v4Zkey: string;
|
|
24
|
+
mainEVMCircuit1x2x2v4Wasm: string;
|
|
25
|
+
mainEVMCircuit1x2x2v4Zkey: string;
|
|
26
|
+
mainEVMCircuit1x6x2v4Wasm: string;
|
|
27
|
+
mainEVMCircuit1x6x2v4Zkey: string;
|
|
28
|
+
mainEVMCircuit2x2x2v4Wasm: string;
|
|
29
|
+
mainEVMCircuit2x2x2v4Zkey: string;
|
|
30
|
+
mainEVMCircuit2x6x2v4Wasm: string;
|
|
31
|
+
mainEVMCircuit2x6x2v4Zkey: string;
|
|
32
|
+
mainEVMCircuitMin0v4Wasm: string;
|
|
33
|
+
mainEVMCircuitMin0v4Zkey: string;
|
|
34
|
+
mainSolanaCircuit1x2x1v4Zkey: string;
|
|
35
|
+
mainSolanaCircuit1x2x1v4Wasm: string;
|
|
36
|
+
mainSolanaCircuit1x2x2v4Zkey: string;
|
|
37
|
+
mainSolanaCircuit1x2x2v4Wasm: string;
|
|
38
|
+
mainSolanaCircuit1x6x1v4Zkey: string;
|
|
39
|
+
mainSolanaCircuit1x6x1v4Wasm: string;
|
|
40
|
+
mainSolanaCircuit1x6x2v4Zkey: string;
|
|
41
|
+
mainSolanaCircuit1x6x2v4Wasm: string;
|
|
42
|
+
mainSolanaCircuit2x2x1v4Zkey: string;
|
|
43
|
+
mainSolanaCircuit2x2x1v4Wasm: string;
|
|
44
|
+
mainSolanaCircuit2x6x1v4Zkey: string;
|
|
45
|
+
mainSolanaCircuit2x6x1v4Wasm: string;
|
|
46
|
+
commitmentCalculator1x2v4Wasm: string;
|
|
47
|
+
commitmentCalculator1x2v4Zkey: string;
|
|
48
|
+
commitmentCalculator1x2v4VK: string;
|
|
49
|
+
commitmentCalculator1x6v4Wasm: string;
|
|
50
|
+
commitmentCalculator1x6v4Zkey: string;
|
|
51
|
+
commitmentCalculator1x6v4VK: string;
|
|
52
|
+
commitmentCalculator2x2v4Wasm: string;
|
|
53
|
+
commitmentCalculator2x2v4Zkey: string;
|
|
54
|
+
commitmentCalculator2x2v4VK: string;
|
|
55
|
+
commitmentCalculator2x6v4Wasm: string;
|
|
56
|
+
commitmentCalculator2x6v4Zkey: string;
|
|
57
|
+
commitmentCalculator2x6v4VK: string;
|
|
58
|
+
commitmentCalculator3x2v4Wasm: string;
|
|
59
|
+
commitmentCalculator3x2v4Zkey: string;
|
|
60
|
+
commitmentCalculator3x2v4VK: string;
|
|
61
|
+
commitmentCalculator3x6v4Wasm: string;
|
|
62
|
+
commitmentCalculator3x6v4Zkey: string;
|
|
63
|
+
commitmentCalculator3x6v4VK: string;
|
|
64
|
+
commitmentCalculator4x2v4Wasm: string;
|
|
65
|
+
commitmentCalculator4x2v4Zkey: string;
|
|
66
|
+
commitmentCalculator4x2v4VK: string;
|
|
67
|
+
commitmentCalculator4x6v4Wasm: string;
|
|
68
|
+
commitmentCalculator4x6v4Zkey: string;
|
|
69
|
+
commitmentCalculator4x6v4VK: string;
|
|
70
|
+
commitmentCalculator5x2v4Wasm: string;
|
|
71
|
+
commitmentCalculator5x2v4Zkey: string;
|
|
72
|
+
commitmentCalculator5x2v4VK: string;
|
|
73
|
+
commitmentCalculator5x6v4Wasm: string;
|
|
74
|
+
commitmentCalculator5x6v4Zkey: string;
|
|
75
|
+
commitmentCalculator5x6v4VK: string;
|
|
76
|
+
SignatureFromMnemonicv1x1Wasm: string;
|
|
77
|
+
SignatureFromMnemonicv1x1Zkey: string;
|
|
78
|
+
SignatureFromMnemonicv1x1VK: string;
|
|
75
79
|
};
|
|
76
80
|
export declare const localVerifiers: {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
81
|
+
mainEVMCircuit1x2x1v4Wasm: string;
|
|
82
|
+
mainEVMCircuit1x2x1v4Zkey: string;
|
|
83
|
+
mainEVMCircuit1x6x1v4Wasm: string;
|
|
84
|
+
mainEVMCircuit1x6x1v4Zkey: string;
|
|
85
|
+
mainEVMCircuit2x2x1v4Wasm: string;
|
|
86
|
+
mainEVMCircuit2x2x1v4Zkey: string;
|
|
87
|
+
mainEVMCircuit2x6x1v4Wasm: string;
|
|
88
|
+
mainEVMCircuit2x6x1v4Zkey: string;
|
|
89
|
+
mainEVMCircuit3x2x1v4Wasm: string;
|
|
90
|
+
mainEVMCircuit3x2x1v4Zkey: string;
|
|
91
|
+
mainEVMCircuit3x6x1v4Wasm: string;
|
|
92
|
+
mainEVMCircuit3x6x1v4Zkey: string;
|
|
93
|
+
mainEVMCircuit4x2x1v4Wasm: string;
|
|
94
|
+
mainEVMCircuit4x2x1v4Zkey: string;
|
|
95
|
+
mainEVMCircuit4x6x1v4Wasm: string;
|
|
96
|
+
mainEVMCircuit4x6x1v4Zkey: string;
|
|
97
|
+
mainEVMCircuit5x2x1v4Wasm: string;
|
|
98
|
+
mainEVMCircuit5x2x1v4Zkey: string;
|
|
99
|
+
mainEVMCircuit5x6x1v4Wasm: string;
|
|
100
|
+
mainEVMCircuit5x6x1v4Zkey: string;
|
|
101
|
+
mainEVMCircuit1x2x2v4Wasm: string;
|
|
102
|
+
mainEVMCircuit1x2x2v4Zkey: string;
|
|
103
|
+
mainEVMCircuit1x6x2v4Wasm: string;
|
|
104
|
+
mainEVMCircuit1x6x2v4Zkey: string;
|
|
105
|
+
mainEVMCircuit2x2x2v4Wasm: string;
|
|
106
|
+
mainEVMCircuit2x2x2v4Zkey: string;
|
|
107
|
+
mainEVMCircuit2x6x2v4Wasm: string;
|
|
108
|
+
mainEVMCircuit2x6x2v4Zkey: string;
|
|
109
|
+
mainEVMCircuitMin0v4Wasm: string;
|
|
110
|
+
mainEVMCircuitMin0v4Zkey: string;
|
|
111
|
+
mainSolanaCircuit1x2x1v4Zkey: string;
|
|
112
|
+
mainSolanaCircuit1x2x1v4Wasm: string;
|
|
113
|
+
mainSolanaCircuit1x2x2v4Zkey: string;
|
|
114
|
+
mainSolanaCircuit1x2x2v4Wasm: string;
|
|
115
|
+
mainSolanaCircuit1x6x1v4Zkey: string;
|
|
116
|
+
mainSolanaCircuit1x6x1v4Wasm: string;
|
|
117
|
+
mainSolanaCircuit1x6x2v4Zkey: string;
|
|
118
|
+
mainSolanaCircuit1x6x2v4Wasm: string;
|
|
119
|
+
mainSolanaCircuit2x2x1v4Zkey: string;
|
|
120
|
+
mainSolanaCircuit2x2x1v4Wasm: string;
|
|
121
|
+
mainSolanaCircuit2x6x1v4Zkey: string;
|
|
122
|
+
mainSolanaCircuit2x6x1v4Wasm: string;
|
|
123
|
+
commitmentCalculator1x2v4Zkey: string;
|
|
124
|
+
commitmentCalculator1x2v4Wasm: string;
|
|
125
|
+
commitmentCalculator1x2v4VK: string;
|
|
126
|
+
commitmentCalculator1x6v4Zkey: string;
|
|
127
|
+
commitmentCalculator1x6v4Wasm: string;
|
|
128
|
+
commitmentCalculator1x6v4VK: string;
|
|
129
|
+
commitmentCalculator2x2v4Zkey: string;
|
|
130
|
+
commitmentCalculator2x2v4Wasm: string;
|
|
131
|
+
commitmentCalculator2x2v4VK: string;
|
|
132
|
+
commitmentCalculator2x6v4Zkey: string;
|
|
133
|
+
commitmentCalculator2x6v4Wasm: string;
|
|
134
|
+
commitmentCalculator2x6v4VK: string;
|
|
135
|
+
commitmentCalculator3x2v4Zkey: string;
|
|
136
|
+
commitmentCalculator3x2v4Wasm: string;
|
|
137
|
+
commitmentCalculator3x2v4VK: string;
|
|
138
|
+
commitmentCalculator3x6v4Zkey: string;
|
|
139
|
+
commitmentCalculator3x6v4Wasm: string;
|
|
140
|
+
commitmentCalculator3x6v4VK: string;
|
|
141
|
+
commitmentCalculator4x2v4Zkey: string;
|
|
142
|
+
commitmentCalculator4x2v4Wasm: string;
|
|
143
|
+
commitmentCalculator4x2v4VK: string;
|
|
144
|
+
commitmentCalculator4x6v4Zkey: string;
|
|
145
|
+
commitmentCalculator4x6v4Wasm: string;
|
|
146
|
+
commitmentCalculator4x6v4VK: string;
|
|
147
|
+
commitmentCalculator5x2v4Zkey: string;
|
|
148
|
+
commitmentCalculator5x2v4Wasm: string;
|
|
149
|
+
commitmentCalculator5x2v4VK: string;
|
|
150
|
+
commitmentCalculator5x6v4Zkey: string;
|
|
151
|
+
commitmentCalculator5x6v4Wasm: string;
|
|
152
|
+
commitmentCalculator5x6v4VK: string;
|
|
153
|
+
SignatureFromMnemonicv1x1Wasm: string;
|
|
154
|
+
SignatureFromMnemonicv1x1Zkey: string;
|
|
155
|
+
SignatureFromMnemonicv1x1VK: string;
|
|
149
156
|
};
|