@openocean.finance/openocean-sdk 0.1.0 → 0.1.3

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.
@@ -1,7 +1,13 @@
1
- import { TxsVo, TransactionVo, ChainName, ReqSwapVo, ReqBanlanceVo, ReqAllowanceVo, ReqQuoteVo } from "./vo/RequestVo";
1
+ import { NftSignVo, NftSellVo, NftBuyVo, AssetsVo, CollectionsVo, TxsVo, TransactionVo, ChainName, ReqSwapVo, ReqBanlanceVo, ReqAllowanceVo, ReqQuoteVo } from "./vo/RequestVo";
2
2
  export declare class Api {
3
3
  baseUrl: string;
4
+ baseUrlNft: string;
4
5
  constructor(baseUrl?: string);
6
+ collections(option: CollectionsVo): Promise<any>;
7
+ assets(option: AssetsVo): Promise<any>;
8
+ buy(option: NftBuyVo): Promise<any>;
9
+ sell(option: NftSellVo): Promise<any>;
10
+ sign(option: NftSignVo): Promise<any>;
5
11
  getGasPrice(option: any): Promise<any>;
6
12
  quote(option: ReqQuoteVo): Promise<any>;
7
13
  swapQuote(option: ReqSwapVo): Promise<any>;
@@ -15,6 +15,37 @@ export declare class ReqBanlanceVo extends ChainName {
15
15
  export declare class TransactionVo extends ChainName {
16
16
  hash: string;
17
17
  }
18
+ export declare class CollectionsVo extends ChainName {
19
+ market: string;
20
+ limit: number;
21
+ offset: number;
22
+ sort: string;
23
+ filters: any;
24
+ }
25
+ export declare class AssetsVo extends ChainName {
26
+ market: string;
27
+ limit: number;
28
+ offset: number;
29
+ sort: string;
30
+ filters: any;
31
+ }
32
+ export declare class NftBuyVo extends ChainName {
33
+ market: string;
34
+ sender: string;
35
+ balanceTokens: any[];
36
+ dustTokens: any[];
37
+ buy: any[];
38
+ }
39
+ export declare class NftSellVo extends ChainName {
40
+ market: string;
41
+ sender: string;
42
+ sell: any[];
43
+ }
44
+ export declare class NftSignVo extends ChainName {
45
+ market: string;
46
+ order: any;
47
+ signature: string;
48
+ }
18
49
  export declare class TxsVo extends ChainName {
19
50
  account: string;
20
51
  pageSize: number;