Jaco Greeff
7a7d6e9b8a
New democracy types ( #2078 )
...
* New democracy types
* ReferendumInfo
* Adjust democracy derives
* Spring cleaning
* Remove ReferendumInfoExtended
2020-03-22 11:05:57 +01:00
Jaco Greeff
9d67d711d4
Bump deps, type import on generated ( #2075 )
...
* Bump deps, type import on generated
* type imports in types/types
* Re-export defs
* Split imports/exports
* Additional type import
* Remove import type
* Remove dupes
2020-03-21 09:40:59 +01:00
Jaco Greeff
af11444b72
Update RPCs (babe, contracts) ( #2074 )
...
* Update RPCs (babe, contracts)
* Babe in rpc-core
2020-03-21 07:50:56 +01:00
Jaco Greeff
c9dcd51ba6
is isWarning to ISubmittableResult ( #2073 )
2020-03-20 17:40:09 +01:00
Jaco Greeff
5867f8ab0c
Allow unknown struct fields (i.e. on Map, non-codec) ( #2071 )
2020-03-20 16:30:29 +01:00
Jaco Greeff
3a1634d67f
Add all missing RPC endpoints ( #2070 )
...
* Add all missing RPC endpoints
* Rework RPC return types
* rpc-core interface
* Remove crap test, checked anyway
2020-03-20 13:42:18 +01:00
Jaco Greeff
044efbc6de
Convert jsonrpc & typings to definitions ( #2064 )
...
* Convert jsonrpc & typings to definitions
* Handle empty interface generation (no types)
* Move jsonrpc/create to rpc-core/create
* Create imports
* Remove jsonrpc package, generate rpc-core from defs
* Debug :)
* Generate RPC definitions via interfaces
* Generate md docs
* Remove @polkadot/jsonrpc refs (at least packages)
* No empty types
* Add PAHNTOM "cleanup" gen
* *sigh* regex loop
* Update mock for no jsonrpc
* Add definition export types
* Cleanup linting
* Mocking 1 fix
* Mocking 2 fix
* rpc-core tests updates
* CHANGELOG & docs
* Add jsonrpc (already mapped) to interfaces
* Add aliasses for RPCs
* Fix rpc-core tests
2020-03-19 14:40:54 +01:00
Jaco Greeff
b7af4781ea
Add Initialization to extrinsic phases ( #2063 )
2020-03-18 22:40:53 +01:00
Jaco Greeff
5a7811c80f
Bump metadata ( #2058 )
...
* Bump metadata
* Add missing @types/jest
* Update tests for new metadata
* CHANGELOG for linked map removals
* expand re-added check
2020-03-17 10:37:24 +01:00
Jaco Greeff
4093ef9ffa
Add Identity hasher ( #2044 )
...
* Add Identity hasher
* Expand new V11 storage types
* Cleanups, use actual enum keys
* Sort augmented output (fy-by enhancement)
* Map get
* DEFAULT_FN
2020-03-13 13:39:34 +01:00
Jaco Greeff
8c6505d870
Map signs directly to H512 (no indirection) ( #2038 )
2020-03-13 06:34:46 +01:00
Jaco Greeff
c2f9ef7ca8
Add .keys on storage entries ( #2032 )
...
* Add .keys on storage entries
* Pass isOptional to storage type unwrap
* Linked maps TS types
2020-03-12 09:12:11 +01:00
Jaco Greeff
bb08ac4a28
Align CHANGELOG, bump @polkadot/util ( #2024 )
2020-03-11 09:11:29 +01:00
Jaco Greeff
5b40d95b0f
Disbale identity ( #2016 )
2020-03-09 14:12:52 +01:00
Jaco Greeff
110c9d199d
Add 'everything' on balance format with max
2020-03-08 15:22:06 +01:00
Jaco Greeff
9bf854445c
Fix entries values decoding ( #2011 )
...
* Fix entries values decoding
* Linting
* Properly unwrap storage subs
2020-03-08 12:57:03 +01:00
Jaco Greeff
7051e20d59
StorageKey map decoding test ( #2009 )
2020-03-08 09:13:18 +01:00
Jaco Greeff
6bb421dac6
Fix StorageKey args throw
2020-03-07 10:37:28 +01:00
Jaco Greeff
cdde702db7
Cover all hashers in map/doublemap key decoding ( #2007 )
2020-03-06 21:49:09 +01:00
Jaco Greeff
57e2a9dc14
No BalanceLock override for Polkadot
2020-03-06 16:18:18 +01:00
Jaco Greeff
0e264a029e
Polkadot StakingLedger
2020-03-06 15:58:46 +01:00
Jaco Greeff
adee447cd0
Add .args to decoded StorageKeys ( #2004 )
...
* Add .args to decoded StorageKeys
* Small opts
* Formatting
2020-03-06 13:47:40 +01:00
Jaco Greeff
89992ea03e
Era exposure cleanups via .entries ( #2003 )
2020-03-06 11:06:10 +01:00
Jaco Greeff
2b6aa7972d
Update metadata for current Polkadot/Substrate ( #1999 )
...
* Remove old Polkadot metadata (current only, Substrate tests cover)
* Substrate & Polkadot metadata
* VotesTo230
2020-03-05 16:37:27 +01:00
Jaco Greeff
aaf1273794
Additional derives for new staking points & rewards ( #1994 )
...
* Additional derives for new staking points & rewards
* Fix method name
* StakingLedger update
* Expand derives
* Cleanups
* Cleanup Compact decode
* Cleanup derives
* Update CHANGELOG
* Split types
2020-03-05 15:37:34 +01:00
Jaco Greeff
4feed1db5d
Bump metadata (incl. lazy payouts) ( #1995 )
...
* Bump metadata (inl. lazy payouts)
* Fix currentElected via generic
* Update tests for latest metadata
2020-03-03 16:13:28 +01:00
Jaco Greeff
586c90208c
Add typeAlias to API construction options ( #1989 )
2020-03-02 15:52:14 +01:00
Jaco Greeff
62f46359e2
Update enums with tuple members, regen ( #1982 )
2020-03-01 09:41:03 +01:00
Jaco Greeff
f59cb12ec7
Add .range([from, to?], ...args) on storage queries ( #1979 )
...
* Add .between(from, to) ot storage queries
* between -> range
* CHANGELOG
* checkTypes.manual
* Tested as working
2020-03-01 09:12:17 +01:00
Axel Chalon
94608b0c3f
Make Enum/Tuple constructor use value directly if instance ( #1954 )
...
* Make Enum/Tuple constructor use value directly if instance
* Lint
* Lint
2020-02-28 13:39:11 +01:00
Jaco Greeff
edff4231ff
Dec-clutter UInt & Int ( #1969 )
2020-02-27 18:08:41 +01: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
619ef6f8eb
Align Bool isEmpty, true when false is wrapped ( #1967 )
2020-02-27 14:28:27 +01:00
Jaco Greeff
5165ce7caf
Rework sanitize aliasing ( #1957 )
...
* Rework sanitize aliasing
* Allow special alias override (InherentOfflineReport)
2020-02-26 22:02:19 +01:00
Jaco Greeff
85ae6f949b
Allow construction of HashMap ( #1955 )
...
* Allow construction of HashMap
* WIP... add Map to codec, extend BTreeMap & HashMap from it
* Rework various map tests
* registry.createClass
* createClass in tests
2020-02-26 21:30:38 +01:00
Jaco Greeff
db2ae1324f
Update system.networkState types ( #1951 )
2020-02-26 16:19:33 +01:00
Jaco Greeff
8598002801
Swap to registry.createType ( #1947 )
2020-02-26 11:17:11 +01:00
Jaco Greeff
6be6b027cb
More private field -> #field adjustments ( #1945 )
...
* More private field -> #field adjustments
* Work-around for set.add failures
* Remove FIXME, it is done
2020-02-25 16:53:04 +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
Github Actions
d85d9ca930
[CI Skip] 1.4.0-beta.41
...
skip-checks: true
2020-02-24 19:10:00 +00:00
Jaco Greeff
af643401b8
Remove metadata index hack... and add another one ( #1935 )
...
* Remove metadata index hack
* Parse v9 and V10 upon failure
2020-02-24 20:03:35 +01:00
Jaco Greeff
cbc14cc291
Add new staking types, support derives ( #1828 )
...
* Add new staking types
* StakingLedgerTo213 - StakingLedgerTo223
* StakingLedgerTo223 in polkadot (dev)
* Add derive activeEra
* Map Ponts -> RewardPoints
* StakingLedger override CHANGELOG
* Cleanups
* Apparent CC dupes (don't see it, but cleanup useul)
* Cleanup result formatting for indexes
* Map nextElected -> validators
* Fix StakingLedger to current
* Merge CHANGELOG
* Mention derive staking updates
* Mark derive changes as breaking
2020-02-24 16:52:48 +01:00
Jaco Greeff
51cb64ade7
Cleanup api.createType d.ts, add createType to registry ( #1929 )
...
* Cleanup api.createType d.ts, add createType to registry
* CHANGELOG
2020-02-23 14:57:30 +01:00
Jaco Greeff
869f9b7af9
InterfaceTypes -> keyof InterfaceRegistry ( #1928 )
...
* InterfaceTypes -> keyof InterfaceRegistry
* Renames
2020-02-23 13:43:37 +01:00
Jaco Greeff
553b3df0b2
Augment naming
2020-02-23 12:48:01 +01:00
Jaco Greeff
443706a6e0
Extract full interfaceRegistry ( #1927 )
...
* Extract full interfaceRegistry
* Move augment to top-level in api & types
* Type augment output
* Update with new augmented paths
* Update RPC path
2020-02-23 12:26:10 +01:00
Jaco Greeff
a35da085d6
Augment user type registry ( #1926 )
...
* Augment user type registry
* Augment InterfaceRegistry
* Addition api.createType test
* Import '@polkadot/types/interfaceAugment'
* Skip CC on generated
* Move augmentation to full path imports
* Output to augment-*
2020-02-23 11:48:40 +01:00
Jaco Greeff
196a0891b8
Use isChildClass & isBigInt from @polkadot/util ( #1924 )
...
* Use isChildClass & isBigInt from @polkadot/util
* Allow never
* Bumps
* Common 2.5.1
* Fix overrides
* Remove gh-pages script (in dev)
2020-02-22 17:02:03 +01:00
Jaco Greeff
3bf4c3fac5
Adjust class privates via #, where applicable ( #1921 )
...
* Adjust class priates via #, where applicable
* Remove stray log
* Cleanup rpc-provider
* Small adjustments
* No private access in tests
* Submittable privates
* Use derive for nonce derivation
* Tweak observers
* Alphabetical privates
2020-02-22 11:29:50 +01:00