pub enum TealVersion {
V1 = 1,
V2 = 2,
V3 = 3,
V4 = 4,
V5 = 5,
V6 = 6,
V7 = 7,
V8 = 8,
V9 = 9,
V10 = 10,
V11 = 11,
}
Expand description
TEAL version enum for type-safe version handling
Variants§
V1 = 1
TEAL version 1 (initial version)
V2 = 2
TEAL version 2 (added more opcodes)
V3 = 3
TEAL version 3 (added asset opcodes)
V4 = 4
TEAL version 4 (added more crypto opcodes)
V5 = 5
TEAL version 5 (added application opcodes)
V6 = 6
TEAL version 6 (added more opcodes)
V7 = 7
TEAL version 7 (added inner transactions)
V8 = 8
TEAL version 8 (added box storage)
V9 = 9
TEAL version 9 (added more box operations)
V10 = 10
TEAL version 10 (added elliptic curve operations)
V11 = 11
TEAL version 11 (added MIMC hash and block opcode)
Implementations§
Source§impl TealVersion
impl TealVersion
Sourcepub fn supports_subroutines(self) -> bool
pub fn supports_subroutines(self) -> bool
Check if this version supports a specific feature
Sourcepub fn supports_inner_transactions(self) -> bool
pub fn supports_inner_transactions(self) -> bool
Check if this version supports inner transactions
Sourcepub fn supports_boxes(self) -> bool
pub fn supports_boxes(self) -> bool
Check if this version supports box operations
Sourcepub fn supports_advanced_crypto(self) -> bool
pub fn supports_advanced_crypto(self) -> bool
Check if this version supports advanced crypto operations
Sourcepub fn supports_extended_box_ops(self) -> bool
pub fn supports_extended_box_ops(self) -> bool
Check if this version supports extended box operations (splice, resize)
Sourcepub fn supports_elliptic_curve_ops(self) -> bool
pub fn supports_elliptic_curve_ops(self) -> bool
Check if this version supports elliptic curve operations
Sourcepub fn supports_mimc_and_block(self) -> bool
pub fn supports_mimc_and_block(self) -> bool
Check if this version supports MIMC hash and block randomness
Trait Implementations§
Source§impl Clone for TealVersion
impl Clone for TealVersion
Source§fn clone(&self) -> TealVersion
fn clone(&self) -> TealVersion
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more