@bitgo-beta/sdk-coin-atom 3.1.2-beta.25 → 3.1.2-beta.251

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.
Files changed (44) hide show
  1. package/CHANGELOG.md +382 -0
  2. package/dist/src/atom.d.ts +7 -114
  3. package/dist/src/atom.d.ts.map +1 -1
  4. package/dist/src/atom.js +12 -498
  5. package/dist/src/lib/constants.d.ts +1 -6
  6. package/dist/src/lib/constants.d.ts.map +1 -1
  7. package/dist/src/lib/constants.js +5 -10
  8. package/dist/src/lib/index.d.ts +3 -8
  9. package/dist/src/lib/index.d.ts.map +1 -1
  10. package/dist/src/lib/index.js +11 -16
  11. package/dist/src/lib/keyPair.d.ts +3 -12
  12. package/dist/src/lib/keyPair.d.ts.map +1 -1
  13. package/dist/src/lib/keyPair.js +4 -42
  14. package/dist/src/lib/transactionBuilderFactory.d.ts +7 -11
  15. package/dist/src/lib/transactionBuilderFactory.d.ts.map +1 -1
  16. package/dist/src/lib/transactionBuilderFactory.js +16 -11
  17. package/dist/src/lib/utils.d.ts +5 -159
  18. package/dist/src/lib/utils.d.ts.map +1 -1
  19. package/dist/src/lib/utils.js +9 -489
  20. package/dist/src/tatom.d.ts +0 -8
  21. package/dist/src/tatom.d.ts.map +1 -1
  22. package/dist/src/tatom.js +1 -13
  23. package/package.json +10 -15
  24. package/dist/src/lib/StakingActivateBuilder.d.ts +0 -11
  25. package/dist/src/lib/StakingActivateBuilder.d.ts.map +0 -1
  26. package/dist/src/lib/StakingActivateBuilder.js +0 -31
  27. package/dist/src/lib/StakingDeactivateBuilder.d.ts +0 -11
  28. package/dist/src/lib/StakingDeactivateBuilder.d.ts.map +0 -1
  29. package/dist/src/lib/StakingDeactivateBuilder.js +0 -31
  30. package/dist/src/lib/StakingWithdrawRewardsBuilder.d.ts +0 -11
  31. package/dist/src/lib/StakingWithdrawRewardsBuilder.d.ts.map +0 -1
  32. package/dist/src/lib/StakingWithdrawRewardsBuilder.js +0 -31
  33. package/dist/src/lib/iface.d.ts +0 -46
  34. package/dist/src/lib/iface.d.ts.map +0 -1
  35. package/dist/src/lib/iface.js +0 -3
  36. package/dist/src/lib/transaction.d.ts +0 -58
  37. package/dist/src/lib/transaction.d.ts.map +0 -1
  38. package/dist/src/lib/transaction.js +0 -271
  39. package/dist/src/lib/transactionBuilder.d.ts +0 -78
  40. package/dist/src/lib/transactionBuilder.d.ts.map +0 -1
  41. package/dist/src/lib/transactionBuilder.js +0 -179
  42. package/dist/src/lib/transferBuilder.d.ts +0 -11
  43. package/dist/src/lib/transferBuilder.d.ts.map +0 -1
  44. package/dist/src/lib/transferBuilder.js +0 -31
