Drop BBQ spec (only used in tests) (#336)

This commit is contained in:
Jaco Greeff
2019-02-27 14:32:30 +01:00
committed by GitHub
parent 77bca15642
commit b9ac91839d
6 changed files with 12 additions and 170 deletions
File diff suppressed because one or more lines are too long
+6
View File
@@ -0,0 +1,6 @@
// Copyright 2017-2019 @polkadot/chainspec authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
export { default as alexander } from './alexander';
export { default as drieddanta } from './drieddanta';
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -10,11 +10,11 @@ export type Chainspec = {
[index: string]: string
}
},
genesisRoot: string,
genesisRoot?: string,
name: string,
properties: null | {
[index: string]: any
},
protocolId: string | null,
telemetryUrl?: string
telemetryUrl?: string
};
+2 -4
View File
@@ -2,15 +2,13 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import bbqbirch from '@polkadot/chainspec/bbqbirch';
import { alexander, drieddanta } from '@polkadot/chainspec/index';
import { hexToU8a, u8aToHex } from '@polkadot/util/index';
import Trie from './index';
describe('genesis roots', () => {
[
bbqbirch
].forEach(({ genesis: { raw }, genesisRoot, name }) => {
[alexander, drieddanta].forEach(({ genesis: { raw }, genesisRoot, name }) => {
it(`has the correct root for ${name}`, () => {
const trie = new Trie();
+2 -4
View File
@@ -2,15 +2,13 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import bbqbirch from '@polkadot/chainspec/bbqbirch';
import { alexander, drieddanta } from '@polkadot/chainspec/index';
import { hexToU8a, u8aToHex } from '@polkadot/util/index';
import trieRoot from './trieRoot';
describe('genesis roots', () => {
[
bbqbirch
].forEach(({ genesis: { raw }, genesisRoot, name }) => {
[alexander, drieddanta].forEach(({ genesis: { raw }, genesisRoot, name }) => {
it(`has the correct root for ${name}`, () => {
expect(
u8aToHex(