Showing 1,971 of 13,422 total issues
Method synapseCCTPHandler.FetchAndProcessSentEvent
has 81 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (s *synapseCCTPHandler) FetchAndProcessSentEvent(parentCtx context.Context, txhash common.Hash, originChain uint32) (msg *relayTypes.Message, err error) {
ctx, span := s.handler.Tracer().Start(parentCtx, "FetchAndProcessSentEvent", trace.WithAttributes(
attribute.String(metrics.TxHash, txhash.String()),
attribute.Int(metrics.ChainID, int(originChain)),
))
Method Indexer.Index
has 81 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (x *Indexer) Index(parentCtx context.Context, startHeight uint64, endHeight uint64) (err error) {
ctx, span := x.handler.Tracer().Start(parentCtx, "contract.Backfill", trace.WithAttributes(
attribute.Int("chain", int(x.indexerConfig.ChainID)),
attribute.String("address", x.addressesToString(x.indexerConfig.Addresses)),
attribute.Int("start", int(startHeight)),
Function extraReducers
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
extraReducers: (builder) => {
builder
.addCase(fetchSynPrices.pending, (state) => {
state.isLoadingSynPrices = true
})
File SynapseLogoSvg.tsx
has 259 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
export const SynapseLogoSvg = ({ className = '' }) => {
return (
<svg
className={`w-8 ${className}`}
fillRule="nonzero"
Function ExplorerSection
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function ExplorerSection() {
const totalBridgeVolume = getTotalBridgeVolume()
const totalTxCount = getTotalTxCount()
const totalValueLocked = getTotalValueLocked()
Function PoolPage
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const PoolPage = () => {
const dispatch = useAppDispatch()
const router = useRouter()
const { poolId } = router.query
const { address } = useAccount()
Function SearchBar
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const SearchBar = () => {
const dispatch = useAppDispatch()
const { onSearchInput, clearSearchInput } = usePortfolioActionHandlers()
const { activeTab, searchInput, searchedBalances }: PortfolioState =
usePortfolioState()
File index.ts
has 257 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import _ from 'lodash'
import { Token } from '../../types/index'
import * as CHAINS from '../chains/master'
import * as all from './bridgeable'
File Grid.tsx
has 257 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
@NOTE: super repetitive code here is actually necessary...
*/
interface StyleLookUpInterface {
Function standardizeResponse
has 24 return statements (exceeds 4 allowed). Open
Open
func standardizeResponse(ctx context.Context, req *rpc.Request, rpcMessage JSONRPCMessage) (out []byte, err error) {
// TODO: use a sync.pool for acquiring/releasing these structs
method := req.Method
OUTER:
SynapseBridgeTokenRedeem
has 21 methods (exceeds 20 allowed). Consider refactoring. Open
Open
func (s SynapseBridgeTokenRedeem) GetRaw() ethTypes.Log {
return s.Raw
}
SynapseBridgeTokenDeposit
has 21 methods (exceeds 20 allowed). Consider refactoring. Open
Open
func (s SynapseBridgeTokenDeposit) GetRaw() ethTypes.Log {
return s.Raw
}
SynapseBridgeTokenMintAndSwap
has 21 methods (exceeds 20 allowed). Consider refactoring. Open
Open
func (s SynapseBridgeTokenMintAndSwap) GetToken() common.Address {
return s.Token
}
SynapseBridgeTokenMintAndSwap
has 21 methods (exceeds 20 allowed). Consider refactoring. Open
Open
func (s SynapseBridgeTokenMintAndSwap) GetToken() common.Address {
return s.Token
}
SynapseBridgeTokenMint
has 21 methods (exceeds 20 allowed). Consider refactoring. Open
Open
func (s SynapseBridgeTokenMint) GetRaw() ethTypes.Log {
return s.Raw
}
SynapseBridgeTokenMint
has 21 methods (exceeds 20 allowed). Consider refactoring. Open
Open
func (s SynapseBridgeTokenMint) 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
}
SynapseBridgeTokenRedeemAndSwap
has 21 methods (exceeds 20 allowed). Consider refactoring. Open
Open
func (s SynapseBridgeTokenRedeemAndSwap) GetRaw() ethTypes.Log {
return s.Raw
}
SynapseBridgeTokenRedeemAndSwap
has 21 methods (exceeds 20 allowed). Consider refactoring. Open
Open
func (s SynapseBridgeTokenRedeemAndSwap) GetRaw() ethTypes.Log {
return s.Raw
}
SynapseBridgeTokenRedeem
has 21 methods (exceeds 20 allowed). Consider refactoring. Open
Open
func (s SynapseBridgeTokenRedeem) GetRaw() ethTypes.Log {
return s.Raw
}