Skip to content

Commit

Permalink
Add Kusama metadata (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacogr authored Aug 25, 2019
1 parent 6e5609d commit b1bb579
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 13 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"packages": [
"packages/*"
],
"version": "0.8.1"
"version": "0.8.2"
}
4 changes: 2 additions & 2 deletions packages/extension-dapp/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "@polkadot/extension-dapp",
"description": "Provides an interfaces around the injected globals for ease of access by dapp developers.",
"version": "0.8.1",
"version": "0.8.2",
"author": "Jaco Greeff <[email protected]>",
"license": "Apache-2",
"dependencies": {
"@babel/runtime": "^7.5.5",
"@polkadot/extension-inject": "^0.8.1"
"@polkadot/extension-inject": "^0.8.2"
},
"peerDependencies": {
"@polkadot/api": "*"
Expand Down
2 changes: 1 addition & 1 deletion packages/extension-inject/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@polkadot/extension-inject",
"description": "A generic injector (usable to any extension), that populates the base exposed interfaces to be used by dapps.",
"version": "0.8.1",
"version": "0.8.2",
"author": "Jaco Greeff <[email protected]>",
"license": "Apache-2",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/extension-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@polkadot/extension-ui",
"description": "A sample signer extension for the @polkadot/api",
"version": "0.8.1",
"version": "0.8.2",
"author": "Jaco Greeff <[email protected]>",
"license": "Apache-2",
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/extension/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "@polkadot/extension",
"description": "A sample signer extension for the @polkadot/api",
"version": "0.8.1",
"version": "0.8.2",
"author": "Jaco Greeff <[email protected]>",
"license": "Apache-2",
"dependencies": {
"@polkadot/api": "^0.90.1",
"@polkadot/extension-ui": "^0.8.1",
"@polkadot/extension-ui": "^0.8.2",
"@polkadot/ui-keyring": "^0.42.1"
},
"devDependencies": {
Expand Down
4 changes: 4 additions & 0 deletions packages/extension/src/chains/alexander.ts

Large diffs are not rendered by default.

11 changes: 5 additions & 6 deletions packages/extension/src/chains/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019 @polkadot/extension-ui authors & contributors
// Copyright 2019 @polkadot/extension authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.

Expand All @@ -7,6 +7,7 @@ import { Metadata } from '@polkadot/types';
// imports chain details, generally metadata. For the generation of these,
// curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "state_getMetadata", "params":[]}' http://localhost:9933
import alexander from './alexander';
import kusama from './kusama';

interface Chain {
meta?: Metadata;
Expand All @@ -18,11 +19,9 @@ const chains: Record<string, Chain> = {
name: 'Alexander',
meta: new Metadata(alexander.meta)
},
'0x10c08714a10c7da78f40a60f6f732cf0dba97acfb5e2035445b032386157d5c3': {
name: 'Emberic Elm'
},
'0xe1aa646d87d3c0ba5cf5f09d2ff6deb9c373b75d9660ba184b4ca953f92565e6': {
name: 'Flaming Fir'
'0x3fd7b9eb6a00376e5be61f01abb429ffb0b104be05eaff4d458da48fcd425baf': {
name: 'Kusama CC1',
meta: new Metadata(kusama.meta)
}
};

Expand Down
7 changes: 7 additions & 0 deletions packages/extension/src/chains/kusama.ts

Large diffs are not rendered by default.

0 comments on commit b1bb579

Please sign in to comment.