@bitgo-beta/sdk-coin-stx 1.4.3-alpha.42 → 1.4.3-alpha.421

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 (74) hide show
  1. package/dist/src/index.d.ts +1 -0
  2. package/dist/src/index.d.ts.map +1 -1
  3. package/dist/src/index.js +24 -9
  4. package/dist/src/lib/abstractContractBuilder.js +2 -2
  5. package/dist/src/lib/constants.d.ts +2 -1
  6. package/dist/src/lib/constants.d.ts.map +1 -1
  7. package/dist/src/lib/constants.js +5 -3
  8. package/dist/src/lib/contractBuilder.js +10 -10
  9. package/dist/src/lib/fungibleTokenTransferBuilder.d.ts +62 -0
  10. package/dist/src/lib/fungibleTokenTransferBuilder.d.ts.map +1 -0
  11. package/dist/src/lib/fungibleTokenTransferBuilder.js +131 -0
  12. package/dist/src/lib/iface.d.ts +56 -0
  13. package/dist/src/lib/iface.d.ts.map +1 -1
  14. package/dist/src/lib/iface.js +1 -1
  15. package/dist/src/lib/index.js +23 -9
  16. package/dist/src/lib/keyPair.js +18 -19
  17. package/dist/src/lib/sendmanyBuilder.js +11 -11
  18. package/dist/src/lib/transaction.d.ts.map +1 -1
  19. package/dist/src/lib/transaction.js +31 -15
  20. package/dist/src/lib/transactionBuilder.js +12 -12
  21. package/dist/src/lib/transactionBuilderFactory.d.ts +2 -0
  22. package/dist/src/lib/transactionBuilderFactory.d.ts.map +1 -1
  23. package/dist/src/lib/transactionBuilderFactory.js +9 -2
  24. package/dist/src/lib/transferBuilder.js +4 -4
  25. package/dist/src/lib/utils.d.ts +25 -2
  26. package/dist/src/lib/utils.d.ts.map +1 -1
  27. package/dist/src/lib/utils.js +141 -62
  28. package/dist/src/register.d.ts.map +1 -1
  29. package/dist/src/register.js +5 -1
  30. package/dist/src/sip10Token.d.ts +22 -0
  31. package/dist/src/sip10Token.d.ts.map +1 -0
  32. package/dist/src/sip10Token.js +128 -0
  33. package/dist/src/stx.d.ts +146 -2
  34. package/dist/src/stx.d.ts.map +1 -1
  35. package/dist/src/stx.js +420 -11
  36. package/dist/src/tstx.js +1 -1
  37. package/dist/test/fixtures.d.ts +119 -0
  38. package/dist/test/fixtures.d.ts.map +1 -0
  39. package/dist/test/fixtures.js +147 -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 +144 -0
  43. package/dist/test/unit/resources.d.ts +97 -0
  44. package/dist/test/unit/resources.d.ts.map +1 -0
  45. package/dist/test/unit/resources.js +144 -0
  46. package/dist/test/unit/sip10Token.d.ts +2 -0
  47. package/dist/test/unit/sip10Token.d.ts.map +1 -0
  48. package/dist/test/unit/sip10Token.js +374 -0
  49. package/dist/test/unit/stx.d.ts +2 -0
  50. package/dist/test/unit/stx.d.ts.map +1 -0
  51. package/dist/test/unit/stx.js +470 -0
  52. package/dist/test/unit/transaction.d.ts +2 -0
  53. package/dist/test/unit/transaction.d.ts.map +1 -0
  54. package/dist/test/unit/transaction.js +83 -0
  55. package/dist/test/unit/transactionBuilder/contractBuilder.d.ts +2 -0
  56. package/dist/test/unit/transactionBuilder/contractBuilder.d.ts.map +1 -0
  57. package/dist/test/unit/transactionBuilder/contractBuilder.js +421 -0
  58. package/dist/test/unit/transactionBuilder/fungibleTokenTransferBuilder.d.ts +2 -0
  59. package/dist/test/unit/transactionBuilder/fungibleTokenTransferBuilder.d.ts.map +1 -0
  60. package/dist/test/unit/transactionBuilder/fungibleTokenTransferBuilder.js +187 -0
  61. package/dist/test/unit/transactionBuilder/sendmanyBuilder.d.ts +2 -0
  62. package/dist/test/unit/transactionBuilder/sendmanyBuilder.d.ts.map +1 -0
  63. package/dist/test/unit/transactionBuilder/sendmanyBuilder.js +140 -0
  64. package/dist/test/unit/transactionBuilder/transferBuilder.d.ts +2 -0
  65. package/dist/test/unit/transactionBuilder/transferBuilder.d.ts.map +1 -0
  66. package/dist/test/unit/transactionBuilder/transferBuilder.js +347 -0
  67. package/dist/test/unit/util.d.ts +2 -0
  68. package/dist/test/unit/util.d.ts.map +1 -0
  69. package/dist/test/unit/util.js +326 -0
  70. package/dist/tsconfig.tsbuildinfo +1 -0
  71. package/package.json +13 -11
  72. package/.eslintignore +0 -5
  73. package/.mocharc.yml +0 -8
  74. package/CHANGELOG.md +0 -107
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@bitgo-beta/sdk-coin-stx",
3
- "version": "1.4.3-alpha.42",
3
+ "version": "1.4.3-alpha.421",
4
4
  "description": "BitGo SDK coin library for Stacks",
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": ">=14 <17"
21
+ "node": ">=20 <23"
22
22
  },
