Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added functions in the primitive interface #450

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,10 @@ Cargo.lock

*.wasm.v1
*.wasm.v0

# Editor specific
**/.helix

# Nix artifacts
**/*.nix
**/flake.lock
30 changes: 30 additions & 0 deletions concordium-std/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
# Changelog

## Unreleased

- Added the following functions in the primitive interface, that can only
be called in testing environments:
- `set_slot_time`
- `set_receive_self_address`
- `set_receive_self_balance`
- `set_parameter`
- `set_init_origin`
- `set_receive_invoker`
- `set_receive_sender`
- `set_receive_owner`
- `set_receive_entrypoint`
- `get_event`
- `get_event_size`

- Added a more user-friendly interface `TestEnv` that allows users to build
a test host environment using method chaining and proper types. It supports
the following operations:
- `set_slot_time`
- `set_receive_balance`
- `set_receive_self_address`
- `set_parameter`
- `set_init_origin`
- `set_receive_invoker`
- `set_receive_sender`
- `set_receive_owner`
- `set_receive_entrypoint`
- `get_event`

## concordium-std 10.1.0 (2024-04-04)

- Add support for querying the module reference and contract name of an instance,
Expand Down
1 change: 1 addition & 0 deletions concordium-std/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@
//! [test_infrastructure]: ./test_infrastructure/index.html
//! [concordium_smart_contract_testing]: https://docs.rs/concordium-smart-contract-testing

#![cfg_attr(not(feature = "std"), no_std, feature(core_intrinsics))]

Check warning on line 396 in concordium-std/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build on nightly, (wasm32-unknown-unknown, examples/account-signature-checks/Cargo.toml, concordi...

the feature `core_intrinsics` is internal to the compiler or standard library

Check warning on line 396 in concordium-std/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build on nightly, (wasm32-unknown-unknown, examples/cis2-wccd/Cargo.toml, concordium-std/build-sc...

the feature `core_intrinsics` is internal to the compiler or standard library

Check warning on line 396 in concordium-std/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build on nightly, (wasm32-unknown-unknown, examples/cis2-multi/Cargo.toml, concordium-std/build-s...

the feature `core_intrinsics` is internal to the compiler or standard library

Check warning on line 396 in concordium-std/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build on nightly, (wasm32-unknown-unknown, examples/bump-alloc-tests/Cargo.toml, concordium-std/b...

the feature `core_intrinsics` is internal to the compiler or standard library

Check warning on line 396 in concordium-std/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build on nightly, (wasm32-unknown-unknown, examples/cis2-nft/Cargo.toml, concordium-std/build-sch...

the feature `core_intrinsics` is internal to the compiler or standard library

Check warning on line 396 in concordium-std/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build on nightly, (wasm32-unknown-unknown, examples/cis2-nft/Cargo.toml)

the feature `core_intrinsics` is internal to the compiler or standard library

Check warning on line 396 in concordium-std/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build on nightly, (wasm32-unknown-unknown, examples/cis2-wccd/Cargo.toml)

the feature `core_intrinsics` is internal to the compiler or standard library

Check warning on line 396 in concordium-std/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build on nightly, (wasm32-unknown-unknown, examples/cis2-dynamic-nft/Cargo.toml, concordium-std/b...

the feature `core_intrinsics` is internal to the compiler or standard library

#[cfg(not(feature = "std"))]
pub extern crate alloc;
Expand Down Expand Up @@ -463,6 +463,7 @@
mod impls;
pub mod prims;
mod state_btree;
pub mod test_env;
mod traits;
mod types;
pub use concordium_contracts_common::*;
Expand Down
56 changes: 54 additions & 2 deletions concordium-std/src/prims.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@
pub fn state_entry_resize(entry: u64, new_size: u32) -> u32;

// Getter for the init context.
/// Address of the sender, 32 bytes
/// Address of the sender, AccountAddress.
pub fn get_init_origin(start: *mut u8);

// Getters for the receive context
Expand All @@ -215,7 +215,7 @@
pub fn get_receive_self_address(start: *mut u8);
/// Self-balance of the contract, returns the amount
pub fn get_receive_self_balance() -> u64;
/// Immediate sender of the message (either contract or account).
/// Immediate sender of the message, Address (either contract or account).
pub fn get_receive_sender(start: *mut u8);
/// Owner of the contract, AccountAddress.
pub fn get_receive_owner(start: *mut u8);
Expand All @@ -225,6 +225,10 @@

/// Write the receive entrypoint name into the given location.
/// It is assumed that the location contains enough space to write the name.
///
/// Note that the name is expected to be the receive name encoded as bytes
/// without the length, i.e. not a serialized EntrypointName (since it's
/// byte-encoding has 2 length bytes) but a String.
pub fn get_receive_entrypoint(start: *mut u8);

// Getters for the chain meta data
Expand Down Expand Up @@ -288,6 +292,54 @@
column: u32,
);

/// Set the slot time in milliseconds.
/// The slot time represents the beginning of the smart contract's block.
#[cfg(all(feature = "wasm-test", target_arch = "wasm32"))]
pub(crate) fn set_slot_time(slot_time: u64);

Check warning on line 298 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/memo/Cargo.toml)

function `set_slot_time` is never used

Check warning on line 298 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-wccd/Cargo.toml)

function `set_slot_time` is never used

Check warning on line 298 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/eSealing/Cargo.toml)

function `set_slot_time` is never used

Check warning on line 298 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/nametoken/Cargo.toml)

function `set_slot_time` is never used

Check warning on line 298 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/piggy-bank/part1/Cargo.toml)

