@hinkal/common 0.2.17 → 0.2.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/API/getWebsiteURL.d.ts +1 -1
- package/README.md +9 -2
- package/constants/chains.constants.cjs +1 -1
- package/constants/chains.constants.mjs +2 -2
- package/constants/mediaUrls.constants.cjs +1 -1
- package/constants/mediaUrls.constants.d.ts +2 -0
- package/constants/mediaUrls.constants.mjs +3 -1
- package/constants/vite.constants.cjs +1 -1
- package/constants/vite.constants.mjs +36 -13
- package/data-structures/Hinkal/Hinkal.cjs +1 -1
- package/data-structures/Hinkal/Hinkal.d.ts +1 -1
- package/data-structures/Hinkal/Hinkal.mjs +2 -2
- package/data-structures/Hinkal/IHinkal.d.ts +1 -1
- package/data-structures/Hinkal/hinkalApprove.d.ts +1 -1
- package/data-structures/Hinkal/hinkalDepositAndWithdraw.cjs +1 -1
- package/data-structures/Hinkal/hinkalDepositAndWithdraw.mjs +136 -118
- package/data-structures/Hinkal/hinkalInsideTransact.d.ts +1 -1
- package/data-structures/Hinkal/hinkalPrivateWallet.d.ts +1 -1
- package/data-structures/Hinkal/hinkalProxyToPrivate.d.ts +1 -1
- package/data-structures/Hinkal/hinkalSolanaSwap.d.ts +1 -1
- package/data-structures/Hinkal/hinkalSolanaTransfer.d.ts +1 -1
- package/data-structures/Hinkal/hinkalSolanaWithdraw.d.ts +1 -1
- package/data-structures/Hinkal/hinkalSwap.d.ts +1 -1
- package/data-structures/Hinkal/hinkalTransfer.d.ts +1 -1
- package/data-structures/Hinkal/hinkalWithdrawStuckUtxos.cjs +1 -1
- package/data-structures/Hinkal/hinkalWithdrawStuckUtxos.d.ts +2 -2
- package/data-structures/Hinkal/hinkalWithdrawStuckUtxos.mjs +59 -58
- package/error-handling/error-codes.constants.cjs +1 -1
- package/error-handling/error-codes.constants.d.ts +2 -0
- package/error-handling/error-codes.constants.mjs +3 -1
- package/functions/snarkjs/constructEmporiumProof.d.ts +2 -2
- package/functions/snarkjs/constructGeneralZkProof.d.ts +2 -2
- package/functions/snarkjs/generateCircomData.d.ts +1 -1
- package/functions/utils/enum.utils.cjs +1 -0
- package/functions/utils/enum.utils.mjs +14 -0
- package/functions/utils/getDataFromTransaction.d.ts +3 -3
- package/functions/web3/events/getInputUtxosEnclave.d.ts +1 -1
- package/functions/web3/functionCalls/approveToken.cjs +1 -1
- package/functions/web3/functionCalls/approveToken.mjs +51 -47
- package/functions/web3/functionCalls/recoverTransactionFromError.cjs +1 -0
- package/functions/web3/functionCalls/recoverTransactionFromError.d.ts +2 -0
- package/functions/web3/functionCalls/recoverTransactionFromError.mjs +23 -0
- package/functions/web3/functionCalls/transactCallDirect.cjs +1 -1
- package/functions/web3/functionCalls/transactCallDirect.mjs +45 -32
- package/functions/web3/functionCalls/transactCallRelayer.cjs +1 -1
- package/functions/web3/functionCalls/transactCallRelayer.mjs +23 -22
- package/index.cjs +1 -1
- package/index.mjs +116 -115
- package/package.json +2 -2
- package/types/admin.types.cjs +1 -1
- package/types/admin.types.d.ts +3 -1
- package/types/admin.types.mjs +1 -1
- package/types/solana.types.d.ts +2 -0
- package/types/transactions.types.cjs +1 -1
- package/types/transactions.types.d.ts +4 -0
- package/types/transactions.types.mjs +5 -4
- package/webworker/snarkjsWorker/snarkjsWorkerLauncher.cjs +1 -1
- package/webworker/snarkjsWorker/snarkjsWorkerLauncher.mjs +1 -1
- package/webworker/utxoWorker/utxoWorkerLauncher.cjs +1 -1
- package/webworker/utxoWorker/utxoWorkerLauncher.mjs +1 -1
- package/webworker/zkProofWorker/zkProofWorkerLauncher.cjs +1 -1
- package/webworker/zkProofWorker/zkProofWorkerLauncher.mjs +2 -2
package/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { callOneInchAPI as f } from "./API/callOneInchAPI.mjs";
|
|
|
4
4
|
import { callRelayerSolanaTransactBatchAPI as x, callRelayerTransactAPI as A, callRelayerTransactBatchAPI as d } from "./API/callRelayer.mjs";
|
|
5
5
|
import { getGasEstimates as g } from "./API/getGasEstimates.mjs";
|
|
6
6
|
import { getTokenPrices as u } from "./API/getTokenPrice.mjs";
|
|
7
|
-
import { checkRisk as
|
|
7
|
+
import { checkRisk as I } from "./API/checkRisk.mjs";
|
|
8
8
|
import { getIdleRelay as _ } from "./API/relayCalls.mjs";
|
|
9
9
|
import { API as h } from "./API/API.mjs";
|
|
10
10
|
import { getRelayerURL as k } from "./API/getRelayerURL.mjs";
|
|
@@ -19,7 +19,7 @@ import { getHinkalLandingURL as ne, getRewardsURL as ie, getWalletOnboardingURL
|
|
|
19
19
|
import { resolveSns as ce } from "./API/resolve-sns.mjs";
|
|
20
20
|
import { seedlessBackup as me, seedlessCheckPassword as fe, seedlessInit as Se, seedlessSalt as xe, seedlessStatus as Ae } from "./API/seedless-calls.mjs";
|
|
21
21
|
import { getScheduledTransactions as Te } from "./API/scheduled-transactions-calls.mjs";
|
|
22
|
-
import { deleteUnspentUtxos as Ee, getUnspentUtxos as ue, storeUnspentUtxos as
|
|
22
|
+
import { deleteUnspentUtxos as Ee, getUnspentUtxos as ue, storeUnspentUtxos as Re } from "./API/unspent-utxos-calls.mjs";
|
|
23
23
|
import { IMAGE_PATHS as Pe } from "./constants/assets.constants.mjs";
|
|
24
24
|
import { arbMainnetRegistry as Ce, arbMainnetRegistryFixed as he, arcTestnetRegistry as Ne, avalancheRegistry as ke, avalancheRegistryFixed as ye, baseRegistry as Oe, baseRegistryFixed as De, bnbMainnetRegistry as Ue, bnbMainnetRegistryFixed as Le, ethMainnetRegistry as ve, ethMainnetRegistryFixed as be, localhostRegistry as Be, optimismRegistry as Fe, optimismRegistryFixed as Me, polygonRegistry as He, polygonRegistryFixed as Ve, solanaLocalnetRegistry as Ke, solanaMainnetRegistry as We } from "./constants/token-data/index.mjs";
|
|
25
25
|
import { default as Ge } from "./constants/deploy-data/deploy-data-bnbMainnet.json.mjs";
|
|
@@ -32,16 +32,16 @@ import { default as or } from "./constants/deploy-data/deploy-data-base.json.mjs
|
|
|
32
32
|
import { default as ar } from "./constants/deploy-data/deploy-data-localhost.json.mjs";
|
|
33
33
|
import { default as ir } from "./constants/deploy-data/deploy-data-arcTestnet.json.mjs";
|
|
34
34
|
import { default as pr } from "./constants/deploy-data/deploy-data-solana.json.mjs";
|
|
35
|
-
import { ALCHEMY_API_KEY as lr, ALCHEMY_TEST_KEY as mr, EthereumNetworkType as fr, HELIUS_RPC_URL as Sr, WALLET_INITIAL_CHAIN_ID as xr, WALLET_SUPPORTED_CHAINS as Ar, chainIds as dr, chainIdsByType as Tr, getNonLocalhostChainId as gr, isLocalNetwork as Er, isOptimismLike as ur, isSolanaLike as
|
|
35
|
+
import { ALCHEMY_API_KEY as lr, ALCHEMY_TEST_KEY as mr, EthereumNetworkType as fr, HELIUS_RPC_URL as Sr, WALLET_INITIAL_CHAIN_ID as xr, WALLET_SUPPORTED_CHAINS as Ar, chainIds as dr, chainIdsByType as Tr, getNonLocalhostChainId as gr, isLocalNetwork as Er, isOptimismLike as ur, isSolanaLike as Rr, localhostNetwork as Ir, networkRegistry as Pr, solanaChainIdStr as _r } from "./constants/chains.constants.mjs";
|
|
36
36
|
import { NON_NATIVE_GAS_COST_TOKEN_SYMBOL_OPTIONS as hr, defaultFeeToken as Nr } from "./constants/fees.constants.mjs";
|
|
37
37
|
import { contractMetadataMapping as yr, getHinkalParameters as Or, uniswapV2PoolData as Dr, uniswapV3FactoryData as Ur, uniswapV3PoolData as Lr, uniswapV3QuoterData as vr } from "./constants/contracts.constants.mjs";
|
|
38
38
|
import { AIPRISE_KYB_TEMPLATE_ID_PROD as Br, AIPRISE_KYC_TEMPLATE_ID_PROD as Fr, RECLAIM_MESSAGE_TO_SIGN as Mr, ReclaimPassports as Hr, StandardPassports as Vr, SupportedPassports as Kr, aipriseBaseOnboardingProductionUrl as Wr, aipriseBaseOnboardingSandboxUrl as wr, supportedPassportLinks as Gr } from "./constants/kyc.constants.mjs";
|
|
39
39
|
import { API_CONFIG as zr, DATA_SERVER_CONFIG as Xr, DATA_SERVER_URL_ENDPOINT as qr, DATA_SERVER_URL_LOCAL as Zr, PLAYGROUND_RELAYER_URLS as jr, PLAYGROUND_SERVER_URLS as Jr, PLAYGROUND_SNAPSHOT_SERVER_URLS as Qr, PLAYGROUND_URL as $r, PRODUCTION_RELAYER_URLS as eo, PRODUCTION_SERVER_URLS as ro, PRODUCTION_SNAPSHOT_SERVER_URLS as oo, PRODUCTION_URL as to, RELAYER_CONFIG as ao, STAGING_RELAYER_URLS as no, STAGING_SERVER_URLS as io, STAGING_SNAPSHOT_SERVER_URLS as so, STAGING_URL as po, VERIFICATION_ROUTES as co, WALLET_TASK_VERIFICATION_TYPES as lo } from "./constants/server.constants.mjs";
|
|
40
|
-
import { DEPLOYMENT_MODE as fo, deploymentMode as So, isDevelopment as xo, isExtension as Ao, isNode as To, isNotClientProduction as go, isNotProduction as Eo, isPlayground as uo, isSandbox as
|
|
40
|
+
import { DEPLOYMENT_MODE as fo, deploymentMode as So, isDevelopment as xo, isExtension as Ao, isNode as To, isNotClientProduction as go, isNotProduction as Eo, isPlayground as uo, isSandbox as Ro, isStaging as Io, isWebpack as Po } from "./constants/vite.constants.mjs";
|
|
41
41
|
import { ARC_TESTNET_USDC_ADDRESS as Co, AssetChangeType as ho, CIRCOM_MERKLE_LENGTH as No, CIRCOM_P as ko, CIRCOM_P_HALF as yo, COMPUTE_UNIT_PADDING_PERCENTAGE as Oo, EIP1271_FAILURE as Do, EIP1271_SUCCESS as Uo, HINKAL_DEPOSIT_AND_WITHDRAW_VARIABLE_RATE as Lo, HINKAL_PRIVATE_SEND_VARIABLE_RATE as vo, HINKAL_SWAP_VARIABLE_RATE as bo, MAX_COMPUTE_UNIT_LIMIT as Bo, MERKLE_LEVELS as Fo, MICRO_LAMPORTS_PER_CU as Mo, MIN_COMPUTE_UNIT_LIMIT as Ho, NFT_1155_TRANSACTION_TYPE as Vo, NFT_721_TRANSACTION_TYPE as Ko, NFT_TRANSACTION_TYPES as Wo, RELAYERS_ARRAY as wo, RELAYER_ADDRESS1 as Go, RELAYER_ADDRESS2 as Yo, RELAYER_ADDRESS3 as zo, SOLANA_NFT_INTERFACES as Xo, SOLANA_PUBLIC_INPUT_PART_ONE_LENGTH as qo, TOKEN_VALUE_UNLIMITED_THRESHOLD as Zo, TokenType as jo, defaultSignatureData as Jo, ethVolatileAddress as Qo, hinkalSimulationAddress as $o, oneInchZeroAddress as et, ownerPublicKey as rt, permitSignatureValidFor as ot, signaturePhrase as tt, solanaNativeAddress as at, zeroAddress as nt } from "./constants/protocol.constants.mjs";
|
|
42
42
|
import { COINGECKO_API_KEY as st, CoinGeckoChainLabels as pt, coingeckoPriceUrl as ct, coingeckoPriceUrl2 as lt, coingeckoTokenListUrl as mt, getCoinByAddress as ft, getCoinById as St, getCoingeckoIdForNativeTokens as xt, getCoingeckoPlatform as At, proCoingeckoUrl as dt, proHeader as Tt, searchBySymbol as gt } from "./constants/coingecko.constants.mjs";
|
|
43
43
|
import { NETWORKS as ut } from "./constants/backend.constants.mjs";
|
|
44
|
-
import { ACCESS_TOKEN_MINTING_POINTS as
|
|
44
|
+
import { ACCESS_TOKEN_MINTING_POINTS as It, ACCESS_TOKEN_RECLAIM_POINTS as Pt, CERTIFICATION_DISABLE_WEEK as _t, REWARDS_ENCRYPTION_PASSWORD as Ct, REWARDS_MESSAGE_TO_SIGN as ht, REWARD_RECEIVABLE_TOKEN_SYMBOLS as Nt, boostAmounts as kt, lpLink as yt, lpProgramStartWeek as Ot, pointsLink as Dt, raffleProgramStartWeek as Ut, referralLink as Lt } from "./constants/rewards.constants.mjs";
|
|
45
45
|
import { blockReorgDepth as bt } from "./constants/reorg-depths.constants.mjs";
|
|
46
46
|
import { mediaUrls as Ft } from "./constants/mediaUrls.constants.mjs";
|
|
47
47
|
import { allowanceHolder as Ht, pancaceSwapPermit2Address as Vt, permit2Address as Kt, permit2Addresses as Wt, uniswap2Manager as wt, uniswap3Manager as Gt, uniswapApprovalExtraCallData as Yt, uniswapWorkaroundAddresses as zt } from "./constants/permit2.constants.mjs";
|
|
@@ -55,7 +55,7 @@ import { presaleABI as Sa, presaleContractInfoByChain as xa } from "./constants/
|
|
|
55
55
|
import { LIFISCAN_URL as da } from "./constants/lifi.constants.mjs";
|
|
56
56
|
import { oauthUrls as ga } from "./constants/oauthUrls.constants.mjs";
|
|
57
57
|
import { TVL_CHANGER_ACTIVITY_TYPES as ua } from "./constants/activity.constants.mjs";
|
|
58
|
-
import { ACHIEVEMENTS as
|
|
58
|
+
import { ACHIEVEMENTS as Ia, BROTHERHOOD_TASKS as Pa, DAILY_TASKS as _a, POINTS_BOOST_TASKS as Ca, REFERRAL_BONUS_TASK as ha, REWARDS_TASKS as Na, WELCOME_TASKS as ka } from "./constants/tasks.constants.mjs";
|
|
59
59
|
import { EVENTS_INITIAL_BLOCKS as Oa } from "./constants/events.constants.mjs";
|
|
60
60
|
import { APPROVE_FUNCTION_SIGNATURE as Ua, NFT_APPROVE_FUNCTION_SIGNATURE as La, NFT_APPROVE_SINGLE_FUNCTION_SIGNATURE as va, PERMIT2_APPROVE_FUNCTION_SIGNATURE as ba, TRANSFER_FUNCTION_SIGNATURE as Ba } from "./constants/function-signatures.constants.mjs";
|
|
61
61
|
import { OKX_BASE_URL as Ma, OKX_SWAP_PATH as Ha } from "./constants/okx.constants.mjs";
|
|
@@ -68,7 +68,7 @@ import { abiDecodeUtxo as en, checkUtxoSignature as rn, decodeSolanaOnChainUtxo
|
|
|
68
68
|
import { decryptUtxo as cn, decryptUtxoConstructorArgs as ln, encryptUtxo as mn } from "./data-structures/crypto-keys/encryptDecryptUtxo.mjs";
|
|
69
69
|
import { EncryptionKeyPairDefaultValue as Sn, UserKeys as xn, stealthAddressCacheDevice as An, stealthPairCacheDevice as dn } from "./data-structures/crypto-keys/keys.mjs";
|
|
70
70
|
import { getCircomSign as gn, isCircomNegative as En } from "./data-structures/crypto-keys/keyUtils.mjs";
|
|
71
|
-
import { Hinkal as
|
|
71
|
+
import { Hinkal as Rn } from "./data-structures/Hinkal/Hinkal.mjs";
|
|
72
72
|
import { hinkalDeposit as Pn, hinkalDepositForOther as _n } from "./data-structures/Hinkal/hinkalDeposit.mjs";
|
|
73
73
|
import { hinkalSwap as hn } from "./data-structures/Hinkal/hinkalSwap.mjs";
|
|
74
74
|
import { hinkalTransfer as kn } from "./data-structures/Hinkal/hinkalTransfer.mjs";
|
|
@@ -93,7 +93,7 @@ import { AbstractEventService as Si } from "./data-structures/event-service/evm/
|
|
|
93
93
|
import { BlockchainEventEmitter as Ai } from "./data-structures/event-service/evm/BlockchainEventEmitter.mjs";
|
|
94
94
|
import { SolanaBlockchainEventEmitter as Ti } from "./data-structures/event-service/solana/SolanaBlockchainEventEmitter.mjs";
|
|
95
95
|
import { AbstractSolanaEventService as Ei } from "./data-structures/event-service/solana/AbstractSolanaEventService.mjs";
|
|
96
|
-
import { AbstractSolanaSnapshotService as
|
|
96
|
+
import { AbstractSolanaSnapshotService as Ri } from "./data-structures/event-service/solana/AbstractSolanaSnapshotService.mjs";
|
|
97
97
|
import { AbstractSolanaNullifierSnapshotService as Pi } from "./data-structures/event-service/solana/AbstractSolanaNullifierSnapshotService.mjs";
|
|
98
98
|
import { AbstractSolanaCommitmentsSnapshotService as Ci } from "./data-structures/event-service/solana/AbstractSolanaCommitmentsSnapshotService.mjs";
|
|
99
99
|
import { AbstractSolanaAccessTokenSnapshotService as Ni } from "./data-structures/event-service/solana/AbstractSolanaAccessTokenSnapshotService.mjs";
|
|
@@ -119,7 +119,7 @@ import { SnapshotFetcherService as xs } from "./data-structures/snapshot/Snapsho
|
|
|
119
119
|
import { ClientSolanaCommitmentsSnapshotService as ds } from "./data-structures/snapshot/solana-snapshots/ClientSolanaCommitmentsSnapshotService.mjs";
|
|
120
120
|
import { ClientSolanaNullifierSnapshotService as gs } from "./data-structures/snapshot/solana-snapshots/ClientSolanaNullifierSnapshotService.mjs";
|
|
121
121
|
import { ClientSolanaAccessTokenSnapshotService as us } from "./data-structures/snapshot/solana-snapshots/ClientSolanaAccessTokenSnapshotService.mjs";
|
|
122
|
-
import { ClientAccessTokenSnapshotService as
|
|
122
|
+
import { ClientAccessTokenSnapshotService as Is } from "./data-structures/snapshot/evm-snapshots/ClientAccessTokenSnapshotService.mjs";
|
|
123
123
|
import { ClientCommitmentsSnapshotService as _s } from "./data-structures/snapshot/evm-snapshots/ClientCommitmentsSnapshotService.mjs";
|
|
124
124
|
import { ClientNullifierSnapshotService as hs } from "./data-structures/snapshot/evm-snapshots/ClientNullifierSnapshotService.mjs";
|
|
125
125
|
import { ClientApprovalsSnapshotService as ks } from "./data-structures/snapshot/evm-snapshots/ClientApprovalsSnapshotService.mjs";
|
|
@@ -138,14 +138,14 @@ import { logError as ip } from "./error-handling/logError.mjs";
|
|
|
138
138
|
import { ErrorCategory as pp } from "./error-handling/types.mjs";
|
|
139
139
|
import { Logger as lp } from "./error-handling/logger.mjs";
|
|
140
140
|
import { BabABI as fp, ERC1155ABI as Sp, ERC20ABI as xp, ERC721ABI as Ap, GalxeABI as dp, ISwapRouterABI as Tp, factoryABI as gp, quoterV2ABI as Ep, transactionProverABI as up } from "./externalABIs/index.mjs";
|
|
141
|
-
import { checkHinkalAccessToken as
|
|
141
|
+
import { checkHinkalAccessToken as Ip, checkHinkalAccessTokenEVM as Pp, checkHinkalAccessTokenSolana as _p, mintAccessToken as Cp } from "./functions/web3/functionCalls/accessTokenCalls.mjs";
|
|
142
142
|
import { openPassportWindow as Np } from "./functions/kyc/passportHelper.mjs";
|
|
143
143
|
import { openDefaultPassportWindow as yp } from "./functions/kyc/openDefaultPassportWindow.mjs";
|
|
144
144
|
import { absBigInt as Dp, advancedToBigInt as Up, beepsToPercentage as Lp, bigintApplySugar as vp, bigintMax as bp, calculateAmountUsingBeeps as Bp, calculateBigIntSum as Fp, calculateSum as Mp, countTotalAmountInUtxos as Hp, fixDecimalsAmount as Vp, formatAmountInput as Kp, getValueFirstNDigit as Wp, maxBigInt as wp, minBigInt as Gp, toBigInt as Yp, toBigIntOrUndefined as zp, toCommaSeparatedNumberString as Xp, toInt as qp, toNumberOrUndefined as Zp, trimLeadingZeros as jp, truncateToDecimalPlaces as Jp } from "./functions/utils/amounts.utils.mjs";
|
|
145
145
|
import { getFilePath as $p, getHinkalCache as ec, getInHinkalAddressesCache as rc, getInHinkalAddressesFilePath as oc, loadTxsCache as tc, resetCache as ac, resetInHinkalAddressesCache as nc, saveTxsCache as ic, setHinkalCache as sc, setInHinkalAddressesCache as pc } from "./functions/utils/cacheFunctions.mjs";
|
|
146
146
|
import { createCustomRpcProvider as lc, createCustomSolanaConnection as mc, createProvider as fc } from "./functions/utils/create-provider.mjs";
|
|
147
147
|
import { getExternalActionIdFromNumber as xc, getExternalActionIdHash as Ac } from "./functions/utils/external-action.utils.mjs";
|
|
148
|
-
import { aggregateTokenChanges as Tc, formatTokenChangesList as gc, getERC20Token as Ec, getERC20TokenBySymbol as uc, getErc20TokensForChain as
|
|
148
|
+
import { aggregateTokenChanges as Tc, formatTokenChangesList as gc, getERC20Token as Ec, getERC20TokenBySymbol as uc, getErc20TokensForChain as Rc, getHToken as Ic, isArcNativeToken as Pc, isNFTToken as _c, searchCompareFunction as Cc, sortTokens as hc } from "./functions/utils/erc20tokenFunctions.mjs";
|
|
149
149
|
import { requireEnv as kc } from "./functions/utils/requireEnv.mjs";
|
|
150
150
|
import { getSequence as Oc, promisify as Dc, resolveSync as Uc } from "./functions/utils/resolve-sync.utils.mjs";
|
|
151
151
|
import { convertIntegrationProviderToExternalActionId as vc } from "./functions/utils/convertIntegrationProviderToExternalActionId.mjs";
|
|
@@ -160,7 +160,7 @@ import { buildAnchorStealthAddressStructure as Jc, encodeToByte32Array as Qc, ge
|
|
|
160
160
|
import { createAndExtendAddressLookupTable as Sl, getAddressLookupTableAccounts as xl } from "./functions/pre-transaction/addressTableLookup.mjs";
|
|
161
161
|
import { convertSolanaPublicSignals as dl } from "./functions/pre-transaction/solana-public-signals.mjs";
|
|
162
162
|
import { convertOKXToHinkalInstructions as gl } from "./functions/pre-transaction/convert-okx-instructions.mjs";
|
|
163
|
-
import { ensureAtaExists as ul, estimateComputeUnitLimit as
|
|
163
|
+
import { ensureAtaExists as ul, estimateComputeUnitLimit as Rl, sendProxyV0Transaction as Il, sendV0Transaction as Pl, serializeProxyV0Transaction as _l } from "./functions/pre-transaction/sendV0Transaction.mjs";
|
|
164
164
|
import { storeProof as hl } from "./functions/pre-transaction/store-proof.mjs";
|
|
165
165
|
import { sendInitNullifiersTransaction as kl } from "./functions/pre-transaction/sendInitNullifiersTransaction.mjs";
|
|
166
166
|
import { initTokenLimitIfNeeded as Ol } from "./functions/pre-transaction/initTokenLimitIfNeeded.mjs";
|
|
@@ -173,7 +173,7 @@ import { reloadPage as zl } from "./functions/utils/reloadPage.mjs";
|
|
|
173
173
|
import { capitalizeFirstLetter as ql, capitalizeName as Zl, getChainIdFromStateKey as jl, getStateKey as Jl, hexToUtf8 as Ql, isNullOrEmpty as $l, replaceAllInstances as em, toTitleCase as rm, validateEmail as om } from "./functions/utils/string.utils.mjs";
|
|
174
174
|
import { isNicknameValid as am } from "./functions/utils/nickname.utils.mjs";
|
|
175
175
|
import { caseInsensitiveEqual as im, lowerCaseIncludes as sm, lowerCaseStartsWith as pm } from "./functions/utils/caseInsensitive.utils.mjs";
|
|
176
|
-
import { formatDate as lm, formatTxTimestamp as mm, getCurrentDayStart as fm, getCurrentTimeInSeconds as Sm, getCurrentWeekStart as xm, getDelayUntilUtc8 as Am, getEffectiveSevenDaysAgo as dm, getEffectiveToday as Tm, getNextDayDelay as gm, getNextDayISO as Em, getPreviousWeekStart as um, msToISOString as
|
|
176
|
+
import { formatDate as lm, formatTxTimestamp as mm, getCurrentDayStart as fm, getCurrentTimeInSeconds as Sm, getCurrentWeekStart as xm, getDelayUntilUtc8 as Am, getEffectiveSevenDaysAgo as dm, getEffectiveToday as Tm, getNextDayDelay as gm, getNextDayISO as Em, getPreviousWeekStart as um, msToISOString as Rm, waitLittle as Im } from "./functions/utils/time.utils.mjs";
|
|
177
177
|
import { createCacheDevice as _m } from "./functions/utils/cacheDevice.utils.mjs";
|
|
178
178
|
import { debounce as hm, wait as Nm } from "./functions/utils/process.utils.mjs";
|
|
179
179
|
import { getBlockExplorerUrl as ym } from "./functions/utils/getBlockExplorerUrl.mjs";
|
|
@@ -192,7 +192,7 @@ import { trimFieldValues as lf } from "./functions/utils/trimFieldValues.mjs";
|
|
|
192
192
|
import { getNecessaryApprovalChangesData as ff, getNecessaryAssetsForFunding as Sf, getNecessaryAssetsForFundingFromBalance as xf, hasEnoughBalance as Af } from "./functions/utils/walletBalances.utils.mjs";
|
|
193
193
|
import { balanceFetchingMutex as Tf } from "./functions/utils/mutexes.utils.mjs";
|
|
194
194
|
import { convertSolanaTransactionToRelayer as Ef, convertV6ReceiptToRelayer as uf } from "./functions/utils/ethers-formatter.utils.mjs";
|
|
195
|
-
import { extractTokenIdsFromAssetChanges as
|
|
195
|
+
import { extractTokenIdsFromAssetChanges as If } from "./functions/utils/nftTokenFunctions.mjs";
|
|
196
196
|
import { encodeParsedInLogicMetadata as _f } from "./functions/utils/inLogicMetadata.mjs";
|
|
197
197
|
import { getNetworkName as hf } from "./functions/utils/networks.utils.mjs";
|
|
198
198
|
import { isValidUrl as kf } from "./functions/utils/is-valid-url.mjs";
|
|
@@ -205,7 +205,7 @@ import { convertBigIntToBytes32 as Jf, convertBytes32ToBigInt as Qf } from "./fu
|
|
|
205
205
|
import { getUtxosFromReceipt as eS } from "./functions/utils/getUtxosFromReceipt.utils.mjs";
|
|
206
206
|
import { calculateTotalFee as oS, calculateWithdrawalAmount as tS, generateFeeStructure as aS, getGasTokenSymbols as nS } from "./functions/utils/fees.utils.mjs";
|
|
207
207
|
import { calculateDollarValue as sS, ethToWei as pS, getAmountInToken as cS, getAmountInWei as lS, getAmountInWeiOrZero as mS, getAmountWithPrecision as fS, getAmountWithPrecisionOrZero as SS, randomBigInt as xS, toBigIntWithDecimals as AS } from "./functions/web3/etherFunctions.mjs";
|
|
208
|
-
import { attemptGetInputUtxosRemotely as TS, getInputUtxoAndBalance as gS, getInputUtxoAndBalanceOfStuckUtxos as ES, getInputUtxoAndBalancePerToken as uS, getInputUtxosRemotely as
|
|
208
|
+
import { attemptGetInputUtxosRemotely as TS, getInputUtxoAndBalance as gS, getInputUtxoAndBalanceOfStuckUtxos as ES, getInputUtxoAndBalancePerToken as uS, getInputUtxosRemotely as RS } from "./functions/web3/events/getInputUtxoAndBalance.mjs";
|
|
209
209
|
import { addPaddingToUtxos as PS, getShieldedBalance as _S } from "./functions/web3/events/getShieldedBalance.mjs";
|
|
210
210
|
import { getDepositEvents as hS, retrieveEvents as NS } from "./functions/web3/events/web3RetrieveEvents.mjs";
|
|
211
211
|
import { balanceChangedHandler as yS } from "./functions/web3/events/balanceChangedHandler.mjs";
|
|
@@ -225,7 +225,7 @@ import { groupConnectorsByWallet as lx, isInjectedConnector as mx, isMockConnect
|
|
|
225
225
|
import { solanaWalletToConnector as Ax } from "./functions/web3/solana-wagmi-adapter.mjs";
|
|
226
226
|
import { constructZkProof as Tx } from "./functions/snarkjs/constructGeneralZkProof.mjs";
|
|
227
227
|
import { constructEmporiumProof as Ex } from "./functions/snarkjs/constructEmporiumProof.mjs";
|
|
228
|
-
import { buildInNullifiers as
|
|
228
|
+
import { buildInNullifiers as Rx, buildOutCommitments as Ix, calcAccessTokenSiblingAndSidesFromAccessKey as Px, calcAccessTokenSiblingsAndSides as _x, calcAmountChanges as Cx, calcCommitmentsSiblingAndSides as hx, calcEncryptedOutputs as Nx, calcPublicSignalCount as kx, calcStealthAddressStructure as yx, createCallDataHash as Ox, deserializeCircomData as Dx, getSlippageValues as Ux, serializeCircomData as Lx } from "./functions/snarkjs/common.snarkjs.mjs";
|
|
229
229
|
import { generateZkProof as bx } from "./functions/snarkjs/generateZkProof.mjs";
|
|
230
230
|
import { constructSolanaZkProof as Fx } from "./functions/snarkjs/constructSolanaZkProof.mjs";
|
|
231
231
|
import { calculateStakeNullifier as Hx, createStakeCommitment as Vx, decryptStake as Kx, encodeHStakeMetadata as Wx, encryptStake as wx } from "./functions/staking/index.mjs";
|
|
@@ -235,46 +235,46 @@ import { createSwapToEmporiumOpForUniswap as sA, createSwapToEmporiumOpFromData
|
|
|
235
235
|
import { RevokeType as fA } from "./types/approvals.types.mjs";
|
|
236
236
|
import { defaultHookData as xA, defaultHookDataArray as AA, defaultStealthAddressStructure as dA, emptyStealthAddressStructure as TA } from "./types/circom-data.types.mjs";
|
|
237
237
|
import { ContractType as EA } from "./types/ethereum-network.types.mjs";
|
|
238
|
-
import { ExternalActionId as
|
|
238
|
+
import { ExternalActionId as RA } from "./types/external-action.types.mjs";
|
|
239
239
|
import { EventType as PA, HinkalLogicAction as _A, HinkalStakeAction as CA, INTERACTION as hA, IntegrationProvider as NA, UserProgress as kA, defaultFeeStructure as yA, defaultHinkalLogicArgs as OA, defaultUseApprovalUTXOData as DA } from "./types/hinkal.types.mjs";
|
|
240
240
|
import { KycVerificationResult as LA, KycVerificationStatus as vA, Passports as bA, VERIFICATION_TYPE as BA, VerificationTypes as FA } from "./types/kyc.types.mjs";
|
|
241
241
|
import { ApprovalType as HA } from "./types/token.types.mjs";
|
|
242
242
|
import { SlippageType as KA } from "./types/slippage.types.mjs";
|
|
243
|
-
import { TransactionAction as wA,
|
|
244
|
-
import { OldPointType as
|
|
245
|
-
import { HinkalStakeMode as
|
|
246
|
-
import { AdminTransactionType as
|
|
247
|
-
import { ActivityStatus as
|
|
248
|
-
import { SandboxRequestType as
|
|
249
|
-
import { PrivateBalanceUpdateType as
|
|
250
|
-
import { StorageKeys as
|
|
251
|
-
import { TOKEN_PRICE_STATUS as
|
|
252
|
-
import { AchievementTiers as
|
|
253
|
-
import { MemberStatus as
|
|
254
|
-
import { PointsType as
|
|
255
|
-
import { CallsStatus as
|
|
256
|
-
import { HttpMethod as
|
|
257
|
-
import { ConfirmationRequestType as
|
|
258
|
-
import { MessagesFromOffscreen as
|
|
259
|
-
import { ScheduledTransactionStatus as
|
|
260
|
-
import { resetStateMutex as
|
|
261
|
-
import { getERC20Registry as
|
|
262
|
-
import { PopularTokenSymbols as
|
|
263
|
-
import { abi as
|
|
264
|
-
import { abi as
|
|
265
|
-
import { abi as
|
|
266
|
-
import { abi as
|
|
267
|
-
import { abi as
|
|
268
|
-
import { abi as
|
|
269
|
-
import { abi as
|
|
270
|
-
import { abi as
|
|
271
|
-
import { abi as
|
|
272
|
-
import { default as
|
|
273
|
-
import { default as
|
|
243
|
+
import { TransactionAction as wA, TransactionReceiptStatus as GA, TransactionStatus as YA, emptyDecodedTx as zA } from "./types/transactions.types.mjs";
|
|
244
|
+
import { OldPointType as qA, RafflePrizeType as ZA } from "./types/rewards.types.mjs";
|
|
245
|
+
import { HinkalStakeMode as JA } from "./types/hinkal.stake.types.mjs";
|
|
246
|
+
import { AdminTransactionType as $A } from "./types/admin.types.mjs";
|
|
247
|
+
import { ActivityStatus as rd, ActivityTypes as od, DexProviders as td, IntegrationProviderNames as ad, TokenChangeType as nd } from "./types/activities.types.mjs";
|
|
248
|
+
import { SandboxRequestType as sd } from "./types/sandbox.types.mjs";
|
|
249
|
+
import { PrivateBalanceUpdateType as cd } from "./types/balances.types.mjs";
|
|
250
|
+
import { StorageKeys as md } from "./types/cache.types.mjs";
|
|
251
|
+
import { TOKEN_PRICE_STATUS as Sd } from "./types/token-prices.types.mjs";
|
|
252
|
+
import { AchievementTiers as Ad, BrotherhoodTaskTypes as dd, TaskCategory as Td, TaskTypes as gd } from "./types/new-rewards.type.mjs";
|
|
253
|
+
import { MemberStatus as ud, Rank as Rd } from "./types/RewardUserEnums.mjs";
|
|
254
|
+
import { PointsType as Pd, TradingType as _d } from "./types/generatePoints.mjs";
|
|
255
|
+
import { CallsStatus as hd, GetCallsStatusCode as Nd } from "./types/eip5792.types.mjs";
|
|
256
|
+
import { HttpMethod as yd } from "./types/routing.types.mjs";
|
|
257
|
+
import { ConfirmationRequestType as Dd } from "./types/confirmation-request.types.mjs";
|
|
258
|
+
import { MessagesFromOffscreen as Ld } from "./types/offscreen.types.mjs";
|
|
259
|
+
import { ScheduledTransactionStatus as bd } from "./types/scheduled-transactions.types.mjs";
|
|
260
|
+
import { resetStateMutex as Fd } from "./mutexes/mutex.mjs";
|
|
261
|
+
import { getERC20Registry as Hd, getFixedRegistry as Vd } from "./constants/token-data/ERC20Registry.mjs";
|
|
262
|
+
import { PopularTokenSymbols as Wd } from "./constants/token-data/popularTokens.constants.mjs";
|
|
263
|
+
import { abi as Gd } from "./externalABIs/amToken.mjs";
|
|
264
|
+
import { abi as zd } from "./externalABIs/USDC.mjs";
|
|
265
|
+
import { abi as qd } from "./externalABIs/DAI.mjs";
|
|
266
|
+
import { abi as jd } from "./externalABIs/USDR.mjs";
|
|
267
|
+
import { abi as Qd } from "./externalABIs/USDR3CRV.mjs";
|
|
268
|
+
import { abi as eT } from "./externalABIs/USDT.mjs";
|
|
269
|
+
import { abi as oT } from "./externalABIs/WETH.mjs";
|
|
270
|
+
import { abi as aT } from "./externalABIs/BUSD.mjs";
|
|
271
|
+
import { abi as iT } from "./externalABIs/SanctionsList.mjs";
|
|
272
|
+
import { default as pT } from "./externalABIs/OptimismGasPriceOracle.json.mjs";
|
|
273
|
+
import { default as lT } from "./externalABIs/NodeInterfaceABI.json.mjs";
|
|
274
274
|
export {
|
|
275
|
-
|
|
275
|
+
It as ACCESS_TOKEN_MINTING_POINTS,
|
|
276
276
|
Pt as ACCESS_TOKEN_RECLAIM_POINTS,
|
|
277
|
-
|
|
277
|
+
Ia as ACHIEVEMENTS,
|
|
278
278
|
Br as AIPRISE_KYB_TEMPLATE_ID_PROD,
|
|
279
279
|
Fr as AIPRISE_KYC_TEMPLATE_ID_PROD,
|
|
280
280
|
lr as ALCHEMY_API_KEY,
|
|
@@ -294,31 +294,31 @@ export {
|
|
|
294
294
|
Ci as AbstractSolanaCommitmentsSnapshotService,
|
|
295
295
|
Ei as AbstractSolanaEventService,
|
|
296
296
|
Pi as AbstractSolanaNullifierSnapshotService,
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
297
|
+
Ri as AbstractSolanaSnapshotService,
|
|
298
|
+
Ad as AchievementTiers,
|
|
299
|
+
rd as ActivityStatus,
|
|
300
|
+
od as ActivityTypes,
|
|
301
|
+
$A as AdminTransactionType,
|
|
302
|
+
Gd as AmTokenABI,
|
|
303
303
|
HA as ApprovalType,
|
|
304
304
|
cs as ArcPublicTokensDB,
|
|
305
305
|
ho as AssetChangeType,
|
|
306
306
|
Ka as BANNED_WALLET_IDS,
|
|
307
307
|
pa as BRIDGING_URLS,
|
|
308
308
|
Pa as BROTHERHOOD_TASKS,
|
|
309
|
-
|
|
309
|
+
aT as BUSDABI,
|
|
310
310
|
fp as BabABI,
|
|
311
311
|
Us as BasicHttpClient,
|
|
312
312
|
Ai as BlockchainEventEmitter,
|
|
313
|
-
|
|
313
|
+
dd as BrotherhoodTaskTypes,
|
|
314
314
|
_t as CERTIFICATION_DISABLE_WEEK,
|
|
315
315
|
No as CIRCOM_MERKLE_LENGTH,
|
|
316
316
|
ko as CIRCOM_P,
|
|
317
317
|
yo as CIRCOM_P_HALF,
|
|
318
318
|
st as COINGECKO_API_KEY,
|
|
319
319
|
Oo as COMPUTE_UNIT_PADDING_PERCENTAGE,
|
|
320
|
-
|
|
321
|
-
|
|
320
|
+
hd as CallsStatus,
|
|
321
|
+
Is as ClientAccessTokenSnapshotService,
|
|
322
322
|
ks as ClientApprovalsSnapshotService,
|
|
323
323
|
_s as ClientCommitmentsSnapshotService,
|
|
324
324
|
hs as ClientNullifierSnapshotService,
|
|
@@ -326,7 +326,7 @@ export {
|
|
|
326
326
|
ds as ClientSolanaCommitmentsSnapshotService,
|
|
327
327
|
gs as ClientSolanaNullifierSnapshotService,
|
|
328
328
|
pt as CoinGeckoChainLabels,
|
|
329
|
-
|
|
329
|
+
Dd as ConfirmationRequestType,
|
|
330
330
|
EA as ContractType,
|
|
331
331
|
Bm as CustomJSONParse,
|
|
332
332
|
Fm as CustomJSONStringify,
|
|
@@ -336,7 +336,7 @@ export {
|
|
|
336
336
|
qr as DATA_SERVER_URL_ENDPOINT,
|
|
337
337
|
Zr as DATA_SERVER_URL_LOCAL,
|
|
338
338
|
fo as DEPLOYMENT_MODE,
|
|
339
|
-
|
|
339
|
+
td as DexProviders,
|
|
340
340
|
Do as EIP1271_FAILURE,
|
|
341
341
|
Uo as EIP1271_SUCCESS,
|
|
342
342
|
Sp as ERC1155ABI,
|
|
@@ -350,26 +350,26 @@ export {
|
|
|
350
350
|
fr as EthereumNetworkType,
|
|
351
351
|
PA as EventType,
|
|
352
352
|
vs as EventsPublicApprovalsDB,
|
|
353
|
-
|
|
353
|
+
RA as ExternalActionId,
|
|
354
354
|
Hs as FeeOverTransactionValueError,
|
|
355
355
|
Hi as FileCacheDevice,
|
|
356
356
|
dp as GalxeABI,
|
|
357
|
-
|
|
357
|
+
Nd as GetCallsStatusCode,
|
|
358
358
|
Sr as HELIUS_RPC_URL,
|
|
359
359
|
qt as HETH_ERC20_TOKEN_ADDRESS,
|
|
360
360
|
Lo as HINKAL_DEPOSIT_AND_WITHDRAW_VARIABLE_RATE,
|
|
361
361
|
vo as HINKAL_PRIVATE_SEND_VARIABLE_RATE,
|
|
362
362
|
bo as HINKAL_SWAP_VARIABLE_RATE,
|
|
363
|
-
|
|
363
|
+
Rn as Hinkal,
|
|
364
364
|
_A as HinkalLogicAction,
|
|
365
365
|
CA as HinkalStakeAction,
|
|
366
|
-
|
|
367
|
-
|
|
366
|
+
JA as HinkalStakeMode,
|
|
367
|
+
yd as HttpMethod,
|
|
368
368
|
Pe as IMAGE_PATHS,
|
|
369
369
|
hA as INTERACTION,
|
|
370
370
|
Tp as ISwapRouterABI,
|
|
371
371
|
NA as IntegrationProvider,
|
|
372
|
-
|
|
372
|
+
ad as IntegrationProviderNames,
|
|
373
373
|
LA as KycVerificationResult,
|
|
374
374
|
vA as KycVerificationStatus,
|
|
375
375
|
da as LIFISCAN_URL,
|
|
@@ -381,10 +381,10 @@ export {
|
|
|
381
381
|
Fo as MERKLE_LEVELS,
|
|
382
382
|
Mo as MICRO_LAMPORTS_PER_CU,
|
|
383
383
|
Ho as MIN_COMPUTE_UNIT_LIMIT,
|
|
384
|
-
|
|
384
|
+
ud as MemberStatus,
|
|
385
385
|
Jn as MerkleTree,
|
|
386
386
|
ri as MerkleTreeIncompleteError,
|
|
387
|
-
|
|
387
|
+
Ld as MessagesFromOffscreen,
|
|
388
388
|
Fi as MultiThreadedUtxoUtils,
|
|
389
389
|
Zt as NATIVE_TOKEN_WRAPPER_ADDRESSES,
|
|
390
390
|
ut as NETWORKS,
|
|
@@ -394,10 +394,10 @@ export {
|
|
|
394
394
|
va as NFT_APPROVE_SINGLE_FUNCTION_SIGNATURE,
|
|
395
395
|
Wo as NFT_TRANSACTION_TYPES,
|
|
396
396
|
hr as NON_NATIVE_GAS_COST_TOKEN_SYMBOL_OPTIONS,
|
|
397
|
-
|
|
397
|
+
lT as NodeInterfaceABI,
|
|
398
398
|
Ma as OKX_BASE_URL,
|
|
399
399
|
Ha as OKX_SWAP_PATH,
|
|
400
|
-
|
|
400
|
+
qA as OldPointType,
|
|
401
401
|
aA as OpType,
|
|
402
402
|
ba as PERMIT2_APPROVE_FUNCTION_SIGNATURE,
|
|
403
403
|
jr as PLAYGROUND_RELAYER_URLS,
|
|
@@ -410,10 +410,10 @@ export {
|
|
|
410
410
|
oo as PRODUCTION_SNAPSHOT_SERVER_URLS,
|
|
411
411
|
to as PRODUCTION_URL,
|
|
412
412
|
bA as Passports,
|
|
413
|
-
|
|
414
|
-
|
|
413
|
+
Pd as PointsType,
|
|
414
|
+
Wd as PopularTokenSymbols,
|
|
415
415
|
fs as PresaleContractWrapper,
|
|
416
|
-
|
|
416
|
+
cd as PrivateBalanceUpdateType,
|
|
417
417
|
rs as PrivateTokensDB,
|
|
418
418
|
as as PublicTokensDB,
|
|
419
419
|
Mr as RECLAIM_MESSAGE_TO_SIGN,
|
|
@@ -427,8 +427,8 @@ export {
|
|
|
427
427
|
ht as REWARDS_MESSAGE_TO_SIGN,
|
|
428
428
|
Na as REWARDS_TASKS,
|
|
429
429
|
Nt as REWARD_RECEIVABLE_TOKEN_SYMBOLS,
|
|
430
|
-
|
|
431
|
-
|
|
430
|
+
ZA as RafflePrizeType,
|
|
431
|
+
Rd as Rank,
|
|
432
432
|
Hr as ReclaimPassports,
|
|
433
433
|
fA as RevokeType,
|
|
434
434
|
Xo as SOLANA_NFT_INTERFACES,
|
|
@@ -439,35 +439,36 @@ export {
|
|
|
439
439
|
po as STAGING_URL,
|
|
440
440
|
jt as SWAP_FEE_TAKER_ADDRESSES,
|
|
441
441
|
Jt as SWAP_ROUTER_ADDRESSES,
|
|
442
|
-
|
|
443
|
-
|
|
442
|
+
sd as SandboxRequestType,
|
|
443
|
+
bd as ScheduledTransactionStatus,
|
|
444
444
|
Gs as SimulationFailureError,
|
|
445
445
|
KA as SlippageType,
|
|
446
446
|
xs as SnapshotFetcherService,
|
|
447
447
|
Ti as SolanaBlockchainEventEmitter,
|
|
448
448
|
Vr as StandardPassports,
|
|
449
|
-
|
|
449
|
+
md as StorageKeys,
|
|
450
450
|
Kr as SupportedPassports,
|
|
451
451
|
ta as TOKEN_LIMITS,
|
|
452
|
-
|
|
452
|
+
Sd as TOKEN_PRICE_STATUS,
|
|
453
453
|
Zo as TOKEN_VALUE_UNLIMITED_THRESHOLD,
|
|
454
454
|
Ba as TRANSFER_FUNCTION_SIGNATURE,
|
|
455
455
|
ua as TVL_CHANGER_ACTIVITY_TYPES,
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
456
|
+
Td as TaskCategory,
|
|
457
|
+
gd as TaskTypes,
|
|
458
|
+
nd as TokenChangeType,
|
|
459
459
|
Li as TokenChecker,
|
|
460
460
|
jo as TokenType,
|
|
461
|
-
|
|
461
|
+
_d as TradingType,
|
|
462
462
|
wA as TransactionAction,
|
|
463
|
-
GA as
|
|
463
|
+
GA as TransactionReceiptStatus,
|
|
464
|
+
YA as TransactionStatus,
|
|
464
465
|
bi as TransactionType,
|
|
465
466
|
la as UNSUPPORTED_WALLETS_WALLETCONNECT_NAMES,
|
|
466
467
|
ma as UNSUPPORTED_WALLET_IDS,
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
468
|
+
zd as USDCABI,
|
|
469
|
+
Qd as USDR3CRVABI,
|
|
470
|
+
jd as USDRABI,
|
|
471
|
+
eT as USDTABI,
|
|
471
472
|
qs as UserFriendlyErrorCodes,
|
|
472
473
|
xn as UserKeys,
|
|
473
474
|
kA as UserProgress,
|
|
@@ -481,7 +482,7 @@ export {
|
|
|
481
482
|
Ar as WALLET_SUPPORTED_CHAINS,
|
|
482
483
|
lo as WALLET_TASK_VERIFICATION_TYPES,
|
|
483
484
|
ka as WELCOME_TASKS,
|
|
484
|
-
|
|
485
|
+
oT as WETHABI,
|
|
485
486
|
Qt as WETH_ERC20_TOKEN_ADDRESS,
|
|
486
487
|
$t as WRAPPER_TOKEN_EXCHANGE_ADDRESSES,
|
|
487
488
|
en as abiDecodeUtxo,
|
|
@@ -521,8 +522,8 @@ export {
|
|
|
521
522
|
kt as boostAmounts,
|
|
522
523
|
Hl as browserSupported,
|
|
523
524
|
Jc as buildAnchorStealthAddressStructure,
|
|
524
|
-
|
|
525
|
-
|
|
525
|
+
Rx as buildInNullifiers,
|
|
526
|
+
Ix as buildOutCommitments,
|
|
526
527
|
Px as calcAccessTokenSiblingAndSidesFromAccessKey,
|
|
527
528
|
_x as calcAccessTokenSiblingsAndSides,
|
|
528
529
|
Cx as calcAmountChanges,
|
|
@@ -550,10 +551,10 @@ export {
|
|
|
550
551
|
vm as checkChainOrAddressNotUpdated,
|
|
551
552
|
Yx as checkEOAWithDelegation,
|
|
552
553
|
ap as checkErrorForSnapshotRestore,
|
|
553
|
-
|
|
554
|
+
Ip as checkHinkalAccessToken,
|
|
554
555
|
Pp as checkHinkalAccessTokenEVM,
|
|
555
556
|
_p as checkHinkalAccessTokenSolana,
|
|
556
|
-
|
|
557
|
+
I as checkRisk,
|
|
557
558
|
ef as checkTokensForShielding,
|
|
558
559
|
rn as checkUtxoSignature,
|
|
559
560
|
ct as coingeckoPriceUrl,
|
|
@@ -595,7 +596,7 @@ export {
|
|
|
595
596
|
Vf as createVoidSigner,
|
|
596
597
|
Kf as createVoidSolanaWallet,
|
|
597
598
|
Di as customTokenRegistry,
|
|
598
|
-
|
|
599
|
+
qd as daiABI,
|
|
599
600
|
hm as debounce,
|
|
600
601
|
ax as decodeMessage,
|
|
601
602
|
on as decodeSolanaOnChainUtxo,
|
|
@@ -619,7 +620,7 @@ export {
|
|
|
619
620
|
wl as deserializeDecodedTxs,
|
|
620
621
|
j as editBrotherhood,
|
|
621
622
|
Zx as emporiumOp,
|
|
622
|
-
|
|
623
|
+
zA as emptyDecodedTx,
|
|
623
624
|
TA as emptyStealthAddressStructure,
|
|
624
625
|
jx as encodeEmporiumMetadata,
|
|
625
626
|
Wx as encodeHStakeMetadata,
|
|
@@ -629,7 +630,7 @@ export {
|
|
|
629
630
|
wx as encryptStake,
|
|
630
631
|
mn as encryptUtxo,
|
|
631
632
|
ul as ensureAtaExists,
|
|
632
|
-
|
|
633
|
+
Rl as estimateComputeUnitLimit,
|
|
633
634
|
qe as ethMainnetData,
|
|
634
635
|
ve as ethMainnetRegistry,
|
|
635
636
|
be as ethMainnetRegistryFixed,
|
|
@@ -637,7 +638,7 @@ export {
|
|
|
637
638
|
Qo as ethVolatileAddress,
|
|
638
639
|
bs as eventsPublicApprovalsDB,
|
|
639
640
|
ep as extractMessage,
|
|
640
|
-
|
|
641
|
+
If as extractTokenIdsFromAssetChanges,
|
|
641
642
|
gp as factoryABI,
|
|
642
643
|
Vp as fixDecimalsAmount,
|
|
643
644
|
Kp as formatAmountInput,
|
|
@@ -687,24 +688,24 @@ export {
|
|
|
687
688
|
nx as getDecodedMessage,
|
|
688
689
|
Am as getDelayUntilUtc8,
|
|
689
690
|
hS as getDepositEvents,
|
|
690
|
-
|
|
691
|
+
Hd as getERC20Registry,
|
|
691
692
|
Ec as getERC20Token,
|
|
692
693
|
uc as getERC20TokenBySymbol,
|
|
693
694
|
dm as getEffectiveSevenDaysAgo,
|
|
694
695
|
Tm as getEffectiveToday,
|
|
695
696
|
ol as getEncryptedOutputsAccountPublicKey,
|
|
696
|
-
|
|
697
|
+
Rc as getErc20TokensForChain,
|
|
697
698
|
rp as getErrorMessage,
|
|
698
699
|
op as getErrorMessageFromSandboxRequest,
|
|
699
700
|
xc as getExternalActionIdFromNumber,
|
|
700
701
|
Ac as getExternalActionIdHash,
|
|
701
702
|
$p as getFilePath,
|
|
702
|
-
|
|
703
|
+
Vd as getFixedRegistry,
|
|
703
704
|
Wc as getFlatFees,
|
|
704
705
|
g as getGasEstimates,
|
|
705
706
|
nS as getGasTokenSymbols,
|
|
706
707
|
Ks as getGenericFeeOverTransactionValueErrorMessage,
|
|
707
|
-
|
|
708
|
+
Ic as getHToken,
|
|
708
709
|
Of as getHinkalApprovals,
|
|
709
710
|
ec as getHinkalCache,
|
|
710
711
|
ne as getHinkalLandingURL,
|
|
@@ -715,7 +716,7 @@ export {
|
|
|
715
716
|
gS as getInputUtxoAndBalance,
|
|
716
717
|
ES as getInputUtxoAndBalanceOfStuckUtxos,
|
|
717
718
|
uS as getInputUtxoAndBalancePerToken,
|
|
718
|
-
|
|
719
|
+
RS as getInputUtxosRemotely,
|
|
719
720
|
tl as getInstructionsAccountPublicKey,
|
|
720
721
|
Bc as getInteractionFromAction,
|
|
721
722
|
ZS as getLifiPrice,
|
|
@@ -812,11 +813,11 @@ export {
|
|
|
812
813
|
ur as isOptimismLike,
|
|
813
814
|
Dm as isPermit2Tx,
|
|
814
815
|
uo as isPlayground,
|
|
815
|
-
|
|
816
|
+
Ro as isSandbox,
|
|
816
817
|
Sx as isSolanaConnector,
|
|
817
|
-
|
|
818
|
+
Rr as isSolanaLike,
|
|
818
819
|
sn as isSolanaOnChainUtxo,
|
|
819
|
-
|
|
820
|
+
Io as isStaging,
|
|
820
821
|
Hm as isUseApprovalDataEmpty,
|
|
821
822
|
sf as isValidPrivateAddress,
|
|
822
823
|
pf as isValidSolanaPublicKey,
|
|
@@ -827,7 +828,7 @@ export {
|
|
|
827
828
|
te as leaveBrotherhood,
|
|
828
829
|
tc as loadTxsCache,
|
|
829
830
|
ar as localhostData,
|
|
830
|
-
|
|
831
|
+
Ir as localhostNetwork,
|
|
831
832
|
Be as localhostRegistry,
|
|
832
833
|
ip as logError,
|
|
833
834
|
sm as lowerCaseIncludes,
|
|
@@ -841,7 +842,7 @@ export {
|
|
|
841
842
|
eA as modifyDataForProxy,
|
|
842
843
|
rA as modifyDataForProxyWithPrivateKey,
|
|
843
844
|
Xc as modifyVolatileTokenAmountChanges,
|
|
844
|
-
|
|
845
|
+
Rm as msToISOString,
|
|
845
846
|
Pr as networkRegistry,
|
|
846
847
|
lA as nullifyUsdtApprovalIfNeeded,
|
|
847
848
|
ga as oauthUrls,
|
|
@@ -849,7 +850,7 @@ export {
|
|
|
849
850
|
yp as openDefaultPassportWindow,
|
|
850
851
|
Np as openPassportWindow,
|
|
851
852
|
je as optimismData,
|
|
852
|
-
|
|
853
|
+
pT as optimismGasPriceOracleAbi,
|
|
853
854
|
Fe as optimismRegistry,
|
|
854
855
|
Me as optimismRegistryFixed,
|
|
855
856
|
Gc as outputApprovalDataProcessing,
|
|
@@ -902,7 +903,7 @@ export {
|
|
|
902
903
|
ac as resetCache,
|
|
903
904
|
nc as resetInHinkalAddressesCache,
|
|
904
905
|
vn as resetMerkleTrees,
|
|
905
|
-
|
|
906
|
+
Fd as resetStateMutex,
|
|
906
907
|
ce as resolveSns,
|
|
907
908
|
Uc as resolveSync,
|
|
908
909
|
Ws as rethrowKnownGasErrorIfPossible,
|
|
@@ -912,7 +913,7 @@ export {
|
|
|
912
913
|
v as rpcSimulateBundle,
|
|
913
914
|
b as rpcSimulateTransaction,
|
|
914
915
|
ex as runContractFunction,
|
|
915
|
-
|
|
916
|
+
iT as sanctionsListABI,
|
|
916
917
|
ic as saveTxsCache,
|
|
917
918
|
gt as searchBySymbol,
|
|
918
919
|
Cc as searchCompareFunction,
|
|
@@ -923,7 +924,7 @@ export {
|
|
|
923
924
|
xe as seedlessSalt,
|
|
924
925
|
Ae as seedlessStatus,
|
|
925
926
|
kl as sendInitNullifiersTransaction,
|
|
926
|
-
|
|
927
|
+
Il as sendProxyV0Transaction,
|
|
927
928
|
Pl as sendV0Transaction,
|
|
928
929
|
Lx as serializeCircomData,
|
|
929
930
|
Gl as serializeDecodedTxs,
|
|
@@ -945,7 +946,7 @@ export {
|
|
|
945
946
|
dn as stealthPairCacheDevice,
|
|
946
947
|
vl as storeInstructions,
|
|
947
948
|
hl as storeProof,
|
|
948
|
-
|
|
949
|
+
Re as storeUnspentUtxos,
|
|
949
950
|
Gr as supportedPassportLinks,
|
|
950
951
|
F as tenderlyRpcLinks,
|
|
951
952
|
Yp as toBigInt,
|
|
@@ -973,7 +974,7 @@ export {
|
|
|
973
974
|
zt as uniswapWorkaroundAddresses,
|
|
974
975
|
om as validateEmail,
|
|
975
976
|
Nm as wait,
|
|
976
|
-
|
|
977
|
+
Im as waitLittle,
|
|
977
978
|
Qs as walletConnectErrorCodes,
|
|
978
979
|
Vl as walletSupported,
|
|
979
980
|
nt as zeroAddress
|
package/package.json
CHANGED
package/types/admin.types.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e=(_=>(_.PrivateToPrivateSend="private_to_private_send",_.ProxyToPrivateSend="proxy_to_private_send",_.PrivateToPublicSend="private_to_public_send",_.PublicToPublicSend="public_to_public_send",_.PublicToPublicBridgeSend="public_to_public_bridge_send",_.PrivateSwap="private_swap",_.PublicSwap="public_swap",_.PublicBridgeSwap="public_bridge_swap",_.Unshield="unshield",_.Shield="shield",_.Onboarding="onboarding",_.PaymentLink="payment_link",_.FundApprove="fund_approve",_.FundApproveAndTransact="fund_approve_and_transact",_.PublicDappTransaction="public_dapp_transaction",_.PrivateDappTransaction="private_dapp_transaction",_.DepositOnChainUtxos="deposit_on_chain_utxos",_.WithdrawOnChainUtxos="withdraw_on_chain_utxos",_))(e||{});exports.AdminTransactionType=e;
|
package/types/admin.types.d.ts
CHANGED
|
@@ -40,5 +40,7 @@ export declare enum AdminTransactionType {
|
|
|
40
40
|
FundApprove = "fund_approve",
|
|
41
41
|
FundApproveAndTransact = "fund_approve_and_transact",
|
|
42
42
|
PublicDappTransaction = "public_dapp_transaction",
|
|
43
|
-
PrivateDappTransaction = "private_dapp_transaction"
|
|
43
|
+
PrivateDappTransaction = "private_dapp_transaction",
|
|
44
|
+
DepositOnChainUtxos = "deposit_on_chain_utxos",
|
|
45
|
+
WithdrawOnChainUtxos = "withdraw_on_chain_utxos"
|
|
44
46
|
}
|