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