Showing 1,971 of 13,422 total issues
Method Manager.generateQuotes
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (m *Manager) generateQuotes(parentCtx context.Context, chainID int, address common.Address, balance *big.Int, inv map[int]map[common.Address]*big.Int) (quotes []model.PutRelayerQuoteRequest, err error) {
Method inboxContract.SubmitStateReportWithSnapshot
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (a inboxContract) SubmitStateReportWithSnapshot(transactor *bind.TransactOpts, stateIndex uint8, signature signer.Signature, snapPayload []byte, snapSignature []byte) (tx *ethTypes.Transaction, err error) {
Method DeployManager.AddAgentsToLightManagerHarnessContract
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ctx context.Context,
backend backends.SimulatedTestBackend,
agents []common.Address,
agentProofs [][][32]byte,
agentStatuses []bondingmanagerharness.AgentStatus) error {
Method DeployManager.AddAgentsToLightManagerContract
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ctx context.Context,
backend backends.SimulatedTestBackend,
agents []common.Address,
agentProofs [][][32]byte,
agentStatuses []bondingmanager.AgentStatus) error {
Method pingPongClientContract.DoPing
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (a pingPongClientContract) DoPing(ctx context.Context, signer signer.Signer, destination uint32, recipient common.Address, pings uint16) error {
Function NewHeader
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func NewHeader(flag MessageFlag, originDomain uint32, nonce uint32, destinationDomain uint32, optimisticSeconds uint32) Header {
Method Manager.GenerateQuotes
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (m *Manager) GenerateQuotes(ctx context.Context, chainID int, address common.Address, balance *big.Int, inv map[int]map[common.Address]*big.Int) ([]model.PutRelayerQuoteRequest, error) {
Method DeployManager.MintToAddress
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (d *DeployManager) MintToAddress(ctx context.Context, backend backends.SimulatedTestBackend, token contracts.ContractType, mintToAddress common.Address, amount *big.Int) (adjustedAmount *big.Int) {
Method DeployManager.LoadContractsOnChains
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ctx context.Context,
synChainBackend backends.SimulatedTestBackend,
backends []backends.SimulatedTestBackend,
agents []common.Address,
agentDomains []uint32) error {
Function NewChain
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func NewChain(ctx context.Context, cfg relconfig.Config, chainClient client.EVM, chainListener listener.ContractListener, ts submitter.TransactionSubmitter) (*Chain, error) {
Function NewHandler
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func NewHandler(metricsHelper metrics.Handler, db reldb.Service, chains map[uint32]*chain.Chain, cfg relconfig.Config, txSubmitter submitter.TransactionSubmitter) *Handler {
Method DeployManager.LoadHarnessContractsOnChains
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ctx context.Context,
synChainBackend backends.SimulatedTestBackend,
backends []backends.SimulatedTestBackend,
agents []common.Address,
agentDomains []uint32) error {
Function getRebalanceForMethod
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func getRebalanceForMethod(ctx context.Context, cfg relconfig.Config, inv map[int]map[common.Address]*TokenMetadata, method relconfig.RebalanceMethod, tokenName string) (rebalance *RebalanceData, err error) {
Method Store.GetQuotesByOriginAndDestination
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (s *Store) GetQuotesByOriginAndDestination(ctx context.Context, originChainID uint64, originTokenAddr string, destChainID uint64, destTokenAddr string) ([]*db.Quote, error) {
Method Client.GetOriginBridgeTx
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (c *Client) GetOriginBridgeTx(ctx context.Context, chainID int, txnHash string, bridgeType model.BridgeType, httpRequestOptions ...client.HTTPRequestOption) (*GetOriginBridgeTx, error) {
Function generateSingleSpecifierI32ArrSQLMv
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func generateSingleSpecifierI32ArrSQLMv(values []*int, field string, firstFilter *bool, firstInLocale *bool, tablePrefix string) string {
Method queryResolver.Leaderboard
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (r *queryResolver) Leaderboard(ctx context.Context, duration *model.Duration, chainID *int, useMv *bool, page *int) ([]*model.Leaderboard, error) {
Function generateEqualitySpecifierSQL
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func generateEqualitySpecifierSQL(value *int, field string, firstFilter *bool, tablePrefix string, greaterThan bool) string {
Function generateSingleSpecifierStringSQLMv
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func generateSingleSpecifierStringSQLMv(value *string, field string, firstFilter *bool, firstLocale *bool, tablePrefix string) string {
Function generateSingleSpecifierStringArrSQLMv
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func generateSingleSpecifierStringArrSQLMv(values []*string, field string, firstFilter *bool, firstInLocale *bool, tablePrefix string) string {