Jaco Greeff
8ba4029633
Fix elections typo
2019-12-09 23:01:46 +01:00
Keith Ingram
3a70594594
Combine elections.info derive ( #1659 )
...
* Combine elections.info derive
* remove tests
2019-12-09 22:05:56 +01:00
Jaco Greeff
a695d2a5b5
Sort members by backing ( #1625 )
2019-12-02 15:30:30 +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
Jaco Greeff
d6239cbe56
Bump metadata ( #1590 )
...
* Bump metadata
* Cleanup linting
* Build interfaces
* ... some much for "no mess, no fuss"...
2019-11-19 21:41:53 +01:00
Amaury Martiny
0a27f63423
Make api.const.*.* typed ( #1584 )
...
* Make api.const.*.* typed
* Fix tsc errors
* Remove ConstantCodec
* as any as
* Remove as any
2019-11-18 17:21:54 +01:00
Jaco Greeff
a70af20eba
Derive fallbacks for election w/o electionsPhragmen ( #1569 )
2019-11-14 14:52:31 +01:00
Jaco Greeff
2c25936e2c
Display elections runnersUp in reverse order ( #1565 )
2019-11-13 10:52:24 +01:00
Jaco Greeff
2875fdf2cf
Wrap all derives in memo (like rpc-core) ( #1564 )
2019-11-11 14:25:07 +01:00
Jaco Greeff
2be97310d3
Add runnersup to elections ( #1555 )
2019-11-07 21:51:54 +01:00
Jaco Greeff
022c7ea645
Swap internal derives to use api.derive.* ( #1553 )
...
* Swap internal derives to use api.derive.*
* Rx vs normal decorate
* Small cleanups
* Res-use sessions
* Cleanup types
* Fix refCount lost subs
* Small cleanups
2019-11-07 17:34:53 +01:00
Jaco Greeff
3998b1bcbd
Whack derive memo ( #1546 )
...
* Whack derive memo
* Bump common
2019-11-05 14:36:53 +01:00
Jaco Greeff
2371d6a29c
Remove double-up-drr (memo vs rpc) ( #1541 )
...
* Remove inner memo (no double-up on stringify)
* Validators-specific query
2019-11-03 23:47:55 +01:00
Jaco Greeff
e601ae27a1
Re-add derive memo (def. has an impact) ( #1539 )
2019-11-03 13:28:42 +01:00
Jaco Greeff
506b042f8c
Remove derive memos ( #1538 )
...
* Remove derive memos
* Remove outer memo
* Over-eager replace
2019-11-03 11:38:36 +01:00
Jaco Greeff
7cc961f789
Staking overview derive ( #1537 )
...
* Staking overview derive
* Expand derives
* Extract currentIndex/currentEra
* WIP
* Controllers opt
* Add memo
* Memomize the whole lot
* Doc building fixes
* Doc fixes #2
2019-11-02 23:10:10 +01:00
Jaco Greeff
dc105e6b31
Sub/unsub cleanups ( #1535 )
...
* Sub/unsub cleanups
* drr full idAndIndex
* Memo on nick call
* refCountDelay
* Remove scheduler param, always asap
* Flatten
* Test cleanups
* Make tests pass
* Remove logs
* Drop nick memo
* sourceConnection.unsubscribe
* Small cleanups
2019-11-01 14:17:47 +01:00
Jaco Greeff
8379689eaa
Cleanup staking info ( #1532 )
...
* Cleanup staking info
* Cache calls
* V1, V2 (Aura & Babe) tested & working
* Hopefully pacify docs build
* Second time lucky?
* Third time lucky?
* Fouth time
2019-10-30 14:15:20 +01:00
Jaco Greeff
a53c924248
Council -> consts ( #1531 )
...
* Council -> consts
* Additional info, expose Balance
* Types
2019-10-30 00:28:40 +01:00
Jaco Greeff
a30d467618
Split candidates to separate query ( #1526 )
...
* Split candidates to seperate query
* Split only candidates
2019-10-28 14:25:34 +01:00
Jaco Greeff
f8084c2d12
Derive for electionsPhragmen ( #1519 )
2019-10-26 10:32:11 +02:00
Jaco Greeff
db3cb47d05
Firm up on derive typings & results ( #1489 )
...
* Firm up on derive typings & results
* Move assertion (eslint vs ts, round 1, fight!)
2019-10-16 10:13:13 +02:00
Jaco Greeff
a54286c98b
Allow string (ss58) address input for approvalsOfAt ( #1435 )
...
* Allos string (ss58) address input for approvalsOfAt
* Rework deps
2019-10-02 13:31:04 +02:00
Jaco Greeff
17a10fbffe
Allow approvalsOf to take string as "who" input ( #1434 )
...
* Allow approvalsOf to take string as "who" input
* Re-add <SetIndex> (build fails)
2019-10-02 12:15:50 +02:00
Jaco Greeff
5ee2caf00e
More small readability enhancements ( #1296 )
...
* More small readability enhancements
* Pacify CC on manual checks
2019-08-11 22:44:02 +02:00
Jaco Greeff
82a1c25f17
Tests for approvalFlagToBool ( #1251 )
...
* Tests for approvalFlagToBool
* Merge master
2019-08-02 20:44:25 +02:00
Jaco Greeff
02cd1331aa
Move Event, Address, AccountId, AccountIndex to generic ( #1202 )
...
* Move Event, Address, AccountId, AccountIndex to generic
* Move AccountId, AccountIndex, Address & Event to generic
* Move Vote
2019-07-26 16:39:28 +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
2a37b8746d
Rename srml to interfaces ( #1198 )
...
* Rename srml to interfaces
* newline, package.json
2019-07-26 12:08:17 +02:00
Jaco Greeff
478f54c703
Convert RPC classes to primitive classes or /srml types ( #1192 )
...
* Convert RPC classes to primitive classes or /srml types
* Lint passes... lokking at tests next.
* Tests pass.
* Types with basic docs (lots of work here)
* Update StorageKey.spec.ts
* Add injector to metadata doc generation
* Fix import
2019-07-26 10:23:37 +02:00
Jaco Greeff
39323a8896
Convert all type/* (and some primitives) to srml/* ( #1189 )
...
* Convert (almost-all) non-primitives (and some primitives) to srml/*
* Move Vote to primitives, remove type folder
* Move Balance :-o
* Fixup tests, override Balance.toRaw()
2019-07-25 16:34:47 +02:00
Jaco Greeff
a25110b281
Move additional classes to definition-only ( #1165 )
...
* Move additional classes to definition-only
* Move some additional quick-hit types
* Last of the easier type/* conversions
* Remove rhd files
* Remove commented line
* Add injector to types loading
* typo
* Update comment
* Merge master
* Rework & organize CHANGELOG
* Some small helper cleanups
2019-07-25 10:32:26 +02:00
kwingram25
e1cf002a76
Improve voter derive calls ( #1181 )
...
* voterPositions
* cleanup
* rename var
* changes
* export VoterPosition
2019-07-24 19:46:05 +01:00
Jaco Greeff
ebc2fbe3ee
Move (some) from session & elections to srml/types ( #1158 )
...
* Move (some) from session & elections to srml/types
* Just use createType instad of (new ClassOf(type))(value)
* Cleanup generation script (import file duplication)
2019-07-23 11:47:45 +02:00
kwingram25
2ff632b534
Derived elections member type ( #1147 )
...
* elections
* headers
* lint
* lint
* lint
* lint
* fixes
* lint
* voterSets
* derived elections member type
* lint
2019-07-19 23:11:39 +02:00
kwingram25
ab74db5126
Elections derive ( #1143 )
...
* elections
* headers
* lint
* lint
* lint
* lint
* fixes
* lint
* voterSets
2019-07-19 21:27:02 +02:00
Jaco Greeff
37af934be6
Bump deps, export elections ( #1146 )
2019-07-19 00:25:26 +02:00
Jake Naviasky
efb38dbdf8
Fixing array bug in approvalFlagToBool derive. ( #1144 )
...
* Fixing array bug in approvalFlagToBool derive.
* Replicating 'take until last approval' logic.
2019-07-18 23:43:30 +02:00
Jake Naviasky
28cf21dd4f
Adding derives for election sets and approval flags. ( #1141 )
...
* Adding derives for election sets and approval flags.
* Bugfixes to derived election functions.
* Attempting linter fix.
* Fixing typing error.
* Another eslint fix.
* Adding explicit types to api calls.
2019-07-17 22:15:43 +02:00