23
23
  "repository": {
24
24
  "type": "git",
@@ -40,21 +40,23 @@
40
40
  ]
41
41
  },
42
42
  "dependencies": {
43
- "@bitgo-beta/sdk-core": "2.4.1-alpha.42",
44
- "@bitgo-beta/statics": "10.0.1-alpha.42",
45
- "@bitgo-beta/utxo-lib": "4.0.1-alpha.42",
43
+ "@bitgo-beta/sdk-core": "2.4.1-alpha.424",
44
+ "@bitgo-beta/secp256k1": "1.0.1-alpha.382",
45
+ "@bitgo-beta/statics": "10.0.1-alpha.424",
46
+ "@noble/curves": "1.8.1",
46
47
  "@stacks/network": "^4.3.0",
47
48
  "@stacks/transactions": "2.0.1",
48
49
  "bignumber.js": "^9.0.0",
49
50
  "bn.js": "^5.2.1",
50
- "elliptic": "^6.5.2",
51
51
  "ethereumjs-util": "7.1.5",
52
52
  "lodash": "^4.17.15"
53
53
  },
54
54
  "devDependencies": {
55
- "@bitgo-beta/sdk-api": "1.6.1-alpha.42",
56
- "@bitgo-beta/sdk-test": "^1.2.15",
57
- "@types/elliptic": "^6.4.12"
55
+ "@bitgo-beta/sdk-api": "1.6.1-alpha.424",
56
+ "@bitgo-beta/sdk-test": "^9.1.15"
58
57
  },
