@sabaaa1/common 0.0.27 → 0.0.29

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.
Files changed (34) hide show
  1. package/assets/snarkjs.worker-IfEWh7KB.js +14803 -0
  2. package/assets/{zkProofWorkerLogic-DB9cbXu-.js → utxo.worker-CmpqHMqD.js} +16093 -14906
  3. package/assets/{utxoWorkerLogic-DEqWaadT.js → zkProof.worker-CmpqHMqD.js} +16723 -16044
  4. package/index.cjs +1 -1
  5. package/index.d.ts +2 -0
  6. package/index.mjs +115 -111
  7. package/package.json +1 -1
  8. package/webworker/snarkjsWorker/snarkjsWorkerLogic.cjs +1 -0
  9. package/webworker/snarkjsWorker/snarkjsWorkerLogic.mjs +40 -0
  10. package/webworker/utxoWorker/utxoWorkerLogic.cjs +1 -0
  11. package/webworker/utxoWorker/utxoWorkerLogic.mjs +76 -0
  12. package/webworker/workerFactory.cjs +1 -1
  13. package/webworker/workerFactory.d.ts +3 -3
  14. package/webworker/workerFactory.mjs +30 -16
  15. package/webworker/workerProxy.cjs +1 -0
  16. package/webworker/workerProxy.mjs +54 -0
  17. package/webworker/workers/snarkjs.worker.d.ts +0 -0
  18. package/webworker/workers/utxo.worker.d.ts +0 -0
  19. package/webworker/workers/zkProof.worker.d.ts +0 -0
  20. package/webworker/zkProofWorker/zkProofWorkerLogic.cjs +1 -0
  21. package/webworker/zkProofWorker/zkProofWorkerLogic.mjs +52 -0
  22. package/assets/snarkjsWorkerLauncher-Dsmwcy9L.js +0 -1176
  23. package/assets/snarkjsWorkerLogic-B9NbAQYW.js +0 -13634
  24. package/assets/utxoWorkerLauncher-BUSzpnDL.js +0 -1205
  25. package/assets/zkProofWorkerLauncher-CoKmCKjC.js +0 -1205
  26. package/webworker/snarkjsWorker/snarkjsWorkerLauncher.cjs +0 -1
  27. package/webworker/snarkjsWorker/snarkjsWorkerLauncher.mjs +0 -4
  28. package/webworker/utxoWorker/utxoWorkerLauncher.cjs +0 -1
  29. package/webworker/utxoWorker/utxoWorkerLauncher.mjs +0 -4
  30. package/webworker/viteWorkerURL.constant.cjs +0 -1
  31. package/webworker/viteWorkerURL.constant.d.ts +0 -9
  32. package/webworker/viteWorkerURL.constant.mjs +0 -12
  33. package/webworker/zkProofWorker/zkProofWorkerLauncher.cjs +0 -1
  34. package/webworker/zkProofWorker/zkProofWorkerLauncher.mjs +0 -4
package/index.mjs CHANGED
@@ -9,20 +9,20 @@ import { getIdleRelay as P } from "./API/relayCalls.mjs";
9
9
  import { API as N } from "./API/API.mjs";
10
10
  import { getRelayerURL as h } from "./API/getRelayerURL.mjs";
11
11
  import { getPublicWalletBalance as y } from "./API/duneAPI.mjs";
12
- import { WALLET_API as L, rpcGetStorageChanges as U, rpcSimulateBundle as B, rpcSimulateTransaction as v, simulateTx as M, tenderlyRpcLinks as b } from "./API/tenderly.api.mjs";
12
+ import { WALLET_API as L, rpcGetStorageChanges as U, rpcSimulateBundle as B, rpcSimulateTransaction as v, simulateTx as M, tenderlyRpcLinks as F } from "./API/tenderly.api.mjs";
13
13
  import { tokensInfoCall as V } from "./API/token-calls.mjs";
14
- import { callLifiAPI as G } from "./API/callLifiAPI.mjs";
15
- import { LifiStatus as W, getLifiStatus as w } from "./API/getLifiStatus.mjs";
14
+ import { callLifiAPI as W } from "./API/callLifiAPI.mjs";
15
+ import { LifiStatus as Y, getLifiStatus as w } from "./API/getLifiStatus.mjs";
16
16
  import { generateAumPoints as X, generateTradingPoints as z } from "./API/generate-trading-points.mjs";
17
17
  import { createBrotherhood as Z, editBrotherhood as j, getBrotherhood as J, getBrotherhoodUsers as Q, getCurrentUserBrotherhood as $, getCurrentUserBrotherhoodUsers as ee, getPublicBrotherhoods as re, joinBrotherhood as oe, leaveBrotherhood as te } from "./API/brotherhoodCalls.mjs";
18
18
  import { getHinkalLandingURL as ie, getRewardsURL as se, getWalletOnboardingURL as ne } from "./API/getWebsiteURL.mjs";
19
19
  import { claimMerchItem as me, createOrUpdateMerchAddress as ce, getCurrentAuctionsInfo as fe, getCurrentDayBoxPrizeCounts as le, getMerchOrders as xe, getMysteryBoxesHistory as Ae, getServerUtc as Se, openMysteryBox as Te } from "./API/mysteryBoxesCalls.mjs";
20
20
  import { IMAGE_PATHS as de } from "./constants/assets.constants.mjs";
21
21
  import { arbMainnetRegistry as Re, arbMainnetRegistryFixed as Ie, arcTestnetRegistry as ue, avalancheRegistry as _e, avalancheRegistryFixed as Pe, baseRegistry as Ce, baseRegistryFixed as Ne, bnbMainnetRegistry as Oe, bnbMainnetRegistryFixed as he, ethMainnetRegistry as De, ethMainnetRegistryFixed as ye, localhostRegistry as ke, optimismRegistry as Le, optimismRegistryFixed as Ue, polygonRegistry as Be, polygonRegistryFixed as ve } from "./constants/token-data/index.mjs";
22
- import { default as be } from "./constants/deploy-data/deploy-data-bnbMainnet.json.mjs";
22
+ import { default as Fe } from "./constants/deploy-data/deploy-data-bnbMainnet.json.mjs";
23
23
  import { default as Ve } from "./constants/deploy-data/deploy-data-arbMainnet.json.mjs";
24
- import { default as Ge } from "./constants/deploy-data/deploy-data-ethMainnet.json.mjs";
25
- import { default as We } from "./constants/deploy-data/deploy-data-optimism.json.mjs";
24
+ import { default as We } from "./constants/deploy-data/deploy-data-ethMainnet.json.mjs";
25
+ import { default as Ye } from "./constants/deploy-data/deploy-data-optimism.json.mjs";
26
26
  import { default as Ke } from "./constants/deploy-data/deploy-data-polygon.json.mjs";
27
27
  import { default as ze } from "./constants/deploy-data/deploy-data-avalanche.json.mjs";
28
28
  import { default as Ze } from "./constants/deploy-data/deploy-data-base.json.mjs";
