@sabaaa1/common 0.0.1
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/.env.example +5 -0
- package/.eslintrc.json +18 -0
- package/README.md +164 -0
- package/copyPackageJson.js +81 -0
- package/handleCDNWorkers.js +92 -0
- package/jest.config.ts +10 -0
- package/package.json +101 -0
- package/polyfillWorker.ts +15 -0
- package/project.json +32 -0
- package/src/API/API.ts +203 -0
- package/src/API/admin-calls.ts +8 -0
- package/src/API/ai-calls.ts +48 -0
- package/src/API/brotherhoodCalls.ts +184 -0
- package/src/API/callLifiAPI.ts +41 -0
- package/src/API/callMonitor.ts +9 -0
- package/src/API/callOdosAPI.ts +89 -0
- package/src/API/callOneInchAPI.ts +47 -0
- package/src/API/callRelayer.ts +23 -0
- package/src/API/checkRisk.ts +7 -0
- package/src/API/duneAPI.ts +26 -0
- package/src/API/enclaveCalls.ts +23 -0
- package/src/API/fetchCommitmentsCache.ts +63 -0
- package/src/API/generate-trading-points.ts +77 -0
- package/src/API/get-token-data.ts +12 -0
- package/src/API/getBridgeProtocols.ts +16 -0
- package/src/API/getCoingeckoPrice.ts +59 -0
- package/src/API/getGasEstimates.ts +30 -0
- package/src/API/getLifiStatus.ts +35 -0
- package/src/API/getRelayerURL.ts +27 -0
- package/src/API/getServerURL.ts +116 -0
- package/src/API/getTokenPrice.ts +39 -0
- package/src/API/getWebsiteURL.ts +58 -0
- package/src/API/index.ts +19 -0
- package/src/API/is-tx-stateless.ts +32 -0
- package/src/API/kycCalls.ts +81 -0
- package/src/API/leaderboardCalls.ts +32 -0
- package/src/API/mysteryBoxesCalls.ts +141 -0
- package/src/API/passwordCalls.ts +34 -0
- package/src/API/proxyAccountsCalls.ts +40 -0
- package/src/API/referralsCalls.ts +52 -0
- package/src/API/relayCalls.ts +14 -0
- package/src/API/restoreSnapshots.ts +7 -0
- package/src/API/rewardsUserCalls.ts +124 -0
- package/src/API/send-telegram-callback.ts +17 -0
- package/src/API/simulate-batch-tx.ts +19 -0
- package/src/API/tenderly.api.ts +96 -0
- package/src/API/token-calls.ts +19 -0
- package/src/API/weeklyAnalyticCalls.ts +43 -0
- package/src/constants/activity.constants.ts +10 -0
- package/src/constants/addresses.constants.ts +74 -0
- package/src/constants/assets.constants.ts +15 -0
- package/src/constants/backend.constants.ts +16 -0
- package/src/constants/balance.constants.ts +1 -0
- package/src/constants/bridging.constants.ts +5 -0
- package/src/constants/chains.constants.ts +194 -0
- package/src/constants/coingecko.constants.ts +67 -0
- package/src/constants/contracts.constants.ts +106 -0
- package/src/constants/conversion.constants.ts +1 -0
- package/src/constants/deploy-data/deploy-data-arbMainnet.json +5685 -0
- package/src/constants/deploy-data/deploy-data-arcTestnet.json +6157 -0
- package/src/constants/deploy-data/deploy-data-avalanche.json +5921 -0
- package/src/constants/deploy-data/deploy-data-base.json +5695 -0
- package/src/constants/deploy-data/deploy-data-bnbMainnet.json +5921 -0
- package/src/constants/deploy-data/deploy-data-ethMainnet.json +5922 -0
- package/src/constants/deploy-data/deploy-data-localhost.json +5921 -0
- package/src/constants/deploy-data/deploy-data-optimism.json +5687 -0
- package/src/constants/deploy-data/deploy-data-polygon.json +5695 -0
- package/src/constants/deploy-data/index.ts +21 -0
- package/src/constants/events.constants.ts +10 -0
- package/src/constants/fees.constants.ts +4 -0
- package/src/constants/function-signatures.constants.ts +6 -0
- package/src/constants/index.ts +30 -0
- package/src/constants/kyc.constants.ts +202 -0
- package/src/constants/lifi.constants.ts +1 -0
- package/src/constants/mediaUrls.constants.ts +25 -0
- package/src/constants/mystery-boxes.constants.ts +402 -0
- package/src/constants/oauthUrls.constants.ts +7 -0
- package/src/constants/permit2.constants.ts +28 -0
- package/src/constants/presale.constants.ts +503 -0
- package/src/constants/protocol.constants.ts +65 -0
- package/src/constants/reorg-depths.constants.ts +13 -0
- package/src/constants/rewards.constants.ts +27 -0
- package/src/constants/save-depths.ts +13 -0
- package/src/constants/server.constants.ts +233 -0
- package/src/constants/tasks.constants.ts +205 -0
- package/src/constants/token-data/ERC20Registry.ts +90 -0
- package/src/constants/token-data/arbMainnetRegistry.json +1841 -0
- package/src/constants/token-data/arbMainnetRegistryFixed.json +1841 -0
- package/src/constants/token-data/arcTestnetRegistry.json +436 -0
- package/src/constants/token-data/avalancheRegistry.json +729 -0
- package/src/constants/token-data/avalancheRegistryFixed.json +729 -0
- package/src/constants/token-data/baseRegistry.json +1134 -0
- package/src/constants/token-data/baseRegistryFixed.json +1134 -0
- package/src/constants/token-data/bnbMainnetRegistry.json +900 -0
- package/src/constants/token-data/bnbMainnetRegistryFixed.json +900 -0
- package/src/constants/token-data/ethMainnetRegistry.json +4298 -0
- package/src/constants/token-data/ethMainnetRegistryFixed.json +4298 -0
- package/src/constants/token-data/index.ts +60 -0
- package/src/constants/token-data/localhostRegistry.json +2784 -0
- package/src/constants/token-data/optimismRegistry.json +701 -0
- package/src/constants/token-data/optimismRegistryFixed.json +701 -0
- package/src/constants/token-data/polygonRegistry.json +2309 -0
- package/src/constants/token-data/polygonRegistryFixed.json +2309 -0
- package/src/constants/token-data/popularTokens.constants.ts +11 -0
- package/src/constants/token-data/tokenPricing.consts.ts +2 -0
- package/src/constants/token.limits.constants.ts +31 -0
- package/src/constants/vite.constants.ts +74 -0
- package/src/constants/wallet.constants.ts +9 -0
- package/src/crypto/babyJub.ts +31 -0
- package/src/crypto/index.ts +3 -0
- package/src/crypto/poseidon.ts +36 -0
- package/src/crypto/preProcessing.ts +20 -0
- package/src/data-structures/ApprovalDBs/EventsPublicApprovalsDB.ts +288 -0
- package/src/data-structures/ApprovalDBs/index.ts +1 -0
- package/src/data-structures/Hinkal/Hinkal.ts +746 -0
- package/src/data-structures/Hinkal/IHinkal.ts +315 -0
- package/src/data-structures/Hinkal/handleAutoDepositBack.ts +138 -0
- package/src/data-structures/Hinkal/hinkalActionFundApproveAndTransact.ts +64 -0
- package/src/data-structures/Hinkal/hinkalActionReceive.ts +65 -0
- package/src/data-structures/Hinkal/hinkalActionStake.ts +152 -0
- package/src/data-structures/Hinkal/hinkalApprove.ts +170 -0
- package/src/data-structures/Hinkal/hinkalCheckTokenRegistry.ts +26 -0
- package/src/data-structures/Hinkal/hinkalDeposit.ts +199 -0
- package/src/data-structures/Hinkal/hinkalGetRecipientInfo.ts +12 -0
- package/src/data-structures/Hinkal/hinkalGetZkMeProvider.ts +31 -0
- package/src/data-structures/Hinkal/hinkalInsideTransact.ts +190 -0
- package/src/data-structures/Hinkal/hinkalMultiSend.ts +26 -0
- package/src/data-structures/Hinkal/hinkalPrivateWallet.ts +198 -0
- package/src/data-structures/Hinkal/hinkalProoflessDeposit.ts +91 -0
- package/src/data-structures/Hinkal/hinkalProxySwap.ts +91 -0
- package/src/data-structures/Hinkal/hinkalSignSubAccount.ts +28 -0
- package/src/data-structures/Hinkal/hinkalSwap.ts +157 -0
- package/src/data-structures/Hinkal/hinkalTransfer.ts +171 -0
- package/src/data-structures/Hinkal/hinkalWithdraw.ts +161 -0
- package/src/data-structures/Hinkal/index.ts +9 -0
- package/src/data-structures/Hinkal/resetMerkleTrees.ts +64 -0
- package/src/data-structures/IndexedDB/activity-db.ts +204 -0
- package/src/data-structures/IndexedDB/balances-db.ts +97 -0
- package/src/data-structures/IndexedDB/contact-db.ts +81 -0
- package/src/data-structures/IndexedDB/index.ts +6 -0
- package/src/data-structures/IndexedDB/prices-db.ts +89 -0
- package/src/data-structures/IndexedDB/private-balances-db.ts +31 -0
- package/src/data-structures/IndexedDB/signatures-db.ts +62 -0
- package/src/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.ts +152 -0
- package/src/data-structures/TokenDBs/AlchemyPublicTokensDB.ts +224 -0
- package/src/data-structures/TokenDBs/ArcPublicTokensDB.ts +198 -0
- package/src/data-structures/TokenDBs/EventsPublicTokensDB.ts +216 -0
- package/src/data-structures/TokenDBs/IPublicTokensDB.ts +7 -0
- package/src/data-structures/TokenDBs/PrivateTokensDB.ts +96 -0
- package/src/data-structures/TokenDBs/PublicTokensDB.ts +49 -0
- package/src/data-structures/TokenDBs/index.ts +4 -0
- package/src/data-structures/TokenDBs/token-visibility-db.ts +154 -0
- package/src/data-structures/ValueCache/ValueCache.ts +29 -0
- package/src/data-structures/ValueCache/index.ts +1 -0
- package/src/data-structures/cacheDevices/AttachableMemoryCacheDevice.ts +33 -0
- package/src/data-structures/cacheDevices/BaseCacheDevice.ts +30 -0
- package/src/data-structures/cacheDevices/FileCacheDevice.ts +59 -0
- package/src/data-structures/cacheDevices/LocalStorageCacheDevice.ts +36 -0
- package/src/data-structures/cacheDevices/index.ts +2 -0
- package/src/data-structures/crypto-keys/decodeUTXO.ts +60 -0
- package/src/data-structures/crypto-keys/encryptDecryptUtxo.ts +74 -0
- package/src/data-structures/crypto-keys/index.ts +4 -0
- package/src/data-structures/crypto-keys/keyUtils.ts +8 -0
- package/src/data-structures/crypto-keys/keys.ts +203 -0
- package/src/data-structures/custom-token-registry/CustomTokenRegistry.ts +49 -0
- package/src/data-structures/event-service/AbstractAccessTokenSnapshotService.ts +142 -0
- package/src/data-structures/event-service/AbstractApprovalsSnapshotService.ts +152 -0
- package/src/data-structures/event-service/AbstractCommitmentsSnapshotService.ts +116 -0
- package/src/data-structures/event-service/AbstractEventService.ts +44 -0
- package/src/data-structures/event-service/AbstractNullifierSnapshotService.ts +76 -0
- package/src/data-structures/event-service/AbstractSnapshotService.ts +63 -0
- package/src/data-structures/event-service/BlockchainEventEmitter.ts +132 -0
- package/src/data-structures/event-service/index.ts +7 -0
- package/src/data-structures/index.ts +18 -0
- package/src/data-structures/merkle-tree/MerkleTree.test.ts +77 -0
- package/src/data-structures/merkle-tree/MerkleTree.ts +253 -0
- package/src/data-structures/merkle-tree/MerkleTreeIncompleteError.ts +6 -0
- package/src/data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.ts +24 -0
- package/src/data-structures/merkle-tree/index.ts +3 -0
- package/src/data-structures/presale/PresaleContractWrapper.ts +80 -0
- package/src/data-structures/presale/index.ts +1 -0
- package/src/data-structures/provider-adapter/IProviderAdapter.ts +43 -0
- package/src/data-structures/snapshot/ClientAccessTokenSnapshotService.ts +41 -0
- package/src/data-structures/snapshot/ClientApprovalsSnapshotService.ts +36 -0
- package/src/data-structures/snapshot/ClientCommitmentsSnapshotService.ts +30 -0
- package/src/data-structures/snapshot/ClientNullifierSnapshotService.ts +28 -0
- package/src/data-structures/snapshot/SnapshotFetcherService.ts +68 -0
- package/src/data-structures/snapshot/index.ts +1 -0
- package/src/data-structures/token-price-fetcher/TokenChecker.ts +45 -0
- package/src/data-structures/token-price-fetcher/index.ts +1 -0
- package/src/data-structures/tor/HttpClient.ts +118 -0
- package/src/data-structures/tor/TorAdapter.ts +94 -0
- package/src/data-structures/tor/TorClient.ts +283 -0
- package/src/data-structures/tor/WebSocketDuplex.ts +32 -0
- package/src/data-structures/tor/index.ts +3 -0
- package/src/data-structures/transactions-manager/history/history.types.ts +14 -0
- package/src/data-structures/transactions-manager/index.ts +1 -0
- package/src/data-structures/utxo/Utxo.ts +189 -0
- package/src/error-handling/customErrors/ErrorWithAmount.ts +8 -0
- package/src/error-handling/customErrors/ErrorWithTx.ts +10 -0
- package/src/error-handling/customErrors/FeeOverTransactionValueError.ts +16 -0
- package/src/error-handling/customErrors/SimulationFailureError.ts +9 -0
- package/src/error-handling/customErrors/customErrors.helpers.ts +39 -0
- package/src/error-handling/customErrors/index.ts +5 -0
- package/src/error-handling/error-codes.constants.ts +214 -0
- package/src/error-handling/get-error.message.ts +149 -0
- package/src/error-handling/handleErrorRestore.ts +25 -0
- package/src/error-handling/index.ts +7 -0
- package/src/error-handling/logError.ts +8 -0
- package/src/error-handling/logger.ts +21 -0
- package/src/error-handling/types.ts +10 -0
- package/src/externalABIs/BUSD.ts +516 -0
- package/src/externalABIs/BabPassport.json +24 -0
- package/src/externalABIs/DAI.ts +331 -0
- package/src/externalABIs/ERC1155.json +316 -0
- package/src/externalABIs/ERC20.json +297 -0
- package/src/externalABIs/ERC20.ts +1 -0
- package/src/externalABIs/ERC721.json +205 -0
- package/src/externalABIs/GalxePassport.json +23 -0
- package/src/externalABIs/IQuoterV2.json +211 -0
- package/src/externalABIs/ISwapRouter.json +568 -0
- package/src/externalABIs/IUniswapV3Factory.json +207 -0
- package/src/externalABIs/IUniswapV3Pool.json +999 -0
- package/src/externalABIs/NodeInterfaceABI.json +1 -0
- package/src/externalABIs/OptimismGasPriceOracle.json +1 -0
- package/src/externalABIs/PoLidoNftAbi.json +307 -0
- package/src/externalABIs/SanctionsList.ts +86 -0
- package/src/externalABIs/USDC.ts +718 -0
- package/src/externalABIs/USDR.ts +343 -0
- package/src/externalABIs/USDR3CRV.ts +539 -0
- package/src/externalABIs/USDT.ts +390 -0
- package/src/externalABIs/UniswapV2PoolAbi.json +66 -0
- package/src/externalABIs/WETH.ts +153 -0
- package/src/externalABIs/amToken.ts +347 -0
- package/src/externalABIs/index.ts +53 -0
- package/src/externalABIs/swapAbi.ts +442 -0
- package/src/externalABIs/transactionsProver.json +45 -0
- package/src/functions/index.ts +16 -0
- package/src/functions/kyc/aiPriseHelper.ts +0 -0
- package/src/functions/kyc/authentoHelper.ts +44 -0
- package/src/functions/kyc/index.ts +3 -0
- package/src/functions/kyc/openDefaultPassportWindow.ts +9 -0
- package/src/functions/kyc/passportHelper.ts +13 -0
- package/src/functions/kyc/zkMeHelper.ts +69 -0
- package/src/functions/pre-transaction/constructAdminData.ts +21 -0
- package/src/functions/pre-transaction/getExternalSwapAddress.ts +30 -0
- package/src/functions/pre-transaction/getFeeStructure.ts +44 -0
- package/src/functions/pre-transaction/getFlatFees.ts +88 -0
- package/src/functions/pre-transaction/getSignatureDataForTransact.ts +16 -0
- package/src/functions/pre-transaction/getVolatileTransferAmount.ts +56 -0
- package/src/functions/pre-transaction/index.ts +7 -0
- package/src/functions/pre-transaction/interaction-to-action.ts +17 -0
- package/src/functions/pre-transaction/merge-with-fee-structure-emporium.ts +50 -0
- package/src/functions/pre-transaction/merge-with-fee-structure.ts +35 -0
- package/src/functions/pre-transaction/outputApprovalDataProcessing.ts +95 -0
- package/src/functions/pre-transaction/outputUtxoProcessing.ts +52 -0
- package/src/functions/pre-transaction/process-gas-estimates.ts +36 -0
- package/src/functions/pre-transaction/shouldPatchAccessTokenMerkleTree.ts +15 -0
- package/src/functions/private-wallet/emporium.helpers.ts +296 -0
- package/src/functions/private-wallet/emporium.swap.helpers.ts +284 -0
- package/src/functions/private-wallet/index.ts +3 -0
- package/src/functions/private-wallet/opProducer.ts +33 -0
- package/src/functions/snarkjs/common.snarkjs.ts +377 -0
- package/src/functions/snarkjs/constant.ts +490 -0
- package/src/functions/snarkjs/constructEmporiumProof.ts +301 -0
- package/src/functions/snarkjs/constructGeneralZkProof.ts +281 -0
- package/src/functions/snarkjs/generateCircomData.ts +81 -0
- package/src/functions/snarkjs/generateZkProof.ts +21 -0
- package/src/functions/snarkjs/generateZkProofEnclave.ts +45 -0
- package/src/functions/snarkjs/generateZkProofSelf.ts +29 -0
- package/src/functions/snarkjs/getOriginalSender.ts +4 -0
- package/src/functions/snarkjs/getZKFiles.ts +29 -0
- package/src/functions/snarkjs/index.ts +4 -0
- package/src/functions/staking/index.ts +78 -0
- package/src/functions/utils/addresses.ts +37 -0
- package/src/functions/utils/amounts.utils.test.ts +91 -0
- package/src/functions/utils/amounts.utils.ts +119 -0
- package/src/functions/utils/arraysMatch.ts +4 -0
- package/src/functions/utils/cacheDevice.utils.ts +21 -0
- package/src/functions/utils/cacheFunctions.ts +154 -0
- package/src/functions/utils/caseInsensitive.utils.ts +10 -0
- package/src/functions/utils/convertEmporiumOpToCallInfo.ts +19 -0
- package/src/functions/utils/convertIntegrationProviderToExternalActionId.ts +14 -0
- package/src/functions/utils/create-provider.ts +11 -0
- package/src/functions/utils/encodeTokenWithId.ts +4 -0
- package/src/functions/utils/encryptInputForEnclave.ts +119 -0
- package/src/functions/utils/enum.utils.ts +30 -0
- package/src/functions/utils/erc20tokenFunctions.ts +110 -0
- package/src/functions/utils/ethers-formatter.utils.ts +32 -0
- package/src/functions/utils/evmNetworkFunctions.ts +9 -0
- package/src/functions/utils/external-action.utils.ts +15 -0
- package/src/functions/utils/fees.utils.ts +26 -0
- package/src/functions/utils/get-hinkal-approvals.ts +36 -0
- package/src/functions/utils/get-signature-header.ts +5 -0
- package/src/functions/utils/getBlockExplorerUrl.ts +14 -0
- package/src/functions/utils/getDataFromTransaction.ts +79 -0
- package/src/functions/utils/getRecipientInfoFromUserKeys.ts +28 -0
- package/src/functions/utils/inLogicMetadata.ts +9 -0
- package/src/functions/utils/index.ts +43 -0
- package/src/functions/utils/involves-permit2-op.ts +17 -0
- package/src/functions/utils/ipfs.ts +74 -0
- package/src/functions/utils/is-valid-url.ts +5 -0
- package/src/functions/utils/lifi.utils.ts +3 -0
- package/src/functions/utils/memoize.utils.ts +23 -0
- package/src/functions/utils/merkleTree.utils.ts +27 -0
- package/src/functions/utils/mutexes.utils.ts +3 -0
- package/src/functions/utils/mystery-box-auction.utils.ts +61 -0
- package/src/functions/utils/networks.utils.ts +6 -0
- package/src/functions/utils/nftTokenFunctions.ts +25 -0
- package/src/functions/utils/nickname.utils.ts +4 -0
- package/src/functions/utils/postToOffscreen.ts +6 -0
- package/src/functions/utils/prepareHinkal.ts +78 -0
- package/src/functions/utils/process.utils.ts +23 -0
- package/src/functions/utils/processUseApprovalUtxoData.ts +26 -0
- package/src/functions/utils/publicBalance.utils.ts +131 -0
- package/src/functions/utils/reloadPage.ts +1 -0
- package/src/functions/utils/replaceAddressInCalldata.ts +6 -0
- package/src/functions/utils/requireEnv.ts +10 -0
- package/src/functions/utils/resolve-sync.utils.ts +40 -0
- package/src/functions/utils/rpc-int-encode.ts +7 -0
- package/src/functions/utils/serialize.utils.ts +12 -0
- package/src/functions/utils/string.utils.ts +92 -0
- package/src/functions/utils/time.utils.ts +80 -0
- package/src/functions/utils/token-check.utils.ts +12 -0
- package/src/functions/utils/trimFieldValues.ts +24 -0
- package/src/functions/utils/upToDateState.ts +12 -0
- package/src/functions/utils/userAgent.ts +26 -0
- package/src/functions/utils/walletBalances.utils.ts +117 -0
- package/src/functions/web3/EIP-712.test.ts +302 -0
- package/src/functions/web3/EIP-712.ts +243 -0
- package/src/functions/web3/etherFunctions.test.ts +129 -0
- package/src/functions/web3/etherFunctions.ts +84 -0
- package/src/functions/web3/events/balanceChangedCustomHandler.ts +13 -0
- package/src/functions/web3/events/balanceChangedHandler.ts +10 -0
- package/src/functions/web3/events/getApprovedBalance.ts +154 -0
- package/src/functions/web3/events/getInputUtxoAndBalance.ts +305 -0
- package/src/functions/web3/events/getInputUtxosEnclave.ts +40 -0
- package/src/functions/web3/events/getShieldedBalance.ts +163 -0
- package/src/functions/web3/events/getTransactionLogEvents.ts +55 -0
- package/src/functions/web3/events/index.ts +7 -0
- package/src/functions/web3/events/web3RetrieveEvents.ts +33 -0
- package/src/functions/web3/functionCalls/accessTokenCalls.ts +27 -0
- package/src/functions/web3/functionCalls/approveToken.ts +180 -0
- package/src/functions/web3/functionCalls/approveTokensToHinkal.ts +21 -0
- package/src/functions/web3/functionCalls/estimateGasRelayer.ts +40 -0
- package/src/functions/web3/functionCalls/getRootHash.ts +7 -0
- package/src/functions/web3/functionCalls/inHinkalApprovalCalls.ts +60 -0
- package/src/functions/web3/functionCalls/relayFunctions.ts +12 -0
- package/src/functions/web3/functionCalls/transactCallDirect.ts +71 -0
- package/src/functions/web3/functionCalls/transactCallRelayer.ts +57 -0
- package/src/functions/web3/getContractMetadata.ts +43 -0
- package/src/functions/web3/getPublicAddressBalance.ts +17 -0
- package/src/functions/web3/getTokenHolder.ts +53 -0
- package/src/functions/web3/index.ts +9 -0
- package/src/functions/web3/lifiAPI.ts +41 -0
- package/src/functions/web3/odosAPI.ts +50 -0
- package/src/functions/web3/oneInchAPI.ts +47 -0
- package/src/functions/web3/runContractFunction.ts +116 -0
- package/src/functions/web3/uniswapAPI.ts +156 -0
- package/src/index.ts +9 -0
- package/src/mutexes/index.ts +1 -0
- package/src/mutexes/mutex.ts +3 -0
- package/src/providers/EthersProviderAdapter.ts +230 -0
- package/src/providers/TorExternalProvider.ts +36 -0
- package/src/providers/WagmiProviderAdapter.ts +311 -0
- package/src/providers/exportProviers.ts +11 -0
- package/src/providers/prepareEthersHinkal.ts +18 -0
- package/src/providers/prepareWagmiHinkal.ts +16 -0
- package/src/types/API.types.ts +23 -0
- package/src/types/ICacheDevice.ts +5 -0
- package/src/types/IMultiThreadedUtxoUtils.ts +16 -0
- package/src/types/RewardUserEnums.ts +12 -0
- package/src/types/TransactionSimulator.types.ts +30 -0
- package/src/types/WeeklyAnalytics.types.ts +44 -0
- package/src/types/activities.types.ts +90 -0
- package/src/types/admin.types.ts +30 -0
- package/src/types/all-points.types.ts +8 -0
- package/src/types/approvals.types.ts +45 -0
- package/src/types/balances.types.ts +20 -0
- package/src/types/big-intable.types.ts +3 -0
- package/src/types/bridging.types.ts +30 -0
- package/src/types/brotherhood-user.types.ts +13 -0
- package/src/types/cache.types.ts +42 -0
- package/src/types/circom-data.types.ts +120 -0
- package/src/types/coingecko.types.ts +216 -0
- package/src/types/commitments.types.ts +39 -0
- package/src/types/confirmation-request.types.ts +10 -0
- package/src/types/contacts.types.ts +6 -0
- package/src/types/crypto.types.ts +8 -0
- package/src/types/duneAPI.types.ts +9 -0
- package/src/types/eip5792.types.ts +31 -0
- package/src/types/ethereum-network.types.ts +70 -0
- package/src/types/external-action.types.ts +19 -0
- package/src/types/fee.types.ts +11 -0
- package/src/types/generatePoints.ts +14 -0
- package/src/types/hinkal.stake.types.ts +12 -0
- package/src/types/hinkal.types.ts +150 -0
- package/src/types/index.ts +50 -0
- package/src/types/kyc.types.ts +49 -0
- package/src/types/merch-order.types.ts +18 -0
- package/src/types/message.types.ts +6 -0
- package/src/types/mystery-boxes.types.ts +50 -0
- package/src/types/new-rewards.type.ts +181 -0
- package/src/types/offscreen.types.ts +8 -0
- package/src/types/presaleReferral.types.ts +4 -0
- package/src/types/proxy.types.ts +11 -0
- package/src/types/referral.types.ts +13 -0
- package/src/types/relayer.types.ts +16 -0
- package/src/types/remote-proof.types.ts +18 -0
- package/src/types/rewards.types.ts +53 -0
- package/src/types/routing.types.ts +7 -0
- package/src/types/sandbox.types.ts +246 -0
- package/src/types/session.types.ts +12 -0
- package/src/types/signature.types.ts +11 -0
- package/src/types/slippage.types.ts +3 -0
- package/src/types/snark.types.ts +43 -0
- package/src/types/tenderly.api.types.ts +200 -0
- package/src/types/token-prices.types.ts +8 -0
- package/src/types/token-with-id.types.ts +4 -0
- package/src/types/token.types.ts +86 -0
- package/src/types/transactions.types.ts +120 -0
- package/src/types/wc.types.ts +83 -0
- package/src/types/with-id.types.ts +1 -0
- package/src/webworker/performTaskWithWorker.ts +50 -0
- package/src/webworker/snarkjsWorker/snarkjs.d.ts +2 -0
- package/src/webworker/snarkjsWorker/snarkjsWorker.types.ts +18 -0
- package/src/webworker/snarkjsWorker/snarkjsWorkerLauncher.ts +19 -0
- package/src/webworker/snarkjsWorker/snarkjsWorkerLogic.ts +90 -0
- package/src/webworker/utxoWorker/utxoWorker.types.ts +41 -0
- package/src/webworker/utxoWorker/utxoWorkerLauncher.ts +19 -0
- package/src/webworker/utxoWorker/utxoWorkerLogic.ts +107 -0
- package/src/webworker/viteWorkerURL.constant.ts +25 -0
- package/src/webworker/worker.registry.ts +11 -0
- package/src/webworker/worker.types.ts +35 -0
- package/src/webworker/workerErrorHandler.ts +10 -0
- package/src/webworker/workerFactory.ts +47 -0
- package/src/webworker/workerProxy.ts +88 -0
- package/src/webworker/zkProofWorker/zkProofWorker.types.ts +52 -0
- package/src/webworker/zkProofWorker/zkProofWorkerLauncher.ts +19 -0
- package/src/webworker/zkProofWorker/zkProofWorkerLogic.ts +84 -0
- package/tsconfig.json +23 -0
- package/tsconfig.lib.json +10 -0
- package/tsconfig.spec.json +15 -0
- package/vite.config.ts +97 -0
- package/vite.config.workers.ts +51 -0
|
@@ -0,0 +1,701 @@
|
|
|
1
|
+
{
|
|
2
|
+
"networkRegistry": [
|
|
3
|
+
{
|
|
4
|
+
"chainId": 10,
|
|
5
|
+
"erc20TokenAddress": "0x0000000000000000000000000000000000000000",
|
|
6
|
+
"wrappedErc20TokenAddress": "0x4200000000000000000000000000000000000006",
|
|
7
|
+
"name": "ETH",
|
|
8
|
+
"symbol": "ETH",
|
|
9
|
+
"decimals": 18,
|
|
10
|
+
"logoURI": "https://d1nvbznp963lfd.cloudfront.net/token-logos/ETH.avif"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"chainId": 10,
|
|
14
|
+
"erc20TokenAddress": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
|
|
15
|
+
"name": "USD Coin",
|
|
16
|
+
"symbol": "USDC",
|
|
17
|
+
"decimals": 6,
|
|
18
|
+
"logoURI": "https://d1nvbznp963lfd.cloudfront.net/token-logos/USDc.avif",
|
|
19
|
+
"allowanceStorageOffset": 10,
|
|
20
|
+
"isVyper": false,
|
|
21
|
+
"balanceStorageOffset": 9
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"chainId": 10,
|
|
25
|
+
"erc20TokenAddress": "0x7F5c764cBc14f9669B88837ca1490cCa17c31607",
|
|
26
|
+
"name": "USD Coin",
|
|
27
|
+
"symbol": "USDC.e",
|
|
28
|
+
"decimals": 6,
|
|
29
|
+
"logoURI": "https://d1nvbznp963lfd.cloudfront.net/token-logos/USDc.avif",
|
|
30
|
+
"allowanceStorageOffset": 1,
|
|
31
|
+
"isVyper": false,
|
|
32
|
+
"balanceStorageOffset": 0
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"chainId": 10,
|
|
36
|
+
"erc20TokenAddress": "0x94b008aa00579c1307b0ef2c499ad98a8ce58e58",
|
|
37
|
+
"name": "USDT",
|
|
38
|
+
"symbol": "USDT",
|
|
39
|
+
"decimals": 6,
|
|
40
|
+
"logoURI": "https://d1nvbznp963lfd.cloudfront.net/token-logos/USDT.avif",
|
|
41
|
+
"allowanceStorageOffset": 1,
|
|
42
|
+
"isVyper": false,
|
|
43
|
+
"balanceStorageOffset": 0
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"chainId": 10,
|
|
47
|
+
"erc20TokenAddress": "0x4200000000000000000000000000000000000006",
|
|
48
|
+
"name": "WETH",
|
|
49
|
+
"symbol": "WETH",
|
|
50
|
+
"decimals": 18,
|
|
51
|
+
"logoURI": "https://d1nvbznp963lfd.cloudfront.net/token-logos/WETH.avif",
|
|
52
|
+
"allowanceStorageOffset": 4,
|
|
53
|
+
"isVyper": false,
|
|
54
|
+
"balanceStorageOffset": 3
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"chainId": 10,
|
|
58
|
+
"erc20TokenAddress": "0x9Bcef72be871e61ED4fBbc7630889beE758eb81D",
|
|
59
|
+
"name": "rETH",
|
|
60
|
+
"symbol": "rETH",
|
|
61
|
+
"decimals": 18,
|
|
62
|
+
"logoURI": "https://assets.coingecko.com/coins/images/20764/standard/reth.png?1696520159",
|
|
63
|
+
"allowanceStorageOffset": 1,
|
|
64
|
+
"isVyper": false,
|
|
65
|
+
"balanceStorageOffset": 0
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"chainId": 10,
|
|
69
|
+
"erc20TokenAddress": "0x57F5E098CaD7A3D1Eed53991D4d66C45C9AF7812",
|
|
70
|
+
"name": "wUSDM",
|
|
71
|
+
"symbol": "wUSDM",
|
|
72
|
+
"decimals": 18,
|
|
73
|
+
"logoURI": "https://assets.coingecko.com/coins/images/33785/standard/wUSDM_PNG_240px.png?1702981552",
|
|
74
|
+
"allowanceStorageOffset": 52,
|
|
75
|
+
"isVyper": false,
|
|
76
|
+
"balanceStorageOffset": 51
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"chainId": 10,
|
|
80
|
+
"erc20TokenAddress": "0x68f180fcce6836688e9084f035309e29bf0a2095",
|
|
81
|
+
"name": "Wrapped Bitcoin",
|
|
82
|
+
"symbol": "WBTC",
|
|
83
|
+
"decimals": 8,
|
|
84
|
+
"logoURI": "https://d1nvbznp963lfd.cloudfront.net/token-logos/WBTC.avif",
|
|
85
|
+
"allowanceStorageOffset": 1,
|
|
86
|
+
"isVyper": false,
|
|
87
|
+
"balanceStorageOffset": 0
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"chainId": 10,
|
|
91
|
+
"erc20TokenAddress": "0xda10009cbd5d07dd0cecc66161fc93d7c9000da1",
|
|
92
|
+
"name": "Dai",
|
|
93
|
+
"symbol": "DAI",
|
|
94
|
+
"decimals": 18,
|
|
95
|
+
"logoURI": "https://d1nvbznp963lfd.cloudfront.net/token-logos/DAI.avif",
|
|
96
|
+
"allowanceStorageOffset": 3,
|
|
97
|
+
"isVyper": false,
|
|
98
|
+
"balanceStorageOffset": 2
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"chainId": 10,
|
|
102
|
+
"erc20TokenAddress": "0x8c6f28f2F1A3C87F0f938b96d27520d9751ec8d9",
|
|
103
|
+
"name": "Synth sUSD",
|
|
104
|
+
"symbol": "sUSD",
|
|
105
|
+
"decimals": 18,
|
|
106
|
+
"logoURI": "https://assets.coingecko.com/coins/images/5013/small/sUSD.png?1616150765"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"chainId": 10,
|
|
110
|
+
"erc20TokenAddress": "0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb",
|
|
111
|
+
"name": "wstETH",
|
|
112
|
+
"symbol": "wstETH",
|
|
113
|
+
"decimals": 18,
|
|
114
|
+
"logoURI": "https://assets.coingecko.com/coins/images/18834/standard/wstETH.png?1696518295",
|
|
115
|
+
"allowanceStorageOffset": 1,
|
|
116
|
+
"isVyper": false,
|
|
117
|
+
"balanceStorageOffset": 0
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"chainId": 10,
|
|
121
|
+
"erc20TokenAddress": "0x298B9B95708152ff6968aafd889c6586e9169f1D",
|
|
122
|
+
"name": "Synth sBTC",
|
|
123
|
+
"symbol": "sBTC",
|
|
124
|
+
"decimals": 18,
|
|
125
|
+
"logoURI": "https://assets.coingecko.com/coins/images/8838/small/sBTC.png?1616149734"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"chainId": 10,
|
|
129
|
+
"erc20TokenAddress": "0x1337BedC9D22ecbe766dF105c9623922A27963EC",
|
|
130
|
+
"name": "3CRV",
|
|
131
|
+
"symbol": "3CRV",
|
|
132
|
+
"decimals": 18,
|
|
133
|
+
"logoURI": "https://d1nvbznp963lfd.cloudfront.net/token-logos/CRV.avif",
|
|
134
|
+
"allowanceStorageOffset": 27,
|
|
135
|
+
"isVyper": true,
|
|
136
|
+
"balanceStorageOffset": 26
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"chainId": 10,
|
|
140
|
+
"erc20TokenAddress": "0x0994206dfe8de6ec6920ff4d779b0d950605fb53",
|
|
141
|
+
"name": "CRV",
|
|
142
|
+
"symbol": "CRV",
|
|
143
|
+
"decimals": 18,
|
|
144
|
+
"logoURI": "https://d1nvbznp963lfd.cloudfront.net/token-logos/CRV.avif",
|
|
145
|
+
"allowanceStorageOffset": 1,
|
|
146
|
+
"isVyper": false,
|
|
147
|
+
"balanceStorageOffset": 0
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"chainId": 10,
|
|
151
|
+
"erc20TokenAddress": "0xE405de8F52ba7559f9df3C368500B6E6ae6Cee49",
|
|
152
|
+
"name": "Synth sETH",
|
|
153
|
+
"symbol": "sETH",
|
|
154
|
+
"decimals": 18,
|
|
155
|
+
"logoURI": "https://assets.coingecko.com/coins/images/8843/small/sETH.png?1616150207"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"chainId": 10,
|
|
159
|
+
"erc20TokenAddress": "0x7Bc5728BC2b59B45a58d9A576E2Ffc5f0505B35E",
|
|
160
|
+
"name": "seth-f",
|
|
161
|
+
"symbol": "seth-f",
|
|
162
|
+
"decimals": 18,
|
|
163
|
+
"logoURI": "https://d1nvbznp963lfd.cloudfront.net/token-logos/CRV.avif",
|
|
164
|
+
"allowanceStorageOffset": 19,
|
|
165
|
+
"isVyper": true,
|
|
166
|
+
"balanceStorageOffset": 18
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"chainId": 10,
|
|
170
|
+
"erc20TokenAddress": "0xB153FB3d196A8eB25522705560ac152eeEc57901",
|
|
171
|
+
"name": "Magic Internet Money",
|
|
172
|
+
"symbol": "MIM",
|
|
173
|
+
"decimals": 18,
|
|
174
|
+
"logoURI": "https://d1nvbznp963lfd.cloudfront.net/token-logos/MIM.avif",
|
|
175
|
+
"allowanceStorageOffset": 12,
|
|
176
|
+
"isVyper": false,
|
|
177
|
+
"balanceStorageOffset": 2
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"chainId": 10,
|
|
181
|
+
"erc20TokenAddress": "0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40",
|
|
182
|
+
"name": "tBTC",
|
|
183
|
+
"symbol": "tBTC",
|
|
184
|
+
"decimals": 18,
|
|
185
|
+
"logoURI": "https://assets.coingecko.com/coins/images/11224/small/0x18084fba666a33d37592fa2633fd49a74dd93a88.png?1674474504",
|
|
186
|
+
"allowanceStorageOffset": 52,
|
|
187
|
+
"isVyper": false,
|
|
188
|
+
"balanceStorageOffset": 51
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"chainId": 10,
|
|
192
|
+
"erc20TokenAddress": "0x1Dc5c0f8668a9F54ED922171d578011850ca0341",
|
|
193
|
+
"name": "2BTC-f",
|
|
194
|
+
"symbol": "2BTC-f",
|
|
195
|
+
"decimals": 18,
|
|
196
|
+
"logoURI": "https://d1nvbznp963lfd.cloudfront.net/token-logos/CRV.avif",
|
|
197
|
+
"allowanceStorageOffset": 21,
|
|
198
|
+
"isVyper": true,
|
|
199
|
+
"balanceStorageOffset": 20
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"chainId": 10,
|
|
203
|
+
"erc20TokenAddress": "0xB280D03909Cc18640621955Cb3bC30948DF2Fa9a",
|
|
204
|
+
"name": "sGLP",
|
|
205
|
+
"symbol": "sGLP",
|
|
206
|
+
"decimals": 18,
|
|
207
|
+
"logoURI": "https://assets.coingecko.com/coins/images/18323/small/arbit.png?1631532468",
|
|
208
|
+
"allowanceStorageOffset": 4,
|
|
209
|
+
"isVyper": false
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"chainId": 10,
|
|
213
|
+
"erc20TokenAddress": "0x296f55f8fb28e498b858d0bcda06d955b2cb3f97",
|
|
214
|
+
"name": "Stargate",
|
|
215
|
+
"symbol": "STG",
|
|
216
|
+
"decimals": 18,
|
|
217
|
+
"logoURI": "https://assets.coingecko.com/coins/images/24413/small/STG_LOGO.png?1647654518",
|
|
218
|
+
"allowanceStorageOffset": 1,
|
|
219
|
+
"isVyper": false,
|
|
220
|
+
"balanceStorageOffset": 0
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"chainId": 10,
|
|
224
|
+
"erc20TokenAddress": "0x73cb180bf0521828d8849bc8CF2B920918e23032",
|
|
225
|
+
"name": "USD+",
|
|
226
|
+
"symbol": "USD+",
|
|
227
|
+
"decimals": 6,
|
|
228
|
+
"logoURI": "https://assets.coingecko.com/coins/images/25757/small/USD__logo.png?1653519267"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"chainId": 10,
|
|
232
|
+
"erc20TokenAddress": "0x970D50d09F3a656b43E11B0D45241a84e3a6e011",
|
|
233
|
+
"name": "DAI+",
|
|
234
|
+
"symbol": "DAI+",
|
|
235
|
+
"decimals": 18,
|
|
236
|
+
"logoURI": "https://assets.coingecko.com/coins/images/29634/small/DAI_.png?1680160024"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"chainId": 10,
|
|
240
|
+
"erc20TokenAddress": "0x1DB2466d9F5e10D7090E7152B68d62703a2245F0",
|
|
241
|
+
"name": "SONNE",
|
|
242
|
+
"symbol": "SONNE",
|
|
243
|
+
"decimals": 18,
|
|
244
|
+
"logoURI": "https://assets.coingecko.com/coins/images/27540/small/Token1.png?1664422231",
|
|
245
|
+
"allowanceStorageOffset": 1,
|
|
246
|
+
"isVyper": false,
|
|
247
|
+
"balanceStorageOffset": 0
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"chainId": 10,
|
|
251
|
+
"erc20TokenAddress": "0xc40F949F8a4e094D1b49a23ea9241D289B7b2819",
|
|
252
|
+
"name": "LUSD",
|
|
253
|
+
"symbol": "LUSD",
|
|
254
|
+
"decimals": 18,
|
|
255
|
+
"logoURI": "https://assets.coingecko.com/coins/images/14666/small/Group_3.png?1617631327",
|
|
256
|
+
"allowanceStorageOffset": 1,
|
|
257
|
+
"isVyper": false,
|
|
258
|
+
"balanceStorageOffset": 0
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"chainId": 10,
|
|
262
|
+
"erc20TokenAddress": "0xCB8FA9a76b8e203D8C3797bF438d8FB81Ea3326A",
|
|
263
|
+
"name": "alUSD",
|
|
264
|
+
"symbol": "alUSD",
|
|
265
|
+
"decimals": 18,
|
|
266
|
+
"logoURI": "https://assets.coingecko.com/coins/images/14113/small/Alchemix.png?1614409874",
|
|
267
|
+
"allowanceStorageOffset": 52,
|
|
268
|
+
"isVyper": false,
|
|
269
|
+
"balanceStorageOffset": 51
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"chainId": 10,
|
|
273
|
+
"erc20TokenAddress": "0xdFA46478F9e5EA86d57387849598dbFB2e964b02",
|
|
274
|
+
"name": "MAI",
|
|
275
|
+
"symbol": "MAI",
|
|
276
|
+
"decimals": 18,
|
|
277
|
+
"logoURI": "https://d1nvbznp963lfd.cloudfront.net/token-logos/MAI.avif",
|
|
278
|
+
"allowanceStorageOffset": 2,
|
|
279
|
+
"isVyper": false,
|
|
280
|
+
"balanceStorageOffset": 1
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"chainId": 10,
|
|
284
|
+
"erc20TokenAddress": "0x3c8B650257cFb5f272f799F5e2b4e65093a11a05",
|
|
285
|
+
"name": "VELO",
|
|
286
|
+
"symbol": "VELO",
|
|
287
|
+
"decimals": 18,
|
|
288
|
+
"logoURI": "https://d1nvbznp963lfd.cloudfront.net/token-logos/vAMM.webp",
|
|
289
|
+
"allowanceStorageOffset": 2,
|
|
290
|
+
"isVyper": false,
|
|
291
|
+
"balanceStorageOffset": 1
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"chainId": 10,
|
|
295
|
+
"erc20TokenAddress": "0x4200000000000000000000000000000000000042",
|
|
296
|
+
"name": "OP",
|
|
297
|
+
"symbol": "OP",
|
|
298
|
+
"decimals": 18,
|
|
299
|
+
"logoURI": "https://d1nvbznp963lfd.cloudfront.net/token-logos/OP.avif",
|
|
300
|
+
"allowanceStorageOffset": 1,
|
|
301
|
+
"isVyper": false,
|
|
302
|
+
"balanceStorageOffset": 0
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"chainId": 10,
|
|
306
|
+
"erc20TokenAddress": "0x2e3d870790dc77a83dd1d18184acc7439a53f475",
|
|
307
|
+
"name": "FRAX",
|
|
308
|
+
"symbol": "FRAX",
|
|
309
|
+
"decimals": 18,
|
|
310
|
+
"logoURI": "https://d1nvbznp963lfd.cloudfront.net/token-logos/FRAX.avif",
|
|
311
|
+
"allowanceStorageOffset": 1,
|
|
312
|
+
"isVyper": false,
|
|
313
|
+
"balanceStorageOffset": 0
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"chainId": 10,
|
|
317
|
+
"erc20TokenAddress": "0xfdb794692724153d1488ccdbe0c56c252596735f",
|
|
318
|
+
"name": "LDO",
|
|
319
|
+
"symbol": "LDO",
|
|
320
|
+
"decimals": 18,
|
|
321
|
+
"logoURI": "https://d1nvbznp963lfd.cloudfront.net/token-logos/LDO.avif",
|
|
322
|
+
"allowanceStorageOffset": 1,
|
|
323
|
+
"isVyper": false,
|
|
324
|
+
"balanceStorageOffset": 0
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"chainId": 10,
|
|
328
|
+
"erc20TokenAddress": "0x1e925De1c68ef83bD98eE3E130eF14a50309C01B",
|
|
329
|
+
"name": "EXA",
|
|
330
|
+
"symbol": "EXA",
|
|
331
|
+
"decimals": 18,
|
|
332
|
+
"logoURI": "https://assets.coingecko.com/coins/images/31089/small/EXA.png?1690447530",
|
|
333
|
+
"allowanceStorageOffset": 52,
|
|
334
|
+
"isVyper": false,
|
|
335
|
+
"balanceStorageOffset": 51
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"chainId": 10,
|
|
339
|
+
"erc20TokenAddress": "0xC03b43d492d904406db2d7D57e67C7e8234bA752",
|
|
340
|
+
"name": "wUSDR",
|
|
341
|
+
"symbol": "wUSDR",
|
|
342
|
+
"decimals": 9,
|
|
343
|
+
"logoURI": "https://assets.coingecko.com/coins/images/27973/small/USDR-200x200.png?1666772134"
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"chainId": 10,
|
|
347
|
+
"erc20TokenAddress": "0x920cf626a271321c151d027030d5d08af699456b",
|
|
348
|
+
"name": "KWENTA",
|
|
349
|
+
"symbol": "KWENTA",
|
|
350
|
+
"decimals": 18,
|
|
351
|
+
"logoURI": "https://assets.coingecko.com/coins/images/27409/small/kwenta.png?1668768595",
|
|
352
|
+
"allowanceStorageOffset": 1,
|
|
353
|
+
"isVyper": false,
|
|
354
|
+
"balanceStorageOffset": 0
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"chainId": 10,
|
|
358
|
+
"erc20TokenAddress": "0x484c2D6e3cDd945a8B2DF735e079178C1036578c",
|
|
359
|
+
"name": "sfrxETH",
|
|
360
|
+
"symbol": "sfrxETH",
|
|
361
|
+
"decimals": 18,
|
|
362
|
+
"logoURI": "https://d1nvbznp963lfd.cloudfront.net/token-logos/FRAX.avif",
|
|
363
|
+
"allowanceStorageOffset": 1,
|
|
364
|
+
"isVyper": false,
|
|
365
|
+
"balanceStorageOffset": 0
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"chainId": 10,
|
|
369
|
+
"erc20TokenAddress": "0x6806411765Af15Bddd26f8f544A34cC40cb9838B",
|
|
370
|
+
"name": "frxETH",
|
|
371
|
+
"symbol": "frxETH",
|
|
372
|
+
"decimals": 18,
|
|
373
|
+
"logoURI": "https://d1nvbznp963lfd.cloudfront.net/token-logos/FRAX.avif",
|
|
374
|
+
"allowanceStorageOffset": 1,
|
|
375
|
+
"isVyper": false,
|
|
376
|
+
"balanceStorageOffset": 0
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"chainId": 10,
|
|
380
|
+
"erc20TokenAddress": "0x3E29D3A9316dAB217754d13b28646B76607c5f04",
|
|
381
|
+
"name": "alETH",
|
|
382
|
+
"symbol": "alETH",
|
|
383
|
+
"decimals": 18,
|
|
384
|
+
"logoURI": "https://assets.coingecko.com/coins/images/14113/small/Alchemix.png?1614409874",
|
|
385
|
+
"allowanceStorageOffset": 52,
|
|
386
|
+
"isVyper": false,
|
|
387
|
+
"balanceStorageOffset": 51
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"chainId": 10,
|
|
391
|
+
"erc20TokenAddress": "0x8aE125E8653821E851F12A49F7765db9a9ce7384",
|
|
392
|
+
"name": "DOLA",
|
|
393
|
+
"symbol": "DOLA",
|
|
394
|
+
"decimals": 18,
|
|
395
|
+
"logoURI": "https://assets.coingecko.com/coins/images/14287/small/dola.png?1667738374",
|
|
396
|
+
"allowanceStorageOffset": 1,
|
|
397
|
+
"isVyper": false,
|
|
398
|
+
"balanceStorageOffset": 0
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
"chainId": 10,
|
|
402
|
+
"erc20TokenAddress": "0x217D47011b23BB961eB6D93cA9945B7501a5BB11",
|
|
403
|
+
"name": "THALES",
|
|
404
|
+
"symbol": "THALES",
|
|
405
|
+
"decimals": 18,
|
|
406
|
+
"logoURI": "https://assets.coingecko.com/coins/images/18388/small/CLVZJN_C_400x400.png?1631758808",
|
|
407
|
+
"allowanceStorageOffset": 1,
|
|
408
|
+
"isVyper": false,
|
|
409
|
+
"balanceStorageOffset": 0
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"chainId": 10,
|
|
413
|
+
"erc20TokenAddress": "0x9485aca5bbBE1667AD97c7fE7C4531a624C8b1ED",
|
|
414
|
+
"name": "agEUR",
|
|
415
|
+
"symbol": "agEUR",
|
|
416
|
+
"decimals": 18,
|
|
417
|
+
"logoURI": "https://assets.coingecko.com/coins/images/19479/small/agEUR.png?1635283566",
|
|
418
|
+
"allowanceStorageOffset": 52,
|
|
419
|
+
"isVyper": false,
|
|
420
|
+
"balanceStorageOffset": 51
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"chainId": 10,
|
|
424
|
+
"erc20TokenAddress": "0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb",
|
|
425
|
+
"name": "LYRA",
|
|
426
|
+
"symbol": "LYRA",
|
|
427
|
+
"decimals": 18,
|
|
428
|
+
"logoURI": "https://assets.coingecko.com/coins/images/21490/small/Add-a-heading-26.png?1639364177",
|
|
429
|
+
"allowanceStorageOffset": 1,
|
|
430
|
+
"isVyper": false,
|
|
431
|
+
"balanceStorageOffset": 0
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"chainId": 10,
|
|
435
|
+
"erc20TokenAddress": "0x79af5dd14e855823fa3e9ecacdf001d99647d043",
|
|
436
|
+
"name": "jEUR",
|
|
437
|
+
"symbol": "jEUR",
|
|
438
|
+
"decimals": 18,
|
|
439
|
+
"logoURI": "https://assets.coingecko.com/coins/images/15725/small/jEUR.png?1634046044",
|
|
440
|
+
"allowanceStorageOffset": 3,
|
|
441
|
+
"isVyper": false,
|
|
442
|
+
"balanceStorageOffset": 2
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
"chainId": 10,
|
|
446
|
+
"erc20TokenAddress": "0x9560e827aF36c94D2Ac33a39bCE1Fe78631088Db",
|
|
447
|
+
"name": "VELO",
|
|
448
|
+
"symbol": "VELO",
|
|
449
|
+
"decimals": 18,
|
|
450
|
+
"logoURI": "https://d1nvbznp963lfd.cloudfront.net/token-logos/vAMM.webp",
|
|
451
|
+
"allowanceStorageOffset": 1,
|
|
452
|
+
"isVyper": false,
|
|
453
|
+
"balanceStorageOffset": 0
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"chainId": 10,
|
|
457
|
+
"erc20TokenAddress": "0x4e720dd3ac5cfe1e1fbde4935f386bb1c66f4642",
|
|
458
|
+
"name": "BIFI",
|
|
459
|
+
"symbol": "BIFI",
|
|
460
|
+
"decimals": 18,
|
|
461
|
+
"logoURI": "https://d1nvbznp963lfd.cloudfront.net/token-logos/BIFI.avif",
|
|
462
|
+
"allowanceStorageOffset": 12,
|
|
463
|
+
"isVyper": false,
|
|
464
|
+
"balanceStorageOffset": 2
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
"chainId": 10,
|
|
468
|
+
"erc20TokenAddress": "0x6fd9d7ad17242c41f7131d257212c54a0e816691",
|
|
469
|
+
"name": "Uniswap",
|
|
470
|
+
"symbol": "UNI",
|
|
471
|
+
"decimals": 18,
|
|
472
|
+
"logoURI": "https://d1nvbznp963lfd.cloudfront.net/token-logos/UNISWAP.avif",
|
|
473
|
+
"allowanceStorageOffset": 1,
|
|
474
|
+
"isVyper": false,
|
|
475
|
+
"balanceStorageOffset": 0
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
"chainId": 10,
|
|
479
|
+
"erc20TokenAddress": "0x76fb31fb4af56892a25e32cfc43de717950c9278",
|
|
480
|
+
"name": "Aave Token",
|
|
481
|
+
"symbol": "AAVE",
|
|
482
|
+
"decimals": 18,
|
|
483
|
+
"logoURI": "https://assets.coingecko.com/coins/images/12645/standard/aave-token-round.png?1720472354",
|
|
484
|
+
"allowanceStorageOffset": 1,
|
|
485
|
+
"isVyper": false,
|
|
486
|
+
"balanceStorageOffset": 0
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"chainId": 10,
|
|
490
|
+
"erc20TokenAddress": "0x8700daec35af8ff88c16bdf0418774cb3d7599b4",
|
|
491
|
+
"name": "Synthetix Network Token",
|
|
492
|
+
"symbol": "SNX",
|
|
493
|
+
"decimals": 18,
|
|
494
|
+
"logoURI": "https://assets.coingecko.com/coins/images/3406/standard/SNX.png?1696504103"
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
"chainId": 10,
|
|
498
|
+
"erc20TokenAddress": "0x23ee2343b892b1bb63503a4fabc840e0e2c6810f",
|
|
499
|
+
"name": "Axelar",
|
|
500
|
+
"symbol": "AXL",
|
|
501
|
+
"decimals": 6,
|
|
502
|
+
"logoURI": "https://assets.coingecko.com/coins/images/27277/standard/V-65_xQ1_400x400.jpeg?1696526329",
|
|
503
|
+
"allowanceStorageOffset": 1,
|
|
504
|
+
"isVyper": false,
|
|
505
|
+
"balanceStorageOffset": 0
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
"chainId": 10,
|
|
509
|
+
"erc20TokenAddress": "0x350a791bfc2c21f9ed5d10980dad2e2638ffa7f6",
|
|
510
|
+
"name": "ChainLink Token",
|
|
511
|
+
"symbol": "LINK",
|
|
512
|
+
"decimals": 18,
|
|
513
|
+
"logoURI": "https://assets.coingecko.com/coins/images/877/standard/chainlink-new-logo.png?1696502009",
|
|
514
|
+
"allowanceStorageOffset": 1,
|
|
515
|
+
"isVyper": false,
|
|
516
|
+
"balanceStorageOffset": 0
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"chainId": 10,
|
|
520
|
+
"erc20TokenAddress": "0xdc6ff44d5d932cbd77b52e5612ba0529dc6226f1",
|
|
521
|
+
"name": "Worldcoin",
|
|
522
|
+
"symbol": "WLD",
|
|
523
|
+
"decimals": 18,
|
|
524
|
+
"logoURI": "https://assets.coingecko.com/coins/images/31069/standard/worldcoin.jpeg?1696529903",
|
|
525
|
+
"allowanceStorageOffset": 1,
|
|
526
|
+
"isVyper": false,
|
|
527
|
+
"balanceStorageOffset": 0
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
"chainId": 10,
|
|
531
|
+
"erc20TokenAddress": "0xe50fA9b3c56FfB159cB0FCA61F5c9D750e8128c8",
|
|
532
|
+
"underlyingErc20TokenAddress": "0x4200000000000000000000000000000000000006",
|
|
533
|
+
"name": "WETH_A_TOKEN v3",
|
|
534
|
+
"symbol": "WETH_A_TOKEN v3",
|
|
535
|
+
"decimals": 18,
|
|
536
|
+
"logoURI": "https://d1nvbznp963lfd.cloudfront.net/token-logos/AAVE.avif",
|
|
537
|
+
"isVolatile": true,
|
|
538
|
+
"aaveToken": true,
|
|
539
|
+
"allowanceStorageOffset": 53,
|
|
540
|
+
"isVyper": false
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
"chainId": 10,
|
|
544
|
+
"erc20TokenAddress": "0xc45A479877e1e9Dfe9FcD4056c699575a1045dAA",
|
|
545
|
+
"underlyingErc20TokenAddress": "0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb",
|
|
546
|
+
"name": "wstETH_A_TOKEN v3",
|
|
547
|
+
"symbol": "wstETH_A_TOKEN v3",
|
|
548
|
+
"decimals": 18,
|
|
549
|
+
"logoURI": "https://d1nvbznp963lfd.cloudfront.net/token-logos/AAVE.avif",
|
|
550
|
+
"isVolatile": true,
|
|
551
|
+
"aaveToken": true,
|
|
552
|
+
"allowanceStorageOffset": 53,
|
|
553
|
+
"isVyper": false
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"chainId": 10,
|
|
557
|
+
"erc20TokenAddress": "0x078f358208685046a11C85e8ad32895DED33A249",
|
|
558
|
+
"underlyingErc20TokenAddress": "0x68f180fcCe6836688e9084f035309E29Bf0A2095",
|
|
559
|
+
"name": "WBTC_A_TOKEN v3",
|
|
560
|
+
"symbol": "WBTC_A_TOKEN v3",
|
|
561
|
+
"decimals": 8,
|
|
562
|
+
"logoURI": "https://d1nvbznp963lfd.cloudfront.net/token-logos/AAVE.avif",
|
|
563
|
+
"isVolatile": true,
|
|
564
|
+
"aaveToken": true,
|
|
565
|
+
"allowanceStorageOffset": 53,
|
|
566
|
+
"isVyper": false
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
"chainId": 10,
|
|
570
|
+
"erc20TokenAddress": "0x38d693cE1dF5AaDF7bC62595A37D667aD57922e5",
|
|
571
|
+
"underlyingErc20TokenAddress": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
|
|
572
|
+
"name": "USDC_A_TOKEN v3",
|
|
573
|
+
"symbol": "USDC_A_TOKEN v3",
|
|
574
|
+
"decimals": 6,
|
|
575
|
+
"logoURI": "https://d1nvbznp963lfd.cloudfront.net/token-logos/AAVE.avif",
|
|
576
|
+
"isVolatile": true,
|
|
577
|
+
"aaveToken": true,
|
|
578
|
+
"allowanceStorageOffset": 53,
|
|
579
|
+
"isVyper": false
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"chainId": 10,
|
|
583
|
+
"erc20TokenAddress": "0x6ab707Aca953eDAeFBc4fD23bA73294241490620",
|
|
584
|
+
"underlyingErc20TokenAddress": "0x94b008aA00579c1307B0EF2c499aD98a8ce58e58",
|
|
585
|
+
"name": "USDT_A_TOKEN v3",
|
|
586
|
+
"symbol": "USDT_A_TOKEN v3",
|
|
587
|
+
"decimals": 6,
|
|
588
|
+
"logoURI": "https://d1nvbznp963lfd.cloudfront.net/token-logos/AAVE.avif",
|
|
589
|
+
"isVolatile": true,
|
|
590
|
+
"aaveToken": true,
|
|
591
|
+
"allowanceStorageOffset": 53,
|
|
592
|
+
"isVyper": false
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
"chainId": 10,
|
|
596
|
+
"erc20TokenAddress": "0x82E64f49Ed5EC1bC6e43DAD4FC8Af9bb3A2312EE",
|
|
597
|
+
"underlyingErc20TokenAddress": "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1",
|
|
598
|
+
"name": "DAI_A_TOKEN v3",
|
|
599
|
+
"symbol": "DAI_A_TOKEN v3",
|
|
600
|
+
"decimals": 18,
|
|
601
|
+
"logoURI": "https://d1nvbznp963lfd.cloudfront.net/token-logos/AAVE.avif",
|
|
602
|
+
"isVolatile": true,
|
|
603
|
+
"aaveToken": true,
|
|
604
|
+
"allowanceStorageOffset": 53,
|
|
605
|
+
"isVyper": false
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
"chainId": 10,
|
|
609
|
+
"erc20TokenAddress": "0x4186BFC76E2E237523CBC30FD220FE055156b41F",
|
|
610
|
+
"name": "Kelp DAO Restaked ETH",
|
|
611
|
+
"symbol": "rsETH",
|
|
612
|
+
"decimals": 18,
|
|
613
|
+
"logoURI": "https://assets.coingecko.com/coins/images/33800/standard/Icon___Dark.png?1702991855",
|
|
614
|
+
"allowanceStorageOffset": 6,
|
|
615
|
+
"isVyper": false,
|
|
616
|
+
"balanceStorageOffset": 5
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
"chainId": 10,
|
|
620
|
+
"erc20TokenAddress": "0x346e03F8Cce9fE01dCB3d0Da3e9D00dC2c0E08f0",
|
|
621
|
+
"name": "Wrapped Restaked eETH",
|
|
622
|
+
"symbol": "weETH",
|
|
623
|
+
"decimals": 18,
|
|
624
|
+
"logoURI": "https://assets.coingecko.com/coins/images/33033/small/weETH.png?1701438396",
|
|
625
|
+
"allowanceStorageOffset": 1,
|
|
626
|
+
"isVyper": false,
|
|
627
|
+
"balanceStorageOffset": 0
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
"chainId": 10,
|
|
631
|
+
"erc20TokenAddress": "0x9C9e5fD8bbc25984B178FdCE6117Defa39d2db39",
|
|
632
|
+
"name": "Binance USD",
|
|
633
|
+
"symbol": "BUSD",
|
|
634
|
+
"decimals": 18,
|
|
635
|
+
"logoURI": "https://assets.coingecko.com/coins/images/9576/thumb/BUSD.png?1568947766",
|
|
636
|
+
"allowanceStorageOffset": 52,
|
|
637
|
+
"isVyper": false,
|
|
638
|
+
"balanceStorageOffset": 51
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
"chainId": 10,
|
|
642
|
+
"erc20TokenAddress": "0x9b88D293b7a791E40d36A39765FFd5A1B9b5c349",
|
|
643
|
+
"name": "Celo native asset (Wormhole)",
|
|
644
|
+
"symbol": "CELO",
|
|
645
|
+
"decimals": 18,
|
|
646
|
+
"logoURI": "https://raw.githubusercontent.com/wormhole-foundation/wormhole-token-list/main/assets/celo_wh.png",
|
|
647
|
+
"allowanceStorageOffset": 6,
|
|
648
|
+
"isVyper": false,
|
|
649
|
+
"balanceStorageOffset": 5
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
"chainId": 10,
|
|
653
|
+
"erc20TokenAddress": "0x14778860E937f509e651192a90589dE711Fb88a9",
|
|
654
|
+
"name": "CYBER",
|
|
655
|
+
"symbol": "CYBER",
|
|
656
|
+
"decimals": 18,
|
|
657
|
+
"logoURI": "https://coin-images.coingecko.com/coins/images/31274/large/token.png?1715826754",
|
|
658
|
+
"allowanceStorageOffset": 1,
|
|
659
|
+
"isVyper": false,
|
|
660
|
+
"balanceStorageOffset": 0
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
"chainId": 10,
|
|
664
|
+
"erc20TokenAddress": "0x33800De7E817A70A694F31476313A7c572BBa100",
|
|
665
|
+
"name": "Derive",
|
|
666
|
+
"symbol": "DRV",
|
|
667
|
+
"decimals": 18,
|
|
668
|
+
"logoURI": "https://coin-images.coingecko.com/coins/images/52889/large/Token_Logo.png?1734601695"
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
"chainId": 10,
|
|
672
|
+
"erc20TokenAddress": "0x3A18dcC9745eDcD1Ef33ecB93b0b6eBA5671e7Ca",
|
|
673
|
+
"name": "Kujira",
|
|
674
|
+
"symbol": "KUJI",
|
|
675
|
+
"decimals": 6,
|
|
676
|
+
"logoURI": "https://assets.coingecko.com/coins/images/20685/standard/kuji-200x200.png",
|
|
677
|
+
"allowanceStorageOffset": 1,
|
|
678
|
+
"isVyper": false,
|
|
679
|
+
"balanceStorageOffset": 0
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
"chainId": 10,
|
|
683
|
+
"erc20TokenAddress": "0xeF4461891DfB3AC8572cCf7C794664A8DD927945",
|
|
684
|
+
"name": "WalletConnect",
|
|
685
|
+
"symbol": "WCT",
|
|
686
|
+
"decimals": 18,
|
|
687
|
+
"logoURI": "https://coin-images.coingecko.com/coins/images/50390/large/wc-token1.png?1727569464"
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
"chainId": 10,
|
|
691
|
+
"erc20TokenAddress": "0x6985884C4392D348587B19cb9eAAf157F13271cd",
|
|
692
|
+
"name": "LayerZero",
|
|
693
|
+
"symbol": "ZRO",
|
|
694
|
+
"decimals": 18,
|
|
695
|
+
"logoURI": "https://assets.coingecko.com/coins/images/28206/standard/ftxG9_TJ_400x400.jpeg?1696527208",
|
|
696
|
+
"allowanceStorageOffset": 6,
|
|
697
|
+
"isVyper": false,
|
|
698
|
+
"balanceStorageOffset": 5
|
|
699
|
+
}
|
|
700
|
+
]
|
|
701
|
+
}
|