@ledgerhq/coin-tester-polkadot 1.2.6-nightly.0 → 1.3.0-nightly.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/coin-tester-polkadot",
3
- "version": "1.2.6-nightly.0",
3
+ "version": "1.3.0-nightly.2",
4
4
  "description": "Ledger Polkadot Coin Tester",
5
5
  "main": "src/scenarii.test.ts",
6
6
  "keywords": [
@@ -50,10 +50,10 @@
50
50
  "dotenv": "^16.4.5",
51
51
  "expect": "^27.4.6",
52
52
  "msw": "^2.2.1",
53
- "@ledgerhq/coin-polkadot": "^6.4.1-nightly.0",
54
- "@ledgerhq/coin-framework": "^5.7.1-nightly.0",
53
+ "@ledgerhq/coin-framework": "^5.7.1-nightly.1",
54
+ "@ledgerhq/coin-polkadot": "^6.4.1-nightly.1",
55
55
  "@ledgerhq/coin-tester": "^0.7.1",
56
- "@ledgerhq/cryptoassets": "^13.22.0",
56
+ "@ledgerhq/cryptoassets": "^13.22.1-nightly.0",
57
57
  "@ledgerhq/hw-app-polkadot": "^6.34.4",
58
58
  "@ledgerhq/types-cryptoassets": "^7.24.0-nightly.0",
59
59
  "@ledgerhq/types-live": "^6.78.1-nightly.0"
@@ -74,7 +74,10 @@ const getTransactions = () => {
74
74
  ).toFixed(),
75
75
  ).toBe("50000000000000000000000");
76
76
  expect(currentAccount.balance.toFixed()).toBe(
77
- previousAccount.balance.minus(latestOperation.value).toFixed(),
77
+ previousAccount.balance
78
+ .minus(latestOperation.value)
79
+ .minus(new BigNumber("5000000000000"))
80
+ .toFixed(),
78
81
  );
79
82
  },
80
83
  };
@@ -135,7 +138,6 @@ const getTransactions = () => {
135
138
  // https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fpolkadot-rpc.publicnode.com#/staking
136
139
  validators: [
137
140
  "15ANfaUMadXk65NtRqzCKuhAiVSA47Ks6fZs8rUcRQX11pzM",
138
- "13TrdLhMVLcwcEhMYLcqrkxAgq9M5gnK1LZKAF4VupVfQDUg",
139
141
  "19KaPfHSSjv4soqNW1tqPMwAnSGmG3pGydPzrPvaNLXLFDZ",
140
142
  ],
141
143
  expect: (previousAccount, currentAccount) => {
@@ -145,8 +147,8 @@ const getTransactions = () => {
145
147
  expect((latestOperation.extra as PolkadotOperationExtra).palletMethod).toBe(
146
148
  "staking.nominate",
147
149
  );
148
- expect((latestOperation.extra as PolkadotOperationExtra).validators?.length).toBe(3);
149
- expect(currentAccount.polkadotResources.nominations?.length).toBe(3);
150
+ expect((latestOperation.extra as PolkadotOperationExtra).validators?.length).toBe(2);
151
+ expect(currentAccount.polkadotResources.nominations?.length).toBe(2);
150
152
  expect(
151
153
  currentAccount.polkadotResources.nominations?.every(
152
154
  nominiation => nominiation.status === "waiting" || nominiation.status === "inactive",