@bitgo/sdk-api 1.1.1-rc.1 → 1.1.2-hotfix.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,7 +3,7 @@
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
- ## [1.1.1-rc.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.1-rc.0...@bitgo/sdk-api@1.1.1-rc.1) (2022-07-21)
6
+ ## [1.1.2-hotfix.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.2-hotfix.0...@bitgo/sdk-api@1.1.2-hotfix.1) (2022-08-11)
7
7
 
8
8
  **Note:** Version bump only for package @bitgo/sdk-api
9
9
 
@@ -11,7 +11,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11
11
 
12
12
 
13
13
 
14
- ## [1.1.1-rc.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0...@bitgo/sdk-api@1.1.1-rc.0) (2022-07-20)
14
+ ## [1.1.2-hotfix.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.2-rc.6...@bitgo/sdk-api@1.1.2-hotfix.0) (2022-08-11)
15
15
 
16
16
  **Note:** Version bump only for package @bitgo/sdk-api
17
17
 
@@ -19,7 +19,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
19
19
 
20
20
 
21
21
 
22
- # [1.1.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.33...@bitgo/sdk-api@1.1.0) (2022-07-19)
22
+ ## [1.1.2-rc.6](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.2-rc.5...@bitgo/sdk-api@1.1.2-rc.6) (2022-08-10)
23
23
 
24
24
  **Note:** Version bump only for package @bitgo/sdk-api
25
25
 
@@ -27,7 +27,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
27
27
 
28
28
 
29
29
 
30
- # [1.1.0-rc.33](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.31...@bitgo/sdk-api@1.1.0-rc.33) (2022-07-19)
30
+ ## [1.1.2-rc.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.2-rc.2...@bitgo/sdk-api@1.1.2-rc.3) (2022-08-02)
31
31
 
32
32
  **Note:** Version bump only for package @bitgo/sdk-api
33
33
 
@@ -35,7 +35,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
35
35
 
36
36
 
37
37
 
38
- # [1.1.0-rc.32](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.31...@bitgo/sdk-api@1.1.0-rc.32) (2022-07-18)
38
+ ## [1.1.2-rc.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.2-rc.1...@bitgo/sdk-api@1.1.2-rc.2) (2022-08-01)
39
39
 
40
40
  **Note:** Version bump only for package @bitgo/sdk-api
41
41
 
@@ -43,7 +43,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
43
43
 
44
44
 
45
45
 
46
- # [1.1.0-rc.31](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.30...@bitgo/sdk-api@1.1.0-rc.31) (2022-07-15)
46
+ ## [1.1.2-rc.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.2-rc.0...@bitgo/sdk-api@1.1.2-rc.1) (2022-07-27)
47
47
 
48
48
  **Note:** Version bump only for package @bitgo/sdk-api
49
49
 
@@ -51,7 +51,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
51
51
 
52
52
 
53
53
 
54
- # [1.1.0-rc.30](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.28...@bitgo/sdk-api@1.1.0-rc.30) (2022-07-15)
54
+ ## [1.1.2-rc.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.1...@bitgo/sdk-api@1.1.2-rc.0) (2022-07-26)
55
55
 
56
56
  **Note:** Version bump only for package @bitgo/sdk-api
57
57
 
@@ -59,7 +59,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
59
59
 
60
60
 
61
61
 
62
- # [1.1.0-rc.29](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.28...@bitgo/sdk-api@1.1.0-rc.29) (2022-07-14)
62
+ ## [1.1.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.1-rc.1...@bitgo/sdk-api@1.1.1) (2022-07-21)
63
63
 
64
64
  **Note:** Version bump only for package @bitgo/sdk-api
65
65
 
@@ -67,7 +67,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
67
67
 
68
68
 
69
69
 
70
- # [1.1.0-rc.28](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.27...@bitgo/sdk-api@1.1.0-rc.28) (2022-07-12)
70
+ ## [1.1.1-rc.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.1-rc.0...@bitgo/sdk-api@1.1.1-rc.1) (2022-07-21)
71
71
 
72
72
  **Note:** Version bump only for package @bitgo/sdk-api
73
73
 
@@ -75,7 +75,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
75
75
 
76
76
 
77
77
 
78
- # [1.1.0-rc.27](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.26...@bitgo/sdk-api@1.1.0-rc.27) (2022-07-11)
78
+ ## [1.1.1-rc.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0...@bitgo/sdk-api@1.1.1-rc.0) (2022-07-20)
79
79
 
