0.1.0 • Published 2 years ago
@treasure-chess/treasure-contracts v0.1.0
Treasure Chess contract library
Usage
Note: The final contracts will be added once they are published. Until then only the ABIs are available here.
Install the package
yarn add @treasure-chess/treasure-contracts
Example usage:
import treasureArtifact from "@treasure-chess/treasure-contracts/artifacts/contracts/Treasure.sol/Treasure.json";
import { Contract } from "@ethersproject/contracts";
import { JsonRpcProvider } from "@ethersproject/providers";
const treasureAbi = treasureArtifact.abi;
const rpcProvider = new JsonRpcProvider(process.env.MATIC_RPC);
const treasureContract = new Contract(
"0x...."; // See our docs for the address
treasureAbi,
rpcProvider
);
const tx = await treasureContract.balanceOf("0x...")
Authors
👤 Joseph Schiarizzi
- GitHub: @jschiarizzi
👤 0xdavinchee
- GitHub: @0xdavinchee
Show your support
Give a ⭐️ if this project helped you!
This README was generated with ❤️ by readme-md-generator
0.1.1-dev.8efaccd.0
2 years ago
0.1.1-dev.e594441.0
2 years ago
0.0.6-dev.08b2903.0
2 years ago
0.0.6-dev.4858c53.0
2 years ago
0.0.6-dev.3cdf12c.0
2 years ago
0.0.6-dev.e6800c5.0
2 years ago
0.1.1-dev.f7016b2.0
2 years ago
0.1.1-dev.416afef.0
2 years ago
0.0.6-dev.42c0994.0
2 years ago
0.1.0
2 years ago
0.0.6-dev.7e75cc5.0
2 years ago
0.0.6-dev.76f18e0.0
2 years ago
0.1.1-dev.5497542.0
2 years ago
0.0.6-dev.1f98912.0
2 years ago
0.0.6-dev.5f85ec6.0
2 years ago
0.0.6-dev.8e17d08.0
2 years ago
0.0.6-dev.872943.0
2 years ago
0.0.4
2 years ago