@gurge/sdk 0.3.5 → 0.3.8
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/common/src/API/API.d.ts +127 -0
- package/common/src/API/accessCodeCalls.d.ts +23 -0
- package/common/src/API/admin-calls.d.ts +9 -0
- package/common/src/API/brotherhoodCalls.d.ts +82 -0
- package/common/src/API/callLifiAPI.d.ts +33 -0
- package/common/src/API/callMonitor.d.ts +9 -0
- package/common/src/API/callNearIntentsAPI.d.ts +3 -0
- package/common/src/API/callOdosAPI.d.ts +63 -0
- package/common/src/API/callOkxAPI.d.ts +10 -0
- package/common/src/API/callOneInchAPI.d.ts +18 -0
- package/common/src/API/callRelayer.d.ts +41 -0
- package/common/src/API/checkRisk.d.ts +1 -0
- package/common/src/API/dashboardAccountCalls.d.ts +24 -0
- package/common/src/API/dashboardAccountMemberCalls.d.ts +34 -0
- package/common/src/API/dashboardBalanceCalls.d.ts +12 -0
- package/common/src/API/dashboardContactCalls.d.ts +9 -0
- package/common/src/API/dashboardPayoutCalls.d.ts +14 -0
- package/common/src/API/dashboardTransactionCalls.d.ts +3 -0
- package/common/src/API/deposit-and-withdraw-status-calls.d.ts +21 -0
- package/common/src/API/enclaveRecipientInfoCalls.d.ts +14 -0
- package/common/src/API/enclaveSignatureCalls.d.ts +5 -0
- package/common/src/API/enclaveUtxoCalls.d.ts +46 -0
- package/common/src/API/fetchCommitmentsCache.d.ts +19 -0
- package/common/src/API/generate-trading-points.d.ts +27 -0
- package/common/src/API/get-token-data.d.ts +6 -0
- package/common/src/API/get-token-price-chart-data.d.ts +16 -0
- package/common/src/API/getAnyRecipientInfo.d.ts +1 -0
- package/common/src/API/getCoingeckoPrice.d.ts +21 -0
- package/common/src/API/getGasEstimates.d.ts +10 -0
- package/common/src/API/getServerURL.d.ts +7 -0
- package/common/src/API/getTokenPrice.d.ts +10 -0
- package/common/src/API/getWebsiteURL.d.ts +5 -0
- package/common/src/API/index.d.ts +25 -0
- package/common/src/API/kycCalls.d.ts +14 -0
- package/common/src/API/leaderboardCalls.d.ts +14 -0
- package/common/src/API/onrampCalls.d.ts +20 -0
- package/common/src/API/privacy-score-calls.d.ts +17 -0
- package/common/src/API/privateSendEmailNotificationsCalls.d.ts +8 -0
- package/common/src/API/privateSendNonceCalls.d.ts +13 -0
- package/common/src/API/privateSendRecipientInfoCalls.d.ts +11 -0
- package/common/src/API/proxyAccountsCalls.d.ts +6 -0
- package/common/src/API/referralsCalls.d.ts +22 -0
- package/common/src/API/relayCalls.d.ts +5 -0
- package/common/src/API/resolve-sns.d.ts +1 -0
- package/common/src/API/rewardsUserCalls.d.ts +60 -0
- package/common/src/API/scheduled-transactions-calls.d.ts +20 -0
- package/common/src/API/seedless-calls.d.ts +53 -0
- package/common/src/API/send-telegram-callback.d.ts +7 -0
- package/common/src/API/simulate-batch-tx.d.ts +3 -0
- package/common/src/API/simulate-transaction.d.ts +5 -0
- package/common/src/API/snapshot-event-calls.d.ts +7 -0
- package/common/src/API/temporaryWalletCalls.d.ts +13 -0
- package/common/src/API/tenderly.api.d.ts +20 -0
- package/common/src/API/token-calls.d.ts +4 -0
- package/common/src/API/tronSubsidyCalls.d.ts +13 -0
- package/common/src/API/weeklyAnalyticCalls.d.ts +22 -0
- package/common/src/constants/activity.constants.d.ts +2 -0
- package/common/src/constants/addresses.constants.d.ts +70 -0
- package/common/src/constants/assets.constants.d.ts +13 -0
- package/common/src/constants/auth.constants.d.ts +2 -0
- package/common/src/constants/backend.constants.d.ts +12 -0
- package/common/src/constants/balance.constants.d.ts +1 -0
- package/common/src/constants/bridging.constants.d.ts +25 -0
- package/common/src/constants/chains.constants.d.ts +70 -0
- package/common/src/constants/coingecko.constants.d.ts +43 -0
- package/common/src/constants/contracts.constants.d.ts +119 -0
- package/common/src/constants/conversion.constants.d.ts +1 -0
- package/common/src/constants/deploy-data/index.d.ts +14 -0
- package/common/src/constants/deploy-data/mergeDeployData.d.ts +4 -0
- package/common/src/constants/events.constants.d.ts +1 -0
- package/common/src/constants/fees.constants.d.ts +9 -0
- package/common/src/constants/function-signatures.constants.d.ts +4 -0
- package/common/src/constants/images.constants.d.ts +1 -0
- package/common/src/constants/index.d.ts +37 -0
- package/common/src/constants/kyc.constants.d.ts +29 -0
- package/common/src/constants/lifi.constants.d.ts +3 -0
- package/common/src/constants/link.constant.d.ts +1 -0
- package/common/src/constants/mediaUrls.constants.d.ts +45 -0
- package/common/src/constants/mystery-boxes.constants.d.ts +0 -0
- package/common/src/constants/oauthUrls.constants.d.ts +4 -0
- package/common/src/constants/okx.constants.d.ts +2 -0
- package/common/src/constants/pay.constants.d.ts +1 -0
- package/common/src/constants/permit2.constants.d.ts +7 -0
- package/common/src/constants/presale.constants.d.ts +87 -0
- package/common/src/constants/price-impact.constants.d.ts +2 -0
- package/common/src/constants/protocol.constants.d.ts +62 -0
- package/common/src/constants/reorg-depths.constants.d.ts +17 -0
- package/common/src/constants/rewards.constants.d.ts +17 -0
- package/common/src/constants/save-depths.d.ts +19 -0
- package/common/src/constants/schedule.constants.d.ts +2 -0
- package/common/src/constants/server.constants.d.ts +142 -0
- package/common/src/constants/tasks.constants.d.ts +9 -0
- package/common/src/constants/token.limits.constants.d.ts +5 -0
- package/common/src/constants/tokens.constants.d.ts +4 -0
- package/common/src/constants/tx-confirmation.constants.d.ts +4 -0
- package/common/src/constants/vite.constants.d.ts +15 -0
- package/common/src/constants/wallet.constants.d.ts +1 -0
- package/common/src/crypto/babyJub.d.ts +16 -0
- package/common/src/crypto/ecdh-dual-path.d.ts +13 -0
- package/common/src/crypto/ecdh-sealed-keys.d.ts +22 -0
- package/common/src/crypto/ecdh.d.ts +2 -0
- package/common/src/crypto/eddsa.d.ts +8 -0
- package/common/src/crypto/index.d.ts +7 -0
- package/common/src/crypto/poseidon.d.ts +15 -0
- package/common/src/crypto/preProcessing.d.ts +1 -0
- package/common/src/data-structures/AccountActions/AccountActions.d.ts +17 -0
- package/common/src/data-structures/AccountActions/index.d.ts +1 -0
- package/common/src/data-structures/ApprovalDBs/EventsPublicApprovalsDB.d.ts +18 -0
- package/common/src/data-structures/ApprovalDBs/index.d.ts +1 -0
- package/common/src/data-structures/BlockchainEvent/BlockchainEvent.d.ts +14 -0
- package/common/src/data-structures/Hinkal/Hinkal.d.ts +116 -0
- package/common/src/data-structures/Hinkal/HinkalPrivateBalanceController.d.ts +19 -0
- package/common/src/data-structures/Hinkal/IHinkal.d.ts +103 -0
- package/common/src/data-structures/Hinkal/handleAutoDepositBack.d.ts +3 -0
- package/common/src/data-structures/Hinkal/hinkalActionReceive.d.ts +7 -0
- package/common/src/data-structures/Hinkal/hinkalClaimUtxo.d.ts +5 -0
- package/common/src/data-structures/Hinkal/hinkalDeposit.d.ts +6 -0
- package/common/src/data-structures/Hinkal/hinkalDepositAndBridge.d.ts +4 -0
- package/common/src/data-structures/Hinkal/hinkalDepositAndWithdraw.d.ts +6 -0
- package/common/src/data-structures/Hinkal/hinkalDepositOnChainUtxos.d.ts +8 -0
- package/common/src/data-structures/Hinkal/hinkalGetRecipientInfo.d.ts +2 -0
- package/common/src/data-structures/Hinkal/hinkalGetZkMeProvider.d.ts +28 -0
- package/common/src/data-structures/Hinkal/hinkalMultiSend.d.ts +3 -0
- package/common/src/data-structures/Hinkal/hinkalNearDepositAndBridge.d.ts +6 -0
- package/common/src/data-structures/Hinkal/hinkalPalEvmDeposit.d.ts +9 -0
- package/common/src/data-structures/Hinkal/hinkalPalSolanaDepositPrepare.d.ts +9 -0
- package/common/src/data-structures/Hinkal/hinkalPalTronDepositPrepare.d.ts +9 -0
- package/common/src/data-structures/Hinkal/hinkalPrivateWallet.d.ts +6 -0
- package/common/src/data-structures/Hinkal/hinkalProoflessDeposit.d.ts +8 -0
- package/common/src/data-structures/Hinkal/hinkalProoflessDeposit.utils.d.ts +7 -0
- package/common/src/data-structures/Hinkal/hinkalProoflessDepositViaWrapper.d.ts +6 -0
- package/common/src/data-structures/Hinkal/hinkalProxySwap.d.ts +7 -0
- package/common/src/data-structures/Hinkal/hinkalProxyToPrivate.d.ts +6 -0
- package/common/src/data-structures/Hinkal/hinkalSignSubAccount.d.ts +4 -0
- package/common/src/data-structures/Hinkal/hinkalSolanaClaimUtxo.d.ts +5 -0
- package/common/src/data-structures/Hinkal/hinkalSolanaDeposit.d.ts +8 -0
- package/common/src/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.d.ts +24 -0
- package/common/src/data-structures/Hinkal/hinkalSolanaProoflessDeposit.d.ts +5 -0
- package/common/src/data-structures/Hinkal/hinkalSolanaProxySend.d.ts +6 -0
- package/common/src/data-structures/Hinkal/hinkalSolanaProxyShield.d.ts +6 -0
- package/common/src/data-structures/Hinkal/hinkalSolanaProxySwap.d.ts +6 -0
- package/common/src/data-structures/Hinkal/hinkalSolanaSwap.d.ts +4 -0
- package/common/src/data-structures/Hinkal/hinkalSolanaTransfer.d.ts +31 -0
- package/common/src/data-structures/Hinkal/hinkalSolanaWithdraw.d.ts +4 -0
- package/common/src/data-structures/Hinkal/hinkalSwap.d.ts +7 -0
- package/common/src/data-structures/Hinkal/hinkalTransfer.d.ts +4 -0
- package/common/src/data-structures/Hinkal/hinkalWithdraw.d.ts +7 -0
- package/common/src/data-structures/Hinkal/hinkalWithdrawStuckUtxos.d.ts +3 -0
- package/common/src/data-structures/Hinkal/index.d.ts +25 -0
- package/common/src/data-structures/Hinkal/prepareDepositOnChainUtxosZkProof.d.ts +22 -0
- package/common/src/data-structures/Hinkal/resetMerkleTrees.d.ts +2 -0
- package/common/src/data-structures/IndexedDB/activity-db.d.ts +14 -0
- package/common/src/data-structures/IndexedDB/balances-db.d.ts +13 -0
- package/common/src/data-structures/IndexedDB/contact-db.d.ts +12 -0
- package/common/src/data-structures/IndexedDB/index.d.ts +8 -0
- package/common/src/data-structures/IndexedDB/key-val-store.d.ts +6 -0
- package/common/src/data-structures/IndexedDB/pay-activity-db.d.ts +9 -0
- package/common/src/data-structures/IndexedDB/prices-db.d.ts +9 -0
- package/common/src/data-structures/IndexedDB/private-balances-db.d.ts +9 -0
- package/common/src/data-structures/IndexedDB/signatures-db.d.ts +10 -0
- package/common/src/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.d.ts +20 -0
- package/common/src/data-structures/TokenDBs/AlchemyPublicTokensDB.d.ts +19 -0
- package/common/src/data-structures/TokenDBs/ArcPublicTokensDB.d.ts +11 -0
- package/common/src/data-structures/TokenDBs/EventsPublicTokensDB.d.ts +18 -0
- package/common/src/data-structures/TokenDBs/IPublicTokensDB.d.ts +6 -0
- package/common/src/data-structures/TokenDBs/PrivateTokensDB.d.ts +11 -0
- package/common/src/data-structures/TokenDBs/PublicTokensDB.d.ts +9 -0
- package/common/src/data-structures/TokenDBs/index.d.ts +4 -0
- package/common/src/data-structures/TokenDBs/token-visibility-db.d.ts +17 -0
- package/common/src/data-structures/ValueCache/ValueCache.d.ts +10 -0
- package/common/src/data-structures/ValueCache/index.d.ts +1 -0
- package/common/src/data-structures/WalletManager/WalletManager.d.ts +51 -0
- package/common/src/data-structures/WalletManager/index.d.ts +1 -0
- package/common/src/data-structures/cacheDevices/AttachableMemoryCacheDevice.d.ts +8 -0
- package/common/src/data-structures/cacheDevices/BaseCacheDevice.d.ts +11 -0
- package/common/src/data-structures/cacheDevices/FileCacheDevice.d.ts +10 -0
- package/common/src/data-structures/cacheDevices/LocalStorageCacheDevice.d.ts +8 -0
- package/common/src/data-structures/cacheDevices/index.d.ts +2 -0
- package/common/src/data-structures/crypto-keys/decodeUTXO.d.ts +28 -0
- package/common/src/data-structures/crypto-keys/encryptDecryptUtxo.d.ts +18 -0
- package/common/src/data-structures/crypto-keys/index.d.ts +4 -0
- package/common/src/data-structures/crypto-keys/keyUtils.d.ts +2 -0
- package/common/src/data-structures/crypto-keys/keys.d.ts +131 -0
- package/common/src/data-structures/custom-token-registry/CustomTokenRegistry.d.ts +12 -0
- package/common/src/data-structures/event-service/evm/AbstractCommitmentsSnapshotService.d.ts +34 -0
- package/common/src/data-structures/event-service/evm/AbstractEventService.d.ts +14 -0
- package/common/src/data-structures/event-service/evm/AbstractNullifierSnapshotService.d.ts +22 -0
- package/common/src/data-structures/event-service/evm/AbstractSnapshotService.d.ts +22 -0
- package/common/src/data-structures/event-service/evm/BlockchainEventEmitter.d.ts +37 -0
- package/common/src/data-structures/event-service/evm/ClientBlockchainEventEmitter.d.ts +11 -0
- package/common/src/data-structures/event-service/evm/PollingBlockchainEventEmitter.d.ts +6 -0
- package/common/src/data-structures/event-service/helpers/ClientEventHelper.d.ts +10 -0
- package/common/src/data-structures/event-service/helpers/PollingEventHelper.d.ts +7 -0
- package/common/src/data-structures/event-service/index.d.ts +14 -0
- package/common/src/data-structures/event-service/solana/AbstractSolanaCommitmentsSnapshotService.d.ts +34 -0
- package/common/src/data-structures/event-service/solana/AbstractSolanaEventService.d.ts +17 -0
- package/common/src/data-structures/event-service/solana/AbstractSolanaNullifierSnapshotService.d.ts +22 -0
- package/common/src/data-structures/event-service/solana/AbstractSolanaSnapshotService.d.ts +21 -0
- package/common/src/data-structures/event-service/solana/ClientSolanaBlockchainEventEmitter.d.ts +11 -0
- package/common/src/data-structures/event-service/solana/PollingSolanaBlockchainEventEmitter.d.ts +6 -0
- package/common/src/data-structures/event-service/solana/SolanaBlockchainEventEmitter.d.ts +42 -0
- package/common/src/data-structures/http/BasicHttpClient.d.ts +11 -0
- package/common/src/data-structures/http/HttpClient.d.ts +10 -0
- package/common/src/data-structures/http/index.d.ts +2 -0
- package/common/src/data-structures/index.d.ts +21 -0
- package/common/src/data-structures/merkle-tree/MerkleTree.d.ts +82 -0
- package/common/src/data-structures/merkle-tree/MerkleTreeIncompleteError.d.ts +3 -0
- package/common/src/data-structures/merkle-tree/index.d.ts +2 -0
- package/common/src/data-structures/presale/PresaleContractWrapper.d.ts +23 -0
- package/common/src/data-structures/presale/index.d.ts +1 -0
- package/common/src/data-structures/provider-adapter/IProviderAdapter.d.ts +40 -0
- package/common/src/data-structures/snapshot/SnapshotFetcherService.d.ts +14 -0
- package/common/src/data-structures/snapshot/evm-snapshots/ClientCommitmentsSnapshotService.d.ts +8 -0
- package/common/src/data-structures/snapshot/evm-snapshots/ClientNullifierSnapshotService.d.ts +8 -0
- package/common/src/data-structures/snapshot/index.d.ts +5 -0
- package/common/src/data-structures/snapshot/solana-snapshots/ClientSolanaCommitmentsSnapshotService.d.ts +8 -0
- package/common/src/data-structures/snapshot/solana-snapshots/ClientSolanaNullifierSnapshotService.d.ts +8 -0
- package/common/src/data-structures/token-price-fetcher/TokenChecker.d.ts +9 -0
- package/common/src/data-structures/token-price-fetcher/index.d.ts +1 -0
- package/common/src/data-structures/transactions-manager/history/history.types.d.ts +16 -0
- package/common/src/data-structures/transactions-manager/index.d.ts +1 -0
- package/common/src/data-structures/utxo/Utxo.d.ts +69 -0
- package/common/src/error-handling/customErrors/ErrorWithAmount.d.ts +4 -0
- package/common/src/error-handling/customErrors/ErrorWithIndex.d.ts +4 -0
- package/common/src/error-handling/customErrors/ErrorWithTx.d.ts +4 -0
- package/common/src/error-handling/customErrors/FeeOverTransactionValueError.d.ts +9 -0
- package/common/src/error-handling/customErrors/HttpError.d.ts +4 -0
- package/common/src/error-handling/customErrors/SimulationFailureError.d.ts +10 -0
- package/common/src/error-handling/customErrors/customErrors.helpers.d.ts +5 -0
- package/common/src/error-handling/customErrors/index.d.ts +7 -0
- package/common/src/error-handling/error-codes.constants.d.ts +250 -0
- package/common/src/error-handling/get-error.message.d.ts +5 -0
- package/common/src/error-handling/index.d.ts +6 -0
- package/common/src/error-handling/isInsufficientFundsError.d.ts +1 -0
- package/common/src/error-handling/logError.d.ts +1 -0
- package/common/src/error-handling/logger.d.ts +5 -0
- package/common/src/error-handling/retrySolanaError.d.ts +1 -0
- package/common/src/error-handling/types.d.ts +10 -0
- package/common/src/externalABIs/BUSD.d.ts +38 -0
- package/common/src/externalABIs/DAI.d.ts +45 -0
- package/common/src/externalABIs/SanctionsList.d.ts +35 -0
- package/common/src/externalABIs/USDC.d.ts +28 -0
- package/common/src/externalABIs/USDR.d.ts +28 -0
- package/common/src/externalABIs/USDR3CRV.d.ts +49 -0
- package/common/src/externalABIs/USDT.d.ts +41 -0
- package/common/src/externalABIs/WETH.d.ts +38 -0
- package/common/src/externalABIs/amToken.d.ts +28 -0
- package/common/src/externalABIs/index.d.ts +254 -0
- package/common/src/externalABIs/swapAbi.d.ts +77 -0
- package/common/src/functions/auto-deposit-back-helpers/get-gas-token-records.d.ts +9 -0
- package/common/src/functions/auto-deposit-back-helpers/get-tokens-to-deposit-back.d.ts +3 -0
- package/common/src/functions/auto-deposit-back-helpers/index.d.ts +4 -0
- package/common/src/functions/auto-deposit-back-helpers/select-gas-token.d.ts +13 -0
- package/common/src/functions/auto-deposit-back-helpers/update-hinkal.d.ts +3 -0
- package/common/src/functions/connectors.types.d.ts +22 -0
- package/common/src/functions/index.d.ts +13 -0
- package/common/src/functions/kyc/aiPriseHelper.d.ts +0 -0
- package/common/src/functions/kyc/checkTokenLimitsUSD.d.ts +1 -0
- package/common/src/functions/kyc/index.d.ts +3 -0
- package/common/src/functions/kyc/openDefaultPassportWindow.d.ts +1 -0
- package/common/src/functions/kyc/passportHelper.d.ts +3 -0
- package/common/src/functions/kyc/zkMeHelper.d.ts +4 -0
- package/common/src/functions/pre-transaction/addressTableLookup.d.ts +4 -0
- package/common/src/functions/pre-transaction/buildCommitmentValidationData.d.ts +14 -0
- package/common/src/functions/pre-transaction/calculateSolanaNullifierCount.d.ts +2 -0
- package/common/src/functions/pre-transaction/constructAdminData.d.ts +3 -0
- package/common/src/functions/pre-transaction/convert-okx-instructions.d.ts +11 -0
- package/common/src/functions/pre-transaction/ensureAmountChanges.d.ts +2 -0
- package/common/src/functions/pre-transaction/getExternalSwapAddress.d.ts +2 -0
- package/common/src/functions/pre-transaction/getFeeStructure.d.ts +5 -0
- package/common/src/functions/pre-transaction/getSolanaCalldataHash.d.ts +4 -0
- package/common/src/functions/pre-transaction/getVolatileTransferAmount.d.ts +9 -0
- package/common/src/functions/pre-transaction/index.d.ts +19 -0
- package/common/src/functions/pre-transaction/interaction-to-action.d.ts +2 -0
- package/common/src/functions/pre-transaction/merge-with-fee-structure-emporium.d.ts +3 -0
- package/common/src/functions/pre-transaction/merge-with-fee-structure.d.ts +2 -0
- package/common/src/functions/pre-transaction/outputUtxoProcessing.d.ts +5 -0
- package/common/src/functions/pre-transaction/process-gas-estimates.d.ts +5 -0
- package/common/src/functions/pre-transaction/recipientUtxoProcessing.d.ts +3 -0
- package/common/src/functions/pre-transaction/sendInitNullifiersTransaction.d.ts +11 -0
- package/common/src/functions/pre-transaction/sendV0Transaction.d.ts +18 -0
- package/common/src/functions/pre-transaction/solana-public-signals.d.ts +21 -0
- package/common/src/functions/pre-transaction/solana.d.ts +14 -0
- package/common/src/functions/pre-transaction/solanaTransfer.utils.d.ts +6 -0
- package/common/src/functions/pre-transaction/store-instructions.d.ts +4 -0
- package/common/src/functions/pre-transaction/store-proof.d.ts +7 -0
- package/common/src/functions/pre-transaction/waitForDepositedUtxosInMerkleTree.d.ts +3 -0
- package/common/src/functions/private-wallet/emporium.helpers.d.ts +47 -0
- package/common/src/functions/private-wallet/emporium.swap.helpers.d.ts +4 -0
- package/common/src/functions/private-wallet/index.d.ts +3 -0
- package/common/src/functions/private-wallet/opProducer.d.ts +5 -0
- package/common/src/functions/snarkjs/common.snarkjs.d.ts +23 -0
- package/common/src/functions/snarkjs/constant.d.ts +149 -0
- package/common/src/functions/snarkjs/constructGeneralZkProof.d.ts +13 -0
- package/common/src/functions/snarkjs/constructSolanaZkProof.d.ts +13 -0
- package/common/src/functions/snarkjs/fetchMerkleTreeSiblings.d.ts +11 -0
- package/common/src/functions/snarkjs/fetchOnChainRootHashes.d.ts +3 -0
- package/common/src/functions/snarkjs/generateCircomData.d.ts +5 -0
- package/common/src/functions/snarkjs/generateMainAndCommitmentZkProof.d.ts +11 -0
- package/common/src/functions/snarkjs/generateZkProof.d.ts +5 -0
- package/common/src/functions/snarkjs/generateZkProofEnclave.d.ts +5 -0
- package/common/src/functions/snarkjs/generateZkProofSelf.d.ts +5 -0
- package/common/src/functions/snarkjs/getMerkleTreeSiblingsAndRootHashes.d.ts +16 -0
- package/common/src/functions/snarkjs/getOriginalSender.d.ts +1 -0
- package/common/src/functions/snarkjs/getZKFiles.d.ts +3 -0
- package/common/src/functions/snarkjs/index.d.ts +8 -0
- package/common/src/functions/snarkjs/signedMessageHash.d.ts +31 -0
- package/common/src/functions/snarkjs/verifyCommitmentValidationData.d.ts +4 -0
- package/common/src/functions/utils/addresses.d.ts +11 -0
- package/common/src/functions/utils/aggregateTokenAmounts.d.ts +2 -0
- package/common/src/functions/utils/amounts.utils.d.ts +25 -0
- package/common/src/functions/utils/arraysMatch.d.ts +1 -0
- package/common/src/functions/utils/auth.utils.d.ts +5 -0
- package/common/src/functions/utils/bit.operations.d.ts +3 -0
- package/common/src/functions/utils/buildClaimableDepositPlan.d.ts +16 -0
- package/common/src/functions/utils/bytes32.utils.d.ts +2 -0
- package/common/src/functions/utils/cacheDevice.utils.d.ts +3 -0
- package/common/src/functions/utils/cacheFunctions.d.ts +16 -0
- package/common/src/functions/utils/caseInsensitive.utils.d.ts +3 -0
- package/common/src/functions/utils/convertEmporiumOpToCallInfo.d.ts +2 -0
- package/common/src/functions/utils/convertIntegrationProviderToExternalActionId.d.ts +3 -0
- package/common/src/functions/utils/create-provider.d.ts +4 -0
- package/common/src/functions/utils/customEnclaveFunctionsRegister.d.ts +18 -0
- package/common/src/functions/utils/deposit-claimable.utils.d.ts +6 -0
- package/common/src/functions/utils/dispatchBalanceRefreshes.d.ts +4 -0
- package/common/src/functions/utils/enclave-recipient-info-storage.d.ts +2 -0
- package/common/src/functions/utils/enclave-signature-storage.d.ts +1 -0
- package/common/src/functions/utils/enclave-utxo-storage.d.ts +7 -0
- package/common/src/functions/utils/encodeTokenWithId.d.ts +2 -0
- package/common/src/functions/utils/encryptInputForEnclave.d.ts +8 -0
- package/common/src/functions/utils/enum.utils.d.ts +9 -0
- package/common/src/functions/utils/erc20tokenFunctions.d.ts +16 -0
- package/common/src/functions/utils/evmNetworkFunctions.d.ts +3 -0
- package/common/src/functions/utils/external-action.utils.d.ts +3 -0
- package/common/src/functions/utils/fees.utils.d.ts +6 -0
- package/common/src/functions/utils/formatter.d.ts +1 -0
- package/common/src/functions/utils/get-signature-header.d.ts +5 -0
- package/common/src/functions/utils/getBlockExplorerUrl.d.ts +1 -0
- package/common/src/functions/utils/getContractAddress.d.ts +2 -0
- package/common/src/functions/utils/getDataFromTransaction.d.ts +33 -0
- package/common/src/functions/utils/getRecipientInfoFromUserKeys.d.ts +4 -0
- package/common/src/functions/utils/getSignerFromContract.d.ts +3 -0
- package/common/src/functions/utils/getUtxosFromReceipt.utils.d.ts +6 -0
- package/common/src/functions/utils/getUtxosFromReceiptSolana.d.ts +7 -0
- package/common/src/functions/utils/getWalletGroupKey.utils.d.ts +1 -0
- package/common/src/functions/utils/inLogicMetadata.d.ts +2 -0
- package/common/src/functions/utils/index.d.ts +72 -0
- package/common/src/functions/utils/involves-permit2-op.d.ts +7 -0
- package/common/src/functions/utils/ipfs.d.ts +8 -0
- package/common/src/functions/utils/is-valid-url.d.ts +1 -0
- package/common/src/functions/utils/lifi.utils.d.ts +4 -0
- package/common/src/functions/utils/memoize.utils.d.ts +1 -0
- package/common/src/functions/utils/merkleTree.utils.d.ts +2 -0
- package/common/src/functions/utils/mnemonics.d.ts +1 -0
- package/common/src/functions/utils/mutexes.utils.d.ts +2 -0
- package/common/src/functions/utils/nearIntents.utils.d.ts +11 -0
- package/common/src/functions/utils/networks.utils.d.ts +1 -0
- package/common/src/functions/utils/nftTokenFunctions.d.ts +2 -0
- package/common/src/functions/utils/nickname.utils.d.ts +1 -0
- package/common/src/functions/utils/pay-routing.utils.d.ts +4 -0
- package/common/src/functions/utils/postToOffscreen.d.ts +2 -0
- package/common/src/functions/utils/prepareHinkal.d.ts +11 -0
- package/common/src/functions/utils/process.utils.d.ts +13 -0
- package/common/src/functions/utils/proxyAvatar.utils.d.ts +2 -0
- package/common/src/functions/utils/publicBalance.utils.d.ts +7 -0
- package/common/src/functions/utils/reloadPage.d.ts +1 -0
- package/common/src/functions/utils/requireEnv.d.ts +1 -0
- package/common/src/functions/utils/resolve-sync.utils.d.ts +6 -0
- package/common/src/functions/utils/rpc-int-encode.d.ts +1 -0
- package/common/src/functions/utils/serialize-utxos.utils.d.ts +3 -0
- package/common/src/functions/utils/serialize.utils.d.ts +10 -0
- package/common/src/functions/utils/solana-memo.d.ts +3 -0
- package/common/src/functions/utils/solanaMint.utils.d.ts +10 -0
- package/common/src/functions/utils/solanaSendPreflight.utils.d.ts +6 -0
- package/common/src/functions/utils/string.utils.d.ts +16 -0
- package/common/src/functions/utils/time.utils.d.ts +20 -0
- package/common/src/functions/utils/token-check.utils.d.ts +4 -0
- package/common/src/functions/utils/transfer-claimable.utils.d.ts +9 -0
- package/common/src/functions/utils/trimFieldValues.d.ts +4 -0
- package/common/src/functions/utils/tron.utils.d.ts +43 -0
- package/common/src/functions/utils/tronSimulation.utils.d.ts +1 -0
- package/common/src/functions/utils/tx-confirmation.utils.d.ts +10 -0
- package/common/src/functions/utils/upToDateState.d.ts +2 -0
- package/common/src/functions/utils/userAgent.d.ts +2 -0
- package/common/src/functions/utils/validateUsername.d.ts +5 -0
- package/common/src/functions/utils/walletBalances.utils.d.ts +2 -0
- package/common/src/functions/web3/EIP-712.d.ts +23 -0
- package/common/src/functions/web3/connectors.utils.d.ts +8 -0
- package/common/src/functions/web3/crypto.d.ts +1 -0
- package/common/src/functions/web3/etherFunctions.d.ts +20 -0
- package/common/src/functions/web3/events/balanceChangedHandler.d.ts +5 -0
- package/common/src/functions/web3/events/getInputUtxoAndBalance.d.ts +38 -0
- package/common/src/functions/web3/events/getInputUtxosEnclave.d.ts +9 -0
- package/common/src/functions/web3/events/getShieldedBalance.d.ts +18 -0
- package/common/src/functions/web3/events/getTransactionLogEvents.d.ts +13 -0
- package/common/src/functions/web3/events/index.d.ts +4 -0
- package/common/src/functions/web3/fetchSolanaMerkleTreeRootHash.d.ts +3 -0
- package/common/src/functions/web3/functionCalls/approveToken.d.ts +4 -0
- package/common/src/functions/web3/functionCalls/approveTokensToHinkal.d.ts +4 -0
- package/common/src/functions/web3/functionCalls/constructBatchCall.d.ts +7 -0
- package/common/src/functions/web3/functionCalls/estimateGasRelayer.d.ts +4 -0
- package/common/src/functions/web3/functionCalls/getRootHash.d.ts +2 -0
- package/common/src/functions/web3/functionCalls/recoverTransactionFromError.d.ts +2 -0
- package/common/src/functions/web3/functionCalls/relayFunctions.d.ts +3 -0
- package/common/src/functions/web3/functionCalls/transactCallDirect.d.ts +6 -0
- package/common/src/functions/web3/functionCalls/transactCallDirectTron.d.ts +12 -0
- package/common/src/functions/web3/functionCalls/transactCallRelayer.d.ts +37 -0
- package/common/src/functions/web3/functionCalls/waitForErc20Approvals.d.ts +11 -0
- package/common/src/functions/web3/getContractMetadata.d.ts +5 -0
- package/common/src/functions/web3/getPublicAddressBalance.d.ts +2 -0
- package/common/src/functions/web3/getSolanaPriorityFee.d.ts +3 -0
- package/common/src/functions/web3/getTokenHolder.d.ts +1 -0
- package/common/src/functions/web3/index.d.ts +14 -0
- package/common/src/functions/web3/lifiAPI.d.ts +6 -0
- package/common/src/functions/web3/odosAPI.d.ts +5 -0
- package/common/src/functions/web3/okxAPI.d.ts +8 -0
- package/common/src/functions/web3/oneInchAPI.d.ts +5 -0
- package/common/src/functions/web3/runContractFunction.d.ts +16 -0
- package/common/src/functions/web3/signAndSendSerializedTransaction.d.ts +2 -0
- package/common/src/functions/web3/uniswapAPI.d.ts +16 -0
- package/common/src/index.d.ts +9 -0
- package/common/src/mutexes/index.d.ts +1 -0
- package/common/src/mutexes/mutex.d.ts +2 -0
- package/common/src/providers/EthersProviderAdapter.d.ts +36 -0
- package/common/src/providers/SolanaProviderAdapter.d.ts +52 -0
- package/common/src/providers/TronProviderAdapter.d.ts +39 -0
- package/common/src/providers/WagmiProviderAdapter.d.ts +48 -0
- package/common/src/providers/exportProviers.d.ts +3 -0
- package/common/src/types/API.types.d.ts +25 -0
- package/common/src/types/ICacheDevice.d.ts +5 -0
- package/common/src/types/IMultiThreadedUtxoUtils.d.ts +8 -0
- package/common/src/types/RewardUserEnums.d.ts +11 -0
- package/common/src/types/TransactionSimulator.types.d.ts +16 -0
- package/common/src/types/WeeklyAnalytics.types.d.ts +37 -0
- package/common/src/types/activities.types.d.ts +77 -0
- package/common/src/types/admin.types.d.ts +42 -0
- package/common/src/types/all-points.types.d.ts +7 -0
- package/common/src/types/approvals.types.d.ts +41 -0
- package/common/src/types/balances.types.d.ts +39 -0
- package/common/src/types/big-intable.types.d.ts +3 -0
- package/common/src/types/bridging-tx.types.d.ts +17 -0
- package/common/src/types/brotherhood-user.types.d.ts +11 -0
- package/common/src/types/cache.types.d.ts +58 -0
- package/common/src/types/chains.types.d.ts +11 -0
- package/common/src/types/circom-data.types.d.ts +107 -0
- package/common/src/types/coingecko.types.d.ts +220 -0
- package/common/src/types/commitments.types.d.ts +42 -0
- package/common/src/types/confirmation-request.types.d.ts +10 -0
- package/common/src/types/connector.types.d.ts +5 -0
- package/common/src/types/contacts.types.d.ts +7 -0
- package/common/src/types/crypto.types.d.ts +8 -0
- package/common/src/types/dashboard-account.d.ts +101 -0
- package/common/src/types/dashboard-payout.types.d.ts +29 -0
- package/common/src/types/dashboard-transaction.types.d.ts +22 -0
- package/common/src/types/eip5792.types.d.ts +33 -0
- package/common/src/types/ethereum-network.types.d.ts +62 -0
- package/common/src/types/events.types.d.ts +5 -0
- package/common/src/types/external-action.types.d.ts +17 -0
- package/common/src/types/fee.types.d.ts +13 -0
- package/common/src/types/generatePoints.d.ts +14 -0
- package/common/src/types/hinkal.types.d.ts +102 -0
- package/common/src/types/http.types.d.ts +8 -0
- package/common/src/types/index.d.ts +61 -0
- package/common/src/types/kyc.types.d.ts +41 -0
- package/common/src/types/message.types.d.ts +5 -0
- package/common/src/types/near-intents.types.d.ts +60 -0
- package/common/src/types/new-rewards.type.d.ts +153 -0
- package/common/src/types/offscreen.types.d.ts +9 -0
- package/common/src/types/okx.types.d.ts +57 -0
- package/common/src/types/onramp.types.d.ts +58 -0
- package/common/src/types/pay-activities.types.d.ts +32 -0
- package/common/src/types/pay-routing.types.d.ts +9 -0
- package/common/src/types/presaleReferral.types.d.ts +4 -0
- package/common/src/types/proxy.types.d.ts +19 -0
- package/common/src/types/referral.types.d.ts +12 -0
- package/common/src/types/remote-proof.types.d.ts +15 -0
- package/common/src/types/rewards.types.d.ts +34 -0
- package/common/src/types/schedule.types.d.ts +7 -0
- package/common/src/types/scheduled-transactions.types.d.ts +49 -0
- package/common/src/types/session.types.d.ts +13 -0
- package/common/src/types/signature.types.d.ts +10 -0
- package/common/src/types/slippage.types.d.ts +3 -0
- package/common/src/types/snark.types.d.ts +40 -0
- package/common/src/types/solana.types.d.ts +87 -0
- package/common/src/types/tenderly.api.types.d.ts +196 -0
- package/common/src/types/token-prices.types.d.ts +18 -0
- package/common/src/types/token-with-id.types.d.ts +4 -0
- package/common/src/types/token.types.d.ts +88 -0
- package/common/src/types/transaction.types.d.ts +160 -0
- package/common/src/types/transactions.types.d.ts +79 -0
- package/common/src/types/tron.types.d.ts +15 -0
- package/common/src/types/wc.types.d.ts +78 -0
- package/common/src/types/with-id.types.d.ts +3 -0
- package/common/src/webworker/WorkerWrapper.d.ts +9 -0
- package/common/src/webworker/package.json +4 -4
- package/common/src/webworker/performTaskWithWorker.d.ts +5 -0
- package/common/src/webworker/snarkjsWorker/snarkjsWorker.types.d.ts +14 -0
- package/common/src/webworker/snarkjsWorker/snarkjsWorkerLauncher.d.ts +1 -0
- package/common/src/webworker/snarkjsWorker/snarkjsWorkerLogic.d.ts +2 -0
- package/common/src/webworker/snarkjsWorker/snarkjsWorkerNode.d.ts +1 -0
- package/common/src/webworker/utxoWorker/utxoWorker.types.d.ts +31 -0
- package/common/src/webworker/utxoWorker/utxoWorkerLauncher.d.ts +1 -0
- package/common/src/webworker/utxoWorker/utxoWorkerLogic.d.ts +5 -0
- package/common/src/webworker/utxoWorker/utxoWorkerNode.d.ts +1 -0
- package/common/src/webworker/viteWorkerURL.constant.cjs +3 -3
- package/common/src/webworker/viteWorkerURL.constant.d.ts +9 -0
- package/common/src/webworker/viteWorkerURL.constant.mjs +3 -3
- package/common/src/webworker/worker.registry.d.ts +10 -0
- package/common/src/webworker/worker.types.d.ts +33 -0
- package/common/src/webworker/workerErrorHandler.d.ts +1 -0
- package/common/src/webworker/workerFactory.d.ts +10 -0
- package/common/src/webworker/workerProxy.d.ts +39 -0
- package/common/src/webworker/zkProofWorker/zkProofWorker.types.d.ts +26 -0
- package/common/src/webworker/zkProofWorker/zkProofWorkerLauncher.d.ts +1 -0
- package/common/src/webworker/zkProofWorker/zkProofWorkerLogic.d.ts +4 -0
- package/common/src/webworker/zkProofWorker/zkProofWorkerNode.d.ts +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { AppMetaData, MinimalActivity, RewardsUser, TokenChanges, TradingType, UserWeeklyAnalytic } from '../types';
|
|
2
|
+
interface GenerateTradingPointsProps {
|
|
3
|
+
ethereumAddress: string;
|
|
4
|
+
type: TradingType;
|
|
5
|
+
signature: string;
|
|
6
|
+
proxyAddress: string;
|
|
7
|
+
tokenChanges?: TokenChanges<bigint>[];
|
|
8
|
+
appMetaData?: AppMetaData;
|
|
9
|
+
chainId?: number;
|
|
10
|
+
}
|
|
11
|
+
interface GenerateTradingPointsRes {
|
|
12
|
+
success: boolean;
|
|
13
|
+
weeklyAnalytic: UserWeeklyAnalytic;
|
|
14
|
+
}
|
|
15
|
+
export declare const generateTradingPoints: ({ tokenChanges, ethereumAddress, type, signature, appMetaData, chainId, proxyAddress, }: GenerateTradingPointsProps) => Promise<GenerateTradingPointsRes>;
|
|
16
|
+
interface GenerateAumPointsProps {
|
|
17
|
+
ethereumAddress: string;
|
|
18
|
+
activity: MinimalActivity[];
|
|
19
|
+
signature?: string;
|
|
20
|
+
proxyAddress?: string;
|
|
21
|
+
}
|
|
22
|
+
interface GenerateAumPointsRes {
|
|
23
|
+
message: string;
|
|
24
|
+
user: RewardsUser;
|
|
25
|
+
}
|
|
26
|
+
export declare const generateAumPoints: ({ ethereumAddress, activity, signature, proxyAddress, }: GenerateAumPointsProps) => Promise<GenerateAumPointsRes>;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TokenPriceTimeframe } from '../types/token-prices.types';
|
|
2
|
+
export interface TimeframeSeries {
|
|
3
|
+
pricesData: number[][];
|
|
4
|
+
priceChange: number;
|
|
5
|
+
}
|
|
6
|
+
export interface GetTokenPriceChartDataResponse {
|
|
7
|
+
status: 'success' | 'failed';
|
|
8
|
+
tokenPriceChartData: {
|
|
9
|
+
[TokenPriceTimeframe.ONE_WEEK]: TimeframeSeries;
|
|
10
|
+
[TokenPriceTimeframe.ONE_MONTH]: TimeframeSeries;
|
|
11
|
+
[TokenPriceTimeframe.THREE_MONTHS]: TimeframeSeries;
|
|
12
|
+
[TokenPriceTimeframe.ONE_YEAR]: TimeframeSeries;
|
|
13
|
+
[TokenPriceTimeframe.ALL_TIME]: TimeframeSeries;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export declare const getTokenPriceChartData: (chainId: number, erc20Address: string) => Promise<GetTokenPriceChartDataResponse>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getAnyRecipientInfo: (recipientAddress: string) => Promise<string | null>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CoingeckoToken } from '../types/coingecko.types';
|
|
2
|
+
export interface CoingeckoPriceResponse {
|
|
3
|
+
usd: number;
|
|
4
|
+
eth: number;
|
|
5
|
+
}
|
|
6
|
+
export declare function getCoingeckoPrice(tokenId: string): Promise<CoingeckoPriceResponse>;
|
|
7
|
+
/**
|
|
8
|
+
* Fetches the price of a token from Coingecko API based on token address and platform.
|
|
9
|
+
* @param tokenAddress The address of the token contract.
|
|
10
|
+
* @param platform The platform identifier for the token.
|
|
11
|
+
* @returns Promise resolving to CoingeckoPriceResponse object.
|
|
12
|
+
*/
|
|
13
|
+
export declare function getCoingeckoPrice2(tokenAddress: string, platform: string): Promise<CoingeckoPriceResponse>;
|
|
14
|
+
export interface CoingeckoPricesResponse {
|
|
15
|
+
[coingeckoId: string]: {
|
|
16
|
+
usd?: number;
|
|
17
|
+
eth?: number;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export declare function getCoingeckoPrices(tokenIds: string): Promise<CoingeckoPricesResponse>;
|
|
21
|
+
export declare function getCoingeckoTokenList(): Promise<CoingeckoToken[]>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ExternalActionId } from '../types/external-action.types';
|
|
2
|
+
import { CallInfo } from '../types/API.types';
|
|
3
|
+
import { SolanaTransactionParams } from '../types/solana.types';
|
|
4
|
+
interface GetGasEstimateResponse {
|
|
5
|
+
status: 'success' | 'failed';
|
|
6
|
+
priceOfTransactionInUSD?: number;
|
|
7
|
+
priceOfTransactionInToken?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const getGasEstimates: (chainId: number, tokenAddress: string, externalActionId: ExternalActionId, erc20TokenAddressLength: number, calls: CallInfo<string>[], gasAmount?: number, solanaTransactionParams?: SolanaTransactionParams) => Promise<GetGasEstimateResponse>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const BACK_END_URL: string;
|
|
2
|
+
export declare const SERVER_URL: string;
|
|
3
|
+
export declare const RELAYER_URL: string;
|
|
4
|
+
export declare const SNAPSHOT_SERVER_URL: string;
|
|
5
|
+
export declare const DATA_SERVER_URL: string;
|
|
6
|
+
export declare const FUND_COMPLIANCE_URL: string;
|
|
7
|
+
export declare const ENCLAVE_API_URL: string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface IGetPrices {
|
|
2
|
+
prices: number[];
|
|
3
|
+
}
|
|
4
|
+
export declare const getTokenPrices: (chainId: number, erc20Addresses: string[]) => Promise<IGetPrices>;
|
|
5
|
+
interface GetPreviousDayPricesResponse {
|
|
6
|
+
status: 'success' | 'failed';
|
|
7
|
+
tokenPreviousDayPrices: Record<string, number>;
|
|
8
|
+
}
|
|
9
|
+
export declare const getTokenPreviousDayPrices: (uniqueErc20TokensByChain: Record<number, string[]>) => Promise<GetPreviousDayPricesResponse>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const getHinkalLandingURL: () => "https://hinkal.io" | "http://localhost:4230" | "https://hinkal-playground-landing.netlify.app" | "https://staging-hinkal-landing.netlify.app";
|
|
2
|
+
export declare const getWalletOnboardingURL: () => "http://localhost:4118" | "https://hinkal-playground-onboarding.netlify.app" | "https://staging-hinkal-onboarding.netlify.app" | "https://onboarding.hinkal.pro";
|
|
3
|
+
export declare const getRewardsURL: () => "http://localhost:4117" | "https://hinkal-playground.netlify.app" | "https://staging-hinkal-rewards.netlify.app" | "https://rewards.hinkal.pro";
|
|
4
|
+
export declare const getPayURL: () => "https://pay.hinkal.io" | "http://localhost:4116" | "https://hinkal-playground-pay.netlify.app" | "https://staging-hinkal-pay.netlify.app";
|
|
5
|
+
export declare const getDashboardURL: () => "https://hinkal-playground.netlify.app" | "http://localhost:4120" | "https://staging-hinkal-dashboard.netlify.app" | "https://prime.hinkal.io";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export * from './getServerURL';
|
|
2
|
+
export * from './getCoingeckoPrice';
|
|
3
|
+
export * from './callOneInchAPI';
|
|
4
|
+
export * from './callRelayer';
|
|
5
|
+
export * from './getGasEstimates';
|
|
6
|
+
export * from './getTokenPrice';
|
|
7
|
+
export * from './checkRisk';
|
|
8
|
+
export * from './callMonitor';
|
|
9
|
+
export * from './relayCalls';
|
|
10
|
+
export * from './API';
|
|
11
|
+
export * from './tenderly.api';
|
|
12
|
+
export * from './token-calls';
|
|
13
|
+
export * from './callLifiAPI';
|
|
14
|
+
export * from './callNearIntentsAPI';
|
|
15
|
+
export * from './generate-trading-points';
|
|
16
|
+
export * from './brotherhoodCalls';
|
|
17
|
+
export * from './getWebsiteURL';
|
|
18
|
+
export * from './resolve-sns';
|
|
19
|
+
export * from './seedless-calls';
|
|
20
|
+
export * from './scheduled-transactions-calls';
|
|
21
|
+
export * from './temporaryWalletCalls';
|
|
22
|
+
export * from './privateSendRecipientInfoCalls';
|
|
23
|
+
export * from './privateSendEmailNotificationsCalls';
|
|
24
|
+
export * from './admin-calls';
|
|
25
|
+
export * from './enclaveRecipientInfoCalls';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { KycVerificationResult, Passports, VERIFICATION_TYPE } from '../types/kyc.types';
|
|
2
|
+
interface IGetKycStatus {
|
|
3
|
+
verificationResult: KycVerificationResult;
|
|
4
|
+
passportIds?: Passports[];
|
|
5
|
+
}
|
|
6
|
+
export declare function getUserKycStatus(ethereumOrSolanaAddress: string): Promise<IGetKycStatus>;
|
|
7
|
+
export declare function setAiPriseVerificationUrl(ethereumAddress: string, verificationSessionId: string, verificationType: VERIFICATION_TYPE): Promise<any>;
|
|
8
|
+
interface ReclaimVerificationRequestResponse {
|
|
9
|
+
reclaimProofRequestConfig: string;
|
|
10
|
+
message?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function getReclaimVerificationRequest(providerId: string, ethereumAddress: string, userSignature: string, withSignature: boolean): Promise<ReclaimVerificationRequestResponse>;
|
|
13
|
+
export declare const getZkMeAccessToken: () => Promise<any>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BrotherhoodWeeklyAnalyticLeaderboardEntry, UserWeeklyAnalyticLeaderboardEntry } from '../types';
|
|
2
|
+
interface GetUserCurrentLeaderboardProps {
|
|
3
|
+
ethereumAddress: string;
|
|
4
|
+
}
|
|
5
|
+
interface GetUserCurrentLeaderboardRes {
|
|
6
|
+
message: string;
|
|
7
|
+
sortedUsers: UserWeeklyAnalyticLeaderboardEntry[];
|
|
8
|
+
}
|
|
9
|
+
export declare const getUserCurrentLeaderboard: ({ ethereumAddress, }: GetUserCurrentLeaderboardProps) => Promise<GetUserCurrentLeaderboardRes>;
|
|
10
|
+
interface GetBrotherhoodLeaderboardRes {
|
|
11
|
+
analytics: BrotherhoodWeeklyAnalyticLeaderboardEntry[];
|
|
12
|
+
}
|
|
13
|
+
export declare const getBrotherhoodsLeaderboard: () => Promise<GetBrotherhoodLeaderboardRes>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { MoonPayQuote } from '../types';
|
|
2
|
+
interface MoonPayBuyUrlRequest {
|
|
3
|
+
currencyCode: string;
|
|
4
|
+
walletAddress: string;
|
|
5
|
+
paymentMethod: string;
|
|
6
|
+
redirectURL: string;
|
|
7
|
+
baseCurrencyAmount?: string;
|
|
8
|
+
quoteCurrencyAmount?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const encodeMoonPayBuyUrl: (params: MoonPayBuyUrlRequest) => Promise<string>;
|
|
11
|
+
interface MoonPayQuoteRequest {
|
|
12
|
+
baseCurrencyCode: string;
|
|
13
|
+
quoteCurrencyCode: string;
|
|
14
|
+
baseCurrencyAmount?: number;
|
|
15
|
+
quoteCurrencyAmount?: number;
|
|
16
|
+
areFeesIncluded?: boolean;
|
|
17
|
+
paymentMethod?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const generateMoonPayQuote: (params: MoonPayQuoteRequest) => Promise<MoonPayQuote>;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
interface GetPrivateTransactionRatioProps {
|
|
2
|
+
ethereumAddress: string;
|
|
3
|
+
}
|
|
4
|
+
interface GetPrivateTransactionRatioRes {
|
|
5
|
+
privateTransactionsRatio: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const getPrivateTransactionRatio: ({ ethereumAddress, }: GetPrivateTransactionRatioProps) => Promise<GetPrivateTransactionRatioRes>;
|
|
8
|
+
interface SavePrivacyScoreAndGetPrivacyRankProps {
|
|
9
|
+
ethereumAddress: string;
|
|
10
|
+
privacyScore: number;
|
|
11
|
+
}
|
|
12
|
+
interface SavePrivacyScoreAndGetPrivacyRankRes {
|
|
13
|
+
success: boolean;
|
|
14
|
+
topPercent: number;
|
|
15
|
+
}
|
|
16
|
+
export declare const savePrivacyScoreAndGetPrivacyRank: ({ ethereumAddress, privacyScore, }: SavePrivacyScoreAndGetPrivacyRankProps) => Promise<SavePrivacyScoreAndGetPrivacyRankRes>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface SendPrivateSendEmailNotificationsRequest {
|
|
2
|
+
recipientEmails: string[];
|
|
3
|
+
}
|
|
4
|
+
export interface SendPrivateSendEmailNotificationsResponse {
|
|
5
|
+
sentCount: number;
|
|
6
|
+
failedEmails: string[];
|
|
7
|
+
}
|
|
8
|
+
export declare const sendPrivateSendEmailNotifications: (request: SendPrivateSendEmailNotificationsRequest) => Promise<SendPrivateSendEmailNotificationsResponse>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface ISyncPrivateSendNonceResponse {
|
|
2
|
+
largestUsedNonce: number;
|
|
3
|
+
nextNonce: number;
|
|
4
|
+
}
|
|
5
|
+
export declare const syncPrivateSendNonce: (hashedEthereumAddress: string, localNonce: number) => Promise<ISyncPrivateSendNonceResponse>;
|
|
6
|
+
interface IReservePrivateSendNonceRangeResponse {
|
|
7
|
+
startNonce: number;
|
|
8
|
+
largestUsedNonce: number;
|
|
9
|
+
nextNonce: number;
|
|
10
|
+
count: number;
|
|
11
|
+
}
|
|
12
|
+
export declare const reservePrivateSendNonceRange: (hashedEthereumAddress: string, localNonce: number, count: number) => Promise<IReservePrivateSendNonceRangeResponse>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface PrivateSendAllocation {
|
|
2
|
+
recipientAddress: string;
|
|
3
|
+
recipientInfo: string | undefined;
|
|
4
|
+
}
|
|
5
|
+
export interface AllocatePrivateSendRecipientInfosRequest {
|
|
6
|
+
recipientAddresses: string[];
|
|
7
|
+
}
|
|
8
|
+
export interface AllocatePrivateSendRecipientInfosResponse {
|
|
9
|
+
allocations: PrivateSendAllocation[];
|
|
10
|
+
}
|
|
11
|
+
export declare const allocatePrivateSendRecipientInfos: (request: AllocatePrivateSendRecipientInfosRequest) => Promise<AllocatePrivateSendRecipientInfosResponse>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SubAccountLight } from '../types/proxy.types';
|
|
2
|
+
import { UserKeys } from '../data-structures/crypto-keys';
|
|
3
|
+
export declare const getProxyAccounts: (ethereumAddress: string, userKeys: UserKeys) => Promise<{
|
|
4
|
+
proxyAccounts: SubAccountLight[];
|
|
5
|
+
}>;
|
|
6
|
+
export declare const updateProxyAccounts: (ethereumAddress: string, userKeys: UserKeys, proxyAccounts: SubAccountLight[]) => Promise<any>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Referral } from '../types';
|
|
2
|
+
interface GetCurrentUserReferralProps {
|
|
3
|
+
ethereumAddress: string;
|
|
4
|
+
}
|
|
5
|
+
interface GetCurrentUserReferralRes {
|
|
6
|
+
referral: Referral | undefined;
|
|
7
|
+
}
|
|
8
|
+
export declare const getCurrentUserReferral: ({ ethereumAddress, }: GetCurrentUserReferralProps) => Promise<GetCurrentUserReferralRes>;
|
|
9
|
+
interface SubmitReferralCodeProps {
|
|
10
|
+
referralCode: string;
|
|
11
|
+
ethereumAddress: string;
|
|
12
|
+
}
|
|
13
|
+
export interface SubmitReferralCodeRes {
|
|
14
|
+
message: string;
|
|
15
|
+
success: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const submitReferralCode: ({ referralCode, ethereumAddress, }: SubmitReferralCodeProps) => Promise<SubmitReferralCodeRes>;
|
|
18
|
+
interface GetCurrentUserAppliedReferralCodeRes {
|
|
19
|
+
appliedReferralCode: string | undefined;
|
|
20
|
+
}
|
|
21
|
+
export declare const getCurrentUserAppliedReferralCode: (ethereumAddress: string) => Promise<GetCurrentUserAppliedReferralCodeRes>;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const resolveSns: (domain: string) => Promise<string | null>;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { AchievementProgressItem, RewardsUser, SwapStreakClient, TaskProgress } from '../types';
|
|
2
|
+
export interface GetRewardsUserRes {
|
|
3
|
+
message: string;
|
|
4
|
+
user: RewardsUser | undefined;
|
|
5
|
+
}
|
|
6
|
+
export declare const getRewardsUser: (ethereumAddress: string) => Promise<GetRewardsUserRes>;
|
|
7
|
+
interface ConnectRewardsUserRes {
|
|
8
|
+
message: string;
|
|
9
|
+
user: RewardsUser;
|
|
10
|
+
isFirstTimeUser: boolean;
|
|
11
|
+
signature: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const connectRewardsUser: (ethereumAddress: string, signature: string, firstProxyAddress: string) => Promise<ConnectRewardsUserRes>;
|
|
14
|
+
interface InputDataTypes {
|
|
15
|
+
ethereumAddress: string;
|
|
16
|
+
signature: string;
|
|
17
|
+
username?: string;
|
|
18
|
+
profileImage?: string;
|
|
19
|
+
proxyAddress?: string;
|
|
20
|
+
}
|
|
21
|
+
interface UpdateRewardsUserRes {
|
|
22
|
+
message: string;
|
|
23
|
+
user: RewardsUser;
|
|
24
|
+
}
|
|
25
|
+
export declare const updateRewardsUser: (inputData: InputDataTypes) => Promise<UpdateRewardsUserRes>;
|
|
26
|
+
interface CheckUsernameAvailabilityRes {
|
|
27
|
+
available: boolean;
|
|
28
|
+
}
|
|
29
|
+
export declare const checkUsernameAvailability: (username: string) => Promise<CheckUsernameAvailabilityRes>;
|
|
30
|
+
interface GetSwapStreakRes {
|
|
31
|
+
message: string;
|
|
32
|
+
swapStreak: SwapStreakClient;
|
|
33
|
+
}
|
|
34
|
+
export declare const getSwapStreak: (ethereumAddress: string) => Promise<GetSwapStreakRes>;
|
|
35
|
+
interface GetTasksProgressRes {
|
|
36
|
+
success: boolean;
|
|
37
|
+
userTasks: TaskProgress[];
|
|
38
|
+
userAchievements: AchievementProgressItem[];
|
|
39
|
+
brotherhoodTasks: TaskProgress[];
|
|
40
|
+
completedTasks: string[];
|
|
41
|
+
brotherhoodCompletedTasks: string[];
|
|
42
|
+
pointsToShowInCongratsPopup: number;
|
|
43
|
+
}
|
|
44
|
+
export declare const getTasksProgress: (ethereumAddress: string) => Promise<GetTasksProgressRes>;
|
|
45
|
+
interface DisconnectSocialNetworkRes {
|
|
46
|
+
message: string;
|
|
47
|
+
user: RewardsUser;
|
|
48
|
+
}
|
|
49
|
+
interface DisconnectSocialNetworkProps {
|
|
50
|
+
ethereumAddress: string;
|
|
51
|
+
socialWebsiteId: string;
|
|
52
|
+
signature: string;
|
|
53
|
+
proxyAddress: string;
|
|
54
|
+
}
|
|
55
|
+
export declare const disconnectSocialNetwork: ({ ethereumAddress, socialWebsiteId, signature, proxyAddress, }: DisconnectSocialNetworkProps) => Promise<DisconnectSocialNetworkRes>;
|
|
56
|
+
interface GetNftMultiplierRes {
|
|
57
|
+
nftMultiplier: number;
|
|
58
|
+
}
|
|
59
|
+
export declare const getNftMultiplier: (ethereumAddress: string) => Promise<GetNftMultiplierRes>;
|
|
60
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ScheduledTransactionItemStatus, ScheduledTransactionResponseItem } from '../types';
|
|
2
|
+
export interface ScheduledTransactionByIdResponse {
|
|
3
|
+
scheduleId: string;
|
|
4
|
+
chainId: number;
|
|
5
|
+
transactions: ScheduledTransactionItemStatus[];
|
|
6
|
+
}
|
|
7
|
+
interface ScheduledTransactionResponseInterface {
|
|
8
|
+
transactions: ScheduledTransactionResponseItem[];
|
|
9
|
+
}
|
|
10
|
+
export declare const getScheduledTransactionById: (scheduleId: string) => Promise<ScheduledTransactionByIdResponse>;
|
|
11
|
+
export declare const getScheduledTransactions: (isSolana: boolean, hashedEthereumAddress?: string, hashedDashboardAccountId?: string) => Promise<ScheduledTransactionResponseInterface>;
|
|
12
|
+
interface ScheduledTransactionsNullifierIndexesRequest {
|
|
13
|
+
hashedEthereumAddress: string;
|
|
14
|
+
nullifiers: string[];
|
|
15
|
+
}
|
|
16
|
+
interface ScheduledTransactionsNullifierIndexesResponse {
|
|
17
|
+
indexes: number[];
|
|
18
|
+
}
|
|
19
|
+
export declare const getScheduledTransactionsNullifierIndexes: (body: ScheduledTransactionsNullifierIndexesRequest) => Promise<ScheduledTransactionsNullifierIndexesResponse>;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
interface SeedlessInitProps {
|
|
2
|
+
sessionToken: string;
|
|
3
|
+
ethereumAddress: string;
|
|
4
|
+
ciphertextB64: string;
|
|
5
|
+
ivB64: string;
|
|
6
|
+
saltMnemonicB64: string;
|
|
7
|
+
saltSharesB64: string;
|
|
8
|
+
shareMongoB64: string;
|
|
9
|
+
shareMongoIvB64: string;
|
|
10
|
+
passwordHashB64: string;
|
|
11
|
+
passwordSaltB64: string;
|
|
12
|
+
}
|
|
13
|
+
interface SeedlessInitRes {
|
|
14
|
+
success: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const seedlessInit: (payload: SeedlessInitProps) => Promise<SeedlessInitRes>;
|
|
17
|
+
interface SeedlessBackupProps {
|
|
18
|
+
sessionToken: string;
|
|
19
|
+
}
|
|
20
|
+
interface SeedlessBackupRes {
|
|
21
|
+
success: boolean;
|
|
22
|
+
ciphertextB64: string;
|
|
23
|
+
ivB64: string;
|
|
24
|
+
saltMnemonicB64: string;
|
|
25
|
+
saltSharesB64: string;
|
|
26
|
+
shareMongoB64: string;
|
|
27
|
+
shareMongoIvB64: string;
|
|
28
|
+
}
|
|
29
|
+
export declare const seedlessBackup: (payload: SeedlessBackupProps) => Promise<SeedlessBackupRes>;
|
|
30
|
+
interface SeedlessStatusProps {
|
|
31
|
+
sessionToken: string;
|
|
32
|
+
}
|
|
33
|
+
interface SeedlessStatusRes {
|
|
34
|
+
success: boolean;
|
|
35
|
+
isFirstLogin: boolean;
|
|
36
|
+
}
|
|
37
|
+
export declare const seedlessStatus: (payload: SeedlessStatusProps) => Promise<SeedlessStatusRes>;
|
|
38
|
+
interface SeedlessCheckPasswordProps {
|
|
39
|
+
sessionToken: string;
|
|
40
|
+
password: string;
|
|
41
|
+
}
|
|
42
|
+
interface SeedlessCheckPasswordRes {
|
|
43
|
+
success: boolean;
|
|
44
|
+
}
|
|
45
|
+
export declare const seedlessCheckPassword: (payload: SeedlessCheckPasswordProps) => Promise<SeedlessCheckPasswordRes>;
|
|
46
|
+
interface SeedlessSaltProps {
|
|
47
|
+
sessionToken: string;
|
|
48
|
+
}
|
|
49
|
+
interface SeedlessSaltRes {
|
|
50
|
+
passwordSaltB64: string;
|
|
51
|
+
}
|
|
52
|
+
export declare const seedlessSalt: (payload: SeedlessSaltProps) => Promise<SeedlessSaltRes>;
|
|
53
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TelegramUser } from '../types';
|
|
2
|
+
interface TelegramCallbackProps {
|
|
3
|
+
ethereumAddress: string;
|
|
4
|
+
telegramUser: TelegramUser;
|
|
5
|
+
}
|
|
6
|
+
export declare const sendTelegramCallback: ({ ethereumAddress, telegramUser }: TelegramCallbackProps) => Promise<any>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { TransactionSimulatorResult } from '../types/TransactionSimulator.types';
|
|
2
|
+
import { WCTransactionParameters } from '../types';
|
|
3
|
+
export declare const simulateBatchTx: (chainId: number, batchCalls: WCTransactionParameters[]) => Promise<TransactionSimulatorResult<string>>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { TxParametersBase } from '../types/wc.types';
|
|
2
|
+
import { TransactionSimulatorResult, VolatileTokenTransferResult } from '../types/TransactionSimulator.types';
|
|
3
|
+
import { VolatileTokenChange } from '../types';
|
|
4
|
+
export declare const simulateTransaction: (chainId: number, txParameters: TxParametersBase) => Promise<TransactionSimulatorResult<string>>;
|
|
5
|
+
export declare const simulateVolatileTokenTransfer: (chainId: number, tokenTransfers: VolatileTokenChange[]) => Promise<VolatileTokenTransferResult[]>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EventCategory } from '../types';
|
|
2
|
+
interface GetSnapshotServerEventsResponse {
|
|
3
|
+
events: string[];
|
|
4
|
+
latestBlockNumber: number;
|
|
5
|
+
}
|
|
6
|
+
export declare const getSnapshotServerEvents: (chainId: number, eventCategory: EventCategory, fromBlockNumber: number) => Promise<GetSnapshotServerEventsResponse>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface IGetTemporaryWalletNonces {
|
|
2
|
+
nonces: number[];
|
|
3
|
+
}
|
|
4
|
+
export declare const getTemporaryWalletNonces: (chainId: number, hashedEthereumAddress: string) => Promise<IGetTemporaryWalletNonces>;
|
|
5
|
+
interface IAddTemporaryWalletNonce {
|
|
6
|
+
success: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const addTemporaryWalletNonce: (chainId: number, hashedEthereumAddress: string, nonce: number) => Promise<IAddTemporaryWalletNonce>;
|
|
9
|
+
interface IRemoveTemporaryWalletNonce {
|
|
10
|
+
success: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const removeTemporaryWalletNonce: (chainId: number, hashedEthereumAddress: string, nonce: number) => Promise<IRemoveTemporaryWalletNonce>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { RpcSimulateResult, RpcSimulateTransactionBody, RpcSimulateTransactionResponse, RpcTransactionParams, SimulateTxBody, SimulateTxResponse } from '../types/tenderly.api.types';
|
|
2
|
+
import { chainIds } from '../constants/chains.constants';
|
|
3
|
+
export declare const simulateTx: (simulateTxBody: SimulateTxBody) => Promise<SimulateTxResponse>;
|
|
4
|
+
export declare const tenderlyRpcLinks: {
|
|
5
|
+
[chainIds.optimism]: string;
|
|
6
|
+
[chainIds.optimismTest]: string;
|
|
7
|
+
[chainIds.base]: string;
|
|
8
|
+
[chainIds.ethMainnet]: string;
|
|
9
|
+
[chainIds.arbMainnet]: string;
|
|
10
|
+
[chainIds.polygon]: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const rpcSimulateTransaction: (chainId: number, simulateTxBody: RpcSimulateTransactionBody) => Promise<RpcSimulateTransactionResponse>;
|
|
13
|
+
export declare const rpcSimulateBundle: (chainId: number, simulateTxBody: RpcSimulateTransactionBody<RpcTransactionParams[]>) => Promise<RpcSimulateTransactionResponse<RpcSimulateResult[]>>;
|
|
14
|
+
export declare const rpcGetStorageChanges: (chainId: number, address: string, offset: string) => Promise<any>;
|
|
15
|
+
export declare const WALLET_API: {
|
|
16
|
+
rpcGetStorageChanges: (chainId: number, address: string, offset: string) => Promise<any>;
|
|
17
|
+
rpcSimulateTransaction: (chainId: number, simulateTxBody: RpcSimulateTransactionBody) => Promise<RpcSimulateTransactionResponse>;
|
|
18
|
+
rpcSimulateBundle: (chainId: number, simulateTxBody: RpcSimulateTransactionBody<RpcTransactionParams[]>) => Promise<RpcSimulateTransactionResponse<RpcSimulateResult[]>>;
|
|
19
|
+
simulateTx: (simulateTxBody: SimulateTxBody) => Promise<SimulateTxResponse>;
|
|
20
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ERC20Token } from '../types';
|
|
2
|
+
export declare const tokensInfoCall: (chainId: number, tokenAddresses: string[], waitForOffsetUpdate?: boolean) => Promise<(ERC20Token | undefined)[]>;
|
|
3
|
+
export declare const getTokensForChainCall: (chainId: number) => Promise<ERC20Token[]>;
|
|
4
|
+
export declare const getTokenBySymbolCall: (chainId: number, symbol: string) => Promise<ERC20Token | undefined>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface TronSubsidyEligibilityResponse {
|
|
2
|
+
shouldSubsidizeBatch: boolean;
|
|
3
|
+
}
|
|
4
|
+
interface RecordTronSubsidyRequest {
|
|
5
|
+
ethereumAddress: string;
|
|
6
|
+
recipientCount: number;
|
|
7
|
+
subsidyUsd: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const checkTronSubsidyEligibility: (ethereumAddress: string) => Promise<TronSubsidyEligibilityResponse>;
|
|
10
|
+
export declare const recordTronSubsidyUsage: (request: RecordTronSubsidyRequest) => Promise<{
|
|
11
|
+
success: boolean;
|
|
12
|
+
}>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AllPoints, BrotherhoodWeeklyAnalytic, UserWeeklyAnalytic } from '../types';
|
|
2
|
+
interface GetUserAnalyticsProps {
|
|
3
|
+
ethereumAddress: string;
|
|
4
|
+
}
|
|
5
|
+
interface GetUserAnalyticsRes {
|
|
6
|
+
success: boolean;
|
|
7
|
+
currentWeek: UserWeeklyAnalytic;
|
|
8
|
+
previousWeeks: UserWeeklyAnalytic[];
|
|
9
|
+
allTime: AllPoints;
|
|
10
|
+
}
|
|
11
|
+
export declare const getUserAnalytics: ({ ethereumAddress }: GetUserAnalyticsProps) => Promise<GetUserAnalyticsRes>;
|
|
12
|
+
interface GetBrotherhoodAnalyticsRes {
|
|
13
|
+
success: boolean;
|
|
14
|
+
currentWeek: BrotherhoodWeeklyAnalytic | undefined;
|
|
15
|
+
allTime: AllPoints | undefined;
|
|
16
|
+
}
|
|
17
|
+
interface GetBrotherhoodAnalyticsProps {
|
|
18
|
+
brotherhoodId?: number;
|
|
19
|
+
ethereumAddress?: string | undefined | null;
|
|
20
|
+
}
|
|
21
|
+
export declare const getBrotherhoodAnalytics: ({ brotherhoodId, ethereumAddress, }: GetBrotherhoodAnalyticsProps) => Promise<GetBrotherhoodAnalyticsRes>;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { chainIds } from './chains.constants';
|
|
2
|
+
export declare const WETH_ERC20_TOKEN_ADDRESS = "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2";
|
|
3
|
+
export declare const SWAP_ROUTER_ADDRESSES: {
|
|
4
|
+
Uniswap: {
|
|
5
|
+
[chainIds.ethMainnet]: string;
|
|
6
|
+
[chainIds.polygon]: string;
|
|
7
|
+
[chainIds.optimism]: string;
|
|
8
|
+
[chainIds.optimismTest]: string;
|
|
9
|
+
[chainIds.arbMainnet]: string;
|
|
10
|
+
[chainIds.bnbMainnet]: string;
|
|
11
|
+
[chainIds.base]: string;
|
|
12
|
+
};
|
|
13
|
+
Odos: {
|
|
14
|
+
[chainIds.ethMainnet]: string;
|
|
15
|
+
[chainIds.polygon]: string;
|
|
16
|
+
[chainIds.optimism]: string;
|
|
17
|
+
[chainIds.optimismTest]: string;
|
|
18
|
+
[chainIds.arbMainnet]: string;
|
|
19
|
+
[chainIds.bnbMainnet]: string;
|
|
20
|
+
[chainIds.base]: string;
|
|
21
|
+
};
|
|
22
|
+
OneInch: {
|
|
23
|
+
[chainIds.ethMainnet]: string;
|
|
24
|
+
[chainIds.polygon]: string;
|
|
25
|
+
[chainIds.optimism]: string;
|
|
26
|
+
[chainIds.optimismTest]: string;
|
|
27
|
+
[chainIds.arbMainnet]: string;
|
|
28
|
+
[chainIds.bnbMainnet]: string;
|
|
29
|
+
[chainIds.base]: string;
|
|
30
|
+
};
|
|
31
|
+
Lifi: {
|
|
32
|
+
[chainIds.ethMainnet]: string;
|
|
33
|
+
[chainIds.polygon]: string;
|
|
34
|
+
[chainIds.optimism]: string;
|
|
35
|
+
[chainIds.optimismTest]: string;
|
|
36
|
+
[chainIds.arbMainnet]: string;
|
|
37
|
+
[chainIds.bnbMainnet]: string;
|
|
38
|
+
[chainIds.base]: string;
|
|
39
|
+
[chainIds.tempo]: string;
|
|
40
|
+
[chainIds.solanaMainnet]: string;
|
|
41
|
+
[chainIds.solanaLocalnet]: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export declare const NATIVE_TOKEN_WRAPPER_ADDRESSES: {
|
|
45
|
+
[chainIds.ethMainnet]: string;
|
|
46
|
+
[chainIds.polygon]: string;
|
|
47
|
+
[chainIds.optimism]: string;
|
|
48
|
+
[chainIds.optimismTest]: string;
|
|
49
|
+
[chainIds.arbMainnet]: string;
|
|
50
|
+
[chainIds.bnbMainnet]: string;
|
|
51
|
+
[chainIds.base]: string;
|
|
52
|
+
};
|
|
53
|
+
export declare const WRAPPER_TOKEN_EXCHANGE_ADDRESSES: {
|
|
54
|
+
[chainIds.ethMainnet]: string;
|
|
55
|
+
[chainIds.polygon]: string;
|
|
56
|
+
[chainIds.optimism]: string;
|
|
57
|
+
[chainIds.optimismTest]: string;
|
|
58
|
+
[chainIds.arbMainnet]: string;
|
|
59
|
+
[chainIds.bnbMainnet]: string;
|
|
60
|
+
[chainIds.base]: string;
|
|
61
|
+
};
|
|
62
|
+
export declare const SWAP_FEE_TAKER_ADDRESSES: {
|
|
63
|
+
[chainIds.ethMainnet]: string;
|
|
64
|
+
[chainIds.polygon]: string;
|
|
65
|
+
[chainIds.optimism]: string;
|
|
66
|
+
[chainIds.optimismTest]: string;
|
|
67
|
+
[chainIds.arbMainnet]: string;
|
|
68
|
+
[chainIds.bnbMainnet]: string;
|
|
69
|
+
[chainIds.base]: string;
|
|
70
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const IMAGE_PATHS: {
|
|
2
|
+
CHEVRON: string;
|
|
3
|
+
MOON: string;
|
|
4
|
+
SUN: string;
|
|
5
|
+
ARROW_LEFT: string;
|
|
6
|
+
AUTHENTO_LIGHT: string;
|
|
7
|
+
AUTHENTO_DARK: string;
|
|
8
|
+
KING: string;
|
|
9
|
+
CIRCLE_STRIKETHROUGH: string;
|
|
10
|
+
RIGHT_SQUARE: string;
|
|
11
|
+
COINBASE_DARK: string;
|
|
12
|
+
COINBASE_LIGHT: string;
|
|
13
|
+
};
|