@openocean.finance/openocean-sdk 0.2.2 → 0.2.4

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.
@@ -91,115 +91,6 @@ and limitations under the License.
91
91
 
92
92
  /*! websocket-as-promised v0.7.0 */
93
93
 
94
- /**
95
- * Support for translating between Uint8Array instances and JavaScript
96
- * native types.
97
- *
98
- * {@link module:Layout~Layout|Layout} is the basis of a class
99
- * hierarchy that associates property names with sequences of encoded
100
- * bytes.
101
- *
102
- * Layouts are supported for these scalar (numeric) types:
103
- * * {@link module:Layout~UInt|Unsigned integers in little-endian
104
- * format} with {@link module:Layout.u8|8-bit}, {@link
105
- * module:Layout.u16|16-bit}, {@link module:Layout.u24|24-bit},
106
- * {@link module:Layout.u32|32-bit}, {@link
107
- * module:Layout.u40|40-bit}, and {@link module:Layout.u48|48-bit}
108
- * representation ranges;
109
- * * {@link module:Layout~UIntBE|Unsigned integers in big-endian
110
- * format} with {@link module:Layout.u16be|16-bit}, {@link
111
- * module:Layout.u24be|24-bit}, {@link module:Layout.u32be|32-bit},
112
- * {@link module:Layout.u40be|40-bit}, and {@link
113
- * module:Layout.u48be|48-bit} representation ranges;
114
- * * {@link module:Layout~Int|Signed integers in little-endian
115
- * format} with {@link module:Layout.s8|8-bit}, {@link
116
- * module:Layout.s16|16-bit}, {@link module:Layout.s24|24-bit},
117
- * {@link module:Layout.s32|32-bit}, {@link
118
- * module:Layout.s40|40-bit}, and {@link module:Layout.s48|48-bit}
119
- * representation ranges;
120
- * * {@link module:Layout~IntBE|Signed integers in big-endian format}
121
- * with {@link module:Layout.s16be|16-bit}, {@link
122
- * module:Layout.s24be|24-bit}, {@link module:Layout.s32be|32-bit},
123
- * {@link module:Layout.s40be|40-bit}, and {@link
124
- * module:Layout.s48be|48-bit} representation ranges;
125
- * * 64-bit integral values that decode to an exact (if magnitude is
126
- * less than 2^53) or nearby integral Number in {@link
127
- * module:Layout.nu64|unsigned little-endian}, {@link
128
- * module:Layout.nu64be|unsigned big-endian}, {@link
129
- * module:Layout.ns64|signed little-endian}, and {@link
130
- * module:Layout.ns64be|unsigned big-endian} encodings;
131
- * * 32-bit floating point values with {@link
132
- * module:Layout.f32|little-endian} and {@link
133
- * module:Layout.f32be|big-endian} representations;
134
- * * 64-bit floating point values with {@link
135
- * module:Layout.f64|little-endian} and {@link
136
- * module:Layout.f64be|big-endian} representations;
137
- * * {@link module:Layout.const|Constants} that take no space in the
138
- * encoded expression.
139
- *
140
- * and for these aggregate types:
141
- * * {@link module:Layout.seq|Sequence}s of instances of a {@link
142
- * module:Layout~Layout|Layout}, with JavaScript representation as
143
- * an Array and constant or data-dependent {@link
144
- * module:Layout~Sequence#count|length};
145
- * * {@link module:Layout.struct|Structure}s that aggregate a
146
- * heterogeneous sequence of {@link module:Layout~Layout|Layout}
147
- * instances, with JavaScript representation as an Object;
148
- * * {@link module:Layout.union|Union}s that support multiple {@link
149
- * module:Layout~VariantLayout|variant layouts} over a fixed
150
- * (padded) or variable (not padded) span of bytes, using an
151
- * unsigned integer at the start of the data or a separate {@link
152
- * module:Layout.unionLayoutDiscriminator|layout element} to
153
- * determine which layout to use when interpreting the buffer
154
- * contents;
155
- * * {@link module:Layout.bits|BitStructure}s that contain a sequence
156
- * of individual {@link
157
- * module:Layout~BitStructure#addField|BitField}s packed into an 8,
158
- * 16, 24, or 32-bit unsigned integer starting at the least- or
159
- * most-significant bit;
160
- * * {@link module:Layout.cstr|C strings} of varying length;
161
- * * {@link module:Layout.blob|Blobs} of fixed- or variable-{@link
162
- * module:Layout~Blob#length|length} raw data.
163
- *
164
- * All {@link module:Layout~Layout|Layout} instances are immutable
165
- * after construction, to prevent internal state from becoming
166
- * inconsistent.
167
- *
168
- * @local Layout
169
- * @local ExternalLayout
170
- * @local GreedyCount
171
- * @local OffsetLayout
172
- * @local UInt
173
- * @local UIntBE
174
- * @local Int
175
- * @local IntBE
176
- * @local NearUInt64
177
- * @local NearUInt64BE
178
- * @local NearInt64
179
- * @local NearInt64BE
180
- * @local Float
181
- * @local FloatBE
182
- * @local Double
183
- * @local DoubleBE
184
- * @local Sequence
185
- * @local Structure
186
- * @local UnionDiscriminator
187
- * @local UnionLayoutDiscriminator
188
- * @local Union
189
- * @local VariantLayout
190
- * @local BitStructure
191
- * @local BitField
192
- * @local Boolean
193
- * @local Blob
194
- * @local CString
195
- * @local Constant
196
- * @local bindConstructorLayout
197
- * @module Layout
198
- * @license MIT
199
- * @author Peter A. Bigot
200
- * @see {@link https://github.com/pabigot/buffer-layout|buffer-layout on GitHub}
201
- */
202
-
203
94
  /**
204
95
  * [js-sha256]{@link https://github.com/emn178/js-sha256}
205
96
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openocean.finance/openocean-sdk",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "Openocean sdk",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -46,7 +46,6 @@
46
46
  "webpack-cli": "^4.6.0"
47
47
  },
48
48
  "dependencies": {
49
- "@1inch/limit-order-protocol": "^2.0.4",
50
49
  "@jup-ag/core": "^1.0.0-beta.27",
51
50
  "@openocean.finance/wallet": "^0.4.44",
52
51
  "@solana/buffer-layout": "^4.0.0",
@@ -62,6 +61,10 @@
62
61
  "path-browserify": "^1.0.1",
63
62
  "reflect-metadata": "^0.1.13",
64
63
  "vconsole": "^3.14.6",
65
- "web3": "^1.7.4"
64
+ "web3": "^1.7.4",
65
+ "@ethersproject/bignumber": "^5.1.1",
66
+ "@metamask/eth-sig-util": "4.0.1",
67
+ "prompts": "^2.4.1",
68
+ "yargs": "^17.0.1"
66
69
  }
67
70
  }