
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
argent-connect-core
Advanced tools
npm install argent-connect-core
Create a storage object for the dapp key:
const dappStorage = new ArgentConnect.StorageLocalEncrypted(); // or const dappStorage = new ArgentConnect.StorageLocal();
Define the contracts and methods your dapp will call:
const dappAuthorizations: [
{
contract: '<my contract 1 address>',
methodName: '<method 1>',
methodSig: ['0x5b372532']
},
{
contract: '<my contract 1 address>',
methodName: '<method 2>',
methodSig: ['0xd5b50610']
},
{
contract: '<my contract 2 address>',
methodName: '<method 1>',
methodSig: ['0xce0d947a']
}
];
Create your Argent configuration:
const argentConfig = {
dappName: "My Dapp",
authorizations: dappAuthorizations,
storage: dappStorage,
rpcUrl: "https://ropsten.infura.io/v3/<my Infura Key>"
}
Include the Argent Connect button in your render
method:
<ArgentConnectReactButton config={argentConfig} onConnected={this.onConnectedWithArgent} />
The button has a onConnected
property that returns a Provider
object when the User has successfully connected with Argent. Make sure to use this Provider
to instantiate Web3:
onConnectedWithArgent = async (provider) => { this.web3 = new Web3(provider); }
The initial project was crafted by the team at Argent. However, we encourage anyone to help implement new features and to keep this library up-to-date. For features and fixes, simply submit a pull request to the develop branch. Please follow the contributing guidelines.
For bug reports and feature requests, please open an issue.
Released under LGPL-3.0
FAQs
Argent-Connect core library
The npm package argent-connect-core receives a total of 0 weekly downloads. As such, argent-connect-core popularity was classified as not popular.
We found that argent-connect-core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.