@openocean.finance/openocean-sdk 1.2.7 → 1.2.9

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 (42) hide show
  1. package/lib/api/index.d.ts +3 -3
  2. package/lib/index.js +2 -50
  3. package/lib/index.js.LICENSE.txt +1 -25
  4. package/lib/swapSdk/Approve.d.ts +1 -1
  5. package/lib/swapSdk/RequestVo.d.ts +1 -1
  6. package/lib/v1/constants.d.ts +1 -1
  7. package/package.json +4 -4
  8. package/lib/api/index.js +0 -139
  9. package/lib/api/vo/RequestVo.js +0 -398
  10. package/lib/asset/abi/ERC20_abi.js +0 -119
  11. package/lib/asset/abi/aggregator.js +0 -391
  12. package/lib/config/index.js +0 -33
  13. package/lib/swapSdk/Approve.js +0 -342
  14. package/lib/swapSdk/NotoMobile.js +0 -141
  15. package/lib/swapSdk/RequestVo.js +0 -94
  16. package/lib/swapSdk/Swap.js +0 -1123
  17. package/lib/swapSdk/getAllowance.js +0 -97
  18. package/lib/swapSdk/getBalance.js +0 -280
  19. package/lib/swapSdk/index.js +0 -257
  20. package/lib/swapSdk/qrcode.js +0 -969
  21. package/lib/utils/ajx.js +0 -150
  22. package/lib/utils/index.js +0 -369
  23. package/lib/utils/web3.js +0 -9
  24. package/lib/v1/abis/ERC20.js +0 -22
  25. package/lib/v1/abis/IUniswapV2Pair.js +0 -1434
  26. package/lib/v1/constants.js +0 -71
  27. package/lib/v1/entities/currency.js +0 -39
  28. package/lib/v1/entities/fractions/currencyAmount.js +0 -83
  29. package/lib/v1/entities/fractions/fraction.js +0 -109
  30. package/lib/v1/entities/fractions/index.js +0 -21
  31. package/lib/v1/entities/fractions/percent.js +0 -37
  32. package/lib/v1/entities/fractions/price.js +0 -90
  33. package/lib/v1/entities/fractions/tokenAmount.js +0 -43
  34. package/lib/v1/entities/index.js +0 -22
  35. package/lib/v1/entities/pair.js +0 -210
  36. package/lib/v1/entities/route.js +0 -43
  37. package/lib/v1/entities/token.js +0 -87
  38. package/lib/v1/entities/trade.js +0 -336
  39. package/lib/v1/errors.js +0 -56
  40. package/lib/v1/fetcher.js +0 -140
  41. package/lib/v1/router.js +0 -97
  42. package/lib/v1/utils.js +0 -87
@@ -2,7 +2,6 @@ import { SolanaScanVo, NftSignVo, NftSellVo, NftBuyVo, AssetsVo, CollectionsVo,
2
2
  export declare class Api {
3
3
  baseUrl: string;
4
4
  baseUrlNft: string;
5
- baseUrlV1: string;
6
5
  constructor(baseUrl?: string);
7
6
  collections(option: CollectionsVo): Promise<any>;
8
7
  assets(option: AssetsVo): Promise<any>;
@@ -11,14 +10,15 @@ export declare class Api {
11
10
  sign(option: NftSignVo): Promise<any>;
12
11
  quote(option: ReqQuoteVo): Promise<any>;
13
12
  swapQuote(option: ReqSwapVo): Promise<any>;
14
- getGasPrice(option: ChainName): Promise<any>;
13
+ getGasPrice(option: ChainName): Promise<string>;
15
14
  getTransaction(option: TransactionVo): Promise<any>;
16
15
  getTokenList(option: ChainName): Promise<any>;
17
16
  dexList(option: ChainName): Promise<any>;
18
17
  getTxs(option: TxsVo): Promise<any>;
19
- getTokenPrice(id: string): any;
18
+ getTokenPrice(id: string): Promise<import("axios").AxiosResponse<any, any>>;
20
19
  getBalance(option: ReqBanlanceVo): Promise<any>;
21
20
  getAllowance(option: ReqAllowanceVo): Promise<any>;
22
21
  createWallet(option: ChainName): Promise<any>;
23
22
  solanaScan(option: SolanaScanVo): Promise<any>;
23
+ exchange(option: ChainName): Promise<any>;
24
24
  }