This project contains the AgentToken ERC20 contract, developed with Hardhat. The token applies a configurable tax on transfers to smart contract addresses, sending a portion of each taxed transfer to a specified tax wallet.
- contracts/: Contains the
AgentTokencontract andAutonomousAgentDeployercontract for creating Agents. - scripts/: Deployment and testing scripts for the contracts.
- test/: Unit tests for
AgentToken. - hardhat.config.ts: Hardhat configuration file.
-DEPLOYMENT_COST_ETH equals the sum of DEPLOYMENT_TREASURY_FEE and INITIAL_ TRADING_BALANCE
- Node.js >= 18
- npm
- Hardhat (latest version)
-
Clone the repository:
git clone https://github.com/YourUsername/autonomous-agent-contracts.git cd autonomous-agent-contracts -
Install dependencies
npm install
-
Compile the contracts
npx hardhat compile