Skip to content

Instantly share code, notes, and snippets.

View paxthemax's full-sized avatar
🦄

Pavle Batuta paxthemax

🦄
View GitHub Profile
// SPDX-License-Identifier: UNILICENSED
pragma solidity ^0.8.24;
// TASK: Favorite number, set it and retrieve it.
// TASK: Favorite number, per owner.
// TASK: Deployer! Set anyone's number. Clear anyone's number.
// TASK: List of people and their favourite numbers.
// TASK: Get a number that is tied to a name.
// TASK: Admin can be changed.
### Keybase proof
I hereby claim:
* I am paxthemax on github.
* I am pavlebatuta (https://keybase.io/pavlebatuta) on keybase.
* I have a public key ASADpLvHxV62zBf3Qbos9AYwYToD2A-XUBxgstiJSF9OvQo
To claim this, I am signing this object:

Here is how we can do the hash disribution:

Let's say we have a GIVBacks round with a total of N GIVBacks.

We can divide the round into multiple batches defined as:

  • i (the order of the batch)
  • address[] 1..k(i)
  • amount[] 1..k(i)

Where k(i) is the size of the batch

@paxthemax
paxthemax / Agreements.sol
Created October 16, 2020 11:14
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.7.3+commit.9bfce1f6.js&optimize=false&gist=
// "SPDX-License-Identifier: UNLICENSED"
pragma solidity 0.7.3;
contract Ownable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
@paxthemax
paxthemax / example-tests.go
Created March 18, 2019 18:00
An example of advanced tests with helpers
package mnemonic
import (
"os"
"reflect"
"strings"
"testing"
"github.com/safex/gosafex/internal/mnemonic/dictionary"
)