An ERC20 token implementation built with OpenZeppelin contracts and Foundry.
- ERC20 Standard: Full ERC20 compliance for transfers, approvals, and allowances
- ERC20Permit: Gasless approvals via EIP-2612 signatures
- Fixed Supply: 1 billion tokens minted at deployment
- Immutable: No admin functions
| Property | Value |
|---|---|
| Name | OpenGradient |
| Symbol | OPG |
| Decimals | 18 |
| Total Supply | 1,000,000,000 OPG |
| Chain | Address |
|---|---|
| Base Sepolia | 0x240b09731D96979f50B2C649C9CE10FcF9C7987F |
git clone <repository-url>
cd opg
forge installforge buildforge testforge fmtSet environment variables and run the deployment script:
export TREASURY_ADDRESS=0x...
forge script script/Deploy.s.sol:DeployScript \
--rpc-url <RPC_URL> \
--private-key <PRIVATE_KEY> \
--broadcastFor local testing with Anvil:
anvil
# In another terminal:
export TREASURY_ADDRESS=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
forge script script/Deploy.s.sol:DeployScript \
--rpc-url http://localhost:8545 \
--private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 \
--broadcast