function `set_slot_time` is never used

Check warning on line 298 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/icecream/Cargo.toml)

function `set_slot_time` is never used

Check warning on line 298 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/piggy-bank/part2/Cargo.toml)

function `set_slot_time` is never used

Check warning on line 298 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-nft/Cargo.toml)

function `set_slot_time` is never used

Check warning on line 298 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-dynamic-nft/Cargo.toml)

function `set_slot_time` is never used

Check warning on line 298 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis3-nft-sponsored-txs/Cargo.toml)

function `set_slot_time` is never used

Check warning on line 298 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/factory/Cargo.toml)

function `set_slot_time` is never used

Check warning on line 298 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/auction/Cargo.toml)

function `set_slot_time` is never used

Check warning on line 298 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/fib/Cargo.toml)

function `set_slot_time` is never used

Check warning on line 298 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/credential-registry/Cargo.toml)

function `set_slot_time` is never used

Check warning on line 298 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-multi-royalties/Cargo.toml)

function `set_slot_time` is never used

Check warning on line 298 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-multi/Cargo.toml)

function `set_slot_time` is never used

Check warning on line 298 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis5-smart-contract-wallet/Cargo.toml)

function `set_slot_time` is never used

Check warning on line 298 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/proxy/Cargo.toml)

function `set_slot_time` is never used

Check warning on line 298 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/recorder/Cargo.toml)

function `set_slot_time` is never used

Check warning on line 298 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/account-signature-checks/Cargo.toml)

function `set_slot_time` is never used

Check warning on line 298 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/two-step-transfer/Cargo.toml)

function `set_slot_time` is never used

Check warning on line 298 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/smart-contract-upgrade/contract-version2/Car...

function `set_slot_time` is never used

Check warning on line 298 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/transfer-policy-check/Cargo.toml)

function `set_slot_time` is never used

Check warning on line 298 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/voting/Cargo.toml)

function `set_slot_time` is never used

Check warning on line 298 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/signature-verifier/Cargo.toml)

function `set_slot_time` is never used

Check warning on line 298 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/bump-alloc-tests/Cargo.toml)

function `set_slot_time` is never used

Check warning on line 298 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/smart-contract-upgrade/contract-version1/Car...

function `set_slot_time` is never used

Check warning on line 298 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/sponsored-tx-enabled-auction/Cargo.toml)

function `set_slot_time` is never used

/// Sets the address of this smart contract
#[cfg(all(feature = "wasm-test", target_arch = "wasm32"))]
pub(crate) fn set_receive_self_balance(balance: u64);

Check warning on line 302 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/memo/Cargo.toml)

function `set_receive_self_balance` is never used

Check warning on line 302 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-wccd/Cargo.toml)

function `set_receive_self_balance` is never used

Check warning on line 302 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/eSealing/Cargo.toml)

function `set_receive_self_balance` is never used

Check warning on line 302 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/nametoken/Cargo.toml)

function `set_receive_self_balance` is never used

