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
/* raw js call */ | |
data = subscriptionModule.createSubscription(...).encode(); | |
identity.executeSigned(subscriptionModule.address, 0, data, nonce, | |
gasPrice, | |
gasToken, | |
gasLimit, | |
DELEGATE_CALL, | |
bytes extraData, | |
bytes signatures); |
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 IERC1077 { | |
enum OperationType {CALL, DELEGATECALL, CREATE} | |
event ExecutedSigned(bytes32 executionId, address from, uint nonce, bool success); | |
function lastNonce() public view returns (uint nonce); | |
address [] modules; | |
function canExecute( |
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 IERC1077 { | |
enum OperationType {CALL, DELEGATECALL, CREATE} | |
event ExecutedSigned(bytes32 executionId, address from, uint nonce, bool success); | |
function lastNonce() public view returns (uint nonce); |
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
// A single line comment | |
/* | |
A multiline comment | |
*/ | |
pragma solidity ^0.4.21; //Solidity version supported | |
contract ExampleContract { | |
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
Show hidden characters
{ | |
"parser": "babel-eslint", | |
"parserOptions": {}, | |
"plugins": [ | |
"import" | |
], | |
"env": { | |
"node": true, | |
"es6": true | |
}, |
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.18; | |
contract TossCoin { | |
address player1; | |
address player2; | |
address oracle; | |
uint value; | |
function TossCoin(address _oracle) payable public { |
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
Parent: | |
window.addEventListener('message', function(event) { | |
console.log(event.data); | |
}); | |
Child: | |
setInterval(function() { | |
parent.postMessage("Hello",'*'); |
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
Parent: | |
var frame = document.getElementById('test'); | |
r = frame.contentWindow.postMessage("DUPA", '*'); | |
Child: | |
window.addEventListener('message', function(event) { | |
console.log(event.data); | |
}); |
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 ERC20Basic { | |
uint256 public totalSupply; | |
function balanceOf(address who) constant returns (uint256); | |
function transfer(address to, uint256 value) returns (bool); | |
event Transfer(address indexed from, address indexed to, uint256 value); | |
} | |
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
begin | |
require 'bundler/inline' | |
rescue LoadError => e | |
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler' | |
raise e | |
end | |
gemfile(true) do | |
source 'https://rubygems.org' | |
gem 'rails', github: 'rails/rails' |