0.1.0 • Published 2 years ago

@treasure-chess/treasure-contracts v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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

👤 0xdavinchee

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by readme-md-generator