@bitgo/sdk-coin-polyx 1.10.2 → 1.10.4

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 (64) hide show
  1. package/dist/test/integration/index.d.ts +1 -0
  2. package/dist/test/integration/index.d.ts.map +1 -0
  3. package/dist/test/integration/index.js +1 -0
  4. package/dist/test/resources/index.d.ts +102 -0
  5. package/dist/test/resources/index.d.ts.map +1 -0
  6. package/dist/test/resources/index.js +108 -0
  7. package/dist/test/resources/mainnet.d.ts +2 -0
  8. package/dist/test/resources/mainnet.d.ts.map +1 -0
  9. package/dist/test/resources/mainnet.js +5 -0
  10. package/dist/test/resources/materialData.json +8 -0
  11. package/dist/test/resources/materialDataModified.json +8 -0
  12. package/dist/test/resources/testnet.d.ts +2 -0
  13. package/dist/test/resources/testnet.d.ts.map +1 -0
  14. package/dist/test/resources/testnet.js +5 -0
  15. package/dist/test/resources/wrwUsers.d.ts +19 -0
  16. package/dist/test/resources/wrwUsers.d.ts.map +1 -0
  17. package/dist/test/resources/wrwUsers.js +60 -0
  18. package/dist/test/unit/polyx.d.ts +2 -0
  19. package/dist/test/unit/polyx.d.ts.map +1 -0
  20. package/dist/test/unit/polyx.js +209 -0
  21. package/dist/test/unit/transactionBuilder/base.d.ts +4 -0
  22. package/dist/test/unit/transactionBuilder/base.d.ts.map +1 -0
  23. package/dist/test/unit/transactionBuilder/base.js +245 -0
  24. package/dist/test/unit/transactionBuilder/batchStakingBuilder.d.ts +2 -0
  25. package/dist/test/unit/transactionBuilder/batchStakingBuilder.d.ts.map +1 -0
  26. package/dist/test/unit/transactionBuilder/batchStakingBuilder.js +263 -0
  27. package/dist/test/unit/transactionBuilder/batchUnstakingBuilder.d.ts +2 -0
  28. package/dist/test/unit/transactionBuilder/batchUnstakingBuilder.d.ts.map +1 -0
  29. package/dist/test/unit/transactionBuilder/batchUnstakingBuilder.js +159 -0
  30. package/dist/test/unit/transactionBuilder/bondExtraBuilder.d.ts +2 -0
  31. package/dist/test/unit/transactionBuilder/bondExtraBuilder.d.ts.map +1 -0
  32. package/dist/test/unit/transactionBuilder/bondExtraBuilder.js +158 -0
  33. package/dist/test/unit/transactionBuilder/preApproveAssetBuilder.d.ts +2 -0
  34. package/dist/test/unit/transactionBuilder/preApproveAssetBuilder.d.ts.map +1 -0
  35. package/dist/test/unit/transactionBuilder/preApproveAssetBuilder.js +115 -0
  36. package/dist/test/unit/transactionBuilder/registerDidWithCDDBuilder.d.ts +2 -0
  37. package/dist/test/unit/transactionBuilder/registerDidWithCDDBuilder.d.ts.map +1 -0
  38. package/dist/test/unit/transactionBuilder/registerDidWithCDDBuilder.js +302 -0
  39. package/dist/test/unit/transactionBuilder/singletonRegistry.d.ts +2 -0
  40. package/dist/test/unit/transactionBuilder/singletonRegistry.d.ts.map +1 -0
  41. package/dist/test/unit/transactionBuilder/singletonRegistry.js +59 -0
  42. package/dist/test/unit/transactionBuilder/tokenTransferBuilder.d.ts +2 -0
  43. package/dist/test/unit/transactionBuilder/tokenTransferBuilder.d.ts.map +1 -0
  44. package/dist/test/unit/transactionBuilder/tokenTransferBuilder.js +140 -0
  45. package/dist/test/unit/transactionBuilder/transactionBuilderFactory.d.ts +2 -0
  46. package/dist/test/unit/transactionBuilder/transactionBuilderFactory.d.ts.map +1 -0
  47. package/dist/test/unit/transactionBuilder/transactionBuilderFactory.js +74 -0
  48. package/dist/test/unit/transactionBuilder/transferBuilder.d.ts +2 -0
  49. package/dist/test/unit/transactionBuilder/transferBuilder.d.ts.map +1 -0
  50. package/dist/test/unit/transactionBuilder/transferBuilder.js +326 -0
  51. package/dist/test/unit/transactionBuilder/unbondBuilder.d.ts +2 -0
  52. package/dist/test/unit/transactionBuilder/unbondBuilder.d.ts.map +1 -0
  53. package/dist/test/unit/transactionBuilder/unbondBuilder.js +144 -0
  54. package/dist/test/unit/transactionBuilder/withdrawUnbondedBuilder.d.ts +2 -0
  55. package/dist/test/unit/transactionBuilder/withdrawUnbondedBuilder.d.ts.map +1 -0
  56. package/dist/test/unit/transactionBuilder/withdrawUnbondedBuilder.js +138 -0
  57. package/dist/test/unit/utils.d.ts +2 -0
  58. package/dist/test/unit/utils.d.ts.map +1 -0
  59. package/dist/test/unit/utils.js +143 -0
  60. package/dist/tsconfig.tsbuildinfo +1 -0
  61. package/package.json +12 -9
  62. package/.eslintignore +0 -4
  63. package/.mocharc.yml +0 -8
  64. package/CHANGELOG.md +0 -174
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@bitgo/sdk-coin-polyx",
3
- "version": "1.10.2",
3
+ "version": "1.10.4",
4
4
  "description": "BitGo SDK coin library for POLYX (Polymesh) coin",
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",
@@ -40,10 +40,10 @@
40
40
  ]
