-
Notifications
You must be signed in to change notification settings - Fork 916
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from gnosis/feature/optimize_personal_edition
Optimize Personal Edition
- Loading branch information
Showing
55 changed files
with
10,133 additions
and
3,261 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
build/ | ||
node_modules/ | ||
node_modules/ | ||
.DS_Store |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
language: node_js | ||
node_js: | ||
- '9' | ||
cache: | ||
directories: | ||
- node_modules | ||
before_script: | ||
- truffle compile |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
pragma solidity 0.4.24; | ||
import "./Proxy.sol"; | ||
|
||
|
||
/// @title Delegate Constructor Proxy - Generic proxy contract allows to execute all transactions applying the code of a master contract. It is possible to send along initialization data with the constructor. | ||
/// @author Stefan George - <stefan@gnosis.pm> | ||
/// @author Richard Meissner - <richard@gnosis.pm> | ||
contract DelegateConstructorProxy is Proxy { | ||
|
||
/// @dev Constructor function sets address of master copy contract. | ||
/// @param _masterCopy Master copy address. | ||
/// @param initializer Data used for a delegate call to initialize the contract. | ||
constructor(address _masterCopy, bytes initializer) Proxy(_masterCopy) | ||
public | ||
{ | ||
if (initializer.length > 0) { | ||
// solium-disable-next-line security/no-inline-assembly | ||
assembly { | ||
let masterCopy := and(sload(0), 0xffffffffffffffffffffffffffffffffffffffff) | ||
let success := delegatecall(sub(gas, 10000), masterCopy, add(initializer, 0x20), mload(initializer), 0, 0) | ||
let ptr := mload(0x40) | ||
returndatacopy(ptr, 0, returndatasize) | ||
if eq(success, 0) { revert(ptr, returndatasize) } | ||
} | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
pragma solidity 0.4.24; | ||
|
||
|
||
/// @title Enum - Collection of enums | ||
/// @author Richard Meissner - <richard@gnosis.pm> | ||
contract Enum { | ||
enum Operation { | ||
Call, | ||
DelegateCall, | ||
Create | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.