MCPcopy Create free account

hub / github.com/Concordium/concordium-rust-smart-contracts / functions

Functions1,394 in github.com/Concordium/concordium-rust-smart-contracts

↓ 2 callersMethodserial
(&self, out: &mut W)
examples/proxy/src/lib.rs:33
↓ 2 callersMethodserial
(&self, out: &mut W)
examples/credential-registry/src/lib.rs:536
↓ 2 callersMethodset_implementors
Set implementors for a given standard.
templates/cis2-nft/src/lib.rs:273
↓ 2 callersMethodset_receive_sender
Set the immediate sender of the message (either contract or account).
concordium-std/src/test_env.rs:88
↓ 2 callersMethodsize_in_bytes
The size in bytes, i.e. `PageCount * PAGE_SIZE`.
concordium-std/src/bump_alloc.rs:34
↓ 2 callersMethodsplit_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 callersFunctionstate_delete_entry
(_entry: u64)
concordium-std/src/prims.rs:408
↓ 2 callersFunctiontransfer
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 callersFunctiontransfer
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 callersMethodtransfer
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 callersMethodupdate_credential_metadata
( &mut self, credential_id: &CredentialHolderId, metadata: MetadataUrl, )
examples/credential-registry/src/lib.rs:240
↓ 2 callersFunctionupdate_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 callersFunctionupdate_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 callersFunctionupgrade
(_module_ref: *const u8)
concordium-std/src/prims.rs:375
↓ 2 callersMethodverify_ecdsa_secp256k1_signature
( &self, public_key: PublicKeyEcdsaSecp256k1, signature: SignatureEcdsaSecp256k1,
concordium-std/src/impls.rs:2830
↓ 2 callersMethodview_credential_info
( &self, credential_id: CredentialHolderId, )
examples/credential-registry/src/lib.rs:194
↓ 2 callersMethodwrite
(&mut self, buf: &[u8])
concordium-std/src/impls.rs:194
↓ 1 callersMethodaccount_balance
Returns the balance of an account if it exists.
contract-testing/src/impls.rs:1534
↓ 1 callersMethodaccount_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 callersMethodaccount_keys
Looks up the account keys.
contract-testing/src/invocation/impls.rs:1367
↓ 1 callersMethodadd_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 callersMethodadd_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 callersMethodadd_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 callersMethodadd_file
Add a new file hash (replaces existing file if present).
examples/eSealing/src/lib.rs:86
↓ 1 callersMethodadd_metadata
(&mut self, metadata: MetadataUrl)
examples/cis2-dynamic-nft/src/lib.rs:120
↓ 1 callersMethodadd_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 callersMethodadd_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 callersMethodadd_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 callersMethodadd_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 callersMethodadd_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 callersMethodadd_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 callersMethodadd_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 callersMethodadd_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 callersFunctionalign_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 callersFunctionappender
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 callersMethodattributes
(&self)
concordium-std/src/impls.rs:1784
↓ 1 callersMethodbalance
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 callersMethodbalance
( &self, now: Timestamp, token_id: &ContractTokenId, address: &Address, )
examples/nametoken/src/lib.rs:359
↓ 1 callersMethodbalance
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 callersMethodbalance
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 callersMethodbalance
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 callersMethodbalance
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 callersMethodbalance
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 callersMethodbalance
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 callersMethodbalance_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 callersMethodbalance_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 callersMethodblock_time
(&self)
concordium-std/src/traits.rs:77
↓ 1 callersMethodblock_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 callersMethodburn
Burns an amount of tokens from a given owner address.
examples/cis2-multi/src/lib.rs:678
↓ 1 callersMethodburn
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 callersMethodcheck_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 callersMethodcheck_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 callersMethodcheck_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 callersMethodcheckpoint
Makes a new checkpoint.
contract-testing/src/invocation/impls.rs:1478
↓ 1 callersMethodcollect_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 callersMethodcontains_token
(&self, token_id: &ContractTokenId)
examples/nametoken/src/lib.rs:349
↓ 1 callersMethodcontract_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 callersMethodcontract_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 callersMethodcontract_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 callersMethodcontract_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 callersMethodcontract_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 callersMethodcontract_name
(&self, address: ContractAddress)
concordium-std/src/impls.rs:2653
↓ 1 callersFunctioncontract_view_message_hash
( ctx: &ReceiveContext, _host: &mut Host<State>, crypto_primitives: &impl HasCryptoPrimitives, )
examples/cis2-multi/src/lib.rs:1321
↓ 1 callersFunctioncontract_view_message_hash
( ctx: &ReceiveContext, _host: &mut Host<State>, crypto_primitives: &impl HasCryptoPrimitives, )
examples/cis3-nft-sponsored-txs/src/lib.rs:764
↓ 1 callersMethodcreate_contract_address
Create a contract address by giving it the next available index.
contract-testing/src/impls.rs:1526
↓ 1 callersFunctiondebug_print
()
concordium-std/src/test_env.rs:375
↓ 1 callersMethoddebug_print
(self, msg: &str, filename: &str, line: u32, column: u32)
concordium-std/src/test_env.rs:21
↓ 1 callersMethoddeploy_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 callersMethodderef
(&self)
concordium-std/src/types.rs:313
↓ 1 callersFunctiondeserial_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 callersMethoddrop_without_storing
Drop the ref without storing mutations to the state entry.
concordium-std/src/impls.rs:1313
↓ 1 callersMethodemitted_debug_prints
Get an iterator over all the emitted `concordium_dbg!` events.
contract-testing/src/types.rs:761
↓ 1 callersFunctionenergy_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 callersMethodeq_or_higher
(&self, key: &K)
concordium-std/src/state_btree.rs:222
↓ 1 callersMethodeq_or_lower
(&self, key: &K)
concordium-std/src/state_btree.rs:242
↓ 1 callersMethodestimate_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 callersMethodeuro_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 callersMethodexchange_rates
(&self)
concordium-std/src/impls.rs:2620
↓ 1 callersFunctionextern_host
()
concordium-std/src/test_env.rs:122
↓ 1 callersMethodfetch_and_add
Return a copy of the NodeId, then increments itself.
concordium-std/src/state_btree.rs:1186
↓ 1 callersMethodget_and_update_item_prefix
(&mut self)
concordium-std/src/impls.rs:2471
↓ 1 callersMethodget_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 callersMethodget_file_state
Get recorded FileState (timestamp and witness) from a specific file hash.
examples/eSealing/src/lib.rs:81
↓ 1 callersMethodget_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 callersFunctionget_init_origin
(_start: *mut u8)
concordium-std/src/prims.rs:467
↓ 1 callersMethodget_location
Return the key under which the value is stored in the contract state trie.
concordium-std/src/impls.rs:1433
↓ 1 callersMethodget_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 callersMethodget_metadata
Gets the current MetadataUrl of specified token in the current state.
examples/cis2-dynamic-nft/src/lib.rs:274
↓ 1 callersFunctionget_receive_entrypoint
(_start: *mut u8)
concordium-std/src/prims.rs:495
↓ 1 callersFunctionget_receive_entrypoint_size
()
concordium-std/src/prims.rs:491
↓ 1 callersFunctionget_receive_invoker
(_start: *mut u8)
concordium-std/src/prims.rs:471
↓ 1 callersFunctionget_receive_owner
(_start: *mut u8)
concordium-std/src/prims.rs:487
↓ 1 callersFunctionget_receive_self_address
(_start: *mut u8)
concordium-std/src/prims.rs:475
↓ 1 callersFunctionget_receive_sender
(_start: *mut u8)
concordium-std/src/prims.rs:483
↓ 1 callersMethodget_ref
(&self)
concordium-std/src/impls.rs:504
↓ 1 callersFunctionget_slot_time
()
concordium-std/src/prims.rs:500
↓ 1 callersMethodget_token
Gets token of given token id
examples/cis2-dynamic-nft/src/lib.rs:281
↓ 1 callersFunctionget_wasm_module
Reads the wasm module from a given file path.
templates/default/deploy-scripts/src/main.rs:25
↓ 1 callersFunctionhash_keccak_256
(_data: *const u8, _data_len: u32, _output: *mut u8)
concordium-std/src/prims.rs:534
↓ 1 callersMethodhash_keccak_256
(&self, data: &[u8])
concordium-std/src/impls.rs:2870
← previousnext →301–400 of 1,394, ranked by callers