Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add extension example #10

Merged
merged 29 commits into from Sep 11, 2022
Merged

feat: add extension example #10

merged 29 commits into from Sep 11, 2022

Conversation

olistic
Copy link
Collaborator

@olistic olistic commented Aug 26, 2022

Summary

This PR adds a browser extension that uses the standard natively to the examples.

For now, it includes:

  • Generation of BIP-39 mnemonic.
  • Derivation of BIP-44 wallets for Ethereum and Solana
  • The ability for dApps to connect to the wallet
  • The ability to select which accounts to grant access to

@olistic olistic changed the title Oli/example extension feat: add extension example Aug 26, 2022
@olistic olistic force-pushed the oli/example-extension branch 2 times, most recently from 262ea1c to 751be07 Compare August 28, 2022 23:22
Comment on lines +1 to +24
{
"private": true,
"name": "@wallet-standard/parcel-packager-webextension",
"version": "0.1.0",
"author": "Exodus Maintainers <maintainers@exodus.io>",
"repository": "https://github.com/wallet-standard/wallet-standard",
"license": "MIT",
"source": "src/WebExtensionPackager.js",
"main": "lib/WebExtensionPackager.js",
"engines": {
"node": ">=12.0.0",
"parcel": "^2.7.0"
},
"scripts": {
"clean": "shx mkdir -p .parcel-cache dist lib && shx rm -rf .parcel-cache dist lib",
"build": "parcel build"
},
"dependencies": {
"@parcel/plugin": "2.7.0",
"@parcel/utils": "2.7.0",
"nullthrows": "^1.1.1",
"parcel": "^2.3.2"
}
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will live here temporarily until parcel-bundler/parcel#8424 is merged or published separately.

@olistic olistic marked this pull request as ready for review September 9, 2022 16:15
Copy link
Collaborator

@jordaaash jordaaash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice, this implementation looks super clean and well organized.

@@ -28,6 +28,7 @@
"publish:alpha": "pnpm -r publish --tag alpha"
},
"devDependencies": {
"@types/chrome": "^0.0.195",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This dep should probably be specific to the extension package(s) right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried that first, but it didn't recognize the chrome global that way. Maybe additional TS config is needed at the extension example package?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy to fix in a follow-up PR.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, thanks!

@jordaaash jordaaash mentioned this pull request Sep 9, 2022
@olistic olistic merged commit 4f46b2f into master Sep 11, 2022
@olistic olistic deleted the oli/example-extension branch September 11, 2022 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants