Created
December 15, 2021 00:40
-
-
Save idcmardelplata/47ef4494a7fba8d9f9e7c8aec5a24203 to your computer and use it in GitHub Desktop.
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.3+commit.8d00100c.js&optimize=false&runs=200&gist=
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity 0.8.3; | |
// IRC20 interface commonly usage for create new ethereum tokens. | |
// Custom tokens running on the Ethereum virtual machine must implement this or some other interface. | |
interface IRC20 { | |
function totalSupply() external view returns (uint256); | |
function balanceOf(address account) external view returns(uint256); | |
function allowance(address owner, address spender) external view returns (uint256); | |
function transfer(address recipient, uint256 amount) external returns(bool); | |
function approve(address spender, uint256 amount) external returns (bool); | |
function transferFrom(address sender, address recipient, uint256 amount) external returns(bool); | |
event Transfer(address indexed from, address indexed to, uint256 value); | |
event Approval(address indexed owner, address indexed spender, uint256 value); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Interface for create a custom token RC20.