This proposal is an alternative/complement to the SWARM contract. Described here:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { |
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:
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:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.16; | |
contract LiquidPledging { | |
uint public size; | |
bytes32 public hash; | |
address public addr; | |
function LiquidPledging() public { | |
size = 0xFFFFFFFFFFFF; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity 0.4.24; | |
contract Auction { | |
function bid() payable public; | |
} | |
contract AuctionAttacker { | |
address owner; | |
address auction; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var crypto = require('crypto'); | |
var fs= require('fs'); | |
var orig ='6060604052361561020e5760e060020a6000350463013cf08b8114610247578063095ea7b3146102d05780630c3b7b96146103455780630e7082031461034e578063149acf9a1461036057806318160ddd146103725780631f2dc5ef1461037b57806321b5b8dd1461039b578063237e9492146103ad57806323b872dd1461040e5780632632bf2014610441578063341458081461047257806339d1f9081461047b5780634b6753bc146104935780634df6d6cc1461049c5780634e10c3ee146104b7578063590e1ae3146104ca578063612e45a3146104db578063643f7cdd1461057a578063674ed066146105925780636837ff1e1461059b57806370a08231146105e5578063749f98891461060b57806378524b2e1461062457806381f03fcb1461067e57806382661dc41461069657806382bf6464146106b75780638b15a605146106c95780638d7af473146106d257806396d7f3f5146106e1578063a1da2fb9146106ea578063a3912ec814610704578063a9059cbb1461070f578063b7bc2c841461073f578063baac53001461074b578063be7c29c1146107b1578063c9d27afe14610817578063cc9ae3f61461082d578063cdef91d014610841578063dbde198814610859578063dd62ed3e1461087e578063e33734fd146 |
OlderNewer