@bitgo-beta/sdk-coin-dot 1.3.3-alpha.46 → 1.3.3-alpha.461
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 +324 -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 +71 -40
- package/dist/src/lib/withdrawUnstakedBuilder.js +4 -6
- package/dist/src/resources/index.d.ts +5 -0
- package/dist/src/resources/index.d.ts.map +1 -0
- package/dist/src/resources/index.js +21 -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/polkadotAssetHub.d.ts +2 -0
- package/dist/src/resources/polkadotAssetHub.d.ts.map +1 -0
- package/dist/src/resources/polkadotAssetHub.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/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 +773 -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 -112
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitgo-beta/sdk-coin-dot",
|
|
3
|
-
"version": "1.3.3-alpha.
|
|
3
|
+
"version": "1.3.3-alpha.461",
|
|
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 <25"
|
|
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": "2.4.1-alpha.
|
|
44
|
-
"@bitgo-beta/
|
|
45
|
-
"@
|
|
46
|
-
"@polkadot/
|
|
47
|
-
"@polkadot/
|
|
48
|
-
"@polkadot/
|
|
49
|
-
"@polkadot/
|
|
50
|
-
"@
|
|
51
|
-
"@
|
|
43
|
+
"@bitgo-beta/sdk-core": "2.4.1-alpha.463",
|
|
44
|
+
"@bitgo-beta/sdk-lib-mpc": "8.2.1-alpha.419",
|
|
45
|
+
"@bitgo-beta/statics": "10.0.1-alpha.463",
|
|
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.6.1-alpha.
|
|
61
|
-
"@bitgo-beta/sdk-test": "^1.
|
|
62
|
+
"@bitgo-beta/sdk-api": "1.6.1-alpha.462",
|
|
63
|
+
"@bitgo-beta/sdk-test": "^9.1.25",
|
|
62
64
|
"@types/lodash": "^4.14.151"
|
|
63
65
|
},
|
|
64
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "82db8ce246a57f0d932ba1f8012ce404f5be8f54",
|
|
67
|
+
"files": [
|
|
68
|
+
"dist"
|
|
69
|
+
]
|
|
65
70
|
}
|
package/.mocharc.yml
DELETED
package/CHANGELOG.md
DELETED
|
@@ -1,112 +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.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@2.2.3...@bitgo/sdk-coin-dot@2.2.4) (2023-02-17)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @bitgo/sdk-coin-dot
|
|
9
|
-
|
|
10
|
-
## [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)
|
|
11
|
-
|
|
12
|
-
**Note:** Version bump only for package @bitgo/sdk-coin-dot
|
|
13
|
-
|
|
14
|
-
## [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)
|
|
15
|
-
|
|
16
|
-
**Note:** Version bump only for package @bitgo/sdk-coin-dot
|
|
17
|
-
|
|
18
|
-
## [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)
|
|
19
|
-
|
|
20
|
-
**Note:** Version bump only for package @bitgo/sdk-coin-dot
|
|
21
|
-
|
|
22
|
-
# [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)
|
|
23
|
-
|
|
24
|
-
### Features
|
|
25
|
-
|
|
26
|
-
- **sdk-coin-dot:** propagate keepAlive flag in tx build from hex ([024f8b0](https://github.com/BitGo/BitGoJS/commit/024f8b027041e10eaeddfb1a766d9895457310e6))
|
|
27
|
-
|
|
28
|
-
## [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)
|
|
29
|
-
|
|
30
|
-
**Note:** Version bump only for package @bitgo/sdk-coin-dot
|
|
31
|
-
|
|
32
|
-
## [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)
|
|
33
|
-
|
|
34
|
-
### Bug Fixes
|
|
35
|
-
|
|
36
|
-
- **sdk-coin-dot:** update DOT sweep keepAlive conditional ([b5a8924](https://github.com/BitGo/BitGoJS/commit/b5a8924cd48596d83d8d3c00cc1c03abce90ac32))
|
|
37
|
-
|
|
38
|
-
## [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)
|
|
39
|
-
|
|
40
|
-
**Note:** Version bump only for package @bitgo/sdk-coin-dot
|
|
41
|
-
|
|
42
|
-
# [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)
|
|
43
|
-
|
|
44
|
-
### Features
|
|
45
|
-
|
|
46
|
-
- **sdk-coin-dot:** add keepAlive flag to DOT sweep constructor ([d6fa397](https://github.com/BitGo/BitGoJS/commit/d6fa3973e28beff3abf464b76819d35407ee59a7))
|
|
47
|
-
|
|
48
|
-
## [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)
|
|
49
|
-
|
|
50
|
-
### Bug Fixes
|
|
51
|
-
|
|
52
|
-
- **sdk-coin-dot:** update DOT transferAll value to zero ([5bb9852](https://github.com/BitGo/BitGoJS/commit/5bb98529179121d075090d7d22f1ebf1c4ee7dec))
|
|
53
|
-
|
|
54
|
-
# [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)
|
|
55
|
-
|
|
56
|
-
### Features
|
|
57
|
-
|
|
58
|
-
- **sdk-coin-dot:** add support for staking transactions ([b67eaa0](https://github.com/BitGo/BitGoJS/commit/b67eaa06723b1a235cb2c6f948ece34cc42a9256))
|
|
59
|
-
|
|
60
|
-
### BREAKING CHANGES
|
|
61
|
-
|
|
62
|
-
- **sdk-coin-dot:** Uddate the 'westendMetadataRpc' constant to
|
|
63
|
-
spec version 9320. Update PolkadotTestnet.specVersion to
|
|
64
|
-
9320 and PolkadotTestnet.txVersion to 14.
|
|
65
|
-
Ticket: BOS-469
|
|
66
|
-
|
|
67
|
-
## [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)
|
|
68
|
-
|
|
69
|
-
**Note:** Version bump only for package @bitgo/sdk-coin-dot
|
|
70
|
-
|
|
71
|
-
## [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)
|
|
72
|
-
|
|
73
|
-
**Note:** Version bump only for package @bitgo/sdk-coin-dot
|
|
74
|
-
|
|
75
|
-
## [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)
|
|
76
|
-
|
|
77
|
-
**Note:** Version bump only for package @bitgo/sdk-coin-dot
|
|
78
|
-
|
|
79
|
-
# [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)
|
|
80
|
-
|
|
81
|
-
### Bug Fixes
|
|
82
|
-
|
|
83
|
-
- **sdk-core:** tss wallet creation related bugs ([500c735](https://github.com/BitGo/BitGoJS/commit/500c73527edd902b65cfd784ea1022a21e0f6319))
|
|
84
|
-
|
|
85
|
-
### Features
|
|
86
|
-
|
|
87
|
-
- **sdk-coin-dot:** enable DOT staking ([0e9209b](https://github.com/BitGo/BitGoJS/commit/0e9209bd9c6f855cbc11e5d602253509fd0099c3))
|
|
88
|
-
- **sdk-coin-dot:** implement recover function for dot ([66f8cba](https://github.com/BitGo/BitGoJS/commit/66f8cba4bd79598ab8197472bb1ad595d0026d60))
|
|
89
|
-
- **sdk-coin-dot:** update dot recover function to traverse addresses ([69843f0](https://github.com/BitGo/BitGoJS/commit/69843f0c2d4f45b44dd3109c2432924816654e36))
|
|
90
|
-
- **sdk-coin-dot:** update recover function to support unsigned sweep ([ed7206b](https://github.com/BitGo/BitGoJS/commit/ed7206b12dadcf0abbafb8ca1531e64d54417997))
|
|
91
|
-
- **sdk-coin-near:** unsigned sweep recovery ([70d9e24](https://github.com/BitGo/BitGoJS/commit/70d9e2401166e6981c2bc5b8c7ace4b00189cfd7))
|
|
92
|
-
- **sdk-core:** allow getting a staking wallet for any coin ([cfae0fe](https://github.com/BitGo/BitGoJS/commit/cfae0feeb14c1bcb30dad2840abd8489372bfbc8))
|
|
93
|
-
|
|
94
|
-
## [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)
|
|
95
|
-
|
|
96
|
-
**Note:** Version bump only for package @bitgo/sdk-coin-dot
|
|
97
|
-
|
|
98
|
-
## [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)
|
|
99
|
-
|
|
100
|
-
**Note:** Version bump only for package @bitgo/sdk-coin-dot
|
|
101
|
-
|
|
102
|
-
## [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)
|
|
103
|
-
|
|
104
|
-
**Note:** Version bump only for package @bitgo/sdk-coin-dot
|
|
105
|
-
|
|
106
|
-
## [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)
|
|
107
|
-
|
|
108
|
-
**Note:** Version bump only for package @bitgo/sdk-coin-dot
|
|
109
|
-
|
|
110
|
-
## 1.0.1-rc.0 (2022-07-15)
|
|
111
|
-
|
|
112
|
-
**Note:** Version bump only for package @bitgo/sdk-coin-dot
|