Check warning on line 302 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/piggy-bank/part1/Cargo.toml)

function `set_receive_self_balance` is never used

Check warning on line 302 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/icecream/Cargo.toml)

function `set_receive_self_balance` is never used

Check warning on line 302 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/piggy-bank/part2/Cargo.toml)

function `set_receive_self_balance` is never used

Check warning on line 302 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-nft/Cargo.toml)

function `set_receive_self_balance` is never used

Check warning on line 302 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-dynamic-nft/Cargo.toml)

function `set_receive_self_balance` is never used

Check warning on line 302 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis3-nft-sponsored-txs/Cargo.toml)

function `set_receive_self_balance` is never used

Check warning on line 302 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/factory/Cargo.toml)

function `set_receive_self_balance` is never used

Check warning on line 302 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/auction/Cargo.toml)

function `set_receive_self_balance` is never used

Check warning on line 302 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/fib/Cargo.toml)

function `set_receive_self_balance` is never used

Check warning on line 302 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/credential-registry/Cargo.toml)

function `set_receive_self_balance` is never used

Check warning on line 302 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-multi-royalties/Cargo.toml)

function `set_receive_self_balance` is never used

Check warning on line 302 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-multi/Cargo.toml)

function `set_receive_self_balance` is never used

Check warning on line 302 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis5-smart-contract-wallet/Cargo.toml)

function `set_receive_self_balance` is never used

Check warning on line 302 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/proxy/Cargo.toml)

function `set_receive_self_balance` is never used

Check warning on line 302 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/recorder/Cargo.toml)

function `set_receive_self_balance` is never used

Check warning on line 302 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/account-signature-checks/Cargo.toml)

function `set_receive_self_balance` is never used

Check warning on line 302 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/two-step-transfer/Cargo.toml)

function `set_receive_self_balance` is never used

Check warning on line 302 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/smart-contract-upgrade/contract-version2/Car...

function `set_receive_self_balance` is never used

Check warning on line 302 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/transfer-policy-check/Cargo.toml)

function `set_receive_self_balance` is never used

Check warning on line 302 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/voting/Cargo.toml)

function `set_receive_self_balance` is never used

Check warning on line 302 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/signature-verifier/Cargo.toml)

function `set_receive_self_balance` is never used

Check warning on line 302 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/bump-alloc-tests/Cargo.toml)

function `set_receive_self_balance` is never used

/// Sets the current balance of this smart contract
#[cfg(all(feature = "wasm-test", target_arch = "wasm32"))]
pub(crate) fn set_receive_self_address(start: *const u8);

Check warning on line 306 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/memo/Cargo.toml)

function `set_receive_self_address` is never used

Check warning on line 306 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-wccd/Cargo.toml)

function `set_receive_self_address` is never used

Check warning on line 306 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/eSealing/Cargo.toml)

function `set_receive_self_address` is never used

Check warning on line 306 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/nametoken/Cargo.toml)

function `set_receive_self_address` is never used

Check warning on line 306 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/piggy-bank/part1/Cargo.toml)

function `set_receive_self_address` is never used

Check warning on line 306 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/icecream/Cargo.toml)

function `set_receive_self_address` is never used

Check warning on line 306 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/piggy-bank/part2/Cargo.toml)

function `set_receive_self_address` is never used

Check warning on line 306 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-nft/Cargo.toml)

function `set_receive_self_address` is never used

Check warning on line 306 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-dynamic-nft/Cargo.toml)

function `set_receive_self_address` is never used

Check warning on line 306 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis3-nft-sponsored-txs/Cargo.toml)

function `set_receive_self_address` is never used

Check warning on line 306 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/factory/Cargo.toml)

function `set_receive_self_address` is never used

Check warning on line 306 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/auction/Cargo.toml)

function `set_receive_self_address` is never used

Check warning on line 306 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/fib/Cargo.toml)

function `set_receive_self_address` is never used

Check warning on line 306 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/credential-registry/Cargo.toml)

function `set_receive_self_address` is never used

Check warning on line 306 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-multi-royalties/Cargo.toml)

function `set_receive_self_address` is never used

Check warning on line 306 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-multi/Cargo.toml)

function `set_receive_self_address` is never used

Check warning on line 306 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis5-smart-contract-wallet/Cargo.toml)

