dec-contracts-v1
v1.0.1-dep15
Published
Smart contracts typed interface for DEC.
Downloads
7
Readme
DEC Contracts
Smart contracts typed interface for DEC.
Usage
Use with web3-react
import { useWeb3React } from "@web3-react/core";
import {
DECMarket,
DECMarket__factory,
} from "dec-contracts-v1/typechain-types";
import deployments from "dec-contracts-v1/deployments.json";
const { provider } = useWeb3React();
// your typed contract instance
const decMarket: DECMarket = DECMarket__factory.connect(
deployments.decMarket,
provider,
);