Skip to content

Instantly share code, notes, and snippets.

View cuadros-code's full-sized avatar
🏠
Working from home

kevin david cuadros cuadros-code

🏠
Working from home
View GitHub Profile
@cuadros-code
cuadros-code / contracts...Authentication.sol
Created July 12, 2022 21:23
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;
contract Authentication {
mapping( address => bool ) public users;
function authenticate () public {
users[msg.sender] = true;
@cuadros-code
cuadros-code / .deps...npm...@openzeppelin...contracts...access...Ownable.sol
Created May 14, 2022 03: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.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
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