Skip to content

Instantly share code, notes, and snippets.

View gokulstevee's full-sized avatar

Gokulan gokulstevee

View GitHub Profile
@gokulstevee
gokulstevee / EventTrigger...EventTrigger.sol
Created August 21, 2021 18:20
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.6.0+commit.26b70077.js&optimize=false&runs=200&gist=
pragma solidity ^0.6.0;
contract ItemManager{
enum ItemState {CREATED, PAID, DELIVERED}
struct ItemArray{
string _itemName;
uint _itemPrice;
ItemState _state;
@gokulstevee
gokulstevee / .deps...github...OpenZeppelin...openzeppelin-contracts...contracts...access...Ownable.sol
Last active August 3, 2021 17:29
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.1+commit.df193b15.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.