Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dfinity/ICRC-1
/ functions
Functions
75 in github.com/dfinity/ICRC-1
⨍
Functions
75
◇
Types & classes
26
↓ 85 callers
Method
principal
(&self)
test/env/replica/lib.rs:44
↓ 43 callers
Function
assert_balance
( ledger: &impl LedgerEnv, account: impl Into<Account>, expected: impl Into<Nat>, )
test/suite/lib.rs:67
↓ 16 callers
Method
fork
(&self)
test/env/replica/lib.rs:31
↓ 16 callers
Function
transfer
( ledger: &impl LedgerEnv, arg: Transfer, )
test/env/lib.rs:288
↓ 14 callers
Function
transfer_fee
(ledger: &impl LedgerEnv)
test/env/lib.rs:337
↓ 13 callers
Function
setup_test_account
( ledger_env: &impl LedgerEnv, amount: Nat, )
test/suite/lib.rs:120
↓ 11 callers
Function
approve
( ledger: &impl LedgerEnv, arg: ApproveArgs, )
test/env/lib.rs:349
↓ 10 callers
Function
assert_allowance
( ledger_env: &impl LedgerEnv, from: impl Into<Account>, spender: impl Into<Account>, expected
test/suite/lib.rs:87
↓ 9 callers
Method
query
(&self, method: &str, input: Input)
test/env/replica/lib.rs:57
↓ 8 callers
Function
transfer_from
( ledger: &impl LedgerEnv, arg: TransferFromArgs, )
test/env/lib.rs:356
↓ 7 callers
Function
assert_equal
(lhs: T, rhs: T)
test/suite/lib.rs:44
↓ 5 callers
Method
update
(&self, method: &str, input: Input)
test/env/replica/lib.rs:88
↓ 4 callers
Function
balance_of
( ledger: &impl LedgerEnv, account: impl Into<Account>, )
test/env/lib.rs:295
↓ 4 callers
Method
created_at_time
(mut self, time: u64)
test/env/lib.rs:91
↓ 4 callers
Function
fresh_identity
(rand: &SystemRandom)
test/env/replica/lib.rs:12
↓ 4 callers
Function
lookup
(meta: &'a [(K, V)], key: &U)
test/suite/lib.rs:36
↓ 4 callers
Method
memo
(mut self, memo: impl Into<Vec<u8>>)
test/env/lib.rs:96
↓ 4 callers
Function
print_help
()
test/runner/main.rs:10
↓ 3 callers
Function
assert_not_equal
(lhs: T, rhs: T)
test/suite/lib.rs:51
↓ 3 callers
Function
execute_tests
Executes the list of tests concurrently and prints results using the TAP protocol (https://testanything.org/).
test/suite/lib.rs:977
↓ 3 callers
Method
expires_at
(mut self, time: u64)
test/env/lib.rs:143
↓ 3 callers
Function
supported_standards
( ledger: &impl LedgerEnv, )
test/env/lib.rs:305
↓ 3 callers
Function
test_suite
(env: impl LedgerEnv + 'static + Clone)
test/suite/lib.rs:957
↓ 3 callers
Function
time_nanos
(ledger_env: &impl LedgerEnv)
test/suite/lib.rs:58
↓ 2 callers
Method
expected_allowance
(mut self, expected_allowance: Nat)
test/env/lib.rs:128
↓ 2 callers
Method
fee
(mut self, fee: impl Into<Nat>)
test/env/lib.rs:86
↓ 1 callers
Function
allowance
( ledger: &impl LedgerEnv, arg: AllowanceArgs, )
test/env/lib.rs:366
↓ 1 callers
Function
icrc1_test_suite
Returns the entire list of icrc1 tests.
test/suite/lib.rs:900
↓ 1 callers
Function
icrc2_test_suite
Returns the entire list of icrc2 tests.
test/suite/lib.rs:926
↓ 1 callers
Function
install_canister
(agent: &Agent, wasm: &[u8], init_arg: &[u8])
test/ref/test.rs:38
↓ 1 callers
Function
metadata
(ledger: &impl LedgerEnv)
test/env/lib.rs:314
↓ 1 callers
Function
minting_account
(ledger: &impl LedgerEnv)
test/env/lib.rs:318
↓ 1 callers
Function
new_principal
(n: u64)
test/env/pocket-ic/lib.rs:11
↓ 1 callers
Function
pic_env
()
test/ref/test.rs:108
↓ 1 callers
Function
start_replica
( replica_bin: &Path, ic_starter_bin: &Path, sandbox_launcher_bin: &Path, canister_sandbox_bin
test/replica/lib.rs:39
↓ 1 callers
Function
test_identity
()
test/replica/lib.rs:29
↓ 1 callers
Function
test_pocket_ic
()
test/ref/test.rs:175
↓ 1 callers
Function
test_replica
()
test/ref/test.rs:112
↓ 1 callers
Method
time
(&self)
test/env/replica/lib.rs:50
↓ 1 callers
Function
token_decimals
(ledger: &impl LedgerEnv)
test/env/lib.rs:333
↓ 1 callers
Function
token_name
(ledger: &impl LedgerEnv)
test/env/lib.rs:325
↓ 1 callers
Function
token_symbol
(ledger: &impl LedgerEnv)
test/env/lib.rs:329
Method
amount_to
(amount: impl Into<Nat>, to: impl Into<Account>)
test/env/lib.rs:70
Method
approve_amount
(amount: impl Into<Nat>, spender: impl Into<Account>)
test/env/lib.rs:115
Method
drop
(&mut self)
test/replica/lib.rs:24
Method
fork
(&self)
test/env/pocket-ic/lib.rs:28
Method
from
(owner: Principal)
test/env/lib.rs:17
Method
from_subaccount
(mut self, from_subaccount: Subaccount)
test/env/lib.rs:81
Function
icrc1_test_bad_fee
Checks the ICRC-2 transfer from endpoint for correct handling of the insufficient bad fee error.
test/suite/lib.rs:832
Function
icrc1_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
Function
icrc1_test_future_transfer
Checks the ICRC-2 transfer from endpoint for correct handling of the future transfer error.
test/suite/lib.rs:861
Function
icrc1_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
Function
icrc1_test_metadata
Checks whether the ledger metadata entries agree with named methods.
test/suite/lib.rs:230
Function
icrc1_test_supported_standards
Checks whether the ledger advertizes support for ICRC-1 standard.
test/suite/lib.rs:261
Function
icrc1_test_transfer
Checks whether the ledger supports token transfers and handles default sub accounts correctly.
test/suite/lib.rs:144
Function
icrc1_test_tx_deduplication
Checks whether the ledger applies deduplication of transactions correctly
test/suite/lib.rs:696
Function
icrc2_test_approve
Checks basic functionality of the ICRC-2 approve endpoint.
test/suite/lib.rs:286
Function
icrc2_test_approve_expected_allowance
Checks the ICRC-2 approve endpoint for correct handling of the expected allowance functionality.
test/suite/lib.rs:449
Function
icrc2_test_approve_expiration
Checks the ICRC-2 approve endpoint for correct handling of the expiration functionality.
test/suite/lib.rs:376
Function
icrc2_test_supported_standards
Checks whether the ledger advertizes support for ICRC-2 standard.
test/suite/lib.rs:271
Function
icrc2_test_transfer_from
Checks the basic functionality of the ICRC-2 transfer from endpoint.
test/suite/lib.rs:512
Function
icrc2_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
Function
icrc2_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
Function
icrc2_test_transfer_from_self
Checks the ICRC-2 transfer from endpoint for correct handling of self transfers.
test/suite/lib.rs:669
Function
main
()
test/runner/main.rs:26
Function
main
()
test/ref/test.rs:218
Method
new
(pic: Arc<PocketIc>, canister_id: Principal, sender: Principal)
test/env/pocket-ic/lib.rs:107
Method
new
(agent: Agent, canister_id: Principal)
test/env/replica/lib.rs:121
Method
port
(&self)
test/replica/lib.rs:18
Method
principal
(&self)
test/env/pocket-ic/lib.rs:37
Method
query
(&self, method: &str, input: Input)
test/env/pocket-ic/lib.rs:49
Function
test
(name: impl Into<String>, body: impl Future<Output = TestResult> + 'static)
test/suite/lib.rs:29
Method
time
(&self)
test/env/pocket-ic/lib.rs:41
Method
transfer_from
( amount: impl Into<Nat>, to: impl Into<Account>, from: impl Into<Account>, )
test/env/lib.rs:188
Method
update
(&self, method: &str, input: Input)
test/env/pocket-ic/lib.rs:77