function `set_receive_self_address` is never used

Check warning on line 306 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/proxy/Cargo.toml)

function `set_receive_self_address` is never used

Check warning on line 306 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/recorder/Cargo.toml)

function `set_receive_self_address` is never used

Check warning on line 306 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/account-signature-checks/Cargo.toml)

function `set_receive_self_address` is never used

Check warning on line 306 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/two-step-transfer/Cargo.toml)

function `set_receive_self_address` is never used

Check warning on line 306 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/smart-contract-upgrade/contract-version2/Car...

function `set_receive_self_address` is never used

Check warning on line 306 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/transfer-policy-check/Cargo.toml)

function `set_receive_self_address` is never used

Check warning on line 306 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/voting/Cargo.toml)

function `set_receive_self_address` is never used

Check warning on line 306 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/signature-verifier/Cargo.toml)

function `set_receive_self_address` is never used

Check warning on line 306 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/bump-alloc-tests/Cargo.toml)

function `set_receive_self_address` is never used

/// Sets parameter `i` of the smart contract to the given value.
#[cfg(all(feature = "wasm-test", target_arch = "wasm32"))]
pub(crate) fn set_parameter(i: u32, start: *const u8, length: u32);

Check warning on line 310 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/memo/Cargo.toml)

function `set_parameter` is never used

Check warning on line 310 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-wccd/Cargo.toml)

function `set_parameter` is never used

Check warning on line 310 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/eSealing/Cargo.toml)

function `set_parameter` is never used

Check warning on line 310 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/nametoken/Cargo.toml)

function `set_parameter` is never used

Check warning on line 310 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/piggy-bank/part1/Cargo.toml)

function `set_parameter` is never used

Check warning on line 310 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/icecream/Cargo.toml)

function `set_parameter` is never used

Check warning on line 310 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/piggy-bank/part2/Cargo.toml)

function `set_parameter` is never used

Check warning on line 310 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-nft/Cargo.toml)

function `set_parameter` is never used

Check warning on line 310 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-dynamic-nft/Cargo.toml)

function `set_parameter` is never used

Check warning on line 310 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis3-nft-sponsored-txs/Cargo.toml)

function `set_parameter` is never used

Check warning on line 310 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/factory/Cargo.toml)

function `set_parameter` is never used

Check warning on line 310 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/auction/Cargo.toml)

function `set_parameter` is never used

Check warning on line 310 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/fib/Cargo.toml)

function `set_parameter` is never used

Check warning on line 310 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/credential-registry/Cargo.toml)

function `set_parameter` is never used

Check warning on line 310 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-multi-royalties/Cargo.toml)

function `set_parameter` is never used

Check warning on line 310 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-multi/Cargo.toml)

function `set_parameter` is never used

Check warning on line 310 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis5-smart-contract-wallet/Cargo.toml)

function `set_parameter` is never used

Check warning on line 310 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/proxy/Cargo.toml)

function `set_parameter` is never used

Check warning on line 310 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/recorder/Cargo.toml)

function `set_parameter` is never used

Check warning on line 310 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/account-signature-checks/Cargo.toml)

function `set_parameter` is never used

Check warning on line 310 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/two-step-transfer/Cargo.toml)

function `set_parameter` is never used

Check warning on line 310 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/smart-contract-upgrade/contract-version2/Car...

function `set_parameter` is never used

Check warning on line 310 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/transfer-policy-check/Cargo.toml)

function `set_parameter` is never used

Check warning on line 310 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/voting/Cargo.toml)

function `set_parameter` is never used

Check warning on line 310 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/signature-verifier/Cargo.toml)

function `set_parameter` is never used

Check warning on line 310 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/bump-alloc-tests/Cargo.toml)

function `set_parameter` is never used

/// Sets the address of the sender, AccountAddress
#[cfg(all(feature = "wasm-test", target_arch = "wasm32"))]
pub(crate) fn set_init_origin(start: *const u8);

Check warning on line 314 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/memo/Cargo.toml)

function `set_init_origin` is never used

Check warning on line 314 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-wccd/Cargo.toml)

function `set_init_origin` is never used

Check warning on line 314 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/eSealing/Cargo.toml)

function `set_init_origin` is never used

Check warning on line 314 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/nametoken/Cargo.toml)

function `set_init_origin` is never used

