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(protocol): add preconfirmation support [helder] #17654

Closed
wants to merge 49 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
e69e360
make block metadata predictable longer + sequencer registry
Brechtpd Jun 23, 2024
f27e0b7
feedback
Brechtpd Jun 24, 2024
ee84153
order alphabetically
Brechtpd Jun 24, 2024
d59db31
Allow proposer to also choose the timestamp
Brechtpd Jun 25, 2024
fac9ba8
fix issue with difficulty not being independent of L1 slot or proposing
Brechtpd Jun 25, 2024
6ef1726
fix timestamp range check
Brechtpd Jun 25, 2024
de08795
fix ci
Brechtpd Jun 27, 2024
b5036c3
Merge remote-tracking branch 'origin/helder' into preconfirmations
Brechtpd Jun 27, 2024
3e0c74c
forge fmt & update contract layout table
Brechtpd Jun 27, 2024
015ed34
increase allowed L1 data window
Brechtpd Jun 28, 2024
23351f8
comment out some checks/unused functionality to make TaikoL1 deployable
Brechtpd Jun 29, 2024
d021b0d
forge fmt & update contract layout table
Brechtpd Jun 29, 2024
9e97bbf
add back simplified EOA check for now
Brechtpd Jun 30, 2024
507149b
Merge remote-tracking branch 'origin/preconfirmations' into preconfir…
Brechtpd Jun 30, 2024
4bbe16e
fix check
Brechtpd Jun 30, 2024
c29759f
nevermind disable check again to keep tests running
Brechtpd Jun 30, 2024
a68a163
enable check (I can't read)
Brechtpd Jun 30, 2024
d9fbe44
set proving window to 0 so anybody can prove blocks directly (with TKO)
Brechtpd Jul 1, 2024
0986e22
deploy and register sequencer registry
cyberhorsey Jul 2, 2024
3628ae7
forge fmt & update contract layout table
cyberhorsey Jul 2, 2024
ed709d7
.
cyberhorsey Jul 2, 2024
999e5d4
.
cyberhorsey Jul 2, 2024
0a89fa0
forge fmt & update contract layout table
cyberhorsey Jul 2, 2024
6a0f394
rm unused stuff
cyberhorsey Jul 3, 2024
f4e602a
forge fmt & update contract layout table
cyberhorsey Jul 3, 2024
63ba193
rm bridge copy
cyberhorsey Jul 3, 2024
2052946
Merge branch 'preconfirmations' of github.com:taikoxyz/taiko-mono int…
cyberhorsey Jul 3, 2024
967f7ee
forge fmt & update contract layout table
cyberhorsey Jul 3, 2024
5962ba9
calldata check fix
cyberhorsey Jul 5, 2024
157cd13
feat(protocol): allow contracts to propose (#17744)
cyberhorsey Jul 5, 2024
7451a5a
feat(protocol): propose multiple blocks in one call (#17787)
cyberhorsey Jul 13, 2024
c00bfb5
conversion fix
cyberhorsey Jul 13, 2024
8439b00
lint
cyberhorsey Jul 13, 2024
d1ecef2
forge fmt & update contract layout table
cyberhorsey Jul 13, 2024
4699f96
.
cyberhorsey Jul 13, 2024
14f5b94
forge fmt & update contract layout table
cyberhorsey Jul 13, 2024
0b2a987
feat(taiko-client): updates for protocol preconfirmation changes (#17…
davidtaikocha Jul 16, 2024
c4fe319
.
cyberhorsey Jul 16, 2024
73048c2
proposeBlocks as well as proposeBlock
cyberhorsey Jul 16, 2024
4205b96
lint
cyberhorsey Jul 16, 2024
c0f3b38
rm prove/verify block for code size temporarily, not being used
cyberhorsey Jul 16, 2024
0e03c3c
forge fmt & update contract layout table
cyberhorsey Jul 16, 2024
b38bd37
update taikoevents
cyberhorsey Jul 16, 2024
1b6fd86
Merge branch 'preconfirmations' of github.com:taikoxyz/taiko-mono int…
cyberhorsey Jul 16, 2024
a383b19
add offset/len
cyberhorsey Jul 17, 2024
1d1c41f
.
cyberhorsey Jul 17, 2024
284ef1a
feat(taiko-client): preconfirmation indexing (#17866)
cyberhorsey Aug 12, 2024
6579417
proposeblocks api fix
cyberhorsey Aug 14, 2024
915f888
log
cyberhorsey Aug 14, 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
Prev Previous commit
log
  • Loading branch information
cyberhorsey committed Aug 14, 2024
commit 915f88852aea88e828a94181b07148dd9c753f28
9 changes: 9 additions & 0 deletions packages/taiko-client/preconfapi/server/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/rlp"
"github.com/labstack/echo/v4"
"github.com/labstack/gommon/log"

"github.com/taikoxyz/taiko-mono/packages/taiko-client/preconfapi/builder"
"github.com/taikoxyz/taiko-mono/packages/taiko-client/preconfapi/model"
Expand Down Expand Up @@ -57,6 +58,8 @@ type buildBlockResponse struct {
// @Success 200 {object} buildBlockResponse
// @Router /block/build [post]
func (s *PreconfAPIServer) BuildBlock(c echo.Context) error {
log.Info("buildBlock req")

req := &buildBlockRequest{}
if err := c.Bind(req); err != nil {
return c.JSON(http.StatusUnprocessableEntity, err)
Expand Down Expand Up @@ -90,6 +93,8 @@ func (s *PreconfAPIServer) BuildBlock(c echo.Context) error {

hexEncodedTx := hex.EncodeToString(rlpEncodedTx.Bytes())

log.Info("buildBlock res", "tx", hexEncodedTx)

return c.JSON(http.StatusOK, buildBlockResponse{RLPEncodedTx: hexEncodedTx})
}

Expand All @@ -103,6 +108,8 @@ func (s *PreconfAPIServer) BuildBlock(c echo.Context) error {
// @Success 200 {object} buildBlockResponse
// @Router /blocks/build [post]
func (s *PreconfAPIServer) BuildBlocks(c echo.Context) error {
log.Info("buildBlocks req")

req := &buildBlocksRequest{}
if err := c.Bind(req); err != nil {
return c.JSON(http.StatusUnprocessableEntity, err)
Expand Down Expand Up @@ -130,6 +137,8 @@ func (s *PreconfAPIServer) BuildBlocks(c echo.Context) error {

hexEncodedTx := hex.EncodeToString(rlpEncodedTx.Bytes())

log.Info("buildBlocks res", "tx", hexEncodedTx)

return c.JSON(http.StatusOK, buildBlockResponse{RLPEncodedTx: hexEncodedTx})
}

Expand Down
Loading