Showing 2,080 of 2,080 total issues
Function getFiltered
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function getFiltered (isOwn: boolean, stakingOverview: DeriveStakingOverview | undefined, favorites: string[], next?: string[], ownStashIds?: string[]): Filtered {
Function setAdditionalFieldData
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function setAdditionalFieldData (api: ApiPromise, info: IdentityInfo, key: string, setActive: null | ((isActive: boolean) => void), setVal: (val: string) => void): Data {
Function sortAccounts
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
export function sortAccounts (accountsList: SortedAccount[], accountsMap: Record<string, SortedAccount>, balances: Record<string, AccountBalance>, by: SortCategory, fromMax: boolean): SortedAccount[] {
Function getMapMembers
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function getMapMembers (members: DeriveSocietyMember[], skeptics: string[], voters: string[], { defender, founder, hasDefender, head }: DeriveSociety, warnStrikes: BN): [MapMember[], BN] {
Function canary
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function canary (ctx: CanvasRenderingContext2D, w: number, h: number, s: number, f: (ctx: CanvasRenderingContext2D, path: Path2D) => void): void {
Function extractRewards
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function extractRewards (labels: string[], erasRewards: DeriveEraRewards[], ownSlashes: DeriveOwnSlashes[], allPoints: DeriveStakerPoints[], divisor: BN): LineData {
Function isFundUpdated
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function isFundUpdated (bestNumber: BlockNumber, minContribution: BN, { info: { cap, end, raised }, paraId }: Campaign, leased: ParaId[], allPrev: Campaigns): boolean {
Function getChartResult
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function getChartResult (totalEligible: BN, isConvictionVote: boolean, info: PalletReferendaReferendumInfoConvictionVotingTally | PalletReferendaReferendumInfoRankedCollectiveTally, track: PalletReferendaTrackInfo, trackGraph: CurveGraph): ChartResultExt[] | null {
Function getTrackInfo
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
export function getTrackInfo (api: ApiPromise, specName: string, palletReferenda: string, tracks: TrackDescription[], trackId?: number): TrackInfoExt | undefined {
Function extractRewards
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function extractRewards (labels: string[], erasRewards: DeriveEraRewards[], ownSlashes: DeriveOwnSlashes[], allPoints: DeriveStakerPoints[], divisor: BN): LineData {
Function createResult
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function createResult (bestNumber: BlockNumber, minContribution: BN, funds: Campaign[], leased: ParaId[], prev: Campaigns): Campaigns {
Function getFiltered
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function getFiltered (isOwn: boolean, stakingOverview: DeriveStakingOverview | undefined, favorites: string[], next?: string[], ownStashIds?: string[]): Filtered {
Function applyFilter
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function applyFilter (validators: ValidatorInfo[], medianComm: number, allIdentity: Record<string, DeriveHasIdentity>, { daysPayout, isBabe, maxPaid, withElected, withGroup, withIdentity, withPayout, withoutComm, withoutOver }: Flags, nominatedBy?: NominatedByMap): ValidatorInfo[] {
Function mergeCurrent
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function mergeCurrent (ranges: [number, number][], auctionInfo: AuctionInfo, prev: Winning[] | undefined, optCurrent: Option<WinningData>, blockOffset: BN): Winning[] | undefined {
Function extractParams
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
async function extractParams (api: ApiPromise, address: string, options: Partial<SignerOptions>, getLedger: () => LedgerGeneric | Ledger, setQrState: (state: QrState) => void): Promise<['qr' | 'signing', string, Partial<SignerOptions>, boolean]> {
Function getStatus
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function getStatus (api: ApiPromise, bestNumber: BlockNumber, votes: Votes, numMembers: number, section: CollectiveType): State {
Function checkVisible
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function checkVisible ({ api, isApiConnected, isApiReady, isDevelopment: isApiDevelopment }: ApiProps, allowTeleport: boolean, hasAccounts: boolean, hasSudo: boolean, { isDevelopment, isHidden, needsAccounts, needsApi, needsApiCheck, needsApiInstances, needsSudo, needsTeleport }: Route['display']): boolean {
Function fitsInView
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function fitsInView (positionY: VerticalPosition, trigger: ElementPosition, popupWindowHeight: number, windowSize: WindowSize, scrollY: number): boolean {
Function checkVisibility
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
export function checkVisibility (api: ApiPromise, address: string, accountInfo: DeriveAccountInfo, filterName = '', onlyNamed = false): boolean {
Function createHdr
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function createHdr (bn: string, hash: string, parent: string, author: string | null, isEmpty = false): LinkHeader {