Skip to content

Instantly share code, notes, and snippets.

View jbaylina's full-sized avatar

Jordi Baylina jbaylina

View GitHub Profile
@jbaylina
jbaylina / proposal
Last active August 29, 2015 14:17
ecma7 proposat change async/await by async/nowait
The main idea is to maintain all the logic of the async/await mechanism except that all calls to async functions are "await implicit". And if you want to get the promise of an async function call it with a nowait in front.
Example of code:
Actual way:
var myObj = {
getProp1: async function() {
if (this.prop1) return prop1;
@jbaylina
jbaylina / swarm_oracle.md
Last active December 8, 2015 20:46
Alternative SWARM contract proposal (ORACLE based)
@jbaylina
jbaylina / ethchamps-DAO proposal.md
Last active March 28, 2016 10:27
ethchamps-DAO proposal

ethchamps-DAO

DAO contract upgradable

  • If there is more than 75% of members that agree to migrate to a new contract, all the DAO funds are sent to the new DAO, and this contract gets obsoleted.

Membership

To be a member

@jbaylina
jbaylina / NullOwner.sol
Last active June 14, 2017 15:51
NullOwner.sol
pragma solidity ^0.4.11;
contract Owned {
function acceptOwnership();
}
// To remove the owner of the contract, transfer the ownership to this contract and
// call `confirmRemoveOwner`
contract NullOwner {
function confirmRemoveOwner(address ownedContract) {

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

contract Owned {
function Owned() {
owner = msg.sender;
}
address public owner;
// This contract only defines a modifier and a few useful functions
// The function body is inserted where the special symbol "_" in the
// definition of a modifier appears.
pragma solidity ^0.4.16;
contract LiquidPledging {
uint public size;
bytes32 public hash;
address public addr;
function LiquidPledging() public {
size = 0xFFFFFFFFFFFF;
}
pragma solidity 0.4.24;
contract Auction {
function bid() payable public;
}
contract AuctionAttacker {
address owner;
address auction;
var crypto = require('crypto');
var fs= require('fs');
var orig ='6060604052361561020e5760e060020a6000350463013cf08b8114610247578063095ea7b3146102d05780630c3b7b96146103455780630e7082031461034e578063149acf9a1461036057806318160ddd146103725780631f2dc5ef1461037b57806321b5b8dd1461039b578063237e9492146103ad57806323b872dd1461040e5780632632bf2014610441578063341458081461047257806339d1f9081461047b5780634b6753bc146104935780634df6d6cc1461049c5780634e10c3ee146104b7578063590e1ae3146104ca578063612e45a3146104db578063643f7cdd1461057a578063674ed066146105925780636837ff1e1461059b57806370a08231146105e5578063749f98891461060b57806378524b2e1461062457806381f03fcb1461067e57806382661dc41461069657806382bf6464146106b75780638b15a605146106c95780638d7af473146106d257806396d7f3f5146106e1578063a1da2fb9146106ea578063a3912ec814610704578063a9059cbb1461070f578063b7bc2c841461073f578063baac53001461074b578063be7c29c1146107b1578063c9d27afe14610817578063cc9ae3f61461082d578063cdef91d014610841578063dbde198814610859578063dd62ed3e1461087e578063e33734fd146