Skip to content

Commit

Permalink
Support LIVE-13070 coin tester polkadot runtime upgrade (#7181)
Browse files Browse the repository at this point in the history
* fix: coin-tester polkadot runtime upgrade

* fix: update changelog

* fix: update polkadot nano app firmware version in coin-tester

* fix: lint error
  • Loading branch information
hzheng-ledger authored Jul 6, 2024
1 parent a67a2d1 commit f0ed580
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 8 deletions.
6 changes: 6 additions & 0 deletions .changeset/cold-swans-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@ledgerhq/coin-polkadot": patch
"@ledgerhq/coin-tester": patch
---

polkadot coin tester update
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: chopsticks-sidecar
services:
chopsticks:
# TODO: Deploy the image in in ghr.io/ledgerhq
# TODO: Deploy the image in in ghcr.io/ledgerhq
image: coin-tester-chopsticks:latest
container_name: chopsticks
platform: linux/x86_64
build:
context: .
dockerfile: chopsticks.Dockerfile
Expand All @@ -17,7 +18,7 @@ services:
timeout: 10s
retries: 12
sidecar-api:
image: ghcr.io/ledgerhq/polkadot-sidecar:19.0.0-ledger-live
image: ghcr.io/ledgerhq/polkadot-sidecar:20.0.0-ledger-live
container_name: sidecar-api
platform: linux/x86_64
depends_on:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { killChopsticksAndSidecar } from "./chopsticks-sidecar";
global.console = require("console");
jest.setTimeout(300_000);

export const defaultNanoApp = { firmware: "2.3.0" as const, version: "25.10100.0" as const };
export const defaultNanoApp = { firmware: "2.3.0" as const, version: "100.0.5" as const };

describe("Polkadot Deterministic Tester", () => {
it("Basic scenario", async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,12 @@ const coinConfig: PolkadotCoinConfig = {
url: SIDECAR_BASE_URL,
},
metadataShortener: {
url: "https://api.zondax.ch/polkadot/transaction/metadata",
url: "https://polkadot-metadata-shortener.api.live.ledger.com/transaction/metadata",
},
metadataHash: {
url: "https://api.zondax.ch/polkadot/node/metadata/hash",
url: "https://polkadot-metadata-shortener.api.live.ledger.com/node/metadata/hash",
},
runtimeUpgraded: false,
runtimeUpgraded: true,
};

const subscriptions: any[] = [];
Expand All @@ -246,7 +246,9 @@ export const basicScenario: Scenario<PolkadotTransaction, PolkadotAccount> = {
name: "Polkadot Basic transactions",
setup: async () => {
const [{ transport, getOnSpeculosConfirmation }] = await Promise.all([
spawnSpeculos(`/${defaultNanoApp.firmware}/Polkadot/app_${defaultNanoApp.version}.elf`),
spawnSpeculos(
`/${defaultNanoApp.firmware}/PolkadotMigration/app_${defaultNanoApp.version}.elf`,
),
spawnChopsticksAndSidecar(),
]);

Expand Down
2 changes: 1 addition & 1 deletion libs/coin-tester/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ A `.env` should have at the very least the following attributes:
```conf
SEED=chronic find success crew board merit elder life achieve scout gravity soul brief pen job
GH_TOKEN=
API_PORT=4040
SPECULOS_API_PORT=4040
SPECULOS_IMAGE=speculos
```

Expand Down

0 comments on commit f0ed580

Please sign in to comment.