-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontract.js
More file actions
28 lines (22 loc) · 729 Bytes
/
Copy pathcontract.js
File metadata and controls
28 lines (22 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import { ethers } from "ethers";
export const TOKEN_ADDRESS =
"0xd8519a8b8825aa0dcc73aad572f447fae102fe88";
export const FAUCET_ADDRESS =
"0xd8519a8b8825aa0dcc73aad572f447fae102fe88";
export const TOKEN_ABI = [
"function balanceOf(address) view returns (uint256)",
];
export const FAUCET_ABI = [
"function requestTokens()",
"function canClaim(address) view returns (bool)",
"function remainingAllowance(address) view returns (uint256)",
];
// contract.js
export const ABI = [
"function startMining()",
"function stopMining()",
"function claimReward()",
"function mint(address to, string uri)",
"function withdraw(uint256 amount)",
"function getPendingReward(address user) view returns (uint256)"
];