Check warning on line 314 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/piggy-bank/part1/Cargo.toml)

function `set_init_origin` is never used

Check warning on line 314 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/icecream/Cargo.toml)

function `set_init_origin` is never used

Check warning on line 314 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/piggy-bank/part2/Cargo.toml)

function `set_init_origin` is never used

Check warning on line 314 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-nft/Cargo.toml)

function `set_init_origin` is never used

Check warning on line 314 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-dynamic-nft/Cargo.toml)

function `set_init_origin` is never used

Check warning on line 314 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis3-nft-sponsored-txs/Cargo.toml)

function `set_init_origin` is never used

Check warning on line 314 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/factory/Cargo.toml)

function `set_init_origin` is never used

Check warning on line 314 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/auction/Cargo.toml)

function `set_init_origin` is never used

Check warning on line 314 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/fib/Cargo.toml)

function `set_init_origin` is never used

Check warning on line 314 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/credential-registry/Cargo.toml)

function `set_init_origin` is never used

Check warning on line 314 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-multi-royalties/Cargo.toml)

function `set_init_origin` is never used

Check warning on line 314 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-multi/Cargo.toml)

function `set_init_origin` is never used

Check warning on line 314 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis5-smart-contract-wallet/Cargo.toml)

function `set_init_origin` is never used

Check warning on line 314 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/proxy/Cargo.toml)

function `set_init_origin` is never used

Check warning on line 314 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/recorder/Cargo.toml)

function `set_init_origin` is never used

Check warning on line 314 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/account-signature-checks/Cargo.toml)

function `set_init_origin` is never used

Check warning on line 314 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/two-step-transfer/Cargo.toml)

function `set_init_origin` is never used

Check warning on line 314 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/smart-contract-upgrade/contract-version2/Car...

function `set_init_origin` is never used

Check warning on line 314 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/transfer-policy-check/Cargo.toml)

function `set_init_origin` is never used

Check warning on line 314 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/voting/Cargo.toml)

function `set_init_origin` is never used

Check warning on line 314 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/signature-verifier/Cargo.toml)

function `set_init_origin` is never used

Check warning on line 314 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/bump-alloc-tests/Cargo.toml)

function `set_init_origin` is never used

/// Set the invoker of the top-level transaction, AccountAddress.
#[cfg(all(feature = "wasm-test", target_arch = "wasm32"))]
pub(crate) fn set_receive_invoker(start: *const u8);

Check warning on line 318 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/memo/Cargo.toml)

function `set_receive_invoker` is never used

Check warning on line 318 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-wccd/Cargo.toml)

function `set_receive_invoker` is never used

Check warning on line 318 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/eSealing/Cargo.toml)

function `set_receive_invoker` is never used

Check warning on line 318 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/nametoken/Cargo.toml)

function `set_receive_invoker` is never used

Check warning on line 318 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/piggy-bank/part1/Cargo.toml)

function `set_receive_invoker` is never used

Check warning on line 318 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/icecream/Cargo.toml)

function `set_receive_invoker` is never used

Check warning on line 318 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/piggy-bank/part2/Cargo.toml)

function `set_receive_invoker` is never used

Check warning on line 318 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-nft/Cargo.toml)

function `set_receive_invoker` is never used

Check warning on line 318 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-dynamic-nft/Cargo.toml)

function `set_receive_invoker` is never used

Check warning on line 318 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis3-nft-sponsored-txs/Cargo.toml)

function `set_receive_invoker` is never used

Check warning on line 318 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/factory/Cargo.toml)

function `set_receive_invoker` is never used

Check warning on line 318 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/auction/Cargo.toml)

function `set_receive_invoker` is never used

Check warning on line 318 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/fib/Cargo.toml)

function `set_receive_invoker` is never used

Check warning on line 318 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/credential-registry/Cargo.toml)

function `set_receive_invoker` is never used

Check warning on line 318 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-multi-royalties/Cargo.toml)

function `set_receive_invoker` is never used

Check warning on line 318 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-multi/Cargo.toml)

function `set_receive_invoker` is never used

Check warning on line 318 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis5-smart-contract-wallet/Cargo.toml)

function `set_receive_invoker` is never used

Check warning on line 318 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/proxy/Cargo.toml)

function `set_receive_invoker` is never used

