Stefanie Doll
c30d3a80e8
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-05-15 11:50:28 +02:00
Jaco Greeff
3557657034
Expose queryMulti on api ( #909 )
...
* Expose queryMulti on api
* Convert contract fees to queryMulti
2019-05-15 10:41:48 +02:00
Stefanie Doll
db78aeb225
Fix for RPC bugs caused by uk spelling ( #904 )
...
* Replaced UK with US spelling
* -ised to -ized
* UK -> US spelling in chain rpc methods
* Tests for RPC chain methods on Alex
2019-05-14 21:27:16 +02:00
Jaco Greeff
4378ed4bb8
Remove combineLatest where multi is used ( #895 )
...
* Remove combineLatest where multi is used
* Add e2e test for derive.controllers
2019-05-10 12:06:02 +02:00
kwingram25
168b12d98f
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-05-09 20:13:31 +02:00
kwingram25
b8fabfeade
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-05-09 17:20:30 +02:00
kwingram25
c2ccf35c5c
Replace votingBalance -> derive.balances.all ( #883 )
...
* Updated with derive.balances.all
* add new keys to votingBalance
* remove multi test
* vestedBalance > 0
2019-05-09 12:38:56 +02:00
Stefanie Doll
adec070434
multi calls for democracy.votes and staking.controllers ( #887 )
...
* .multi for democracy.votes & stating.controllers
* Removed leftover comment from https://github.com/polkadot-js/api/pull/875
* no new line at the end
2019-05-09 09:53:15 +02:00
Jaco Greeff
07792ff54a
Add contract fees ( #875 )
2019-05-07 15:53:40 +02:00
Jaco Greeff
21dab00203
Basic same-type multi queries ( #866 )
...
* Basic same-type multi queries
* Remove extra map, straight to switchMap
2019-05-03 13:54:05 +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
153e6e993f
Properly map indexes (swapped in balances -> indices change) ( #831 )
...
* Properly map indexes (swapped in balances -> indices change)
* Typos
2019-04-09 16:54:47 +02:00
Jaco Greeff
6fef86cc78
Adjust support fo US English as per substrate ( #811 )
...
* Rename ExtinsicStatus Finalised -> Finalized
* Finalised heads -> Finalized
2019-03-29 14:12:56 +01:00
Jaco Greeff
5a292db92f
Derive controllers from stashes ( #806 )
...
* Derive controllers from stashes
* Fix combineLatest import
2019-03-28 14:29:05 +01:00
Jaco Greeff
34ca31c68d
Bump dependencies ( #788 )
...
* Bump dependencies
* Remove signing length check
2019-03-20 15:15:34 +01:00
Amaury Martiny
3e43bc5ea9
fix: remove cache from api-derive ( #779 )
...
* Remove cache from api-derive
* Skip e2e
* Update headers to 2019
2019-03-15 12:45:50 +01: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
Ian He
c87502d254
fix cross-package reference in d.ts ( #763 )
...
* fix cross-package reference in d.ts
* fix check
2019-03-08 10:26:43 +01:00
Jaco Greeff
b313614935
Pull in vuepress foir docs (as opposed to gitbook) ( #742 )
...
* Pull in latest @polkadot/dev, cleanup existing *.html
* Cleanups (old gitbook interfaces)
* Bump, WIP
* Ready for testing
* Update examples
* Include source
* Cleanup links
* Adjust links
* Add typedoc exclusions
* Default classes from class files
* Adjust imports
* Adjust config
* Re-add types split
* Update links to substrate interfaces
* Anchors for metadata
* Adjust links
* Restore HTML (to be deleted on CI)
* Bump deps
* Re-gen yarn.lock
* Remove a in links
* Adjust interfaces
2019-02-26 15:21:39 +01:00
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