Commit Graph
1252 Commits
Author SHA1 Message Date
Jaco Greeff a083a6bb38 signAndSend for SubmittableExtrinsic (#558)
* signAndSend for SubmittableExtrinsic

* signAndSend for ApiPromise

* Import odering
2019-01-10 18:02:39 +01:00
Travis CI 7b89e55f9a [CI Skip] 0.38.10 2019-01-10 16:44:46 +00: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
Travis CI a93b2f70c7 [CI Skip] 0.38.9 2019-01-10 10:43:16 +00:00
Jaco Greeff 07d61397d5 Upgrade example with real wasm (via sudo now) (#562)
* Upgrade test with real wasm

* Update upgrade sample to use sudo
2019-01-10 11:37:51 +01:00
Travis CI 9f1457c286 [CI Skip] 0.38.8 2019-01-10 10:21:09 +00:00
Jaco Greeff 62723caf55 Always resolve ready when created, never reject (#563) 2019-01-10 11:16:02 +01:00
Travis CI 89a3c9647a [CI Skip] 0.38.7 2019-01-09 17:01:59 +00:00
Jaco Greeff f65563478e Update README.md 2019-01-09 17:56:10 +01:00
Travis CI 86adea2c1b [CI Skip] 0.38.6 2019-01-09 16:06:11 +00:00
Jaco Greeff e177727851 Add api-derive dep (#561) 2019-01-09 17:00:51 +01:00
Travis CI 20e8f66dc6 [CI Skip] 0.38.5 2019-01-09 15:10:15 +00:00
Jaco Greeff 6ddc9e408c Support and return default values (#547)
* Support and return default values

* e2e tests for queries, with and without defaults

* remove .only

* Remove unused Codec import

* Remove commented import

* Add default creation test

* Test creation with empty Bytes

* Default storage test

* Remove non-existent throw test
2019-01-09 16:04:56 +01:00
Jaco Greeff c17036b028 Change checking for re-sububscriptions (#555) 2019-01-09 16:04:23 +01:00
Travis CI de65a41bf0 [CI Skip] 0.38.4 2019-01-09 12:08:23 +00: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
Travis CI 07d7112f8a [CI Skip] 0.38.3 2019-01-09 10:42:24 +00:00
Jaco Greeff 887a0d3ccc Add link to api-derive in README (#556) 2019-01-09 11:37:04 +01:00
Travis CI ea20e195f1 [CI Skip] 0.38.2 2019-01-09 10:05:24 +00: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
Travis CI 22123f9491 [CI Skip] 0.38.1 2019-01-08 14:12:39 +00:00
Jaco Greeff 2e474d7b05 Compact<Index> minor bump, update CHANGELOG (#551)
* Comapct<Index> minor bump, updatANGELOG

* Update CHANGELOG.md
2019-01-08 15:05:10 +01:00
Travis CI 779d78cc0e [CI Skip] 0.37.13 2019-01-08 13:35:53 +00:00
Amaury Martiny 483a66257a Update metadata (#550) 2019-01-08 14:30:39 +01:00
Jaco Greeff d9655f8a21 Allow Tuple types defined as struct or Array (#548)
* Allow Tuple types defined as struct or Array

* Update tests (not requiring injection)

* Update KeyValue.ts
2019-01-08 14:28:07 +01:00
Travis CI 0409c54b9c [CI Skip] 0.37.12 2019-01-08 13:26:07 +00:00
Jaco Greeff d589a1bbfd Compact<Index> in extrinsics (#515)
* Basic compact index

* Nonce is only used in signatures, alias it

* typo

* s/NonceCompact/IndexCompact/

* Update tests
2019-01-08 14:21:14 +01:00
Travis CI ca91141931 [CI Skip] 0.37.11 2019-01-08 12:44:40 +00:00
Jaco Greeff 7f316b6864 Merge branch 'master' of github.com:polkadot-js/api 2019-01-08 13:39:45 +01:00
Jaco Greeff 8bb40cf5a9 Add sytstem_health rpc endpoint 2019-01-08 13:39:38 +01:00
Travis CI b642bfc8b9 [CI Skip] 0.37.10 2019-01-08 12:23:02 +00:00
Jaco Greeff 783db16cea Consistency in exposing header hashes (#546)
* Consistency in exposing header hashes

* Cleanup comments
2019-01-08 13:18:09 +01:00
Travis CI bc4ada647b [CI Skip] 0.37.9 2019-01-08 11:35:25 +00:00
Jaco Greeff dc62214aae Expose status from result, remove now-unused api-observable docs (#545) 2019-01-08 12:30:18 +01:00
Travis CI cf2d73b69e [CI Skip] 0.37.8 2019-01-07 20:16:46 +00:00
Jaco Greeff aef4b74a52 Add length prefixc manually (sample) (#543) 2019-01-07 21:11:46 +01:00
Travis CI 38d6235ac1 [CI Skip] 0.37.7 2019-01-07 17:10:10 +00:00
Jaco Greeff 7658399800 Add examples for upgradeKey & transfer events (#542)
* Add examples for upgradeKey & transfer events

* Remove CI-generated file

* Update pcakage.json for examples
2019-01-07 18:05:22 +01:00
Travis CI 6d21f80334 [CI Skip] 0.37.6 2019-01-07 14:49:30 +00:00
Jaco Greeff 70ff3c5dfc Use rpc-rx internally to api-promise (#539)
* Use rpc-rx internally to api-promise

* Don't swallow errors

* Remove unused imports
2019-01-07 15:44:15 +01:00
Travis CI f2748347c5 [CI Skip] 0.37.5 2019-01-07 09:19:02 +00:00
Jaco Greeff b5d49ebbb2 Swap order of combinator inputs, fn + args (as in storage) (#537)
* Swap order of combinator inputs, fn + args (as in storage)

* Update api exposed combination

* Update CHANGELOG usage (small doc fix)
2019-01-07 10:14:14 +01:00
Travis CI f5dbb8a505 [CI Skip] 0.37.4 2019-01-06 10:28:40 +00:00
Jaco Greeff 95af8dbb6d Ad link to substrate storage section (#535) 2019-01-06 11:23:30 +01:00
Travis CI 461403cb28 [CI Skip] 0.37.3 2019-01-06 10:10:27 +00:00
Jaco Greeff d1a4415be9 Subscription method rendering (#532)
* Subscription method rendering

* Update MetadataMd.ts
2019-01-06 11:05:36 +01:00
Travis CI 227b29976d [CI Skip] 0.37.2 2019-01-04 20:09:35 +00:00
Jaco Greeff 4ade1e7415 Bump deps (#531) 2019-01-04 21:04:36 +01:00
Travis CI 5520d4873b [CI Skip] 0.37.1 2019-01-04 15:26:50 +00:00
Jaco Greeff 6678d7255c Remove api-observable (#530)
* 2019

* Remove api-observable

* tuples (SomeLonelyType) -> SomeLonelyType

* Bump to 0.37.0
2019-01-04 16:18:44 +01:00