LICENSE and README updates (#254)

* LICENSE and README updates

* Remove duplicated definition

* Remove duplicated file
This commit is contained in:
Jaco Greeff
2018-11-21 12:26:38 +01:00
committed by GitHub
parent ad9b46a5b9
commit 3bc1b7541b
274 changed files with 1670 additions and 379 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.
import { Trie$Pairs } from '../types';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.
import encodeHexPrefix from './hexPrefix';
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.
export default function encodeHexPrefix (nibbles: Uint8Array | Array<number>, isLeaf: boolean): Uint8Array {
const bits = ((nibbles.length & 1) + (2 * (isLeaf ? 1 : 0))) << 4;
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.
import { Trie$Pairs } from '../types';
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.
import { Trie$Pairs } from '../types';
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.
import { Trie$Pairs } from '../types';
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.
import { Trie$Pair } from '../types';
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.
import trieRoot from './root';
import trieRootOrdered from './rootOrdered';
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.
import stringToU8a from '@polkadot/util/string/toU8a';
import hexToU8a from '@polkadot/util/hex/toU8a';
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.
import { Trie$Pairs } from './types';
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.
import { hexToU8a, stringToU8a } from '@polkadot/util/index';
+1 -1
View File
@@ -1,5 +1,5 @@
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.
import rlpEncode from '@polkadot/util-rlp/encode';
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.
export type Trie$Pair = {
k: Uint8Array,
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.
import stringToU8a from '@polkadot/util/string/toU8a';
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.
/**
* @name asNibbles
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.
import stringToU8a from '@polkadot/util/string/toU8a';
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.
/**
* @name fromNibbles
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.
import { Trie$Pairs } from '../types';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.
import pairsUniq from './pairsUniq';
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.
import { Trie$Pair, Trie$Pairs } from '../types';
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.
/**
* @name getSharedLength
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.
import sharedPrefixLength from './sharedPrefixLength';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.
import { Trie$Pairs } from '../types';