b3_utils 0.13.1

Utility functions for building on the Internet Computer
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use candid::CandidType;
use serde::{Deserialize, Serialize};

pub type WasmSize = usize;
pub type WasmHash = [u8; 32];
pub type WasmHashString = String;
pub type WasmVersion = String;
pub type Blob = Vec<u8>;

#[derive(CandidType, Deserialize, Serialize, Clone)]
pub struct WasmDetails {
    pub hash: WasmHash,
    pub size: WasmSize,
}