@bitgo-beta/abstract-cosmos 1.0.1-beta.142 → 1.0.1-beta.1421

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 (48) hide show
  1. package/dist/resources/MsgCompiled.d.ts +1212 -0
  2. package/dist/resources/MsgCompiled.js +2761 -0
  3. package/dist/src/cosmosCoin.d.ts +62 -7
  4. package/dist/src/cosmosCoin.d.ts.map +1 -1
  5. package/dist/src/cosmosCoin.js +326 -156
  6. package/dist/src/index.js +6 -2
  7. package/dist/src/lib/ContractCallBuilder.d.ts +3 -3
  8. package/dist/src/lib/ContractCallBuilder.d.ts.map +1 -1
  9. package/dist/src/lib/ContractCallBuilder.js +35 -2
  10. package/dist/src/lib/StakingActivateBuilder.d.ts +3 -3
  11. package/dist/src/lib/StakingActivateBuilder.d.ts.map +1 -1
  12. package/dist/src/lib/StakingActivateBuilder.js +35 -2
  13. package/dist/src/lib/StakingDeactivateBuilder.d.ts +3 -3
  14. package/dist/src/lib/StakingDeactivateBuilder.d.ts.map +1 -1
  15. package/dist/src/lib/StakingDeactivateBuilder.js +35 -2
  16. package/dist/src/lib/StakingRedelegateBuilder.d.ts +13 -0
  17. package/dist/src/lib/StakingRedelegateBuilder.d.ts.map +1 -0
  18. package/dist/src/lib/StakingRedelegateBuilder.js +61 -0
  19. package/dist/src/lib/StakingWithdrawRewardsBuilder.d.ts +3 -3
  20. package/dist/src/lib/StakingWithdrawRewardsBuilder.d.ts.map +1 -1
  21. package/dist/src/lib/StakingWithdrawRewardsBuilder.js +35 -2
  22. package/dist/src/lib/constants.d.ts +2 -0
  23. package/dist/src/lib/constants.d.ts.map +1 -1
  24. package/dist/src/lib/constants.js +4 -2
  25. package/dist/src/lib/iface.d.ts +35 -8
  26. package/dist/src/lib/iface.d.ts.map +1 -1
  27. package/dist/src/lib/iface.js +3 -3
  28. package/dist/src/lib/index.d.ts +1 -0
  29. package/dist/src/lib/index.d.ts.map +1 -1
  30. package/dist/src/lib/index.js +32 -4
  31. package/dist/src/lib/keyPair.js +9 -10
  32. package/dist/src/lib/transaction.d.ts +8 -9
  33. package/dist/src/lib/transaction.d.ts.map +1 -1
  34. package/dist/src/lib/transaction.js +39 -16
  35. package/dist/src/lib/transactionBuilder.d.ts +17 -14
  36. package/dist/src/lib/transactionBuilder.d.ts.map +1 -1
  37. package/dist/src/lib/transactionBuilder.js +10 -5
  38. package/dist/src/lib/transferBuilder.d.ts +3 -3
  39. package/dist/src/lib/transferBuilder.d.ts.map +1 -1
  40. package/dist/src/lib/transferBuilder.js +35 -2
  41. package/dist/src/lib/utils.d.ts +84 -17
  42. package/dist/src/lib/utils.d.ts.map +1 -1
  43. package/dist/src/lib/utils.js +222 -22
  44. package/dist/tsconfig.tsbuildinfo +1 -1
  45. package/package.json +16 -11
  46. package/.eslintignore +0 -5
  47. package/.mocharc.yml +0 -8
  48. package/CHANGELOG.md +0 -177
