Skip to content

Instantly share code, notes, and snippets.

@hanwencheng
Last active February 5, 2020 15:31
Show Gist options
  • Save hanwencheng/09b325c226fd44bf7ba5b99ba2e8e989 to your computer and use it in GitHub Desktop.
Save hanwencheng/09b325c226fd44bf7ba5b99ba2e8e989 to your computer and use it in GitHub Desktop.
Update Metadata and network specs Introduction for Parity Signer

Metadata and Network Specs Update on Parity Signer

Get the metadata of certain chain

Switch to the target chain.

use script on polkadot.js with code

const metadata = await api.runtimeMetadata.asCallsOnly.toHex();
console.log( 'Metadata: ' + metadata);

Get the chain

use chain -> getBlockHash(0x0) from https://polkadot.js.org/apps/#/toolbox to get the genesisHash

Full Geneis Config could be refer here from Polkadot repo.

Update Substrate_Dev related specs.

connected to wss://dev-node.substrate.dev

Identicon update function

The identiconFn supplied needs to meet the same format as https://github.com/polkadot-js/ui/blob/f2f36e2db07f5faec14ee43cf4295f5e8a6f3cfa/packages/reactnative-identicon/src/icons/Polkadot.tsx#L37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment