Skip to content

Commit

Permalink
added ERC20Configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
kostysh committed Nov 13, 2020
1 parent 5bc0dd1 commit e5311eb
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
23 changes: 23 additions & 0 deletions contracts/ERC20/ERC20Configurable.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

import "@openzeppelin/contracts/GSN/Context.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

/**
* @dev Easy configurable token
*/
contract ERC20Configurable is Context, ERC20 {

/// @dev Token constructor
constructor(
string memory name,
string memory symbol,
uint8 decimals,
uint256 supply
) public ERC20(name, symbol) {
_setupDecimals(decimals);
_mint(msg.sender, supply);
}
}
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@windingtree/smart-contracts-libraries",
"version": "0.1.4",
"version": "0.2.0",
"description": "Libraries and utilities for smart contracts",
"publishConfig": {
"access": "public"
Expand All @@ -27,7 +27,9 @@
"url": "https://github.com/windingtree/smart-contracts-libraries/issues"
},
"homepage": "https://github.com/windingtree/smart-contracts-libraries#readme",
"dependencies": {},
"dependencies": {
"@openzeppelin/contracts": "3.2.0"
},
"devDependencies": {
"solc": "0.7.4",
"solhint": "3.3.2",
Expand Down

0 comments on commit e5311eb

Please sign in to comment.