19 Commits
Author SHA1 Message Date
Jaco Greeff aed4b3ee6a Cleanup contracts type registry (#1497)
* Cleanup contracts type registry

* Remove some ! compiler overrides

* More mappy lookups

* Empty check
2019-10-21 16:18:41 +02:00
kwingram25 b911bdbd2d Add dynamic Vec ABI support (#1499) 2019-10-20 11:57:19 +02:00
Jaco Greeff 21ac0ac2fb Add TypeDefInfo handling for BTreeMap (#1481)
* Add TypeDefInfo handling for BTreeMap

* Update getTypeClass.ts

* Fixup BTreeMap result (will be active once class support is merged)

* Merge master, update with BTreeMap classes
2019-10-14 11:42:31 +02:00
Travis CI 2e9192ca02 [CI Skip] 0.95.0-beta.2 2019-10-08 14:51:58 +00:00
kwingram25 05ec4964fe Generate types from new contract ABI JSON (#1320)
* generate types from registry

* cleanup

* merge, rearrange

* lint

* built out

* abi v2 creation

* throw on unions

* linting

* version handling

* split functions

* cleanup

* drop v1 support

* special types

* changes

* requested changes

* formatTYpe

* rv outdated test

* rv union test

* codeclimate

* codeclimate

* codeclimate

* codeclimate

* codeclimate

* review

* cleanup encodeTypes

* fix option sub

* TypeDefInfo.Result
2019-10-08 16:31:48 +02:00
Jaco Greeff d905b4fef3 Split Submittable into actual classes (#1350)
* Split Submittable into actual classes

* *sigh* Fix VSCode's "helpful" imports

* Rename option creation functions

* Extrinsic already has version embedded

* V3
2019-08-29 22:33:57 +02:00
Jaco Greeff 9b1aa6aece Bump dev (#1344) 2019-08-27 13:20:29 +02:00
Jaco Greeff 9954477de3 Some small complexity/readability improvements (#1309)
* Some small complexity/readability improvements

* Bump allowed returns to 5

* Revert override (as limiting as it seems)
2019-08-14 20:25:20 +02:00
Stefanie Doll 7a08b37ec3 Fix & convert e2e tests (#1167)
* split off rx-query tests

* Split off promise-rx tests

* use funded bob_stash for alex

* Fixed transfer e2e tests pt. 1

* wip era tx

* split derive promises

* delete outdated e2e metadata tests

* add randomAsHex test files

* WIP

* tslint

* add index file to e2e util

* rx-tx tests

* eslint types

* linting

* contract ? storage tests

* promise-contract tests

* fix lint errors after merge

* re-implement lost merge changes

* Only support recent ink versions

* child-storage tests

* Add e2e tests for storage input type

* All tests passing for rpc-core

* linting

* wrong file path

* remove old contract files & change folder name

* added larger random as hex files
2019-07-31 16:47:12 +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
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 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
Jaco Greeff 729db495a8 Cleanup/fix ABI arg consistency (#1126) 2019-07-14 18:24:42 +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 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
Jaco Greeff d4c408d28b Explicity contract encoding tests (non e2e) (#1040) 2019-06-20 14:06:10 +02: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
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