Commit Graph

43 Commits

Author SHA1 Message Date
Bartłomiej Rutkowski
29122d1f8f Export account (#166)
* setup tests

* export account WIP

* Fix linter errors.

* Frontend test for Export component.

* Test for account export by background handler.

* Add password to export.

* Add simple account export functionality.

* Add dedicated selectors.

* Improve export view layout

* make export textarea bigger

* Fix linter error.

* Update wrapper in test to make it pass.

* test refactoring

* add copying exported JSON to clipboard

* lint fix

* add UI tests

* fix dependencies

* refactoring

* copyright headers; minor refactorings

* make input field blink after entering wrong password

* download exported JSON

* simplify exported JSON download

* removed redundant tests

* disable export functionality for external accounts

* add export restrictions tests

* tests refactoring

* after successful export go back to main screen
2019-10-04 17:03:36 +02:00
Jaco Greeff
e43bafd062
Allow extention to be opened in new window (#144)
* Allow extention to be opened in new window

* Bump ui (stable)

* Update for react-reader blob
2019-09-10 12:22:05 +02:00
Jaco Greeff
4945417982
Mobile signer support (via Qr) (#134)
* Add typings to messages

* Fix eslint (after merge)

* Mobile signer support (via Qr)

* Bump common

* Pass through genesisHash

* Ok, well, it does something... not recognized

* Bump ui

* Exclude build from lint

* **

* Display accounts with prefix from genesisHash

* Adapth for object via scan interface

* Bump deps

* Split address recoding

* Cleanup decoding readability

* Display chain affinity overlay

* -1 prefix dropdown description

* Add generator command

* Fix TypeScript error

* Lint

* Consistent naming

* Better promise error handling

* Small consistency updates

* Constraint handle typings as much as tsc will allow

* State naming

* Typo in cheain descriptions

* Add signature handler (unused)

* e2e roundtrip

* remove (useless) dev 0.5.1 chain

* Insert ActionBar

* Revert to empty Props interfaces

* SeedLengths type

* Add type to transport subscription message

* nit

* Typecheck passing callback to sendMessage when none expected

* Bump api

* Small lint fixes

* Bump  api

* Not sure it works... but linting passes

* Split public/private

* Alphabetical

* Don't show button on no media

* Remove unneeded resolve - NOT hacking around linting

* Pass edited name through to accounts component

* genesisHash alignments

* Remove KeyringJson

* SignRequest with account

* Align with master naming

* Some manual merges

* Manual (small) conflict resolution

* Fixup extension account mapping

* Remove ununsed messages (less code = better)

* Update comment around generation

* Add copy-to-apps script (debugging)
2019-09-06 13:03:55 +02:00
Jaco Greeff
e20b6e0f16
Split messages into pub/pri (#139)
* Split messages into pub/pri

* Cleanup types for contexts

* genesisHash to edit/create

* (Auth|Sign)Request to record (not tuple)

* Align naming with messages

* Pass account with SignRequest

* Ordering

* Ordering
2019-09-06 10:52:57 +02:00
Axel Chalon
251417b50e Add typings to messages (#130)
* Add typings to messages

* Fix eslint (after merge)

* Fix TypeScript error

* Lint

* Consistent naming

* Better promise error handling

* Constraint handle typings as much as tsc will allow

* Revert to empty Props interfaces

* SeedLengths type

* Add type to transport subscription message

* nit

* Typecheck passing callback to sendMessage when none expected

* Type subscription cb and replace KeyringJson w/ InjectedAccount

Use InjectedAccount for `accounts.list`, `accounts.subscribe`
2019-09-05 16:11:01 +02:00
Jaco Greeff
7fcc4d252f
Bump deps (#137)
* Bump deps

* Fixes for new api
2019-09-05 12:51:04 +02:00
Jaco Greeff
2abe983266
Add call-only chain metadata (#136) 2019-09-02 14:26:25 +02:00
Jaco Greeff
92f749c8ab
Typescript-eslint 2 (#132)
* Setup

* Linting fixes
2019-08-31 09:20:00 +02:00
Jaco Greeff
b1bb579d01
Add Kusama metadata (#126) 2019-08-25 14:14:49 +02:00
Jaco Greeff
d0de8c0f34
Add derivation path support (import) (#125)
* Add derivation path support (import)

* Fix params (we really need these properly typed!)

* Bump to stable API

* 0.8
2019-08-25 11:44:23 +02:00
Jaco Greeff
232251b1e5
Bump API (#114) 2019-08-03 08:57:49 +02:00
Jaco Greeff
dd1f9dfacd
Update API to interfaces types (#110)
* Update API to interfaces types

* new GenericCall
2019-07-29 14:25:00 +02:00
Jaco Greeff
0aefb66d92
Update with signPayload for injected signer (#106)
* Update with signPayload for injected signer

* Bare-minimum in interface

* Cleanup linting

* Remove unused (atm) permissions
2019-07-24 16:16:22 +02:00
Axel Chalon
e1a0bd2db8 Extension: reject requests from unauthorized urls (#101) 2019-07-19 20:28:18 +02:00
Jaco Greeff
d573b3a3b5
Import store directly (#91) 2019-07-17 10:55:06 +02:00
Jaco Greeff
00c38de0a4
Re-enable mortals (#87) 2019-07-16 16:20:54 +02:00
Thibaut Sardan
2cdb8332cc Hack to hide scrollbars on popups (#86)
* hack to hide scrollbars

* overflow-x hidden
2019-07-16 08:41:23 +02:00
Jaco Greeff
43244dace0
Remove popup focus (#78) 2019-07-14 11:34:06 +02:00
Jaco Greeff
616505634d
extension-inject (no direct globals for extension/dapp) (#75)
* extension-inject (no direct globals for extension/dapp)

* Update tsconfig.json

* Update index.ts
2019-07-12 21:22:06 +02:00
Jaco Greeff
c70d9a0e63
Swap to eslint (#72)
* 626 problems (430 errors, 196 warnings)

* A start.

* < 200

* 80

* 0
2019-07-12 20:09:44 +02:00
Jaco Greeff
da16a494e8
Make it work with apps (#74)
* Make it work with apps

* Update package.json
2019-07-12 19:58:22 +02:00
Jaco Greeff
6ffca3fd49
Requests create a popup window (#60) 2019-06-22 11:29:40 +02:00
Jaco Greeff
46a70db6b6
Bump api, common & ui (#57) 2019-06-13 16:31:35 +02:00
Jaco Greeff
c16818fd3e
Pull RawPayload and ExtensionStore from deps (#55)
* Pull RawPayload and ExtensionStore from deps

* Use {method,section}Name from Method

* Cleanup method display (known) with meta
2019-06-07 11:02:20 +02:00
Jaco Greeff
f4413a209b
Auto-unsubscribe on disconnection (#50)
* Auto-unsubscribe on disconnection

* Use subscriptions for all in popup

* Cleanup state setters

* Plural for address(es)
2019-06-03 18:20:36 +02:00
Jaco Greeff
a94836977a
Extend message/request ids as string (#48)
* Extend message/request ids as string

* Only decode the current method (as meta available)

* Dep-dup id generation
2019-06-03 13:58:33 +02:00
Jaco Greeff
ff591dc057
Minor, adjust badge color/bg across browsers (#47) 2019-06-03 12:46:22 +02:00
Jaco Greeff
0e3193a358
Metadata for known chains (#40)
* Metadata for known chains

* Decode from metadata
2019-06-02 16:23:16 +02:00
Jaco Greeff
e7c6272e98
url from sender/tab, better per-extension errors (#44)
* url from sender/tab, better per-extension errors

* Remove debug log
2019-06-02 15:36:16 +02:00
Jaco Greeff
d7b0b6fcf5
Expose subscribe on Accounts interface (#42)
* Expose subscribe on Accounts interface

* Basic subscription for accounts on background

* Subscriptions should be in-place...

* Add web3AccountsSubscribe
2019-05-31 16:36:07 +02:00
Jaco Greeff
01f2f16b79
Convert messaging to use ports (#38)
* Convert messageing to use ports

* Small listeneing cleanups
2019-05-30 14:28:41 +02:00
Jaco Greeff
5df1dc3e73
Rename page and content scripts (self-explanatory) (#33) 2019-05-29 14:33:15 +02:00
Jaco Greeff
886b36c20a
Use postMessage between page/content (#31) 2019-05-26 09:45:55 +02:00
Jaco Greeff
889d81f203
README updates (#30)
* README updates

* Consistent eventTarget
2019-05-24 23:50:26 +02:00
Jaco Greeff
73733dc8bc
Add @polkadot/extension-dapp (#28)
* Add @polkadot/extension-dapp

* Add skeleton READMEs

* Extend with additional helpers

* Adapdt for new name-less interface

* Additional comments

* Readability

* Flatter promise

* Naming consistency

* Readability
2019-05-24 11:13:06 +02:00
Jaco Greeff
85704d5beb
Small margin adjustment for Address (#24)
* Small margin adjustment for Address

* https
2019-05-23 18:17:47 +02:00
Jaco Greeff
ebe20c3e23
Cross-browser extension interface (#21)
* Cross-browser extension interface

* Allow eventTarget

* Use extension.* in State
2019-05-23 13:37:18 +02:00
Jaco Greeff
f241e7191d
Introduce the enable() interface (prompts user) (#20)
* Introduce the enable() interface

* Provider

* Add auth requests to state

* injector comments

* Background extension list, spprove & reject

* Cleanups

* Untested, but the UI parts are there (test next)

* linting

* Not pretty, but seems to auth

* Small styling adjustments

* Adjust Box layout slightly

* Small styling adjustments

* signing -> transactions

* isDanger for links

* Styling defaults
2019-05-23 12:43:55 +02:00
Jaco Greeff
4a2768cee8
Display genesis (or chain, if known), update deps (#19)
* Display genesis (or chain, if known), update deps

* Build optimizations
2019-05-22 13:16:40 +02:00
Jaco Greeff
cdf5579b8e
Rework context with HOCs (#16)
* Rework context with HOCs

* Type for signing requests list
2019-05-21 17:25:39 +02:00
Jaco Greeff
93b135d685
Forget confirmation & account name editing (#4)
* Forget confirmation & account name editing

* Update ActionBar padding
2019-05-20 15:56:11 +02:00
Jaco Greeff
f5a00988b0 Refresh accounts on create/import, add forget 2019-05-20 13:23:28 +02:00
Jaco Greeff
0b6bcd2bb9 Initial commit aka code from heaven 2019-05-20 12:40:44 +02:00