@bitgo-beta/sdk-coin-hash 1.0.1-beta.132 → 1.0.1-beta.1321

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 (71) hide show
  1. package/dist/src/hash.d.ts +2 -0
  2. package/dist/src/hash.d.ts.map +1 -1
  3. package/dist/src/hash.js +5 -7
  4. package/dist/src/hashToken.d.ts +22 -0
  5. package/dist/src/hashToken.d.ts.map +1 -0
  6. package/dist/src/hashToken.js +62 -0
  7. package/dist/src/index.d.ts +1 -0
  8. package/dist/src/index.d.ts.map +1 -1
  9. package/dist/src/index.js +7 -2
  10. package/dist/src/lib/constants.d.ts +8 -3
  11. package/dist/src/lib/constants.d.ts.map +1 -1
  12. package/dist/src/lib/constants.js +13 -6
  13. package/dist/src/lib/index.js +23 -9
  14. package/dist/src/lib/keyPair.d.ts +2 -2
  15. package/dist/src/lib/keyPair.d.ts.map +1 -1
  16. package/dist/src/lib/keyPair.js +8 -5
  17. package/dist/src/lib/transactionBuilderFactory.d.ts +2 -1
  18. package/dist/src/lib/transactionBuilderFactory.d.ts.map +1 -1
  19. package/dist/src/lib/transactionBuilderFactory.js +13 -11
  20. package/dist/src/lib/utils.d.ts +3 -0
  21. package/dist/src/lib/utils.d.ts.map +1 -1
  22. package/dist/src/lib/utils.js +41 -13
  23. package/dist/src/register.d.ts.map +1 -1
  24. package/dist/src/register.js +5 -1
  25. package/dist/src/thash.d.ts +4 -0
  26. package/dist/src/thash.d.ts.map +1 -1
  27. package/dist/src/thash.js +15 -1
  28. package/dist/test/integration/index.d.ts +2 -0
  29. package/dist/test/integration/index.d.ts.map +1 -0
  30. package/dist/test/integration/index.js +16 -0
  31. package/dist/test/resources/hash.d.ts +304 -0
  32. package/dist/test/resources/hash.d.ts.map +1 -0
  33. package/dist/test/resources/hash.js +454 -0
  34. package/dist/test/unit/hash.d.ts +2 -0
  35. package/dist/test/unit/hash.d.ts.map +1 -0
  36. package/dist/test/unit/hash.js +464 -0
  37. package/dist/test/unit/hashToken.d.ts +2 -0
  38. package/dist/test/unit/hashToken.d.ts.map +1 -0
  39. package/dist/test/unit/hashToken.js +300 -0
  40. package/dist/test/unit/keyPair.d.ts +2 -0
  41. package/dist/test/unit/keyPair.d.ts.map +1 -0
  42. package/dist/test/unit/keyPair.js +96 -0
  43. package/dist/test/unit/tokenTransaction.d.ts +2 -0
  44. package/dist/test/unit/tokenTransaction.d.ts.map +1 -0
  45. package/dist/test/unit/tokenTransaction.js +144 -0
  46. package/dist/test/unit/transaction.d.ts +2 -0
  47. package/dist/test/unit/transaction.d.ts.map +1 -0
  48. package/dist/test/unit/transaction.js +220 -0
  49. package/dist/test/unit/transactionBuilder/StakingActivateBuilder.d.ts +2 -0
  50. package/dist/test/unit/transactionBuilder/StakingActivateBuilder.d.ts.map +1 -0
  51. package/dist/test/unit/transactionBuilder/StakingActivateBuilder.js +154 -0
  52. package/dist/test/unit/transactionBuilder/StakingDeactivateBuilder.d.ts +2 -0
  53. package/dist/test/unit/transactionBuilder/StakingDeactivateBuilder.d.ts.map +1 -0
  54. package/dist/test/unit/transactionBuilder/StakingDeactivateBuilder.js +153 -0
  55. package/dist/test/unit/transactionBuilder/StakingWithdrawRewardsBuilder.d.ts +2 -0
  56. package/dist/test/unit/transactionBuilder/StakingWithdrawRewardsBuilder.d.ts.map +1 -0
  57. package/dist/test/unit/transactionBuilder/StakingWithdrawRewardsBuilder.js +154 -0
  58. package/dist/test/unit/transactionBuilder/transactionBuilder.d.ts +2 -0
  59. package/dist/test/unit/transactionBuilder/transactionBuilder.d.ts.map +1 -0
  60. package/dist/test/unit/transactionBuilder/transactionBuilder.js +126 -0
  61. package/dist/test/unit/transactionBuilder/transferBuilder.d.ts +2 -0
  62. package/dist/test/unit/transactionBuilder/transferBuilder.d.ts.map +1 -0
  63. package/dist/test/unit/transactionBuilder/transferBuilder.js +332 -0
  64. package/dist/test/unit/utils.d.ts +2 -0
  65. package/dist/test/unit/utils.d.ts.map +1 -0
  66. package/dist/test/unit/utils.js +76 -0
  67. package/dist/tsconfig.tsbuildinfo +1 -0
  68. package/package.json +13 -10
  69. package/.eslintignore +0 -5
  70. package/.mocharc.yml +0 -8
  71. package/CHANGELOG.md +0 -170
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@bitgo-beta/sdk-coin-hash",
3
- "version": "1.0.1-beta.132",
3
+ "version": "1.0.1-beta.1321",
4
4
  "description": "BitGo SDK coin library for Provenance",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
