Commit Graph

61 Commits

Author SHA1 Message Date
Jaco Greeff
837fb52a3a
Bumps w/ eslint (#338)
* Bumps w/ eslint

* Additional

* Additional

* Additional

* Additional

* Additional

* Linting done, tsc fixes remain

* Final round
2020-05-24 12:17:53 +02:00
Jaco Greeff
6324999ff3
Bump deps (#315)
* Bump deps

* Pull in native AccountsStore

* Integrate own AccountsStore

* Bumps

* Bumps, fix build
2020-04-06 11:49:27 +02:00
Jaco Greeff
75f9109cf4
Remove extensionizer indirection (#309)
* Remove extensionizer indirection

* Slight duplication

* Chrome mock

* Update package.json

* chrome types, chrome import
2020-04-03 13:06:25 +02:00
Jaco Greeff
0d87b50a20
Rewrite yarn.lock (#305) 2020-04-01 23:24:07 +02:00
Jaco Greeff
9aae8e4767
Fix @types references (sadly, def dupe) (#292)
* Fix @types references (sadly, def dupe)

* header
2020-03-26 18:14:46 +01:00
Amaury Martiny
89dad985fb
Pull out extension-base (#271)
* Create a extension-base package

* Fix lint and test

* Update to beta.3

* Yarn install

* Update package

* Fix merge errors

* Remove useless single-entry folders

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-03-21 11:07:11 +01:00
Jaco Greeff
3f2e1ae172
Swap createType to registry.createType (#268) 2020-03-16 16:03:42 +01:00
Jaco Greeff
326ba2c1b6
Bump deps (#264)
* Bump deps

* Add appropriate .skip-*'s

* Fix linting

* Format test

* typo :)
2020-03-14 10:42:39 +01:00
Jaco Greeff
e2033ba38b
Swap to yarn 2 (#255)
* Swap to yarn 2

* Subscription callback
2020-02-28 15:01:33 +01:00
Amaury Martiny
3589b0a4d7
Fix uncaught promise if tab closes (#254)
* Fix uncaught promise if tab closes

* Update packages/extension/src/background/handlers/index.ts
2020-02-26 17:37:36 +01:00
Amaury Martiny
452ce41b71
Provider Injection (#253)
* Add PostMessageProvider

* Remove coder

* Add provier in state

* Add msg handling

* Fix lint

* Fix little bugs

* Make send work

* Small tweaks

* Make subscriptions work

* Add readme

* Remove useless file

* Roder alphabet

* Fix lint

* List & start provider

* Add unsubscribe

* List and Use providers

* Update packages/extension/src/background/types.ts

Co-Authored-By: Jaco Greeff <jacogr@gmail.com>

* Update packages/extension/src/background/handlers/State.ts

Co-Authored-By: Jaco Greeff <jacogr@gmail.com>

* Update packages/extension/src/background/handlers/State.ts

Co-Authored-By: Jaco Greeff <jacogr@gmail.com>

* Update packages/extension/src/background/handlers/State.ts

Co-Authored-By: Jaco Greeff <jacogr@gmail.com>

* Update packages/extension/src/background/handlers/State.ts

Co-Authored-By: Jaco Greeff <jacogr@gmail.com>

* Update packages/extension-dapp/src/index.ts

Co-Authored-By: Jaco Greeff <jacogr@gmail.com>

* Update README

* Remove circular dep

* Remove useless function

* Update README

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-02-26 17:18:44 +01:00
Jaco Greeff
0a9e9f3bed
Private fields via # (#249)
* Private fields via #

* Edgewae type overrides
2020-02-23 06:40:39 +01:00
Jaco Greeff
7efd915506
Bump deps (#216) 2020-01-06 15:27:25 +01:00
Caio
411e1f1ed1 Implement signRaw (#196) 2019-12-06 15:49:37 +01:00
Jaco Greeff
8ff647bb4d
Bump deps (incl. API with registry) (#201)
* Bump deps (incl. API with registry)

* Use sigle registry per chain

* Localized registries

* Linting cleanups
2019-11-26 13:42:26 +01:00
Jaco Greeff
0b6626bcff
Allo hex seeds (#190) 2019-11-10 16:25:33 +01:00
Jaco Greeff
1da7cd58bf
Bump deps (#191) 2019-11-06 23:46:16 +01:00
Jaco Greeff
98f0a0f3fd
Alphabetical messages (#189) 2019-10-25 10:14:15 +02:00
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