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

Integrating StableWallet into InjectedWallet #2116

Merged
merged 12 commits into from
Apr 12, 2024

Conversation

mytangying
Copy link
Contributor

@mytangying mytangying commented Mar 26, 2024

Description

PLEASE NOTE- Checklist must be complete prior to review.

Checklist

  • Increment the version field in package.json of the package you have made changes in following semantic versioning and using alpha release tagging
  • Check the box that allows repo maintainers to update this PR
  • Test locally to make sure this feature/fix works
  • Run yarn check-all to confirm there are not any associated errors
  • Confirm this PR passes Circle CI checks
  • Add or update relevant information in the documentation

Docs Checklist

  • Include a screenshot of any changes (see docs README on running locally)
  • Add/update the appropriate package README (if applicable)
  • Add/update the related module in the docs demo (if applicable)
  • Add/update the related package in the docs/package.json file (if applicable)

If this PR includes changes to add an injected wallet or SDK wallet module:

Please complete the following using the internal demo package.
To run this demo use the command yarn && yarn dev to get the project running at http://localhost:8080/

Tests with demo app (injected)

  • send transaction
  • switch chains
  • sign message
  • sign typed message
  • disconnect

Tests with demo app (SDK)

  • send transaction
  • switch chains
  • sign message
  • sign typed message
  • disconnect

Copy link

socket-security bot commented Mar 26, 2024

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSource
Telemetry npm/[email protected]
  • Note: Can be disabled by setting the environment variable NEXT_TELEMETRY_DISABLED=1 . See https://nextjs.org/telemetry for more information
Install scripts npm/[email protected]
  • Install script: postinstall
  • Source: node -e "try{require('./postinstall')}catch(e){}"
Protestware/Troll package npm/[email protected]
  • Note: This package prints a protestware console message on install regarding Ukraine for users with Russian language locale
Install scripts npm/[email protected]
  • Install script: postinstall
  • Source: node -e "try{require('./_postinstall')}catch(e){}" || exit 0
Install scripts npm/[email protected]
Install scripts npm/[email protected]
  • Install script: postinstall
  • Source: echo "[svelte-preprocess] Don't forget to install the preprocessors packages that will be used: sass, stylus, less, postcss & postcss-load-config, coffeescript, pug, etc..."
Install scripts npm/@sveltejs/[email protected]
  • Install script: postinstall
  • Source: node postinstall.js
Install scripts npm/[email protected]

View full report↗︎

Next steps

What is telemetry?

This package contains telemetry which tracks how it is used.

Most telemetry comes with settings to disable it. Consider disabling telemetry if you do not want to be tracked.

What is an install script?

Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.

Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.

What is protestware?

This package is a joke, parody, or includes undocumented or hidden behavior unrelated to its primary function.

Consider that consuming this package my come along with functionality unrelated to its primary purpose.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/[email protected] or ignore all packages with @SocketSecurity ignore-all

@Adamj1232
Copy link
Member

@mytangying since StableWallet is a browser injected wallet we dont support creating a new module just to add support.
Web3-Onboard injected module now support 6963 wallets which means if your wallet is EIP 6963 compatible(highly recommended) the injected module will pick it up automatically without requiring web3-onboard integration.

@mytangying mytangying changed the title feature: Integrating StableWallet into onboard Integrating StableWallet into InjectedWallet Mar 28, 2024
@Adamj1232
Copy link
Member

@mytangying the PR is looking good. Can you please bump the alpha version within the injected/package.json at the top of the file?
Can you please also verify the checks in the description of this PR and confirm all testing has been done using the internal demo (yarn && yarn dev)?

docs/package.json Outdated Show resolved Hide resolved
@Adamj1232
Copy link
Member

@mytangying please merge in the latest develop and bump the versions as described in the PR when you have a moment.
I tried to push on my end but your repo is locked down.
I will be putting a release together in the next couple hours if you would like to make this repo into that.

Copy link

