Skip to content

Instantly share code, notes, and snippets.

View marcomu's full-sized avatar

Mark marcomu

View GitHub Profile
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface IERC20{
function totalSupply() external view returns (uint256);
function balanceOf(address _owner) external view returns (uint256 balance);
function transfer(address _to, uint256 _value) external returns (bool success);
function transferFrom(address _from, address _to, uint256 _value) external returns (bool success);
function approve(address _spender, uint256 _value) external returns (bool success);
@marcomu
marcomu / ERC20.sol
Created July 29, 2021 02:02
Token ERC20
pragma solidity ^0.4.24;
contract ERC20{
string public name = "BAM Coin";
string public symbol = "BAM";
uint256 public totalSupply;
mapping(address => uint256) public balanceOf;
mapping(address => mapping(address => uint256)) public allowance;