Commit Graph
454 Commits
Author SHA1 Message Date
Hamza Tokuchi d05ccdb5d7 small typos (#2529) 2020-08-28 12:03:13 +02:00
Jaco Greeff 47fc4a2b3c Bump deps w/ eslint (#2302)
* Bump deps w/ eslint

* Additional cleanups

* Additional

* @polkadot/types done

* Additional

* @polkadot/typegen done

* Additional

* @polkadot/rpc-core done

* Additional

* Additional

* Additional

* docs

* @polkadot/api-derive done

* @polkadot/api done

* @polkadot/api-contracts done

* Update tests
2020-05-24 09:24:45 +02:00
Jaco Greeff e7a01f9780 Dump dev (incl. eslint header checks) (#2142) 2020-04-07 11:20:07 +02:00
Jaco Greeff 58de0b8b9c Rewrite yarn.lock (#2127) 2020-04-01 23:49:56 +02:00
Jaco Greeff 0dc46445bc Bump dev (incl. lint fixes) (#2126)
* Bump dev (incl. lint fixes)

* Fix call encoding (stepped into that one)

* Event struct order

* Update with missing tuple type (getTypeDef type)
2020-04-01 22:44:34 +02:00
Jaco Greeff b3a6b3dcb5 Bump dev, arrow functions (#2077) 2020-03-22 07:31:55 +01:00
Jaco Greeff bdfc582ba5 Fix link to GH source 2020-02-26 13:30:19 +01:00
Jaco Greeff ca76dc170c Add typegen sample (#1950)
* Add typegen sample

* Link to example from types getting started

* cc skip
2020-02-26 12:38:19 +01:00
Jaco Greeff 8598002801 Swap to registry.createType (#1947) 2020-02-26 11:17:11 +01:00
Jaco Greeff c17f93a3ec Update docs for system.account (#1944) 2020-02-25 17:01:41 +01:00
Jaco Greeff 790deca695 Update docs for isInBlock (rather late than never) (#1923)
* Update docs for isInBlock (rather late than never)

* Only warn on isInBlock filtering
2020-02-22 14:53:46 +01:00
Jaco Greeff 5c4920db6f Remove balances.freeBalance & system.accountNonce refs (#1847)
* Remove freeBalance references

* Cleanup placeholders

* Add substrate templates to .gitignore

* Swap all use of system.accountNonce

* typo
2020-02-14 13:52:45 +01:00
Jaco Greeff b24fe30a40 Split merge docs gen into sep process (#1482)
* Split merge docs gen into sep process

* Update doc refs
2019-10-12 16:00:22 +02:00
James Lefrère e7f488ed89 Fixes for examples (#1408)
* Add various fixes for the examples
* Add the workaround for proposals for `impl_version` 94
* TODO: fix `toPromise` issue for queries with RxJS
2019-09-20 10:15:46 +02:00
James Lefrère 73d7a57d38 Add .eq() usage to docs and fix docs typos (#1405)
* Use `eq` for example

* Use the base `eq` function rather than `===`, so that comparisons are made in a consistent manner in docs

* Add `eq` example

* Add an example of using the `eq` method to the base docs

* Adjust docs/examples

* Fix a number of typos in the static docs and examples
* Adjust various comments in docs examples such that they are written in a consistent case

* Fix metadata docs spacing

* Adjust the metadata documentation generation such that unnecessary spaces are trimmed
2019-09-19 11:43:47 +02: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
Shawn Tabrizi aebe56f471 Update subscribeNewHeads in example (#1376) 2019-09-09 11:56:34 +02:00
Jaco Greeff 2dd7cc0e69 Typescript-eslint 2 (#1353)
* Make a start

* More minor cleanups

* Some more cleanups

* Last round?

* Exclude build folders
2019-09-02 07:01:32 +02:00
Jaco Greeff b595428372 Lazily create registry types (also solves resolution order) (#1291)
* Lazily create registry types (also solves resolution order)

* Typo in comment

* Alphabetical definitions (ordering detected)

* Make fallback & SessionKeys work as expected

* Cleanup registration, user-types takes priority

* typo

* Api constructors only take options

* Cleanup typos

* Don't create classes while validating metadata

* Adjust badges... well, waiting for CI, so...

* typo
2019-08-10 14:24:04 +02:00
Jaco Greeff 9dd0c6cfd8 Update examples for 0.90 (#1225)
* Update examples for 0.90

* Fix number typo

* Adapth to use timestamp.now (blockPeriod now in all versions)
2019-07-29 20:19:52 +02:00
Jaco Greeff 67b66ee34c Update README.md (#1219) 2019-07-28 00:27:10 +02:00
Jaco Greeff 71c5920b1f eslint rules (#1099)
* Off to the races - 3760 problems (1794 errors, 1966 warnings)

* Convert Array<T> -> T[] (not all correct, eg. extends)

* () => { -> (): void  => {

* get is/as -> public get is/as

* public for getters, constructors & base Codec

* Some cleanups from previous overzealous search & replace

* Under 2k, 1874 problems (649 errors, 1225 warnings)

* ^^^ check that commit for details ;)

* Minor.

* rm config header

* Minor cleanups

* Default to tslint, eslint as option

* Trigger

* Update jsonrpc

* 1494 problems (433 errors, 1061 warnings)

* 1103 problems (135 errors, 968 warnings)

* 899 problems (9 errors, 890 warnings)

* 483 problems (9 errors, 474 warnings) (ignore any... for now)

* 366 problems (9 errors, 357 warnings)

* 336 problems (9 errors, 327 warnings)

* 148 problems (9 errors, 139 warnings)

* 31 problems (8 errors, 23 warnings)

* 0, 0
2019-07-14 12:15:14 +02:00
Jaco GreeffandAmaury Martiny 2eee6cfea7 Swap to Mortal transactions by default (#1081)
* Start of mortal tx

* Swap to Mortal transcations by default

* Update SubmittableExtrinsic.ts

* WIP (pre master merge)

* Remove eraLength, allow era to specify

* Oops, linting.... it happens in the best of families

* WIP debugging immortals

* Re-surrect with working meta, and e2e tests

* Update docs/examples/promise/07_make_transfer_with_allowed_block_permissions_only/index.js

Co-Authored-By: Amaury Martiny <amaury.martiny@protonmail.com>

* Update docs/examples/promise/07_make_transfer_with_allowed_block_permissions_only/index.js

Co-Authored-By: Amaury Martiny <amaury.martiny@protonmail.com>

* Remove useless birth/death calls
2019-07-09 15:56:10 +02:00
Jaco Greeff 7ca589094b Example with basic at and multi queries (#1076)
* Example with at and basic multi queries

* 05
2019-07-08 14:02:00 +02:00
JesseAbram ffe1c71172 added 07 Example showing how to make a transfer with allowed block permissions folder in docs (#1062)
* added 07 folder in docs

* spelling and formatting
2019-07-01 15:09:14 +02:00
Axel Chalon 3ab581119d Adapt to new @polkadot/keyring KeyPair interface (#994)
* Adapt to new @polkadot/keyring KeyPair interface

* Pull in common 0.93.0-beta.4
2019-06-13 10:44:47 +02:00
Chevdor 2768306bce Add doc about subscribing to balance changes for several accounts (#982)
* Add doc about subscribing to balance changes for several accounts

* Fix typo
2019-06-12 12:04:02 +02:00
Jaco Greeff bdd1ca4f3d 0.79 (#944)
* 0.79

* @polkadot/api -> *
2019-05-22 11:45:32 +02:00
Jaco Greeff e2b15adaf2 Update keyring, new ss58 checksums (#812) 2019-03-29 15:16:11 +01: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 a9ad4af9c8 Update Alice & Bob addesses (sr25519, examples) (#810) 2019-03-29 10:40:38 +01:00
Jaco Greeff 0157f0b2e2 Cleanup old docs/ (now on gh-pages branch) (#747) 2019-02-28 17:22:42 +01:00
Travis CI 2e2e5e8ba2 [CI Skip] 0.45.18 2019-02-28 13:02:48 +00:00
Travis CI 177e5ec519 [CI Skip] 0.45.17 2019-02-27 15:39:51 +00:00
Travis CI 4849bfced5 [CI Skip] 0.45.16 2019-02-27 13:57:34 +00:00
Travis CI 0463f04e2c [CI Skip] 0.45.15 2019-02-26 15:22:01 +00: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
Travis CI 879fa28d0d [CI Skip] 0.45.14 2019-02-25 16:39:16 +00:00
Travis CI acbd19bb28 [CI Skip] 0.45.13 2019-02-22 12:38:17 +00:00
Travis CI 61a80d87e3 [CI Skip] 0.45.12 2019-02-22 09:56:56 +00:00
Travis CI f8d2c43e42 [CI Skip] 0.45.11 2019-02-22 09:04:26 +00:00
Travis CI d8db0f9b78 [CI Skip] 0.45.10 2019-02-21 14:20:42 +00:00
Travis CI b7fa5e9f28 [CI Skip] 0.45.9 2019-02-20 16:27:08 +00:00
Travis CI 9138aa7325 [CI Skip] 0.45.8 2019-02-20 07:24:38 +00:00
Travis CI 2ff46733d0 [CI Skip] 0.45.7 2019-02-20 06:39:41 +00:00
Travis CI 081f87d11f [CI Skip] 0.45.6 2019-02-19 20:21:55 +00:00
Travis CI d965fb49fc [CI Skip] 0.45.5 2019-02-19 16:52:21 +00:00
Travis CI 0e4671fc5b [CI Skip] 0.45.4 2019-02-19 15:58:39 +00:00
Travis CI 5229bec04d [CI Skip] 0.45.3 2019-02-19 15:38:47 +00:00
Travis CI 9e055399e2 [CI Skip] 0.45.2 2019-02-19 14:26:46 +00:00