Attribute Macro bolt_attribute_bolt_program::bolt_program
source · #[bolt_program]Expand description
This macro attribute is used to define a BOLT component.
Bolt components are themselves programs that can be called by other programs.
§Example
ⓘ
#[bolt_program(Position)]
#[program]
pub mod component_position {
use super::*;
}
#[account]
#[component]
pub struct Position {
pub x: i64,
pub y: i64,
pub z: i64,
}