Commit Graph

18 Commits

Author SHA1 Message Date
Thibaut Sardan
5df2f974d7
Add a flag to get any account type for InjectedAccounts interface (#572)
* add getAll and deprecate get

* using a withTypes flag

* change for anyType and add filtering

Co-authored-by: Github Actions <action@github.com>
2020-12-10 14:51:51 +01:00
Jaco Greeff
58b1320d41
Use type import (#556)
* Use type import

* Small updates
2020-12-01 14:18:19 +01:00
Thibaut Sardan
ae9227ef6d
Add phishing site detection, redirection and information (#488)
* missing type declarations for @polkadot/phishing

* phishing landing page

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

* wording make it short

* fix build

* add test for xml pdf utils

* fix export

* Update packages/extension-base/src/utils/isXmlOrPdf.ts

* use Trans from i18n

* alpha ordering

* i18nKey

* lint

* move pdf and xml detection to enable to prevent unwanted redirection

* styled component refactoring

* import odering

* remove a css hack :)

Co-authored-by: Github Actions <action@github.com>
2020-10-13 14:14:55 +02:00
Jaco Greeff
bc4e57e353
SPDX (#459) 2020-09-17 16:12:32 +02:00
Thibaut Sardan
e278f89545
Add address encoding option to web3Accounts (#437)
* add address encoding to web3Accounts

* s/ss58Prefix/ss58Format/ (align with Substrate & keyring)

* cater for web3AccountsSubscribe

* nits

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-09-11 16:09:02 +02:00
Jaco Greeff
e983cb5f6d
Add base known chain info to icon/ss58 display (#386)
* Add base known chain info to icon/ss58 display

* comment around ordering

* Adjust backgrounds
2020-07-07 14:30:16 +02:00
Jaco Greeff
b21956f608
Use chain colors for badge display (#357) 2020-06-02 12:43:52 +02:00
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
c9f4c2e4a6
Provide metadata from external source (#288)
* Provide metadata from external source

* Listing via metadata interface

* Updates

* UI update

* Storage & end-to-end
2020-03-26 11:01:33 +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
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
7efd915506
Bump deps (#216) 2020-01-06 15:27:25 +01: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
e21c900a1f
Bump deps (#131) 2019-08-29 20:39:59 +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
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