59
- "gitHead": "1d4d7fb4d117d6b1c3493baa99edd7dd6a4710c6"
58
+ "gitHead": "b00cf8ce329724ab4d1cc6101bdae52f33f0eb58",
59
+ "files": [
60
+ "dist"
61
+ ]
60
62
  }
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,107 +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.4.15](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-stx@1.4.14...@bitgo/sdk-coin-stx@1.4.15) (2023-02-17)
7
-
8
- **Note:** Version bump only for package @bitgo/sdk-coin-stx
9
-
10
- ## [1.4.14](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-stx@1.4.11...@bitgo/sdk-coin-stx@1.4.14) (2023-02-16)
11
-
12
- **Note:** Version bump only for package @bitgo/sdk-coin-stx
13
-
14
- ## [1.4.13](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-stx@1.4.11...@bitgo/sdk-coin-stx@1.4.13) (2023-02-08)
15
-
16
- **Note:** Version bump only for package @bitgo/sdk-coin-stx
17
-
18
- ## [1.4.12](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-stx@1.4.11...@bitgo/sdk-coin-stx@1.4.12) (2023-01-30)
19
-
20
- **Note:** Version bump only for package @bitgo/sdk-coin-stx
21
-
22
- ## [1.4.11](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-stx@1.4.10...@bitgo/sdk-coin-stx@1.4.11) (2023-01-25)
23
-
24
- **Note:** Version bump only for package @bitgo/sdk-coin-stx
25
-
26
- ## [1.4.10](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-stx@1.4.9...@bitgo/sdk-coin-stx@1.4.10) (2022-12-23)
27
-
28
- **Note:** Version bump only for package @bitgo/sdk-coin-stx
29
-
30
- ## [1.4.9](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-stx@1.4.8...@bitgo/sdk-coin-stx@1.4.9) (2022-12-20)
31
-
32
- **Note:** Version bump only for package @bitgo/sdk-coin-stx
33
-
34
- ## [1.4.8](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-stx@1.4.7...@bitgo/sdk-coin-stx@1.4.8) (2022-12-09)
35
-
36
- **Note:** Version bump only for package @bitgo/sdk-coin-stx
37
-
38
- ## [1.4.7](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-stx@1.4.6...@bitgo/sdk-coin-stx@1.4.7) (2022-12-06)
39
-
40
- **Note:** Version bump only for package @bitgo/sdk-coin-stx
41
-
42
- ## [1.4.6](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-stx@1.4.5...@bitgo/sdk-coin-stx@1.4.6) (2022-12-01)
43
-
44
- **Note:** Version bump only for package @bitgo/sdk-coin-stx
45
-
46
- ## [1.4.5](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-stx@1.4.0...@bitgo/sdk-coin-stx@1.4.5) (2022-11-29)
47
-
48
- **Note:** Version bump only for package @bitgo/sdk-coin-stx
49
-
50
- ## [1.4.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-stx@1.4.0...@bitgo/sdk-coin-stx@1.4.4) (2022-11-04)
51
-
52
- **Note:** Version bump only for package @bitgo/sdk-coin-stx
53
-
54
- ## [1.4.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-stx@1.4.0...@bitgo/sdk-coin-stx@1.4.2) (2022-10-27)
55
-
56
- **Note:** Version bump only for package @bitgo/sdk-coin-stx
57
-
58
- ## [1.4.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-stx@1.4.0...@bitgo/sdk-coin-stx@1.4.1) (2022-10-25)
59
-
60
- **Note:** Version bump only for package @bitgo/sdk-coin-stx
61
-
62
- # [1.4.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-stx@1.1.0-rc.6...@bitgo/sdk-coin-stx@1.4.0) (2022-10-18)
63
-
64
- ### Bug Fixes
65
-
66
- - **core:** fix bip32/ecpair, API vs Interface ([bec9c1e](https://github.com/BitGo/BitGoJS/commit/bec9c1e6ff0c23108dc27e171abdd3e4d2cfdfb1))
67
- - **root:** align versions of bitcoinjs-lib ([b7eb929](https://github.com/BitGo/BitGoJS/commit/b7eb92998836a5945627ef1c80d74414b11f4867))
68
-
69
- ### Features
70
-
71
- - update to work with bitcoinjs-lib@6 ([1950934](https://github.com/BitGo/BitGoJS/commit/1950934d9426385ee12b204cc7456327e4480618))
72
-
73
- # [1.1.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-stx@1.1.0-rc.6...@bitgo/sdk-coin-stx@1.1.0) (2022-07-19)
74
-
75
- **Note:** Version bump only for package @bitgo/sdk-coin-stx
76
-
77
- # [1.1.0-rc.6](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-stx@1.1.0-rc.4...@bitgo/sdk-coin-stx@1.1.0-rc.6) (2022-07-19)
78
-
79
- **Note:** Version bump only for package @bitgo/sdk-coin-stx
80
-
81
- # [1.1.0-rc.5](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-stx@1.1.0-rc.4...@bitgo/sdk-coin-stx@1.1.0-rc.5) (2022-07-18)
82
-
83
- **Note:** Version bump only for package @bitgo/sdk-coin-stx
84
-
85
- # [1.1.0-rc.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-stx@1.1.0-rc.3...@bitgo/sdk-coin-stx@1.1.0-rc.4) (2022-07-15)
86
-
87
- **Note:** Version bump only for package @bitgo/sdk-coin-stx
88
-
89
- # [1.1.0-rc.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-stx@1.1.0-rc.1...@bitgo/sdk-coin-stx@1.1.0-rc.3) (2022-07-15)
90
-
91
- ### Features
92
-
93
- - **account-lib:** get rid of old ethereum lib ([abd2247](https://github.com/BitGo/BitGoJS/commit/abd2247047218d8cbd8ec7067d227721357f5fcc))
94
-
95
- # [1.1.0-rc.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-stx@1.1.0-rc.1...@bitgo/sdk-coin-stx@1.1.0-rc.2) (2022-07-14)
96
-
97
- **Note:** Version bump only for package @bitgo/sdk-coin-stx
98
-
99
- # [1.1.0-rc.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-stx@1.1.0-rc.0...@bitgo/sdk-coin-stx@1.1.0-rc.1) (2022-07-12)
100
-
101
- **Note:** Version bump only for package @bitgo/sdk-coin-stx
102
-
103
- # 1.1.0-rc.0 (2022-07-11)
104
-
105
- ### Features
106
-
107
- - **sdk-coin-stx:** refactor stx to its own module ([80866b4](https://github.com/BitGo/BitGoJS/commit/80866b4161349efa513f801c0830029e5d5f36a3))