Skip to content

Instantly share code, notes, and snippets.

View asselstine's full-sized avatar

Brendan Asselstine asselstine

View GitHub Profile
@asselstine
asselstine / zosMerge.js
Created November 15, 2018 18:30
Merges the latest zos proxies into Truffle artifacts
#!/usr/bin/env node
const fs = require('fs')
const shell = require('shelljs')
const program = require('commander')
const util = require('util')
const readFile = util.promisify(fs.readFile)
const writeFile = util.promisify(fs.writeFile)
program
@asselstine
asselstine / CoordinationGame.mmd
Created November 19, 2018 17:58
Coordination Game Mermaid Diagram
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Time Step Open Committed Rewarded
Week 1 Draw 1
Week 2 Draw 2 Draw 1
Week 3 Draw 3 Draw 2 Draw 1
Week 4 Draw 4 Draw 3 Draw 2
Week 5 Draw 5 Draw 4 Draw 3
1. Open the multisig wallet.
2. Click "Add" for a new Multisig transaction
3. Enter the address 0xc0dA01a04C3f3E0be433606045bB7017A7323E38
4. Cut and paste the abi:
[{
"constant": false,
"inputs": [

PoolTogether Developer Call #1

March 24, 2021

Agenda

The agenda for the meeting included:

  • Gitcoin Hackathon
  • Contributing Code
  • Show & Tell

PoolTogether Developer Call #2

April 7, 2021

Agenda

  • Show & Tell
  • Discussion

Show & Tell

PoolTogether Developer Call #3

April 21, 2021

Agenda

  • Show & Tell
  • Discussion

Show & Tell

contract PickHistory {
// COMP token allows for users to opt-out of delegation for cheap transfers.
function updateBalance(address user, uint256 balance, uint256 currentDrawNumber) external onlyPrizeStrategy {
// get users current balance: (balance, draw number)
// if currentDrawNumber > balance draw number
// then push new record onto stack (balance, currentDrawNumber) 20k gas