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

feat(bindings): update AssigmentHook signing based on protocol updates #519

Merged
merged 1 commit into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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