Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
4a5593b
optimal history commitment root computation
rauljordan Aug 21, 2024
7d0e0df
to and from
rauljordan Aug 21, 2024
799d612
optimized
rauljordan Aug 21, 2024
634ba6c
rem
rauljordan Aug 21, 2024
a9b3df8
algo
rauljordan Aug 21, 2024
ffb9e66
tests
rauljordan Aug 22, 2024
05e9be0
failing at limit 8
rauljordan Aug 22, 2024
f34d77d
push test
rauljordan Aug 22, 2024
d01cf44
passes tests
rauljordan Aug 22, 2024
6201dcb
test
rauljordan Aug 23, 2024
7082368
prefix proofs included
rauljordan Aug 26, 2024
4e63c30
add more tests
rauljordan Aug 27, 2024
367bc98
tests
rauljordan Aug 28, 2024
a145880
benches
rauljordan Aug 29, 2024
c056585
use commitment builder pattern
rauljordan Aug 30, 2024
2d9ff56
set up better tests
rauljordan Sep 4, 2024
a4ce65d
fix up tests with new api
rauljordan Sep 4, 2024
d304805
passing
rauljordan Sep 4, 2024
ab3b1da
test
rauljordan Sep 4, 2024
b88b4bd
edits
rauljordan Sep 4, 2024
19e1f8d
handle
rauljordan Sep 4, 2024
9f9b66c
handle
rauljordan Sep 4, 2024
41ab6cf
edits
rauljordan Sep 4, 2024
1064278
rem
rauljordan Sep 4, 2024
17a9034
test resilience
rauljordan Sep 5, 2024
a705a3f
comment
rauljordan Sep 5, 2024
eecd608
add fuzz
rauljordan Sep 5, 2024
71a45aa
Merge branch 'main' into optimal-commits
rauljordan Sep 13, 2024
4582e58
do not expose limit as arg
rauljordan Sep 13, 2024
896bead
align api
rauljordan Sep 13, 2024
8fb3a57
edits
rauljordan Sep 13, 2024
3021b17
history committer
rauljordan Sep 13, 2024
ba983a8
prepare the leaves
rauljordan Sep 16, 2024
68c5be7
testing
rauljordan Sep 16, 2024
7501dc4
inclusion proofs
rauljordan Sep 16, 2024
6309cc2
compute if pow two
rauljordan Sep 16, 2024
c1bce8f
gaz
rauljordan Sep 16, 2024
0091ccc
Merge branch 'main' into optimal-commits
rauljordan Sep 18, 2024
242b86c
Merge branch 'optimal-commits' into replace-history-commits
rauljordan Sep 18, 2024
5915a85
do not override
rauljordan Sep 18, 2024
dc7260e
flake
rauljordan Sep 18, 2024
305d4f0
check
rauljordan Sep 18, 2024
220ff27
add safety checks
rauljordan Sep 18, 2024
2870567
test
rauljordan Sep 18, 2024
0c50978
safety check
rauljordan Sep 18, 2024
b49bba3
gaz
rauljordan Sep 18, 2024
64104a9
Merge branch 'optimal-commits' into replace-history-commits
rauljordan Sep 18, 2024
4be91de
begin adapting to hash leaves
rauljordan Sep 18, 2024
a8f30f2
simplicity
rauljordan Sep 18, 2024
3d9d0ad
big improvements
rauljordan Sep 18, 2024
1b08ab1
Address review comments
eljobe Sep 26, 2024
dae49e7
Merge branch 'optimal-commits' into replace-history-commits
eljobe Sep 26, 2024
3aae8fd
Merge branch 'main' into optimal-commits
eljobe Sep 27, 2024
212bca3
Address more review feedback.
eljobe Sep 30, 2024
13f435a
Clean up the reuse of leaf fillers logic
eljobe Sep 30, 2024
cb7acb3
Merge branch 'optimal-commits' into replace-history-commits
eljobe Sep 30, 2024
f988f9f
Address review comments
eljobe Sep 30, 2024
d665700
Merge branch 'optimal-commits' into replace-history-commits
eljobe Sep 30, 2024
268abfe
Update BUILD.bazel and fix error
eljobe Sep 30, 2024
db032c1
Merge branch 'main' into replace-history-commits
eljobe Sep 30, 2024
22b9ae8
Replace common.hash{} with emptyHash everywhere
eljobe Oct 2, 2024
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
2 changes: 1 addition & 1 deletion api/db/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ go_library(

go_test(
name = "db_test",
size = "small",
srcs = ["db_test.go"],
embed = [":db"],
deps = [
Expand All @@ -32,5 +33,4 @@ go_test(
"@com_github_mattn_go_sqlite3//:go-sqlite3",
"@com_github_stretchr_testify//require",
],
size = "small",
)
2 changes: 1 addition & 1 deletion assertions/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ go_library(

go_test(
name = "assertions_test",
size = "small",
srcs = [
"manager_test.go",
"poster_test.go",
Expand All @@ -57,5 +58,4 @@ go_test(
"@com_github_ethereum_go_ethereum//common",
"@com_github_stretchr_testify//require",
],
size = "small",
)
2 changes: 1 addition & 1 deletion chain-abstraction/sol-implementation/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ go_library(

go_test(
name = "sol-implementation_test",
size = "small",
srcs = [
"assertion_chain_helper_test.go",
"assertion_chain_test.go",
Expand Down Expand Up @@ -69,5 +70,4 @@ go_test(
"@com_github_ethereum_go_ethereum//core/types",
"@com_github_stretchr_testify//require",
],
size = "small",
)
2 changes: 1 addition & 1 deletion challenge-manager/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ go_library(

go_test(
name = "challenge-manager_test",
size = "small",
srcs = ["manager_test.go"],
embed = [":challenge-manager"],
deps = [
Expand All @@ -56,5 +57,4 @@ go_test(
"@com_github_ethereum_go_ethereum//common",
"@com_github_stretchr_testify//require",
],
size = "small",
)
2 changes: 1 addition & 1 deletion challenge-manager/chain-watcher/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ go_library(

go_test(
name = "chain-watcher_test",
size = "small",
srcs = ["watcher_test.go"],
embed = [":chain-watcher"],
deps = [
Expand All @@ -39,5 +40,4 @@ go_test(
"@com_github_ethereum_go_ethereum//common",
"@com_github_stretchr_testify//require",
],
size = "small",
)
2 changes: 1 addition & 1 deletion challenge-manager/challenge-tree/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ go_library(

go_test(
name = "challenge-tree_test",
size = "small",
srcs = [
"ancestors_test.go",
"compute_ancestors_test.go",
Expand All @@ -45,5 +46,4 @@ go_test(
"@com_github_ethereum_go_ethereum//common",
"@com_github_stretchr_testify//require",
],
size = "small",
)
2 changes: 1 addition & 1 deletion containers/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ go_library(

go_test(
name = "containers_test",
size = "small",
srcs = ["slice_test.go"],
embed = [":containers"],
deps = ["@com_github_stretchr_testify//require"],
size = "small",
)
2 changes: 1 addition & 1 deletion containers/events/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ go_library(

go_test(
name = "events_test",
size = "small",
srcs = ["producer_test.go"],
embed = [":events"],
deps = ["@com_github_stretchr_testify//require"],
size = "small",
)
2 changes: 1 addition & 1 deletion containers/fsm/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ go_library(

go_test(
name = "fsm_test",
size = "small",
srcs = ["fsm_test.go"],
embed = [":fsm"],
deps = ["@com_github_stretchr_testify//require"],
size = "small",
)
2 changes: 1 addition & 1 deletion containers/threadsafe/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ go_library(

go_test(
name = "threadsafe_test",
size = "small",
srcs = [
"collections_test.go",
"map_test.go",
Expand All @@ -28,5 +29,4 @@ go_test(
],
embed = [":threadsafe"],
deps = ["@com_github_stretchr_testify//require"],
size = "small",
)
2 changes: 1 addition & 1 deletion layer2-state-provider/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ go_library(

go_test(
name = "layer2-state-provider_test",
size = "small",
srcs = ["history_commitment_provider_test.go"],
embed = [":layer2-state-provider"],
deps = [
"//containers/option",
"@com_github_stretchr_testify//require",
],
size = "small",
)
14 changes: 10 additions & 4 deletions math/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,29 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
name = "math",
srcs = ["math.go", "intlog2.go"],
srcs = [
"intlog2.go",
"math.go",
],
importpath = "github.com/OffchainLabs/bold/math",
visibility = ["//visibility:public"],
)

go_test(
name = "math_test",
srcs = ["math_test.go"],
size = "small",
srcs = [
"intlog2_test.go",
"math_test.go",
],
embed = [":math"],
deps = ["@com_github_stretchr_testify//require"],
size = "small",
)

go_test(
name = "intlog2_test",
size = "small",
srcs = ["intlog2_test.go"],
embed = [":math"],
deps = ["@com_github_stretchr_testify//require"],
size = "small",
)
2 changes: 1 addition & 1 deletion runtime/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ go_library(

go_test(
name = "runtime_test",
size = "small",
srcs = ["retry_test.go"],
embed = [":runtime"],
deps = ["@com_github_stretchr_testify//require"],
size = "small",
)
16 changes: 16 additions & 0 deletions solgen/go/chaingen/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library")

go_library(
name = "chaingen",
srcs = ["chaingen.go"],
importpath = "github.com/OffchainLabs/bold/solgen/go/chaingen",
visibility = ["//visibility:public"],
deps = [
"@com_github_ethereum_go_ethereum//:go-ethereum",
"@com_github_ethereum_go_ethereum//accounts/abi",
"@com_github_ethereum_go_ethereum//accounts/abi/bind",
"@com_github_ethereum_go_ethereum//common",
"@com_github_ethereum_go_ethereum//core/types",
"@com_github_ethereum_go_ethereum//event",
],
)
2 changes: 1 addition & 1 deletion state-commitments/history/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ go_library(

go_test(
name = "history_test",
size = "small",
srcs = ["commitments_test.go"],
embed = [":history"],
deps = [
"//state-commitments/inclusion-proofs",
"@com_github_ethereum_go_ethereum//common",
"@com_github_stretchr_testify//require",
],
size = "small",
)
2 changes: 1 addition & 1 deletion state-commitments/inclusion-proofs/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ go_library(

go_test(
name = "inclusion-proofs_test",
size = "small",
srcs = ["inclusion_proofs_test.go"],
embed = [":inclusion-proofs"],
deps = [
"//state-commitments/prefix-proofs",
"@com_github_ethereum_go_ethereum//common",
"@com_github_stretchr_testify//require",
],
size = "small",
)
5 changes: 4 additions & 1 deletion state-commitments/optimized/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
name = "optimized",
srcs = ["history_commitment.go"],
srcs = [
"history_commitment.go",
"inclusion_proof.go",
],
importpath = "github.com/OffchainLabs/bold/state-commitments/optimized",
visibility = ["//visibility:public"],
deps = [
Expand Down
Loading
Loading