Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
7 changes: 3 additions & 4 deletions aggsender/flows/factory_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package flows

import (
"context"
"errors"
"testing"
"time"
Expand Down Expand Up @@ -135,7 +134,7 @@ func TestNewFlow(t *testing.T) {
expectedError: "unsupported Aggsender mode: unsupported-mode",
},
{
name: "error optimistic mode creating TrustedSequencerContract AggchainProofMode",
name: "error optimistic mode fetching aggchain signers in AggchainProofMode",
cfg: config.Config{
Mode: string(types.AggchainProofMode),
AggsenderPrivateKey: keyConfig,
Expand All @@ -148,14 +147,14 @@ func TestNewFlow(t *testing.T) {
RequireKeyMatchTrustedSequencer: true,
},
},
expectedError: "error aggchainFEPContract",
expectedError: "failed to fetch the aggchain signers from the AggchainFEP contract",
},
}

for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
t.Parallel()
ctx := context.Background()
ctx := t.Context()

mockStorage := mocks.NewAggSenderStorage(t)
mockL1Client := typesmocks.NewBaseEthereumClienter(t)
Expand Down
2 changes: 1 addition & 1 deletion aggsender/flows/flow_aggchain_prover.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"errors"
"fmt"

"github.com/0xPolygon/cdk-contracts-tooling/contracts/pp/l2-sovereign-chain/aggchainfep"
"github.com/0xPolygon/cdk-contracts-tooling/contracts/fep/aggchain-ecdsa-multisig/aggchainfep"
agglayertypes "github.com/agglayer/aggkit/agglayer/types"
"github.com/agglayer/aggkit/aggsender/db"
"github.com/agglayer/aggkit/aggsender/query"
Expand Down
2 changes: 1 addition & 1 deletion aggsender/flows/flow_aggchain_prover_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"testing"
"time"

"github.com/0xPolygon/cdk-contracts-tooling/contracts/pp/l2-sovereign-chain/aggchainfep"
"github.com/0xPolygon/cdk-contracts-tooling/contracts/fep/aggchain-ecdsa-multisig/aggchainfep"
agglayertypes "github.com/agglayer/aggkit/agglayer/types"
"github.com/agglayer/aggkit/aggsender/mocks"
"github.com/agglayer/aggkit/aggsender/query"
Expand Down
232 changes: 232 additions & 0 deletions aggsender/mocks/mock_aggchain_fep_caller.go

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

1 change: 1 addition & 0 deletions aggsender/optimistic/interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ type OpNodeClienter interface {

// FEPContractQuerier is an interface that defines the methods for interacting with the FEP contract.
type FEPContractQuerier interface {
GetAggchainSigners(opts *bind.CallOpts) ([]common.Address, error)
RollupConfigHash(opts *bind.CallOpts) ([32]byte, error)
RangeVkeyCommitment(opts *bind.CallOpts) ([32]byte, error)
OptimisticMode(opts *bind.CallOpts) (bool, error)
Expand Down
60 changes: 60 additions & 0 deletions aggsender/optimistic/mocks/mock_fep_contract_querier.go

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

Loading
Loading