@bitgo-beta/utxo-staking 1.1.1-beta.34 → 1.1.1-beta.340

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 (38) hide show
  1. package/dist/src/babylon/delegationMessage.d.ts +38 -0
  2. package/dist/src/babylon/delegationMessage.d.ts.map +1 -0
  3. package/dist/src/babylon/delegationMessage.js +261 -0
  4. package/dist/src/babylon/descriptor.d.ts +29 -0
  5. package/dist/src/babylon/descriptor.d.ts.map +1 -0
  6. package/dist/src/babylon/descriptor.js +78 -0
  7. package/dist/src/babylon/index.d.ts +5 -0
  8. package/dist/src/babylon/index.d.ts.map +1 -0
  9. package/dist/src/babylon/index.js +48 -0
  10. package/dist/src/babylon/network.d.ts +7 -0
  11. package/dist/src/babylon/network.d.ts.map +1 -0
  12. package/dist/src/babylon/network.js +66 -0
  13. package/dist/src/babylon/params.mainnet.json +118 -0
  14. package/dist/src/babylon/params.testnet.json +205 -0
  15. package/dist/src/babylon/stakingManager.d.ts +6 -0
  16. package/dist/src/babylon/stakingManager.d.ts.map +1 -0
  17. package/dist/src/babylon/stakingManager.js +116 -0
  18. package/dist/src/babylon/stakingParams.d.ts +39 -0
  19. package/dist/src/babylon/stakingParams.d.ts.map +1 -0
  20. package/dist/src/babylon/stakingParams.js +131 -0
  21. package/dist/src/coreDao/descriptor.d.ts +4 -2
  22. package/dist/src/coreDao/descriptor.d.ts.map +1 -1
  23. package/dist/src/coreDao/descriptor.js +11 -3
  24. package/dist/src/coreDao/opReturn.d.ts +1 -0
  25. package/dist/src/coreDao/opReturn.d.ts.map +1 -1
  26. package/dist/src/coreDao/opReturn.js +5 -2
  27. package/dist/src/coreDao/transaction.d.ts +15 -6
  28. package/dist/src/coreDao/transaction.d.ts.map +1 -1
  29. package/dist/src/coreDao/transaction.js +12 -4
  30. package/dist/src/index.d.ts +1 -0
  31. package/dist/src/index.d.ts.map +1 -1
  32. package/dist/src/index.js +26 -3
  33. package/dist/src/transaction.d.ts.map +1 -1
  34. package/dist/src/transaction.js +37 -2
  35. package/package.json +20 -7
  36. package/.eslintignore +0 -5
  37. package/.mocharc.yml +0 -8
  38. package/CHANGELOG.md +0 -43
package/package.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "name": "@bitgo-beta/utxo-staking",
3
- "version": "1.1.1-beta.34",
3
+ "version": "1.1.1-beta.340",
4
4
  "description": "BitGo SDK for build UTXO staking transactions",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
7
+ "files": [
8
+ "dist/src"
9
+ ],
7
10
  "scripts": {
8
11
  "build": "yarn tsc --build --incremental --verbose .",
9
12
  "fmt": "prettier --write .",
@@ -11,9 +14,8 @@
11
14
  "clean": "rm -r ./dist",
12
15
  "lint": "eslint --quiet .",
13
16
  "prepare": "npm run build",
14
- "test": "npm run coverage",
15
17
  "coverage": "nyc -- npm run unit-test",
16
- "unit-test": "mocha"
18
+ "unit-test": "mocha --recursive test"
17
19
  },
18
20
  "author": "BitGo SDK Team <sdkteam@bitgo.com>",
19
21
  "license": "MIT",
@@ -40,9 +42,20 @@
40
42
  ]
41
43
  },