41
41
  },
42
42
  "dependencies": {
43
- "@bitgo/abstract-substrate": "^1.11.2",
44
- "@bitgo/sdk-core": "^36.10.1",
45
- "@bitgo/sdk-lib-mpc": "^10.7.0",
46
- "@bitgo/statics": "^58.2.0",
43
+ "@bitgo/abstract-substrate": "^1.11.4",
44
+ "@bitgo/sdk-core": "^36.12.0",
45
+ "@bitgo/sdk-lib-mpc": "^10.8.1",
46
+ "@bitgo/statics": "^58.4.0",
47
47
  "@polkadot/api": "14.1.1",
48
48
  "@polkadot/keyring": "13.3.1",
49
49
  "@substrate/txwrapper-core": "7.5.2",
@@ -52,8 +52,11 @@
52
52
  "joi": "^17.4.0"
53
53
  },
54
54
  "devDependencies": {
55
- "@bitgo/sdk-api": "^1.69.2",
56
- "@bitgo/sdk-test": "^9.1.2"
55
+ "@bitgo/sdk-api": "^1.70.1",
56
+ "@bitgo/sdk-test": "^9.1.4"
57
57
  },
58
- "gitHead": "5b534477a4fb3443a99158b1f99723673679d184"
58
+ "files": [
59
+ "dist"
60
+ ],
61
+ "gitHead": "8ac87cf1e91ae2a5fb227904735933d91ec57051"
59
62
  }
