Skip to content

Instantly share code, notes, and snippets.

View nourharidy's full-sized avatar
🏠
Working from home

Nour Haridy nourharidy

🏠
Working from home
View GitHub Profile
@nourharidy
nourharidy / WEENUS.sol
Created January 20, 2020 00:19
WEENUS + permit()
pragma solidity ^0.5.4;
// Send an 0 value transaction with no data to mint 1,000 new tokens
//
// Symbol : DAI
// Name : Dai Stablecoin System
// Total supply: 1,000,000.000000000000000000 + faucet minting
// Decimals : 18
// Version : 1
// Chain ID : 4
@nourharidy
nourharidy / Gasless.sol
Created October 29, 2019 10:14
Gasless
pragma solidity 0.5.11;
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
interface DSR {
function join(uint) external;
function exit(uint) external;
function chi() external view returns (uint256);
}
@nourharidy
nourharidy / privacypolicy.md
Created February 7, 2019 22:53
Privacy Policy

Privacy Policy

Lamarkaz built the Lamarkaz Wallet app as a Free app. This SERVICE is provided by Lamarkaz at no cost and is intended for use as is.

This page is used to inform visitors regarding our policies with the collection, use, and disclosure of Personal Information if anyone decided to use our Service.

If you choose to use our Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that we collect is used for providing and improving the Service. We will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Lamarkaz Wallet unless otherwise defined in this Privacy Policy.

@nourharidy
nourharidy / MultiHODLer.sol
Created December 1, 2018 21:04
Multi user HODLing contract. Untested and could be vulnerable.
pragma solidity ^0.5.0;
// DISCLAIMER: THIS CODE IS UNTESTED AND UNGUARANTEED TO WORK SECURELY
/*
Usage:
1. User must use the register() function to set a release date for all of their deposited funds. Optionally, the user can send Ether with the transaction as an initial deposit.
2. User can simply send Ether as many times as he wants to this contract address and it will be automatically deposited to their balance
@nourharidy
nourharidy / HODLer.sol
Last active December 3, 2018 07:38
Simple HODLer contract. Written in 10mins. Passed static analysis but is not guaranteed to be safe.
pragma solidity ^0.5.0;
contract HODLer {
uint releaseDate;
address owner;
// Contract deployer specifies deposit release date in constructor
constructor(uint secondsSince1971) public {
@nourharidy
nourharidy / Token.psol
Created October 13, 2018 14:21
Parasol code example 2
pragma solidity ^0.4.24;
{{ strict = true }} // Activate strict mode. This will abort deployment on both errors and warnings.
/// @title {{= title }}
contract Token {
// Variables retrieved from parasol.js config file pre compilation
string private name = "{{= tokenName}}";
string private symbol = "{{= tokenSymbol}}";
@nourharidy
nourharidy / Token.psol
Created October 13, 2018 14:13
Parasol code example
pragma solidity ^0.4.24;
{{ strict = true }} // Activate strict mode. This will abort deployment on both errors and warnings.
/// @title {{= title }}
contract Token {
// Variables retrieved from parasol.js config file pre compilation
string private _name = "{{= tokenName}}";
string private _symbol = "{{= tokenSymbol}}";