| | |
| | | // const providers = new ethers.providers.JsonRpcProvider('https://https://bsc-testnet.public.blastapi.io/'); |
| | | async function getBalanceOf(address){ |
| | | const contract = { |
| | | gfaCoin: '0x8F62AdD572607477342f8B088DCf52aB5E88345c', |
| | | gfaCoin: '0x33107d4502C8C59a8b96834c76d427B67AC1d873', |
| | | }; |
| | | const gfaContract = new ethers.Contract( |
| | | contract.gfaCoin, |
| | | [ |
| | | { |
| | | "inputs": [], |
| | | "inputs": [ |
| | | { |
| | | "internalType": "string[]", |
| | | "name": "symbolParam", |
| | | "type": "string[]" |
| | | }, |
| | | { |
| | | "internalType": "address[]", |
| | | "name": "adr", |
| | | "type": "address[]" |
| | | } |
| | | ], |
| | | "stateMutability": "nonpayable", |
| | | "type": "constructor" |
| | | }, |
| | |
| | | "type": "event" |
| | | }, |
| | | { |
| | | "inputs": [], |
| | | "name": "burnLiquidityToken", |
| | | "outputs": [], |
| | | "stateMutability": "nonpayable", |
| | | "type": "function" |
| | | }, |
| | | { |
| | | "inputs": [ |
| | | { |
| | | "internalType": "address", |
| | |
| | | "type": "bool" |
| | | } |
| | | ], |
| | | "stateMutability": "nonpayable", |
| | | "type": "function" |
| | | }, |
| | | { |
| | | "inputs": [], |
| | | "name": "generateReward", |
| | | "outputs": [], |
| | | "stateMutability": "nonpayable", |
| | | "type": "function" |
| | | }, |
| | |
| | | "inputs": [ |
| | | { |
| | | "internalType": "uint256", |
| | | "name": "amount", |
| | | "name": "startState", |
| | | "type": "uint256" |
| | | } |
| | | ], |
| | | "name": "mint", |
| | | "outputs": [ |
| | | { |
| | | "internalType": "bool", |
| | | "name": "", |
| | | "type": "bool" |
| | | } |
| | | ], |
| | | "name": "launch", |
| | | "outputs": [], |
| | | "stateMutability": "nonpayable", |
| | | "type": "function" |
| | | }, |
| | |
| | | }, |
| | | { |
| | | "inputs": [], |
| | | "name": "releaseFixCoin", |
| | | "outputs": [], |
| | | "stateMutability": "nonpayable", |
| | | "type": "function" |
| | | }, |
| | | { |
| | | "inputs": [], |
| | | "name": "renounceOwnership", |
| | | "outputs": [], |
| | | "stateMutability": "nonpayable", |
| | |
| | | "inputs": [ |
| | | { |
| | | "internalType": "uint256", |
| | | "name": "volumn", |
| | | "name": "mineTime", |
| | | "type": "uint256" |
| | | } |
| | | ], |
| | | "name": "setPawnVolumn", |
| | | "outputs": [], |
| | | "stateMutability": "nonpayable", |
| | | "type": "function" |
| | | }, |
| | | { |
| | | "inputs": [], |
| | | "name": "setStart", |
| | | "outputs": [], |
| | | "stateMutability": "nonpayable", |
| | | "type": "function" |
| | | }, |
| | | { |
| | | "inputs": [ |
| | | }, |
| | | { |
| | | "internalType": "uint256", |
| | | "name": "amount", |
| | | "name": "exchangeTime", |
| | | "type": "uint256" |
| | | }, |
| | | { |
| | | "internalType": "uint256", |
| | | "name": "burnTime", |
| | | "type": "uint256" |
| | | } |
| | | ], |
| | | "name": "toPawn", |
| | | "name": "setTimes", |
| | | "outputs": [], |
| | | "stateMutability": "nonpayable", |
| | | "type": "function" |
| | |
| | | "type": "bool" |
| | | } |
| | | ], |
| | | "stateMutability": "nonpayable", |
| | | "type": "function" |
| | | }, |
| | | { |
| | | "inputs": [ |
| | | { |
| | | "internalType": "address", |
| | | "name": "newOwner", |
| | | "type": "address" |
| | | } |
| | | ], |
| | | "name": "transferOwnership", |
| | | "outputs": [], |
| | | "stateMutability": "nonpayable", |
| | | "type": "function" |
| | | }, |
| | |
| | | "type": "address" |
| | | } |
| | | ], |
| | | "name": "getRewardHisotryTotal", |
| | | "outputs": [ |
| | | { |
| | | "internalType": "uint256", |
| | | "name": "", |
| | | "type": "uint256" |
| | | } |
| | | ], |
| | | "stateMutability": "view", |
| | | "type": "function" |
| | | }, |
| | | { |
| | | "inputs": [ |
| | | { |
| | | "internalType": "address", |
| | | "name": "adr", |
| | | "type": "address" |
| | | } |
| | | ], |
| | | "name": "getRewardHistory", |
| | | "outputs": [ |
| | | { |
| | |
| | | { |
| | | "internalType": "uint256", |
| | | "name": "amount", |
| | | "type": "uint256" |
| | | }, |
| | | { |
| | | "internalType": "uint256", |
| | | "name": "goldAmount", |
| | | "type": "uint256" |
| | | }, |
| | | { |
| | | "internalType": "uint256", |
| | | "name": "coinAmount", |
| | | "type": "uint256" |
| | | }, |
| | | { |
| | | "internalType": "uint256", |
| | | "name": "price", |
| | | "type": "uint256" |
| | | }, |
| | | { |
| | |
| | | "type": "function" |
| | | }, |
| | | { |
| | | "inputs": [], |
| | | "inputs": [ |
| | | { |
| | | "internalType": "address", |
| | | "name": "adr", |
| | | "type": "address" |
| | | } |
| | | ], |
| | | "name": "getRewardList", |
| | | "outputs": [ |
| | | { |
| | |
| | | }, |
| | | { |
| | | "internalType": "uint256", |
| | | "name": "price", |
| | | "type": "uint256" |
| | | }, |
| | | { |
| | | "internalType": "uint256", |
| | | "name": "timestemp", |
| | | "type": "uint256" |
| | | } |
| | |
| | | }, |
| | | { |
| | | "inputs": [], |
| | | "name": "getRouterAddress", |
| | | "name": "getTotalMineCnt", |
| | | "outputs": [ |
| | | { |
| | | "internalType": "address", |
| | | "internalType": "uint256", |
| | | "name": "", |
| | | "type": "address" |
| | | "type": "uint256" |
| | | } |
| | | ], |
| | | "stateMutability": "view", |
| | |
| | | }, |
| | | { |
| | | "inputs": [], |
| | | "name": "getTotalRemainCnt", |
| | | "outputs": [ |
| | | { |
| | | "internalType": "uint256", |
| | | "name": "", |
| | | "type": "uint256" |
| | | } |
| | | ], |
| | | "stateMutability": "view", |
| | | "type": "function" |
| | | }, |
| | | { |
| | | "inputs": [ |
| | | { |
| | | "internalType": "address", |
| | | "name": "adr", |
| | | "type": "address" |
| | | } |
| | | ], |
| | | "name": "getWaitRelease", |
| | | "outputs": [ |
| | | { |