Skip to content

Commit

Permalink
feat: update bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha committed Jan 24, 2025
1 parent cafc7d7 commit c1e06a1
Show file tree
Hide file tree
Showing 8 changed files with 115 additions and 157 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import "src/layer1/verifiers/Risc0Verifier.sol";
import "src/layer1/verifiers/SP1Verifier.sol";
import "src/layer1/devnet/verifiers/OpVerifier.sol";
import "src/layer1/devnet/verifiers/DevnetVerifier.sol";
import "src/layer1/based/ForkRouter.sol";
import "src/layer1/fork-router/ForkRouter.sol";
import "src/layer1/verifiers/compose/ComposeVerifier.sol";
import "src/layer1/devnet/DevnetInbox.sol";

Expand Down Expand Up @@ -108,7 +108,7 @@ contract UpgradeDevnetPacayaL1 is DeployCapability {
UUPSUpgradeable(proverSet).upgradeTo(address(new ProverSet(rollupResolver)));
// Verifier
TaikoInbox taikoInboxImpl = TaikoInbox(newFork);
uint64 l2ChainId = taikoInboxImpl.getConfig().chainId;
uint64 l2ChainId = taikoInboxImpl.pacayaConfig().chainId;
require(l2ChainId != block.chainid, "same chainid");
address opVerifier = deployProxy({
name: "op_verifier",
Expand Down
2 changes: 1 addition & 1 deletion packages/taiko-client/bindings/pacaya/.githead
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d05832bca526509cc7e8eff5cb8a3341246cb786
cafc7d7b83d40c28dd0363970d549216cc9ed179
95 changes: 32 additions & 63 deletions packages/taiko-client/bindings/pacaya/gen_fork_router.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

164 changes: 77 additions & 87 deletions packages/taiko-client/bindings/pacaya/gen_taiko_inbox.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/taiko-client/pkg/rpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ func (c *Client) initPacayaClients(cfg *ClientConfig) error {

// initForkHeightConfigs initializes the fork heights in protocol.
func (c *Client) initForkHeightConfigs(ctx context.Context) error {
protocolConfigs, err := c.PacayaClients.TaikoInbox.GetConfig(&bind.CallOpts{Context: ctx})
protocolConfigs, err := c.PacayaClients.TaikoInbox.PacayaConfig(&bind.CallOpts{Context: ctx})
// If failed to get protocol configs, we assuming the current chain is still before the Pacaya fork,
// use pre-defined Pacaya fork height.
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion packages/taiko-client/pkg/rpc/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (c *Client) GetProtocolConfigs(opts *bind.CallOpts) (config.ProtocolConfigs
opts.Context, cancel = CtxWithTimeoutOrDefault(opts.Context, defaultTimeout)
defer cancel()

configs, err := c.PacayaClients.TaikoInbox.GetConfig(opts)
configs, err := c.PacayaClients.TaikoInbox.PacayaConfig(opts)
if err != nil {
configs, err := c.OntakeClients.TaikoL1.GetConfig(opts)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion packages/taiko-client/pkg/rpc/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ func GetBatchProofStatus(
}

// Get the transition state from TaikoInbox contract.
if _, err = cli.PacayaClients.TaikoInbox.GetTransition0(
if _, err = cli.PacayaClients.TaikoInbox.GetTransitionByParentHash(
&bind.CallOpts{Context: ctxWithTimeout},
batchID.Uint64(),
parent.Hash(),
Expand Down
1 change: 0 additions & 1 deletion packages/taiko-client/prover/prover_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ func (s *ProverTestSuite) TestOnBlockVerified() {
}

func (s *ProverTestSuite) TestProveOp() {
s.T().Skip("TODO: Fix this test")
m := s.ProposeAndInsertValidBlock(s.proposer, s.d.ChainSyncer().BlobSyncer())
var blockID *big.Int
if m.IsPacaya() {
Expand Down

0 comments on commit c1e06a1

Please sign in to comment.