@bitgo-beta/sdk-coin-osmo 1.0.0-alpha.5 → 1.0.0-alpha.51
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 +343 -0
- package/dist/src/lib/utils.d.ts +2 -1
- package/dist/src/lib/utils.d.ts.map +1 -1
- package/dist/src/lib/utils.js +6 -6
- package/dist/src/osmo.d.ts +13 -1
- package/dist/src/osmo.d.ts.map +1 -1
- package/dist/src/osmo.js +31 -3
- package/package.json +9 -8
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,349 @@
|
|
|
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.25.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-osmo@1.6.0...@bitgo/sdk-coin-osmo@1.25.0) (2024-01-30)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **abstract-cosmos:** allow valueless transfer for osmosis ([7aa6752](https://github.com/BitGo/BitGoJS/commit/7aa6752711eb604acd0d6e9b0b6f0bdb5e5be991))
|
|
11
|
+
- add bech32 validation to cosmos address validation ([f5008a7](https://github.com/BitGo/BitGoJS/commit/f5008a7298f9cb470795f8087b6840cf7f254369))
|
|
12
|
+
- address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
|
|
13
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
- **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
|
|
18
|
+
|
|
19
|
+
# [1.24.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-osmo@1.6.0...@bitgo/sdk-coin-osmo@1.24.0) (2024-01-26)
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
- **abstract-cosmos:** allow valueless transfer for osmosis ([7aa6752](https://github.com/BitGo/BitGoJS/commit/7aa6752711eb604acd0d6e9b0b6f0bdb5e5be991))
|
|
24
|
+
- add bech32 validation to cosmos address validation ([f5008a7](https://github.com/BitGo/BitGoJS/commit/f5008a7298f9cb470795f8087b6840cf7f254369))
|
|
25
|
+
- address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
|
|
26
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
- **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
|
|
31
|
+
|
|
32
|
+
# [1.23.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-osmo@1.6.0...@bitgo/sdk-coin-osmo@1.23.0) (2024-01-26)
|
|
33
|
+
|
|
34
|
+
### Bug Fixes
|
|
35
|
+
|
|
36
|
+
- **abstract-cosmos:** allow valueless transfer for osmosis ([7aa6752](https://github.com/BitGo/BitGoJS/commit/7aa6752711eb604acd0d6e9b0b6f0bdb5e5be991))
|
|
37
|
+
- add bech32 validation to cosmos address validation ([f5008a7](https://github.com/BitGo/BitGoJS/commit/f5008a7298f9cb470795f8087b6840cf7f254369))
|
|
38
|
+
- address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
|
|
39
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
40
|
+
|
|
41
|
+
### Features
|
|
42
|
+
|
|
43
|
+
- **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
|
|
44
|
+
|
|
45
|
+
# [1.22.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-osmo@1.6.0...@bitgo/sdk-coin-osmo@1.22.0) (2024-01-25)
|
|
46
|
+
|
|
47
|
+
### Bug Fixes
|
|
48
|
+
|
|
49
|
+
- **abstract-cosmos:** allow valueless transfer for osmosis ([7aa6752](https://github.com/BitGo/BitGoJS/commit/7aa6752711eb604acd0d6e9b0b6f0bdb5e5be991))
|
|
50
|
+
- add bech32 validation to cosmos address validation ([f5008a7](https://github.com/BitGo/BitGoJS/commit/f5008a7298f9cb470795f8087b6840cf7f254369))
|
|
51
|
+
- address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
|
|
52
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
53
|
+
|
|
54
|
+
### Features
|
|
55
|
+
|
|
56
|
+
- **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
|
|
57
|
+
|
|
58
|
+
# [1.21.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-osmo@1.6.0...@bitgo/sdk-coin-osmo@1.21.0) (2024-01-22)
|
|
59
|
+
|
|
60
|
+
### Bug Fixes
|
|
61
|
+
|
|
62
|
+
- **abstract-cosmos:** allow valueless transfer for osmosis ([7aa6752](https://github.com/BitGo/BitGoJS/commit/7aa6752711eb604acd0d6e9b0b6f0bdb5e5be991))
|
|
63
|
+
- add bech32 validation to cosmos address validation ([f5008a7](https://github.com/BitGo/BitGoJS/commit/f5008a7298f9cb470795f8087b6840cf7f254369))
|
|
64
|
+
- address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
|
|
65
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
66
|
+
|
|
67
|
+
### Features
|
|
68
|
+
|
|
69
|
+
- **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
|
|
70
|
+
|
|
71
|
+
# [1.20.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-osmo@1.6.0...@bitgo/sdk-coin-osmo@1.20.0) (2024-01-09)
|
|
72
|
+
|
|
73
|
+
### Bug Fixes
|
|
74
|
+
|
|
75
|
+
- **abstract-cosmos:** allow valueless transfer for osmosis ([7aa6752](https://github.com/BitGo/BitGoJS/commit/7aa6752711eb604acd0d6e9b0b6f0bdb5e5be991))
|
|
76
|
+
- add bech32 validation to cosmos address validation ([f5008a7](https://github.com/BitGo/BitGoJS/commit/f5008a7298f9cb470795f8087b6840cf7f254369))
|
|
77
|
+
- address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
|
|
78
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
79
|
+
|
|
80
|
+
### Features
|
|
81
|
+
|
|
82
|
+
- **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
|
|
83
|
+
|
|
84
|
+
# [1.19.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-osmo@1.6.0...@bitgo/sdk-coin-osmo@1.19.0) (2024-01-03)
|
|
85
|
+
|
|
86
|
+
### Bug Fixes
|
|
87
|
+
|
|
88
|
+
- **abstract-cosmos:** allow valueless transfer for osmosis ([7aa6752](https://github.com/BitGo/BitGoJS/commit/7aa6752711eb604acd0d6e9b0b6f0bdb5e5be991))
|
|
89
|
+
- add bech32 validation to cosmos address validation ([f5008a7](https://github.com/BitGo/BitGoJS/commit/f5008a7298f9cb470795f8087b6840cf7f254369))
|
|
90
|
+
- address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
|
|
91
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
92
|
+
|
|
93
|
+
### Features
|
|
94
|
+
|
|
95
|
+
- **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
|
|
96
|
+
|
|
97
|
+
# [1.18.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-osmo@1.6.0...@bitgo/sdk-coin-osmo@1.18.0) (2023-12-18)
|
|
98
|
+
|
|
99
|
+
### Bug Fixes
|
|
100
|
+
|
|
101
|
+
- **abstract-cosmos:** allow valueless transfer for osmosis ([7aa6752](https://github.com/BitGo/BitGoJS/commit/7aa6752711eb604acd0d6e9b0b6f0bdb5e5be991))
|
|
102
|
+
- add bech32 validation to cosmos address validation ([f5008a7](https://github.com/BitGo/BitGoJS/commit/f5008a7298f9cb470795f8087b6840cf7f254369))
|
|
103
|
+
- address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
|
|
104
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
105
|
+
|
|
106
|
+
### Features
|
|
107
|
+
|
|
108
|
+
- **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
|
|
109
|
+
|
|
110
|
+
# [1.17.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-osmo@1.6.0...@bitgo/sdk-coin-osmo@1.17.0) (2023-12-12)
|
|
111
|
+
|
|
112
|
+
### Bug Fixes
|
|
113
|
+
|
|
114
|
+
- **abstract-cosmos:** allow valueless transfer for osmosis ([7aa6752](https://github.com/BitGo/BitGoJS/commit/7aa6752711eb604acd0d6e9b0b6f0bdb5e5be991))
|
|
115
|
+
- add bech32 validation to cosmos address validation ([f5008a7](https://github.com/BitGo/BitGoJS/commit/f5008a7298f9cb470795f8087b6840cf7f254369))
|
|
116
|
+
- address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
|
|
117
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
118
|
+
|
|
119
|
+
### Features
|
|
120
|
+
|
|
121
|
+
- **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
|
|
122
|
+
|
|
123
|
+
# [1.16.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-osmo@1.6.0...@bitgo/sdk-coin-osmo@1.16.0) (2023-12-09)
|
|
124
|
+
|
|
125
|
+
### Bug Fixes
|
|
126
|
+
|
|
127
|
+
- **abstract-cosmos:** allow valueless transfer for osmosis ([7aa6752](https://github.com/BitGo/BitGoJS/commit/7aa6752711eb604acd0d6e9b0b6f0bdb5e5be991))
|
|
128
|
+
- add bech32 validation to cosmos address validation ([f5008a7](https://github.com/BitGo/BitGoJS/commit/f5008a7298f9cb470795f8087b6840cf7f254369))
|
|
129
|
+
- address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
|
|
130
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
131
|
+
|
|
132
|
+
### Features
|
|
133
|
+
|
|
134
|
+
- **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
|
|
135
|
+
|
|
136
|
+
# [1.15.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-osmo@1.6.0...@bitgo/sdk-coin-osmo@1.15.0) (2023-12-05)
|
|
137
|
+
|
|
138
|
+
### Bug Fixes
|
|
139
|
+
|
|
140
|
+
- **abstract-cosmos:** allow valueless transfer for osmosis ([7aa6752](https://github.com/BitGo/BitGoJS/commit/7aa6752711eb604acd0d6e9b0b6f0bdb5e5be991))
|
|
141
|
+
- add bech32 validation to cosmos address validation ([f5008a7](https://github.com/BitGo/BitGoJS/commit/f5008a7298f9cb470795f8087b6840cf7f254369))
|
|
142
|
+
- address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
|
|
143
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
144
|
+
|
|
145
|
+
### Features
|
|
146
|
+
|
|
147
|
+
- **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
|
|
148
|
+
|
|
149
|
+
# [1.14.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-osmo@1.6.0...@bitgo/sdk-coin-osmo@1.14.0) (2023-11-28)
|
|
150
|
+
|
|
151
|
+
### Bug Fixes
|
|
152
|
+
|
|
153
|
+
- **abstract-cosmos:** allow valueless transfer for osmosis ([7aa6752](https://github.com/BitGo/BitGoJS/commit/7aa6752711eb604acd0d6e9b0b6f0bdb5e5be991))
|
|
154
|
+
- address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
|
|
155
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
156
|
+
|
|
157
|
+
### Features
|
|
158
|
+
|
|
159
|
+
- **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
|
|
160
|
+
|
|
161
|
+
# [1.13.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-osmo@1.6.0...@bitgo/sdk-coin-osmo@1.13.0) (2023-11-24)
|
|
162
|
+
|
|
163
|
+
### Bug Fixes
|
|
164
|
+
|
|
165
|
+
- **abstract-cosmos:** allow valueless transfer for osmosis ([7aa6752](https://github.com/BitGo/BitGoJS/commit/7aa6752711eb604acd0d6e9b0b6f0bdb5e5be991))
|
|
166
|
+
- address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
|
|
167
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
168
|
+
|
|
169
|
+
### Features
|
|
170
|
+
|
|
171
|
+
- **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
|
|
172
|
+
|
|
173
|
+
# [1.12.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-osmo@1.6.0...@bitgo/sdk-coin-osmo@1.12.0) (2023-11-17)
|
|
174
|
+
|
|
175
|
+
### Bug Fixes
|
|
176
|
+
|
|
177
|
+
- **abstract-cosmos:** allow valueless transfer for osmosis ([7aa6752](https://github.com/BitGo/BitGoJS/commit/7aa6752711eb604acd0d6e9b0b6f0bdb5e5be991))
|
|
178
|
+
- address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
|
|
179
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
180
|
+
|
|
181
|
+
### Features
|
|
182
|
+
|
|
183
|
+
- **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
|
|
184
|
+
|
|
185
|
+
# [1.11.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-osmo@1.6.0...@bitgo/sdk-coin-osmo@1.11.0) (2023-11-13)
|
|
186
|
+
|
|
187
|
+
### Bug Fixes
|
|
188
|
+
|
|
189
|
+
- **abstract-cosmos:** allow valueless transfer for osmosis ([7aa6752](https://github.com/BitGo/BitGoJS/commit/7aa6752711eb604acd0d6e9b0b6f0bdb5e5be991))
|
|
190
|
+
- address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
|
|
191
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
192
|
+
|
|
193
|
+
### Features
|
|
194
|
+
|
|
195
|
+
- **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
|
|
196
|
+
|
|
197
|
+
# [1.10.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-osmo@1.6.0...@bitgo/sdk-coin-osmo@1.10.0) (2023-11-13)
|
|
198
|
+
|
|
199
|
+
### Bug Fixes
|
|
200
|
+
|
|
201
|
+
- **abstract-cosmos:** allow valueless transfer for osmosis ([7aa6752](https://github.com/BitGo/BitGoJS/commit/7aa6752711eb604acd0d6e9b0b6f0bdb5e5be991))
|
|
202
|
+
- address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
|
|
203
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
204
|
+
|
|
205
|
+
### Features
|
|
206
|
+
|
|
207
|
+
- **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
|
|
208
|
+
|
|
209
|
+
# [1.9.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-osmo@1.6.0...@bitgo/sdk-coin-osmo@1.9.0) (2023-11-13)
|
|
210
|
+
|
|
211
|
+
### Bug Fixes
|
|
212
|
+
|
|
213
|
+
- **abstract-cosmos:** allow valueless transfer for osmosis ([7aa6752](https://github.com/BitGo/BitGoJS/commit/7aa6752711eb604acd0d6e9b0b6f0bdb5e5be991))
|
|
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
|
+
# [1.8.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-osmo@1.6.0...@bitgo/sdk-coin-osmo@1.8.0) (2023-10-20)
|
|
222
|
+
|
|
223
|
+
### Bug Fixes
|
|
224
|
+
|
|
225
|
+
- **abstract-cosmos:** allow valueless transfer for osmosis ([7aa6752](https://github.com/BitGo/BitGoJS/commit/7aa6752711eb604acd0d6e9b0b6f0bdb5e5be991))
|
|
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
|
+
# [1.7.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-osmo@1.6.0...@bitgo/sdk-coin-osmo@1.7.0) (2023-10-18)
|
|
233
|
+
|
|
234
|
+
### Bug Fixes
|
|
235
|
+
|
|
236
|
+
- **abstract-cosmos:** allow valueless transfer for osmosis ([7aa6752](https://github.com/BitGo/BitGoJS/commit/7aa6752711eb604acd0d6e9b0b6f0bdb5e5be991))
|
|
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
|
+
## [1.6.11](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-osmo@1.6.0...@bitgo/sdk-coin-osmo@1.6.11) (2023-09-25)
|
|
244
|
+
|
|
245
|
+
### Bug Fixes
|
|
246
|
+
|
|
247
|
+
- **abstract-cosmos:** allow valueless transfer for osmosis ([7aa6752](https://github.com/BitGo/BitGoJS/commit/7aa6752711eb604acd0d6e9b0b6f0bdb5e5be991))
|
|
248
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
249
|
+
|
|
250
|
+
## [1.6.10](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-osmo@1.6.0...@bitgo/sdk-coin-osmo@1.6.10) (2023-09-09)
|
|
251
|
+
|
|
252
|
+
### Bug Fixes
|
|
253
|
+
|
|
254
|
+
- **abstract-cosmos:** allow valueless transfer for osmosis ([7aa6752](https://github.com/BitGo/BitGoJS/commit/7aa6752711eb604acd0d6e9b0b6f0bdb5e5be991))
|
|
255
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
256
|
+
|
|
257
|
+
## [1.6.9](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-osmo@1.6.0...@bitgo/sdk-coin-osmo@1.6.9) (2023-09-09)
|
|
258
|
+
|
|
259
|
+
### Bug Fixes
|
|
260
|
+
|
|
261
|
+
- **abstract-cosmos:** allow valueless transfer for osmosis ([7aa6752](https://github.com/BitGo/BitGoJS/commit/7aa6752711eb604acd0d6e9b0b6f0bdb5e5be991))
|
|
262
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
263
|
+
|
|
264
|
+
## [1.6.8](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-osmo@1.6.0...@bitgo/sdk-coin-osmo@1.6.8) (2023-09-07)
|
|
265
|
+
|
|
266
|
+
### Bug Fixes
|
|
267
|
+
|
|
268
|
+
- **abstract-cosmos:** allow valueless transfer for osmosis ([7aa6752](https://github.com/BitGo/BitGoJS/commit/7aa6752711eb604acd0d6e9b0b6f0bdb5e5be991))
|
|
269
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
270
|
+
|
|
271
|
+
## [1.6.7](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-osmo@1.6.0...@bitgo/sdk-coin-osmo@1.6.7) (2023-09-05)
|
|
272
|
+
|
|
273
|
+
### Bug Fixes
|
|
274
|
+
|
|
275
|
+
- **abstract-cosmos:** allow valueless transfer for osmosis ([7aa6752](https://github.com/BitGo/BitGoJS/commit/7aa6752711eb604acd0d6e9b0b6f0bdb5e5be991))
|
|
276
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
277
|
+
|
|
278
|
+
## [1.6.6](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-osmo@1.6.0...@bitgo/sdk-coin-osmo@1.6.6) (2023-09-01)
|
|
279
|
+
|
|
280
|
+
### Bug Fixes
|
|
281
|
+
|
|
282
|
+
- **abstract-cosmos:** allow valueless transfer for osmosis ([7aa6752](https://github.com/BitGo/BitGoJS/commit/7aa6752711eb604acd0d6e9b0b6f0bdb5e5be991))
|
|
283
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
284
|
+
|
|
285
|
+
## [1.6.5](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-osmo@1.6.0...@bitgo/sdk-coin-osmo@1.6.5) (2023-08-29)
|
|
286
|
+
|
|
287
|
+
### Bug Fixes
|
|
288
|
+
|
|
289
|
+
- **abstract-cosmos:** allow valueless transfer for osmosis ([7aa6752](https://github.com/BitGo/BitGoJS/commit/7aa6752711eb604acd0d6e9b0b6f0bdb5e5be991))
|
|
290
|
+
|
|
291
|
+
## [1.6.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-osmo@1.6.0...@bitgo/sdk-coin-osmo@1.6.4) (2023-08-25)
|
|
292
|
+
|
|
293
|
+
### Bug Fixes
|
|
294
|
+
|
|
295
|
+
- **abstract-cosmos:** allow valueless transfer for osmosis ([7aa6752](https://github.com/BitGo/BitGoJS/commit/7aa6752711eb604acd0d6e9b0b6f0bdb5e5be991))
|
|
296
|
+
|
|
297
|
+
## [1.6.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-osmo@1.6.0...@bitgo/sdk-coin-osmo@1.6.3) (2023-08-24)
|
|
298
|
+
|
|
299
|
+
### Bug Fixes
|
|
300
|
+
|
|
301
|
+
- **abstract-cosmos:** allow valueless transfer for osmosis ([7aa6752](https://github.com/BitGo/BitGoJS/commit/7aa6752711eb604acd0d6e9b0b6f0bdb5e5be991))
|
|
302
|
+
|
|
303
|
+
## [1.6.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-osmo@1.6.0...@bitgo/sdk-coin-osmo@1.6.2) (2023-08-16)
|
|
304
|
+
|
|
305
|
+
### Bug Fixes
|
|
306
|
+
|
|
307
|
+
- **abstract-cosmos:** allow valueless transfer for osmosis ([7aa6752](https://github.com/BitGo/BitGoJS/commit/7aa6752711eb604acd0d6e9b0b6f0bdb5e5be991))
|
|
308
|
+
|
|
309
|
+
## [1.6.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-osmo@1.6.0...@bitgo/sdk-coin-osmo@1.6.1) (2023-08-16)
|
|
310
|
+
|
|
311
|
+
### Bug Fixes
|
|
312
|
+
|
|
313
|
+
- **abstract-cosmos:** allow valueless transfer for osmosis ([7aa6752](https://github.com/BitGo/BitGoJS/commit/7aa6752711eb604acd0d6e9b0b6f0bdb5e5be991))
|
|
314
|
+
|
|
315
|
+
# [1.6.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-osmo@1.4.0...@bitgo/sdk-coin-osmo@1.6.0) (2023-08-04)
|
|
316
|
+
|
|
317
|
+
### Bug Fixes
|
|
318
|
+
|
|
319
|
+
- **sdk-coin-osmo:** allow zero amount on contract call ([2245ba7](https://github.com/BitGo/BitGoJS/commit/2245ba7acde8ae669ed53ffeb0e58178054f3da3))
|
|
320
|
+
|
|
321
|
+
### Features
|
|
322
|
+
|
|
323
|
+
- **abstract-cosmos:** add wallet recovery for abstract cosmos ([1c62e4b](https://github.com/BitGo/BitGoJS/commit/1c62e4b42a6e58d2e3e14dbfa7e312ce062c5db3))
|
|
324
|
+
- **root:** add node 18 to engines and CI ([9cc6a70](https://github.com/BitGo/BitGoJS/commit/9cc6a70ba807161b7c6a0ebe3d7c47f25c7c8eca))
|
|
325
|
+
- **root:** remove node 14 from engines ([6ec47cb](https://github.com/BitGo/BitGoJS/commit/6ec47cbd7996cc78bbf2cf7f16595c24fe43cd41))
|
|
326
|
+
- **sdk-coin-osmo:** allow amount in execute contract transaction ([44be383](https://github.com/BitGo/BitGoJS/commit/44be383f38830aeb2d5825ee83c77aab444cfe25))
|
|
327
|
+
|
|
328
|
+
# [1.5.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-osmo@1.4.0...@bitgo/sdk-coin-osmo@1.5.0) (2023-07-28)
|
|
329
|
+
|
|
330
|
+
### Bug Fixes
|
|
331
|
+
|
|
332
|
+
- **sdk-coin-osmo:** allow zero amount on contract call ([2245ba7](https://github.com/BitGo/BitGoJS/commit/2245ba7acde8ae669ed53ffeb0e58178054f3da3))
|
|
333
|
+
|
|
334
|
+
### Features
|
|
335
|
+
|
|
336
|
+
- **abstract-cosmos:** add wallet recovery for abstract cosmos ([1c62e4b](https://github.com/BitGo/BitGoJS/commit/1c62e4b42a6e58d2e3e14dbfa7e312ce062c5db3))
|
|
337
|
+
- **root:** add node 18 to engines and CI ([9cc6a70](https://github.com/BitGo/BitGoJS/commit/9cc6a70ba807161b7c6a0ebe3d7c47f25c7c8eca))
|
|
338
|
+
- **root:** remove node 14 from engines ([6ec47cb](https://github.com/BitGo/BitGoJS/commit/6ec47cbd7996cc78bbf2cf7f16595c24fe43cd41))
|
|
339
|
+
- **sdk-coin-osmo:** allow amount in execute contract transaction ([44be383](https://github.com/BitGo/BitGoJS/commit/44be383f38830aeb2d5825ee83c77aab444cfe25))
|
|
340
|
+
|
|
341
|
+
# [1.4.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-osmo@1.3.2...@bitgo/sdk-coin-osmo@1.4.0) (2023-07-18)
|
|
342
|
+
|
|
343
|
+
### Features
|
|
344
|
+
|
|
345
|
+
- **abstract-cosmos:** add support for contract call transaction ([9b7dd54](https://github.com/BitGo/BitGoJS/commit/9b7dd54c6a3a9e5cf2b47b4a94ef225f111a8baf))
|
|
346
|
+
- add base factor for individual cosmos side chains ([e661b36](https://github.com/BitGo/BitGoJS/commit/e661b3631445e7ff1ddcdb51385d1f993b4f35c9))
|
|
347
|
+
- **sdk-coin-osmo:** add contract address to valid addresses ([eff9f8f](https://github.com/BitGo/BitGoJS/commit/eff9f8f289f24612e845e4e292b731445f52997b))
|
|
348
|
+
|
|
6
349
|
## [1.3.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-osmo@1.3.1...@bitgo/sdk-coin-osmo@1.3.2) (2023-06-21)
|
|
7
350
|
|
|
8
351
|
**Note:** Version bump only for package @bitgo/sdk-coin-osmo
|
package/dist/src/lib/utils.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TransactionType } from '@bitgo-beta/sdk-core';
|
|
1
2
|
import { Coin } from '@cosmjs/stargate';
|
|
2
3
|
import { CosmosUtils } from '@bitgo-beta/abstract-cosmos';
|
|
3
4
|
export declare class OsmoUtils extends CosmosUtils {
|
|
@@ -8,7 +9,7 @@ export declare class OsmoUtils extends CosmosUtils {
|
|
|
8
9
|
/** @inheritdoc */
|
|
9
10
|
isValidContractAddress(address: string): boolean;
|
|
10
11
|
/** @inheritdoc */
|
|
11
|
-
validateAmount(amount: Coin): void;
|
|
12
|
+
validateAmount(amount: Coin, transactionType?: TransactionType): void;
|
|
12
13
|
}
|
|
13
14
|
declare const osmoUtils: CosmosUtils;
|
|
14
15
|
export default osmoUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/lib/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAChF,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAG1D,qBAAa,SAAU,SAAQ,WAAW;IACxC,kBAAkB;IAClB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;IAIxC,kBAAkB;IAClB,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;IAIjD,kBAAkB;IAClB,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;IAIhD,kBAAkB;IAClB,cAAc,CAAC,MAAM,EAAE,IAAI,EAAE,eAAe,CAAC,EAAE,eAAe,GAAG,IAAI;CAStE;AAED,QAAA,MAAM,SAAS,EAAE,WAA6B,CAAC;AAE/C,eAAe,SAAS,CAAC"}
|
package/dist/src/lib/utils.js
CHANGED
|
@@ -30,20 +30,20 @@ const constants = __importStar(require("./constants"));
|
|
|
30
30
|
class OsmoUtils extends abstract_cosmos_1.CosmosUtils {
|
|
31
31
|
/** @inheritdoc */
|
|
32
32
|
isValidAddress(address) {
|
|
33
|
-
return constants.accountAddressRegex
|
|
33
|
+
return this.isValidCosmosLikeAddressWithMemoId(address, constants.accountAddressRegex);
|
|
34
34
|
}
|
|
35
35
|
/** @inheritdoc */
|
|
36
36
|
isValidValidatorAddress(address) {
|
|
37
|
-
return constants.validatorAddressRegex
|
|
37
|
+
return this.isValidBech32AddressMatchingRegex(address, constants.validatorAddressRegex);
|
|
38
38
|
}
|
|
39
39
|
/** @inheritdoc */
|
|
40
40
|
isValidContractAddress(address) {
|
|
41
|
-
return constants.contractAddressRegex
|
|
41
|
+
return this.isValidBech32AddressMatchingRegex(address, constants.contractAddressRegex);
|
|
42
42
|
}
|
|
43
43
|
/** @inheritdoc */
|
|
44
|
-
validateAmount(amount) {
|
|
44
|
+
validateAmount(amount, transactionType) {
|
|
45
45
|
const amountBig = bignumber_js_1.default(amount.amount);
|
|
46
|
-
if (amountBig.isLessThanOrEqualTo(0)) {
|
|
46
|
+
if (amountBig.isLessThanOrEqualTo(0) && transactionType !== sdk_core_1.TransactionType.ContractCall) {
|
|
47
47
|
throw new sdk_core_1.InvalidTransactionError('transactionBuilder: validateAmount: Invalid amount: ' + amount.amount);
|
|
48
48
|
}
|
|
49
49
|
if (!constants.validDenoms.find((denom) => denom === amount.denom)) {
|
|
@@ -54,4 +54,4 @@ class OsmoUtils extends abstract_cosmos_1.CosmosUtils {
|
|
|
54
54
|
exports.OsmoUtils = OsmoUtils;
|
|
55
55
|
const osmoUtils = new OsmoUtils();
|
|
56
56
|
exports.default = osmoUtils;
|
|
57
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
57
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbGliL3V0aWxzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSxtREFBZ0Y7QUFFaEYsZ0VBQXFDO0FBQ3JDLGlFQUEwRDtBQUMxRCx1REFBeUM7QUFFekMsTUFBYSxTQUFVLFNBQVEsNkJBQVc7SUFDeEMsa0JBQWtCO0lBQ2xCLGNBQWMsQ0FBQyxPQUFlO1FBQzVCLE9BQU8sSUFBSSxDQUFDLGtDQUFr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itGoBase } from '@bitgo-beta/sdk-core';
|
|
3
2
|
import { BaseCoin as StaticsBaseCoin } from '@bitgo-beta/statics';
|
|
3
|
+
import { CosmosCoin, CosmosKeyPair, GasAmountDetails } from '@bitgo-beta/abstract-cosmos';
|
|
4
4
|
import { TransactionBuilderFactory } from './lib';
|
|
5
5
|
export declare class Osmo extends CosmosCoin {
|
|
6
6
|
protected readonly _staticsCoin: Readonly<StaticsBaseCoin>;
|
|
@@ -9,8 +9,20 @@ export declare class Osmo extends CosmosCoin {
|
|
|
9
9
|
/** @inheritDoc **/
|
|
10
10
|
getBuilder(): TransactionBuilderFactory;
|
|
11
11
|
/** @inheritDoc **/
|
|
12
|
+
getBaseFactor(): string | number;
|
|
13
|
+
/** @inheritDoc **/
|
|
12
14
|
isValidAddress(address: string): boolean;
|
|
13
15
|
/** @inheritDoc **/
|
|
14
16
|
protected getPublicNodeUrl(): string;
|
|
17
|
+
/** @inheritDoc **/
|
|
18
|
+
getDenomination(): string;
|
|
19
|
+
/** @inheritDoc **/
|
|
20
|
+
getGasAmountDetails(): GasAmountDetails;
|
|
21
|
+
/** @inheritDoc **/
|
|
22
|
+
getKeyPair(publicKey: string): CosmosKeyPair;
|
|
23
|
+
/** @inheritDoc **/
|
|
24
|
+
getAddressFromPublicKey(publicKey: string): string;
|
|
25
|
+
/** @inheritDoc **/
|
|
26
|
+
valuelessTransferAllowed(): boolean;
|
|
15
27
|
}
|
|
16
28
|
//# sourceMappingURL=osmo.d.ts.map
|
package/dist/src/osmo.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"osmo.d.ts","sourceRoot":"","sources":["../../src/osmo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"osmo.d.ts","sourceRoot":"","sources":["../../src/osmo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAgB,MAAM,sBAAsB,CAAC;AACzE,OAAO,EAAE,QAAQ,IAAI,eAAe,EAAmB,MAAM,qBAAqB,CAAC;AAEnF,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC1F,OAAO,EAAE,yBAAyB,EAAE,MAAM,OAAO,CAAC;AAGlD,qBAAa,IAAK,SAAQ,UAAU;IAClC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IAC3D,SAAS,aAAa,KAAK,EAAE,SAAS,EAAE,WAAW,CAAC,EAAE,QAAQ,CAAC,eAAe,CAAC;IAU/E,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,SAAS,EAAE,WAAW,CAAC,EAAE,QAAQ,CAAC,eAAe,CAAC,GAAG,QAAQ;IAI1F,mBAAmB;IACnB,UAAU,IAAI,yBAAyB;IAIvC,mBAAmB;IACnB,aAAa,IAAI,MAAM,GAAG,MAAM;IAIhC,mBAAmB;IACnB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;IAMxC,mBAAmB;IACnB,SAAS,CAAC,gBAAgB,IAAI,MAAM;IAIpC,mBAAmB;IACnB,eAAe,IAAI,MAAM;IAIzB,mBAAmB;IACnB,mBAAmB,IAAI,gBAAgB;IAOvC,mBAAmB;IACnB,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,aAAa;IAI5C,mBAAmB;IACnB,uBAAuB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;IAIlD,mBAAmB;IACnB,wBAAwB,IAAI,OAAO;CAGpC"}
|
package/dist/src/osmo.js
CHANGED
|
@@ -4,9 +4,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Osmo = void 0;
|
|
7
|
-
const abstract_cosmos_1 = require("@bitgo-beta/abstract-cosmos");
|
|
8
7
|
const sdk_core_1 = require("@bitgo-beta/sdk-core");
|
|
9
8
|
const statics_1 = require("@bitgo-beta/statics");
|
|
9
|
+
const keyPair_1 = require("./lib/keyPair");
|
|
10
|
+
const abstract_cosmos_1 = require("@bitgo-beta/abstract-cosmos");
|
|
10
11
|
const lib_1 = require("./lib");
|
|
11
12
|
const utils_1 = __importDefault(require("./lib/utils"));
|
|
12
13
|
class Osmo extends abstract_cosmos_1.CosmosCoin {
|
|
@@ -25,13 +26,40 @@ class Osmo extends abstract_cosmos_1.CosmosCoin {
|
|
|
25
26
|
return new lib_1.TransactionBuilderFactory(statics_1.coins.get(this.getChain()));
|
|
26
27
|
}
|
|
27
28
|
/** @inheritDoc **/
|
|
29
|
+
getBaseFactor() {
|
|
30
|
+
return 1e6;
|
|
31
|
+
}
|
|
32
|
+
/** @inheritDoc **/
|
|
28
33
|
isValidAddress(address) {
|
|
29
|
-
return utils_1.default.isValidAddress(address) || utils_1.default.isValidValidatorAddress(address);
|
|
34
|
+
return (utils_1.default.isValidAddress(address) || utils_1.default.isValidValidatorAddress(address) || utils_1.default.isValidContractAddress(address));
|
|
30
35
|
}
|
|
31
36
|
/** @inheritDoc **/
|
|
32
37
|
getPublicNodeUrl() {
|
|
33
38
|
return sdk_core_1.Environments[this.bitgo.getEnv()].osmoNodeUrl;
|
|
34
39
|
}
|
|
40
|
+
/** @inheritDoc **/
|
|
41
|
+
getDenomination() {
|
|
42
|
+
return statics_1.BaseUnit.OSMO;
|
|
43
|
+
}
|
|
44
|
+
/** @inheritDoc **/
|
|
45
|
+
getGasAmountDetails() {
|
|
46
|
+
return {
|
|
47
|
+
gasAmount: '7000',
|
|
48
|
+
gasLimit: 250000,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
/** @inheritDoc **/
|
|
52
|
+
getKeyPair(publicKey) {
|
|
53
|
+
return new keyPair_1.KeyPair({ pub: publicKey });
|
|
54
|
+
}
|
|
55
|
+
/** @inheritDoc **/
|
|
56
|
+
getAddressFromPublicKey(publicKey) {
|
|
57
|
+
return new keyPair_1.KeyPair({ pub: publicKey }).getAddress();
|
|
58
|
+
}
|
|
59
|
+
/** @inheritDoc **/
|
|
60
|
+
valuelessTransferAllowed() {
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
35
63
|
}
|
|
36
64
|
exports.Osmo = Osmo;
|
|
37
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
65
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3Ntby5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9vc21vLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLG1EQUF5RTtBQUN6RSxpREFBbUY7QUFDbkYsMkNBQXdDO0FBQ3hDLGlFQUEwRjtBQUMxRiwrQkFBa0Q7QUFDbEQsd0RBQWdDO0FBRWhDLE1BQWEsSUFBSyxTQUFRLDRCQUFVO0lBRWxDLFlBQXNCLEtBQWdCLEVBQUUsV0FBdUM7UUFDN0UsS0FBSyxDQUFDLEtBQUssRUFBRSxXQUFXLENBQUMsQ0FBQztRQUUxQixJQUFJLENBQUMsV0FBVyxFQUFFO1lBQ2hCLE1BQU0sSUFBSSxLQUFLLENBQUMsb0RBQW9ELENBQUMsQ0FBQztTQUN2RTtRQUVELElBQUksQ0FBQyxZQUFZLEdBQUcsV0FBVyxDQUFDO0lBQ2xDLENBQUM7SUFFRCxNQUFNLENBQUMsY0FBYyxDQUFDLEtBQWdCLEVBQUUsV0FBdUM7UUFDN0UsT0FBTyxJQUFJLElBQUksQ0FBQyxLQUFLLEVBQUUsV0FBVyxDQUFDLENBQUM7SUFDdEMsQ0FBQztJQUVELG1CQUFtQjtJQUNuQixVQUFVO1FBQ1IsT0FBTyxJQUFJLCtCQUF5QixDQUFDLGVBQUssQ0FBQyxHQUFHLENBQUMsSUFBSSxDQUFDLFFBQVEsRUFBRSxDQUFDLENBQUMsQ0FBQztJQUNuRSxDQUFDO0lBRUQsbUJBQW1CO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uICBnZXRHYXNBbW91bnREZXRhaWxzKCk6IEdhc0Ftb3VudERldGFpbHMge1xuICAgIHJldHVybiB7XG4gICAgICBnYXNBbW91bnQ6ICc3MDAwJyxcbiAgICAgIGdhc0xpbWl0OiAyNTAwMDAsXG4gICAgfTtcbiAgfVxuXG4gIC8qKiBAaW5oZXJpdERvYyAqKi9cbiAgZ2V0S2V5UGFpcihwdWJsaWNLZXk6IHN0cmluZyk6IENvc21vc0tleVBhaXIge1xuICAgIHJldHVybiBuZXcgS2V5UGFpcih7IHB1YjogcHVibGljS2V5IH0pO1xuICB9XG5cbiAgLyoqIEBpbmhlcml0RG9jICoqL1xuICBnZXRBZGRyZXNzRnJvbVB1YmxpY0tleShwdWJsaWNLZXk6IHN0cmluZyk6IHN0cmluZyB7XG4gICAgcmV0dXJuIG5ldyBLZXlQYWlyKHsgcHViOiBwdWJsaWNLZXkgfSkuZ2V0QWRkcmVzcygpO1xuICB9XG5cbiAgLyoqIEBpbmhlcml0RG9jICoqL1xuICB2YWx1ZWxlc3NUcmFuc2ZlckFsbG93ZWQoKTogYm9vbGVhbiB7XG4gICAgcmV0dXJuIHRydWU7XG4gIH1cbn1cbiJdfQ==
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitgo-beta/sdk-coin-osmo",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.51",
|
|
4
4
|
"description": "BitGo SDK coin library for Osmosis",
|
|
5
5
|
"main": "./dist/src/index.js",
|
|
6
6
|
"types": "./dist/src/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"author": "BitGo SDK Team <sdkteam@bitgo.com>",
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"engines": {
|
|
21
|
-
"node": ">=
|
|
21
|
+
"node": ">=16 <21"
|
|
22
22
|
},
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|
|
@@ -40,18 +40,19 @@
|
|
|
40
40
|
]
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@bitgo-beta/abstract-cosmos": "1.0.0-alpha.
|
|
44
|
-
"@bitgo-beta/sdk-core": "2.4.1-alpha.
|
|
45
|
-
"@bitgo-beta/
|
|
43
|
+
"@bitgo-beta/abstract-cosmos": "1.0.0-alpha.51",
|
|
44
|
+
"@bitgo-beta/sdk-core": "2.4.1-alpha.102",
|
|
45
|
+
"@bitgo-beta/sdk-lib-mpc": "8.2.1-alpha.57",
|
|
46
|
+
"@bitgo-beta/statics": "10.0.1-alpha.102",
|
|
46
47
|
"@cosmjs/amino": "^0.29.5",
|
|
47
48
|
"@cosmjs/encoding": "^0.29.5",
|
|
48
49
|
"@cosmjs/stargate": "^0.29.5",
|
|
49
50
|
"bignumber.js": "^9.1.1"
|
|
50
51
|
},
|
|
51
52
|
"devDependencies": {
|
|
52
|
-
"@bitgo-beta/sdk-api": "1.6.1-alpha.
|
|
53
|
-
"@bitgo-beta/sdk-test": "^1.
|
|
53
|
+
"@bitgo-beta/sdk-api": "1.6.1-alpha.102",
|
|
54
|
+
"@bitgo-beta/sdk-test": "^7.1.0",
|
|
54
55
|
"@types/lodash": "^4.14.183"
|
|
55
56
|
},
|
|
56
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "25e4de8b59941ef158b9946f7dcbe3b801c0f3eb"
|
|
57
58
|
}
|