Skip to content

Instantly share code, notes, and snippets.

View bornatalebi's full-sized avatar

Borna Talebi bornatalebi

View GitHub Profile
@bornatalebi
bornatalebi / User.sol
Created June 22, 2020 19:15
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=builtin&optimize=false&gist=
pragma solidity >=0.4.22 <0.7.0;
import "./judgement.sol";
contract User {
address public owner;
address public accAddr = address(this);// used for payments
//constructor
constructor (string memory _name, string memory _lastname, string memory _email,
string memory _password, uint256 _Melicode, userTypes _userType) public{
owner = msg.sender;
@bornatalebi
bornatalebi / User.sol
Created June 20, 2020 12:05
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.6+commit.6c089d02.js&optimize=false&gist=
pragma solidity >=0.4.22 <0.7.0;
import "./judgement.sol";
contract User {
address public owner;
address public accAddr = address(this);// used for payments
//constructor
constructor (string memory _name, string memory _lastname, string memory _email,
string memory _password, uint256 _Melicode, userTypes _userType) public{
owner = msg.sender;
@bornatalebi
bornatalebi / User.sol
Created June 13, 2020 10:49
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.6+commit.6c089d02.js&optimize=false&gist=
pragma solidity >=0.4.22 <0.7.0;
import "./judgement.sol";
contract User {
address public owner;
address public accAddr = address(this);// used for payments
//constructor
constructor (string memory _name, string memory _lastname, string memory _email,
string memory _password, uint256 _Melicode, userTypes _userType) public{
owner = msg.sender;
@bornatalebi
bornatalebi / 1_Storage.sol
Created June 11, 2020 15:45
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.6+commit.6c089d02.js&optimize=false&gist=
pragma solidity >=0.4.22 <0.7.0;
/**
* @title Storage
* @dev Store & retreive value in a variable
*/
contract Storage {
uint256 number;
@bornatalebi
bornatalebi / 1_Storage.sol
Created June 9, 2020 10:40
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.6+commit.6c089d02.js&optimize=false&gist=
pragma solidity >=0.4.22 <0.7.0;
/**
* @title Storage
* @dev Store & retreive value in a variable
*/
contract Storage {
uint256 number;
@bornatalebi
bornatalebi / 1_Storage.sol
Created June 4, 2020 14:51
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.6+commit.6c089d02.js&optimize=false&gist=
pragma solidity >=0.4.22 <0.7.0;
/**
* @title Storage
* @dev Store & retreive value in a variable
*/
contract Storage {
uint256 number;
@bornatalebi
bornatalebi / 1_Storage.sol
Created May 28, 2020 11:01
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.6+commit.6c089d02.js&optimize=false&gist=
pragma solidity >=0.4.22 <0.7.0;
/**
* @title Storage
* @dev Store & retreive value in a variable
*/
contract Storage {
uint256 number;
@bornatalebi
bornatalebi / 1_Storage.sol
Created May 28, 2020 10:59
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.6+commit.6c089d02.js&optimize=false&gist=
pragma solidity >=0.4.22 <0.7.0;
/**
* @title Storage
* @dev Store & retreive value in a variable
*/
contract Storage {
uint256 number;