we_cdk/lib.rs
1#![cfg_attr(not(doctest), doc = include_str!("../README.md"))]
2
3pub mod macros;
4
5pub use we_contract_proc_macro::*;
6pub use wevm;
7
8/// Integer is an integer data type.
9pub type Integer = i64;
10/// Boolean is a boolean data type.
11pub type Boolean = bool;
12/// Binary is a data type for byte array.
13pub type Binary<'a> = &'a [u8];
14/// String is a string data type.
15/// Strings are UTF-8 encoded.
16pub type String<'a> = &'a str;
17
18/// Payment is a payment that can be attached when calling the function of another contract.
19pub type Payment<'a> = (&'a [u8], i64);
20
21#[doc(hidden)]
22pub const SYSTEM_TOKEN: &[u8] = &[0u8; 0];
23#[doc(hidden)]
24pub const THIS: &[u8] = &[0u8; 0];