socket-security bot commented Apr 10, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@babel/[email protected] None +1 229 kB nicolo-ribaudo
npm/@esbuild-plugins/[email protected] Transitive: environment, filesystem, network, shell +24 224 MB xmorse
npm/@esbuild-plugins/[email protected] filesystem Transitive: environment, network, shell, unsafe +31 226 MB xmorse
npm/@ethersproject/[email protected] None 0 60.2 kB ricmoo
npm/@ethersproject/[email protected] None 0 82.2 kB ricmoo
npm/@ethersproject/[email protected] None 0 33.1 kB ricmoo
npm/@fontsource/[email protected] None 0 1.02 MB lotusdevshack
npm/@jridgewell/[email protected] None 0 40 kB jridgewell
npm/@rollup/[email protected] filesystem Transitive: environment +12 861 kB shellscape
npm/@sveltejs/[email protected] environment, filesystem, shell +1 78.4 kB svelte-admin
npm/@sveltejs/[email protected] environment, eval, filesystem Transitive: network, unsafe +20 2.75 MB svelte-admin
npm/@types/[email protected] None 0 9.76 kB types
npm/@types/[email protected] None 0 25.7 kB types
npm/@typescript-eslint/[email protected] Transitive: environment, filesystem +26 5.69 MB jameshenry
npm/@typescript-eslint/[email protected] Transitive: environment, filesystem +15 1.98 MB jameshenry
npm/@unstoppabledomains/[email protected] None +1 888 kB dchan0319
npm/@walletconnect/[email protected] None 0 103 kB gancho_walletconnect
npm/@walletconnect/[email protected] None +1 188 kB gancho_walletconnect
npm/@walletconnect/[email protected] None +1 345 kB gancho_walletconnect
npm/@walletconnect/[email protected] None 0 218 kB bkrem
npm/@web3-onboard/[email protected] None +7 1.19 MB cmeisl
npm/@web3-onboard/[email protected] Transitive: environment +1 62.5 kB cmeisl
npm/@web3-onboard/[email protected] Transitive: environment, eval, filesystem, network, unsafe +173 34.2 MB cmeisl
npm/[email protected] eval +4 1.47 MB esp
npm/[email protected] None +2 50.9 kB sindresorhus
npm/[email protected] None 0 22.9 kB ljharb
npm/[email protected] Transitive: environment, eval +9 357 kB ljharb
npm/[email protected] None +3 98.1 kB doowb
npm/[email protected] None 0 3.52 kB indutny
npm/[email protected] None +1 34.6 kB cwmma
npm/[email protected] None +1 103 kB cwmma
npm/[email protected] None +1 980 kB dignifiedquire
npm/[email protected] None +1 101 kB feross
npm/[email protected] None +1 39.9 kB ljharb
npm/[email protected] None +5 100 kB ljharb
npm/[email protected] None 0 7.95 kB cwmma
npm/[email protected] None +1 12.9 kB cwmma
npm/[email protected] None 0 5.81 kB cwmma
npm/[email protected] None +12 334 kB cwmma
npm/[email protected] None +1 125 kB medikoo
npm/[email protected] environment +1 49.2 kB qix
npm/[email protected] None 0 6.09 kB samverschueren
npm/[email protected] None 0 30.4 kB tehshrike
npm/[email protected] None +3 62.7 kB ljharb
npm/[email protected] None +1 19.7 kB ljharb
npm/[email protected] None +1 39.4 kB ljharb
npm/[email protected] None +2 148 kB indutny
npm/[email protected] None +22 1.79 MB ljharb
npm/[email protected] eval +1 402 kB medikoo
npm/[email protected] None +2 131 kB medikoo
npm/[email protected] unsafe Transitive: environment, eval, filesystem, network +55 42.8 MB vercel-release-bot
npm/[email protected] None 0 18.2 kB lydell
npm/[email protected] None 0 41.3 kB conduitry
npm/[email protected] filesystem Transitive: environment, unsafe +8 3.79 MB eslintbot
npm/[email protected] filesystem Transitive: environment, shell, unsafe +61 8.93 MB eslintbot
npm/[email protected] None 0 75.8 kB eslintbot
npm/[email protected] None 0 37.1 kB michaelficarra
npm/[email protected] None 0 50.2 kB rich_harris
npm/[email protected] None +1 12.8 kB dcousens
npm/[email protected] None 0 13 kB esp
npm/[email protected] filesystem +1 148 kB mrmlnc
npm/[email protected] eval +2 64.6 kB ljharb
npm/[email protected] eval +5 127 kB ljharb
npm/[email protected] filesystem 0 55.9 kB isaacs
npm/[email protected] None 0 12.8 kB ljharb
npm/[email protected] None +1 22.7 kB ljharb
npm/[email protected] None +1 38.2 kB ljharb
npm/[email protected] None 0 6.03 kB dcousens
npm/[email protected] None 0 41.7 kB indutny
npm/[email protected] None 0 6.8 kB feross
npm/[email protected] Transitive: filesystem, unsafe +3 19.8 kB sindresorhus
npm/[email protected] None 0 3.96 kB isaacs
npm/[email protected] None 0 20.1 kB ljharb
npm/[email protected] None +2 55.2 kB ljharb
npm/[email protected] None +1 19.8 kB phated
npm/[email protected] None +1 30 kB ljharb
npm/[email protected] None 0 22 kB ljharb
npm/[email protected] None 0 4.41 kB hughsk
npm/[email protected] None 0 230 kB ljharb
npm/[email protected] None 0 8.9 kB zensh
npm/[email protected] None 0 1.55 kB cwmma
npm/[email protected] None +3 57.8 kB isaacs
npm/[email protected] None 0 33.2 kB substack
npm/[email protected] None 0 50.7 kB ljharb
npm/[email protected] None 0 7.65 kB medikoo
npm/[email protected] environment, filesystem, network, shell, unsafe +20 578 MB vercel-release-bot
npm/[email protected] None 0 9.22 kB jonschlinkert
npm/[email protected] None 0 93.6 kB ljharb
npm/[email protected] None 0 1.14 MB ljharb
npm/[email protected] None +1 7.01 kB isaacs
npm/[email protected] Transitive: unsafe +1 71.4 kB ljharb
npm/[email protected] None 0 13.8 kB cwmma
npm/[email protected] None 0 90 kB mrmlnc
npm/[email protected] environment 0 254 kB dummdidumm
npm/[email protected] environment, filesystem, unsafe 0 11.7 MB prettier-bot
npm/[email protected] None 0 6.36 kB cwmma
npm/[email protected] environment +1 4.6 MB gnoff
npm/[email protected] environment +5 147 kB matteo.collina
npm/[email protected] None +1 53.4 kB ljharb
npm/[email protected] environment, filesystem +2 160 kB ljharb
npm/[email protected] None 0 9.79 kB dcousens
npm/[email protected] None +3 1.52 MB fredkschott
npm/[email protected] environment, filesystem +1 2.68 MB lukastaegert
npm/[email protected] None 0 4.49 MB blesh
npm/[email protected] None +1 44.8 kB lukeed
npm/[email protected] None 0 32.1 kB feross
npm/[email protected] None 0 31.1 kB dcousens
npm/[email protected] Transitive: environment +2 150 kB goto-bus-stop
npm/[email protected] None +3 49.6 kB sindresorhus
npm/[email protected] None +1 9.64 kB sindresorhus
npm/[email protected] None 0 6.96 kB sindresorhus
npm/[email protected] Transitive: environment, filesystem +10 4.76 MB svelte-language-tools-deploy
npm/[email protected] environment, filesystem Transitive: eval +21 2.88 MB dummdidumm
npm/[email protected] None 0 9.74 MB conduitry
npm/[email protected] None 0 60 kB typescript-bot
npm/[email protected] None +1 57.9 kB gkz
npm/[email protected] None 0 66.8 MB typescript-bot
npm/[email protected] None +1 624 kB achingbrain
npm/[email protected] None 0 5.48 kB tootallnate
npm/[email protected] environment, eval, filesystem, network, shell, unsafe +29 213 MB vitebot
npm/[email protected] None +5 122 kB ljharb

