Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NubitDA integration on XLayer Node #246

Open
wants to merge 16 commits into
base: niven/nubit
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion cmd/run_xlayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,12 @@ func newDataAvailability(c config.Config, st *state.State, etherman *etherman.Cl
}
log.Infof("from pk %s", crypto.PubkeyToAddress(pk.PublicKey))
}
daBackend, err = nubit.NewNubitDABackend(&c.DataAvailability, pk)

daBackend, err = nubit.NewGeneralDA(&c.DataAvailability)
if err != nil {
return nil, err
}
log.Info("generalDA is constructed successfully")
default:
return nil, fmt.Errorf("unexpected / unsupported DA protocol: %s", daProtocolName)
}
Expand Down
6 changes: 1 addition & 5 deletions config/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,11 +246,7 @@ AggLayerURL = ""
SequencerPrivateKey = {}

[DataAvailability]
NubitRpcURL = "http://127.0.0.1:26658"
NubitAuthKey = ""
NubitNamespace = "xlayer"
NubitGetProofMaxRetry = "10"
NubitGetProofWaitPeriod = "5s"
NubitRpcURL = "http://127.0.0.1:9876"

[L2GasPriceSuggester]
Type = "follower"
Expand Down
2 changes: 1 addition & 1 deletion dataavailability/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ const (
// DataAvailabilityCommittee is the DAC protocol backend
DataAvailabilityCommittee DABackendType = "DataAvailabilityCommittee"
// DataAvailabilityNubitDA is the NubitDA protocol backend
DataAvailabilityNubitDA DABackendType = "NubitDA"
DataAvailabilityNubitDA DABackendType = "Nubit"
)
28 changes: 0 additions & 28 deletions dataavailability/nubit/abi.go

This file was deleted.

142 changes: 0 additions & 142 deletions dataavailability/nubit/backend.go

This file was deleted.

141 changes: 0 additions & 141 deletions dataavailability/nubit/backend_test.go

This file was deleted.

Loading