@bitgo-beta/sdk-coin-opeth 1.0.1-beta.9 → 1.0.1-beta.91
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 +360 -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 +8 -4
- package/dist/src/lib/resources.d.ts.map +1 -1
- package/dist/src/lib/resources.js +5 -1
- package/dist/src/lib/transactionBuilder.d.ts +2 -2
- package/dist/src/lib/transactionBuilder.d.ts.map +1 -1
- package/dist/src/lib/transactionBuilder.js +7 -5
- package/dist/src/lib/transferBuilder.d.ts +1 -5
- package/dist/src/lib/transferBuilder.d.ts.map +1 -1
- package/dist/src/lib/transferBuilder.js +3 -9
- package/dist/src/lib/walletUtil.d.ts +37 -0
- package/dist/src/lib/walletUtil.d.ts.map +1 -0
- package/dist/src/lib/walletUtil.js +614 -0
- package/dist/src/opeth.d.ts +12 -4
- package/dist/src/opeth.d.ts.map +1 -1
- package/dist/src/opeth.js +31 -2
- package/dist/src/opethToken.d.ts +18 -0
- package/dist/src/opethToken.d.ts.map +1 -0
- package/dist/src/opethToken.js +32 -0
- package/dist/src/register.d.ts.map +1 -1
- package/dist/src/register.js +5 -1
- package/package.json +14 -10
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,366 @@
|
|
|
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
|
+
# 12.0.0 (2024-01-25)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **abstract-eth:** fix chainid related changes ([c3a21c4](https://github.com/BitGo/BitGoJS/commit/c3a21c4cc470f2147c80e235607011bd4896f911))
|
|
11
|
+
- **abstract-eth:** fix issues related to chainid ([9114b1b](https://github.com/BitGo/BitGoJS/commit/9114b1b95ca0929d2d1ef5b33ba4f35e1184b5c7))
|
|
12
|
+
- add opeth token support to register ([577ba12](https://github.com/BitGo/BitGoJS/commit/577ba12e3999124036fb880da32dec6f7380d1b9))
|
|
13
|
+
- **sdk-coin-opeth:** enable chainid change for opeth ([d1e0eea](https://github.com/BitGo/BitGoJS/commit/d1e0eeab31d969774bd862736539f7840f7e9fe2))
|
|
14
|
+
- **sdk-coin-opeth:** fix recover methods ([13264d8](https://github.com/BitGo/BitGoJS/commit/13264d87b7b0661ca002f55fdd41ba1c66b1e82b))
|
|
15
|
+
- **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
|
|
16
|
+
- **statics:** make corrections for arbeth and opeth ([5dfc405](https://github.com/BitGo/BitGoJS/commit/5dfc405a36fc97b2c902fec44562b169d8013a18))
|
|
17
|
+
|
|
18
|
+
### Code Refactoring
|
|
19
|
+
|
|
20
|
+
- **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
- **abstract-eth:** add chain id as network identifier ([3ddec05](https://github.com/BitGo/BitGoJS/commit/3ddec05705cff891e46d21743d0ee864d68ab216))
|
|
25
|
+
- **sdk-coin-opeth:** add opeth sdk skeleton ([42fbefa](https://github.com/BitGo/BitGoJS/commit/42fbefa54f22fa5bdaef4150ef3a643843ec8684))
|
|
26
|
+
- **sdk-coin-opeth:** add opeth tokens ([1e50329](https://github.com/BitGo/BitGoJS/commit/1e503292d26cb46ca3e2336a8514018ab09f6759))
|
|
27
|
+
|
|
28
|
+
### BREAKING CHANGES
|
|
29
|
+
|
|
30
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
31
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
32
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
33
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
34
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
35
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
36
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
37
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
38
|
+
and Polygon class returns number instead of string just to align with
|
|
39
|
+
AbstractEthLikeCoin
|
|
40
|
+
Ticket: WIN-1012
|
|
41
|
+
|
|
42
|
+
# 11.0.0 (2024-01-22)
|
|
43
|
+
|
|
44
|
+
### Bug Fixes
|
|
45
|
+
|
|
46
|
+
- **abstract-eth:** fix chainid related changes ([c3a21c4](https://github.com/BitGo/BitGoJS/commit/c3a21c4cc470f2147c80e235607011bd4896f911))
|
|
47
|
+
- **abstract-eth:** fix issues related to chainid ([9114b1b](https://github.com/BitGo/BitGoJS/commit/9114b1b95ca0929d2d1ef5b33ba4f35e1184b5c7))
|
|
48
|
+
- add opeth token support to register ([577ba12](https://github.com/BitGo/BitGoJS/commit/577ba12e3999124036fb880da32dec6f7380d1b9))
|
|
49
|
+
- **sdk-coin-opeth:** enable chainid change for opeth ([d1e0eea](https://github.com/BitGo/BitGoJS/commit/d1e0eeab31d969774bd862736539f7840f7e9fe2))
|
|
50
|
+
- **sdk-coin-opeth:** fix recover methods ([13264d8](https://github.com/BitGo/BitGoJS/commit/13264d87b7b0661ca002f55fdd41ba1c66b1e82b))
|
|
51
|
+
- **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
|
|
52
|
+
- **statics:** make corrections for arbeth and opeth ([5dfc405](https://github.com/BitGo/BitGoJS/commit/5dfc405a36fc97b2c902fec44562b169d8013a18))
|
|
53
|
+
|
|
54
|
+
### Code Refactoring
|
|
55
|
+
|
|
56
|
+
- **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
|
|
57
|
+
|
|
58
|
+
### Features
|
|
59
|
+
|
|
60
|
+
- **abstract-eth:** add chain id as network identifier ([3ddec05](https://github.com/BitGo/BitGoJS/commit/3ddec05705cff891e46d21743d0ee864d68ab216))
|
|
61
|
+
- **sdk-coin-opeth:** add opeth sdk skeleton ([42fbefa](https://github.com/BitGo/BitGoJS/commit/42fbefa54f22fa5bdaef4150ef3a643843ec8684))
|
|
62
|
+
- **sdk-coin-opeth:** add opeth tokens ([1e50329](https://github.com/BitGo/BitGoJS/commit/1e503292d26cb46ca3e2336a8514018ab09f6759))
|
|
63
|
+
|
|
64
|
+
### BREAKING CHANGES
|
|
65
|
+
|
|
66
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
67
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
68
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
69
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
70
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
71
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
72
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
73
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
74
|
+
and Polygon class returns number instead of string just to align with
|
|
75
|
+
AbstractEthLikeCoin
|
|
76
|
+
Ticket: WIN-1012
|
|
77
|
+
|
|
78
|
+
# 10.0.0 (2024-01-09)
|
|
79
|
+
|
|
80
|
+
### Bug Fixes
|
|
81
|
+
|
|
82
|
+
- **abstract-eth:** fix chainid related changes ([c3a21c4](https://github.com/BitGo/BitGoJS/commit/c3a21c4cc470f2147c80e235607011bd4896f911))
|
|
83
|
+
- **abstract-eth:** fix issues related to chainid ([9114b1b](https://github.com/BitGo/BitGoJS/commit/9114b1b95ca0929d2d1ef5b33ba4f35e1184b5c7))
|
|
84
|
+
- **sdk-coin-opeth:** enable chainid change for opeth ([d1e0eea](https://github.com/BitGo/BitGoJS/commit/d1e0eeab31d969774bd862736539f7840f7e9fe2))
|
|
85
|
+
- **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
|
|
86
|
+
- **statics:** make corrections for arbeth and opeth ([5dfc405](https://github.com/BitGo/BitGoJS/commit/5dfc405a36fc97b2c902fec44562b169d8013a18))
|
|
87
|
+
|
|
88
|
+
### Code Refactoring
|
|
89
|
+
|
|
90
|
+
- **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
|
|
91
|
+
|
|
92
|
+
### Features
|
|
93
|
+
|
|
94
|
+
- **abstract-eth:** add chain id as network identifier ([3ddec05](https://github.com/BitGo/BitGoJS/commit/3ddec05705cff891e46d21743d0ee864d68ab216))
|
|
95
|
+
- **sdk-coin-opeth:** add opeth sdk skeleton ([42fbefa](https://github.com/BitGo/BitGoJS/commit/42fbefa54f22fa5bdaef4150ef3a643843ec8684))
|
|
96
|
+
- **sdk-coin-opeth:** add opeth tokens ([1e50329](https://github.com/BitGo/BitGoJS/commit/1e503292d26cb46ca3e2336a8514018ab09f6759))
|
|
97
|
+
|
|
98
|
+
### BREAKING CHANGES
|
|
99
|
+
|
|
100
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
101
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
102
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
103
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
104
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
105
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
106
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
107
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
108
|
+
and Polygon class returns number instead of string just to align with
|
|
109
|
+
AbstractEthLikeCoin
|
|
110
|
+
Ticket: WIN-1012
|
|
111
|
+
|
|
112
|
+
# 9.0.0 (2024-01-03)
|
|
113
|
+
|
|
114
|
+
### Bug Fixes
|
|
115
|
+
|
|
116
|
+
- **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
|
|
117
|
+
- **statics:** make corrections for arbeth and opeth ([5dfc405](https://github.com/BitGo/BitGoJS/commit/5dfc405a36fc97b2c902fec44562b169d8013a18))
|
|
118
|
+
|
|
119
|
+
### Code Refactoring
|
|
120
|
+
|
|
121
|
+
- **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
|
|
122
|
+
|
|
123
|
+
### Features
|
|
124
|
+
|
|
125
|
+
- **abstract-eth:** add chain id as network identifier ([3ddec05](https://github.com/BitGo/BitGoJS/commit/3ddec05705cff891e46d21743d0ee864d68ab216))
|
|
126
|
+
- **sdk-coin-opeth:** add opeth sdk skeleton ([42fbefa](https://github.com/BitGo/BitGoJS/commit/42fbefa54f22fa5bdaef4150ef3a643843ec8684))
|
|
127
|
+
- **sdk-coin-opeth:** add opeth tokens ([1e50329](https://github.com/BitGo/BitGoJS/commit/1e503292d26cb46ca3e2336a8514018ab09f6759))
|
|
128
|
+
|
|
129
|
+
### BREAKING CHANGES
|
|
130
|
+
|
|
131
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
132
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
133
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
134
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
135
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
136
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
137
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
138
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
139
|
+
and Polygon class returns number instead of string just to align with
|
|
140
|
+
AbstractEthLikeCoin
|
|
141
|
+
Ticket: WIN-1012
|
|
142
|
+
|
|
143
|
+
# 8.0.0 (2023-12-18)
|
|
144
|
+
|
|
145
|
+
### Bug Fixes
|
|
146
|
+
|
|
147
|
+
- **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
|
|
148
|
+
- **statics:** make corrections for arbeth and opeth ([5dfc405](https://github.com/BitGo/BitGoJS/commit/5dfc405a36fc97b2c902fec44562b169d8013a18))
|
|
149
|
+
|
|
150
|
+
### Code Refactoring
|
|
151
|
+
|
|
152
|
+
- **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
|
|
153
|
+
|
|
154
|
+
### Features
|
|
155
|
+
|
|
156
|
+
- **sdk-coin-opeth:** add opeth sdk skeleton ([42fbefa](https://github.com/BitGo/BitGoJS/commit/42fbefa54f22fa5bdaef4150ef3a643843ec8684))
|
|
157
|
+
- **sdk-coin-opeth:** add opeth tokens ([1e50329](https://github.com/BitGo/BitGoJS/commit/1e503292d26cb46ca3e2336a8514018ab09f6759))
|
|
158
|
+
|
|
159
|
+
### BREAKING CHANGES
|
|
160
|
+
|
|
161
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
162
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
163
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
164
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
165
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
166
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
167
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
168
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
169
|
+
and Polygon class returns number instead of string just to align with
|
|
170
|
+
AbstractEthLikeCoin
|
|
171
|
+
Ticket: WIN-1012
|
|
172
|
+
|
|
173
|
+
# 7.0.0 (2023-12-12)
|
|
174
|
+
|
|
175
|
+
### Bug Fixes
|
|
176
|
+
|
|
177
|
+
- **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
|
|
178
|
+
- **statics:** make corrections for arbeth and opeth ([5dfc405](https://github.com/BitGo/BitGoJS/commit/5dfc405a36fc97b2c902fec44562b169d8013a18))
|
|
179
|
+
|
|
180
|
+
### Code Refactoring
|
|
181
|
+
|
|
182
|
+
- **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
|
|
183
|
+
|
|
184
|
+
### Features
|
|
185
|
+
|
|
186
|
+
- **sdk-coin-opeth:** add opeth sdk skeleton ([42fbefa](https://github.com/BitGo/BitGoJS/commit/42fbefa54f22fa5bdaef4150ef3a643843ec8684))
|
|
187
|
+
- **sdk-coin-opeth:** add opeth tokens ([1e50329](https://github.com/BitGo/BitGoJS/commit/1e503292d26cb46ca3e2336a8514018ab09f6759))
|
|
188
|
+
|
|
189
|
+
### BREAKING CHANGES
|
|
190
|
+
|
|
191
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
192
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
193
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
194
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
195
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
196
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
197
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
198
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
199
|
+
and Polygon class returns number instead of string just to align with
|
|
200
|
+
AbstractEthLikeCoin
|
|
201
|
+
Ticket: WIN-1012
|
|
202
|
+
|
|
203
|
+
# 6.0.0 (2023-12-09)
|
|
204
|
+
|
|
205
|
+
### Bug Fixes
|
|
206
|
+
|
|
207
|
+
- **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
|
|
208
|
+
- **statics:** make corrections for arbeth and opeth ([5dfc405](https://github.com/BitGo/BitGoJS/commit/5dfc405a36fc97b2c902fec44562b169d8013a18))
|
|
209
|
+
|
|
210
|
+
### Code Refactoring
|
|
211
|
+
|
|
212
|
+
- **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
|
|
213
|
+
|
|
214
|
+
### Features
|
|
215
|
+
|
|
216
|
+
- **sdk-coin-opeth:** add opeth sdk skeleton ([42fbefa](https://github.com/BitGo/BitGoJS/commit/42fbefa54f22fa5bdaef4150ef3a643843ec8684))
|
|
217
|
+
|
|
218
|
+
### BREAKING CHANGES
|
|
219
|
+
|
|
220
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
221
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
222
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
223
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
224
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
225
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
226
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
227
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
228
|
+
and Polygon class returns number instead of string just to align with
|
|
229
|
+
AbstractEthLikeCoin
|
|
230
|
+
Ticket: WIN-1012
|
|
231
|
+
|
|
232
|
+
# 5.0.0 (2023-12-05)
|
|
233
|
+
|
|
234
|
+
### Bug Fixes
|
|
235
|
+
|
|
236
|
+
- **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
|
|
237
|
+
- **statics:** make corrections for arbeth and opeth ([5dfc405](https://github.com/BitGo/BitGoJS/commit/5dfc405a36fc97b2c902fec44562b169d8013a18))
|
|
238
|
+
|
|
239
|
+
### Code Refactoring
|
|
240
|
+
|
|
241
|
+
- **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
|
|
242
|
+
|
|
243
|
+
### Features
|
|
244
|
+
|
|
245
|
+
- **sdk-coin-opeth:** add opeth sdk skeleton ([42fbefa](https://github.com/BitGo/BitGoJS/commit/42fbefa54f22fa5bdaef4150ef3a643843ec8684))
|
|
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
|
+
# 4.0.0 (2023-11-28)
|
|
262
|
+
|
|
263
|
+
### Bug Fixes
|
|
264
|
+
|
|
265
|
+
- **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
|
|
266
|
+
- **statics:** make corrections for arbeth and opeth ([5dfc405](https://github.com/BitGo/BitGoJS/commit/5dfc405a36fc97b2c902fec44562b169d8013a18))
|
|
267
|
+
|
|
268
|
+
### Code Refactoring
|
|
269
|
+
|
|
270
|
+
- **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
|
|
271
|
+
|
|
272
|
+
### Features
|
|
273
|
+
|
|
274
|
+
- **sdk-coin-opeth:** add opeth sdk skeleton ([42fbefa](https://github.com/BitGo/BitGoJS/commit/42fbefa54f22fa5bdaef4150ef3a643843ec8684))
|
|
275
|
+
|
|
276
|
+
### BREAKING CHANGES
|
|
277
|
+
|
|
278
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
279
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
280
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
281
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
282
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
283
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
284
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
285
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
286
|
+
and Polygon class returns number instead of string just to align with
|
|
287
|
+
AbstractEthLikeCoin
|
|
288
|
+
Ticket: WIN-1012
|
|
289
|
+
|
|
290
|
+
# 3.0.0 (2023-11-24)
|
|
291
|
+
|
|
292
|
+
### Bug Fixes
|
|
293
|
+
|
|
294
|
+
- **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
|
|
295
|
+
- **statics:** make corrections for arbeth and opeth ([5dfc405](https://github.com/BitGo/BitGoJS/commit/5dfc405a36fc97b2c902fec44562b169d8013a18))
|
|
296
|
+
|
|
297
|
+
### Code Refactoring
|
|
298
|
+
|
|
299
|
+
- **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
|
|
300
|
+
|
|
301
|
+
### Features
|
|
302
|
+
|
|
303
|
+
- **sdk-coin-opeth:** add opeth sdk skeleton ([42fbefa](https://github.com/BitGo/BitGoJS/commit/42fbefa54f22fa5bdaef4150ef3a643843ec8684))
|
|
304
|
+
|
|
305
|
+
### BREAKING CHANGES
|
|
306
|
+
|
|
307
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
308
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
309
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
310
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
311
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
312
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
313
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
314
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
315
|
+
and Polygon class returns number instead of string just to align with
|
|
316
|
+
AbstractEthLikeCoin
|
|
317
|
+
Ticket: WIN-1012
|
|
318
|
+
|
|
319
|
+
# 2.0.0 (2023-11-17)
|
|
320
|
+
|
|
321
|
+
### Bug Fixes
|
|
322
|
+
|
|
323
|
+
- **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
|
|
324
|
+
- **statics:** make corrections for arbeth and opeth ([5dfc405](https://github.com/BitGo/BitGoJS/commit/5dfc405a36fc97b2c902fec44562b169d8013a18))
|
|
325
|
+
|
|
326
|
+
### Code Refactoring
|
|
327
|
+
|
|
328
|
+
- **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
|
|
329
|
+
|
|
330
|
+
### Features
|
|
331
|
+
|
|
332
|
+
- **sdk-coin-opeth:** add opeth sdk skeleton ([42fbefa](https://github.com/BitGo/BitGoJS/commit/42fbefa54f22fa5bdaef4150ef3a643843ec8684))
|
|
333
|
+
|
|
334
|
+
### BREAKING CHANGES
|
|
335
|
+
|
|
336
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
337
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
338
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
339
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
340
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
341
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
342
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
343
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
344
|
+
and Polygon class returns number instead of string just to align with
|
|
345
|
+
AbstractEthLikeCoin
|
|
346
|
+
Ticket: WIN-1012
|
|
347
|
+
|
|
348
|
+
# 1.5.0 (2023-11-13)
|
|
349
|
+
|
|
350
|
+
### Features
|
|
351
|
+
|
|
352
|
+
- **sdk-coin-opeth:** add opeth sdk skeleton ([42fbefa](https://github.com/BitGo/BitGoJS/commit/42fbefa54f22fa5bdaef4150ef3a643843ec8684))
|
|
353
|
+
|
|
354
|
+
# 1.4.0 (2023-11-13)
|
|
355
|
+
|
|
356
|
+
### Features
|
|
357
|
+
|
|
358
|
+
- **sdk-coin-opeth:** add opeth sdk skeleton ([42fbefa](https://github.com/BitGo/BitGoJS/commit/42fbefa54f22fa5bdaef4150ef3a643843ec8684))
|
|
359
|
+
|
|
360
|
+
# 1.3.0 (2023-11-13)
|
|
361
|
+
|
|
362
|
+
### Features
|
|
363
|
+
|
|
364
|
+
- **sdk-coin-opeth:** add opeth sdk skeleton ([42fbefa](https://github.com/BitGo/BitGoJS/commit/42fbefa54f22fa5bdaef4150ef3a643843ec8684))
|
|
365
|
+
|
|
6
366
|
# 1.2.0 (2023-10-20)
|
|
7
367
|
|
|
8
368
|
### Features
|
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,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
|
@@ -13,5 +13,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
13
13
|
__exportStar(require("./lib"), exports);
|
|
14
14
|
__exportStar(require("./opeth"), exports);
|
|
15
15
|
__exportStar(require("./topeth"), exports);
|
|
16
|
+
__exportStar(require("./opethToken"), exports);
|
|
16
17
|
__exportStar(require("./register"), exports);
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBQUEsd0NBQXNCO0FBQ3RCLDBDQUF3QjtBQUN4QiwyQ0FBeUI7QUFDekIsK0NBQTZCO0FBQzdCLDZDQUEyQiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vbGliJztcbmV4cG9ydCAqIGZyb20gJy4vb3BldGgnO1xuZXhwb3J0ICogZnJvbSAnLi90b3BldGgnO1xuZXhwb3J0ICogZnJvbSAnLi9vcGV0aFRva2VuJztcbmV4cG9ydCAqIGZyb20gJy4vcmVnaXN0ZXInO1xuIl19
|
package/dist/src/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as Utils from './utils';
|
|
2
2
|
export { TransactionBuilder } from './transactionBuilder';
|
|
3
3
|
export { TransferBuilder } from './transferBuilder';
|
|
4
|
-
export { Transaction, KeyPair } from '@bitgo-beta/
|
|
4
|
+
export { Transaction, KeyPair } from '@bitgo-beta/abstract-eth';
|
|
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,KAAK,KAAK,MAAM,SAAS,CAAC;AAEjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AAEjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,CAAC;AACjB,cAAc,cAAc,CAAC"}
|
package/dist/src/lib/index.js
CHANGED
|
@@ -18,6 +18,9 @@ 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.KeyPair = exports.Transaction = exports.TransferBuilder = exports.TransactionBuilder = void 0;
|
|
23
26
|
const Utils = __importStar(require("./utils"));
|
|
@@ -26,7 +29,8 @@ var transactionBuilder_1 = require("./transactionBuilder");
|
|
|
26
29
|
Object.defineProperty(exports, "TransactionBuilder", { enumerable: true, get: function () { return transactionBuilder_1.TransactionBuilder; } });
|
|
27
30
|
var transferBuilder_1 = require("./transferBuilder");
|
|
28
31
|
Object.defineProperty(exports, "TransferBuilder", { enumerable: true, get: function () { return transferBuilder_1.TransferBuilder; } });
|
|
29
|
-
var
|
|
30
|
-
Object.defineProperty(exports, "Transaction", { enumerable: true, get: function () { return
|
|
31
|
-
Object.defineProperty(exports, "KeyPair", { enumerable: true, get: function () { return
|
|
32
|
-
|
|
32
|
+
var abstract_eth_1 = require("@bitgo-beta/abstract-eth");
|
|
33
|
+
Object.defineProperty(exports, "Transaction", { enumerable: true, get: function () { return abstract_eth_1.Transaction; } });
|
|
34
|
+
Object.defineProperty(exports, "KeyPair", { enumerable: true, get: function () { return abstract_eth_1.KeyPair; } });
|
|
35
|
+
__exportStar(require("./walletUtil"), exports);
|
|
36
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbGliL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSwrQ0FBaUM7QUFLeEIsc0JBQUs7QUFIZCwyREFBMEQ7QUFBakQsd0hBQUEsa0JBQWtCLE9BQUE7QUFDM0IscURBQW9EO0FBQTNDLGtIQUFBLGVBQWUsT0FBQTtBQUN4Qix5REFBZ0U7QUFBdkQsMkdBQUEsV0FBVyxPQUFBO0FBQUUsdUdBQUEsT0FBTyxPQUFBO0FBRTdCLCtDQUE2QiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCAqIGFzIFV0aWxzIGZyb20gJy4vdXRpbHMnO1xuXG5leHBvcnQgeyBUcmFuc2FjdGlvbkJ1aWxkZXIgfSBmcm9tICcuL3RyYW5zYWN0aW9uQnVpbGRlcic7XG5leHBvcnQgeyBUcmFuc2ZlckJ1aWxkZXIgfSBmcm9tICcuL3RyYW5zZmVyQnVpbGRlcic7XG5leHBvcnQgeyBUcmFuc2FjdGlvbiwgS2V5UGFpciB9IGZyb20gJ0BiaXRnby1iZXRhL2Fic3RyYWN0LWV0aCc7XG5leHBvcnQgeyBVdGlscyB9O1xuZXhwb3J0ICogZnJvbSAnLi93YWxsZXRVdGlsJztcbiJdfQ==
|
|
@@ -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,
|
|
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"}
|
|
@@ -12,6 +12,8 @@ exports.testnetCommon = common_1.default.custom({
|
|
|
12
12
|
chainId: statics_1.coins.get('topeth').network.chainId,
|
|
13
13
|
}, {
|
|
14
14
|
baseChain: 'sepolia',
|
|
15
|
+
hardfork: 'london',
|
|
16
|
+
eips: [1559],
|
|
15
17
|
});
|
|
16
18
|
exports.mainnetCommon = common_1.default.custom({
|
|
17
19
|
name: 'optimism',
|
|
@@ -19,5 +21,7 @@ exports.mainnetCommon = common_1.default.custom({
|
|
|
19
21
|
chainId: statics_1.coins.get('opeth').network.chainId,
|
|
20
22
|
}, {
|
|
21
23
|
baseChain: 'mainnet',
|
|
24
|
+
hardfork: 'london',
|
|
25
|
+
eips: [1559],
|
|
22
26
|
});
|
|
23
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzb3VyY2VzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2xpYi9yZXNvdXJjZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEsZ0VBQWdEO0FBQ2hELGlEQUE2RDtBQUVoRCxRQUFBLGFBQWEsR0FBRyxnQkFBYyxDQUFDLE1BQU0sQ0FDaEQ7SUFDRSxJQUFJLEVBQUUsb0JBQW9CO0lBQzFCLFNBQVMsRUFBRyxlQUFLLENBQUMsR0FBRyxDQUFDLFFBQVEsQ0FBQyxDQUFDLE9BQTJCLENBQUMsT0FBTztJQUNuRSxPQUFPLEVBQUcsZUFBSyxDQUFDLEdBQUcsQ0F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HtcbiAgICBiYXNlQ2hhaW46ICdzZXBvbGlhJyxcbiAgICBoYXJkZm9yazogJ2xvbmRvbicsXG4gICAgZWlwczogWzE1NTldLFxuICB9XG4pO1xuXG5leHBvcnQgY29uc3QgbWFpbm5ldENvbW1vbiA9IEV0aGVyZXVtQ29tbW9uLmN1c3RvbShcbiAge1xuICAgIG5hbWU6ICdvcHRpbWlzbScsXG4gICAgbmV0d29ya0lkOiAoY29pbnMuZ2V0KCdvcGV0aCcpLm5ldHdvcmsgYXMgRXRoZXJldW1OZXR3b3JrKS5jaGFpbklkLFxuICAgIGNoYWluSWQ6IChjb2lucy5nZXQoJ29wZXRoJykubmV0d29yayBhcyBFdGhlcmV1bU5ldHdvcmspLmNoYWluSWQsXG4gIH0sXG4gIHtcbiAgICBiYXNlQ2hhaW46ICdtYWlubmV0JyxcbiAgICBoYXJkZm9yazogJ2xvbmRvbicsXG4gICAgZWlwczogWzE1NTldLFxuICB9XG4pO1xuIl19
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseCoin as CoinConfig } from '@bitgo-beta/statics';
|
|
2
|
-
import { TransactionBuilder as
|
|
2
|
+
import { TransactionBuilder as EthLikeTransactionBuilder } from '@bitgo-beta/abstract-eth';
|
|
3
3
|
import { TransferBuilder } from './transferBuilder';
|
|
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
7
|
/** @inheritdoc */
|
|
@@ -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,
|
|
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"}
|
|
@@ -2,14 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TransactionBuilder = void 0;
|
|
4
4
|
const sdk_core_1 = require("@bitgo-beta/sdk-core");
|
|
5
|
-
const
|
|
5
|
+
const abstract_eth_1 = require("@bitgo-beta/abstract-eth");
|
|
6
6
|
const utils_1 = require("./utils");
|
|
7
7
|
const transferBuilder_1 = require("./transferBuilder");
|
|
8
|
-
|
|
8
|
+
const walletUtil_1 = require("./walletUtil");
|
|
9
|
+
class TransactionBuilder extends abstract_eth_1.TransactionBuilder {
|
|
9
10
|
constructor(_coinConfig) {
|
|
10
11
|
super(_coinConfig);
|
|
11
12
|
this._common = utils_1.getCommon(this._coinConfig.network.type);
|
|
12
|
-
this.transaction = new
|
|
13
|
+
this.transaction = new abstract_eth_1.Transaction(this._coinConfig, this._common);
|
|
14
|
+
this._walletSimpleByteCode = walletUtil_1.walletSimpleByteCode;
|
|
13
15
|
}
|
|
14
16
|
/** @inheritdoc */
|
|
15
17
|
transfer(data) {
|
|
@@ -22,8 +24,8 @@ class TransactionBuilder extends sdk_coin_eth_1.TransactionBuilder {
|
|
|
22
24
|
return this._transfer;
|
|
23
25
|
}
|
|
24
26
|
publicKey(key) {
|
|
25
|
-
this._sourceKeyPair = new
|
|
27
|
+
this._sourceKeyPair = new abstract_eth_1.KeyPair({ pub: key });
|
|
26
28
|
}
|
|
27
29
|
}
|
|
28
30
|
exports.TransactionBuilder = TransactionBuilder;
|
|
29
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb25CdWlsZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2xpYi90cmFuc2FjdGlvbkJ1aWxkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ0EsbURBQThFO0FBQzlFLDJEQUFpSDtBQUVqSCxtQ0FBb0M7QUFDcEMsdURBQW9EO0FBQ3BELDZDQUFvRDtBQUVwRCxNQUFhLGtCQUFtQixTQUFRLGlDQUF5QjtJQUcvRCxZQUFZLFdBQWlDO1FBQzNDLEtBQUssQ0FBQyxXQUFXLENBQUMsQ0FBQztRQUNuQixJQUFJLENBQUMsT0FBTyxHQUFHLGlCQUFTLENBQUMsSUFBSSxDQUFDLFdBQVcsQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLENBQUM7UUFDeEQsSUFBSSxDQUFDLFdBQVcsR0FBRyxJQUFJLDBCQUFXLENBQUMsSUFBSSxDQUFDLFdBQVcsRUFBRSxJQUFJLENBQUMsT0FBTyxDQUFDLENBQUM7UUFDbkUsSUFBSSxDQUFDLHFCQUFxQixHQUFHLGlDQUFvQixDQUFDO0lBQ3BELENBQUM7SUFFRCxrQkFBa0I7SUFDbEIsUUFBUSxDQUFDLElBQWE7UUFDcEIsSUFBSSxJQUFJLENBQUMsS0FBSyxLQUFLLDBCQUFlLENBQUMsSUFBSSxFQUFFO1lBQ3ZDLE1BQU0sSUFBSSxnQ0FBcUIsQ0FBQyx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
|
-
/** @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,
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
getNativeOperationHashPrefix() {
|
|
8
|
-
return 'OPETH';
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
exports.TransferBuilder = TransferBuilder;
|
|
12
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNmZXJCdWlsZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2xpYi90cmFuc2ZlckJ1aWxkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsMkRBQWlGO0FBRWpGLE1BQWEsZUFBZ0IsU0FBUSw4QkFBa0I7SUFDckQsa0JBQWtCO0lBQ1IsNEJBQTRCO1FBQ3BDLE9BQU8sT0FBTyxDQUFDO0lBQ2pCLENBQUM7Q0FDRjtBQUxELDBDQUtDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgVHJhbnNmZXJCdWlsZGVyIGFzIEV0aFRyYW5zZmVyQnVpbGRlciB9IGZyb20gJ0BiaXRnby1iZXRhL3Nkay1jb2luLWV0aCc7XG5cbmV4cG9ydCBjbGFzcyBUcmFuc2ZlckJ1aWxkZXIgZXh0ZW5kcyBFdGhUcmFuc2ZlckJ1aWxkZXIge1xuICAvKiogQGluaGVyaXRkb2MgKi9cbiAgcHJvdGVjdGVkIGdldE5hdGl2ZU9wZXJhdGlvbkhhc2hQcmVmaXgoKTogc3RyaW5nIHtcbiAgICByZXR1cm4gJ09QRVRIJztcbiAgfVxufVxuIl19
|
|
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=
|