@openocean.finance/openocean-sdk 0.1.52 → 0.1.55

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.
@@ -15,18 +15,17 @@ export declare enum WalletNames {
15
15
  'Coin98Wallet' = 13,
16
16
  'ImTokenWallet' = 14,
17
17
  'Phantom' = 15,
18
- 'OkExWallet' = 16,
19
- 'TerraStation' = 17,
20
- 'CoinbaseWallet' = 18,
21
- 'GnosisSafeWallet' = 19,
22
- 'BitKeepWallet' = 20,
23
- 'CloverWallet' = 21,
24
- 'CryptoCom' = 22,
25
- 'BraveWallet' = 23,
26
- 'XDEFIWallet' = 24,
27
- 'MetaXWallet' = 25,
28
- 'SlopeWallet' = 26,
29
- 'KeplrWallet' = 27
18
+ 'TerraStation' = 16,
19
+ 'CoinbaseWallet' = 17,
20
+ 'GnosisSafeWallet' = 18,
21
+ 'BitKeepWallet' = 19,
22
+ 'CloverWallet' = 20,
23
+ 'CryptoCom' = 21,
24
+ 'BraveWallet' = 22,
25
+ 'XDEFIWallet' = 23,
26
+ 'MetaXWallet' = 24,
27
+ 'SlopeWallet' = 25,
28
+ 'KeplrWallet' = 26
30
29
  }
31
30
  export declare class Wallets {
32
31
  walletObj: any;
@@ -20,48 +20,46 @@ var WalletNames;
20
20
  WalletNames[WalletNames["Coin98Wallet"] = 13] = "Coin98Wallet";
21
21
  WalletNames[WalletNames["ImTokenWallet"] = 14] = "ImTokenWallet";
22
22
  WalletNames[WalletNames["Phantom"] = 15] = "Phantom";
23
- WalletNames[WalletNames["OkExWallet"] = 16] = "OkExWallet";
24
- WalletNames[WalletNames["TerraStation"] = 17] = "TerraStation";
25
- WalletNames[WalletNames["CoinbaseWallet"] = 18] = "CoinbaseWallet";
26
- WalletNames[WalletNames["GnosisSafeWallet"] = 19] = "GnosisSafeWallet";
27
- WalletNames[WalletNames["BitKeepWallet"] = 20] = "BitKeepWallet";
28
- WalletNames[WalletNames["CloverWallet"] = 21] = "CloverWallet";
29
- WalletNames[WalletNames["CryptoCom"] = 22] = "CryptoCom";
30
- WalletNames[WalletNames["BraveWallet"] = 23] = "BraveWallet";
31
- WalletNames[WalletNames["XDEFIWallet"] = 24] = "XDEFIWallet";
32
- WalletNames[WalletNames["MetaXWallet"] = 25] = "MetaXWallet";
33
- WalletNames[WalletNames["SlopeWallet"] = 26] = "SlopeWallet";
34
- WalletNames[WalletNames["KeplrWallet"] = 27] = "KeplrWallet";
23
+ WalletNames[WalletNames["TerraStation"] = 16] = "TerraStation";
24
+ WalletNames[WalletNames["CoinbaseWallet"] = 17] = "CoinbaseWallet";
25
+ WalletNames[WalletNames["GnosisSafeWallet"] = 18] = "GnosisSafeWallet";
26
+ WalletNames[WalletNames["BitKeepWallet"] = 19] = "BitKeepWallet";
27
+ WalletNames[WalletNames["CloverWallet"] = 20] = "CloverWallet";
28
+ WalletNames[WalletNames["CryptoCom"] = 21] = "CryptoCom";
29
+ WalletNames[WalletNames["BraveWallet"] = 22] = "BraveWallet";
30
+ WalletNames[WalletNames["XDEFIWallet"] = 23] = "XDEFIWallet";
31
+ WalletNames[WalletNames["MetaXWallet"] = 24] = "MetaXWallet";
32
+ WalletNames[WalletNames["SlopeWallet"] = 25] = "SlopeWallet";
33
+ WalletNames[WalletNames["KeplrWallet"] = 26] = "KeplrWallet";
35
34
  })(WalletNames = exports.WalletNames || (exports.WalletNames = {}));
