Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
feat(bindings): update Go contract bindings (#574)
Browse files Browse the repository at this point in the history
  • Loading branch information
mask-pp authored Feb 28, 2024
1 parent 27f79c0 commit ac9788f
Show file tree
Hide file tree
Showing 10 changed files with 1,717 additions and 94 deletions.
2 changes: 1 addition & 1 deletion bindings/.githead
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d54172c5f677ad60c48ef0ababc54a968e6a58c9
8ec31635ba24484a3c3a0bb64b5e1e7027862eb8
324 changes: 311 additions & 13 deletions bindings/gen_address_manager.go

Large diffs are not rendered by default.

231 changes: 218 additions & 13 deletions bindings/gen_assignment_hook.go

Large diffs are not rendered by default.

231 changes: 218 additions & 13 deletions bindings/gen_guardian_prover.go

Large diffs are not rendered by default.

231 changes: 218 additions & 13 deletions bindings/gen_taiko_l1.go

Large diffs are not rendered by default.

231 changes: 218 additions & 13 deletions bindings/gen_taiko_l2.go

Large diffs are not rendered by default.

324 changes: 311 additions & 13 deletions bindings/gen_taiko_timelock_controller.go

Large diffs are not rendered by default.

231 changes: 218 additions & 13 deletions bindings/gen_taiko_token.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion integration_test/l1_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export SECURITY_COUNCIL=0x23618e81E3f5cdF7f54C3d65f7FBc0aBf5B21E8f
export TAIKO_TOKEN_PREMINT_RECIPIENT=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
export TAIKO_TOKEN_NAME="Taiko Token Test"
export TAIKO_TOKEN_SYMBOL="TTKOt"
export OPTIMISTIC_TIER_PROVIDER="true"
export TIER_PROVIDER="devnet"

export SHARED_ADDRESS_MANAGER=0x0000000000000000000000000000000000000000
export PROPOSER=0x0000000000000000000000000000000000000000
Expand Down
4 changes: 3 additions & 1 deletion prover/prover.go
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,9 @@ func (p *Prover) handleNewBlockProposedEvent(ctx context.Context, e *bindings.Ta
"Proposed block's proving window has expired",
"blockID", e.BlockId,
"prover", e.AssignedProver,
"now", now,
"expiresAt", provingWindowExpiresAt,
"minTier", e.Meta.MinTier,
)
if e.AssignedProver == p.proverAddress {
log.Warn(
Expand Down Expand Up @@ -1271,7 +1273,7 @@ func (p *Prover) onProvingWindowExpired(ctx context.Context, e *bindings.TaikoL1
func (p *Prover) getProvingWindow(e *bindings.TaikoL1ClientBlockProposed) (time.Duration, error) {
for _, t := range p.tiers {
if e.Meta.MinTier == t.ID {
return time.Duration(t.ProvingWindow) * time.Second, nil
return time.Duration(t.ProvingWindow) * time.Minute, nil
}
}

Expand Down

0 comments on commit ac9788f

Please sign in to comment.