Skip to content

Commit

Permalink
Merge branch 'master' into fix/fe-release-remerge-master
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiTimesChi committed Dec 13, 2023
2 parents 7ac19d7 + a17159d commit 5e35984
Show file tree
Hide file tree
Showing 98 changed files with 64,499 additions and 26,866 deletions.
2 changes: 1 addition & 1 deletion agents/agents/executor/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ func (e Executor) Execute(parentCtx context.Context, message types.Message) (_ b
message,
originProof,
snapshotProofB32,
big.NewInt(int64(*stateIndex)),
uint8(*stateIndex),
uint64(1000000),
)
if err != nil {
Expand Down
12 changes: 6 additions & 6 deletions agents/agents/guard/calls.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (g Guard) verifyState(ctx context.Context, state types.State, stateIndex in
submitFunc = func(transactor *bind.TransactOpts) (tx *ethTypes.Transaction, err error) {
tx, err = g.domains[state.Origin()].LightInbox().VerifyStateWithAttestation(
transactor,
int64(stateIndex),
uint8(stateIndex),
data.SnapshotPayload(),
data.AttestationPayload(),
data.AttestationSignature(),
Expand All @@ -58,7 +58,7 @@ func (g Guard) verifyState(ctx context.Context, state types.State, stateIndex in
submitFunc = func(transactor *bind.TransactOpts) (tx *ethTypes.Transaction, err error) {
tx, err = g.domains[state.Origin()].LightInbox().VerifyStateWithSnapshot(
transactor,
int64(stateIndex),
uint8(stateIndex),
data.SnapshotPayload(),
data.SnapshotSignature(),
)
Expand All @@ -85,9 +85,9 @@ func (g Guard) verifyState(ctx context.Context, state types.State, stateIndex in

type stateReportContract interface {
// SubmitStateReportWithSnapshot reports to the inbox that a state within a snapshot is invalid.
SubmitStateReportWithSnapshot(transactor *bind.TransactOpts, stateIndex int64, signature signer.Signature, snapPayload []byte, snapSignature []byte) (tx *ethTypes.Transaction, err error)
SubmitStateReportWithSnapshot(transactor *bind.TransactOpts, stateIndex uint8, signature signer.Signature, snapPayload []byte, snapSignature []byte) (tx *ethTypes.Transaction, err error)
// SubmitStateReportWithAttestation submits a state report corresponding to an attesation for an invalid state.
SubmitStateReportWithAttestation(transactor *bind.TransactOpts, stateIndex int64, signature signer.Signature, snapPayload, attPayload, attSignature []byte) (tx *ethTypes.Transaction, err error)
SubmitStateReportWithAttestation(transactor *bind.TransactOpts, stateIndex uint8, signature signer.Signature, snapPayload, attPayload, attSignature []byte) (tx *ethTypes.Transaction, err error)
}

// submitStateReport submits a state report to the given chain, provided a snapshot or attestation.
Expand All @@ -108,7 +108,7 @@ func (g Guard) submitStateReport(ctx context.Context, chainID uint32, state type
submitFunc = func(transactor *bind.TransactOpts) (tx *ethTypes.Transaction, err error) {
tx, err = contract.SubmitStateReportWithAttestation(
transactor,
int64(stateIndex),
uint8(stateIndex),
srSignature,
data.SnapshotPayload(),
data.AttestationPayload(),
Expand All @@ -120,7 +120,7 @@ func (g Guard) submitStateReport(ctx context.Context, chainID uint32, state type
submitFunc = func(transactor *bind.TransactOpts) (tx *ethTypes.Transaction, err error) {
tx, err = contract.SubmitStateReportWithSnapshot(
transactor,
int64(stateIndex),
uint8(stateIndex),
srSignature,
data.SnapshotPayload(),
data.SnapshotSignature(),
Expand Down
12,387 changes: 7,724 additions & 4,663 deletions agents/contracts/bondingmanager/bondingmanager.abigen.go

Large diffs are not rendered by default.

Large diffs are not rendered by default.

48 changes: 48 additions & 0 deletions agents/contracts/bondingmanager/filterer_generated.go

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

4 changes: 4 additions & 0 deletions agents/contracts/bondingmanager/icaller_generated.go

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

10 changes: 7 additions & 3 deletions agents/contracts/bondingmanager/itransactor_generated.go

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

Loading

0 comments on commit 5e35984

Please sign in to comment.