Registry / other / casper-contract

casper-contract

JSON →
library5.1.1rscratesunverified

A library for developing Casper network smart contracts.

# Cargo.toml [dependencies] casper-contract = "5.1.1"
INSTALL
IMPORT
SIG · CASPER-CONTRACT
C
casper-contract
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.

put_key
use casper_contract::contract_api::runtime::put_key;

Stores a key in the Casper contract storage.

use casper_contract::contract_api::runtime::put_key; use casper_types::Key; #[no_mangle] pub extern "C" fn call() { let key = Key::Hash([0u8; 32]); put_key("my_key", key); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
5.1.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Meta
1
Resources
casper-contract — cargo add casper-contract · libregistry