Commit Graph
831 Commits
Author SHA1 Message Date
Jaco Greeff 82cbd9727d Track Finalised events on api-rx (as per promise) (#500)
* Track Finalised events on api-rx (as per promise)

* Align naming of tracking helper

* Remove wtf

* Warn on extrinsic not found

* Fix unused imports
2018-12-21 11:12:41 +01:00
Travis CI addba69054 [CI Skip] 0.35.2 2018-12-21 09:38:18 +00:00
Jaco Greeff 900da0c852 Pull in large-value Compact encoding changes (#508)
* Pull in large-value Compact encoding changes

* Update size check
2018-12-21 10:32:11 +01:00
Travis CI b4edc31783 [CI Skip] 0.35.1 2018-12-20 22:03:38 +00:00
Jaco Greeff 5f5ce7a098 Bump package (should have been done with metadata, breaking) (#507) 2018-12-20 22:58:02 +01:00
Travis CI 3a1ee408ec [CI Skip] 0.34.12 2018-12-20 19:39:13 +00:00
Amaury Martiny 51751d0781 Add support for default values (#484)
* Create AbstractInt

* Use abstract class

* Bump packages

* Allow decoding metadata with default values

* Add console.logs

* Add latest rpc

* Add Bytes decode

* Get encoded lenght right

* Remove useless tests

* Add getter

* Metadata json with default as hex

* FIx bugs

* Fix lint

* EOF add line

* Remove file

* Update latest rpc

* Update static.ts

* Typo

* Don't create types for default values for now, leave as Bytes

* Update & skip tests

* Remove unused file
2018-12-20 20:33:32 +01:00
Travis CI 11fec2b1a7 [CI Skip] 0.34.11 2018-12-20 17:18:00 +00:00
Amaury Martiny b934846248 Add missing types (#504)
* Update rpc

* Simplify Type

* Create AbstractInt

* Add integers

* Add missing types

* Add tests for negative numbers

* Use abstract class

* Fix comments

* Bump packages

* FIx bugs

* Fix lint

* EOF add line

* Fix comment

* Typo
2018-12-20 18:12:25 +01:00
Travis CI c53c574a55 [CI Skip] 0.34.10 2018-12-20 11:26:31 +00:00
Jaco Greeff 919a73ccf6 Allow new Extrinsic(method: Method) (#499)
* Allow new Extrinsic(method: Method)

* Update types

* Be explicit in returned types

* Submittable with Method constructor
2018-12-20 12:21:03 +01:00
Travis CI 30b81c0dfb [CI Skip] 0.34.9 2018-12-20 11:09:23 +00:00
Jaco Greeff cafc539ae1 Bump deps (#502) 2018-12-20 12:03:47 +01:00
Travis CI 8660428caa [CI Skip] 0.34.8 2018-12-19 20:33:05 +00:00
Jaco Greeff f5f915729b Bump deps (#498) 2018-12-19 21:27:12 +01:00
Travis CI 46ed638b99 [CI Skip] 0.34.7 2018-12-19 19:08:23 +00:00
Jaco Greeff 7a4dc5f1c3 Retrieve events as part of send (#493)
* WIP

* Pass through events for transaction

* Remove unused import

* Re-add block hash, extends ExtrinsicStatus to match

* Revert timeout reset change
2018-12-19 20:02:33 +01:00
Travis CI 775703bc21 [CI Skip] 0.34.6 2018-12-19 13:49:06 +00:00
Jaco Greeff caff93941b Method -> Extrinsic circular dep (#495)
* Method -> Extrinsic circular dep

* Cleanup test formatting
2018-12-19 14:43:30 +01:00
Travis CI ebb04d5e55 [CI Skip] 0.34.5 2018-12-19 12:45:33 +00:00
Jaco Greeff 33a4280028 Expand ExtrinsicStatus to mirror Rust types (#494)
* Expand ExtrinsicStatus to mirror Rust types

* Remove .only

* Update test expectation

* typo

* Invalid extends Null

* Remove debug log
2018-12-19 13:39:20 +01:00
Travis CI 274359eac8 [CI Skip] 0.34.4 2018-12-19 08:35:32 +00:00
Jaco Greeff 5b978246a7 Remove circular imports from types (#492)
* Remove circular imports from types

- These are creating issues on RN and is not correct
- Uint is equivalent to BN (extends it), so remove it.
- Don't import all classes (it imports types itself) - CodecTypes can be exposed elsewhere if needed

* Cleanup linting & imports

* Cleanup compact decoding
2018-12-19 09:29:53 +01:00
Travis CI f690808a04 [CI Skip] 0.34.3 2018-12-18 15:52:18 +00:00
Jaco Greeff 4ef8bd36c3 Add missing Polkadot (parachains module) types (#491)
* Add ParaId (u32, originally ParachainId)

* Add AttestedCandidate (setHeads)

* Bump dependencies

* Cater for latest.substrate.json rename

* Update version deps
2018-12-18 16:46:39 +01:00
Travis CI e28f7b2693 [CI Skip] 0.34.2 2018-12-18 15:32:20 +00:00
Jaco Greeff edfd62558f Allow creating Struct from JSON (#489)
* Allow creating Struct from JSON

* Fix Struct import
2018-12-18 16:26:42 +01:00
Travis CI 52395ef9fc [CI Skip] 0.34.1 2018-12-18 10:19:17 +00:00
Jaco Greeff 5fa087e7c0 Return { status: ExtrinsicStatus } from tx send subscription (#486)
* Return { status: ExtrinsicStatus } from tx send subscription

* Added changelog

* Fix typo

* Bump version

* Bump deps
2018-12-18 11:13:32 +01:00
Travis CI 419de9407b [CI Skip] 0.33.26 2018-12-18 09:45:44 +00:00
Amaury Martiny 46b10a0874 Factorize some u8a decoding logic (#483)
* Simplify decoding u8a

* Move to another folder

* Refactor isU8a in struct

* Remove ts ignore

* Whitespaces

* Don't modify input args
2018-12-18 10:40:25 +01:00
Travis CI fe67f47dbe [CI Skip] 0.33.25 2018-12-17 22:00:53 +00:00
Jaco Greeff c75c849d95 Bump common (RN native test revert) (#488) 2018-12-17 22:55:19 +01:00
Travis CI 36930f5591 [CI Skip] 0.33.24 2018-12-17 20:49:56 +00:00
Jaco Greeff 488f42c3d0 Bump common (#487) 2018-12-17 21:44:21 +01:00
Travis CI 7be0b46238 [CI Skip] 0.33.23 2018-12-17 19:29:05 +00:00
Jaco Greeff 91128d342c Add explicit core-js dep (#485) 2018-12-17 20:23:43 +01:00
Travis CI ee055ad2b4 [CI Skip] 0.33.22 2018-12-17 14:00:32 +00:00
Jaco Greeff 5f1178f698 Bump common (TextEncoder/Decoder polyfill) (#482) 2018-12-17 14:54:29 +01:00
Travis CI 8e7aacb625 [CI Skip] 0.33.21 2018-12-17 11:45:21 +00:00
Jaco Greeff d11906e72a Add ability to do api.query at a specific hash (#477)
* Add ability to do api.query at a specific hash

* Add at variant for api/rx

* Add .at for rxjs
2018-12-17 12:39:40 +01:00
Travis CI 8c8ab773df [CI Skip] 0.33.20 2018-12-17 11:27:52 +00:00
Jaco Greeff 535a9eac07 StorageKey with specific encoding (#480)
* StorageKey with specific encoding

* Comment typo
2018-12-17 12:22:01 +01:00
Travis CI 4a699275c5 [CI Skip] 0.33.19 2018-12-14 15:34:22 +00:00
Jaco Greeff 06893d02d8 Add chainProperties call to api-observable (#472) 2018-12-14 16:29:16 +01:00
Travis CI 16fec27721 [CI Skip] 0.33.18 2018-12-14 15:25:56 +00:00
Travis CI ad2289ee24 [CI Skip] 0.33.17 2018-12-14 14:14:53 +00:00
Jaco Greeff 4291a49d22 Instantiate EnumType via Object (not Array) (#469)
* Instantiate EnumType via Object (not Array)

* Split decoding into steps... slight simplification

* Use assert for index check

* Add JSON decoding tests
2018-12-14 15:09:21 +01:00
Travis CI a8d108d221 [CI Skip] 0.33.16 2018-12-14 10:52:15 +00:00
Travis CI e99f17c22c [CI Skip] 0.33.15 2018-12-13 16:26:09 +00:00