Commit Graph
1659 Commits
Author SHA1 Message Date
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
Jaco Greeff 6d9699a090 Apply fallback on non-sub storage (e.g. at) (#1004)
* Apply fallback on non-sub storage (e.g. at)

* Fallback test in rpc-code (getStorage)
2019-06-14 09:59:59 +02:00
Travis CI 732936280a [CI Skip] 0.81.0-beta.18 2019-06-14 07:26:02 +00:00
Jaco Greeff 4f9aecc207 Merge branch 'master' of github.com:polkadot-js/api 2019-06-14 09:11:08 +02:00
Jaco Greeff c2b3716c33 Revert "Move contracts into api-contract" (#1005)
This reverts commit af0e8cf07a.
2019-06-14 09:09:08 +02:00
Jaco Greeff 7bdf0fbbe5 Revert "Move contracts into api-contract"
This reverts commit af0e8cf07a.
2019-06-14 09:06:57 +02:00
Jaco Greeff af0e8cf07a Move contracts into api-contract 2019-06-14 09:05:21 +02:00
Travis CI 9bf765be08 [CI Skip] 0.81.0-beta.17 2019-06-13 19:47:27 +00:00
Axel Chalon b3f2a11e1e KeyValue now extends Tuple instead of Struct (#1001) 2019-06-13 21:37:57 +02:00
Travis CI c17d8a7c80 [CI Skip] 0.81.0-beta.16 2019-06-13 16:44:31 +00:00
Axel Chalon 5533b1b961 Add .off method to ApiBase (#999)
* Add .off method to ApiBase

* Update CHANGELOG
2019-06-13 18:34:47 +02:00
Travis CI ac7acc9254 [CI Skip] 0.81.0-beta.15 2019-06-13 16:15:50 +00:00
Amaury Martiny 4a22a43d37 fix: signAndSend and new Keyring (#1000)
* fix: signAndSend and new Keyring

* Fix identation
2019-06-13 18:06:23 +02:00
Travis CI b26a8e284b [CI Skip] 0.81.0-beta.14 2019-06-13 14:08:05 +00:00
Jaco Greeff 29805f7366 Common bumps to latest (#998) 2019-06-13 15:58:02 +02:00
Jaco Greeff 5ca32863d0 Allow for contract Vec, Option and Tuple arg/return (#997)
* Allow for contract Vec & Option arg/return

* Support nesting, fixed vecs and tuples

* Support Result

* Update CHANGELOG

* Add additional types added to CHANGELOG (& re-order)

* Add metadata entry (ready to go)
2019-06-13 15:46:47 +02:00
Travis CI b1022919c1 [CI Skip] 0.81.0-beta.13 2019-06-13 12:52:11 +00:00