Skip to content

Instantly share code, notes, and snippets.

View santhosh-saminathan's full-sized avatar
🏠
Working from home

Santhosh saminathan santhosh-saminathan

🏠
Working from home
View GitHub Profile
@santhosh-saminathan
santhosh-saminathan / ERC20.sol
Created March 20, 2019 12:58
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.5.1+commit.c8a2cb62.js&optimize=false&gist=
pragma solidity >=0.4.22 <0.6.0;
import "./IERC20.sol";
import "./SafeMath.sol";
/**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* https://eips.ethereum.org/EIPS/eip-20
@santhosh-saminathan
santhosh-saminathan / 1410Interface.sol
Created February 15, 2019 13:22
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.5.1+commit.c8a2cb62.js&optimize=false&gist=
pragma solidity >=0.4.22 <0.6.0;
interface IERC1410 {
// Token Information
function balanceOf(address _tokenHolder) external view returns (uint256);
function balanceOfByPartition(bytes32 _partition, address _tokenHolder) external view returns (uint256);
function partitionsOf(address _tokenHolder) external view returns (bytes32[] memory);
function totalSupply() external view returns (uint256);