Check warning on line 318 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/recorder/Cargo.toml)

function `set_receive_invoker` is never used

Check warning on line 318 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/account-signature-checks/Cargo.toml)

function `set_receive_invoker` is never used

Check warning on line 318 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/two-step-transfer/Cargo.toml)

function `set_receive_invoker` is never used

Check warning on line 318 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/smart-contract-upgrade/contract-version2/Car...

function `set_receive_invoker` is never used

Check warning on line 318 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/transfer-policy-check/Cargo.toml)

function `set_receive_invoker` is never used

Check warning on line 318 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/voting/Cargo.toml)

function `set_receive_invoker` is never used

Check warning on line 318 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/signature-verifier/Cargo.toml)

function `set_receive_invoker` is never used

Check warning on line 318 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/bump-alloc-tests/Cargo.toml)

function `set_receive_invoker` is never used

/// Set the immediate sender of the message, Address (either contract or
/// account).
#[cfg(all(feature = "wasm-test", target_arch = "wasm32"))]
pub(crate) fn set_receive_sender(start: *const u8);

Check warning on line 323 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/memo/Cargo.toml)

function `set_receive_sender` is never used

Check warning on line 323 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-wccd/Cargo.toml)

function `set_receive_sender` is never used

Check warning on line 323 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/eSealing/Cargo.toml)

function `set_receive_sender` is never used

Check warning on line 323 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/nametoken/Cargo.toml)

function `set_receive_sender` is never used

Check warning on line 323 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/piggy-bank/part1/Cargo.toml)

function `set_receive_sender` is never used

Check warning on line 323 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/icecream/Cargo.toml)

function `set_receive_sender` is never used

Check warning on line 323 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/piggy-bank/part2/Cargo.toml)

function `set_receive_sender` is never used

Check warning on line 323 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-nft/Cargo.toml)

function `set_receive_sender` is never used

Check warning on line 323 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-dynamic-nft/Cargo.toml)

function `set_receive_sender` is never used

Check warning on line 323 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis3-nft-sponsored-txs/Cargo.toml)

function `set_receive_sender` is never used

Check warning on line 323 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/factory/Cargo.toml)

function `set_receive_sender` is never used

Check warning on line 323 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/auction/Cargo.toml)

function `set_receive_sender` is never used

Check warning on line 323 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/fib/Cargo.toml)

function `set_receive_sender` is never used

Check warning on line 323 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/credential-registry/Cargo.toml)

function `set_receive_sender` is never used

Check warning on line 323 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-multi-royalties/Cargo.toml)

function `set_receive_sender` is never used

Check warning on line 323 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-multi/Cargo.toml)

function `set_receive_sender` is never used

Check warning on line 323 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis5-smart-contract-wallet/Cargo.toml)

function `set_receive_sender` is never used

Check warning on line 323 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/proxy/Cargo.toml)

function `set_receive_sender` is never used

Check warning on line 323 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/recorder/Cargo.toml)

function `set_receive_sender` is never used

Check warning on line 323 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/account-signature-checks/Cargo.toml)

function `set_receive_sender` is never used

Check warning on line 323 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/two-step-transfer/Cargo.toml)

function `set_receive_sender` is never used

Check warning on line 323 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/smart-contract-upgrade/contract-version2/Car...

function `set_receive_sender` is never used

Check warning on line 323 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/transfer-policy-check/Cargo.toml)

function `set_receive_sender` is never used

Check warning on line 323 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/voting/Cargo.toml)

function `set_receive_sender` is never used

Check warning on line 323 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/signature-verifier/Cargo.toml)

function `set_receive_sender` is never used

Check warning on line 323 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/bump-alloc-tests/Cargo.toml)

function `set_receive_sender` is never used

/// Owner of the contract, AccountAddress.
#[cfg(all(feature = "wasm-test", target_arch = "wasm32"))]
pub(crate) fn set_receive_owner(start: *const u8);

Check warning on line 327 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/memo/Cargo.toml)

function `set_receive_owner` is never used

Check warning on line 327 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-wccd/Cargo.toml)

function `set_receive_owner` is never used

Check warning on line 327 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/eSealing/Cargo.toml)

function `set_receive_owner` is never used

Check warning on line 327 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/nametoken/Cargo.toml)

function `set_receive_owner` is never used

