Jaco Greeff
0dc46445bc
Bump dev (incl. lint fixes) ( #2126 )
...
* Bump dev (incl. lint fixes)
* Fix call encoding (stepped into that one)
* Event struct order
* Update with missing tuple type (getTypeDef type)
2020-04-01 22:44:34 +02:00
Jaco Greeff
4e756704ea
Some minor cleanups ( #1966 )
...
* Some minor cleanups
* Small additions
* Cleanup ExtrinsicEra decoding
* Minor adjustments
* Remove support for metadata v0 parsing
* Adjust refCountDelay
* refCountDelay comments
* Adjust Metadata tests
* Metadata default creation
* Funky lines
* Cleanup as AccountIdAndIndex
* Some derive returns
* Try and cleanup info extraction
2020-02-27 15:01:20 +01:00
Jaco Greeff
c3c77ffe43
Add Option.unwrapOrDefault ( #1942 )
...
* Add Option.unwrapOrDefault
* linting
* metadata createType(registry, ...) -> registry.createType(...)
* Linting
* Cleanup tests
2020-02-25 14:15:25 +01:00
Jaco Greeff
a4f56d3d38
Remove deprecated types (up to metadata V5) ( #1939 )
2020-02-25 09:22:38 +01:00
Jaco Greeff
921e55a82e
Move types/codec/create -> types/create ( #1871 )
...
* Move types/codec/create -> types/create
* Update imports after move
* Cleanups
* Cleanup code circular deps
* Re-add dropped interfaces
* Drop duplicated code
* Fix imports
* Remove whacky comment
2020-02-16 13:51:37 +01:00
Jaco Greeff
d8141198e1
Provide mapping for LookupSource & LookupTarget ( #1823 )
...
* Provide mapping for LookupSource & LookupTarget
* Type overrides for Kusama-next
* Fix LookupSource for Kusama-next
* Fixup tests with lookup
2020-02-08 14:46:08 +01:00
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
7de647ec0b
Cleanup module-specific type-overrides ( #1756 )
2020-01-28 16:18:40 +01:00
Jaco Greeff
854a520517
Mark some function @internal (no doc extraction) ( #1746 )
2020-01-27 09:38:02 +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
Jaco Greeff
b7eeb992cd
Bump deps ( #1699 )
2020-01-06 14:12:49 +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
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