@ledgerhq/coin-polkadot 0.1.2 → 0.1.3-next.0
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/CHANGELOG.md +15 -0
- package/package.json +11 -12
- package/src/api/index.ts +0 -3
- package/src/api/sidecar.ts +0 -3
- package/src/bridge.integration.test.ts +0 -6
- package/tsconfig.json +2 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @ledgerhq/coin-polkadot
|
|
2
2
|
|
|
3
|
+
## 0.1.3-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`a1c1ea56aa`](https://github.com/LedgerHQ/ledger-live/commit/a1c1ea56aa2a9e106b831107d8fae24ea0f27d4d), [`835bfbaa45`](https://github.com/LedgerHQ/ledger-live/commit/835bfbaa45f2bee5416b40a34ae0bf150d780e2c), [`cec978f36e`](https://github.com/LedgerHQ/ledger-live/commit/cec978f36e5841ce3f8d117530e13902590596c3), [`5e6f053a27`](https://github.com/LedgerHQ/ledger-live/commit/5e6f053a2744a5ff5f5364609cc1287c3dd8e69e), [`87d2349fd8`](https://github.com/LedgerHQ/ledger-live/commit/87d2349fd835e5deb39d1ee8dfcf3539f4195472), [`51c01541df`](https://github.com/LedgerHQ/ledger-live/commit/51c01541df8a414851ea4ef493dc9045272ef949), [`4500a00f21`](https://github.com/LedgerHQ/ledger-live/commit/4500a00f215f73e6c9bbf1d904cb6a4c3d67e678)]:
|
|
8
|
+
- @ledgerhq/live-env@0.2.0-next.0
|
|
9
|
+
- @ledgerhq/types-live@6.33.0-next.0
|
|
10
|
+
- @ledgerhq/types-cryptoassets@7.2.0-next.0
|
|
11
|
+
- @ledgerhq/cryptoassets@9.5.0-next.0
|
|
12
|
+
- @ledgerhq/errors@6.12.5-next.0
|
|
13
|
+
- @ledgerhq/coin-framework@0.3.2-next.0
|
|
14
|
+
- @ledgerhq/live-portfolio@0.0.4-next.0
|
|
15
|
+
- @ledgerhq/devices@8.0.2-next.0
|
|
16
|
+
- @ledgerhq/hw-app-polkadot@6.27.14-next.0
|
|
17
|
+
|
|
3
18
|
## 0.1.2
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/coin-polkadot",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3-next.0",
|
|
4
4
|
"description": "Ledger Polkadot Coin integration",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Ledger",
|
|
@@ -54,17 +54,17 @@
|
|
|
54
54
|
"invariant": "^2.2.2",
|
|
55
55
|
"lodash": "^4.17.21",
|
|
56
56
|
"rxjs": "^6.6.7",
|
|
57
|
-
"@ledgerhq/coin-framework": "^0.3.
|
|
58
|
-
"@ledgerhq/cryptoassets": "^9.
|
|
59
|
-
"@ledgerhq/devices": "^8.0.
|
|
60
|
-
"@ledgerhq/errors": "^6.12.
|
|
61
|
-
"@ledgerhq/hw-app-polkadot": "^6.27.
|
|
62
|
-
"@ledgerhq/live-env": "^0.
|
|
63
|
-
"@ledgerhq/live-portfolio": "^0.0.
|
|
57
|
+
"@ledgerhq/coin-framework": "^0.3.2-next.0",
|
|
58
|
+
"@ledgerhq/cryptoassets": "^9.5.0-next.0",
|
|
59
|
+
"@ledgerhq/devices": "^8.0.2-next.0",
|
|
60
|
+
"@ledgerhq/errors": "^6.12.5-next.0",
|
|
61
|
+
"@ledgerhq/hw-app-polkadot": "^6.27.14-next.0",
|
|
62
|
+
"@ledgerhq/live-env": "^0.2.0-next.0",
|
|
63
|
+
"@ledgerhq/live-portfolio": "^0.0.4-next.0",
|
|
64
64
|
"@ledgerhq/live-promise": "^0.0.1",
|
|
65
65
|
"@ledgerhq/logs": "^6.10.1",
|
|
66
|
-
"@ledgerhq/types-cryptoassets": "^7.
|
|
67
|
-
"@ledgerhq/types-live": "^6.
|
|
66
|
+
"@ledgerhq/types-cryptoassets": "^7.2.0-next.0",
|
|
67
|
+
"@ledgerhq/types-live": "^6.33.0-next.0"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@types/invariant": "^2.2.2",
|
|
@@ -80,8 +80,7 @@
|
|
|
80
80
|
"eslint-plugin-typescript": "^0.14.0",
|
|
81
81
|
"jest": "^28.1.1",
|
|
82
82
|
"prettier": "^2.8.1",
|
|
83
|
-
"ts-jest": "^28.0.5"
|
|
84
|
-
"typescript": "^4.9.5"
|
|
83
|
+
"ts-jest": "^28.0.5"
|
|
85
84
|
},
|
|
86
85
|
"scripts": {
|
|
87
86
|
"clean": "rimraf lib lib-es",
|
package/src/api/index.ts
CHANGED
|
@@ -55,9 +55,6 @@ import {
|
|
|
55
55
|
import { TypeRegistry } from "@polkadot/types";
|
|
56
56
|
import { Extrinsics } from "@polkadot/types/metadata/decorate/types";
|
|
57
57
|
|
|
58
|
-
// Used only for testing purpose.
|
|
59
|
-
export { disconnect } from "./sidecar";
|
|
60
|
-
|
|
61
58
|
type PaymentInfoParams = {
|
|
62
59
|
a: PolkadotAccount;
|
|
63
60
|
t: Transaction;
|
package/src/api/sidecar.ts
CHANGED
|
@@ -330,9 +330,6 @@ const fetchChainSpec = (network: NetworkRequestCall) => async () => {
|
|
|
330
330
|
return data;
|
|
331
331
|
};
|
|
332
332
|
|
|
333
|
-
// Not relevant when not using websocket
|
|
334
|
-
export const disconnect = () => {};
|
|
335
|
-
|
|
336
333
|
/**
|
|
337
334
|
* Returns true if ElectionStatus is Close.
|
|
338
335
|
* If ElectionStatus is Open, some features must be disabled.
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { disconnect } from "./api";
|
|
2
1
|
import { BigNumber } from "bignumber.js";
|
|
3
2
|
import { canUnbond, MAX_UNLOCKINGS } from "./logic";
|
|
4
3
|
import {
|
|
@@ -692,11 +691,6 @@ export const dataset: DatasetTest<Transaction> = {
|
|
|
692
691
|
},
|
|
693
692
|
};
|
|
694
693
|
|
|
695
|
-
// Disconnect all api clients that could be open.
|
|
696
|
-
afterAll(async () => {
|
|
697
|
-
await disconnect();
|
|
698
|
-
});
|
|
699
|
-
|
|
700
694
|
describe("canUnbond", () => {
|
|
701
695
|
test("can unbond", () => {
|
|
702
696
|
const account: Partial<PolkadotAccount> = {
|
package/tsconfig.json
CHANGED
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
+
"extends": "../../tsconfig.base",
|
|
2
3
|
"compilerOptions": {
|
|
3
4
|
"declaration": true,
|
|
4
5
|
"declarationMap": true,
|
|
5
|
-
"
|
|
6
|
-
"strict": true,
|
|
7
|
-
"allowSyntheticDefaultImports": true,
|
|
8
|
-
"esModuleInterop": true,
|
|
9
|
-
"skipLibCheck": true,
|
|
10
|
-
"forceConsistentCasingInFileNames": true,
|
|
11
|
-
"moduleResolution": "node",
|
|
6
|
+
"module": "commonjs",
|
|
12
7
|
"downlevelIteration": true,
|
|
13
|
-
"resolveJsonModule": true,
|
|
14
8
|
"lib": ["es2020", "dom"],
|
|
15
9
|
"outDir": "lib"
|
|
16
10
|
},
|