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 assigmentHook signing based on protocol updates
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha committed Jan 19, 2024
1 parent feae9bf commit 74e8b0a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
6 changes: 6 additions & 0 deletions bindings/encoding/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,10 @@ var (
Name: "metaHash",
Type: "bytes32",
},
{
Name: "parentMetaHash",
Type: "bytes32",
},
{
Name: "tierFees",
Type: "tuple[]",
Expand Down Expand Up @@ -246,6 +250,7 @@ var (
{Name: "taikoAddress", Type: addressType},
{Name: "assignmentHookAddress", Type: addressType},
{Name: "metaHash", Type: bytes32Type},
{Name: "parentMetaHash", Type: bytes32Type},
{Name: "blobHash", Type: bytes32Type},
{Name: "assignment.feeToken", Type: addressType},
{Name: "assignment.expiry", Type: uint64Type},
Expand Down Expand Up @@ -335,6 +340,7 @@ func EncodeProverAssignmentPayload(
taikoAddress,
assignmentHookAddress,
common.Hash{},
common.Hash{},
txListHash,
feeToken,
expiry,
Expand Down
15 changes: 8 additions & 7 deletions bindings/encoding/struct.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,14 @@ type TierFee struct {

// ProverAssignment should be same with TaikoData.ProverAssignment.
type ProverAssignment struct {
FeeToken common.Address
Expiry uint64
MaxBlockId uint64 // nolint: revive,stylecheck
MaxProposedIn uint64
MetaHash [32]byte
TierFees []TierFee
Signature []byte
FeeToken common.Address
Expiry uint64
MaxBlockId uint64 // nolint: revive,stylecheck
MaxProposedIn uint64
MetaHash [32]byte
ParentMetaHash [32]byte
TierFees []TierFee
Signature []byte
}

// AssignmentHookInput should be same as AssignmentHook.Input
Expand Down

0 comments on commit 74e8b0a

Please sign in to comment.