Jaco Greeff
6aa0d90fc0
Add childstate_* RPCs ( #2065 )
...
* Add childstate_* RPCs
* childstate into rpc-core
* PrefixedStorageKey
2020-03-30 13:53:33 +02:00
Jaco Greeff
d338fcb58c
Add derive for council voting info ( #2115 )
...
* Add derive for council voting info
* Update packages/api-derive/src/council/votes.ts
2020-03-30 13:48:14 +02:00
Jaco Greeff
2e83d92adc
Derive for deomcracy nextExternal ( #2108 )
2020-03-27 20:49:18 +01:00
Jaco Greeff
21a2b5f0b7
signAndSend with finalized hash (depending on lag) ( #2104 )
...
* signAndSend with finalized hash (depending on drift)
* Extract lag calc
* mock update
* getSigningHeader
* api.derive.tx (with submittable cleanups)
* Adjust mortal calculations
* Cleanup new tx derives
* Optimize calcs
* Comment cleanups, next-up testing
* Adjust mocks
* Adjust sig (period is now based on metadata)
* Remove extra fn, tested and it works
2020-03-27 13:26:12 +01:00
Jaco Greeff
852e0d4f0b
Additional referendum derive cleanups ( #2093 )
2020-03-25 11:06:16 +01:00
Jaco Greeff
8c011cdc86
Adjust new vote retrieval with entries ( #2080 )
...
* Adjust new vote retrieval with entries
* testing
2020-03-23 11:24:06 +01:00
Jaco Greeff
2071de517d
1.8 ( #2079 )
2020-03-22 18:47:04 +01:00
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
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
a863e5eb95
Non-array nominators
2020-03-17 19:22:16 +01:00
Jaco Greeff
9ea6053a42
1.7 ( #2059 )
2020-03-17 14:39:20 +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
82c1e3f35a
Cater for new non-linked map validator queries ( #2055 )
...
* Cater for new non-linked map validator queries
* Update staking tests
* stakers -> stashes
2020-03-16 11:13:46 +01:00
Jaco Greeff
affa5d390c
Expose derive staking.nextElected ( #2042 )
2020-03-13 08:45:28 +01:00
Jaco Greeff
0fa6b99c9e
Query docs with entries & keys, submittable with paymentInfo ( #2041 )
2020-03-13 07:52:53 +01:00
Jaco Greeff
421594b0eb
Fix .at check, disable (release 1.6.2) ( #2034 )
...
* Fix .at check, disable (release 1.6.2)
* Remove isAt (keep at revert only)
* Grrr....
* yarn installl (really need to add this to version bump script)
2020-03-12 14:53:25 +01:00
Jaco Greeff
ca2a313aec
1.6 ( #2031 )
...
* 1.6 CHANGELOG
* 1.6
* yarn
2020-03-12 09:57:09 +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
b8cdfd226a
Validate storage args ( #1507 )
...
* Validate storage args
* Fix linting
* Update imports
* Update type extraction
* Move storage extraction to util
* Re-add CHANGELOG entry
* Add DoubleMap tests
* Adjust error for linked
* formatting
* Split map/doublemap
* Cleanups
* Update error sigs
* Just join
2020-03-12 07:29:18 +01:00
Jaco Greeff
1d8b6a79ef
Rework rpc.queryStorage to return [Hash, Codec[]][] ( #2025 )
2020-03-11 12:21:09 +01:00
Jaco Greeff
bb08ac4a28
Align CHANGELOG, bump @polkadot/util ( #2024 )
2020-03-11 09:11:29 +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
71b33e2e42
1.5 ( #2001 )
...
* 1.5
* Util bumps
* Install after bump
2020-03-06 08:03:12 +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
0e297c6779
Add rpc.raw interface, convert RPC to Augmented wrappers ( #1990 )
...
* Add rpc.raw interface, convert RPC to Augmented
* Augmentaton attempt...
* Failing test
* Fix augmentation
* Cleanup linting
* Expose .raw on decorated RPCs
* .raw into CHANGELOG
* Stray eslint overrides
2020-03-03 08:49:24 +01:00
Jaco Greeff
586c90208c
Add typeAlias to API construction options ( #1989 )
2020-03-02 15:52:14 +01:00
Jaco Greeff
af1a3385cc
Raise error on parsing errors ( #1987 )
2020-03-02 09:09:27 +01:00
Jaco Greeff
b588238836
Handle import module name conflicts ( #1983 )
2020-03-02 00:07:34 +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
Jaco Greeff
619ef6f8eb
Align Bool isEmpty, true when false is wrapped ( #1967 )
2020-02-27 14:28:27 +01:00
Jaco Greeff
d531dd374f
1.4.2 ( #1963 )
...
* 1.4.2
* Actual version bump
* Rework api.tx decoratation (with tests)
2020-02-27 11:16:23 +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
ca76dc170c
Add typegen sample ( #1950 )
...
* Add typegen sample
* Link to example from types getting started
* cc skip
2020-02-26 12:38:19 +01:00
Jaco Greeff
2d40d370f9
1.4 ( #1949 )
2020-02-26 11:52:37 +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
dcf053633b
CHANGELOG & small strict adjustments ( #1940 )
2020-02-25 09:44:13 +01:00
Jaco Greeff
e7d38a5e59
Update CHANGELOG ( #1936 )
2020-02-24 22:34:54 +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
86ce696808
Update CHANGELOG ( #1932 )
...
* Update CHANGELOG
* typos
2020-02-24 15:01:47 +01:00
Jaco Greeff
bab79b6473
CHANGELOG 3.8 breaking change ( #1930 )
2020-02-24 09:30:56 +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
790deca695
Update docs for isInBlock (rather late than never) ( #1923 )
...
* Update docs for isInBlock (rather late than never)
* Only warn on isInBlock filtering
2020-02-22 14:53:46 +01:00
Jaco Greeff
4540495a44
BigInt support (& some TS typing cleanups) ( #1919 )
...
* Some TS typing cleanups
* docs building again
* yarn.lock rewrite
* tweaks
* BigInt support
* Checktypes with BigInt
* AccountIndex support for BigInt
* Fix ApiPromise signAsync
2020-02-21 17:26:05 +01:00
Jaco Greeff
543b4846f9
Fixed64 to an interface ( #1906 )
...
* Fixed64 to an interface
* Cleanups, re-use creation
* Fix Int export from codec
* Fix Int export
2020-02-20 13:03:29 +01:00
Jaco Greeff
2b8ce1b3b7
Check AbstractInt bitLength on construction ( #1902 )
...
* Check AbstractInt bitLength on construction
* Language cleanups
2020-02-20 08:00:41 +01:00
Jaco Greeff
427f821430
Fix 11 Jan 2019 issue ( #1900 )
...
* Fix 11 Jan 2019 issue
* Update SignedBlock tests
2020-02-19 19:57:59 +01:00
Jaco Greeff
cc5b5c81c9
Subscribe to runtime updates ( #1896 )
...
* Subscribe to runtime updates
* console.log -> l.log
* Add l.warn to api augment
* Expand logs with added & removed
* Re-do everything when genesis has changed
* augmentObject complexity
* Dedup [string[], strings[]]
* Update CHANGELOG
2020-02-19 15:45:03 +01:00
Jaco Greeff
c8af75088a
Add injectMetadata to api (with decoration) ( #1892 )
...
* Add injectMetadata to api (with decoration)
* warn function
* OCD
* OCD #2
* toHuman entry expansion
* CHANGELOG for injectMetadata
2020-02-18 21:30:43 +01:00