Jaco Greeff
f95763906e
Add codec exports to types index ( #689 )
...
* Add codec exports to types index
* Use actual index exports (internally)
* Merge {AccountId, Balance, Moment}Of into parent classes
2019-02-13 16:00:59 +01:00
Amaury Martiny
be17bf51c6
Increase time periods for more consistent tests ( #690 )
2019-02-13 10:03:35 +01:00
Jaco Greeff
b40d7a301e
Return ReferendumIndex along with info (derive) ( #669 )
...
* Return ReferendumIndex along with info (derive)
* Rename index
* Doc rename
2019-02-09 07:54:50 +02:00
Jaco Greeff
bfe5661d8f
derive.balances.* handle Address & AccountIndex everywhere ( #639 )
2019-01-28 11:22:11 +01:00
Jaco Greeff
3ced943f36
derive.chain.* allows for non-available session ( #638 )
...
* derive.chain.* allows for non-available session
* Cleanup typing
* Slightly more robust validators init
2019-01-26 16:45:11 +01:00
Jaco Greeff
64670bfc9c
Add derive.chain.bestNumberLag ( #629 )
...
* Add derive.chain.bestNumberLag
* type typo
2019-01-23 18:00:44 +01:00
Jaco Greeff
db832f0207
Add derive.chain.{getHeader,subscribeNewHead} with author ( #602 )
...
* Add derive.chain.{getHeader,subscribeNewHead} with author
* tslint cast, ignore
2019-01-18 14:44:55 +01:00
Jaco Greeff
a3e421f665
Allow for balance/indices lookups ( #596 )
...
* Allow for balance/indices lookups
* Latest metadata
* Indices work
* Update json with actual decoded
* Update Type.ts
* Some tests updated
* Update final tests
* Remove .only from derive e2e (really skip it)
2019-01-17 15:11:50 +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
Amaury Martiny
6781bbaa26
Publishreplay(1) for all derive functions ( #557 )
...
* Add drr
* Transform all to publishreplay(1)
* Add comment in test
* Update headers
* Update headers
* Lint
2019-01-09 13:03:05 +01:00
Amaury Martiny
f6c93e48b7
Add derive functions ( #540 )
...
* Make types work
* Add test for derive
* Skip e2e
* Change description
* Add some comments
* Add caching
* Integrate cache
* Add tests
* Add test
* Fix types in tests
* Add e2e tests
* Add comments
* Fix lint
* Bump versions
* Remove useless stuff
* Address grumbles
2019-01-09 10:59:56 +01:00