ssfdfsgdfsgfdgfsdgdsgfdfgs-sdk-basic 0.1.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/LICENSE +674 -0
  2. package/README.md +24 -0
  3. package/lib/index.d.ts +3 -0
  4. package/lib/index.d.ts.map +1 -0
  5. package/lib/index.js +8 -0
  6. package/lib/services/client.d.ts +27 -0
  7. package/lib/services/client.d.ts.map +1 -0
  8. package/lib/services/index.d.ts +2 -0
  9. package/lib/services/index.d.ts.map +1 -0
  10. package/lib/ssfdfsgdfsgfdgfsdgdsgfdfgs-sdk-basic.cjs.development.js +884 -0
  11. package/lib/ssfdfsgdfsgfdgfsdgdsgfdfgs-sdk-basic.cjs.development.js.map +1 -0
  12. package/lib/ssfdfsgdfsgfdgfsdgdsgfdfgs-sdk-basic.cjs.production.min.js +2 -0
  13. package/lib/ssfdfsgdfsgfdgfsdgdsgfdfgs-sdk-basic.cjs.production.min.js.map +1 -0
  14. package/lib/ssfdfsgdfsgfdgfsdgdsgfdfgs-sdk-basic.esm.js +866 -0
  15. package/lib/ssfdfsgdfsgfdgfsdgdsgfdfgs-sdk-basic.esm.js.map +1 -0
  16. package/lib/types/api/balance.d.ts +2 -0
  17. package/lib/types/api/balance.d.ts.map +1 -0
  18. package/lib/types/api/common.d.ts +4 -0
  19. package/lib/types/api/common.d.ts.map +1 -0
  20. package/lib/types/api/meta.d.ts +4 -0
  21. package/lib/types/api/meta.d.ts.map +1 -0
  22. package/lib/types/api/routing.d.ts +2 -0
  23. package/lib/types/api/routing.d.ts.map +1 -0
  24. package/lib/types/api/transactions.d.ts +2 -0
  25. package/lib/types/api/transactions.d.ts.map +1 -0
  26. package/lib/types/api/txs/cosmos.d.ts +2 -0
  27. package/lib/types/api/txs/cosmos.d.ts.map +1 -0
  28. package/lib/types/api/txs/evm.d.ts +2 -0
  29. package/lib/types/api/txs/evm.d.ts.map +1 -0
  30. package/lib/types/api/txs/index.d.ts +5 -0
  31. package/lib/types/api/txs/index.d.ts.map +1 -0
  32. package/lib/types/api/txs/solana.d.ts +2 -0
  33. package/lib/types/api/txs/solana.d.ts.map +1 -0
  34. package/lib/types/api/txs/transfer.d.ts +2 -0
  35. package/lib/types/api/txs/transfer.d.ts.map +1 -0
  36. package/lib/types/configs.d.ts +5 -0
  37. package/lib/types/configs.d.ts.map +1 -0
  38. package/lib/types/index.d.ts +8 -0
  39. package/lib/types/index.d.ts.map +1 -0
  40. package/package.json +46 -0
  41. package/src/index.ts +2 -0
  42. package/src/services/client.ts +289 -0
  43. package/src/services/index.ts +1 -0
  44. package/src/types/api/balance.ts +1 -0
  45. package/src/types/api/common.ts +8 -0
  46. package/src/types/api/meta.ts +3 -0
  47. package/src/types/api/routing.ts +1 -0
  48. package/src/types/api/transactions.ts +1 -0
  49. package/src/types/api/txs/cosmos.ts +1 -0
  50. package/src/types/api/txs/evm.ts +1 -0
  51. package/src/types/api/txs/index.ts +4 -0
  52. package/src/types/api/txs/solana.ts +1 -0
  53. package/src/types/api/txs/transfer.ts +1 -0
  54. package/src/types/configs.ts +5 -0
  55. package/src/types/index.ts +7 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ssfdfsgdfsgfdgfsdgdsgfdfgs-sdk-basic.esm.js","sources":["../src/types/api/common.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/ton.ts","../src/services/client.ts"],"sourcesContent":["import { RequestedAsset } from 'ssfdfsgdfsgfdgfsdgdsgfdfgs-types/lib/api/basic'\nexport * from 'ssfdfsgdfsgfdgfsdgdsgfdfgs-types/lib/api/basic/common'\n\nexport function assetToString(asset: RequestedAsset): string {\n return `${asset.blockchain}${asset.symbol ? '.' + asset.symbol : ''}${\n asset.address ? '--' + asset.address : ''\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 { 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 uuid from 'uuid-random'\n\nimport {\n MetaRequest,\n MetaResponse,\n QuoteRequest,\n QuoteResponse,\n CheckApprovalResponse,\n StatusRequest,\n StatusResponse,\n SwapRequest,\n SwapResponse,\n ReportTransactionRequest,\n WalletDetailsResponse,\n assetToString,\n BlockchainMeta,\n RequestOptions,\n MessagingProtocolsResponse,\n SwapperMetaExtended,\n ConnectedAssetsResponse,\n ConnectedAssetsRequest,\n CustomTokenRequest,\n CustomTokenResponse,\n TokenBalanceRequest,\n TokenBalanceResponse,\n} from '../types'\nimport axios, { AxiosInstance } from 'axios'\n\ntype WalletAddress = { 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, debug = false, 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 if (debug) {\n this.httpService.interceptors.request.use((request) => {\n console.log('Starting Request', JSON.stringify(request, null, 2))\n return request\n })\n this.httpService.interceptors.response.use((response) => {\n console.log('Response:', JSON.stringify(response, null, 2))\n return response\n })\n }\n }\n\n public async meta(\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<MetaResponse>(\n `/basic/meta?apiKey=${this.apiKey}`,\n {\n params,\n ...options,\n }\n )\n return axiosResponse.data\n }\n\n public async chains(options?: RequestOptions): Promise<BlockchainMeta[]> {\n const axiosResponse = await this.httpService.get<BlockchainMeta[]>(\n `/basic/meta/blockchains?apiKey=${this.apiKey}`,\n { ...options }\n )\n return axiosResponse.data\n }\n\n public async swappers(options?: RequestOptions): Promise<SwapperMetaExtended[]> {\n const axiosResponse = await this.httpService.get<SwapperMetaExtended[]>(\n `/basic/meta/swappers?apiKey=${this.apiKey}`,\n { ...options }\n )\n return axiosResponse.data\n }\n\n public async messagingProtocols(\n options?: RequestOptions\n ): Promise<MessagingProtocolsResponse> {\n const axiosResponse =\n await this.httpService.get<MessagingProtocolsResponse>(\n `/basic/meta/messaging-protocols?apiKey=${this.apiKey}`,\n { ...options }\n )\n return axiosResponse.data\n }\n\n\n public async token(\n customTokenRequest?: CustomTokenRequest,\n options?: RequestOptions\n ): Promise<CustomTokenResponse> {\n const axiosResponse = await this.httpService.get<CustomTokenResponse>(\n `/basic/meta/custom-token?apiKey=${this.apiKey}`,\n { params: customTokenRequest, ...options }\n )\n return axiosResponse.data\n }\n\n public async quote(\n quoteRequest: QuoteRequest,\n options?: RequestOptions\n ): Promise<QuoteResponse> {\n const body = {\n ...quoteRequest,\n from: assetToString(quoteRequest.from),\n to: assetToString(quoteRequest.to),\n swappers:\n !!quoteRequest.swappers && quoteRequest.swappers.length > 0\n ? quoteRequest.swappers.join(',')\n : undefined,\n swapperGroups:\n !!quoteRequest.swapperGroups && quoteRequest.swapperGroups.length > 0\n ? quoteRequest.swapperGroups.join(',')\n : undefined,\n messagingProtocols:\n !!quoteRequest.messagingProtocols &&\n quoteRequest.messagingProtocols.length > 0\n ? quoteRequest.messagingProtocols.join(',')\n : undefined,\n }\n const axiosResponse = await this.httpService.get<QuoteResponse>(\n `/basic/quote?apiKey=${this.apiKey}`,\n {\n params: body,\n headers: { 'X-Rango-Id': this.deviceId },\n ...options,\n }\n )\n return axiosResponse.data\n }\n\n public async isApproved(\n requestId: string,\n txId?: string,\n options?: RequestOptions\n ): Promise<CheckApprovalResponse> {\n const axiosResponse = await this.httpService.get<CheckApprovalResponse>(\n `/basic/is-approved?apiKey=${this.apiKey}`,\n {\n params: { requestId, txId },\n headers: { 'X-Rango-Id': this.deviceId },\n ...options,\n }\n )\n return axiosResponse.data\n }\n\n public async status(\n statusRequest: StatusRequest,\n options?: RequestOptions\n ): Promise<StatusResponse> {\n const axiosResponse = await this.httpService.get<StatusResponse>(\n `/basic/status?apiKey=${this.apiKey}`,\n {\n params: statusRequest,\n headers: { 'X-Rango-Id': this.deviceId },\n ...options,\n }\n )\n return axiosResponse.data\n }\n\n public async swap(\n swapRequest: SwapRequest,\n options?: RequestOptions\n ): Promise<SwapResponse> {\n const body = {\n ...swapRequest,\n from: assetToString(swapRequest.from),\n to: assetToString(swapRequest.to),\n referrerAddress: swapRequest.referrerAddress || null,\n referrerFee: swapRequest.referrerFee || null,\n disableEstimate: swapRequest.disableEstimate || false,\n swappers:\n !!swapRequest.swappers && swapRequest.swappers.length > 0\n ? swapRequest.swappers.join(',')\n : undefined,\n swapperGroups:\n !!swapRequest.swapperGroups && swapRequest.swapperGroups.length > 0\n ? swapRequest.swapperGroups.join(',')\n : undefined,\n messagingProtocols:\n !!swapRequest.messagingProtocols &&\n swapRequest.messagingProtocols.length > 0\n ? swapRequest.messagingProtocols.join(',')\n : undefined,\n }\n const axiosResponse = await this.httpService.get<SwapResponse>(\n `/basic/swap?apiKey=${this.apiKey}`,\n {\n params: body,\n headers: { 'X-Rango-Id': this.deviceId },\n ...options,\n }\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 `/basic/report-tx?apiKey=${this.apiKey}`,\n requestBody,\n {\n headers: { 'X-Rango-Id': this.deviceId },\n ...options,\n }\n )\n }\n\n public async balance(\n walletAddress: WalletAddress,\n options?: RequestOptions\n ): Promise<WalletDetailsResponse> {\n const axiosResponse = await this.httpService.get<WalletDetailsResponse>(\n `/basic/balance?apiKey=${this.apiKey}`,\n {\n params: walletAddress,\n headers: { 'X-Rango-Id': this.deviceId },\n ...options,\n }\n )\n return axiosResponse.data\n }\n\n public async tokenBalance(\n tokenBalanceRequest: TokenBalanceRequest,\n options?: RequestOptions\n ): Promise<TokenBalanceResponse> {\n const axiosResponse = await this.httpService.get<TokenBalanceResponse>(\n `/basic/token-balance?apiKey=${this.apiKey}`,\n { params: tokenBalanceRequest, ...options }\n )\n return axiosResponse.data\n }\n\n public async connectedAssets(\n connectedAssetsRequest: ConnectedAssetsRequest,\n options?: RequestOptions\n ): Promise<ConnectedAssetsResponse> {\n const body = {\n from: assetToString(connectedAssetsRequest.from),\n }\n\n const axiosResponse = await this.httpService.get<ConnectedAssetsResponse>(\n `/basic/connected-assets?apiKey=${this.apiKey}`,\n {\n params: body,\n headers: { 'X-Rango-Id': this.deviceId },\n ...options,\n }\n )\n return axiosResponse.data\n }\n}\n"],"names":["assetToString","asset","blockchain","symbol","address","blockchainMeta","isTronBlockchain","RangoClient","apiKey","debug","apiUrl","window","deviceId","localStorage","getItem","generatedId","uuid","setItem","e","httpService","axios","create","baseURL","interceptors","request","use","console","log","JSON","stringify","response","_proto","prototype","meta","_meta","_asyncToGenerator","_regeneratorRuntime","mark","_callee","metaRequest","options","_metaRequest$blockcha","_metaRequest$swappers","_metaRequest$swappers2","_metaRequest$transact","params","axiosResponse","wrap","_callee$","_context","prev","next","_extends","blockchains","join","swappers","swappersGroups","transactionTypes","get","sent","abrupt","data","stop","_x","_x2","apply","arguments","chains","_chains","_callee2","_callee2$","_context2","_x3","_swappers","_callee3","_callee3$","_context3","_x4","messagingProtocols","_messagingProtocols","_callee4","_callee4$","_context4","_x5","token","_token","_callee5","customTokenRequest","_callee5$","_context5","_x6","_x7","quote","_quote","_callee6","quoteRequest","body","_callee6$","_context6","from","to","length","undefined","swapperGroups","headers","_x8","_x9","isApproved","_isApproved","_callee7","requestId","txId","_callee7$","_context7","_x10","_x11","_x12","status","_status","_callee8","statusRequest","_callee8$","_context8","_x13","_x14","swap","_swap","_callee9","swapRequest","_callee9$","_context9","referrerAddress","referrerFee","disableEstimate","_x15","_x16","reportFailure","_reportFailure","_callee10","requestBody","_callee10$","_context10","post","_x17","_x18","balance","_balance","_callee11","walletAddress","_callee11$","_context11","_x19","_x20","tokenBalance","_tokenBalance","_callee12","tokenBalanceRequest","_callee12$","_context12","_x21","_x22","connectedAssets","_connectedAssets","_callee13","connectedAssetsRequest","_callee13$","_context13","_x23","_x24"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAGgBA,aAAaA,CAACC,KAAqB;EACjD,YAAUA,KAAK,CAACC,UAAU,IAAGD,KAAK,CAACE,MAAM,GAAG,GAAG,GAAGF,KAAK,CAACE,MAAM,GAAG,EAAE,KACjEF,KAAK,CAACG,OAAO,GAAG,IAAI,GAAGH,KAAK,CAACG,OAAO,GAAG,EACzC;AACF;;+CC2CuCC;;;AAGrC;;;AAKF;;;oBAIoB,4BAAAC,CAAkBD;;;AAGpC;EAGwC,OAAAA;AAAA;yDAGLA;;;AAKrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC5EA;;;;AAIA;AAAA;gCAAY;;;;;;;ACJZ;;;AAGA;AAAA;;;;;;;;;;;;;AAcA;;;;AAIA;AAAA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AAAC,SAAA;;IAAA,OAAAuF,YAAA;;EAAA1H,MAAA,CAEYkI,eAAe;IAAA,IAAAC,gBAAA,gBAAA/H,iBAAA,eAAAC,mBAAA,GAAAC,IAAA,CAArB,SAAA8H,UACLC,sBAA8C,EAC9C5H,OAAwB;MAAA,IAAAwD,IAAA,EAAAlD,aAAA;MAAA,OAAAV,mBAAA,GAAAW,IAAA,UAAAsH,WAAAC,UAAA;QAAA,kBAAAA,UAAA,CAAApH,IAAA,GAAAoH,UAAA,CAAAnH,IAAA;UAAA;YAElB6C,IAAI,GAAG;cACXG,IAAI,EAAEnG,aAAa,CAACoK,sBAAsB,CAACjE,IAAI;aAChD;YAAAmE,UAAA,CAAAnH,IAAA;YAAA,OAE2B,IAAI,CAAChC,WAAW,CAACuC,GAAG,qCACZ,IAAI,CAAClD,MAAM,EAAA4C,QAAA;cAE3CP,MAAM,EAAEmD,IAAI;cACZQ,OAAO,EAAE;gBAAE,YAAY,EAAE,IAAI,CAAC5F;;eAC3B4B,OAAO,CACX,CACF;UAAA;YAPKM,aAAa,GAAAwH,UAAA,CAAA3G,IAAA;YAAA,OAAA2G,UAAA,CAAA1G,MAAA,WAQZd,aAAa,CAACe,IAAI;UAAA;UAAA;YAAA,OAAAyG,UAAA,CAAAxG,IAAA;;SAAAqG,SAAA;KAC1B;IAAA,SAAAF,gBAAAM,IAAA,EAAAC,IAAA;MAAA,OAAAN,gBAAA,CAAAjG,KAAA,OAAAC,SAAA;;IAAA,OAAA+F,eAAA;;EAAA,OAAA1J,WAAA;AAAA;;;;"}
@@ -0,0 +1,2 @@
1
+ export * from 'ssfdfsgdfsgfdgfsdgdsgfdfgs-types/lib/api/basic/balance';
2
+ //# sourceMappingURL=balance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"balance.d.ts","sourceRoot":"","sources":["../../src/types/api/balance.ts"],"names":[],"mappings":"AAAA,cAAc,wDAAwD,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { RequestedAsset } from 'ssfdfsgdfsgfdgfsdgdsgfdfgs-types/lib/api/basic';
2
+ export * from 'ssfdfsgdfsgfdgfsdgdsgfdfgs-types/lib/api/basic/common';
3
+ export declare function assetToString(asset: RequestedAsset): string;
4
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/types/api/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gDAAgD,CAAA;AAC/E,cAAc,uDAAuD,CAAA;AAErE,wBAAgB,aAAa,CAAC,KAAK,EAAE,cAAc,GAAG,MAAM,CAI3D"}
@@ -0,0 +1,4 @@
1
+ export * from 'ssfdfsgdfsgfdgfsdgdsgfdfgs-types/lib/api/basic/meta';
2
+ export * from 'ssfdfsgdfsgfdgfsdgdsgfdfgs-types/lib/api/shared/type-gaurds';
3
+ export type { MetaRequest } from 'ssfdfsgdfsgfdgfsdgdsgfdfgs-types/lib/api/shared/meta';
4
+ //# sourceMappingURL=meta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../src/types/api/meta.ts"],"names":[],"mappings":"AAAA,cAAc,qDAAqD,CAAA;AACnE,cAAc,6DAA6D,CAAA;AAC3E,YAAY,EAAE,WAAW,EAAE,MAAM,sDAAsD,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from 'ssfdfsgdfsgfdgfsdgdsgfdfgs-types/lib/api/basic/routing';
2
+ //# sourceMappingURL=routing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routing.d.ts","sourceRoot":"","sources":["../../src/types/api/routing.ts"],"names":[],"mappings":"AAAA,cAAc,wDAAwD,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from 'ssfdfsgdfsgfdgfsdgdsgfdfgs-types/lib/api/basic/transactions';
2
+ //# sourceMappingURL=transactions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transactions.d.ts","sourceRoot":"","sources":["../../src/types/api/transactions.ts"],"names":[],"mappings":"AAAA,cAAc,6DAA6D,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from 'ssfdfsgdfsgfdgfsdgdsgfdfgs-types/lib/api/basic/txs/cosmos';
2
+ //# sourceMappingURL=cosmos.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cosmos.d.ts","sourceRoot":"","sources":["../../../src/types/api/txs/cosmos.ts"],"names":[],"mappings":"AAAA,cAAc,2DAA2D,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from 'ssfdfsgdfsgfdgfsdgdsgfdfgs-types/lib/api/basic/txs/evm';
2
+ //# sourceMappingURL=evm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evm.d.ts","sourceRoot":"","sources":["../../../src/types/api/txs/evm.ts"],"names":[],"mappings":"AAAA,cAAc,wDAAwD,CAAA"}
@@ -0,0 +1,5 @@
1
+ export * from './evm';
2
+ export * from './cosmos';
3
+ export * from './transfer';
4
+ export * from './solana';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/api/txs/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA;AACrB,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from 'ssfdfsgdfsgfdgfsdgdsgfdfgs-types/lib/api/basic/txs/solana';
2
+ //# sourceMappingURL=solana.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"solana.d.ts","sourceRoot":"","sources":["../../../src/types/api/txs/solana.ts"],"names":[],"mappings":"AAAA,cAAc,2DAA2D,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from 'ssfdfsgdfsgfdgfsdgdsgfdfgs-types/lib/api/basic/txs/transfer';
2
+ //# sourceMappingURL=transfer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transfer.d.ts","sourceRoot":"","sources":["../../../src/types/api/txs/transfer.ts"],"names":[],"mappings":"AAAA,cAAc,6DAA6D,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { GenericAbortSignal } from 'axios';
2
+ export interface RequestOptions {
3
+ signal?: GenericAbortSignal;
4
+ }
5
+ //# sourceMappingURL=configs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configs.d.ts","sourceRoot":"","sources":["../src/types/configs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAA;AAE1C,MAAM,WAAW,cAAc;IAC7B,MAAM,CAAC,EAAE,kBAAkB,CAAA;CAC5B"}
@@ -0,0 +1,8 @@
1
+ export * from './api/balance';
2
+ export * from './api/common';
3
+ export * from './api/meta';
4
+ export * from './api/routing';
5
+ export * from './api/transactions';
6
+ export * from './api/txs';
7
+ export * from './configs';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA;AAClC,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA"}
package/package.json ADDED
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "ssfdfsgdfsgfdgfsdgdsgfdfgs-sdk-basic",
3
+ "version": "0.1.78",
4
+ "description": "Rango Exchange Basic SDK for dApps",
5
+ "module": "lib/ssfdfsgdfsgfdgfsdgdsgfdfgs-sdk-basic.esm.js",
6
+ "main": "lib/index.js",
7
+ "types": "lib/index.d.ts",
8
+ "scripts": {
9
+ "clean": "rm -rf ./lib && rm -rf ./dist",
10
+ "build": "tsdx build --tsconfig ./tsconfig.json && yarn post:build",
11
+ "post:build": "yarn mv:file lib",
12
+ "watch": "tsdx watch",
13
+ "lint": "eslint src -c ../../.eslintrc.json --fix --ignore-path ../../.prettierignore",
14
+ "format": "prettier --write './**/*.{js,jsx,ts,tsx,css,md,json}' --config ../../.prettierrc.json --ignore-path ../../.prettierignore",
15
+ "mv:file": "sh ../../scripts/post-build.sh"
16
+ },
17
+ "keywords": [
18
+ "Rango Exchange",
19
+ "SDK",
20
+ "Cross-Chain",
21
+ "Multi-Chain",
22
+ "Ethereum",
23
+ "Cosmos",
24
+ "Solana",
25
+ "Tron",
26
+ "Starknet",
27
+ "Ton",
28
+ "Aggregator"
29
+ ],
30
+ "files": [
31
+ "lib/**/*",
32
+ "src"
33
+ ],
34
+ "license": "GPL-3.0",
35
+ "dependencies": {
36
+ "axios": "^1.7.4",
37
+ "ssfdfsgdfsgfdgfsdgdsgfdfgs-types": "^0.1.98",
38
+ "uuid-random": "^1.3.2"
39
+ },
40
+ "publishConfig": {
41
+ "access": "public",
42
+ "branches": [
43
+ "master"
44
+ ]
45
+ }
46
+ }
package/src/index.ts ADDED
@@ -0,0 +1,2 @@
1
+ export { RangoClient } from './services'
2
+ export * from './types'
@@ -0,0 +1,289 @@
1
+ import uuid from 'uuid-random'
2
+
3
+ import {
4
+ MetaRequest,
5
+ MetaResponse,
6
+ QuoteRequest,
7
+ QuoteResponse,
8
+ CheckApprovalResponse,
9
+ StatusRequest,
10
+ StatusResponse,
11
+ SwapRequest,
12
+ SwapResponse,
13
+ ReportTransactionRequest,
14
+ WalletDetailsResponse,
15
+ assetToString,
16
+ BlockchainMeta,
17
+ RequestOptions,
18
+ MessagingProtocolsResponse,
19
+ SwapperMetaExtended,
20
+ ConnectedAssetsResponse,
21
+ ConnectedAssetsRequest,
22
+ CustomTokenRequest,
23
+ CustomTokenResponse,
24
+ TokenBalanceRequest,
25
+ TokenBalanceResponse,
26
+ } from '../types'
27
+ import axios, { AxiosInstance } from 'axios'
28
+
29
+ type WalletAddress = { blockchain: string; address: string }
30
+
31
+ export class RangoClient {
32
+ private readonly deviceId: string
33
+ private readonly apiKey: string
34
+ private readonly apiUrl: string
35
+ private readonly httpService: AxiosInstance
36
+
37
+ constructor(apiKey: string, debug = false, apiUrl?: string) {
38
+ this.apiUrl = apiUrl || 'https://api.rango.exchange'
39
+ this.apiKey = apiKey
40
+ try {
41
+ if (typeof window !== 'undefined') {
42
+ const deviceId = localStorage.getItem('deviceId')
43
+ if (deviceId) {
44
+ this.deviceId = deviceId
45
+ } else {
46
+ const generatedId = uuid()
47
+ localStorage.setItem('deviceId', generatedId)
48
+ this.deviceId = generatedId
49
+ }
50
+ } else {
51
+ this.deviceId = uuid()
52
+ }
53
+ } catch (e) {
54
+ this.deviceId = uuid()
55
+ }
56
+ this.httpService = axios.create({
57
+ baseURL: this.apiUrl,
58
+ })
59
+ if (debug) {
60
+ this.httpService.interceptors.request.use((request) => {
61
+ console.log('Starting Request', JSON.stringify(request, null, 2))
62
+ return request
63
+ })
64
+ this.httpService.interceptors.response.use((response) => {
65
+ console.log('Response:', JSON.stringify(response, null, 2))
66
+ return response
67
+ })
68
+ }
69
+ }
70
+
71
+ public async meta(
72
+ metaRequest?: MetaRequest,
73
+ options?: RequestOptions
74
+ ): Promise<MetaResponse> {
75
+ const params = {
76
+ ...metaRequest,
77
+ blockchains: metaRequest?.blockchains?.join(),
78
+ swappers: metaRequest?.swappers?.join(),
79
+ swappersGroups: metaRequest?.swappersGroups?.join(),
80
+ transactionTypes: metaRequest?.transactionTypes?.join(),
81
+ }
82
+ const axiosResponse = await this.httpService.get<MetaResponse>(
83
+ `/basic/meta?apiKey=${this.apiKey}`,
84
+ {
85
+ params,
86
+ ...options,
87
+ }
88
+ )
89
+ return axiosResponse.data
90
+ }
91
+
92
+ public async chains(options?: RequestOptions): Promise<BlockchainMeta[]> {
93
+ const axiosResponse = await this.httpService.get<BlockchainMeta[]>(
94
+ `/basic/meta/blockchains?apiKey=${this.apiKey}`,
95
+ { ...options }
96
+ )
97
+ return axiosResponse.data
98
+ }
99
+
100
+ public async swappers(options?: RequestOptions): Promise<SwapperMetaExtended[]> {
101
+ const axiosResponse = await this.httpService.get<SwapperMetaExtended[]>(
102
+ `/basic/meta/swappers?apiKey=${this.apiKey}`,
103
+ { ...options }
104
+ )
105
+ return axiosResponse.data
106
+ }
107
+
108
+ public async messagingProtocols(
109
+ options?: RequestOptions
110
+ ): Promise<MessagingProtocolsResponse> {
111
+ const axiosResponse =
112
+ await this.httpService.get<MessagingProtocolsResponse>(
113
+ `/basic/meta/messaging-protocols?apiKey=${this.apiKey}`,
114
+ { ...options }
115
+ )
116
+ return axiosResponse.data
117
+ }
118
+
119
+
120
+ public async token(
121
+ customTokenRequest?: CustomTokenRequest,
122
+ options?: RequestOptions
123
+ ): Promise<CustomTokenResponse> {
124
+ const axiosResponse = await this.httpService.get<CustomTokenResponse>(
125
+ `/basic/meta/custom-token?apiKey=${this.apiKey}`,
126
+ { params: customTokenRequest, ...options }
127
+ )
128
+ return axiosResponse.data
129
+ }
130
+
131
+ public async quote(
132
+ quoteRequest: QuoteRequest,
133
+ options?: RequestOptions
134
+ ): Promise<QuoteResponse> {
135
+ const body = {
136
+ ...quoteRequest,
137
+ from: assetToString(quoteRequest.from),
138
+ to: assetToString(quoteRequest.to),
139
+ swappers:
140
+ !!quoteRequest.swappers && quoteRequest.swappers.length > 0
141
+ ? quoteRequest.swappers.join(',')
142
+ : undefined,
143
+ swapperGroups:
144
+ !!quoteRequest.swapperGroups && quoteRequest.swapperGroups.length > 0
145
+ ? quoteRequest.swapperGroups.join(',')
146
+ : undefined,
147
+ messagingProtocols:
148
+ !!quoteRequest.messagingProtocols &&
149
+ quoteRequest.messagingProtocols.length > 0
150
+ ? quoteRequest.messagingProtocols.join(',')
151
+ : undefined,
152
+ }
153
+ const axiosResponse = await this.httpService.get<QuoteResponse>(
154
+ `/basic/quote?apiKey=${this.apiKey}`,
155
+ {
156
+ params: body,
157
+ headers: { 'X-Rango-Id': this.deviceId },
158
+ ...options,
159
+ }
160
+ )
161
+ return axiosResponse.data
162
+ }
163
+
164
+ public async isApproved(
165
+ requestId: string,
166
+ txId?: string,
167
+ options?: RequestOptions
168
+ ): Promise<CheckApprovalResponse> {
169
+ const axiosResponse = await this.httpService.get<CheckApprovalResponse>(
170
+ `/basic/is-approved?apiKey=${this.apiKey}`,
171
+ {
172
+ params: { requestId, txId },
173
+ headers: { 'X-Rango-Id': this.deviceId },
174
+ ...options,
175
+ }
176
+ )
177
+ return axiosResponse.data
178
+ }
179
+
180
+ public async status(
181
+ statusRequest: StatusRequest,
182
+ options?: RequestOptions
183
+ ): Promise<StatusResponse> {
184
+ const axiosResponse = await this.httpService.get<StatusResponse>(
185
+ `/basic/status?apiKey=${this.apiKey}`,
186
+ {
187
+ params: statusRequest,
188
+ headers: { 'X-Rango-Id': this.deviceId },
189
+ ...options,
190
+ }
191
+ )
192
+ return axiosResponse.data
193
+ }
194
+
195
+ public async swap(
196
+ swapRequest: SwapRequest,
197
+ options?: RequestOptions
198
+ ): Promise<SwapResponse> {
199
+ const body = {
200
+ ...swapRequest,
201
+ from: assetToString(swapRequest.from),
202
+ to: assetToString(swapRequest.to),
203
+ referrerAddress: swapRequest.referrerAddress || null,
204
+ referrerFee: swapRequest.referrerFee || null,
205
+ disableEstimate: swapRequest.disableEstimate || false,
206
+ swappers:
207
+ !!swapRequest.swappers && swapRequest.swappers.length > 0
208
+ ? swapRequest.swappers.join(',')
209
+ : undefined,
210
+ swapperGroups:
211
+ !!swapRequest.swapperGroups && swapRequest.swapperGroups.length > 0
212
+ ? swapRequest.swapperGroups.join(',')
213
+ : undefined,
214
+ messagingProtocols:
215
+ !!swapRequest.messagingProtocols &&
216
+ swapRequest.messagingProtocols.length > 0
217
+ ? swapRequest.messagingProtocols.join(',')
218
+ : undefined,
219
+ }
220
+ const axiosResponse = await this.httpService.get<SwapResponse>(
221
+ `/basic/swap?apiKey=${this.apiKey}`,
222
+ {
223
+ params: body,
224
+ headers: { 'X-Rango-Id': this.deviceId },
225
+ ...options,
226
+ }
227
+ )
228
+ return axiosResponse.data
229
+ }
230
+
231
+ public async reportFailure(
232
+ requestBody: ReportTransactionRequest,
233
+ options?: RequestOptions
234
+ ): Promise<void> {
235
+ await this.httpService.post(
236
+ `/basic/report-tx?apiKey=${this.apiKey}`,
237
+ requestBody,
238
+ {
239
+ headers: { 'X-Rango-Id': this.deviceId },
240
+ ...options,
241
+ }
242
+ )
243
+ }
244
+
245
+ public async balance(
246
+ walletAddress: WalletAddress,
247
+ options?: RequestOptions
248
+ ): Promise<WalletDetailsResponse> {
249
+ const axiosResponse = await this.httpService.get<WalletDetailsResponse>(
250
+ `/basic/balance?apiKey=${this.apiKey}`,
251
+ {
252
+ params: walletAddress,
253
+ headers: { 'X-Rango-Id': this.deviceId },
254
+ ...options,
255
+ }
256
+ )
257
+ return axiosResponse.data
258
+ }
259
+
260
+ public async tokenBalance(
261
+ tokenBalanceRequest: TokenBalanceRequest,
262
+ options?: RequestOptions
263
+ ): Promise<TokenBalanceResponse> {
264
+ const axiosResponse = await this.httpService.get<TokenBalanceResponse>(
265
+ `/basic/token-balance?apiKey=${this.apiKey}`,
266
+ { params: tokenBalanceRequest, ...options }
267
+ )
268
+ return axiosResponse.data
269
+ }
270
+
271
+ public async connectedAssets(
272
+ connectedAssetsRequest: ConnectedAssetsRequest,
273
+ options?: RequestOptions
274
+ ): Promise<ConnectedAssetsResponse> {
275
+ const body = {
276
+ from: assetToString(connectedAssetsRequest.from),
277
+ }
278
+
279
+ const axiosResponse = await this.httpService.get<ConnectedAssetsResponse>(
280
+ `/basic/connected-assets?apiKey=${this.apiKey}`,
281
+ {
282
+ params: body,
283
+ headers: { 'X-Rango-Id': this.deviceId },
284
+ ...options,
285
+ }
286
+ )
287
+ return axiosResponse.data
288
+ }
289
+ }
@@ -0,0 +1 @@
1
+ export { RangoClient } from './client'
@@ -0,0 +1 @@
1
+ export * from 'ssfdfsgdfsgfdgfsdgdsgfdfgs-types/lib/api/basic/balance'
@@ -0,0 +1,8 @@
1
+ import { RequestedAsset } from 'ssfdfsgdfsgfdgfsdgdsgfdfgs-types/lib/api/basic'
2
+ export * from 'ssfdfsgdfsgfdgfsdgdsgfdfgs-types/lib/api/basic/common'
3
+
4
+ export function assetToString(asset: RequestedAsset): string {
5
+ return `${asset.blockchain}${asset.symbol ? '.' + asset.symbol : ''}${
6
+ asset.address ? '--' + asset.address : ''
7
+ }`
8
+ }
@@ -0,0 +1,3 @@
1
+ export * from 'ssfdfsgdfsgfdgfsdgdsgfdfgs-types/lib/api/basic/meta'
2
+ export * from 'ssfdfsgdfsgfdgfsdgdsgfdfgs-types/lib/api/shared/type-gaurds'
3
+ export type { MetaRequest } from 'ssfdfsgdfsgfdgfsdgdsgfdfgs-types/lib/api/shared/meta'
@@ -0,0 +1 @@
1
+ export * from 'ssfdfsgdfsgfdgfsdgdsgfdfgs-types/lib/api/basic/routing'
@@ -0,0 +1 @@
1
+ export * from 'ssfdfsgdfsgfdgfsdgdsgfdfgs-types/lib/api/basic/transactions'
@@ -0,0 +1 @@
1
+ export * from 'ssfdfsgdfsgfdgfsdgdsgfdfgs-types/lib/api/basic/txs/cosmos'
@@ -0,0 +1 @@
1
+ export * from 'ssfdfsgdfsgfdgfsdgdsgfdfgs-types/lib/api/basic/txs/evm'
@@ -0,0 +1,4 @@
1
+ export * from './evm'
2
+ export * from './cosmos'
3
+ export * from './transfer'
4
+ export * from './solana'
@@ -0,0 +1 @@
1
+ export * from 'ssfdfsgdfsgfdgfsdgdsgfdfgs-types/lib/api/basic/txs/solana'
@@ -0,0 +1 @@
1
+ export * from 'ssfdfsgdfsgfdgfsdgdsgfdfgs-types/lib/api/basic/txs/transfer'
@@ -0,0 +1,5 @@
1
+ import { GenericAbortSignal } from 'axios'
2
+
3
+ export interface RequestOptions {
4
+ signal?: GenericAbortSignal
5
+ }
@@ -0,0 +1,7 @@
1
+ export * from './api/balance'
2
+ export * from './api/common'
3
+ export * from './api/meta'
4
+ export * from './api/routing'
5
+ export * from './api/transactions'
6
+ export * from './api/txs'
7
+ export * from './configs'