raffle-contract
v0.5.0
Published
> Autogenerated file. Do not edit manually.
Downloads
23
Readme
Autogenerated file. Do not edit manually.
raffle-contract
Install
$ npm install [email protected]
Contracts
- Raffle
Usage Example
we can import contract's typescript type definition and abi, and then use them to create a contract instance and interactive with on-chain contracts using the instance:
import { } from "raffle-contract/lib/";
import { ABI } from "raffle-contract/lib/abi";
const contract: = new ethers.Contract("0xAb...yZ", ABI, provider) as unknown as ;
or, we can create a contract instance use at(address)
directly and interactive with on-chain contracts using the instance:
import { } from "raffle-contract/lib/";
import { Contract } from "raffle-contract";
const contract: = Contract.at("0xAb...yZ").connect(provider);
if you are using hardhat-deployed-records
plugin and config includeDeployed: true
, you can create a contract instance use at[network]()
with builtin contract address from this package:
import { } from "raffle-contract/lib/";
import { Contract } from "raffle-contract";
const contract: = Contract.at().connect(provider);