@bitgo-beta/sdk-coin-atom 3.1.2-beta.22 → 3.1.2-beta.220

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 +279 -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,285 @@
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
+ # [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)
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
+ # [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)
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
+ ### Features
41
+
42
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
43
+
44
+ # [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)
45
+
46
+ ### Bug Fixes
47
+
48
+ - add bech32 validation to cosmos address validation ([f5008a7](https://github.com/BitGo/BitGoJS/commit/f5008a7298f9cb470795f8087b6840cf7f254369))
49
+ - address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
50
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
51
+
52
+ ### Features
53
+
54
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
55
+
56
+ # [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)
57
+
58
+ ### Bug Fixes
59
+
60
+ - add bech32 validation to cosmos address validation ([f5008a7](https://github.com/BitGo/BitGoJS/commit/f5008a7298f9cb470795f8087b6840cf7f254369))
61
+ - address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
62
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
63
+
64
+ ### Features
65
+
66
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
67
+
68
+ # [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)
69
+
70
+ ### Bug Fixes
71
+
72
+ - add bech32 validation to cosmos address validation ([f5008a7](https://github.com/BitGo/BitGoJS/commit/f5008a7298f9cb470795f8087b6840cf7f254369))
73
+ - address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
74
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
75
+
76
+ ### Features
77
+
78
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
79
+
80
+ # [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)
81
+
82
+ ### Bug Fixes
83
+
84
+ - address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
85
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
86
+
87
+ ### Features
88
+
89
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
90
+
91
+ # [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)
92
+
93
+ ### Bug Fixes
94
+
95
+ - address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
96
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
97
+
98
+ ### Features
99
+
100
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
101
+
102
+ # [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)
103
+
104
+ ### Bug Fixes
105
+
106
+ - address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
107
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
108
+
109
+ ### Features
110
+
111
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
112
+
113
+ # [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)
114
+
115
+ ### Bug Fixes
116
+
117
+ - address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
118
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
119
+
120
+ ### Features
121
+
122
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
123
+
124
+ # [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)
125
+
126
+ ### Bug Fixes
127
+
128
+ - address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
129
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
130
+
131
+ ### Features
132
+
133
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
134
+
135
+ # [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)
136
+
137
+ ### Bug Fixes
138
+
139
+ - address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
140
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
141
+
142
+ ### Features
143
+
144
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
145
+
146
+ # [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)
147
+
148
+ ### Bug Fixes
149
+
150
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
151
+
152
+ ### Features
153
+
154
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
155
+
156
+ # [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)
157
+
158
+ ### Bug Fixes
159
+
160
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
161
+
162
+ ### Features
163
+
164
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
165
+
166
+ ## [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)
167
+
168
+ ### Bug Fixes
169
+
170
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
171
+
172
+ ## [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)
173
+
174
+ ### Bug Fixes
175
+
176
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
177
+
178
+ ## [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)
179
+
180
+ ### Bug Fixes
181
+
182
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
183
+
184
+ ## [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)
185
+
186
+ ### Bug Fixes
187
+
188
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
189
+
190
+ ## [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)
191
+
192
+ ### Bug Fixes
193
+
194
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
195
+
196
+ ## [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)
197
+
198
+ ### Bug Fixes
199
+
200
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
201
+
202
+ ## [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)
203
+
204
+ **Note:** Version bump only for package @bitgo/sdk-coin-atom
205
+
206
+ ## [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)
207
+
208
+ **Note:** Version bump only for package @bitgo/sdk-coin-atom
209
+
210
+ ## [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)
211
+
212
+ **Note:** Version bump only for package @bitgo/sdk-coin-atom
213
+
214
+ ## [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)
215
+
216
+ **Note:** Version bump only for package @bitgo/sdk-coin-atom
217
+
218
+ ## [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)
219
+
220
+ **Note:** Version bump only for package @bitgo/sdk-coin-atom
221
+
222
+ # [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)
223
+
224
+ ### Features
225
+
226
+ - **root:** add node 18 to engines and CI ([9cc6a70](https://github.com/BitGo/BitGoJS/commit/9cc6a70ba807161b7c6a0ebe3d7c47f25c7c8eca))
227
+ - **root:** remove node 14 from engines ([6ec47cb](https://github.com/BitGo/BitGoJS/commit/6ec47cbd7996cc78bbf2cf7f16595c24fe43cd41))
228
+
229
+ # [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)
230
+
231
+ ### Features
232
+
233
+ - **root:** add node 18 to engines and CI ([9cc6a70](https://github.com/BitGo/BitGoJS/commit/9cc6a70ba807161b7c6a0ebe3d7c47f25c7c8eca))
234
+ - **root:** remove node 14 from engines ([6ec47cb](https://github.com/BitGo/BitGoJS/commit/6ec47cbd7996cc78bbf2cf7f16595c24fe43cd41))
235
+
236
+ # [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)
237
+
238
+ ### Features
239
+
240
+ - **abstract-cosmos:** add support for contract call transaction ([9b7dd54](https://github.com/BitGo/BitGoJS/commit/9b7dd54c6a3a9e5cf2b47b4a94ef225f111a8baf))
241
+
242
+ ## [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)
243
+
244
+ **Note:** Version bump only for package @bitgo/sdk-coin-atom
245
+
246
+ ## [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)
247
+
248
+ **Note:** Version bump only for package @bitgo/sdk-coin-atom
249
+
250
+ ## [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)
251
+
252
+ **Note:** Version bump only for package @bitgo/sdk-coin-atom
253
+
254
+ ## [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)
255
+
256
+ **Note:** Version bump only for package @bitgo/sdk-coin-atom
257
+
258
+ # [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)
259
+
260
+ ### Features
261
+
262
+ - **sdk-core:** paillier proof user<>backup ([8c0a381](https://github.com/BitGo/BitGoJS/commit/8c0a381318be2088572e06e34c3627323d7bfe38))
263
+ - **sdk-core:** refactor signConvert to steps ([94e2cae](https://github.com/BitGo/BitGoJS/commit/94e2cae6e1292a4e9684c3c2ab7141221137d52e))
264
+ - **sdk-core:** simplify mpc.appendChallenge ([67bee8f](https://github.com/BitGo/BitGoJS/commit/67bee8f1b4f37cd12d6d14ea4d51ddcfde679563))
265
+ - **sdk-lib-mpc:** make rangeProof challenges mandatory for appendChallenge ([1f68b30](https://github.com/BitGo/BitGoJS/commit/1f68b30676966720cb1a42c039e35d3ddeea4974))
266
+
267
+ # [3.2.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.1.4...@bitgo/sdk-coin-atom@3.2.0) (2023-05-25)
268
+
269
+ ### Features
270
+
271
+ - **sdk-coin-atom:** add recover mechanism for ATOM ([0e4cfc7](https://github.com/BitGo/BitGoJS/commit/0e4cfc74201f9a44ec3b4b9c7591a6fbd3f2efb6))
272
+
273
+ ## [3.1.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.1.3...@bitgo/sdk-coin-atom@3.1.4) (2023-05-17)
274
+
275
+ **Note:** Version bump only for package @bitgo/sdk-coin-atom
276
+
277
+ ## [3.1.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.1.2...@bitgo/sdk-coin-atom@3.1.3) (2023-05-10)
278
+
279
+ **Note:** Version bump only for package @bitgo/sdk-coin-atom
280
+
281
+ ## [3.1.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.1.1...@bitgo/sdk-coin-atom@3.1.2) (2023-05-03)
282
+
283
+ **Note:** Version bump only for package @bitgo/sdk-coin-atom
284
+
6
285
  ## [3.1.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-atom@3.1.0...@bitgo/sdk-coin-atom@3.1.1) (2023-04-25)
7
286
 
8
287
  **Note:** Version bump only for package @bitgo/sdk-coin-atom
@@ -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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