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
↓ 2 callers
Method
serial
(&self, out: &mut W)
examples/proxy/src/lib.rs:33
↓ 2 callers
Method
serial
(&self, out: &mut W)
examples/credential-registry/src/lib.rs:536
↓ 2 callers
Method
set_implementors
Set implementors for a given standard.
templates/cis2-nft/src/lib.rs:273
↓ 2 callers
Method
set_receive_sender
Set the immediate sender of the message (either contract or account).
concordium-std/src/test_env.rs:88
↓ 2 callers
Method
size_in_bytes
The size in bytes, i.e. `PageCount * PAGE_SIZE`.
concordium-std/src/bump_alloc.rs:34
↓ 2 callers
Method
split_child
Internal function for splitting the child node at a given index for a given node. This will also mutate the given node adding a new key and child afte
concordium-std/src/state_btree.rs:1032
↓ 2 callers
Function
state_delete_entry
(_entry: u64)
concordium-std/src/prims.rs:408
↓ 2 callers
Function
transfer
Internal `transfer/permit` helper function. Invokes the `transfer` function of the state. Logs a `Transfer` event and invokes a receive hook function.
examples/cis2-multi/src/lib.rs:1187
↓ 2 callers
Function
transfer
Internal `transfer/permit` helper function. Invokes the `transfer` function of the state. Logs a `Transfer` event and invokes a receive hook function.
examples/cis3-nft-sponsored-txs/src/lib.rs:654
↓ 2 callers
Method
transfer
Update the state with a transfer of some token. Results in an error if the token ID does not exist in the state or if the from address have insufficie
examples/nametoken/src/lib.rs:402
↓ 2 callers
Method
update_credential_metadata
( &mut self, credential_id: &CredentialHolderId, metadata: MetadataUrl, )
examples/credential-registry/src/lib.rs:240
↓ 2 callers
Function
update_operator
Internal `updateOperator/permit` helper function. Invokes the `add_operator/remove_operator` function of the state. Logs a `UpdateOperator` event. The
examples/cis2-multi/src/lib.rs:1527
↓ 2 callers
Function
update_operator
Internal `updateOperator/permit` helper function. Invokes the `add_operator/remove_operator` function of the state. Logs a `UpdateOperator` event. The
examples/cis3-nft-sponsored-txs/src/lib.rs:939
↓ 2 callers
Function
upgrade
(_module_ref: *const u8)
concordium-std/src/prims.rs:375
↓ 2 callers
Method
verify_ecdsa_secp256k1_signature
( &self, public_key: PublicKeyEcdsaSecp256k1, signature: SignatureEcdsaSecp256k1,
concordium-std/src/impls.rs:2830
↓ 2 callers
Method
view_credential_info
( &self, credential_id: CredentialHolderId, )
examples/credential-registry/src/lib.rs:194
↓ 2 callers
Method
write
(&mut self, buf: &[u8])
concordium-std/src/impls.rs:194
↓ 1 callers
Method
account_balance
Returns the balance of an account if it exists.
contract-testing/src/impls.rs:1534
↓ 1 callers
Method
account_balance
Looks up the account balance for an account by first checking the changeset, then the persisted values.
contract-testing/src/invocation/impls.rs:1335
↓ 1 callers
Method
account_keys
Looks up the account keys.
contract-testing/src/invocation/impls.rs:1367
↓ 1 callers
Method
add_blacklist
Update the state adding a new address to the blacklist. Succeeds even if the `address` is already in the blacklist.
examples/cis2-multi/src/lib.rs:801
↓ 1 callers
Method
add_external_account
Add an external account from a connected external node. If the account exists on the external node at the time of the `external_query_block`, then an
contract-testing/src/impls.rs:1473
↓ 1 callers
Method
add_external_contract
Add an external contract from a connected external node. If the contract exists on the external node at the time of the `external_query_block`, then
contract-testing/src/impls.rs:1506
↓ 1 callers
Method
add_file
Add a new file hash (replaces existing file if present).
examples/eSealing/src/lib.rs:86
↓ 1 callers
Method
add_metadata
(&mut self, metadata: MetadataUrl)
examples/cis2-dynamic-nft/src/lib.rs:120
↓ 1 callers
Method
add_operator
Update the state adding a new operator for a given address. Succeeds even if the `operator` is already an operator for the `address`.
templates/cis2-nft/src/lib.rs:244
↓ 1 callers
Method
add_operator
Update the state adding a new operator for a given address. Succeeds even if the `operator` is already an operator for the `address. If the owner is n
examples/nametoken/src/lib.rs:460
↓ 1 callers
Method
add_operator
Update the state adding a new operator for a given address. Succeeds even if the `operator` is already an operator for the `address`.
examples/cis2-multi/src/lib.rs:778
↓ 1 callers
Method
add_operator
Update the state adding a new operator for a given token id and address. Succeeds even if the `operator` is already an operator for this `token_id` an
examples/cis2-wccd/src/lib.rs:353
↓ 1 callers
Method
add_operator
Update the state adding a new operator for a given address. Succeeds even if the `operator` is already an operator for the `address`.
examples/cis2-dynamic-nft/src/lib.rs:361
↓ 1 callers
Method
add_operator
Update the state adding a new operator for a given address. Succeeds even if the `operator` is already an operator for the `address`.
examples/cis2-multi-royalties/src/lib.rs:347
↓ 1 callers
Method
add_operator
Update the state adding a new operator for a given address. Succeeds even if the `operator` is already an operator for the `address`.
examples/cis3-nft-sponsored-txs/src/lib.rs:488
↓ 1 callers
Method
add_operator
Update the state adding a new operator for a given address. Succeeds even if the `operator` is already an operator for the `address`.
examples/cis2-nft/src/lib.rs:257
↓ 1 callers
Function
align_up
Align the given address, `addr`, upwards to alignment `align`. Requires that `align` is a power of two, which it always is due to the design of [`Lay
concordium-std/src/bump_alloc.rs:226
↓ 1 callers
Function
appender
Recursively alternates between appending `on_even` and `on_odd` to the `text` `n` times. For example with ("ORIGINAL", 3, "EVEN", "ODD"), the final `
examples/bump-alloc-tests/src/lib.rs:152
↓ 1 callers
Method
attributes
(&self)
concordium-std/src/impls.rs:1784
↓ 1 callers
Method
balance
Get the current balance of a given token ID for a given address. Results in an error if the token ID does not exist in the state. Since this contract
templates/cis2-nft/src/lib.rs:182
↓ 1 callers
Method
balance
( &self, now: Timestamp, token_id: &ContractTokenId, address: &Address, )
examples/nametoken/src/lib.rs:359
↓ 1 callers
Method
balance
Get the current balance of a given token id for a given address. Results in an error if the token id does not exist in the state.
examples/cis2-multi/src/lib.rs:706
↓ 1 callers
Method
balance
Get the current balance of a given token id for a given address. Results in an error if the token id does not exist in the state.
examples/cis2-wccd/src/lib.rs:294
↓ 1 callers
Method
balance
Get the current balance of a given token id for a given address. Results in an error if the token id does not exist in the state.
examples/cis2-dynamic-nft/src/lib.rs:289
↓ 1 callers
Method
balance
Get the current balance of a given token id for a given address. Results in an error if the token id does not exist in the state.
examples/cis2-multi-royalties/src/lib.rs:260
↓ 1 callers
Method
balance
Get the current balance of a given token ID for a given address. Results in an error if the token ID does not exist in the state. Since this contract
examples/cis3-nft-sponsored-txs/src/lib.rs:422
↓ 1 callers
Method
balance
Get the current balance of a given token ID for a given address. Results in an error if the token ID does not exist in the state. Since this contract
examples/cis2-nft/src/lib.rs:191
↓ 1 callers
Method
balance_ccd
Gets the current CCD balance of a given public key. Returns a balance of 0 if the public key does not exist in the state.
examples/cis5-smart-contract-wallet/src/lib.rs:233
↓ 1 callers
Method
balance_tokens
Gets the current balance of a given token ID, a given token contract, and a given public key. Returns a balance of 0 if the token contract, token id o
examples/cis5-smart-contract-wallet/src/lib.rs:243
↓ 1 callers
Method
block_time
(&self)
concordium-std/src/traits.rs:77
↓ 1 callers
Method
block_time_from_external
Configure the block time using the external node connection. This can only be used in combination with [`external_node_connection`][Self::external_no
contract-testing/src/impls.rs:311
↓ 1 callers
Method
burn
Burns an amount of tokens from a given owner address.
examples/cis2-multi/src/lib.rs:678
↓ 1 callers
Method
burn
Burn an amount of wCCD tokens. Results in an error if the token id does not exist in the state or if the owner address has insufficient tokens to do t
examples/cis2-wccd/src/lib.rs:397
↓ 1 callers
Method
check_outcome_of_deploy_transaction
A function that checks the outcome of the deploy transaction. It returns an error if the `block_item` is not a deploy transaction. It returns the erro
templates/default/deploy-scripts/src/deployer.rs:341
↓ 1 callers
Method
check_outcome_of_initialization_transaction
A function that checks the outcome of the initialization transaction. It returns an error if the `block_item` is not an initialization transaction. It
templates/default/deploy-scripts/src/deployer.rs:375
↓ 1 callers
Method
check_outcome_of_update_transaction
A function that checks the outcome of the update transaction. It returns an error if the `block_item` is not an update transaction. It returns the err
templates/default/deploy-scripts/src/deployer.rs:409
↓ 1 callers
Method
checkpoint
Makes a new checkpoint.
contract-testing/src/invocation/impls.rs:1478
↓ 1 callers
Method
collect_energy_for_state
Traverses the last checkpoint in the changeset and collects the energy needed to be charged for additional state bytes. Returns an [`OutOfEnergy`] er
contract-testing/src/invocation/impls.rs:1787
↓ 1 callers
Method
contains_token
(&self, token_id: &ContractTokenId)
examples/nametoken/src/lib.rs:349
↓ 1 callers
Method
contract_init_worker
Helper method for initializing contracts, which does most of the actual work. The main reason for splitting init in two is to have this method return
contract-testing/src/impls.rs:709
↓ 1 callers
Method
contract_invoke_external
Invoke an external contract entrypoint. Similar to [`Chain::contract_invoke`](Self::contract_invoke) except that it invokes/dry runs a contract on th
contract-testing/src/impls.rs:1381
↓ 1 callers
Method
contract_module
Return a clone of the [`ContractModule`] (which has an `Arc` around the artifact so cloning is cheap).
contract-testing/src/impls.rs:1559
↓ 1 callers
Method
contract_module
Returns the contract module from the topmost checkpoint on the changeset. Or, alternatively, from persistence. Preconditions: - Contract instance mus
contract-testing/src/invocation/impls.rs:1282
↓ 1 callers
Method
contract_module_reference
Looks up the contract module reference from the topmost checkpoint on the changeset. Or, alternatively, from persistence.
contract-testing/src/invocation/impls.rs:1244
↓ 1 callers
Method
contract_name
(&self, address: ContractAddress)
concordium-std/src/impls.rs:2653
↓ 1 callers
Function
contract_view_message_hash
( ctx: &ReceiveContext, _host: &mut Host<State>, crypto_primitives: &impl HasCryptoPrimitives, )
examples/cis2-multi/src/lib.rs:1321
↓ 1 callers
Function
contract_view_message_hash
( ctx: &ReceiveContext, _host: &mut Host<State>, crypto_primitives: &impl HasCryptoPrimitives, )
examples/cis3-nft-sponsored-txs/src/lib.rs:764
↓ 1 callers
Method
create_contract_address
Create a contract address by giving it the next available index.
contract-testing/src/impls.rs:1526
↓ 1 callers
Function
debug_print
()
concordium-std/src/test_env.rs:375
↓ 1 callers
Method
debug_print
(self, msg: &str, filename: &str, line: u32, column: u32)
concordium-std/src/test_env.rs:21
↓ 1 callers
Method
deploy_wasm_module
A function to deploy a wasm module on the chain. If successful, the transaction hash, the block item, and the module reference are returned. If the m
templates/default/deploy-scripts/src/deployer.rs:105
↓ 1 callers
Method
deref
(&self)
concordium-std/src/types.rs:313
↓ 1 callers
Function
deserial_signature_and_data_from_contract
Deserialize the signatures and data from the slice. Note that this does not ensure that the entire data is read, i.e., there can be leftover data in t
contract-testing/src/invocation/impls.rs:1641
↓ 1 callers
Method
drop_without_storing
Drop the ref without storing mutations to the state entry.
concordium-std/src/impls.rs:1313
↓ 1 callers
Method
emitted_debug_prints
Get an iterator over all the emitted `concordium_dbg!` events.
contract-testing/src/types.rs:761
↓ 1 callers
Function
energy_to_amount
Calculate the microCCD(mCCD) cost of energy(NRG) using the two exchange rates provided. To find the mCCD/NRG exchange rate: ```markdown euro mCCD
contract-testing/src/impls.rs:2214
↓ 1 callers
Method
eq_or_higher
(&self, key: &K)
concordium-std/src/state_btree.rs:222
↓ 1 callers
Method
eq_or_lower
(&self, key: &K)
concordium-std/src/state_btree.rs:242
↓ 1 callers
Method
estimate_energy
A function to estimate the energy needed to execute a transaction on the chain. If successful, the execution cost in energy is returned by this funct
templates/default/deploy-scripts/src/deployer.rs:297
↓ 1 callers
Method
euro_per_energy_from_external
Configure the exchange rate between euro and energy using the external node connection. This can only be used in combination with [`external_node_con
contract-testing/src/impls.rs:270
↓ 1 callers
Method
exchange_rates
(&self)
concordium-std/src/impls.rs:2620
↓ 1 callers
Function
extern_host
()
concordium-std/src/test_env.rs:122
↓ 1 callers
Method
fetch_and_add
Return a copy of the NodeId, then increments itself.
concordium-std/src/state_btree.rs:1186
↓ 1 callers
Method
get_and_update_item_prefix
(&mut self)
concordium-std/src/impls.rs:2471
↓ 1 callers
Method
get_exchange_rates_via_external_node
Get the microCCD per euro and euro per energy exchange rates by querying an external node using the external query block.
contract-testing/src/impls.rs:1692
↓ 1 callers
Method
get_file_state
Get recorded FileState (timestamp and witness) from a specific file hash.
examples/eSealing/src/lib.rs:81
↓ 1 callers
Method
get_highest_key
Internal function for getting the highest key in a subtree. Assumes the provided `node` is not a leaf and has a child at `child_index`.
concordium-std/src/state_btree.rs:899
↓ 1 callers
Function
get_init_origin
(_start: *mut u8)
concordium-std/src/prims.rs:467
↓ 1 callers
Method
get_location
Return the key under which the value is stored in the contract state trie.
concordium-std/src/impls.rs:1433
↓ 1 callers
Method
get_lowest_key
Internal function for getting the lowest key in a subtree. Assumes the provided `node` is not a leaf and has a child at `child_index`.
concordium-std/src/state_btree.rs:916
↓ 1 callers
Method
get_metadata
Gets the current MetadataUrl of specified token in the current state.
examples/cis2-dynamic-nft/src/lib.rs:274
↓ 1 callers
Function
get_receive_entrypoint
(_start: *mut u8)
concordium-std/src/prims.rs:495
↓ 1 callers
Function
get_receive_entrypoint_size
()
concordium-std/src/prims.rs:491
↓ 1 callers
Function
get_receive_invoker
(_start: *mut u8)
concordium-std/src/prims.rs:471
↓ 1 callers
Function
get_receive_owner
(_start: *mut u8)
concordium-std/src/prims.rs:487
↓ 1 callers
Function
get_receive_self_address
(_start: *mut u8)
concordium-std/src/prims.rs:475
↓ 1 callers
Function
get_receive_sender
(_start: *mut u8)
concordium-std/src/prims.rs:483
↓ 1 callers
Method
get_ref
(&self)
concordium-std/src/impls.rs:504
↓ 1 callers
Function
get_slot_time
()
concordium-std/src/prims.rs:500
↓ 1 callers
Method
get_token
Gets token of given token id
examples/cis2-dynamic-nft/src/lib.rs:281
↓ 1 callers
Function
get_wasm_module
Reads the wasm module from a given file path.
templates/default/deploy-scripts/src/main.rs:25
↓ 1 callers
Function
hash_keccak_256
(_data: *const u8, _data_len: u32, _output: *mut u8)
concordium-std/src/prims.rs:534
↓ 1 callers
Method
hash_keccak_256
(&self, data: &[u8])
concordium-std/src/impls.rs:2870
← previous
next →
301–400 of 1,394, ranked by callers