Commit Graph

40 Commits

Author SHA1 Message Date
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
Thibaut Sardan
679219fe97
Staking compatibility with v2 (#1397)
* compat v2

* nits

* array synthax for eslint

* array synthax for eslint

* array synthax for eslint

* isSubstrateV2 in ui-api
2019-07-14 17:32:55 +02:00
Thibaut Sardan
b2f6d87de1
Use empty props from CardGrid (#1304)
* empty for account, addressbook

* staking empty screen

* use multi only when values changed

* lint

* withCall paramPick transform

* use paramPick and log things

* swap logging

* Display getMethod errors in withCall

* Remove nested try

* Use updateDb to trigger an update

* fix bonding

* Revert ifs

* Update call.tsx

* lint

* stray logs
2019-06-29 10:02:58 +02:00
Jaco Greeff
957e210043
Default proposal/sudo for new 2.x substrate (#1296) 2019-06-16 07:10:59 +02:00
Jaco Greeff
28c5a83809
Bump API (new api-contreacts, new typings) (#1297) 2019-06-15 11:55:38 +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
Jaco Greeff
90925fe648
External links from blocks/addresses/extrinsics to polkascan (#1230)
* External links from blocks/addresses to polkascan

* Ok, I give up... abs again :(

* Add extrinsic links
2019-05-30 17:58:24 +02:00
Jaco Greeff
23cf0e2bf6
Bump deps, TS 3.5.1 (#1240) 2019-05-29 23:55:11 +02:00
Jaco Greeff
9d5188cea2
Pull in @polkadot/extension-dapp (#1207)
* Pull in @polkadot/extension-dapp

* State updates via callback

* Remove extra : tags

* Small formatting cleanups
2019-05-24 15:11:51 +02:00
Jaco Greeff
cb522a4263
withInjected -> PureComponent (fix new refs) (#1195)
* withInjected -> PureComponent (fix new refs)

* Consume data from context

* Expand injected
2019-05-23 14:16:04 +02:00
Jaco Greeff
86a767de68
Make enable() call to extensions (#1194)
* Make enable() call to extensions

* It works

* Add overlay for injected (prompt)

* Use signer from injectedPromise
2019-05-23 12:43:39 +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
040b4ce106
External account injection & external signing (#1178)
* Allow injection of external accounts (not stored)

* Call external signer

* Bump packages
2019-05-21 16:58:39 +02:00
Jaco Greeff
7887f56336
Add isMulti param for withCall (#1090) 2019-05-15 16:11:26 +02:00
Xiliang Chen
6e4ce5c5ff quick workaround of tuple bug (#1038) 2019-04-26 11:09:04 +02:00
Jaco Greeff
e6d46f9922
Fix staking buttons to immediately show (#998)
* Fix staking buttons to immediately show

* Move back to params as a name, cleanup danglings
2019-04-12 18:05:14 +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
def0506e1d
formatting utils from @polkadot/util (#878) 2019-04-02 15:12:58 +02:00
Jaco Greeff
9bd7392d73
More informative staking page (buttons based on actions) (#855)
* WIP

* Render nominees

* Staking statics & buttons
2019-03-27 18:26:35 +01:00
Jaco Greeff
0bc26e2078
Fix unnominate (Option causing issues) (#827)
* Fix unnominate (Option causing issues)

* Merge master
2019-03-22 10:14:20 +01:00
Jaco Greeff
96615d5957
Bump UI, HDKD keyring (new substrate crypto) (#813)
* Bump UI, HDKD keyring (new substrate crypto)

* Bump ui/* versions

* Pull in latest util-crypto, bp39 fix

* Bump common

* Small enhancements, cleanups (testing WIP)

* Bump

* Update after merge

* Bumps, fix transfer calculation (value may be non-existent)

* Bumpo dependencies

* Label extrinsic hash

* Signature updates

* Update deps

* Adjust status display

* Close status items on click

* Update withRouter duplication

* API bump, (some) creation fixes

* Move bip39 out of the worker (fast enough now via WASM)

* Update after master merge

* Cleanup deps (re-write yarn.lock)
2019-03-20 17:06:29 +01:00
Jaco Greeff
338bd517a0
Remove /index imports (swap to bare) (#814)
* Remove /index imports (swap to bare)

* Bump deps
2019-03-14 10:45:58 +01:00
Jaco Greeff
b6836fb282
Dried Danta support (#739)
* Don't filter chains (use specified props)

* Bump @polkadot/ui-settings
2019-02-20 16:39:52 +01:00
Jaco Greeff
cf23041b85
Pull in @polkadot/ui-util (#724)
* Pull in @polkadot/ui-util

* Pull in @polkadot/ui-util

* Skip tests
2019-02-18 14:45:29 +01:00
Jaco Greeff
dac2734ab6
Schnorrkel support (#710)
* Schnorrkel support

* Additional export cleanups (move to root & types)

* Bump

* Bump deps

* Update deps

* Bump deps

* Bump deps
2019-02-15 11:57:10 +01:00
Jaco Greeff
bc0c9bfe43
Inject keyring only on dev chains (#717)
* Inject keyring only on dev chains

* Remove useless deconstruct
2019-02-14 17:23:55 +01:00
Jaco Greeff
61674a7989
Add Signer interface for API (#683)
* Add Signer interface for API

* Attach signer to API instance

* Integrate signer with updates (untested)

* Update with working signer integration (logging an issue still)

* Restore console hooks, feedback on signed

* Remove unneeded console.log

* Marge install
2019-02-12 22:29:47 +01:00
Jaco Greeff
c0d0666be6
Show balance units with denomination (inline-text) (#677)
* Show balance units with denomination (inline-text)

* Update tests for unit display
2019-02-10 17:30:59 +02:00
Jaco Greeff
a8ed300dc4
Small init changes (static state) (#663)
* Small init changes (static state)

* Hide vanity on empty accounts

* Require accounts for apps, cleanup needsApi/needsCalls

* Display InputAddress when disable (but no options)

* Filter toolbox based on accounts

* Accounts gated via app, don't display add

* Cleanup linting

* Validation display & clear on settings types

* Split save for developer & general

* Add Reset button to dev settings
2019-01-31 18:02:47 +01:00
Jaco Greeff
653c2a505f
Basic info display for 123-code (#641)
* Add withCalls

* withCalls operational

* Basic header display & cleanups

* Global account selector for app

* Remove errant debug log

* Simple transfer applet working

* Update Upgrade.tsx

* Update InputNumber.tsx

* Update Transfer.tsx

* Move TxButton back to 123code (for the time being)

* Good enough for a v1
2019-01-27 12:50:47 +01:00
Jaco Greeff
c52116adb9
Don't make storage queries with missing params (#631)
* Don't make storage queries with missing params

* Remove debug logs
2019-01-21 15:05:09 +01:00
Jaco Greeff
eb0abb8307
Cleanup api call usage (#617)
* Rename apiPromise -> api

* First attemp at React render component (unused)

* Cleanup api call usage

* Cleanup linting

* Remove render component

* Adjustments on HOC types (& usage)
2019-01-18 23:04:13 +01:00
Jaco Greeff
ac2e809e97
Bump deps (#613)
* Bump deps

* Typo
2019-01-17 18:10:04 +01:00
Jaco Greeff
c3821bdb1b
Update with latest API (with derive) (#611)
* Pull in latest API

* Use derive from api

* Update with latest API
2019-01-17 10:59:22 +01:00
Jaco Greeff
150465a75b
Cleanups to HOC injectors (#609) 2019-01-16 15:34:06 +01:00
Jaco Greeff
309da4204b
Update HOC props with typing (no any) (#602) 2019-01-14 16:49:39 +01:00
Jaco Greeff
19258df2c6
Display transaction fees on signer (#596)
* Move fee display component to ui-signer

* Format fee display

* Cleanup Fees, adjust calls with no params

* WIP

* WIP

* Cleanup derive file naming)

* Fees align with transfer

* Calculate fees (minimum) around proposals

* Apply nonce length correctly
2019-01-14 12:55:36 +01:00
Jaco Greeff
1a8da504c8
Fix balance formatting (#593) 2019-01-12 19:04:40 +01:00
Jaco Greeff
42409e6b72
Display all events on expanded block view (#591) 2019-01-12 17:54:15 +01:00
Jaco Greeff
014ae780e4
Split ui-api, update API version (#589)
* Split ui-api, update API version

* Update (awaiting API changes to go through)

* Cleanup ui-api exports

* Bump API (SubscriptionPromise support)

* Linting fixes

* Update renames

* Do display balances.Transfer (shows for non-owned accounts)

* Bump API
2019-01-12 09:38:07 +01:00