Drop BBQ spec (only used in tests) (#336)
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -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
@@ -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,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,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(
|
||||
|
||||
Reference in New Issue
Block a user