@bitgo-beta/sdk-coin-polygon 1.0.2-beta.42 → 1.0.2-beta.421
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 +1 -1
- package/CHANGELOG.md +462 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +2 -1
- package/dist/src/lib/index.d.ts +2 -1
- package/dist/src/lib/index.d.ts.map +1 -1
- package/dist/src/lib/index.js +9 -5
- package/dist/src/lib/transactionBuilder.d.ts +2 -9
- package/dist/src/lib/transactionBuilder.d.ts.map +1 -1
- package/dist/src/lib/transactionBuilder.js +4 -20
- package/dist/src/lib/transferBuilder.d.ts +1 -1
- package/dist/src/lib/transferBuilder.js +3 -3
- package/dist/src/lib/utils.d.ts +1 -1
- package/dist/src/lib/utils.js +3 -3
- package/dist/src/polygon.d.ts +8 -61
- package/dist/src/polygon.d.ts.map +1 -1
- package/dist/src/polygon.js +8 -379
- package/dist/src/polygonToken.d.ts +10 -25
- package/dist/src/polygonToken.d.ts.map +1 -1
- package/dist/src/polygonToken.js +21 -60
- package/dist/src/register.d.ts +3 -0
- package/dist/src/register.d.ts.map +1 -0
- package/dist/src/register.js +15 -0
- package/dist/src/tpolygon.d.ts +0 -1
- package/dist/src/tpolygon.d.ts.map +1 -1
- package/dist/src/tpolygon.js +1 -4
- package/package.json +12 -17
package/.mocharc.yml
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,468 @@
|
|
|
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
|
+
# [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)
|
|
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
|
+
# [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)
|
|
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
|
+
# [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)
|
|
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
|
+
# [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)
|
|
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
|
+
# [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)
|
|
171
|
+
|
|
172
|
+
### Bug Fixes
|
|
173
|
+
|
|
174
|
+
- **sdk-coin-eth:** fix issue related to ethtxbuilder ([286ccfd](https://github.com/BitGo/BitGoJS/commit/286ccfd4bc89075fd2d8c59d3770dc3b8cd78c79))
|
|
175
|
+
|
|
176
|
+
### Code Refactoring
|
|
177
|
+
|
|
178
|
+
- **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
|
|
179
|
+
|
|
180
|
+
### Features
|
|
181
|
+
|
|
182
|
+
- update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
|
|
183
|
+
|
|
184
|
+
### BREAKING CHANGES
|
|
185
|
+
|
|
186
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
187
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
188
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
189
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
190
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
191
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
192
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
193
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
194
|
+
and Polygon class returns number instead of string just to align with
|
|
195
|
+
AbstractEthLikeCoin
|
|
196
|
+
Ticket: WIN-1012
|
|
197
|
+
|
|
198
|
+
# [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)
|
|
199
|
+
|
|
200
|
+
### Bug Fixes
|
|
201
|
+
|
|
202
|
+
- **sdk-coin-eth:** fix issue related to ethtxbuilder ([286ccfd](https://github.com/BitGo/BitGoJS/commit/286ccfd4bc89075fd2d8c59d3770dc3b8cd78c79))
|
|
203
|
+
|
|
204
|
+
### Code Refactoring
|
|
205
|
+
|
|
206
|
+
- **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
|
|
207
|
+
|
|
208
|
+
### Features
|
|
209
|
+
|
|
210
|
+
- update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
|
|
211
|
+
|
|
212
|
+
### BREAKING CHANGES
|
|
213
|
+
|
|
214
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
215
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
216
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
217
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
218
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
219
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
220
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
221
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
222
|
+
and Polygon class returns number instead of string just to align with
|
|
223
|
+
AbstractEthLikeCoin
|
|
224
|
+
Ticket: WIN-1012
|
|
225
|
+
|
|
226
|
+
# [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)
|
|
227
|
+
|
|
228
|
+
### Bug Fixes
|
|
229
|
+
|
|
230
|
+
- **sdk-coin-eth:** fix issue related to ethtxbuilder ([286ccfd](https://github.com/BitGo/BitGoJS/commit/286ccfd4bc89075fd2d8c59d3770dc3b8cd78c79))
|
|
231
|
+
|
|
232
|
+
### Code Refactoring
|
|
233
|
+
|
|
234
|
+
- **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
|
|
235
|
+
|
|
236
|
+
### Features
|
|
237
|
+
|
|
238
|
+
- update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
|
|
239
|
+
|
|
240
|
+
### BREAKING CHANGES
|
|
241
|
+
|
|
242
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
243
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
244
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
245
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
246
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
247
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
248
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
249
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
250
|
+
and Polygon class returns number instead of string just to align with
|
|
251
|
+
AbstractEthLikeCoin
|
|
252
|
+
Ticket: WIN-1012
|
|
253
|
+
|
|
254
|
+
# [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)
|
|
255
|
+
|
|
256
|
+
### Features
|
|
257
|
+
|
|
258
|
+
- update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
|
|
259
|
+
|
|
260
|
+
# [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)
|
|
261
|
+
|
|
262
|
+
### Features
|
|
263
|
+
|
|
264
|
+
- update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
|
|
265
|
+
|
|
266
|
+
# [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)
|
|
267
|
+
|
|
268
|
+
### Features
|
|
269
|
+
|
|
270
|
+
- update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
|
|
271
|
+
|
|
272
|
+
## [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)
|
|
273
|
+
|
|
274
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-polygon
|
|
275
|
+
|
|
276
|
+
## [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)
|
|
277
|
+
|
|
278
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-polygon
|
|
279
|
+
|
|
280
|
+
## [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)
|
|
281
|
+
|
|
282
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-polygon
|
|
283
|
+
|
|
284
|
+
## [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)
|
|
285
|
+
|
|
286
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-polygon
|
|
287
|
+
|
|
288
|
+
## [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)
|
|
289
|
+
|
|
290
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-polygon
|
|
291
|
+
|
|
292
|
+
## [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)
|
|
293
|
+
|
|
294
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-polygon
|
|
295
|
+
|
|
296
|
+
## [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)
|
|
297
|
+
|
|
298
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-polygon
|
|
299
|
+
|
|
300
|
+
## [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)
|
|
301
|
+
|
|
302
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-polygon
|
|
303
|
+
|
|
304
|
+
## [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)
|
|
305
|
+
|
|
306
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-polygon
|
|
307
|
+
|
|
308
|
+
## [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)
|
|
309
|
+
|
|
310
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-polygon
|
|
311
|
+
|
|
312
|
+
# [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)
|
|
313
|
+
|
|
314
|
+
### Features
|
|
315
|
+
|
|
316
|
+
- **root:** add node 18 to engines and CI ([9cc6a70](https://github.com/BitGo/BitGoJS/commit/9cc6a70ba807161b7c6a0ebe3d7c47f25c7c8eca))
|
|
317
|
+
- **root:** remove node 14 from engines ([6ec47cb](https://github.com/BitGo/BitGoJS/commit/6ec47cbd7996cc78bbf2cf7f16595c24fe43cd41))
|
|
318
|
+
|
|
319
|
+
# [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)
|
|
320
|
+
|
|
321
|
+
### Features
|
|
322
|
+
|
|
323
|
+
- **root:** add node 18 to engines and CI ([9cc6a70](https://github.com/BitGo/BitGoJS/commit/9cc6a70ba807161b7c6a0ebe3d7c47f25c7c8eca))
|
|
324
|
+
- **root:** remove node 14 from engines ([6ec47cb](https://github.com/BitGo/BitGoJS/commit/6ec47cbd7996cc78bbf2cf7f16595c24fe43cd41))
|
|
325
|
+
|
|
326
|
+
## [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)
|
|
327
|
+
|
|
328
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-polygon
|
|
329
|
+
|
|
330
|
+
## [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)
|
|
331
|
+
|
|
332
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-polygon
|
|
333
|
+
|
|
334
|
+
## [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)
|
|
335
|
+
|
|
336
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-polygon
|
|
337
|
+
|
|
338
|
+
## [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)
|
|
339
|
+
|
|
340
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-polygon
|
|
341
|
+
|
|
342
|
+
## [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)
|
|
343
|
+
|
|
344
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-polygon
|
|
345
|
+
|
|
346
|
+
## [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)
|
|
347
|
+
|
|
348
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-polygon
|
|
349
|
+
|
|
350
|
+
## [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)
|
|
351
|
+
|
|
352
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-polygon
|
|
353
|
+
|
|
354
|
+
## [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)
|
|
355
|
+
|
|
356
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-polygon
|
|
357
|
+
|
|
358
|
+
## [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)
|
|
359
|
+
|
|
360
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-polygon
|
|
361
|
+
|
|
362
|
+
## [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)
|
|
363
|
+
|
|
364
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-polygon
|
|
365
|
+
|
|
366
|
+
## [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)
|
|
367
|
+
|
|
368
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-polygon
|
|
369
|
+
|
|
370
|
+
## [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)
|
|
371
|
+
|
|
372
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-polygon
|
|
373
|
+
|
|
374
|
+
# [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)
|
|
375
|
+
|
|
376
|
+
### Features
|
|
377
|
+
|
|
378
|
+
- **sdk-coin-polygon:** support evm based cross chain recovery ([a88681f](https://github.com/BitGo/BitGoJS/commit/a88681f8428bcb6617ee2c7cfe5e8294b603af9f))
|
|
379
|
+
|
|
380
|
+
## [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)
|
|
381
|
+
|
|
382
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-polygon
|
|
383
|
+
|
|
384
|
+
## [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)
|
|
385
|
+
|
|
386
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-polygon
|
|
387
|
+
|
|
388
|
+
## [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)
|
|
389
|
+
|
|
390
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-polygon
|
|
391
|
+
|
|
392
|
+
## [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)
|
|
393
|
+
|
|
394
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-polygon
|
|
395
|
+
|
|
396
|
+
## [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)
|
|
397
|
+
|
|
398
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-polygon
|
|
399
|
+
|
|
400
|
+
## [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)
|
|
401
|
+
|
|
402
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-polygon
|
|
403
|
+
|
|
404
|
+
## [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)
|
|
405
|
+
|
|
406
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-polygon
|
|
407
|
+
|
|
408
|
+
## [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)
|
|
409
|
+
|
|
410
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-polygon
|
|
411
|
+
|
|
412
|
+
# [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)
|
|
413
|
+
|
|
414
|
+
### Features
|
|
415
|
+
|
|
416
|
+
- **sdk-coin-polygon:** crossChainRecovery support ([9b42813](https://github.com/BitGo/BitGoJS/commit/9b4281333a8d3835219e566e31cba28ab448c85f))
|
|
417
|
+
|
|
418
|
+
## [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)
|
|
419
|
+
|
|
420
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-polygon
|
|
421
|
+
|
|
422
|
+
## [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)
|
|
423
|
+
|
|
424
|
+
### Bug Fixes
|
|
425
|
+
|
|
426
|
+
- **sdk-coin-polygon:** remove unused data in recovery ([6ee161c](https://github.com/BitGo/BitGoJS/commit/6ee161c28e2e627456541b479d8f362fbf96979d))
|
|
427
|
+
|
|
428
|
+
## [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)
|
|
429
|
+
|
|
430
|
+
### Bug Fixes
|
|
431
|
+
|
|
432
|
+
- **sdk-coin-polygon:** remove unused data in recovery ([6ee161c](https://github.com/BitGo/BitGoJS/commit/6ee161c28e2e627456541b479d8f362fbf96979d))
|
|
433
|
+
|
|
434
|
+
## [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)
|
|
435
|
+
|
|
436
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-polygon
|
|
437
|
+
|
|
438
|
+
## [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)
|
|
439
|
+
|
|
440
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-polygon
|
|
441
|
+
|
|
442
|
+
# [1.3.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.0.1-rc.0...@bitgo/sdk-coin-polygon@1.3.0) (2022-10-18)
|
|
443
|
+
|
|
444
|
+
### Bug Fixes
|
|
445
|
+
|
|
446
|
+
- **core:** fix bip32/ecpair, API vs Interface ([bec9c1e](https://github.com/BitGo/BitGoJS/commit/bec9c1e6ff0c23108dc27e171abdd3e4d2cfdfb1))
|
|
447
|
+
- **sdk-coin-eth:** fix v1 address init code ([9a3bb82](https://github.com/BitGo/BitGoJS/commit/9a3bb8216da92cf3cf3ce009d6595bf2a1a66885))
|
|
448
|
+
- **sdk-coin-polygon:** fix sign for test polygon ([aff93c4](https://github.com/BitGo/BitGoJS/commit/aff93c4f97d6685b12a702df5a1d804537049d2a))
|
|
449
|
+
- **sdk-coin-polygon:** update polygon token names ([8bb61cf](https://github.com/BitGo/BitGoJS/commit/8bb61cf2112a668255746366a32f8e5c8105a481))
|
|
450
|
+
|
|
451
|
+
### Features
|
|
452
|
+
|
|
453
|
+
- add message signing support for polygon ([ab2bac1](https://github.com/BitGo/BitGoJS/commit/ab2bac13dad55ce8571d014796298aa52a24a5f2))
|
|
454
|
+
- **sdk-coin-eth:** add v1 wallet init code ([b1c983d](https://github.com/BitGo/BitGoJS/commit/b1c983d2f0723aa6647fca3d01a4c814639624b4))
|
|
455
|
+
- **sdk-coin-polygon:** add second signing ([c053924](https://github.com/BitGo/BitGoJS/commit/c05392483224194fc9aa97f02592534d25ef9ade))
|
|
456
|
+
- **sdk-coin-polygon:** add signTx method ([3458ed0](https://github.com/BitGo/BitGoJS/commit/3458ed0f10d46489be5f1765679a8de3e786b020))
|
|
457
|
+
- **sdk-coin-polygon:** support recovery ([15d6021](https://github.com/BitGo/BitGoJS/commit/15d602164d3a2b504d7995e65aa0fbcb38f98e89))
|
|
458
|
+
- **sdk-coin-polygon:** support tokens ([8870307](https://github.com/BitGo/BitGoJS/commit/8870307b63f460031019aecf30c60df4f2c0a112))
|
|
459
|
+
- **sdk-coin-polygon:** support tss in polygon controller ([5a5514c](https://github.com/BitGo/BitGoJS/commit/5a5514c98ca58cfcd794473cc5547342e8276dbc))
|
|
460
|
+
- **statics:** support NAME NFT on tpolygon BG-58416 ([dba1b90](https://github.com/BitGo/BitGoJS/commit/dba1b9087b59336292c51215785ff366bbd262be))
|
|
461
|
+
|
|
462
|
+
### BREAKING CHANGES
|
|
463
|
+
|
|
464
|
+
- **sdk-coin-eth:** Changes the return for exported method
|
|
465
|
+
decodeWalletCreationData() in sdk-coin-eth
|
|
466
|
+
BG-53733
|
|
467
|
+
|
|
6
468
|
## [1.0.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.0.1-rc.0...@bitgo/sdk-coin-polygon@1.0.1) (2022-07-19)
|
|
7
469
|
|
|
8
470
|
**Note:** Version bump only for package @bitgo/sdk-coin-polygon
|
package/dist/src/index.d.ts
CHANGED
package/dist/src/index.d.ts.map
CHANGED
|
@@ -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
|
-
|
|
17
|
+
__exportStar(require("./register"), exports);
|
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBQUEsd0NBQXNCO0FBQ3RCLDRDQUEwQjtBQUMxQiw2Q0FBMkI7QUFDM0IsaURBQStCO0FBQy9CLDZDQUEyQiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vbGliJztcbmV4cG9ydCAqIGZyb20gJy4vcG9seWdvbic7XG5leHBvcnQgKiBmcm9tICcuL3Rwb2x5Z29uJztcbmV4cG9ydCAqIGZyb20gJy4vcG9seWdvblRva2VuJztcbmV4cG9ydCAqIGZyb20gJy4vcmVnaXN0ZXInO1xuIl19
|
package/dist/src/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export { Interface, KeyPair, Transaction } from '@bitgo-beta/
|
|
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"}
|
package/dist/src/lib/index.js
CHANGED
|
@@ -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
|
|
24
|
-
Object.defineProperty(exports, "Interface", { enumerable: true, get: function () { return
|
|
25
|
-
Object.defineProperty(exports, "KeyPair", { enumerable: true, get: function () { return
|
|
26
|
-
Object.defineProperty(exports, "Transaction", { enumerable: true, get: function () { return
|
|
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
|
-
|
|
36
|
+
__exportStar(require("./walletUtil"), exports);
|
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbGliL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSx5REFBMkU7QUFBbEUseUdBQUEsU0FBUyxPQUFBO0FBQUUsdUdBQUEsT0FBTyxPQUFBO0FBQUUsMkdBQUEsV0FBVyxPQUFBO0FBQ3hDLDJEQUEwRDtBQUFqRCx3SEFBQSxrQkFBa0IsT0FBQTtBQUMzQixxREFBb0Q7QUFBM0Msa0hBQUEsZUFBZSxPQUFBO0FBRXhCLCtDQUFpQztBQUN4QixzQkFBSztBQUNkLCtDQUE2QiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IEludGVyZmFjZSwgS2V5UGFpciwgVHJhbnNhY3Rpb24gfSBmcm9tICdAYml0Z28tYmV0YS9hYnN0cmFjdC1ldGgnO1xuZXhwb3J0IHsgVHJhbnNhY3Rpb25CdWlsZGVyIH0gZnJvbSAnLi90cmFuc2FjdGlvbkJ1aWxkZXInO1xuZXhwb3J0IHsgVHJhbnNmZXJCdWlsZGVyIH0gZnJvbSAnLi90cmFuc2ZlckJ1aWxkZXInO1xuXG5pbXBvcnQgKiBhcyBVdGlscyBmcm9tICcuL3V0aWxzJztcbmV4cG9ydCB7IFV0aWxzIH07XG5leHBvcnQgKiBmcm9tICcuL3dhbGxldFV0aWwnO1xuIl19
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
import { TransactionBuilder as
|
|
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
|
|
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,
|
|
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
|
|
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
|
|
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,
|
|
28
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb25CdWlsZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2xpYi90cmFuc2FjdGlvbkJ1aWxkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsMkRBQTJGO0FBQzNGLG1EQUE4RTtBQUU5RSxtQ0FBb0M7QUFDcEMsNkNBQW9EO0FBQ3BELHlCQUFrRDtBQUVsRCxNQUFhLGtCQUFtQixTQUFRLGlDQUF5QjtJQUcvRCxZQUFZLFdBQWlDO1FBQzNDLEtBQUssQ0FBQyxXQUFXLENBQUMsQ0FBQztRQUNuQixJQUFJLENBQUMsT0FBTyxHQUFHLGlCQUFTLENBQUMsSUFBSSxDQUFDLFdBQVcsQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLENBQUM7UUFDeEQsSUFBSSxDQUFDLFdBQVcsR0FBRyxJQUFJLGNBQVcsQ0FBQyxJQUFJLENBQUMsV0FBVyxFQUFFLElBQUksQ0FBQyxPQUFPLENBQUMsQ0FBQztRQUNuRSxJQUFJLENBQUMscUJBQXFCLEdBQUcsaUNBQW9CLENBQUM7SUFDcEQsQ0FBQztJQUVELGtCQUFrQjtJQUNsQixRQUFRLENBQUMsSUFBYTtRQUNwQixJQUFJLElBQUksQ0FBQyxLQUFLLEtBQUssMEJBQWUsQ0FBQyxJQUFJLEVBQUU7WUFDdkMsTUFBTSxJQUFJLGdDQUFxQixDQUFDLGlEQUFpRCxDQUFDLENBQUM7U0FDcEY7UUFDRCxJQUFJLENBQUMsSUFBSSxDQUFDLFNBQVMsRUFBRTtZQUNuQixJQUFJLENBQUMsU0FBUyxHQUFHLElBQUksa0JBQWUsQ0FBQyxJQUFJLENBQUMsQ0FBQztTQUM1QztRQUNELE9BQU8sSUFBSSxDQUFDLFNBQVMsQ0FBQztJQUN4QixDQUFDO0NBQ0Y7QUFwQkQsZ0RBb0JDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgVHJhbnNhY3Rpb25CdWlsZGVyIGFzIEV0aExpa2VUcmFuc2FjdGlvbkJ1aWxkZXIgfSBmcm9tICdAYml0Z28tYmV0YS9hYnN0cmFjdC1ldGgnO1xuaW1wb3J0IHsgQnVpbGRUcmFuc2FjdGlvbkVycm9yLCBUcmFuc2FjdGlvblR5cGUgfSBmcm9tICdAYml0Z28tYmV0YS9zZGstY29yZSc7XG5pbXBvcnQgeyBCYXNlQ29pbiBhcyBDb2luQ29uZmlnIH0gZnJvbSAnQGJpdGdvLWJldGEvc3RhdGljcyc7XG5pbXBvcnQgeyBnZXRDb21tb24gfSBmcm9tICcuL3V0aWxzJztcbmltcG9ydCB7IHdhbGxldFNpbXBsZUJ5dGVDb2RlIH0gZnJvbSAnLi93YWxsZXRVdGlsJztcbmltcG9ydCB7IFRyYW5zYWN0aW9uLCBUcmFuc2ZlckJ1aWxkZXIgfSBmcm9tICcuLyc7XG5cbmV4cG9ydCBjbGFzcyBUcmFuc2FjdGlvbkJ1aWxkZXIgZXh0ZW5kcyBFdGhMaWtlVHJhbnNhY3Rpb25CdWlsZGVyIHtcbiAgcHJvdGVjdGVkIF90cmFuc2ZlcjogVHJhbnNmZXJCdWlsZGVyO1xuXG4gIGNvbnN0cnVjdG9yKF9jb2luQ29uZmlnOiBSZWFkb25seTxDb2luQ29uZmlnPikge1xuICAgIHN1cGVyKF9jb2luQ29uZmlnKTtcbiAgICB0aGlzLl9jb21tb24gPSBnZXRDb21tb24odGhpcy5fY29pbkNvbmZpZy5uZXR3b3JrLnR5cGUpO1xuICAgIHRoaXMudHJhbnNhY3Rpb24gPSBuZXcgVHJhbnNhY3Rpb24odGhpcy5fY29pbkNvbmZpZywgdGhpcy5fY29tbW9uKTtcbiAgICB0aGlzLl93YWxsZXRTaW1wbGVCeXRlQ29kZSA9IHdhbGxldFNpbXBsZUJ5dGVDb2RlO1xuICB9XG5cbiAgLyoqIEBpbmhlcml0ZG9jICovXG4gIHRyYW5zZmVyKGRhdGE/OiBzdHJpbmcpOiBUcmFuc2ZlckJ1aWxkZXIge1xuICAgIGlmICh0aGlzLl90eXBlICE9PSBUcmFuc2FjdGlvblR5cGUuU2VuZCkge1xuICAgICAgdGhyb3cgbmV3IEJ1aWxkVHJhbnNhY3Rpb25FcnJvcignVHJhbnNmZXJzIGNhbiBvbmx5IGJlIHNldCBmb3Igc2VuZCB0cmFuc2FjdGlvbnMnKTtcbiAgICB9XG4gICAgaWYgKCF0aGlzLl90cmFuc2Zlcikge1xuICAgICAgdGhpcy5fdHJhbnNmZXIgPSBuZXcgVHJhbnNmZXJCdWlsZGVyKGRhdGEpO1xuICAgIH1cbiAgICByZXR1cm4gdGhpcy5fdHJhbnNmZXI7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TransferBuilder as EthTransferBuilder } from '@bitgo-beta/
|
|
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
|
/**
|