Commit Graph
1908 Commits
Author SHA1 Message Date
Jaco Greeff bed3f9f4c5 Add rpc_methods (#1397)
* Add rpc_methods

* Adjust interface tests

* Add account_nextIndex & contracts_call, filter

* Rework AbstractArray includes with some

* Adjust tests

* Ordering

* Correct definitions (pull in from methods)

* Be agressive on filtering, regardless of isOptional

* async/await in filterRpcMethods

* map Text[] -> string[]

* Correct naming for account_nextIndex

* Remove/don't remove rpc_methods as applicable

* Cleanup method handling errors
2019-09-16 11:40:54 +02:00
Travis CI 5576dacd9a [CI Skip] 0.93.0-beta.1 2019-09-15 19:01:08 +00:00
Jaco Greeff 5d2caddcaf Support recursive type registration (#1396)
* Testcase for recursive types

* hasClass & hasDef

* Drop .only

* Option<Recursive> (simplified test)

* Expand cross-ref tests, plain getOrThrow
2019-09-15 20:48:45 +02:00
Jaco Greeff ed7bd61230 Sanitize types in createType (#1395) 2019-09-15 20:48:16 +02:00
Travis CI cd272e890f [CI Skip] 0.93.0-beta.0 2019-09-13 10:40:44 +00:00
Jaco Greeff 0f21d522d7 Don't fail session info when babe is not available (#1391) 2019-09-13 12:27:39 +02:00
Travis CI 957f3f404c [CI Skip] 0.92.1 2019-09-12 13:42:03 +00:00
Jaco Greeff d1105c899f 0.92 (#1390)
* Metadata for current Substrate master

* 0.92 doc updates

* @polkadot/util 1.4.1

* Update static polkadot metadata

* Version bump
2019-09-12 15:29:48 +02:00
Travis CI df97bc2bf8 [CI Skip] 0.92.0-beta.9 2019-09-12 10:26:07 +00:00
Travis CI eed83fa5d9 [CI Skip] 0.92.0-beta.8 2019-09-12 09:34:51 +00:00
Jaco Greeff b62b1b248d Add specVersion to mini extraction (#1387) 2019-09-12 11:21:41 +02:00
Travis CI f28fff78b6 [CI Skip] 0.92.0-beta.7 2019-09-12 08:17:23 +00:00
Jaco Greeff 8b80ce7132 Expose keyring via @polkadot/api (#1385)
* Expose keyring via @polkadot/api

* typo, not -> now
2019-09-12 10:03:25 +02:00
Travis CI 8accd2945e [CI Skip] 0.92.0-beta.6 2019-09-11 16:03:32 +00:00
Travis CI 4e52a2ec02 [CI Skip] 0.92.0-beta.5 2019-09-11 15:44:52 +00:00
Jaco GreeffandThibaut Sardan 55fb391465 Things I wish I knew... (#1374)
* Make a start

* Intro

* Installation

* Flatten

* Move METHODS_*.md to substrate/*.md

* Basics

* Apply suggestions from code review

Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>

* Substrate links

* Create

* api.consts

* Typo

* Typo, ms -> md

* types.basics (SIP)

* Type basics

* api.consts jumps to api.query

* Start to api.query

* Basic queries

* Point starting to actual overview

* api.rpc

* Derive detour

* Query subs & query multi

* Apply suggestions from code review

Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>

* typo

* Query extras

* Basic transactions

* Misplaced ,

* keyring WIP

* Keyring wrap-up

* Subs SIP

* tx subs more WIP

* tx subs

* Small types cleanups

* Apply suggested changes from @JoshOrndorff

* Clarify naked await

* tx wrapping WIP

* Wrap api.wrap

* TS placeholder

* [WIP] markers for not-started

* Clarifying comments

* Additional clarifications

* types.extend... well, extended...

* Remove *nix

* Warp up TypeScript... it is it (for now)

* Some small text clarifications

* Some cleanups

* Cleanups, typos

* keyring cleanups

* Cleanups

* Wrap

* api.wrap wrapped... hopefully

* typos

* Registration typos

* typescript typos, hope I caught most...
2019-09-11 17:32:34 +02:00
Travis CI 3e417f4f94 [CI Skip] 0.92.0-beta.4 2019-09-11 11:02:56 +00:00
Jaco Greeff 158410011e Bump deps (#1384) 2019-09-11 12:51:00 +02:00
Travis CI 7383b1e1d7 [CI Skip] 0.92.0-beta.3 2019-09-10 18:37:45 +00:00
Jaco Greeff ad9d21cae2 Remove outdated blockNumber refs. in API docs (#1382)
* Remove outdated blockNumber refs

* ExtendedHeader

* Update subscribeNewHeads.ts
2019-09-10 20:23:37 +02:00
Travis CI 777007438c [CI Skip] 0.92.0-beta.2 2019-09-10 17:54:33 +00:00
Jaco Greeff a1a52fbdb6 Bump common (#1380) 2019-09-10 19:42:24 +02:00
Travis CI f9f5573abe [CI Skip] 0.92.0-beta.1 2019-09-10 16:07:03 +00:00
Jaco Greeff bdd0cb9d9a Remove ExtError from use (removed from util) 2019-09-10 17:55:02 +02:00
Travis CI 0096d17f2f [CI Skip] 0.92.0-beta.0 2019-09-09 15:43:23 +00:00
Jaco Greeff 3e3d03693a Set the ss58Format based on chain properties (#1378)
* Set the ss58Format based on chain properties

* Mock returns system_properties
2019-09-09 17:31:16 +02:00
Travis CI d06f88d036 [CI Skip] 0.91.1 2019-09-09 13:56:35 +00:00
Jaco Greeff 05d697ce3e 0.91 (#1377)
* Deps & CHANGELOG

* Current master metadata (format only)

* 0.91
2019-09-09 15:43:49 +02:00
Travis CI 0ea4d6934b [CI Skip] 0.91.0-beta.23 2019-09-09 10:08:33 +00:00
Travis CI ee7225ca0e [CI Skip] 0.91.0-beta.22 2019-09-05 10:12:17 +00:00
Jaco Greeff a0c6cd558e Bump deps (#1371) 2019-09-05 12:00:38 +02:00
Travis CI aa4dd63e2c [CI Skip] 0.91.0-beta.21 2019-09-05 09:05:46 +00:00
Jaco Greeff fac0934c46 Alternative lazy Submittable (#1370)
* Aletrnative lazy Submittable

* Extrinsic -> submittable

* .default
2019-09-05 10:52:32 +02:00
Travis CI acf00d3bbe [CI Skip] 0.91.0-beta.20 2019-09-04 15:51:55 +00:00
Jaco Greeff a3b0dde2cd Update metadata, system DispatchError type (#1367) 2019-09-04 17:39:22 +02:00
Travis CI af7a528a11 [CI Skip] 0.91.0-beta.19 2019-09-04 11:19:11 +00:00
Amaury Martiny b889e56b34 Make author_insertKey public arg required (#1366)
* Make author_insertKey public arg required

* Remove blank line

* Build interfaces

* Rename to publicKey
2019-09-04 13:06:11 +02:00
Travis CI fbf1f24f99 [CI Skip] 0.91.0-beta.18 2019-09-04 06:44:14 +00:00
Ian He 630b8318c0 Fix raw payload (#1365)
* fix inconsistent between toPayload() and toRaw()

* add comments
2019-09-04 08:30:41 +02:00
Travis CI 208a2a17cf [CI Skip] 0.91.0-beta.17 2019-09-04 06:11:38 +00:00
Ian He f66b2d00c4 move SignerPayload to @polkadot/types (#1360)
* move SignerPayload to @polkadot/types

* fix errors

* update changelog

* improve naming and code style
2019-09-04 07:58:15 +02:00
Jaco Greeff ffe7201fbc Add explicit payload comment (clarification) (#1363) 2019-09-04 07:57:00 +02:00
Travis CI 00aca88519 [CI Skip] 0.91.0-beta.16 2019-09-03 11:46:52 +00:00
Jaco Greeff 6ec3815669 Bump 1.x check to v5 metadata (#1362) 2019-09-03 13:34:39 +02:00
Travis CI 4b044799f6 [CI Skip] 0.91.0-beta.15 2019-09-03 09:51:41 +00:00
Jaco Greeff 7b844274fd User-provided types for chain & spec (#1361)
* User-provided types for chain & spec

* Remove unused node name

* Remove re-registration warning
2019-09-03 11:39:22 +02:00
Travis CI 7809ea5dad [CI Skip] 0.91.0-beta.14 2019-09-02 16:12:58 +00:00
Jaco Greeff 9ffeda1749 Fix redeemables (#1358) 2019-09-02 17:58:36 +02:00
Travis CI 1968380f89 [CI Skip] 0.91.0-beta.13 2019-09-02 12:35:55 +00:00
Jaco Greeff bc3d21b66b Add extraction of calls-only metadata (#1356)
* Add extraction of calls-only metadata

* Add --ws option to chain info

* Validate types
2019-09-02 14:22:49 +02:00