@bitgo-beta/sdk-coin-dot 2.2.8-beta.13 → 2.2.8-beta.1300
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.
- package/dist/src/dot.d.ts +22 -21
- package/dist/src/dot.d.ts.map +1 -1
- package/dist/src/dot.js +290 -92
- package/dist/src/index.js +6 -2
- package/dist/src/lib/addressInitializationBuilder.js +8 -10
- package/dist/src/lib/batchTransactionBuilder.d.ts +1 -0
- package/dist/src/lib/batchTransactionBuilder.d.ts.map +1 -1
- package/dist/src/lib/batchTransactionBuilder.js +21 -13
- package/dist/src/lib/claimBuilder.js +4 -6
- package/dist/src/lib/iface.d.ts +17 -14
- package/dist/src/lib/iface.d.ts.map +1 -1
- package/dist/src/lib/iface.js +5 -5
- package/dist/src/lib/iface_utils.js +8 -9
- package/dist/src/lib/index.js +23 -9
- package/dist/src/lib/keyPair.d.ts +7 -0
- package/dist/src/lib/keyPair.d.ts.map +1 -1
- package/dist/src/lib/keyPair.js +51 -4
- package/dist/src/lib/nativeTransferBuilder.js +12 -14
- package/dist/src/lib/proxyBuilder.js +6 -8
- package/dist/src/lib/singletonRegistry.js +2 -2
- package/dist/src/lib/stakingBuilder.d.ts.map +1 -1
- package/dist/src/lib/stakingBuilder.js +8 -11
- package/dist/src/lib/transaction.d.ts +0 -1
- package/dist/src/lib/transaction.d.ts.map +1 -1
- package/dist/src/lib/transaction.js +72 -52
- package/dist/src/lib/transactionBuilder.d.ts +0 -1
- package/dist/src/lib/transactionBuilder.d.ts.map +1 -1
- package/dist/src/lib/transactionBuilder.js +30 -16
- package/dist/src/lib/transactionBuilderFactory.js +3 -4
- package/dist/src/lib/txnSchema.js +4 -4
- package/dist/src/lib/unnominateBuilder.js +4 -6
- package/dist/src/lib/unstakeBuilder.js +4 -6
- package/dist/src/lib/utils.d.ts +10 -2
- package/dist/src/lib/utils.d.ts.map +1 -1
- package/dist/src/lib/utils.js +68 -40
- package/dist/src/lib/withdrawUnstakedBuilder.js +4 -6
- package/dist/src/resources/index.d.ts +4 -0
- package/dist/src/resources/index.d.ts.map +1 -0
- package/dist/src/resources/index.js +20 -0
- package/dist/src/resources/mainnet.d.ts +2 -0
- package/dist/src/resources/mainnet.d.ts.map +1 -0
- package/dist/src/resources/mainnet.js +5 -0
- package/dist/src/resources/westend.d.ts +2 -0
- package/dist/src/resources/westend.d.ts.map +1 -0
- package/dist/src/resources/westend.js +5 -0
- package/dist/src/resources/westendAssetHub.d.ts +2 -0
- package/dist/src/resources/westendAssetHub.d.ts.map +1 -0
- package/dist/src/resources/westendAssetHub.js +5 -0
- package/dist/src/tdot.js +1 -1
- package/dist/test/fixtures.d.ts +283 -0
- package/dist/test/fixtures.d.ts.map +1 -0
- package/dist/test/fixtures.js +439 -0
- package/dist/test/resources/assetHubMaterialData.json +8 -0
- package/dist/test/resources/index.d.ts +141 -0
- package/dist/test/resources/index.d.ts.map +1 -0
- package/dist/test/resources/index.js +157 -0
- package/dist/test/resources/materialData.json +8 -0
- package/dist/test/resources/materialDataModified.json +8 -0
- package/dist/test/resources/testnet.d.ts +2 -0
- package/dist/test/resources/testnet.d.ts.map +1 -0
- package/dist/test/resources/testnet.js +5 -0
- package/dist/test/unit/address.d.ts +2 -0
- package/dist/test/unit/address.d.ts.map +1 -0
- package/dist/test/unit/address.js +45 -0
- package/dist/test/unit/dot.d.ts +2 -0
- package/dist/test/unit/dot.d.ts.map +1 -0
- package/dist/test/unit/dot.js +690 -0
- package/dist/test/unit/keypair.d.ts +2 -0
- package/dist/test/unit/keypair.d.ts.map +1 -0
- package/dist/test/unit/keypair.js +111 -0
- package/dist/test/unit/transaction.d.ts +2 -0
- package/dist/test/unit/transaction.d.ts.map +1 -0
- package/dist/test/unit/transaction.js +269 -0
- package/dist/test/unit/transactionBuilder/addressInitializationBuilder.d.ts +2 -0
- package/dist/test/unit/transactionBuilder/addressInitializationBuilder.d.ts.map +1 -0
- package/dist/test/unit/transactionBuilder/addressInitializationBuilder.js +265 -0
- package/dist/test/unit/transactionBuilder/base.d.ts +8 -0
- package/dist/test/unit/transactionBuilder/base.d.ts.map +1 -0
- package/dist/test/unit/transactionBuilder/base.js +233 -0
- package/dist/test/unit/transactionBuilder/batchTransactionBuilder.d.ts +2 -0
- package/dist/test/unit/transactionBuilder/batchTransactionBuilder.d.ts.map +1 -0
- package/dist/test/unit/transactionBuilder/batchTransactionBuilder.js +521 -0
- package/dist/test/unit/transactionBuilder/claimBuilder.d.ts +2 -0
- package/dist/test/unit/transactionBuilder/claimBuilder.d.ts.map +1 -0
- package/dist/test/unit/transactionBuilder/claimBuilder.js +129 -0
- package/dist/test/unit/transactionBuilder/proxyBuilder.d.ts +2 -0
- package/dist/test/unit/transactionBuilder/proxyBuilder.d.ts.map +1 -0
- package/dist/test/unit/transactionBuilder/proxyBuilder.js +88 -0
- package/dist/test/unit/transactionBuilder/singeltonRegistry.d.ts +2 -0
- package/dist/test/unit/transactionBuilder/singeltonRegistry.d.ts.map +1 -0
- package/dist/test/unit/transactionBuilder/singeltonRegistry.js +59 -0
- package/dist/test/unit/transactionBuilder/stakingBuilder.d.ts +2 -0
- package/dist/test/unit/transactionBuilder/stakingBuilder.d.ts.map +1 -0
- package/dist/test/unit/transactionBuilder/stakingBuilder.js +235 -0
- package/dist/test/unit/transactionBuilder/transactionBuilderFactory.d.ts +2 -0
- package/dist/test/unit/transactionBuilder/transactionBuilderFactory.d.ts.map +1 -0
- package/dist/test/unit/transactionBuilder/transactionBuilderFactory.js +107 -0
- package/dist/test/unit/transactionBuilder/transferBuilder.d.ts +2 -0
- package/dist/test/unit/transactionBuilder/transferBuilder.d.ts.map +1 -0
- package/dist/test/unit/transactionBuilder/transferBuilder.js +437 -0
- package/dist/test/unit/transactionBuilder/unnominateBuilder.d.ts +2 -0
- package/dist/test/unit/transactionBuilder/unnominateBuilder.d.ts.map +1 -0
- package/dist/test/unit/transactionBuilder/unnominateBuilder.js +97 -0
- package/dist/test/unit/transactionBuilder/unstakeBuilder.d.ts +2 -0
- package/dist/test/unit/transactionBuilder/unstakeBuilder.d.ts.map +1 -0
- package/dist/test/unit/transactionBuilder/unstakeBuilder.js +116 -0
- package/dist/test/unit/transactionBuilder/withdrawUnstakedBuilder.d.ts +2 -0
- package/dist/test/unit/transactionBuilder/withdrawUnstakedBuilder.d.ts.map +1 -0
- package/dist/test/unit/transactionBuilder/withdrawUnstakedBuilder.js +115 -0
- package/dist/test/unit/utils.d.ts +2 -0
- package/dist/test/unit/utils.d.ts.map +1 -0
- package/dist/test/unit/utils.js +117 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +20 -15
- package/.eslintignore +0 -5
- package/.mocharc.yml +0 -8
- package/CHANGELOG.md +0 -124
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitgo-beta/sdk-coin-dot",
|
|
3
|
-
"version": "2.2.8-beta.
|
|
3
|
+
"version": "2.2.8-beta.1300",
|
|
4
4
|
"description": "BitGo SDK coin library for Polkadot",
|
|
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": ">=
|
|
21
|
+
"node": ">=20 <23"
|
|
22
22
|
},
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|
|
@@ -40,15 +40,17 @@
|
|
|
40
40
|
]
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@bitgo-beta/sdk-core": "8.2.1-beta.
|
|
44
|
-
"@bitgo-beta/
|
|
45
|
-
"@
|
|
46
|
-
"@polkadot/
|
|
47
|
-
"@polkadot/
|
|
48
|
-
"@polkadot/
|
|
49
|
-
"@polkadot/
|
|
50
|
-
"@
|
|
51
|
-
"@
|
|
43
|
+
"@bitgo-beta/sdk-core": "8.2.1-beta.1303",
|
|
44
|
+
"@bitgo-beta/sdk-lib-mpc": "8.2.0-beta.1295",
|
|
45
|
+
"@bitgo-beta/statics": "15.1.1-beta.1306",
|
|
46
|
+
"@polkadot/api": "14.1.1",
|
|
47
|
+
"@polkadot/api-augment": "14.1.1",
|
|
48
|
+
"@polkadot/keyring": "13.3.1",
|
|
49
|
+
"@polkadot/types": "14.1.1",
|
|
50
|
+
"@polkadot/util": "13.3.1",
|
|
51
|
+
"@polkadot/util-crypto": "13.3.1",
|
|
52
|
+
"@substrate/txwrapper-core": "7.5.2",
|
|
53
|
+
"@substrate/txwrapper-polkadot": "7.5.2",
|
|
52
54
|
"bignumber.js": "^9.0.0",
|
|
53
55
|
"bs58": "^4.0.1",
|
|
54
56
|
"hi-base32": "^0.5.1",
|
|
@@ -57,9 +59,12 @@
|
|
|
57
59
|
"tweetnacl": "^1.0.3"
|
|
58
60
|
},
|
|
59
61
|
"devDependencies": {
|
|
60
|
-
"@bitgo-beta/sdk-api": "1.10.1-beta.
|
|
61
|
-
"@bitgo-beta/sdk-test": "^1.
|
|
62
|
+
"@bitgo-beta/sdk-api": "1.10.1-beta.1302",
|
|
63
|
+
"@bitgo-beta/sdk-test": "^9.1.8",
|
|
62
64
|
"@types/lodash": "^4.14.151"
|
|
63
65
|
},
|
|
64
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "668d15ac96a26296be7c8c275d98bbc4f8041580",
|
|
67
|
+
"files": [
|
|
68
|
+
"dist"
|
|
69
|
+
]
|
|
65
70
|
}
|
package/.mocharc.yml
DELETED
package/CHANGELOG.md
DELETED
|
@@ -1,124 +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
|
-
## [2.2.7](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@2.2.6...@bitgo/sdk-coin-dot@2.2.7) (2023-04-25)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @bitgo/sdk-coin-dot
|
|
9
|
-
|
|
10
|
-
## [2.2.6](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@2.2.5...@bitgo/sdk-coin-dot@2.2.6) (2023-04-20)
|
|
11
|
-
|
|
12
|
-
**Note:** Version bump only for package @bitgo/sdk-coin-dot
|
|
13
|
-
|
|
14
|
-
## [2.2.5](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@2.2.4...@bitgo/sdk-coin-dot@2.2.5) (2023-04-13)
|
|
15
|
-
|
|
16
|
-
**Note:** Version bump only for package @bitgo/sdk-coin-dot
|
|
17
|
-
|
|
18
|
-
## [2.2.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@2.2.3...@bitgo/sdk-coin-dot@2.2.4) (2023-02-17)
|
|
19
|
-
|
|
20
|
-
**Note:** Version bump only for package @bitgo/sdk-coin-dot
|
|
21
|
-
|
|
22
|
-
## [2.2.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@2.2.0...@bitgo/sdk-coin-dot@2.2.3) (2023-02-16)
|
|
23
|
-
|
|
24
|
-
**Note:** Version bump only for package @bitgo/sdk-coin-dot
|
|
25
|
-
|
|
26
|
-
## [2.2.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@2.2.0...@bitgo/sdk-coin-dot@2.2.2) (2023-02-08)
|
|
27
|
-
|
|
28
|
-
**Note:** Version bump only for package @bitgo/sdk-coin-dot
|
|
29
|
-
|
|
30
|
-
## [2.2.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@2.2.0...@bitgo/sdk-coin-dot@2.2.1) (2023-01-30)
|
|
31
|
-
|
|
32
|
-
**Note:** Version bump only for package @bitgo/sdk-coin-dot
|
|
33
|
-
|
|
34
|
-
# [2.2.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@2.1.3...@bitgo/sdk-coin-dot@2.2.0) (2023-01-25)
|
|
35
|
-
|
|
36
|
-
### Features
|
|
37
|
-
|
|
38
|
-
- **sdk-coin-dot:** propagate keepAlive flag in tx build from hex ([024f8b0](https://github.com/BitGo/BitGoJS/commit/024f8b027041e10eaeddfb1a766d9895457310e6))
|
|
39
|
-
|
|
40
|
-
## [2.1.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@2.1.2...@bitgo/sdk-coin-dot@2.1.3) (2022-12-23)
|
|
41
|
-
|
|
42
|
-
**Note:** Version bump only for package @bitgo/sdk-coin-dot
|
|
43
|
-
|
|
44
|
-
## [2.1.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@2.1.1...@bitgo/sdk-coin-dot@2.1.2) (2022-12-20)
|
|
45
|
-
|
|
46
|
-
### Bug Fixes
|
|
47
|
-
|
|
48
|
-
- **sdk-coin-dot:** update DOT sweep keepAlive conditional ([b5a8924](https://github.com/BitGo/BitGoJS/commit/b5a8924cd48596d83d8d3c00cc1c03abce90ac32))
|
|
49
|
-
|
|
50
|
-
## [2.1.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@2.1.0...@bitgo/sdk-coin-dot@2.1.1) (2022-12-09)
|
|
51
|
-
|
|
52
|
-
**Note:** Version bump only for package @bitgo/sdk-coin-dot
|
|
53
|
-
|
|
54
|
-
# [2.1.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@2.0.1...@bitgo/sdk-coin-dot@2.1.0) (2022-12-06)
|
|
55
|
-
|
|
56
|
-
### Features
|
|
57
|
-
|
|
58
|
-
- **sdk-coin-dot:** add keepAlive flag to DOT sweep constructor ([d6fa397](https://github.com/BitGo/BitGoJS/commit/d6fa3973e28beff3abf464b76819d35407ee59a7))
|
|
59
|
-
|
|
60
|
-
## [2.0.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@2.0.0...@bitgo/sdk-coin-dot@2.0.1) (2022-12-01)
|
|
61
|
-
|
|
62
|
-
### Bug Fixes
|
|
63
|
-
|
|
64
|
-
- **sdk-coin-dot:** update DOT transferAll value to zero ([5bb9852](https://github.com/BitGo/BitGoJS/commit/5bb98529179121d075090d7d22f1ebf1c4ee7dec))
|
|
65
|
-
|
|
66
|
-
# [2.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@1.3.0...@bitgo/sdk-coin-dot@2.0.0) (2022-11-29)
|
|
67
|
-
|
|
68
|
-
### Features
|
|
69
|
-
|
|
70
|
-
- **sdk-coin-dot:** add support for staking transactions ([b67eaa0](https://github.com/BitGo/BitGoJS/commit/b67eaa06723b1a235cb2c6f948ece34cc42a9256))
|
|
71
|
-
|
|
72
|
-
### BREAKING CHANGES
|
|
73
|
-
|
|
74
|
-
- **sdk-coin-dot:** Uddate the 'westendMetadataRpc' constant to
|
|
75
|
-
spec version 9320. Update PolkadotTestnet.specVersion to
|
|
76
|
-
9320 and PolkadotTestnet.txVersion to 14.
|
|
77
|
-
Ticket: BOS-469
|
|
78
|
-
|
|
79
|
-
## [1.3.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@1.3.0...@bitgo/sdk-coin-dot@1.3.4) (2022-11-04)
|
|
80
|
-
|
|
81
|
-
**Note:** Version bump only for package @bitgo/sdk-coin-dot
|
|
82
|
-
|
|
83
|
-
## [1.3.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@1.3.0...@bitgo/sdk-coin-dot@1.3.2) (2022-10-27)
|
|
84
|
-
|
|
85
|
-
**Note:** Version bump only for package @bitgo/sdk-coin-dot
|
|
86
|
-
|
|
87
|
-
## [1.3.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@1.3.0...@bitgo/sdk-coin-dot@1.3.1) (2022-10-25)
|
|
88
|
-
|
|
89
|
-
**Note:** Version bump only for package @bitgo/sdk-coin-dot
|
|
90
|
-
|
|
91
|
-
# [1.3.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@1.0.1-rc.3...@bitgo/sdk-coin-dot@1.3.0) (2022-10-18)
|
|
92
|
-
|
|
93
|
-
### Bug Fixes
|
|
94
|
-
|
|
95
|
-
- **sdk-core:** tss wallet creation related bugs ([500c735](https://github.com/BitGo/BitGoJS/commit/500c73527edd902b65cfd784ea1022a21e0f6319))
|
|
96
|
-
|
|
97
|
-
### Features
|
|
98
|
-
|
|
99
|
-
- **sdk-coin-dot:** enable DOT staking ([0e9209b](https://github.com/BitGo/BitGoJS/commit/0e9209bd9c6f855cbc11e5d602253509fd0099c3))
|
|
100
|
-
- **sdk-coin-dot:** implement recover function for dot ([66f8cba](https://github.com/BitGo/BitGoJS/commit/66f8cba4bd79598ab8197472bb1ad595d0026d60))
|
|
101
|
-
- **sdk-coin-dot:** update dot recover function to traverse addresses ([69843f0](https://github.com/BitGo/BitGoJS/commit/69843f0c2d4f45b44dd3109c2432924816654e36))
|
|
102
|
-
- **sdk-coin-dot:** update recover function to support unsigned sweep ([ed7206b](https://github.com/BitGo/BitGoJS/commit/ed7206b12dadcf0abbafb8ca1531e64d54417997))
|
|
103
|
-
- **sdk-coin-near:** unsigned sweep recovery ([70d9e24](https://github.com/BitGo/BitGoJS/commit/70d9e2401166e6981c2bc5b8c7ace4b00189cfd7))
|
|
104
|
-
- **sdk-core:** allow getting a staking wallet for any coin ([cfae0fe](https://github.com/BitGo/BitGoJS/commit/cfae0feeb14c1bcb30dad2840abd8489372bfbc8))
|
|
105
|
-
|
|
106
|
-
## [1.0.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@1.0.1-rc.3...@bitgo/sdk-coin-dot@1.0.1) (2022-07-19)
|
|
107
|
-
|
|
108
|
-
**Note:** Version bump only for package @bitgo/sdk-coin-dot
|
|
109
|
-
|
|
110
|
-
## [1.0.1-rc.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@1.0.1-rc.1...@bitgo/sdk-coin-dot@1.0.1-rc.3) (2022-07-19)
|
|
111
|
-
|
|
112
|
-
**Note:** Version bump only for package @bitgo/sdk-coin-dot
|
|
113
|
-
|
|
114
|
-
## [1.0.1-rc.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@1.0.1-rc.1...@bitgo/sdk-coin-dot@1.0.1-rc.2) (2022-07-18)
|
|
115
|
-
|
|
116
|
-
**Note:** Version bump only for package @bitgo/sdk-coin-dot
|
|
117
|
-
|
|
118
|
-
## [1.0.1-rc.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@1.0.1-rc.0...@bitgo/sdk-coin-dot@1.0.1-rc.1) (2022-07-15)
|
|
119
|
-
|
|
120
|
-
**Note:** Version bump only for package @bitgo/sdk-coin-dot
|
|
121
|
-
|
|
122
|
-
## 1.0.1-rc.0 (2022-07-15)
|
|
123
|
-
|
|
124
|
-
**Note:** Version bump only for package @bitgo/sdk-coin-dot
|