Autogenerated file. Do not edit manually.
@bcrl/paperprofit
Install
$ npm install @bcrl/paperprofit@0.0.3
Contracts
- Paperprofit
Deployed Addresses
- Paperprofit
- PolygonMumbai: 0x09463479cb756F91297A7Dca31521e8cB37E6cF1
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 { Paperprofit } from "@bcrl/paperprofit/lib/contracts";
import { PaperprofitABI } from "@bcrl/paperprofit/lib/abi";
const contract: Paperprofit = new ethers.Contract("0xAb...yZ", PaperprofitABI, provider) as unknown as Paperprofit;
or, we can create a contract instance use at(address)
directly and interactive with on-chain contracts using the instance:
import { Paperprofit } from "@bcrl/paperprofit/lib/contracts";
import { PaperprofitContract } from "@bcrl/paperprofit";
const contract: Paperprofit = PaperprofitContract.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 { Paperprofit } from "@bcrl/paperprofit/lib/contracts";
import { PaperprofitContract } from "@bcrl/paperprofit";
const contract: Paperprofit = PaperprofitContract.atPolygonMumbai().connect(provider);