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
1518a4f5
Unverified
Commit
1518a4f5
authored
Oct 06, 2022
by
mergify[bot]
Committed by
GitHub
Oct 06, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3658 from ethereum-optimism/10-05-indexer_Restore_some_bindings
indexer: Restore some bindings
parents
b660cfbe
01de0849
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
886 additions
and
0 deletions
+886
-0
Makefile
indexer/Makefile
+24
-0
statecommitmentchain.go
indexer/bindings/legacy/scc/statecommitmentchain.go
+862
-0
No files found.
indexer/Makefile
View file @
1518a4f5
...
@@ -7,6 +7,10 @@ LDFLAGSSTRING +=-X main.GitDate=$(GITDATE)
...
@@ -7,6 +7,10 @@ LDFLAGSSTRING +=-X main.GitDate=$(GITDATE)
LDFLAGSSTRING
+=
-X
main.GitVersion
=
$(GITVERSION)
LDFLAGSSTRING
+=
-X
main.GitVersion
=
$(GITVERSION)
LDFLAGS
:=
-ldflags
"
$(LDFLAGSSTRING)
"
LDFLAGS
:=
-ldflags
"
$(LDFLAGSSTRING)
"
# Note: Requires legacy contracts to be built before
# running and binding-related Make targets.
SCC_ABI_ARTIFACT
=
../packages/contracts/artifacts/contracts/L1/rollup/StateCommitmentChain.sol/StateCommitmentChain.json
indexer
:
indexer
:
env
GO111MODULE
=
on go build
-v
$(LDFLAGS)
./cmd/indexer
env
GO111MODULE
=
on go build
-v
$(LDFLAGS)
./cmd/indexer
...
@@ -19,8 +23,28 @@ test:
...
@@ -19,8 +23,28 @@ test:
lint
:
lint
:
golangci-lint run ./...
golangci-lint run ./...
bindings
:
bindings-scc
bindings-scc
:
$
(
eval
temp :
=
$(
shell
mktemp
)
)
cat
$(SCC_ABI_ARTIFACT)
\
|
jq
-r
.bytecode
>
$(temp)
cat
$(SCC_ABI_ARTIFACT)
\
|
jq
.abi
\
|
abigen
--pkg
scc
\
--abi
-
\
--out
bindings/scc/statecommitmentchain.go
\
--type
StateCommitmentChain
\
--bin
$(temp)
rm
$(temp)
.PHONY
:
\
.PHONY
:
\
indexer
\
indexer
\
bindings
\
bindings-scc
\
clean
\
clean
\
test
\
test
\
lint
lint
indexer/bindings/legacy/scc/statecommitmentchain.go
0 → 100644
View file @
1518a4f5
This diff is collapsed.
Click to expand it.
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