Smart Contracts
Contract Addresses
All Antscoin smart contracts are open source, verified, and audited for maximum transparency and security
CertiK Audited
Full audit passed
Timelock Protected
48 hour delay
Open Source
MIT License
Community Owned
DAO governed
AntsToken
ERC-20
Verified
Audited
Main ANTS token contract with mining rewards distribution
0x1234567890123456789012345678901234567890
Key Functions:
transfer(address to, uint256 amount)
approve(address spender, uint256 amount)
mint(address to, uint256 amount) onlyMinter
burn(uint256 amount)
MiningRewardDistributor
Mining
Verified
Audited
Handles mining reward calculations and distributions
0x2345678901234567890123456789012345678901
Key Functions:
claimRewards(uint256 sessionId)
calculateReward(address miner) view returns (uint256)
updateDifficulty(uint256 newDifficulty) onlyGovernance
pauseMining() onlyOwner
TokenManager
Governance
Verified
Audited
Manages token minting, burning, and vesting schedules
0x3456789012345678901234567890123456789012
Key Functions:
createVestingSchedule(address beneficiary, uint256 amount, uint256 duration)
releaseVested(address beneficiary)
updateMintingRate(uint256 newRate) onlyGovernance
emergencyPause() onlyOwner
BoostFarming
DeFi
Verified
Audited
Boost farming contract for increased mining rewards
0x4567890123456789012345678901234567890123
Key Functions:
stake(uint256 amount)
unstake(uint256 amount)
claimBoost()
getBoostMultiplier(address user) view returns (uint256)
GovernanceTimelock
Governance
Verified
Audited
Timelock contract for governance proposals and execution
0x5678901234567890123456789012345678901234
Key Functions:
queueTransaction(address target, bytes data, uint256 eta)
executeTransaction(address target, bytes data, uint256 eta)
cancelTransaction(address target, bytes data, uint256 eta)
setDelay(uint256 delay) onlyOwner
Mainnet Deployment
Chain ID:
1
RPC URL:
https://eth-mainnet.g.alchemy.com/v2/your-api-key
Explorer:https://etherscan.io
Deploy Block:
18,500,000
Testnet Deployment
Chain ID:
5
RPC URL:
https://eth-goerli.g.alchemy.com/v2/your-api-key
Explorer:https://goerli.etherscan.io
Deploy Block:
9,500,000
Integration Example
// Install dependencies
npm install ethers @antscoin/contracts
// Import and initialize
import { ethers } from 'ethers';
import { AntsToken, MiningRewardDistributor } from '@antscoin/contracts';
// Connect to provider
const provider = new ethers.providers.JsonRpcProvider('YOUR_RPC_URL');
const signer = new ethers.Wallet('YOUR_PRIVATE_KEY', provider);
// Initialize contracts
const antsToken = new ethers.Contract(
'0x1234567890123456789012345678901234567890',
AntsToken.abi,
signer
);
const miningDistributor = new ethers.Contract(
'0x2345678901234567890123456789012345678901',
MiningRewardDistributor.abi,
signer
);
// Example: Claim mining rewards
async function claimRewards(sessionId) {
const tx = await miningDistributor.claimRewards(sessionId);
const receipt = await tx.wait();
console.log('Rewards claimed:', receipt.transactionHash);
}
// Example: Check balance
async function checkBalance(address) {
const balance = await antsToken.balanceOf(address);
console.log('Balance:', ethers.utils.formatEther(balance), 'ANTS');
}
Contract SDK
TypeScript SDK for easy contract interaction
GitHub Repo
View all contract source code on GitHub
Bug Bounty
Find vulnerabilities and earn rewards