42
44
  "dependencies": {
43
- "@bitgo-beta/unspents": "0.13.2-beta.593",
44
- "@bitgo-beta/utxo-lib": "8.0.3-beta.594",
45
- "@bitgo/wasm-miniscript": "^2.0.0-beta.2"
45
+ "@babylonlabs-io/babylon-proto-ts": "1.0.0",
46
+ "@bitgo-beta/babylonlabs-io-btc-staking-ts": "0.4.0-beta.145",
47
+ "@bitgo-beta/unspents": "0.13.2-beta.899",
48
+ "@bitgo-beta/utxo-core": "1.8.1-beta.16",
49
+ "@bitgo-beta/utxo-lib": "8.0.3-beta.900",
50
+ "@bitgo/wasm-miniscript": "2.0.0-beta.7",
51
+ "bip322-js": "^2.0.0",
52
+ "bitcoinjs-lib": "^6.1.7",
53
+ "fp-ts": "^2.16.2",
54
+ "io-ts": "npm:@bitgo-forks/io-ts@2.1.4",
55
+ "io-ts-types": "^0.5.19"
46
56
  },
47
- "gitHead": "44683d01fb251bb2773e9c0ef583c960e502220f"
57
+ "devDependencies": {
58
+ "yargs": "^17.7.2"
59
+ },
60
+ "gitHead": "7849ae6d9644af95823d5f1c0f9f3f280f653167"
48
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,43 +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.3.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/utxo-staking@1.3.2...@bitgo/utxo-staking@1.3.3) (2024-12-03)
7
-
8
- **Note:** Version bump only for package @bitgo/utxo-staking
9
-
10
- ## [1.3.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/utxo-staking@1.3.1...@bitgo/utxo-staking@1.3.2) (2024-11-26)
11
-
12
- **Note:** Version bump only for package @bitgo/utxo-staking
13
-
14
- ## [1.3.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/utxo-staking@1.3.0...@bitgo/utxo-staking@1.3.1) (2024-11-21)
15
-
16
- **Note:** Version bump only for package @bitgo/utxo-staking
17
-
18
- # 1.3.0 (2024-11-19)
19
-
20
- ### Features
21
-
22
- - **utxo-staking:** build staking transaction ([73b33bc](https://github.com/BitGo/BitGoJS/commit/73b33bc93e46934fe5e6002c52c0b1443a3d0d8d))
23
- - **utxo-staking:** create coredao staking outputs ([6b5ca4b](https://github.com/BitGo/BitGoJS/commit/6b5ca4b7c726fb6a4380526391416f6db356e0b7))
24
-
25
- # 1.2.0 (2024-11-14)
26
-
27
- ### Features
28
-
29
- - **utxo-staking:** build staking transaction ([73b33bc](https://github.com/BitGo/BitGoJS/commit/73b33bc93e46934fe5e6002c52c0b1443a3d0d8d))
30
- - **utxo-staking:** create coredao staking outputs ([6b5ca4b](https://github.com/BitGo/BitGoJS/commit/6b5ca4b7c726fb6a4380526391416f6db356e0b7))
31
-
32
- # 1.1.0 (2024-11-01)
33
-
34
- ### Bug Fixes
35
-
36
- - **utxo-coredao:** clarifications from the coredao team ([56157b3](https://github.com/BitGo/BitGoJS/commit/56157b34e6802895489928d8e7a87f8f5c8129ed))
37
- - **utxo-coredao:** fix json encoding to add newline ([bb5be2f](https://github.com/BitGo/BitGoJS/commit/bb5be2f91e0e7f1d59d94a1786fdd2cccc4ebad6))
38
-
39
- ### Features
40
-
41
- - **utxo-coredao:** descriptor for CoreDao ([791f9e4](https://github.com/BitGo/BitGoJS/commit/791f9e47033a8224759d98f0483f5b0bb9bbc524))
42
- - **utxo-coredao:** init repo and op-return ([60fa058](https://github.com/BitGo/BitGoJS/commit/60fa058f693cf722db8d5e7507539a5ec1c8b1a5))
43
- - **utxo-coredao:** parse and verify op-return ([32dc7c4](https://github.com/BitGo/BitGoJS/commit/32dc7c49f0ff5baeb0db4a20853f70745f71c02b))