Jaco Greeff
6be25966d8
Enum .toJSON() to return type name as specified ( #1811 )
...
* Enum `.toJSON()` to return type name as specified
* Fix text compares
2020-02-06 10:48:33 +01:00
Jaco Greeff
9d4b0ea56a
Update Substrate with vesting ( #1790 )
...
* Update Substrate with vesting
* Update balances & vesting queries with compat)
* Split base account queries
* Linting, simpler referendum voters
* Fix (some) tests
2020-02-02 08:50:37 +01:00
Jaco Greeff
1c327c60d9
Metadata V11 ( #1774 )
...
* Make a start ... V11 definitions
* V11 conversion
* Fix ErrorMetadataV11
* Extension point for signed extensions
* Add V11 to mapped
* Expand toLatest comments
2020-01-30 15:49:37 +01:00
Jaco Greeff
7de647ec0b
Cleanup module-specific type-overrides ( #1756 )
2020-01-28 16:18:40 +01:00
Jaco Greeff
e6018f2f75
Add society-specific Vote type ( #1754 )
...
* Add society-specific Vote type
* Cnvert storage types via toLatest
2020-01-28 09:52:40 +01:00
Jaco Greeff
7adad82786
Remove v11 metadata ( #1748 )
...
* Remove v11 metadata
* Linting
2020-01-27 12:37:01 +01:00
Jaco Greeff
854a520517
Mark some function @internal (no doc extraction) ( #1746 )
2020-01-27 09:38:02 +01:00
Jaco Greeff
c1c537a3b5
Type aliases on a per-module basis ( #1740 )
...
* Type aliasses on a per-module basis
* Remove test interface
* Update wrapper
* Move known types to types
2020-01-22 15:51:23 +01:00
Jaco Greeff
204cf6769d
Bump mtadata (latest Substrate) ( #1728 )
2020-01-19 11:20:33 +01:00
Jaco Greeff
7b9a11ac25
Don't map empty tuples to Null ( #1725 )
...
* Don't map empty tuples to Null
* Remove unused var
* Regen with tuple Result
* Generated types lint fixes
2020-01-19 10:17:20 +01:00
Amaury Martiny
fbbbcd2612
Enum toJSON returns toString for a basic enum ( #1697 )
...
* Update kusama static from 1032 to 1033
* Test 1032 and 1033
* Got exact metadata from kusama
* First pass: enum TOJSON and fix some tests
* Build interfaces
* Fix import
* Use camelCase for enum toJSON
* Build interface
* Fix lint
* Fix tests
* Generate static json
2020-01-13 22:18:51 +01:00
Amaury Martiny
a9211690be
Remove v9->v10 hack ( #1694 )
...
* Remove v9->v10 hack
* Update static
* Update JSON
2020-01-10 14:47:06 +01:00
Jaco Greeff
b7eeb992cd
Bump deps ( #1699 )
2020-01-06 14:12:49 +01:00
Amaury Martiny
51a866fd35
Update kusama static from 1032 to 1033 ( #1696 )
...
* Update kusama static from 1032 to 1033
* Update comment
* Rename variables
* Test 1032 and 1033
* Got exact metadata from kusama
2020-01-03 17:38:32 +01:00
Amaury Martiny
774f41e6db
Only apply hack if exactly metadata from kusama 1032 ( #1695 )
2020-01-03 12:05:27 +01:00
Keith Ingram and Amaury Martiny
82828d8e09
Add metadata v10/11, blake2_128concat hasher ( #1691 )
...
* v11, blake2_128concat
* MetadataAll
* Add storage hasher v4 and v10
* Make lint pass
* Add correct interfaces
* Fix lint
* Update metadata definitions
* Update v10 metadata
* Update packages/types/src/interfaces/utility/definitions.ts
* Update v11
* Add HACK
* Skip v9 tests (part of HACK)
* Correct function names
Co-authored-by: Amaury Martiny <amaury.martiny@protonmail.com >
2020-01-02 18:04:42 +01:00
satellitex
53959d482d
Add BTreeSet<V> Codec ( #1639 )
...
* add BTreeSet Codec
* Add following BTreeMap
* fix linting
* fix linting
* add validate Types and encode Types
* type def info is incremented.
* fix compareSet
2019-12-18 16:22:54 +01:00
Jaco Greeff
48ef5af93f
Add missing BTreeMap is metadata checking ( #1653 )
2019-12-09 10:14:12 +01:00
Jaco Greeff
bf946c20db
Latest metadata ( #1647 )
...
* Latest metadata
* Updte static version (v9)
* Update tests for new storage keys
* Bump deps
* Bump extra
* Case, V8 -> v8
2019-12-07 14:13:20 +01:00
Jaco Greeff
33fd1b1c78
Support Metadata V9 ( #1600 )
...
* Metadata v9 definitions
* Update stay V5 in V9
* WIP...
* Small adjustments
* toV9 looks sane ... may work
* v9 tests passes
* v8 tests pass... will get to overall... not checked
* Cleanup type
* Spread storage
* Missing semi
* Cleanup testUtil
* Cater for prefix map key generation
* Remove DoubleMap<T> wrapper
* Remove DoubleMap<T> wrapper
* WIP result types not yet operational
* Output formatting
* Add missing name prop
* Move v9 -> v10, v9 only as storage changes (next up)
* Support v9 & v10
* Fixup linked maps
2019-11-27 19:24:44 +01:00
Jaco Greeff
8b1a7a8584
Move Metadata to interfaces ( #1598 )
...
* Move Metadata to interfaces
* Align imports
* Suppress errors
* Remove TS overrides, createTypeUnsafe returns Codec
* Add type unwrap
* Fixup doc generation
* Remove V8 references
2019-11-22 13:38:20 +01:00
Jaco Greeff
3b758a0d64
Remove custom toString() from metadata storage ( #1597 )
...
* Convert asType -> asPlain, isPlainType -> isPlain
* Make tests pass
* Move unwrapStorageType to StorageKey
2019-11-22 10:47:21 +01:00
Jaco Greeff and Amaury Martiny
011e24bd49
Pass registry to all codec types ( #1592 )
...
* Pass registry to all codec types
* Pass through registry inside API (where the rubber meets the road)
* Small additions
* Derive w/ registry
* Types are more-or-less covered
* Some test adjustments (guided by linting)
* Rid the world of some ../injector
* Additional cleanups, merge injector into registry
* Cleanup extrinsics (always passing registry)
* Remove injector imports (not all replaced)
* Typ spec cleanups
* Phase 1 - types seem lint-free
* rpc-{core,provider} lint free
* Start working through metadata
* Small metadata additions
* Some e2e tests (out-of-order)
* Down to a handful
* Fixup tests for packages/types/src/codec/*.spec.ts
* packages/types/src/codec passes all tests
* packages/types ok (Convert storage with registry fn)
* progress (sort out injection, dreaded find-before msg)
* Down to 1 lint issue...
* Linting done... along with on-demand import
* Exposed ordering
* Remove global injects
* Cleanup comments
* Add CHANGELOG & UPGRADING
* Apply suggestions from code review
Co-Authored-By: Amaury Martiny <amaury.martiny@protonmail.com >
* Update Metadata description
2019-11-21 16:32:39 +01:00
Jaco Greeff
d6239cbe56
Bump metadata ( #1590 )
...
* Bump metadata
* Cleanup linting
* Build interfaces
* ... some much for "no mess, no fuss"...
2019-11-19 21:41:53 +01:00
Amaury Martiny
16e0ea9315
Add a Decorated class, which will be offline decorated Metadata ( #1463 )
...
* Move Metadata to api-metadata
* Make tests in api-metadata pass
* Make tests in api-metadata pass
* Refactor fromMetadata into decorated
* Fix some linting
* Replace headers
* Fix all tests
* Small lint
* Fix tests
* Fix metadata docs scripts
* Fix import ordering
* Add line breaks
* Grumbles
* Fix forgotten import
* rpcMetadata everywhere
* Fixlint
* s/api-metadata/metadata
* Fix latest tests
* Fix lint
* Fix tests
2019-11-12 12:06:18 +01:00