Commit Graph
817 Commits
Author SHA1 Message Date
Travis CI b347f8f13f [CI Skip] 0.90.0-beta.6 2019-07-30 06:25:38 +00:00
Jaco Greeff c90a4ba69d Bump metadata (#1231) 2019-07-30 08:14:50 +02:00
Travis CI 44202ceceb [CI Skip] 0.90.0-beta.5 2019-07-30 05:20:40 +00:00
Travis CI f364a61338 [CI Skip] 0.90.0-beta.4 2019-07-30 04:58:24 +00:00
Travis CI 56e8ef6ebb [CI Skip] 0.90.0-beta.3 2019-07-29 19:34:23 +00:00
Travis CI 29bda0b311 [CI Skip] 0.90.0-beta.2 2019-07-29 18:30:20 +00:00
Travis CI a322fad2e9 [CI Skip] 0.90.0-beta.1 2019-07-29 07:58:31 +00:00
a45e313c84 Upgrade guide (to current) (#1194)
* Upgrade guide (to current)

* ClassOf

* JSON example

* s/srml/interfaces/

* Typos

* Update UPGRADING.md

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

* Add copy-to-apps script

* Properly extend exstended derive types

* Round out UPGRADING

* Version in CHANGELOG

* Typos

* Update UPGRADING.md

* Update CHANGELOG

* Bump common

* 0.90.0-beta.0

* Cleanups

* Split 0.82 & 0.90

* Update UPGRADING.md

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

* Update UPGRADING.md

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

* Update UPGRADING.md

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

* Update UPGRADING.md

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

* Update UPGRADING.md

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

* Update UPGRADING.md

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

* Update UPGRADING.md

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

* Update UPGRADING.md

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

* Update UPGRADING.md

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

* Update CHANGELOG.md

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

* Update CHANGELOG.md

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

* Typo

* findFunction -> api.findCall
2019-07-29 09:48:06 +02:00
Jaco Greeff c31bd20c6a Remove Promise chain, fix formatting test subscription (#1218) 2019-07-28 00:20:43 +02:00
Jaco Greeff 99368a6d4d createType allows multiple params (#1207) 2019-07-27 08:05:11 +02:00
Jaco Greeff 02cd1331aa Move Event, Address, AccountId, AccountIndex to generic (#1202)
* Move Event, Address, AccountId, AccountIndex to generic

* Move AccountId, AccountIndex, Address & Event to generic

* Move Vote
2019-07-26 16:39:28 +02:00
Amaury Martiny 441148889d CreateType is typed, add createTypeUnsafe just in case (#1199)
* Use unsafe internally

* Add comments

* Remove <> in createType

* Fix lint

* Fix classOf

* Remove createType from Text

* Fix lint

* Fix Fallback type

* Fix fallback in createType
2019-07-26 14:00:25 +02:00
Jaco Greeff 2a37b8746d Rename srml to interfaces (#1198)
* Rename srml to interfaces

* newline, package.json
2019-07-26 12:08:17 +02:00
Jaco Greeff 700eb7e1f4 Remove injectDefinitions import, prefer injector (#1195)
* Convert RPC classes to primitive classes or /srml types

* Lint passes... lokking at tests next.

* Tests pass.

* Types with basic docs (lots of work here)

* Update StorageKey.spec.ts

* Add injector to metadata doc generation

* Fix import

* Remove injectDefinitions import, prefer injector
2019-07-26 11:12:17 +02:00
Jaco Greeff 478f54c703 Convert RPC classes to primitive classes or /srml types (#1192)
* Convert RPC classes to primitive classes or /srml types

* Lint passes... lokking at tests next.

* Tests pass.

* Types with basic docs (lots of work here)

* Update StorageKey.spec.ts

* Add injector to metadata doc generation

* Fix import
2019-07-26 10:23:37 +02:00
Jaco Greeff 39323a8896 Convert all type/* (and some primitives) to srml/* (#1189)
* Convert (almost-all) non-primitives (and some primitives) to srml/*

* Move Vote to primitives, remove type folder

* Move Balance :-o

* Fixup tests, override Balance.toRaw()
2019-07-25 16:34:47 +02:00
Travis CI 65bc0a4a57 [CI Skip] 0.82.0-beta.96 2019-07-24 21:09:04 +00:00
Travis CI 039d3337c8 [CI Skip] 0.82.0-beta.95 2019-07-24 19:46:43 +00:00
Jaco Greeff 79e5f7c9cc Metadata v7 (#1182)
* Make a start... static is in, code copied as a start.

* Get exports (more-or-less) right

* Well, the v7/* tests pass... now just to tweak storage generation

* Linting is happy, it doesn't mean it will work...

* It compiles... ship it.
2019-07-24 21:34:51 +02:00
Travis CI 2a3cc92e91 [CI Skip] 0.82.0-beta.94 2019-07-24 19:17:32 +00:00
Travis CI 3827353c35 [CI Skip] 0.82.0-beta.93 2019-07-24 18:59:23 +00:00
Travis CI 8bafdc7596 [CI Skip] 0.82.0-beta.92 2019-07-24 15:38:23 +00:00
Amaury Martiny 66ab3ac502 Cache getTypeClass (#1183)
* Put memoizee only in types

* Add some tests

* Add failing tests

* Make instanceof work

* Better tests
2019-07-24 17:22:49 +02:00
Travis CI b89e0d5522 [CI Skip] 0.82.0-beta.91 2019-07-24 14:43:45 +00:00
Travis CI e15db8aed9 [CI Skip] 0.82.0-beta.90 2019-07-24 11:26:16 +00:00
Travis CI 9e918bb228 [CI Skip] 0.82.0-beta.89 2019-07-24 10:59:39 +00:00
Jaco Greeff 37022d2e23 Small rpc-core storage cleanups (#1168) 2019-07-24 12:47:50 +02:00
Travis CI 3d0cf19fad [CI Skip] 0.82.0-beta.88 2019-07-24 09:58:14 +00:00
Travis CI 46796a7ce8 [CI Skip] 0.82.0-beta.87 2019-07-23 20:25:29 +00:00
Travis CI e3a93abd21 [CI Skip] 0.82.0-beta.86 2019-07-23 14:22:09 +00:00
Travis CI 42d7256470 [CI Skip] 0.82.0-beta.85 2019-07-23 09:59:20 +00:00
Jaco Greeff ebc2fbe3ee Move (some) from session & elections to srml/types (#1158)
* Move (some) from session & elections to srml/types

* Just use createType instad of (new ClassOf(type))(value)

* Cleanup generation script (import file duplication)
2019-07-23 11:47:45 +02:00
Travis CI 8925a9a925 [CI Skip] 0.82.0-beta.84 2019-07-23 09:26:20 +00:00
Travis CI b4f5ae7911 [CI Skip] 0.82.0-beta.83 2019-07-23 09:08:25 +00:00
Jaco Greeff f9a3f3e53f Fix linked maps with defaults (#1162)
* isPedantic matches [] with isEmpty

* Fix undefined.undefined on  headKey

* Adjust fallback for linked maps

* Add tests for the linked map fallbacks (head and value)
2019-07-23 10:56:45 +02:00
Travis CI 6858cd0212 [CI Skip] 0.82.0-beta.82 2019-07-23 08:54:05 +00:00
Travis CI be8e096c66 [CI Skip] 0.82.0-beta.81 2019-07-22 21:10:07 +00:00
Travis CI 5280ca01fd [CI Skip] 0.82.0-beta.80 2019-07-22 15:19:06 +00:00
Travis CI ed0979a50c [CI Skip] 0.82.0-beta.79 2019-07-22 13:00:00 +00:00
Jaco Greeff dd7b138c02 Move contracts classes to srml/contracts (now as types-only) (#1153)
* Move contracts classes to srml/contracts (now as types-only)

* Exclude srml generated files from codeclimate

* Alos excluse types/src/scripts

* Replace Compact<T>.toBn() with unwrap()

* Fic compact type (#1156)

* Remove as unknown as T (T typing is working)

* Move interfaces back to the relevant types.ts
2019-07-22 14:49:08 +02:00
Travis CI 0c7794198a [CI Skip] 0.82.0-beta.78 2019-07-21 08:47:01 +00:00
Travis CI 80305f5a34 [CI Skip] 0.82.0-beta.77 2019-07-20 09:00:07 +00:00
Jaco Greeff 5e0f62c793 Bump deps (#1148) 2019-07-20 10:49:01 +02:00
Travis CI 5c105e4bd1 [CI Skip] 0.82.0-beta.76 2019-07-19 21:24:11 +00:00
Jaco Greeff d5fb040e92 Bump deps 2019-07-19 23:13:24 +02:00
Travis CI 1d6e4ad638 [CI Skip] 0.82.0-beta.75 2019-07-19 19:38:08 +00:00
Travis CI cbd717ca65 [CI Skip] 0.82.0-beta.74 2019-07-19 10:41:40 +00:00
Jaco Greeff 61065a2ac8 Bump deps 2019-07-19 12:27:47 +02:00
Travis CI 66e77dd67b [CI Skip] 0.82.0-beta.73 2019-07-19 05:17:47 +00:00
Jaco Greeff 5fe63b4053 Bump deps 2019-07-19 07:06:41 +02:00