Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Concordium/concordium-rust-smart-contracts
/ functions
Functions
1,394 in github.com/Concordium/concordium-rust-smart-contracts
⨍
Functions
1,394
◇
Types & classes
566
↓ 1 callers
Function
hash_sha2_256
(_data: *const u8, _data_len: u32, _output: *mut u8)
concordium-std/src/prims.rs:524
↓ 1 callers
Function
hash_sha3_256
(_data: *const u8, _data_len: u32, _output: *mut u8)
concordium-std/src/prims.rs:529
↓ 1 callers
Method
hash_sha3_256
(&self, data: &[u8])
concordium-std/src/impls.rs:2858
↓ 1 callers
Method
have_implementors
Check if state contains any implementors for a given standard.
templates/cis2-nft/src/lib.rs:264
↓ 1 callers
Method
have_implementors
Check if state contains any implementors for a given standard.
examples/nametoken/src/lib.rs:494
↓ 1 callers
Method
have_implementors
Check if state contains any implementors for a given standard.
examples/cis2-multi/src/lib.rs:812
↓ 1 callers
Method
have_implementors
Check if state contains any implementors for a given standard.
examples/cis2-wccd/src/lib.rs:422
↓ 1 callers
Method
have_implementors
Checks if the state contains any implementors for a given standard.
examples/cis5-smart-contract-wallet/src/lib.rs:353
↓ 1 callers
Method
have_implementors
Check if state contains any implementors for a given standard.
examples/cis2-dynamic-nft/src/lib.rs:383
↓ 1 callers
Method
have_implementors
Check if state contains any implementors for a given standard.
examples/cis2-multi-royalties/src/lib.rs:369
↓ 1 callers
Method
have_implementors
Check if state contains any implementors for a given standard.
examples/cis3-nft-sponsored-txs/src/lib.rs:510
↓ 1 callers
Method
have_implementors
Check if state contains any implementors for a given standard.
examples/cis2-nft/src/lib.rs:279
↓ 1 callers
Method
host_calls_summary
Get host function calls grouped by contract address that generated them. The value at each address and host function is the pair of the number of tim
contract-testing/src/types.rs:776
↓ 1 callers
Method
host_calls_summary_per_entrypoint
Get host function calls grouped by contract address and entrypoint that generated them. The value at each address and host function is the pair of th
contract-testing/src/types.rs:802
↓ 1 callers
Method
info
(&self, holder_id: CredentialHolderId)
templates/credential-registry/src/lib.rs:87
↓ 1 callers
Method
info
(&self, holder_id: CredentialHolderId)
examples/credential-registry/src/lib.rs:85
↓ 1 callers
Function
init
Initialize the chain and contract. Creates one account (ALICE), deploys the module, and initializes the contract.
examples/transfer-policy-check/tests/tests.rs:79
↓ 1 callers
Function
init_context
()
concordium-std/src/test_env.rs:139
↓ 1 callers
Method
init_contract
A function to initialize a smart contract instance on the chain. If successful, the transaction hash, the block item, and the contract address are re
templates/default/deploy-scripts/src/deployer.rs:175
↓ 1 callers
Function
initialize_chain_and_auction
Setup auction and chain. Carol is the owner of the auction, which ends at `1000` milliseconds after the unix epoch. The 'microCCD per euro' exchange
examples/auction/tests/tests.rs:261
↓ 1 callers
Function
initialize_chain_and_contract
Setup chain and contract. Also creates the two accounts, Alice and Bob. Alice is the owner of the contract.
templates/cis2-nft/tests/tests.rs:316
↓ 1 callers
Function
initialize_chain_and_contract
Setup chain and contract. Also creates the three accounts, Alice, Bob and Charlie. Alice is the owner and admin of the contract.
examples/nametoken/tests/tests.rs:856
↓ 1 callers
Function
initialize_chain_and_contract
Setup chain and contract. The function creates the five accounts: ALICE, BOB, UPGRADER, PAUSER, and BLACKLISTER. The function grants ALICE the ADMIN r
examples/cis2-multi/tests/tests.rs:1674
↓ 1 callers
Function
initialize_chain_and_contract
Setup chain and contract. Also creates the two accounts, Alice and Bob. Alice is the owner of the contract.
examples/cis2-dynamic-nft/tests/tests.rs:380
↓ 1 callers
Function
initialize_chain_and_contract
Setup chain and contract. Also creates the three accounts, Alice, Bob, and Charlie and initializes the contract. Alice is the owner of the contract.
examples/cis2-multi-royalties/tests/tests.rs:643
↓ 1 callers
Function
initialize_chain_and_contract
Setup chain and contract. Also creates the three accounts, Alice, Bob, and Charlie. Alice is the owner of the contract. Alice's account is created w
examples/cis3-nft-sponsored-txs/tests/tests.rs:1128
↓ 1 callers
Function
initialize_chain_and_contract
Setup chain and contract. Also creates the two accounts, Alice and Bob. Alice is the owner of the contract.
examples/cis2-nft/tests/tests.rs:414
↓ 1 callers
Method
into_inner
(self)
concordium-std/src/types.rs:1079
↓ 1 callers
Method
invoke_contract_raw_read_only
( &self, to: &ContractAddress, parameter: Parameter, method: EntrypointName,
concordium-std/src/impls.rs:2591
↓ 1 callers
Method
invoke_entrypoint
Used for handling contract entrypoint invocations internally. Preconditions: - `invoker` exists - `invoker` has sufficient balance to pay for `remain
contract-testing/src/invocation/impls.rs:281
↓ 1 callers
Method
invoke_entrypoint_initial
Used for handling the *initial* part of invoking an entrypoint. Preconditions: - `invoker` exists - `invoker` has sufficient balance to pay for `rema
contract-testing/src/invocation/impls.rs:85
↓ 1 callers
Method
is_operator
Check if a given address is an operator of a given owner address.
templates/cis2-nft/src/lib.rs:197
↓ 1 callers
Method
is_operator
Check if a given address is an operator of a given owner address.
examples/nametoken/src/lib.rs:390
↓ 1 callers
Method
is_operator
Check if an address is an operator of a given owner address.
examples/cis2-multi/src/lib.rs:722
↓ 1 callers
Method
is_operator
Check if an address is an operator of a specific owner address.
examples/cis2-wccd/src/lib.rs:308
↓ 1 callers
Method
is_operator
Check if an address is an operator of a given owner address.
examples/cis2-dynamic-nft/src/lib.rs:305
↓ 1 callers
Method
is_operator
Check if an address is an operator of a given owner address.
examples/cis2-multi-royalties/src/lib.rs:276
↓ 1 callers
Method
is_operator
Check if a given address is an operator of a given owner address.
examples/cis3-nft-sponsored-txs/src/lib.rs:437
↓ 1 callers
Method
is_operator
Check if a given address is an operator of a given owner address.
examples/cis2-nft/src/lib.rs:206
↓ 1 callers
Function
is_settlement_valid
( settlement: &Settlement, balance_sheet: &StateMap<AccountAddress, Amount, S>, )
examples/offchain-transfers/src/lib.rs:445
↓ 1 callers
Function
issuer_metadata
()
templates/credential-registry/tests/tests.rs:180
↓ 1 callers
Function
issuer_metadata
()
examples/credential-registry/tests/tests.rs:205
↓ 1 callers
Method
log_raw
(&mut self, event: &[u8])
concordium-std/src/impls.rs:2989
↓ 1 callers
Function
lookup_and_sum
Helpers method for `memory_layout`, which looks up two values from a map and adds them. Panics if the values aren't present.
examples/bump-alloc-tests/src/lib.rs:37
↓ 1 callers
Method
memory_grow
Grow the memory by `delta` pages, each of size [PAGE_SIZE]. If successful, it returns the previous number of memory pages. Otherwise, it returns [`ER
concordium-std/src/bump_alloc.rs:119
↓ 1 callers
Method
memory_size
Get the size of memory in terms of pages. The memory has three sections in the following order: - The data section. - The stack. - The heap. To get
concordium-std/src/bump_alloc.rs:135
↓ 1 callers
Method
micro_ccd_per_euro_from_external
Configure the exchange rate between microCCD and euro using the external node connection. This can only be used in combination with [`external_node_c
contract-testing/src/impls.rs:248
↓ 1 callers
Method
mint
Mint a new token with a given address as the owner
templates/cis2-nft/src/lib.rs:158
↓ 1 callers
Method
mint
Mints an amount of tokens with a given address as the owner. The metadataURL for the given token_id is added to the state only if the token_id is bein
examples/cis2-multi/src/lib.rs:650
↓ 1 callers
Method
mint
Mint an amount of wCCD tokens. Results in an error if the token id does not exist in the state.
examples/cis2-wccd/src/lib.rs:377
↓ 1 callers
Method
mint
Mints an amount of tokens with a given address as the owner. Sets the token's metadata list and the current metadata counter to 0.
examples/cis2-dynamic-nft/src/lib.rs:198
↓ 1 callers
Method
mint
Mints an amount of tokens with a given address as the owner.
examples/cis2-multi-royalties/src/lib.rs:227
↓ 1 callers
Method
mint
Mint a new token with a given address as the owner
examples/cis3-nft-sponsored-txs/src/lib.rs:393
↓ 1 callers
Method
mint
Mint a new token with a given address as the owner
examples/cis2-nft/src/lib.rs:162
↓ 1 callers
Function
mk_parameter
Helper for creating a parameter of a specific size. The `internal_param_size` is the size of the parameter passed to the `param-aux` entrypoint. This
contract-testing/tests/relaxed_restrictions.rs:154
↓ 1 callers
Method
module_exists
A function to check if a module exists on the chain.
templates/default/deploy-scripts/src/deployer.rs:79
↓ 1 callers
Method
new_btree_set
Create a new empty [`StateBTreeSet`](crate::StateBTreeSet).
concordium-std/src/impls.rs:2498
↓ 1 callers
Method
new_btree_set_degree
Create a new empty [`StateBTreeSet`](crate::StateBTreeSet), setting the minimum degree `M` of the B-Tree explicitly. `M` must be 2 or higher otherwise
concordium-std/src/impls.rs:2514
↓ 1 callers
Method
next
(&mut self)
concordium-std/src/state_btree.rs:1106
↓ 1 callers
Method
next_item
(&mut self, buf: &mut [u8])
concordium-std/src/impls.rs:1731
↓ 1 callers
Method
num_signatures
Return the number of signatures contained in the structure.
contract-testing/src/types.rs:169
↓ 1 callers
Function
pages_to_request
Calculates the number of memory pages needed to allocate an additional `space_needed` bytes. This function simply performs an integer division with `
concordium-std/src/bump_alloc.rs:245
↓ 1 callers
Function
parse_check_account_signature_response_code
Decode the response from checking account signatures. - Success if the last 5 bytes are all zero: - In case of failure the 4th byte is used, and enco
concordium-std/src/impls.rs:2132
↓ 1 callers
Function
parse_query_account_balance_response_code
Decode the account balance response code. - Success if the last 5 bytes are all zero: - the first 3 bytes encodes the return value index. - In case o
concordium-std/src/impls.rs:2061
↓ 1 callers
Function
parse_query_account_public_keys_response_code
Decode the account public keys query response code. - Success if the last 5 bytes are all zero: - the first 3 bytes encodes the return value index. -
concordium-std/src/impls.rs:2107
↓ 1 callers
Function
parse_query_contract_balance_response_code
Decode the contract balance response code. - Success if the last 5 bytes are all zero: - the first 3 bytes encodes the return value index. - In case
concordium-std/src/impls.rs:2084
↓ 1 callers
Function
parse_query_contract_module_reference_response_code
( code: u64, )
concordium-std/src/impls.rs:2175
↓ 1 callers
Function
parse_query_contract_name_response_code
( code: u64, )
concordium-std/src/impls.rs:2199
↓ 1 callers
Function
parse_query_exchange_rates_response_code
Decode the exchange rate response code. - Success if the last 5 bytes are all zero: - the first 3 bytes encodes the return value index. - In case of
concordium-std/src/impls.rs:2156
↓ 1 callers
Function
parse_transfer_response_code
Decode the the response code. The response is encoded as follows. - Success if the last 5 bytes are all zero: - the first 3 bytes encodes the return
concordium-std/src/impls.rs:1952
↓ 1 callers
Method
persist
Try to persist all changes from the changeset. If the energy needed for storing extra state is larger than the `remaining_energy`, then: - no changes
contract-testing/src/invocation/impls.rs:1708
↓ 1 callers
Method
policies
(&self)
concordium-std/src/impls.rs:1887
↓ 1 callers
Function
policy_with_country
Construct a policy with the provided country code.
examples/transfer-policy-check/tests/tests.rs:64
↓ 1 callers
Method
read
(&mut self, buf: &mut [u8])
concordium-std/src/impls.rs:336
↓ 1 callers
Method
read_u32
Read a `u32` in little-endian format. This is optimized to not initialize a dummy value before calling an external function.
concordium-std/src/impls.rs:378
↓ 1 callers
Method
register_expired
Register a name if it's present in the registry, but expired
examples/nametoken/src/lib.rs:281
↓ 1 callers
Method
register_fresh
Register a name if it's not taken
examples/nametoken/src/lib.rs:259
↓ 1 callers
Method
remove_and_get
(&mut self, key: &K)
concordium-std/src/impls.rs:1052
↓ 1 callers
Method
remove_blacklist
Update the state removing an address from the blacklist. Succeeds even if the `address` is not in the list.
examples/cis2-multi/src/lib.rs:807
↓ 1 callers
Method
remove_largest_key
Internal function for taking the largest key in a subtree. Assumes: - The provided node is not the root. - The node contain more than minimum number
concordium-std/src/state_btree.rs:785
↓ 1 callers
Method
remove_operator
Update the state removing an operator for a given address. Succeeds even if the `operator` is _not_ an operator for the `address`.
templates/cis2-nft/src/lib.rs:257
↓ 1 callers
Method
remove_operator
Update the state removing an operator for a given address. Succeeds even if the `operator` is _not_ an operator for the `address`.
examples/nametoken/src/lib.rs:481
↓ 1 callers
Method
remove_operator
Update the state removing an operator for a given address. Succeeds even if the `operator` is not an operator for the `address`.
examples/cis2-multi/src/lib.rs:793
↓ 1 callers
Method
remove_operator
Update the state removing an operator for a given token id and address. Succeeds even if the `operator` is not an operator for this `token_id` and `ad
examples/cis2-wccd/src/lib.rs:369
↓ 1 callers
Method
remove_operator
Update the state removing an operator for a given address. Succeeds even if the `operator` is not an operator for the `address`.
examples/cis2-dynamic-nft/src/lib.rs:376
↓ 1 callers
Method
remove_operator
Update the state removing an operator for a given address. Succeeds even if the `operator` is not an operator for the `address`.
examples/cis2-multi-royalties/src/lib.rs:362
↓ 1 callers
Method
remove_operator
Update the state removing an operator for a given address. Succeeds even if the `operator` is _not_ an operator for the `address`.
examples/cis3-nft-sponsored-txs/src/lib.rs:503
↓ 1 callers
Method
remove_operator
Update the state removing an operator for a given address. Succeeds even if the `operator` is _not_ an operator for the `address`.
examples/cis2-nft/src/lib.rs:272
↓ 1 callers
Method
remove_smallest_key
Internal function for taking the smallest key in a subtree. Assumes: - The provided node is not the root. - The provided `node` contain more than min
concordium-std/src/state_btree.rs:805
↓ 1 callers
Method
renew
Renew an existing name
examples/nametoken/src/lib.rs:333
↓ 1 callers
Method
return_value
Try to extract the value returned. This only returns `Some` if the contract rejected on its own. As opposed to when it runs out of energy, traps, or
contract-testing/src/impls.rs:2127
↓ 1 callers
Method
revoke_role
Revoke role from an address.
examples/cis2-multi/src/lib.rs:843
↓ 1 callers
Method
rollback
Roll back to the previous checkpoint.
contract-testing/src/invocation/impls.rs:1483
↓ 1 callers
Function
run_mutations
Run a list of mutations on a btree, checking the return value and tree invariants using `StateBTreeSet::check_invariants` between each mutation, retur
concordium-std/src/state_btree.rs:2075
↓ 1 callers
Method
save_module_upgrade
Saves a new module reference for the contract in the changeset. If the contract already has an entry in the changeset, the old module is replaced. Ot
contract-testing/src/invocation/impls.rs:1427
↓ 1 callers
Method
set
Set the value. Overwrites the existing one.
concordium-std/src/impls.rs:1268
↓ 1 callers
Method
set_block_time_via_external_node
Set the block time by querying the external node. The default query block is always used. The external node must be setup prior to this call via the
contract-testing/src/impls.rs:1747
↓ 1 callers
Method
set_implementors
Set implementors for a given standard.
examples/nametoken/src/lib.rs:503
↓ 1 callers
Method
set_implementors
Set implementors for a given standard.
examples/cis2-multi/src/lib.rs:821
↓ 1 callers
Method
set_implementors
Set implementors for a given standard.
examples/cis2-wccd/src/lib.rs:431
← previous
next →
401–500 of 1,394, ranked by callers