@bitgo-beta/abstract-cosmos 1.0.1-beta.20 → 1.0.1-beta.2000

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 (53) hide show
  1. package/dist/resources/MsgCompiled.d.ts +1212 -0
  2. package/dist/resources/MsgCompiled.js +2761 -0
  3. package/dist/resources/ProposalCompiled.d.ts +314 -0
  4. package/dist/resources/ProposalCompiled.js +1090 -0
  5. package/dist/src/cosmosCoin.d.ts +87 -9
  6. package/dist/src/cosmosCoin.d.ts.map +1 -1
  7. package/dist/src/cosmosCoin.js +406 -34
  8. package/dist/src/index.js +6 -2
  9. package/dist/src/lib/ContractCallBuilder.d.ts +13 -0
  10. package/dist/src/lib/ContractCallBuilder.d.ts.map +1 -0
  11. package/dist/src/lib/ContractCallBuilder.js +75 -0
  12. package/dist/src/lib/StakingActivateBuilder.d.ts +3 -3
  13. package/dist/src/lib/StakingActivateBuilder.d.ts.map +1 -1
  14. package/dist/src/lib/StakingActivateBuilder.js +35 -2
  15. package/dist/src/lib/StakingDeactivateBuilder.d.ts +3 -3
  16. package/dist/src/lib/StakingDeactivateBuilder.d.ts.map +1 -1
  17. package/dist/src/lib/StakingDeactivateBuilder.js +35 -2
  18. package/dist/src/lib/StakingRedelegateBuilder.d.ts +13 -0
  19. package/dist/src/lib/StakingRedelegateBuilder.d.ts.map +1 -0
  20. package/dist/src/lib/StakingRedelegateBuilder.js +61 -0
  21. package/dist/src/lib/StakingWithdrawRewardsBuilder.d.ts +3 -3
  22. package/dist/src/lib/StakingWithdrawRewardsBuilder.d.ts.map +1 -1
  23. package/dist/src/lib/StakingWithdrawRewardsBuilder.js +35 -2
  24. package/dist/src/lib/constants.d.ts +6 -0
  25. package/dist/src/lib/constants.d.ts.map +1 -1
  26. package/dist/src/lib/constants.js +8 -2
  27. package/dist/src/lib/iface.d.ts +71 -7
  28. package/dist/src/lib/iface.d.ts.map +1 -1
  29. package/dist/src/lib/iface.js +18 -1
  30. package/dist/src/lib/index.d.ts +2 -0
  31. package/dist/src/lib/index.d.ts.map +1 -1
  32. package/dist/src/lib/index.js +34 -4
  33. package/dist/src/lib/keyPair.js +9 -10
  34. package/dist/src/lib/protobuf-init.d.ts +9 -0
  35. package/dist/src/lib/protobuf-init.d.ts.map +1 -0
  36. package/dist/src/lib/protobuf-init.js +25 -0
  37. package/dist/src/lib/transaction.d.ts +8 -9
  38. package/dist/src/lib/transaction.d.ts.map +1 -1
  39. package/dist/src/lib/transaction.js +151 -70
  40. package/dist/src/lib/transactionBuilder.d.ts +28 -17
  41. package/dist/src/lib/transactionBuilder.d.ts.map +1 -1
  42. package/dist/src/lib/transactionBuilder.js +33 -8
  43. package/dist/src/lib/transferBuilder.d.ts +3 -3
  44. package/dist/src/lib/transferBuilder.d.ts.map +1 -1
  45. package/dist/src/lib/transferBuilder.js +35 -2
  46. package/dist/src/lib/utils.d.ts +143 -18
  47. package/dist/src/lib/utils.d.ts.map +1 -1
  48. package/dist/src/lib/utils.js +452 -31
  49. package/dist/tsconfig.tsbuildinfo +1 -10990
  50. package/package.json +17 -11
  51. package/.eslintignore +0 -5
  52. package/.mocharc.yml +0 -8
  53. package/CHANGELOG.md +0 -17
package/package.json CHANGED
@@ -1,21 +1,22 @@
1
1
  {
2
2
  "name": "@bitgo-beta/abstract-cosmos",
3
- "version": "1.0.1-beta.20",
3
+ "version": "1.0.1-beta.2000",
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": ">=14 <17"
19
+ "node": ">=22"
19
20
  },
20
21
  "repository": {
21
22
  "type": "git",
@@ -37,9 +38,10 @@
37
38
  ]
38
39
  },
39
40
  "dependencies": {
40
- "@bitgo-beta/sdk-core": "8.2.1-beta.38",
41
- "@bitgo-beta/statics": "15.1.1-beta.40",
42
- "@bitgo-beta/utxo-lib": "8.0.3-beta.38",
41
+ "@bitgo-beta/sdk-core": "8.2.1-beta.2021",
42
+ "@bitgo-beta/sdk-lib-mpc": "8.2.0-beta.2024",
43
+ "@bitgo-beta/secp256k1": "1.0.2-beta.2065",
44
+ "@bitgo-beta/statics": "15.1.1-beta.2043",
43
45
  "@cosmjs/amino": "^0.29.5",
44
46
  "@cosmjs/crypto": "^0.30.1",
45
47
  "@cosmjs/encoding": "^0.29.5",
@@ -47,11 +49,15 @@
47
49
  "@cosmjs/stargate": "^0.29.5",
48
50
  "bignumber.js": "^9.1.1",
49
51
  "cosmjs-types": "^0.6.1",
50
- "lodash": "^4.17.21",
51
- "superagent": "^3.8.3"
52
+ "lodash": "^4.18.0",
53
+ "protobufjs": "^7.5.8",
54
+ "superagent": "^9.0.1"
52
55
  },
53
56
  "devDependencies": {
54
57
  "@types/lodash": "^4.14.183"
55
58
  },
56
- "gitHead": "70272415dd63ae8f6b45f6105cc77343892ba993"
59
+ "gitHead": "a07055c5f6a5bee835b9edb96d9721c04a9a05b2",
60
+ "files": [
61
+ "dist"
62
+ ]
57
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,17 +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.1.0 (2023-06-05)
7
-
8
- ### Bug Fixes
9
-
10
- - **abstract-cosmos:** cosmosLikeUtils export ([75540bb](https://github.com/BitGo/BitGoJS/commit/75540bbf029052c87b14d12aa710eb5ebe137c70))
11
-
12
- ### Features
13
-
14
- - **abstract-cosmos:** add abstract cosmos sdk ([0d61c06](https://github.com/BitGo/BitGoJS/commit/0d61c0660d32bb68647ba548ee1ea503adb1cd23))
15
- - **abstract-cosmos:** add abstract cosmos sdk ([71a57b1](https://github.com/BitGo/BitGoJS/commit/71a57b191fb5081aeba26faceceb957ab1dc9bd0))
16
- - **abstract-cosmos:** add abstract cosmos sdk ([85ca1a8](https://github.com/BitGo/BitGoJS/commit/85ca1a8aabb91269c1e24f7ce9f3e74247058886))
17
- - **sdk-coin-osmo:** staking implementation with testcases ([a90c00b](https://github.com/BitGo/BitGoJS/commit/a90c00bd6e49d2a7898b8d4624514708c4f90fb9))