@hinkal/common 0.0.111 → 0.0.113
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/index-DXElTGy9.mjs +254449 -0
- package/index.js +455 -642
- package/package.json +1 -1
- package/{webworker/snarkjsWorker/snarkjsWorkerLogic.js → snarkjsWorkerLogic-CVna_BW9.mjs} +1 -1
- package/utxoWorkerLogic-B1Hh-bq4.mjs +64 -0
- package/{webworker/workerProxy.js → workerProxy-BDj498Ht.mjs} +1 -1
- package/zkProofWorkerLogic-D9rxuuiK.mjs +60 -0
- package/API/API.js +0 -58
- package/API/HinkalPointsCalls.js +0 -38
- package/API/callBeefyGraphAPI.js +0 -37
- package/API/callCurveAPI.js +0 -156
- package/API/callMonitor.js +0 -30
- package/API/callOdosAPI.js +0 -44
- package/API/callOneInchAPI.js +0 -37
- package/API/callRelayer.js +0 -32
- package/API/checkRisk.js +0 -30
- package/API/dataServerCalls.js +0 -32
- package/API/fetchCommitmentsCache.js +0 -31
- package/API/fetchNullifiers.js +0 -30
- package/API/getAxelarGasEstimate.js +0 -37
- package/API/getCoingeckoPrice.js +0 -27
- package/API/getConnextReceiveFee.js +0 -30
- package/API/getGasEstimates.js +0 -38
- package/API/getRelayerURL.js +0 -32
- package/API/getServerURL.js +0 -67
- package/API/getTokenPrice.js +0 -41
- package/API/kycCalls.js +0 -32
- package/API/passwordCalls.js +0 -36
- package/API/referralProgramCalls.js +0 -58
- package/API/relayCalls.js +0 -30
- package/API/restoreSnapshots.js +0 -32
- package/API/rewardsPointsCalls.js +0 -40
- package/API/userVerifyTransactions.js +0 -45
- package/constants/assets.constants.js +0 -16
- package/constants/axelar.constants.js +0 -55
- package/constants/backend.constants.js +0 -18
- package/constants/beefy.registry.js +0 -24
- package/constants/chains.constants.js +0 -204
- package/constants/coingecko.constants.js +0 -53
- package/constants/contracts.constants.js +0 -276
- package/constants/crvCvx.registry.js +0 -636
- package/constants/crvDynamic.registry.js +0 -24
- package/constants/deploy-data/deploy-data-arbMainnet.json.js +0 -7415
- package/constants/deploy-data/deploy-data-avalanche.json.js +0 -7411
- package/constants/deploy-data/deploy-data-axelar1.json.js +0 -4329
- package/constants/deploy-data/deploy-data-axelar2.json.js +0 -4329
- package/constants/deploy-data/deploy-data-base.json.js +0 -8425
- package/constants/deploy-data/deploy-data-blast.json.js +0 -9600
- package/constants/deploy-data/deploy-data-bnbMainnet.json.js +0 -6877
- package/constants/deploy-data/deploy-data-ethMainnet.json.js +0 -11427
- package/constants/deploy-data/deploy-data-localhost.json.js +0 -13283
- package/constants/deploy-data/deploy-data-optimism.json.js +0 -7417
- package/constants/deploy-data/deploy-data-polygon.json.js +0 -7439
- package/constants/fees.constants.js +0 -57
- package/constants/kyc.constants.js +0 -118
- package/constants/lido.constants.js +0 -13
- package/constants/pendle.registry.js +0 -253
- package/constants/protocol.constants.js +0 -26
- package/constants/reorg-depths.constants.js +0 -15
- package/constants/rewards.constants.js +0 -27
- package/constants/server.constants.js +0 -157
- package/constants/token-data/ERC20Registry.js +0 -85
- package/constants/token-data/arbMainnetRegistry.json.js +0 -946
- package/constants/token-data/arbMainnetRegistryFixed.json.js +0 -856
- package/constants/token-data/avalancheRegistry.json.js +0 -591
- package/constants/token-data/avalancheRegistryFixed.json.js +0 -591
- package/constants/token-data/baseRegistry.json.js +0 -490
- package/constants/token-data/baseRegistryFixed.json.js +0 -463
- package/constants/token-data/blastRegistry.json.js +0 -137
- package/constants/token-data/blastRegistryFixed.json.js +0 -137
- package/constants/token-data/bnbMainnetRegistry.json.js +0 -973
- package/constants/token-data/bnbMainnetRegistryFixed.json.js +0 -973
- package/constants/token-data/coingeckoRegistry.json.js +0 -115623
- package/constants/token-data/ethMainnetRegistry.json.js +0 -2700
- package/constants/token-data/ethMainnetRegistryFixed.json.js +0 -2251
- package/constants/token-data/index.js +0 -6
- package/constants/token-data/localhostRegistry.json.js +0 -2768
- package/constants/token-data/optimismRegistry.json.js +0 -1455
- package/constants/token-data/optimismRegistryFixed.json.js +0 -1392
- package/constants/token-data/polygonRegistry.json.js +0 -1327
- package/constants/token-data/polygonRegistryFixed.json.js +0 -1255
- package/constants/token-data/popularTokens.constants.js +0 -14
- package/constants/token-data/tokenPricing.consts.js +0 -8
- package/constants/vite.constants.js +0 -29
- package/crypto/babyJub.js +0 -15
- package/crypto/poseidon.js +0 -26
- package/crypto/preProcessing.js +0 -9
- package/data-structures/Hinkal/Hinkal.js +0 -299
- package/data-structures/Hinkal/hinkalActionBeefy.js +0 -101
- package/data-structures/Hinkal/hinkalActionConvex.js +0 -83
- package/data-structures/Hinkal/hinkalActionCurve.js +0 -112
- package/data-structures/Hinkal/hinkalActionLidoEth.js +0 -91
- package/data-structures/Hinkal/hinkalActionPendle.js +0 -140
- package/data-structures/Hinkal/hinkalActionPendleLP.js +0 -96
- package/data-structures/Hinkal/hinkalActionStake.js +0 -138
- package/data-structures/Hinkal/hinkalActionVolatile.js +0 -112
- package/data-structures/Hinkal/hinkalDeposit.js +0 -95
- package/data-structures/Hinkal/hinkalGetZkMeProvider.js +0 -47
- package/data-structures/Hinkal/hinkalPrivateWallet.js +0 -66
- package/data-structures/Hinkal/hinkalSwap.js +0 -98
- package/data-structures/Hinkal/hinkalTransfer.js +0 -5
- package/data-structures/Hinkal/hinkalWithdraw.js +0 -91
- package/data-structures/Hinkal/resetMerkleTrees.js +0 -49
- package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.js +0 -83
- package/data-structures/ValueCache/ValueCache.js +0 -25
- package/data-structures/crypto-keys/decodeUTXO.js +0 -40
- package/data-structures/crypto-keys/encryptDecryptUtxo.js +0 -41
- package/data-structures/crypto-keys/keyUtils.js +0 -10
- package/data-structures/crypto-keys/keys.js +0 -90
- package/data-structures/custom-token-registry/CustomTokenRegistry.js +0 -33
- package/data-structures/event-service/AbstractAccessTokenSnapshotService.js +0 -131
- package/data-structures/event-service/AbstractCommitmentsSnapshotService.js +0 -132
- package/data-structures/event-service/AbstractEventService.js +0 -118
- package/data-structures/event-service/AbstractNullifierSnapshotService.js +0 -59
- package/data-structures/event-service/AbstractSnapshotService.js +0 -35
- package/data-structures/merkle-tree/MerkleTree.js +0 -177
- package/data-structures/merkle-tree/MerkleTreeIncompleteError.js +0 -8
- package/data-structures/snapshot/ClientAccessTokenSnapshotService.js +0 -48
- package/data-structures/snapshot/ClientCommitmentsSnapshotService.js +0 -47
- package/data-structures/snapshot/ClientNullifierSnapshotService.js +0 -44
- package/data-structures/token-price-fetcher/TokenChecker.js +0 -29
- package/data-structures/token-price-fetcher/TokenPriceFetcher.js +0 -218
- package/data-structures/transactions-manager/TransactionsManager.js +0 -194
- package/data-structures/transactions-manager/history/getBeefyData.js +0 -68
- package/data-structures/transactions-manager/history/getConvexData.js +0 -57
- package/data-structures/transactions-manager/history/getCurveData.js +0 -97
- package/data-structures/transactions-manager/history/getDepositData.js +0 -36
- package/data-structures/transactions-manager/history/getLidoData.js +0 -44
- package/data-structures/transactions-manager/history/getPendleData.js +0 -59
- package/data-structures/transactions-manager/history/getSwapData.js +0 -43
- package/data-structures/transactions-manager/history/getTxDetails.js +0 -74
- package/data-structures/transactions-manager/history/getVolatileData.js +0 -75
- package/data-structures/transactions-manager/history/history.types.js +0 -62
- package/data-structures/transactions-manager/history/history.utils.js +0 -8
- package/data-structures/utxo/Utxo.js +0 -134
- package/data-structures/volatile-helper/VolatileHelper.js +0 -181
- package/error-handling/customErrors/ErrorWithAmount.js +0 -9
- package/error-handling/customErrors/FeeOverTransactionValueError.js +0 -9
- package/error-handling/customErrors/customErrors.helpers.js +0 -21
- package/error-handling/error-codes.constants.js +0 -184
- package/error-handling/get-error.message.js +0 -53
- package/error-handling/handleErrorRestore.js +0 -35
- package/error-handling/logError.js +0 -7
- package/error-handling/types.js +0 -4
- package/externalABIs/BUSD.js +0 -519
- package/externalABIs/BabPassport.json.js +0 -24
- package/externalABIs/BeefyRouterAbi.json.js +0 -1022
- package/externalABIs/BeefyStrategyAbi.json.js +0 -1423
- package/externalABIs/BeefyVaultAbi.json.js +0 -570
- package/externalABIs/BeefyZapAbi.json.js +0 -208
- package/externalABIs/BeefyZapOneInchAbi.json.js +0 -340
- package/externalABIs/ConvexBoosterAbi.json.js +0 -674
- package/externalABIs/ConvexBoosterAbiMainnet.json.js +0 -1002
- package/externalABIs/ConvexRewardPoolAbi.json.js +0 -883
- package/externalABIs/CurveReadingWrapperAbi.json.js +0 -1422
- package/externalABIs/CurveWrappedMainPool.json.js +0 -1136
- package/externalABIs/CurveZap.json.js +0 -262
- package/externalABIs/CvxCrvUtilities.json.js +0 -264
- package/externalABIs/DAI.js +0 -334
- package/externalABIs/ERC20.json.js +0 -291
- package/externalABIs/GalxePassport.json.js +0 -41
- package/externalABIs/IQuoterV2.json.js +0 -205
- package/externalABIs/ISwapRouter.json.js +0 -568
- package/externalABIs/IUniswapV3Factory.json.js +0 -201
- package/externalABIs/IUniswapV3Pool.json.js +0 -999
- package/externalABIs/LidoStEthAbi.json.js +0 -1603
- package/externalABIs/LidoStMaticAbi.json.js +0 -1764
- package/externalABIs/LidoStakeManagerAbi.json.js +0 -2082
- package/externalABIs/LidoWithdrawalQueueERC721Abi.json.js +0 -2030
- package/externalABIs/LidoWstEthAbi.json.js +0 -480
- package/externalABIs/OptimismGasPriceOracle.json.js +0 -206
- package/externalABIs/PendleRouterAbi.json.js +0 -173
- package/externalABIs/PoLidoNftAbi.json.js +0 -701
- package/externalABIs/SanctionsList.js +0 -89
- package/externalABIs/USDC.js +0 -721
- package/externalABIs/USDR.js +0 -346
- package/externalABIs/USDR3CRV.js +0 -542
- package/externalABIs/USDT.js +0 -393
- package/externalABIs/UniswapV2PoolAbi.json.js +0 -80
- package/externalABIs/WETH.js +0 -156
- package/externalABIs/amToken.js +0 -350
- package/externalABIs/transactionsProver.json.js +0 -39
- package/functions/kyc/authentoHelper.js +0 -42
- package/functions/kyc/passportHelper.js +0 -39
- package/functions/kyc/zkMeHelper.js +0 -56
- package/functions/pre-transaction/getFlatFees.js +0 -203
- package/functions/pre-transaction/interaction-to-action.js +0 -57
- package/functions/pre-transaction/outputUtxoProcessing.js +0 -45
- package/functions/pre-transaction/process-gas-estimates.js +0 -57
- package/functions/pre-transaction/processAmountChanges.js +0 -229
- package/functions/private-wallet/emporium.helpers.js +0 -19
- package/functions/private-wallet/opProducer.js +0 -24
- package/functions/protocols/convex.protocols.js +0 -41
- package/functions/protocols/curve.protocols.js +0 -45
- package/functions/protocols/pendle.helpers.js +0 -108
- package/functions/snarkjs/common.snarkjs.js +0 -96
- package/functions/snarkjs/constant.js +0 -211
- package/functions/snarkjs/constructEmporiumProof.js +0 -105
- package/functions/snarkjs/constructGeneralZkProof.js +0 -129
- package/functions/snarkjs/generateCircomData.js +0 -60
- package/functions/snarkjs/generateZkProof.js +0 -18
- package/functions/snarkjs/getZKFiles.js +0 -30
- package/functions/staking/index.js +0 -40
- package/functions/utils/amounts.utils.js +0 -70
- package/functions/utils/axelar.utils.js +0 -38
- package/functions/utils/cacheFunctions.js +0 -67
- package/functions/utils/caseInsensitive.utils.js +0 -6
- package/functions/utils/convertIntegrationProviderToExternalActionId.js +0 -16
- package/functions/utils/create-provider.js +0 -5
- package/functions/utils/enum.utils.js +0 -14
- package/functions/utils/erc20tokenFunctions.js +0 -20
- package/functions/utils/evmNetworkFunctions.js +0 -29
- package/functions/utils/external-action.utils.js +0 -61
- package/functions/utils/getDataFromTransaction.js +0 -105
- package/functions/utils/memoize.utils.js +0 -14
- package/functions/utils/nickname.utils.js +0 -7
- package/functions/utils/process.utils.js +0 -4
- package/functions/utils/reloadPage.js +0 -4
- package/functions/utils/requireEnv.js +0 -7
- package/functions/utils/resolve-sync.utils.js +0 -22
- package/functions/utils/serialize.utils.js +0 -4
- package/functions/utils/string.utils.js +0 -14
- package/functions/utils/time.utils.js +0 -8
- package/functions/utils/userAgent.js +0 -15
- package/functions/utils/volatile-patcher.utils.js +0 -40
- package/functions/web3/etherFunctions.js +0 -41
- package/functions/web3/events/balanceChangedHandler.js +0 -10
- package/functions/web3/events/getInputUtxoAndBalance.js +0 -72
- package/functions/web3/events/getShieldedBalance.js +0 -107
- package/functions/web3/events/web3RetrieveEvents.js +0 -9
- package/functions/web3/functionCalls/accessTokenCalls.js +0 -48
- package/functions/web3/functionCalls/approveToken.js +0 -153
- package/functions/web3/functionCalls/estimateGasRelayer.js +0 -18
- package/functions/web3/functionCalls/transactCallDirect.js +0 -60
- package/functions/web3/functionCalls/transactCallRelayer.js +0 -42
- package/functions/web3/odosAPI.js +0 -65
- package/functions/web3/oneInchAPI.js +0 -61
- package/functions/web3/runContractFunction.js +0 -95
- package/functions/web3/uniswapAPI.js +0 -97
- package/types/beefy.types.js +0 -21
- package/types/circom-data.types.js +0 -22
- package/types/curve.types.js +0 -25
- package/types/ethereum-network.types.js +0 -4
- package/types/external-action.types.js +0 -4
- package/types/hinkal.stake.types.js +0 -4
- package/types/hinkal.types.js +0 -15
- package/types/kyc.types.js +0 -13
- package/types/pendle.types.js +0 -15
- package/types/rewards.types.js +0 -27
- package/types/slippage.types.js +0 -15
- package/types/time.types.js +0 -58
- package/types/token.types.js +0 -4
- package/types/transactions.types.js +0 -36
- package/webworker/performTaskWithWorker.js +0 -62
- package/webworker/snarkjsWorker/snarkjsWorker.types.js +0 -4
- package/webworker/utxoWorker/utxoWorker.types.js +0 -4
- package/webworker/utxoWorker/utxoWorkerLogic.js +0 -70
- package/webworker/worker.registry.js +0 -4
- package/webworker/workerFactory.js +0 -42
- package/webworker/zkProofWorker/zkProofWorker.types.js +0 -4
- package/webworker/zkProofWorker/zkProofWorkerLogic.js +0 -66
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import o from "axios";
|
|
2
|
-
import "../constants/chains.constants.js";
|
|
3
|
-
import "../types/circom-data.types.js";
|
|
4
|
-
import "../types/transactions.types.js";
|
|
5
|
-
import "../types/curve.types.js";
|
|
6
|
-
import "ethers";
|
|
7
|
-
import "circomlibjs";
|
|
8
|
-
import "../data-structures/crypto-keys/keys.js";
|
|
9
|
-
import { getServerURL as m } from "./getServerURL.js";
|
|
10
|
-
import "../data-structures/crypto-keys/encryptDecryptUtxo.js";
|
|
11
|
-
import "../functions/web3/events/getShieldedBalance.js";
|
|
12
|
-
import "../webworker/workerFactory.js";
|
|
13
|
-
import "../functions/utils/external-action.utils.js";
|
|
14
|
-
import "../data-structures/custom-token-registry/CustomTokenRegistry.js";
|
|
15
|
-
import "../functions/utils/convertIntegrationProviderToExternalActionId.js";
|
|
16
|
-
import "../constants/coingecko.constants.js";
|
|
17
|
-
import { API_CONFIG as r } from "../constants/server.constants.js";
|
|
18
|
-
import "../constants/vite.constants.js";
|
|
19
|
-
import "../functions/utils/userAgent.js";
|
|
20
|
-
import "../constants/reorg-depths.constants.js";
|
|
21
|
-
import "../constants/kyc.constants.js";
|
|
22
|
-
import "../data-structures/volatile-helper/VolatileHelper.js";
|
|
23
|
-
import "libsodium-wrappers";
|
|
24
|
-
import "../constants/contracts.constants.js";
|
|
25
|
-
import "../constants/axelar.constants.js";
|
|
26
|
-
import "../constants/rewards.constants.js";
|
|
27
|
-
const F = async (t) => (await o.get(`${m(t)}${r.ROUTES.getCommitmentsSnapshot}`)).data, G = async (t) => (await o.get(`${m(t)}${r.ROUTES.getAccessTokenSnapshot}`)).data;
|
|
28
|
-
export {
|
|
29
|
-
G as fetchAccessTokenSnapshot,
|
|
30
|
-
F as fetchCommitmentsSnapshot
|
|
31
|
-
};
|
package/API/fetchNullifiers.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import t from "axios";
|
|
2
|
-
import "../constants/chains.constants.js";
|
|
3
|
-
import "../types/circom-data.types.js";
|
|
4
|
-
import "../types/transactions.types.js";
|
|
5
|
-
import "../types/curve.types.js";
|
|
6
|
-
import "ethers";
|
|
7
|
-
import "circomlibjs";
|
|
8
|
-
import "../data-structures/crypto-keys/keys.js";
|
|
9
|
-
import { getServerURL as i } from "./getServerURL.js";
|
|
10
|
-
import "../data-structures/crypto-keys/encryptDecryptUtxo.js";
|
|
11
|
-
import "../functions/web3/events/getShieldedBalance.js";
|
|
12
|
-
import "../webworker/workerFactory.js";
|
|
13
|
-
import "../functions/utils/external-action.utils.js";
|
|
14
|
-
import "../data-structures/custom-token-registry/CustomTokenRegistry.js";
|
|
15
|
-
import "../functions/utils/convertIntegrationProviderToExternalActionId.js";
|
|
16
|
-
import "../constants/coingecko.constants.js";
|
|
17
|
-
import { API_CONFIG as o } from "../constants/server.constants.js";
|
|
18
|
-
import "../constants/vite.constants.js";
|
|
19
|
-
import "../functions/utils/userAgent.js";
|
|
20
|
-
import "../constants/reorg-depths.constants.js";
|
|
21
|
-
import "../constants/kyc.constants.js";
|
|
22
|
-
import "../data-structures/volatile-helper/VolatileHelper.js";
|
|
23
|
-
import "libsodium-wrappers";
|
|
24
|
-
import "../constants/contracts.constants.js";
|
|
25
|
-
import "../constants/axelar.constants.js";
|
|
26
|
-
import "../constants/rewards.constants.js";
|
|
27
|
-
const E = async (r) => (await t.get(`${i(r)}${o.ROUTES.getNullifiers}`)).data;
|
|
28
|
-
export {
|
|
29
|
-
E as fetchNullifiers
|
|
30
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import p from "axios";
|
|
2
|
-
import "../constants/chains.constants.js";
|
|
3
|
-
import "../types/circom-data.types.js";
|
|
4
|
-
import "../types/transactions.types.js";
|
|
5
|
-
import "../types/curve.types.js";
|
|
6
|
-
import "ethers";
|
|
7
|
-
import "circomlibjs";
|
|
8
|
-
import "../data-structures/crypto-keys/keys.js";
|
|
9
|
-
import { getServerURL as a } from "./getServerURL.js";
|
|
10
|
-
import "../data-structures/crypto-keys/encryptDecryptUtxo.js";
|
|
11
|
-
import "../functions/web3/events/getShieldedBalance.js";
|
|
12
|
-
import "../webworker/workerFactory.js";
|
|
13
|
-
import "../functions/utils/external-action.utils.js";
|
|
14
|
-
import "../data-structures/custom-token-registry/CustomTokenRegistry.js";
|
|
15
|
-
import "../functions/utils/convertIntegrationProviderToExternalActionId.js";
|
|
16
|
-
import "../constants/coingecko.constants.js";
|
|
17
|
-
import { API_CONFIG as e } from "../constants/server.constants.js";
|
|
18
|
-
import "../constants/vite.constants.js";
|
|
19
|
-
import "../functions/utils/userAgent.js";
|
|
20
|
-
import "../constants/reorg-depths.constants.js";
|
|
21
|
-
import "../constants/kyc.constants.js";
|
|
22
|
-
import "../data-structures/volatile-helper/VolatileHelper.js";
|
|
23
|
-
import "libsodium-wrappers";
|
|
24
|
-
import "../constants/contracts.constants.js";
|
|
25
|
-
import "../constants/axelar.constants.js";
|
|
26
|
-
import "../constants/rewards.constants.js";
|
|
27
|
-
const _ = async (t, r, o, m, i) => (await p.get(
|
|
28
|
-
`${a(t)}${e.ROUTES.axelarGasEstimate(
|
|
29
|
-
r,
|
|
30
|
-
o,
|
|
31
|
-
m,
|
|
32
|
-
i
|
|
33
|
-
)}`
|
|
34
|
-
)).data;
|
|
35
|
-
export {
|
|
36
|
-
_ as getAxelarGasEstimate
|
|
37
|
-
};
|
package/API/getCoingeckoPrice.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import o from "axios";
|
|
2
|
-
import { coingeckoPriceUrl as c, proHeader as t, COINGECKO_API_KEY as i, coingeckoPriceUrl2 as a, coingeckoTokenListUrl as s } from "../constants/coingecko.constants.js";
|
|
3
|
-
async function u(e) {
|
|
4
|
-
return (await o.get(c(e), {
|
|
5
|
-
headers: { [t]: i || "" }
|
|
6
|
-
})).data[e];
|
|
7
|
-
}
|
|
8
|
-
async function d(e, n) {
|
|
9
|
-
const r = e.toLowerCase();
|
|
10
|
-
return (await o.get(a(r, n), {
|
|
11
|
-
headers: { [t]: i || "" }
|
|
12
|
-
})).data[e];
|
|
13
|
-
}
|
|
14
|
-
async function C(e) {
|
|
15
|
-
return (await o.get(c(e), {
|
|
16
|
-
headers: { [t]: i || "" }
|
|
17
|
-
})).data;
|
|
18
|
-
}
|
|
19
|
-
async function f() {
|
|
20
|
-
return await o.get(s);
|
|
21
|
-
}
|
|
22
|
-
export {
|
|
23
|
-
u as getCoingeckoPrice,
|
|
24
|
-
d as getCoingeckoPrice2,
|
|
25
|
-
C as getCoingeckoPrices,
|
|
26
|
-
f as getCoingeckoTokenList
|
|
27
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import i from "axios";
|
|
2
|
-
import "../constants/chains.constants.js";
|
|
3
|
-
import "../types/circom-data.types.js";
|
|
4
|
-
import "../types/transactions.types.js";
|
|
5
|
-
import "../types/curve.types.js";
|
|
6
|
-
import "ethers";
|
|
7
|
-
import "circomlibjs";
|
|
8
|
-
import "../data-structures/crypto-keys/keys.js";
|
|
9
|
-
import { getServerURL as m } from "./getServerURL.js";
|
|
10
|
-
import "../data-structures/crypto-keys/encryptDecryptUtxo.js";
|
|
11
|
-
import "../functions/web3/events/getShieldedBalance.js";
|
|
12
|
-
import "../webworker/workerFactory.js";
|
|
13
|
-
import "../functions/utils/external-action.utils.js";
|
|
14
|
-
import "../data-structures/custom-token-registry/CustomTokenRegistry.js";
|
|
15
|
-
import "../functions/utils/convertIntegrationProviderToExternalActionId.js";
|
|
16
|
-
import "../constants/coingecko.constants.js";
|
|
17
|
-
import { API_CONFIG as p } from "../constants/server.constants.js";
|
|
18
|
-
import "../constants/vite.constants.js";
|
|
19
|
-
import "../functions/utils/userAgent.js";
|
|
20
|
-
import "../constants/reorg-depths.constants.js";
|
|
21
|
-
import "../constants/kyc.constants.js";
|
|
22
|
-
import "../data-structures/volatile-helper/VolatileHelper.js";
|
|
23
|
-
import "libsodium-wrappers";
|
|
24
|
-
import "../constants/contracts.constants.js";
|
|
25
|
-
import "../constants/axelar.constants.js";
|
|
26
|
-
import "../constants/rewards.constants.js";
|
|
27
|
-
const T = async (t, o, r) => (await i.get(`${m(t)}${p.ROUTES.connextReceiveFee(o, r)}`)).data;
|
|
28
|
-
export {
|
|
29
|
-
T as getConnextReceiveFee
|
|
30
|
-
};
|
package/API/getGasEstimates.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import a from "axios";
|
|
2
|
-
import "../constants/chains.constants.js";
|
|
3
|
-
import "../types/circom-data.types.js";
|
|
4
|
-
import "../types/transactions.types.js";
|
|
5
|
-
import "../types/curve.types.js";
|
|
6
|
-
import "ethers";
|
|
7
|
-
import "circomlibjs";
|
|
8
|
-
import "../data-structures/crypto-keys/keys.js";
|
|
9
|
-
import "../data-structures/crypto-keys/encryptDecryptUtxo.js";
|
|
10
|
-
import "../functions/web3/events/getShieldedBalance.js";
|
|
11
|
-
import "../webworker/workerFactory.js";
|
|
12
|
-
import "../functions/utils/external-action.utils.js";
|
|
13
|
-
import "../data-structures/custom-token-registry/CustomTokenRegistry.js";
|
|
14
|
-
import "../functions/utils/convertIntegrationProviderToExternalActionId.js";
|
|
15
|
-
import "../constants/coingecko.constants.js";
|
|
16
|
-
import { getRelayerURL as e } from "./getRelayerURL.js";
|
|
17
|
-
import { RELAYER_CONFIG as s } from "../constants/server.constants.js";
|
|
18
|
-
import "../constants/vite.constants.js";
|
|
19
|
-
import "../functions/utils/userAgent.js";
|
|
20
|
-
import "../constants/reorg-depths.constants.js";
|
|
21
|
-
import "../constants/kyc.constants.js";
|
|
22
|
-
import "../data-structures/volatile-helper/VolatileHelper.js";
|
|
23
|
-
import "libsodium-wrappers";
|
|
24
|
-
import "../constants/contracts.constants.js";
|
|
25
|
-
import "../constants/axelar.constants.js";
|
|
26
|
-
import "../constants/rewards.constants.js";
|
|
27
|
-
const j = async (t, r, o, m, i, p) => (await a.get(
|
|
28
|
-
`${e(t)}${s.getGasEstimate(
|
|
29
|
-
r,
|
|
30
|
-
o,
|
|
31
|
-
m,
|
|
32
|
-
i,
|
|
33
|
-
p
|
|
34
|
-
)}`
|
|
35
|
-
)).data;
|
|
36
|
-
export {
|
|
37
|
-
j as getGasEstimates
|
|
38
|
-
};
|
package/API/getRelayerURL.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { chainIds as i } from "../constants/chains.constants.js";
|
|
2
|
-
import "../types/circom-data.types.js";
|
|
3
|
-
import "../types/transactions.types.js";
|
|
4
|
-
import "../types/curve.types.js";
|
|
5
|
-
import "ethers";
|
|
6
|
-
import "circomlibjs";
|
|
7
|
-
import "../data-structures/crypto-keys/keys.js";
|
|
8
|
-
import "axios";
|
|
9
|
-
import "../data-structures/crypto-keys/encryptDecryptUtxo.js";
|
|
10
|
-
import "../functions/web3/events/getShieldedBalance.js";
|
|
11
|
-
import "../webworker/workerFactory.js";
|
|
12
|
-
import "../functions/utils/external-action.utils.js";
|
|
13
|
-
import "../data-structures/custom-token-registry/CustomTokenRegistry.js";
|
|
14
|
-
import "../functions/utils/convertIntegrationProviderToExternalActionId.js";
|
|
15
|
-
import "../constants/coingecko.constants.js";
|
|
16
|
-
import { RELAYER_URLS as m, STAGING_RELAYER_URLS as p, PLAYGROUND_RELAYER_URLS as n } from "../constants/server.constants.js";
|
|
17
|
-
import { deploymentMode as o, DEPLOYMENT_MODE as e } from "../constants/vite.constants.js";
|
|
18
|
-
import "../functions/utils/userAgent.js";
|
|
19
|
-
import "../constants/reorg-depths.constants.js";
|
|
20
|
-
import "../constants/kyc.constants.js";
|
|
21
|
-
import "../data-structures/volatile-helper/VolatileHelper.js";
|
|
22
|
-
import "libsodium-wrappers";
|
|
23
|
-
import "../constants/contracts.constants.js";
|
|
24
|
-
import "../constants/axelar.constants.js";
|
|
25
|
-
import "../constants/rewards.constants.js";
|
|
26
|
-
const V = (r) => {
|
|
27
|
-
let t;
|
|
28
|
-
return o === e.DEVELOPMENT ? t = m : o === e.STAGING ? t = p : o === e.PLAYGROUND ? t = n : t = m, r === i.polygon ? t.polygon : r === i.arbMainnet ? t.arbMainnet : r === i.ethMainnet ? t.ethMainnet : r === i.bnbMainnet ? t.bnbMainnet : r === i.avalanche ? t.avalanche : r === i.optimism ? t.optimism : r === i.base ? t.base : r === i.blast ? t.blast : t.localhost;
|
|
29
|
-
};
|
|
30
|
-
export {
|
|
31
|
-
V as getRelayerURL
|
|
32
|
-
};
|
package/API/getServerURL.js
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { chainIds as r, chainIdsByType as p, EthereumNetworkType as s } from "../constants/chains.constants.js";
|
|
2
|
-
import "../types/circom-data.types.js";
|
|
3
|
-
import "../types/transactions.types.js";
|
|
4
|
-
import "../types/curve.types.js";
|
|
5
|
-
import "ethers";
|
|
6
|
-
import "circomlibjs";
|
|
7
|
-
import "../data-structures/crypto-keys/keys.js";
|
|
8
|
-
import "axios";
|
|
9
|
-
import "../data-structures/crypto-keys/encryptDecryptUtxo.js";
|
|
10
|
-
import "../functions/web3/events/getShieldedBalance.js";
|
|
11
|
-
import "../webworker/workerFactory.js";
|
|
12
|
-
import "../functions/utils/external-action.utils.js";
|
|
13
|
-
import "../data-structures/custom-token-registry/CustomTokenRegistry.js";
|
|
14
|
-
import "../functions/utils/convertIntegrationProviderToExternalActionId.js";
|
|
15
|
-
import "../constants/coingecko.constants.js";
|
|
16
|
-
import { DATA_SERVER_URL_PRODUCTION as n, PLAYGROUND_URL as R, DATA_SERVER_PORT as a, STAGING_URL as c, DATA_SERVER_URL_LOCAL as E, SERVER_URLS as m, STAGING_SERVER_URLS as l, PLAYGROUND_SERVER_URLS as u } from "../constants/server.constants.js";
|
|
17
|
-
import { deploymentMode as o, DEPLOYMENT_MODE as e } from "../constants/vite.constants.js";
|
|
18
|
-
import "../functions/utils/userAgent.js";
|
|
19
|
-
import "../constants/reorg-depths.constants.js";
|
|
20
|
-
import "../constants/kyc.constants.js";
|
|
21
|
-
import "../data-structures/volatile-helper/VolatileHelper.js";
|
|
22
|
-
import "libsodium-wrappers";
|
|
23
|
-
import "../constants/contracts.constants.js";
|
|
24
|
-
import "../constants/axelar.constants.js";
|
|
25
|
-
import "../constants/rewards.constants.js";
|
|
26
|
-
const k = (i) => {
|
|
27
|
-
let t;
|
|
28
|
-
switch (o === e.DEVELOPMENT ? t = m : o === e.STAGING ? t = l : o === e.PLAYGROUND ? t = u : t = m, i) {
|
|
29
|
-
case r.polygon:
|
|
30
|
-
return t.polygon;
|
|
31
|
-
case r.arbMainnet:
|
|
32
|
-
return t.arbMainnet;
|
|
33
|
-
case r.ethMainnet:
|
|
34
|
-
return t.ethMainnet;
|
|
35
|
-
case r.avalanche:
|
|
36
|
-
return t.avalanche;
|
|
37
|
-
case r.bnbMainnet:
|
|
38
|
-
return t.bnbMainnet;
|
|
39
|
-
case r.optimism:
|
|
40
|
-
return t.optimism;
|
|
41
|
-
case r.base:
|
|
42
|
-
return t.base;
|
|
43
|
-
case r.blast:
|
|
44
|
-
return t.blast;
|
|
45
|
-
case r.localhost:
|
|
46
|
-
return t.localhost;
|
|
47
|
-
default:
|
|
48
|
-
return t.polygon;
|
|
49
|
-
}
|
|
50
|
-
}, x = (i) => {
|
|
51
|
-
switch (o) {
|
|
52
|
-
case e.DEVELOPMENT:
|
|
53
|
-
return p[s.Mainnet].includes(i) ? n : `${E}:${a}`;
|
|
54
|
-
case e.STAGING:
|
|
55
|
-
return `${c}:${a}`;
|
|
56
|
-
case e.PLAYGROUND:
|
|
57
|
-
return `${R}:${a}`;
|
|
58
|
-
case e.PRODUCTION:
|
|
59
|
-
return n;
|
|
60
|
-
default:
|
|
61
|
-
return n;
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
export {
|
|
65
|
-
x as getDataServerURL,
|
|
66
|
-
k as getServerURL
|
|
67
|
-
};
|
package/API/getTokenPrice.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import o from "axios";
|
|
2
|
-
import "../constants/chains.constants.js";
|
|
3
|
-
import "../types/circom-data.types.js";
|
|
4
|
-
import "../types/transactions.types.js";
|
|
5
|
-
import "../types/curve.types.js";
|
|
6
|
-
import "ethers";
|
|
7
|
-
import "circomlibjs";
|
|
8
|
-
import "../data-structures/crypto-keys/keys.js";
|
|
9
|
-
import "../data-structures/crypto-keys/encryptDecryptUtxo.js";
|
|
10
|
-
import "../functions/web3/events/getShieldedBalance.js";
|
|
11
|
-
import "../webworker/workerFactory.js";
|
|
12
|
-
import "../functions/utils/external-action.utils.js";
|
|
13
|
-
import "../data-structures/custom-token-registry/CustomTokenRegistry.js";
|
|
14
|
-
import "../functions/utils/convertIntegrationProviderToExternalActionId.js";
|
|
15
|
-
import "../constants/coingecko.constants.js";
|
|
16
|
-
import { getRelayerURL as i } from "./getRelayerURL.js";
|
|
17
|
-
import { RELAYER_CONFIG as p } from "../constants/server.constants.js";
|
|
18
|
-
import "../constants/vite.constants.js";
|
|
19
|
-
import "../functions/utils/userAgent.js";
|
|
20
|
-
import "../constants/reorg-depths.constants.js";
|
|
21
|
-
import "../constants/kyc.constants.js";
|
|
22
|
-
import "../data-structures/volatile-helper/VolatileHelper.js";
|
|
23
|
-
import "libsodium-wrappers";
|
|
24
|
-
import "../constants/contracts.constants.js";
|
|
25
|
-
import "../constants/axelar.constants.js";
|
|
26
|
-
import "../constants/rewards.constants.js";
|
|
27
|
-
async function N(t, r, m) {
|
|
28
|
-
return (await o.post(`${i(t)}${p.getTokenPrice}`, {
|
|
29
|
-
erc20Address: r,
|
|
30
|
-
id: m
|
|
31
|
-
})).data;
|
|
32
|
-
}
|
|
33
|
-
async function O(t, r) {
|
|
34
|
-
return (await o.get(`${i(t)}${p.getTokenPriceEth(r)}`)).data;
|
|
35
|
-
}
|
|
36
|
-
const U = async (t, r) => (await o.post(`${i(t)}${p.getTokenPrices}`, { erc20Addresses: r })).data;
|
|
37
|
-
export {
|
|
38
|
-
N as getTokenPrice,
|
|
39
|
-
O as getTokenPriceEth,
|
|
40
|
-
U as getTokenPrices
|
|
41
|
-
};
|
package/API/kycCalls.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import a from "axios";
|
|
2
|
-
import { API_CONFIG as s } from "../constants/server.constants.js";
|
|
3
|
-
import { getServerURL as r } from "./getServerURL.js";
|
|
4
|
-
async function T(t, e) {
|
|
5
|
-
return (await a.post(`${r(t)}${s.ROUTES.checkKycStatus}`, {
|
|
6
|
-
ethereumAddress: e
|
|
7
|
-
})).data;
|
|
8
|
-
}
|
|
9
|
-
async function $(t, e, n, c) {
|
|
10
|
-
return (await a.post(`${r(t)}${s.ROUTES.startUserVerification}`, {
|
|
11
|
-
ethereumAddress: e,
|
|
12
|
-
verificationSessionId: n,
|
|
13
|
-
verificationType: c
|
|
14
|
-
})).data;
|
|
15
|
-
}
|
|
16
|
-
async function S(t, e, n) {
|
|
17
|
-
return (await a.post(`${r(t)}${s.ROUTES.getUserSignature}`, { ethereumAddress: e, accessKey: n })).data;
|
|
18
|
-
}
|
|
19
|
-
const U = async (t) => (await a.get(`${r(t)}${s.ROUTES.zkMeAccessToken}`)).data.accessToken, f = async (t, e) => (await a.get(
|
|
20
|
-
`${r(t)}${s.ROUTES.userHasAccessToken(e)}`
|
|
21
|
-
)).data, p = async (t, e, n) => (await a.post(`${r(t)}${s.ROUTES.afterKycCall}`, {
|
|
22
|
-
ethereumAddress: e,
|
|
23
|
-
hasAccessTokenOnAnyChain: n
|
|
24
|
-
})).data;
|
|
25
|
-
export {
|
|
26
|
-
p as afterKycCall,
|
|
27
|
-
S as getAccessTokenSignature,
|
|
28
|
-
T as getUserKycStatus,
|
|
29
|
-
U as getZkMeAccessToken,
|
|
30
|
-
$ as setAiPriseVerificationUrl,
|
|
31
|
-
f as userHasAccessToken
|
|
32
|
-
};
|
package/API/passwordCalls.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import p from "axios";
|
|
2
|
-
import "../constants/chains.constants.js";
|
|
3
|
-
import "../types/circom-data.types.js";
|
|
4
|
-
import "../types/transactions.types.js";
|
|
5
|
-
import "../types/curve.types.js";
|
|
6
|
-
import "ethers";
|
|
7
|
-
import "circomlibjs";
|
|
8
|
-
import "../data-structures/crypto-keys/keys.js";
|
|
9
|
-
import { getServerURL as s } from "./getServerURL.js";
|
|
10
|
-
import "../data-structures/crypto-keys/encryptDecryptUtxo.js";
|
|
11
|
-
import "../functions/web3/events/getShieldedBalance.js";
|
|
12
|
-
import "../webworker/workerFactory.js";
|
|
13
|
-
import "../functions/utils/external-action.utils.js";
|
|
14
|
-
import "../data-structures/custom-token-registry/CustomTokenRegistry.js";
|
|
15
|
-
import "../functions/utils/convertIntegrationProviderToExternalActionId.js";
|
|
16
|
-
import "../constants/coingecko.constants.js";
|
|
17
|
-
import { API_CONFIG as i } from "../constants/server.constants.js";
|
|
18
|
-
import "../constants/vite.constants.js";
|
|
19
|
-
import "../functions/utils/userAgent.js";
|
|
20
|
-
import "../constants/reorg-depths.constants.js";
|
|
21
|
-
import "../constants/kyc.constants.js";
|
|
22
|
-
import "../data-structures/volatile-helper/VolatileHelper.js";
|
|
23
|
-
import "libsodium-wrappers";
|
|
24
|
-
import "../constants/contracts.constants.js";
|
|
25
|
-
import "../constants/axelar.constants.js";
|
|
26
|
-
import "../constants/rewards.constants.js";
|
|
27
|
-
const L = async (r, o) => (await p.get(
|
|
28
|
-
`${s(r)}${i.ROUTES.userHasPassword(o)}`
|
|
29
|
-
)).data, N = async (r, o, t) => (await p.post(`${s(r)}${i.ROUTES.userRegisterPassword}`, {
|
|
30
|
-
ethereumAddress: o,
|
|
31
|
-
passwordHash: t
|
|
32
|
-
})).data;
|
|
33
|
-
export {
|
|
34
|
-
L as userHasPassword,
|
|
35
|
-
N as userRegisterPassword
|
|
36
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import o from "axios";
|
|
2
|
-
import "../constants/chains.constants.js";
|
|
3
|
-
import "../types/circom-data.types.js";
|
|
4
|
-
import "../types/transactions.types.js";
|
|
5
|
-
import "../types/curve.types.js";
|
|
6
|
-
import "ethers";
|
|
7
|
-
import "circomlibjs";
|
|
8
|
-
import "../data-structures/crypto-keys/keys.js";
|
|
9
|
-
import { getServerURL as s } from "./getServerURL.js";
|
|
10
|
-
import "../data-structures/crypto-keys/encryptDecryptUtxo.js";
|
|
11
|
-
import "../functions/web3/events/getShieldedBalance.js";
|
|
12
|
-
import "../webworker/workerFactory.js";
|
|
13
|
-
import "../functions/utils/external-action.utils.js";
|
|
14
|
-
import "../data-structures/custom-token-registry/CustomTokenRegistry.js";
|
|
15
|
-
import "../functions/utils/convertIntegrationProviderToExternalActionId.js";
|
|
16
|
-
import "../constants/coingecko.constants.js";
|
|
17
|
-
import { API_CONFIG as a } from "../constants/server.constants.js";
|
|
18
|
-
import "../constants/vite.constants.js";
|
|
19
|
-
import "../functions/utils/userAgent.js";
|
|
20
|
-
import "../constants/reorg-depths.constants.js";
|
|
21
|
-
import "../constants/kyc.constants.js";
|
|
22
|
-
import "../data-structures/volatile-helper/VolatileHelper.js";
|
|
23
|
-
import "libsodium-wrappers";
|
|
24
|
-
import "../constants/contracts.constants.js";
|
|
25
|
-
import "../constants/axelar.constants.js";
|
|
26
|
-
import "../constants/rewards.constants.js";
|
|
27
|
-
const I = async (e, t) => (await o.get(`${s(e)}${a.ROUTES.getActiveCode(t)}`)).data, W = async (e, t, r) => (await o.post(`${s(e)}${a.ROUTES.updateActiveCode}`, {
|
|
28
|
-
ethereumAddress: t,
|
|
29
|
-
activeCode: r
|
|
30
|
-
})).data, F = async (e, t, r) => (await o.get(
|
|
31
|
-
`${s(e)}${a.ROUTES.getWeeklyReferralCodes(t, r)}`
|
|
32
|
-
)).data, G = async (e, t) => (await o.get(`${s(e)}${a.ROUTES.getReferralCodes(t)}`)).data, N = async (e, t, r, n) => (await o.post(`${s(e)}${a.ROUTES.addReferralCode}`, {
|
|
33
|
-
ethereumAddress: t,
|
|
34
|
-
referralCode: r,
|
|
35
|
-
action: n
|
|
36
|
-
})).data, _ = async (e, t) => (await o.get(`${s(e)}${a.ROUTES.getLpProgram(t)}`)).data, b = async (e, t) => (await o.get(
|
|
37
|
-
`${s(t)}${a.ROUTES.getRewardsHistory(e)}`
|
|
38
|
-
)).data, h = async (e, t, r, n) => (await o.post(
|
|
39
|
-
`${s(n)}${a.ROUTES.setRewardsReceivingData}`,
|
|
40
|
-
{
|
|
41
|
-
ethereumAddress: e,
|
|
42
|
-
receivingAddress: t,
|
|
43
|
-
rewardTokenAddress: r
|
|
44
|
-
}
|
|
45
|
-
)).data, j = async (e, t) => (await o.get(
|
|
46
|
-
`${s(t)}${a.ROUTES.getRewardsReceivingData(e)}`
|
|
47
|
-
)).data;
|
|
48
|
-
export {
|
|
49
|
-
N as addReferralCode,
|
|
50
|
-
I as getActiveCode,
|
|
51
|
-
_ as getLpProgram,
|
|
52
|
-
G as getReferralCodes,
|
|
53
|
-
b as getRewardsHistory,
|
|
54
|
-
j as getRewardsReceivingData,
|
|
55
|
-
F as getWeeklyReferralCodes,
|
|
56
|
-
h as setRewardsReceivingData,
|
|
57
|
-
W as updateActiveCode
|
|
58
|
-
};
|
package/API/relayCalls.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import o from "axios";
|
|
2
|
-
import { getRelayerURL as r } from "./getRelayerURL.js";
|
|
3
|
-
import "../constants/chains.constants.js";
|
|
4
|
-
import "../types/circom-data.types.js";
|
|
5
|
-
import "../types/transactions.types.js";
|
|
6
|
-
import "../types/curve.types.js";
|
|
7
|
-
import "ethers";
|
|
8
|
-
import "circomlibjs";
|
|
9
|
-
import "../data-structures/crypto-keys/keys.js";
|
|
10
|
-
import "../data-structures/crypto-keys/encryptDecryptUtxo.js";
|
|
11
|
-
import "../functions/web3/events/getShieldedBalance.js";
|
|
12
|
-
import "../webworker/workerFactory.js";
|
|
13
|
-
import "../functions/utils/external-action.utils.js";
|
|
14
|
-
import "../data-structures/custom-token-registry/CustomTokenRegistry.js";
|
|
15
|
-
import "../functions/utils/convertIntegrationProviderToExternalActionId.js";
|
|
16
|
-
import "../constants/coingecko.constants.js";
|
|
17
|
-
import { RELAYER_CONFIG as m } from "../constants/server.constants.js";
|
|
18
|
-
import "../constants/vite.constants.js";
|
|
19
|
-
import "../functions/utils/userAgent.js";
|
|
20
|
-
import "../constants/reorg-depths.constants.js";
|
|
21
|
-
import "../constants/kyc.constants.js";
|
|
22
|
-
import "../data-structures/volatile-helper/VolatileHelper.js";
|
|
23
|
-
import "libsodium-wrappers";
|
|
24
|
-
import "../constants/contracts.constants.js";
|
|
25
|
-
import "../constants/axelar.constants.js";
|
|
26
|
-
import "../constants/rewards.constants.js";
|
|
27
|
-
const Y = async (t) => (await o.get(`${r(t)}${m.getIdleRelay}`)).data;
|
|
28
|
-
export {
|
|
29
|
-
Y as getIdleRelay
|
|
30
|
-
};
|
package/API/restoreSnapshots.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import o from "axios";
|
|
2
|
-
import "../constants/chains.constants.js";
|
|
3
|
-
import "../types/circom-data.types.js";
|
|
4
|
-
import "../types/transactions.types.js";
|
|
5
|
-
import "../types/curve.types.js";
|
|
6
|
-
import "ethers";
|
|
7
|
-
import "circomlibjs";
|
|
8
|
-
import "../data-structures/crypto-keys/keys.js";
|
|
9
|
-
import { getServerURL as t } from "./getServerURL.js";
|
|
10
|
-
import "../data-structures/crypto-keys/encryptDecryptUtxo.js";
|
|
11
|
-
import "../functions/web3/events/getShieldedBalance.js";
|
|
12
|
-
import "../webworker/workerFactory.js";
|
|
13
|
-
import "../functions/utils/external-action.utils.js";
|
|
14
|
-
import "../data-structures/custom-token-registry/CustomTokenRegistry.js";
|
|
15
|
-
import "../functions/utils/convertIntegrationProviderToExternalActionId.js";
|
|
16
|
-
import "../constants/coingecko.constants.js";
|
|
17
|
-
import { API_CONFIG as p } from "../constants/server.constants.js";
|
|
18
|
-
import "../constants/vite.constants.js";
|
|
19
|
-
import "../functions/utils/userAgent.js";
|
|
20
|
-
import "../constants/reorg-depths.constants.js";
|
|
21
|
-
import "../constants/kyc.constants.js";
|
|
22
|
-
import "../data-structures/volatile-helper/VolatileHelper.js";
|
|
23
|
-
import "libsodium-wrappers";
|
|
24
|
-
import "../constants/contracts.constants.js";
|
|
25
|
-
import "../constants/axelar.constants.js";
|
|
26
|
-
import "../constants/rewards.constants.js";
|
|
27
|
-
async function G(r) {
|
|
28
|
-
return (await o.post(`${t(r)}${p.ROUTES.restoreSnapshots}`)).data;
|
|
29
|
-
}
|
|
30
|
-
export {
|
|
31
|
-
G as restoreSnapshots
|
|
32
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import e from "axios";
|
|
2
|
-
import "../constants/chains.constants.js";
|
|
3
|
-
import "../types/circom-data.types.js";
|
|
4
|
-
import "../types/transactions.types.js";
|
|
5
|
-
import "../types/curve.types.js";
|
|
6
|
-
import "ethers";
|
|
7
|
-
import "circomlibjs";
|
|
8
|
-
import "../data-structures/crypto-keys/keys.js";
|
|
9
|
-
import { getServerURL as s } from "./getServerURL.js";
|
|
10
|
-
import "../data-structures/crypto-keys/encryptDecryptUtxo.js";
|
|
11
|
-
import "../functions/web3/events/getShieldedBalance.js";
|
|
12
|
-
import "../webworker/workerFactory.js";
|
|
13
|
-
import "../functions/utils/external-action.utils.js";
|
|
14
|
-
import "../data-structures/custom-token-registry/CustomTokenRegistry.js";
|
|
15
|
-
import "../functions/utils/convertIntegrationProviderToExternalActionId.js";
|
|
16
|
-
import "../constants/coingecko.constants.js";
|
|
17
|
-
import { API_CONFIG as a } from "../constants/server.constants.js";
|
|
18
|
-
import "../constants/vite.constants.js";
|
|
19
|
-
import "../functions/utils/userAgent.js";
|
|
20
|
-
import "../constants/reorg-depths.constants.js";
|
|
21
|
-
import "../constants/kyc.constants.js";
|
|
22
|
-
import "../data-structures/volatile-helper/VolatileHelper.js";
|
|
23
|
-
import "libsodium-wrappers";
|
|
24
|
-
import "../constants/contracts.constants.js";
|
|
25
|
-
import "../constants/axelar.constants.js";
|
|
26
|
-
import "../constants/rewards.constants.js";
|
|
27
|
-
const F = async (t, o, r, p) => (await e.post(`${s(t)}${a.ROUTES.addNickname}`, {
|
|
28
|
-
ethereumAddress: o,
|
|
29
|
-
nickname: r,
|
|
30
|
-
action: p
|
|
31
|
-
})).data, G = async (t, o) => (await e.get(`${s(t)}${a.ROUTES.getNickname(o)}`)).data, P = async (t, o, r) => (await e.get(`${s(o)}${a.ROUTES.points(t, r)}`)).data, _ = async (t, o) => (await e.get(`${s(t)}${a.ROUTES.leaderboard(o)}`)).data, h = async (t, o) => (await e.get(
|
|
32
|
-
`${s(t)}${a.ROUTES.seasonLeaderboard(o)}`
|
|
33
|
-
)).data;
|
|
34
|
-
export {
|
|
35
|
-
F as addNickname,
|
|
36
|
-
G as getNickname,
|
|
37
|
-
_ as leaderboard,
|
|
38
|
-
P as points,
|
|
39
|
-
h as seasonLeaderboard
|
|
40
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import i from "axios";
|
|
2
|
-
import { getServerURL as a } from "./getServerURL.js";
|
|
3
|
-
import "../constants/chains.constants.js";
|
|
4
|
-
import "../types/circom-data.types.js";
|
|
5
|
-
import "../types/transactions.types.js";
|
|
6
|
-
import "../types/curve.types.js";
|
|
7
|
-
import "ethers";
|
|
8
|
-
import "circomlibjs";
|
|
9
|
-
import "../data-structures/crypto-keys/keys.js";
|
|
10
|
-
import "../data-structures/crypto-keys/encryptDecryptUtxo.js";
|
|
11
|
-
import "../functions/web3/events/getShieldedBalance.js";
|
|
12
|
-
import "../webworker/workerFactory.js";
|
|
13
|
-
import "../functions/utils/external-action.utils.js";
|
|
14
|
-
import "../data-structures/custom-token-registry/CustomTokenRegistry.js";
|
|
15
|
-
import "../functions/utils/convertIntegrationProviderToExternalActionId.js";
|
|
16
|
-
import "../constants/coingecko.constants.js";
|
|
17
|
-
import { API_CONFIG as m } from "../constants/server.constants.js";
|
|
18
|
-
import "../constants/vite.constants.js";
|
|
19
|
-
import "../functions/utils/userAgent.js";
|
|
20
|
-
import "../constants/reorg-depths.constants.js";
|
|
21
|
-
import "../constants/kyc.constants.js";
|
|
22
|
-
import "../data-structures/volatile-helper/VolatileHelper.js";
|
|
23
|
-
import "libsodium-wrappers";
|
|
24
|
-
import "../constants/contracts.constants.js";
|
|
25
|
-
import "../constants/axelar.constants.js";
|
|
26
|
-
import "../constants/rewards.constants.js";
|
|
27
|
-
const P = async (t, r) => {
|
|
28
|
-
const { data: o } = await i.get(
|
|
29
|
-
`${a(t)}${m.ROUTES.verificationStartDate(r)}`
|
|
30
|
-
);
|
|
31
|
-
return o;
|
|
32
|
-
}, _ = async (t, r, o) => (await i.get(
|
|
33
|
-
`${a(t)}${m.ROUTES.userGetTransactions(r, o)}`
|
|
34
|
-
)).data, b = async (t, r, o, s, p, n) => (await i.post(`${a(t)}${m.ROUTES.userVerifyTransactions}`, {
|
|
35
|
-
transactionHashes: r,
|
|
36
|
-
zkCallDataArray: o,
|
|
37
|
-
backendToken: s,
|
|
38
|
-
ethereumAddress: p,
|
|
39
|
-
week: n
|
|
40
|
-
})).data;
|
|
41
|
-
export {
|
|
42
|
-
_ as userGetTransactions,
|
|
43
|
-
b as userVerifyTransactions,
|
|
44
|
-
P as verificationStartDate
|
|
45
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
const s = "https://hinkal-s3-assets.s3.us-west-1.amazonaws.com/assets/", g = {
|
|
2
|
-
CHEVRON: `${s}Chevron.svg`,
|
|
3
|
-
MOON: `${s}Moon.svg`,
|
|
4
|
-
SUN: `${s}Sun.svg`,
|
|
5
|
-
ARROW_LEFT: `${s}ArrowLeft.svg`,
|
|
6
|
-
AUTHENTO_LIGHT: `${s}AuthentoLogoLight.png`,
|
|
7
|
-
AUTHENTO_DARK: `${s}AuthentoLogoDark.png`,
|
|
8
|
-
KING: `${s}King.svg`,
|
|
9
|
-
CIRCLE_STRIKETHROUGH: `${s}CircleStrikethrough.svg`,
|
|
10
|
-
RIGHT_SQUARE: `${s}RightSquare.svg`,
|
|
11
|
-
COINBASE_DARK: `${s}CoinbaseDark.png`,
|
|
12
|
-
COINBASE_LIGHT: `${s}CoinbaseLight.png`
|
|
13
|
-
};
|
|
14
|
-
export {
|
|
15
|
-
g as IMAGE_PATHS
|
|
16
|
-
};
|