package/CHANGELOG.md CHANGED
@@ -3,6 +3,388 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [9.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.6.0...@bitgo/sdk-coin-atom@9.0.0) (2024-01-26)
7
+
8
+ ### Bug Fixes
9
+
10
+ - add bech32 validation to cosmos address validation ([f5008a7](https://github.com/BitGo/BitGoJS/commit/f5008a7298f9cb470795f8087b6840cf7f254369))
11
+ - address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
12
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
13
+
14
+ ### Code Refactoring
15
+
16
+ - **sdk-coin-atom:** use abstract-cosmos ([18abbea](https://github.com/BitGo/BitGoJS/commit/18abbea939bb8f1cee1bbc72cfd8a2955468fcc5))
17
+
18
+ ### Features
19
+
20
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
21
+
22
+ ### BREAKING CHANGES
23
+
24
+ - **sdk-coin-atom:** restructured exports
25
+
26
+ * Removed constants overlapping with @bitgo/abstract-cosmos
27
+ * Removed common Interfaces exported by @bitgo/abstract-cosmos
28
+
29
+ Code dependent on the previously exported Interfaces/Constants needs to
30
+ be updated to import these from @bitgo/abstract-cosmos instead
31
+
32
+ # [8.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.6.0...@bitgo/sdk-coin-atom@8.0.0) (2024-01-26)
33
+
34
+ ### Bug Fixes
35
+
36
+ - add bech32 validation to cosmos address validation ([f5008a7](https://github.com/BitGo/BitGoJS/commit/f5008a7298f9cb470795f8087b6840cf7f254369))
37
+ - address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
38
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
39
+
40
+ ### Code Refactoring
41
+
42
+ - **sdk-coin-atom:** use abstract-cosmos ([18abbea](https://github.com/BitGo/BitGoJS/commit/18abbea939bb8f1cee1bbc72cfd8a2955468fcc5))
43
+
44
+ ### Features
45
+
46
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
47
+
48
+ ### BREAKING CHANGES
49
+
50
+ - **sdk-coin-atom:** restructured exports
51
+
52
+ * Removed constants overlapping with @bitgo/abstract-cosmos
53
+ * Removed common Interfaces exported by @bitgo/abstract-cosmos
54
+
55
+ Code dependent on the previously exported Interfaces/Constants needs to
56
+ be updated to import these from @bitgo/abstract-cosmos instead
57
+
58
+ # [7.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.6.0...@bitgo/sdk-coin-atom@7.0.0) (2024-01-25)
59
+
60
+ ### Bug Fixes
61
+
62
+ - add bech32 validation to cosmos address validation ([f5008a7](https://github.com/BitGo/BitGoJS/commit/f5008a7298f9cb470795f8087b6840cf7f254369))
63
+ - address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
64
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
65
+
66
+ ### Code Refactoring
67
+
68
+ - **sdk-coin-atom:** use abstract-cosmos ([18abbea](https://github.com/BitGo/BitGoJS/commit/18abbea939bb8f1cee1bbc72cfd8a2955468fcc5))
69
+
70
+ ### Features
71
+
72
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
73
+
74
+ ### BREAKING CHANGES
75
+
76
+ - **sdk-coin-atom:** restructured exports
77
+
78
+ * Removed constants overlapping with @bitgo/abstract-cosmos
79
+ * Removed common Interfaces exported by @bitgo/abstract-cosmos
80
+
81
+ Code dependent on the previously exported Interfaces/Constants needs to
82
+ be updated to import these from @bitgo/abstract-cosmos instead
83
+
84
+ # [6.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.6.0...@bitgo/sdk-coin-atom@6.0.0) (2024-01-22)
85
+
86
+ ### Bug Fixes
87
+
88
+ - add bech32 validation to cosmos address validation ([f5008a7](https://github.com/BitGo/BitGoJS/commit/f5008a7298f9cb470795f8087b6840cf7f254369))
89
+ - address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
90
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
91
+
92
+ ### Code Refactoring
93
+
94
+ - **sdk-coin-atom:** use abstract-cosmos ([18abbea](https://github.com/BitGo/BitGoJS/commit/18abbea939bb8f1cee1bbc72cfd8a2955468fcc5))
95
+
96
+ ### Features
97
+
98
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
99
+
100
+ ### BREAKING CHANGES
101
+
102
+ - **sdk-coin-atom:** restructured exports
103
+
104
+ * Removed constants overlapping with @bitgo/abstract-cosmos
105
+ * Removed common Interfaces exported by @bitgo/abstract-cosmos
106
+
107
+ Code dependent on the previously exported Interfaces/Constants needs to
108
+ be updated to import these from @bitgo/abstract-cosmos instead
109
+
110
+ # [5.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.6.0...@bitgo/sdk-coin-atom@5.0.0) (2024-01-09)
111
+
112
+ ### Bug Fixes
113
+
114
+ - add bech32 validation to cosmos address validation ([f5008a7](https://github.com/BitGo/BitGoJS/commit/f5008a7298f9cb470795f8087b6840cf7f254369))
115
+ - address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
116
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
117
+
118
+ ### Code Refactoring
119
+
120
+ - **sdk-coin-atom:** use abstract-cosmos ([18abbea](https://github.com/BitGo/BitGoJS/commit/18abbea939bb8f1cee1bbc72cfd8a2955468fcc5))
121
+
122
+ ### Features
123
+
124
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
125
+
126
+ ### BREAKING CHANGES
127
+
128
+ - **sdk-coin-atom:** restructured exports
129
+
130
+ * Removed constants overlapping with @bitgo/abstract-cosmos
131
+ * Removed common Interfaces exported by @bitgo/abstract-cosmos
132
+
133
+ Code dependent on the previously exported Interfaces/Constants needs to
134
+ be updated to import these from @bitgo/abstract-cosmos instead
135
+
136
+ # [4.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.6.0...@bitgo/sdk-coin-atom@4.0.0) (2024-01-03)
137
+
138
+ ### Bug Fixes
139
+
140
+ - add bech32 validation to cosmos address validation ([f5008a7](https://github.com/BitGo/BitGoJS/commit/f5008a7298f9cb470795f8087b6840cf7f254369))
141
+ - address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
142
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
143
+
144
+ ### Code Refactoring
145
+
146
+ - **sdk-coin-atom:** use abstract-cosmos ([18abbea](https://github.com/BitGo/BitGoJS/commit/18abbea939bb8f1cee1bbc72cfd8a2955468fcc5))
147
+
148
+ ### Features
149
+
150
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
151
+
152
+ ### BREAKING CHANGES
153
+
154
+ - **sdk-coin-atom:** restructured exports
155
+
156
+ * Removed constants overlapping with @bitgo/abstract-cosmos
157
+ * Removed common Interfaces exported by @bitgo/abstract-cosmos
158
+
159
+ Code dependent on the previously exported Interfaces/Constants needs to
160
+ be updated to import these from @bitgo/abstract-cosmos instead
161
+
162
+ # [3.18.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.6.0...@bitgo/sdk-coin-atom@3.18.0) (2023-12-18)
163
+
164
+ ### Bug Fixes
165
+
166
+ - add bech32 validation to cosmos address validation ([f5008a7](https://github.com/BitGo/BitGoJS/commit/f5008a7298f9cb470795f8087b6840cf7f254369))
167
+ - address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
168
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
169
+
170
+ ### Features
171
+
172
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
173
+
174
+ # [3.17.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.6.0...@bitgo/sdk-coin-atom@3.17.0) (2023-12-12)
175
+
176
+ ### Bug Fixes
177
+
178
+ - add bech32 validation to cosmos address validation ([f5008a7](https://github.com/BitGo/BitGoJS/commit/f5008a7298f9cb470795f8087b6840cf7f254369))
179
+ - address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
180
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
181
+
182
+ ### Features
183
+
184
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
185
+
186
+ # [3.16.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.6.0...@bitgo/sdk-coin-atom@3.16.0) (2023-12-09)
187
+
188
+ ### Bug Fixes
189
+
190
+ - add bech32 validation to cosmos address validation ([f5008a7](https://github.com/BitGo/BitGoJS/commit/f5008a7298f9cb470795f8087b6840cf7f254369))
191
+ - address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
192
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
193
+
194
+ ### Features
195
+
196
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
197
+
198
+ # [3.15.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.6.0...@bitgo/sdk-coin-atom@3.15.0) (2023-12-05)
199
+
200
+ ### Bug Fixes
201
+
202
+ - add bech32 validation to cosmos address validation ([f5008a7](https://github.com/BitGo/BitGoJS/commit/f5008a7298f9cb470795f8087b6840cf7f254369))
203
+ - address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
204
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
205
+
206
+ ### Features
207
+
208
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
209
+
210
+ # [3.14.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.6.0...@bitgo/sdk-coin-atom@3.14.0) (2023-11-28)
211
+
212
+ ### Bug Fixes
213
+
214
+ - address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
215
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
216
+
217
+ ### Features
218
+
219
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
220
+
221
+ # [3.13.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.6.0...@bitgo/sdk-coin-atom@3.13.0) (2023-11-24)
222
+
223
+ ### Bug Fixes
224
+
225
+ - address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
226
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
227
+
228
+ ### Features
229
+
230
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
231
+
232
+ # [3.12.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.6.0...@bitgo/sdk-coin-atom@3.12.0) (2023-11-17)
233
+
234
+ ### Bug Fixes
235
+
236
+ - address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
237
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
238
+
239
+ ### Features
240
+
241
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
242
+
243
+ # [3.11.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.6.0...@bitgo/sdk-coin-atom@3.11.0) (2023-11-13)
244
+
245
+ ### Bug Fixes
246
+
247
+ - address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
248
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
249
+
250
+ ### Features
251
+
252
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
253
+
254
+ # [3.10.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.6.0...@bitgo/sdk-coin-atom@3.10.0) (2023-11-13)
255
+
256
+ ### Bug Fixes
257
+
258
+ - address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
259
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
260
+
261
+ ### Features
262
+
263
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
264
+
265
+ # [3.9.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.6.0...@bitgo/sdk-coin-atom@3.9.0) (2023-11-13)
266
+
267
+ ### Bug Fixes
268
+
269
+ - address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
270
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
271
+
272
+ ### Features
273
+
274
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
275
+
276
+ # [3.8.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.6.0...@bitgo/sdk-coin-atom@3.8.0) (2023-10-20)
277
+
278
+ ### Bug Fixes
279
+
280
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
281
+
282
+ ### Features
283
+
284
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
285
+
286
+ # [3.7.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.6.0...@bitgo/sdk-coin-atom@3.7.0) (2023-10-18)
287
+
288
+ ### Bug Fixes
289
+
290
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
291
+
292
+ ### Features
293
+
294
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
295
+
296
+ ## [3.6.11](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.6.0...@bitgo/sdk-coin-atom@3.6.11) (2023-09-25)
297
+
298
+ ### Bug Fixes
299
+
300
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
301
+
302
+ ## [3.6.10](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.6.0...@bitgo/sdk-coin-atom@3.6.10) (2023-09-09)
303
+
304
+ ### Bug Fixes
305
+
306
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
307
+
308
+ ## [3.6.9](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.6.0...@bitgo/sdk-coin-atom@3.6.9) (2023-09-09)
309
+
310
+ ### Bug Fixes
311
+
312
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
313
+
314
+ ## [3.6.8](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.6.0...@bitgo/sdk-coin-atom@3.6.8) (2023-09-07)
315
+
316
+ ### Bug Fixes
317
+
318
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
319
+
320
+ ## [3.6.7](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.6.0...@bitgo/sdk-coin-atom@3.6.7) (2023-09-05)
321
+
322
+ ### Bug Fixes
323
+
324
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
325
+
326
+ ## [3.6.6](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.6.0...@bitgo/sdk-coin-atom@3.6.6) (2023-09-01)
327
+
328
+ ### Bug Fixes
329
+
330
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
331
+
332
+ ## [3.6.5](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.6.0...@bitgo/sdk-coin-atom@3.6.5) (2023-08-29)
333
+
334
+ **Note:** Version bump only for package @bitgo/sdk-coin-atom
335
+
336
+ ## [3.6.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.6.0...@bitgo/sdk-coin-atom@3.6.4) (2023-08-25)
337
+
338
+ **Note:** Version bump only for package @bitgo/sdk-coin-atom
339
+
340
+ ## [3.6.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.6.0...@bitgo/sdk-coin-atom@3.6.3) (2023-08-24)
341
+
342
+ **Note:** Version bump only for package @bitgo/sdk-coin-atom
343
+
344
+ ## [3.6.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.6.0...@bitgo/sdk-coin-atom@3.6.2) (2023-08-16)
345
+
346
+ **Note:** Version bump only for package @bitgo/sdk-coin-atom
347
+
348
+ ## [3.6.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.6.0...@bitgo/sdk-coin-atom@3.6.1) (2023-08-16)
349
+
350
+ **Note:** Version bump only for package @bitgo/sdk-coin-atom
351
+
352
+ # [3.6.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.4.0...@bitgo/sdk-coin-atom@3.6.0) (2023-08-04)
353
+
354
+ ### Features
355
+
356
+ - **root:** add node 18 to engines and CI ([9cc6a70](https://github.com/BitGo/BitGoJS/commit/9cc6a70ba807161b7c6a0ebe3d7c47f25c7c8eca))
357
+ - **root:** remove node 14 from engines ([6ec47cb](https://github.com/BitGo/BitGoJS/commit/6ec47cbd7996cc78bbf2cf7f16595c24fe43cd41))
358
+
359
+ # [3.5.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.4.0...@bitgo/sdk-coin-atom@3.5.0) (2023-07-28)
360
+
361
+ ### Features
362
+
363
+ - **root:** add node 18 to engines and CI ([9cc6a70](https://github.com/BitGo/BitGoJS/commit/9cc6a70ba807161b7c6a0ebe3d7c47f25c7c8eca))
364
+ - **root:** remove node 14 from engines ([6ec47cb](https://github.com/BitGo/BitGoJS/commit/6ec47cbd7996cc78bbf2cf7f16595c24fe43cd41))
365
+
366
+ # [3.4.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.3.4...@bitgo/sdk-coin-atom@3.4.0) (2023-07-18)
367
+
368
+ ### Features
369
+
370
+ - **abstract-cosmos:** add support for contract call transaction ([9b7dd54](https://github.com/BitGo/BitGoJS/commit/9b7dd54c6a3a9e5cf2b47b4a94ef225f111a8baf))
371
+
372
+ ## [3.3.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.3.3...@bitgo/sdk-coin-atom@3.3.4) (2023-06-21)
373
+
374
+ **Note:** Version bump only for package @bitgo/sdk-coin-atom
375
+
376
+ ## [3.3.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.3.2...@bitgo/sdk-coin-atom@3.3.3) (2023-06-14)
377
+
378
+ **Note:** Version bump only for package @bitgo/sdk-coin-atom
379
+
380
+ ## [3.3.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.3.1...@bitgo/sdk-coin-atom@3.3.2) (2023-06-13)
381
+
382
+ **Note:** Version bump only for package @bitgo/sdk-coin-atom
383
+
384
+ ## [3.3.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.3.0...@bitgo/sdk-coin-atom@3.3.1) (2023-06-07)
385
+
386
+ **Note:** Version bump only for package @bitgo/sdk-coin-atom
387
+
6
388
  # [3.3.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.2.0...@bitgo/sdk-coin-atom@3.3.0) (2023-06-05)
7
389
 
8
390
  ### Features
@@ -1,133 +1,26 @@
1
- /// <reference types="node" />
2
- import { BaseCoin, BitGoBase, ExplanationResult, KeyPair, MPCAlgorithm, ParsedTransaction, ParseTransactionOptions, SignedTransaction, SignTransactionOptions, VerifyAddressOptions, VerifyTransactionOptions } from '@bitgo-beta/sdk-core';
3
- import { BaseCoin as StaticsBaseCoin, CoinFamily } from '@bitgo-beta/statics';
4
- import { Hash } from 'crypto';
1
+ import { CosmosCoin, CosmosKeyPair, GasAmountDetails } from '@bitgo-beta/abstract-cosmos';
2
+ import { BaseCoin, BitGoBase } from '@bitgo-beta/sdk-core';
3
+ import { BaseCoin as StaticsBaseCoin } from '@bitgo-beta/statics';
5
4
  import { TransactionBuilderFactory } from './lib';
6
- import * as request from 'superagent';
7
- /**
8
- * Atom accounts support memo Id based addresses
9
- */
10
- interface AddressDetails {
11
- address: string;
12
- memoId?: string | undefined;
13
- }
14
- interface RecoveryOptions {
15
- userKey?: string;
16
- backupKey?: string;
17
- bitgoKey: string;
18
- recoveryDestination: string;
19
- krsProvider?: string;
20
- walletPassphrase?: string;
21
- startingScanIndex?: number;
22
- scan?: number;
23
- }
24
- interface AtomTx {
25
- serializedTx: string;
26
- scanIndex: number;
27
- }
28
- export declare class Atom extends BaseCoin {
5
+ export declare class Atom extends CosmosCoin {
29
6
  protected readonly _staticsCoin: Readonly<StaticsBaseCoin>;
30
7
  protected constructor(bitgo: BitGoBase, staticsCoin?: Readonly<StaticsBaseCoin>);
31
8
  static createInstance(bitgo: BitGoBase, staticsCoin?: Readonly<StaticsBaseCoin>): BaseCoin;
32
9
  /** @inheritDoc **/
33
10
  getBaseFactor(): string | number;
34
- /** @inheritDoc **/
35
- getChain(): string;
36
- /** @inheritDoc **/
37
- getFamily(): CoinFamily;
38
- /** @inheritDoc **/
39
- getFullName(): string;
40
- /** @inheritDoc */
41
- supportsTss(): boolean;
42
- /** @inheritDoc **/
43
- getMPCAlgorithm(): MPCAlgorithm;
44
- /** @inheritDoc **/
45
- isValidPub(pub: string): boolean;
46
- /** @inheritDoc **/
47
- isValidPrv(prv: string): boolean;
48
11
  getBuilder(): TransactionBuilderFactory;
49
12
  /** @inheritDoc **/
50
13
  isValidAddress(address: string): boolean;
51
14
  /** @inheritDoc **/
52
- verifyTransaction(params: VerifyTransactionOptions): Promise<boolean>;
53
- /** @inheritDoc **/
54
- parseTransaction(params: ParseTransactionOptions & {
55
- txHex: string;
56
- }): Promise<ParsedTransaction>;
15
+ getDenomination(): string;
57
16
  /** @inheritDoc **/
58
- explainTransaction(options: {
59
- txHex: string;
60
- }): Promise<ExplanationResult>;
17
+ getGasAmountDetails(): GasAmountDetails;
61
18
  /** @inheritDoc **/
62
- generateKeyPair(seed?: Buffer): KeyPair;
63
- /**
64
- * Sign a transaction with a single private key
65
- * @param params parameters in the form of { txPrebuild: {txHex}, prv }
66
- * @returns signed transaction in the form of { txHex }
67
- */
68
- signTransaction(params: SignTransactionOptions & {
69
- txPrebuild: {
70
- txHex: string;
71
- };
72
- prv: string;
73
- }): Promise<SignedTransaction>;
74
- /**
75
- * Builds a funds recovery transaction without BitGo
76
- * @param {RecoveryOptions} params parameters needed to construct and
77
- * (maybe) sign the transaction
78
- *
79
- * @returns {AtomTx} the serialized transaction hex string and index
80
- * of the address being swept
81
- */
82
- recover(params: RecoveryOptions): Promise<AtomTx>;
83
- /**
84
- * Get balance from public node
85
- */
86
- protected getBalanceFromNode(senderAddress: string): Promise<request.Response>;
87
- /**
88
- * Helper to fetch chainId
89
- */
90
- protected getChainId(): Promise<string>;
91
- /**
92
- * Get chain id from public node
93
- */
94
- protected getChainIdFromNode(): Promise<request.Response>;
95
- /**
96
- * Helper to fetch account number
97
- */
98
- protected getAccountDetails(senderAddress: string): Promise<string[]>;
99
- /**
100
- * Get account number from public node
101
- */
102
- protected getAccountFromNode(senderAddress: string): Promise<request.Response>;
103
- /**
104
- * Helper to fetch account balance
105
- */
106
- protected getAccountBalance(senderAddress: string): Promise<string>;
19
+ getKeyPair(publicKey: string): CosmosKeyPair;
107
20
  /**
108
21
  * Get the public node url from the Environments constant we have defined
109
22
  */
110
23
  protected getPublicNodeUrl(): string;
111
24
  getAddressFromPublicKey(pubKey: string): string;
112
- /** @inheritDoc **/
113
- isWalletAddress(params: VerifyAddressOptions): Promise<boolean>;
114
- getHashFunction(): Hash;
115
- /**
116
- * Process address into address and memo id
117
- *
118
- * @param address the address
119
- * @returns object containing address and memo id
120
- */
121
- getAddressDetails(address: string): AddressDetails;
122
- /**
123
- * Return boolean indicating whether a memo id is valid
124
- *
125
- * @param memoId memo id
126
- * @returns true if memo id is valid
127
- */
128
- isValidMemoId(memoId: string): boolean;
129
- private getKeyCombinedFromTssKeyShares;
130
- private signRecoveryTSS;
131
25
  }
132
- export {};
133
26
  //# sourceMappingURL=atom.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"atom.d.ts","sourceRoot":"","sources":["../../src/atom.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,QAAQ,EAER,SAAS,EAKT,iBAAiB,EAIjB,OAAO,EACP,YAAY,EACZ,iBAAiB,EACjB,uBAAuB,EACvB,iBAAiB,EAEjB,sBAAsB,EAGtB,oBAAoB,EACpB,wBAAwB,EACzB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,QAAQ,IAAI,eAAe,EAAE,UAAU,EAAS,MAAM,qBAAqB,CAAC;AAGrF,OAAO,EAAc,IAAI,EAAe,MAAM,QAAQ,CAAC;AAKvD,OAAO,EAAuC,yBAAyB,EAAE,MAAM,OAAO,CAAC;AACvF,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AAMtC;;GAEG;AACH,UAAU,cAAc;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B;AASD,UAAU,eAAe;I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