From 855785cc4c4a1b12fa7a71fdc378d693d44bddb3 Mon Sep 17 00:00:00 2001 From: Sowmayjain Date: Tue, 18 Jun 2019 23:46:33 +0530 Subject: [PATCH] Refactored file structure. --- .../AccessControls}/InstaAccess.sol | 0 contracts/{ => Bin}/LightWallet.sol | 0 contracts/{ => Bin}/Migrations.sol | 0 contracts/{ => Bin}/Reference/InstaWallet.sol | 0 contracts/Ownable.sol | 38 ------------------- 5 files changed, 38 deletions(-) rename contracts/{AccessControl => Bin/AccessControls}/InstaAccess.sol (100%) rename contracts/{ => Bin}/LightWallet.sol (100%) rename contracts/{ => Bin}/Migrations.sol (100%) rename contracts/{ => Bin}/Reference/InstaWallet.sol (100%) delete mode 100644 contracts/Ownable.sol diff --git a/contracts/AccessControl/InstaAccess.sol b/contracts/Bin/AccessControls/InstaAccess.sol similarity index 100% rename from contracts/AccessControl/InstaAccess.sol rename to contracts/Bin/AccessControls/InstaAccess.sol diff --git a/contracts/LightWallet.sol b/contracts/Bin/LightWallet.sol similarity index 100% rename from contracts/LightWallet.sol rename to contracts/Bin/LightWallet.sol diff --git a/contracts/Migrations.sol b/contracts/Bin/Migrations.sol similarity index 100% rename from contracts/Migrations.sol rename to contracts/Bin/Migrations.sol diff --git a/contracts/Reference/InstaWallet.sol b/contracts/Bin/Reference/InstaWallet.sol similarity index 100% rename from contracts/Reference/InstaWallet.sol rename to contracts/Bin/Reference/InstaWallet.sol diff --git a/contracts/Ownable.sol b/contracts/Ownable.sol deleted file mode 100644 index d607a1e..0000000 --- a/contracts/Ownable.sol +++ /dev/null @@ -1,38 +0,0 @@ -pragma solidity ^0.5.2; - -/** - * @title Ownable - * @dev The Ownable contract has an owner address, and provides basic authorization control - * functions, this simplifies the implementation of "user permissions". - */ -contract Ownable { - address public owner; - - event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); - - /** - * @dev The Ownable constructor sets the original `owner` of the contract to the sender - * account. - */ - constructor() public { - owner = msg.sender; - } - - /** - * @dev Throws if called by any account other than the owner. - */ - modifier onlyOwner() { - require(msg.sender == owner, "Only owner accessible"); - _; - } - - /** - * @dev Allows the current owner to transfer control of the contract to a newOwner. - * @param newOwner The address to transfer ownership to. - */ - function transferOwnership(address newOwner) public onlyOwner { - require(newOwner != address(0), "Address not equal to zero"); - emit OwnershipTransferred(owner, newOwner); - owner = newOwner; - } -}