Repot Logo
ContractsChainsProtocolsSocial Media
Search for all contractsSearch for code snippets
Contracts
Protocols
Repot
v0.8.0
Repot
DocumentationPrivacyTerms
Social
DiscordXTelegram
Mantle Token Contracts

Mantle Token Contracts

0
Download CodeOpen Code

L1/L1MantleToken.sol

Mantle Token

Hardhat tests Forge tests

Usage

This repository contains the Mantle token contract and the on chain migration mechanism.

Installation Prerequites

This repository uses both the Hardhat and Foundry smart contract development frameworks.

Install the following on your machine:

  1. Hardhat
  2. Foundry

Install Repo

Run

cp .env.example .env

to establish a test configuration file.

Then compile the contracts with:

forge build

You should see a Compiler run successful messaage upon successful build.

Testing

Testing with Forge:

forge test

Testing with Hardhat:

npx hardhat test

Deployment

Locally

npx hardhat node
npx hardhat run scripts/deploy.ts