@bitgo-beta/sdk-coin-opeth 1.0.1-beta.39 → 1.0.1-beta.391

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,653 @@
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.28](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-opeth@18.1.27...@bitgo/sdk-coin-opeth@18.1.28) (2024-11-01)
7
+
8
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
9
+
10
+ ## [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)
11
+
12
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
13
+
14
+ ## [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)
15
+
16
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
17
+
18
+ ## [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)
19
+
20
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
21
+
22
+ ## [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)
23
+
24
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
25
+
26
+ ## [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)
27
+
28
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
29
+
30
+ ## [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)
31
+
32
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
33
+
34
+ ## [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)
35
+
36
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
37
+
38
+ ## [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)
39
+
40
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
41
+
42
+ ## [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)
43
+
44
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
45
+
46
+ ## [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)
47
+
48
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
49
+
50
+ ## [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)
51
+
52
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
53
+
54
+ ## [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)
55
+
56
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
57
+
58
+ ## [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)
59
+
60
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
61
+
62
+ ## [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)
63
+
64
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
65
+
66
+ ## [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)
67
+
68
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
69
+
70
+ ## [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)
71
+
72
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
73
+
74
+ ## [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)
75
+
76
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
77
+
78
+ ## [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)
79
+
80
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
81
+
82
+ ## [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)
83
+
84
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
85
+
86
+ ## [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)
87
+
88
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
89
+
90
+ ## [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)
91
+
92
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
93
+
94
+ ## [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)
95
+
96
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
97
+
98
+ ## [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)
99
+
100
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
101
+
102
+ ## [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)
103
+
104
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
105
+
106
+ ## [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)
107
+
108
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
109
+
110
+ ## [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)
111
+
112
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
113
+
114
+ ## [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)
115
+
116
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
117
+
118
+ # [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)
119
+
120
+ ### Bug Fixes
121
+
122
+ - **abstract-eth:** handle absence of batcher contract for native coin ([37ede15](https://github.com/BitGo/BitGoJS/commit/37ede15f2fc8e24f732a6d8f513327650d58590c))
123
+
124
+ ### Features
125
+
126
+ - **abstract-eth:** add support to build tx for CCR of unsupported token ([a6dac7c](https://github.com/BitGo/BitGoJS/commit/a6dac7c00d47acfa3d4dd072b9cfcdf99215a743))
127
+
128
+ ## [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)
129
+
130
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
131
+
132
+ ## [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)
133
+
134
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
135
+
136
+ ## [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)
137
+
138
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
139
+
140
+ ## [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)
141
+
142
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
143
+
144
+ ## [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)
145
+
146
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
147
+
148
+ ## [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)
149
+
150
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
151
+
152
+ # [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)
153
+
154
+ ### Features
155
+
156
+ - **abstract-eth:** support txn bulding for v4 wallet on eth chain ([d8aabea](https://github.com/BitGo/BitGoJS/commit/d8aabead0197072ee5b6c7fb11bd9c379606208d))
157
+
158
+ ### BREAKING CHANGES
159
+
160
+ - **abstract-eth:** Made ChainID mandatory for signAndBuild method
161
+
162
+ ## [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)
163
+
164
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
165
+
166
+ ## [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)
167
+
168
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
169
+
170
+ ## [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)
171
+
172
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
173
+
174
+ ## [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)
175
+
176
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
177
+
178
+ ## [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)
179
+
180
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
181
+
182
+ ## [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)
183
+
184
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
185
+
186
+ ## [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)
187
+
188
+ ### Bug Fixes
189
+
190
+ - **abstract-eth:** fix opeth:op transfers ([37a8f4f](https://github.com/BitGo/BitGoJS/commit/37a8f4f03325d76c32b4764381e3d2d7976dd414))
191
+
192
+ # [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)
193
+
194
+ ### Features
195
+
196
+ - **root:** deprecate node 16 ([d3ec624](https://github.com/BitGo/BitGoJS/commit/d3ec6240bddae2a4ab7fa80c4a16efecc36210bd))
197
+
198
+ ### BREAKING CHANGES
199
+
200
+ - **root:** Node 16 is no longer supported in bitgojs.
201
+ TICKET: WP-1100
202
+
203
+ ## [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)
204
+
205
+ ### Bug Fixes
206
+
207
+ - **statics:** updates decimal for opeth:usdt ([0e98be4](https://github.com/BitGo/BitGoJS/commit/0e98be4e4151b8d64050f475e4fb3302e3b31b75))
208
+
209
+ ## [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)
210
+
211
+ ### Bug Fixes
212
+
213
+ - **abstract-eth:** fixes issue related to gasestimate for ethlike ([190bdb2](https://github.com/BitGo/BitGoJS/commit/190bdb2b225fc2fd87fe536aeb77734f102b9984))
214
+
215
+ ## [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)
216
+
217
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
218
+
219
+ ## [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)
220
+
221
+ **Note:** Version bump only for package @bitgo/sdk-coin-opeth
222
+
223
+ # 16.0.0 (2024-02-19)
224
+
225
+ ### Bug Fixes
226
+
227
+ - **abstract-eth:** change tx encoding method for arb and op ([c11b0dd](https://github.com/BitGo/BitGoJS/commit/c11b0dd4705b0de4aaf9fff26eecf361d78b9f10))
228
+ - **abstract-eth:** fix chainid related changes ([c3a21c4](https://github.com/BitGo/BitGoJS/commit/c3a21c4cc470f2147c80e235607011bd4896f911))
229
+ - **abstract-eth:** fix issues related to chainid ([9114b1b](https://github.com/BitGo/BitGoJS/commit/9114b1b95ca0929d2d1ef5b33ba4f35e1184b5c7))
230
+ - add opeth token support to register ([577ba12](https://github.com/BitGo/BitGoJS/commit/577ba12e3999124036fb880da32dec6f7380d1b9))
231
+ - **sdk-coin-opeth:** enable chainid change for opeth ([d1e0eea](https://github.com/BitGo/BitGoJS/commit/d1e0eeab31d969774bd862736539f7840f7e9fe2))
232
+ - **sdk-coin-opeth:** fix recover methods ([13264d8](https://github.com/BitGo/BitGoJS/commit/13264d87b7b0661ca002f55fdd41ba1c66b1e82b))
233
+ - **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
234
+ - **statics:** make corrections for arbeth and opeth ([5dfc405](https://github.com/BitGo/BitGoJS/commit/5dfc405a36fc97b2c902fec44562b169d8013a18))
235
+
236
+ ### Code Refactoring
237
+
238
+ - **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
239
+
240
+ ### Features
241
+
242
+ - **abstract-eth:** add chain id as network identifier ([3ddec05](https://github.com/BitGo/BitGoJS/commit/3ddec05705cff891e46d21743d0ee864d68ab216))
243
+ - **abstract-eth:** add v4 forwarder creation logic ([25faaa3](https://github.com/BitGo/BitGoJS/commit/25faaa33723feb2a4f7ce7209a64841b438a4367))
244
+ - **sdk-coin-opeth:** add opeth sdk skeleton ([42fbefa](https://github.com/BitGo/BitGoJS/commit/42fbefa54f22fa5bdaef4150ef3a643843ec8684))
245
+ - **sdk-coin-opeth:** add opeth tokens ([1e50329](https://github.com/BitGo/BitGoJS/commit/1e503292d26cb46ca3e2336a8514018ab09f6759))
246
+
247
+ ### BREAKING CHANGES
248
+
249
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
250
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
251
+ getCustomChainName method is removed from Polygon class because a common
252
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
253
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
254
+ and needs to be passed to derive the Eth common object from the chainId.
255
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
256
+ it can be used for other EthLike coins. getBaseFactor method in Eth
257
+ and Polygon class returns number instead of string just to align with
258
+ AbstractEthLikeCoin
259
+ Ticket: WIN-1012
260
+
261
+ # 15.0.0 (2024-01-30)
262
+
263
+ ### Bug Fixes
264
+
265
+ - **abstract-eth:** fix chainid related changes ([c3a21c4](https://github.com/BitGo/BitGoJS/commit/c3a21c4cc470f2147c80e235607011bd4896f911))
266
+ - **abstract-eth:** fix issues related to chainid ([9114b1b](https://github.com/BitGo/BitGoJS/commit/9114b1b95ca0929d2d1ef5b33ba4f35e1184b5c7))
267
+ - add opeth token support to register ([577ba12](https://github.com/BitGo/BitGoJS/commit/577ba12e3999124036fb880da32dec6f7380d1b9))
268
+ - **sdk-coin-opeth:** enable chainid change for opeth ([d1e0eea](https://github.com/BitGo/BitGoJS/commit/d1e0eeab31d969774bd862736539f7840f7e9fe2))
269
+ - **sdk-coin-opeth:** fix recover methods ([13264d8](https://github.com/BitGo/BitGoJS/commit/13264d87b7b0661ca002f55fdd41ba1c66b1e82b))
270
+ - **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
271
+ - **statics:** make corrections for arbeth and opeth ([5dfc405](https://github.com/BitGo/BitGoJS/commit/5dfc405a36fc97b2c902fec44562b169d8013a18))
272
+
273
+ ### Code Refactoring
274
+
275
+ - **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
276
+
277
+ ### Features
278
+
279
+ - **abstract-eth:** add chain id as network identifier ([3ddec05](https://github.com/BitGo/BitGoJS/commit/3ddec05705cff891e46d21743d0ee864d68ab216))
280
+ - **sdk-coin-opeth:** add opeth sdk skeleton ([42fbefa](https://github.com/BitGo/BitGoJS/commit/42fbefa54f22fa5bdaef4150ef3a643843ec8684))
281
+ - **sdk-coin-opeth:** add opeth tokens ([1e50329](https://github.com/BitGo/BitGoJS/commit/1e503292d26cb46ca3e2336a8514018ab09f6759))
282
+
283
+ ### BREAKING CHANGES
284
+
285
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
286
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
287
+ getCustomChainName method is removed from Polygon class because a common
288
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
289
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
290
+ and needs to be passed to derive the Eth common object from the chainId.
291
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
292
+ it can be used for other EthLike coins. getBaseFactor method in Eth
293
+ and Polygon class returns number instead of string just to align with
294
+ AbstractEthLikeCoin
295
+ Ticket: WIN-1012
296
+
297
+ # 14.0.0 (2024-01-26)
298
+
299
+ ### Bug Fixes
300
+
301
+ - **abstract-eth:** fix chainid related changes ([c3a21c4](https://github.com/BitGo/BitGoJS/commit/c3a21c4cc470f2147c80e235607011bd4896f911))
302
+ - **abstract-eth:** fix issues related to chainid ([9114b1b](https://github.com/BitGo/BitGoJS/commit/9114b1b95ca0929d2d1ef5b33ba4f35e1184b5c7))
303
+ - add opeth token support to register ([577ba12](https://github.com/BitGo/BitGoJS/commit/577ba12e3999124036fb880da32dec6f7380d1b9))
304
+ - **sdk-coin-opeth:** enable chainid change for opeth ([d1e0eea](https://github.com/BitGo/BitGoJS/commit/d1e0eeab31d969774bd862736539f7840f7e9fe2))
305
+ - **sdk-coin-opeth:** fix recover methods ([13264d8](https://github.com/BitGo/BitGoJS/commit/13264d87b7b0661ca002f55fdd41ba1c66b1e82b))
306
+ - **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
307
+ - **statics:** make corrections for arbeth and opeth ([5dfc405](https://github.com/BitGo/BitGoJS/commit/5dfc405a36fc97b2c902fec44562b169d8013a18))
308
+
309
+ ### Code Refactoring
310
+
311
+ - **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
312
+
313
+ ### Features
314
+
315
+ - **abstract-eth:** add chain id as network identifier ([3ddec05](https://github.com/BitGo/BitGoJS/commit/3ddec05705cff891e46d21743d0ee864d68ab216))
316
+ - **sdk-coin-opeth:** add opeth sdk skeleton ([42fbefa](https://github.com/BitGo/BitGoJS/commit/42fbefa54f22fa5bdaef4150ef3a643843ec8684))
317
+ - **sdk-coin-opeth:** add opeth tokens ([1e50329](https://github.com/BitGo/BitGoJS/commit/1e503292d26cb46ca3e2336a8514018ab09f6759))
318
+
319
+ ### BREAKING CHANGES
320
+
321
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
322
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
323
+ getCustomChainName method is removed from Polygon class because a common
324
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
325
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
326
+ and needs to be passed to derive the Eth common object from the chainId.
327
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
328
+ it can be used for other EthLike coins. getBaseFactor method in Eth
329
+ and Polygon class returns number instead of string just to align with
330
+ AbstractEthLikeCoin
331
+ Ticket: WIN-1012
332
+
333
+ # 13.0.0 (2024-01-26)
334
+
335
+ ### Bug Fixes
336
+
337
+ - **abstract-eth:** fix chainid related changes ([c3a21c4](https://github.com/BitGo/BitGoJS/commit/c3a21c4cc470f2147c80e235607011bd4896f911))
338
+ - **abstract-eth:** fix issues related to chainid ([9114b1b](https://github.com/BitGo/BitGoJS/commit/9114b1b95ca0929d2d1ef5b33ba4f35e1184b5c7))
339
+ - add opeth token support to register ([577ba12](https://github.com/BitGo/BitGoJS/commit/577ba12e3999124036fb880da32dec6f7380d1b9))
340
+ - **sdk-coin-opeth:** enable chainid change for opeth ([d1e0eea](https://github.com/BitGo/BitGoJS/commit/d1e0eeab31d969774bd862736539f7840f7e9fe2))
341
+ - **sdk-coin-opeth:** fix recover methods ([13264d8](https://github.com/BitGo/BitGoJS/commit/13264d87b7b0661ca002f55fdd41ba1c66b1e82b))
342
+ - **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
343
+ - **statics:** make corrections for arbeth and opeth ([5dfc405](https://github.com/BitGo/BitGoJS/commit/5dfc405a36fc97b2c902fec44562b169d8013a18))
344
+
345
+ ### Code Refactoring
346
+
347
+ - **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
348
+
349
+ ### Features
350
+
351
+ - **abstract-eth:** add chain id as network identifier ([3ddec05](https://github.com/BitGo/BitGoJS/commit/3ddec05705cff891e46d21743d0ee864d68ab216))
352
+ - **sdk-coin-opeth:** add opeth sdk skeleton ([42fbefa](https://github.com/BitGo/BitGoJS/commit/42fbefa54f22fa5bdaef4150ef3a643843ec8684))
353
+ - **sdk-coin-opeth:** add opeth tokens ([1e50329](https://github.com/BitGo/BitGoJS/commit/1e503292d26cb46ca3e2336a8514018ab09f6759))
354
+
355
+ ### BREAKING CHANGES
356
+
357
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
358
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
359
+ getCustomChainName method is removed from Polygon class because a common
360
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
361
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
362
+ and needs to be passed to derive the Eth common object from the chainId.
363
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
364
+ it can be used for other EthLike coins. getBaseFactor method in Eth
365
+ and Polygon class returns number instead of string just to align with
366
+ AbstractEthLikeCoin
367
+ Ticket: WIN-1012
368
+
369
+ # 12.0.0 (2024-01-25)
370
+
371
+ ### Bug Fixes
372
+
373
+ - **abstract-eth:** fix chainid related changes ([c3a21c4](https://github.com/BitGo/BitGoJS/commit/c3a21c4cc470f2147c80e235607011bd4896f911))
374
+ - **abstract-eth:** fix issues related to chainid ([9114b1b](https://github.com/BitGo/BitGoJS/commit/9114b1b95ca0929d2d1ef5b33ba4f35e1184b5c7))
375
+ - add opeth token support to register ([577ba12](https://github.com/BitGo/BitGoJS/commit/577ba12e3999124036fb880da32dec6f7380d1b9))
376
+ - **sdk-coin-opeth:** enable chainid change for opeth ([d1e0eea](https://github.com/BitGo/BitGoJS/commit/d1e0eeab31d969774bd862736539f7840f7e9fe2))
377
+ - **sdk-coin-opeth:** fix recover methods ([13264d8](https://github.com/BitGo/BitGoJS/commit/13264d87b7b0661ca002f55fdd41ba1c66b1e82b))
378
+ - **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
379
+ - **statics:** make corrections for arbeth and opeth ([5dfc405](https://github.com/BitGo/BitGoJS/commit/5dfc405a36fc97b2c902fec44562b169d8013a18))
380
+
381
+ ### Code Refactoring
382
+
383
+ - **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
384
+
385
+ ### Features
386
+
387
+ - **abstract-eth:** add chain id as network identifier ([3ddec05](https://github.com/BitGo/BitGoJS/commit/3ddec05705cff891e46d21743d0ee864d68ab216))
388
+ - **sdk-coin-opeth:** add opeth sdk skeleton ([42fbefa](https://github.com/BitGo/BitGoJS/commit/42fbefa54f22fa5bdaef4150ef3a643843ec8684))
389
+ - **sdk-coin-opeth:** add opeth tokens ([1e50329](https://github.com/BitGo/BitGoJS/commit/1e503292d26cb46ca3e2336a8514018ab09f6759))
390
+
391
+ ### BREAKING CHANGES
392
+
393
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
394
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
395
+ getCustomChainName method is removed from Polygon class because a common
396
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
397
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
398
+ and needs to be passed to derive the Eth common object from the chainId.
399
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
400
+ it can be used for other EthLike coins. getBaseFactor method in Eth
401
+ and Polygon class returns number instead of string just to align with
402
+ AbstractEthLikeCoin
403
+ Ticket: WIN-1012
404
+
405
+ # 11.0.0 (2024-01-22)
406
+
407
+ ### Bug Fixes
408
+
409
+ - **abstract-eth:** fix chainid related changes ([c3a21c4](https://github.com/BitGo/BitGoJS/commit/c3a21c4cc470f2147c80e235607011bd4896f911))
410
+ - **abstract-eth:** fix issues related to chainid ([9114b1b](https://github.com/BitGo/BitGoJS/commit/9114b1b95ca0929d2d1ef5b33ba4f35e1184b5c7))
411
+ - add opeth token support to register ([577ba12](https://github.com/BitGo/BitGoJS/commit/577ba12e3999124036fb880da32dec6f7380d1b9))
412
+ - **sdk-coin-opeth:** enable chainid change for opeth ([d1e0eea](https://github.com/BitGo/BitGoJS/commit/d1e0eeab31d969774bd862736539f7840f7e9fe2))
413
+ - **sdk-coin-opeth:** fix recover methods ([13264d8](https://github.com/BitGo/BitGoJS/commit/13264d87b7b0661ca002f55fdd41ba1c66b1e82b))
414
+ - **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
415
+ - **statics:** make corrections for arbeth and opeth ([5dfc405](https://github.com/BitGo/BitGoJS/commit/5dfc405a36fc97b2c902fec44562b169d8013a18))
416
+
417
+ ### Code Refactoring
418
+
419
+ - **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
420
+
421
+ ### Features
422
+
423
+ - **abstract-eth:** add chain id as network identifier ([3ddec05](https://github.com/BitGo/BitGoJS/commit/3ddec05705cff891e46d21743d0ee864d68ab216))
424
+ - **sdk-coin-opeth:** add opeth sdk skeleton ([42fbefa](https://github.com/BitGo/BitGoJS/commit/42fbefa54f22fa5bdaef4150ef3a643843ec8684))
425
+ - **sdk-coin-opeth:** add opeth tokens ([1e50329](https://github.com/BitGo/BitGoJS/commit/1e503292d26cb46ca3e2336a8514018ab09f6759))
426
+
427
+ ### BREAKING CHANGES
428
+
429
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
430
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
431
+ getCustomChainName method is removed from Polygon class because a common
432
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
433
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
434
+ and needs to be passed to derive the Eth common object from the chainId.
435
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
436
+ it can be used for other EthLike coins. getBaseFactor method in Eth
437
+ and Polygon class returns number instead of string just to align with
438
+ AbstractEthLikeCoin
439
+ Ticket: WIN-1012
440
+
441
+ # 10.0.0 (2024-01-09)
442
+
443
+ ### Bug Fixes
444
+
445
+ - **abstract-eth:** fix chainid related changes ([c3a21c4](https://github.com/BitGo/BitGoJS/commit/c3a21c4cc470f2147c80e235607011bd4896f911))
446
+ - **abstract-eth:** fix issues related to chainid ([9114b1b](https://github.com/BitGo/BitGoJS/commit/9114b1b95ca0929d2d1ef5b33ba4f35e1184b5c7))
447
+ - **sdk-coin-opeth:** enable chainid change for opeth ([d1e0eea](https://github.com/BitGo/BitGoJS/commit/d1e0eeab31d969774bd862736539f7840f7e9fe2))
448
+ - **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
449
+ - **statics:** make corrections for arbeth and opeth ([5dfc405](https://github.com/BitGo/BitGoJS/commit/5dfc405a36fc97b2c902fec44562b169d8013a18))
450
+
451
+ ### Code Refactoring
452
+
453
+ - **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
454
+
455
+ ### Features
456
+
457
+ - **abstract-eth:** add chain id as network identifier ([3ddec05](https://github.com/BitGo/BitGoJS/commit/3ddec05705cff891e46d21743d0ee864d68ab216))
458
+ - **sdk-coin-opeth:** add opeth sdk skeleton ([42fbefa](https://github.com/BitGo/BitGoJS/commit/42fbefa54f22fa5bdaef4150ef3a643843ec8684))
459
+ - **sdk-coin-opeth:** add opeth tokens ([1e50329](https://github.com/BitGo/BitGoJS/commit/1e503292d26cb46ca3e2336a8514018ab09f6759))
460
+
461
+ ### BREAKING CHANGES
462
+
463
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
464
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
465
+ getCustomChainName method is removed from Polygon class because a common
466
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
467
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
468
+ and needs to be passed to derive the Eth common object from the chainId.
469
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
470
+ it can be used for other EthLike coins. getBaseFactor method in Eth
471
+ and Polygon class returns number instead of string just to align with
472
+ AbstractEthLikeCoin
473
+ Ticket: WIN-1012
474
+
475
+ # 9.0.0 (2024-01-03)
476
+
477
+ ### Bug Fixes
478
+
479
+ - **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
480
+ - **statics:** make corrections for arbeth and opeth ([5dfc405](https://github.com/BitGo/BitGoJS/commit/5dfc405a36fc97b2c902fec44562b169d8013a18))
481
+
482
+ ### Code Refactoring
483
+
484
+ - **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
485
+
486
+ ### Features
487
+
488
+ - **abstract-eth:** add chain id as network identifier ([3ddec05](https://github.com/BitGo/BitGoJS/commit/3ddec05705cff891e46d21743d0ee864d68ab216))
489
+ - **sdk-coin-opeth:** add opeth sdk skeleton ([42fbefa](https://github.com/BitGo/BitGoJS/commit/42fbefa54f22fa5bdaef4150ef3a643843ec8684))
490
+ - **sdk-coin-opeth:** add opeth tokens ([1e50329](https://github.com/BitGo/BitGoJS/commit/1e503292d26cb46ca3e2336a8514018ab09f6759))
491
+
492
+ ### BREAKING CHANGES
493
+
494
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
495
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
496
+ getCustomChainName method is removed from Polygon class because a common
497
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
498
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
499
+ and needs to be passed to derive the Eth common object from the chainId.
500
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
501
+ it can be used for other EthLike coins. getBaseFactor method in Eth
502
+ and Polygon class returns number instead of string just to align with
503
+ AbstractEthLikeCoin
504
+ Ticket: WIN-1012
505
+
506
+ # 8.0.0 (2023-12-18)
507
+
508
+ ### Bug Fixes
509
+
510
+ - **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
511
+ - **statics:** make corrections for arbeth and opeth ([5dfc405](https://github.com/BitGo/BitGoJS/commit/5dfc405a36fc97b2c902fec44562b169d8013a18))
512
+
513
+ ### Code Refactoring
514
+
515
+ - **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
516
+
517
+ ### Features
518
+
519
+ - **sdk-coin-opeth:** add opeth sdk skeleton ([42fbefa](https://github.com/BitGo/BitGoJS/commit/42fbefa54f22fa5bdaef4150ef3a643843ec8684))
520
+ - **sdk-coin-opeth:** add opeth tokens ([1e50329](https://github.com/BitGo/BitGoJS/commit/1e503292d26cb46ca3e2336a8514018ab09f6759))
521
+
522
+ ### BREAKING CHANGES
523
+
524
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
525
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
526
+ getCustomChainName method is removed from Polygon class because a common
527
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
528
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
529
+ and needs to be passed to derive the Eth common object from the chainId.
530
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
531
+ it can be used for other EthLike coins. getBaseFactor method in Eth
532
+ and Polygon class returns number instead of string just to align with
533
+ AbstractEthLikeCoin
534
+ Ticket: WIN-1012
535
+
536
+ # 7.0.0 (2023-12-12)
537
+
538
+ ### Bug Fixes
539
+
540
+ - **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
541
+ - **statics:** make corrections for arbeth and opeth ([5dfc405](https://github.com/BitGo/BitGoJS/commit/5dfc405a36fc97b2c902fec44562b169d8013a18))
542
+
543
+ ### Code Refactoring
544
+
545
+ - **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
546
+
547
+ ### Features
548
+
549
+ - **sdk-coin-opeth:** add opeth sdk skeleton ([42fbefa](https://github.com/BitGo/BitGoJS/commit/42fbefa54f22fa5bdaef4150ef3a643843ec8684))
550
+ - **sdk-coin-opeth:** add opeth tokens ([1e50329](https://github.com/BitGo/BitGoJS/commit/1e503292d26cb46ca3e2336a8514018ab09f6759))
551
+
552
+ ### BREAKING CHANGES
553
+
554
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
555
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
556
+ getCustomChainName method is removed from Polygon class because a common
557
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
558
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
559
+ and needs to be passed to derive the Eth common object from the chainId.
560
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
561
+ it can be used for other EthLike coins. getBaseFactor method in Eth
562
+ and Polygon class returns number instead of string just to align with
563
+ AbstractEthLikeCoin
564
+ Ticket: WIN-1012
565
+
566
+ # 6.0.0 (2023-12-09)
567
+
568
+ ### Bug Fixes
569
+
570
+ - **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
571
+ - **statics:** make corrections for arbeth and opeth ([5dfc405](https://github.com/BitGo/BitGoJS/commit/5dfc405a36fc97b2c902fec44562b169d8013a18))
572
+
573
+ ### Code Refactoring
574
+
575
+ - **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
576
+
577
+ ### Features
578
+
579
+ - **sdk-coin-opeth:** add opeth sdk skeleton ([42fbefa](https://github.com/BitGo/BitGoJS/commit/42fbefa54f22fa5bdaef4150ef3a643843ec8684))
580
+
581
+ ### BREAKING CHANGES
582
+
583
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
584
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
585
+ getCustomChainName method is removed from Polygon class because a common
586
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
587
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
588
+ and needs to be passed to derive the Eth common object from the chainId.
589
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
590
+ it can be used for other EthLike coins. getBaseFactor method in Eth
591
+ and Polygon class returns number instead of string just to align with
592
+ AbstractEthLikeCoin
593
+ Ticket: WIN-1012
594
+
595
+ # 5.0.0 (2023-12-05)
596
+
597
+ ### Bug Fixes
598
+
599
+ - **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
600
+ - **statics:** make corrections for arbeth and opeth ([5dfc405](https://github.com/BitGo/BitGoJS/commit/5dfc405a36fc97b2c902fec44562b169d8013a18))
601
+
602
+ ### Code Refactoring
603
+
604
+ - **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
605
+
606
+ ### Features
607
+
608
+ - **sdk-coin-opeth:** add opeth sdk skeleton ([42fbefa](https://github.com/BitGo/BitGoJS/commit/42fbefa54f22fa5bdaef4150ef3a643843ec8684))
609
+
610
+ ### BREAKING CHANGES
611
+
612
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
613
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
614
+ getCustomChainName method is removed from Polygon class because a common
615
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
616
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
617
+ and needs to be passed to derive the Eth common object from the chainId.
618
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
619
+ it can be used for other EthLike coins. getBaseFactor method in Eth
620
+ and Polygon class returns number instead of string just to align with
621
+ AbstractEthLikeCoin
622
+ Ticket: WIN-1012
623
+
624
+ # 4.0.0 (2023-11-28)
625
+
626
+ ### Bug Fixes
627
+
628
+ - **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
629
+ - **statics:** make corrections for arbeth and opeth ([5dfc405](https://github.com/BitGo/BitGoJS/commit/5dfc405a36fc97b2c902fec44562b169d8013a18))
630
+
631
+ ### Code Refactoring
632
+
633
+ - **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
634
+
635
+ ### Features
636
+
637
+ - **sdk-coin-opeth:** add opeth sdk skeleton ([42fbefa](https://github.com/BitGo/BitGoJS/commit/42fbefa54f22fa5bdaef4150ef3a643843ec8684))
638
+
639
+ ### BREAKING CHANGES
640
+
641
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
642
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
643
+ getCustomChainName method is removed from Polygon class because a common
644
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
645
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
646
+ and needs to be passed to derive the Eth common object from the chainId.
647
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
648
+ it can be used for other EthLike coins. getBaseFactor method in Eth
649
+ and Polygon class returns number instead of string just to align with
650
+ AbstractEthLikeCoin
651
+ Ticket: WIN-1012
652
+
6
653
  # 3.0.0 (2023-11-24)
7
654
 
8
655
  ### 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];
@@ -33,4 +37,4 @@ var abstract_eth_1 = require("@bitgo-beta/abstract-eth");
33
37
  Object.defineProperty(exports, "Transaction", { enumerable: true, get: function () { return abstract_eth_1.Transaction; } });
34
38
  Object.defineProperty(exports, "KeyPair", { enumerable: true, get: function () { return abstract_eth_1.KeyPair; } });
35
39
  __exportStar(require("./walletUtil"), exports);
36
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbGliL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSwrQ0FBaUM7QUFLeEIsc0JBQUs7QUFIZCwyREFBMEQ7QUFBakQsd0hBQUEsa0JBQWtCLE9BQUE7QUFDM0IscURBQW9EO0FBQTNDLGtIQUFBLGVBQWUsT0FBQTtBQUN4Qix5REFBZ0U7QUFBdkQsMkdBQUEsV0FBVyxPQUFBO0FBQUUsdUdBQUEsT0FBTyxPQUFBO0FBRTdCLCtDQUE2QiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCAqIGFzIFV0aWxzIGZyb20gJy4vdXRpbHMnO1xuXG5leHBvcnQgeyBUcmFuc2FjdGlvbkJ1aWxkZXIgfSBmcm9tICcuL3RyYW5zYWN0aW9uQnVpbGRlcic7XG5leHBvcnQgeyBUcmFuc2ZlckJ1aWxkZXIgfSBmcm9tICcuL3RyYW5zZmVyQnVpbGRlcic7XG5leHBvcnQgeyBUcmFuc2FjdGlvbiwgS2V5UGFpciB9IGZyb20gJ0BiaXRnby1iZXRhL2Fic3RyYWN0LWV0aCc7XG5leHBvcnQgeyBVdGlscyB9O1xuZXhwb3J0ICogZnJvbSAnLi93YWxsZXRVdGlsJztcbiJdfQ==
40
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbGliL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsK0NBQWlDO0FBS3hCLHNCQUFLO0FBSGQsMkRBQTBEO0FBQWpELHdIQUFBLGtCQUFrQixPQUFBO0FBQzNCLHFEQUFvRDtBQUEzQyxrSEFBQSxlQUFlLE9BQUE7QUFDeEIseURBQWdFO0FBQXZELDJHQUFBLFdBQVcsT0FBQTtBQUFFLHVHQUFBLE9BQU8sT0FBQTtBQUU3QiwrQ0FBNkIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgKiBhcyBVdGlscyBmcm9tICcuL3V0aWxzJztcblxuZXhwb3J0IHsgVHJhbnNhY3Rpb25CdWlsZGVyIH0gZnJvbSAnLi90cmFuc2FjdGlvbkJ1aWxkZXInO1xuZXhwb3J0IHsgVHJhbnNmZXJCdWlsZGVyIH0gZnJvbSAnLi90cmFuc2ZlckJ1aWxkZXInO1xuZXhwb3J0IHsgVHJhbnNhY3Rpb24sIEtleVBhaXIgfSBmcm9tICdAYml0Z28tYmV0YS9hYnN0cmFjdC1ldGgnO1xuZXhwb3J0IHsgVXRpbHMgfTtcbmV4cG9ydCAqIGZyb20gJy4vd2FsbGV0VXRpbCc7XG4iXX0=
@@ -1 +1 @@
1
- {"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../../../src/lib/resources.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAGhD,eAAO,MAAM,aAAa,gBAUzB,CAAC;AAEF,eAAO,MAAM,aAAa,gBAUzB,CAAC"}
1
+ {"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../../../src/lib/resources.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAGhD,eAAO,MAAM,aAAa,gBAWzB,CAAC;AAEF,eAAO,MAAM,aAAa,gBAWzB,CAAC"}
@@ -13,6 +13,7 @@ exports.testnetCommon = common_1.default.custom({
13
13
  }, {
14
14
  baseChain: 'sepolia',
15
15
  hardfork: 'london',
16
+ eips: [1559],
16
17
  });
17
18
  exports.mainnetCommon = common_1.default.custom({
18
19
  name: 'optimism',
@@ -21,5 +22,6 @@ exports.mainnetCommon = common_1.default.custom({
21
22
  }, {
22
23
  baseChain: 'mainnet',
23
24
  hardfork: 'london',
25
+ eips: [1559],
24
26
  });
25
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzb3VyY2VzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2xpYi9yZXNvdXJjZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEsZ0VBQWdEO0FBQ2hELGlEQUE2RDtBQUVoRCxRQUFBLGFBQWEsR0FBRyxnQkFBYyxDQUFDLE1BQU0sQ0FDaEQ7SUFDRSxJQUFJLEVBQUUsb0JBQW9CO0lBQzFCLFNBQVMsRUFBRyxlQUFLLENBQUMsR0FBRyxDQUFDLFFBQVEsQ0FBQyxDQUFDLE9BQTJCLENBQUMsT0FBTztJQUNuRSxPQUFPLEVBQUcsZUFBSyxDQUFDLEdBQUcsQ0FBQyxRQUFRLENBQUMsQ0FBQyxPQUEyQixDQUFDLE9BQU87Q0FDbEUsRUFDRDtJQUNFLFNBQVMsRUFBRSxTQUFTO0lBQ3BCLFFBQVEsRUFBRSxRQUFRO0NBQ25CLENBQ0YsQ0FBQztBQUVXLFFBQUEsYUFBYSxHQUFHLGdCQUFjLENBQUMsTUFBTSxDQUNoRDtJQUNFLElBQUksRUFBRSxVQUFVO0lBQ2hCLFNBQVMsRUFBRyxlQUFLLENBQUMsR0FBRyxDQUFDLE9BQU8sQ0FBQyxDQUFDLE9BQTJCLENBQUMsT0FBTztJQUNsRSxPQUFPLEVBQUcsZUFBSyxDQUFDLEdBQUcsQ0FBQyxPQUFPLENBQUMsQ0FBQyxPQUEyQixDQUFDLE9BQU87Q0FDakUsRUFDRDtJQUNFLFNBQVMsRUFBRSxTQUFTO0lBQ3BCLFFBQVEsRUFBRSxRQUFRO0NBQ25CLENBQ0YsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBFdGhlcmV1bUNvbW1vbiBmcm9tICdAZXRoZXJldW1qcy9jb21tb24nO1xuaW1wb3J0IHsgY29pbnMsIEV0aGVyZXVtTmV0d29yayB9IGZyb20gJ0BiaXRnby1iZXRhL3N0YXRpY3MnO1xuXG5leHBvcnQgY29uc3QgdGVzdG5ldENvbW1vbiA9IEV0aGVyZXVtQ29tbW9uLmN1c3RvbShcbiAge1xuICAgIG5hbWU6ICdvcHRpbWlzdGltIHNlcG9saWEnLFxuICAgIG5ldHdvcmtJZDogKGNvaW5zLmdldCgndG9wZXRoJykubmV0d29yayBhcyBFdGhlcmV1bU5ldHdvcmspLmNoYWluSWQsXG4gICAgY2hhaW5JZDogKGNvaW5zLmdldCgndG9wZXRoJykubmV0d29yayBhcyBFdGhlcmV1bU5ldHdvcmspLmNoYWluSWQsXG4gIH0sXG4gIHtcbiAgICBiYXNlQ2hhaW46ICdzZXBvbGlhJyxcbiAgICBoYXJkZm9yazogJ2xvbmRvbicsXG4gIH1cbik7XG5cbmV4cG9ydCBjb25zdCBtYWlubmV0Q29tbW9uID0gRXRoZXJldW1Db21tb24uY3VzdG9tKFxuICB7XG4gICAgbmFtZTogJ29wdGltaXNtJyxcbiAgICBuZXR3b3JrSWQ6IChjb2lucy5nZXQoJ29wZXRoJykubmV0d29yayBhcyBFdGhlcmV1bU5ldHdvcmspLmNoYWluSWQsXG4gICAgY2hhaW5JZDogKGNvaW5zLmdldCgnb3BldGgnKS5uZXR3b3JrIGFzIEV0aGVyZXVtTmV0d29yaykuY2hhaW5JZCxcbiAgfSxcbiAge1xuICAgIGJhc2VDaGFpbjogJ21haW5uZXQnLFxuICAgIGhhcmRmb3JrOiAnbG9uZG9uJyxcbiAgfVxuKTtcbiJdfQ==
27
+ //# sourceMappingURL=data:application/json;base64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biBmcm9tICdAZXRoZXJldW1qcy9jb21tb24nO1xuaW1wb3J0IHsgY29pbnMsIEV0aGVyZXVtTmV0d29yayB9IGZyb20gJ0BiaXRnby1iZXRhL3N0YXRpY3MnO1xuXG5leHBvcnQgY29uc3QgdGVzdG5ldENvbW1vbiA9IEV0aGVyZXVtQ29tbW9uLmN1c3RvbShcbiAge1xuICAgIG5hbWU6ICdvcHRpbWlzdGltIHNlcG9saWEnLFxuICAgIG5ldHdvcmtJZDogKGNvaW5zLmdldCgndG9wZXRoJykubmV0d29yayBhcyBFdGhlcmV1bU5ldHdvcmspLmNoYWluSWQsXG4gICAgY2hhaW5JZDogKGNvaW5zLmdldCgndG9wZXRoJykubmV0d29yayBhcyBFdGhlcmV1bU5ldHdvcmspLmNoYWluSWQsXG4gIH0sXG4gIHtcbiAgICBiYXNlQ2hhaW46ICdzZXBvbGlhJyxcbiAgICBoYXJkZm9yazogJ2xvbmRvbicsXG4gICAgZWlwczogWzE1NTldLFxuICB9XG4pO1xuXG5leHBvcnQgY29uc3QgbWFpbm5ldENvbW1vbiA9IEV0aGVyZXVtQ29tbW9uLmN1c3RvbShcbiAge1xuICAgIG5hbWU6ICdvcHRpbWlzbScsXG4gICAgbmV0d29ya0lkOiAoY29pbnMuZ2V0KCdvcGV0aCcpLm5ldHdvcmsgYXMgRXRoZXJldW1OZXR3b3JrKS5jaGFpbklkLFxuICAgIGNoYWluSWQ6IChjb2lucy5nZXQoJ29wZXRoJykubmV0d29yayBhcyBFdGhlcmV1bU5ldHdvcmspLmNoYWluSWQsXG4gIH0sXG4gIHtcbiAgICBiYXNlQ2hhaW46ICdtYWlubmV0JyxcbiAgICBoYXJkZm9yazogJ2xvbmRvbicsXG4gICAgZWlwczogWzE1NTldLFxuICB9XG4pO1xuIl19
@@ -1 +1 @@
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;AAEjH,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"}
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb25CdWlsZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2xpYi90cmFuc2FjdGlvbkJ1aWxkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ0EsbURBQThFO0FBQzlFLDJEQUFpSDtBQUNqSCxtQ0FBb0M7QUFDcEMsdURBQW9EO0FBQ3BELDZDQUFvRDtBQUVwRCxNQUFhLGtCQUFtQixTQUFRLGlDQUF5QjtJQUcvRCxZQUFZLFdBQWlDO1FBQzNDLEtBQUssQ0FBQyxXQUFXLENBQUMsQ0FBQztRQUNuQixJQUFJLENBQUMsT0FBTyxHQUFHLGlCQUFTLENBQUMsSUFBSSxDQUFDLFdBQVcsQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLENBQUM7UUFDeEQsSUFBSSxDQUFDLFdBQVcsR0FBRyxJQUFJLDBCQUFXLENBQUMsSUFBSSxDQUFDLFdBQVcsRUFBRSxJQUFJLENBQUMsT0FBTyxDQUFDLENBQUM7UUFDbkUsSUFBSSxDQUFDLHFCQUFxQixHQUFHLGlDQUFvQixDQUFDO0lBQ3BELENBQUM7SUFFRCxrQkFBa0I7SUFDbEIsUUFBUSxDQUFDLElBQWE7UUFDcEIsSUFBSSxJQUFJLENBQUMsS0FBSyxLQUFLLDBCQUFlLENBQUMsSUFBSSxFQUFFO1lBQ3ZDLE1BQU0sSUFBSSxnQ0FBcUIsQ0FBQyxpREFBaUQsQ0FBQyxDQUFDO1NBQ3BGO1FBQ0QsSUFBSSxDQUFDLElBQUksQ0FBQyxTQUFTLEVBQUU7WUFDbkIsSUFBSSxDQUFDLFNB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iAgLyoqIEBpbmhlcml0ZG9jICovXG4gIHRyYW5zZmVyKGRhdGE/OiBzdHJpbmcpOiBUcmFuc2ZlckJ1aWxkZXIge1xuICAgIGlmICh0aGlzLl90eXBlICE9PSBUcmFuc2FjdGlvblR5cGUuU2VuZCkge1xuICAgICAgdGhyb3cgbmV3IEJ1aWxkVHJhbnNhY3Rpb25FcnJvcignVHJhbnNmZXJzIGNhbiBvbmx5IGJlIHNldCBmb3Igc2VuZCB0cmFuc2FjdGlvbnMnKTtcbiAgICB9XG4gICAgaWYgKCF0aGlzLl90cmFuc2Zlcikge1xuICAgICAgdGhpcy5fdHJhbnNmZXIgPSBuZXcgVHJhbnNmZXJCdWlsZGVyKGRhdGEpO1xuICAgIH1cbiAgICByZXR1cm4gdGhpcy5fdHJhbnNmZXI7XG4gIH1cblxuICBwdWJsaWNLZXkoa2V5OiBzdHJpbmcpOiB2b2lkIHtcbiAgICB0aGlzLl9zb3VyY2VLZXlQYWlyID0gbmV3IEtleVBhaXIoeyBwdWI6IGtleSB9KTtcbiAgfVxufVxuIl19
@@ -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,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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3BldGguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvb3BldGgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEsNERBQWlDO0FBQ2pDLG1EQUFtRTtBQUNuRSxpREFBeUU7QUFDekUsMkRBQW9IO0FBQ3BILCtCQUEyQztBQUUzQyxNQUFhLEtBQU0sU0FBUSxzQ0FBdUI7SUFDaEQsWUFBc0IsS0FBZ0IsRUFBRSxXQUF1QztRQUM3RSxLQUFLLENBQUMsS0FBSyxFQUFFLFdBQVcsQ0FBQyxDQU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Agc2V0R2FzTGltaXQodXNlckdhc0xpbWl0PzogbnVtYmVyKTogbnVtYmVyIHtcbiAgICBpZiAoIXVzZXJHYXNMaW1pdCkge1xuICAgICAgcmV0dXJuIGV0aEdhc0NvbmZpZ3MuZGVmYXVsdEdhc0xpbWl0O1xuICAgIH1cbiAgICBjb25zdCBnYXNMaW1pdE1heCA9IGV0aEdhc0NvbmZpZ3MubWF4aW11bUdhc0xpbWl0O1xuICAgIGNvbnN0IGdhc0xpbWl0TWluID0gZXRoR2FzQ29uZmlncy5uZXdFdGhMaWtlQ29pbnNNaW5HYXNMaW1pdDtcbiAgICBpZiAodXNlckdhc0xpbWl0IDwgZ2FzTGltaXRNaW4gfHwgdXNlckdhc0xpbWl0ID4gZ2FzTGltaXRNYXgpIHtcbiAgICAgIHRocm93IG5ldyBFcnJvcihgR2FzIGxpbWl0IG11c3QgYmUgYmV0d2VlbiAke2dhc0xpbWl0TWlufSBhbmQgJHtnYXNMaW1pdE1heH1gKTtcbiAgICB9XG4gICAgcmV0dXJuIHVzZXJHYXNMaW1pdDtcbiAgfVxufVxuIl19
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3BldGhUb2tlbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9vcGV0aFRva2VuLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBOztHQUVHO0FBQ0gsaURBQWdFO0FBQ2hFLG1EQUFnRztBQUNoRywyREFBb0c7QUFFcEcsK0JBQTJDO0FBRzNDLE1BQWEsVUFBVyxTQUFRLDJCQUFZO0lBTT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cy5iaXRnby5nZXRFbnYoKV0ub3B0aW1pc3RpY0V0aGVyc2NhbkFwaVRva2VuO1xuICAgIGNvbnN0IGV4cGxvcmVyVXJsID0gY29tbW9uLkVudmlyb25tZW50c1t0aGlzLmJpdGdvLmdldEVudigpXS5vcHRpbWlzdGljRXRoZXJzY2FuQmFzZVVybDtcbiAgICByZXR1cm4gYXdhaXQgcmVjb3ZlcnlCbG9ja2NoYWluRXhwbG9yZXJRdWVyeShxdWVyeSwgZXhwbG9yZXJVcmwgYXMgc3RyaW5nLCBhcGlUb2tlbik7XG4gIH1cblxuICBnZXRGdWxsTmFtZSgpOiBzdHJpbmcge1xuICAgIHJldHVybiAnT3BldGggVG9rZW4nO1xuICB9XG59XG4iXX0=
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWx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CBjb2luQ29uc3RydWN0b3IpO1xuICB9KTtcbn07XG4iXX0=
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo-beta/sdk-coin-opeth",
3
- "version": "1.0.1-beta.39",
3
+ "version": "1.0.1-beta.391",
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.414",
44
- "@bitgo-beta/sdk-core": "8.2.1-beta.183",
45
- "@bitgo-beta/statics": "15.1.1-beta.186",
46
- "@bitgo-beta/utxo-lib": "8.0.3-beta.184",
43
+ "@bitgo-beta/abstract-eth": "1.0.2-beta.769",
44
+ "@bitgo-beta/sdk-core": "8.2.1-beta.539",
45
+ "@bitgo-beta/statics": "15.1.1-beta.542",
46
+ "@bitgo-beta/utxo-lib": "8.0.3-beta.540",
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.183",
52
- "@bitgo-beta/sdk-test": "^1.2.48",
53
- "secp256k1": "5.0.0"
52
+ "@bitgo-beta/sdk-api": "1.10.1-beta.538",
53
+ "@bitgo-beta/sdk-test": "^8.0.48",
54
+ "secp256k1": "5.0.1"
54
55
  },
55
- "gitHead": "4ed251a2f69cb930cc8ae3bf3e39e41441025d4a"
56
+ "gitHead": "87545a02811361188569be7bdd659fce4943515e"
56
57
  }