36
35
  var WalletObj = {
37
36
  MetaMask: new wallet_1.MetaMask(),
38
- CryptoCom: new wallet_1.CryptoCom(),
37
+ WalletConnect: new wallet_1.WalletConnect(),
38
+ BscWallet: new wallet_1.BscWallet(),
39
39
  CoinbaseWallet: new wallet_1.CoinbaseWallet(),
40
40
  BitKeepWallet: new wallet_1.BitKeepWallet(),
41
- WalletConnect: new wallet_1.WalletConnect(),
41
+ TrustWallet: new wallet_1.TrustWallet(),
42
42
  BraveWallet: new wallet_1.BraveWallet(),
43
- BscWallet: new wallet_1.BscWallet(),
43
+ SafePalWallet: new wallet_1.SafePalWallet(),
44
44
  XDEFIWallet: new wallet_1.XDEFIWallet(),
45
+ OntoWallet: new wallet_1.OntoWallet(),
46
+ Coin98Wallet: new wallet_1.Coin98(),
47
+ TokenPocket: new wallet_1.TokenPocket(),
48
+ CloverWallet: new wallet_1.CloverWallet(),
49
+ ImTokenWallet: new wallet_1.ImTokenWallet(),
50
+ MetaXWallet: new wallet_1.MetaXWallet(),
51
+ MathWallet: new wallet_1.MathWallet(),
52
+ CryptoCom: new wallet_1.CryptoCom(),
45
53
  Cyano: new wallet_1.Cyano(),
46
54
  OntoMobile: new wallet_1.OntoMobile(),
47
55
  TronLink: new wallet_1.TronLink(),
48
56
  Sollet: new wallet_1.Sollet(),
49
57
  SolflareWallet: new wallet_1.SolflareWallet(),
50
- TrustWallet: new wallet_1.TrustWallet(),
51
- MathWallet: new wallet_1.MathWallet(),
52
- TokenPocket: new wallet_1.TokenPocket(),
53
- SafePalWallet: new wallet_1.SafePalWallet(),
54
- OntoWallet: new wallet_1.OntoWallet(),
55
- Coin98Wallet: new wallet_1.Coin98(),
56
- ImTokenWallet: new wallet_1.ImTokenWallet(),
57
58
  Phantom: new wallet_1.Phantom(),
58
- OkExWallet: new wallet_1.OKExWallet(),
59
59
  TerraStation: new wallet_1.TerraStation(),
60
60
  GnosisSafeWallet: new wallet_1.GnosisSafeWallet(),
61
- MetaXWallet: new wallet_1.MetaXWallet(),
62
61
  SlopeWallet: new wallet_1.SlopeWallet(),
63
62
  KeplrWallet: new wallet_1.KeplrWallet(),
64
- CloverWallet: new wallet_1.CloverWallet(),
65
63
  };