package/package.json CHANGED
@@ -1,21 +1,22 @@
1
1
  {
2
2
  "name": "@bitgo-beta/abstract-cosmos",
3
- "version": "1.0.1-beta.142",
3
+ "version": "1.0.1-beta.1421",
4
4
  "description": "BitGo SDK coin library for COSMOS base implementation",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
7
7
  "scripts": {
8
- "build": "yarn tsc --build --incremental --verbose .",
8
+ "build": "npm run prepare",
9
+ "build-ts": "yarn tsc --build --incremental --verbose .",
9
10
  "fmt": "prettier --write .",
10
- "check-fmt": "prettier --check .",
11
+ "check-fmt": "prettier --check '**/*.{ts,js,json}'",
11
12
  "clean": "rm -r ./dist",
12
13
  "lint": "eslint --quiet .",
13
- "prepare": "npm run build"
14
+ "prepare": "npm run build-ts && shx cp -r ./resources ./dist"
14
15
  },
15
16
  "author": "BitGo SDK Team <sdkteam@bitgo.com>",
16
17
  "license": "MIT",
17
18
  "engines": {
18
- "node": ">=16 <21"
19
+ "node": ">=20 <23"
19
20
  },
20
21
  "repository": {
21
22
  "type": "git",
@@ -37,10 +38,10 @@
37
38
  ]
38
39
  },
39
40
  "dependencies": {
40
- "@bitgo-beta/sdk-core": "8.2.1-beta.160",
41
- "@bitgo-beta/sdk-lib-mpc": "8.2.0-beta.152",
42
- "@bitgo-beta/statics": "15.1.1-beta.163",
43
- "@bitgo-beta/utxo-lib": "8.0.3-beta.161",
41
+ "@bitgo-beta/sdk-core": "8.2.1-beta.1440",
42
+ "@bitgo-beta/sdk-lib-mpc": "8.2.0-beta.1432",
43
+ "@bitgo-beta/secp256k1": "1.0.2-beta.1467",
44
+ "@bitgo-beta/statics": "15.1.1-beta.1443",
44
45
  "@cosmjs/amino": "^0.29.5",
45
46
  "@cosmjs/crypto": "^0.30.1",
46
47
  "@cosmjs/encoding": "^0.29.5",
@@ -49,10 +50,14 @@
49
50
  "bignumber.js": "^9.1.1",
50
51
  "cosmjs-types": "^0.6.1",
51
52
  "lodash": "^4.17.21",
52
- "superagent": "^3.8.3"
53
+ "protobufjs": "^7.4.0",
54
+ "superagent": "^9.0.1"
53
55
  },
54
56
  "devDependencies": {
55
57
  "@types/lodash": "^4.14.183"
56
58
  },
57
- "gitHead": "4d6514b09fe55bd1e72d6143864fd1572001469a"
59
+ "gitHead": "0ac5c582a70fba6d521da39628064854e339c8fb",
60
+ "files": [
61
+ "dist"
62
+ ]
58
63
  }
