@hinkal/common 0.2.11 → 0.2.12
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/package.json +16 -41
- package/API/API.d.mts +0 -49
- package/API/HinkalPointsCalls.d.mts +0 -20
- package/API/callBeefyGraphAPI.d.mts +0 -2
- package/API/callCurveAPI.d.mts +0 -9
- package/API/callMonitor.d.mts +0 -1
- package/API/callOdosAPI.d.mts +0 -63
- package/API/callOneInchAPI.d.mts +0 -18
- package/API/callRelayer.d.mts +0 -10
- package/API/checkRisk.d.mts +0 -1
- package/API/dataServerCalls.d.mts +0 -2
- package/API/duneAPI.d.mts +0 -11
- package/API/fetchCommitmentsCache.d.mts +0 -20
- package/API/fetchNullifiers.d.mts +0 -5
- package/API/getAxelarGasEstimate.d.mts +0 -5
- package/API/getCoingeckoPrice.d.mts +0 -22
- package/API/getConnextReceiveFee.d.mts +0 -2
- package/API/getGasEstimates.d.mts +0 -9
- package/API/getRelayerURL.d.mts +0 -1
- package/API/getServerURL.d.mts +0 -2
- package/API/getTokenPrice.d.mts +0 -16
- package/API/index.d.mts +0 -14
- package/API/kycCalls.d.mts +0 -30
- package/API/passwordCalls.d.mts +0 -9
- package/API/referralProgramCalls.d.mts +0 -36
- package/API/relayCalls.d.mts +0 -5
- package/API/restoreSnapshots.d.mts +0 -1
- package/API/rewardsPointsCalls.d.mts +0 -13
- package/API/userVerifyTransactions.d.mts +0 -19
- package/constants/assets.constants.d.mts +0 -13
- package/constants/axelar.constants.d.mts +0 -5
- package/constants/backend.constants.d.mts +0 -11
- package/constants/beefy.registry.d.mts +0 -8
- package/constants/chains.constants.d.mts +0 -36
- package/constants/coingecko.constants.d.mts +0 -13
- package/constants/contracts.constants.d.mts +0 -119
- package/constants/crvCvx.registry.d.mts +0 -20
- package/constants/crvDynamic.registry.d.mts +0 -1
- package/constants/deploy-data/index.d.mts +0 -11
- package/constants/fees.constants.d.mts +0 -11
- package/constants/index.d.mts +0 -20
- package/constants/kyc.constants.d.mts +0 -28
- package/constants/lido.constants.d.mts +0 -10
- package/constants/pendle.registry.d.mts +0 -21
- package/constants/protocol.constants.d.mts +0 -18
- package/constants/reorg-depths.constants.d.mts +0 -3
- package/constants/rewards.constants.d.mts +0 -19
- package/constants/server.constants.d.mts +0 -155
- package/constants/token-data/ERC20Registry.d.mts +0 -3
- package/constants/token-data/index.d.mts +0 -976
- package/constants/token-data/popularTokens.constants.d.mts +0 -3
- package/constants/token-data/tokenPricing.consts.d.mts +0 -5
- package/constants/vite.constants.d.mts +0 -14
- package/crypto/babyJub.d.mts +0 -16
- package/crypto/index.d.mts +0 -3
- package/crypto/poseidon.d.mts +0 -15
- package/crypto/preProcessing.d.mts +0 -1
- package/data-structures/Hinkal/Hinkal.d.mts +0 -100
- package/data-structures/Hinkal/IHinkal.d.mts +0 -93
- package/data-structures/Hinkal/hinkalActionBeefy.d.mts +0 -3
- package/data-structures/Hinkal/hinkalActionConvex.d.mts +0 -12
- package/data-structures/Hinkal/hinkalActionCurve.d.mts +0 -12
- package/data-structures/Hinkal/hinkalActionLidoEth.d.mts +0 -4
- package/data-structures/Hinkal/hinkalActionPendle.d.mts +0 -3
- package/data-structures/Hinkal/hinkalActionPendleLP.d.mts +0 -7
- package/data-structures/Hinkal/hinkalActionStake.d.mts +0 -3
- package/data-structures/Hinkal/hinkalActionVolatile.d.mts +0 -3
- package/data-structures/Hinkal/hinkalDeposit.d.mts +0 -3
- package/data-structures/Hinkal/hinkalGetRecipientInfo.d.mts +0 -2
- package/data-structures/Hinkal/hinkalGetZkMeProvider.d.mts +0 -3
- package/data-structures/Hinkal/hinkalPrivateWallet.d.mts +0 -2
- package/data-structures/Hinkal/hinkalSwap.d.mts +0 -3
- package/data-structures/Hinkal/hinkalTransfer.d.mts +0 -1
- package/data-structures/Hinkal/hinkalWithdraw.d.mts +0 -2
- package/data-structures/Hinkal/index.d.mts +0 -12
- package/data-structures/Hinkal/resetMerkleTrees.d.mts +0 -2
- package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.d.mts +0 -20
- package/data-structures/ValueCache/ValueCache.d.mts +0 -10
- package/data-structures/ValueCache/index.d.mts +0 -1
- package/data-structures/cacheDevices/BaseCacheDevice.d.mts +0 -8
- package/data-structures/cacheDevices/FileCacheDevice.d.mts +0 -9
- package/data-structures/cacheDevices/LocalStorageCacheDevice.d.mts +0 -7
- package/data-structures/cacheDevices/index.d.mts +0 -2
- package/data-structures/crypto-keys/decodeUTXO.d.mts +0 -14
- package/data-structures/crypto-keys/encryptDecryptUtxo.d.mts +0 -18
- package/data-structures/crypto-keys/index.d.mts +0 -4
- package/data-structures/crypto-keys/keyUtils.d.mts +0 -2
- package/data-structures/crypto-keys/keys.d.mts +0 -58
- package/data-structures/custom-token-registry/CustomTokenRegistry.d.mts +0 -13
- package/data-structures/event-service/AbstractAccessTokenSnapshotService.d.mts +0 -35
- package/data-structures/event-service/AbstractCommitmentsSnapshotService.d.mts +0 -30
- package/data-structures/event-service/AbstractEventService.d.mts +0 -31
- package/data-structures/event-service/AbstractNullifierSnapshotService.d.mts +0 -22
- package/data-structures/event-service/AbstractSnapshotService.d.mts +0 -23
- package/data-structures/event-service/index.d.mts +0 -5
- package/data-structures/index.d.mts +0 -13
- package/data-structures/merkle-tree/MerkleTree.d.mts +0 -78
- package/data-structures/merkle-tree/MerkleTreeIncompleteError.d.mts +0 -3
- package/data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.d.mts +0 -3
- package/data-structures/merkle-tree/index.d.mts +0 -3
- package/data-structures/provider-adapter/IProviderAdapter.d.mts +0 -35
- package/data-structures/snapshot/ClientAccessTokenSnapshotService.d.mts +0 -7
- package/data-structures/snapshot/ClientCommitmentsSnapshotService.d.mts +0 -7
- package/data-structures/snapshot/ClientNullifierSnapshotService.d.mts +0 -7
- package/data-structures/token-price-fetcher/TokenChecker.d.mts +0 -20
- package/data-structures/token-price-fetcher/index.d.mts +0 -1
- package/data-structures/transactions-manager/TransactionsManager.d.mts +0 -27
- package/data-structures/transactions-manager/history/getBeefyData.d.mts +0 -3
- package/data-structures/transactions-manager/history/getConvexData.d.mts +0 -6
- package/data-structures/transactions-manager/history/getCurveData.d.mts +0 -6
- package/data-structures/transactions-manager/history/getDepositData.d.mts +0 -2
- package/data-structures/transactions-manager/history/getLidoData.d.mts +0 -10
- package/data-structures/transactions-manager/history/getPendleData.d.mts +0 -3
- package/data-structures/transactions-manager/history/getSwapData.d.mts +0 -3
- package/data-structures/transactions-manager/history/getTxDetails.d.mts +0 -3
- package/data-structures/transactions-manager/history/getVolatileData.d.mts +0 -32
- package/data-structures/transactions-manager/history/history.types.d.mts +0 -95
- package/data-structures/transactions-manager/history/history.utils.d.mts +0 -8
- package/data-structures/transactions-manager/index.d.mts +0 -2
- package/data-structures/utxo/Utxo.d.mts +0 -63
- package/data-structures/volatile-helper/VolatileHelper.d.mts +0 -57
- package/data-structures/volatile-helper/index.d.mts +0 -1
- package/error-handling/customErrors/ErrorWithAmount.d.mts +0 -4
- package/error-handling/customErrors/FeeOverTransactionValueError.d.mts +0 -9
- package/error-handling/customErrors/customErrors.helpers.d.mts +0 -5
- package/error-handling/customErrors/index.d.mts +0 -3
- package/error-handling/error-codes.constants.d.mts +0 -181
- package/error-handling/get-error.message.d.mts +0 -3
- package/error-handling/handleErrorRestore.d.mts +0 -2
- package/error-handling/index.d.mts +0 -7
- package/error-handling/logError.d.mts +0 -1
- package/error-handling/types.d.mts +0 -5
- package/externalABIs/BUSD.d.mts +0 -38
- package/externalABIs/DAI.d.mts +0 -45
- package/externalABIs/ERC20.d.mts +0 -1
- package/externalABIs/SanctionsList.d.mts +0 -35
- package/externalABIs/USDC.d.mts +0 -28
- package/externalABIs/USDR.d.mts +0 -28
- package/externalABIs/USDR3CRV.d.mts +0 -49
- package/externalABIs/USDT.d.mts +0 -41
- package/externalABIs/WETH.d.mts +0 -38
- package/externalABIs/amToken.d.mts +0 -28
- package/externalABIs/crvFRAX.d.mts +0 -38
- package/externalABIs/index.d.mts +0 -323
- package/externalABIs/swapAbi.d.mts +0 -77
- package/functions/index.d.mts +0 -14
- package/functions/kyc/aiPriseHelper.d.mts +0 -0
- package/functions/kyc/authentoHelper.d.mts +0 -12
- package/functions/kyc/index.d.mts +0 -3
- package/functions/kyc/openDefaultPassportWindow.d.mts +0 -1
- package/functions/kyc/passportHelper.d.mts +0 -3
- package/functions/kyc/zkMeHelper.d.mts +0 -4
- package/functions/pre-transaction/getFlatFees.d.mts +0 -12
- package/functions/pre-transaction/index.d.mts +0 -5
- package/functions/pre-transaction/interaction-to-action.d.mts +0 -2
- package/functions/pre-transaction/outputUtxoProcessing.d.mts +0 -5
- package/functions/pre-transaction/process-gas-estimates.d.mts +0 -5
- package/functions/pre-transaction/processAmountChanges.d.mts +0 -12
- package/functions/private-wallet/emporium.helpers.d.mts +0 -5
- package/functions/private-wallet/index.d.mts +0 -2
- package/functions/private-wallet/opProducer.d.mts +0 -5
- package/functions/protocols/convex.protocols.d.mts +0 -1
- package/functions/protocols/curve.protocols.d.mts +0 -1
- package/functions/protocols/index.d.mts +0 -3
- package/functions/protocols/pendle.helpers.d.mts +0 -8
- package/functions/snarkjs/common.snarkjs.d.mts +0 -22
- package/functions/snarkjs/constant.d.mts +0 -151
- package/functions/snarkjs/constructEmporiumProof.d.mts +0 -10
- package/functions/snarkjs/constructGeneralZkProof.d.mts +0 -12
- package/functions/snarkjs/generateCircomData.d.mts +0 -4
- package/functions/snarkjs/generateZkProof.d.mts +0 -5
- package/functions/snarkjs/generateZkProofEnclave.d.mts +0 -5
- package/functions/snarkjs/generateZkProofSelf.d.mts +0 -5
- package/functions/snarkjs/getZKFiles.d.mts +0 -2
- package/functions/snarkjs/index.d.mts +0 -4
- package/functions/staking/index.d.mts +0 -11
- package/functions/utils/amounts.utils.d.mts +0 -21
- package/functions/utils/axelar.utils.d.mts +0 -2
- package/functions/utils/cacheDevice.utils.d.mts +0 -3
- package/functions/utils/cacheFunctions.d.mts +0 -17
- package/functions/utils/caseInsensitive.utils.d.mts +0 -3
- package/functions/utils/convertIntegrationProviderToExternalActionId.d.mts +0 -2
- package/functions/utils/create-provider.d.mts +0 -2
- package/functions/utils/enum.utils.d.mts +0 -9
- package/functions/utils/erc20tokenFunctions.d.mts +0 -4
- package/functions/utils/evmNetworkFunctions.d.mts +0 -4
- package/functions/utils/external-action.utils.d.mts +0 -8
- package/functions/utils/getDataFromTransaction.d.mts +0 -45
- package/functions/utils/index.d.mts +0 -21
- package/functions/utils/memoize.utils.d.mts +0 -1
- package/functions/utils/nickname.utils.d.mts +0 -1
- package/functions/utils/process.utils.d.mts +0 -7
- package/functions/utils/reloadPage.d.mts +0 -1
- package/functions/utils/requireEnv.d.mts +0 -1
- package/functions/utils/resolve-sync.utils.d.mts +0 -6
- package/functions/utils/serialize.utils.d.mts +0 -1
- package/functions/utils/string.utils.d.mts +0 -8
- package/functions/utils/time.utils.d.mts +0 -1
- package/functions/utils/userAgent.d.mts +0 -2
- package/functions/utils/volatile-patcher.utils.d.mts +0 -1
- package/functions/web3/etherFunctions.d.mts +0 -20
- package/functions/web3/events/balanceChangedHandler.d.mts +0 -1
- package/functions/web3/events/getInputUtxoAndBalance.d.mts +0 -24
- package/functions/web3/events/getShieldedBalance.d.mts +0 -18
- package/functions/web3/events/index.d.mts +0 -4
- package/functions/web3/events/web3RetrieveEvents.d.mts +0 -14
- package/functions/web3/functionCalls/accessTokenCalls.d.mts +0 -6
- package/functions/web3/functionCalls/approveToken.d.mts +0 -4
- package/functions/web3/functionCalls/estimateGasRelayer.d.mts +0 -4
- package/functions/web3/functionCalls/getRootHash.d.mts +0 -2
- package/functions/web3/functionCalls/relayFunctions.d.mts +0 -17
- package/functions/web3/functionCalls/transactCallDirect.d.mts +0 -6
- package/functions/web3/functionCalls/transactCallRelayer.d.mts +0 -7
- package/functions/web3/getContractMetadata.d.mts +0 -5
- package/functions/web3/index.d.mts +0 -6
- package/functions/web3/odosAPI.d.mts +0 -5
- package/functions/web3/oneInchAPI.d.mts +0 -5
- package/functions/web3/runContractFunction.d.mts +0 -15
- package/functions/web3/uniswapAPI.d.mts +0 -16
- package/index.d.mts +0 -8
- package/providers/EthersProviderAdapter.d.mts +0 -39
- package/providers/WagmiProviderAdapter.d.mts +0 -46
- package/providers/exportProviers.d.mts +0 -3
- package/providers/prepareEthersHinkal.d.mts +0 -4
- package/providers/prepareWagmiHinkal.d.mts +0 -3
- package/types/API.types.d.mts +0 -23
- package/types/ICacheDevice.d.mts +0 -4
- package/types/IMultiThreadedUtxoUtils.d.mts +0 -8
- package/types/admin.types.d.mts +0 -22
- package/types/axelar.types.d.mts +0 -14
- package/types/beefy.types.d.mts +0 -11
- package/types/big-intable.types.d.mts +0 -2
- package/types/circom-data.types.d.mts +0 -70
- package/types/coingecko.types.d.mts +0 -8
- package/types/commitments.types.d.mts +0 -26
- package/types/connext.types.d.mts +0 -13
- package/types/crypto.types.d.mts +0 -7
- package/types/curve.types.d.mts +0 -133
- package/types/duneAPI.types.d.mts +0 -9
- package/types/ethereum-network.types.d.mts +0 -142
- package/types/external-action.types.d.mts +0 -28
- package/types/hinkal.stake.types.d.mts +0 -11
- package/types/hinkal.types.d.mts +0 -150
- package/types/hinkalTvl.types.d.mts +0 -4
- package/types/index.d.mts +0 -27
- package/types/kyc.types.d.mts +0 -39
- package/types/pendle.api.types.d.mts +0 -233
- package/types/pendle.types.d.mts +0 -222
- package/types/relayer.types.d.mts +0 -25
- package/types/remote-proof.types.d.mts +0 -15
- package/types/rewards.types.d.mts +0 -230
- package/types/slippage.types.d.mts +0 -15
- package/types/snark.types.d.mts +0 -40
- package/types/time.types.d.mts +0 -31
- package/types/token.types.d.mts +0 -36
- package/types/transactions.types.d.mts +0 -55
- package/webworker/performTaskWithWorker.d.mts +0 -5
- package/webworker/snarkjsWorker/snarkjsWorker.types.d.mts +0 -14
- package/webworker/snarkjsWorker/snarkjsWorkerLauncher.d.mts +0 -1
- package/webworker/snarkjsWorker/snarkjsWorkerLogic.d.mts +0 -10
- package/webworker/utxoWorker/utxoWorker.types.d.mts +0 -29
- package/webworker/utxoWorker/utxoWorkerLauncher.d.mts +0 -1
- package/webworker/utxoWorker/utxoWorkerLogic.d.mts +0 -8
- package/webworker/viteWorkerURL.constant.d.mts +0 -9
- package/webworker/worker.registry.d.mts +0 -10
- package/webworker/worker.types.d.mts +0 -33
- package/webworker/workerErrorHandler.d.mts +0 -1
- package/webworker/workerFactory.d.mts +0 -7
- package/webworker/workerProxy.d.mts +0 -40
- package/webworker/zkProofWorker/zkProofWorker.types.d.mts +0 -38
- package/webworker/zkProofWorker/zkProofWorkerLauncher.d.mts +0 -1
- package/webworker/zkProofWorker/zkProofWorkerLogic.d.mts +0 -8
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
export declare const PROOF_GENERATION_EC2_URL = "https://enclave-server.hinkal.pro";
|
|
2
|
-
export declare const prodVerifiers: (chainId: number) => {
|
|
3
|
-
swapperM1x2x1Zkey: string;
|
|
4
|
-
swapperM1x2x1Wasm: string;
|
|
5
|
-
swapperM1x6x1Zkey: string;
|
|
6
|
-
swapperM1x6x1Wasm: string;
|
|
7
|
-
swapperME1x2x1Zkey: string;
|
|
8
|
-
swapperME1x2x1Wasm: string;
|
|
9
|
-
swapperM2x2x1Zkey: string;
|
|
10
|
-
swapperM2x2x1Wasm: string;
|
|
11
|
-
swapperM2x6x1Zkey: string;
|
|
12
|
-
swapperM2x6x1Wasm: string;
|
|
13
|
-
swapperMO2x2x1Zkey: string;
|
|
14
|
-
swapperMO2x2x1Wasm: string;
|
|
15
|
-
swapperMO2x6x1Zkey: string;
|
|
16
|
-
swapperMO2x6x1Wasm: string;
|
|
17
|
-
swapperToken2x2x1Zkey: string;
|
|
18
|
-
swapperToken2x2x1Wasm: string;
|
|
19
|
-
swapperToken2x6x1Zkey: string;
|
|
20
|
-
swapperToken2x6x1Wasm: string;
|
|
21
|
-
swapperM3x2x1Zkey: string;
|
|
22
|
-
swapperM3x2x1Wasm: string;
|
|
23
|
-
swapperM3x6x1Zkey: string;
|
|
24
|
-
swapperM3x6x1Wasm: string;
|
|
25
|
-
swapperMO3x2x1Zkey: string;
|
|
26
|
-
swapperMO3x2x1Wasm: string;
|
|
27
|
-
swapperMO3x6x1Zkey: string;
|
|
28
|
-
swapperMO3x6x1Wasm: string;
|
|
29
|
-
swapperM4x2x1Zkey: string;
|
|
30
|
-
swapperM4x2x1Wasm: string;
|
|
31
|
-
swapperM4x6x1Zkey: string;
|
|
32
|
-
swapperM4x6x1Wasm: string;
|
|
33
|
-
swapperMO4x2x1Zkey: string;
|
|
34
|
-
swapperMO4x2x1Wasm: string;
|
|
35
|
-
swapperMO4x6x1Zkey: string;
|
|
36
|
-
swapperMO4x6x1Wasm: string;
|
|
37
|
-
swapperM5x2x1Zkey: string;
|
|
38
|
-
swapperM5x2x1Wasm: string;
|
|
39
|
-
swapperM5x6x1Zkey: string;
|
|
40
|
-
swapperM5x6x1Wasm: string;
|
|
41
|
-
swapperMO5x2x1Zkey: string;
|
|
42
|
-
swapperMO5x2x1Wasm: string;
|
|
43
|
-
swapperMO5x6x1Zkey: string;
|
|
44
|
-
swapperMO5x6x1Wasm: string;
|
|
45
|
-
swapperMTS2x2x1Zkey: string;
|
|
46
|
-
swapperMTS2x2x1Wasm: string;
|
|
47
|
-
transactionsProverZkey: string;
|
|
48
|
-
transactionsProverWasm: string;
|
|
49
|
-
stakeProverZkey: string;
|
|
50
|
-
stakeProverWasm: string;
|
|
51
|
-
stakeProverPermissionlessZkey: string;
|
|
52
|
-
stakeProverPermissionlessWasm: string;
|
|
53
|
-
swapperMW1x2Wasm: string;
|
|
54
|
-
swapperMW1x2Zkey: string;
|
|
55
|
-
swapperMW1x6Wasm: string;
|
|
56
|
-
swapperMW1x6Zkey: string;
|
|
57
|
-
swapperMW2x2Wasm: string;
|
|
58
|
-
swapperMW2x2Zkey: string;
|
|
59
|
-
swapperMW2x6Wasm: string;
|
|
60
|
-
swapperMW2x6Zkey: string;
|
|
61
|
-
swapperMW3x2Wasm: string;
|
|
62
|
-
swapperMW3x2Zkey: string;
|
|
63
|
-
swapperMW3x6Wasm: string;
|
|
64
|
-
swapperMW3x6Zkey: string;
|
|
65
|
-
swapperMW4x2Wasm: string;
|
|
66
|
-
swapperMW4x2Zkey: string;
|
|
67
|
-
swapperMW4x6Wasm: string;
|
|
68
|
-
swapperMW4x6Zkey: string;
|
|
69
|
-
swapperMW5x2Wasm: string;
|
|
70
|
-
swapperMW5x2Zkey: string;
|
|
71
|
-
swapperMW5x6Wasm: string;
|
|
72
|
-
swapperMW5x6Zkey: string;
|
|
73
|
-
};
|
|
74
|
-
export declare const localVerifiers: {
|
|
75
|
-
swapperM1x2x1Zkey: string;
|
|
76
|
-
swapperM1x2x1Wasm: string;
|
|
77
|
-
swapperM1x6x1Zkey: string;
|
|
78
|
-
swapperM1x6x1Wasm: string;
|
|
79
|
-
swapperMO1x2x1Zkey: string;
|
|
80
|
-
swapperMO1x2x1Wasm: string;
|
|
81
|
-
swapperMO1x6x1Zkey: string;
|
|
82
|
-
swapperMO1x6x1Wasm: string;
|
|
83
|
-
swapperME1x2x1Zkey: string;
|
|
84
|
-
swapperME1x2x1Wasm: string;
|
|
85
|
-
swapperM2x2x1Zkey: string;
|
|
86
|
-
swapperM2x2x1Wasm: string;
|
|
87
|
-
swapperM2x6x1Zkey: string;
|
|
88
|
-
swapperM2x6x1Wasm: string;
|
|
89
|
-
swapperMO2x2x1Zkey: string;
|
|
90
|
-
swapperMO2x2x1Wasm: string;
|
|
91
|
-
swapperMO2x6x1Zkey: string;
|
|
92
|
-
swapperMO2x6x1Wasm: string;
|
|
93
|
-
swapperToken2x2x1Zkey: string;
|
|
94
|
-
swapperToken2x2x1Wasm: string;
|
|
95
|
-
swapperToken2x6x1Zkey: string;
|
|
96
|
-
swapperToken2x6x1Wasm: string;
|
|
97
|
-
swapperM3x2x1Zkey: string;
|
|
98
|
-
swapperM3x2x1Wasm: string;
|
|
99
|
-
swapperM3x6x1Zkey: string;
|
|
100
|
-
swapperM3x6x1Wasm: string;
|
|
101
|
-
swapperMO3x2x1Zkey: string;
|
|
102
|
-
swapperMO3x2x1Wasm: string;
|
|
103
|
-
swapperMO3x6x1Zkey: string;
|
|
104
|
-
swapperMO3x6x1Wasm: string;
|
|
105
|
-
swapperM4x2x1Zkey: string;
|
|
106
|
-
swapperM4x2x1Wasm: string;
|
|
107
|
-
swapperM4x6x1Zkey: string;
|
|
108
|
-
swapperM4x6x1Wasm: string;
|
|
109
|
-
swapperMO4x2x1Zkey: string;
|
|
110
|
-
swapperMO4x2x1Wasm: string;
|
|
111
|
-
swapperMO4x6x1Zkey: string;
|
|
112
|
-
swapperMO4x6x1Wasm: string;
|
|
113
|
-
swapperM5x2x1Zkey: string;
|
|
114
|
-
swapperM5x2x1Wasm: string;
|
|
115
|
-
swapperM5x6x1Zkey: string;
|
|
116
|
-
swapperM5x6x1Wasm: string;
|
|
117
|
-
swapperMO5x2x1Zkey: string;
|
|
118
|
-
swapperMO5x2x1Wasm: string;
|
|
119
|
-
swapperMO5x6x1Zkey: string;
|
|
120
|
-
swapperMO5x6x1Wasm: string;
|
|
121
|
-
swapperMTS2x2x1Zkey: string;
|
|
122
|
-
swapperMTS2x2x1Wasm: string;
|
|
123
|
-
transactionsProverZkey: string;
|
|
124
|
-
transactionsProverWasm: string;
|
|
125
|
-
stakeProverZkey: string;
|
|
126
|
-
stakeProverWasm: string;
|
|
127
|
-
stakeProverPermissionlessZkey: string;
|
|
128
|
-
stakeProverPermissionlessWasm: string;
|
|
129
|
-
receiverZkey: string;
|
|
130
|
-
receiverWasm: string;
|
|
131
|
-
swapperMW1x2Wasm: string;
|
|
132
|
-
swapperMW1x2Zkey: string;
|
|
133
|
-
swapperMW1x6Wasm: string;
|
|
134
|
-
swapperMW1x6Zkey: string;
|
|
135
|
-
swapperMW2x2Wasm: string;
|
|
136
|
-
swapperMW2x2Zkey: string;
|
|
137
|
-
swapperMW2x6Wasm: string;
|
|
138
|
-
swapperMW2x6Zkey: string;
|
|
139
|
-
swapperMW3x2Wasm: string;
|
|
140
|
-
swapperMW3x2Zkey: string;
|
|
141
|
-
swapperMW3x6Wasm: string;
|
|
142
|
-
swapperMW3x6Zkey: string;
|
|
143
|
-
swapperMW4x2Wasm: string;
|
|
144
|
-
swapperMW4x2Zkey: string;
|
|
145
|
-
swapperMW4x6Wasm: string;
|
|
146
|
-
swapperMW4x6Zkey: string;
|
|
147
|
-
swapperMW5x2Wasm: string;
|
|
148
|
-
swapperMW5x2Zkey: string;
|
|
149
|
-
swapperMW5x6Wasm: string;
|
|
150
|
-
swapperMW5x6Zkey: string;
|
|
151
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { MerkleTree } from '../../data-structures/merkle-tree';
|
|
2
|
-
import { Utxo } from '../../data-structures/utxo/Utxo';
|
|
3
|
-
import { UserKeys } from '../../data-structures/crypto-keys/keys';
|
|
4
|
-
import { CircomDataType, DimDataType } from '../../types/circom-data.types';
|
|
5
|
-
export declare const constructEmporiumProof: (merkleTree: MerkleTree<bigint>, merkleTreeAccessToken: MerkleTree<bigint>, inputUtxos: Utxo[][], outputUtxos: Utxo[][], userKeys: UserKeys, tokenCount: number, inputCount: number, emporiumAddress: string, operations: string[], generateProofRemotely: boolean, relay?: string, chainId?: number, onChainCreation?: boolean[], flatFees?: bigint[], walletNonce?: bigint, volatileAmounts?: bigint[], volatileAction?: string) => Promise<{
|
|
6
|
-
zkCallData: import('../../index.ts').NewZkCallDataType;
|
|
7
|
-
circomData: CircomDataType;
|
|
8
|
-
dimData: DimDataType;
|
|
9
|
-
encryptedOutputs: string[][];
|
|
10
|
-
}>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { MerkleTree } from '../../data-structures/merkle-tree';
|
|
2
|
-
import { UserKeys } from '../../data-structures/crypto-keys/keys';
|
|
3
|
-
import { Utxo } from '../../data-structures/utxo/Utxo';
|
|
4
|
-
import { CircomDataType, DimDataType, HookDataType } from '../../types/circom-data.types';
|
|
5
|
-
import { ExternalActionId } from '../../types/external-action.types';
|
|
6
|
-
import { StakeArgs } from '../../types/hinkal.stake.types';
|
|
7
|
-
export declare const constructZkProof: (merkleTree: MerkleTree<bigint>, merkleTreeAccessToken: MerkleTree<bigint>, inputUtxos: Utxo[][], outputUtxos: Utxo[][], userKeys: UserKeys, verifierName: string, externalActionId: ExternalActionId | 0n, externalAddress: string | undefined, externalActionMetadata: string, generateProofRemotely: boolean, relay?: string, chainId?: number, onChainCreation?: boolean[], flatFees?: bigint[], hookData?: HookDataType | undefined, stakeArgs?: StakeArgs, hasAccessToken?: boolean) => Promise<{
|
|
8
|
-
zkCallData: import('../../index.ts').NewZkCallDataType;
|
|
9
|
-
circomData: CircomDataType;
|
|
10
|
-
dimData: DimDataType;
|
|
11
|
-
encryptedOutputs: string[][];
|
|
12
|
-
}>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Utxo } from '../../data-structures/utxo/Utxo';
|
|
2
|
-
import { CircomDataType, HookDataType, StealthAddressStructure } from '../../types/circom-data.types';
|
|
3
|
-
import { ExternalActionId } from '../../types/external-action.types';
|
|
4
|
-
export declare const generateCircomData: (rootHashHinkal: bigint | undefined, rootHashAccessToken: bigint | undefined, inputUtxos: Utxo[][], outputUtxos: Utxo[][], encryptedOutputs: string[][], flatFees: bigint[], publicSignalCount: number, externalActionId: ExternalActionId | bigint, externalAddress: string | undefined, externalActionMetadata: string, relay: string, calldataHash: bigint, tokenIds: number[], stealthAddressStructure: StealthAddressStructure, onChainCreation: boolean[], hookData: HookDataType | undefined) => Promise<CircomDataType>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { UserKeys } from '../../data-structures/crypto-keys/keys';
|
|
2
|
-
interface StakeDecryptOutput {
|
|
3
|
-
stakeBlinding: bigint;
|
|
4
|
-
stakedTokenRecipient: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const encryptStake: (stakeBlinding: bigint, stakedTokenRecipient: string, encryptionKey: string) => string;
|
|
7
|
-
export declare const decryptStake: (encryptedStakeCommitmentContent: string, minterKeys: UserKeys) => StakeDecryptOutput | undefined;
|
|
8
|
-
export declare const createStakeCommitment: (isStake: boolean, stakedTokenRecipient: string, stakeBlinding: bigint, tokenAddress: string, amountChange: bigint, timeStamp: bigint) => bigint;
|
|
9
|
-
export declare const calculateStakeNullifier: (stakeCommitment: bigint, blinding: bigint) => string;
|
|
10
|
-
export declare const encodeHStakeMetadata: (action: 1 | 0, stakeCommitment: bigint, depositorAddress: string, encryptedContent: string, encryptedContentAlt: string) => string;
|
|
11
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { BigIntable } from '../../types/big-intable.types';
|
|
2
|
-
export declare const calculateSum: (arr: number[]) => number;
|
|
3
|
-
export declare const beepsToPercentage: (beeps: number) => number;
|
|
4
|
-
export declare const calculateAmountUsingBeeps: (beep: bigint, amount: bigint) => bigint;
|
|
5
|
-
export declare function toBigInt(value: BigIntable): bigint;
|
|
6
|
-
/** Converts the value to a BigInt or returns undefined if can't */
|
|
7
|
-
export declare const toBigIntOrUndefined: (value: any) => bigint | undefined;
|
|
8
|
-
/** Converts the value to a number or returns undefined if can't */
|
|
9
|
-
export declare const toNumberOrUndefined: (value: any) => number | undefined;
|
|
10
|
-
export declare const toInt: (param: string | undefined, defaultValue: number) => number;
|
|
11
|
-
export declare function bigintApplySugar(): void;
|
|
12
|
-
export declare function bigintMax(...values: bigint[]): bigint;
|
|
13
|
-
export declare function fixDecimalsAmount(n: number): number | "< 0.000001";
|
|
14
|
-
export declare const getValueFirstNDigit: (num: number, numberOfDigits: number) => string;
|
|
15
|
-
export declare const trimLeadingZeros: (numberString: string) => string;
|
|
16
|
-
export declare const toCommaSeparatedNumberString: (numberString: string) => string;
|
|
17
|
-
export declare const truncateTo18DecimalPlaces: (numStr: string) => string;
|
|
18
|
-
/** Return absolute value of BigInt */
|
|
19
|
-
export declare const absBigInt: (n: bigint) => bigint;
|
|
20
|
-
/** Return the smallest values of the 2 or 3 values provided */
|
|
21
|
-
export declare const minBigInt: (a: bigint, b: bigint, c?: bigint) => bigint;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { type HinkalConfig } from '../../types/hinkal.types';
|
|
2
|
-
import { FileCacheDevice, LocalStorageCacheDevice } from '../../data-structures/cacheDevices';
|
|
3
|
-
export declare const createCacheDevice: (hinkalConfig?: HinkalConfig) => FileCacheDevice | LocalStorageCacheDevice;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { type IHinkal } from '../../data-structures/Hinkal/IHinkal';
|
|
2
|
-
import { type DecodedTx } from '../../types/transactions.types';
|
|
3
|
-
import { type EncryptedOutputWithSign } from '../../types/commitments.types';
|
|
4
|
-
interface HinkalCacheInterface {
|
|
5
|
-
encryptedOutputs: EncryptedOutputWithSign[];
|
|
6
|
-
lastOutput: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const getFilePath: (chainId: number, shortPublicKey: string, shortHinkalAddress: string) => string;
|
|
9
|
-
export declare const getHinkalCache: (hinkal: IHinkal) => HinkalCacheInterface;
|
|
10
|
-
export declare const setHinkalCache: (hinkalCache: HinkalCacheInterface, hinkal: IHinkal) => void;
|
|
11
|
-
export declare const resetCache: (hinkal: IHinkal) => void;
|
|
12
|
-
export declare const saveTxsCache: (txs: DecodedTx[], chainId: number, shieldedPublicKey: string, hinkalAddress: string, lastHash: string) => Promise<void>;
|
|
13
|
-
export declare const loadTxsCache: (chainId: number, shieldedPublicKey: string, hinkalAddress: string) => Promise<{
|
|
14
|
-
decodedTxs: import("../../types/transactions.types").DecodedTxWithUtxos<bigint, import("ethers").BigNumber>[];
|
|
15
|
-
lastHash: string | undefined;
|
|
16
|
-
}>;
|
|
17
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/** Verifies that the value is in the enumType specified */
|
|
2
|
-
export declare function isInEnum<T>(enumType: T, value: any): value is T[keyof T];
|
|
3
|
-
/** Converts a string value to an Enum member
|
|
4
|
-
* If a value can't be matched to a valid option in the enum, returns undefined (or throws if throwIfInvalid = true) */
|
|
5
|
-
export declare function toEnumValue<T>(e: T, value: any, throwIfInvalid?: boolean): T[keyof T] | undefined;
|
|
6
|
-
/** returns first item in an enum that is included somewhere in the target string
|
|
7
|
-
* e.g. enumInString(ErrorCode, '001-badpassword: error') => ErrorCode.BadPassword
|
|
8
|
-
*/
|
|
9
|
-
export declare function enumInString<T extends Record<string, string>>(enumType: T, searchString: any): T[keyof T] | undefined;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ERC20Token } from '../../types/token.types';
|
|
2
|
-
export declare const getERC20Token: (address: string, chainId: number) => ERC20Token | undefined;
|
|
3
|
-
export declare const getERC20TokenBySymbol: (symbol: string, chainId: number) => ERC20Token | undefined;
|
|
4
|
-
export declare const getHToken: (token: ERC20Token, chainId: number) => ERC20Token | undefined;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ethers } from 'ethers';
|
|
2
|
-
import { ExternalActionId } from '../../types/external-action.types';
|
|
3
|
-
import { CircomDataJsonType } from '../../types/circom-data.types';
|
|
4
|
-
export declare const getExternalActionIdHash: (externalActionId: ExternalActionId | 0n) => bigint;
|
|
5
|
-
export declare const getExternalActionIdFromNumber: (externalActionIdNumber: string | bigint) => ExternalActionId | undefined;
|
|
6
|
-
export declare const getActionFromMetadata: (externalActionId: ExternalActionId, circomDataDeserialized: Partial<CircomDataJsonType>) => number | undefined;
|
|
7
|
-
export declare const decodeMetadata: (externalActionId: ExternalActionId, externalActionMetadata: string) => ethers.utils.Result;
|
|
8
|
-
export declare const getExternalMetadataHash: (externalMetadataBuffer: string) => bigint;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { BigNumber, utils } from 'ethers';
|
|
2
|
-
import { DecodedTx, DecodedTxWithUtxos } from '../../types';
|
|
3
|
-
export declare const decodeTxInput: (iface: utils.Interface, input: string) => {
|
|
4
|
-
erc20TokenAddresses: string[];
|
|
5
|
-
amountChanges: BigNumber[];
|
|
6
|
-
flatFees: BigNumber[];
|
|
7
|
-
externalActionId: BigNumber;
|
|
8
|
-
externalActionMetadata: string;
|
|
9
|
-
encryptedOutputs: string[];
|
|
10
|
-
hookData: import('../../types/circom-data.types').HookDataType;
|
|
11
|
-
stealthAddressStructure: import('../../types/circom-data.types').StealthAddressStructure<bigint>;
|
|
12
|
-
};
|
|
13
|
-
export declare const decodeTxLogs: (chainId: number, transactions: DecodedTx[]) => DecodedTxWithUtxos<bigint, BigNumber>[];
|
|
14
|
-
export declare const deserializeDecodedTxs: (decodedTx: DecodedTxWithUtxos<string, string>) => DecodedTxWithUtxos;
|
|
15
|
-
export declare const serializeDecodedTxs: (decodedTxs: DecodedTx[]) => {
|
|
16
|
-
input: string;
|
|
17
|
-
decodedInput: {
|
|
18
|
-
amountChanges: string[];
|
|
19
|
-
flatFees: string[];
|
|
20
|
-
externalActionId: string;
|
|
21
|
-
stealthAddressStructure: {
|
|
22
|
-
extraRandomization: string;
|
|
23
|
-
stealthAddress: string;
|
|
24
|
-
H0: string;
|
|
25
|
-
H1: string;
|
|
26
|
-
};
|
|
27
|
-
erc20TokenAddresses: string[];
|
|
28
|
-
externalActionMetadata: string;
|
|
29
|
-
encryptedOutputs: string[];
|
|
30
|
-
hookData: import('../../types/circom-data.types').HookDataType;
|
|
31
|
-
};
|
|
32
|
-
status: string;
|
|
33
|
-
blockNumber: number;
|
|
34
|
-
timeStamp: number;
|
|
35
|
-
isError: string;
|
|
36
|
-
methodId: string;
|
|
37
|
-
logs: {
|
|
38
|
-
topics: string[];
|
|
39
|
-
data: string;
|
|
40
|
-
}[];
|
|
41
|
-
hash: string;
|
|
42
|
-
gas: number;
|
|
43
|
-
gasPrice: number;
|
|
44
|
-
contract?: string | undefined;
|
|
45
|
-
}[];
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export * from './amounts.utils';
|
|
2
|
-
export * from './cacheFunctions';
|
|
3
|
-
export * from './create-provider';
|
|
4
|
-
export * from './external-action.utils';
|
|
5
|
-
export * from './erc20tokenFunctions';
|
|
6
|
-
export * from './requireEnv';
|
|
7
|
-
export * from './resolve-sync.utils';
|
|
8
|
-
export * from './convertIntegrationProviderToExternalActionId';
|
|
9
|
-
export * from '../pre-transaction';
|
|
10
|
-
export * from './evmNetworkFunctions';
|
|
11
|
-
export * from './axelar.utils';
|
|
12
|
-
export * from './userAgent';
|
|
13
|
-
export * from './getDataFromTransaction';
|
|
14
|
-
export * from './reloadPage';
|
|
15
|
-
export * from './string.utils';
|
|
16
|
-
export * from './nickname.utils';
|
|
17
|
-
export * from './caseInsensitive.utils';
|
|
18
|
-
export * from './time.utils';
|
|
19
|
-
export * from './volatile-patcher.utils';
|
|
20
|
-
export * from './cacheDevice.utils';
|
|
21
|
-
export * from './process.utils';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const memoizeFunc: <T extends any[], R>(fn: (...args: T) => R) => (...args: T) => R;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isNicknameValid: (input: string) => boolean;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/** pause execution for a number of miliseconds */
|
|
2
|
-
export declare const wait: (miliseconds: number) => Promise<unknown>;
|
|
3
|
-
/** only call function once with a given number of milliseconds
|
|
4
|
-
* Ex: let debounceMyFunc = debounce(myFunc, 1000);
|
|
5
|
-
* debounceMyFunc(); debounceMyFunc();
|
|
6
|
-
*/
|
|
7
|
-
export declare function debounce(func: (...args: any[]) => void, debounceForMs: number): (...args: any[]) => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const reloadPage: () => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const requireEnv: (environmentVariableName: string) => string;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const resolveSync: (promiseFns: (() => Promise<any>)[]) => Promise<void>;
|
|
2
|
-
export declare const getSequence: (fromBlockNumber: number, lastBlockNumber: number, maxPageSize: number | undefined) => {
|
|
3
|
-
from: number;
|
|
4
|
-
to: number;
|
|
5
|
-
}[];
|
|
6
|
-
export declare const promisify: (callback: () => Promise<any>, timeout?: number) => Promise<unknown>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const CustomJSONStringify: (args: any) => string;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/** Capitalize the first letter of each word
|
|
2
|
-
* "This is an example" => "This Is An Example"
|
|
3
|
-
*/
|
|
4
|
-
export declare function toTitleCase(str: string): string;
|
|
5
|
-
/** Capitalize the first letter of a string */
|
|
6
|
-
export declare function capitalizeFirstLetter(str: string): string;
|
|
7
|
-
/** Returns true if a value is null, undefined, or an empty object, array (length 0), or string (e.g. '') */
|
|
8
|
-
export declare function isNullOrEmpty(obj: unknown): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const waitLittle: (time?: number) => Promise<unknown>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const patchRegistry: (chainId: number) => Promise<void>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ERC20Token } from '../../types/token.types';
|
|
2
|
-
export declare const ethToWei: (amount: string) => bigint;
|
|
3
|
-
export declare const randomBigInt: (numberfOfBytes: number) => bigint;
|
|
4
|
-
export declare const getAmountInToken: (token: ERC20Token, amount: bigint) => string;
|
|
5
|
-
export declare const getAmountInWei: (token: ERC20Token, amount: string) => bigint;
|
|
6
|
-
/**
|
|
7
|
-
* Convert a decimal number into bigint through string method and return a bigint and number of decimal places.
|
|
8
|
-
* @param decimal
|
|
9
|
-
* @returns a tuple of [ theBigInt, numberOfDecimalPlaces]
|
|
10
|
-
*/
|
|
11
|
-
export declare const toBigIntWithDecimals: (decimal: number) => [bigint, number];
|
|
12
|
-
/** Return getAmountInWei or 0 if error */
|
|
13
|
-
export declare const getAmountInWeiOrZero: (token: ERC20Token, amount: string) => bigint;
|
|
14
|
-
export declare const getAmountWithPrecision: (balance: bigint, token: ERC20Token, precision: number) => string;
|
|
15
|
-
export declare const calculateDollarValue: (token: ERC20Token, tokenAmount: bigint, tokenPriceDollar: number, precision: number) => {
|
|
16
|
-
totalValueDollarsBigInt: bigint;
|
|
17
|
-
precision: number;
|
|
18
|
-
};
|
|
19
|
-
/** Returns same as getAmountWithPrecision but '0' if empty */
|
|
20
|
-
export declare const getAmountWithPrecisionOrZero: (token: ERC20Token | undefined, amount: bigint | undefined) => string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const balanceChangedHandler: () => void;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { IHinkal } from '../../../data-structures/Hinkal/IHinkal';
|
|
2
|
-
import { UserKeys } from '../../../data-structures/crypto-keys/keys';
|
|
3
|
-
import { Utxo } from '../../../data-structures/utxo/Utxo';
|
|
4
|
-
import { EncryptedOutputWithSign } from '../../../types/commitments.types';
|
|
5
|
-
interface IGetInputUtxos {
|
|
6
|
-
hinkal: IHinkal;
|
|
7
|
-
erc20TokenAddress?: string;
|
|
8
|
-
minInput?: number;
|
|
9
|
-
sliceIfMore6?: boolean;
|
|
10
|
-
tokenId?: number;
|
|
11
|
-
}
|
|
12
|
-
export declare const getInputUtxosFromEncryptedOutputs: (hinkal: IHinkal, encryptedOutputs: EncryptedOutputWithSign[], userKeys: UserKeys, erc20TokenAddress?: string, tokenId?: number) => Promise<Utxo[]>;
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @param hinkal instance of the hinkal class
|
|
16
|
-
* @param erc20TokenAddress erc20 token address
|
|
17
|
-
* @param minInput min number of input UTXOs
|
|
18
|
-
* @param sliceIfMore6 max upper bound on input UTXOs controller
|
|
19
|
-
* @returns UTXOs for particular erc20 token address
|
|
20
|
-
*/
|
|
21
|
-
export declare const getInputUtxoAndBalance: ({ hinkal, erc20TokenAddress, minInput, sliceIfMore6, tokenId, }: IGetInputUtxos) => Promise<{
|
|
22
|
-
inputUtxos: Utxo[];
|
|
23
|
-
}>;
|
|
24
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { TokenBalance } from '../../../types/token.types';
|
|
2
|
-
import { Utxo } from '../../../data-structures/utxo/Utxo';
|
|
3
|
-
import { IHinkal } from '../../../data-structures/Hinkal/IHinkal';
|
|
4
|
-
/**
|
|
5
|
-
*
|
|
6
|
-
* @param UserKeys to access user's encryption keys
|
|
7
|
-
* @returns shielded balance
|
|
8
|
-
*/
|
|
9
|
-
export declare const getShieldedBalance: (hinkal: IHinkal) => Promise<TokenBalance[]>;
|
|
10
|
-
/**
|
|
11
|
-
*
|
|
12
|
-
* @param hinkal hinkal instance to get userKeys
|
|
13
|
-
* @param erc20Addresses array of erc20 tokens
|
|
14
|
-
* @param amountChanges array of token amounts
|
|
15
|
-
* @param maxInput to pad until maxInput number
|
|
16
|
-
* @returns return padded UTXOs for every erc20 token
|
|
17
|
-
*/
|
|
18
|
-
export declare const addPaddingToUtxos: (hinkal: IHinkal, erc20Addresses: string[], amountChanges: bigint[], maxInput?: number, tokenIds?: number[], forceEmptyUtxos?: boolean) => Promise<Utxo[][]>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Contract, ethers } from 'ethers';
|
|
2
|
-
/**
|
|
3
|
-
* to get contract events
|
|
4
|
-
* @param eventName to retrieve specific events
|
|
5
|
-
* @param eventArgs event arguments
|
|
6
|
-
* @returns array of the specific events
|
|
7
|
-
*/
|
|
8
|
-
export declare const retrieveEvents: (hinkalContract: ethers.Contract, eventName: string, ...eventArgs: unknown[]) => Promise<ethers.Event[]>;
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @param web3Provider instance to get hinkal contract
|
|
12
|
-
* @returns array of deposit timestamps in JS new Date format
|
|
13
|
-
*/
|
|
14
|
-
export declare const getDepositEvents: (hinkalContract: Contract, erc20TokenAddress: string) => Promise<Date[]>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ethers } from 'ethers';
|
|
2
|
-
import { IHinkal } from '../../../data-structures/Hinkal/IHinkal';
|
|
3
|
-
import { AxelarMigrationInfo, SignatureData } from '../../../types';
|
|
4
|
-
export declare const checkHinkalAccessToken: (hinkal: IHinkal) => Promise<any>;
|
|
5
|
-
export declare const mintAccessToken: (hinkal: IHinkal, signatureData: SignatureData) => Promise<ethers.ContractTransaction>;
|
|
6
|
-
export declare const mintTokenCrossChain: (hinkal: IHinkal, signatureData: SignatureData, axelarMigrationInfos: AxelarMigrationInfo[]) => Promise<ethers.ContractTransaction>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ethers } from 'ethers';
|
|
2
|
-
import { IHinkal } from '../../../data-structures/Hinkal/IHinkal';
|
|
3
|
-
import { ERC20Token } from '../../../types/token.types';
|
|
4
|
-
export declare const approveTokenToHinkal: (hinkal: IHinkal, contractToApprove: ethers.Contract, amount: bigint, token: ERC20Token) => Promise<Uint8Array | undefined>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { IHinkal } from '../../../data-structures/Hinkal/IHinkal';
|
|
2
|
-
import { CircomDataType, DimDataType } from '../../../types/circom-data.types';
|
|
3
|
-
import { NewZkCallDataType } from '../../../types/snark.types';
|
|
4
|
-
export declare const estimateGasRelayer: (hinkal: IHinkal, newZkCallData: NewZkCallDataType, dimData: DimDataType, circomData: CircomDataType) => Promise<bigint>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ethers } from 'ethers';
|
|
2
|
-
export interface RelayEntryData {
|
|
3
|
-
relayAddress: string;
|
|
4
|
-
url: string;
|
|
5
|
-
priority: number;
|
|
6
|
-
}
|
|
7
|
-
export interface RelayEntryWithIndex extends RelayEntryData {
|
|
8
|
-
lowerIndex: number;
|
|
9
|
-
}
|
|
10
|
-
export declare const getRelayPercentage: (contract: ethers.Contract) => Promise<bigint>;
|
|
11
|
-
export declare const chooseRandomRelay: (entries: RelayEntryData[]) => {
|
|
12
|
-
lowerIndex: number;
|
|
13
|
-
relayAddress: string;
|
|
14
|
-
url: string;
|
|
15
|
-
priority: number;
|
|
16
|
-
};
|
|
17
|
-
export declare const getRelay: (hinkalHelperContract: ethers.Contract) => Promise<RelayEntryWithIndex>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ethers } from 'ethers';
|
|
2
|
-
import { IHinkal } from '../../../data-structures/Hinkal/IHinkal';
|
|
3
|
-
import { CircomDataType, DimDataType } from '../../../types/circom-data.types';
|
|
4
|
-
import { ERC20Token } from '../../../types/token.types';
|
|
5
|
-
import { NewZkCallDataType } from '../../../types/snark.types';
|
|
6
|
-
export declare const transactCallDirect: (hinkal: IHinkal, amount: bigint, tokenToApprove: ERC20Token, newZkCallData: NewZkCallDataType, circomData: CircomDataType, dimData: DimDataType, contractApproval?: ethers.Contract, contractTransaction?: ethers.Contract, hasAccessToken?: boolean) => Promise<any>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CircomDataType, DimDataType, NewZkCallDataType, RelayerTransaction } from '../../../types';
|
|
2
|
-
export interface RelayerResponseInterface {
|
|
3
|
-
status: string;
|
|
4
|
-
message: RelayerTransaction;
|
|
5
|
-
error?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const transactCallRelayer: (chainId: number, newZkCallData: NewZkCallDataType, dimData: DimDataType, circomData: CircomDataType, withPrivateMempool?: boolean) => Promise<RelayerTransaction>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ContractMetadata, ContractType } from '../../types/ethereum-network.types';
|
|
2
|
-
import { ethers } from 'ethers';
|
|
3
|
-
export declare const getContractMetadata: (contractType: ContractType, chainId: number) => ContractMetadata;
|
|
4
|
-
export declare const getContract: (contractType: ContractType, chainId: number, contractAddress?: string) => ethers.Contract;
|
|
5
|
-
export declare const getContractWithFetcherByChainId: (chainId: number, contractType: ContractType, contractAddress?: undefined) => ethers.Contract;
|