66
64
  var Wallets = /** @class */ (function () {
67
65
  function Wallets() {
@@ -0,0 +1,145 @@
1
+ /*
2
+ object-assign
3
+ (c) Sindre Sorhus
4
+ @license MIT
5
+ */
6
+
7
+ /*!
8
+ * mustache.js - Logic-less {{mustache}} templates with JavaScript
9
+ * http://github.com/janl/mustache.js
10
+ */
11
+
12
+ /*!
13
+ * Fast "async" scrypt implementation in JavaScript.
14
+ * Copyright (c) 2013-2016 Dmitry Chestnykh | BSD License
15
+ * https://github.com/dchest/scrypt-async-js
16
+ */
17
+
18
+ /*!
19
+ * The buffer module from node.js, for the browser.
20
+ *
21
+ * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
22
+ * @license MIT
23
+ */
24
+
25
+ /*!
26
+ * The buffer module from node.js, for the browser.
27
+ *
28
+ * @author Feross Aboukhadijeh <https://feross.org>
29
+ * @license MIT
30
+ */
31
+
32
+ /*!
33
+ * depd
34
+ * Copyright(c) 2015 Douglas Christopher Wilson
35
+ * MIT Licensed
36
+ */
37
+
38
+ /*!
39
+ * http-errors
40
+ * Copyright(c) 2014 Jonathan Ong
41
+ * Copyright(c) 2016 Douglas Christopher Wilson
42
+ * MIT Licensed
43
+ */
44
+
45
+ /*!
46
+ * statuses
47
+ * Copyright(c) 2014 Jonathan Ong
48
+ * Copyright(c) 2016 Douglas Christopher Wilson
49
+ * MIT Licensed
50
+ */
51
+
52
+ /*!
53
+ * toidentifier
54
+ * Copyright(c) 2016 Douglas Christopher Wilson
55
+ * MIT Licensed
56
+ */
57
+
58
+ /*!
59
+ * v2.1.4-104-gc868b3a
60
+ *
61
+ */
62
+
63
+ /*! *****************************************************************************
64
+ Copyright (C) Microsoft. All rights reserved.
65
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
66
+ this file except in compliance with the License. You may obtain a copy of the
67
+ License at http://www.apache.org/licenses/LICENSE-2.0
68
+
69
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
70
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
71
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
72
+ MERCHANTABLITY OR NON-INFRINGEMENT.
73
+
74
+ See the Apache Version 2.0 License for specific language governing permissions
75
+ and limitations under the License.
76
+ ***************************************************************************** */
77
+
78
+ /*! @name pkcs7 @version 1.0.4 @license Apache-2.0 */
79
+
80
+ /*! @ont-community/window-post-message-proxy v0.2.14 | (c) 2016 Microsoft Corporation MIT */
81
+
82
+ /*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */
83
+
84
+ /*! https://mths.be/punycode v1.3.2 by @mathias */
85
+
86
+ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
87
+
88
+ /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
89
+
90
+ /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
91
+
92
+ /*! websocket-as-promised v0.7.0 */
93
+
94
+ /**
95
+ * [js-sha256]{@link https://github.com/emn178/js-sha256}
96
+ *
97
+ * @version 0.9.0
98
+ * @author Chen, Yi-Cyuan [emn178@gmail.com]
99
+ * @copyright Chen, Yi-Cyuan 2014-2017
100
+ * @license MIT
101
+ */
102
+
103
+ /**
104
+ * [js-sha3]{@link https://github.com/emn178/js-sha3}
105
+ *
106
+ * @version 0.5.7
107
+ * @author Chen, Yi-Cyuan [emn178@gmail.com]
108
+ * @copyright Chen, Yi-Cyuan 2015-2016
109
+ * @license MIT
110
+ */
111
+
112
+ /**
113
+ * [js-sha3]{@link https://github.com/emn178/js-sha3}
114
+ *
115
+ * @version 0.7.0
116
+ * @author Chen, Yi-Cyuan [emn178@gmail.com]
117
+ * @copyright Chen, Yi-Cyuan 2015-2017
118
+ * @license MIT
119
+ */
120
+
121
+ /**
122
+ * [js-sha3]{@link https://github.com/emn178/js-sha3}
123
+ *
124
+ * @version 0.8.0
125
+ * @author Chen, Yi-Cyuan [emn178@gmail.com]
126
+ * @copyright Chen, Yi-Cyuan 2015-2018
127
+ * @license MIT
128
+ */
129
+
130
+ /** @preserve
131
+ * Counter block mode compatible with Dr Brian Gladman fileenc.c
132
+ * derived from CryptoJS.mode.CTR
133
+ * Jan Hruby jhruby.web@gmail.com
134
+ */
135
+
136
+ /** @preserve
137
+ (c) 2012 by Cédric Mesnil. All rights reserved.
138
+
139
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
140
+
141
+ - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
142
+ - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
143
+
144
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
145
+ */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openocean.finance/openocean-sdk",
3
- "version": "0.1.52",
3
+ "version": "0.1.55",
4
4
  "description": "Openocean sdk",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@jup-ag/core": "^1.0.0-beta.27",
49
- "@openocean.finance/wallet": "^0.4.25",
49
+ "@openocean.finance/wallet": "^0.4.26",
50
50
  "@solana/buffer-layout": "^4.0.0",
51
51
  "@walletconnect/web3-provider": "^1.7.8",
52
52
  "bs58": "^4.0.1",