@bitgo-beta/abstract-cosmos 1.0.1-beta.2 → 1.0.1-beta.200

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 (42) hide show
  1. package/CHANGELOG.md +311 -0
  2. package/dist/src/cosmosCoin.d.ts +141 -0
  3. package/dist/src/cosmosCoin.d.ts.map +1 -0
  4. package/dist/src/cosmosCoin.js +542 -0
  5. package/dist/src/index.d.ts +1 -0
  6. package/dist/src/index.d.ts.map +1 -1
  7. package/dist/src/index.js +4 -1
  8. package/dist/src/lib/ContractCallBuilder.d.ts +13 -0
  9. package/dist/src/lib/ContractCallBuilder.d.ts.map +1 -0
  10. package/dist/src/lib/ContractCallBuilder.js +28 -0
  11. package/dist/src/lib/StakingActivateBuilder.d.ts +13 -0
  12. package/dist/src/lib/StakingActivateBuilder.d.ts.map +1 -0
  13. package/dist/src/lib/StakingActivateBuilder.js +28 -0
  14. package/dist/src/lib/StakingDeactivateBuilder.d.ts +13 -0
  15. package/dist/src/lib/StakingDeactivateBuilder.d.ts.map +1 -0
  16. package/dist/src/lib/StakingDeactivateBuilder.js +28 -0
  17. package/dist/src/lib/StakingWithdrawRewardsBuilder.d.ts +13 -0
  18. package/dist/src/lib/StakingWithdrawRewardsBuilder.d.ts.map +1 -0
  19. package/dist/src/lib/StakingWithdrawRewardsBuilder.js +28 -0
  20. package/dist/src/lib/constants.d.ts +2 -0
  21. package/dist/src/lib/constants.d.ts.map +1 -1
  22. package/dist/src/lib/constants.js +4 -2
  23. package/dist/src/lib/iface.d.ts +40 -4
  24. package/dist/src/lib/iface.d.ts.map +1 -1
  25. package/dist/src/lib/iface.js +18 -1
  26. package/dist/src/lib/index.d.ts +6 -1
  27. package/dist/src/lib/index.d.ts.map +1 -1
  28. package/dist/src/lib/index.js +13 -3
  29. package/dist/src/lib/transaction.d.ts +13 -1
  30. package/dist/src/lib/transaction.d.ts.map +1 -1
  31. package/dist/src/lib/transaction.js +130 -74
  32. package/dist/src/lib/transactionBuilder.d.ts +31 -5
  33. package/dist/src/lib/transactionBuilder.d.ts.map +1 -1
  34. package/dist/src/lib/transactionBuilder.js +99 -10
  35. package/dist/src/lib/transferBuilder.d.ts +13 -0
  36. package/dist/src/lib/transferBuilder.d.ts.map +1 -0
  37. package/dist/src/lib/transferBuilder.js +28 -0
  38. package/dist/src/lib/utils.d.ts +173 -11
  39. package/dist/src/lib/utils.d.ts.map +1 -1
  40. package/dist/src/lib/utils.js +379 -19
  41. package/dist/tsconfig.tsbuildinfo +1 -10779
  42. package/package.json +11 -7
