MCPcopy Create free account

hub / github.com/dfinity/nns-dapp / functions

Functions5,266 in github.com/dfinity/nns-dapp

↓ 1,158 callersMethodisPresent
()
frontend/src/tests/types/page-object.types.ts:24
↓ 881 callersFunctionrender
( cmp: ComponentType<C>, componentOptions?: | { props: ComponentProps<C>; events?: Rec
frontend/src/tests/utils/svelte.test-utils.ts:17
↓ 678 callersMethodclick
()
frontend/src/tests/types/page-object.types.ts:31
↓ 551 callersFunctionrunResolvedPromises
()
frontend/src/tests/utils/timers.test-utils.ts:10
↓ 518 callersMethodbyTestId
(tid: string)
frontend/src/tests/types/page-object.types.ts:15
↓ 459 callersFunctionprincipal
(index: number)
frontend/src/tests/mocks/sns-projects.mock.ts:39
↓ 410 callersMethodgetText
()
frontend/src/tests/types/page-object.types.ts:27
↓ 349 callersMethodunder
(element: PageObjectElement)
frontend/src/tests/page-objects/Hash.page-object.ts:9
↓ 336 callersMethodquerySelector
(selector: string)
frontend/src/tests/types/page-object.types.ts:6
↓ 262 callersFunctionlogWithTimestamp
(...args: Array<unknown>)
frontend/src/lib/utils/dev.utils.ts:10
↓ 224 callersMethodfrom
* Construct Secp256k1PublicKey from an existing PublicKey * @param {PublicKey} key * @returns {Secp256k1PublicKey} Instance of Secp256k1PublicKe
frontend/src/lib/keys/secp256k1.ts:17
↓ 221 callersFunctionresetIdentity
()
frontend/src/tests/mocks/auth.store.mock.ts:45
↓ 219 callersMethodgetPrincipal
()
frontend/src/tests/page-objects/Canisters.page-object.ts:37
↓ 214 callersFunctionsetSnsProjects
( params: { rootCanisterId?: Principal; governanceCanisterId?: Principal; ledgerCanisterId?: Pri
frontend/src/tests/utils/sns.test-utils.ts:20
↓ 195 callersFunctioncreateMockSnsNeuron
({ stake = 1_000_000_000n, id = [1, 5, 3, 9, 9, 3, 2], state, permissions = [], vesting, votingPow
frontend/src/tests/mocks/sns-neurons.mock.ts:42
↓ 160 callersFunctiongetRewardData
(params: TestStakingRewardCalcParams)
frontend/src/tests/lib/utils/staking-rewards.utils.spec.ts:1730
↓ 160 callersFunctionstep
(description: string)
frontend/src/tests/utils/e2e.test-utils.ts:11
↓ 155 callersFunctionroundToDecimals
(value: number, decimals: number)
frontend/src/tests/lib/utils/staking-rewards.utils.spec.ts:1741
↓ 151 callersMethodgetAttribute
(attribute: string)
frontend/src/tests/types/page-object.types.ts:29
↓ 137 callersMethodisDisabled
()
frontend/src/tests/page-objects/Card.page-object.ts:19
↓ 125 callersMethodinput
(value: string, type?: "input" | "change")
frontend/src/tests/types/page-object.types.ts:33
↓ 120 callersFunctiontoastsError
({ labelKey, err, substitutions, renderAsHtml, showDetails = false, }: { labelKey: ToastLabelKey;
frontend/src/lib/stores/toasts.store.ts:60
↓ 113 callersMethodgetButton
(testId?: string)
frontend/src/tests/page-objects/base.page-object.ts:9
↓ 110 callersFunctionadvanceTime
(millis?: number)
frontend/src/tests/utils/timers.test-utils.ts:16
↓ 105 callersFunctionsetNoIdentity
()
frontend/src/tests/mocks/auth.store.mock.ts:44
↓ 103 callersMethodwaitFor
()
frontend/src/tests/types/page-object.types.ts:25
↓ 100 callersFunctioncall
()
frontend/src/tests/lib/utils/utils.spec.ts:349
↓ 96 callersMethodget
(&self, path: &str)
rs/backend/src/assets.rs:151
↓ 94 callersFunctioncreateUserToken
(params: Partial<UserTokenData> = {})
frontend/src/tests/mocks/tokens-page.mock.ts:183
↓ 92 callersFunctionrenderModal
({ component, props, events, }: { component: Component; // eslint-disable-next-line @typescript-esli
frontend/src/tests/mocks/modal.mock.ts:31
↓ 89 callersFunctionsetAccountsForTesting
({ main, subAccounts = [], hardwareWallets = [], certified = false, }: IcpAccountsStoreData & { cert
frontend/src/tests/utils/accounts.test-utils.ts:36
↓ 80 callersFunctioncreateSummary
({ lifecycle = SnsSwapLifecycle.Open, confirmationText = undefined, restrictedCountries = undefined, m
frontend/src/tests/mocks/sns-projects.mock.ts:418
↓ 77 callersFunctionupdate
({ mutation, certified, }: { mutation: Mutation<StoreData>; ce
frontend/src/lib/stores/queued-store.ts:176
↓ 75 callersFunctioncreateMockSnsFullProject
({ summaryParams, rootCanisterId, icpCommitment, metrics, latestRewardEvent, }: { rootCanisterId:
frontend/src/tests/mocks/sns-projects.mock.ts:513
↓ 75 callersMethodgetTitle
()
frontend/src/tests/page-objects/Banner.page-object.ts:25
↓ 74 callersFunctionformatTokenE8s
({ value, detailed = false, roundingMode, extraDetailForSmallAmount = true, }: { value: bigint; de
frontend/src/lib/utils/token.utils.ts:112
↓ 72 callersMethodadd
(mut self, rhs: &Account)
rs/backend/src/accounts_store/histogram.rs:60
↓ 71 callersMethodgetNnsStakeNeuronPo
()
frontend/src/tests/page-objects/NnsStakeNeuronModal.page-object.ts:19
↓ 68 callersMethodreset
()
frontend/src/lib/worker-stores/dictionary.worker-store.ts:33
↓ 66 callersMethodgetTransactionFormPo
()
frontend/src/tests/page-objects/TransactionModal.page-object.ts:9
↓ 65 callersMethodgetHref
()
frontend/src/tests/page-objects/Link.page-object.ts:21
↓ 65 callersFunctionnowInSeconds
()
frontend/src/lib/utils/date.utils.ts:155
↓ 65 callersMethodtypeText
(text: string)
frontend/src/tests/types/page-object.types.ts:35
↓ 64 callersFunctioncreateSnsProposal
({ status, rewardStatus, proposalId, ballots = [], createdAt = 12_313_123n, action = mockSnsPropos
frontend/src/tests/mocks/sns-proposals.mock.ts:126
↓ 62 callersFunctionhashCode
(value: string | bigint | number)
frontend/src/lib/utils/dev.utils.ts:20
↓ 62 callersFunctionsetup_test_store
()
rs/backend/src/accounts_store/tests.rs:1939
↓ 61 callersMethodgetElement
()
frontend/src/tests/page-objects/jest.page-object.ts:21
↓ 59 callersFunctioncreateIcrcTransactionWithId
({ id, from, to, fee, amount, timestamp = new Date(0), memo, }: { id?: bigint; to?: IcrcCand
frontend/src/tests/mocks/icrc-transactions.mock.ts:15
↓ 59 callersFunctiontoNavigationId
(proposalId: bigint)
frontend/src/tests/lib/components/proposal-detail/ProposalNavigation.spec.ts:11
↓ 58 callersMethodgetAmountInputPo
()
frontend/src/tests/page-objects/NnsStakeNeuron.page-object.ts:20
↓ 58 callersMethodgetTooltipText
()
frontend/src/tests/page-objects/Tooltip.page-object.ts:12
↓ 57 callersFunctionlog
The value is actually consumed.
rs/sns_aggregator/src/state.rs:123
↓ 56 callersFunctionset
({ data, certified }: { data: StoreData; certified: boolean })
frontend/src/lib/stores/queued-store.ts:169
↓ 56 callersFunctiontestFormat
({ value, detailed, roundingMode, extraDetailForSmallAmount, }: {
frontend/src/tests/lib/utils/token.utils.spec.ts:151
↓ 55 callersFunctiongetNeuron
(index: number)
frontend/src/tests/lib/utils/staking-rewards.utils.spec.ts:877
↓ 53 callersMethodquerySelectorAll
(selector: string)
frontend/src/tests/types/page-object.types.ts:7
↓ 52 callersFunctioncreateTransactionWithId
({ memo, operation = mockTransactionTransfer.operation, timestamp = defaultTimestamp, id = 1234n, }: {
frontend/src/tests/mocks/icp-transactions.mock.ts:29
↓ 52 callersMethodgetAmount
()
frontend/src/tests/page-objects/AmountInput.page-object.ts:16
↓ 52 callersFunctionsummaryForLifecycle
( lifecycle: SnsSwapLifecycle )
frontend/src/tests/mocks/sns-projects.mock.ts:385
↓ 51 callersMethodallByTestId
(tid: string)
frontend/src/tests/types/page-object.types.ts:16
↓ 51 callersMethodgetNeuronId
()
frontend/src/tests/page-objects/NnsNeuronCard.page-object.ts:29
↓ 51 callersFunctionneuron
(id: number, votingPower: number)
frontend/src/tests/lib/utils/proposals.utils.spec.ts:344
↓ 51 callersFunctionsetIcpPrice
(icpPrice: number)
frontend/src/tests/utils/tickers.test-utils.ts:28
↓ 51 callersMethodwaitForAbsent
(timeout?: number)
frontend/src/tests/types/page-object.types.ts:26
↓ 50 callersMethodgetRows
()
frontend/src/tests/page-objects/TokensTable.page-object.ts:39
↓ 49 callersMethodenterAmount
(amount: number)
frontend/src/tests/page-objects/GetTokens.page-object.ts:16
↓ 48 callersFunctionrenderComponent
({ onNnsStakeTokens = null } = {})
frontend/src/tests/lib/components/staking/ProjectsTable.spec.ts:55
↓ 47 callersFunctiongetSnsNeuronIdAsHexString
({ id: neuronId, }: SnsGovernanceDid.Neuron)
frontend/src/lib/utils/sns-neuron.utils.ts:157
↓ 45 callersMethodsetFlag
(flag: FeatureKey, value: boolean)
frontend/src/lib/stores/feature-flags.store.ts:14
↓ 44 callersFunctiongetAuthenticatedIdentity
()
frontend/src/lib/services/auth.services.ts:85
↓ 43 callersMethodattach_canister
(&mut self, caller: PrincipalId, request: AttachCanisterRequest)
rs/backend/src/accounts_store.rs:547
↓ 43 callersMethodgetNeuronsTableRowPos
()
frontend/src/tests/page-objects/NeuronsTable.page-object.ts:12
↓ 43 callersMethodgetTokensPagePo
()
frontend/src/tests/page-objects/TokensRoute.page-object.ts:26
↓ 42 callersFunctionexpectToastError
(contained: string)
frontend/src/tests/lib/services/neurons.services.spec.ts:82
↓ 41 callersMethodgetErrorMessage
()
frontend/src/tests/page-objects/AmountInput.page-object.ts:24
↓ 41 callersFunctionreplacePlaceholders
( text: string, substitutions: I18nSubstitutions )
frontend/src/lib/utils/i18n.utils.ts:57
↓ 40 callersMethodallUnder
(element: PageObjectElement)
frontend/src/tests/page-objects/Tag.page-object.ts:7
↓ 40 callersMethodgetWalletPageHeadingPo
()
frontend/src/tests/page-objects/SnsWallet.page-object.ts:22
↓ 40 callersFunctionrenderWallet
(props)
frontend/src/tests/lib/pages/NnsWallet.spec.ts:103
↓ 39 callersMethodgetPrincipal
()
frontend/src/lib/api/agent.api.ts:59
↓ 39 callersMethodgetProjectsTableRowPos
()
frontend/src/tests/page-objects/ProjectsTable.page-object.ts:24
↓ 38 callersMethodgetClasses
()
frontend/src/tests/types/page-object.types.ts:30
↓ 38 callersMethodisChecked
()
frontend/src/tests/types/page-object.types.ts:34
↓ 37 callersFunctioncreateNnsDapp
(service: NNSDappService)
frontend/src/tests/lib/canisters/nns-dapp.canister.spec.ts:39
↓ 37 callersFunctionrenderComponent
( { onTrigger, period, customFrom, customTo, source, }: { onTrigge
frontend/src/tests/lib/components/reporting/ReportingTransactionsButton.spec.ts:88
↓ 37 callersFunctionwrapper
({ identity, rootCanisterId, certified, }: { identity: Identity; rootCanisterId: QueryRootCanisterId
frontend/src/lib/api/sns-wrapper.api.ts:154
↓ 36 callersMethodgetProposalCardPos
()
frontend/src/tests/page-objects/NnsProposalList.page-object.ts:40
↓ 35 callersFunctioncreateDescendingComparator
( getter: (rowData: DataType) => Comparable )
frontend/src/lib/utils/sort.utils.ts:28
↓ 35 callersMethodgetCheckboxPo
()
frontend/src/tests/page-objects/NeuronVisibilityRow.page-object.ts:43
↓ 35 callersMethodgetTooltipPo
()
frontend/src/tests/page-objects/Hash.page-object.ts:18
↓ 35 callersFunctionrenderContextCmp
({ Component, summary, swapCommitment, totalTokensSupply, reload, }: { summary?: SnsSummaryWrapper
frontend/src/tests/mocks/sns.mock.ts:41
↓ 34 callersMethodcreate
(options: TVLCanisterOptions)
frontend/src/lib/canisters/tvl/tvl.canister.ts:13
↓ 34 callersMethodgetNeuronNavigationPo
()
frontend/src/tests/page-objects/SnsNeuronPageHeader.page-object.ts:23
↓ 34 callersMethodgetUsdValueBannerPo
()
frontend/src/tests/page-objects/NnsNeurons.page-object.ts:14
↓ 34 callersFunctionrenderPage
({ icpToken = undefined, nonIcpTokens = [], icpTableProject = undefined, nonIcpTableProjects =
frontend/src/tests/lib/pages/Portfolio.spec.ts:26
↓ 32 callersMethodgetTokensTable
()
frontend/src/tests/page-objects/TokensPage.page-object.ts:28
↓ 32 callersFunctionrenderComponent
({ neurons, neuronsStore, }: { neurons?: TableNeuron[]; neuronsStore?: Writable<TableNeuron[
frontend/src/tests/lib/components/neurons/NeuronsTable/NeuronsTable.svelte.spec.ts:66
↓ 32 callersFunctionrenderPage
()
frontend/src/tests/routes/app/tokens/page.spec.ts:150
↓ 32 callersFunctionrenderPage
(userTokensData: UserTokenData[])
frontend/src/tests/lib/pages/Tokens.spec.ts:70
↓ 31 callersFunctioncreateTransaction
({ operation, memo, id = transactionId, }: { id?: bigint; operation: IcpIndexDid.Operati
frontend/src/tests/lib/utils/icp-transactions.utils.spec.ts:70
next →1–100 of 5,266, ranked by callers