Check warning on line 327 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/piggy-bank/part1/Cargo.toml)

function `set_receive_owner` is never used

Check warning on line 327 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/icecream/Cargo.toml)

function `set_receive_owner` is never used

Check warning on line 327 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/piggy-bank/part2/Cargo.toml)

function `set_receive_owner` is never used

Check warning on line 327 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-nft/Cargo.toml)

function `set_receive_owner` is never used

Check warning on line 327 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-dynamic-nft/Cargo.toml)

function `set_receive_owner` is never used

Check warning on line 327 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis3-nft-sponsored-txs/Cargo.toml)

function `set_receive_owner` is never used

Check warning on line 327 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/factory/Cargo.toml)

function `set_receive_owner` is never used

Check warning on line 327 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/auction/Cargo.toml)

function `set_receive_owner` is never used

Check warning on line 327 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/fib/Cargo.toml)

function `set_receive_owner` is never used

Check warning on line 327 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/credential-registry/Cargo.toml)

function `set_receive_owner` is never used

Check warning on line 327 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-multi-royalties/Cargo.toml)

function `set_receive_owner` is never used

Check warning on line 327 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-multi/Cargo.toml)

function `set_receive_owner` is never used

Check warning on line 327 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis5-smart-contract-wallet/Cargo.toml)

function `set_receive_owner` is never used

Check warning on line 327 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/proxy/Cargo.toml)

function `set_receive_owner` is never used

Check warning on line 327 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/recorder/Cargo.toml)

function `set_receive_owner` is never used

Check warning on line 327 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/account-signature-checks/Cargo.toml)

function `set_receive_owner` is never used

Check warning on line 327 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/two-step-transfer/Cargo.toml)

function `set_receive_owner` is never used

Check warning on line 327 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/smart-contract-upgrade/contract-version2/Car...

function `set_receive_owner` is never used

Check warning on line 327 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/transfer-policy-check/Cargo.toml)

function `set_receive_owner` is never used

Check warning on line 327 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/voting/Cargo.toml)

function `set_receive_owner` is never used

Check warning on line 327 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/signature-verifier/Cargo.toml)

function `set_receive_owner` is never used

Check warning on line 327 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/bump-alloc-tests/Cargo.toml)

function `set_receive_owner` is never used

/// Set the receive entrypoint name, EntryPointName.
#[cfg(all(feature = "wasm-test", target_arch = "wasm32"))]
pub(crate) fn set_receive_entrypoint(start: *const u8);

Check warning on line 331 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/memo/Cargo.toml)

function `set_receive_entrypoint` is never used

Check warning on line 331 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-wccd/Cargo.toml)

function `set_receive_entrypoint` is never used

Check warning on line 331 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/eSealing/Cargo.toml)

function `set_receive_entrypoint` is never used

Check warning on line 331 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/nametoken/Cargo.toml)

function `set_receive_entrypoint` is never used

Check warning on line 331 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/piggy-bank/part1/Cargo.toml)

function `set_receive_entrypoint` is never used

Check warning on line 331 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/icecream/Cargo.toml)

function `set_receive_entrypoint` is never used

Check warning on line 331 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/piggy-bank/part2/Cargo.toml)

function `set_receive_entrypoint` is never used

Check warning on line 331 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-nft/Cargo.toml)

function `set_receive_entrypoint` is never used

Check warning on line 331 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-dynamic-nft/Cargo.toml)

function `set_receive_entrypoint` is never used

Check warning on line 331 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis3-nft-sponsored-txs/Cargo.toml)

function `set_receive_entrypoint` is never used

Check warning on line 331 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/factory/Cargo.toml)

function `set_receive_entrypoint` is never used

Check warning on line 331 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/auction/Cargo.toml)

function `set_receive_entrypoint` is never used

Check warning on line 331 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/fib/Cargo.toml)

function `set_receive_entrypoint` is never used

Check warning on line 331 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/credential-registry/Cargo.toml)

function `set_receive_entrypoint` is never used

Check warning on line 331 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-multi-royalties/Cargo.toml)

function `set_receive_entrypoint` is never used

Check warning on line 331 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-multi/Cargo.toml)

function `set_receive_entrypoint` is never used

Check warning on line 331 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis5-smart-contract-wallet/Cargo.toml)