package/CHANGELOG.md ADDED
@@ -0,0 +1,311 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ # [1.18.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.18.0) (2023-12-18)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
11
+ - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
12
+ - add bech32 validation to cosmos address validation ([f5008a7](https://github.com/BitGo/BitGoJS/commit/f5008a7298f9cb470795f8087b6840cf7f254369))
13
+ - address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
14
+
15
+ ### Features
16
+
17
+ - **abstract-cosmos:** add support for different pubkey types ([e257093](https://github.com/BitGo/BitGoJS/commit/e257093605a4bfe22fbe0b0f9933bfef1a3975c6))
18
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
19
+
20
+ # [1.17.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.17.0) (2023-12-12)
21
+
22
+ ### Bug Fixes
23
+
24
+ - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
25
+ - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
26
+ - add bech32 validation to cosmos address validation ([f5008a7](https://github.com/BitGo/BitGoJS/commit/f5008a7298f9cb470795f8087b6840cf7f254369))
27
+ - address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
28
+
29
+ ### Features
30
+
31
+ - **abstract-cosmos:** add support for different pubkey types ([e257093](https://github.com/BitGo/BitGoJS/commit/e257093605a4bfe22fbe0b0f9933bfef1a3975c6))
32
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
33
+
34
+ # [1.16.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.16.0) (2023-12-09)
35
+
36
+ ### Bug Fixes
37
+
38
+ - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
39
+ - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
40
+ - add bech32 validation to cosmos address validation ([f5008a7](https://github.com/BitGo/BitGoJS/commit/f5008a7298f9cb470795f8087b6840cf7f254369))
41
+ - address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
42
+
43
+ ### Features
44
+
45
+ - **abstract-cosmos:** add support for different pubkey types ([e257093](https://github.com/BitGo/BitGoJS/commit/e257093605a4bfe22fbe0b0f9933bfef1a3975c6))
46
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
47
+
48
+ # [1.15.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.15.0) (2023-12-05)
49
+
50
+ ### Bug Fixes
51
+
52
+ - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
53
+ - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
54
+ - add bech32 validation to cosmos address validation ([f5008a7](https://github.com/BitGo/BitGoJS/commit/f5008a7298f9cb470795f8087b6840cf7f254369))
55
+ - address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
56
+
57
+ ### Features
58
+
59
+ - **abstract-cosmos:** add support for different pubkey types ([e257093](https://github.com/BitGo/BitGoJS/commit/e257093605a4bfe22fbe0b0f9933bfef1a3975c6))
60
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
61
+
62
+ # [1.14.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.14.0) (2023-11-28)
63
+
64
+ ### Bug Fixes
65
+
66
+ - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
67
+ - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
68
+ - address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
69
+
70
+ ### Features
71
+
72
+ - **abstract-cosmos:** add support for different pubkey types ([e257093](https://github.com/BitGo/BitGoJS/commit/e257093605a4bfe22fbe0b0f9933bfef1a3975c6))
73
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
74
+
75
+ # [1.13.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.13.0) (2023-11-24)
76
+
77
+ ### Bug Fixes
78
+
79
+ - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
80
+ - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
81
+ - address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
82
+
83
+ ### Features
84
+
85
+ - **abstract-cosmos:** add support for different pubkey types ([e257093](https://github.com/BitGo/BitGoJS/commit/e257093605a4bfe22fbe0b0f9933bfef1a3975c6))
86
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
87
+
88
+ # [1.12.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.12.0) (2023-11-17)
89
+
90
+ ### Bug Fixes
91
+
92
+ - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
93
+ - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
94
+ - address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
95
+
96
+ ### Features
97
+
98
+ - **abstract-cosmos:** add support for different pubkey types ([e257093](https://github.com/BitGo/BitGoJS/commit/e257093605a4bfe22fbe0b0f9933bfef1a3975c6))
99
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
100
+
101
+ # [1.11.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.11.0) (2023-11-13)
102
+
103
+ ### Bug Fixes
104
+
105
+ - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
106
+ - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
107
+ - address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
108
+
109
+ ### Features
110
+
111
+ - **abstract-cosmos:** add support for different pubkey types ([e257093](https://github.com/BitGo/BitGoJS/commit/e257093605a4bfe22fbe0b0f9933bfef1a3975c6))
112
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
113
+
114
+ # [1.10.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.10.0) (2023-11-13)
115
+
116
+ ### Bug Fixes
117
+
118
+ - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
119
+ - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
120
+ - address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
121
+
122
+ ### Features
123
+
124
+ - **abstract-cosmos:** add support for different pubkey types ([e257093](https://github.com/BitGo/BitGoJS/commit/e257093605a4bfe22fbe0b0f9933bfef1a3975c6))
125
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
126
+
127
+ # [1.9.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.9.0) (2023-11-13)
128
+
129
+ ### Bug Fixes
130
+
131
+ - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
132
+ - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
133
+ - address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
134
+
135
+ ### Features
136
+
137
+ - **abstract-cosmos:** add support for different pubkey types ([e257093](https://github.com/BitGo/BitGoJS/commit/e257093605a4bfe22fbe0b0f9933bfef1a3975c6))
138
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
139
+
140
+ # [1.8.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.8.0) (2023-10-20)
141
+
142
+ ### Bug Fixes
143
+
144
+ - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
145
+ - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
146
+
147
+ ### Features
148
+
149
+ - **abstract-cosmos:** add support for different pubkey types ([e257093](https://github.com/BitGo/BitGoJS/commit/e257093605a4bfe22fbe0b0f9933bfef1a3975c6))
150
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
151
+
152
+ # [1.7.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.7.0) (2023-10-18)
153
+
154
+ ### Bug Fixes
155
+
156
+ - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
157
+ - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
158
+
159
+ ### Features
160
+
161
+ - **abstract-cosmos:** add support for different pubkey types ([e257093](https://github.com/BitGo/BitGoJS/commit/e257093605a4bfe22fbe0b0f9933bfef1a3975c6))
162
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
163
+
164
+ ## [1.6.11](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.6.11) (2023-09-25)
165
+
166
+ ### Bug Fixes
167
+
168
+ - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
169
+ - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
170
+
171
+ ## [1.6.10](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.6.10) (2023-09-09)
172
+
173
+ ### Bug Fixes
174
+
175
+ - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
176
+ - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
177
+
178
+ ## [1.6.9](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.6.9) (2023-09-09)
179
+
180
+ ### Bug Fixes
181
+
182
+ - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
183
+ - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
184
+
185
+ ## [1.6.8](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.6.8) (2023-09-07)
186
+
187
+ ### Bug Fixes
188
+
189
+ - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
190
+ - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
191
+
192
+ ## [1.6.7](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.6.7) (2023-09-05)
193
+
194
+ ### Bug Fixes
195
+
196
+ - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
197
+ - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
198
+
199
+ ## [1.6.6](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.6.6) (2023-09-01)
200
+
201
+ ### Bug Fixes
202
+
203
+ - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
204
+ - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
205
+
206
+ ## [1.6.5](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.6.5) (2023-08-29)
207
+
208
+ ### Bug Fixes
209
+
210
+ - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
211
+ - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
212
+
213
+ ## [1.6.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.6.4) (2023-08-25)
214
+
215
+ ### Bug Fixes
216
+
217
+ - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
218
+ - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
219
+
220
+ ## [1.6.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.6.3) (2023-08-24)
221
+
222
+ ### Bug Fixes
223
+
224
+ - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
225
+ - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
226
+
227
+ ## [1.6.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.6.2) (2023-08-16)
228
+
229
+ ### Bug Fixes
230
+
231
+ - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
232
+ - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
233
+
234
+ ## [1.6.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.6.1) (2023-08-16)
235
+
236
+ ### Bug Fixes
237
+
238
+ - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
239
+ - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
240
+
241
+ # [1.6.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.4.0...@bitgo/abstract-cosmos@1.6.0) (2023-08-04)
242
+
243
+ ### Bug Fixes
244
+
245
+ - **abstract-cosmos:** getAccountBalance fix ([94b7dbc](https://github.com/BitGo/BitGoJS/commit/94b7dbc52e962b5e3e4819acbee39dc420d1d7ea))
246
+ - **abstract-cosmos:** getAccountDetails fix ([3f2e940](https://github.com/BitGo/BitGoJS/commit/3f2e940a6d7e63761e0f81a889f1fb3b480f878d))
247
+ - **abstract-cosmos:** skip amount validation for contractcall txn ([9acb564](https://github.com/BitGo/BitGoJS/commit/9acb56479c1db488e95cfcabe8e0396172006d9d))
248
+ - **sdk-coin-osmo:** allow zero amount on contract call ([2245ba7](https://github.com/BitGo/BitGoJS/commit/2245ba7acde8ae669ed53ffeb0e58178054f3da3))
249
+
250
+ ### Features
251
+
252
+ - **abstract-cosmos:** add wallet recovery for abstract cosmos ([1c62e4b](https://github.com/BitGo/BitGoJS/commit/1c62e4b42a6e58d2e3e14dbfa7e312ce062c5db3))
253
+ - **root:** add node 18 to engines and CI ([9cc6a70](https://github.com/BitGo/BitGoJS/commit/9cc6a70ba807161b7c6a0ebe3d7c47f25c7c8eca))
254
+ - **root:** remove node 14 from engines ([6ec47cb](https://github.com/BitGo/BitGoJS/commit/6ec47cbd7996cc78bbf2cf7f16595c24fe43cd41))
255
+ - **sdk-coin-osmo:** allow amount in execute contract transaction ([44be383](https://github.com/BitGo/BitGoJS/commit/44be383f38830aeb2d5825ee83c77aab444cfe25))
256
+
257
+ # [1.5.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.4.0...@bitgo/abstract-cosmos@1.5.0) (2023-07-28)
258
+
259
+ ### Bug Fixes
260
+
261
+ - **abstract-cosmos:** skip amount validation for contractcall txn ([9acb564](https://github.com/BitGo/BitGoJS/commit/9acb56479c1db488e95cfcabe8e0396172006d9d))
262
+ - **sdk-coin-osmo:** allow zero amount on contract call ([2245ba7](https://github.com/BitGo/BitGoJS/commit/2245ba7acde8ae669ed53ffeb0e58178054f3da3))
263
+
264
+ ### Features
265
+
266
+ - **abstract-cosmos:** add wallet recovery for abstract cosmos ([1c62e4b](https://github.com/BitGo/BitGoJS/commit/1c62e4b42a6e58d2e3e14dbfa7e312ce062c5db3))
267
+ - **root:** add node 18 to engines and CI ([9cc6a70](https://github.com/BitGo/BitGoJS/commit/9cc6a70ba807161b7c6a0ebe3d7c47f25c7c8eca))
268
+ - **root:** remove node 14 from engines ([6ec47cb](https://github.com/BitGo/BitGoJS/commit/6ec47cbd7996cc78bbf2cf7f16595c24fe43cd41))
269
+ - **sdk-coin-osmo:** allow amount in execute contract transaction ([44be383](https://github.com/BitGo/BitGoJS/commit/44be383f38830aeb2d5825ee83c77aab444cfe25))
270
+
271
+ # [1.4.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.3.0...@bitgo/abstract-cosmos@1.4.0) (2023-07-18)
272
+
273
+ ### Features
274
+
275
+ - **abstract-cosmos:** add support for contract call transaction ([9b7dd54](https://github.com/BitGo/BitGoJS/commit/9b7dd54c6a3a9e5cf2b47b4a94ef225f111a8baf))
276
+ - add base factor for individual cosmos side chains ([e661b36](https://github.com/BitGo/BitGoJS/commit/e661b3631445e7ff1ddcdb51385d1f993b4f35c9))
277
+
278
+ # [1.3.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.2.1...@bitgo/abstract-cosmos@1.3.0) (2023-06-21)
279
+
280
+ ### Features
281
+
282
+ - **bitgo:** update dockerfile ([987140b](https://github.com/BitGo/BitGoJS/commit/987140b2b40e9f2f2c2911eb750a33f2185d43b7))
283
+
284
+ ## [1.2.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.2.0...@bitgo/abstract-cosmos@1.2.1) (2023-06-14)
285
+
286
+ **Note:** Version bump only for package @bitgo/abstract-cosmos
287
+
288
+ # [1.2.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.1.1...@bitgo/abstract-cosmos@1.2.0) (2023-06-13)
289
+
290
+ ### Features
291
+
292
+ - **abstract-cosmos:** sdk abstract-cosmos and sdk osmo refactored ([d1bb5f6](https://github.com/BitGo/BitGoJS/commit/d1bb5f614533b1cc119b434510539673061d2c2a))
293
+ - **sdk-coin-tia:** celestia sdk along with testcases ([eb1431a](https://github.com/BitGo/BitGoJS/commit/eb1431a02de539b05f1fc2660c650563f3d7085a))
294
+ - **sdk-coin-tia:** celestia sdk along with testcases ([1d104e0](https://github.com/BitGo/BitGoJS/commit/1d104e0d0ac0c813d16cd6da759b1a904bab4641))
295
+
296
+ ## [1.1.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.1.0...@bitgo/abstract-cosmos@1.1.1) (2023-06-07)
297
+
298
+ **Note:** Version bump only for package @bitgo/abstract-cosmos
299
+
300
+ # 1.1.0 (2023-06-05)
301
+
302
+ ### Bug Fixes
303
+
304
+ - **abstract-cosmos:** cosmosLikeUtils export ([75540bb](https://github.com/BitGo/BitGoJS/commit/75540bbf029052c87b14d12aa710eb5ebe137c70))
305
+
306
+ ### Features
307
+
308
+ - **abstract-cosmos:** add abstract cosmos sdk ([0d61c06](https://github.com/BitGo/BitGoJS/commit/0d61c0660d32bb68647ba548ee1ea503adb1cd23))
309
+ - **abstract-cosmos:** add abstract cosmos sdk ([71a57b1](https://github.com/BitGo/BitGoJS/commit/71a57b191fb5081aeba26faceceb957ab1dc9bd0))
310
+ - **abstract-cosmos:** add abstract cosmos sdk ([85ca1a8](https://github.com/BitGo/BitGoJS/commit/85ca1a8aabb91269c1e24f7ce9f3e74247058886))
311
+ - **sdk-coin-osmo:** staking implementation with testcases ([a90c00b](https://github.com/BitGo/BitGoJS/commit/a90c00bd6e49d2a7898b8d4624514708c4f90fb9))
@@ -0,0 +1,141 @@
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 { Buffer } from 'buffer';
5
+ import { Hash } from 'crypto';
6
+ import * as request from 'superagent';
7
+ import { CosmosKeyPair, CosmosLikeCoinRecoveryOutput, GasAmountDetails, RecoveryOptions } from './lib';
8
+ /**
9
+ * Cosmos accounts support memo Id based addresses
10
+ */
11
+ interface AddressDetails {
12
+ address: string;
13
+ memoId?: string | undefined;
14
+ }
15
+ export declare class CosmosCoin extends BaseCoin {
16
+ protected readonly _staticsCoin: Readonly<StaticsBaseCoin>;
17
+ protected constructor(bitgo: BitGoBase, staticsCoin?: Readonly<StaticsBaseCoin>);
18
+ static createInstance(bitgo: BitGoBase, staticsCoin?: Readonly<StaticsBaseCoin>): BaseCoin;
19
+ /**
20
+ * Creates an instance of TransactionBuilderFactory for the coin specific sdk
21
+ */
22
+ getBuilder(): any;
23
+ /** @inheritDoc **/
24
+ getBaseFactor(): string | number;
25
+ /** @inheritDoc **/
26
+ getChain(): string;
27
+ /** @inheritDoc **/
28
+ getFamily(): CoinFamily;
29
+ /** @inheritDoc **/
30
+ getFullName(): string;
31
+ /** @inheritDoc */
32
+ supportsTss(): boolean;
33
+ /** @inheritDoc **/
34
+ getMPCAlgorithm(): MPCAlgorithm;
35
+ /** @inheritDoc **/
36
+ isValidPub(pub: string): boolean;
37
+ /** @inheritDoc **/
38
+ isValidPrv(prv: string): boolean;
39
+ isValidAddress(address: string): boolean;
40
+ /**
41
+ * Builds a funds recovery transaction without BitGo
42
+ * @param {RecoveryOptions} params parameters needed to construct and
43
+ * (maybe) sign the transaction
44
+ *
45
+ * @returns {CosmosLikeCoinRecoveryOutput} the serialized transaction hex string and index
46
+ * of the address being swept
47
+ */
48
+ recover(params: RecoveryOptions): Promise<CosmosLikeCoinRecoveryOutput>;
49
+ private getKeyCombinedFromTssKeyShares;
50
+ private signRecoveryTSS;
51
+ /** @inheritDoc **/
52
+ verifyTransaction(params: VerifyTransactionOptions): Promise<boolean>;
53
+ /** @inheritDoc **/
54
+ explainTransaction(options: {
55
+ txHex: string;
56
+ }): Promise<ExplanationResult>;
57
+ /**
58
+ * Sign a transaction with a single private key
59
+ * @param params parameters in the form of { txPrebuild: {txHex}, prv }
60
+ * @returns signed transaction in the form of { txHex }
61
+ */
62
+ signTransaction(params: SignTransactionOptions & {
63
+ txPrebuild: {
64
+ txHex: string;
65
+ };
66
+ prv: string;
67
+ }): Promise<SignedTransaction>;
68
+ /** @inheritDoc **/
69
+ parseTransaction(params: ParseTransactionOptions & {
70
+ txHex: string;
71
+ }): Promise<ParsedTransaction>;
72
+ /**
73
+ * Get the public node url from the Environments constant we have defined
74
+ */
75
+ protected getPublicNodeUrl(): string;
76
+ /**
77
+ * Get account number from public node
78
+ */
79
+ protected getAccountFromNode(senderAddress: string): Promise<request.Response>;
80
+ /**
81
+ * Get balance from public node
82
+ */
83
+ protected getBalanceFromNode(senderAddress: string): Promise<request.Response>;
84
+ /**
85
+ * Get chain id from public node
86
+ */
87
+ protected getChainIdFromNode(): Promise<request.Response>;
88
+ /**
89
+ * Helper to fetch account balance
90
+ */
91
+ protected getAccountBalance(senderAddress: string): Promise<string>;
92
+ /**
93
+ * Helper to fetch chainId
94
+ */
95
+ protected getChainId(): Promise<string>;
96
+ /**
97
+ * Helper to fetch account number
98
+ */
99
+ protected getAccountDetails(senderAddress: string): Promise<string[]>;
100
+ /** @inheritDoc **/
101
+ generateKeyPair(seed?: Buffer): KeyPair;
102
+ /**
103
+ * Retrieves the address from a public key.
104
+ * @param {string} pubKey - The public key.
105
+ * @returns {string} The corresponding address.
106
+ */
107
+ getAddressFromPublicKey(pubKey: string): string;
108
+ /** @inheritDoc **/
109
+ isWalletAddress(params: VerifyAddressOptions): Promise<boolean>;
110
+ /** @inheritDoc **/
111
+ getHashFunction(): Hash;
112
+ /**
113
+ * Process address into address and memo id
114
+ *
115
+ * @param address the address
116
+ * @returns object containing address and memo id
117
+ */
118
+ getAddressDetails(address: string): AddressDetails;
119
+ /**
120
+ * Return boolean indicating whether a memo id is valid
121
+ *
122
+ * @param memoId memo id
123
+ * @returns true if memo id is valid
124
+ */
125
+ isValidMemoId(memoId: string): boolean;
126
+ /**
127
+ * Helper method to return the respective coin's base unit
128
+ */
129
+ getDenomination(): string;
130
+ /**
131
+ * Helper method to fetch gas amount details for respective coin
132
+ */
133
+ getGasAmountDetails(): GasAmountDetails;
134
+ /**
135
+ * Helper method to get key pair for individual coin
136
+ * @param publicKey
137
+ */
138
+ getKeyPair(publicKey: string): CosmosKeyPair;
139
+ }
140
+ export {};
141
+ //# sourceMappingURL=cosmosCoin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cosmosCoin.d.ts","sourceRoot":"","sources":["../../src/cosmosCoin.ts"],"names":[],"mappings":"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"}