80
80
  **Note:** Version bump only for package @bitgo/sdk-api
81
81
 
@@ -83,7 +83,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
83
83
 
84
84
 
85
85
 
86
- # [1.1.0-rc.26](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.25...@bitgo/sdk-api@1.1.0-rc.26) (2022-07-07)
86
+ # [1.1.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.33...@bitgo/sdk-api@1.1.0) (2022-07-19)
87
87
 
88
88
  **Note:** Version bump only for package @bitgo/sdk-api
89
89
 
@@ -91,234 +91,158 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
91
91
 
92
92
 
93
93
 
94
- # [1.1.0-rc.25](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.24...@bitgo/sdk-api@1.1.0-rc.25) (2022-07-05)
94
+ # [1.1.0-rc.33](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.31...@bitgo/sdk-api@1.1.0-rc.33) (2022-07-19)
95
95
 
96
96
  **Note:** Version bump only for package @bitgo/sdk-api
97
97
 
98
+ # [1.1.0-rc.33](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.31...@bitgo/sdk-api@1.1.0-rc.33) (2022-07-19)
98
99
 
100
+ **Note:** Version bump only for package @bitgo/sdk-api
99
101
 
100
-
101
-
102
- # [1.1.0-rc.24](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.23...@bitgo/sdk-api@1.1.0-rc.24) (2022-07-01)
102
+ # [1.1.0-rc.32](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.31...@bitgo/sdk-api@1.1.0-rc.32) (2022-07-18)
103
103
 
104
104
  **Note:** Version bump only for package @bitgo/sdk-api
105
105
 
106
+ # [1.1.0-rc.31](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.30...@bitgo/sdk-api@1.1.0-rc.31) (2022-07-15)
106
107
 
108
+ **Note:** Version bump only for package @bitgo/sdk-api
107
109
 
110
+ # [1.1.0-rc.30](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.28...@bitgo/sdk-api@1.1.0-rc.30) (2022-07-15)
108
111
 
112
+ **Note:** Version bump only for package @bitgo/sdk-api
109
113
 
110
- # [1.1.0-rc.23](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.22...@bitgo/sdk-api@1.1.0-rc.23) (2022-06-30)
114
+ # [1.1.0-rc.29](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.28...@bitgo/sdk-api@1.1.0-rc.29) (2022-07-14)
111
115
 
112
116
  **Note:** Version bump only for package @bitgo/sdk-api
113
117
 
118
+ # [1.1.0-rc.28](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.27...@bitgo/sdk-api@1.1.0-rc.28) (2022-07-12)
114
119
 
120
+ **Note:** Version bump only for package @bitgo/sdk-api
115
121
 
122
+ # [1.1.0-rc.27](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.26...@bitgo/sdk-api@1.1.0-rc.27) (2022-07-11)
116
123
 
124
+ **Note:** Version bump only for package @bitgo/sdk-api
117
125
 
118
- # [1.1.0-rc.22](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.21...@bitgo/sdk-api@1.1.0-rc.22) (2022-06-30)
126
+ # [1.1.0-rc.26](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.25...@bitgo/sdk-api@1.1.0-rc.26) (2022-07-07)
119
127
 
120
128
  **Note:** Version bump only for package @bitgo/sdk-api
121
129
 
130
+ # [1.1.0-rc.25](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.24...@bitgo/sdk-api@1.1.0-rc.25) (2022-07-05)
122
131
 
132
+ **Note:** Version bump only for package @bitgo/sdk-api
123
133
 
134
+ # [1.1.0-rc.24](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.23...@bitgo/sdk-api@1.1.0-rc.24) (2022-07-01)
124
135
 
136
+ **Note:** Version bump only for package @bitgo/sdk-api
125
137
 
126
- # [1.1.0-rc.21](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.19...@bitgo/sdk-api@1.1.0-rc.21) (2022-06-29)
138
+ # [1.1.0-rc.23](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.22...@bitgo/sdk-api@1.1.0-rc.23) (2022-06-30)
127
139
 
128
140
  **Note:** Version bump only for package @bitgo/sdk-api
129
141
 
142
+ # [1.1.0-rc.22](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.21...@bitgo/sdk-api@1.1.0-rc.22) (2022-06-30)
130
143
 
144
+ **Note:** Version bump only for package @bitgo/sdk-api
131
145
 
146
+ # [1.1.0-rc.21](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.19...@bitgo/sdk-api@1.1.0-rc.21) (2022-06-29)
132
147
 
