Jaco Greeff
2875fdf2cf
Wrap all derives in memo (like rpc-core) ( #1564 )
2019-11-11 14:25:07 +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
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
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
22bf06e6e0
Remove derive {Struct,Vector}Any (new typing magic) ( #1019 )
...
* Remove derive {Struct,Vector}Any (new typing magic)
* Import ordering
* Small lint fix
2019-06-17 10:41:32 +02:00
Jaco Greeff
2d94ac7d24
Alias votingBalance -> all
2019-05-27 16:00:38 +02:00
Jaco Greeff
acaca67385
derive.{balances, contracts, staking, session} returns Codec ( #953 )
...
* derive.{balances, contracts, staking, session} returns Codec
* Json -> StructAny (as per VectorAny)
* multi returns VectorAny
* VectorAny casts
* Bump common
2019-05-27 12:49:19 +02:00
Jaco Greeff
5445314d95
Bump deps ( #861 )
...
* Bump deps
* Align with published common
* Fix rxjs to 6.4.0 (false deprecations on 6.5.1)
2019-04-29 13:47:55 +02:00
Jaco Greeff
34888bd4fb
Remove /index imports (swap to bare) ( #773 )
...
* Remove /index imports (swap to bare)
* Bump common
2019-03-14 09:02:55 +01:00
Jaco Greeff
bfe5661d8f
derive.balances.* handle Address & AccountIndex everywhere ( #639 )
2019-01-28 11:22:11 +01:00
Jaco Greeff
a69cff1c64
Add derive.staking.intentionsBalances ( #595 )
...
* Add derive.staking.intentionsBalances
* Skip e2e test
* ts-lint?
* Alignment with new signatures, remove all slices
2019-01-17 09:55:08 +01:00
Amaury Martiny
d07ed8ac38
Refactor api-promise/rx ( #566 )
...
* Use a generic abstract OnCall
* Add OnCall for Promise
* First run at fixing extrinsics
* Fix types
* Make submittable extrinsic work
* Move file
* Make derive work
* Fix types
* Only call metadata once
* Make tests pass
* Put event emitter in apirx
* Fix small bugs
* Fix tests
* Fix bug decorateStorage
* Make tests pass for tx
* Move rpc base to apirx
* Fix lint
* Fix small bugs
* Fix bug with isSubscription
* Fix codeclimate
* Revert
* Add tslint disable line
* Fix lint
* Skip e2e
* Typo
* Lint
* Re-add combinator back
* Add ._rx in Base
* Make extrinsics work
* Update derivex
* Fix bug lint
* Fix circular dep
* Fix bug e2e
* Remove useless check
* Add description comment
* Clean stuff
* Move assert to Base
* Bump version, update CHANGELOG
* Make _rx private
* Private emit
2019-01-16 15:42:59 +01:00
Amaury Martiny
2a2df9a1c3
Add derive functions ( #564 )
...
* Add drr
* Update headers
* Lint
* Copy other functions
* Account indexes
* accountIndexToId
* accountIdAndIndex
* Fees
* votingBalance
* votingBalances
* votingBalancesNominatorsFor
* validatingBalance
* validatingBalances
* bestNumberFinalised
* eraLength
* Add drr
* eraProgress
* votes
* referendumInfos
* referendumVotesFor
* referendums
* Clean code
* Add tests
* Fix lint
* Fix bug eraProgress
* Fix bug fees
* combineLatest without array
* Fix lint
2019-01-10 17:39:25 +01:00