This repository has been archived by the owner on Dec 5, 2021. It is now read-only.
forked from ethereum-optimism/optimism
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of git://github.com/ethereum-optimism/optimism…
… into develop
- Loading branch information
Showing
39 changed files
with
10,117 additions
and
18,681 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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
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
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
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,20 +1,45 @@ | ||
package vm | ||
|
||
import ( | ||
"fmt" | ||
"os" | ||
|
||
"github.com/ethereum/go-ethereum/common" | ||
"github.com/ethereum/go-ethereum/crypto" | ||
) | ||
|
||
// AbiBytesTrue represents the ABI encoding of "true" as a byte slice | ||
var AbiBytesTrue = common.FromHex("0x0000000000000000000000000000000000000000000000000000000000000001") | ||
var ( | ||
// AbiBytesTrue represents the ABI encoding of "true" as a byte slice | ||
AbiBytesTrue = common.FromHex("0x0000000000000000000000000000000000000000000000000000000000000001") | ||
|
||
// AbiBytesFalse represents the ABI encoding of "false" as a byte slice | ||
var AbiBytesFalse = common.FromHex("0x0000000000000000000000000000000000000000000000000000000000000000") | ||
// AbiBytesFalse represents the ABI encoding of "false" as a byte slice | ||
AbiBytesFalse = common.FromHex("0x0000000000000000000000000000000000000000000000000000000000000000") | ||
|
||
// UsingOVM is used to enable or disable functionality necessary for the OVM. | ||
var UsingOVM bool | ||
// UsingOVM is used to enable or disable functionality necessary for the OVM. | ||
UsingOVM bool | ||
// EnableArbitraryContractDeployment is used to override the | ||
// deployer whitelist | ||
EnableArbitraryContractDeployment *bool | ||
|
||
// These are aliases to the pointer EnableArbitraryContractDeployment | ||
EnableArbitraryContractDeploymentTrue bool = true | ||
EnableArbitraryContractDeploymentFalse bool = false | ||
|
||
WhitelistAddress = common.HexToAddress("0x4200000000000000000000000000000000000002") | ||
isDeployerAllowedSig = crypto.Keccak256([]byte("isDeployerAllowed(address)"))[:4] | ||
) | ||
|
||
func init() { | ||
UsingOVM = os.Getenv("USING_OVM") == "true" | ||
value := os.Getenv("ROLLUP_ENABLE_ARBITRARY_CONTRACT_DEPLOYMENT") | ||
if value != "" { | ||
switch value { | ||
case "true": | ||
EnableArbitraryContractDeployment = &EnableArbitraryContractDeploymentTrue | ||
case "false": | ||
EnableArbitraryContractDeployment = &EnableArbitraryContractDeploymentFalse | ||
default: | ||
panic(fmt.Sprintf("Unknown ROLLUP_ENABLE_ARBITRARY_CONTRACT_DEPLOYMENT value: %s", 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@eth-optimism/l2geth", | ||
"version": "0.4.13", | ||
"version": "0.4.15", | ||
"private": true, | ||
"devDependencies": {} | ||
} |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
|
||
FROM omgx/builder AS builder | ||
|
||
FROM node:14-alpine | ||
|
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,4 +1,5 @@ | ||
FROM omgx/builder AS builder | ||
|
||
FROM node:14-alpine | ||
|
||
RUN apk add --no-cache git curl python bash jq | ||
|
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
Oops, something went wrong.