Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Commit

Permalink
chore: add polkadot explorer urls for relaychain/parachain nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
kratico committed Nov 25, 2022
1 parent cc2815e commit b29c078
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion examples/xcm_teleport_assets.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
import * as path from "http://localhost:5646/@local/deps/std/path.ts"
import * as C from "http://localhost:5646/@local/mod.ts"
import * as T from "http://localhost:5646/@local/test_util/mod.ts"
import * as U from "http://localhost:5646/@local/util/mod.ts"

const configFile = `${Deno.cwd()}/examples/xcm_teleport_assets.toml`
const configFile = path.join(
path.dirname(path.fromFileUrl(import.meta.url)),
"xcm_teleport_assets.toml",
)
const zombienet = await T.zombienet.start(configFile)

console.log(
"Alice node",
`https://polkadot.js.org/apps/?rpc=${zombienet.config.nodesByName["alice"].wsUri}#/explorer`,
)
console.log(
"collator01 node",
`https://polkadot.js.org/apps/?rpc=${zombienet.config.nodesByName["collator01"].wsUri}#/explorer`,
)

Deno.addSignalListener("SIGINT", async () => {
try {
await zombienet.close()
Expand Down

0 comments on commit b29c078

Please sign in to comment.