Skip to content

Instantly share code, notes, and snippets.

View bingen's full-sized avatar

ßingen bingen

View GitHub Profile
@bingen
bingen / BoolStructs
Created May 26, 2020 09:52
Bool vs Uint in structs in Solidity
pragma solidity 0.4.24;
contract BoolStructs {
struct Bools {
bool a;
bool b;
}
struct Uints {
BEGIN MESSAGE.
NYomS4u85EmffqQ tya9YPAyFeotUNW Nvs1yjDu7lBBsgo ouJ28z1qeWarVB6
rgiDdhS7AqTFpTN KUcFfVwzrEtTCKq 6Xr2MZHgg4XMGtC PEKWGTSW6AyUgl1
dyJkMJ2J4SK0Mug 1IZaI7ej0hZnhVv U1Ntt3zMWi3NUSN 708EkDpPiSV8HDU
h7pRB5U0XiMHrEM e6lryrbbXfQPZbt Qve3G21.
END MESSAGE.
@bingen
bingen / DOT_acquisition_dispute_evidence.md
Created January 29, 2020 07:54
Acquisition of DOTs dispute evidence

Agreement Text

Proposals must be made in good faith with the intention to improve the the network’s operational efficiency, quality, or breadth of service, and benefit all ANT holders in equal measure.

Proposal

Aragon Portfolio Diversification - Acquisition of DOTs link to full proposal

Defendant Evidence

I think this proposal adheres to the proposal agreement as it presents an opportunity for ANT holders to acquire and benefit from an asset equally. The proposed mechanism for the acquisition is constrained by external factors relating to how the transaction can be conducted, including the need for the terms of the transaction to remain private. However, as established in AGP-11, the Aragon Association was granted authority to manage and diversify the Aragon treasury. The actions associated with this proposal would already be considered part of their discretionary authority. Therefore, it is my position that deferring to their judgement i

@bingen
bingen / Length.sol
Created April 10, 2019 17:19
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.4.24+commit.e67f0147.js&optimize=true&gist=
pragma solidity 0.4.24;
contract Length {
uint256[] array;
function add(uint256 a) public {
array.push(a);
}
@bingen
bingen / Conditions.sol
Last active April 10, 2019 17:09
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.4.24+commit.e67f0147.js&optimize=true&gist=
pragma solidity 0.4.24;
contract Conditions {
uint256[] values;
constructor() public {
values.push(0);
}
@bingen
bingen / Conditions.sol
Last active April 10, 2019 17:05
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.4.24;
contract Conditions {
uint256[] values;
constructor() public {
values.push(0);
}
@bingen
bingen / SumTreeCheckpointing.sol
Last active March 28, 2019 21:59
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.4.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.24;
library Checkpointing {
struct Checkpoint {
uint64 blockNumber;
uint192 value;
}
struct History {
@bingen
bingen / EchidnaStaking.sol
Created November 27, 2018 19:14
Echidna Staking Test
pragma solidity 0.4.24;
// File: contracts/ERCStaking.sol
interface ERCStaking {
event Staked(address indexed user, uint256 amount, uint256 total, bytes data);
event Unstaked(address indexed user, uint256 amount, uint256 total, bytes data);
function stake(uint256 amount, bytes data) external;
function stakeFor(address user, uint256 amount, bytes data) external;
function unstake(uint256 amount, bytes data) external;
@bingen
bingen / Aragon-Enigma-voting-instructions.md
Created October 17, 2018 15:50
Instructions to run the Aragon Enigma voting app
  • Download the app:
git clone https://github.com/aragonlabs/enigma-voting
  • Install dependencies
cd enigma-voting
npm i
  • Spin up an IPFS node. Make sure you have ports 5001 and 8080 available