@@ -32,10 +32,10 @@ import { ALCHEMY_API_KEY as rr, ALCHEMY_TEST_KEY as or, EthereumNetworkType as t
32
32
  import { NON_NATIVE_GAS_COST_TOKEN_SYMBOL_OPTIONS as Ar, defaultFeeToken as Sr } from "./constants/fees.constants.mjs";
33
33
  import { contractMetadataMapping as Er, getHinkalParameters as dr, uniswapV2PoolData as gr, uniswapV3FactoryData as Rr, uniswapV3PoolData as Ir, uniswapV3QuoterData as ur } from "./constants/contracts.constants.mjs";
34
34
  import { AIPRISE_KYB_TEMPLATE_ID_PROD as Pr, AIPRISE_KYC_TEMPLATE_ID_PROD as Cr, RECLAIM_MESSAGE_TO_SIGN as Nr, ReclaimPassports as Or, StandardPassports as hr, SupportedPassports as Dr, aipriseBaseOnboardingProductionUrl as yr, aipriseBaseOnboardingSandboxUrl as kr, supportedPassportLinks as Lr } from "./constants/kyc.constants.mjs";
35
- import { API_CONFIG as Br, DATA_SERVER_CONFIG as vr, DATA_SERVER_URL_ENDPOINT as Mr, DATA_SERVER_URL_LOCAL as br, PLAYGROUND_RELAYER_URLS as Fr, PLAYGROUND_SERVER_URLS as Vr, PLAYGROUND_SNAPSHOT_SERVER_URLS as Hr, PLAYGROUND_URL as Gr, PRODUCTION_RELAYER_URLS as Yr, PRODUCTION_SERVER_URLS as Wr, PRODUCTION_SNAPSHOT_SERVER_URLS as wr, PRODUCTION_URL as Kr, RELAYER_CONFIG as Xr, STAGING_RELAYER_URLS as zr, STAGING_SERVER_URLS as qr, STAGING_SNAPSHOT_SERVER_URLS as Zr, STAGING_URL as jr, VERIFICATION_ROUTES as Jr, WALLET_TASK_VERIFICATION_TYPES as Qr } from "./constants/server.constants.mjs";
35
+ import { API_CONFIG as Br, DATA_SERVER_CONFIG as vr, DATA_SERVER_URL_ENDPOINT as Mr, DATA_SERVER_URL_LOCAL as Fr, PLAYGROUND_RELAYER_URLS as br, PLAYGROUND_SERVER_URLS as Vr, PLAYGROUND_SNAPSHOT_SERVER_URLS as Hr, PLAYGROUND_URL as Wr, PRODUCTION_RELAYER_URLS as Gr, PRODUCTION_SERVER_URLS as Yr, PRODUCTION_SNAPSHOT_SERVER_URLS as wr, PRODUCTION_URL as Kr, RELAYER_CONFIG as Xr, STAGING_RELAYER_URLS as zr, STAGING_SERVER_URLS as qr, STAGING_SNAPSHOT_SERVER_URLS as Zr, STAGING_URL as jr, VERIFICATION_ROUTES as Jr, WALLET_TASK_VERIFICATION_TYPES as Qr } from "./constants/server.constants.mjs";
36
36
  import { DEPLOYMENT_MODE as eo, deploymentMode as ro, isDevelopment as oo, isExtension as to, isNode as ao, isNotClientProduction as io, isNotProduction as so, isPlayground as no, isSandbox as po, isStaging as mo, isWebpack as co } from "./constants/vite.constants.mjs";
37
- import { ARC_TESTNET_USDC_ADDRESS as lo, AssetChangeType as xo, CIRCOM_MERKLE_LENGTH as Ao, CIRCOM_P as So, CIRCOM_P_HALF as To, EIP1271_FAILURE as Eo, EIP1271_SUCCESS as go, HINKAL_PRIVATE_SEND_VARIABLE_RATE as Ro, HINKAL_SWAP_VARIABLE_RATE as Io, MERKLE_LEVELS as uo, NFT_1155_TRANSACTION_TYPE as _o, NFT_721_TRANSACTION_TYPE as Po, NFT_TRANSACTION_TYPES as Co, RELAYERS_ARRAY as No, RELAYER_ADDRESS1 as Oo, RELAYER_ADDRESS2 as ho, RELAYER_ADDRESS3 as Do, TOKEN_VALUE_UNLIMITED_THRESHOLD as yo, TokenType as ko, defaultSignatureData as Lo, ethVolatileAddress as Uo, hinkalSimulationAddress as Bo, oneInchZeroAddress as vo, ownerPublicKey as Mo, permitSignatureValidFor as bo, signaturePhrase as Fo, zeroAddress as Vo } from "./constants/protocol.constants.mjs";
38
- import { COINGECKO_API_KEY as Go, CoinGeckoChainLabels as Yo, coingeckoPriceUrl as Wo, coingeckoPriceUrl2 as wo, coingeckoTokenListUrl as Ko, getCoinByAddress as Xo, getCoinById as zo, getCoingeckoIdForNativeTokens as qo, getCoingeckoPlatform as Zo, proCoingeckoUrl as jo, proHeader as Jo, searchBySymbol as Qo } from "./constants/coingecko.constants.mjs";
37
+ import { ARC_TESTNET_USDC_ADDRESS as lo, AssetChangeType as xo, CIRCOM_MERKLE_LENGTH as Ao, CIRCOM_P as So, CIRCOM_P_HALF as To, EIP1271_FAILURE as Eo, EIP1271_SUCCESS as go, HINKAL_PRIVATE_SEND_VARIABLE_RATE as Ro, HINKAL_SWAP_VARIABLE_RATE as Io, MERKLE_LEVELS as uo, NFT_1155_TRANSACTION_TYPE as _o, NFT_721_TRANSACTION_TYPE as Po, NFT_TRANSACTION_TYPES as Co, RELAYERS_ARRAY as No, RELAYER_ADDRESS1 as Oo, RELAYER_ADDRESS2 as ho, RELAYER_ADDRESS3 as Do, TOKEN_VALUE_UNLIMITED_THRESHOLD as yo, TokenType as ko, defaultSignatureData as Lo, ethVolatileAddress as Uo, hinkalSimulationAddress as Bo, oneInchZeroAddress as vo, ownerPublicKey as Mo, permitSignatureValidFor as Fo, signaturePhrase as bo, zeroAddress as Vo } from "./constants/protocol.constants.mjs";
38
+ import { COINGECKO_API_KEY as Wo, CoinGeckoChainLabels as Go, coingeckoPriceUrl as Yo, coingeckoPriceUrl2 as wo, coingeckoTokenListUrl as Ko, getCoinByAddress as Xo, getCoinById as zo, getCoingeckoIdForNativeTokens as qo, getCoingeckoPlatform as Zo, proCoingeckoUrl as jo, proHeader as Jo, searchBySymbol as Qo } from "./constants/coingecko.constants.mjs";
39
39
  import { NETWORKS as et, getGasStationUrl as rt } from "./constants/backend.constants.mjs";
40
40
  import { ACCESS_TOKEN_MINTING_POINTS as tt, ACCESS_TOKEN_RECLAIM_POINTS as at, CERTIFICATION_DISABLE_WEEK as it, REWARDS_ENCRYPTION_PASSWORD as st, REWARDS_MESSAGE_TO_SIGN as nt, REWARD_RECEIVABLE_TOKEN_SYMBOLS as pt, boostAmounts as mt, lpLink as ct, lpProgramStartWeek as ft, pointsLink as lt, raffleProgramStartWeek as xt, referralLink as At } from "./constants/rewards.constants.mjs";
41
41
  import { blockReorgDepth as Tt } from "./constants/reorg-depths.constants.mjs";
@@ -43,9 +43,9 @@ import { mediaUrls as dt } from "./constants/mediaUrls.constants.mjs";
43
43
  import { allowanceHolder as Rt, pancaceSwapPermit2Address as It, permit2Address as ut, permit2Addresses as _t, uniswap2Manager as Pt, uniswap3Manager as Ct, uniswapApprovalExtraCallData as Nt, uniswapWorkaroundAddresses as Ot } from "./constants/permit2.constants.mjs";
44
44
  import { HETH_ERC20_TOKEN_ADDRESS as Dt, NATIVE_TOKEN_WRAPPER_ADDRESSES as yt, SWAP_FEE_TAKER_ADDRESSES as kt, SWAP_ROUTER_ADDRESSES as Lt, WETH_ERC20_TOKEN_ADDRESS as Ut, WRAPPER_TOKEN_EXCHANGE_ADDRESSES as Bt } from "./constants/addresses.constants.mjs";
45
45
  import { APPROVED_UTXO_CONVERSION_COUNT as Mt } from "./constants/conversion.constants.mjs";
46
- import { TOKEN_LIMITS as Ft, getTokensLimits as Vt } from "./constants/token.limits.constants.mjs";
47
- import { MAX_DISPLAY_DECIMALS as Gt } from "./constants/balance.constants.mjs";
48
- import { BRIDGING_URLS as Wt } from "./constants/bridging.constants.mjs";
46
+ import { TOKEN_LIMITS as bt, getTokensLimits as Vt } from "./constants/token.limits.constants.mjs";
47
+ import { MAX_DISPLAY_DECIMALS as Wt } from "./constants/balance.constants.mjs";
48
+ import { BRIDGING_URLS as Yt } from "./constants/bridging.constants.mjs";
49
49
  import { UNSUPPORTED_WALLETS_WALLETCONNECT_NAMES as Kt, UNSUPPORTED_WALLET_IDS as Xt } from "./constants/wallet.constants.mjs";
50
50
  import { presaleABI as qt, presaleContractInfoByChain as Zt } from "./constants/presale.constants.mjs";
51
51
  import { LIFISCAN_URL as Jt } from "./constants/lifi.constants.mjs";
@@ -57,9 +57,9 @@ import { EVENTS_INITIAL_BLOCKS as _a } from "./constants/events.constants.mjs";
57
57
  import { APPROVE_FUNCTION_SIGNATURE as Ca, NFT_APPROVE_FUNCTION_SIGNATURE as Na, NFT_APPROVE_SINGLE_FUNCTION_SIGNATURE as Oa, PERMIT2_APPROVE_FUNCTION_SIGNATURE as ha, TRANSFER_FUNCTION_SIGNATURE as Da } from "./constants/function-signatures.constants.mjs";
58
58
  import { poseidonFunction as ka, poseidonHash as La, poseidonHolder as Ua } from "./crypto/poseidon.mjs";
59
59
  import { babyJubInstance as va, jubHolder as Ma } from "./crypto/babyJub.mjs";
60
- import { preProcessing as Fa } from "./crypto/preProcessing.mjs";
60
+ import { preProcessing as ba } from "./crypto/preProcessing.mjs";
61
61
  import { ValueCache as Ha } from "./data-structures/ValueCache/ValueCache.mjs";
62
- import { abiDecodeUtxo as Ya, checkUtxoSignature as Wa, decodeUtxo as wa, decodeUtxoConstructorArgs as Ka } from "./data-structures/crypto-keys/decodeUTXO.mjs";
62
+ import { abiDecodeUtxo as Ga, checkUtxoSignature as Ya, decodeUtxo as wa, decodeUtxoConstructorArgs as Ka } from "./data-structures/crypto-keys/decodeUTXO.mjs";
63
63
  import { decryptUtxo as za, decryptUtxoConstructorArgs as qa, encryptUtxo as Za } from "./data-structures/crypto-keys/encryptDecryptUtxo.mjs";
64
64
  import { EncryptionKeyPairDefaultValue as Ja, UserKeys as Qa, stealthAddressCacheDevice as $a, stealthPairCacheDevice as ei } from "./data-structures/crypto-keys/keys.mjs";
65
65
  import { getCircomSign as oi, isCircomNegative as ti } from "./data-structures/crypto-keys/keyUtils.mjs";
@@ -79,9 +79,9 @@ import { AbstractCommitmentsSnapshotService as yi } from "./data-structures/even
79
79
  import { AbstractApprovalsSnapshotService as Li } from "./data-structures/event-service/AbstractApprovalsSnapshotService.mjs";
80
80
  import { AbstractNullifierSnapshotService as Bi } from "./data-structures/event-service/AbstractNullifierSnapshotService.mjs";
81
81
  import { AbstractSnapshotService as Mi } from "./data-structures/event-service/AbstractSnapshotService.mjs";
82
- import { AbstractEventService as Fi } from "./data-structures/event-service/AbstractEventService.mjs";
82
+ import { AbstractEventService as bi } from "./data-structures/event-service/AbstractEventService.mjs";
83
83
  import { BlockchainEventEmitter as Hi } from "./data-structures/event-service/BlockchainEventEmitter.mjs";
84
- import { Utxo as Yi } from "./data-structures/utxo/Utxo.mjs";
84
+ import { Utxo as Gi } from "./data-structures/utxo/Utxo.mjs";
85
85
  import { customTokenRegistry as wi } from "./data-structures/custom-token-registry/CustomTokenRegistry.mjs";
86
86
  import { TokenChecker as Xi } from "./data-structures/token-price-fetcher/TokenChecker.mjs";
87
87
  import { TransactionType as qi } from "./data-structures/transactions-manager/history/history.types.mjs";
@@ -103,10 +103,10 @@ import { SnapshotFetcherService as Os } from "./data-structures/snapshot/Snapsho
103
103
  import { EventsPublicApprovalsDB as Ds, eventsPublicApprovalsDB as ys } from "./data-structures/ApprovalDBs/EventsPublicApprovalsDB.mjs";
104
104
  import { ErrorWithAmount as Ls } from "./error-handling/customErrors/ErrorWithAmount.mjs";
105
105
  import { FeeOverTransactionValueError as Bs } from "./error-handling/customErrors/FeeOverTransactionValueError.mjs";
106
- import { getGenericFeeOverTransactionValueErrorMessage as Ms, rethrowKnownGasErrorIfPossible as bs } from "./error-handling/customErrors/customErrors.helpers.mjs";
106
+ import { getGenericFeeOverTransactionValueErrorMessage as Ms, rethrowKnownGasErrorIfPossible as Fs } from "./error-handling/customErrors/customErrors.helpers.mjs";
107
107
  import { SimulationFailureError as Vs } from "./error-handling/customErrors/SimulationFailureError.mjs";
108
- import { ErrorWithRelayerTransaction as Gs } from "./error-handling/customErrors/ErrorWithTx.mjs";
109
- import { UserFriendlyErrorCodes as Ws, gasErrorCodes as ws, insufficientResourcesErrorCodes as Ks, transactionErrorCodes as Xs, walletConnectErrorCodes as zs } from "./error-handling/error-codes.constants.mjs";
108
+ import { ErrorWithRelayerTransaction as Ws } from "./error-handling/customErrors/ErrorWithTx.mjs";
109
+ import { UserFriendlyErrorCodes as Ys, gasErrorCodes as ws, insufficientResourcesErrorCodes as Ks, transactionErrorCodes as Xs, walletConnectErrorCodes as zs } from "./error-handling/error-codes.constants.mjs";
110
110
  import { extractMessage as Zs, getErrorMessage as js, getErrorMessageFromSandboxRequest as Js } from "./error-handling/get-error.message.mjs";
111
111
  import { checkErrorForSnapshotRestore as $s } from "./error-handling/handleErrorRestore.mjs";
112
112
  import { logError as rn } from "./error-handling/logError.mjs";
@@ -116,7 +116,7 @@ import { BabABI as pn, ERC1155ABI as mn, ERC20ABI as cn, ERC721ABI as fn, GalxeA
116
116
  import { checkHinkalAccessToken as dn, mintAccessToken as gn } from "./functions/web3/functionCalls/accessTokenCalls.mjs";
117
117
  import { openPassportWindow as In } from "./functions/kyc/passportHelper.mjs";
118
118
  import { openDefaultPassportWindow as _n } from "./functions/kyc/openDefaultPassportWindow.mjs";
119
- import { absBigInt as Cn, beepsToPercentage as Nn, bigintApplySugar as On, bigintMax as hn, calculateAmountUsingBeeps as Dn, calculateBigIntSum as yn, calculateSum as kn, countTotalAmountInUtxos as Ln, fixDecimalsAmount as Un, getValueFirstNDigit as Bn, maxBigInt as vn, minBigInt as Mn, toBigInt as bn, toBigIntOrUndefined as Fn, toCommaSeparatedNumberString as Vn, toInt as Hn, toNumberOrUndefined as Gn, trimLeadingZeros as Yn, truncateToDecimalPlaces as Wn } from "./functions/utils/amounts.utils.mjs";
119
+ import { absBigInt as Cn, beepsToPercentage as Nn, bigintApplySugar as On, bigintMax as hn, calculateAmountUsingBeeps as Dn, calculateBigIntSum as yn, calculateSum as kn, countTotalAmountInUtxos as Ln, fixDecimalsAmount as Un, getValueFirstNDigit as Bn, maxBigInt as vn, minBigInt as Mn, toBigInt as Fn, toBigIntOrUndefined as bn, toCommaSeparatedNumberString as Vn, toInt as Hn, toNumberOrUndefined as Wn, trimLeadingZeros as Gn, truncateToDecimalPlaces as Yn } from "./functions/utils/amounts.utils.mjs";
120
120
  import { getFilePath as Kn, getHinkalCache as Xn, getInHinkalAddressesCache as zn, getInHinkalAddressesFilePath as qn, loadTxsCache as Zn, resetCache as jn, resetInHinkalAddressesCache as Jn, saveTxsCache as Qn, setHinkalCache as $n, setInHinkalAddressesCache as ep } from "./functions/utils/cacheFunctions.mjs";
121
121
  import { createProvider as op, createTorRpcProvider as tp } from "./functions/utils/create-provider.mjs";
122
122
  import { getExternalActionIdFromNumber as ip, getExternalActionIdHash as sp } from "./functions/utils/external-action.utils.mjs";
@@ -129,9 +129,9 @@ import { outputUtxoProcessing as Dp } from "./functions/pre-transaction/outputUt
129
129
  import { processGasEstimates as kp } from "./functions/pre-transaction/process-gas-estimates.mjs";
130
130
  import { getFlatFees as Up } from "./functions/pre-transaction/getFlatFees.mjs";
131
131
  import { outputApprovalDataProcessing as vp, outputApprovalDataProcessingForHinkalApprove as Mp } from "./functions/pre-transaction/outputApprovalDataProcessing.mjs";
132
- import { modifyVolatileTokenAmountChanges as Fp } from "./functions/pre-transaction/getVolatileTransferAmount.mjs";
132
+ import { modifyVolatileTokenAmountChanges as bp } from "./functions/pre-transaction/getVolatileTransferAmount.mjs";
133
133
  import { constructAdminData as Hp } from "./functions/pre-transaction/constructAdminData.mjs";
134
- import { getNetworkObject as Yp, getNetworkType as Wp } from "./functions/utils/evmNetworkFunctions.mjs";
134
+ import { getNetworkObject as Gp, getNetworkType as Yp } from "./functions/utils/evmNetworkFunctions.mjs";
135
135
  import { browserSupported as Kp, walletSupported as Xp } from "./functions/utils/userAgent.mjs";
136
136
  import { decodeTxInput as qp, deserializeDecodedTxs as Zp, serializeDecodedTxs as jp } from "./functions/utils/getDataFromTransaction.mjs";
137
137
  import { reloadPage as Qp } from "./functions/utils/reloadPage.mjs";
@@ -142,9 +142,9 @@ import { formatDate as Tm, getCurrentDayStart as Em, getCurrentTimeInSeconds as
142
142
  import { createCacheDevice as Dm } from "./functions/utils/cacheDevice.utils.mjs";
143
143
  import { debounce as km, wait as Lm } from "./functions/utils/process.utils.mjs";
144
144
  import { getBlockExplorerUrl as Bm } from "./functions/utils/getBlockExplorerUrl.mjs";
145
- import { isPermit2Tx as Mm, uniswapWorkaround as bm } from "./functions/utils/involves-permit2-op.mjs";
145
+ import { isPermit2Tx as Mm, uniswapWorkaround as Fm } from "./functions/utils/involves-permit2-op.mjs";
146
146
  import { checkChainOrAddressNotUpdated as Vm } from "./functions/utils/upToDateState.mjs";
147
- import { CustomJSONParse as Gm, CustomJSONStringify as Ym } from "./functions/utils/serialize.utils.mjs";
147
+ import { CustomJSONParse as Wm, CustomJSONStringify as Gm } from "./functions/utils/serialize.utils.mjs";
148
148
  import { isUseApprovalDataEmpty as wm, padUseApprovalUtxoData as Km } from "./functions/utils/processUseApprovalUtxoData.mjs";
149
149
  import { convertEmporiumOpToCallInfo as zm } from "./functions/utils/convertEmporiumOpToCallInfo.mjs";
150
150
  import { getExtendedRecipientInfoFromUserKeys as Zm, getRecipientInfoFromUserKeys as jm } from "./functions/utils/getRecipientInfoFromUserKeys.mjs";
@@ -162,9 +162,9 @@ import { encodeParsedInLogicMetadata as Oc } from "./functions/utils/inLogicMeta
162
162
  import { getNetworkName as Dc } from "./functions/utils/networks.utils.mjs";
163
163
  import { isValidUrl as kc } from "./functions/utils/is-valid-url.mjs";
164
164
  import { getHinkalApprovals as Uc } from "./functions/utils/get-hinkal-approvals.mjs";
165
- import { getAuctionTime as vc, getCurrentAuctionIntervalStartUTC as Mc, getLinearPrice as bc, parseAuctionTime as Fc } from "./functions/utils/mystery-box-auction.utils.mjs";
165
+ import { getAuctionTime as vc, getCurrentAuctionIntervalStartUTC as Mc, getLinearPrice as Fc, parseAuctionTime as bc } from "./functions/utils/mystery-box-auction.utils.mjs";
166
166
  import { postToOffscreen as Hc } from "./functions/utils/postToOffscreen.mjs";
167
- import { getSignatureHeader as Yc } from "./functions/utils/get-signature-header.mjs";
167
+ import { getSignatureHeader as Gc } from "./functions/utils/get-signature-header.mjs";
168
168
  import { calculateDollarValue as wc, ethToWei as Kc, getAmountInToken as Xc, getAmountInWei as zc, getAmountInWeiOrZero as qc, getAmountWithPrecision as Zc, getAmountWithPrecisionOrZero as jc, randomBigInt as Jc, toBigIntWithDecimals as Qc } from "./functions/web3/etherFunctions.mjs";
169
169
  import { attemptGetInputUtxosRemotely as ef, getInputUtxoAndBalance as rf, getInputUtxoAndBalancePerToken as of, getInputUtxosRemotely as tf } from "./functions/web3/events/getInputUtxoAndBalance.mjs";
170
170
  import { addPaddingToUtxos as sf, getShieldedBalance as nf } from "./functions/web3/events/getShieldedBalance.mjs";
@@ -179,8 +179,8 @@ import { getOneInchPrice as yf } from "./functions/web3/oneInchAPI.mjs";
179
179
  import { getLifiPrice as Lf } from "./functions/web3/lifiAPI.mjs";
180
180
  import { runContractFunction as Bf } from "./functions/web3/runContractFunction.mjs";
181
181
  import { getTokenHolder as Mf } from "./functions/web3/getTokenHolder.mjs";
182
- import { decodeMessage as Ff, getDecodedMessage as Vf, getPermitInfo as Hf } from "./functions/web3/EIP-712.mjs";
183
- import { constructZkProof as Yf } from "./functions/snarkjs/constructGeneralZkProof.mjs";
182
+ import { decodeMessage as bf, getDecodedMessage as Vf, getPermitInfo as Hf } from "./functions/web3/EIP-712.mjs";
183
+ import { constructZkProof as Gf } from "./functions/snarkjs/constructGeneralZkProof.mjs";
184
184
  import { constructEmporiumProof as wf } from "./functions/snarkjs/constructEmporiumProof.mjs";
185
185
  import { buildInNullifiers as Xf, buildOutCommitments as zf, calcAccessTokenSiblingsAndSides as qf, calcAmountChanges as Zf, calcCommitmentsSiblingAndSides as jf, calcEncryptedOutputs as Jf, calcPublicSignalCount as Qf, calcStealthAddressStructure as $f, createCallDataHash as el, deserializeCircomData as rl, getSlippageValues as ol, serializeCircomData as tl } from "./functions/snarkjs/common.snarkjs.mjs";
186
186
  import { generateZkProof as il } from "./functions/snarkjs/generateZkProof.mjs";
@@ -189,9 +189,9 @@ import { checkEOAWithDelegation as xl, createApproveEmporiumOp as Al, createTran
189
189
  import { OpType as Nl, produceOp as Ol } from "./functions/private-wallet/opProducer.mjs";
190
190
  import { createSwapToEmporiumOpForUniswap as Dl, createSwapToEmporiumOpFromData as yl, createSwapToEmporiumOps as kl, nullifyApprovalBeforeSwap as Ll } from "./functions/private-wallet/emporium.swap.helpers.mjs";
191
191
  import { RevokeType as Bl } from "./types/approvals.types.mjs";
192
- import { defaultHookData as Ml, defaultHookDataArray as bl, defaultStealthAddressStructure as Fl, emptyStealthAddressStructure as Vl } from "./types/circom-data.types.mjs";
193
- import { ContractType as Gl } from "./types/ethereum-network.types.mjs";
194
- import { ExternalActionId as Wl } from "./types/external-action.types.mjs";
192
+ import { defaultHookData as Ml, defaultHookDataArray as Fl, defaultStealthAddressStructure as bl, emptyStealthAddressStructure as Vl } from "./types/circom-data.types.mjs";
193
+ import { ContractType as Wl } from "./types/ethereum-network.types.mjs";
194
+ import { ExternalActionId as Yl } from "./types/external-action.types.mjs";
195
195
  import { EventType as Kl, HinkalLogicAction as Xl, HinkalStakeAction as zl, INTERACTION as ql, IntegrationProvider as Zl, UserProgress as jl, defaultFeeStructure as Jl, defaultHinkalLogicArgs as Ql, defaultUseApprovalUTXOData as $l } from "./types/hinkal.types.mjs";
196
196
  import { KycVerificationResult as rx, KycVerificationStatus as ox, Passports as tx, VERIFICATION_TYPE as ax, VerificationTypes as ix } from "./types/kyc.types.mjs";
197
197
  import { ApprovalType as nx } from "./types/token.types.mjs";
@@ -205,8 +205,8 @@ import { SandboxRequestType as hx } from "./types/sandbox.types.mjs";
205
205
  import { PrivateBalanceUpdateType as yx } from "./types/balances.types.mjs";
206
206
  import { StorageKeys as Lx } from "./types/cache.types.mjs";
207
207
  import { TOKEN_PRICE_STATUS as Bx } from "./types/token-prices.types.mjs";
208
- import { AchievementTiers as Mx, BrotherhoodTaskTypes as bx, TaskCategory as Fx, TaskTypes as Vx } from "./types/new-rewards.type.mjs";
209
- import { MemberStatus as Gx, Rank as Yx } from "./types/RewardUserEnums.mjs";
208
+ import { AchievementTiers as Mx, BrotherhoodTaskTypes as Fx, TaskCategory as bx, TaskTypes as Vx } from "./types/new-rewards.type.mjs";
209
+ import { MemberStatus as Wx, Rank as Gx } from "./types/RewardUserEnums.mjs";
210
210
  import { PointsType as wx, TradingType as Kx } from "./types/generatePoints.mjs";
211
211
  import { GetCallsStatusCode as zx } from "./types/eip5792.types.mjs";
212
212
  import { MysteryBoxItemFrequency as Zx, MysteryBoxItemRewardType as jx, MysteryBoxRewardStatus as Jx } from "./types/mystery-boxes.types.mjs";
@@ -215,19 +215,21 @@ import { HttpMethod as rA } from "./types/routing.types.mjs";
215
215
  import { ConfirmationRequestType as tA } from "./types/confirmation-request.types.mjs";
216
216
  import { MessagesFromOffscreen as iA } from "./types/offscreen.types.mjs";
217
217
  import { resetStateMutex as nA } from "./mutexes/mutex.mjs";
218
- import { getERC20Registry as mA, getFixedRegistry as cA } from "./constants/token-data/ERC20Registry.mjs";
219
- import { PopularTokenSymbols as lA } from "./constants/token-data/popularTokens.constants.mjs";
220
- import { abi as AA } from "./externalABIs/amToken.mjs";
221
- import { abi as TA } from "./externalABIs/USDC.mjs";
222
- import { abi as dA } from "./externalABIs/DAI.mjs";
223
- import { abi as RA } from "./externalABIs/USDR.mjs";
224
- import { abi as uA } from "./externalABIs/USDR3CRV.mjs";
225
- import { abi as PA } from "./externalABIs/USDT.mjs";
226
- import { abi as NA } from "./externalABIs/WETH.mjs";
227
- import { abi as hA } from "./externalABIs/BUSD.mjs";
228
- import { abi as yA } from "./externalABIs/SanctionsList.mjs";
229
- import { default as LA } from "./externalABIs/OptimismGasPriceOracle.json.mjs";
230
- import { default as BA } from "./externalABIs/NodeInterfaceABI.json.mjs";
218
+ import { WorkerFactory as mA } from "./webworker/workerFactory.mjs";
219
+ import { performTaskWithWorker as fA } from "./webworker/performTaskWithWorker.mjs";
220
+ import { getERC20Registry as xA, getFixedRegistry as AA } from "./constants/token-data/ERC20Registry.mjs";
221
+ import { PopularTokenSymbols as TA } from "./constants/token-data/popularTokens.constants.mjs";
222
+ import { abi as dA } from "./externalABIs/amToken.mjs";
223
+ import { abi as RA } from "./externalABIs/USDC.mjs";
224
+ import { abi as uA } from "./externalABIs/DAI.mjs";
225
+ import { abi as PA } from "./externalABIs/USDR.mjs";
226
+ import { abi as NA } from "./externalABIs/USDR3CRV.mjs";
227
+ import { abi as hA } from "./externalABIs/USDT.mjs";
228
+ import { abi as yA } from "./externalABIs/WETH.mjs";
229
+ import { abi as LA } from "./externalABIs/BUSD.mjs";
230
+ import { abi as BA } from "./externalABIs/SanctionsList.mjs";
231
+ import { default as MA } from "./externalABIs/OptimismGasPriceOracle.json.mjs";
232
+ import { default as bA } from "./externalABIs/NodeInterfaceABI.json.mjs";
231
233
  export {
232
234
  tt as ACCESS_TOKEN_MINTING_POINTS,
233
235
  at as ACCESS_TOKEN_RECLAIM_POINTS,
@@ -244,14 +246,14 @@ export {
244
246
  hi as AbstractAccessTokenSnapshotService,
245
247
  Li as AbstractApprovalsSnapshotService,
246
248
  yi as AbstractCommitmentsSnapshotService,
247
- Fi as AbstractEventService,
249
+ bi as AbstractEventService,
248
250
  Bi as AbstractNullifierSnapshotService,
249
251
  Mi as AbstractSnapshotService,
250
252
  Mx as AchievementTiers,
251
253
  ux as ActivityStatus,
252
254
  _x as ActivityTypes,
253
255
  Rx as AdminTransactionType,
254
- AA as AmTokenABI,
256
+ dA as AmTokenABI,
255
257
  nx as ApprovalType,
256
258
  us as ArcPublicTokensDB,
257
259
  xo as AssetChangeType,
@@ -259,28 +261,28 @@ export {
259
261
  oa as BOX_DAILY_CLAIM_LIMIT,
260
262
  ta as BOX_ENDING_PRICES,
261
263
  aa as BOX_STARTING_PRICES,
262
- Wt as BRIDGING_URLS,
264
+ Yt as BRIDGING_URLS,
263
265
  ia as BRONZE_MYSTERY_BOX_ITEMS,
264
266
  Ta as BROTHERHOOD_TASKS,
265
- hA as BUSDABI,
267
+ LA as BUSDABI,
266
268
  pn as BabABI,
267
269
  Hi as BlockchainEventEmitter,
268
- bx as BrotherhoodTaskTypes,
270
+ Fx as BrotherhoodTaskTypes,
269
271
  it as CERTIFICATION_DISABLE_WEEK,
270
272
  Ao as CIRCOM_MERKLE_LENGTH,
271
273
  So as CIRCOM_P,
272
274
  To as CIRCOM_P_HALF,
273
- Go as COINGECKO_API_KEY,
274
- Yo as CoinGeckoChainLabels,
275
+ Wo as COINGECKO_API_KEY,
276
+ Go as CoinGeckoChainLabels,
275
277
  tA as ConfirmationRequestType,
276
- Gl as ContractType,
277
- Gm as CustomJSONParse,
278
- Ym as CustomJSONStringify,
278
+ Wl as ContractType,
279
+ Wm as CustomJSONParse,
280
+ Gm as CustomJSONStringify,
279
281
  Ea as DAILY_TASKS,
280
282
  vr as DATA_SERVER_CONFIG,
281
283
  o as DATA_SERVER_URL,
282
284
  Mr as DATA_SERVER_URL_ENDPOINT,
283
- br as DATA_SERVER_URL_LOCAL,
285
+ Fr as DATA_SERVER_URL_LOCAL,
284
286
  eo as DEPLOYMENT_MODE,
285
287
  Px as DexProviders,
286
288
  Eo as EIP1271_FAILURE,
@@ -292,11 +294,11 @@ export {
292
294
  Ja as EncryptionKeyPairDefaultValue,
293
295
  tn as ErrorCategory,
294
296
  Ls as ErrorWithAmount,
295
- Gs as ErrorWithRelayerTransaction,
297
+ Ws as ErrorWithRelayerTransaction,
296
298
  tr as EthereumNetworkType,
297
299
  Kl as EventType,
298
300
  Ds as EventsPublicApprovalsDB,
299
- Wl as ExternalActionId,
301
+ Yl as ExternalActionId,
300
302
  Bs as FeeOverTransactionValueError,
301
303
  Qi as FileCacheDevice,
302
304
  sa as GOLD_MYSTERY_BOX_ITEMS,
@@ -318,15 +320,15 @@ export {
318
320
  rx as KycVerificationResult,
319
321
  ox as KycVerificationStatus,
320
322
  Jt as LIFISCAN_URL,
321
- W as LifiStatus,
323
+ Y as LifiStatus,
322
324
  es as LocalStorageCacheDevice,
323
325
  sn as Logger,
324
- Gt as MAX_DISPLAY_DECIMALS,
326
+ Wt as MAX_DISPLAY_DECIMALS,
325
327
  uo as MERKLE_LEVELS,
326
328
  na as MYSTERY_BOX_ITEMS,
327
329
  pa as MYSTERY_BOX_ITEM_BY_ID,
328
330
  ma as MYSTERY_BOX_ITEM_BY_RANK,
329
- Gx as MemberStatus,
331
+ Wx as MemberStatus,
330
332
  $x as MerchOrderStatus,
331
333
  ui as MerkleTree,
332
334
  Ni as MerkleTreeIncompleteError,
@@ -344,22 +346,22 @@ export {
344
346
  Oa as NFT_APPROVE_SINGLE_FUNCTION_SIGNATURE,
345
347
  Co as NFT_TRANSACTION_TYPES,
346
348
  Ar as NON_NATIVE_GAS_COST_TOKEN_SYMBOL_OPTIONS,
347
- BA as NodeInterfaceABI,
349
+ bA as NodeInterfaceABI,
348
350
  Sx as OldPointType,
349
351
  Nl as OpType,
350
352
  ha as PERMIT2_APPROVE_FUNCTION_SIGNATURE,
351
- Fr as PLAYGROUND_RELAYER_URLS,
353
+ br as PLAYGROUND_RELAYER_URLS,
352
354
  Vr as PLAYGROUND_SERVER_URLS,
353
355
  Hr as PLAYGROUND_SNAPSHOT_SERVER_URLS,
354
- Gr as PLAYGROUND_URL,
356
+ Wr as PLAYGROUND_URL,
355
357
  da as POINTS_BOOST_TASKS,
356
- Yr as PRODUCTION_RELAYER_URLS,
357
- Wr as PRODUCTION_SERVER_URLS,
358
+ Gr as PRODUCTION_RELAYER_URLS,
359
+ Yr as PRODUCTION_SERVER_URLS,
358
360
  wr as PRODUCTION_SNAPSHOT_SERVER_URLS,
359
361
  Kr as PRODUCTION_URL,
360
362
  tx as Passports,
361
363
  wx as PointsType,
362
- lA as PopularTokenSymbols,
364
+ TA as PopularTokenSymbols,
363
365
  Cs as PresaleContractWrapper,
364
366
  yx as PrivateBalanceUpdateType,
365
367
  As as PrivateTokensDB,
@@ -376,7 +378,7 @@ export {
376
378
  Ra as REWARDS_TASKS,
377
379
  pt as REWARD_RECEIVABLE_TOKEN_SYMBOLS,
378
380
  Tx as RafflePrizeType,
379
- Yx as Rank,
381
+ Gx as Rank,
380
382
  Or as ReclaimPassports,
381
383
  Bl as RevokeType,
382
384
  fa as SILVER_MYSTERY_BOX_ITEMS,
@@ -393,12 +395,12 @@ export {
393
395
  hr as StandardPassports,
394
396
  Lx as StorageKeys,
395
397
  Dr as SupportedPassports,
396
- Ft as TOKEN_LIMITS,
398
+ bt as TOKEN_LIMITS,
397
399
  Bx as TOKEN_PRICE_STATUS,
398
400
  yo as TOKEN_VALUE_UNLIMITED_THRESHOLD,
399
401
  Da as TRANSFER_FUNCTION_SIGNATURE,
400
402
  xa as TVL_CHANGER_ACTIVITY_TYPES,
401
- Fx as TaskCategory,
403
+ bx as TaskCategory,
402
404
  Vx as TaskTypes,
403
405
  Nx as TokenChangeType,
404
406
  Xi as TokenChecker,
@@ -409,14 +411,14 @@ export {
409
411
  qi as TransactionType,
410
412
  Kt as UNSUPPORTED_WALLETS_WALLETCONNECT_NAMES,
411
413
  Xt as UNSUPPORTED_WALLET_IDS,
412
- TA as USDCABI,
413
- uA as USDR3CRVABI,
414
- RA as USDRABI,
415
- PA as USDTABI,
416
- Ws as UserFriendlyErrorCodes,
414
+ RA as USDCABI,
415
+ NA as USDR3CRVABI,
416
+ PA as USDRABI,
417
+ hA as USDTABI,
418
+ Ys as UserFriendlyErrorCodes,
417
419
  Qa as UserKeys,
418
420
  jl as UserProgress,
419
- Yi as Utxo,
421
+ Gi as Utxo,
420
422
  Jr as VERIFICATION_ROUTES,
421
423
  ax as VERIFICATION_TYPE,
422
424
  Ha as ValueCache,
@@ -426,10 +428,11 @@ export {
426
428
  ir as WALLET_SUPPORTED_CHAINS,
427
429
  Qr as WALLET_TASK_VERIFICATION_TYPES,
428
430
  Ia as WELCOME_TASKS,
429
- NA as WETHABI,
431
+ yA as WETHABI,
430
432
  Ut as WETH_ERC20_TOKEN_ADDRESS,
431
433
  Bt as WRAPPER_TOKEN_EXCHANGE_ADDRESSES,
432
- Ya as abiDecodeUtxo,
434
+ mA as WorkerFactory,
435
+ Ga as abiDecodeUtxo,
433
436
  Cn as absBigInt,
434
437
  os as activityStorage,
435
438
  sf as addPaddingToUtxos,
@@ -459,7 +462,7 @@ export {
459
462
  On as bigintApplySugar,
460
463
  hn as bigintMax,
461
464
  Tt as blockReorgDepth,
462
- be as bnbMainnetData,
465
+ Fe as bnbMainnetData,
463
466
  Oe as bnbMainnetRegistry,
464
467
  he as bnbMainnetRegistryFixed,
465
468
  mt as boostAmounts,
@@ -477,7 +480,7 @@ export {
477
480
  wc as calculateDollarValue,
478
481
  nl as calculateStakeNullifier,
479
482
  kn as calculateSum,
480
- G as callLifiAPI,
483
+ W as callLifiAPI,
481
484
  l as callOneInchAPI,
482
485
  A as callRelayerTransactAPI,
483
486
  em as capitalizeFirstLetter,
@@ -491,15 +494,15 @@ export {
491
494
  dn as checkHinkalAccessToken,
492
495
  u as checkRisk,
493
496
  ic as checkTokensForShielding,
494
- Wa as checkUtxoSignature,
497
+ Ya as checkUtxoSignature,
495
498
  me as claimMerchItem,
496
- Wo as coingeckoPriceUrl,
499
+ Yo as coingeckoPriceUrl,
497
500
  wo as coingeckoPriceUrl2,
498
501
  Ko as coingeckoTokenListUrl,
499
502
  Hp as constructAdminData,
500
503
  wf as constructEmporiumProof,
501
504
  mc as constructStealthAddressStructure,
502
- Yf as constructZkProof,
505
+ Gf as constructZkProof,
503
506
  cs as contactStorage,
504
507
  Er as contractMetadataMapping,
505
508
  zm as convertEmporiumOpToCallInfo,
@@ -520,9 +523,9 @@ export {
520
523
  Sl as createTransaferEmporiumOpsBatch,
521
524
  Tl as createTransferToEmporiumOp,
522
525
  wi as customTokenRegistry,
523
- dA as daiABI,
526
+ uA as daiABI,
524
527
  km as debounce,
525
- Ff as decodeMessage,
528
+ bf as decodeMessage,
526
529
  qp as decodeTxInput,
527
530
  wa as decodeUtxo,
528
531
  Ka as decodeUtxoConstructorArgs,
@@ -533,9 +536,9 @@ export {
533
536
  Sr as defaultFeeToken,
534
537
  Ql as defaultHinkalLogicArgs,
535
538
  Ml as defaultHookData,
536
- bl as defaultHookDataArray,
539
+ Fl as defaultHookDataArray,
537
540
  Lo as defaultSignatureData,
538
- Fl as defaultStealthAddressStructure,
541
+ bl as defaultStealthAddressStructure,
539
542
  $l as defaultUseApprovalUTXOData,
540
543
  ro as deploymentMode,
541
544
  rl as deserializeCircomData,
@@ -549,7 +552,7 @@ export {
549
552
  Oc as encodeParsedInLogicMetadata,
550
553
  fl as encryptStake,
551
554
  Za as encryptUtxo,
552
- Ge as ethMainnetData,
555
+ We as ethMainnetData,
553
556
  De as ethMainnetRegistry,
554
557
  ye as ethMainnetRegistryFixed,
555
558
  Kc as ethToWei,
@@ -601,7 +604,7 @@ export {
601
604
  t as getDataServerURL,
602
605
  Vf as getDecodedMessage,
603
606
  mf as getDepositEvents,
604
- mA as getERC20Registry,
607
+ xA as getERC20Registry,
605
608
  cp as getERC20Token,
606
609
  fp as getERC20TokenBySymbol,
607
610
  Rm as getEffectiveMonthStart,
@@ -614,7 +617,7 @@ export {
614
617
  ip as getExternalActionIdFromNumber,
615
618
  sp as getExternalActionIdHash,
616
619
  Kn as getFilePath,
617
- cA as getFixedRegistry,
620
+ AA as getFixedRegistry,
618
621
  Up as getFlatFees,
619
622
  T as getGasEstimates,
620
623
  rt as getGasStationUrl,
@@ -633,7 +636,7 @@ export {
633
636
  Op as getInteractionFromAction,
634
637
  Lf as getLifiPrice,
635
638
  w as getLifiStatus,
636
- bc as getLinearPrice,
639
+ Fc as getLinearPrice,
637
640
  xe as getMerchOrders,
638
641
  gf as getMyApprovalAmountForInteraction,
639
642
  Ae as getMysteryBoxesHistory,
@@ -641,8 +644,8 @@ export {
641
644
  Ec as getNecessaryAssetsForFunding,
642
645
  dc as getNecessaryAssetsForFundingFromBalance,
643
646
  Dc as getNetworkName,
644
- Yp as getNetworkObject,
645
- Wp as getNetworkType,
647
+ Gp as getNetworkObject,
648
+ Yp as getNetworkType,
646
649
  _m as getNextDayDelay,
647
650
  Pm as getNextDayISO,
648
651
  pr as getNonLocalhostChainId,
@@ -664,7 +667,7 @@ export {
664
667
  a as getServerURL,
665
668
  Se as getServerUtc,
666
669
  nf as getShieldedBalance,
667
- Yc as getSignatureHeader,
670
+ Gc as getSignatureHeader,
668
671
  ol as getSlippageValues,
669
672
  i as getSnapshotServerURL,
670
673
  tm as getStateKey,
@@ -730,7 +733,7 @@ export {
730
733
  gn as mintAccessToken,
731
734
  ul as modifyDataForProxy,
732
735
  _l as modifyDataForProxyWithPrivateKey,
733
- Fp as modifyVolatileTokenAmountChanges,
736
+ bp as modifyVolatileTokenAmountChanges,
734
737
  Nm as msToISOString,
735
738
  lr as networkRegistry,
736
739
  Ll as nullifyApprovalBeforeSwap,
@@ -739,8 +742,8 @@ export {
739
742
  _n as openDefaultPassportWindow,
740
743
  Te as openMysteryBox,
741
744
  In as openPassportWindow,
742
- We as optimismData,
743
- LA as optimismGasPriceOracleAbi,
745
+ Ye as optimismData,
746
+ MA as optimismGasPriceOracleAbi,
744
747
  Le as optimismRegistry,
745
748
  Ue as optimismRegistryFixed,
746
749
  vp as outputApprovalDataProcessing,
@@ -749,10 +752,11 @@ export {
749
752
  Mo as ownerPublicKey,
750
753
  Km as padUseApprovalUtxoData,
751
754
  It as pancaceSwapPermit2Address,
752
- Fc as parseAuctionTime,
755
+ bc as parseAuctionTime,
756
+ fA as performTaskWithWorker,
753
757
  ut as permit2Address,
754
758
  _t as permit2Addresses,
755
- bo as permitSignatureValidFor,
759
+ Fo as permitSignatureValidFor,
756
760
  lt as pointsLink,
757
761
  Ke as polygonData,
758
762
  Be as polygonRegistry,
@@ -761,7 +765,7 @@ export {
761
765
  La as poseidonHash,
762
766
  Ua as poseidonHolder,
763
767
  Hc as postToOffscreen,
764
- Fa as preProcessing,
768
+ ba as preProcessing,
765
769
  qt as presaleABI,
766
770
  Zt as presaleContractInfoByChain,
767
771
  ps as pricesStorage,
@@ -787,14 +791,14 @@ export {
787
791
  di as resetMerkleTrees,
788
792
  nA as resetStateMutex,
789
793
  _p as resolveSync,
790
- bs as rethrowKnownGasErrorIfPossible,
794
+ Fs as rethrowKnownGasErrorIfPossible,
791
795
  cf as retrieveEvents,
792
796
  U as rpcGetStorageChanges,
793
797
  tc as rpcIntEncode,
794
798
  B as rpcSimulateBundle,
795
799
  v as rpcSimulateTransaction,
796
800
  Bf as runContractFunction,
797
- yA as sanctionsListABI,
801
+ BA as sanctionsListABI,
798
802
  Qn as saveTxsCache,
799
803
  Qo as searchBySymbol,
800
804
  Tp as searchCompareFunction,
@@ -803,28 +807,28 @@ export {
803
807
  jp as serializeDecodedTxs,
804
808
  $n as setHinkalCache,
805
809
  ep as setInHinkalAddressesCache,
806
- Fo as signaturePhrase,
810
+ bo as signaturePhrase,
807
811
  ls as signedMessagesStorage,
808
812
  M as simulateTx,
809
813
  Ep as sortTokens,
810
814
  $a as stealthAddressCacheDevice,
811
815
  ei as stealthPairCacheDevice,
812
816
  Lr as supportedPassportLinks,
813
- b as tenderlyRpcLinks,
814
- bn as toBigInt,
815
- Fn as toBigIntOrUndefined,
817
+ F as tenderlyRpcLinks,
818
+ Fn as toBigInt,
819
+ bn as toBigIntOrUndefined,
816
820
  Qc as toBigIntWithDecimals,
817
821
  Vn as toCommaSeparatedNumberString,
818
822
  Hn as toInt,
819
- Gn as toNumberOrUndefined,
823
+ Wn as toNumberOrUndefined,
820
824
  nm as toTitleCase,
821
825
  Rs as tokenVisibilityStorage,
822
826
  V as tokensInfoCall,
823
827
  Xs as transactionErrorCodes,
824
828
  Tn as transactionProverABI,
825
829
  Ac as trimFieldValues,
826
- Yn as trimLeadingZeros,
827
- Wn as truncateToDecimalPlaces,
830
+ Gn as trimLeadingZeros,
831
+ Yn as truncateToDecimalPlaces,
828
832
  Pt as uniswap2Manager,
829
833
  Ct as uniswap3Manager,
830
834
  Nt as uniswapApprovalExtraCallData,
@@ -832,7 +836,7 @@ export {
832
836
  Rr as uniswapV3FactoryData,
833
837
  Ir as uniswapV3PoolData,
834
838
  ur as uniswapV3QuoterData,
835
- bm as uniswapWorkaround,
839
+ Fm as uniswapWorkaround,
836
840
  Ot as uniswapWorkaroundAddresses,
837
841
  pm as validateEmail,
838
842
  Lm as wait,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sabaaa1/common",
3
- "version": "0.0.27",
3
+ "version": "0.0.29",
4
4
  "homepage": "hinkal.pro",
5
5
  "author": {
6
6
  "name": "Hinkal Protocol"
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const M=require("../workerProxy.cjs"),i=require("../../constants/vite.constants.cjs"),O=require("snarkjs"),v=require("axios");function F(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const g=F(O),n=new M.WorkerProxy,c=async e=>{const{data:t}=await v.get(e,{responseType:"arraybuffer"});return new Uint8Array(t)},b=async e=>{try{const{input:t,wasmFilePath:r,zKeyFilePath:s,chainId:w}=e.payload.data,{hostLocation:{origin:l},constants:{isDevelopment:k,chains:{chainIds:P}}}=e.metadata;let a=r,o=s,u,f;const h=a.startsWith("https://");if(i.isNode&&!h){i.isWebpack?(a=`libs/hardhat/test/circuits/${r}`,o=`libs/hardhat/test/circuits/${s}`):!i.isWebpack&&k&&(a=`test/circuits/${r}`,o=`test/circuits/${s}`);const y=require("path");a=y.resolve(a),o=y.resolve(o)}i.isNode&&h?(u=await c(a),f=await c(o)):w===P.localhost&&!i.isNode&&(a=`${l}/${r}`,o=`${l}/${s}`);const{proof:d,publicSignals:p}=await g.groth16.fullProve(t,u??a,f??o),m=await g.groth16.exportSolidityCallData(d,p),$=JSON.parse(`[${m}]`);n.postMessageToMainThread({zkCallData:$,proof:d,publicSignals:p})}catch(t){console.error(t),n.postErrorToMainThread(t)}};n.attachWorkerSideOnMessage(b);exports.default=n;exports.fetchUint8Array=c;exports.onWorkerMessage=b;