Technical Reference
MockERC20
Source Revision 0x96ac041e…9e33b8
| Property | Value |
|---|---|
| Source Revision | 0x96ac041e87af498805f9b1021859d89c5ed8c070d57b85eb3c744375ae9e33b8 |
| Source URL | https://raw.githubusercontent.com/busytoby/atropa_pulsechain/683d30c7ce4aef2388bd0495517331174d881289/solidity/MockERC20.sol |
| Source commit | 683d30c7ce4aef2388bd0495517331174d881289 |
| Source Status | Archived source snapshot; this does not establish deployed bytecode equivalence. |
| Compiler | solc 0.8.21; optimizer enabled with 200 runs |
| Compiler Configuration | {"evmVersion":"compiler-default","optimizer":{"enabled":true,"runs":200},"version":"0.8.21+commit.d9974bed.Linux.g++"} |
| Compilation Closure Hash | 0x346fa048ae460c53c824db2ae358583c170694381935943f95bccb3dd8ce6095 |
| Compilation Closure Files | 1 |
| Hash Generated | 2026-08-22T00:06:01Z |
Overview
Section titled “Overview”- Kind: Contract
- License: MIT
- Solidity: ^0.8.20
- Source:
MockERC20.sol
Inheritance Chain (C3 Linearized)
Section titled “Inheritance Chain (C3 Linearized)”No base contracts; this contract has no parents.
Immediate Parents
Section titled “Immediate Parents”None (root of its hierarchy).
State Variables
Section titled “State Variables”| Variable | Type | Visibility | Mutability | Initial Value | NatSpec |
|---|---|---|---|---|---|
name |
string |
public | mutable | Zork Gold Coin |
|
symbol |
string |
public | mutable | ZGC |
|
decimals |
uint8 |
public | mutable | 18 |
|
totalSupply |
uint256 |
public | mutable | `` | |
balanceOf |
mapping(address => uint256) |
public | mutable | `` | |
allowance |
mapping(address => mapping(address => uint256)) |
public | mutable | `` |
Events
Section titled “Events”| Event | Parameters | Anonymous | NatSpec |
|---|---|---|---|
Transfer |
address indexed from, address indexed to, uint256 value | no | |
Approval |
address indexed owner, address indexed spender, uint256 value | no |
Constructor
Section titled “Constructor”constructor
Section titled “constructor”constructorconstructor
constructor()Functions
Section titled “Functions”External & Public
Section titled “External & Public”transfer
Section titled “transfer”transferfunction
function transfer(address to, uint256 value) public returns (bool)- Visibility: public
- Parameters: address to, uint256 value
- Returns: bool
approve
Section titled “approve”approvefunction
function approve(address spender, uint256 value) public returns (bool)- Visibility: public
- Parameters: address spender, uint256 value
- Returns: bool
transferFrom
Section titled “transferFrom”transferFromfunction
function transferFrom(address from, address to, uint256 value) public returns (bool)- Visibility: public
- Parameters: address from, address to, uint256 value
- Returns: bool
Internal
Section titled “Internal”_mintfunction
function _mint(address to, uint256 value) internal- Visibility: internal
- Parameters: address to, uint256 value
Compiled ABI
Section titled “Compiled ABI”The compiled ABI below is produced by solc 0.8.21 from the exact source bytes recorded in Source details. Consumers can paste it directly into ethers/web3/viem.
Click to expand JSON ABI
[ { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "Approval", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "Transfer", "type": "event" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" }, { "internalType": "address", "name": "", "type": "address" } ], "name": "allowance", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "approve", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "balanceOf", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "decimals", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "name", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "symbol", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalSupply", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "transfer", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "transferFrom", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }]