Skip to content

OpenGradient/opg-token

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenGradient Token (OPG)

An ERC20 token implementation built with OpenZeppelin contracts and Foundry.

Features

  • 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

Contract Details

Property Value
Name OpenGradient
Symbol OPG
Decimals 18
Total Supply 1,000,000,000 OPG

Contract Instances

Chain Address
Base Sepolia 0x240b09731D96979f50B2C649C9CE10FcF9C7987F

Installation

git clone <repository-url>
cd opg
forge install

Usage

Build

forge build

Test

forge test

Format

forge fmt

Deployment

Set 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> \
  --broadcast

For 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

About

OpenGradient Token ($OPG)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors