Registry / other / ink-primitives

ink-primitives

JSON →
library5.1.1rscratesunverified

Fundamental primitive types for ink! smart contracts.

# Cargo.toml [dependencies] ink_primitives = "5.1.1"
INSTALL
IMPORT
SIG · INK-PRIMITIVES
I
ink-primitives
otherrustv5.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AccountId
use ink_primitives::AccountId;

Create an AccountId for ink! smart contracts

use ink_primitives::AccountId; let account = AccountId::from([0u8; 32]); println!("Account: {:?}", account);
Debug
Known issues
gotchaOnly works within an ink! smart contract environment (requires `ink_env`).
fix
Use this crate only inside ink! contract code; not for standalone use.
affects: >=5.0.0
Upgrade
Version history
5.1.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Amazon
1
Resources
ink-primitives — cargo add ink-primitives · libregistry