WeaveVM (WVM)
  • WeaveVM (WVM)
  • About WeaveVM
    • Overview
    • Network Releases Nomenclature
    • WeaveVM Alphanets
    • Key Features
    • ELI5
  • Using WeaveVM
    • Compatibility
    • Network configurations
    • WeaveVM Bundler
    • WeaveVM Bundler Gateways
    • wvm:// Data Protocol
    • WeaveVM Precompiles
    • WeaveVM-Native JSON-RPC Methods
    • Self-Hosted RPC Proxies
      • Rust Proxy
      • JavaScript Proxy
    • Code & Integrations Examples
      • ether-rs
      • ethers (etherjs)
      • Deploying an ERC20 Token
  • WeaveVM for evm chains
    • Ledger Archiver (any chain)
    • Ledger Archivers: State Reconstruction
    • DA ExEx (Reth-only)
    • Deploying OP-Stack Rollups
  • WeaveVM ExEx
    • About ExExes
    • ExEx.rs
    • WeaveVM ExExes
      • MLExEx
      • Google BigQuery ETL
      • Borsh Serializer
      • Arweave Data Uploader
      • WeaveVM DA ExEx
      • WeaveVM WeaveDrive ExEx
  • WeaveVM Arweave Data Protocols
    • WeaveVM-ExEx Data Protocol
    • WeaveVM Precompiles Data Protocol
  • DA Integrations
    • WeaveVM-EigenDA Proxy Server
    • WeaveVM - Dymension.xyz: DA client for RollAP
  • WeaveVM Stack Hacks
    • About WeaveVM Stack Hacks
    • Data Availability Hacks
  • MEM Lambda
    • About MEM
    • About MEM Lambda
    • Parallel Execution
    • MEM Lambda Sequencer
    • Contract Example: Counter
  • WeaveVM R&D
    • About R&D
    • elciao
    • ERC-7689
    • WeaveVM & VACP
  • Sunset Network Versions
    • About Sunset Network Versions
    • WeaveVM Alphanet V1
Powered by GitBook
On this page
  • Add WVM Testnet Network to MetaMask
  • ERC20 Contract
  • Deployment
  1. Using WeaveVM
  2. Code & Integrations Examples

Deploying an ERC20 Token

Deploy an ERC20 token on WeaveVM

Previousethers (etherjs)NextLedger Archiver (any chain)

Last updated 11 months ago

Add WVM Testnet Network to MetaMask

Before deploying, make sure the WeaveVM (WVM) network is configured in your MetaMask wallet. .

ERC20 Contract

For this example, we will use the ERC20 token template provided by the smart contract library.

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/// @title Useless Testing Token
/// @notice Just a testing shitcoin
/// @dev WeaveGM gmgm
/// @author pepe frog
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

contract WeaveGM is ERC20 {
    constructor(uint256 initialSupply) ERC20("WeaveGM", "WGM") {
        _mint(msg.sender, initialSupply);
    }
}

Deployment

Now that you have your contract source code ready, compile the contract and hit deploy with an initial supply.

After deploying the contract successfully, check your EOA balance!

Check the Network Configurations
OpenZeppelin's
69420 WeaveGMs because why not
Success!