Skip to content

Instantly share code, notes, and snippets.

@idcmardelplata
Created December 15, 2021 00:40
Show Gist options
  • Save idcmardelplata/47ef4494a7fba8d9f9e7c8aec5a24203 to your computer and use it in GitHub Desktop.
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=
// 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);
}
@idcmardelplata
Copy link
Author

Interface for create a custom token RC20.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment