Skip to content

Gate402/gate-token-sc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gate402 Smart Contracts

Smart contracts for the Gate402 platform, including the GAToken (G402) ERC20 token with EIP-3009 support for gasless transfers.

Overview

GAToken is an ERC20 token with the following features:

  • ERC20: Standard fungible token functionality
  • EIP-3009: Transfer with authorization (gasless transfers via meta-transactions)
  • ERC20Permit: Gasless approvals via EIP-2612
  • ERC20Burnable: Token holders can burn their tokens
  • Access Control: Role-based minting with MINTER_ROLE

Token details:

  • Name: Gate402
  • Symbol: G402
  • Deployment: Deterministic addresses via Create2Deployer

Installation

Install dependencies using Foundry:

forge install

Configuration

Create a .env file with the following variables:

# Required
PRIVATE_KEY=<your_private_key>
CREATE2_DEPLOYER=<create2_deployer_address>
SALT=<deployment_salt>

# Optional (defaults to deployer address)
ADMIN_ADDRESS=<admin_address>

Deployment

Deploy GAToken using the deployment script:

forge script script/DeployGAToken.s.sol:DeployGAToken \
  --rpc-url <rpc_url> \
  --broadcast \
  --verify

Example for Mantle Sepolia:

forge script script/DeployGAToken.s.sol:DeployGAToken \
  --rpc-url https://rpc.sepolia.mantle.xyz \
  --broadcast \
  --verify

Development

Build

forge build

Test

forge test

Format

forge fmt

Gas Snapshots

forge snapshot

Documentation

Built with Foundry

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors