rango-sdk 0.5.1-next.0 → 0.5.1-next.2

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/lib/index.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/services/client.ts", "../../rango-types/src/api/shared/type-gaurds.ts", "../../rango-types/src/api/shared/routing.ts", "../../rango-types/src/api/shared/transactions.ts", "../../rango-types/src/api/shared/txs/cosmos.ts", "../../rango-types/src/api/shared/txs/solana.ts", "../../rango-types/src/api/shared/txs/transfer.ts", "../../rango-types/src/api/shared/txs/tron.ts", "../../rango-types/src/api/shared/txs/ton.ts", "../../rango-types/src/api/main/txs/evm.ts"],
4
- "sourcesContent": ["import uuid from 'uuid-random'\nimport {\n MetaRequest,\n MetaResponse,\n BestRouteRequest,\n BestRouteResponse,\n CheckApprovalResponse,\n CheckTxStatusRequest,\n TransactionStatusResponse,\n CreateTransactionRequest,\n CreateTransactionResponse,\n ReportTransactionRequest,\n WalletDetailsResponse,\n RequestOptions,\n BlockchainMeta,\n CompactMetaResponse,\n CompactToken,\n Token,\n MultiRouteRequest,\n MultiRouteResponse,\n ConfirmRouteResponse,\n ConfirmRouteRequest,\n CustomTokenRequest,\n CustomTokenResponse,\n TokenBalanceResponse,\n TokenBalanceRequest,\n SwapperMetaExtended,\n MultipleTokenBalanceRequest,\n MultipleTokenBalanceResponse,\n SearchCustomTokensRequest,\n SearchCustomTokensResponse,\n} from '../types'\nimport axios, { AxiosInstance } from 'axios'\n\ntype WalletAddresses = { blockchain: string; address: string }[]\n\nexport class RangoClient {\n private readonly deviceId: string\n private readonly apiKey: string\n private readonly apiUrl: string\n private readonly httpService: AxiosInstance\n\n constructor(apiKey: string, apiUrl?: string) {\n this.apiUrl = apiUrl || 'https://api.rango.exchange'\n this.apiKey = apiKey\n try {\n if (typeof window !== 'undefined') {\n const deviceId = localStorage.getItem('deviceId')\n if (deviceId) {\n this.deviceId = deviceId\n } else {\n const generatedId = uuid()\n localStorage.setItem('deviceId', generatedId)\n this.deviceId = generatedId\n }\n } else {\n this.deviceId = uuid()\n }\n } catch (e) {\n this.deviceId = uuid()\n }\n this.httpService = axios.create({\n baseURL: this.apiUrl,\n })\n }\n\n public async getAllMetadata(\n metaRequest?: MetaRequest,\n options?: RequestOptions\n ): Promise<MetaResponse> {\n const params = {\n ...metaRequest,\n blockchains: metaRequest?.blockchains?.join(),\n swappers: metaRequest?.swappers?.join(),\n swappersGroups: metaRequest?.swappersGroups?.join(),\n transactionTypes: metaRequest?.transactionTypes?.join(),\n }\n const axiosResponse = await this.httpService.get<CompactMetaResponse>(\n `/meta/compact?apiKey=${this.apiKey}`,\n {\n params,\n ...options,\n }\n )\n const reformatTokens = (tokens: CompactToken[]): Token[] =>\n tokens.map((tm) => ({\n blockchain: tm.b,\n symbol: tm.s,\n image: tm.i,\n address: tm.a || null,\n usdPrice: tm.p || null,\n isSecondaryCoin: tm.is || false,\n coinSource: tm.c || null,\n coinSourceUrl: tm.cu || null,\n name: tm.n || null,\n decimals: tm.d,\n isPopular: tm.ip || false,\n supportedSwappers: tm.ss || [],\n }))\n\n const tokens = reformatTokens(axiosResponse.data.tokens)\n const popularTokens = reformatTokens(axiosResponse.data.popularTokens)\n return { ...axiosResponse.data, tokens, popularTokens }\n }\n\n public async getBlockchains(\n options?: RequestOptions\n ): Promise<BlockchainMeta[]> {\n const axiosResponse = await this.httpService.get<BlockchainMeta[]>(\n `/meta/blockchains?apiKey=${this.apiKey}`,\n { ...options }\n )\n return axiosResponse.data\n }\n\n public async getSwappers(\n options?: RequestOptions\n ): Promise<SwapperMetaExtended[]> {\n const axiosResponse = await this.httpService.get<SwapperMetaExtended[]>(\n `/meta/swappers?apiKey=${this.apiKey}`,\n { ...options }\n )\n return axiosResponse.data\n }\n\n public async getCustomToken(\n customTokenRequest?: CustomTokenRequest,\n options?: RequestOptions\n ): Promise<CustomTokenResponse> {\n const axiosResponse = await this.httpService.get<CustomTokenResponse>(\n `/meta/custom-token?apiKey=${this.apiKey}`,\n { params: customTokenRequest, ...options }\n )\n return axiosResponse.data\n }\n\n public async searchCustomTokens(\n searchCustomTokensRequest: SearchCustomTokensRequest,\n options?: RequestOptions\n ): Promise<SearchCustomTokensResponse> {\n const axiosResponse =\n await this.httpService.get<SearchCustomTokensResponse>(\n `/meta/token/search?apiKey=${this.apiKey}`,\n { params: searchCustomTokensRequest, ...options }\n )\n return axiosResponse.data\n }\n\n public async getBestRoute(\n requestBody: BestRouteRequest,\n options?: RequestOptions\n ): Promise<BestRouteResponse> {\n const axiosResponse = await this.httpService.post<BestRouteResponse>(\n `/routing/best?apiKey=${this.apiKey}`,\n requestBody,\n { headers: { 'X-Rango-Id': this.deviceId }, ...options }\n )\n return axiosResponse.data\n }\n\n public async getAllRoutes(\n requestBody: MultiRouteRequest,\n options?: RequestOptions\n ): Promise<MultiRouteResponse> {\n const axiosResponse = await this.httpService.post<MultiRouteResponse>(\n `/routing/bests?apiKey=${this.apiKey}`,\n requestBody,\n { headers: { 'X-Rango-Id': this.deviceId }, ...options }\n )\n return axiosResponse.data\n }\n\n public async confirmRoute(\n requestBody: ConfirmRouteRequest,\n options?: RequestOptions\n ): Promise<ConfirmRouteResponse> {\n const axiosResponse = await this.httpService.post<ConfirmRouteResponse>(\n `/routing/confirm?apiKey=${this.apiKey}`,\n requestBody,\n { headers: { 'X-Rango-Id': this.deviceId }, ...options }\n )\n return axiosResponse.data\n }\n\n // @deprecated use confirmRoute instead\n public async confirmRouteRequest(\n requestBody: ConfirmRouteRequest,\n options?: RequestOptions\n ): Promise<ConfirmRouteResponse> {\n const axiosResponse = await this.httpService.post<ConfirmRouteResponse>(\n `/routing/confirm?apiKey=${this.apiKey}`,\n requestBody,\n { headers: { 'X-Rango-Id': this.deviceId }, ...options }\n )\n return axiosResponse.data\n }\n\n public async checkApproval(\n requestId: string,\n txId?: string,\n options?: RequestOptions\n ): Promise<CheckApprovalResponse> {\n const axiosResponse = await this.httpService.get<CheckApprovalResponse>(\n `/tx/${requestId}/check-approval?apiKey=${this.apiKey}`,\n { params: { txId }, ...options }\n )\n return axiosResponse.data\n }\n\n public async checkStatus(\n requestBody: CheckTxStatusRequest,\n options?: RequestOptions\n ): Promise<TransactionStatusResponse> {\n const axiosResponse =\n await this.httpService.post<TransactionStatusResponse>(\n `/tx/check-status?apiKey=${this.apiKey}`,\n requestBody,\n { ...options }\n )\n return axiosResponse.data\n }\n\n public async createTransaction(\n requestBody: CreateTransactionRequest,\n options?: RequestOptions\n ): Promise<CreateTransactionResponse> {\n const axiosResponse =\n await this.httpService.post<CreateTransactionResponse>(\n `/tx/create?apiKey=${this.apiKey}`,\n requestBody,\n { ...options }\n )\n return axiosResponse.data\n }\n\n public async reportFailure(\n requestBody: ReportTransactionRequest,\n options?: RequestOptions\n ): Promise<void> {\n await this.httpService.post(\n `/tx/report-tx?apiKey=${this.apiKey}`,\n requestBody,\n {\n ...options,\n }\n )\n }\n\n public async getWalletsDetails(\n walletAddresses: WalletAddresses,\n options?: RequestOptions\n ): Promise<WalletDetailsResponse> {\n let walletAddressesQueryParams = ''\n for (let i = 0; i < walletAddresses.length; i++) {\n const walletAddress = walletAddresses[i]\n walletAddressesQueryParams += `&address=${walletAddress.blockchain}.${walletAddress.address}`\n }\n const axiosResponse = await this.httpService.get<WalletDetailsResponse>(\n `/wallets/details?apiKey=${this.apiKey}${walletAddressesQueryParams}`,\n { ...options }\n )\n return axiosResponse.data\n }\n\n public async getTokenBalance(\n tokenBalanceRequest: TokenBalanceRequest,\n options?: RequestOptions\n ): Promise<TokenBalanceResponse> {\n const axiosResponse = await this.httpService.get<TokenBalanceResponse>(\n `/wallets/token-balance?apiKey=${this.apiKey}`,\n { params: tokenBalanceRequest, ...options }\n )\n return axiosResponse.data\n }\n\n public async getMultipleTokenBalance(\n requestBody: MultipleTokenBalanceRequest,\n options?: RequestOptions\n ): Promise<MultipleTokenBalanceResponse> {\n const axiosResponse =\n await this.httpService.post<MultipleTokenBalanceResponse>(\n `/wallets/multiple-token-balance?apiKey=${this.apiKey}`,\n requestBody,\n { ...options }\n )\n return axiosResponse.data\n }\n}\n", "import {\n BlockchainMeta,\n CosmosBlockchainMeta,\n EvmBlockchainMeta,\n HyperliquidBlockchainMeta,\n SolanaBlockchainMeta,\n StarkNetBlockchainMeta,\n TonBlockchainMeta,\n TransferBlockchainMeta,\n TronBlockchainMeta,\n XrplBlockchainMeta,\n} from './meta.js'\n\nexport const isEvmBlockchain = (\n blockchainMeta: BlockchainMeta\n): blockchainMeta is EvmBlockchainMeta => blockchainMeta.type === 'EVM'\n\nexport const isCosmosBlockchain = (\n blockchainMeta: BlockchainMeta\n): blockchainMeta is CosmosBlockchainMeta => blockchainMeta.type === 'COSMOS'\n\nexport const isSolanaBlockchain = (\n blockchainMeta: BlockchainMeta\n): blockchainMeta is SolanaBlockchainMeta => blockchainMeta.type === 'SOLANA'\n\nexport const isTronBlockchain = (\n blockchainMeta: BlockchainMeta\n): blockchainMeta is TronBlockchainMeta => blockchainMeta.type === 'TRON'\n\nexport const isTransferBlockchain = (\n blockchainMeta: BlockchainMeta\n): blockchainMeta is TransferBlockchainMeta =>\n blockchainMeta.type === 'TRANSFER'\n\nexport const isStarknetBlockchain = (\n blockchainMeta: BlockchainMeta\n): blockchainMeta is StarkNetBlockchainMeta =>\n blockchainMeta.type === 'STARKNET'\n\nexport const isTonBlockchain = (\n blockchainMeta: BlockchainMeta\n): blockchainMeta is TonBlockchainMeta => blockchainMeta.type === 'TON'\n\nexport const isXrplBlockchain = (\n blockchainMeta: BlockchainMeta\n): blockchainMeta is XrplBlockchainMeta => blockchainMeta.type === 'XRPL'\n\nexport const isHyperliquidBlockchain = (\n blockchainMeta: BlockchainMeta\n): blockchainMeta is HyperliquidBlockchainMeta =>\n blockchainMeta.type === 'HYPERLIQUID'\n\nexport const evmBlockchains = (blockchains: BlockchainMeta[]) =>\n blockchains.filter(isEvmBlockchain)\n\nexport const solanaBlockchain = (blockchains: BlockchainMeta[]) =>\n blockchains.filter(isSolanaBlockchain)\n\nexport const starknetBlockchain = (blockchains: BlockchainMeta[]) =>\n blockchains.filter(isStarknetBlockchain)\n\nexport const tronBlockchain = (blockchains: BlockchainMeta[]) =>\n blockchains.filter(isTronBlockchain)\n\nexport const cosmosBlockchains = (blockchains: BlockchainMeta[]) =>\n blockchains.filter(isCosmosBlockchain)\n\nexport const transferBlockchains = (blockchains: BlockchainMeta[]) =>\n blockchains.filter(isTransferBlockchain)\n\nexport const tonBlockchain = (blockchains: BlockchainMeta[]) =>\n blockchains.filter(isTonBlockchain)\n\nexport const xrplBlockchain = (blockchains: BlockchainMeta[]) =>\n blockchains.filter(isXrplBlockchain)\n\nexport const hyperliquidBlockchain = (blockchains: BlockchainMeta[]) =>\n blockchains.filter(isHyperliquidBlockchain)\n", "/**\n * Routing Result Type\n *\n */\nexport enum RoutingResultType {\n OK = 'OK',\n HIGH_IMPACT = 'HIGH_IMPACT',\n NO_ROUTE = 'NO_ROUTE',\n INPUT_LIMIT_ISSUE = 'INPUT_LIMIT_ISSUE',\n HIGH_IMPACT_FOR_CREATE_TX = 'HIGH_IMPACT_FOR_CREATE_TX',\n}\n", "/**\n * The type of transaction\n */\nexport enum TransactionType {\n EVM = 'EVM',\n TRANSFER = 'TRANSFER',\n COSMOS = 'COSMOS',\n SOLANA = 'SOLANA',\n TRON = 'TRON',\n STARKNET = 'STARKNET',\n TON = 'TON',\n SUI = 'SUI',\n XRPL = 'XRPL',\n STELLAR = 'STELLAR',\n HYPERLIQUID = 'HYPERLIQUID',\n}\n\n/**\n * The type of transaction\n * @deprecated use TransactionType instead\n */\nexport enum GenericTransactionType {\n EVM = 'EVM',\n TRANSFER = 'TRANSFER',\n COSMOS = 'COSMOS',\n SOLANA = 'SOLANA',\n}\n\n/**\n * A transaction's url that can be displayed to advanced user to track the progress\n *\n * @property {string} url - Url of the transaction in blockchain explorer. example: https://etherscan.io/tx/0xa1a3...\n * @property {string | null} description - A custom display name to help user distinguish the transactions from each\n * other. Example: Inbound, Outbound, Bridge, or null\n *\n */\nexport type SwapExplorerUrl = {\n description: string | null\n url: string\n}\n\n/**\n * APIErrorCode\n *\n * Error code of a swap failure\n *\n */\nexport type APIErrorCode =\n | 'TX_FAIL'\n | 'TX_EXPIRED'\n | 'FETCH_TX_FAILED'\n | 'USER_REJECT'\n | 'USER_CANCEL'\n | 'USER_CANCELED_TX'\n | 'CALL_WALLET_FAILED'\n | 'SEND_TX_FAILED'\n | 'CALL_OR_SEND_FAILED'\n | 'TX_FAILED_IN_BLOCKCHAIN'\n | 'CLIENT_UNEXPECTED_BEHAVIOUR'\n | 'INSUFFICIENT_APPROVE'\n\n/**\n * The function checks if a given string value is a valid API error code.\n * @param {string} value - a string that represents a possible API error code.\n * @returns A boolean value is being returned, indicating whether the input `value` is of type\n * `APIErrorCode` or not.\n */\nexport function isAPIErrorCode(value: string): value is APIErrorCode {\n return [\n 'TX_FAIL',\n 'TX_EXPIRED',\n 'FETCH_TX_FAILED',\n 'USER_REJECT',\n 'USER_CANCEL',\n 'USER_CANCELED_TX',\n 'CALL_WALLET_FAILED',\n 'SEND_TX_FAILED',\n 'CALL_OR_SEND_FAILED',\n 'TX_FAILED_IN_BLOCKCHAIN',\n 'CLIENT_UNEXPECTED_BEHAVIOUR',\n 'INSUFFICIENT_APPROVE',\n ].includes(value)\n}\n\n/**\n * ReportTransactionRequest\n *\n * It should be used when an error happened in client and we want to inform server that transaction failed,\n * E.g. user rejected the transaction dialog or and an RPC error raised during signing tx by user.\n *\n * @property {string} requestId - The requestId from best route endpoint\n * @property {APIErrorCode} eventType - Type of the event that happened, example: USER_REJECT\n * @property {number} [step] - Step number in which failure happened\n * @property {string} [reason] - Reason or message for the error\n * @property {[key: string]: string} [data] - @deprecated A list of key-value for extra details\n * @property {wallet?: string, errorCode? string} [tags] - A list of key-value for pre-defined tags\n *\n */\nexport type ReportTransactionRequest = {\n requestId: string\n eventType: APIErrorCode\n step?: number\n reason?: string\n data?: { [key: string]: string }\n tags?: { wallet?: string; errorCode?: string }\n}\n\n/**\n * The status of transaction in tracking\n */\nexport enum TransactionStatus {\n FAILED = 'failed',\n RUNNING = 'running',\n SUCCESS = 'success',\n}\n\n/**\n * Response body of check-approval\n * You could stop check approval if:\n * 1- approved successfully\n * => isApproved = true\n * 2- approval transaction failed\n * => isApproved = false && txStatus === 'failed'\n * 3- approval transaction succeeded but currentApprovedAmount is still less than requiredApprovedAmount\n * (e.g. user changed transaction data and enter another approve amount in MetaMask)\n * => isApproved = false && txStatus == 'success'\n *\n * @property {boolean} isApproved - A flag which indicates that the approve tx is done or not\n * @property {TransactionStatus | null} txStatus - Status of approve transaction in blockchain,\n * if isArppoved is false and txStatus is failed, it seems that approve transaction failed in blockchain\n * @property {string | null} requiredApprovedAmount - required amount to be approved by user\n * @property {string | null} currentApprovedAmount - current approved amount by user\n *\n */\nexport type CheckApprovalResponse = {\n isApproved: boolean\n txStatus: TransactionStatus | null\n requiredApprovedAmount: string | null\n currentApprovedAmount: string | null\n}\n", "import { AssetWithTicker } from '../common.js'\nimport { TransactionType } from '../transactions.js'\nimport { BaseTransaction } from './base.js'\n\n/**\n * CosmosCoin\n */\nexport type CosmosCoin = {\n amount: string\n denom: string\n}\n\n/**\n * CosmosProtoMsg\n */\nexport type CosmosProtoMsg = {\n type_url: string\n value: number[]\n}\n\n/**\n * CosmosFee representing fee for cosmos transaction\n */\nexport type CosmosFee = {\n gas: string\n amount: CosmosCoin[]\n}\n\n/**\n * Main transaction object for COSMOS type transactions\n */\nexport type CosmosMessage = {\n signType: 'AMINO' | 'DIRECT'\n sequence: string | null\n source: number | null\n account_number: number | null\n rpcUrl: string\n chainId: string | null\n msgs: any[] // TODO\n protoMsgs: CosmosProtoMsg[]\n memo: string | null\n fee: CosmosFee | null\n}\n/**\n * An alternative to CosmosMessage object for the cosmos wallets that do not support generic Cosmos messages (e.g. XDefi)\n *\n * @property {AssetWithTicker} asset - The asset to be transferred\n * @property {string} amount - The machine-readable amount to transfer, example: 1000000000000000000\n * @property {number} decimals - The decimals for this asset, example: 18\n * @property {string | null} memo - Memo of transaction, could be null\n * @property {string} method - The transaction method, example: transfer, deposit\n * @property {string} recipient - The recipient address of transaction\n *\n */\nexport type CosmosRawTransferData = {\n amount: string\n asset: AssetWithTicker\n decimals: number\n memo: string | null\n method: string\n recipient: string\n}\n\n/**\n * A Cosmos transaction, child of GenericTransaction\n *\n * @property {TransactionType} type - This fields equals to COSMOS for all CosmosTransactions\n * @property {string} blockChain - The blockchain that this transaction will be executed in, same as the input blockchain of creating transaction\n * @property {string} fromWalletAddress - Address of wallet that this transaction should be executed in, same as the create transaction request's input\n * @property {CosmosMessage} data - Transaction data\n * @property {CosmosRawTransferData | null} rawTransfer - An alternative to CosmosMessage object for the cosmos wallets that do not support generic Cosmos messages\n *\n */\nexport interface CosmosTransaction extends BaseTransaction {\n type: TransactionType.COSMOS\n fromWalletAddress: string\n data: CosmosMessage\n rawTransfer: CosmosRawTransferData | null\n}\n\nexport const isCosmosTransaction = (transaction: {\n type: TransactionType\n}): transaction is CosmosTransaction =>\n transaction.type === TransactionType.COSMOS\n", "import { TransactionType } from '../transactions.js'\nimport { BaseTransaction } from './base.js'\n\n/**\n * Account metadata used to define instructions\n */\nexport type SolanaInstructionKey = {\n pubkey: string\n isSigner: boolean\n isWritable: boolean\n}\n\n/**\n * Transaction Instruction class\n */\nexport type SolanaInstruction = {\n keys: SolanaInstructionKey[]\n programId: string\n data: number[]\n}\n\n/**\n * Pair of signature and corresponding public key\n */\nexport type SolanaSignature = {\n signature: number[]\n publicKey: string\n}\n\n/**\n * This type of transaction is used for all solana transactions\n *\n * @property {TransactionType} type - This fields equals to SOLANA for all SolanaTransactions\n * @property {'LEGACY' | 'VERSIONED'} txType - Type of the solana transaction\n * @property {string} blockChain, equals to SOLANA\n * @property {string} from, Source wallet address\n * @property {string} identifier, Transaction hash used in case of retry\n * @property {string | null} recentBlockhash, A recent blockhash\n * @property {SolanaSignature[]} signatures, Signatures for the transaction\n * @property {number[] | null} serializedMessage, The byte array of the transaction\n * @property {SolanaInstruction[]} instructions, The instructions to atomically execute\n *\n */\nexport interface SolanaTransaction extends BaseTransaction {\n type: TransactionType.SOLANA\n txType: 'LEGACY' | 'VERSIONED'\n from: string\n identifier: string\n recentBlockhash: string | null\n signatures: SolanaSignature[]\n serializedMessage: number[] | null\n instructions: SolanaInstruction[]\n}\n\nexport const isSolanaTransaction = (transaction: {\n type: TransactionType\n}): transaction is SolanaTransaction =>\n transaction.type === TransactionType.SOLANA\n", "import { AssetWithTicker } from '../common.js'\nimport { TransactionType } from '../transactions.js'\nimport { BaseTransaction } from './base.js'\n\nexport type InputToSign = { address: string, signingIndexes: number[] }\n/**\n * @property {unsignedPsbtBase64} unsignedPsbtBase64 - Base 64 representation of the Unsigned PSBT\n * @property {InputToSign[]} inputsToSign - Inputs to be signed\n */\nexport type PSBT = {\n unsignedPsbtBase64: string\n inputsToSign: InputToSign[]\n}\n/**\n * TransferTransaction. This type of transaction is used for UTXO blockchains including BTC, LTC, BCH\n *\n * @property {TransactionType} type - This fields equals to TRANSFER for all TransferTransactions\n * @property {string} blockChain - The blockchain that this transaction will be executed in, same as the input blockchain of creating transaction\n * @property {string} method - The method that should be passed to wallet. examples: deposit, transfer\n * @property {AssetWithTicker} asset\n * @property {string} amount - The machine-readable amount of transaction, example: 1000000000000000000\n * @property {number} decimals - The decimals of the asset\n * @property {string} fromWalletAddress - The source wallet address that can sign this transaction\n * @property {string} recipientAddress - The destination wallet address that the fund should be sent to\n * @property {string | null} memo - The memo of transaction, can be null\n * @property {PSBT | null} psbt - PSBT object containing base 64 representation of the Unsigned PSBT along with the inputs to be signed\n *\n */\nexport interface Transfer extends BaseTransaction {\n type: TransactionType.TRANSFER\n method: string\n asset: AssetWithTicker\n amount: string\n decimals: number\n fromWalletAddress: string\n recipientAddress: string\n memo: string | null\n psbt: PSBT | null\n}\n\nexport const isTransferTransaction = (transaction: {\n type: TransactionType\n}): transaction is Transfer => transaction.type === TransactionType.TRANSFER\n", "import { TransactionType } from '../transactions.js'\nimport { BaseTransaction } from './base.js'\n\nexport type TrxContractParameter = {\n value: unknown\n type_url: string\n}\n\nexport type TrxContractData = {\n parameter: TrxContractParameter\n type: string\n}\n\nexport type TrxRawData = {\n contract: TrxContractData[]\n ref_block_bytes: string\n ref_block_hash: string\n expiration: number\n timestamp: number\n}\n\n/**\n * TronTransaction\n *\n * @property {TransactionType} type - TransactionType.TRON\n * @property {boolean} isApprovalTx - Whether or not the transaction is an approval transaction.\n * @property {TrxRawData | null} raw_data - This is the raw data of the transaction.\n * @property {string | null} raw_data_hex - The raw hex data of the transaction.\n * @property {string} txID - The transaction ID.\n * @property {boolean} visible - boolean\n * @property {object} __payload__\n */\nexport interface TronTransaction extends BaseTransaction {\n type: TransactionType.TRON\n isApprovalTx: boolean\n raw_data: TrxRawData | null\n raw_data_hex: string | null\n txID: string\n visible: boolean\n __payload__: object\n}\n\nexport const isTronTransaction = (transaction: {\n type: TransactionType\n}): transaction is TronTransaction => transaction.type === TransactionType.TRON\n", "import { TransactionType } from '../transactions.js'\nimport { BaseTransaction } from './base.js'\n\nexport enum TonChainID {\n MAINNET = '-239',\n TESTNET = '-3',\n}\n\n/**\n * @property {string} address - Receiver's address\n * @property {string} amount - Amount to send in nanoTon\n * @property {string} [stateInit] - Contract specific data to add to the transaction\n * @property {string} [payload] - Contract specific data to add to the transaction\n */\nexport interface TonMessage {\n address: string\n amount: string\n stateInit?: string\n payload?: string\n}\n\n/**\n * This type of transaction is used for all Ton transactions\n *\n * @property {TransactionType} type - This field equals to TON for all Ton transactions\n * @property {number} validUntil - Sending transaction deadline in unix epoch seconds\n * @property {TonChainID} [network] - The network (mainnet or testnet) where DApp intends to send the transaction. If not set, the transaction is sent to the network currently set in the wallet, but this is not safe and DApp should always strive to set the network. If the network parameter is set, but the wallet has a different network set, the wallet should show an alert and DO NOT ALLOW TO SEND this transaction\n * @property {string} [from] - The sender address in '<wc>:<hex>' format from which DApp intends to send the transaction. Current account.address by default\n * @property {TonMessage[]} messages - Messages to send: min is 1, max is 4\n */\nexport interface TonTransaction extends BaseTransaction {\n type: TransactionType.TON\n validUntil: number\n network?: TonChainID\n from?: string\n messages: TonMessage[]\n}\n\nexport const isTonTransaction = (transaction: {\n type: TransactionType\n}): transaction is TonTransaction => transaction.type === TransactionType.TON\n", "import { BaseTransaction, TransactionType } from '../../shared/index.js'\n\n/**\n * The transaction object for all EVM-based blockchains, including Ethereum, BSC, Polygon, Harmony, etc\n *\n * @property {TransactionType} type - This fields equals to EVM for all EvmTransactions\n * @property {string} blockChain - The blockchain that this transaction is going to run in\n * @property {boolean} isApprovalTx - Determines that this transaction is an approval transaction or not, if true user\n * should approve the transaction and call create transaction endpoint again to get the original tx. Beware that most\n * of the fields of this object will be passed directly to the wallet without any change.\n * @property {string | null} from - The source wallet address, it can be null\n * @property {string} to - Address of destination wallet or the smart contract or token that is going to be called\n * @property {string | null} data - The data of smart contract call, it can be null in case of native token transfer\n * @property {string | null} value - The amount of transaction in case of native token transfer\n * @property {string | null} nonce - The nonce value for transaction\n * @property {string | null} gasPrice - The suggested gas price for this transaction\n * @property {string | null} gasLimit - The suggested gas limit for this transaction\n * @property {string | null} maxPriorityFeePerGas - Suggested max priority fee per gas for this transaction\n * @property {string | null} maxFeePerGas - Suggested max fee per gas for this transaction\n *\n */\nexport interface EvmTransaction extends BaseTransaction {\n type: TransactionType.EVM\n isApprovalTx: boolean\n from: string | null\n to: string\n data: string | null\n value: string | null\n nonce: string | null\n gasLimit: string | null\n gasPrice: string | null\n maxPriorityFeePerGas: string | null\n maxFeePerGas: string | null\n}\n\nexport const isEvmTransaction = (transaction: {\n type: TransactionType\n}): transaction is EvmTransaction => transaction.type === TransactionType.EVM\n"],
5
- "mappings": "+EAAA,OAAOA,MAAU,cAgCjB,OAAOC,MAA8B,QAI9B,IAAMC,EAAN,KAAkB,CApCzB,MAoCyB,CAAAC,EAAA,oBAMvB,YAAYC,EAAgBC,EAAiB,CAC3C,K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,OAAAA,EAAY,OAASC,EAAgB,IAArC,EAFL,qBCvCjC,IAAYC,GAAZ,SAAYA,EAAU,CACpBA,EAAA,QAAA,OACAA,EAAA,QAAA,IACF,GAHYA,IAAAA,EAAU,CAAA,EAAA,EAmCf,IAAMC,EAAmBC,EAAA,SAACC,EAEhC,CAAoC,OAAAA,EAAY,OAASC,EAAgB,GAArC,EAFL,oBCHzB,IAAMC,GAAmBC,EAAA,SAACC,EAEhC,CAAoC,OAAAA,EAAY,OAASC,EAAgB,GAArC,EAFL",
4
+ "sourcesContent": ["import uuid from 'uuid-random'\nimport {\n MetaRequest,\n MetaResponse,\n BestRouteRequest,\n BestRouteResponse,\n CheckApprovalResponse,\n CheckTxStatusRequest,\n TransactionStatusResponse,\n CreateTransactionRequest,\n CreateTransactionResponse,\n ReportTransactionRequest,\n WalletDetailsResponse,\n RequestOptions,\n BlockchainMeta,\n CompactMetaResponse,\n CompactToken,\n Token,\n MultiRouteRequest,\n MultiRouteResponse,\n ConfirmRouteResponse,\n ConfirmRouteRequest,\n CustomTokenRequest,\n CustomTokenResponse,\n TokenBalanceResponse,\n TokenBalanceRequest,\n SwapperMetaExtended,\n MultipleTokenBalanceRequest,\n MultipleTokenBalanceResponse,\n SearchCustomTokensRequest,\n SearchCustomTokensResponse,\n} from '../types'\nimport axios, { AxiosInstance } from 'axios'\n\ntype WalletAddresses = { blockchain: string; address: string }[]\n\nexport class RangoClient {\n private readonly deviceId: string\n private readonly apiKey: string\n private readonly apiUrl: string\n private readonly httpService: AxiosInstance\n\n constructor(apiKey: string, apiUrl?: string) {\n this.apiUrl = apiUrl || 'https://api.rango.exchange'\n this.apiKey = apiKey\n try {\n if (typeof window !== 'undefined') {\n const deviceId = localStorage.getItem('deviceId')\n if (deviceId) {\n this.deviceId = deviceId\n } else {\n const generatedId = uuid()\n localStorage.setItem('deviceId', generatedId)\n this.deviceId = generatedId\n }\n } else {\n this.deviceId = uuid()\n }\n } catch (e) {\n this.deviceId = uuid()\n }\n this.httpService = axios.create({\n baseURL: this.apiUrl,\n })\n }\n\n public async getAllMetadata(\n metaRequest?: MetaRequest,\n options?: RequestOptions,\n ): Promise<MetaResponse> {\n const params = {\n ...metaRequest,\n blockchains: metaRequest?.blockchains?.join(),\n swappers: metaRequest?.swappers?.join(),\n swappersGroups: metaRequest?.swappersGroups?.join(),\n transactionTypes: metaRequest?.transactionTypes?.join(),\n }\n const axiosResponse = await this.httpService.get<CompactMetaResponse>(\n `/meta/compact?apiKey=${this.apiKey}`,\n {\n params,\n ...options,\n },\n )\n const reformatTokens = (tokens: CompactToken[]): Token[] =>\n tokens.map((tm) => ({\n blockchain: tm.b,\n symbol: tm.s,\n image: tm.i,\n address: tm.a || null,\n usdPrice: tm.p || null,\n isSecondaryCoin: tm.is || false,\n coinSource: tm.c || null,\n coinSourceUrl: tm.cu || null,\n name: tm.n || null,\n decimals: tm.d,\n isPopular: tm.ip || false,\n supportedSwappers: tm.ss || [],\n }))\n\n const tokens = reformatTokens(axiosResponse.data.tokens)\n const popularTokens = reformatTokens(axiosResponse.data.popularTokens)\n return { ...axiosResponse.data, tokens, popularTokens }\n }\n\n public async getBlockchains(\n options?: RequestOptions,\n ): Promise<BlockchainMeta[]> {\n const axiosResponse = await this.httpService.get<BlockchainMeta[]>(\n `/meta/blockchains?apiKey=${this.apiKey}`,\n { ...options },\n )\n return axiosResponse.data\n }\n\n public async getSwappers(\n options?: RequestOptions,\n ): Promise<SwapperMetaExtended[]> {\n const axiosResponse = await this.httpService.get<SwapperMetaExtended[]>(\n `/meta/swappers?apiKey=${this.apiKey}`,\n { ...options },\n )\n return axiosResponse.data\n }\n\n public async getCustomToken(\n customTokenRequest?: CustomTokenRequest,\n options?: RequestOptions,\n ): Promise<CustomTokenResponse> {\n const axiosResponse = await this.httpService.get<CustomTokenResponse>(\n `/meta/custom-token?apiKey=${this.apiKey}`,\n { params: customTokenRequest, ...options },\n )\n return axiosResponse.data\n }\n\n public async searchCustomTokens(\n searchCustomTokensRequest: SearchCustomTokensRequest,\n options?: RequestOptions,\n ): Promise<SearchCustomTokensResponse> {\n const axiosResponse =\n await this.httpService.get<SearchCustomTokensResponse>(\n `/meta/token/search?apiKey=${this.apiKey}`,\n { params: searchCustomTokensRequest, ...options },\n )\n return axiosResponse.data\n }\n\n public async getBestRoute(\n requestBody: BestRouteRequest,\n options?: RequestOptions,\n ): Promise<BestRouteResponse> {\n const axiosResponse = await this.httpService.post<BestRouteResponse>(\n `/routing/best?apiKey=${this.apiKey}`,\n requestBody,\n { headers: { 'X-Rango-Id': this.deviceId }, ...options },\n )\n return axiosResponse.data\n }\n\n public async getAllRoutes(\n requestBody: MultiRouteRequest,\n options?: RequestOptions,\n ): Promise<MultiRouteResponse> {\n const axiosResponse = await this.httpService.post<MultiRouteResponse>(\n `/routing/bests?apiKey=${this.apiKey}`,\n requestBody,\n { headers: { 'X-Rango-Id': this.deviceId }, ...options },\n )\n return axiosResponse.data\n }\n\n public async confirmRoute(\n requestBody: ConfirmRouteRequest,\n options?: RequestOptions,\n ): Promise<ConfirmRouteResponse> {\n const axiosResponse = await this.httpService.post<ConfirmRouteResponse>(\n `/routing/confirm?apiKey=${this.apiKey}`,\n requestBody,\n { headers: { 'X-Rango-Id': this.deviceId }, ...options },\n )\n return axiosResponse.data\n }\n\n // @deprecated use confirmRoute instead\n public async confirmRouteRequest(\n requestBody: ConfirmRouteRequest,\n options?: RequestOptions,\n ): Promise<ConfirmRouteResponse> {\n const axiosResponse = await this.httpService.post<ConfirmRouteResponse>(\n `/routing/confirm?apiKey=${this.apiKey}`,\n requestBody,\n { headers: { 'X-Rango-Id': this.deviceId }, ...options },\n )\n return axiosResponse.data\n }\n\n public async checkApproval(\n requestId: string,\n txId?: string,\n options?: RequestOptions,\n ): Promise<CheckApprovalResponse> {\n const axiosResponse = await this.httpService.get<CheckApprovalResponse>(\n `/tx/${requestId}/check-approval?apiKey=${this.apiKey}`,\n { params: { txId }, ...options },\n )\n return axiosResponse.data\n }\n\n public async checkStatus(\n requestBody: CheckTxStatusRequest,\n options?: RequestOptions,\n ): Promise<TransactionStatusResponse> {\n const axiosResponse =\n await this.httpService.post<TransactionStatusResponse>(\n `/tx/check-status?apiKey=${this.apiKey}`,\n requestBody,\n { ...options },\n )\n return axiosResponse.data\n }\n\n public async createTransaction(\n requestBody: CreateTransactionRequest,\n options?: RequestOptions,\n ): Promise<CreateTransactionResponse> {\n const axiosResponse =\n await this.httpService.post<CreateTransactionResponse>(\n `/tx/create?apiKey=${this.apiKey}`,\n requestBody,\n { ...options },\n )\n return axiosResponse.data\n }\n\n public async reportFailure(\n requestBody: ReportTransactionRequest,\n options?: RequestOptions,\n ): Promise<void> {\n await this.httpService.post(\n `/tx/report-tx?apiKey=${this.apiKey}`,\n requestBody,\n {\n ...options,\n },\n )\n }\n\n public async getWalletsDetails(\n walletAddresses: WalletAddresses,\n options?: RequestOptions,\n ): Promise<WalletDetailsResponse> {\n let walletAddressesQueryParams = ''\n for (let i = 0; i < walletAddresses.length; i++) {\n const walletAddress = walletAddresses[i]\n walletAddressesQueryParams += `&address=${walletAddress.blockchain}.${walletAddress.address}`\n }\n const axiosResponse = await this.httpService.get<WalletDetailsResponse>(\n `/wallets/details?apiKey=${this.apiKey}${walletAddressesQueryParams}`,\n { ...options },\n )\n return axiosResponse.data\n }\n\n public async getTokenBalance(\n tokenBalanceRequest: TokenBalanceRequest,\n options?: RequestOptions,\n ): Promise<TokenBalanceResponse> {\n const axiosResponse = await this.httpService.get<TokenBalanceResponse>(\n `/wallets/token-balance?apiKey=${this.apiKey}`,\n { params: tokenBalanceRequest, ...options },\n )\n return axiosResponse.data\n }\n\n public async getMultipleTokenBalance(\n requestBody: MultipleTokenBalanceRequest,\n options?: RequestOptions,\n ): Promise<MultipleTokenBalanceResponse> {\n const axiosResponse =\n await this.httpService.post<MultipleTokenBalanceResponse>(\n `/wallets/multiple-token-balance?apiKey=${this.apiKey}`,\n requestBody,\n { ...options },\n )\n return axiosResponse.data\n }\n}\n", "import {\n BlockchainMeta,\n CosmosBlockchainMeta,\n EvmBlockchainMeta,\n HyperliquidBlockchainMeta,\n SolanaBlockchainMeta,\n StarkNetBlockchainMeta,\n TonBlockchainMeta,\n TransferBlockchainMeta,\n TronBlockchainMeta,\n XrplBlockchainMeta,\n} from './meta.js'\n\nexport const isEvmBlockchain = (\n blockchainMeta: BlockchainMeta,\n): blockchainMeta is EvmBlockchainMeta => blockchainMeta.type === 'EVM'\n\nexport const isCosmosBlockchain = (\n blockchainMeta: BlockchainMeta,\n): blockchainMeta is CosmosBlockchainMeta => blockchainMeta.type === 'COSMOS'\n\nexport const isSolanaBlockchain = (\n blockchainMeta: BlockchainMeta,\n): blockchainMeta is SolanaBlockchainMeta => blockchainMeta.type === 'SOLANA'\n\nexport const isTronBlockchain = (\n blockchainMeta: BlockchainMeta,\n): blockchainMeta is TronBlockchainMeta => blockchainMeta.type === 'TRON'\n\nexport const isTransferBlockchain = (\n blockchainMeta: BlockchainMeta,\n): blockchainMeta is TransferBlockchainMeta =>\n blockchainMeta.type === 'TRANSFER'\n\nexport const isStarknetBlockchain = (\n blockchainMeta: BlockchainMeta,\n): blockchainMeta is StarkNetBlockchainMeta =>\n blockchainMeta.type === 'STARKNET'\n\nexport const isTonBlockchain = (\n blockchainMeta: BlockchainMeta,\n): blockchainMeta is TonBlockchainMeta => blockchainMeta.type === 'TON'\n\nexport const isXrplBlockchain = (\n blockchainMeta: BlockchainMeta,\n): blockchainMeta is XrplBlockchainMeta => blockchainMeta.type === 'XRPL'\n\nexport const isHyperliquidBlockchain = (\n blockchainMeta: BlockchainMeta,\n): blockchainMeta is HyperliquidBlockchainMeta =>\n blockchainMeta.type === 'HYPERLIQUID'\n\nexport const evmBlockchains = (blockchains: BlockchainMeta[]) =>\n blockchains.filter(isEvmBlockchain)\n\nexport const solanaBlockchain = (blockchains: BlockchainMeta[]) =>\n blockchains.filter(isSolanaBlockchain)\n\nexport const starknetBlockchain = (blockchains: BlockchainMeta[]) =>\n blockchains.filter(isStarknetBlockchain)\n\nexport const tronBlockchain = (blockchains: BlockchainMeta[]) =>\n blockchains.filter(isTronBlockchain)\n\nexport const cosmosBlockchains = (blockchains: BlockchainMeta[]) =>\n blockchains.filter(isCosmosBlockchain)\n\nexport const transferBlockchains = (blockchains: BlockchainMeta[]) =>\n blockchains.filter(isTransferBlockchain)\n\nexport const tonBlockchain = (blockchains: BlockchainMeta[]) =>\n blockchains.filter(isTonBlockchain)\n\nexport const xrplBlockchain = (blockchains: BlockchainMeta[]) =>\n blockchains.filter(isXrplBlockchain)\n\nexport const hyperliquidBlockchain = (blockchains: BlockchainMeta[]) =>\n blockchains.filter(isHyperliquidBlockchain)\n", "/**\n * Routing Result Type\n *\n */\nexport enum RoutingResultType {\n OK = 'OK',\n HIGH_IMPACT = 'HIGH_IMPACT',\n NO_ROUTE = 'NO_ROUTE',\n INPUT_LIMIT_ISSUE = 'INPUT_LIMIT_ISSUE',\n HIGH_IMPACT_FOR_CREATE_TX = 'HIGH_IMPACT_FOR_CREATE_TX',\n}\n", "/** The type of transaction */\nexport enum TransactionType {\n EVM = 'EVM',\n TRANSFER = 'TRANSFER',\n COSMOS = 'COSMOS',\n SOLANA = 'SOLANA',\n TRON = 'TRON',\n STARKNET = 'STARKNET',\n TON = 'TON',\n SUI = 'SUI',\n XRPL = 'XRPL',\n STELLAR = 'STELLAR',\n HYPERLIQUID = 'HYPERLIQUID',\n}\n\n/**\n * The type of transaction\n * @deprecated use TransactionType instead\n */\nexport enum GenericTransactionType {\n EVM = 'EVM',\n TRANSFER = 'TRANSFER',\n COSMOS = 'COSMOS',\n SOLANA = 'SOLANA',\n}\n\n/** A transaction's url that can be displayed to advanced user to track the progress */\nexport type SwapExplorerUrl = {\n /** A custom display name to help user distinguish the transactions from each other. Example: Inbound, Outbound, Bridge, or null */\n description: string | null\n /** Url of the transaction in blockchain explorer. example: https://etherscan.io/tx/0xa1a3... */\n url: string\n}\n\n/**\n * APIErrorCode\n *\n * Error code of a swap failure\n */\nexport type APIErrorCode =\n | 'TX_FAIL'\n | 'TX_EXPIRED'\n | 'FETCH_TX_FAILED'\n | 'USER_REJECT'\n | 'USER_CANCEL'\n | 'USER_CANCELED_TX'\n | 'CALL_WALLET_FAILED'\n | 'SEND_TX_FAILED'\n | 'CALL_OR_SEND_FAILED'\n | 'TX_FAILED_IN_BLOCKCHAIN'\n | 'CLIENT_UNEXPECTED_BEHAVIOUR'\n | 'INSUFFICIENT_APPROVE'\n\n/**\n * The function checks if a given string value is a valid API error code.\n * @param {string} value - a string that represents a possible API error code.\n * @returns A boolean value is being returned, indicating whether the input `value` is of type\n * `APIErrorCode` or not.\n */\nexport function isAPIErrorCode(value: string): value is APIErrorCode {\n return [\n 'TX_FAIL',\n 'TX_EXPIRED',\n 'FETCH_TX_FAILED',\n 'USER_REJECT',\n 'USER_CANCEL',\n 'USER_CANCELED_TX',\n 'CALL_WALLET_FAILED',\n 'SEND_TX_FAILED',\n 'CALL_OR_SEND_FAILED',\n 'TX_FAILED_IN_BLOCKCHAIN',\n 'CLIENT_UNEXPECTED_BEHAVIOUR',\n 'INSUFFICIENT_APPROVE',\n ].includes(value)\n}\n\n/**\n * ReportTransactionRequest\n *\n * It should be used when an error happened in client and we want to inform server that transaction failed,\n * E.g. user rejected the transaction dialog or and an RPC error raised during signing tx by user.\n */\nexport type ReportTransactionRequest = {\n /** The requestId from best route endpoint */\n requestId: string\n /** Type of the event that happened, example: USER_REJECT */\n eventType: APIErrorCode\n /** Step number in which failure happened */\n step?: number\n /** Reason or message for the error */\n reason?: string\n /** @deprecated A list of key-value for extra details */\n data?: { [key: string]: string }\n /** A list of key-value for pre-defined tags */\n tags?: { wallet?: string; errorCode?: string }\n}\n\n/** The status of transaction in tracking */\nexport enum TransactionStatus {\n FAILED = 'failed',\n RUNNING = 'running',\n SUCCESS = 'success',\n}\n\n/**\n * Response body of check-approval\n * You could stop check approval if:\n * 1- approved successfully\n * => isApproved = true\n * 2- approval transaction failed\n * => isApproved = false && txStatus === 'failed'\n * 3- approval transaction succeeded but currentApprovedAmount is still less than requiredApprovedAmount\n * (e.g. user changed transaction data and enter another approve amount in MetaMask)\n * => isApproved = false && txStatus == 'success'\n */\nexport type CheckApprovalResponse = {\n /** A flag which indicates that the approve tx is done or not */\n isApproved: boolean\n /**\n * Status of approve transaction in blockchain,\n * if isArppoved is false and txStatus is failed, it seems that approve transaction failed in blockchain\n */\n txStatus: TransactionStatus | null\n /** required amount to be approved by user */\n requiredApprovedAmount: string | null\n /** current approved amount by user */\n currentApprovedAmount: string | null\n}\n", "import { AssetWithTicker } from '../common.js'\nimport { TransactionType } from '../transactions.js'\nimport { BaseTransaction } from './base.js'\n\n/** CosmosCoin */\nexport type CosmosCoin = {\n amount: string\n denom: string\n}\n\n/** CosmosProtoMsg */\nexport type CosmosProtoMsg = {\n type_url: string\n value: number[]\n}\n\n/** CosmosFee representing fee for cosmos transaction */\nexport type CosmosFee = {\n gas: string\n amount: CosmosCoin[]\n}\n\n/** Main transaction object for COSMOS type transactions */\nexport type CosmosMessage = {\n signType: 'AMINO' | 'DIRECT'\n sequence: string | null\n source: number | null\n account_number: number | null\n rpcUrl: string\n chainId: string | null\n msgs: any[] // TODO\n protoMsgs: CosmosProtoMsg[]\n memo: string | null\n fee: CosmosFee | null\n}\n\n/** An alternative to CosmosMessage object for the cosmos wallets that do not support generic Cosmos messages (e.g. XDefi) */\nexport type CosmosRawTransferData = {\n /** The machine-readable amount to transfer, example: 1000000000000000000 */\n amount: string\n /** The asset to be transferred */\n asset: AssetWithTicker\n /** The decimals for this asset, example: 18 */\n decimals: number\n /** Memo of transaction, could be null */\n memo: string | null\n /** The transaction method, example: transfer, deposit */\n method: string\n /** The recipient address of transaction */\n recipient: string\n}\n\n/** A Cosmos transaction, child of GenericTransaction */\nexport interface CosmosTransaction extends BaseTransaction {\n /** This fields equals to COSMOS for all CosmosTransactions */\n type: TransactionType.COSMOS\n /** Address of wallet that this transaction should be executed in, same as the create transaction request's input */\n fromWalletAddress: string\n /** Transaction data */\n data: CosmosMessage\n /** An alternative to CosmosMessage object for the cosmos wallets that do not support generic Cosmos messages */\n rawTransfer: CosmosRawTransferData | null\n}\n\nexport const isCosmosTransaction = (transaction: {\n type: TransactionType\n}): transaction is CosmosTransaction =>\n transaction.type === TransactionType.COSMOS\n", "import { TransactionType } from '../transactions.js'\nimport { BaseTransaction } from './base.js'\n\n/** Account metadata used to define instructions */\nexport type SolanaInstructionKey = {\n pubkey: string\n isSigner: boolean\n isWritable: boolean\n}\n\n/** Transaction Instruction class */\nexport type SolanaInstruction = {\n keys: SolanaInstructionKey[]\n programId: string\n data: number[]\n}\n\n/** Pair of signature and corresponding public key */\nexport type SolanaSignature = {\n signature: number[]\n publicKey: string\n}\n\n/** This type of transaction is used for all solana transactions */\nexport interface SolanaTransaction extends BaseTransaction {\n /** This fields equals to SOLANA for all SolanaTransactions */\n type: TransactionType.SOLANA\n /** Type of the solana transaction */\n txType: 'LEGACY' | 'VERSIONED'\n /** Source wallet address */\n from: string\n /** Transaction hash used in case of retry */\n identifier: string\n /** A recent blockhash */\n recentBlockhash: string | null\n /** Signatures for the transaction */\n signatures: SolanaSignature[]\n /** The byte array of the transaction */\n serializedMessage: number[] | null\n /** The instructions to atomically execute */\n instructions: SolanaInstruction[]\n}\n\nexport const isSolanaTransaction = (transaction: {\n type: TransactionType\n}): transaction is SolanaTransaction =>\n transaction.type === TransactionType.SOLANA\n", "import { AssetWithTicker } from '../common.js'\nimport { TransactionType } from '../transactions.js'\nimport { BaseTransaction } from './base.js'\n\nexport type InputToSign = { address: string; signingIndexes: number[] }\n\nexport type PSBT = {\n /** Base 64 representation of the Unsigned PSBT */\n unsignedPsbtBase64: string\n /** Inputs to be signed */\n inputsToSign: InputToSign[]\n}\n\n/** TransferTransaction. This type of transaction is used for UTXO blockchains including BTC, LTC, BCH */\nexport interface Transfer extends BaseTransaction {\n /** This fields equals to TRANSFER for all TransferTransactions */\n type: TransactionType.TRANSFER\n /** The method that should be passed to wallet. examples: deposit, transfer */\n method: string\n asset: AssetWithTicker\n /** The machine-readable amount of transaction, example: 1000000000000000000 */\n amount: string\n /** The decimals of the asset */\n decimals: number\n /** The source wallet address that can sign this transaction */\n fromWalletAddress: string\n /** The destination wallet address that the fund should be sent to */\n recipientAddress: string\n /** The memo of transaction, can be null */\n memo: string | null\n /** PSBT object containing base 64 representation of the Unsigned PSBT along with the inputs to be signed */\n psbt: PSBT | null\n}\n\nexport const isTransferTransaction = (transaction: {\n type: TransactionType\n}): transaction is Transfer => transaction.type === TransactionType.TRANSFER\n", "import { TransactionType } from '../transactions.js'\nimport { BaseTransaction } from './base.js'\n\nexport type TrxContractParameter = {\n value: unknown\n type_url: string\n}\n\nexport type TrxContractData = {\n parameter: TrxContractParameter\n type: string\n}\n\nexport type TrxRawData = {\n contract: TrxContractData[]\n ref_block_bytes: string\n ref_block_hash: string\n expiration: number\n timestamp: number\n}\n\n/** TronTransaction */\nexport interface TronTransaction extends BaseTransaction {\n /** TransactionType.TRON */\n type: TransactionType.TRON\n /** Whether or not the transaction is an approval transaction. */\n isApprovalTx: boolean\n /** This is the raw data of the transaction. */\n raw_data: TrxRawData | null\n /** The raw hex data of the transaction. */\n raw_data_hex: string | null\n /** The transaction ID. */\n txID: string\n /** boolean */\n visible: boolean\n __payload__: object\n}\n\nexport const isTronTransaction = (transaction: {\n type: TransactionType\n}): transaction is TronTransaction => transaction.type === TransactionType.TRON\n", "import { TransactionType } from '../transactions.js'\nimport { BaseTransaction } from './base.js'\n\nexport enum TonChainID {\n MAINNET = '-239',\n TESTNET = '-3',\n}\n\n/** Ton transaction message */\nexport interface TonMessage {\n /** Receiver's address */\n address: string\n /** Amount to send in nanoTon */\n amount: string\n /** Contract specific data to add to the transaction */\n stateInit?: string\n /** Contract specific data to add to the transaction */\n payload?: string\n}\n\n/** This type of transaction is used for all Ton transactions */\nexport interface TonTransaction extends BaseTransaction {\n /** This field equals to TON for all Ton transactions */\n type: TransactionType.TON\n /** Sending transaction deadline in unix epoch seconds */\n validUntil: number\n /**\n * The network (mainnet or testnet) where DApp intends to send the transaction. If not set, the transaction is sent to the network currently set in the wallet, but this is not safe and DApp should always strive to set the network. If the network parameter is set, but the wallet has a different network set, the wallet should show an alert and DO NOT ALLOW TO SEND this transaction\n */\n network?: TonChainID\n /** The sender address in '<wc>:<hex>' format from which DApp intends to send the transaction. Current account.address by default */\n from?: string\n /** Messages to send: min is 1, max is 4 */\n messages: TonMessage[]\n}\n\nexport const isTonTransaction = (transaction: {\n type: TransactionType\n}): transaction is TonTransaction => transaction.type === TransactionType.TON\n", "import { BaseTransaction, TransactionType } from '../../shared/index.js'\n\n/** The transaction object for all EVM-based blockchains, including Ethereum, BSC, Polygon, Harmony, etc */\nexport interface EvmTransaction extends BaseTransaction {\n /** This fields equals to EVM for all EvmTransactions */\n type: TransactionType.EVM\n /**\n * Determines that this transaction is an approval transaction or not, if true user\n * should approve the transaction and call create transaction endpoint again to get the original tx. Beware that most\n * of the fields of this object will be passed directly to the wallet without any change.\n */\n isApprovalTx: boolean\n /** The source wallet address, it can be null */\n from: string | null\n /** Address of destination wallet or the smart contract or token that is going to be called */\n to: string\n /** The data of smart contract call, it can be null in case of native token transfer */\n data: string | null\n /** The amount of transaction in case of native token transfer */\n value: string | null\n /** The nonce value for transaction */\n nonce: string | null\n /** The suggested gas limit for this transaction */\n gasLimit: string | null\n /** The suggested gas price for this transaction */\n gasPrice: string | null\n /** Suggested max priority fee per gas for this transaction */\n maxPriorityFeePerGas: string | null\n /** Suggested max fee per gas for this transaction */\n maxFeePerGas: string | null\n}\n\nexport const isEvmTransaction = (transaction: {\n type: TransactionType\n}): transaction is EvmTransaction => transaction.type === TransactionType.EVM\n"],
5
+ "mappings": "+EAAA,OAAOA,MAAU,cAgCjB,OAAOC,MAA8B,QAI9B,IAAMC,EAAN,KAAkB,CApCzB,MAoCyB,CAAAC,EAAA,oBAMvB,YAAYC,EAAgBC,EAAiB,CAC3C,KAAK,OAASA,GAAU,6BACxB,KAAK,OAASD,EACd,GAAI,CACF,GAA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GAAZ,SAAYA,EAAU,CACpBA,EAAA,QAAA,OACAA,EAAA,QAAA,IACF,GAHYA,IAAAA,EAAU,CAAA,EAAA,EAiCf,IAAMC,EAAmBC,EAAA,SAACC,EAEhC,CAAoC,OAAAA,EAAY,OAASC,EAAgB,GAArC,EAFL,oBCJzB,IAAMC,GAAmBC,EAAA,SAACC,EAEhC,CAAoC,OAAAA,EAAY,OAASC,EAAgB,GAArC,EAFL",
6
6
  "names": ["uuid", "axios", "RangoClient", "__name", "apiKey", "apiUrl", "deviceId", "generatedId", "uuid", "axios", "metaRequest", "options", "params", "axiosResponse", "reformatTokens", "tokens", "tm", "popularTokens", "customTokenRequest", "searchCustomTokensRequest", "requestBody", "requestId", "txId", "walletAddresses", "walletAddressesQueryParams", "i", "walletAddress", "tokenBalanceRequest", "isEvmBlockchain", "__name", "blockchainMeta", "isCosmosBlockchain", "isSolanaBlockchain", "isTronBlockchain", "isTransferBlockchain", "isStarknetBlockchain", "isTonBlockchain", "isXrplBlockchain", "isHyperliquidBlockchain", "evmBlockchains", "blockchains", "solanaBlockchain", "starknetBlockchain", "tronBlockchain", "cosmosBlockchains", "transferBlockchains", "tonBlockchain", "xrplBlockchain", "hyperliquidBlockchain", "RoutingResultType", "TransactionType", "GenericTransactionType", "TransactionStatus", "isCosmosTransaction", "__name", "transaction", "TransactionType", "isSolanaTransaction", "__name", "transaction", "TransactionType", "isTransferTransaction", "__name", "transaction", "TransactionType", "isTronTransaction", "__name", "transaction", "TransactionType", "TonChainID", "isTonTransaction", "__name", "transaction", "TransactionType", "isEvmTransaction", "__name", "transaction", "TransactionType"]
7
7
  }
@@ -1,4 +1,4 @@
1
1
  export * from 'rango-types/lib/api/main/meta';
2
2
  export * from 'rango-types/lib/api/shared/type-gaurds';
3
- export type { MetaRequest, SwapperMetaExtended } from 'rango-types/lib/api/shared/meta';
3
+ export type { MetaRequest, SwapperMetaExtended, } from 'rango-types/lib/api/shared/meta';
4
4
  //# sourceMappingURL=meta.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/types/api/meta.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAA;AAC7C,cAAc,wCAAwC,CAAA;AACtD,YAAY,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAA"}
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/types/api/meta.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAA;AAC7C,cAAc,wCAAwC,CAAA;AACtD,YAAY,EACV,WAAW,EACX,mBAAmB,GACpB,MAAM,iCAAiC,CAAA"}
package/package.json CHANGED
@@ -1 +1,56 @@
1
- {"name":"rango-sdk","version":"0.5.1-next.0","description":"Rango Exchange SDK for dApps","type":"module","main":"lib/index.js","types":"lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/rango-exchange/rango-sdk.git"},"homepage":"https://github.com/rango-exchange/rango-sdk","bugs":{"url":"https://github.com/rango-exchange/rango-sdk/issues"},"scripts":{"clean":"rm -rf ./lib && rm -rf ./dist","build":"yarn run rangutopia library build --external-all-except=rango-types && yarn post:build","post:build":"yarn mv:file lib","watch":"tsdx watch","lint":"eslint src -c ../../.eslintrc.json --fix --ignore-path ../../.prettierignore","format":"prettier --write './**/*.{js,jsx,ts,tsx,css,md,json}' --config ../../.prettierrc.json --ignore-path ../../.prettierignore","mv:file":"sh ../../scripts/post-build.sh"},"keywords":["Rango Exchange","SDK","Cross-Chain","Multi-Chain","Ethereum","Cosmos","Solana","Tron","Starknet","Ton","Aggregator"],"files":["lib/**/*","!lib/**/*.tsbuildinfo","src"],"author":"rango.exchange","license":"GPL-3.0","dependencies":{"axios":"^1.7.4","rango-types":"^0.5.1-next.0","uuid-random":"^1.3.2"},"publishConfig":{"access":"public","branches":["master"]}}
1
+ {
2
+ "name": "rango-sdk",
3
+ "version": "0.5.1-next.2",
4
+ "description": "Rango Exchange SDK for dApps",
5
+ "type": "module",
6
+ "main": "lib/index.js",
7
+ "types": "lib/index.d.ts",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/rango-exchange/rango-sdk.git"
11
+ },
12
+ "homepage": "https://github.com/rango-exchange/rango-sdk",
13
+ "bugs": {
14
+ "url": "https://github.com/rango-exchange/rango-sdk/issues"
15
+ },
16
+ "scripts": {
17
+ "clean": "rm -rf ./lib && rm -rf ./dist",
18
+ "build": "yarn run rangutopia library build --external-all-except=rango-types && yarn post:build",
19
+ "post:build": "yarn mv:file lib",
20
+ "watch": "tsdx watch",
21
+ "lint": "eslint src --fix",
22
+ "format": "prettier --write './**/*.{js,jsx,ts,tsx,css,md,json}' --config ../../.prettierrc.json --ignore-path ../../.prettierignore",
23
+ "mv:file": "sh ../../scripts/post-build.sh"
24
+ },
25
+ "keywords": [
26
+ "Rango Exchange",
27
+ "SDK",
28
+ "Cross-Chain",
29
+ "Multi-Chain",
30
+ "Ethereum",
31
+ "Cosmos",
32
+ "Solana",
33
+ "Tron",
34
+ "Starknet",
35
+ "Ton",
36
+ "Aggregator"
37
+ ],
38
+ "files": [
39
+ "lib/**/*",
40
+ "!lib/**/*.tsbuildinfo",
41
+ "src"
42
+ ],
43
+ "author": "rango.exchange",
44
+ "license": "GPL-3.0",
45
+ "dependencies": {
46
+ "axios": "^1.7.4",
47
+ "rango-types": "^0.5.1-next.3",
48
+ "uuid-random": "^1.3.2"
49
+ },
50
+ "publishConfig": {
51
+ "access": "public",
52
+ "branches": [
53
+ "master"
54
+ ]
55
+ }
56
+ }
@@ -66,7 +66,7 @@ export class RangoClient {
66
66
 
67
67
  public async getAllMetadata(
68
68
  metaRequest?: MetaRequest,
69
- options?: RequestOptions
69
+ options?: RequestOptions,
70
70
  ): Promise<MetaResponse> {
71
71
  const params = {
72
72
  ...metaRequest,
@@ -80,7 +80,7 @@ export class RangoClient {
80
80
  {
81
81
  params,
82
82
  ...options,
83
- }
83
+ },
84
84
  )
85
85
  const reformatTokens = (tokens: CompactToken[]): Token[] =>
86
86
  tokens.map((tm) => ({
@@ -104,80 +104,80 @@ export class RangoClient {
104
104
  }
105
105
 
106
106
  public async getBlockchains(
107
- options?: RequestOptions
107
+ options?: RequestOptions,
108
108
  ): Promise<BlockchainMeta[]> {
109
109
  const axiosResponse = await this.httpService.get<BlockchainMeta[]>(
110
110
  `/meta/blockchains?apiKey=${this.apiKey}`,
111
- { ...options }
111
+ { ...options },
112
112
  )
113
113
  return axiosResponse.data
114
114
  }
115
115
 
116
116
  public async getSwappers(
117
- options?: RequestOptions
117
+ options?: RequestOptions,
118
118
  ): Promise<SwapperMetaExtended[]> {
119
119
  const axiosResponse = await this.httpService.get<SwapperMetaExtended[]>(
120
120
  `/meta/swappers?apiKey=${this.apiKey}`,
121
- { ...options }
121
+ { ...options },
122
122
  )
123
123
  return axiosResponse.data
124
124
  }
125
125
 
126
126
  public async getCustomToken(
127
127
  customTokenRequest?: CustomTokenRequest,
128
- options?: RequestOptions
128
+ options?: RequestOptions,
129
129
  ): Promise<CustomTokenResponse> {
130
130
  const axiosResponse = await this.httpService.get<CustomTokenResponse>(
131
131
  `/meta/custom-token?apiKey=${this.apiKey}`,
132
- { params: customTokenRequest, ...options }
132
+ { params: customTokenRequest, ...options },
133
133
  )
134
134
  return axiosResponse.data
135
135
  }
136
136
 
137
137
  public async searchCustomTokens(
138
138
  searchCustomTokensRequest: SearchCustomTokensRequest,
139
- options?: RequestOptions
139
+ options?: RequestOptions,
140
140
  ): Promise<SearchCustomTokensResponse> {
141
141
  const axiosResponse =
142
142
  await this.httpService.get<SearchCustomTokensResponse>(
143
143
  `/meta/token/search?apiKey=${this.apiKey}`,
144
- { params: searchCustomTokensRequest, ...options }
144
+ { params: searchCustomTokensRequest, ...options },
145
145
  )
146
146
  return axiosResponse.data
147
147
  }
148
148
 
149
149
  public async getBestRoute(
150
150
  requestBody: BestRouteRequest,
151
- options?: RequestOptions
151
+ options?: RequestOptions,
152
152
  ): Promise<BestRouteResponse> {
153
153
  const axiosResponse = await this.httpService.post<BestRouteResponse>(
154
154
  `/routing/best?apiKey=${this.apiKey}`,
155
155
  requestBody,
156
- { headers: { 'X-Rango-Id': this.deviceId }, ...options }
156
+ { headers: { 'X-Rango-Id': this.deviceId }, ...options },
157
157
  )
158
158
  return axiosResponse.data
159
159
  }
160
160
 
161
161
  public async getAllRoutes(
162
162
  requestBody: MultiRouteRequest,
163
- options?: RequestOptions
163
+ options?: RequestOptions,
164
164
  ): Promise<MultiRouteResponse> {
165
165
  const axiosResponse = await this.httpService.post<MultiRouteResponse>(
166
166
  `/routing/bests?apiKey=${this.apiKey}`,
167
167
  requestBody,
168
- { headers: { 'X-Rango-Id': this.deviceId }, ...options }
168
+ { headers: { 'X-Rango-Id': this.deviceId }, ...options },
169
169
  )
170
170
  return axiosResponse.data
171
171
  }
172
172
 
173
173
  public async confirmRoute(
174
174
  requestBody: ConfirmRouteRequest,
175
- options?: RequestOptions
175
+ options?: RequestOptions,
176
176
  ): Promise<ConfirmRouteResponse> {
177
177
  const axiosResponse = await this.httpService.post<ConfirmRouteResponse>(
178
178
  `/routing/confirm?apiKey=${this.apiKey}`,
179
179
  requestBody,
180
- { headers: { 'X-Rango-Id': this.deviceId }, ...options }
180
+ { headers: { 'X-Rango-Id': this.deviceId }, ...options },
181
181
  )
182
182
  return axiosResponse.data
183
183
  }
@@ -185,12 +185,12 @@ export class RangoClient {
185
185
  // @deprecated use confirmRoute instead
186
186
  public async confirmRouteRequest(
187
187
  requestBody: ConfirmRouteRequest,
188
- options?: RequestOptions
188
+ options?: RequestOptions,
189
189
  ): Promise<ConfirmRouteResponse> {
190
190
  const axiosResponse = await this.httpService.post<ConfirmRouteResponse>(
191
191
  `/routing/confirm?apiKey=${this.apiKey}`,
192
192
  requestBody,
193
- { headers: { 'X-Rango-Id': this.deviceId }, ...options }
193
+ { headers: { 'X-Rango-Id': this.deviceId }, ...options },
194
194
  )
195
195
  return axiosResponse.data
196
196
  }
@@ -198,57 +198,57 @@ export class RangoClient {
198
198
  public async checkApproval(
199
199
  requestId: string,
200
200
  txId?: string,
201
- options?: RequestOptions
201
+ options?: RequestOptions,
202
202
  ): Promise<CheckApprovalResponse> {
203
203
  const axiosResponse = await this.httpService.get<CheckApprovalResponse>(
204
204
  `/tx/${requestId}/check-approval?apiKey=${this.apiKey}`,
205
- { params: { txId }, ...options }
205
+ { params: { txId }, ...options },
206
206
  )
207
207
  return axiosResponse.data
208
208
  }
209
209
 
210
210
  public async checkStatus(
211
211
  requestBody: CheckTxStatusRequest,
212
- options?: RequestOptions
212
+ options?: RequestOptions,
213
213
  ): Promise<TransactionStatusResponse> {
214
214
  const axiosResponse =
215
215
  await this.httpService.post<TransactionStatusResponse>(
216
216
  `/tx/check-status?apiKey=${this.apiKey}`,
217
217
  requestBody,
218
- { ...options }
218
+ { ...options },
219
219
  )
220
220
  return axiosResponse.data
221
221
  }
222
222
 
223
223
  public async createTransaction(
224
224
  requestBody: CreateTransactionRequest,
225
- options?: RequestOptions
225
+ options?: RequestOptions,
226
226
  ): Promise<CreateTransactionResponse> {
227
227
  const axiosResponse =
228
228
  await this.httpService.post<CreateTransactionResponse>(
229
229
  `/tx/create?apiKey=${this.apiKey}`,
230
230
  requestBody,
231
- { ...options }
231
+ { ...options },
232
232
  )
233
233
  return axiosResponse.data
234
234
  }
235
235
 
236
236
  public async reportFailure(
237
237
  requestBody: ReportTransactionRequest,
238
- options?: RequestOptions
238
+ options?: RequestOptions,
239
239
  ): Promise<void> {
240
240
  await this.httpService.post(
241
241
  `/tx/report-tx?apiKey=${this.apiKey}`,
242
242
  requestBody,
243
243
  {
244
244
  ...options,
245
- }
245
+ },
246
246
  )
247
247
  }
248
248
 
249
249
  public async getWalletsDetails(
250
250
  walletAddresses: WalletAddresses,
251
- options?: RequestOptions
251
+ options?: RequestOptions,
252
252
  ): Promise<WalletDetailsResponse> {
253
253
  let walletAddressesQueryParams = ''
254
254
  for (let i = 0; i < walletAddresses.length; i++) {
@@ -257,31 +257,31 @@ export class RangoClient {
257
257
  }
258
258
  const axiosResponse = await this.httpService.get<WalletDetailsResponse>(
259
259
  `/wallets/details?apiKey=${this.apiKey}${walletAddressesQueryParams}`,
260
- { ...options }
260
+ { ...options },
261
261
  )
262
262
  return axiosResponse.data
263
263
  }
264
264
 
265
265
  public async getTokenBalance(
266
266
  tokenBalanceRequest: TokenBalanceRequest,
267
- options?: RequestOptions
267
+ options?: RequestOptions,
268
268
  ): Promise<TokenBalanceResponse> {
269
269
  const axiosResponse = await this.httpService.get<TokenBalanceResponse>(
270
270
  `/wallets/token-balance?apiKey=${this.apiKey}`,
271
- { params: tokenBalanceRequest, ...options }
271
+ { params: tokenBalanceRequest, ...options },
272
272
  )
273
273
  return axiosResponse.data
274
274
  }
275
275
 
276
276
  public async getMultipleTokenBalance(
277
277
  requestBody: MultipleTokenBalanceRequest,
278
- options?: RequestOptions
278
+ options?: RequestOptions,
279
279
  ): Promise<MultipleTokenBalanceResponse> {
280
280
  const axiosResponse =
281
281
  await this.httpService.post<MultipleTokenBalanceResponse>(
282
282
  `/wallets/multiple-token-balance?apiKey=${this.apiKey}`,
283
283
  requestBody,
284
- { ...options }
284
+ { ...options },
285
285
  )
286
286
  return axiosResponse.data
287
287
  }
@@ -1,3 +1,6 @@
1
1
  export * from 'rango-types/lib/api/main/meta'
2
2
  export * from 'rango-types/lib/api/shared/type-gaurds'
3
- export type { MetaRequest, SwapperMetaExtended } from 'rango-types/lib/api/shared/meta'
3
+ export type {
4
+ MetaRequest,
5
+ SwapperMetaExtended,
6
+ } from 'rango-types/lib/api/shared/meta'
@@ -1,12 +0,0 @@
1
- yarn run v1.22.22
2
- $ yarn run rangutopia library build --external-all-except=rango-types && yarn post:build
3
- $ /home/runner/work/rango-sdk/rango-sdk/node_modules/.bin/rangutopia library build --external-all-except=rango-types
4
- - Checking required dependencies...
5
- ✔ Dependencies checked.
6
- - Running Typescript and ESBuild on rango-sdk
7
-
8
- ✔ 'rango-sdk' built.
9
- $ yarn mv:file lib
10
- $ sh ../../scripts/post-build.sh lib
11
- moved build files from dist to lib
12
- Done in 2.23s.
package/CHANGELOG.md DELETED
@@ -1,26 +0,0 @@
1
- # [0.5.0](https://github.com/rango-exchange/rango-sdk/compare/rango-sdk@0.4.0...rango-sdk@0.5.0) (2026-05-18)
2
- # [0.4.0](https://github.com/rango-exchange/rango-sdk/compare/rango-sdk@0.3.0...rango-sdk@0.4.0) (2026-05-17)
3
- # [0.3.0](https://github.com/rango-exchange/rango-sdk/compare/rango-sdk@0.2.0...rango-sdk@0.3.0) (2026-05-13)
4
- # 0.2.0 (2026-05-13)
5
-
6
-
7
- ### Bug Fixes
8
-
9
- * add custom token and token balance methods ([c3ff552](https://github.com/rango-exchange/rango-sdk/commit/c3ff552b33f1d68807ebe572fa54cdd8637adfc1))
10
- * add deprecated method for confirmRouteRequest ([f6c75e8](https://github.com/rango-exchange/rango-sdk/commit/f6c75e8fe139fdb3499af39a262140bff950a57c))
11
- * add solana transaction to basic types ([be45390](https://github.com/rango-exchange/rango-sdk/commit/be45390f21573fec9321f14225002843e1038fb0))
12
- * remove outdated examples and bump rango-types to 0.1.71 ([b34d040](https://github.com/rango-exchange/rango-sdk/commit/b34d0408d7e807340490fb786180367d64f5c649))
13
- * resolve issue with retrieving multiple token balances in the main sdk ([891a46f](https://github.com/rango-exchange/rango-sdk/commit/891a46fa7690d981de067dab3b5310e1989b2f7e))
14
- * update deps ([665817a](https://github.com/rango-exchange/rango-sdk/commit/665817a59c1b9f04f2c87bf12efa421870ffccc6))
15
-
16
-
17
- ### Features
18
-
19
- * add a method to the main SDK for retrieving multiple token balances ([426dd0e](https://github.com/rango-exchange/rango-sdk/commit/426dd0ea2c7ca87c1a712bb4846c3e19b285c6f5))
20
- * add connected assets ([cdc3ca2](https://github.com/rango-exchange/rango-sdk/commit/cdc3ca2267be53317857c4a2d5542460c95700fe))
21
- * add multi-routing endpoints and types ([763ea2c](https://github.com/rango-exchange/rango-sdk/commit/763ea2c96f34970f18f81a7b468730401e2a37e0))
22
- * add search method to main sdk for custom tokens ([ac9003a](https://github.com/rango-exchange/rango-sdk/commit/ac9003a92bf5fd0d68c0ac24e4751338e519bf9d))
23
- * added meta request params ([#12](https://github.com/rango-exchange/rango-sdk/issues/12)) ([403706c](https://github.com/rango-exchange/rango-sdk/commit/403706c7ec086ee557d531fe58e2a4b04b03f17e))
24
- * added starknet and tron to txs models ([5ca084a](https://github.com/rango-exchange/rango-sdk/commit/5ca084a31e2d49d1bacf3d0793d102bd892c8ad1))
25
- * make passing symbol optional in basic api ([83adf87](https://github.com/rango-exchange/rango-sdk/commit/83adf87f843a0f905d5e555fa6c75b8b611b87d6))
26
- * use compact version of meta in getAllMetadata ([762ec62](https://github.com/rango-exchange/rango-sdk/commit/762ec629686bb30a2cce41f366fffc239df8645a))
@@ -1 +0,0 @@
1
- {"program":{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/typescript/lib/lib.esnext.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/uuid-random/index.d.ts","../../rango-types/lib/api/shared/common.d.ts","../../rango-types/lib/api/shared/balance.d.ts","../../rango-types/lib/api/shared/transactions.d.ts","../../rango-types/lib/api/shared/meta.d.ts","../../rango-types/lib/api/shared/routing.d.ts","../../rango-types/lib/api/shared/prerequisites/constants.d.ts","../../rango-types/lib/api/shared/prerequisites/xrpl.d.ts","../../rango-types/lib/api/shared/prerequisites/base.d.ts","../../rango-types/lib/api/shared/prerequisites/stellar.d.ts","../../rango-types/lib/api/shared/prerequisites/index.d.ts","../../rango-types/lib/api/shared/txs/base.d.ts","../../rango-types/lib/api/shared/txs/cosmos.d.ts","../../rango-types/lib/api/shared/txs/solana.d.ts","../../rango-types/lib/api/shared/txs/transfer.d.ts","../../rango-types/lib/api/shared/txs/starknet.d.ts","../../rango-types/lib/api/shared/txs/tron.d.ts","../../rango-types/lib/api/shared/txs/ton.d.ts","../../rango-types/lib/api/shared/txs/xrpl.d.ts","../../rango-types/lib/api/shared/txs/stellar.d.ts","../../rango-types/lib/api/shared/txs/index.d.ts","../../rango-types/lib/api/shared/type-gaurds.d.ts","../../rango-types/lib/api/shared/index.d.ts","../../rango-types/lib/api/main/balance.d.ts","../src/types/api/balance.ts","../../rango-types/lib/api/main/common.d.ts","../src/types/api/common.ts","../../rango-types/lib/api/main/meta.d.ts","../src/types/api/meta.ts","../../rango-types/lib/api/main/txs/evm.d.ts","../../rango-types/lib/api/main/txs/cosmos.d.ts","../../rango-types/lib/api/main/txs/transfer.d.ts","../../rango-types/lib/api/main/txs/solana.d.ts","../../rango-types/lib/api/main/txs/tron.d.ts","../../rango-types/lib/api/main/txs/starknet.d.ts","../../rango-types/lib/api/main/txs/ton.d.ts","../../rango-types/lib/api/main/txs/sui.d.ts","../../rango-types/lib/api/main/txs/xrpl.d.ts","../../rango-types/lib/api/main/txs/stellar.d.ts","../../rango-types/lib/api/shared/txs/hyperliquid.d.ts","../../rango-types/lib/api/main/txs/hyperliquid.d.ts","../../rango-types/lib/api/main/txs/index.d.ts","../../rango-types/lib/api/main/transactions.d.ts","../../rango-types/lib/api/main/routing.d.ts","../src/types/api/routing.ts","../src/types/api/transactions.ts","../src/types/api/txs/evm.ts","../src/types/api/txs/cosmos.ts","../src/types/api/txs/transfer.ts","../src/types/api/txs/solana.ts","../src/types/api/txs/starknet.ts","../src/types/api/txs/tron.ts","../src/types/api/txs/ton.ts","../src/types/api/txs/index.ts","../../../node_modules/axios/index.d.ts","../src/types/configs.ts","../src/types/index.ts","../src/services/client.ts","../src/services/index.ts","../src/index.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/assert/strict.d.ts","../../../node_modules/buffer/index.d.ts","../../../node_modules/undici-types/header.d.ts","../../../node_modules/undici-types/readable.d.ts","../../../node_modules/undici-types/file.d.ts","../../../node_modules/undici-types/fetch.d.ts","../../../node_modules/undici-types/formdata.d.ts","../../../node_modules/undici-types/connector.d.ts","../../../node_modules/undici-types/client.d.ts","../../../node_modules/undici-types/errors.d.ts","../../../node_modules/undici-types/dispatcher.d.ts","../../../node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/undici-types/global-origin.d.ts","../../../node_modules/undici-types/pool-stats.d.ts","../../../node_modules/undici-types/pool.d.ts","../../../node_modules/undici-types/handlers.d.ts","../../../node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/undici-types/agent.d.ts","../../../node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/undici-types/mock-agent.d.ts","../../../node_modules/undici-types/mock-client.d.ts","../../../node_modules/undici-types/mock-pool.d.ts","../../../node_modules/undici-types/mock-errors.d.ts","../../../node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/undici-types/api.d.ts","../../../node_modules/undici-types/cookies.d.ts","../../../node_modules/undici-types/patch.d.ts","../../../node_modules/undici-types/filereader.d.ts","../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/undici-types/websocket.d.ts","../../../node_modules/undici-types/content-type.d.ts","../../../node_modules/undici-types/cache.d.ts","../../../node_modules/undici-types/interceptors.d.ts","../../../node_modules/undici-types/index.d.ts","../../../node_modules/@types/node/globals.d.ts","../../../node_modules/@types/node/async_hooks.d.ts","../../../node_modules/@types/node/buffer.d.ts","../../../node_modules/@types/node/child_process.d.ts","../../../node_modules/@types/node/cluster.d.ts","../../../node_modules/@types/node/console.d.ts","../../../node_modules/@types/node/constants.d.ts","../../../node_modules/@types/node/crypto.d.ts","../../../node_modules/@types/node/dgram.d.ts","../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/@types/node/dns.d.ts","../../../node_modules/@types/node/dns/promises.d.ts","../../../node_modules/@types/node/domain.d.ts","../../../node_modules/@types/node/dom-events.d.ts","../../../node_modules/@types/node/events.d.ts","../../../node_modules/@types/node/fs.d.ts","../../../node_modules/@types/node/fs/promises.d.ts","../../../node_modules/@types/node/http.d.ts","../../../node_modules/@types/node/http2.d.ts","../../../node_modules/@types/node/https.d.ts","../../../node_modules/@types/node/inspector.d.ts","../../../node_modules/@types/node/module.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/@types/node/os.d.ts","../../../node_modules/@types/node/path.d.ts","../../../node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/@types/node/process.d.ts","../../../node_modules/@types/node/punycode.d.ts","../../../node_modules/@types/node/querystring.d.ts","../../../node_modules/@types/node/readline.d.ts","../../../node_modules/@types/node/readline/promises.d.ts","../../../node_modules/@types/node/repl.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/stream/promises.d.ts","../../../node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/@types/node/stream/web.d.ts","../../../node_modules/@types/node/string_decoder.d.ts","../../../node_modules/@types/node/test.d.ts","../../../node_modules/@types/node/timers.d.ts","../../../node_modules/@types/node/timers/promises.d.ts","../../../node_modules/@types/node/tls.d.ts","../../../node_modules/@types/node/trace_events.d.ts","../../../node_modules/@types/node/tty.d.ts","../../../node_modules/@types/node/url.d.ts","../../../node_modules/@types/node/util.d.ts","../../../node_modules/@types/node/v8.d.ts","../../../node_modules/@types/node/vm.d.ts","../../../node_modules/@types/node/wasi.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../../../node_modules/@types/node/zlib.d.ts","../../../node_modules/@types/node/globals.global.d.ts","../../../node_modules/@types/node/index.d.ts","../../../node_modules/@types/connect/index.d.ts","../../../node_modules/@types/json-schema/index.d.ts","../../../node_modules/@types/json5/index.d.ts","../../../node_modules/@types/normalize-package-data/index.d.ts","../../../node_modules/@types/semver/classes/semver.d.ts","../../../node_modules/@types/semver/functions/parse.d.ts","../../../node_modules/@types/semver/functions/valid.d.ts","../../../node_modules/@types/semver/functions/clean.d.ts","../../../node_modules/@types/semver/functions/inc.d.ts","../../../node_modules/@types/semver/functions/diff.d.ts","../../../node_modules/@types/semver/functions/major.d.ts","../../../node_modules/@types/semver/functions/minor.d.ts","../../../node_modules/@types/semver/functions/patch.d.ts","../../../node_modules/@types/semver/functions/prerelease.d.ts","../../../node_modules/@types/semver/functions/compare.d.ts","../../../node_modules/@types/semver/functions/rcompare.d.ts","../../../node_modules/@types/semver/functions/compare-loose.d.ts","../../../node_modules/@types/semver/functions/compare-build.d.ts","../../../node_modules/@types/semver/functions/sort.d.ts","../../../node_modules/@types/semver/functions/rsort.d.ts","../../../node_modules/@types/semver/functions/gt.d.ts","../../../node_modules/@types/semver/functions/lt.d.ts","../../../node_modules/@types/semver/functions/eq.d.ts","../../../node_modules/@types/semver/functions/neq.d.ts","../../../node_modules/@types/semver/functions/gte.d.ts","../../../node_modules/@types/semver/functions/lte.d.ts","../../../node_modules/@types/semver/functions/cmp.d.ts","../../../node_modules/@types/semver/functions/coerce.d.ts","../../../node_modules/@types/semver/classes/comparator.d.ts","../../../node_modules/@types/semver/classes/range.d.ts","../../../node_modules/@types/semver/functions/satisfies.d.ts","../../../node_modules/@types/semver/ranges/max-satisfying.d.ts","../../../node_modules/@types/semver/ranges/min-satisfying.d.ts","../../../node_modules/@types/semver/ranges/to-comparators.d.ts","../../../node_modules/@types/semver/ranges/min-version.d.ts","../../../node_modules/@types/semver/ranges/valid.d.ts","../../../node_modules/@types/semver/ranges/outside.d.ts","../../../node_modules/@types/semver/ranges/gtr.d.ts","../../../node_modules/@types/semver/ranges/ltr.d.ts","../../../node_modules/@types/semver/ranges/intersects.d.ts","../../../node_modules/@types/semver/ranges/simplify.d.ts","../../../node_modules/@types/semver/ranges/subset.d.ts","../../../node_modules/@types/semver/internals/identifiers.d.ts","../../../node_modules/@types/semver/index.d.ts","../../../node_modules/@types/uuid/index.d.ts","../../../node_modules/@types/ws/index.d.ts"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","d11a03592451da2d1065e09e61f4e2a9bf68f780f4f6623c18b57816a9679d17","aea179452def8a6152f98f63b191b84e7cbd69b0e248c91e61fb2e52328abe8c",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"f3d4da15233e593eacb3965cde7960f3fddf5878528d882bcedd5cbaba0193c7","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"34c839eaaa6d78c8674ae2c37af2236dee6831b13db7b4ef4df3ec889a04d4f2","affectsGlobalScope":true},{"version":"34478567f8a80171f88f2f30808beb7da15eac0538ae91282dd33dce928d98ed","affectsGlobalScope":true},{"version":"ab7d58e6161a550ff92e5aff755dc37fe896245348332cd5f1e1203479fe0ed1","affectsGlobalScope":true},{"version":"6bda95ea27a59a276e46043b7065b55bd4b316c25e70e29b572958fa77565d43","affectsGlobalScope":true},{"version":"aedb8de1abb2ff1095c153854a6df7deae4a5709c37297f9d6e9948b6806fa66","affectsGlobalScope":true},{"version":"a4da0551fd39b90ca7ce5f68fb55d4dc0c1396d589b612e1902f68ee090aaada","affectsGlobalScope":true},{"version":"11ffe3c281f375fff9ffdde8bbec7669b4dd671905509079f866f2354a788064","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"e6bff68405a2957bdb7c3e9e03f65163105276e3bceb55873178fc08f301db9b","9a3bb55ec69b4e556200985a77e5b9785cd67914403822fcb96697ff5f12093b","d6977f9367b300afeeb9234112c1202f666dde778cebc48dc98503b26de0476d","f11619e6a74a57d64c5cc1f46152901e5388fe8fabb2c0ba2ce7e4df0c66688d","4bad1d114adbdb7d818affb11d3dddd4b4a9dbd99a60e0a41253b2ee451ed30b","8cf55606d92129b7b51fa89592320a0ff11d2342d612725af9b8e61a17350982","e7911bf2cf561d30d784dc53524766ceb5ca0a435faae5ef9c0314d46b0018b2","213a894cb6b0512381addcbeca94c2d4a81b77075dfe22a2dd86ae5202837d73","4cd207d7fb44dfdc963fae53127099e52dcd3b9ce630a592b412050cb71c21e2","f693f38801a6b24dfb2cfb202f6caa89ff8b247cbeb3c04029f20ebebc907047","a0e5d0d7a6a2825850ef97e4017e8526eb0b2674d03f867a73e61853ba8d373e","9189a645087aebc74c766cc2d36827b17ff884887c37a08bf57f2a18136c654e","c936df9ebc6fff95655a919bb44268601808e2bde6c521becea39cc2e92e5739","7bb519da29abbd8b13354c92aac5344585c45480ab6c2e44f238b618f31872aa","b1da2f36a80eea86ca755d2cfb2718ac39ad5d247aa6362765595a085a9e8e25","2cd67282c1e68adeecad33a8332517e52d82ebeeee29e949a4bd685946975330","2dfcca1407e1f19755bd4aaa84478d230c191a00ca376a2d6bc80bc8306a803c","b6f85b47418a2ca5fe0d5cfaecf17076ca8fcadf0c5e204d097882d5ae608a03","514aa39bf70d6e67ce535793b2266ec05048bb5775d210b77a12d918b554a3fd","4aa6c47376dd17330a1df74111e6b09e0eb0749a446fc14502b7e509669653c7","d248b7a5710a57e8ff963b603bbe5822ee8b2ac38fa38d317d23744abe6407d1","41ce9056f8512050f9102ec7f5fa65c8e69d3248615348a3dbff126d8f72e0fe","1ab21f099ee2d7e4e7d313fd6e242db88922b83b59400b1d6438567b4b5e875e","97fbb0a8e80d112465d7e2f3068bb426a529f92980d3d76d3ef03f3f3b4e2d38",{"version":"12731fa28071415f8334c55d0681adbb1124dcf3b967a85f0164eaeabfca60a8","signature":"3f3afa4dcafa09ba7d59cc81a50de31aa7dc6956f73609be2e7570e098d67887"},"ae46f4d96d7c1a57551128b9a23f314fa3a5bbeb90f23ba7cdcdf5b8a86024ab",{"version":"31d9a318bed2d851200563f2fc112809218659d8df111aedeb163a29620d6ad8","signature":"321fe8de8b6102c8eec618b92e1189be19406d8e8db35e534c52583513e328ab"},"525a4f3b1d2c68b67d72c22d39aae954620cad90e254932ca2feccf2f3d87f26",{"version":"b16d6c14ba2313e1f8bc24b825f4ac120189243ba629d61c6db44a7896195f44","signature":"af4f8ca226715e5ab1857fe09931302b33f16e00a106c821a06978e252948993"},"98377ef22dd7e6cac73899b78d935a1563d1c60af7c8a3ef5f56ce5b70df72db","0b3f2e82ac083c8dc174f07b5ace6067a0feea25724fe91ad5c71984a5b94fef","47e8fa4d29208eacf524b0d38f120d167cf4397603e8dc30e43b245998660a69","e7c9cb592d56d8553157dd59768f4e550700c7eca60ea32f9c3724ce6bb4e6a1","562b0a3c1755f46316cf150cf191396f4b36331442c84ad5b311cec9f226946b","a0f4abde83c5e1389d78cb639e7548d56f4e26fc1010721477edc9029f58c227","ba44742c951a8a1f6751cc49d5bca506b42e25ad576e20c2e42a529ceb2fe0c9","b2d6a75839b58456e4bb931787e5dfefc7b087f8087b336dec4c3979acca658b","22da0e703e3a8347c264b347b52517afc30d70176057f2575fc31315456083f4","9f3ad86b2b5eb7913e5aae2f31c0f9d7810b91c837e5163577fc88293d1b3a0c","97fb71b7512887ac29ba3b5ddbff6808533a9f3da6074af1cfd127e7113367eb","4ba7f7a707734f6a0bdabb9aaea7eb1765def923d2b121d041eadc55a7c03c29","37f2d15dff86e9277783e77ce535b56a7010287f9d7463602757b3b7d8bc58cc","ff82ef721d9a02582fd71f3769d0fa2d5bc98ff1aa66507a29a2344a78cdf595","9005300aeb8eceaafc4709e088df31b7f7d3b8cb85afb733cb6ba95d8af4fb56",{"version":"d8d546e28cfec3d12a8e75e60a9ce7de1b0b3ce039ff90ea718e18002a635263","signature":"c699ff2ae5f039fd25b01c4f69dd4391e7059e3e8bf5728c120e4dea75290f64"},{"version":"247c132f04df3ebb4ba5e8a1363d2f5ef874db3a98f06416b9b6c2353d1fa209","signature":"14a7395dd64d40a7d064a517a8fd8415c5066a083f6338afe862b5800ad28e40"},{"version":"c8c7be0763c6e53bfb30314d46531cfc9e4c7a6916094f3216b3e06f39e0f43e","signature":"5a9858acd821bdfdec812b792e3bb36eb6f4084bd624bc3f01109dbf88e6207c"},{"version":"f54a17a4be7b304cb49c57d509147d5d090fedaba02fe97234ec75bf05ae4480","signature":"cbb384e69778730ad036e3ce542154daa3439def72ebb992f1ac08a0b4c1cdca"},{"version":"50d6f26ca58985c24d7ff4d97691ed39defd1dd1a92a81ba4121a8dc1b90582c","signature":"db6f16211fb0ba2e104b1d7586390918f3a79af79e60660b8b77c7362c2d781b"},{"version":"43dde4117b744d9f95f4c527a7d04241ee1ad27ca064d9d75977769fc9efe410","signature":"97b28d9c266a65eba4e0f5327143a69de29f63f09c0fe976698884bdc64a9859"},{"version":"686eab4e941a4538a6e6756aec636be39eee1a13b39cca6e93e4c383e175c6db","signature":"fde98809f4aea822830caaa64a7e24855212446113597f0880e838d377a516de"},{"version":"ee18ccfcd3a7c1a951aa40fe4cdcf9203f2d596461895822c4a51ffafb9d23b1","signature":"29b314e0ee907a22f658b3b05ee71c3bbad3d9d5ae2160929d7a00fdad2ccaf9"},{"version":"d754705d387b0ba430e6634714b9595a22538d54794cc1e91b4a310083e95de9","signature":"c7fbb9724d8a90f6cac3efb5b307fb6519eaff65303266b45d9ea303a09b07a5"},{"version":"4049b3646622346ad7cd1bc47de9272e7c88157684733a45fa5a4ced8dee4f41","signature":"3eccfd72081d628a3cc9ea4788bb343c47b489863a7963e0e4eaed3933fc5320"},"01ba761ce6d75a4142858a053f45d64d255e057049ab1cc4d9a93e76b8b5c444",{"version":"9d4224ef123a3ffa57edc4448977a37931b4e615075470958208298198d4783b","signature":"0c585c669f3b66888c2acbec334122649d035b4b6d0fe67e0edb83763468584b"},{"version":"fea02f16dd0ab135a7a0b2964bdeb9d720ded36f28b47828b152c96a97977690","signature":"b6e4db262dd01905fd29f3e56344791f2e249e27c34cd65424c14aee4856f748"},{"version":"260664caf6fdda72be0b6306037522a4c35d40af4d0fe4995caf593cb125c892","signature":"4e14c2cbe99bb9d76b072ab7e3624721b62f6c80c48cd017ebf066ad2f76a11d"},{"version":"00fb743b4227a05c601d9d807a374d6b80e2da6f7ffaa15a5b88a685999873b4","signature":"d6538649f8717249336198e1b4bd293e39a81c23c78efe44aefeb8e3389a8325"},{"version":"e32477231d7d1cb9c1ae646af7de14085d4a30af93d7810734501e1e85b79ae6","signature":"00c89ec953e8e96b1910f63df511e37a6ef13bb5c5ad7219b399c36b8c59a209"},"0b4bc32128fda7bb0752cf284730dd3a817aae04a3d7f92e3b2d54bd61362fe1","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188","5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","7180c03fd3cb6e22f911ce9ba0f8a7008b1a6ddbe88ccf16a9c8140ef9ac1686","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","54cb85a47d760da1c13c00add10d26b5118280d44d58e6908d8e89abbd9d7725","3e4825171442666d31c845aeb47fcd34b62e14041bb353ae2b874285d78482aa","c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","a967bfe3ad4e62243eb604bf956101e4c740f5921277c60debaf325c1320bf88","e9775e97ac4877aebf963a0289c81abe76d1ec9a2a7778dbe637e5151f25c5f3","471e1da5a78350bc55ef8cef24eb3aca6174143c281b8b214ca2beda51f5e04a","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","db3435f3525cd785bf21ec6769bf8da7e8a776be1a99e2e7efb5f244a2ef5fee","c3b170c45fc031db31f782e612adf7314b167e60439d304b49e704010e7bafe5","40383ebef22b943d503c6ce2cb2e060282936b952a01bea5f9f493d5fb487cc7","4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","3a84b7cb891141824bd00ef8a50b6a44596aded4075da937f180c90e362fe5f6","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","33203609eba548914dc83ddf6cadbc0bcb6e8ef89f6d648ca0908ae887f9fcc5","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","9f0a92164925aa37d4a5d9dd3e0134cff8177208dba55fd2310cd74beea40ee2","8bfdb79bf1a9d435ec48d9372dc93291161f152c0865b81fc0b2694aedb4578d","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","d32275be3546f252e3ad33976caf8c5e842c09cb87d468cb40d5f4cf092d1acc","4a0c3504813a3289f7fb1115db13967c8e004aa8e4f8a9021b95285502221bd1",{"version":"49026435d21e3d7559d723af3ae48f73ec28f9cba651b41bd2ac991012836122","affectsGlobalScope":true},"39b1a50d543770780b0409a4caacb87f3ff1d510aedfeb7dc06ed44188256f89",{"version":"49c89f8fa09d21c161e6a367448639e032f42d77cc2ec8ab54ecb8fa9a3ad59f","affectsGlobalScope":true},"a5165a41576f42964e810eb02da0be686ae61f3783779d1e5db8faf3da4ad2fb","304504c854c47a55ab4a89111a27a2daf8a3614740bd787cc1f2c51e5574239c",{"version":"95f9129a37dcace36e17b061a8484952586ecfe928c9c8ce526de1a2f4aaefa7","affectsGlobalScope":true},"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","0f9061846236850a872cb44097d071631e93c8749a8b16c191fe3c2a48faede4","e46fa644658c2d6e5c85e954ea76b92c97d63f0851d3ccdab8c2a80d5962aaa9","1c611ff373ce1958aafc40b328048ac2540ba5c7f373cf2897e0d9aeaabe90a0","fd7a7fc2bb1f38ba0cded7bd8088c99033365859e03ba974f7de072e9d989fde","6cf42fc3765241c59339047a45855c506a2f94ee5e734bbded94ddcafc66e4c5","09d6cebdced6aa1181ac1523c8f22a133f5ed80589678b64051f0602f0518374",{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true},{"version":"7c35691dc3972ff1507d8dd279d833f540973d0917bde22e191cf7a8feaac29f","affectsGlobalScope":true},"62662d7a886e5cfa870685720fd27b763743ca4d2cf29326f75d76606a64eadd","b8c670688bd228d3cc9c169690b09b687188c50ff263a94df63b207701105ad9","d8e16905907111390d5a943816306ae997dfe56476f14142166f8b13ee322eea","8068c911a1c40bc6c5ffc58c625b21d807778f6aa6d63a73e6f04f88bcac5b79","a1dbce56ad5f3a37caafb9033c9d190a199217d673f5fa099c8968d471a2fdaa","c6f77efcc19f51c8759779b6b6ee0d88046c15c15dadac8ffed729a6620daf39",{"version":"089867511b37a534ae71f3d9bc97acc0b925b7f5dbec113f98c4b49224c694eb","affectsGlobalScope":true},"269d0ea3202820c29a32c1f2a357837a4f1918426844f7e7c90af15ec40d1dc1","66432f885e30cf471573de22a5af5eca9ab46b37b122aec98beadf77e9b7df24","323506ce173f7f865f42f493885ee3dacd18db6359ea1141d57676d3781ce10c",{"version":"034e635df3c014df1d6b1110b724ca0c4d2d324b45a84974c7d6931f9cf95ea7","affectsGlobalScope":true},{"version":"87f9456115554cb0f78f098ddbd585096871c19d2d05274c1b1b4ade3151da78","affectsGlobalScope":true},"ea3ab3727cd6c222d94003ecafa30e8550c61eadcdabbf59514aee76e86211a5","d3cdd41693c5ed6bec4f1a1c399d9501372b14bd341bc46eedacf2854c5df5a7","2de7a21c92226fb8abbeed7a0a9bd8aa6d37e4c68a8c7ff7938c644267e9fcc1","6d6070c5c81ba0bfe58988c69e3ba3149fc86421fd383f253aeb071cbf29cd41","da618f0ea09d95c3b51514de43bf97dab008c85bede58aa57cf95e4984c7c957","48a35b181ecf47dbbc0a7ab4b5ba778d91eaa838ba42bf4aaaead42be77ef39a","269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","5195aeb0de306d1c5ca8033457fbcab5987657112fa6d4971cfeb7644493a369","c5dbf0003bc9f0f643e54cd00a3868d1afe85497fecb56be6f2373dc85102924",{"version":"b446ae935d08a57c3ba4188e82d9fb2c251528ed805ec1f41c20e691c3db6325","affectsGlobalScope":true},{"version":"300f8e9de0b0c3482be3e749462b6ebc3dab8a316801f1da0def94aed0cd2018","affectsGlobalScope":true},"4e228e78c1e9b0a75c70588d59288f63a6258e8b1fe4a67b0c53fe03461421d9","962f105729d5b888c8b70e193f6020ee92c6c8144c827de40f80d65dd188ad7f","ac74e2b754fba690036f8221d978f6debb867462b87af254f24e924b677395d0","80858f6de9af22e53aff221fe3590215ea544c2aeb2cc60cf8e08a9c785c8fef",{"version":"068b8ee5c2cd90d7a50f2efadbbe353cb10196a41189a48bf4b2a867363012b4","affectsGlobalScope":true},{"version":"340659b96782f5813aad6c1f89ea1b83b2f3fa993115c7b30366375d9bae5a4e","affectsGlobalScope":true},"6f44a190351ab5e1811abebe007cf60518044772ccc08244f9f241706afa767f","fecdf44bec4ee9c5188e5f2f58c292c9689c02520900dceaaa6e76594de6da90","cf45d0510b661f1da461479851ff902f188edb111777c37055eff12fa986a23a",{"version":"6a4a80787c57c10b3ea8314c80d9cc6e1deb99d20adca16106a337825f582420","affectsGlobalScope":true},"f2b9440f98d6f94c8105883a2b65aee2fce0248f71f41beafd0a80636f3a565d",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"b510d0a18e3db42ac9765d26711083ec1e8b4e21caaca6dc4d25ae6e8623f447","104c67f0da1bdf0d94865419247e20eded83ce7f9911a1aa75fc675c077ca66e","f3d8c757e148ad968f0d98697987db363070abada5f503da3c06aefd9d4248c1","96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538","22293bd6fa12747929f8dfca3ec1684a3fe08638aa18023dd286ab337e88a592","cf3d384d082b933d987c4e2fe7bfb8710adfd9dc8155190056ed6695a25a559e","9871b7ee672bc16c78833bdab3052615834b08375cb144e4d2cba74473f4a589","c863198dae89420f3c552b5a03da6ed6d0acfa3807a64772b895db624b0de707","8b03a5e327d7db67112ebbc93b4f744133eda2c1743dbb0a990c61a8007823ef","86c73f2ee1752bac8eeeece234fd05dfcf0637a4fbd8032e4f5f43102faa8eec","42fad1f540271e35ca37cecda12c4ce2eef27f0f5cf0f8dd761d723c744d3159","ff3743a5de32bee10906aff63d1de726f6a7fd6ee2da4b8229054dfa69de2c34","83acd370f7f84f203e71ebba33ba61b7f1291ca027d7f9a662c6307d74e4ac22","1445cec898f90bdd18b2949b9590b3c012f5b7e1804e6e329fb0fe053946d5ec","0e5318ec2275d8da858b541920d9306650ae6ac8012f0e872fe66eb50321a669","cf530297c3fb3a92ec9591dd4fa229d58b5981e45fe6702a0bd2bea53a5e59be","c1f6f7d08d42148ddfe164d36d7aba91f467dbcb3caa715966ff95f55048b3a4","f4e9bf9103191ef3b3612d3ec0044ca4044ca5be27711fe648ada06fad4bcc85","0c1ee27b8f6a00097c2d6d91a21ee4d096ab52c1e28350f6362542b55380059a","7677d5b0db9e020d3017720f853ba18f415219fb3a9597343b1b1012cfd699f7","bc1c6bc119c1784b1a2be6d9c47addec0d83ef0d52c8fbe1f14a51b4dfffc675","52cf2ce99c2a23de70225e252e9822a22b4e0adb82643ab0b710858810e00bf1","770625067bb27a20b9826255a8d47b6b5b0a2d3dfcbd21f89904c731f671ba77","d1ed6765f4d7906a05968fb5cd6d1db8afa14dbe512a4884e8ea5c0f5e142c80","799c0f1b07c092626cf1efd71d459997635911bb5f7fc1196efe449bba87e965","2a184e4462b9914a30b1b5c41cf80c6d3428f17b20d3afb711fff3f0644001fd","9eabde32a3aa5d80de34af2c2206cdc3ee094c6504a8d0c2d6d20c7c179503cc","397c8051b6cfcb48aa22656f0faca2553c5f56187262135162ee79d2b2f6c966","a8ead142e0c87dcd5dc130eba1f8eeed506b08952d905c47621dc2f583b1bff9","a02f10ea5f73130efca046429254a4e3c06b5475baecc8f7b99a0014731be8b3","c2576a4083232b0e2d9bd06875dd43d371dee2e090325a9eac0133fd5650c1cb","4c9a0564bb317349de6a24eb4efea8bb79898fa72ad63a1809165f5bd42970dd","f40ac11d8859092d20f953aae14ba967282c3bb056431a37fced1866ec7a2681","cc11e9e79d4746cc59e0e17473a59d6f104692fd0eeea1bdb2e206eabed83b03","b444a410d34fb5e98aa5ee2b381362044f4884652e8bc8a11c8fe14bbd85518e","c35808c1f5e16d2c571aa65067e3cb95afeff843b259ecfa2fc107a9519b5392","14d5dc055143e941c8743c6a21fa459f961cbc3deedf1bfe47b11587ca4b3ef5","a3ad4e1fc542751005267d50a6298e6765928c0c3a8dce1572f2ba6ca518661c","f237e7c97a3a89f4591afd49ecb3bd8d14f51a1c4adc8fcae3430febedff5eb6","3ffdfbec93b7aed71082af62b8c3e0cc71261cc68d796665faa1e91604fbae8f","662201f943ed45b1ad600d03a90dffe20841e725203ced8b708c91fcd7f9379a","c9ef74c64ed051ea5b958621e7fb853fe3b56e8787c1587aefc6ea988b3c7e79","2462ccfac5f3375794b861abaa81da380f1bbd9401de59ffa43119a0b644253d","34baf65cfee92f110d6653322e2120c2d368ee64b3c7981dff08ed105c4f19b0","7d8ddf0f021c53099e34ee831a06c394d50371816caa98684812f089b4c6b3d4","7d2b7fe4adb76d8253f20e4dbdce044f1cdfab4902ec33c3604585f553883f7d","bc81aff061c53a7140270555f4b22da4ecfe8601e8027cf5aa175fbdc7927c31"],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":99,"noImplicitReturns":true,"noUnusedLocals":false,"noUnusedParameters":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":6,"tsBuildInfoFile":"./tsconfig.build.tsbuildinfo"},"fileIdsList":[[169,203],[117],[153],[154,159,187],[155,166,167,174,184,195],[155,156,166,174],[157,196],[158,159,167,175],[159,184,192],[160,162,166,174],[153,161],[162,163],[166],[164,166],[153,166],[166,167,168,184,195],[166,167,168,181,184,187],[151,200],[162,166,169,174,184,195],[166,167,169,170,174,184,192,195],[169,171,184,192,195],[117,118,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202],[166,172],[173,195,200],[162,166,174,184],[175],[176],[153,177],[178,194,200],[179],[180],[166,181,182],[181,183,196,198],[154,166,184,185,186,187],[154,184,186],[184,185],[187],[188],[153,184],[166,190,191],[190,191],[159,174,184,192],[193],[174,194],[154,169,180,195],[159,196],[184,197],[173,198],[199],[154,159,166,168,177,184,195,198,200],[184,201],[208,247],[208,232,247],[247],[208],[208,233,247],[208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246],[233,247],[166,169,171,174,184,192,195,201,203],[128,132,195],[128,184,195],[123],[125,128,192,195],[174,192],[203],[123,203],[125,128,174,195],[120,121,124,127,154,166,184,195],[120,126],[124,128,154,187,195,203],[154,203],[144,154,203],[122,123,203],[128],[122,123,124,125,126,127,128,129,130,132,133,134,135,136,137,138,139,140,141,142,143,145,146,147,148,149,150],[128,135,136],[126,128,136,137],[127],[120,123,128],[128,132,136,137],[132],[126,128,131,195],[120,125,126,128,132,135],[154,184],[123,128,144,154,200,203],[113,115],[57,111,113],[114],[80],[82],[61,78,84],[100],[99],[87],[86],[103,104,105,106,107,108,109],[89],[72],[92],[88],[73],[111],[81,83,85,101,102,110,112],[79],[79,82,99],[79,84,98],[96],[86,87,88,89,90,91,92,93,94,95,97],[76],[74],[75],[58],[58,59,60,61,62,67,77,78],[58,60],[64,66],[63,64,66],[63,65],[60,67],[58,60,68],[60,68],[68,69,70,71,72,73,74,75,76],[61],[113]],"referencedMap":[[204,1],[117,2],[118,2],[153,3],[154,4],[155,5],[156,6],[157,7],[158,8],[159,9],[160,10],[161,11],[162,12],[163,12],[165,13],[164,14],[166,15],[167,16],[168,17],[152,18],[169,19],[170,20],[171,21],[203,22],[172,23],[173,24],[174,25],[175,26],[176,27],[177,28],[178,29],[179,30],[180,31],[181,32],[182,32],[183,33],[184,34],[186,35],[185,36],[187,37],[188,38],[189,39],[190,40],[191,41],[192,42],[193,43],[194,44],[195,45],[196,46],[197,47],[198,48],[199,49],[200,50],[201,51],[232,52],[233,53],[208,54],[211,54],[230,52],[231,52],[221,52],[220,55],[218,52],[213,52],[226,52],[224,52],[228,52],[212,52],[225,52],[229,52],[214,52],[215,52],[227,52],[209,52],[216,52],[217,52],[219,52],[223,52],[234,56],[222,52],[210,52],[247,57],[241,56],[243,58],[242,56],[235,56],[236,56],[238,56],[240,56],[244,58],[245,58],[237,58],[239,58],[249,59],[135,60],[142,61],[134,60],[149,62],[126,63],[125,64],[148,65],[143,66],[146,67],[128,68],[127,69],[123,70],[122,71],[145,72],[124,73],[129,74],[133,74],[151,75],[150,74],[137,76],[138,77],[140,78],[136,79],[139,80],[144,65],[131,81],[132,82],[141,83],[121,84],[147,85],[116,86],[114,87],[115,88],[81,89],[83,90],[85,91],[101,92],[102,93],[104,94],[103,95],[110,96],[106,97],[107,98],[109,99],[105,100],[108,101],[112,102],[113,103],[80,104],[82,104],[84,104],[100,105],[99,106],[87,104],[86,104],[97,107],[98,108],[89,104],[91,104],[95,109],[93,104],[92,110],[88,104],[90,104],[94,111],[59,112],[79,113],[61,114],[65,115],[67,116],[66,117],[64,117],[68,118],[69,119],[96,120],[77,121],[70,120],[76,104],[74,120],[71,119],[73,120],[75,104],[78,122]],"exportedModulesMap":[[204,1],[117,2],[118,2],[153,3],[154,4],[155,5],[156,6],[157,7],[158,8],[159,9],[160,10],[161,11],[162,12],[163,12],[165,13],[164,14],[166,15],[167,16],[168,17],[152,18],[169,19],[170,20],[171,21],[203,22],[172,23],[173,24],[174,25],[175,26],[176,27],[177,28],[178,29],[179,30],[180,31],[181,32],[182,32],[183,33],[184,34],[186,35],[185,36],[187,37],[188,38],[189,39],[190,40],[191,41],[192,42],[193,43],[194,44],[195,45],[196,46],[197,47],[198,48],[199,49],[200,50],[201,51],[232,52],[233,53],[208,54],[211,54],[230,52],[231,52],[221,52],[220,55],[218,52],[213,52],[226,52],[224,52],[228,52],[212,52],[225,52],[229,52],[214,52],[215,52],[227,52],[209,52],[216,52],[217,52],[219,52],[223,52],[234,56],[222,52],[210,52],[247,57],[241,56],[243,58],[242,56],[235,56],[236,56],[238,56],[240,56],[244,58],[245,58],[237,58],[239,58],[249,59],[135,60],[142,61],[134,60],[149,62],[126,63],[125,64],[148,65],[143,66],[146,67],[128,68],[127,69],[123,70],[122,71],[145,72],[124,73],[129,74],[133,74],[151,75],[150,74],[137,76],[138,77],[140,78],[136,79],[139,80],[144,65],[131,81],[132,82],[141,83],[121,84],[147,85],[116,86],[114,123],[115,88],[81,89],[83,90],[85,91],[101,92],[102,93],[104,94],[103,95],[110,96],[106,97],[107,98],[109,99],[105,100],[108,101],[112,102],[113,103],[80,104],[82,104],[84,104],[100,105],[99,106],[87,104],[86,104],[97,107],[98,108],[89,104],[91,104],[95,109],[93,104],[92,110],[88,104],[90,104],[94,111],[59,112],[79,113],[61,114],[65,115],[67,116],[66,117],[64,117],[68,118],[69,119],[96,120],[77,121],[70,120],[76,104],[74,120],[71,119],[73,120],[75,104],[78,122]],"semanticDiagnosticsPerFile":[204,205,206,117,118,153,154,155,156,157,158,159,160,161,162,163,165,164,166,167,168,152,202,169,170,171,203,172,173,174,175,176,177,178,179,180,181,182,183,184,186,185,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,207,232,233,208,211,230,231,221,220,218,213,226,224,228,212,225,229,214,215,227,209,216,217,219,223,234,222,210,247,246,241,243,242,235,236,238,240,244,245,237,239,248,249,111,119,11,12,14,13,2,15,16,17,18,19,20,21,22,3,4,26,23,24,25,27,28,29,5,30,31,32,33,6,37,34,35,36,38,7,39,44,45,40,41,42,43,8,49,46,47,48,50,9,51,52,53,54,55,1,10,56,135,142,134,149,126,125,148,143,146,128,127,123,122,145,124,129,130,133,120,151,150,137,138,140,136,139,144,131,132,141,121,147,57,116,114,115,81,83,85,101,102,104,103,110,106,107,109,105,108,112,113,80,82,84,100,99,87,86,97,98,89,91,95,93,92,88,90,94,59,58,79,61,65,63,67,66,64,62,60,68,69,96,77,70,72,76,74,71,73,75,78],"latestChangedDtsFile":"./index.d.ts"},"version":"4.9.5"}
@@ -1,3 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json"
3
- }
package/tsconfig.json DELETED
@@ -1,13 +0,0 @@
1
- {
2
- "extends": "../../tsconfig",
3
- "compilerOptions": {
4
- "composite": true,
5
- "declaration": true,
6
- "noEmit": false,
7
- "outDir": "dist",
8
- "rootDir": "./src",
9
- "tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo"
10
- },
11
- "include": ["src"],
12
- "exclude": ["node_modules", "**/__tests__/*"]
13
- }