MCPcopy Create free account

hub / github.com/dfinity/ICRC-1 / functions

Functions75 in github.com/dfinity/ICRC-1

↓ 85 callersMethodprincipal
(&self)
test/env/replica/lib.rs:44
↓ 43 callersFunctionassert_balance
( ledger: &impl LedgerEnv, account: impl Into<Account>, expected: impl Into<Nat>, )
test/suite/lib.rs:67
↓ 16 callersMethodfork
(&self)
test/env/replica/lib.rs:31
↓ 16 callersFunctiontransfer
( ledger: &impl LedgerEnv, arg: Transfer, )
test/env/lib.rs:288
↓ 14 callersFunctiontransfer_fee
(ledger: &impl LedgerEnv)
test/env/lib.rs:337
↓ 13 callersFunctionsetup_test_account
( ledger_env: &impl LedgerEnv, amount: Nat, )
test/suite/lib.rs:120
↓ 11 callersFunctionapprove
( ledger: &impl LedgerEnv, arg: ApproveArgs, )
test/env/lib.rs:349
↓ 10 callersFunctionassert_allowance
( ledger_env: &impl LedgerEnv, from: impl Into<Account>, spender: impl Into<Account>, expected
test/suite/lib.rs:87
↓ 9 callersMethodquery
(&self, method: &str, input: Input)
test/env/replica/lib.rs:57
↓ 8 callersFunctiontransfer_from
( ledger: &impl LedgerEnv, arg: TransferFromArgs, )
test/env/lib.rs:356
↓ 7 callersFunctionassert_equal
(lhs: T, rhs: T)
test/suite/lib.rs:44
↓ 5 callersMethodupdate
(&self, method: &str, input: Input)
test/env/replica/lib.rs:88
↓ 4 callersFunctionbalance_of
( ledger: &impl LedgerEnv, account: impl Into<Account>, )
test/env/lib.rs:295
↓ 4 callersMethodcreated_at_time
(mut self, time: u64)
test/env/lib.rs:91
↓ 4 callersFunctionfresh_identity
(rand: &SystemRandom)
test/env/replica/lib.rs:12
↓ 4 callersFunctionlookup
(meta: &'a [(K, V)], key: &U)
test/suite/lib.rs:36
↓ 4 callersMethodmemo
(mut self, memo: impl Into<Vec<u8>>)
test/env/lib.rs:96
↓ 4 callersFunctionprint_help
()
test/runner/main.rs:10
↓ 3 callersFunctionassert_not_equal
(lhs: T, rhs: T)
test/suite/lib.rs:51
↓ 3 callersFunctionexecute_tests
Executes the list of tests concurrently and prints results using the TAP protocol (https://testanything.org/).
test/suite/lib.rs:977
↓ 3 callersMethodexpires_at
(mut self, time: u64)
test/env/lib.rs:143
↓ 3 callersFunctionsupported_standards
( ledger: &impl LedgerEnv, )
test/env/lib.rs:305
↓ 3 callersFunctiontest_suite
(env: impl LedgerEnv + 'static + Clone)
test/suite/lib.rs:957
↓ 3 callersFunctiontime_nanos
(ledger_env: &impl LedgerEnv)
test/suite/lib.rs:58
↓ 2 callersMethodexpected_allowance
(mut self, expected_allowance: Nat)
test/env/lib.rs:128
↓ 2 callersMethodfee
(mut self, fee: impl Into<Nat>)
test/env/lib.rs:86
↓ 1 callersFunctionallowance
( ledger: &impl LedgerEnv, arg: AllowanceArgs, )
test/env/lib.rs:366
↓ 1 callersFunctionicrc1_test_suite
Returns the entire list of icrc1 tests.
test/suite/lib.rs:900
↓ 1 callersFunctionicrc2_test_suite
Returns the entire list of icrc2 tests.
test/suite/lib.rs:926
↓ 1 callersFunctioninstall_canister
(agent: &Agent, wasm: &[u8], init_arg: &[u8])
test/ref/test.rs:38
↓ 1 callersFunctionmetadata
(ledger: &impl LedgerEnv)
test/env/lib.rs:314
↓ 1 callersFunctionminting_account
(ledger: &impl LedgerEnv)
test/env/lib.rs:318
↓ 1 callersFunctionnew_principal
(n: u64)
test/env/pocket-ic/lib.rs:11
↓ 1 callersFunctionpic_env
()
test/ref/test.rs:108
↓ 1 callersFunctionstart_replica
( replica_bin: &Path, ic_starter_bin: &Path, sandbox_launcher_bin: &Path, canister_sandbox_bin
test/replica/lib.rs:39
↓ 1 callersFunctiontest_identity
()
test/replica/lib.rs:29
↓ 1 callersFunctiontest_pocket_ic
()
test/ref/test.rs:175
↓ 1 callersFunctiontest_replica
()
test/ref/test.rs:112
↓ 1 callersMethodtime
(&self)
test/env/replica/lib.rs:50
↓ 1 callersFunctiontoken_decimals
(ledger: &impl LedgerEnv)
test/env/lib.rs:333
↓ 1 callersFunctiontoken_name
(ledger: &impl LedgerEnv)
test/env/lib.rs:325
↓ 1 callersFunctiontoken_symbol
(ledger: &impl LedgerEnv)
test/env/lib.rs:329
Methodamount_to
(amount: impl Into<Nat>, to: impl Into<Account>)
test/env/lib.rs:70
Methodapprove_amount
(amount: impl Into<Nat>, spender: impl Into<Account>)
test/env/lib.rs:115
Methoddrop
(&mut self)
test/replica/lib.rs:24
Methodfork
(&self)
test/env/pocket-ic/lib.rs:28
Methodfrom
(owner: Principal)
test/env/lib.rs:17
Methodfrom_subaccount
(mut self, from_subaccount: Subaccount)
test/env/lib.rs:81
Functionicrc1_test_bad_fee
Checks the ICRC-2 transfer from endpoint for correct handling of the insufficient bad fee error.
test/suite/lib.rs:832
Functionicrc1_test_burn
Checks whether the ledger supports token burns. Skips the checks if the ledger does not have a minting account.
test/suite/lib.rs:192
Functionicrc1_test_future_transfer
Checks the ICRC-2 transfer from endpoint for correct handling of the future transfer error.
test/suite/lib.rs:861
Functionicrc1_test_memo_bytes_length
Checks the ICRC-2 transfer from endpoint for correct handling of the length of the memo.
test/suite/lib.rs:880
Functionicrc1_test_metadata
Checks whether the ledger metadata entries agree with named methods.
test/suite/lib.rs:230
Functionicrc1_test_supported_standards
Checks whether the ledger advertizes support for ICRC-1 standard.
test/suite/lib.rs:261
Functionicrc1_test_transfer
Checks whether the ledger supports token transfers and handles default sub accounts correctly.
test/suite/lib.rs:144
Functionicrc1_test_tx_deduplication
Checks whether the ledger applies deduplication of transactions correctly
test/suite/lib.rs:696
Functionicrc2_test_approve
Checks basic functionality of the ICRC-2 approve endpoint.
test/suite/lib.rs:286
Functionicrc2_test_approve_expected_allowance
Checks the ICRC-2 approve endpoint for correct handling of the expected allowance functionality.
test/suite/lib.rs:449
Functionicrc2_test_approve_expiration
Checks the ICRC-2 approve endpoint for correct handling of the expiration functionality.
test/suite/lib.rs:376
Functionicrc2_test_supported_standards
Checks whether the ledger advertizes support for ICRC-2 standard.
test/suite/lib.rs:271
Functionicrc2_test_transfer_from
Checks the basic functionality of the ICRC-2 transfer from endpoint.
test/suite/lib.rs:512
Functionicrc2_test_transfer_from_insufficient_allowance
Checks the ICRC-2 transfer from endpoint for correct handling of the insufficient allowance error.
test/suite/lib.rs:629
Functionicrc2_test_transfer_from_insufficient_funds
Checks the ICRC-2 transfer from endpoint for correct handling of the insufficient funds error.
test/suite/lib.rs:566
Functionicrc2_test_transfer_from_self
Checks the ICRC-2 transfer from endpoint for correct handling of self transfers.
test/suite/lib.rs:669
Functionmain
()
test/runner/main.rs:26
Functionmain
()
test/ref/test.rs:218
Methodnew
(pic: Arc<PocketIc>, canister_id: Principal, sender: Principal)
test/env/pocket-ic/lib.rs:107
Methodnew
(agent: Agent, canister_id: Principal)
test/env/replica/lib.rs:121
Methodport
(&self)
test/replica/lib.rs:18
Methodprincipal
(&self)
test/env/pocket-ic/lib.rs:37
Methodquery
(&self, method: &str, input: Input)
test/env/pocket-ic/lib.rs:49
Functiontest
(name: impl Into<String>, body: impl Future<Output = TestResult> + 'static)
test/suite/lib.rs:29
Methodtime
(&self)
test/env/pocket-ic/lib.rs:41
Methodtransfer_from
( amount: impl Into<Nat>, to: impl Into<Account>, from: impl Into<Account>, )
test/env/lib.rs:188
Methodupdate
(&self, method: &str, input: Input)
test/env/pocket-ic/lib.rs:77