🚮 Removed packages: npm/[email protected], npm/@adraffy/[email protected], npm/@ampproject/[email protected], npm/@apocentre/[email protected], npm/@arcana/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@bitget-wallet/[email protected], npm/@blocto/[email protected], npm/@blocto/[email protected], npm/@cedelabs/[email protected], npm/@celo/[email protected], npm/@celo/[email protected], npm/@chainsafe/[email protected], npm/@chainsafe/[email protected], npm/@chainsafe/[email protected], npm/@chakra-ui/[email protected], npm/@chakra-ui/[email protected], npm/@chakra-ui/[email protected], npm/@chakra-ui/[email protected], npm/@chakra-ui/[email protected], npm/@chakra-ui/[email protected], npm/@chakra-ui/[email protected], npm/@chakra-ui/[email protected], npm/@chakra-ui/[email protected], npm/@chakra-ui/[email protected], npm/@chakra-ui/[email protected], npm/@chakra-ui/[email protected], npm/@chakra-ui/[email protected], npm/@chakra-ui/[email protected], npm/@chakra-ui/[email protected], npm/@chakra-ui/[email protected], npm/@chakra-ui/[email protected], npm/@chakra-ui/[email protected], npm/@chakra-ui/[email protected], npm/@chakra-ui/[email protected], npm/@chakra-ui/[email protected], npm/@chakra-ui/[email protected], npm/@chakra-ui/[email protected], npm/@chakra-ui/[email protected], npm/@chakra-ui/[email protected], npm/@chakra-ui/[email protected], npm/@chakra-ui/[email protected], npm/@chakra-ui/[email protected], npm/@chakra-ui/[email protected], npm/@chakra-ui/[email protected], npm/@chakra-ui/[email protected], npm/@chakra-ui/[email protected], npm/@chakra-ui/[email protected], npm/@coinbase/[email protected], npm/@cosmjs/[email protected], npm/@cosmjs/[email protected], npm/@cosmjs/[email protected], npm/@cosmjs/[email protected], npm/@cosmjs/[email protected], npm/@cosmjs/[email protected], npm/@cspotcode/[email protected], npm/@cspotcode/[email protected], npm/@discoveryjs/[email protected], npm/@emotion/[email protected], npm/@emotion/[email protected], npm/@emotion/[email protected], npm/@emotion/[email protected], npm/@eslint/[email protected], npm/@ethereumjs/[email protected], npm/@ethereumjs/[email protected], npm/@ethereumjs/[email protected], npm/@ethereumjs/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@findeth/[email protected], npm/@formatjs/[email protected], npm/@formatjs/[email protected], npm/@hapi/[email protected], npm/@hapi/[email protected], npm/@hapi/[email protected], npm/@hapi/[email protected], npm/@hapi/[email protected], npm/@humanwhocodes/[email protected], npm/@infinitywallet/[email protected], npm/@ioredis/[email protected], npm/@jridgewell/[email protected], npm/@jridgewell/[email protected], npm/@jridgewell/[email protected], npm/@keepkey/[email protected], npm/@keystonehq/[email protected], npm/@keystonehq/[email protected], npm/@ledgerhq/[email protected], npm/@ledgerhq/[email protected], npm/@lit-labs/[email protected], npm/@magic-sdk/[email protected], npm/@magic-sdk/[email protected], npm/@magic-sdk/[email protected], npm/@metamask/[email protected], npm/@metamask/[email protected], npm/@metamask/[email protected], npm/@metamask/[email protected], npm/@metamask/[email protected], npm/@metamask/[email protected], npm/@metamask/[email protected], npm/@metamask/[email protected], npm/@metamask/[email protected], npm/@metamask/[email protected], npm/@metamask/[email protected], npm/@metamask/[email protected], npm/@metamask/[email protected], npm/@metamask/[email protected], npm/@motionone/[email protected], npm/@motionone/[email protected], npm/@motionone/[email protected], npm/@motionone/[email protected], npm/@motionone/[email protected], npm/@motionone/[email protected], npm/@myetherwallet/[email protected], npm/@ngraveio/[email protected], npm/@niceties/[email protected], npm/@noble/[email protected], npm/@noble/[email protected], npm/@noble/[email protected], npm/@noble/[email protected], npm/@nothing-but/[email protected], npm/@parcel/[email protected], npm/@parcel/[email protected], npm/@parcel/[email protected], npm/@parcel/[email protected], npm/@parcel/[email protected], npm/@parcel/[email protected], npm/@parcel/[email protected], npm/@parcel/[email protected], npm/@parcel/[email protected], npm/@parcel/[email protected], npm/@parcel/[email protected], npm/@parcel/[email protected], npm/@parcel/[email protected], npm/@parcel/[email protected], npm/@particle-network/[email protected], npm/@particle-network/[email protected], npm/@particle-network/[email protected], npm/@portis/[email protected], npm/@protobufjs/[email protected], npm/@ramp-network/[email protected], npm/@rollup-extras/[email protected], npm/@rollup/[email protected], npm/@rollup/[email protected], npm/@rollup/[email protected], npm/@rollup/[email protected], npm/@safe-global/[email protected], npm/@safe-global/[email protected], npm/@shapeshiftoss/[email protected], npm/@shapeshiftoss/[email protected], npm/@shapeshiftoss/[email protected], npm/@shapeshiftoss/[email protected], npm/@solana/[email protected], npm/@solid-devtools/[email protected], npm/@solid-primitives/[email protected], npm/@solid-primitives/[email protected], npm/@solid-primitives/[email protected], npm/@tanstack/[email protected], npm/@tanstack/[email protected], npm/@tanstack/[email protected], npm/@tanstack/[email protected], npm/@tanstack/[email protected], npm/@toruslabs/[email protected], npm/@toruslabs/[email protected], npm/@toruslabs/[email protected], npm/@toruslabs/[email protected], npm/@toruslabs/[email protected], npm/@toruslabs/[email protected], npm/@toruslabs/[email protected], npm/@toruslabs/[email protected], npm/@trezor/[email protected], npm/@trezor/[email protected], npm/@trezor/[email protected], npm/@trezor/[email protected], npm/@trezor/[email protected], npm/@trezor/[email protected], npm/@trezor/[email protected], npm/@tsconfig/[email protected], npm/@tsconfig/[email protected], npm/@tsconfig/[email protected], npm/@tsconfig/[email protected], npm/@tsconfig/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@typescript-eslint/[email protected], npm/@typescript-eslint/[email protected], npm/@web3-onboard/[email protected], npm/@web3-onboard/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

docs/package.json Outdated Show resolved Hide resolved
mytangying and others added 3 commits April 12, 2024 09:07
Copy link
Member

@Adamj1232 Adamj1232 left a comment

Choose a reason for hiding this comment

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

Looks good! If you would like to work some promo up with the BN team please feel free to reach out

@Adamj1232 Adamj1232 merged commit 05a3868 into blocknative:develop Apr 12, 2024
2 of 3 checks passed
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.

2 participants