Jaco
0a1dd426c2
Bump deps ( #1300 )
2023-12-19 10:53:58 +02:00
Jaco
6bfddb09e8
Use .js imports in src ( #1224 )
...
* Use .js imports in src
* Bump dev
* Add WP extension aliases
2023-03-09 11:04:13 +02:00
Jaco
c71492a5f4
Update headers for 2023 ( #1189 )
2023-01-01 10:23:00 +02:00
Jaco
607f4b3e3b
2022 ( #957 )
2022-01-01 09:26:35 +02:00
Jaco
d2d8497686
Mock __dirname, remove package detection ( #955 )
2021-12-31 15:07:38 +02:00
Jaco
e71c11e72b
Add bundle exports for packages with detect ( #951 )
2021-12-30 11:19:46 +02:00
Jaco
52c9666dff
Add detectPackage for extension-* ( #946 )
...
* Bump deps
* Add detectPackage for extension-*
* Add missing util deps
2021-12-27 15:25:44 +02:00
Jaco
d0f64a591e
Cleanup compat deps ( #812 )
...
* Cleanup compat deps
* yarn.lock
2021-09-06 10:04:39 +02:00
Jaco
629d8ce51f
Extract metamask-compat layer (optional) ( #810 )
...
* Extract metamask-compat layer (optional)
* README
2021-09-05 13:35:04 +02:00
Jaco
15ce1e17c6
Remove SingleSource compat layer ( #808 )
2021-09-05 11:10:04 +02:00
Antoine Estienne
5c53ee7d02
Add metamask extension web3 ( #566 )
...
* added web3source
* tried fixing dependencies
* removed load event listener and added name
* add signer to interface
* added signPayload draft
* lint
* modified signpayload
* switch back to only signRaw
* add types to injecetd accounts
* hash tx and finalize code
* lint and type
* iterate on feedback
* lint index.ts
* prettier lint index.ts
* type optional again
* removed sigenr from injected account type
* lint
* wip remove web3
* remove laod event
* Update packages/extension-dapp/src/compat/metaMaskSource.ts
Co-authored-by: Jaco <jacogr@gmail.com>
* Update packages/extension-dapp/src/compat/metaMaskSource.ts
Co-authored-by: Jaco <jacogr@gmail.com>
* filter accounts by type
* lint
* fix type typing
* Update packages/extension-dapp/src/index.ts
Co-authored-by: Jaco <jacogr@gmail.com>
* filter by array of type, instead of single type
Co-authored-by: Jaco <jacogr@gmail.com>
2021-09-03 11:45:34 +02:00
Antoine Estienne
b9e7c37944
Allow ethereum format for ethereum chains ( #776 )
...
* allow ethereum format for ethereum chains
* remove logs
* remove load event
* lint
* add ethereum and handle ethereum format
* Moves onChangeNetwork outside of rendering
* Restore window load event
* Lint
* Updates create account test
Co-authored-by: Crystalin <alan@purestake.com>
2021-08-22 20:33:00 +02:00
Jaco
e4ce268b1c
Wrap all raw signed bytes inside <Bytes> ( #743 )
...
* Wrap all raw signed bytes inside <RawBytes>
* Use u8aToU8a
* Update packages/extension-base/src/background/RequestBytesSign.ts
* Also wrap Qr signing
* Update packages/extension-base/src/utils/wrapRawBytes.ts
* Update packages/extension-base/src/utils/wrapRawBytes.ts
* empty wrap test
* Additional tests
* Update CHANGELOG
* Expose {wrap, unwrap}Bytes utils in extension-dapp
* Update yarn.lock
* Fix build alias
2021-06-10 21:13:46 +02:00
Forrest
41892ea68b
Add Web3AccountsOptions to web3FromAddress function ( #617 )
...
* ss58Format
* fix
* fix
* fix
* fix
* fix
* lint
* Update packages/extension-dapp/src/index.ts
Co-authored-by: Jaco Greeff <jacogr@gmail.com>
* lint
* lint
Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2021-01-13 12:55:19 +01:00
Jaco Greeff
297b2af14c
2021 ( #605 )
2021-01-03 11:33:53 +01:00
Jaco Greeff
58b1320d41
Use type import ( #556 )
...
* Use type import
* Small updates
2020-12-01 14:18:19 +01:00
Jaco Greeff
d523d210c5
Some cleanups to web3Enable (god-function) ( #507 )
...
* Some cleanups to web3Enable (god-function)
* Only use document complete
* Cleanup
* Rewrite
2020-10-18 10:21:04 +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
Thibaut Sardan
6c1b2ddd78
Throw error for undefined name in web3Enable ( #430 )
...
* throw error for undefined name
* lint
2020-09-04 16:44:47 +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
06277067d1
Adjust load init (Only create on ready) ( #323 )
2020-04-24 12:05:42 +02:00
Jaco Greeff
6455e246c8
Adjust web3Enable with document readyState ( #321 )
...
* Adjust web3Enable with document readyState
* Bumps
2020-04-21 15:06:20 +02:00
Jaco Greeff
0d87b50a20
Rewrite yarn.lock ( #305 )
2020-04-01 23:24:07 +02:00
Jaco Greeff
de78c703f5
Bump dev (incl. lint fixes) ( #304 )
2020-04-01 18:49:49 +02: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
Jaco Greeff
92f749c8ab
Typescript-eslint 2 ( #132 )
...
* Setup
* Linting fixes
2019-08-31 09:20:00 +02:00
Jaco Greeff
e21c900a1f
Bump deps ( #131 )
2019-08-29 20:39:59 +02:00
Thibaut Sardan
5ee9ed944f
Fix web3Enable not resolving ( #129 )
...
* fix web3Enable not resolving
* lint
2019-08-27 18:28:54 +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
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
17d9565e7f
Allow extensions with opt. subscribe & fallback ( #51 )
2019-06-03 17:50:28 +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
bb99f8a27b
Compat with other extensions ( #36 )
2019-05-30 09:21:56 +02:00
Jaco Greeff
889d81f203
README updates ( #30 )
...
* README updates
* Consistent eventTarget
2019-05-24 23:50:26 +02:00
Jaco Greeff
29c6f59f2f
Undefined check
2019-05-24 16:29:32 +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