Skip to content

Instantly share code, notes, and snippets.

View ddbit's full-sized avatar
😀

ddbit ddbit

😀
View GitHub Profile
@ddbit
ddbit / contracts...Demo.sol
Last active October 9, 2021 10:10
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.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
// write code .sol
// compile .sol --> bytecode bits and bytes
// deploy --> deployment transaction pending
// deployed --> miner mined it into a block and from now
// the smart contract has an address in blockchain
contract Demo{
@ddbit
ddbit / .deps...npm...@openzeppelin...contracts@4.1.0...token...ERC20...ERC20.sol
Created June 29, 2021 09:11
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.4+commit.c7e474f2.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
/**
* @dev Implementation of the {IERC20} interface.