-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use para id in specs instead of flag (#157)
* Updates polkadot dependency * add log * remove parachain id flag and chain flag * cleanup * apply feedback Co-authored-by: Crystalin <[email protected]>
- Loading branch information
1 parent
ba23b5b
commit 1098183
Showing
10 changed files
with
61 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import Keyring from "@polkadot/keyring"; | ||
import { expect } from "chai"; | ||
|
||
import { describeParachain } from "../test-utils/setup-para-tests"; | ||
|
||
describeParachain( | ||
"Balance genesis", | ||
{ chain: "rococo-local", numberOfParachains: 2 }, | ||
(context) => { | ||
it("should be accessible through web3", async function () { | ||
const keyring = new Keyring({ type: "sr25519" }); | ||
const aliceRelay = keyring.addFromUri("//Alice"); | ||
|
||
//check parachain id | ||
expect( | ||
( | ||
(await context._polkadotApiRelaychains[0].query.paras.parachains()) as any | ||
)[0].toString() | ||
).to.eq("1000"); | ||
expect( | ||
( | ||
(await context._polkadotApiRelaychains[0].query.paras.parachains()) as any | ||
)[1].toString() | ||
).to.eq("2000"); | ||
expect( | ||
( | ||
await context.polkadotApiParaone.query.system.account( | ||
aliceRelay.addressRaw | ||
) | ||
).data.free.toHuman() | ||
).to.eq("1,152,921,504,606,846,976"); | ||
}); | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters