Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
574a3406
Unverified
Commit
574a3406
authored
May 03, 2023
by
mergify[bot]
Committed by
GitHub
May 03, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into inphi/fpp-empty
parents
60f4ffe7
ab8a3ba5
Changes
15
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
63 additions
and
264 deletions
+63
-264
go.mod
go.mod
+13
-12
go.sum
go.sum
+23
-226
Dockerfile
op-batcher/Dockerfile
+2
-2
Dockerfile
op-chain-ops/Dockerfile
+1
-1
deployer.go
op-chain-ops/deployer/deployer.go
+0
-1
eof_crawler.go
op-chain-ops/eof/eof_crawler.go
+4
-1
genesis.go
op-chain-ops/genesis/genesis.go
+0
-2
Dockerfile
op-exporter/Dockerfile
+2
-2
Dockerfile
op-node/Dockerfile
+2
-2
Dockerfile
op-program/Dockerfile
+2
-2
chaincfg.go
op-program/host/config/chaincfg.go
+0
-2
Dockerfile
op-proposer/Dockerfile
+2
-2
Dockerfile
op-wheel/Dockerfile
+2
-2
Dockerfile.stateviz
ops-bedrock/Dockerfile.stateviz
+2
-2
dispute-game-interface.md
specs/dispute-game-interface.md
+8
-5
No files found.
go.mod
View file @
574a3406
...
@@ -9,15 +9,15 @@ require (
...
@@ -9,15 +9,15 @@ require (
github.com/docker/docker v20.10.24+incompatible
github.com/docker/docker v20.10.24+incompatible
github.com/docker/go-connections v0.4.0
github.com/docker/go-connections v0.4.0
github.com/ethereum-optimism/go-ethereum-hdwallet v0.1.3
github.com/ethereum-optimism/go-ethereum-hdwallet v0.1.3
github.com/ethereum/go-ethereum v1.11.
5
github.com/ethereum/go-ethereum v1.11.
6
github.com/fsnotify/fsnotify v1.6.0
github.com/fsnotify/fsnotify v1.6.0
github.com/golang/snappy v0.0.
4
github.com/golang/snappy v0.0.
5-0.20220116011046-fa5810519dcb
github.com/google/go-cmp v0.5.9
github.com/google/go-cmp v0.5.9
github.com/google/gofuzz v1.2.1-0.20220503160820-4a35382e8fc8
github.com/google/gofuzz v1.2.1-0.20220503160820-4a35382e8fc8
github.com/hashicorp/go-multierror v1.1.1
github.com/hashicorp/go-multierror v1.1.1
github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d
github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d
github.com/hashicorp/golang-lru/v2 v2.0.1
github.com/hashicorp/golang-lru/v2 v2.0.1
github.com/holiman/uint256 v1.2.
0
github.com/holiman/uint256 v1.2.
2-0.20230321075855-87b91420868c
github.com/ipfs/go-datastore v0.6.0
github.com/ipfs/go-datastore v0.6.0
github.com/ipfs/go-ds-leveldb v0.5.0
github.com/ipfs/go-ds-leveldb v0.5.0
github.com/libp2p/go-libp2p v0.25.1
github.com/libp2p/go-libp2p v0.25.1
...
@@ -35,7 +35,7 @@ require (
...
@@ -35,7 +35,7 @@ require (
golang.org/x/crypto v0.6.0
golang.org/x/crypto v0.6.0
golang.org/x/exp v0.0.0-20230213192124-5e25df0256eb
golang.org/x/exp v0.0.0-20230213192124-5e25df0256eb
golang.org/x/sync v0.1.0
golang.org/x/sync v0.1.0
golang.org/x/term v0.
5
.0
golang.org/x/term v0.
6
.0
golang.org/x/time v0.0.0-20220922220347-f3bd1da661af
golang.org/x/time v0.0.0-20220922220347-f3bd1da661af
)
)
...
@@ -90,8 +90,8 @@ require (
...
@@ -90,8 +90,8 @@ require (
github.com/hashicorp/go-bexpr v0.1.11 // indirect
github.com/hashicorp/go-bexpr v0.1.11 // indirect
github.com/holiman/bloomfilter/v2 v2.0.3 // indirect
github.com/holiman/bloomfilter/v2 v2.0.3 // indirect
github.com/huin/goupnp v1.1.0 // indirect
github.com/huin/goupnp v1.1.0 // indirect
github.com/influxdata/influxdb v1.8.3 // indirect
github.com/influxdata/influxdb-client-go/v2 v2.4.0 // indirect
github.com/influxdata/influxdb-client-go/v2 v2.4.0 // indirect
github.com/influxdata/influxdb1-client v0.0.0-20220302092344-a9ab5670611c // indirect
github.com/influxdata/line-protocol v0.0.0-20210311194329-9aa0e372d097 // indirect
github.com/influxdata/line-protocol v0.0.0-20210311194329-9aa0e372d097 // indirect
github.com/ipfs/go-cid v0.3.2 // indirect
github.com/ipfs/go-cid v0.3.2 // indirect
github.com/ipfs/go-log v1.0.5 // indirect
github.com/ipfs/go-log v1.0.5 // indirect
...
@@ -175,12 +175,13 @@ require (
...
@@ -175,12 +175,13 @@ require (
go.uber.org/fx v1.19.1 // indirect
go.uber.org/fx v1.19.1 // indirect
go.uber.org/multierr v1.9.0 // indirect
go.uber.org/multierr v1.9.0 // indirect
go.uber.org/zap v1.24.0 // indirect
go.uber.org/zap v1.24.0 // indirect
golang.org/x/mod v0.
8
.0 // indirect
golang.org/x/mod v0.
9
.0 // indirect
golang.org/x/net v0.
7
.0 // indirect
golang.org/x/net v0.
8
.0 // indirect
golang.org/x/sys v0.
5
.0 // indirect
golang.org/x/sys v0.
6
.0 // indirect
golang.org/x/text v0.
7
.0 // indirect
golang.org/x/text v0.
8
.0 // indirect
golang.org/x/tools v0.
6
.0 // indirect
golang.org/x/tools v0.
7
.0 // indirect
google.golang.org/protobuf v1.28.1 // indirect
google.golang.org/protobuf v1.28.1 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
...
@@ -189,6 +190,6 @@ require (
...
@@ -189,6 +190,6 @@ require (
nhooyr.io/websocket v1.8.7 // indirect
nhooyr.io/websocket v1.8.7 // indirect
)
)
replace github.com/ethereum/go-ethereum v1.11.
5 => github.com/ethereum-optimism/op-geth v1.101105.1-0.20230420183214-24ae687be390
replace github.com/ethereum/go-ethereum v1.11.
6 => github.com/ethereum-optimism/op-geth v1.101105.2-0.20230502202351-9cc072e922f6
//replace github.com/ethereum/go-ethereum v1.11.
5
=> ../go-ethereum
//replace github.com/ethereum/go-ethereum v1.11.
6
=> ../go-ethereum
go.sum
View file @
574a3406
This diff is collapsed.
Click to expand it.
op-batcher/Dockerfile
View file @
574a3406
FROM
--platform=$BUILDPLATFORM golang:1.19.
0-alpine3.15
as builder
FROM
--platform=$BUILDPLATFORM golang:1.19.
9-alpine3.16
as builder
ARG
VERSION=v0.0.0
ARG
VERSION=v0.0.0
...
@@ -23,7 +23,7 @@ ARG TARGETOS TARGETARCH
...
@@ -23,7 +23,7 @@ ARG TARGETOS TARGETARCH
RUN
make op-batcher
VERSION
=
"
$VERSION
"
GOOS
=
$TARGETOS
GOARCH
=
$TARGETARCH
RUN
make op-batcher
VERSION
=
"
$VERSION
"
GOOS
=
$TARGETOS
GOARCH
=
$TARGETARCH
FROM
alpine:3.1
5
FROM
alpine:3.1
6
COPY
--from=builder /app/op-batcher/bin/op-batcher /usr/local/bin
COPY
--from=builder /app/op-batcher/bin/op-batcher /usr/local/bin
...
...
op-chain-ops/Dockerfile
View file @
574a3406
FROM
golang:1.19.
0
-alpine3.15 as builder
FROM
golang:1.19.
9
-alpine3.15 as builder
RUN
apk add
--no-cache
make gcc musl-dev linux-headers git jq bash
RUN
apk add
--no-cache
make gcc musl-dev linux-headers git jq bash
...
...
op-chain-ops/deployer/deployer.go
View file @
574a3406
...
@@ -51,7 +51,6 @@ func NewBackendWithGenesisTimestamp(ts uint64) *backends.SimulatedBackend {
...
@@ -51,7 +51,6 @@ func NewBackendWithGenesisTimestamp(ts uint64) *backends.SimulatedBackend {
DAOForkBlock
:
nil
,
DAOForkBlock
:
nil
,
DAOForkSupport
:
false
,
DAOForkSupport
:
false
,
EIP150Block
:
big
.
NewInt
(
0
),
EIP150Block
:
big
.
NewInt
(
0
),
EIP150Hash
:
common
.
Hash
{},
EIP155Block
:
big
.
NewInt
(
0
),
EIP155Block
:
big
.
NewInt
(
0
),
EIP158Block
:
big
.
NewInt
(
0
),
EIP158Block
:
big
.
NewInt
(
0
),
ByzantiumBlock
:
big
.
NewInt
(
0
),
ByzantiumBlock
:
big
.
NewInt
(
0
),
...
...
op-chain-ops/eof/eof_crawler.go
View file @
574a3406
...
@@ -94,7 +94,10 @@ func IndexEOFContracts(dbPath string, out string) error {
...
@@ -94,7 +94,10 @@ func IndexEOFContracts(dbPath string, out string) error {
}
}
// Attempt to get the address of the account from the trie
// Attempt to get the address of the account from the trie
addrBytes
:=
st
.
Get
(
it
.
Key
)
addrBytes
,
err
:=
st
.
Get
(
it
.
Key
)
if
err
!=
nil
{
return
fmt
.
Errorf
(
"load address for account: %w"
,
err
)
}
if
addrBytes
==
nil
{
if
addrBytes
==
nil
{
// Preimage missing! Cannot continue.
// Preimage missing! Cannot continue.
missingPreimages
++
missingPreimages
++
...
...
op-chain-ops/genesis/genesis.go
View file @
574a3406
...
@@ -39,7 +39,6 @@ func NewL2Genesis(config *DeployConfig, block *types.Block) (*core.Genesis, erro
...
@@ -39,7 +39,6 @@ func NewL2Genesis(config *DeployConfig, block *types.Block) (*core.Genesis, erro
DAOForkBlock
:
nil
,
DAOForkBlock
:
nil
,
DAOForkSupport
:
false
,
DAOForkSupport
:
false
,
EIP150Block
:
big
.
NewInt
(
0
),
EIP150Block
:
big
.
NewInt
(
0
),
EIP150Hash
:
common
.
Hash
{},
EIP155Block
:
big
.
NewInt
(
0
),
EIP155Block
:
big
.
NewInt
(
0
),
EIP158Block
:
big
.
NewInt
(
0
),
EIP158Block
:
big
.
NewInt
(
0
),
ByzantiumBlock
:
big
.
NewInt
(
0
),
ByzantiumBlock
:
big
.
NewInt
(
0
),
...
@@ -109,7 +108,6 @@ func NewL1Genesis(config *DeployConfig) (*core.Genesis, error) {
...
@@ -109,7 +108,6 @@ func NewL1Genesis(config *DeployConfig) (*core.Genesis, error) {
DAOForkBlock
:
nil
,
DAOForkBlock
:
nil
,
DAOForkSupport
:
false
,
DAOForkSupport
:
false
,
EIP150Block
:
big
.
NewInt
(
0
),
EIP150Block
:
big
.
NewInt
(
0
),
EIP150Hash
:
common
.
Hash
{},
EIP155Block
:
big
.
NewInt
(
0
),
EIP155Block
:
big
.
NewInt
(
0
),
EIP158Block
:
big
.
NewInt
(
0
),
EIP158Block
:
big
.
NewInt
(
0
),
ByzantiumBlock
:
big
.
NewInt
(
0
),
ByzantiumBlock
:
big
.
NewInt
(
0
),
...
...
op-exporter/Dockerfile
View file @
574a3406
FROM
golang:1.19.
0-alpine3.15
as builder
FROM
golang:1.19.
9-alpine3.16
as builder
# build from root of repo
# build from root of repo
COPY
./op-exporter /app
COPY
./op-exporter /app
...
@@ -7,7 +7,7 @@ WORKDIR /app/
...
@@ -7,7 +7,7 @@ WORKDIR /app/
RUN
apk
--no-cache
add make bash jq git
RUN
apk
--no-cache
add make bash jq git
RUN
make build
RUN
make build
FROM
alpine:3.1
5
FROM
alpine:3.1
6
RUN
apk
--no-cache
add ca-certificates
RUN
apk
--no-cache
add ca-certificates
WORKDIR
/root/
WORKDIR
/root/
COPY
--from=builder /app/op-exporter /usr/local/bin/
COPY
--from=builder /app/op-exporter /usr/local/bin/
...
...
op-node/Dockerfile
View file @
574a3406
FROM
--platform=$BUILDPLATFORM golang:1.19.
0-alpine3.15
as builder
FROM
--platform=$BUILDPLATFORM golang:1.19.
9-alpine3.16
as builder
ARG
VERSION=v0.0.0
ARG
VERSION=v0.0.0
...
@@ -21,7 +21,7 @@ ARG TARGETOS TARGETARCH
...
@@ -21,7 +21,7 @@ ARG TARGETOS TARGETARCH
RUN
make op-node
VERSION
=
"
$VERSION
"
GOOS
=
$TARGETOS
GOARCH
=
$TARGETARCH
RUN
make op-node
VERSION
=
"
$VERSION
"
GOOS
=
$TARGETOS
GOARCH
=
$TARGETARCH
FROM
alpine:3.1
5
FROM
alpine:3.1
6
COPY
--from=builder /app/op-node/bin/op-node /usr/local/bin
COPY
--from=builder /app/op-node/bin/op-node /usr/local/bin
...
...
op-program/Dockerfile
View file @
574a3406
FROM
--platform=$BUILDPLATFORM golang:1.19.
0-alpine3.15
as builder
FROM
--platform=$BUILDPLATFORM golang:1.19.
9-alpine3.16
as builder
ARG
VERSION=v0.0.0
ARG
VERSION=v0.0.0
...
@@ -22,7 +22,7 @@ ARG TARGETOS TARGETARCH
...
@@ -22,7 +22,7 @@ ARG TARGETOS TARGETARCH
RUN
make op-program
VERSION
=
"
$VERSION
"
GOOS
=
$TARGETOS
GOARCH
=
$TARGETARCH
RUN
make op-program
VERSION
=
"
$VERSION
"
GOOS
=
$TARGETOS
GOARCH
=
$TARGETARCH
FROM
alpine:3.1
5
FROM
alpine:3.1
6
COPY
--from=builder /app/op-program/bin/op-program /usr/local/bin
COPY
--from=builder /app/op-program/bin/op-program /usr/local/bin
...
...
op-program/host/config/chaincfg.go
View file @
574a3406
...
@@ -3,7 +3,6 @@ package config
...
@@ -3,7 +3,6 @@ package config
import
(
import
(
"math/big"
"math/big"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/params"
"github.com/ethereum/go-ethereum/params"
)
)
...
@@ -13,7 +12,6 @@ var OPGoerliChainConfig = ¶ms.ChainConfig{
...
@@ -13,7 +12,6 @@ var OPGoerliChainConfig = ¶ms.ChainConfig{
DAOForkBlock
:
nil
,
DAOForkBlock
:
nil
,
DAOForkSupport
:
false
,
DAOForkSupport
:
false
,
EIP150Block
:
big
.
NewInt
(
0
),
EIP150Block
:
big
.
NewInt
(
0
),
EIP150Hash
:
common
.
Hash
{},
EIP155Block
:
big
.
NewInt
(
0
),
EIP155Block
:
big
.
NewInt
(
0
),
EIP158Block
:
big
.
NewInt
(
0
),
EIP158Block
:
big
.
NewInt
(
0
),
ByzantiumBlock
:
big
.
NewInt
(
0
),
ByzantiumBlock
:
big
.
NewInt
(
0
),
...
...
op-proposer/Dockerfile
View file @
574a3406
FROM
--platform=$BUILDPLATFORM golang:1.19.
0-alpine3.15
as builder
FROM
--platform=$BUILDPLATFORM golang:1.19.
9-alpine3.16
as builder
ARG
VERSION=v0.0.0
ARG
VERSION=v0.0.0
...
@@ -22,7 +22,7 @@ ARG TARGETOS TARGETARCH
...
@@ -22,7 +22,7 @@ ARG TARGETOS TARGETARCH
RUN
make op-proposer
VERSION
=
"
$VERSION
"
GOOS
=
$TARGETOS
GOARCH
=
$TARGETARCH
RUN
make op-proposer
VERSION
=
"
$VERSION
"
GOOS
=
$TARGETOS
GOARCH
=
$TARGETARCH
FROM
alpine:3.1
5
FROM
alpine:3.1
6
COPY
--from=builder /app/op-proposer/bin/op-proposer /usr/local/bin
COPY
--from=builder /app/op-proposer/bin/op-proposer /usr/local/bin
...
...
op-wheel/Dockerfile
View file @
574a3406
FROM
golang:1.19.
0-alpine3.15
as builder
FROM
golang:1.19.
9-alpine3.16
as builder
RUN
apk add
--no-cache
make gcc musl-dev linux-headers
RUN
apk add
--no-cache
make gcc musl-dev linux-headers
...
@@ -14,7 +14,7 @@ WORKDIR /app/op-wheel
...
@@ -14,7 +14,7 @@ WORKDIR /app/op-wheel
RUN
go build
-o
op-wheel ./cmd/main.go
RUN
go build
-o
op-wheel ./cmd/main.go
FROM
alpine:3.1
5
FROM
alpine:3.1
6
COPY
--from=builder /app/op-wheel/op-wheel /usr/local/bin
COPY
--from=builder /app/op-wheel/op-wheel /usr/local/bin
...
...
ops-bedrock/Dockerfile.stateviz
View file @
574a3406
FROM golang:1.1
8.0-alpine3.15
as builder
FROM golang:1.1
9.9-alpine3.16
as builder
RUN apk add --no-cache make gcc musl-dev linux-headers git jq bash
RUN apk add --no-cache make gcc musl-dev linux-headers git jq bash
...
@@ -14,7 +14,7 @@ COPY ./op-node /app/op-node
...
@@ -14,7 +14,7 @@ COPY ./op-node /app/op-node
RUN go build -o ./bin/stateviz ./cmd/stateviz
RUN go build -o ./bin/stateviz ./cmd/stateviz
FROM alpine:3.1
5
FROM alpine:3.1
6
COPY --from=builder /app/op-node/bin/stateviz /usr/local/bin
COPY --from=builder /app/op-node/bin/stateviz /usr/local/bin
...
...
specs/dispute-game-interface.md
View file @
574a3406
...
@@ -196,14 +196,19 @@ interface IDisputeGame_OutputAttestation is IDisputeGame {
...
@@ -196,14 +196,19 @@ interface IDisputeGame_OutputAttestation is IDisputeGame {
function challenges(address challenger) external view returns (bool _challenged);
function challenges(address challenger) external view returns (bool _challenged);
/// @notice The signer set consists of authorized public keys that may challenge the `rootClaim`.
/// @notice The signer set consists of authorized public keys that may challenge the `rootClaim`.
/// @return An array of authorized signers.
/// This set of signers is snapshotted from the `SystemConfig` upon creation of the game.
function signerSet() external view returns (address[] memory _signers);
/// @return An array of authorized signers from the `SystemConfig` contract.
function frozenSignerSet() external view returns (address[] memory _signers);
/// @notice The signer set consists of authorized public keys that may challenge the `rootClaim`.
/// @return _isAuthorized Whether or not the `addr` is part of the frozen signer set.
function signerSet(address addr) external view override returns (bool _isAuthorized);
/// @notice The amount of signatures required to successfully challenge the `rootClaim`
/// @notice The amount of signatures required to successfully challenge the `rootClaim`
/// output proposal. Once this threshold is met by members of the `signerSet`
/// output proposal. Once this threshold is met by members of the `signerSet`
/// calling `challenge`, the game will be resolved to `CHALLENGER_WINS`.
/// calling `challenge`, the game will be resolved to `CHALLENGER_WINS`.
/// @custom:invariant The `signatureThreshold` may never be greater than the length of the `signerSet`.
/// @custom:invariant The `signatureThreshold` may never be greater than the length of the `signerSet`.
function
signatureThreshold() public view returns (uint1
6 _signatureThreshold);
function
frozenSignatureThreshold() external view returns (uint25
6 _signatureThreshold);
/// @notice Returns the L2 Block Number that the `rootClaim` commits to. Exists within the `extraData`.
/// @notice Returns the L2 Block Number that the `rootClaim` commits to. Exists within the `extraData`.
function l2BlockNumber() public view returns (uint256 _l2BlockNumber);
function l2BlockNumber() public view returns (uint256 _l2BlockNumber);
...
@@ -211,8 +216,6 @@ interface IDisputeGame_OutputAttestation is IDisputeGame {
...
@@ -211,8 +216,6 @@ interface IDisputeGame_OutputAttestation is IDisputeGame {
/// @notice Challenge the `rootClaim`.
/// @notice Challenge the `rootClaim`.
/// @dev - If the `ecrecover`ed address that created the signature is not a part of the
/// @dev - If the `ecrecover`ed address that created the signature is not a part of the
/// signer set returned by `signerSet`, this function should revert.
/// signer set returned by `signerSet`, this function should revert.
/// - If the `ecrecover`ed address that created the signature is not the msg.sender,
/// this function should revert.
/// - If the signature provided is the signature that breaches the signature threshold,
/// - If the signature provided is the signature that breaches the signature threshold,
/// the function should call the `resolve` function to resolve the game as `CHALLENGER_WINS`.
/// the function should call the `resolve` function to resolve the game as `CHALLENGER_WINS`.
/// - When the game resolves, the bond attached to the root claim should be distributed among
/// - When the game resolves, the bond attached to the root claim should be distributed among
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment