Skip to content

Instantly share code, notes, and snippets.

View GeraldHost's full-sized avatar
🏴‍☠️
Focusing

Gerald Host GeraldHost

🏴‍☠️
Focusing
View GitHub Profile
@brockelmore
brockelmore / root.sol
Last active December 30, 2021 11:18
Root storage pattern
// SPDX-License-Identifier: Unlicense
pragma solidity 0.8.10;
import "solmate/tokens/ERC20.sol";
import "solmate/utils/SafeTransferLib.sol";
import "ds-test/test.sol";
contract MerkleTrust is DSTest {
using SafeTransferLib for ERC20;
pragma solidity ^0.5.8;
contract MiMC {
uint constant FIELD_SIZE = 21888242871839275222246405745257275088548364400416034343698204186575808495617;
function MiMCSponge(uint256 xL, uint256 xR) public pure returns (uint256, uint256) {
uint exp;
uint t;
uint xR_tmp;
t = xL;
@veox
veox / erc20.abi.json
Created January 21, 2018 14:59
ERC20 ABI in JSON format
[
{
"constant": true,
"inputs": [],
"name": "name",
"outputs": [
{
"name": "",
"type": "string"
}