@bitgo/sdk-coin-polyx 1.10.1 → 1.10.3

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 +11 -8
  62. package/.eslintignore +0 -4
  63. package/.mocharc.yml +0 -8
  64. package/CHANGELOG.md +0 -170
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/sdk-coin-polyx",
3
- "version": "1.10.1",
3
+ "version": "1.10.3",
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",
@@ -40,10 +40,10 @@
40
40
  ]
41
41
  },
42
42
  "dependencies": {
43
- "@bitgo/abstract-substrate": "^1.11.1",
44
- "@bitgo/sdk-core": "^36.10.0",
45
- "@bitgo/sdk-lib-mpc": "^10.7.0",
46
- "@bitgo/statics": "^58.1.0",
43
+ "@bitgo/abstract-substrate": "^1.11.3",
44
+ "@bitgo/sdk-core": "^36.11.0",
45
+ "@bitgo/sdk-lib-mpc": "^10.8.0",
46
+ "@bitgo/statics": "^58.3.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.1",
56
- "@bitgo/sdk-test": "^9.1.1"
55
+ "@bitgo/sdk-api": "^1.70.0",
56
+ "@bitgo/sdk-test": "^9.1.3"
57
57
  },
58
- "gitHead": "904c3724c2f78cc46c825b233be4b50a06e4bb2f"
58
+ "files": [
59
+ "dist"
60
+ ],
61
+ "gitHead": "c0222586265fab9cc7edbd33c38106801511ef18"
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,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.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)
7
-
8
- **Note:** Version bump only for package @bitgo/sdk-coin-polyx
9
-
10
- # [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)
11
-
12
- ### Features
13
-
14
- - configure learn to skip git operations ([ee3a622](https://github.com/BitGo/BitGoJS/commit/ee3a6220496476aa7f4545b5f4a9a3bf97d9bdb9))
15
- - **sdk-coin-polyx:** add decodeTransaction in utils ([4d6f451](https://github.com/BitGo/BitGoJS/commit/4d6f4510dd10bc4e92a29117de33d9ce1c6b521c))
16
-
17
- ## [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)
18
-
19
- **Note:** Version bump only for package @bitgo/sdk-coin-polyx
20
-
21
- ## [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)
22
-
23
- **Note:** Version bump only for package @bitgo/sdk-coin-polyx
24
-
25
- ## [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)
26
-
27
- **Note:** Version bump only for package @bitgo/sdk-coin-polyx
28
-
29
- # [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)
30
-
31
- ### Features
32
-
33
- - **sdk-coin-polyx:** add support for token enablement ([894459a](https://github.com/BitGo/BitGoJS/commit/894459a49848a2b111cf850429cbb2f8b90d550f))
34
-
35
- # [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)
36
-
37
- ### Features
38
-
39
- - **root:** migrate ts-node -> tsx ([ea180b4](https://github.com/BitGo/BitGoJS/commit/ea180b43001d8e956196bc07b32798e3a7031eeb))
40
-
41
- ## [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)
42
-
43
- **Note:** Version bump only for package @bitgo/sdk-coin-polyx
44
-
45
- ## [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)
46
-
47
- **Note:** Version bump only for package @bitgo/sdk-coin-polyx
48
-
49
- # [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)
50
-
51
- ### Bug Fixes
52
-
53
- - **sdk-coin-polyx:** add test token and update the tests ([1f8af7d](https://github.com/BitGo/BitGoJS/commit/1f8af7d620b5d603a4e27c15276f518e6ff4f349))
54
-
55
- ### Features
56
-
57
- - **sdk-coin-polyx:** add token builders ([6860780](https://github.com/BitGo/BitGoJS/commit/68607804efc1191ff396e05f20466526246b7d87))
58
-
59
- # [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)
60
-
61
- ### Features
62
-
63
- - add polyxToken skeleton ([c7be0ef](https://github.com/BitGo/BitGoJS/commit/c7be0efb003c720e9da732b627576336c7fc9e52))
64
- - **sdk-coin-polyx:** add wrw support ([24ec106](https://github.com/BitGo/BitGoJS/commit/24ec106158e0f7330dc61c467b466904fb9e068b))
65
-
66
- ## [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)
67
-
68
- **Note:** Version bump only for package @bitgo/sdk-coin-polyx
69
-
70
- ## [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)
71
-
72
- **Note:** Version bump only for package @bitgo/sdk-coin-polyx
73
-
74
- ## [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)
75
-
76
- **Note:** Version bump only for package @bitgo/sdk-coin-polyx
77
-
78
- ## [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)
79
-
80
- **Note:** Version bump only for package @bitgo/sdk-coin-polyx
81
-
82
- ## [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)
83
-
84
- **Note:** Version bump only for package @bitgo/sdk-coin-polyx
85
-
86
- ## [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)
87
-
88
- ### Bug Fixes
89
-
90
- - **sdk-coin-polyx:** add mainnet address format ([4d02932](https://github.com/BitGo/BitGoJS/commit/4d02932045d5d6f02a9127cb189a5e71dc803f38))
91
-
92
- # [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)
93
-
94
- ### Features
95
-
96
- - **sdk-coin-polyx:** implement unbond builder ([4d449f7](https://github.com/BitGo/BitGoJS/commit/4d449f71685856a20b47cbf5eb561999b71986e5))
97
-
98
- ## [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)
99
-
100
- **Note:** Version bump only for package @bitgo/sdk-coin-polyx
101
-
102
- ## [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)
103
-
104
- ### Bug Fixes
105
-
106
- - decoding logic to differentiate b/w stake and unstake batch ([2d82c4e](https://github.com/BitGo/BitGoJS/commit/2d82c4e572c94cb5b770301428c107da22f84448))
107
- - **sdk-coin-polyx:** add address format for polyx and tpolyx ([7748439](https://github.com/BitGo/BitGoJS/commit/774843999a56b793775f119c0f3a4f6a49d40a73))
108
-
109
- # [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)
110
-
111
- ### Features
112
-
113
- - add decoding support for polyx staking related txns ([f680b01](https://github.com/BitGo/BitGoJS/commit/f680b011c6c89b4c3c04ede21f089e8efc1c0ee8))
114
-
115
- ## [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)
116
-
117
- **Note:** Version bump only for package @bitgo/sdk-coin-polyx
118
-
119
- # [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)
120
-
121
- ### Features
122
-
123
- - add batchStakingBuilder (bond and nominate) and bondExtraBuilder for polyx ([cd29662](https://github.com/BitGo/BitGoJS/commit/cd296620fb013ebd48ec89bb4bcf1bf0433ec7d4))
124
- - add batchUnstakingBuilder and withdrawUnbondedBuilder ([d86c459](https://github.com/BitGo/BitGoJS/commit/d86c459f1c42c1d5cbf93b7ba408760b617bf328))
125
- - **root:** support node 22 ([c4ad6af](https://github.com/BitGo/BitGoJS/commit/c4ad6af2e8896221417c303f0f6b84652b493216))
126
-
127
- # [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)
128
-
129
- ### Bug Fixes
130
-
131
- - **sdk-coin-polyx:** fix to toJson method in polyx transaction ([8f8ef0b](https://github.com/BitGo/BitGoJS/commit/8f8ef0b8fa420dadb41989465b2380af73466ae0))
132
-
133
- ### Features
134
-
135
- - rename audit function naming and signature ([1a885ab](https://github.com/BitGo/BitGoJS/commit/1a885ab60d30ca8595e284a728f2ab9d3c09994e))
136
-
137
- ## [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)
138
-
139
- **Note:** Version bump only for package @bitgo/sdk-coin-polyx
140
-
141
- ## [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)
142
-
143
- ### Bug Fixes
144
-
145
- - **sdk-coin-polyx:** all fixed ([f9c23bc](https://github.com/BitGo/BitGoJS/commit/f9c23bc9a8bc609be5f41a4ffd980138ecb63148))
146
- - **sdk-coin-polyx:** fix cdd builder ([2461fbf](https://github.com/BitGo/BitGoJS/commit/2461fbfcc76f8f6e7f89302f5e3c4b99097cb97a))
147
-
148
- # [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)
149
-
150
- ### Features
151
-
152
- - **sdk-coin-polyx:** add transaction builders ([31c96bb](https://github.com/BitGo/BitGoJS/commit/31c96bbbce60b93e13208e3eab06bd144cfe57e4))
153
-
154
- ## [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)
155
-
156
- ### Bug Fixes
157
-
158
- - send statics coin to substrate class ([9ed860e](https://github.com/BitGo/BitGoJS/commit/9ed860ed288516959d5723e6119c7701588a41e7))
159
-
160
- ## [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)
161
-
162
- **Note:** Version bump only for package @bitgo/sdk-coin-polyx
163
-
164
- ## [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)
165
-
166
- **Note:** Version bump only for package @bitgo/sdk-coin-polyx
167
-
168
- ## 1.0.1 (2025-04-15)
169
-
170
- **Note:** Version bump only for package @bitgo/sdk-coin-polyx