Jaco Greeff
475cb4fa69
Move Digest to interfaces ( #2164 )
...
* Move Digest to interfaces
* Unconstructable typos
2020-04-14 12:09:36 +02:00
Jaco Greeff
eae573e6a2
Simplify entries() decoding ( #2159 )
2020-04-13 12:33:24 +02:00
Jaco Greeff
e0bde927d1
1.10 ( #2158 )
...
* 1.10
* CHANGELOG
* key extract example
2020-04-13 07:16:43 +02:00
Jaco Greeff
a833dccdaf
All private prefixed with _ ( #2157 )
...
* All private prefixed with _
* Fix test
2020-04-11 22:21:55 +02:00
Jaco Greeff
e5d9bbc264
Filter old rewards with stakingLedger (ledger can update) ( #2155 )
...
* Filter old rewards with stakingLedger (ledger can update)
* Cleanup internal functions
2020-04-10 18:06:14 +02:00
Jaco Greeff
25580b2026
Update CHANGELOG, bump deps ( #2150 )
2020-04-09 15:44:07 +02:00
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
295cd2a7e0
1.9 ( #2124 )
2020-04-01 12:14:00 +02:00
Jaco Greeff
39c44bb5aa
Split @polkadot/types/known into @polkadot/types-known ( #2120 )
...
* Split @polkadot/types/known into @polkadot/types-known
* Rreadme link
* tsconfig typo
* script aliasses
2020-03-31 13:40:59 +02:00
Jaco Greeff
0bdbf4b7a7
Use querystorageAt for map entries (optional) ( #2119 )
2020-03-31 09:17:36 +02:00
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