38 Commits

Author SHA1 Message Date
Jaco
2994c594fc Bump TS (#1691)
* Bump TS

* Add ss registry compare
2022-12-08 08:24:41 +02:00
Jaco Greeff
4ce452b40a Remove client-only packages (#503) 2020-01-15 12:27:12 +01:00
Jaco Greeff
1e67f589b9 Maintainability indicator 2019-08-12 09:09:45 +02:00
Jaco Greeff
1fa08117bb Cleanup README 2019-08-11 08:08:28 +02:00
Jaco Greeff
0d9f30006c Update README.md 2019-08-10 15:21:04 +02:00
Jaco Greeff
b48420f299 Update README.md 2019-08-10 14:50:32 +02:00
Jaco Greeff
ac4e0904e9 Update README.md 2019-08-10 14:24:46 +02:00
Jaco Greeff
70cca25cb1 README badges 2019-08-10 14:23:37 +02:00
Jaco Greeff
808b6330a4 Bump deps (#457)
* Bump deps

* Rewrite lock

* jest --runInBand

* Rewrite lockfile
2019-08-09 15:28:25 +02:00
Harry Liu
884c965e6b Update README.md (#446) 2019-07-23 12:14:17 +02:00
Jaco Greeff
3835d8d304 Update README.md (#425) 2019-06-14 12:42:30 +02:00
Jaco Greeff
5158cef05e Bumps (#398)
* Bump deps

* Bump deps

* Swap test coverage badge to codeclimate

* Add npm version
2019-04-29 12:51:05 +02:00
Jaco Greeff
6506c102a7 Bump dev 2019-02-26 16:03:21 +01:00
Jaco Greeff
2d4097d7c7 yarn version in README 2019-01-11 10:55:09 +01:00
Jaco Greeff
016a7b80e6 Migrate to travis-ci.com, bump deps (#264) 2018-12-05 15:40:59 +01:00
Jaco Greeff
f82092e603 Allow blake2 & parity-codec in trie (#251)
* Start codec implementation

* Expose all constants

* NodeHeader encoding/decoding

* Encoding in NodeHeader

* Constants for Node types

* Moce codec to trie-codec

* Encode/decode in place (untested)

* WIP, tests starting to be put in place

* One passing test :)

* Another test bites the dust...

* One more test down...

* One more down

* Additional tests

* Formatting

* Long keys passing

* Trie tests

* Follow the script, no all-in-all encoder

* First simple trie test passing

* Another one down

* Extra checks remove (debug)

* 80% there with tests...

* One more, one left

* Trie tests passing

* ISC -> Apache-2.0

* Add compact util functions

* Tests to TypeScript

* Remove @polkadot/types deps, ethereum stub

* Bump

* Genesis tests with chainspecs

* Cleanup tests (ease of debugging)

* Substrate test passes, branch fails (again)

* Checks passing, tests passing

* Re-add Ethereum & snapshot tests (not passing atm)

* Re-add index test (also not 100%)

* Mid-way in generic trie-root

* Cleanup ethereumjs-testing definitions

* Update deps

* Less intrusive renames in trie-hash

* Self-review cleanups #1

* asNibbles -> toNibbles

* Cleanups

* Expand tests

* Cleanup imports

* Fix logger test (fly-by refactor)

* Update snapshot test
2018-11-22 14:29:34 +01:00
Jaco Greeff
3bc1b7541b LICENSE and README updates (#254)
* LICENSE and README updates

* Remove duplicated definition

* Remove duplicated file
2018-11-21 12:26:38 +01:00
Luke Schoen
1fb1f9d743 docs: Fixes #157. Add Gitbook documentation for Polkadot-JS Common (#231)
* fix: Remove prior docs attempt files

* docs: Add Gitbook docs for common repo with examples. See detailed comments

* Remove old attempt at docs in docs/ folders

* Add Typedoc config typedoc.js

* Add .nvmrc for easily switching Node.js version with NVM

* Add ESLint config .eslintrc.json and .eslintignore

* Fix in tsconfig.json so is keyring not util-keyring

* Update package.json with dependencies and script same as in polkadot-js/api

* Update root README fixing CI icons, adding guide same as in polkadot-js/api, and fixing link to keyring, not util-keyring

* Update root .gitignore with Gitbook build files same as in polkadot-js/api

* Add Gitbook docs structure same as in polkadot-js/api

* Add Gitbook examples for keyring, trie-db, util-crypto

* Add Gitbook outer summary for the menu, Readme, logo and styles same as in polkadot-js/api

* Add Gitbook config book.json

* docs: Remove db and util-rlp from Gitbook summary menu since RLP not in PoC-3

* docs: Add Typedocs with examples for db MemoryDb and DiskDb

* docs: Update db/ Readme with CI icons fixed, and indicating that no methods exposed in Common Docs

* docs: Update keyring Readme with CI icons fixed and link to Common Docs

* fix: Fix keyring package.json info to refer to common, not client

* fix: Updates license in 4x files in keyring/address folder with keyring, not util-keyring

* docs: Add Typedocs to Keyring class, pair function, and testKeyring function

* docs: Update keyring Readme with CI icons fixed and link to Common Docs

* fix: Update package.json moving @polkadot/db from devDependencies to dependencies

* fix: Update test to iterate array not object with forEach

* fix: Use semicolon instead of comma in tests to fix linting errors. Fix typo

* docs: Add Typedoc to Trie class

* docs: Add Typedoc to is functions

* docs: Update keyring Readme with CI icons fixed and link to Common Docs

* fix: Add return type to encodeAux function

* docs: Add Typedoc to encode function

* fix: Fix formatting of Typedoc example for root

* docs: Add Typedoc for genRoot

* docs: Add Typedoc for pairsUniq

* docs: Add Typedoc for getSharedLength

* docs: Add Typedoc for sharedPrefixLength

* fix: Fix formatting of Typedoc example for rootOrdered, asNibbles, fromNibbles

* fix: Various fixes to util-crypto. See commit detail comments

* Update root Readme with class and function info
* Fix typos and Typedoc examples
* Expose mnemonic by exporting it in an index.ts
* Fix naming from naclKeypair to naclKeypairFromRandom
* Fix typos
* Fix randomAsU8s to be randomAsU8a
* Fix spelling of bitLength

* fix: Various fixes to util-rlp. See detailed commit comments

* Update keyring Readme with CI icons fixed and link to Common Docs mentioning since RLP not in PoC-3 nothing exposed in Common Docs
* Add Typedocs
* Move Typedocs to different file so they appear in Common Docs

* fix: Various fixes to util. See detailed commit comments

* Update root Readme to use Yarn and list and explain exposed Common Docs methods
* Fix typos and Typedoc examples

* fix: Restore tests back using variable they were iterating over before

* docs: Move nested part of Summary to individual package Readme. Add Usage to Readmes

* fix: Add missing semicolon to existing test

* fix: Remove docs/gitbook folder and files since generated by CI

* feat: Update Gitignore to ignore CI-generated files like .html and docs/gitbook/ folder

* docs: Remove CI-icons from all packages within polkadot-js/common, except its root Readme

* fix: Update to incorporate changes from PR #233 and #229

* fix: Ignore build directories in Jest tests using modulePathIgnorePatterns

* fix: Remove useless docs/html from .gitignore since there is no html subdirectory

* fix: Update util-crypto README with link to mnemonicToSeed instead of toSecret

* docs: Update keyring create account example to show result to user

* fix: Update dependencies in examples so the examples work again

* fix: Update keyring example 02 load accounts not to use addFromAddress

* fix: Update .gitignore so it is suitable for both polkadot-js common and api

* fix: Adjust .gitignore after testing changes that work with polkadot-js api too

* fix: Resolve .gitignore to overcome FileNotFoundError: No README file (or is ignored)

* fix: Remove from Git tracking docs/.nojekyll since generated

* fix: Add lerna to gitignore to match api repo

* Revert to original .gitignore. Does not work without Gitbooks files Git tracked

* docs: Hide trie-db Examples since have limited use
2018-10-19 17:33:58 +02:00
Jaco Greeff
273c427505 Trigger build 2018-09-28 14:10:45 +02:00
Jaco Greeff
296d0ab13a Link to db package 2018-09-13 11:59:23 +02:00
Jaco Greeff
45ef701c78 Move type-* into api repo (#191) 2018-08-11 10:52:45 +02:00
Jaco Greeff
5a75d51e98 Cleanup README 2018-07-13 09:49:28 +02:00
Jaco Greeff
40f4a425a8 Remove old package from README 2018-06-27 11:32:59 +02:00
Jaco Greeff
cd6800fbac Flatten types,m codecs & builders (#152) 2018-06-27 11:03:52 +02:00
Jaco Greeff
78e01a0e16 Combine util, types & trie into common (#150)
* Pull in trie repo

* Bring in types repo
2018-06-26 21:26:51 +02:00
Jaco Greeff
96c2a1da2c 'nobody' pair for default account & signature 2018-06-02 21:33:42 +02:00
Jaco Greeff
cdc848dce0 Add @polkadot/util-keyring (#99) 2018-02-23 11:41:59 +01:00
Jaco Greeff
e832aebb07 Introduce @polkadot/util-rlp (#76)
* Add toU8a conversions

* Add u8a utilities

* @polkadot/rlp with encoding

* Decoding test runthrough

* Update util locations

* Convert util-triehash to use util-rlp

* Allow keccak from Uint8Array

* Pass Uint8Array to keccak input

* Update documentation

* Skip some doc generation

* Update @polkadot/dev

* Update doc typo

* Update allocations

* Retrieve tests from ethereumjs-testing

* Simplify test retrieval

* Exclude etereumjs-testing from flow
2018-02-08 14:50:54 +01:00
Jaco Greeff
6b3be0bc30 Introduce @polkadot/util-triehash (#75)
* Expand util-crypto test coverage

* Add @polkadot/util-triehash

* Update link to util-triehash
2018-02-07 13:41:45 +01:00
Jaco Greeff
b5c5734c7c Add Blake2s & XXHash utility functions (#66)
* Initial split of util & util-crypto

* Add initial XXHash version

* Blake2s wit tests & documentation

* Add sha512 (from NaCl)

* Add randomBytes (from NaCl)

* Flow fixes

* Update documentation

* Update latest @polkadot/dev
2018-01-25 14:13:43 +01:00
Jaco Greeff
4a035aa77f Update badges (#52) 2017-12-16 11:44:34 +01:00
Jaco Greeff
5d0a7231dc Fix alias links (#34)
* Fix alias links

* Update alias links

* Update generated docs
2017-12-01 20:34:51 +01:00
Jaco Greeff
d02c05ba49 Alias to <-> from (#31)
* bn <-> hex aliasses

* Bump minor

* Split tests into singular files

* to <-> from alias

* Add Codeclimate badge
2017-11-30 20:16:17 +01:00
Jaco Greeff
279db7fae4 Updates for new monorepo packages (#25)
* Update badges

* Add badges

* Cleanup scripts

* Shorthand

* Align build spec

* User @polkadot/api-jsonrpc dev dep

* Update deps
2017-11-28 18:22:56 +01:00
Jaco Greeff
a9377d3fe9 Expand intro 2017-11-26 18:53:59 +01:00
greenkeeper[bot]
fab4b22da5 Add Greenkeeper badge 🌴 (#15)
* docs(readme): add Greenkeeper badge

* Update README.md
2017-11-24 00:08:27 +01:00
Jaco Greeff
1216968145 Use @polkadot/dev for common tasks (#8)
* Link to docs in README

* Use @polkadot/dev for common tasks

* 0.5.0 since docs added
2017-11-20 23:04:33 +01:00
Jaco Greeff
f666ca0b38 Initial add (split from @polkadot/api) 2017-11-18 14:42:23 +01:00