Commit Graph
128 Commits
Author SHA1 Message Date
Jaco Greeff 22f8df1fd0 Explicit Array<any> (#246)
* Explicit Array<any>

* Ordering

* Bump dev
2018-11-12 17:54:41 +01:00
Jaco Greeff 02d415532c Bump @polkadot deps 2018-11-01 14:29:05 +01:00
Jaco Greeff d0291db45e Bump yarn, bump dev/ts (#242) 2018-10-25 14:07:03 +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
Jaco Greeff 40f3ceb219 Bump dev 2018-10-22 13:41:38 +02:00
Travis CI d7b83e3d91 [CI Skip] 0.32.4 2018-10-19 15:38:45 +00:00
Jaco Greeff 4d98a66f3e Bump dev, ignore docs (CI force add) (#234) 2018-10-18 14:20:48 +02: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 86940970fe [CI Skip] 0.30.5 2018-09-28 11:43:58 +00:00
Amaury Martiny 9a6a02ce46 Add stringLowerFirst, stringUpperFirst, stringCamelCase (#219)
* Add stringLowerFirst

* Add stringUpperFirst

* Change test description

* Add camelcase

* Add header
2018-09-28 13:38:36 +02:00
Jaco Greeff 9765b2c05d Cleanup keypair add functionality (#217)
* Cleanup keypair add functionality

* Expose addPair
2018-09-20 16:57:39 +02:00
Jaco Greeff 5a101b0fde Classify Keyring (#215)
* Bump deps

* Class-ify Keyring

* Version bump
2018-09-11 15:11:09 +02:00
Jaco Greeff 0e2566c05a Bump dependencies 2018-09-07 11:26:01 +02:00
Jaco Greeff 5120b95bc8 FlatDb code refactor & optimisations (#213)
* Move Compactor into own class

* Combine multiple buffer writes

* Skip failing CI test (again)

* Clean up value > current.length

* Test code linting
2018-09-04 22:54:13 +02:00
Jaco Greeff dfa1d25ff5 LRU for header entries (#211)
* LRU for header entries

* Update LRU cache size

* Update caching offsets (branch re-org)

* Re-skip test

* Mark LevelDb as unused, move
2018-09-03 15:07:07 +02:00
Jaco Greeff 081246fa0c LevelDb string serialization of keys & values (#209)
* Remove RocksDb interface (or rather, mark as unused)

* LevelDb de/serializes to utf8
2018-09-03 09:56:12 +02:00
Jaco Greeff f9da5249ca Add RocksDb interface (#208)
* Add RocksDb interface

* Move binary deps to optional

* LevelDb skip

* Travis config for rocksdb

* Use pushd to change directory

* Don't forget to run yarn

* CFLAGS for gcc?

* Library should compress

* Update dependencies
2018-09-02 20:04:34 +02:00
Jaco Greeff 3b6407f9b7 LevelDb interface update (#207)
* LevelDb interface update

* Update disk interfaces to base + name
2018-09-02 11:00:39 +02:00
Travis CI 312cda75d0 [CI Skip] 0.29.6 2018-09-01 22:25:06 +00:00
Jaco Greeff e1135a665b Re-implementation of Patricia-Merkle Trie (#203)
* Start of trie-db re-implementation

* WIP commit

* More WIP

* WIP, seems complete, untested

* Ported trie-db operational

* Add Ethereum trie tests

* Use u8aConcat to construct u8a

* Basic RocksDb interface

* Combine engines into DB, expand tests

* Update Trie with transaction wrapper

* LevelDb (sync) interface

* Remove unused (for now) package (compatibility)

* trie-d -> trie-db-old, trie-db-ext -> trie-db

* Version bump

* Skip old trie tests (package to be removed)

* Skip tests (fixed)

* Remove non-used RocksDb spec

* Skip FileFlat tests (deprecated?)
2018-09-01 22:17:57 +02:00
Jaco Greeff 7ff9ff8b34 Revert "Revert "diskdown to overwrite values when changed (if space available) (#202)""
This reverts commit bd0eb4cb34.
2018-08-29 16:11:04 +02:00
Jaco Greeff bd0eb4cb34 Revert "diskdown to overwrite values when changed (if space available) (#202)"
This reverts commit 07af959b15.
2018-08-29 16:02:13 +02:00
Jaco Greeff 07af959b15 diskdown to overwrite values when changed (if space available) (#202)
* Overwrite values when changed (if space available)

* Remove old LRU dependency completely
2018-08-29 15:05:54 +02:00
Jaco Greeff 372e2fc903 Revert LRU removal (#199)
* Revert "Remove db-diskdown LRU (#198)"

This reverts commit 219f12a65b.

* Re-add LRU for db-diskdown

* Re-add depth check
2018-08-28 21:10:47 +02:00
Jaco Greeff 219f12a65b Remove db-diskdown LRU (#198) 2018-08-28 20:36:44 +02:00
Travis CI efd5249b41 [CI Skip] 0.28.5 2018-08-24 09:16:48 +00:00
Jaco Greeff 5f3928a78e Add db-diskdown (simple disk-based LRU KV map) (#193)
* Add db-diskdown (simple disk-based LRU KV map)

* TODOs

* Split path based on key mapping

* Swap back to in-memory trie
2018-08-24 11:11:23 +02:00
Jaco Greeff 6ff6d60bee Update deps, build docs (#192)
* Update deps, build docs

* Revert doc generation (duplication across package boundaries)
2018-08-21 15:32:48 +02:00
Jaco Greeff 6f75ac9608 Update dependencies 2018-08-16 13:02:33 +02:00
Jaco Greeff 63eda08c4e Update dependencies 2018-08-16 12:16:58 +02:00
Jaco Greeff d47fd44c39 Update dependencies 2018-08-16 11:53:54 +02:00
Jaco Greeff 13c37daf10 Expand storage keys with latest (#185)
* Add contract keys to storage

* Order council as per Rust source

* Remove governance completely (deprecated)

* Update session with new keys

* Staking updates

* Update system storage

* Update timestamp entries
2018-08-03 12:26:10 +02:00
Jaco Greeff bf3ae23e6a Revert leveldown bindings (not a dep) 2018-07-31 11:15:34 +02:00
Jaco Greeff b7c99562e0 Add leveldown 2018-07-31 11:09:34 +02:00
Travis CI 6ed5b44c4e [CI Skip] 0.26.30 2018-07-27 13:26:58 +00:00
Jaco Greeff 141bed8320 Format log date with moment (#181) 2018-07-27 15:22:05 +02:00
Jaco Greeff 52286d39cb Bump dependencies 2018-07-13 10:14:32 +02:00
Jaco Greeff 086fb8d90b Decode code correctly (length-prefixed) (#168) 2018-07-12 13:20:14 +02:00
Travis CI aa1a17ce82 [CI Skip] 0.26.12 2018-07-03 14:14:08 +00:00
Jaco Greeff 243df6d030 Add MemoryDb Trie-wrapper (#159)
* Pass along hashing function (keccak or blake2)

* Allow syncify to handle Promises with no return values

* Add sync MemoryDb interface
2018-07-03 14:31:01 +02:00
Jaco Greeff 544034bf2e Allow hex or number[] -> u8a conversion for 'bytes' (#155) 2018-06-28 17:15:09 +02:00
Jaco Greeff f0c34bea09 Use bn types from @types (#153)
* Use bn.js definitions from @types

* Update isHex & isObservable
2018-06-27 15:05:55 +02:00
Jaco Greeff 73477a2809 Add tslint (#151) 2018-06-27 10:15:46 +02:00
Travis CI 499a877f15 [CI Skip] 0.25.1 2018-06-26 19:31:12 +00: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 fffefb0c1c Update dependencies 2018-06-26 17:16:42 +02:00
Jaco Greeff 2f1aebe908 Update @polkadot/dev, finsing deasync jest resolution 2018-06-26 16:49:17 +02:00