package/.eslintignore DELETED
@@ -1,4 +0,0 @@
1
- node_modules
2
- .idea
3
- public
4
- dist
package/.mocharc.yml DELETED
@@ -1,8 +0,0 @@
1
- require: 'tsx'
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,174 +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.10.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polyx@1.10.1...@bitgo/sdk-coin-polyx@1.10.2) (2025-10-02)
7
-
8
- **Note:** Version bump only for package @bitgo/sdk-coin-polyx
9
-
10
- ## [1.10.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polyx@1.10.0...@bitgo/sdk-coin-polyx@1.10.1) (2025-09-29)
11
-
12
- **Note:** Version bump only for package @bitgo/sdk-coin-polyx
13
-
14
- # [1.10.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polyx@1.9.3...@bitgo/sdk-coin-polyx@1.10.0) (2025-09-25)
15
-
16
- ### Features
17
-
18
- - configure learn to skip git operations ([ee3a622](https://github.com/BitGo/BitGoJS/commit/ee3a6220496476aa7f4545b5f4a9a3bf97d9bdb9))
19
- - **sdk-coin-polyx:** add decodeTransaction in utils ([4d6f451](https://github.com/BitGo/BitGoJS/commit/4d6f4510dd10bc4e92a29117de33d9ce1c6b521c))
20
-
21
- ## [1.9.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polyx@1.9.2...@bitgo/sdk-coin-polyx@1.9.3) (2025-09-03)
22
-
23
- **Note:** Version bump only for package @bitgo/sdk-coin-polyx
24
-
25
- ## [1.9.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polyx@1.9.1...@bitgo/sdk-coin-polyx@1.9.2) (2025-08-30)
26
-
27
- **Note:** Version bump only for package @bitgo/sdk-coin-polyx
28
-
29
- ## [1.9.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polyx@1.9.0...@bitgo/sdk-coin-polyx@1.9.1) (2025-08-29)
30
-
31
- **Note:** Version bump only for package @bitgo/sdk-coin-polyx
32
-
33
- # [1.9.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polyx@1.8.0...@bitgo/sdk-coin-polyx@1.9.0) (2025-08-27)
34
-
35
- ### Features
36
-
37
- - **sdk-coin-polyx:** add support for token enablement ([894459a](https://github.com/BitGo/BitGoJS/commit/894459a49848a2b111cf850429cbb2f8b90d550f))
38
-
39
- # [1.8.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polyx@1.7.2...@bitgo/sdk-coin-polyx@1.8.0) (2025-08-22)
40
-
41
- ### Features
42
-
43
- - **root:** migrate ts-node -> tsx ([ea180b4](https://github.com/BitGo/BitGoJS/commit/ea180b43001d8e956196bc07b32798e3a7031eeb))
44
-
45
- ## [1.7.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polyx@1.7.1...@bitgo/sdk-coin-polyx@1.7.2) (2025-08-22)
46
-
47
- **Note:** Version bump only for package @bitgo/sdk-coin-polyx
48
-
49
- ## [1.7.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polyx@1.7.0...@bitgo/sdk-coin-polyx@1.7.1) (2025-08-19)
50
-
51
- **Note:** Version bump only for package @bitgo/sdk-coin-polyx
52
-
53
- # [1.7.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polyx@1.6.0...@bitgo/sdk-coin-polyx@1.7.0) (2025-08-14)
54
-
55
- ### Bug Fixes
56
-
57
- - **sdk-coin-polyx:** add test token and update the tests ([1f8af7d](https://github.com/BitGo/BitGoJS/commit/1f8af7d620b5d603a4e27c15276f518e6ff4f349))
58
-
59
- ### Features
60
-
61
- - **sdk-coin-polyx:** add token builders ([6860780](https://github.com/BitGo/BitGoJS/commit/68607804efc1191ff396e05f20466526246b7d87))
62
-
63
- # [1.6.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polyx@1.5.6...@bitgo/sdk-coin-polyx@1.6.0) (2025-08-07)
64
-
65
- ### Features
66
-
67
- - add polyxToken skeleton ([c7be0ef](https://github.com/BitGo/BitGoJS/commit/c7be0efb003c720e9da732b627576336c7fc9e52))
68
- - **sdk-coin-polyx:** add wrw support ([24ec106](https://github.com/BitGo/BitGoJS/commit/24ec106158e0f7330dc61c467b466904fb9e068b))
69
-
70
- ## [1.5.6](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polyx@1.5.5...@bitgo/sdk-coin-polyx@1.5.6) (2025-07-31)
71
-
72
- **Note:** Version bump only for package @bitgo/sdk-coin-polyx
73
-
74
- ## [1.5.5](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polyx@1.5.4...@bitgo/sdk-coin-polyx@1.5.5) (2025-07-30)
75
-
76
- **Note:** Version bump only for package @bitgo/sdk-coin-polyx
77
-
78
- ## [1.5.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polyx@1.5.2...@bitgo/sdk-coin-polyx@1.5.4) (2025-07-25)
79
-
80
- **Note:** Version bump only for package @bitgo/sdk-coin-polyx
81
-
82
- ## [1.5.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polyx@1.5.2...@bitgo/sdk-coin-polyx@1.5.3) (2025-07-23)
83
-
84
- **Note:** Version bump only for package @bitgo/sdk-coin-polyx
85
-
86
- ## [1.5.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polyx@1.5.1...@bitgo/sdk-coin-polyx@1.5.2) (2025-07-15)
87
-
88
- **Note:** Version bump only for package @bitgo/sdk-coin-polyx
89
-
90
- ## [1.5.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polyx@1.5.0...@bitgo/sdk-coin-polyx@1.5.1) (2025-07-10)
91
-
92
- ### Bug Fixes
93
-
94
- - **sdk-coin-polyx:** add mainnet address format ([4d02932](https://github.com/BitGo/BitGoJS/commit/4d02932045d5d6f02a9127cb189a5e71dc803f38))
95
-
96
- # [1.5.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polyx@1.4.2...@bitgo/sdk-coin-polyx@1.5.0) (2025-07-03)
97
-
98
- ### Features
99
-
100
- - **sdk-coin-polyx:** implement unbond builder ([4d449f7](https://github.com/BitGo/BitGoJS/commit/4d449f71685856a20b47cbf5eb561999b71986e5))
101
-
102
- ## [1.4.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polyx@1.4.1...@bitgo/sdk-coin-polyx@1.4.2) (2025-06-25)
103
-
104
- **Note:** Version bump only for package @bitgo/sdk-coin-polyx
105
-
106
- ## [1.4.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polyx@1.4.0...@bitgo/sdk-coin-polyx@1.4.1) (2025-06-24)
107
-
108
- ### Bug Fixes
109
-
110
- - decoding logic to differentiate b/w stake and unstake batch ([2d82c4e](https://github.com/BitGo/BitGoJS/commit/2d82c4e572c94cb5b770301428c107da22f84448))
111
- - **sdk-coin-polyx:** add address format for polyx and tpolyx ([7748439](https://github.com/BitGo/BitGoJS/commit/774843999a56b793775f119c0f3a4f6a49d40a73))
112
-
113
- # [1.4.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polyx@1.3.1...@bitgo/sdk-coin-polyx@1.4.0) (2025-06-18)
114
-
115
- ### Features
116
-
117
- - add decoding support for polyx staking related txns ([f680b01](https://github.com/BitGo/BitGoJS/commit/f680b011c6c89b4c3c04ede21f089e8efc1c0ee8))
118
-
119
- ## [1.3.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polyx@1.3.0...@bitgo/sdk-coin-polyx@1.3.1) (2025-06-10)
120
-
121
- **Note:** Version bump only for package @bitgo/sdk-coin-polyx
122
-
123
- # [1.3.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polyx@1.2.0...@bitgo/sdk-coin-polyx@1.3.0) (2025-06-05)
124
-
125
- ### Features
126
-
127
- - add batchStakingBuilder (bond and nominate) and bondExtraBuilder for polyx ([cd29662](https://github.com/BitGo/BitGoJS/commit/cd296620fb013ebd48ec89bb4bcf1bf0433ec7d4))
128
- - add batchUnstakingBuilder and withdrawUnbondedBuilder ([d86c459](https://github.com/BitGo/BitGoJS/commit/d86c459f1c42c1d5cbf93b7ba408760b617bf328))
129
- - **root:** support node 22 ([c4ad6af](https://github.com/BitGo/BitGoJS/commit/c4ad6af2e8896221417c303f0f6b84652b493216))
130
-
131
- # [1.2.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polyx@1.1.2...@bitgo/sdk-coin-polyx@1.2.0) (2025-06-02)
132
-
133
- ### Bug Fixes
134
-
135
- - **sdk-coin-polyx:** fix to toJson method in polyx transaction ([8f8ef0b](https://github.com/BitGo/BitGoJS/commit/8f8ef0b8fa420dadb41989465b2380af73466ae0))
136
-
137
- ### Features
138
-
139
- - rename audit function naming and signature ([1a885ab](https://github.com/BitGo/BitGoJS/commit/1a885ab60d30ca8595e284a728f2ab9d3c09994e))
140
-
141
- ## [1.1.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polyx@1.1.1...@bitgo/sdk-coin-polyx@1.1.2) (2025-05-28)
142
-
143
- **Note:** Version bump only for package @bitgo/sdk-coin-polyx
144
-
145
- ## [1.1.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polyx@1.1.0...@bitgo/sdk-coin-polyx@1.1.1) (2025-05-22)
146
-
147
- ### Bug Fixes
148
-
149
- - **sdk-coin-polyx:** all fixed ([f9c23bc](https://github.com/BitGo/BitGoJS/commit/f9c23bc9a8bc609be5f41a4ffd980138ecb63148))
150
- - **sdk-coin-polyx:** fix cdd builder ([2461fbf](https://github.com/BitGo/BitGoJS/commit/2461fbfcc76f8f6e7f89302f5e3c4b99097cb97a))
151
-
152
- # [1.1.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polyx@1.0.4...@bitgo/sdk-coin-polyx@1.1.0) (2025-05-20)
153
-
154
- ### Features
155
-
156
- - **sdk-coin-polyx:** add transaction builders ([31c96bb](https://github.com/BitGo/BitGoJS/commit/31c96bbbce60b93e13208e3eab06bd144cfe57e4))
157
-
158
- ## [1.0.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polyx@1.0.3...@bitgo/sdk-coin-polyx@1.0.4) (2025-05-07)
159
-
160
- ### Bug Fixes
161
-
162
- - send statics coin to substrate class ([9ed860e](https://github.com/BitGo/BitGoJS/commit/9ed860ed288516959d5723e6119c7701588a41e7))
163
-
164
- ## [1.0.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polyx@1.0.2...@bitgo/sdk-coin-polyx@1.0.3) (2025-04-29)
165
-
166
- **Note:** Version bump only for package @bitgo/sdk-coin-polyx
167
-
168
- ## [1.0.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polyx@1.0.1...@bitgo/sdk-coin-polyx@1.0.2) (2025-04-25)
169
-
170
- **Note:** Version bump only for package @bitgo/sdk-coin-polyx
171
-
172
- ## 1.0.1 (2025-04-15)
173
-
174
- **Note:** Version bump only for package @bitgo/sdk-coin-polyx