world 0.2.6

Bolt World program
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use anchor_lang::prelude::*;

#[error_code]
pub enum WorldError {
    #[msg("Invalid authority for instruction")]
    InvalidAuthority,
    #[msg("Invalid system output")]
    InvalidSystemOutput,
    #[msg("The provided world account does not match the expected PDA.")]
    WorldAccountMismatch,
    #[msg("Exceed the maximum number of authorities.")]
    TooManyAuthorities,
    #[msg("The provided authority not found")]
    AuthorityNotFound,
    #[msg("The system is not approved in this world instance")]
    SystemNotApproved,
}