function `set_receive_entrypoint` is never used

Check warning on line 331 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/proxy/Cargo.toml)

function `set_receive_entrypoint` is never used

Check warning on line 331 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/recorder/Cargo.toml)

function `set_receive_entrypoint` is never used

Check warning on line 331 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/account-signature-checks/Cargo.toml)

function `set_receive_entrypoint` is never used

Check warning on line 331 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/two-step-transfer/Cargo.toml)

function `set_receive_entrypoint` is never used

Check warning on line 331 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/smart-contract-upgrade/contract-version2/Car...

function `set_receive_entrypoint` is never used

Check warning on line 331 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/transfer-policy-check/Cargo.toml)

function `set_receive_entrypoint` is never used

Check warning on line 331 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/voting/Cargo.toml)

function `set_receive_entrypoint` is never used

Check warning on line 331 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/signature-verifier/Cargo.toml)

function `set_receive_entrypoint` is never used

Check warning on line 331 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/bump-alloc-tests/Cargo.toml)

function `set_receive_entrypoint` is never used

/// Gets event number `i` in the smart contract state. Returns `-1` if `i`
/// is an invalid index. Otherwise returns bytes written.
#[cfg(all(feature = "wasm-test", target_arch = "wasm32"))]
pub(crate) fn get_event(i: u32, start: *mut u8) -> i32;

Check warning on line 336 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/memo/Cargo.toml)

function `get_event` is never used

Check warning on line 336 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-wccd/Cargo.toml)

function `get_event` is never used

Check warning on line 336 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/eSealing/Cargo.toml)

function `get_event` is never used

Check warning on line 336 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/nametoken/Cargo.toml)

function `get_event` is never used

Check warning on line 336 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/piggy-bank/part1/Cargo.toml)

function `get_event` is never used

Check warning on line 336 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/icecream/Cargo.toml)

function `get_event` is never used

Check warning on line 336 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/piggy-bank/part2/Cargo.toml)

function `get_event` is never used

Check warning on line 336 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-nft/Cargo.toml)

function `get_event` is never used

Check warning on line 336 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-dynamic-nft/Cargo.toml)

function `get_event` is never used

Check warning on line 336 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis3-nft-sponsored-txs/Cargo.toml)

function `get_event` is never used

Check warning on line 336 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/factory/Cargo.toml)

function `get_event` is never used

Check warning on line 336 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/auction/Cargo.toml)

function `get_event` is never used

Check warning on line 336 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/fib/Cargo.toml)

function `get_event` is never used

Check warning on line 336 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/credential-registry/Cargo.toml)

function `get_event` is never used

Check warning on line 336 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-multi-royalties/Cargo.toml)

function `get_event` is never used

Check warning on line 336 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis2-multi/Cargo.toml)

function `get_event` is never used

Check warning on line 336 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/cis5-smart-contract-wallet/Cargo.toml)

function `get_event` is never used

Check warning on line 336 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/proxy/Cargo.toml)

function `get_event` is never used

Check warning on line 336 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/recorder/Cargo.toml)

function `get_event` is never used

Check warning on line 336 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/account-signature-checks/Cargo.toml)

function `get_event` is never used

Check warning on line 336 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/two-step-transfer/Cargo.toml)

function `get_event` is never used

Check warning on line 336 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/smart-contract-upgrade/contract-version2/Car...

function `get_event` is never used

Check warning on line 336 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/transfer-policy-check/Cargo.toml)

function `get_event` is never used

Check warning on line 336 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/voting/Cargo.toml)

function `get_event` is never used

Check warning on line 336 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/signature-verifier/Cargo.toml)

function `get_event` is never used

Check warning on line 336 in concordium-std/src/prims.rs

View workflow job for this annotation

GitHub Actions / Clippy on examples (wasm32-unknown-unknown, examples/bump-alloc-tests/Cargo.toml)

function `get_event` is never used

/// Gets the size of event number `i` in the smart contract state. Returns
/// `-1` if `i` is an invalid index.
#[cfg(all(feature = "wasm-test", target_arch = "wasm32"))]
pub(crate) fn get_event_size(i: u32) -> i32;

#[cfg(feature = "debug")]
/// Emit text together with the source location.
/// This is used as the equivalent of the `dbg!` macro when the
Expand Down
Loading
Loading