package/.eslintignore DELETED
@@ -1,5 +0,0 @@
1
- node_modules
2
- .idea
3
- public
4
- dist
5
-
package/.mocharc.yml DELETED
@@ -1,8 +0,0 @@
1
- require: 'ts-node/register'
2
- timeout: '60000'
3
- reporter: 'min'
4
- reporter-option:
5
- - 'cdn=true'
6
- - 'json=false'
7
- exit: true
8
- spec: ['test/unit/**/*.ts']
package/CHANGELOG.md DELETED
@@ -1,177 +0,0 @@
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.8.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.8.0) (2023-10-20)
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
-
13
- ### Features
14
-
15
- - **abstract-cosmos:** add support for different pubkey types ([e257093](https://github.com/BitGo/BitGoJS/commit/e257093605a4bfe22fbe0b0f9933bfef1a3975c6))
16
- - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
17
-
18
- # [1.7.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.7.0) (2023-10-18)
19
-
20
- ### Bug Fixes
21
-
22
- - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
23
- - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
24
-
25
- ### Features
26
-
27
- - **abstract-cosmos:** add support for different pubkey types ([e257093](https://github.com/BitGo/BitGoJS/commit/e257093605a4bfe22fbe0b0f9933bfef1a3975c6))
28
- - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
29
-
30
- ## [1.6.11](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.6.11) (2023-09-25)
31
-
32
- ### Bug Fixes
33
-
34
- - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
35
- - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
36
-
37
- ## [1.6.10](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.6.10) (2023-09-09)
38
-
39
- ### Bug Fixes
40
-
41
- - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
42
- - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
43
-
44
- ## [1.6.9](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.6.9) (2023-09-09)
45
-
46
- ### Bug Fixes
47
-
48
- - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
49
- - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
50
-
51
- ## [1.6.8](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.6.8) (2023-09-07)
52
-
53
- ### Bug Fixes
54
-
55
- - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
56
- - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
57
-
58
- ## [1.6.7](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.6.7) (2023-09-05)
59
-
60
- ### Bug Fixes
61
-
62
- - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
63
- - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
64
-
65
- ## [1.6.6](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.6.6) (2023-09-01)
66
-
67
- ### Bug Fixes
68
-
69
- - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
70
- - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
71
-
72
- ## [1.6.5](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.6.5) (2023-08-29)
73
-
74
- ### Bug Fixes
75
-
76
- - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
77
- - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
78
-
79
- ## [1.6.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.6.4) (2023-08-25)
80
-
81
- ### Bug Fixes
82
-
83
- - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
84
- - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
85
-
86
- ## [1.6.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.6.3) (2023-08-24)
87
-
88
- ### Bug Fixes
89
-
90
- - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
91
- - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
92
-
93
- ## [1.6.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.6.2) (2023-08-16)
94
-
95
- ### Bug Fixes
96
-
97
- - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
98
- - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
99
-
100
- ## [1.6.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.6.1) (2023-08-16)
101
-
102
- ### Bug Fixes
103
-
104
- - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
105
- - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
106
-
107
- # [1.6.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.4.0...@bitgo/abstract-cosmos@1.6.0) (2023-08-04)
108
-
109
- ### Bug Fixes
110
-
111
- - **abstract-cosmos:** getAccountBalance fix ([94b7dbc](https://github.com/BitGo/BitGoJS/commit/94b7dbc52e962b5e3e4819acbee39dc420d1d7ea))
112
- - **abstract-cosmos:** getAccountDetails fix ([3f2e940](https://github.com/BitGo/BitGoJS/commit/3f2e940a6d7e63761e0f81a889f1fb3b480f878d))
113
- - **abstract-cosmos:** skip amount validation for contractcall txn ([9acb564](https://github.com/BitGo/BitGoJS/commit/9acb56479c1db488e95cfcabe8e0396172006d9d))
114
- - **sdk-coin-osmo:** allow zero amount on contract call ([2245ba7](https://github.com/BitGo/BitGoJS/commit/2245ba7acde8ae669ed53ffeb0e58178054f3da3))
115
-
116
- ### Features
117
-
118
- - **abstract-cosmos:** add wallet recovery for abstract cosmos ([1c62e4b](https://github.com/BitGo/BitGoJS/commit/1c62e4b42a6e58d2e3e14dbfa7e312ce062c5db3))
119
- - **root:** add node 18 to engines and CI ([9cc6a70](https://github.com/BitGo/BitGoJS/commit/9cc6a70ba807161b7c6a0ebe3d7c47f25c7c8eca))
120
- - **root:** remove node 14 from engines ([6ec47cb](https://github.com/BitGo/BitGoJS/commit/6ec47cbd7996cc78bbf2cf7f16595c24fe43cd41))
121
- - **sdk-coin-osmo:** allow amount in execute contract transaction ([44be383](https://github.com/BitGo/BitGoJS/commit/44be383f38830aeb2d5825ee83c77aab444cfe25))
122
-
123
- # [1.5.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.4.0...@bitgo/abstract-cosmos@1.5.0) (2023-07-28)
124
-
125
- ### Bug Fixes
126
-
127
- - **abstract-cosmos:** skip amount validation for contractcall txn ([9acb564](https://github.com/BitGo/BitGoJS/commit/9acb56479c1db488e95cfcabe8e0396172006d9d))
128
- - **sdk-coin-osmo:** allow zero amount on contract call ([2245ba7](https://github.com/BitGo/BitGoJS/commit/2245ba7acde8ae669ed53ffeb0e58178054f3da3))
129
-
130
- ### Features
131
-
132
- - **abstract-cosmos:** add wallet recovery for abstract cosmos ([1c62e4b](https://github.com/BitGo/BitGoJS/commit/1c62e4b42a6e58d2e3e14dbfa7e312ce062c5db3))
133
- - **root:** add node 18 to engines and CI ([9cc6a70](https://github.com/BitGo/BitGoJS/commit/9cc6a70ba807161b7c6a0ebe3d7c47f25c7c8eca))
134
- - **root:** remove node 14 from engines ([6ec47cb](https://github.com/BitGo/BitGoJS/commit/6ec47cbd7996cc78bbf2cf7f16595c24fe43cd41))
135
- - **sdk-coin-osmo:** allow amount in execute contract transaction ([44be383](https://github.com/BitGo/BitGoJS/commit/44be383f38830aeb2d5825ee83c77aab444cfe25))
136
-
137
- # [1.4.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.3.0...@bitgo/abstract-cosmos@1.4.0) (2023-07-18)
138
-
139
- ### Features
140
-
141
- - **abstract-cosmos:** add support for contract call transaction ([9b7dd54](https://github.com/BitGo/BitGoJS/commit/9b7dd54c6a3a9e5cf2b47b4a94ef225f111a8baf))
142
- - add base factor for individual cosmos side chains ([e661b36](https://github.com/BitGo/BitGoJS/commit/e661b3631445e7ff1ddcdb51385d1f993b4f35c9))
143
-
144
- # [1.3.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.2.1...@bitgo/abstract-cosmos@1.3.0) (2023-06-21)
145
-
146
- ### Features
147
-
148
- - **bitgo:** update dockerfile ([987140b](https://github.com/BitGo/BitGoJS/commit/987140b2b40e9f2f2c2911eb750a33f2185d43b7))
149
-
150
- ## [1.2.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.2.0...@bitgo/abstract-cosmos@1.2.1) (2023-06-14)
151
-
152
- **Note:** Version bump only for package @bitgo/abstract-cosmos
153
-
154
- # [1.2.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.1.1...@bitgo/abstract-cosmos@1.2.0) (2023-06-13)
155
-
156
- ### Features
157
-
158
- - **abstract-cosmos:** sdk abstract-cosmos and sdk osmo refactored ([d1bb5f6](https://github.com/BitGo/BitGoJS/commit/d1bb5f614533b1cc119b434510539673061d2c2a))
159
- - **sdk-coin-tia:** celestia sdk along with testcases ([eb1431a](https://github.com/BitGo/BitGoJS/commit/eb1431a02de539b05f1fc2660c650563f3d7085a))
160
- - **sdk-coin-tia:** celestia sdk along with testcases ([1d104e0](https://github.com/BitGo/BitGoJS/commit/1d104e0d0ac0c813d16cd6da759b1a904bab4641))
161
-
162
- ## [1.1.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.1.0...@bitgo/abstract-cosmos@1.1.1) (2023-06-07)
163
-
164
- **Note:** Version bump only for package @bitgo/abstract-cosmos
165
-
166
- # 1.1.0 (2023-06-05)
167
-
168
- ### Bug Fixes
169
-
170
- - **abstract-cosmos:** cosmosLikeUtils export ([75540bb](https://github.com/BitGo/BitGoJS/commit/75540bbf029052c87b14d12aa710eb5ebe137c70))
171
-
172
- ### Features
173
-
174
- - **abstract-cosmos:** add abstract cosmos sdk ([0d61c06](https://github.com/BitGo/BitGoJS/commit/0d61c0660d32bb68647ba548ee1ea503adb1cd23))
175
- - **abstract-cosmos:** add abstract cosmos sdk ([71a57b1](https://github.com/BitGo/BitGoJS/commit/71a57b191fb5081aeba26faceceb957ab1dc9bd0))
176
- - **abstract-cosmos:** add abstract cosmos sdk ([85ca1a8](https://github.com/BitGo/BitGoJS/commit/85ca1a8aabb91269c1e24f7ce9f3e74247058886))
177
- - **sdk-coin-osmo:** staking implementation with testcases ([a90c00b](https://github.com/BitGo/BitGoJS/commit/a90c00bd6e49d2a7898b8d4624514708c4f90fb9))