synapsecns/sanguine

View on GitHub

Showing 1,971 of 13,422 total issues

Method IInbox.Initialize has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

func (_m *IInbox) Initialize(opts *bind.TransactOpts, agentManager_ common.Address, origin_ common.Address, destination_ common.Address, summit_ common.Address) (*types.Transaction, error) {
Severity: Minor
Found in agents/contracts/inbox/mocks/i_inbox.go - About 35 mins to fix

    Method IInbox.SubmitStateReportWithSnapshot has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    func (_m *IInbox) SubmitStateReportWithSnapshot(opts *bind.TransactOpts, stateIndex uint8, srSignature []byte, snapPayload []byte, snapSignature []byte) (*types.Transaction, error) {
    Severity: Minor
    Found in agents/contracts/inbox/mocks/i_inbox.go - About 35 mins to fix

      Function InitGuardDB has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      func InitGuardDB(parentCtx context.Context, database string, path string, tablePrefix string, handler metrics.Handler) (_ db.GuardDB, err error) {
      Severity: Minor
      Found in agents/agents/guard/cmd/commands.go - About 35 mins to fix

        Method Guard.submitStateReport has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        func (g Guard) submitStateReport(ctx context.Context, chainID uint32, state types.State, stateIndex int, data types.StateValidationData) (err error) {
        Severity: Minor
        Found in agents/agents/guard/calls.go - About 35 mins to fix

          Method Store.StoreAgentTree has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              ctx context.Context,
              agentRoot [32]byte,
              agentAddress common.Address,
              blockNumber uint64,
              proof [][32]byte,
          Severity: Minor
          Found in agents/agents/guard/db/sql/base/agent_tree.go - About 35 mins to fix

            Method lightInboxContract.SubmitAttestation has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                transactor *bind.TransactOpts,
                attPayload []byte,
                signature signer.Signature,
                agentRoot [32]byte,
                snapGas []*big.Int,
            Severity: Minor
            Found in agents/domains/evm/lightinbox.go - About 35 mins to fix

              Function AgentsTypesStateToState has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              func AgentsTypesStateToState(state agentsTypes.State, snapshotRoot [32]byte, proof [][]byte, stateIndex uint32, blockNumber uint64) (State, error) {
              Severity: Minor
              Found in agents/agents/executor/db/sql/base/state.go - About 35 mins to fix

                Method Store.StoreStates has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                func (s Store) StoreStates(ctx context.Context, states []agentsTypes.State, snapshotRoot [32]byte, proofs [][][]byte, blockNumber uint64) error {
                Severity: Minor
                Found in agents/agents/executor/db/sql/base/state.go - About 35 mins to fix

                  Method Store.StoreMessage has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  func (s Store) StoreMessage(ctx context.Context, message agentsTypes.Message, blockNumber uint64, minimumTimeSet bool, minimumTime uint64) error {
                  Severity: Minor
                  Found in agents/agents/executor/db/sql/base/message.go - About 35 mins to fix

                    Method IInbox.VerifyStateWithAttestation has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    func (_m *IInbox) VerifyStateWithAttestation(opts *bind.TransactOpts, stateIndex uint8, snapPayload []byte, attPayload []byte, attSignature []byte) (*types.Transaction, error) {
                    Severity: Minor
                    Found in agents/contracts/inbox/mocks/i_inbox.go - About 35 mins to fix

                      Function InitExecutorDB has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                      func InitExecutorDB(parentCtx context.Context, database string, path string, tablePrefix string, handler metrics.Handler) (_ db.ExecutorDB, err error) {
                      Severity: Minor
                      Found in agents/agents/executor/cmd/commands.go - About 35 mins to fix

                        Method lightInboxContract.SubmitStateReportWithSnapshot has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                        func (a lightInboxContract) SubmitStateReportWithSnapshot(transactor *bind.TransactOpts, stateIndex uint8, signature signer.Signature, snapPayload []byte, snapSignature []byte) (tx *ethTypes.Transaction, err error) {
                        Severity: Minor
                        Found in agents/domains/evm/lightinbox.go - About 35 mins to fix

                          Method lightInboxContract.VerifyStateWithAttestation has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                          func (a lightInboxContract) VerifyStateWithAttestation(transactor *bind.TransactOpts, stateIndex uint8, snapPayload []byte, attPayload []byte, attSignature []byte) (tx *ethTypes.Transaction, err error) {
                          Severity: Minor
                          Found in agents/domains/evm/lightinbox.go - About 35 mins to fix

                            Method ILightInbox.SubmitAttestation has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                            func (_m *ILightInbox) SubmitAttestation(opts *bind.TransactOpts, attPayload []byte, attSignature []byte, agentRoot_ [32]byte, snapGas_ []*big.Int) (*types.Transaction, error) {
                            Severity: Minor
                            Found in agents/contracts/lightinbox/mocks/i_light_inbox.go - About 35 mins to fix

                              Method IInbox.PassReceipt has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                              func (_m *IInbox) PassReceipt(opts *bind.TransactOpts, attNotaryIndex uint32, attNonce uint32, paddedTips *big.Int, rcptPayload []byte) (*types.Transaction, error) {
                              Severity: Minor
                              Found in agents/contracts/inbox/mocks/i_inbox.go - About 35 mins to fix

                                Function InitNotaryDB has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                func InitNotaryDB(parentCtx context.Context, database string, path string, tablePrefix string, handler metrics.Handler) (_ db.NotaryDB, err error) {
                                Severity: Minor
                                Found in agents/agents/notary/cmd/commands.go - About 35 mins to fix

                                  Function NewNotary has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                  func NewNotary(ctx context.Context, cfg config.AgentConfig, omniRPCClient omnirpcClient.RPCClient, txDB db.NotaryDB, handler metrics.Handler) (_ Notary, err error) {
                                  Severity: Minor
                                  Found in agents/agents/notary/notary.go - About 35 mins to fix

                                    Method ILightManager.RemoteWithdrawTips has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                    func (_m *ILightManager) RemoteWithdrawTips(opts *bind.TransactOpts, msgOrigin uint32, proofMaturity *big.Int, recipient common.Address, amount *big.Int) (*types.Transaction, error) {
                                    Severity: Minor
                                    Found in agents/contracts/lightmanager/mocks/i_light_manager.go - About 35 mins to fix

                                      Function NewAttestation has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                      func NewAttestation(snapshotRoot [32]byte, dataHash [32]byte, nonce uint32, blockNumber *big.Int, timestamp *big.Int) Attestation {
                                      Severity: Minor
                                      Found in agents/types/attestation.go - About 35 mins to fix

                                        Function NewRateLimiter has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                            cfg relconfig.Config,
                                            l LatestBlockFetcher,
                                            q quoter.Quoter,
                                            metricHandler metrics.Handler,
                                            tokens map[string]relconfig.TokenConfig,
                                        Severity: Minor
                                        Found in services/rfq/relayer/limiter/limiter.go - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language