Jaco Greeff
e4400f0a26
availableBalance should be >0 ( #963 )
...
* availableBalance should be >0
* Remove double >0 check
* Add e2e test
2019-06-12 16:45:45 +12:00
Jaco Greeff
773b8654eb
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-06-12 16:45:45 +12:00
Jaco Greeff
0e5906473b
Update api.derive to use api.queryMulti ( #911 )
...
* session api.queryMulti
* Make a single subscription to retrieve all session info
* Adjustments
* WIP
* Seems mostly comprehensive, need to full test e2e
* e2e tests for operations
* Allow "create from empty"
* skip
* Remove comment
* Remove ancient ?'s
* Update types.ts
2019-06-12 16:45:45 +12:00
Stefanie Doll
fca5fb7110
Added derive e2e tests and documentation ( #898 )
...
* export IExtrinsic
* Switch to localhos & enable tests in promise.spec
* Derive.accounts docs (copy from my other branch) + code examples
* Fixed existing accounts tests and added tests for all accounts.derive methods
* e2e tests and docs/ examples for balances.all and balances.fees
* Removed emty lines below jsdoc info
* tests & documentation dor derive.chain
* Addressed comments from former PR https://github.com/polkadot-js/api/pull/869
* Removed unused import
* obseralbe -> observable
* undo keith' commit
* use correct jsdocs syntax
* Re-enable skip
2019-06-12 16:45:45 +12:00
Jaco Greeff
b573531ebf
Metadata update for latest master ( #901 )
...
* Latest metadata, add EventIndex type
* Add parsed metadata
* Create empty DoubleMap type
2019-06-12 16:45:45 +12:00
kwingram25
afcc7fb701
Check array before running bnMax ( #893 )
...
* Updated with derive.balances.all
* add new keys to votingBalance
* remove multi test
* vestedBalance > 0
* bestNumber bug
* Check balances.all > 0
* Check balances.all > 0
* Check balances.all > 0
* check locks array
* check locks array
2019-06-12 16:45:45 +12:00
kwingram25
be617df21f
Fix error causing balances.all = undefined ( #891 )
...
* Updated with derive.balances.all
* add new keys to votingBalance
* remove multi test
* vestedBalance > 0
* bestNumber bug
* Check balances.all > 0
* Check balances.all > 0
* Check balances.all > 0
2019-06-12 16:45:45 +12:00
kwingram25
abc11890f7
Replace votingBalance -> derive.balances.all ( #883 )
...
* Updated with derive.balances.all
* add new keys to votingBalance
* remove multi test
* vestedBalance > 0
2019-06-12 16:45:45 +12:00