Jaco Greeff
d1825c749a
Update metadata to latest (Amount & AssetOf types) ( #726 )
...
* Update metadata to latest (Amount & AssetOf types)
* Allow derive fees to work with fees module
2019-02-20 17:21:20 +01:00
Jaco Greeff
bf1a4a9e08
Ovreride toJSON on {Header, ReferendumInfo}Extended ( #723 )
2019-02-20 07:33:53 +01:00
Jaco Greeff
447ab2fde0
Option construction & ReferendumInfoExtended ( #720 )
...
* Option construction & ReferendumInfoExtended
* Simplify, optional index
2019-02-19 17:46:22 +01:00
Jaco Greeff
f820dfcffa
Inject index properly into ReferendumInfo (with unwrap) ( #718 )
...
* Inject inject properly into ReferendumInfo (with unwrap)
* Use unwrapOr
* Fix type import
2019-02-19 15:20:45 +01:00
Jaco Greeff
f807a93e87
Handle storage with optional modifiers ( #717 )
...
* Handle storage with optional modifiers
* Storage docs indicate Option
* Cleanup Option logic
* Convert Optional derive to use Option
* Bump version, update changelog
* Update CHANGELOG description
* Enum.spec.js -> Enum.spec.ts
* Add isEmpty to primitive types
2019-02-19 13:47:36 +01:00
Jaco Greeff
cf5ca51f7f
Split types into primitive (base) & type (derived) ( #715 )
...
* Split types into primitves & structs
* Bump version (breaking change)
2019-02-19 09:40:14 +01:00
Jaco Greeff
8beac7b5a8
Use startWith for initial index/id values ( #716 )
2019-02-19 08:40:49 +01:00
Jaco Greeff
b16ccb253a
Inject custom derives ( #711 )
2019-02-18 11:58:50 +01:00
Jaco Greeff
4735253cbd
Bump deps ( #702 )
...
* Bump deps
* Update keyring
2019-02-15 17:38:49 +01:00
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