Commit Graph

33 Commits

Author SHA1 Message Date
Jaco Greeff
ec8be875df
typescript-eslint 2 (#1568)
* Setup for typescript-eslint 2

* Cleanup linting

* Bump ui version

* Exclude build folders
2019-09-01 13:34:56 +02:00
Jaco Greeff
e4c933cc87
Bump deps (#1560) 2019-08-30 09:09:11 +02:00
kwingram25
2752bedc6e
Functional components (app-*) (#1559)
* Functional components (app-*)

* refactor

* refactor

* refactor

* refactor

* refactor

* Revert "refactor"

This reverts commit 300a12ed7de5b1000f32f5269dff67f5ee1c1515.

* onRemove
2019-08-29 17:45:02 +02:00
Jaco Greeff
66ca8ea61e
Hygiene, some additional type -> interface (#1552)
* Higene, some additional type -> interface

* Liniting
2019-08-28 12:52:48 +02:00
kwingram25
537e7529c2
Remove unsafe React methods (#1520)
* unsafe react methods

* Update sui to 0.88.0
2019-08-27 14:43:12 +02:00
Jaco Greeff
b8ee65c52a
componentWillMount -> UNSAFE_componentWillMount (#1508)
* componentWillMount -> UNSAFE_componentWillMount

* componentWillReceiveProps -> UNSAFE_componentWillReceiveProps

* Bump API for session keys
2019-08-17 13:39:59 +02:00
Jaco Greeff
e6ca2db884
Rename ui-* -> react-* (#1495)
* Rename ui-* -> react-*

* Rename actual folders

* react-app -> react-components

* CSS links
2019-08-12 13:12:05 +02:00
Jaco Greeff
b4de745cda
Support latest api (with dynamic types) (#1447)
* Make a start, halfway down with issues found...

* Around  80% through untangling  the linter

* Seems linted...

* Adjust latest

* Update for latest (Moment -> u64)

* Method -> Call

* Bump api from npm

* formatNumber (no unwrap needed)

* Update to latest ui packages

* Revert internal version downgrades
2019-07-29 12:24:43 +02:00
Jaco Greeff
9d76cadeec
Update for new Extrinsic v1/v2 support (#1435)
* Pull era/nonce/signer information for Extrinsic

* Bumop api... here we go...

* Fixup types, only signer is left

* Stub signer

* Apisigner operational
2019-07-22 21:27:17 +02:00
Stefanie Doll
7d451c6f88 Add endpoint fallbacks option and handling of consts to ui-api (#1416)
* Add `fallback` option to ui-api to pass more than one endpoint for backwards compatibility

* set correct endpoint

* remove console.logs

* linting issues

* const -> consts typo

* changed query example to blockPeriod

* turn `fallback`: string[] | string into fallbacks array

* turn while loop into map

* less params & removed let

* Adjust withCall typing, don't allow voting in treasury
2019-07-18 15:11:57 +02:00
Jaco Greeff
8bb35dd9ff
Complete eslint swap (#1407) 2019-07-16 11:56:40 +02:00
Jaco Greeff
144c8bbd85
eslint fixes (round 2) (#1401)
* eslint fixes (round 2)

* ui-params converted

* Tiny.

* Classes fix

* Some type cleanups

* Cleanup traling ,

* < 1k

* Small additions

* <750

* Mini updates modifiers

* More ui-app cleanups

* 312 problems (182 errors, 130 warnings)
2019-07-15 23:17:19 +02:00
Jaco Greeff
ea829237de
eslint cleanup (as unknown as State -> Pick<State, never>) (#1405) 2019-07-15 12:36:17 +02:00
Jaco Greeff
0e2265ff70
Some initial pre-eslint cleanups (#1383)
* Some initial cleanups

* Make it lint

* Small s/type/interface/ additions

* Small minor s/type/interface/

* More type -> interface

* Add lint:new rule

* Some small updates

* Cleanup dangling tslint  issues

* Small updates

* ui-signer cleanups

* ui-reactive updated

* Make lint:new run

* Mini ui-params cleanups

* Some additions

* Tiny... and done for now.

* 1950 problems (1241 errors, 709 warnings)

* 1829 problems (1181 errors, 648 warnings)

* 1674 problems (1181 errors, 493 warnings) (no any... for now)

* Small additions.

* Array<T> -> T[] (all)
2019-07-14 22:27:12 +02:00
Jaco Greeff
012eb9e7b2
vanity cli updates (#1400)
* vanity cli updates

* Cleanup assertion

* any[]
2019-07-14 20:41:07 +02:00
Jaco Greeff
babd33bc34
Bump deps (#1399)
* Bump deps

* Cleanup assertion

* Bump API, contract fn params
2019-07-14 18:58:29 +02:00
Jaco Greeff
68a523a778
Beauty is in the eye of the beerholder (#1328)
* Beuty is in the eye of the beerholder

* Signer dialog

* .multiple with address

* Transfer wrapper

* Multiple input height

* 2rem -> 1.75rem

* Adjustments for invalid

* Break IdentityIcon out of box

* Small layout adjustments

* Row adjustment

* Remove commented styles

* Remove commented code

* Remove unneeded padding

* Remove unused i81n

* Display messages with input-like styling

* InputFile & Messages overrides

* Adjust input margins (non-flex)

* Center icon

* Adjust labelExtra placement, staking dropdown

* Combine linked lists into one

* Fix developer settings
2019-07-08 22:33:57 +02:00
Jaco Greeff
a33292803a Remove api imports (only on store, non-context) (#1347) 2019-06-25 15:20:03 +01:00
Jaco Greeff
f9a28fc6ea Remove all tags on create dialogs (#1348) 2019-06-25 15:15:08 +01:00
Andrew Jones
f9c779574d Fix upload and deploy contract(s) after rename (#1346)
* Fix upload and deploy contract(s) after rename

* Fix api import name collision
2019-06-25 12:52:09 +02:00
Jaco Greeff
1a404b76ca Additional styled componentn adjustments (#1337) 2019-06-24 16:40:32 +01:00
Jaco Greeff
b9308c6939
Support 1.x contract & 2.x contracts (#1321)
* Support 1.x contract & 2.x contracts

* Allow TxButton with contract & contracts

* Bump api for derive.contracts
2019-06-21 13:14:38 +02:00
kwingram25
357936eafc
Add checks for contract fees (#1299)
* new checks

* contracts checks

* contract checks

* rv yarn.lock

* fixes
2019-06-17 12:51:09 +02:00
Jaco Greeff
28c5a83809
Bump API (new api-contreacts, new typings) (#1297) 2019-06-15 11:55:38 +02:00
Jaco Greeff
6440e3baaa
Bump deps (change use as required) (#1293)
* Bump deps (change use as required)

* Bump api with send fix
2019-06-13 20:19:15 +02:00
kwingram25
4b7987ae1c
New contracts app (#1283)
* new contracts app

* new contracts app

* test ci fix

* fixes

* fixes

* remove abi inline

* css code card

* icon buttons

* fixes

* fixes cont.

* travis ci fixed

* api version
2019-06-12 13:52:53 +02:00
kwingram25
dc943d7cd6
Button/TxButton submit on enter (#1170)
* Button/TxButton submit on enter

* promise linting

* testing ref approach

* Add TxComponent to handle submit on enter

* remove accountNonce

* remove input ref

* remove TxButton constructor

* remove comment

* empty constructor

* linting

* bug with null ref

* linting
2019-05-22 18:08:58 +02:00
Jaco Greeff
f461c84642
Small contracts fixes & adjustments (#1092)
* Adjust code deploy redirection (w & wo contracts)

* Allow contract call with 0 value

* TxButton to calculate all on click

* Stray logging
2019-05-07 10:00:53 +02:00
Jaco Greeff
707ae0b696
Validate codehash (with wasm), address (with code) & wasm header (#991)
* Validate codehash (with wasm), address (with code) & wasm header

* Typo
2019-04-12 12:50:58 +02:00
Jaco Greeff
26ff33678e
Store the genesisHash along with code & contracts (load check) (#982)
* Store the genesisHash along with code & contracts (load check)

* Cleanup hanging promises

* contract:contract: -> contract:address: (storage)

* Update store.ts
2019-04-11 21:19:14 +02:00
Jaco Greeff
cb0cb73e0f
Swap from params to 0, keeps old (#957) 2019-04-10 21:28:05 +02:00
Jaco Greeff
937073f1c6
Pass actual address when calling contract (#955) 2019-04-10 20:25:52 +02:00
Jaco Greeff
1a103e9812
Substrate contracts, basics (#928)
* Substrate contracts, basics

* Expand Create & Deploy with placeholder inputs

* Add ABI parsing & validation (re-usable)

* Expand ABI parsing

* WIP, putCode works, deploy in-progress

* Updates for Params & Instantiate (untested)

* Up to call...

* Linting

* Updated

* InputFile & ABI adjustments

* Add ability to attch existing (code & deployed)

* Small cleanups

* Very basic intro

* Hide contracts sidebar entry

* Update README.md
2019-04-10 11:52:34 +02:00