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

feat(taiko-client): soft block driver APIs #18273

Open
wants to merge 97 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 71 commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
47f4aba
feat(taiko-client): preconfirmation driver APIs
davidtaikocha Oct 21, 2024
90541bd
feat: update APIs
davidtaikocha Oct 21, 2024
a69115f
feat: more comments
davidtaikocha Oct 21, 2024
643802b
feat: update based on comments
davidtaikocha Oct 21, 2024
9ab2792
feat: rename a method
davidtaikocha Oct 21, 2024
267ec3b
feat: add anchor params
davidtaikocha Oct 21, 2024
22346fb
feat(taiko-client): add swagger for preconf api
RogerLamTd Oct 21, 2024
3c41aa7
Revert "feat(taiko-client): add swagger for preconf api"
RogerLamTd Oct 21, 2024
b891588
feat(taiko-client): add swagger api for preconf server (#18274)
RogerLamTd Oct 22, 2024
42d0288
add page
RogerLamTd Oct 22, 2024
d9fa67d
pages workflow
RogerLamTd Oct 22, 2024
bcd5fad
fix
RogerLamTd Oct 22, 2024
37cd672
.
RogerLamTd Oct 22, 2024
a5b12ad
add swagger gen step and fix path
RogerLamTd Oct 22, 2024
7cd0c3a
use branch ref
RogerLamTd Oct 22, 2024
1183f1d
Update Swagger documentation
github-actions[bot] Oct 22, 2024
365d896
fix workflow and index.html
RogerLamTd Oct 22, 2024
f132607
fix again
RogerLamTd Oct 22, 2024
89f956e
make commit safe
RogerLamTd Oct 22, 2024
11a9381
suggested changes (#18281)
dantaik Oct 23, 2024
b6150e6
feat: update ci
davidtaikocha Oct 23, 2024
c4c0fec
feat: rename packages
davidtaikocha Oct 23, 2024
5b4b57e
fix: fix swagger build
davidtaikocha Oct 23, 2024
8193b5e
feat: update api
davidtaikocha Oct 23, 2024
239b4a3
feat: update api
davidtaikocha Oct 23, 2024
fa155bd
feat: update api
davidtaikocha Oct 23, 2024
928a72c
feat: update api
davidtaikocha Oct 23, 2024
e94c531
feat: update api
davidtaikocha Oct 23, 2024
870b013
chore: update comments
davidtaikocha Oct 23, 2024
0395065
chore: update swagger json
davidtaikocha Oct 23, 2024
719eabd
chore: update some comments
davidtaikocha Oct 23, 2024
3015dcb
chore: update some comments
davidtaikocha Oct 23, 2024
9b5afcc
chore: update some comments
davidtaikocha Oct 23, 2024
3890e57
feat: update json
davidtaikocha Oct 23, 2024
af0c083
Merge branch 'main' into preconf-driver-apis
davidtaikocha Oct 25, 2024
5c58198
chore: update some comments
davidtaikocha Oct 25, 2024
6b41652
feat: draft implementation of `InsertSoftBlockFromTransactionsBatch`
davidtaikocha Oct 28, 2024
8e02ca8
feat: use `canonicalHead` as safe head
davidtaikocha Oct 28, 2024
ace15fa
Merge branch 'main' into preconf-driver-apis
davidtaikocha Oct 28, 2024
e90e200
chore: update go.mod
davidtaikocha Oct 28, 2024
7b51a3b
feat: upload new L1Origin
davidtaikocha Oct 28, 2024
b8887ba
feat: add soft block server flags
davidtaikocha Oct 28, 2024
16d2645
test: introduce uint tests
davidtaikocha Oct 28, 2024
3660179
Merge branch 'main' into preconf-driver-apis
davidtaikocha Oct 29, 2024
1faa04b
Merge branch 'main' into preconf-driver-apis
davidtaikocha Oct 29, 2024
5baa565
test: more tests
davidtaikocha Oct 30, 2024
3bdb7a3
test: update tests
davidtaikocha Oct 30, 2024
f10d030
chore: update go.mod
davidtaikocha Oct 31, 2024
6dbc42c
Merge branch 'main' into preconf-driver-apis
davidtaikocha Oct 31, 2024
9ee1558
Merge branch 'main' into preconf-driver-apis
davidtaikocha Nov 1, 2024
5f08a79
Merge branch 'main' into preconf-driver-apis
davidtaikocha Nov 3, 2024
d5b4b10
Merge branch 'main' into preconf-driver-apis
davidtaikocha Nov 3, 2024
ac8c74c
chore: update go.mod
davidtaikocha Nov 3, 2024
074910f
feat: merge upstream
davidtaikocha Nov 3, 2024
680c174
feat: update bindings
davidtaikocha Nov 3, 2024
c3665b7
feat: update `GetPoolContent`
davidtaikocha Nov 3, 2024
4adab8b
Merge branch 'main' into preconf-driver-apis
davidtaikocha Nov 4, 2024
a79ba01
feat: update bindings
davidtaikocha Nov 4, 2024
e2daf45
feat: add `--softBlock.signatureCheck` flag
davidtaikocha Nov 4, 2024
a35179c
feat: check EOB && EOP
davidtaikocha Nov 4, 2024
0a23ce7
feat: implement `RemoveSoftBlocks`
davidtaikocha Nov 4, 2024
89ef5ff
test: update tests
davidtaikocha Nov 4, 2024
2db8d10
fix: fix lint errors
davidtaikocha Nov 4, 2024
3178f29
fix: fix lint errors
davidtaikocha Nov 4, 2024
bebfe6a
test: update tests
davidtaikocha Nov 4, 2024
479711d
feat: changes based on comments
davidtaikocha Nov 5, 2024
f6860b5
feat: changes based on comments
davidtaikocha Nov 5, 2024
5353b75
Merge branch 'main' into preconf-driver-apis
davidtaikocha Nov 5, 2024
bf16168
fix: fix lint errors
davidtaikocha Nov 5, 2024
24ab1e3
Merge branch 'main' into preconf-driver-apis
davidtaikocha Nov 5, 2024
128ff24
Merge branch 'main' into preconf-driver-apis
davidtaikocha Nov 5, 2024
b8e280b
Merge branch 'main' into preconf-driver-apis
davidtaikocha Nov 6, 2024
72d676b
test: add more tests
davidtaikocha Nov 6, 2024
f8b8cd3
test: add more tests
davidtaikocha Nov 6, 2024
f98aa42
Merge branch 'main' into preconf-driver-apis
davidtaikocha Nov 6, 2024
87fbe43
chore: update some comments
davidtaikocha Nov 7, 2024
4158e3a
feat: check soft block height
davidtaikocha Nov 7, 2024
ed06d66
Merge branch 'main' into preconf-driver-apis
davidtaikocha Nov 7, 2024
3d4d180
build docker image which will used in hive test
mask-pp Nov 8, 2024
eb2aaba
build docker image which will used in hive test
mask-pp Nov 8, 2024
324ebf0
feat(taiko-client): avoid coping the whole struct (#18463)
mask-pp Nov 8, 2024
24017af
feat: check if BatchID is nil
davidtaikocha Nov 17, 2024
7815cec
Merge branch 'main' into preconf-driver-apis
davidtaikocha Nov 17, 2024
e5c82ab
chore: update go.sum
davidtaikocha Nov 17, 2024
ea20873
chore: update go.mod
davidtaikocha Nov 17, 2024
e3303dd
feat: only snap sync to the highest safe block
davidtaikocha Nov 17, 2024
93a7103
Merge branch 'main' into preconf-driver-apis
davidtaikocha Nov 18, 2024
ca653a4
test: fix tests
davidtaikocha Nov 18, 2024
a8b999a
Merge branch 'main' into preconf-driver-apis
mask-pp Nov 25, 2024
25a135b
Merge branch 'main' into preconf-driver-apis
mask-pp Nov 25, 2024
79964c8
Merge branch 'main' into preconf-driver-apis
mask-pp Nov 25, 2024
930e0fc
Merge branch 'main' into preconf-driver-apis
mask-pp Nov 25, 2024
acf21e4
feat(taiko-client): fix utils reference and lint error (#18518)
mask-pp Nov 25, 2024
0ba614f
Merge branch 'main' into preconf-driver-apis
davidtaikocha Nov 26, 2024
6c560ba
default false sig check
cyberhorsey Nov 26, 2024
6d2c4a0
feat(taiko-client): add more preconf logs (#18524)
mask-pp Nov 27, 2024
8432aed
Merge branch 'main' into preconf-driver-apis
davidtaikocha Nov 27, 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
64 changes: 64 additions & 0 deletions .github/workflows/taiko-client--pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: GitHub Pages

on:
push:
branches:
- preconf-driver-apis

jobs:
swagger-gen:
if: ${{ !contains(github.event.head_commit.message, 'Update Swagger documentation') }}
runs-on: [arc-runner-set]
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: preconf-driver-apis

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.23"

- name: Install swaggo
run: |
export CGO_ENABLED=0
go install github.com/swaggo/swag/cmd/swag@latest

- name: Generate Swagger documentation
run: |
export CGO_ENABLED=0
cd packages/taiko-client
./scripts/gen_swagger_json.sh

- name: Commit Swagger docs
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add .
if ! git diff --quiet; then
git commit -m "Update Swagger documentation"
git push origin HEAD:${{ github.ref_name }}
else
echo "No changes to commit"
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
deploy:
if: ${{ !contains(github.event.head_commit.message, 'Update Swagger documentation') }}
runs-on: [arc-runner-set]
needs: swagger-gen
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: preconf-driver-apis

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: packages/taiko-client/docs # Set this to where your `index.html` is located
publish_branch: gh-pages
26 changes: 14 additions & 12 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ require (
github.com/google/uuid v1.6.0
github.com/joho/godotenv v1.5.1
github.com/labstack/echo-contrib v0.17.1
github.com/labstack/echo-jwt/v4 v4.2.0
github.com/labstack/echo/v4 v4.12.0
github.com/labstack/gommon v0.4.2
github.com/modern-go/reflect2 v1.0.2
Expand Down Expand Up @@ -100,10 +101,10 @@ require (
github.com/go-logr/logr v1.4.1 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-ole/go-ole v1.3.0 // indirect
github.com/go-openapi/jsonpointer v0.19.5 // indirect
github.com/go-openapi/jsonreference v0.20.0 // indirect
github.com/go-openapi/spec v0.20.4 // indirect
github.com/go-openapi/swag v0.19.15 // indirect
github.com/go-openapi/jsonpointer v0.21.0 // indirect
github.com/go-openapi/jsonreference v0.21.0 // indirect
github.com/go-openapi/spec v0.21.0 // indirect
github.com/go-openapi/swag v0.23.0 // indirect
github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/go-playground/validator/v10 v10.13.0 // indirect
Expand All @@ -112,7 +113,8 @@ require (
github.com/gofrs/flock v0.8.1 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
github.com/golang-jwt/jwt/v4 v4.5.1 // indirect
github.com/golang-jwt/jwt/v4 v4.5.0 // indirect
github.com/golang-jwt/jwt/v5 v5.0.0 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect
github.com/google/go-cmp v0.6.0 // indirect
Expand Down Expand Up @@ -207,13 +209,13 @@ require (
go.opentelemetry.io/otel/metric v1.24.0 // indirect
go.opentelemetry.io/otel/trace v1.24.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/crypto v0.27.0 // indirect
golang.org/x/mod v0.20.0 // indirect
golang.org/x/net v0.28.0 // indirect
golang.org/x/crypto v0.28.0 // indirect
golang.org/x/mod v0.21.0 // indirect
golang.org/x/net v0.30.0 // indirect
golang.org/x/oauth2 v0.21.0 // indirect
golang.org/x/sys v0.25.0 // indirect
golang.org/x/term v0.24.0 // indirect
golang.org/x/text v0.18.0 // indirect
golang.org/x/sys v0.26.0 // indirect
golang.org/x/term v0.25.0 // indirect
golang.org/x/text v0.19.0 // indirect
golang.org/x/time v0.6.0 // indirect
golang.org/x/tools v0.24.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240318140521-94a12d6c2237 // indirect
Expand All @@ -235,7 +237,7 @@ require (
sigs.k8s.io/yaml v1.3.0 // indirect
)

replace github.com/ethereum/go-ethereum v1.14.11 => github.com/taikoxyz/taiko-geth v1.11.1
replace github.com/ethereum/go-ethereum v1.14.11 => github.com/taikoxyz/taiko-geth v1.11.2-0.20241031044538-43ab184d9ebd

replace github.com/ethereum-optimism/optimism v1.7.4 => github.com/taikoxyz/optimism v0.0.0-20241003061504-cdf8af288f39

Expand Down
Loading
Loading