@openocean.finance/openocean-sdk 0.5.21 → 0.5.24

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.
@@ -94,6 +94,8 @@ PERFORMANCE OF THIS SOFTWARE.
94
94
 
95
95
  /*! @ont-community/window-post-message-proxy v0.2.14 | (c) 2016 Microsoft Corporation MIT */
96
96
 
97
+ /*! MIT License. Copyright 2015-2018 Richard Moore <me@ricmoo.com>. See LICENSE.txt. */
98
+
97
99
  /*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */
98
100
 
99
101
  /*! https://mths.be/punycode v1.3.2 by @mathias */
@@ -0,0 +1,27 @@
1
+ export declare class Nft {
2
+ private getDataCallback;
3
+ private errorCallback;
4
+ private transactionHashCallback;
5
+ private receiptCallback;
6
+ private successCallback;
7
+ wallet: any;
8
+ chain: any;
9
+ constructor(wallet: any, chain: any);
10
+ sendSolanaNFTTransaction(swapParams: any, swapType?: string): Promise<string>;
11
+ sendBuyNFTTransaction(swapParams: any, gasPrice: any): Promise<unknown>;
12
+ signOrderMessageByNFTrade(signatureData: any): Promise<unknown>;
13
+ sendSellNFTTransaction(swapParams: any, data: any): Promise<string | {
14
+ market: any;
15
+ order: any;
16
+ signature: any;
17
+ } | undefined>;
18
+ sendOfferNFTTransaction(swapParams: any, data: any): Promise<string | {
19
+ market: any;
20
+ order: any;
21
+ signature: any;
22
+ } | undefined>;
23
+ sendCancelNFTTransaction(swapParams: any, gasPrice: any): Promise<unknown>;
24
+ signOrder(orderParameters: any): Promise<unknown>;
25
+ signOrderMessage(clientMessage: any): Promise<unknown>;
26
+ on(events: string, callback: Function): this;
27
+ }
@@ -2,12 +2,14 @@ import { ReqConnectWalletVo, ReqApproveVo, ReqBalanceVo, ReqAllowanceVo } from "
2
2
  import { Approve } from "./Approve";
3
3
  import { Swap, ReqSwapVo } from "./Swap";
4
4
  import { Api } from "../api";
5
+ import { Nft } from "./Nft";
5
6
  export declare class SwapSdk {
6
7
  i: number;
7
8
  chain: any;
8
9
  wallet: any;
9
10
  localProvider: any;
10
11
  localRpcUrl: string;
12
+ nft: Nft;
11
13
  private api;
12
14
  constructor();
13
15
  setApi(api: Api): void;
@@ -13,4 +13,3 @@ export declare function createLimitOrder(makerToken: any, takerToken: any, _make
13
13
  }>;
14
14
  export declare function cancelLimitOrder(order: any, gasPrice: number, chainName: string, myWallet: any): Promise<any>;
15
15
  export declare function sendEthApprove(inToken: any, type: string, amount: string, gasPrice: number, toContract: string, myWallet: any): Promise<unknown>;
16
- export declare function confirmLater(promise: any): Promise<unknown>;
@@ -33,3 +33,22 @@ export declare class Utils {
33
33
  }
34
34
  export declare const utils: Utils;
35
35
  export declare function isPc(): boolean;
36
+ export declare function confirmLater(promise: any): Promise<unknown>;
37
+ export declare const EIP_712_ORDER_TYPE: {
38
+ EIP712Domain: {
39
+ name: string;
40
+ type: string;
41
+ }[];
42
+ OrderComponents: {
43
+ name: string;
44
+ type: string;
45
+ }[];
46
+ OfferItem: {
47
+ name: string;
48
+ type: string;
49
+ }[];
50
+ ConsiderationItem: {
51
+ name: string;
52
+ type: string;
53
+ }[];
54
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openocean.finance/openocean-sdk",
3
- "version": "0.5.21",
3
+ "version": "0.5.24",
4
4
  "description": "Openocean sdk",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -49,6 +49,7 @@
49
49
  "@ethersproject/bignumber": "^5.1.1",
50
50
  "@jup-ag/core": "^1.0.0-beta.27",
51
51
  "@openocean.finance/wallet": "^0.4.65",
52
+ "@looksrare/sdk": "^0.12.1",
52
53
  "@solana/buffer-layout": "^4.0.0",
53
54
  "@walletconnect/web3-provider": "^1.7.8",
54
55
  "aptos": "^1.3.17",
@@ -59,6 +60,7 @@
59
60
  "eth-sig-util": "^3.0.1",
60
61
  "fs": "^0.0.1-security",
61
62
  "json-loader": "^0.5.7",
63
+ "nifty-protocol": "^1.0.62",
62
64
  "node-polyfill-webpack-plugin": "^1.1.4",
63
65
  "ontology-ts-sdk": "^1.1.16",
64
66
  "path-browserify": "^1.0.1",