7
7
  "scripts": {
8
8
  "build": "yarn tsc --build --incremental --verbose .",
9
9
  "fmt": "prettier --write .",
10
- "check-fmt": "prettier --check .",
10
+ "check-fmt": "prettier --check '**/*.{ts,js,json}'",
11
11
  "clean": "rm -r ./dist",
12
12
  "lint": "eslint --quiet .",
13
13
  "prepare": "npm run build",
@@ -18,7 +18,7 @@
18
18
  "author": "BitGo SDK Team <sdkteam@bitgo.com>",
19
19
  "license": "MIT",
20
20
  "engines": {
21
- "node": ">=16 <21"
21
+ "node": ">=20 <23"
22
22
  },
23
23
  "repository": {
24
24
  "type": "git",
@@ -40,19 +40,22 @@
40
40
  ]
41
41
  },
42
42
  "dependencies": {
43
- "@bitgo-beta/abstract-cosmos": "1.0.1-beta.154",
44
- "@bitgo-beta/sdk-core": "8.2.1-beta.172",
45
- "@bitgo-beta/sdk-lib-mpc": "8.2.0-beta.164",
46
- "@bitgo-beta/statics": "15.1.1-beta.175",
43
+ "@bitgo-beta/abstract-cosmos": "1.0.1-beta.1347",
44
+ "@bitgo-beta/sdk-core": "8.2.1-beta.1366",
45
+ "@bitgo-beta/sdk-lib-mpc": "8.2.0-beta.1358",
46
+ "@bitgo-beta/statics": "15.1.1-beta.1369",
47
47
  "@cosmjs/amino": "^0.29.5",
48
48
  "@cosmjs/encoding": "^0.29.5",
49
49
  "@cosmjs/stargate": "^0.29.5",
50
50
  "bignumber.js": "^9.1.1"
51
51
  },
52
52
  "devDependencies": {
53
- "@bitgo-beta/sdk-api": "1.10.1-beta.172",
54
- "@bitgo-beta/sdk-test": "^1.2.46",
53
+ "@bitgo-beta/sdk-api": "1.10.1-beta.1365",
54
+ "@bitgo-beta/sdk-test": "^9.1.11",
55
55
  "@types/lodash": "^4.14.183"
56
56
  },
