New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

dapp-contract

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dapp-contract

Smart contract ease of use.

latest
Source
npmnpm
Version
0.1.2
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

DApp-Contract

Smart contract ease of use.

NPM

npm i dapp-contract
// or
yarn add dapp-contract
// or
pnpm i dapp-contract

Usage

import Contract from "dapp-contract";
import abi from "./abi";

const config = {
    /** The smart contract address */
    ADDRESS: "0x3D0b2d43Bc4249357b54ca917BE56D5ABf04d1C0",
    /** The blockchain Network ID */
    NETWORK: 4,
};

const contract new Contract(config.ADDRESS, config.NETWORK, abi);

contract.contract // ethers contract (provider)

await contract.connect(); // connect to metamask

contract.contract // ethers contract (signer)

Keywords

ethers

FAQs

Package last updated on 28 Feb 2022

Did you know?

Socket

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.

Install

Related posts