Skip to content

Instantly share code, notes, and snippets.

View shayanb's full-sized avatar
💭
\-=-=|=-=-/

Shayan Eskandari shayanb

💭
\-=-=|=-=-/
View GitHub Profile

0x2e8d42d7e658a173e509c6eb329aa96a8b67bcce142e3040efa45673829628eb

@shayanb
shayanb / token_checklist.md
Last active March 30, 2024 06:43
Token Checklist Table
Token Feature Known Vulnerabilities Resources Examples
ERC20 Allowance Double withdrawal (front-running)
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box.
✅ did:3:bafyreicruo6vktkqa3gv2vqzwdlumz5owggehcyvjrljuiaekodlpkdxtm ✅
Create your profile today to start building social connection and trust online at https://3Box.io/
@shayanb
shayanb / indemnity.sol
Created June 12, 2019 18:36
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.5.1+commit.c8a2cb62.js&optimize=false&gist=
pragma solidity ^0.5.5;
contract indemnity {
address payable
}
@shayanb
shayanb / Challenge1.sol
Last active October 9, 2019 11:39
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.5.8+commit.23d335f2.js&optimize=false&gist=
// ConsenSys Diligence
// DevCon V - October 2019
// Osaka, Japan
pragma solidity ^0.5.4;
// Can you have a gazillion balance?
contract challenge1 {
3Box is a social profiles network for web3. This post links my 3Box profile to my Github account!
✅ did:muport:QmaEkb2GjKTkzN1nyHZKstuLHRt6XT8anq5452wgX2oySN ✅
Create your profile today to start building social connection and trust online. https://3box.io/

Keybase proof

I hereby claim:

  • I am shayanb on github.
  • I am shayanb (https://keybase.io/shayanb) on keybase.
  • I have a public key ASCkhNyL5kuHuYIY2it1CnFsAPivpvetpMhGUxwSN1ukNAo

To claim this, I am signing this object:

@shayanb
shayanb / Assignment2.sol
Created October 10, 2018 19:05
Assignment 2 for 6620 Class (Nov 2018)
pragma solidity ^0.4.22;
contract assignmentTwo {
uint public studentNumber;
address public student;
constructor() public {
student = msg.sender;
}
@shayanb
shayanb / check-eslint.sh
Created July 12, 2018 17:31
Bash script to check for affected ESLint compromised (eslint-scope@3.7.2)
#!/bin/bash
# Checks all directories in cwd for compromised eslint version
cwd=$PWD
for d in `find . -maxdepth 1 -type d`; do
cd $d
version=$(npm ls 2> /dev/null | grep eslint@ | sed -e 's/.*eslint@\([0-9.]*\).*/\1/')
if [ -n "$version" ]; then
for v in $version; do
echo "$d -> eslint@$v"
if [ "$v" = '3.7.2' ]; then
@shayanb
shayanb / helloWorld.sol
Last active October 12, 2017 00:06
Hello World Solidity Sample - EthWaterloo
pragma solidity ^0.4.12;
contract helloworld {
address private Owner;
string public sayHello;
function helloworld() {
Owner = msg.sender;
sayHello = "Hello";