Commit Graph
580 Commits
Author SHA1 Message Date
Jaco Greeff 18982b0c2d Expose address decoding/encoding on keyring (#248) 2018-11-13 12:35:31 +01:00
Travis CI 57938d22d8 [CI Skip] 0.32.15 2018-11-12 16:59:27 +00:00
Jaco Greeff 22f8df1fd0 Explicit Array<any> (#246)
* Explicit Array<any>

* Ordering

* Bump dev
2018-11-12 17:54:41 +01:00
Travis CI a8e39297b5 [CI Skip] 0.32.14 2018-11-12 15:27:49 +00:00
Amaury Martiny 7a43354ece isString true for String object (#245)
* Fix isString

* value is

* Fix isHex too

* Fix isHex

* Add hex test with String
2018-11-12 16:23:18 +01:00
Travis CI 6c85979c3a [CI Skip] 0.32.13 2018-11-10 10:42:02 +00:00
Jaco Greeff a9878a2049 Remove warning, add TODO for future checks (#244) 2018-11-10 11:37:28 +01:00
Travis CI 1a9ea424c4 [CI Skip] 0.32.12 2018-11-01 13:43:47 +00:00
Jaco Greeff 0ddac0abe0 Merge branch 'master' of github.com:polkadot-js/util 2018-11-01 14:39:20 +01:00
Travis CI a0dcd4eaa9 [CI Skip] 0.32.11 2018-11-01 13:33:44 +00:00
Jaco Greeff 6e9071bb54 Bump node.js in engines 2018-11-01 14:33:31 +01:00
Jaco Greeff 02d415532c Bump @polkadot deps 2018-11-01 14:29:05 +01:00
Travis CI 4635f1afe8 [CI Skip] 0.32.10 2018-10-25 12:12:35 +00:00
Jaco Greeff d0291db45e Bump yarn, bump dev/ts (#242) 2018-10-25 14:07:03 +02:00
Travis CI 410c7470fc [CI Skip] 0.32.9 2018-10-24 14:43:00 +00:00
Jaco Greeff 7153110410 Bump 2018-10-24 16:33:55 +02:00
Jaco Greeff 5130f4c78a Remove debug logging (MemoryDb) 2018-10-24 16:27:58 +02:00
Travis CI 0bae9bbb23 [CI Skip] 0.32.8 2018-10-24 14:06:04 +00:00
Jaco Greeff 0cb6e6c746 Bump deps (#240)
* Decrease MemoryDb verbosity

* Bump deps

* Bump
2018-10-24 16:01:49 +02:00
Travis CI 661e6c8e1b [CI Skip] 0.32.7 2018-10-24 12:37:50 +00:00
Jaco Greeff 5ce8f9185f Decrease MemoryDb verbosity (#238) 2018-10-24 14:33:20 +02:00
Travis CI 3b6d911455 [CI Skip] 0.32.6 2018-10-22 18:34:54 +00:00
Jaco Greeff 40f3ceb219 Bump dev 2018-10-22 13:41:38 +02:00
Travis CI 0dfd038df0 [CI Skip] 0.32.5 2018-10-19 15:51:10 +00:00
Jaco Greeff b53a677f81 Add .nojekyll for docs/ 2018-10-19 17:46:24 +02:00
Travis CI d7b83e3d91 [CI Skip] 0.32.4 2018-10-19 15:38:45 +00: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
Travis CI 1cb7bfd9b4 [CI Skip] 0.32.3 2018-10-18 13:27:21 +00:00
Jaco Greeff 65b8468e5b Import util via {...} (#236)
* Import util via {...}

* Fix test failures
2018-10-18 15:24:13 +02:00
Travis CI 3bb5a3ea04 [CI Skip] 0.32.2 2018-10-18 12:24:17 +00:00
Jaco Greeff 4d98a66f3e Bump dev, ignore docs (CI force add) (#234) 2018-10-18 14:20:48 +02:00
Travis CI 1fbfb32514 [CI Skip] 0.32.1 2018-10-18 08:33:53 +00:00
Jaco Greeff 57eddba598 Remove from* variants, move fromString to stringTo (#233)
* Remove from* variants, move fromString to stringTo

* Bump
2018-10-18 10:30:14 +02:00
Travis CI 35579c4d70 [CI Skip] 0.31.7 2018-10-18 07:27:00 +00:00
Jaco Greeff fd06d9f3c4 Add mnemonicToSeed (#229)
* Add mnemonicToSeed

* Add index emports
2018-10-18 09:23:26 +02:00
Travis CI 56e6b9469e [CI Skip] 0.31.6 2018-10-15 13:35:15 +00:00
Jaco Greeff c26ddf026b Remove one & two as test pairs (#226)
* Remove one & two for test pairs

* Remove unused import
2018-10-15 15:31:24 +02:00
Travis CI d5fa39e60f [CI Skip] 0.31.5 2018-10-13 19:45:42 +00:00
Jaco Greeff 91c7058284 Create seed from mnemenic (#225) 2018-10-13 21:42:39 +02:00
Travis CI 9d43119ed2 [CI Skip] 0.31.4 2018-10-13 18:46:31 +00:00
Jaco Greeff 62553296e1 Set default global encoding prefix (#224) 2018-10-13 20:43:17 +02:00
Travis CI 4fbdeee00e [CI Skip] 0.31.3 2018-10-13 15:16:17 +00:00
Jaco Greeff 016b8b1809 Warn on unexpected decoded prefix (#223) 2018-10-13 17:12:58 +02:00
Travis CI 776b986e2f [CI Skip] 0.31.2 2018-10-12 22:07:03 +00:00
Jaco Greeff 400c6c5685 Encode & decode short addresses (#221)
* Encode & decode short addresses

* Adjust short addresses short checksum

* Make prefix coinfigurable as an input

* Expand tests, cleanup short encoding
2018-10-13 00:03:48 +02:00
Travis CI c07f3a5f5c [CI Skip] 0.31.1 2018-10-12 15:08:34 +00:00
Jaco Greeff ec71003e78 Add mnemonic support to keyring & util-crypto (#222) 2018-10-12 17:05:36 +02:00
Travis CI f8233f0665 [CI Skip] 0.30.7 2018-09-28 13:22:06 +00:00
Amaury Martiny b73ca86982 Fix camel case (#220) 2018-09-28 15:17:30 +02:00
Travis CI 5fa5906482 [CI Skip] 0.30.6 2018-09-28 12:15:37 +00:00