Crate templar_common

Source

Re-exports§

pub use primitive_types;
pub use schemars;

Modules§

accumulator
asset
borrow
chunked_append_only_list
contract
event
fee
guard
incoming_deposit
interest_rate_strategy
market
oracle
price
registry
snapshot
supply
time_chunk
utils
vault
versioned_state
withdrawal_queue

Macros§

dec
impl_versioned_state
self_ext

Structs§

Decimal
Nanoseconds
SU256

Statics§

YEAR_PER_MS
Approximation of 1 / (1000 * 60 * 60 * 24 * 365.2425).

Traits§

UnwrapReject
Extension trait for Option and Result that panics with a custom message on failure.

Functions§

panic_with_message
Panic helper that works in both WASM and native contexts.

Type Aliases§

SI64
SI128
SU64
SU128