Commit Graph
1503 Commits
Author SHA1 Message Date
Travis CI 1ccc0a6876 [CI Skip] 0.82.0-beta.20 2019-06-22 20:15:42 +00:00
Jaco Greeff b51761376b Fix StorageData checks, fix Option toHex 00/01 (#1052)
* Option.toHex should not add 00/01 (implied)

* Option tests

* We have a failing test, finally

* Adapt createType to cater for storage with length
2019-06-22 22:05:36 +02:00
Travis CI b5b4ec5737 [CI Skip] 0.82.0-beta.19 2019-06-22 16:39:12 +00:00
Jaco Greeff ed19ba91e1 Latest polkadot metadata (#1050)
* Latest polkadot metadata

* The first bunch of Polkadot types... WinningData is an issue...

* VectorFixed, allowing for [<Type>; <length>]

* Add WinningData
2019-06-22 18:28:59 +02:00
Travis CI 9d6f9662cc [CI Skip] 0.82.0-beta.18 2019-06-21 14:59:54 +00:00
Jaco Greeff 3b8db2ed3d Rename SessionKeys fields (#1046)
* Rename SessionKeys fields

* Shorten
2019-06-21 16:49:20 +02:00
Jaco Greeff f30c516099 More ergonomic contracts interfaces (RxJs only initial) (#1015)
* More ergnomic contracts interfaces

* extend SubmittableResult

* Allow creation of contract from blueprint

* "decorate" Contract (just playing with interfaces)

* Make actual messages calls

* Rename to Rx{Blueprint, Cond, Contract}

* Add exports

* Support contract & contracts endpoints

* Remove unneeded ApiType generics (may return)

* Comment 2.x/1.x detection
2019-06-21 16:48:00 +02:00
Travis CI 5e5bb9984b [CI Skip] 0.82.0-beta.17 2019-06-21 07:15:50 +00:00
Jaco Greeff d027eb0c47 Bump deps (#1044) 2019-06-21 09:04:23 +02:00
Travis CI 8c91d4b50e [CI Skip] 0.82.0-beta.16 2019-06-20 12:15:24 +00:00
Jaco Greeff d4c408d28b Explicity contract encoding tests (non e2e) (#1040) 2019-06-20 14:06:10 +02:00
Travis CI 52fc98f1ef [CI Skip] 0.82.0-beta.15 2019-06-20 10:47:53 +00:00
Amaury Martiny 88008e2d44 Add rpc-core in api (#1041) 2019-06-20 12:38:34 +02:00
Travis CI 43b76e14ec [CI Skip] 0.82.0-beta.14 2019-06-20 09:16:08 +00:00
Amaury Martiny fe16c09f01 refactor: Remove rpc-rx (#1037)
* Remove rpc-rx

* Make some stuff work

* Fix tests

* Update Base

* Change some stuff

* Remove rpc-rx mentions

* Add correct tests

* Make cache work

* Fix little bugs

* Rename to spec

* Fix lint

* Fix little bugs

* Add comment

* Add correct test

* Update header

* Add test

* Add comments

* Indentation
2019-06-20 11:06:13 +02:00
Travis CI 49d7668534 [CI Skip] 0.82.0-beta.13 2019-06-19 19:24:50 +00:00
Jaco Greeff 7023214581 s/contract/contracts/ (#1036)
* s/contract/contracts/

* Derive rename
2019-06-19 21:12:16 +02:00
Amaury Martiny 7b461e7f21 toJSON returns the correct type (#1038)
* Introduce AnyJson

* Other small fixes
2019-06-19 21:11:32 +02:00
Travis CI fb357dc455 [CI Skip] 0.82.0-beta.12 2019-06-18 17:02:25 +00:00
Stefanie Doll 53e5a0ce9b Fix typescript errors in recently added tests (#1032)
* type header

* Fix typescript errors in recently added tests

* Fix HeaderExtended type
2019-06-18 18:52:23 +02:00
Travis CI b9d631a04b [CI Skip] 0.82.0-beta.11 2019-06-18 16:10:11 +00:00
Stefanie Doll c3216a524e Add child_storage and getKeys methods (#1012)
* Add childStorageKeyPrefix to type-storage package

* WIP

* fix failing build

* wrap StorageKey

* no new line

* Added childStoragePrefix param

* Add childStorageKey param

* Tests for child methods

* Finalized tests

* linting

* Changed get_keys test to :code

* Alphabetical imports

* store hex values in consts

* follow substrate order & empty line fixes

* alphabetical export

* Correct hex value for :child_storage:
2019-06-18 17:58:50 +02:00
Travis CI 59182ca294 [CI Skip] 0.82.0-beta.10 2019-06-18 15:10:56 +00:00
Stefanie Doll 33fa3c6237 Removed auth storage keys (#1030)
* removed auth storage keys

* removed changes on autogenerated files

* re-add deprecated storage methods

* linting

* linting
2019-06-18 16:59:14 +02:00
Travis CI 79361eb398 [CI Skip] 0.82.0-beta.9 2019-06-18 04:31:21 +00:00
Jaco Greeff 8e60f9dfc7 Bump deps (incl. TS 3.5.2) (#1029)
* Bump deps (incl. TS 3.5.2)

* typescript-plugin-markdown 2.0.4
2019-06-18 06:21:22 +02:00
Travis CI f93ef348a3 [CI Skip] 0.82.0-beta.8 2019-06-17 12:52:03 +00:00
Jaco Greeff 6f3c8f7862 Update EventRecord tests (#1028)
* Update EventRecord tests

* Update metadata with system events exposed

* Align new EventRecord and fallback tests
2019-06-17 14:42:35 +02:00
Travis CI 69b29e6499 [CI Skip] 0.82.0-beta.7 2019-06-17 08:51:58 +00:00
Jaco Greeff 9d00dce569 SubmittableResult does not extend Struct (#1023) 2019-06-17 10:42:28 +02:00
Jaco Greeff 993bc05892 USize is now non-constructable (#1022)
* USize is now unconstructable

* usize CHANGELOG entry
2019-06-17 10:41:57 +02:00
Jaco Greeff 22bf06e6e0 Remove derive {Struct,Vector}Any (new typing magic) (#1019)
* Remove derive {Struct,Vector}Any (new typing magic)

* Import ordering

* Small lint fix
2019-06-17 10:41:32 +02:00
Jaco Greeff 683ed396c2 Allow Text to construct from hex (#1018)
* Allow Text to construct from hex

* Simplify decodeText
2019-06-17 10:40:59 +02:00
Travis CI a9e3b88cdd [CI Skip] 0.82.0-beta.6 2019-06-15 21:47:10 +00:00
Jaco Greeff f9605cd710 Update nextKeyFor to cater for SessionKeys or SessionKey (#1025)
* Update nextKeyFor to cater for SessionKeys or SessionKey

* no StructAny (yes, done in other PR, but we are touching this...)
2019-06-15 23:37:24 +02:00
Travis CI a97f0ece81 [CI Skip] 0.82.0-beta.5 2019-06-15 19:17:31 +00:00
Jaco Greeff 7e5b09a255 Seal updated to match master (s/Signature/Bytes/) (#1024)
* Seal updated to match master (s/Signature/Bytes/)

* FR*NK updates
2019-06-15 21:03:40 +02:00
Travis CI ce2e40e08a [CI Skip] 0.82.0-beta.4 2019-06-15 17:15:32 +00:00
Jaco Greeff ea991e4ccc Additional types for latest substrate master (#1016)
* Additional types for latest substrate master

* Method tests updated for new structure

* Adjust extrinsic test indexes

* Adjust type-extrinsics tests

* Adapt for new session/era calc

* Small comment update

* Update with patch for system

* Adjust tests with system calls in metadata
2019-06-15 19:06:02 +02:00
Travis CI 364b442eb7 [CI Skip] 0.82.0-beta.3 2019-06-15 09:37:40 +00:00
Jaco Greeff d38ccd11af Export StorageFunctionPromise (actually used in apps) (#1020) 2019-06-15 11:26:25 +02:00
Travis CI e69136f3e3 [CI Skip] 0.82.0-beta.2 2019-06-14 15:23:57 +00:00
Hyungsuk Kang 0d12b082b6 Update fees.ts (#1014) 2019-06-14 17:14:15 +02:00
Travis CI 1a7b3f4ca6 [CI Skip] 0.82.0-beta.1 2019-06-14 11:58:07 +00:00
Jaco Greeff 4cba24c134 Create api-contract (baseline for useful interactions) (#1007)
* Create api-contract (baseline for useful interactions)

* Add CHANGELOG entry (breaking)
2019-06-14 13:48:53 +02:00
Travis CI 6e7a126f4d [CI Skip] 0.82.0-beta.0 2019-06-14 10:22:31 +00:00
Amaury Martiny 63846ac367 Remove onCall, use decorateMethod (#987)
* update signature of doublemap storage function

* add test cases

* update doublemap implementation

* update implementation

* remove duplicate test case

* update test cases

* Add hkt

* Fix derive types

* Make derive work

* Fix some bugs

* Fix some bugs

* More stuff

* Make some more stuff work

* Fix types in derive

* Fix all tests in derive

* Change back ApiType

* Remove vscode

* Fix Submittables

* Fix some errors

* Fix some bugs

* Change some stuff

* Fix merge conflict

* Fix types

* Add console.log

* Add console.log

* Re-add decorateMethod

* Fix tests

* Skip e2e

* Small fixes

* Fix signAndSend

* Fix typings in test

* Fix lint

* Add comments

* One line

* Remove useless

* URI->ApiType

* Indentation
2019-06-14 12:12:53 +02:00
Travis CI ce310decf0 [CI Skip] 0.81.1 2019-06-14 08:50:24 +00:00
Jaco Greeff 6d5f297c32 0.81 (#1010) 2019-06-14 10:41:23 +02:00
Travis CI 8df15c2d89 [CI Skip] 0.81.0-beta.19 2019-06-14 08:09:19 +00:00