57
- "gitHead": "f3b4f6e29d70538cb96fe8087fd29e1037d093a4"
57
+ "gitHead": "d5a5c6e6ba30c6f6f63ecd5465340ce73e4b16a2",
58
+ "files": [
59
+ "dist"
60
+ ]
58
61
  }
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,170 +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.9.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hash@1.4.0...@bitgo/sdk-coin-hash@1.9.0) (2023-11-13)
7
-
8
- ### Bug Fixes
9
-
10
- - **abstract-cosmos:** update fee for recovery transaction ([c631c05](https://github.com/BitGo/BitGoJS/commit/c631c051b227e397ff21e85418a40f1655d2d3f4))
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
- ### Features
15
-
16
- - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
17
-
18
- # [1.8.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hash@1.4.0...@bitgo/sdk-coin-hash@1.8.0) (2023-11-13)
19
-
20
- ### Bug Fixes
21
-
22
- - **abstract-cosmos:** update fee for recovery transaction ([c631c05](https://github.com/BitGo/BitGoJS/commit/c631c051b227e397ff21e85418a40f1655d2d3f4))
23
- - address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
24
- - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
25
-
26
- ### Features
27
-
28
- - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
29
-
30
- # [1.7.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hash@1.4.0...@bitgo/sdk-coin-hash@1.7.0) (2023-11-13)
31
-
32
- ### Bug Fixes
33
-
34
- - **abstract-cosmos:** update fee for recovery transaction ([c631c05](https://github.com/BitGo/BitGoJS/commit/c631c051b227e397ff21e85418a40f1655d2d3f4))
35
- - address verification for cosmos like coins ([5ac7879](https://github.com/BitGo/BitGoJS/commit/5ac78799b460d0d03eaa841db08a6855b571a46f))
36
- - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
37
-
38
- ### Features
39
-
40
- - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
41
-
42
- # [1.6.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hash@1.4.0...@bitgo/sdk-coin-hash@1.6.0) (2023-10-20)
43
-
44
- ### Bug Fixes
45
-
46
- - **abstract-cosmos:** update fee for recovery transaction ([c631c05](https://github.com/BitGo/BitGoJS/commit/c631c051b227e397ff21e85418a40f1655d2d3f4))
47
- - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
48
-
49
- ### Features
50
-
51
- - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
52
-
53
- # [1.5.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hash@1.4.0...@bitgo/sdk-coin-hash@1.5.0) (2023-10-18)
54
-
55
- ### Bug Fixes
56
-
57
- - **abstract-cosmos:** update fee for recovery transaction ([c631c05](https://github.com/BitGo/BitGoJS/commit/c631c051b227e397ff21e85418a40f1655d2d3f4))
58
- - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
59
-
60
- ### Features
61
-
62
- - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
63
-
64
- ## [1.4.11](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hash@1.4.0...@bitgo/sdk-coin-hash@1.4.11) (2023-09-25)
65
-
66
- ### Bug Fixes
67
-
68
- - **abstract-cosmos:** update fee for recovery transaction ([c631c05](https://github.com/BitGo/BitGoJS/commit/c631c051b227e397ff21e85418a40f1655d2d3f4))
69
- - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
70
-
71
- ## [1.4.10](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hash@1.4.0...@bitgo/sdk-coin-hash@1.4.10) (2023-09-09)
72
-
73
- ### Bug Fixes
74
-
75
- - **abstract-cosmos:** update fee for recovery transaction ([c631c05](https://github.com/BitGo/BitGoJS/commit/c631c051b227e397ff21e85418a40f1655d2d3f4))
76
- - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
77
-
78
- ## [1.4.9](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hash@1.4.0...@bitgo/sdk-coin-hash@1.4.9) (2023-09-09)
79
-
80
- ### Bug Fixes
81
-
82
- - **abstract-cosmos:** update fee for recovery transaction ([c631c05](https://github.com/BitGo/BitGoJS/commit/c631c051b227e397ff21e85418a40f1655d2d3f4))
83
- - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
84
-
85
- ## [1.4.8](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hash@1.4.0...@bitgo/sdk-coin-hash@1.4.8) (2023-09-07)
86
-
87
- ### Bug Fixes
88
-
89
- - **abstract-cosmos:** update fee for recovery transaction ([c631c05](https://github.com/BitGo/BitGoJS/commit/c631c051b227e397ff21e85418a40f1655d2d3f4))
90
- - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
91
-
92
- ## [1.4.7](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hash@1.4.0...@bitgo/sdk-coin-hash@1.4.7) (2023-09-05)
93
-
94
- ### Bug Fixes
95
-
96
- - **abstract-cosmos:** update fee for recovery transaction ([c631c05](https://github.com/BitGo/BitGoJS/commit/c631c051b227e397ff21e85418a40f1655d2d3f4))
97
- - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
98
-
99
- ## [1.4.6](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hash@1.4.0...@bitgo/sdk-coin-hash@1.4.6) (2023-09-01)
100
-
101
- ### Bug Fixes
102
-
103
- - **abstract-cosmos:** update fee for recovery transaction ([c631c05](https://github.com/BitGo/BitGoJS/commit/c631c051b227e397ff21e85418a40f1655d2d3f4))
104
- - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
105
-
106
- ## [1.4.5](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hash@1.4.0...@bitgo/sdk-coin-hash@1.4.5) (2023-08-29)
107
-
108
- ### Bug Fixes
109
-
110
- - **abstract-cosmos:** update fee for recovery transaction ([c631c05](https://github.com/BitGo/BitGoJS/commit/c631c051b227e397ff21e85418a40f1655d2d3f4))
111
-
112
- ## [1.4.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hash@1.4.0...@bitgo/sdk-coin-hash@1.4.4) (2023-08-25)
113
-
114
- ### Bug Fixes
115
-
116
- - **abstract-cosmos:** update fee for recovery transaction ([c631c05](https://github.com/BitGo/BitGoJS/commit/c631c051b227e397ff21e85418a40f1655d2d3f4))
117
-
118
- ## [1.4.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hash@1.4.0...@bitgo/sdk-coin-hash@1.4.3) (2023-08-24)
119
-
120
- ### Bug Fixes
121
-
122
- - **abstract-cosmos:** update fee for recovery transaction ([c631c05](https://github.com/BitGo/BitGoJS/commit/c631c051b227e397ff21e85418a40f1655d2d3f4))
123
-
124
- ## [1.4.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hash@1.4.0...@bitgo/sdk-coin-hash@1.4.2) (2023-08-16)
125
-
126
- ### Bug Fixes
127
-
128
- - **abstract-cosmos:** update fee for recovery transaction ([c631c05](https://github.com/BitGo/BitGoJS/commit/c631c051b227e397ff21e85418a40f1655d2d3f4))
129
-
130
- ## [1.4.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hash@1.4.0...@bitgo/sdk-coin-hash@1.4.1) (2023-08-16)
131
-
132
- ### Bug Fixes
133
-
134
- - **abstract-cosmos:** update fee for recovery transaction ([c631c05](https://github.com/BitGo/BitGoJS/commit/c631c051b227e397ff21e85418a40f1655d2d3f4))
135
-
136
- # [1.4.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hash@1.2.0...@bitgo/sdk-coin-hash@1.4.0) (2023-08-04)
137
-
138
- ### Features
139
-
140
- - **abstract-cosmos:** add recover functionality for cosmos side chains ([1317831](https://github.com/BitGo/BitGoJS/commit/131783179a9fcd0288cce16326360e56c833f18c))
141
- - **abstract-cosmos:** add wrw test data for cosmos side chains ([bb8c260](https://github.com/BitGo/BitGoJS/commit/bb8c260507b2eca661b40a7ffa6633f973ae30b6))
142
- - **abstract-cosmos:** add wrw testcases for cosmos side chains ([db3b5f9](https://github.com/BitGo/BitGoJS/commit/db3b5f9d7ddb68a9a269cb4d1dcee8ab1b4b3702))
143
- - **abstract-cosmos:** dependency fix ([222d122](https://github.com/BitGo/BitGoJS/commit/222d122f0a76ad79199d4194e25ac4b7d53bec0f))
144
- - **abstract-cosmos:** unit testcase comments resolved ([9581bbe](https://github.com/BitGo/BitGoJS/commit/9581bbef00e49e518d0518792c87a10412e8e438))
145
- - **root:** add node 18 to engines and CI ([9cc6a70](https://github.com/BitGo/BitGoJS/commit/9cc6a70ba807161b7c6a0ebe3d7c47f25c7c8eca))
146
- - **root:** remove node 14 from engines ([6ec47cb](https://github.com/BitGo/BitGoJS/commit/6ec47cbd7996cc78bbf2cf7f16595c24fe43cd41))
147
-
148
- # [1.3.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hash@1.2.0...@bitgo/sdk-coin-hash@1.3.0) (2023-07-28)
149
-
150
- ### Features
151
-
152
- - **root:** add node 18 to engines and CI ([9cc6a70](https://github.com/BitGo/BitGoJS/commit/9cc6a70ba807161b7c6a0ebe3d7c47f25c7c8eca))
153
- - **root:** remove node 14 from engines ([6ec47cb](https://github.com/BitGo/BitGoJS/commit/6ec47cbd7996cc78bbf2cf7f16595c24fe43cd41))
154
-
155
- # [1.2.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hash@1.1.0...@bitgo/sdk-coin-hash@1.2.0) (2023-07-18)
156
-
157
- ### Features
158
-
159
- - **abstract-cosmos:** add support for contract call transaction ([9b7dd54](https://github.com/BitGo/BitGoJS/commit/9b7dd54c6a3a9e5cf2b47b4a94ef225f111a8baf))
160
- - add base factor for individual cosmos side chains ([e661b36](https://github.com/BitGo/BitGoJS/commit/e661b3631445e7ff1ddcdb51385d1f993b4f35c9))
161
-
162
- # 1.1.0 (2023-06-21)
163
-
164
- ### Features
165
-
166
- - **sdk-coin-hash:** provenance sdk init along with testcases ([7e9aa75](https://github.com/BitGo/BitGoJS/commit/7e9aa75cf6152922563d311210b092ba86b9745e))
167
- - **sdk-coin-hash:** provenance sdk init along with testcases ([bb3fa9d](https://github.com/BitGo/BitGoJS/commit/bb3fa9d936c427c75357b84bd3606ac4e14bf433))
168
- - **sdk-coin-hash:** provenance sdk init along with testcases ([229e8bd](https://github.com/BitGo/BitGoJS/commit/229e8bd35d6c7e8852cd77d0bfcc745adb233933))
169
- - **sdk-coin-hash:** provenance sdk init along with testcases ([3862212](https://github.com/BitGo/BitGoJS/commit/38622127b29558aaefa6a135a284a727f94a057b))
170
- - **sdk-coin-hash:** provenance sdk init along with testcases ([7ab7cca](https://github.com/BitGo/BitGoJS/commit/7ab7ccad66e394298befdbb993abc182943ecf5c))