148
+ **Note:** Version bump only for package @bitgo/sdk-api
133
149
 
134
150
  # [1.1.0-rc.20](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.19...@bitgo/sdk-api@1.1.0-rc.20) (2022-06-29)
135
151
 
136
152
  **Note:** Version bump only for package @bitgo/sdk-api
137
153
 
138
-
139
-
140
-
141
-
142
154
  # [1.1.0-rc.19](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.18...@bitgo/sdk-api@1.1.0-rc.19) (2022-06-27)
143
155
 
144
156
  **Note:** Version bump only for package @bitgo/sdk-api
145
157
 
146
-
147
-
148
-
149
-
150
158
  # [1.1.0-rc.18](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.17...@bitgo/sdk-api@1.1.0-rc.18) (2022-06-23)
151
159
 
152
160
  **Note:** Version bump only for package @bitgo/sdk-api
153
161
 
154
-
155
-
156
-
157
-
158
162
  # [1.1.0-rc.17](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.16...@bitgo/sdk-api@1.1.0-rc.17) (2022-06-22)
159
163
 
160
-
161
164
  ### Bug Fixes
162
165
 
163
- * add dependency check to fix current and future dependency resolutions ([3074335](https://github.com/BitGo/BitGoJS/commit/30743356cff4ebb6d9e185f1a493b187614a1ea9))
164
-
165
-
166
-
167
-
166
+ - add dependency check to fix current and future dependency resolutions ([3074335](https://github.com/BitGo/BitGoJS/commit/30743356cff4ebb6d9e185f1a493b187614a1ea9))
168
167
 
169
168
  # [1.1.0-rc.16](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.15...@bitgo/sdk-api@1.1.0-rc.16) (2022-06-21)
170
169
 
171
170
  **Note:** Version bump only for package @bitgo/sdk-api
172
171
 
173
-
174
-
175
-
176
-
177
172
  # [1.1.0-rc.15](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.14...@bitgo/sdk-api@1.1.0-rc.15) (2022-06-16)
178
173
 
179
174
  **Note:** Version bump only for package @bitgo/sdk-api
180
175
 
181
-
182
-
183
-
184
-
185
176
  # [1.1.0-rc.14](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.13...@bitgo/sdk-api@1.1.0-rc.14) (2022-06-14)
186
177
 
187
178
  **Note:** Version bump only for package @bitgo/sdk-api
188
179
 
189
-
190
-
191
-
192
-
193
180
  # [1.1.0-rc.13](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.12...@bitgo/sdk-api@1.1.0-rc.13) (2022-06-14)
194
181
 
195
182
  **Note:** Version bump only for package @bitgo/sdk-api
196
183
 
197
-
198
-
199
-
200
-
201
184
  # [1.1.0-rc.12](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.11...@bitgo/sdk-api@1.1.0-rc.12) (2022-06-13)
202
185
 
203
186
  **Note:** Version bump only for package @bitgo/sdk-api
204
187
 
205
-
206
-
207
-
208
-
209
188
  # [1.1.0-rc.11](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.10...@bitgo/sdk-api@1.1.0-rc.11) (2022-06-10)
210
189
 
211
-
212
190
  ### Features
213
191
 
214
- * move coinFactory from bitgo to sdk-core ([fb7e902](https://github.com/BitGo/BitGoJS/commit/fb7e902c150a25c40310dc040ca6a8833b097cef))
215
-
216
-
217
-
218
-
192
+ - move coinFactory from bitgo to sdk-core ([fb7e902](https://github.com/BitGo/BitGoJS/commit/fb7e902c150a25c40310dc040ca6a8833b097cef))
219
193
 
220
194
  # [1.1.0-rc.10](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.9...@bitgo/sdk-api@1.1.0-rc.10) (2022-06-07)
221
195
 
222
-
223
196
  ### Bug Fixes
224
197
 
225
- * **sdk-api:** api uses own version ([e2091e9](https://github.com/BitGo/BitGoJS/commit/e2091e9074f392fcebea468c8cb60cb6eb445b84))
226
-
227
-
228
-
229
-
198
+ - **sdk-api:** api uses own version ([e2091e9](https://github.com/BitGo/BitGoJS/commit/e2091e9074f392fcebea468c8cb60cb6eb445b84))
230
199
 
231
200
  # [1.1.0-rc.9](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.8...@bitgo/sdk-api@1.1.0-rc.9) (2022-06-07)
232
201
 
233
202
  **Note:** Version bump only for package @bitgo/sdk-api
234
203
 
235
-
236
-
237
-
238
-
239
204
  # [1.1.0-rc.8](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.7...@bitgo/sdk-api@1.1.0-rc.8) (2022-06-02)
240
205
 
241
206
  **Note:** Version bump only for package @bitgo/sdk-api
242
207
 
243
-
244
-
245
-
246
-
247
208
  # [1.1.0-rc.7](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.6...@bitgo/sdk-api@1.1.0-rc.7) (2022-06-02)
248
209
 
249
210
  **Note:** Version bump only for package @bitgo/sdk-api
250
211
 
251
-
252
-
253
-
254
-
255
212
  # [1.1.0-rc.6](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.5...@bitgo/sdk-api@1.1.0-rc.6) (2022-06-01)
256
213
 
257
214
  **Note:** Version bump only for package @bitgo/sdk-api
258
215
 
259
-
260
-
261
-
262
-
263
216
  # [1.1.0-rc.5](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.4...@bitgo/sdk-api@1.1.0-rc.5) (2022-05-23)
264
217
 
265
218
  **Note:** Version bump only for package @bitgo/sdk-api
266
219
 
267
-
268
-
269
-
270
-
271
220
  # [1.1.0-rc.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.3...@bitgo/sdk-api@1.1.0-rc.4) (2022-05-19)
272
221
 
273
222
  **Note:** Version bump only for package @bitgo/sdk-api
274
223
 
275
-
276
-
277
-
278
-
279
224
  # [1.1.0-rc.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.2...@bitgo/sdk-api@1.1.0-rc.3) (2022-05-17)
280
225
 
281
226
  **Note:** Version bump only for package @bitgo/sdk-api
282
227
 
283
-
284
-
285
-
286
-
287
228
  # [1.1.0-rc.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.1...@bitgo/sdk-api@1.1.0-rc.2) (2022-05-16)
288
229
 
289
230
  **Note:** Version bump only for package @bitgo/sdk-api
290
231
 
291
-
292
-
293
-
294
-
295
232
  # [1.1.0-rc.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.0...@bitgo/sdk-api@1.1.0-rc.1) (2022-05-13)
296
233
 
297
234
  **Note:** Version bump only for package @bitgo/sdk-api
298
235
 
299
-
300
-
301
-
302
-
303
236
  # [1.1.0-rc.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.0.1-rc.3...@bitgo/sdk-api@1.1.0-rc.0) (2022-05-13)
304
237
 
305
-
306
238
  ### Features
307
239
 
308
- * **bitgo:** added sdk version to constants call ([6ee0b6a](https://github.com/BitGo/BitGoJS/commit/6ee0b6af92eb204ec220b09de8212f6061d39afb))
309
-
310
-
311
-
312
-
240
+ - **bitgo:** added sdk version to constants call ([6ee0b6a](https://github.com/BitGo/BitGoJS/commit/6ee0b6af92eb204ec220b09de8212f6061d39afb))
313
241
 
314
242
  ## [1.0.1-rc.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.0.1-rc.2...@bitgo/sdk-api@1.0.1-rc.3) (2022-05-12)
315
243
 
316
244
  **Note:** Version bump only for package @bitgo/sdk-api
317
245
 
318
-
319
-
320
-
321
-
322
246
  ## [1.0.1-rc.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.0.1-rc.0...@bitgo/sdk-api@1.0.1-rc.1) (2022-04-19)
323
247
 
324
248
  **Note:** Version bump only for package @bitgo/sdk-api
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/sdk-api",
3
- "version": "1.1.1-rc.1",
3
+ "version": "1.1.2-hotfix.1",
4
4
  "description": "REST wrapper for BitGoJS",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
@@ -20,7 +20,6 @@
20
20
  "check-fmt": "prettier --check .",
21
21
  "clean": "rm -r ./dist",
22
22
  "lint": "eslint --quiet .",
23
- "precommit": "yarn lint-staged",
24
23
  "prepare": "npm run build",
25
24
  "webpack-dev": "yarn webpack",
26
25
  "webpack-prod": "yarn webpack --mode=production --node-env=production",
@@ -51,10 +50,10 @@
51
50
  ]
52
51
  },
53
52
  "dependencies": {
54
- "@bitgo/sdk-core": "^1.1.1-rc.1",
53
+ "@bitgo/sdk-core": "2.0.0-hotfix.1",
55
54
  "@bitgo/sjcl": "^1.0.1",
56
- "@bitgo/unspents": "^0.8.4-rc.0",
57
- "@bitgo/utxo-lib": "^2.4.1",
55
+ "@bitgo/unspents": "0.8.5-hotfix.1",
56
+ "@bitgo/utxo-lib": "3.0.0-hotfix.1",
58
57
  "@types/superagent": "4.1.15",
59
58
  "bip32": "^2.0.6",
60
59
  "bitcoinjs-message": "^2.0.0",
@@ -70,5 +69,5 @@
70
69
  "superagent": "3.8.3",
71
70
  "superagent-proxy": "3.0.0"
72
71
  },
73
- "gitHead": "15b2bb57de8014fab5c616d11c7ca1edc5dc135b"
72
+ "gitHead": "3dbfe85fc2d8150432f6cbc6484943b2ed970c3c"
74
73
  }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @prettier
3
+ */
4
+ /**
5
+ * BitGoJS includes some custom hand-rolled bip32 derivation logic in `bitcoin.ts`, which sadly
6
+ * has numerous bugs.
7
+ *
8
+ * One of the effects is that the methods accept invalid bip32 paths:
9
+ * - the `m` prefix is ignored ('m/0' === '0')
10
+ * - path components that cannot be parsed as base-10 numbers are mapped to `0` ('0/x' === '0/0')
11
+ * - path components with trailing characters after numerals are accepted, trailing characters
12
+ * are ignored ('1x' === '1')
13
+ *
14
+ * This probably does not cover everything but it should cover most bugs encountered in our code.
15
+ *
16
+ * This method attempts to convert a "legacy path", which may be invalid, to a standard bip32 path:
17
+ * meaning the result should be equivalent to the input path when passed to either our custom
18
+ * derivation log or when passed to a standard bip32 library.
19
+ *
20
+ * @param path - legacy path
21
+ * @return string - somewhat sanitized path that can be passed to standard bip32 libraries
22
+ */
23
+ export declare function sanitizeLegacyPath(path: string): string;
24
+ //# sourceMappingURL=bip32path.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bip32path.d.ts","sourceRoot":"","sources":["../../src/bip32path.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAkBvD"}
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ /**
3
+ * @prettier
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.sanitizeLegacyPath = void 0;
7
+ /**
8
+ * BitGoJS includes some custom hand-rolled bip32 derivation logic in `bitcoin.ts`, which sadly
9
+ * has numerous bugs.
10
+ *
11
+ * One of the effects is that the methods accept invalid bip32 paths:
12
+ * - the `m` prefix is ignored ('m/0' === '0')
13
+ * - path components that cannot be parsed as base-10 numbers are mapped to `0` ('0/x' === '0/0')
14
+ * - path components with trailing characters after numerals are accepted, trailing characters
15
+ * are ignored ('1x' === '1')
16
+ *
17
+ * This probably does not cover everything but it should cover most bugs encountered in our code.
18
+ *
19
+ * This method attempts to convert a "legacy path", which may be invalid, to a standard bip32 path:
20
+ * meaning the result should be equivalent to the input path when passed to either our custom
21
+ * derivation log or when passed to a standard bip32 library.
22
+ *
23
+ * @param path - legacy path
24
+ * @return string - somewhat sanitized path that can be passed to standard bip32 libraries
25
+ */
26
+ function sanitizeLegacyPath(path) {
27
+ const parts = path
28
+ .split('/')
29
+ .filter((p) => p !== '')
30
+ .filter((p, i) => i !== 0 || p !== 'm')
31
+ .map((p) => {
32
+ const hardened = p.slice(-1) === "'";
33
+ const v = parseInt(p.slice(0, hardened ? -1 : undefined), 10);
34
+ if (Number.isNaN(v)) {
35
+ return '0';
36
+ }
37
+ return String(v) + (hardened ? "'" : '');
38
+ });
39
+ if (parts.length === 0) {
40
+ throw new Error(`empty path`);
41
+ }
42
+ return parts.join('/');
43
+ }
44
+ exports.sanitizeLegacyPath = sanitizeLegacyPath;
45
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmlwMzJwYXRoLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2JpcDMycGF0aC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7O0dBRUc7OztBQUVIOzs7Ozs7Ozs7Ozs7Ozs7Ozs7R0FrQkc7QUFDSCxTQUF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
1
+ <!doctype html><html><head><meta charset="utf-8"><title>BitGo SDK Sandbox</title><meta name="viewport" content="width=device-width,initial-scale=1"><script defer="defer" src="main.js"></script></head><body></body></html>