@bitgo-beta/sdk-coin-opeth 1.0.1-beta.55 → 1.0.1-beta.551

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,652 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [18.1.49](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.48...@bitgo/sdk-coin-opeth@18.1.49) (2025-02-05)
7
+
8
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
9
+
10
+ ## [18.1.48](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.47...@bitgo/sdk-coin-opeth@18.1.48) (2025-01-28)
11
+
12
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
13
+
14
+ ## [18.1.47](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.46...@bitgo/sdk-coin-opeth@18.1.47) (2025-01-23)
15
+
16
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
17
+
18
+ ## [18.1.46](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.45...@bitgo/sdk-coin-opeth@18.1.46) (2025-01-23)
19
+
20
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
21
+
22
+ ## [18.1.45](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.44...@bitgo/sdk-coin-opeth@18.1.45) (2025-01-20)
23
+
24
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
25
+
26
+ ## [18.1.44](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.43...@bitgo/sdk-coin-opeth@18.1.44) (2025-01-15)
27
+
28
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
29
+
30
+ ## [18.1.43](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.42...@bitgo/sdk-coin-opeth@18.1.43) (2025-01-09)
31
+
32
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
33
+
34
+ ## [18.1.42](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.41...@bitgo/sdk-coin-opeth@18.1.42) (2025-01-03)
35
+
36
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
37
+
38
+ ## [18.1.41](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.40...@bitgo/sdk-coin-opeth@18.1.41) (2024-12-24)
39
+
40
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
41
+
42
+ ## [18.1.40](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.39...@bitgo/sdk-coin-opeth@18.1.40) (2024-12-19)
43
+
44
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
45
+
46
+ ## [18.1.39](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.37...@bitgo/sdk-coin-opeth@18.1.39) (2024-12-17)
47
+
48
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
49
+
50
+ ## [18.1.38](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.37...@bitgo/sdk-coin-opeth@18.1.38) (2024-12-17)
51
+
52
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
53
+
54
+ ## [18.1.37](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.36...@bitgo/sdk-coin-opeth@18.1.37) (2024-12-12)
55
+
56
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
57
+
58
+ ## [18.1.36](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.35...@bitgo/sdk-coin-opeth@18.1.36) (2024-12-11)
59
+
60
+ ### Bug Fixes
61
+
62
+ - **abstract-eth:** fix issue with ethlike signTx ([7584c8b](https://github.com/BitGo/BitGoJS/commit/7584c8bf2e3ddea21582cac36abdebe0a0a78646))
63
+
64
+ ## [18.1.35](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.34...@bitgo/sdk-coin-opeth@18.1.35) (2024-12-03)
65
+
66
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
67
+
68
+ ## [18.1.34](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.33...@bitgo/sdk-coin-opeth@18.1.34) (2024-11-26)
69
+
70
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
71
+
72
+ ## [18.1.33](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.32...@bitgo/sdk-coin-opeth@18.1.33) (2024-11-21)
73
+
74
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
75
+
76
+ ## [18.1.32](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.30...@bitgo/sdk-coin-opeth@18.1.32) (2024-11-19)
77
+
78
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
79
+
80
+ ## [18.1.31](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.30...@bitgo/sdk-coin-opeth@18.1.31) (2024-11-14)
81
+
82
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
83
+
84
+ ## [18.1.30](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.29...@bitgo/sdk-coin-opeth@18.1.30) (2024-11-08)
85
+
86
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
87
+
88
+ ## [18.1.29](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.28...@bitgo/sdk-coin-opeth@18.1.29) (2024-11-07)
89
+
90
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
91
+
92
+ ## [18.1.28](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.27...@bitgo/sdk-coin-opeth@18.1.28) (2024-11-01)
93
+
94
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
95
+
96
+ ## [18.1.27](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.26...@bitgo/sdk-coin-opeth@18.1.27) (2024-10-22)
97
+
98
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
99
+
100
+ ## [18.1.26](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.25...@bitgo/sdk-coin-opeth@18.1.26) (2024-10-15)
101
+
102
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
103
+
104
+ ## [18.1.25](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.24...@bitgo/sdk-coin-opeth@18.1.25) (2024-10-08)
105
+
106
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
107
+
108
+ ## [18.1.24](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.23...@bitgo/sdk-coin-opeth@18.1.24) (2024-10-04)
109
+
110
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
111
+
112
+ ## [18.1.23](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.22...@bitgo/sdk-coin-opeth@18.1.23) (2024-09-24)
113
+
114
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
115
+
116
+ ## [18.1.22](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.21...@bitgo/sdk-coin-opeth@18.1.22) (2024-09-19)
117
+
118
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
119
+
120
+ ## [18.1.21](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.20...@bitgo/sdk-coin-opeth@18.1.21) (2024-09-16)
121
+
122
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
123
+
124
+ ## [18.1.20](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.19...@bitgo/sdk-coin-opeth@18.1.20) (2024-09-10)
125
+
126
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
127
+
128
+ ## [18.1.19](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.18...@bitgo/sdk-coin-opeth@18.1.19) (2024-09-03)
129
+
130
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
131
+
132
+ ## [18.1.18](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.17...@bitgo/sdk-coin-opeth@18.1.18) (2024-08-29)
133
+
134
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
135
+
136
+ ## [18.1.17](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.16...@bitgo/sdk-coin-opeth@18.1.17) (2024-08-27)
137
+
138
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
139
+
140
+ ## [18.1.16](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.14...@bitgo/sdk-coin-opeth@18.1.16) (2024-08-20)
141
+
142
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
143
+
144
+ ## [18.1.15](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.14...@bitgo/sdk-coin-opeth@18.1.15) (2024-08-13)
145
+
146
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
147
+
148
+ ## [18.1.14](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.13...@bitgo/sdk-coin-opeth@18.1.14) (2024-08-07)
149
+
150
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
151
+
152
+ ## [18.1.13](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.12...@bitgo/sdk-coin-opeth@18.1.13) (2024-07-30)
153
+
154
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
155
+
156
+ ## [18.1.12](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.11...@bitgo/sdk-coin-opeth@18.1.12) (2024-07-24)
157
+
158
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
159
+
160
+ ## [18.1.11](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.10...@bitgo/sdk-coin-opeth@18.1.11) (2024-07-16)
161
+
162
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
163
+
164
+ ## [18.1.10](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.9...@bitgo/sdk-coin-opeth@18.1.10) (2024-07-04)
165
+
166
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
167
+
168
+ ## [18.1.9](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.8...@bitgo/sdk-coin-opeth@18.1.9) (2024-07-02)
169
+
170
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
171
+
172
+ ## [18.1.8](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.7...@bitgo/sdk-coin-opeth@18.1.8) (2024-06-27)
173
+
174
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
175
+
176
+ ## [18.1.7](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.6...@bitgo/sdk-coin-opeth@18.1.7) (2024-06-26)
177
+
178
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
179
+
180
+ ## [18.1.6](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.4...@bitgo/sdk-coin-opeth@18.1.6) (2024-06-21)
181
+
182
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
183
+
184
+ ## [18.1.5](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.4...@bitgo/sdk-coin-opeth@18.1.5) (2024-06-20)
185
+
186
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
187
+
188
+ ## [18.1.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.3...@bitgo/sdk-coin-opeth@18.1.4) (2024-06-14)
189
+
190
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
191
+
192
+ ## [18.1.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.2...@bitgo/sdk-coin-opeth@18.1.3) (2024-06-11)
193
+
194
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
195
+
196
+ ## [18.1.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.1...@bitgo/sdk-coin-opeth@18.1.2) (2024-06-05)
197
+
198
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
199
+
200
+ ## [18.1.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.0...@bitgo/sdk-coin-opeth@18.1.1) (2024-05-31)
201
+
202
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
203
+
204
+ # [18.1.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.0.6...@bitgo/sdk-coin-opeth@18.1.0) (2024-05-28)
205
+
206
+ ### Bug Fixes
207
+
208
+ - **abstract-eth:** handle absence of batcher contract for native coin ([37ede15](https://github.com/BitGo/BitGoJS/commit/37ede15f2fc8e24f732a6d8f513327650d58590c))
209
+
210
+ ### Features
211
+
212
+ - **abstract-eth:** add support to build tx for CCR of unsupported token ([a6dac7c](https://github.com/BitGo/BitGoJS/commit/a6dac7c00d47acfa3d4dd072b9cfcdf99215a743))
213
+
214
+ ## [18.0.6](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.0.5...@bitgo/sdk-coin-opeth@18.0.6) (2024-05-22)
215
+
216
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
217
+
218
+ ## [18.0.5](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.0.4...@bitgo/sdk-coin-opeth@18.0.5) (2024-05-17)
219
+
220
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
221
+
222
+ ## [18.0.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.0.3...@bitgo/sdk-coin-opeth@18.0.4) (2024-05-13)
223
+
224
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
225
+
226
+ ## [18.0.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.0.2...@bitgo/sdk-coin-opeth@18.0.3) (2024-05-08)
227
+
228
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
229
+
230
+ ## [18.0.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.0.1...@bitgo/sdk-coin-opeth@18.0.2) (2024-05-01)
231
+
232
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
233
+
234
+ ## [18.0.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.0.0...@bitgo/sdk-coin-opeth@18.0.1) (2024-04-25)
235
+
236
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
237
+
238
+ # [18.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@17.0.7...@bitgo/sdk-coin-opeth@18.0.0) (2024-04-24)
239
+
240
+ ### Features
241
+
242
+ - **abstract-eth:** support txn bulding for v4 wallet on eth chain ([d8aabea](https://github.com/BitGo/BitGoJS/commit/d8aabead0197072ee5b6c7fb11bd9c379606208d))
243
+
244
+ ### BREAKING CHANGES
245
+
246
+ - **abstract-eth:** Made ChainID mandatory for signAndBuild method
247
+
248
+ ## [17.0.7](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@17.0.6...@bitgo/sdk-coin-opeth@17.0.7) (2024-04-22)
249
+
250
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
251
+
252
+ ## [17.0.6](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@17.0.5...@bitgo/sdk-coin-opeth@17.0.6) (2024-04-17)
253
+
254
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
255
+
256
+ ## [17.0.5](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@17.0.4...@bitgo/sdk-coin-opeth@17.0.5) (2024-04-12)
257
+
258
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
259
+
260
+ ## [17.0.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@17.0.3...@bitgo/sdk-coin-opeth@17.0.4) (2024-04-10)
261
+
262
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
263
+
264
+ ## [17.0.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@17.0.2...@bitgo/sdk-coin-opeth@17.0.3) (2024-04-09)
265
+
266
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
267
+
268
+ ## [17.0.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@17.0.1...@bitgo/sdk-coin-opeth@17.0.2) (2024-04-08)
269
+
270
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
271
+
272
+ ## [17.0.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@17.0.0...@bitgo/sdk-coin-opeth@17.0.1) (2024-04-05)
273
+
274
+ ### Bug Fixes
275
+
276
+ - **abstract-eth:** fix opeth:op transfers ([37a8f4f](https://github.com/BitGo/BitGoJS/commit/37a8f4f03325d76c32b4764381e3d2d7976dd414))
277
+
278
+ # [17.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@16.0.4...@bitgo/sdk-coin-opeth@17.0.0) (2024-03-28)
279
+
280
+ ### Features
281
+
282
+ - **root:** deprecate node 16 ([d3ec624](https://github.com/BitGo/BitGoJS/commit/d3ec6240bddae2a4ab7fa80c4a16efecc36210bd))
283
+
284
+ ### BREAKING CHANGES
285
+
286
+ - **root:** Node 16 is no longer supported in bitgojs.
287
+ TICKET: WP-1100
288
+
289
+ ## [16.0.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@16.0.3...@bitgo/sdk-coin-opeth@16.0.4) (2024-03-19)
290
+
291
+ ### Bug Fixes
292
+
293
+ - **statics:** updates decimal for opeth:usdt ([0e98be4](https://github.com/BitGo/BitGoJS/commit/0e98be4e4151b8d64050f475e4fb3302e3b31b75))
294
+
295
+ ## [16.0.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@16.0.2...@bitgo/sdk-coin-opeth@16.0.3) (2024-03-11)
296
+
297
+ ### Bug Fixes
298
+
299
+ - **abstract-eth:** fixes issue related to gasestimate for ethlike ([190bdb2](https://github.com/BitGo/BitGoJS/commit/190bdb2b225fc2fd87fe536aeb77734f102b9984))
300
+
301
+ ## [16.0.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@16.0.1...@bitgo/sdk-coin-opeth@16.0.2) (2024-02-28)
302
+
303
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
304
+
305
+ ## [16.0.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@16.0.0...@bitgo/sdk-coin-opeth@16.0.1) (2024-02-22)
306
+
307
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
308
+
309
+ # 16.0.0 (2024-02-19)
310
+
311
+ ### Bug Fixes
312
+
313
+ - **abstract-eth:** change tx encoding method for arb and op ([c11b0dd](https://github.com/BitGo/BitGoJS/commit/c11b0dd4705b0de4aaf9fff26eecf361d78b9f10))
314
+ - **abstract-eth:** fix chainid related changes ([c3a21c4](https://github.com/BitGo/BitGoJS/commit/c3a21c4cc470f2147c80e235607011bd4896f911))
315
+ - **abstract-eth:** fix issues related to chainid ([9114b1b](https://github.com/BitGo/BitGoJS/commit/9114b1b95ca0929d2d1ef5b33ba4f35e1184b5c7))
316
+ - add opeth token support to register ([577ba12](https://github.com/BitGo/BitGoJS/commit/577ba12e3999124036fb880da32dec6f7380d1b9))
317
+ - **sdk-coin-opeth:** enable chainid change for opeth ([d1e0eea](https://github.com/BitGo/BitGoJS/commit/d1e0eeab31d969774bd862736539f7840f7e9fe2))
318
+ - **sdk-coin-opeth:** fix recover methods ([13264d8](https://github.com/BitGo/BitGoJS/commit/13264d87b7b0661ca002f55fdd41ba1c66b1e82b))
319
+ - **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
320
+ - **statics:** make corrections for arbeth and opeth ([5dfc405](https://github.com/BitGo/BitGoJS/commit/5dfc405a36fc97b2c902fec44562b169d8013a18))
321
+
322
+ ### Code Refactoring
323
+
324
+ - **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
325
+
326
+ ### Features
327
+
328
+ - **abstract-eth:** add chain id as network identifier ([3ddec05](https://github.com/BitGo/BitGoJS/commit/3ddec05705cff891e46d21743d0ee864d68ab216))
329
+ - **abstract-eth:** add v4 forwarder creation logic ([25faaa3](https://github.com/BitGo/BitGoJS/commit/25faaa33723feb2a4f7ce7209a64841b438a4367))
330
+ - **sdk-coin-opeth:** add opeth sdk skeleton ([42fbefa](https://github.com/BitGo/BitGoJS/commit/42fbefa54f22fa5bdaef4150ef3a643843ec8684))
331
+ - **sdk-coin-opeth:** add opeth tokens ([1e50329](https://github.com/BitGo/BitGoJS/commit/1e503292d26cb46ca3e2336a8514018ab09f6759))
332
+
333
+ ### BREAKING CHANGES
334
+
335
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
336
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
337
+ getCustomChainName method is removed from Polygon class because a common
338
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
339
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
340
+ and needs to be passed to derive the Eth common object from the chainId.
341
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
342
+ it can be used for other EthLike coins. getBaseFactor method in Eth
343
+ and Polygon class returns number instead of string just to align with
344
+ AbstractEthLikeCoin
345
+ Ticket: WIN-1012
346
+
347
+ # 15.0.0 (2024-01-30)
348
+
349
+ ### Bug Fixes
350
+
351
+ - **abstract-eth:** fix chainid related changes ([c3a21c4](https://github.com/BitGo/BitGoJS/commit/c3a21c4cc470f2147c80e235607011bd4896f911))
352
+ - **abstract-eth:** fix issues related to chainid ([9114b1b](https://github.com/BitGo/BitGoJS/commit/9114b1b95ca0929d2d1ef5b33ba4f35e1184b5c7))
353
+ - add opeth token support to register ([577ba12](https://github.com/BitGo/BitGoJS/commit/577ba12e3999124036fb880da32dec6f7380d1b9))
354
+ - **sdk-coin-opeth:** enable chainid change for opeth ([d1e0eea](https://github.com/BitGo/BitGoJS/commit/d1e0eeab31d969774bd862736539f7840f7e9fe2))
355
+ - **sdk-coin-opeth:** fix recover methods ([13264d8](https://github.com/BitGo/BitGoJS/commit/13264d87b7b0661ca002f55fdd41ba1c66b1e82b))
356
+ - **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
357
+ - **statics:** make corrections for arbeth and opeth ([5dfc405](https://github.com/BitGo/BitGoJS/commit/5dfc405a36fc97b2c902fec44562b169d8013a18))
358
+
359
+ ### Code Refactoring
360
+
361
+ - **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
362
+
363
+ ### Features
364
+
365
+ - **abstract-eth:** add chain id as network identifier ([3ddec05](https://github.com/BitGo/BitGoJS/commit/3ddec05705cff891e46d21743d0ee864d68ab216))
366
+ - **sdk-coin-opeth:** add opeth sdk skeleton ([42fbefa](https://github.com/BitGo/BitGoJS/commit/42fbefa54f22fa5bdaef4150ef3a643843ec8684))
367
+ - **sdk-coin-opeth:** add opeth tokens ([1e50329](https://github.com/BitGo/BitGoJS/commit/1e503292d26cb46ca3e2336a8514018ab09f6759))
368
+
369
+ ### BREAKING CHANGES
370
+
371
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
372
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
373
+ getCustomChainName method is removed from Polygon class because a common
374
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
375
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
376
+ and needs to be passed to derive the Eth common object from the chainId.
377
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
378
+ it can be used for other EthLike coins. getBaseFactor method in Eth
379
+ and Polygon class returns number instead of string just to align with
380
+ AbstractEthLikeCoin
381
+ Ticket: WIN-1012
382
+
383
+ # 14.0.0 (2024-01-26)
384
+
385
+ ### Bug Fixes
386
+
387
+ - **abstract-eth:** fix chainid related changes ([c3a21c4](https://github.com/BitGo/BitGoJS/commit/c3a21c4cc470f2147c80e235607011bd4896f911))
388
+ - **abstract-eth:** fix issues related to chainid ([9114b1b](https://github.com/BitGo/BitGoJS/commit/9114b1b95ca0929d2d1ef5b33ba4f35e1184b5c7))
389
+ - add opeth token support to register ([577ba12](https://github.com/BitGo/BitGoJS/commit/577ba12e3999124036fb880da32dec6f7380d1b9))
390
+ - **sdk-coin-opeth:** enable chainid change for opeth ([d1e0eea](https://github.com/BitGo/BitGoJS/commit/d1e0eeab31d969774bd862736539f7840f7e9fe2))
391
+ - **sdk-coin-opeth:** fix recover methods ([13264d8](https://github.com/BitGo/BitGoJS/commit/13264d87b7b0661ca002f55fdd41ba1c66b1e82b))
392
+ - **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
393
+ - **statics:** make corrections for arbeth and opeth ([5dfc405](https://github.com/BitGo/BitGoJS/commit/5dfc405a36fc97b2c902fec44562b169d8013a18))
394
+
395
+ ### Code Refactoring
396
+
397
+ - **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
398
+
399
+ ### Features
400
+
401
+ - **abstract-eth:** add chain id as network identifier ([3ddec05](https://github.com/BitGo/BitGoJS/commit/3ddec05705cff891e46d21743d0ee864d68ab216))
402
+ - **sdk-coin-opeth:** add opeth sdk skeleton ([42fbefa](https://github.com/BitGo/BitGoJS/commit/42fbefa54f22fa5bdaef4150ef3a643843ec8684))
403
+ - **sdk-coin-opeth:** add opeth tokens ([1e50329](https://github.com/BitGo/BitGoJS/commit/1e503292d26cb46ca3e2336a8514018ab09f6759))
404
+
405
+ ### BREAKING CHANGES
406
+
407
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
408
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
409
+ getCustomChainName method is removed from Polygon class because a common
410
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
411
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
412
+ and needs to be passed to derive the Eth common object from the chainId.
413
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
414
+ it can be used for other EthLike coins. getBaseFactor method in Eth
415
+ and Polygon class returns number instead of string just to align with
416
+ AbstractEthLikeCoin
417
+ Ticket: WIN-1012
418
+
419
+ # 13.0.0 (2024-01-26)
420
+
421
+ ### Bug Fixes
422
+
423
+ - **abstract-eth:** fix chainid related changes ([c3a21c4](https://github.com/BitGo/BitGoJS/commit/c3a21c4cc470f2147c80e235607011bd4896f911))
424
+ - **abstract-eth:** fix issues related to chainid ([9114b1b](https://github.com/BitGo/BitGoJS/commit/9114b1b95ca0929d2d1ef5b33ba4f35e1184b5c7))
425
+ - add opeth token support to register ([577ba12](https://github.com/BitGo/BitGoJS/commit/577ba12e3999124036fb880da32dec6f7380d1b9))
426
+ - **sdk-coin-opeth:** enable chainid change for opeth ([d1e0eea](https://github.com/BitGo/BitGoJS/commit/d1e0eeab31d969774bd862736539f7840f7e9fe2))
427
+ - **sdk-coin-opeth:** fix recover methods ([13264d8](https://github.com/BitGo/BitGoJS/commit/13264d87b7b0661ca002f55fdd41ba1c66b1e82b))
428
+ - **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
429
+ - **statics:** make corrections for arbeth and opeth ([5dfc405](https://github.com/BitGo/BitGoJS/commit/5dfc405a36fc97b2c902fec44562b169d8013a18))
430
+
431
+ ### Code Refactoring
432
+
433
+ - **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
434
+
435
+ ### Features
436
+
437
+ - **abstract-eth:** add chain id as network identifier ([3ddec05](https://github.com/BitGo/BitGoJS/commit/3ddec05705cff891e46d21743d0ee864d68ab216))
438
+ - **sdk-coin-opeth:** add opeth sdk skeleton ([42fbefa](https://github.com/BitGo/BitGoJS/commit/42fbefa54f22fa5bdaef4150ef3a643843ec8684))
439
+ - **sdk-coin-opeth:** add opeth tokens ([1e50329](https://github.com/BitGo/BitGoJS/commit/1e503292d26cb46ca3e2336a8514018ab09f6759))
440
+
441
+ ### BREAKING CHANGES
442
+
443
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
444
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
445
+ getCustomChainName method is removed from Polygon class because a common
446
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
447
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
448
+ and needs to be passed to derive the Eth common object from the chainId.
449
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
450
+ it can be used for other EthLike coins. getBaseFactor method in Eth
451
+ and Polygon class returns number instead of string just to align with
452
+ AbstractEthLikeCoin
453
+ Ticket: WIN-1012
454
+
455
+ # 12.0.0 (2024-01-25)
456
+
457
+ ### Bug Fixes
458
+
459
+ - **abstract-eth:** fix chainid related changes ([c3a21c4](https://github.com/BitGo/BitGoJS/commit/c3a21c4cc470f2147c80e235607011bd4896f911))
460
+ - **abstract-eth:** fix issues related to chainid ([9114b1b](https://github.com/BitGo/BitGoJS/commit/9114b1b95ca0929d2d1ef5b33ba4f35e1184b5c7))
461
+ - add opeth token support to register ([577ba12](https://github.com/BitGo/BitGoJS/commit/577ba12e3999124036fb880da32dec6f7380d1b9))
462
+ - **sdk-coin-opeth:** enable chainid change for opeth ([d1e0eea](https://github.com/BitGo/BitGoJS/commit/d1e0eeab31d969774bd862736539f7840f7e9fe2))
463
+ - **sdk-coin-opeth:** fix recover methods ([13264d8](https://github.com/BitGo/BitGoJS/commit/13264d87b7b0661ca002f55fdd41ba1c66b1e82b))
464
+ - **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
465
+ - **statics:** make corrections for arbeth and opeth ([5dfc405](https://github.com/BitGo/BitGoJS/commit/5dfc405a36fc97b2c902fec44562b169d8013a18))
466
+
467
+ ### Code Refactoring
468
+
469
+ - **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
470
+
471
+ ### Features
472
+
473
+ - **abstract-eth:** add chain id as network identifier ([3ddec05](https://github.com/BitGo/BitGoJS/commit/3ddec05705cff891e46d21743d0ee864d68ab216))
474
+ - **sdk-coin-opeth:** add opeth sdk skeleton ([42fbefa](https://github.com/BitGo/BitGoJS/commit/42fbefa54f22fa5bdaef4150ef3a643843ec8684))
475
+ - **sdk-coin-opeth:** add opeth tokens ([1e50329](https://github.com/BitGo/BitGoJS/commit/1e503292d26cb46ca3e2336a8514018ab09f6759))
476
+
477
+ ### BREAKING CHANGES
478
+
479
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
480
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
481
+ getCustomChainName method is removed from Polygon class because a common
482
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
483
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
484
+ and needs to be passed to derive the Eth common object from the chainId.
485
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
486
+ it can be used for other EthLike coins. getBaseFactor method in Eth
487
+ and Polygon class returns number instead of string just to align with
488
+ AbstractEthLikeCoin
489
+ Ticket: WIN-1012
490
+
491
+ # 11.0.0 (2024-01-22)
492
+
493
+ ### Bug Fixes
494
+
495
+ - **abstract-eth:** fix chainid related changes ([c3a21c4](https://github.com/BitGo/BitGoJS/commit/c3a21c4cc470f2147c80e235607011bd4896f911))
496
+ - **abstract-eth:** fix issues related to chainid ([9114b1b](https://github.com/BitGo/BitGoJS/commit/9114b1b95ca0929d2d1ef5b33ba4f35e1184b5c7))
497
+ - add opeth token support to register ([577ba12](https://github.com/BitGo/BitGoJS/commit/577ba12e3999124036fb880da32dec6f7380d1b9))
498
+ - **sdk-coin-opeth:** enable chainid change for opeth ([d1e0eea](https://github.com/BitGo/BitGoJS/commit/d1e0eeab31d969774bd862736539f7840f7e9fe2))
499
+ - **sdk-coin-opeth:** fix recover methods ([13264d8](https://github.com/BitGo/BitGoJS/commit/13264d87b7b0661ca002f55fdd41ba1c66b1e82b))
500
+ - **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
501
+ - **statics:** make corrections for arbeth and opeth ([5dfc405](https://github.com/BitGo/BitGoJS/commit/5dfc405a36fc97b2c902fec44562b169d8013a18))
502
+
503
+ ### Code Refactoring
504
+
505
+ - **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
506
+
507
+ ### Features
508
+
509
+ - **abstract-eth:** add chain id as network identifier ([3ddec05](https://github.com/BitGo/BitGoJS/commit/3ddec05705cff891e46d21743d0ee864d68ab216))
510
+ - **sdk-coin-opeth:** add opeth sdk skeleton ([42fbefa](https://github.com/BitGo/BitGoJS/commit/42fbefa54f22fa5bdaef4150ef3a643843ec8684))
511
+ - **sdk-coin-opeth:** add opeth tokens ([1e50329](https://github.com/BitGo/BitGoJS/commit/1e503292d26cb46ca3e2336a8514018ab09f6759))
512
+
513
+ ### BREAKING CHANGES
514
+
515
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
516
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
517
+ getCustomChainName method is removed from Polygon class because a common
518
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
519
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
520
+ and needs to be passed to derive the Eth common object from the chainId.
521
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
522
+ it can be used for other EthLike coins. getBaseFactor method in Eth
523
+ and Polygon class returns number instead of string just to align with
524
+ AbstractEthLikeCoin
525
+ Ticket: WIN-1012
526
+
527
+ # 10.0.0 (2024-01-09)
528
+
529
+ ### Bug Fixes
530
+
531
+ - **abstract-eth:** fix chainid related changes ([c3a21c4](https://github.com/BitGo/BitGoJS/commit/c3a21c4cc470f2147c80e235607011bd4896f911))
532
+ - **abstract-eth:** fix issues related to chainid ([9114b1b](https://github.com/BitGo/BitGoJS/commit/9114b1b95ca0929d2d1ef5b33ba4f35e1184b5c7))
533
+ - **sdk-coin-opeth:** enable chainid change for opeth ([d1e0eea](https://github.com/BitGo/BitGoJS/commit/d1e0eeab31d969774bd862736539f7840f7e9fe2))
534
+ - **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
535
+ - **statics:** make corrections for arbeth and opeth ([5dfc405](https://github.com/BitGo/BitGoJS/commit/5dfc405a36fc97b2c902fec44562b169d8013a18))
536
+
537
+ ### Code Refactoring
538
+
539
+ - **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
540
+
541
+ ### Features
542
+
543
+ - **abstract-eth:** add chain id as network identifier ([3ddec05](https://github.com/BitGo/BitGoJS/commit/3ddec05705cff891e46d21743d0ee864d68ab216))
544
+ - **sdk-coin-opeth:** add opeth sdk skeleton ([42fbefa](https://github.com/BitGo/BitGoJS/commit/42fbefa54f22fa5bdaef4150ef3a643843ec8684))
545
+ - **sdk-coin-opeth:** add opeth tokens ([1e50329](https://github.com/BitGo/BitGoJS/commit/1e503292d26cb46ca3e2336a8514018ab09f6759))
546
+
547
+ ### BREAKING CHANGES
548
+
549
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
550
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
551
+ getCustomChainName method is removed from Polygon class because a common
552
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
553
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
554
+ and needs to be passed to derive the Eth common object from the chainId.
555
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
556
+ it can be used for other EthLike coins. getBaseFactor method in Eth
557
+ and Polygon class returns number instead of string just to align with
558
+ AbstractEthLikeCoin
559
+ Ticket: WIN-1012
560
+
561
+ # 9.0.0 (2024-01-03)
562
+
563
+ ### Bug Fixes
564
+
565
+ - **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
566
+ - **statics:** make corrections for arbeth and opeth ([5dfc405](https://github.com/BitGo/BitGoJS/commit/5dfc405a36fc97b2c902fec44562b169d8013a18))
567
+
568
+ ### Code Refactoring
569
+
570
+ - **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
571
+
572
+ ### Features
573
+
574
+ - **abstract-eth:** add chain id as network identifier ([3ddec05](https://github.com/BitGo/BitGoJS/commit/3ddec05705cff891e46d21743d0ee864d68ab216))
575
+ - **sdk-coin-opeth:** add opeth sdk skeleton ([42fbefa](https://github.com/BitGo/BitGoJS/commit/42fbefa54f22fa5bdaef4150ef3a643843ec8684))
576
+ - **sdk-coin-opeth:** add opeth tokens ([1e50329](https://github.com/BitGo/BitGoJS/commit/1e503292d26cb46ca3e2336a8514018ab09f6759))
577
+
578
+ ### BREAKING CHANGES
579
+
580
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
581
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
582
+ getCustomChainName method is removed from Polygon class because a common
583
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
584
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
585
+ and needs to be passed to derive the Eth common object from the chainId.
586
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
587
+ it can be used for other EthLike coins. getBaseFactor method in Eth
588
+ and Polygon class returns number instead of string just to align with
589
+ AbstractEthLikeCoin
590
+ Ticket: WIN-1012
591
+
592
+ # 8.0.0 (2023-12-18)
593
+
594
+ ### Bug Fixes
595
+
596
+ - **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
597
+ - **statics:** make corrections for arbeth and opeth ([5dfc405](https://github.com/BitGo/BitGoJS/commit/5dfc405a36fc97b2c902fec44562b169d8013a18))
598
+
599
+ ### Code Refactoring
600
+
601
+ - **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
602
+
603
+ ### Features
604
+
605
+ - **sdk-coin-opeth:** add opeth sdk skeleton ([42fbefa](https://github.com/BitGo/BitGoJS/commit/42fbefa54f22fa5bdaef4150ef3a643843ec8684))
606
+ - **sdk-coin-opeth:** add opeth tokens ([1e50329](https://github.com/BitGo/BitGoJS/commit/1e503292d26cb46ca3e2336a8514018ab09f6759))
607
+
608
+ ### BREAKING CHANGES
609
+
610
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
611
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
612
+ getCustomChainName method is removed from Polygon class because a common
613
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
614
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
615
+ and needs to be passed to derive the Eth common object from the chainId.
616
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
617
+ it can be used for other EthLike coins. getBaseFactor method in Eth
618
+ and Polygon class returns number instead of string just to align with
619
+ AbstractEthLikeCoin
620
+ Ticket: WIN-1012
621
+
622
+ # 7.0.0 (2023-12-12)
623
+
624
+ ### Bug Fixes
625
+
626
+ - **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
627
+ - **statics:** make corrections for arbeth and opeth ([5dfc405](https://github.com/BitGo/BitGoJS/commit/5dfc405a36fc97b2c902fec44562b169d8013a18))
628
+
629
+ ### Code Refactoring
630
+
631
+ - **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
632
+
633
+ ### Features
634
+
635
+ - **sdk-coin-opeth:** add opeth sdk skeleton ([42fbefa](https://github.com/BitGo/BitGoJS/commit/42fbefa54f22fa5bdaef4150ef3a643843ec8684))
636
+ - **sdk-coin-opeth:** add opeth tokens ([1e50329](https://github.com/BitGo/BitGoJS/commit/1e503292d26cb46ca3e2336a8514018ab09f6759))
637
+
638
+ ### BREAKING CHANGES
639
+
640
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
641
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
642
+ getCustomChainName method is removed from Polygon class because a common
643
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
644
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
645
+ and needs to be passed to derive the Eth common object from the chainId.
646
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
647
+ it can be used for other EthLike coins. getBaseFactor method in Eth
648
+ and Polygon class returns number instead of string just to align with
649
+ AbstractEthLikeCoin
650
+ Ticket: WIN-1012
651
+
6
652
  # 6.0.0 (2023-12-09)
7
653
 
8
654
  ### Bug Fixes
@@ -1,5 +1,6 @@
1
1
  export * from './lib';
2
2
  export * from './opeth';
3
3
  export * from './topeth';
4
+ export * from './opethToken';
4
5
  export * from './register';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC"}
package/dist/src/index.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -13,5 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
13
17
  __exportStar(require("./lib"), exports);
14
18
  __exportStar(require("./opeth"), exports);
15
19
  __exportStar(require("./topeth"), exports);
20
+ __exportStar(require("./opethToken"), exports);
16
21
  __exportStar(require("./register"), exports);
17
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBQUEsd0NBQXNCO0FBQ3RCLDBDQUF3QjtBQUN4QiwyQ0FBeUI7QUFDekIsNkNBQTJCIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9saWInO1xuZXhwb3J0ICogZnJvbSAnLi9vcGV0aCc7XG5leHBvcnQgKiBmcm9tICcuL3RvcGV0aCc7XG5leHBvcnQgKiBmcm9tICcuL3JlZ2lzdGVyJztcbiJdfQ==
22
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLHdDQUFzQjtBQUN0QiwwQ0FBd0I7QUFDeEIsMkNBQXlCO0FBQ3pCLCtDQUE2QjtBQUM3Qiw2Q0FBMkIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2xpYic7XG5leHBvcnQgKiBmcm9tICcuL29wZXRoJztcbmV4cG9ydCAqIGZyb20gJy4vdG9wZXRoJztcbmV4cG9ydCAqIGZyb20gJy4vb3BldGhUb2tlbic7XG5leHBvcnQgKiBmcm9tICcuL3JlZ2lzdGVyJztcbiJdfQ==
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -11,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
11
15
  }) : function(o, v) {
12
16
  o["default"] = v;
13
17
  });
14
- var __importStar = (this && this.__importStar) || function (mod) {
15
- if (mod && mod.__esModule) return mod;
16
- var result = {};
17
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
- __setModuleDefault(result, mod);
19
- return result;
20
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
21
35
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
22
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
23
37
  };
@@ -33,4 +47,4 @@ var abstract_eth_1 = require("@bitgo-beta/abstract-eth");
33
47
  Object.defineProperty(exports, "Transaction", { enumerable: true, get: function () { return abstract_eth_1.Transaction; } });
34
48
  Object.defineProperty(exports, "KeyPair", { enumerable: true, get: function () { return abstract_eth_1.KeyPair; } });
35
49
  __exportStar(require("./walletUtil"), exports);
36
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbGliL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSwrQ0FBaUM7QUFLeEIsc0JBQUs7QUFIZCwyREFBMEQ7QUFBakQsd0hBQUEsa0JBQWtCLE9BQUE7QUFDM0IscURBQW9EO0FBQTNDLGtIQUFBLGVBQWUsT0FBQTtBQUN4Qix5REFBZ0U7QUFBdkQsMkdBQUEsV0FBVyxPQUFBO0FBQUUsdUdBQUEsT0FBTyxPQUFBO0FBRTdCLCtDQUE2QiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCAqIGFzIFV0aWxzIGZyb20gJy4vdXRpbHMnO1xuXG5leHBvcnQgeyBUcmFuc2FjdGlvbkJ1aWxkZXIgfSBmcm9tICcuL3RyYW5zYWN0aW9uQnVpbGRlcic7XG5leHBvcnQgeyBUcmFuc2ZlckJ1aWxkZXIgfSBmcm9tICcuL3RyYW5zZmVyQnVpbGRlcic7XG5leHBvcnQgeyBUcmFuc2FjdGlvbiwgS2V5UGFpciB9IGZyb20gJ0BiaXRnby1iZXRhL2Fic3RyYWN0LWV0aCc7XG5leHBvcnQgeyBVdGlscyB9O1xuZXhwb3J0ICogZnJvbSAnLi93YWxsZXRVdGlsJztcbiJdfQ==
50
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9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mB,SAAQ,yBAAyB;IAC/D,SAAS,CAAC,SAAS,EAAG,eAAe,CAAC;gBAE1B,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC;IAO7C,kBAAkB;IAClB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,eAAe;IAUxC,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;CAG7B"}
1
+ {"version":3,"file":"transactionBuilder.d.ts","sourceRoot":"","sources":["../../../src/lib/transactionBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAE7D,OAAO,EAAwB,kBAAkB,IAAI,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAGjH,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGpD,qBAAa,kBAAmB,SAAQ,yBAAyB;IAC/D,SAAS,CAAC,SAAS,EAAG,eAAe,CAAC;gBAE1B,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC;IAO7C,kBAAkB;IAClB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,eAAe;IAUxC,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;CAG7B"}
@@ -9,7 +9,7 @@ const walletUtil_1 = require("./walletUtil");
9
9
  class TransactionBuilder extends abstract_eth_1.TransactionBuilder {
10
10
  constructor(_coinConfig) {
11
11
  super(_coinConfig);
12
- this._common = utils_1.getCommon(this._coinConfig.network.type);
12
+ this._common = (0, utils_1.getCommon)(this._coinConfig.network.type);
13
13
  this.transaction = new abstract_eth_1.Transaction(this._coinConfig, this._common);
14
14
  this._walletSimpleByteCode = walletUtil_1.walletSimpleByteCode;
15
15
  }
@@ -28,4 +28,4 @@ class TransactionBuilder extends abstract_eth_1.TransactionBuilder {
28
28
  }
29
29
  }
30
30
  exports.TransactionBuilder = TransactionBuilder;
31
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWx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FRyYW5zYWN0aW9uVHlwZS5TZW5kKSB7XG4gICAgICB0aHJvdyBuZXcgQnVpbGRUcmFuc2FjdGlvbkVycm9yKCdUcmFuc2ZlcnMgY2FuIG9ubHkgYmUgc2V0IGZvciBzZW5kIHRyYW5zYWN0aW9ucycpO1xuICAgIH1cbiAgICBpZiAoIXRoaXMuX3RyYW5zZmVyKSB7XG4gICAgICB0aGlzLl90cmFuc2ZlciA9IG5ldyBUcmFuc2ZlckJ1aWxkZXIoZGF0YSk7XG4gICAgfVxuICAgIHJldHVybiB0aGlzLl90cmFuc2ZlcjtcbiAgfVxuXG4gIHB1YmxpY0tleShrZXk6IHN0cmluZyk6IHZvaWQge1xuICAgIHRoaXMuX3NvdXJjZUtleVBhaXIgPSBuZXcgS2V5UGFpcih7IHB1Yjoga2V5IH0pO1xuICB9XG59XG4iXX0=
@@ -1,6 +1,2 @@
1
- import { TransferBuilder as EthTransferBuilder } from '@bitgo-beta/abstract-eth';
2
- export declare class TransferBuilder extends EthTransferBuilder {
3
- /** @inheritdoc */
4
- protected getNativeOperationHashPrefix(): string;
5
- }
1
+ export { TransferBuilder } from '@bitgo-beta/abstract-eth';
6
2
  //# sourceMappingURL=transferBuilder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transferBuilder.d.ts","sourceRoot":"","sources":["../../../src/lib/transferBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAEjF,qBAAa,eAAgB,SAAQ,kBAAkB;IACrD,kBAAkB;IAClB,SAAS,CAAC,4BAA4B,IAAI,MAAM;CAGjD"}
1
+ {"version":3,"file":"transferBuilder.d.ts","sourceRoot":"","sources":["../../../src/lib/transferBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC"}
@@ -1,12 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TransferBuilder = void 0;
4
- const abstract_eth_1 = require("@bitgo-beta/abstract-eth");
5
- class TransferBuilder extends abstract_eth_1.TransferBuilder {
6
- /** @inheritdoc */
7
- getNativeOperationHashPrefix() {
8
- return 'OPETH';
9
- }
10
- }
11
- exports.TransferBuilder = TransferBuilder;
12
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNmZXJCdWlsZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2xpYi90cmFuc2ZlckJ1aWxkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsMkRBQWlGO0FBRWpGLE1BQWEsZUFBZ0IsU0FBUSw4QkFBa0I7SUFDckQsa0JBQWtCO0lBQ1IsNEJBQTRCO1FBQ3BDLE9BQU8sT0FBTyxDQUFDO0lBQ2pCLENBQUM7Q0FDRjtBQUxELDBDQUtDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgVHJhbnNmZXJCdWlsZGVyIGFzIEV0aFRyYW5zZmVyQnVpbGRlciB9IGZyb20gJ0BiaXRnby1iZXRhL2Fic3RyYWN0LWV0aCc7XG5cbmV4cG9ydCBjbGFzcyBUcmFuc2ZlckJ1aWxkZXIgZXh0ZW5kcyBFdGhUcmFuc2ZlckJ1aWxkZXIge1xuICAvKiogQGluaGVyaXRkb2MgKi9cbiAgcHJvdGVjdGVkIGdldE5hdGl2ZU9wZXJhdGlvbkhhc2hQcmVmaXgoKTogc3RyaW5nIHtcbiAgICByZXR1cm4gJ09QRVRIJztcbiAgfVxufVxuIl19
4
+ var abstract_eth_1 = require("@bitgo-beta/abstract-eth");
5
+ Object.defineProperty(exports, "TransferBuilder", { enumerable: true, get: function () { return abstract_eth_1.TransferBuilder; } });
6
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNmZXJCdWlsZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2xpYi90cmFuc2ZlckJ1aWxkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEseURBQTJEO0FBQWxELCtHQUFBLGVBQWUsT0FBQSIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IFRyYW5zZmVyQnVpbGRlciB9IGZyb20gJ0BiaXRnby1iZXRhL2Fic3RyYWN0LWV0aCc7XG4iXX0=
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getCommon = void 0;
3
+ exports.getCommon = getCommon;
4
4
  const statics_1 = require("@bitgo-beta/statics");
5
5
  const sdk_core_1 = require("@bitgo-beta/sdk-core");
6
6
  const resources_1 = require("./resources");
@@ -19,5 +19,4 @@ function getCommon(network) {
19
19
  }
20
20
  return common;
21
21
  }
22
- exports.getCommon = getCommon;
23
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbGliL3V0aWxzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLGlEQUFrRDtBQUVsRCxtREFBK0Q7QUFDL0QsMkNBQTJEO0FBRTNELE1BQU0sT0FBTyxHQUFxQyxJQUFJLEdBQUcsQ0FBOEI7SUFDckYsQ0FBQyxxQkFBVyxDQUFDLE9BQU8sRUFBRSx5QkFBYSxDQUFDO0lBQ3BDLENBQUMscUJBQVcsQ0FBQyxPQUFPLEVBQUUseUJBQWEsQ0FBQztDQUNyQyxDQUFDLENBQUM7QUFFSDs7O0dBR0c7QUFDSCxTQUFnQixTQUFTLENBQUMsT0FBb0I7SUFDNUMsTUFBTSxNQUFNLEdBQUcsT0FBTyxDQUFDLEdBQUcsQ0FBQyxPQUFPLENBQUMsQ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zYWN0aW9uRXJyb3IgfSBmcm9tICdAYml0Z28tYmV0YS9zZGstY29yZSc7XG5pbXBvcnQgeyB0ZXN0bmV0Q29tbW9uLCBtYWlubmV0Q29tbW9uIH0gZnJvbSAnLi9yZXNvdXJjZXMnO1xuXG5jb25zdCBjb21tb25zOiBNYXA8TmV0d29ya1R5cGUsIEV0aGVyZXVtQ29tbW9uPiA9IG5ldyBNYXA8TmV0d29ya1R5cGUsIEV0aGVyZXVtQ29tbW9uPihbXG4gIFtOZXR3b3JrVHlwZS5NQUlOTkVULCBtYWlubmV0Q29tbW9uXSxcbiAgW05ldHdvcmtUeXBlLlRFU1RORVQsIHRlc3RuZXRDb21tb25dLFxuXSk7XG5cbi8qKlxuICogQHBhcmFtIHtOZXR3b3JrVHlwZX0gbmV0d29yayBlaXRoZXIgbWFpbm5ldCBvciB0ZXN0bmV0XG4gKiBAcmV0dXJucyB7RXRoZXJldW1Db21tb259IEV0aGVyZXVtIGNvbW1vbiBjb25maWd1cmF0aW9uIG9iamVjdFxuICovXG5leHBvcnQgZnVuY3Rpb24gZ2V0Q29tbW9uKG5ldHdvcms6IE5ldHdvcmtUeXBlKTogRXRoZXJldW1Db21tb24ge1xuICBjb25zdCBjb21tb24gPSBjb21tb25zLmdldChuZXR3b3JrKTtcbiAgaWYgKCFjb21tb24pIHtcbiAgICB0aHJvdyBuZXcgSW52YWxpZFRyYW5zYWN0aW9uRXJyb3IoJ01pc3NpbmcgbmV0d29yayBjb21tb24gY29uZmlndXJhdGlvbicpO1xuICB9XG4gIHJldHVybiBjb21tb247XG59XG4iXX0=
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @prettier
3
+ */
1
4
  import { BaseCoin, BitGoBase } from '@bitgo-beta/sdk-core';
2
5
  import { BaseCoin as StaticsBaseCoin } from '@bitgo-beta/statics';
3
6
  import { AbstractEthLikeNewCoins, TransactionBuilder as EthLikeTransactionBuilder } from '@bitgo-beta/abstract-eth';
@@ -6,10 +9,17 @@ export declare class Opeth extends AbstractEthLikeNewCoins {
6
9
  static createInstance(bitgo: BitGoBase, staticsCoin?: Readonly<StaticsBaseCoin>): BaseCoin;
7
10
  protected getTransactionBuilder(): EthLikeTransactionBuilder;
8
11
  /**
9
- * Make a query to Arbiscan for information such as balance, token balance, solidity calls
12
+ * Make a query to Optimism Etherscan for information such as balance, token balance, solidity calls
10
13
  * @param {Object} query key-value pairs of parameters to append after /api
11
- * @returns {Promise<Object>} response from Arbiscan
14
+ * @returns {Promise<Object>} response from Optimism Etherscan
12
15
  */
13
16
  recoveryBlockchainExplorerQuery(query: Record<string, string>): Promise<Record<string, unknown>>;
17
+ /**
18
+ * Check whether gas limit passed in by user are within our max and min bounds
19
+ * If they are not set, set them to the defaults
20
+ * @param {number} userGasLimit user defined gas limit
21
+ * @returns {number} the gas limit to use for this transaction
22
+ */
23
+ setGasLimit(userGasLimit?: number): number;
14
24
  }
15
25
  //# sourceMappingURL=opeth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"opeth.d.ts","sourceRoot":"","sources":["../../src/opeth.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAU,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,QAAQ,IAAI,eAAe,EAAS,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,IAAI,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAGpH,qBAAa,KAAM,SAAQ,uBAAuB;IAChD,SAAS,aAAa,KAAK,EAAE,SAAS,EAAE,WAAW,CAAC,EAAE,QAAQ,CAAC,eAAe,CAAC;IAI/E,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,SAAS,EAAE,WAAW,CAAC,EAAE,QAAQ,CAAC,eAAe,CAAC,GAAG,QAAQ;IAI1F,SAAS,CAAC,qBAAqB,IAAI,yBAAyB;IAI5D;;;;OAIG;IACG,+BAA+B,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAgBvG"}
1
+ {"version":3,"file":"opeth.d.ts","sourceRoot":"","sources":["../../src/opeth.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAU,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,QAAQ,IAAI,eAAe,EAAwB,MAAM,qBAAqB,CAAC;AACxF,OAAO,EACL,uBAAuB,EACvB,kBAAkB,IAAI,yBAAyB,EAEhD,MAAM,0BAA0B,CAAC;AAGlC,qBAAa,KAAM,SAAQ,uBAAuB;IAChD,SAAS,aAAa,KAAK,EAAE,SAAS,EAAE,WAAW,CAAC,EAAE,QAAQ,CAAC,eAAe,CAAC;IAI/E,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,SAAS,EAAE,WAAW,CAAC,EAAE,QAAQ,CAAC,eAAe,CAAC,GAAG,QAAQ;IAI1F,SAAS,CAAC,qBAAqB,IAAI,yBAAyB;IAI5D;;;;OAIG;IACG,+BAA+B,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAMtG;;;;;OAKG;IACH,WAAW,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM;CAW3C"}
package/dist/src/opeth.js CHANGED
@@ -1,10 +1,9 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.Opeth = void 0;
7
- const superagent_1 = __importDefault(require("superagent"));
4
+ /**
5
+ * @prettier
6
+ */
8
7
  const sdk_core_1 = require("@bitgo-beta/sdk-core");
9
8
  const statics_1 = require("@bitgo-beta/statics");
10
9
  const abstract_eth_1 = require("@bitgo-beta/abstract-eth");
@@ -20,24 +19,32 @@ class Opeth extends abstract_eth_1.AbstractEthLikeNewCoins {
20
19
  return new lib_1.TransactionBuilder(statics_1.coins.get(this.getBaseChain()));
21
20
  }
22
21
  /**
23
- * Make a query to Arbiscan for information such as balance, token balance, solidity calls
22
+ * Make a query to Optimism Etherscan for information such as balance, token balance, solidity calls
24
23
  * @param {Object} query key-value pairs of parameters to append after /api
25
- * @returns {Promise<Object>} response from Arbiscan
24
+ * @returns {Promise<Object>} response from Optimism Etherscan
26
25
  */
27
26
  async recoveryBlockchainExplorerQuery(query) {
28
- const token = sdk_core_1.common.Environments[this.bitgo.getEnv()].optimisticEtherscanApiToken;
29
- if (token) {
30
- query.apikey = token;
31
- }
32
- const response = await superagent_1.default.get(sdk_core_1.common.Environments[this.bitgo.getEnv()].arbiscanBaseUrl + '/api').query(query);
33
- if (!response.ok) {
34
- throw new Error('could not reach Optimism Etherscan');
27
+ const apiToken = sdk_core_1.common.Environments[this.bitgo.getEnv()].optimisticEtherscanApiToken;
28
+ const explorerUrl = sdk_core_1.common.Environments[this.bitgo.getEnv()].optimisticEtherscanBaseUrl;
29
+ return await (0, abstract_eth_1.recoveryBlockchainExplorerQuery)(query, explorerUrl, apiToken);
30
+ }
31
+ /**
32
+ * Check whether gas limit passed in by user are within our max and min bounds
33
+ * If they are not set, set them to the defaults
34
+ * @param {number} userGasLimit user defined gas limit
35
+ * @returns {number} the gas limit to use for this transaction
36
+ */
37
+ setGasLimit(userGasLimit) {
38
+ if (!userGasLimit) {
39
+ return statics_1.ethGasConfigs.defaultGasLimit;
35
40
  }
36
- if (response.body.status === '0' && response.body.message === 'NOTOK') {
37
- throw new Error('Optimism Etherscan rate limit reached');
41
+ const gasLimitMax = statics_1.ethGasConfigs.maximumGasLimit;
42
+ const gasLimitMin = statics_1.ethGasConfigs.newEthLikeCoinsMinGasLimit;
43
+ if (userGasLimit < gasLimitMin || userGasLimit > gasLimitMax) {
44
+ throw new Error(`Gas limit must be between ${gasLimitMin} and ${gasLimitMax}`);
38
45
  }
39
- return response.body;
46
+ return userGasLimit;
40
47
  }
41
48
  }
42
49
  exports.Opeth = Opeth;
43
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3BldGguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvb3BldGgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEsNERBQWlDO0FBQ2pDLG1EQUFtRTtBQUNuRSxpREFBeUU7QUFDekUsMkRBQW9IO0FBQ3BILCtCQUEyQztBQUUzQyxNQUFhLEtBQU0sU0FBUSxzQ0FBdUI7SUFDaEQsWUFBc0IsS0FBZ0IsRUFBRSxXQUF1QztRQUM3RSxLQUFLLENBQUMsS0FBSyxFQUFFLFdBQVcsQ0FBQyxDQUFDO0lBQzVCLENBQUM7SUFFRCxNQUFNLENBQUMsY0FBYyxDQUFDLEtBQWdCLEVBQUUsV0FBdUM7UUFDN0UsT0FBTyxJQUFJLEtBQUssQ0FBQyxLQUFLLEVBQUUsV0FBVyxDQUFDLENBQUM7SUFDdkMsQ0FBQztJQUVTLHFCQUFxQjtRQUM3QixPQUFPLElBQUksd0JBQWtCLENBQUMsZUFBSyxDQUFDLEdBQUcsQ0FBQyxJQUFJLENBQUMsWUFBWSxFQUFFLENBQUMsQ0FBQyxDQUFDO0lBQ2hFLENBQUM7SUFFRDs7OztPQUlHO0lBQ0gsS0FBSyxDQUFDLCtCQUErQixDQUFDLEtBQTZCO1FBQ2pFLE1BQU0sS0FBSyxHQUFHLGlCQUFNLENBQUMsWUFBWSxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsTUFBTSxFQUFFLENBQUMsQ0FBQywyQkFBMkIsQ0FBQztRQUNuRixJQUFJLEtBQUssRUFBRTtZQUNULEtBQUssQ0FBQyxNQUFNLEdBQUcsS0FBSyxDQUFDO1NBQ3RCO1FBQ0QsTUFBTSxRQUFRLEdBQUcsTUFBTSx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4iXX0=
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @prettier
3
+ */
4
+ import { EthLikeTokenConfig } from '@bitgo-beta/statics';
5
+ import { BitGoBase, CoinConstructor, NamedCoinConstructor } from '@bitgo-beta/sdk-core';
6
+ import { CoinNames, EthLikeToken } from '@bitgo-beta/abstract-eth';
7
+ import { TransactionBuilder } from './lib';
8
+ export { EthLikeTokenConfig };
9
+ export declare class OpethToken extends EthLikeToken {
10
+ readonly tokenConfig: EthLikeTokenConfig;
11
+ static coinNames: CoinNames;
12
+ constructor(bitgo: BitGoBase, tokenConfig: EthLikeTokenConfig);
13
+ static createTokenConstructor(config: EthLikeTokenConfig): CoinConstructor;
14
+ static createTokenConstructors(): NamedCoinConstructor[];
15
+ protected getTransactionBuilder(): TransactionBuilder;
16
+ /**
17
+ * Make a query to Optimism Etherscan for information such as balance, token balance, solidity calls
18
+ * @param {Object} query key-value pairs of parameters to append after /api
19
+ * @returns {Promise<Object>} response from Optimism Etherscan
20
+ */
21
+ recoveryBlockchainExplorerQuery(query: Record<string, string>): Promise<Record<string, unknown>>;
22
+ getFullName(): string;
23
+ }
24
+ //# sourceMappingURL=opethToken.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"opethToken.d.ts","sourceRoot":"","sources":["../../src/opethToken.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,kBAAkB,EAAS,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,oBAAoB,EAAU,MAAM,sBAAsB,CAAC;AAChG,OAAO,EAAE,SAAS,EAAE,YAAY,EAAmC,MAAM,0BAA0B,CAAC;AAEpG,OAAO,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,CAAC;AAE9B,qBAAa,UAAW,SAAQ,YAAY;IAC1C,SAAgB,WAAW,EAAE,kBAAkB,CAAC;IAChD,MAAM,CAAC,SAAS,EAAE,SAAS,CAGzB;gBACU,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,kBAAkB;IAG7D,MAAM,CAAC,sBAAsB,CAAC,MAAM,EAAE,kBAAkB,GAAG,eAAe;IAI1E,MAAM,CAAC,uBAAuB,IAAI,oBAAoB,EAAE;IAIxD,SAAS,CAAC,qBAAqB,IAAI,kBAAkB;IAIrD;;;;OAIG;IACG,+BAA+B,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAMtG,WAAW,IAAI,MAAM;CAGtB"}
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OpethToken = void 0;
4
+ /**
5
+ * @prettier
6
+ */
7
+ const statics_1 = require("@bitgo-beta/statics");
8
+ const sdk_core_1 = require("@bitgo-beta/sdk-core");
9
+ const abstract_eth_1 = require("@bitgo-beta/abstract-eth");
10
+ const lib_1 = require("./lib");
11
+ class OpethToken extends abstract_eth_1.EthLikeToken {
12
+ constructor(bitgo, tokenConfig) {
13
+ super(bitgo, tokenConfig, OpethToken.coinNames);
14
+ }
15
+ static createTokenConstructor(config) {
16
+ return super.createTokenConstructor(config, OpethToken.coinNames);
17
+ }
18
+ static createTokenConstructors() {
19
+ return super.createTokenConstructors(OpethToken.coinNames);
20
+ }
21
+ getTransactionBuilder() {
22
+ return new lib_1.TransactionBuilder(statics_1.coins.get(this.getBaseChain()));
23
+ }
24
+ /**
25
+ * Make a query to Optimism Etherscan for information such as balance, token balance, solidity calls
26
+ * @param {Object} query key-value pairs of parameters to append after /api
27
+ * @returns {Promise<Object>} response from Optimism Etherscan
28
+ */
29
+ async recoveryBlockchainExplorerQuery(query) {
30
+ const apiToken = sdk_core_1.common.Environments[this.bitgo.getEnv()].optimisticEtherscanApiToken;
31
+ const explorerUrl = sdk_core_1.common.Environments[this.bitgo.getEnv()].optimisticEtherscanBaseUrl;
32
+ return await (0, abstract_eth_1.recoveryBlockchainExplorerQuery)(query, explorerUrl, apiToken);
33
+ }
34
+ getFullName() {
35
+ return 'Opeth Token';
36
+ }
37
+ }
38
+ exports.OpethToken = OpethToken;
39
+ OpethToken.coinNames = {
40
+ Mainnet: 'opeth',
41
+ Testnet: 'topeth',
42
+ };
43
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3BldGhUb2tlbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9vcGV0aFRva2VuLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBOztHQUVHO0FBQ0gsaURBQWdFO0FBQ2hFLG1EQUFnRztBQUNoRywyREFBb0c7QUFFcEcsK0JBQTJDO0FBRzNDLE1BQWEsVUFBVyxTQUFRLDJCQUFZO0lBTTFDLFlBQVksS0FBZ0IsRUFBRSxXQUErQjtRQUMzRCxLQUFLLENBQUMsS0FBSyxFQUFFLFdBQVcsRUFBRSxVQUFVLENBQUMsU0FBUyxDQUFDLENBQUM7SUFDbEQsQ0FBQztJQUNELE1BQU0sQ0FBQyxzQkFBc0IsQ0FBQyxNQUEwQjtRQUN0RCxPQUFPLEtBQUssQ0FBQyxzQkFBc0IsQ0FBQyxNQUFNLEVBQUUsVUFBVSxDQUFDLFNBQVMsQ0FBQyxDQUFDO0lBQ3BFLENBQUM7SUFFRCxNQUFNLENBQUMsdUJBQXVCO1FBQzVCLE9BQU8sS0FBSyxDQUFDLHVCQUF1QixDQUFDLFVBQVUsQ0FBQyxTQUFTLENBQUMsQ0FBQztJQUM3RCxDQUFDO0lBRVMscUJBQXFCO1FBQzdCLE9BQU8sSUFBSSx3QkFBa0IsQ0FBQyxlQUFLLENBQUMsR0FBRyxDQUFDLElBQUksQ0FBQyxZQUFZLEVBQUUsQ0FBQyxDQUFDLENBQUM7SUFDaEUsQ0FBQztJQUVEOzs7O09BSUc7SUFDSCx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vciBpbmZvcm1hdGlvbiBzdWNoIGFzIGJhbGFuY2UsIHRva2VuIGJhbGFuY2UsIHNvbGlkaXR5IGNhbGxzXG4gICAqIEBwYXJhbSB7T2JqZWN0fSBxdWVyeSBrZXktdmFsdWUgcGFpcnMgb2YgcGFyYW1ldGVycyB0byBhcHBlbmQgYWZ0ZXIgL2FwaVxuICAgKiBAcmV0dXJucyB7UHJvbWlzZTxPYmplY3Q+fSByZXNwb25zZSBmcm9tIE9wdGltaXNtIEV0aGVyc2NhblxuICAgKi9cbiAgYXN5bmMgcmVjb3ZlcnlCbG9ja2NoYWluRXhwbG9yZXJRdWVyeShxdWVyeTogUmVjb3JkPHN0cmluZywgc3RyaW5nPik6IFByb21pc2U8UmVjb3JkPHN0cmluZywgdW5rbm93bj4+IHtcbiAgICBjb25zdCBhcGlUb2tlbiA9IGNvbW1vbi5FbnZpcm9ubWVudHNbdGhpcy5iaXRnby5nZXRFbnYoKV0ub3B0aW1pc3RpY0V0aGVyc2NhbkFwaVRva2VuO1xuICAgIGNvbnN0IGV4cGxvcmVyVXJsID0gY29tbW9uLkVudmlyb25tZW50c1t0aGlzLmJpdGdvLmdldEVudigpXS5vcHRpbWlzdGljRXRoZXJzY2FuQmFzZVVybDtcbiAgICByZXR1cm4gYXdhaXQgcmVjb3ZlcnlCbG9ja2NoYWluRXhwbG9yZXJRdWVyeShxdWVyeSwgZXhwbG9yZXJVcmwgYXMgc3RyaW5nLCBhcGlUb2tlbik7XG4gIH1cblxuICBnZXRGdWxsTmFtZSgpOiBzdHJpbmcge1xuICAgIHJldHVybiAnT3BldGggVG9rZW4nO1xuICB9XG59XG4iXX0=
@@ -1 +1 @@
1
- {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../src/register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAIjD,eAAO,MAAM,QAAQ,QAAS,SAAS,KAAG,IAGzC,CAAC"}
1
+ {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../src/register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAKjD,eAAO,MAAM,QAAQ,QAAS,SAAS,KAAG,IAMzC,CAAC"}
@@ -3,9 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.register = void 0;
4
4
  const opeth_1 = require("./opeth");
5
5
  const topeth_1 = require("./topeth");
6
+ const opethToken_1 = require("./opethToken");
6
7
  const register = (sdk) => {
7
8
  sdk.register('opeth', opeth_1.Opeth.createInstance);
8
9
  sdk.register('topeth', topeth_1.Topeth.createInstance);
10
+ opethToken_1.OpethToken.createTokenConstructors().forEach(({ name, coinConstructor }) => {
11
+ sdk.register(name, coinConstructor);
12
+ });
9
13
  };
10
14
  exports.register = register;
11
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVnaXN0ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcmVnaXN0ZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ0EsbUNBQWdDO0FBQ2hDLHFDQUFrQztBQUUzQixNQUFNLFFBQVEsR0FBRyxDQUFDLEdBQWMsRUFBUSxFQUFFO0lBQy9DLEdBQUcsQ0FBQyxRQUFRLENBQUMsT0FBTyxFQUFFLGFBQUssQ0FBQyxjQUFjLENBQUMsQ0FBQztJQUM1QyxHQUFHLENBQUMsUUFBUSxDQUFDLFFBQVEsRUFBRSxlQUFNLENBQUMsY0FBYyxDQUFDLENBQUM7QUFDaEQsQ0FBQyxDQUFDO0FBSFcsUUFBQSxRQUFRLFlBR25CIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQml0R29CYXNlIH0gZnJvbSAnQGJpdGdvLWJldGEvc2RrLWNvcmUnO1xuaW1wb3J0IHsgT3BldGggfSBmcm9tICcuL29wZXRoJztcbmltcG9ydCB7IFRvc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0IHsgT3BldGggfSBmcm9tICcuL29wZXRoJztcbmltcG9ydCB7IFRvcGV0aCB9IGZyb20gJy4vdG9wZXRoJztcbmltcG9ydCB7IE9wZXRoVG9rZW4gfSBmcm9tICcuL29wZXRoVG9rZW4nO1xuXG5leHBvcnQgY29uc3QgcmVnaXN0ZXIgPSAoc2RrOiBCaXRHb0Jhc2UpOiB2b2lkID0+IHtcbiAgc2RrLnJlZ2lzdGVyKCdvcGV0aCcsIE9wZXRoLmNyZWF0ZUluc3RhbmNlKTtcbiAgc2RrLnJlZ2lzdGVyKCd0b3BldGgnLCBUb3BldGguY3JlYXRlSW5zdGFuY2UpO1xuICBPcGV0aFRva2VuLmNyZWF0ZVRva2VuQ29uc3RydWN0b3JzKCkuZm9yRWFjaCgoeyBuYW1lLCBjb2luQ29uc3RydWN0b3IgfSkgPT4ge1xuICAgIHNkay5yZWdpc3RlcihuYW1lLCBjb2luQ29uc3RydWN0b3IpO1xuICB9KTtcbn07XG4iXX0=
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo-beta/sdk-coin-opeth",
3
- "version": "1.0.1-beta.55",
3
+ "version": "1.0.1-beta.551",
4
4
  "description": "BitGo SDK coin library for Optimism",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
@@ -18,7 +18,7 @@
18
18
  "author": "BitGo SDK Team <sdkteam@bitgo.com>",
19
19
  "license": "MIT",
20
20
  "engines": {
21
- "node": ">=16 <21"
21
+ "node": ">=18 <21"
22
22
  },
23
23
  "repository": {
24
24
  "type": "git",
@@ -40,17 +40,18 @@
40
40
  ]
41
41
  },
42
42
  "dependencies": {
43
- "@bitgo-beta/abstract-eth": "1.0.2-beta.430",
44
- "@bitgo-beta/sdk-core": "8.2.1-beta.199",
45
- "@bitgo-beta/statics": "15.1.1-beta.202",
46
- "@bitgo-beta/utxo-lib": "8.0.3-beta.200",
43
+ "@bitgo-beta/abstract-eth": "1.0.2-beta.929",
44
+ "@bitgo-beta/sdk-core": "8.2.1-beta.699",
45
+ "@bitgo-beta/statics": "15.1.1-beta.702",
46
+ "@bitgo-beta/utxo-lib": "8.0.3-beta.700",
47
47
  "@ethereumjs/common": "^2.6.5",
48
- "superagent": "^3.8.3"
48
+ "ethereumjs-abi": "^0.6.5",
49
+ "ethereumjs-util": "7.1.5"
49
50
  },
50
51
  "devDependencies": {
51
- "@bitgo-beta/sdk-api": "1.10.1-beta.199",
52
- "@bitgo-beta/sdk-test": "^1.2.51",
53
- "secp256k1": "5.0.0"
52
+ "@bitgo-beta/sdk-api": "1.10.1-beta.698",
53
+ "@bitgo-beta/sdk-test": "^8.0.69",
54
+ "secp256k1": "5.0.1"
54
55
  },
55
- "gitHead": "82d098a50404c594a1a2736fd7224fde4ea8dc16"
56
+ "gitHead": "19a591741f22237a1b15f1c7a13c5ad3c634a48b"
56
57
  }