@bitgo-beta/sdk-coin-polygon 1.0.2-beta.43 → 1.0.2-beta.430

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/.mocharc.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  require: 'ts-node/register'
2
- timeout: '60000'
2
+ timeout: '90000'
3
3
  reporter: 'min'
4
4
  reporter-option:
5
5
  - 'cdn=true'
package/CHANGELOG.md CHANGED
@@ -3,6 +3,479 @@
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
+ # [9.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.7.0...@bitgo/sdk-coin-polygon@9.0.0) (2023-12-09)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **sdk-coin-eth:** fix issue related to ethtxbuilder ([286ccfd](https://github.com/BitGo/BitGoJS/commit/286ccfd4bc89075fd2d8c59d3770dc3b8cd78c79))
11
+ - **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
12
+
13
+ ### Code Refactoring
14
+
15
+ - **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
16
+ - **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
17
+
18
+ ### Features
19
+
20
+ - update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
21
+
22
+ ### BREAKING CHANGES
23
+
24
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
25
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
26
+ getCustomChainName method is removed from Polygon class because a common
27
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
28
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
29
+ and needs to be passed to derive the Eth common object from the chainId.
30
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
31
+ it can be used for other EthLike coins. getBaseFactor method in Eth
32
+ and Polygon class returns number instead of string just to align with
33
+ AbstractEthLikeCoin
34
+ Ticket: WIN-1012
35
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
36
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
37
+ getCustomChainName method is removed from Polygon class because a common
38
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
39
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
40
+ and needs to be passed to derive the Eth common object from the chainId.
41
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
42
+ it can be used for other EthLike coins. getBaseFactor method in Eth
43
+ and Polygon class returns number instead of string just to align with
44
+ AbstractEthLikeCoin
45
+ Ticket: WIN-1012
46
+
47
+ # [8.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.7.0...@bitgo/sdk-coin-polygon@8.0.0) (2023-12-05)
48
+
49
+ ### Bug Fixes
50
+
51
+ - **sdk-coin-eth:** fix issue related to ethtxbuilder ([286ccfd](https://github.com/BitGo/BitGoJS/commit/286ccfd4bc89075fd2d8c59d3770dc3b8cd78c79))
52
+ - **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
53
+
54
+ ### Code Refactoring
55
+
56
+ - **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
57
+ - **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
58
+
59
+ ### Features
60
+
61
+ - update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
62
+
63
+ ### BREAKING CHANGES
64
+
65
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
66
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
67
+ getCustomChainName method is removed from Polygon class because a common
68
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
69
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
70
+ and needs to be passed to derive the Eth common object from the chainId.
71
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
72
+ it can be used for other EthLike coins. getBaseFactor method in Eth
73
+ and Polygon class returns number instead of string just to align with
74
+ AbstractEthLikeCoin
75
+ Ticket: WIN-1012
76
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
77
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
78
+ getCustomChainName method is removed from Polygon class because a common
79
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
80
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
81
+ and needs to be passed to derive the Eth common object from the chainId.
82
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
83
+ it can be used for other EthLike coins. getBaseFactor method in Eth
84
+ and Polygon class returns number instead of string just to align with
85
+ AbstractEthLikeCoin
86
+ Ticket: WIN-1012
87
+
88
+ # [7.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.7.0...@bitgo/sdk-coin-polygon@7.0.0) (2023-11-28)
89
+
90
+ ### Bug Fixes
91
+
92
+ - **sdk-coin-eth:** fix issue related to ethtxbuilder ([286ccfd](https://github.com/BitGo/BitGoJS/commit/286ccfd4bc89075fd2d8c59d3770dc3b8cd78c79))
93
+ - **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
94
+
95
+ ### Code Refactoring
96
+
97
+ - **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
98
+ - **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
99
+
100
+ ### Features
101
+
102
+ - update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
103
+
104
+ ### BREAKING CHANGES
105
+
106
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
107
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
108
+ getCustomChainName method is removed from Polygon class because a common
109
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
110
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
111
+ and needs to be passed to derive the Eth common object from the chainId.
112
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
113
+ it can be used for other EthLike coins. getBaseFactor method in Eth
114
+ and Polygon class returns number instead of string just to align with
115
+ AbstractEthLikeCoin
116
+ Ticket: WIN-1012
117
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
118
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
119
+ getCustomChainName method is removed from Polygon class because a common
120
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
121
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
122
+ and needs to be passed to derive the Eth common object from the chainId.
123
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
124
+ it can be used for other EthLike coins. getBaseFactor method in Eth
125
+ and Polygon class returns number instead of string just to align with
126
+ AbstractEthLikeCoin
127
+ Ticket: WIN-1012
128
+
129
+ # [6.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.7.0...@bitgo/sdk-coin-polygon@6.0.0) (2023-11-24)
130
+
131
+ ### Bug Fixes
132
+
133
+ - **sdk-coin-eth:** fix issue related to ethtxbuilder ([286ccfd](https://github.com/BitGo/BitGoJS/commit/286ccfd4bc89075fd2d8c59d3770dc3b8cd78c79))
134
+ - **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
135
+
136
+ ### Code Refactoring
137
+
138
+ - **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
139
+ - **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
140
+
141
+ ### Features
142
+
143
+ - update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
144
+
145
+ ### BREAKING CHANGES
146
+
147
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
148
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
149
+ getCustomChainName method is removed from Polygon class because a common
150
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
151
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
152
+ and needs to be passed to derive the Eth common object from the chainId.
153
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
154
+ it can be used for other EthLike coins. getBaseFactor method in Eth
155
+ and Polygon class returns number instead of string just to align with
156
+ AbstractEthLikeCoin
157
+ Ticket: WIN-1012
158
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
159
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
160
+ getCustomChainName method is removed from Polygon class because a common
161
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
162
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
163
+ and needs to be passed to derive the Eth common object from the chainId.
164
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
165
+ it can be used for other EthLike coins. getBaseFactor method in Eth
166
+ and Polygon class returns number instead of string just to align with
167
+ AbstractEthLikeCoin
168
+ Ticket: WIN-1012
169
+
170
+ # [5.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.7.0...@bitgo/sdk-coin-polygon@5.0.0) (2023-11-17)
171
+
172
+ ### Bug Fixes
173
+
174
+ - **sdk-coin-eth:** fix issue related to ethtxbuilder ([286ccfd](https://github.com/BitGo/BitGoJS/commit/286ccfd4bc89075fd2d8c59d3770dc3b8cd78c79))
175
+ - **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
176
+
177
+ ### Code Refactoring
178
+
179
+ - **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
180
+ - **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
181
+
182
+ ### Features
183
+
184
+ - update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
185
+
186
+ ### BREAKING CHANGES
187
+
188
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
189
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
190
+ getCustomChainName method is removed from Polygon class because a common
191
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
192
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
193
+ and needs to be passed to derive the Eth common object from the chainId.
194
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
195
+ it can be used for other EthLike coins. getBaseFactor method in Eth
196
+ and Polygon class returns number instead of string just to align with
197
+ AbstractEthLikeCoin
198
+ Ticket: WIN-1012
199
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
200
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
201
+ getCustomChainName method is removed from Polygon class because a common
202
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
203
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
204
+ and needs to be passed to derive the Eth common object from the chainId.
205
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
206
+ it can be used for other EthLike coins. getBaseFactor method in Eth
207
+ and Polygon class returns number instead of string just to align with
208
+ AbstractEthLikeCoin
209
+ Ticket: WIN-1012
210
+
211
+ # [4.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.7.0...@bitgo/sdk-coin-polygon@4.0.0) (2023-11-13)
212
+
213
+ ### Bug Fixes
214
+
215
+ - **sdk-coin-eth:** fix issue related to ethtxbuilder ([286ccfd](https://github.com/BitGo/BitGoJS/commit/286ccfd4bc89075fd2d8c59d3770dc3b8cd78c79))
216
+
217
+ ### Code Refactoring
218
+
219
+ - **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
220
+
221
+ ### Features
222
+
223
+ - update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
224
+
225
+ ### BREAKING CHANGES
226
+
227
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
228
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
229
+ getCustomChainName method is removed from Polygon class because a common
230
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
231
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
232
+ and needs to be passed to derive the Eth common object from the chainId.
233
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
234
+ it can be used for other EthLike coins. getBaseFactor method in Eth
235
+ and Polygon class returns number instead of string just to align with
236
+ AbstractEthLikeCoin
237
+ Ticket: WIN-1012
238
+
239
+ # [3.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.7.0...@bitgo/sdk-coin-polygon@3.0.0) (2023-11-13)
240
+
241
+ ### Bug Fixes
242
+
243
+ - **sdk-coin-eth:** fix issue related to ethtxbuilder ([286ccfd](https://github.com/BitGo/BitGoJS/commit/286ccfd4bc89075fd2d8c59d3770dc3b8cd78c79))
244
+
245
+ ### Code Refactoring
246
+
247
+ - **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
248
+
249
+ ### Features
250
+
251
+ - update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
252
+
253
+ ### BREAKING CHANGES
254
+
255
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
256
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
257
+ getCustomChainName method is removed from Polygon class because a common
258
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
259
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
260
+ and needs to be passed to derive the Eth common object from the chainId.
261
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
262
+ it can be used for other EthLike coins. getBaseFactor method in Eth
263
+ and Polygon class returns number instead of string just to align with
264
+ AbstractEthLikeCoin
265
+ Ticket: WIN-1012
266
+
267
+ # [2.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.7.0...@bitgo/sdk-coin-polygon@2.0.0) (2023-11-13)
268
+
269
+ ### Bug Fixes
270
+
271
+ - **sdk-coin-eth:** fix issue related to ethtxbuilder ([286ccfd](https://github.com/BitGo/BitGoJS/commit/286ccfd4bc89075fd2d8c59d3770dc3b8cd78c79))
272
+
273
+ ### Code Refactoring
274
+
275
+ - **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
276
+
277
+ ### Features
278
+
279
+ - update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
280
+
281
+ ### BREAKING CHANGES
282
+
283
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
284
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
285
+ getCustomChainName method is removed from Polygon class because a common
286
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
287
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
288
+ and needs to be passed to derive the Eth common object from the chainId.
289
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
290
+ it can be used for other EthLike coins. getBaseFactor method in Eth
291
+ and Polygon class returns number instead of string just to align with
292
+ AbstractEthLikeCoin
293
+ Ticket: WIN-1012
294
+
295
+ # [1.10.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.7.0...@bitgo/sdk-coin-polygon@1.10.0) (2023-10-20)
296
+
297
+ ### Features
298
+
299
+ - update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
300
+
301
+ # [1.9.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.7.0...@bitgo/sdk-coin-polygon@1.9.0) (2023-10-18)
302
+
303
+ ### Features
304
+
305
+ - update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
306
+
307
+ # [1.8.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.7.0...@bitgo/sdk-coin-polygon@1.8.0) (2023-09-25)
308
+
309
+ ### Features
310
+
311
+ - update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
312
+
313
+ ## [1.7.10](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.7.0...@bitgo/sdk-coin-polygon@1.7.10) (2023-09-09)
314
+
315
+ **Note:** Version bump only for package @bitgo/sdk-coin-polygon
316
+
317
+ ## [1.7.9](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.7.0...@bitgo/sdk-coin-polygon@1.7.9) (2023-09-09)
318
+
319
+ **Note:** Version bump only for package @bitgo/sdk-coin-polygon
320
+
321
+ ## [1.7.8](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.7.0...@bitgo/sdk-coin-polygon@1.7.8) (2023-09-07)
322
+
323
+ **Note:** Version bump only for package @bitgo/sdk-coin-polygon
324
+
325
+ ## [1.7.7](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.7.0...@bitgo/sdk-coin-polygon@1.7.7) (2023-09-05)
326
+
327
+ **Note:** Version bump only for package @bitgo/sdk-coin-polygon
328
+
329
+ ## [1.7.6](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.7.0...@bitgo/sdk-coin-polygon@1.7.6) (2023-09-01)
330
+
331
+ **Note:** Version bump only for package @bitgo/sdk-coin-polygon
332
+
333
+ ## [1.7.5](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.7.0...@bitgo/sdk-coin-polygon@1.7.5) (2023-08-29)
334
+
335
+ **Note:** Version bump only for package @bitgo/sdk-coin-polygon
336
+
337
+ ## [1.7.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.7.0...@bitgo/sdk-coin-polygon@1.7.4) (2023-08-25)
338
+
339
+ **Note:** Version bump only for package @bitgo/sdk-coin-polygon
340
+
341
+ ## [1.7.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.7.0...@bitgo/sdk-coin-polygon@1.7.3) (2023-08-24)
342
+
343
+ **Note:** Version bump only for package @bitgo/sdk-coin-polygon
344
+
345
+ ## [1.7.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.7.0...@bitgo/sdk-coin-polygon@1.7.2) (2023-08-16)
346
+
347
+ **Note:** Version bump only for package @bitgo/sdk-coin-polygon
348
+
349
+ ## [1.7.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.7.0...@bitgo/sdk-coin-polygon@1.7.1) (2023-08-16)
350
+
351
+ **Note:** Version bump only for package @bitgo/sdk-coin-polygon
352
+
353
+ # [1.7.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.5.12...@bitgo/sdk-coin-polygon@1.7.0) (2023-08-04)
354
+
355
+ ### Features
356
+
357
+ - **root:** add node 18 to engines and CI ([9cc6a70](https://github.com/BitGo/BitGoJS/commit/9cc6a70ba807161b7c6a0ebe3d7c47f25c7c8eca))
358
+ - **root:** remove node 14 from engines ([6ec47cb](https://github.com/BitGo/BitGoJS/commit/6ec47cbd7996cc78bbf2cf7f16595c24fe43cd41))
359
+
360
+ # [1.6.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.5.12...@bitgo/sdk-coin-polygon@1.6.0) (2023-07-28)
361
+
362
+ ### Features
363
+
364
+ - **root:** add node 18 to engines and CI ([9cc6a70](https://github.com/BitGo/BitGoJS/commit/9cc6a70ba807161b7c6a0ebe3d7c47f25c7c8eca))
365
+ - **root:** remove node 14 from engines ([6ec47cb](https://github.com/BitGo/BitGoJS/commit/6ec47cbd7996cc78bbf2cf7f16595c24fe43cd41))
366
+
367
+ ## [1.5.12](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.5.11...@bitgo/sdk-coin-polygon@1.5.12) (2023-07-18)
368
+
369
+ **Note:** Version bump only for package @bitgo/sdk-coin-polygon
370
+
371
+ ## [1.5.11](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.5.10...@bitgo/sdk-coin-polygon@1.5.11) (2023-06-21)
372
+
373
+ **Note:** Version bump only for package @bitgo/sdk-coin-polygon
374
+
375
+ ## [1.5.10](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.5.9...@bitgo/sdk-coin-polygon@1.5.10) (2023-06-14)
376
+
377
+ **Note:** Version bump only for package @bitgo/sdk-coin-polygon
378
+
379
+ ## [1.5.9](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.5.8...@bitgo/sdk-coin-polygon@1.5.9) (2023-06-13)
380
+
381
+ **Note:** Version bump only for package @bitgo/sdk-coin-polygon
382
+
383
+ ## [1.5.8](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.5.7...@bitgo/sdk-coin-polygon@1.5.8) (2023-06-07)
384
+
385
+ **Note:** Version bump only for package @bitgo/sdk-coin-polygon
386
+
387
+ ## [1.5.7](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.5.6...@bitgo/sdk-coin-polygon@1.5.7) (2023-06-05)
388
+
389
+ **Note:** Version bump only for package @bitgo/sdk-coin-polygon
390
+
391
+ ## [1.5.6](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.5.5...@bitgo/sdk-coin-polygon@1.5.6) (2023-05-25)
392
+
393
+ **Note:** Version bump only for package @bitgo/sdk-coin-polygon
394
+
395
+ ## [1.5.5](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.5.4...@bitgo/sdk-coin-polygon@1.5.5) (2023-05-17)
396
+
397
+ **Note:** Version bump only for package @bitgo/sdk-coin-polygon
398
+
399
+ ## [1.5.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.5.3...@bitgo/sdk-coin-polygon@1.5.4) (2023-05-10)
400
+
401
+ **Note:** Version bump only for package @bitgo/sdk-coin-polygon
402
+
403
+ ## [1.5.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.5.2...@bitgo/sdk-coin-polygon@1.5.3) (2023-05-03)
404
+
405
+ **Note:** Version bump only for package @bitgo/sdk-coin-polygon
406
+
407
+ ## [1.5.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.5.1...@bitgo/sdk-coin-polygon@1.5.2) (2023-04-25)
408
+
409
+ **Note:** Version bump only for package @bitgo/sdk-coin-polygon
410
+
411
+ ## [1.5.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.5.0...@bitgo/sdk-coin-polygon@1.5.1) (2023-04-20)
412
+
413
+ **Note:** Version bump only for package @bitgo/sdk-coin-polygon
414
+
415
+ # [1.5.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.4.8...@bitgo/sdk-coin-polygon@1.5.0) (2023-04-13)
416
+
417
+ ### Features
418
+
419
+ - **sdk-coin-polygon:** support evm based cross chain recovery ([a88681f](https://github.com/BitGo/BitGoJS/commit/a88681f8428bcb6617ee2c7cfe5e8294b603af9f))
420
+
421
+ ## [1.4.8](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.4.7...@bitgo/sdk-coin-polygon@1.4.8) (2023-02-17)
422
+
423
+ **Note:** Version bump only for package @bitgo/sdk-coin-polygon
424
+
425
+ ## [1.4.7](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.4.4...@bitgo/sdk-coin-polygon@1.4.7) (2023-02-16)
426
+
427
+ **Note:** Version bump only for package @bitgo/sdk-coin-polygon
428
+
429
+ ## [1.4.6](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.4.4...@bitgo/sdk-coin-polygon@1.4.6) (2023-02-08)
430
+
431
+ **Note:** Version bump only for package @bitgo/sdk-coin-polygon
432
+
433
+ ## [1.4.5](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.4.4...@bitgo/sdk-coin-polygon@1.4.5) (2023-01-30)
434
+
435
+ **Note:** Version bump only for package @bitgo/sdk-coin-polygon
436
+
437
+ ## [1.4.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.4.3...@bitgo/sdk-coin-polygon@1.4.4) (2023-01-25)
438
+
439
+ **Note:** Version bump only for package @bitgo/sdk-coin-polygon
440
+
441
+ ## [1.4.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.4.2...@bitgo/sdk-coin-polygon@1.4.3) (2022-12-23)
442
+
443
+ **Note:** Version bump only for package @bitgo/sdk-coin-polygon
444
+
445
+ ## [1.4.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.4.1...@bitgo/sdk-coin-polygon@1.4.2) (2022-12-20)
446
+
447
+ **Note:** Version bump only for package @bitgo/sdk-coin-polygon
448
+
449
+ ## [1.4.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.4.0...@bitgo/sdk-coin-polygon@1.4.1) (2022-12-09)
450
+
451
+ **Note:** Version bump only for package @bitgo/sdk-coin-polygon
452
+
453
+ # [1.4.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.3.6...@bitgo/sdk-coin-polygon@1.4.0) (2022-12-06)
454
+
455
+ ### Features
456
+
457
+ - **sdk-coin-polygon:** crossChainRecovery support ([9b42813](https://github.com/BitGo/BitGoJS/commit/9b4281333a8d3835219e566e31cba28ab448c85f))
458
+
459
+ ## [1.3.6](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.3.5...@bitgo/sdk-coin-polygon@1.3.6) (2022-12-01)
460
+
461
+ **Note:** Version bump only for package @bitgo/sdk-coin-polygon
462
+
463
+ ## [1.3.5](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.3.0...@bitgo/sdk-coin-polygon@1.3.5) (2022-11-29)
464
+
465
+ ### Bug Fixes
466
+
467
+ - **sdk-coin-polygon:** remove unused data in recovery ([6ee161c](https://github.com/BitGo/BitGoJS/commit/6ee161c28e2e627456541b479d8f362fbf96979d))
468
+
469
+ ## [1.3.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.3.0...@bitgo/sdk-coin-polygon@1.3.4) (2022-11-04)
470
+
471
+ ### Bug Fixes
472
+
473
+ - **sdk-coin-polygon:** remove unused data in recovery ([6ee161c](https://github.com/BitGo/BitGoJS/commit/6ee161c28e2e627456541b479d8f362fbf96979d))
474
+
475
+ ## [1.3.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.3.0...@bitgo/sdk-coin-polygon@1.3.2) (2022-10-27)
476
+
477
+ **Note:** Version bump only for package @bitgo/sdk-coin-polygon
478
+
6
479
  ## [1.3.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.3.0...@bitgo/sdk-coin-polygon@1.3.1) (2022-10-25)
7
480
 
8
481
  **Note:** Version bump only for package @bitgo/sdk-coin-polygon
@@ -2,4 +2,5 @@ export * from './lib';
2
2
  export * from './polygon';
3
3
  export * from './tpolygon';
4
4
  export * from './polygonToken';
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,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC"}
package/dist/src/index.js CHANGED
@@ -14,4 +14,5 @@ __exportStar(require("./lib"), exports);
14
14
  __exportStar(require("./polygon"), exports);
15
15
  __exportStar(require("./tpolygon"), exports);
16
16
  __exportStar(require("./polygonToken"), exports);
17
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBQUEsd0NBQXNCO0FBQ3RCLDRDQUEwQjtBQUMxQiw2Q0FBMkI7QUFDM0IsaURBQStCIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9saWInO1xuZXhwb3J0ICogZnJvbSAnLi9wb2x5Z29uJztcbmV4cG9ydCAqIGZyb20gJy4vdHBvbHlnb24nO1xuZXhwb3J0ICogZnJvbSAnLi9wb2x5Z29uVG9rZW4nO1xuIl19
17
+ __exportStar(require("./register"), exports);
18
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBQUEsd0NBQXNCO0FBQ3RCLDRDQUEwQjtBQUMxQiw2Q0FBMkI7QUFDM0IsaURBQStCO0FBQy9CLDZDQUEyQiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vbGliJztcbmV4cG9ydCAqIGZyb20gJy4vcG9seWdvbic7XG5leHBvcnQgKiBmcm9tICcuL3Rwb2x5Z29uJztcbmV4cG9ydCAqIGZyb20gJy4vcG9seWdvblRva2VuJztcbmV4cG9ydCAqIGZyb20gJy4vcmVnaXN0ZXInO1xuIl19
@@ -1,6 +1,7 @@
1
- export { Interface, KeyPair, Transaction } from '@bitgo-beta/sdk-coin-eth';
1
+ export { Interface, KeyPair, Transaction } from '@bitgo-beta/abstract-eth';
2
2
  export { TransactionBuilder } from './transactionBuilder';
3
3
  export { TransferBuilder } from './transferBuilder';
4
4
  import * as Utils from './utils';
5
5
  export { Utils };
6
+ export * from './walletUtil';
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,CAAC;AACjB,cAAc,cAAc,CAAC"}
@@ -18,16 +18,20 @@ var __importStar = (this && this.__importStar) || function (mod) {
18
18
  __setModuleDefault(result, mod);
19
19
  return result;
20
20
  };
21
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
22
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
23
+ };
21
24
  Object.defineProperty(exports, "__esModule", { value: true });
22
25
  exports.Utils = exports.TransferBuilder = exports.TransactionBuilder = exports.Transaction = exports.KeyPair = exports.Interface = void 0;
23
- var sdk_coin_eth_1 = require("@bitgo-beta/sdk-coin-eth");
24
- Object.defineProperty(exports, "Interface", { enumerable: true, get: function () { return sdk_coin_eth_1.Interface; } });
25
- Object.defineProperty(exports, "KeyPair", { enumerable: true, get: function () { return sdk_coin_eth_1.KeyPair; } });
26
- Object.defineProperty(exports, "Transaction", { enumerable: true, get: function () { return sdk_coin_eth_1.Transaction; } });
26
+ var abstract_eth_1 = require("@bitgo-beta/abstract-eth");
27
+ Object.defineProperty(exports, "Interface", { enumerable: true, get: function () { return abstract_eth_1.Interface; } });
28
+ Object.defineProperty(exports, "KeyPair", { enumerable: true, get: function () { return abstract_eth_1.KeyPair; } });
29
+ Object.defineProperty(exports, "Transaction", { enumerable: true, get: function () { return abstract_eth_1.Transaction; } });
27
30
  var transactionBuilder_1 = require("./transactionBuilder");
28
31
  Object.defineProperty(exports, "TransactionBuilder", { enumerable: true, get: function () { return transactionBuilder_1.TransactionBuilder; } });
29
32
  var transferBuilder_1 = require("./transferBuilder");
30
33
  Object.defineProperty(exports, "TransferBuilder", { enumerable: true, get: function () { return transferBuilder_1.TransferBuilder; } });
31
34
  const Utils = __importStar(require("./utils"));
32
35
  exports.Utils = Utils;
33
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXgu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0FBVyxPQUFBO0FBQ3hDLDJEQUEwRDtBQUFqRCx3SEFBQSxrQkFBa0IsT0FBQTtBQUMzQixxREFBb0Q7QUFBM0Msa0hBQUEsZUFBZSxPQUFBO0FBRXhCLCtDQUFpQztBQUN4QixzQkFBSztBQUNkLCtDQUE2QiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IEludGVyZmFjZSwgS2V5UGFpciwgVHJhbnNhY3Rpb24gfSBmcm9tICdAYml0Z28tYmV0YS9hYnN0cmFjdC1ldGgnO1xuZXhwb3J0IHsgVHJhbnNhY3Rpb25CdWlsZGVyIH0gZnJvbSAnLi90cmFuc2FjdGlvbkJ1aWxkZXInO1xuZXhwb3J0IHsgVHJhbnNmZXJCdWlsZGVyIH0gZnJvbSAnLi90cmFuc2ZlckJ1aWxkZXInO1xuXG5pbXBvcnQgKiBhcyBVdGlscyBmcm9tICcuL3V0aWxzJztcbmV4cG9ydCB7IFV0aWxzIH07XG5leHBvcnQgKiBmcm9tICcuL3dhbGxldFV0aWwnO1xuIl19
@@ -1,16 +1,9 @@
1
- import { TransactionBuilder as EthTransactionBuilder } from '@bitgo-beta/sdk-coin-eth';
1
+ import { TransactionBuilder as EthLikeTransactionBuilder } from '@bitgo-beta/abstract-eth';
2
2
  import { BaseCoin as CoinConfig } from '@bitgo-beta/statics';
3
3
  import { TransferBuilder } from './';
4
- export declare class TransactionBuilder extends EthTransactionBuilder {
4
+ export declare class TransactionBuilder extends EthLikeTransactionBuilder {
5
5
  protected _transfer: TransferBuilder;
6
6
  constructor(_coinConfig: Readonly<CoinConfig>);
7
- /**
8
- * Returns the smart contract encoded data
9
- *
10
- * @param {string[]} addresses - the contract signers
11
- * @returns {string} - the smart contract encoded data
12
- */
13
- protected getContractData(addresses: string[]): string;
14
7
  /** @inheritdoc */
15
8
  transfer(data?: string): TransferBuilder;
16
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"transactionBuilder.d.ts","sourceRoot":"","sources":["../../../src/lib/transactionBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,IAAI,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAEvF,OAAO,EAAE,QAAQ,IAAI,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAI7D,OAAO,EAAe,eAAe,EAAE,MAAM,IAAI,CAAC;AAElD,qBAAa,kBAAmB,SAAQ,qBAAqB;IAC3D,SAAS,CAAC,SAAS,EAAE,eAAe,CAAC;gBAEzB,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC;IAM7C;;;;;OAKG;IACH,SAAS,CAAC,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,MAAM;IAQtD,kBAAkB;IAClB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,eAAe;CASzC"}
1
+ {"version":3,"file":"transactionBuilder.d.ts","sourceRoot":"","sources":["../../../src/lib/transactionBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,IAAI,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAE3F,OAAO,EAAE,QAAQ,IAAI,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAG7D,OAAO,EAAe,eAAe,EAAE,MAAM,IAAI,CAAC;AAElD,qBAAa,kBAAmB,SAAQ,yBAAyB;IAC/D,SAAS,CAAC,SAAS,EAAE,eAAe,CAAC;gBAEzB,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC;IAO7C,kBAAkB;IAClB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,eAAe;CASzC"}
@@ -1,33 +1,17 @@
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.TransactionBuilder = void 0;
7
- const sdk_coin_eth_1 = require("@bitgo-beta/sdk-coin-eth");
4
+ const abstract_eth_1 = require("@bitgo-beta/abstract-eth");
8
5
  const sdk_core_1 = require("@bitgo-beta/sdk-core");
9
- const ethereumjs_abi_1 = __importDefault(require("ethereumjs-abi"));
10
6
  const utils_1 = require("./utils");
11
7
  const walletUtil_1 = require("./walletUtil");
12
8
  const _1 = require("./");
13
- class TransactionBuilder extends sdk_coin_eth_1.TransactionBuilder {
9
+ class TransactionBuilder extends abstract_eth_1.TransactionBuilder {
14
10
  constructor(_coinConfig) {
15
11
  super(_coinConfig);
16
12
  this._common = utils_1.getCommon(this._coinConfig.network.type);
17
13
  this.transaction = new _1.Transaction(this._coinConfig, this._common);
18
- }
19
- /**
20
- * Returns the smart contract encoded data
21
- *
22
- * @param {string[]} addresses - the contract signers
23
- * @returns {string} - the smart contract encoded data
24
- */
25
- getContractData(addresses) {
26
- const params = [addresses];
27
- const resultEncodedParameters = ethereumjs_abi_1.default.rawEncode(walletUtil_1.walletSimpleConstructor, params)
28
- .toString('hex')
29
- .replace('0x', '');
30
- return walletUtil_1.walletSimpleByteCode + resultEncodedParameters;
14
+ this._walletSimpleByteCode = walletUtil_1.walletSimpleByteCode;
31
15
  }
32
16
  /** @inheritdoc */
33
17
  transfer(data) {
@@ -41,4 +25,4 @@ class TransactionBuilder extends sdk_coin_eth_1.TransactionBuilder {
41
25
  }
42
26
  }
43
27
  exports.TransactionBuilder = TransactionBuilder;
44
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb25CdWlsZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2xpYi90cmFuc2FjdGlvbkJ1aWxkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEsMkRBQXVGO0FBQ3ZGLG1EQUE4RTtBQUU5RSxvRUFBeUM7QUFDekMsbUNBQW9DO0FBQ3BDLDZDQUE2RTtBQUM3RSx5QkFBa0Q7QUFFbEQsTUFBYSxrQkFBbUIsU0FBUSxpQ0FBcUI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uICB9XG5cbiAgLyoqIEBpbmhlcml0ZG9jICovXG4gIHRyYW5zZmVyKGRhdGE/OiBzdHJpbmcpOiBUcmFuc2ZlckJ1aWxkZXIge1xuICAgIGlmICh0aGlzLl90eXBlICE9PSBUcmFuc2FjdGlvblR5cGUuU2VuZCkge1xuICAgICAgdGhyb3cgbmV3IEJ1aWxkVHJhbnNhY3Rpb25FcnJvcignVHJhbnNmZXJzIGNhbiBvbmx5IGJlIHNldCBmb3Igc2VuZCB0cmFuc2FjdGlvbnMnKTtcbiAgICB9XG4gICAgaWYgKCF0aGlzLl90cmFuc2Zlcikge1xuICAgICAgdGhpcy5fdHJhbnNmZXIgPSBuZXcgVHJhbnNmZXJCdWlsZGVyKGRhdGEpO1xuICAgIH1cbiAgICByZXR1cm4gdGhpcy5fdHJhbnNmZXI7XG4gIH1cbn1cbiJdfQ==
@@ -1,4 +1,4 @@
1
- import { TransferBuilder as EthTransferBuilder } from '@bitgo-beta/sdk-coin-eth';
1
+ import { TransferBuilder as EthTransferBuilder } from '@bitgo-beta/abstract-eth';
2
2
  /** POLYGON transfer builder */
3
3
  export declare class TransferBuilder extends EthTransferBuilder {
4
4
  /**