Showing 1,971 of 13,422 total issues
SynapseBridgeTokenWithdrawAndRemove
has 21 methods (exceeds 20 allowed). Consider refactoring. Open
Open
func (s SynapseBridgeTokenWithdrawAndRemove) GetToken() common.Address {
return s.Token
}
SynapseBridgeTokenWithdrawAndRemove
has 21 methods (exceeds 20 allowed). Consider refactoring. Open
Open
func (s SynapseBridgeTokenWithdrawAndRemove) GetToken() common.Address {
return s.Token
}
SynapseBridgeTokenDeposit
has 21 methods (exceeds 20 allowed). Consider refactoring. Open
Open
func (s SynapseBridgeTokenDeposit) GetRaw() ethTypes.Log {
return s.Raw
}
SynapseBridgeTokenWithdraw
has 21 methods (exceeds 20 allowed). Consider refactoring. Open
Open
func (s SynapseBridgeTokenWithdraw) GetRaw() ethTypes.Log {
return s.Raw
}
SynapseBridgeTokenRedeemAndRemove
has 21 methods (exceeds 20 allowed). Consider refactoring. Open
Open
func (s SynapseBridgeTokenRedeemAndRemove) GetRaw() ethTypes.Log {
return s.Raw
}
SynapseBridgeTokenWithdraw
has 21 methods (exceeds 20 allowed). Consider refactoring. Open
Open
func (s SynapseBridgeTokenWithdraw) GetRaw() ethTypes.Log {
return s.Raw
}
SynapseBridgeTokenRedeemV2
has 21 methods (exceeds 20 allowed). Consider refactoring. Open
Open
func (s SynapseBridgeTokenRedeemV2) GetRaw() ethTypes.Log {
return s.Raw
}
SynapseBridgeTokenRedeemAndRemove
has 21 methods (exceeds 20 allowed). Consider refactoring. Open
Open
func (s SynapseBridgeTokenRedeemAndRemove) GetRaw() ethTypes.Log {
return s.Raw
}
SynapseBridgeTokenDepositAndSwap
has 21 methods (exceeds 20 allowed). Consider refactoring. Open
Open
func (s SynapseBridgeTokenDepositAndSwap) GetRaw() ethTypes.Log {
return s.Raw
}
Client
has 21 methods (exceeds 20 allowed). Consider refactoring. Open
Open
type Client struct {
Client *client.Client
}
Function HeroSection
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function HeroSection() {
const t = useTranslations('Landing.HeroSection')
return (
<SectionContainer dataTestId="landing-hero-section">
Function generateAllBridgeEventsQueryFromDestination
has 17 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func generateAllBridgeEventsQueryFromDestination(chainIDTo []*int, chainIDFrom []*int, addressFrom *string, addressTo *string, maxAmount *int, minAmount *int, maxAmountUsd *int, minAmountUsd *int, startTime *int, endTime *int, tokenAddressFrom []*string, tokenAddressTo []*string, kappa *string, txHash *string, onlyCctp *bool, page int, in bool) string {
Function generateAllBridgeEventsQueryMv
has 17 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func generateAllBridgeEventsQueryMv(chainIDFrom []*int, chainIDTo []*int, addressFrom *string, addressTo *string, maxAmount *int, minAmount *int, maxAmountUsd *int, minAmountUsd *int, startTime *int, endTime *int, tokenAddressFrom []*string, tokenAddressTo []*string, txHash *string, kappa *string, pending *bool, onlyCctp *bool, page int) string {
Function generateAllBridgeEventsQueryFromOrigin
has 17 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func generateAllBridgeEventsQueryFromOrigin(chainIDFrom []*int, chainIDTo []*int, addressFrom *string, addressTo *string, maxAmount *int, minAmount *int, maxAmountUsd *int, minAmountUsd *int, startTime *int, endTime *int, tokenAddressFrom []*string, tokenAddressTo []*string, txHash *string, pending *bool, onlyCctp *bool, page int, in bool) string {
Method Guard.handleReceiptAccepted
has 78 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (g Guard) handleReceiptAccepted(ctx context.Context, log ethTypes.Log) error {
fraudReceipt, err := g.inboxParser.ParseReceiptAccepted(log)
if err != nil {
return fmt.Errorf("could not parse receipt accepted: %w", err)
}
Method inventoryManagerImpl.ApproveAllTokens
has 78 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (i *inventoryManagerImpl) ApproveAllTokens(ctx context.Context) (err error) {
ctx, span := i.handler.Tracer().Start(ctx, "approveAllTokens")
defer func() {
metrics.EndSpanWithErr(span, err)
}()
Method APISuite.TestAddressRanking
has 78 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (g APISuite) TestAddressRanking() {
var chainID uint32
chainIDs := []uint32{g.chainIDs[0], g.chainIDs[1], g.chainIDs[2]}
destinationChainIDA := g.chainIDs[3]
destinationChainIDB := g.chainIDs[4]
Function eventToBridgeEvent
has 78 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func eventToBridgeEvent(event bridgeTypes.EventLog, chainID uint32) model.BridgeEvent {
var recipient sql.NullString
if event.GetRecipient() != nil {
recipient.Valid = true
Function formatAmount
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const formatAmount = (
amount: string,
options?: FormatOptions
): string => {
if (amount === '') {
File getToChainIds.ts
has 255 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import _ from 'lodash'
import { EXISTING_BRIDGE_ROUTES } from '@/constants/existingBridgeRoutes'
import { RouteQueryFields } from './generateRoutePossibilities'
import { getTokenAndChainId } from './getTokenAndChainId'