tari_template_lib 0.22.1

Tari template library provides abstrations that interface with the Tari validator engine
Documentation
1
2
3
4
5
6
7
8
9
10
//   Copyright 2026 The Tari Project
//   SPDX-License-Identifier: BSD-3-Clause

//! Error variants used in the template library. These are used as error messages in panics and as error codes
//! and reduce WASM binary size by avoiding the including long error messages in the binary.

/// Error message for when the engine fails to decode a value
pub const ERR_ENGINE_DECODE_FAIL: &str = "EngDcdFail";
/// Error message for when a function that requires a component context is called outside of a component context
pub const ERR_NOT_IN_COMPONENT_CONTEXT: &str = "NotInCpntCtx";