Jaco Greeff
b8d4bc5c6a
Call.injectMetadata (align with Events) ( #1462 )
...
* Call.injectMetadata (align with Events)
* Fix interface builds
* Fix md builds
* Fixup tests with injection
2019-10-10 11:05:01 +02:00
Jaco Greeff
9c09386600
Support Metadata V8 ( #1441 )
...
* Support Metadata V8
* Update V7 references, introduce *Latest (as applicable)
* Add v8 static metadata
* Bump to latest metadata
2019-10-08 11:30:54 +02:00
Jaco Greeff
2dd7cc0e69
Typescript-eslint 2 ( #1353 )
...
* Make a start
* More minor cleanups
* Some more cleanups
* Last round?
* Exclude build folders
2019-09-02 07:01:32 +02:00
Jaco Greeff
07d23d5675
Cleanup storage create function ( #1336 )
...
* Cleanup storage create function
* Cleanup param ordering
* Cleaner expansion
* Small reworks
* Commenting
* String update (tests)
2019-08-29 14:38:40 +02:00
Jaco Greeff
c7c76f6edb
Rework uniqTypes without duplication ( #1316 )
...
* Rework uniqTypes without duplication
* Extra info for vX -> v7 conversion
* Add vX to naming
* Rework unwrap return
* Ignore gathering unique for v0
* Fix getUniq for V0 (well, def. throw-away, but anyway...)
* compareMap cleanup
* Cleanup author extraction
* Add modules via Struct.with (Metadata)
* Revert "Add modules via Struct.with (Metadata)"
This reverts commit 0666c3014cf840fb4ab26a5231cdf67dbe977bd7.
* Consistency in injected vs defined classes (Metadata)
* Add isTrue/isFalse to Bool
* Meta PlainType/MapType in registry
* Fix wrong v6 imports
* Extract storage modifier
* Split additional Metadata classes into interfaces
* Minor cleanups in type naming
* Static json renames
* Convert most V0 classes to interfaces
* Additional meta classes to interfaces
* No classes for Metadata V0 & V1 anymore
* Rename json imports
* Base cleanups
* Add polkadot static
2019-08-18 15:01:21 +02:00
Jaco Greeff
c790cb59bb
Expand toJSON for storage fn (used in memoizee) ( #1311 )
2019-08-14 21:23:48 +02:00
Jaco Greeff
4115b8a4cc
Cleanup & split createType ( #1307 )
...
* Cleanup & split createType
* createType import
* Reduce complexity somewhat
* Simplify wrapper check
* Revert "Simplify wrapper check"
This reverts commit e072c7e05e30e68994152af0b5d7b624dc38bba1.
* de-dup getTypeClass
* Explicit extraction, cleanup getTypeDef
* De-dup subType extraction
* createType move
2019-08-14 14:06:45 +02:00
Jaco Greeff
4094b44625
Linked queries accept params again ( #1217 )
...
* Linked queries accept params again
* Remove invalidated test, cleanup prefix strip
2019-07-27 23:58:09 +02:00
Jaco Greeff
99368a6d4d
createType allows multiple params ( #1207 )
2019-07-27 08:05:11 +02:00
Amaury Martiny
441148889d
CreateType is typed, add createTypeUnsafe just in case ( #1199 )
...
* Use unsafe internally
* Add comments
* Remove <> in createType
* Fix lint
* Fix classOf
* Remove createType from Text
* Fix lint
* Fix Fallback type
* Fix fallback in createType
2019-07-26 14:00:25 +02:00
Jaco Greeff
ed6aad8265
Remove any from storage function param ( #1186 )
2019-07-25 13:43:11 +02:00
Jaco Greeff
48159cfb5a
DoubleMap extended tests ( #1179 )
...
* DoubleMap extended tests
* TwoX64Concat test (aligned with Rust)
* Remove .only
* Update Type.ts
* And working
* Check the full JSON output for the keys (future-proof)
* Renames
2019-07-24 16:04:55 +02:00
Jaco Greeff
f9a3f3e53f
Fix linked maps with defaults ( #1162 )
...
* isPedantic matches [] with isEmpty
* Fix undefined.undefined on headKey
* Adjust fallback for linked maps
* Add tests for the linked map fallbacks (head and value)
2019-07-23 10:56:45 +02:00
Jaco Greeff
71c5920b1f
eslint rules ( #1099 )
...
* Off to the races - 3760 problems (1794 errors, 1966 warnings)
* Convert Array<T> -> T[] (not all correct, eg. extends)
* () => { -> (): void => {
* get is/as -> public get is/as
* public for getters, constructors & base Codec
* Some cleanups from previous overzealous search & replace
* Under 2k, 1874 problems (649 errors, 1225 warnings)
* ^^^ check that commit for details ;)
* Minor.
* rm config header
* Minor cleanups
* Default to tslint, eslint as option
* Trigger
* Update jsonrpc
* 1494 problems (433 errors, 1061 warnings)
* 1103 problems (135 errors, 968 warnings)
* 899 problems (9 errors, 890 warnings)
* 483 problems (9 errors, 474 warnings) (ignore any... for now)
* 366 problems (9 errors, 357 warnings)
* 336 problems (9 errors, 327 warnings)
* 148 problems (9 errors, 139 warnings)
* 31 problems (8 errors, 23 warnings)
* 0, 0
2019-07-14 12:15:14 +02:00
Jaco Greeff
edea20dad8
Export storage prefix on StorageEntry ( #1106 )
2019-07-12 11:22:14 +02:00
Axel Chalon
9abbaab991
Pull parameter_types! from metadata ( #1066 )
...
* @polkadot/{extrinsics,storage} moved to @polkadot/metadata
* Fix previous commit
* Fix previous commit
* Expose parameter types using api.consts
* Grumbles; update v6 static metadata; add UncleEntryItem (fix #1067 )
* Update api.query.* to api.consts.* where changed
* Update tests and stray api.query.staking.sessionsPerEra
* Grumbles
* Grumbles
* Revert updates to api-derive (taken care of by #1068 )
* Grumbles; fix UncleEntryItem
* Rename "@polkadot/metadata" => "@polkadot/api-metadata"
* Skip derive test
* Grumbles
* Grumbles
* Grumbles
* Cleanup merge, ensure metadata is latest
* Move api-metadata to actual api-metadata folder
* README api-metadata description (& folder link)
* Remove stray type-extrinsics package.json
2019-07-09 08:54:28 +02:00