{ "version": "0.1.5", "name": "world", "instructions": [ { "name": "add_entity", "accounts": [ { "name": "payer", "isMut": true, "isSigner": true }, { "name": "entity", "isMut": true }, { "name": "world", "isMut": true }, { "name": "system_program", "address": "11111111111111111111111111111111" } ], "args": [ { "name": "extra_seed", "type": { "option": "string" }, "attrs": [] } ], "discriminant": { "type": "u8", "value": 163, "bytes": [163, 241, 57, 35, 244, 244, 48, 57] } }, { "name": "apply", "accounts": [ { "name": "component_program" }, { "name": "bolt_system" }, { "name": "bolt_component", "isMut": true }, { "name": "authority", "isSigner": true }, { "name": "instruction_sysvar_account", "address": "Sysvar1nstructions1111111111111111111111111" } ], "args": [ { "name": "args", "type": "bytes", "attrs": [] } ], "discriminant": { "type": "u8", "value": 248, "bytes": [248, 243, 145, 24, 105, 50, 162, 225] } }, { "name": "apply2", "accounts": [ { "name": "bolt_system" }, { "name": "component_program_1" }, { "name": "bolt_component_1", "isMut": true }, { "name": "component_program_2" }, { "name": "bolt_component_2", "isMut": true }, { "name": "authority", "isSigner": true }, { "name": "instruction_sysvar_account", "address": "Sysvar1nstructions1111111111111111111111111" } ], "args": [ { "name": "args", "type": "bytes", "attrs": [] } ], "discriminant": { "type": "u8", "value": 120, "bytes": [120, 32, 116, 154, 158, 159, 208, 73] } }, { "name": "apply3", "accounts": [ { "name": "bolt_system" }, { "name": "component_program_1" }, { "name": "bolt_component_1", "isMut": true }, { "name": "component_program_2" }, { "name": "bolt_component_2", "isMut": true }, { "name": "component_program_3" }, { "name": "bolt_component_3", "isMut": true }, { "name": "authority", "isSigner": true }, { "name": "instruction_sysvar_account", "address": "Sysvar1nstructions1111111111111111111111111" } ], "args": [ { "name": "args", "type": "bytes", "attrs": [] } ], "discriminant": { "type": "u8", "value": 254, "bytes": [254, 146, 49, 7, 236, 131, 105, 221] } }, { "name": "apply4", "accounts": [ { "name": "bolt_system" }, { "name": "component_program_1" }, { "name": "bolt_component_1", "isMut": true }, { "name": "component_program_2" }, { "name": "bolt_component_2", "isMut": true }, { "name": "component_program_3" }, { "name": "bolt_component_3", "isMut": true }, { "name": "component_program_4" }, { "name": "bolt_component_4", "isMut": true }, { "name": "authority", "isSigner": true }, { "name": "instruction_sysvar_account", "address": "Sysvar1nstructions1111111111111111111111111" } ], "args": [ { "name": "args", "type": "bytes", "attrs": [] } ], "discriminant": { "type": "u8", "value": 223, "bytes": [223, 104, 24, 79, 252, 196, 14, 109] } }, { "name": "apply5", "accounts": [ { "name": "bolt_system" }, { "name": "component_program_1" }, { "name": "bolt_component_1", "isMut": true }, { "name": "component_program_2" }, { "name": "bolt_component_2", "isMut": true }, { "name": "component_program_3" }, { "name": "bolt_component_3", "isMut": true }, { "name": "component_program_4" }, { "name": "bolt_component_4", "isMut": true }, { "name": "component_program_5" }, { "name": "bolt_component_5", "isMut": true }, { "name": "authority", "isSigner": true }, { "name": "instruction_sysvar_account", "address": "Sysvar1nstructions1111111111111111111111111" } ], "args": [ { "name": "args", "type": "bytes", "attrs": [] } ], "discriminant": { "type": "u8", "value": 70, "bytes": [70, 164, 214, 28, 136, 116, 84, 153] } }, { "name": "initialize_component", "accounts": [ { "name": "payer", "isMut": true, "isSigner": true }, { "name": "data", "isMut": true }, { "name": "entity" }, { "name": "component_program" }, { "name": "authority" }, { "name": "instruction_sysvar_account", "address": "Sysvar1nstructions1111111111111111111111111" }, { "name": "system_program", "address": "11111111111111111111111111111111" } ], "args": [], "discriminant": { "type": "u8", "value": 36, "bytes": [36, 143, 233, 113, 12, 234, 61, 30] } }, { "name": "initialize_new_world", "accounts": [ { "name": "payer", "isMut": true, "isSigner": true }, { "name": "world", "isMut": true }, { "name": "registry", "isMut": true, "address": "EHLkWwAT9oebVv9ht3mtqrvHhRVMKrt54tF3MfHTey2K" }, { "name": "system_program", "address": "11111111111111111111111111111111" } ], "args": [], "discriminant": { "type": "u8", "value": 23, "bytes": [23, 96, 88, 194, 200, 203, 200, 98] } }, { "name": "initialize_registry", "accounts": [ { "name": "registry", "isMut": true }, { "name": "payer", "isMut": true, "isSigner": true }, { "name": "system_program", "address": "11111111111111111111111111111111" } ], "args": [], "discriminant": { "type": "u8", "value": 189, "bytes": [189, 181, 20, 17, 174, 57, 249, 59] } } ], "accounts": [ { "name": "Entity", "type": { "kind": "struct", "fields": [ { "name": "id", "type": "u64", "attrs": [] } ] } }, { "name": "Registry", "type": { "kind": "struct", "fields": [ { "name": "worlds", "type": "u64", "attrs": [] } ] } }, { "name": "World", "type": { "kind": "struct", "fields": [ { "name": "id", "type": "u64", "attrs": [] }, { "name": "entities", "type": "u64", "attrs": [] } ] } } ], "types": [ { "name": "Entity", "type": { "kind": "struct", "fields": [ { "name": "id", "type": "u64", "attrs": [] } ] } }, { "name": "Registry", "type": { "kind": "struct", "fields": [ { "name": "worlds", "type": "u64", "attrs": [] } ] } }, { "name": "World", "type": { "kind": "struct", "fields": [ { "name": "id", "type": "u64", "attrs": [] }, { "name": "entities", "type": "u64", "attrs": [] } ] } } ], "errors": [ { "code": 6000, "name": "InvalidAuthority", "msg": "Invalid authority for instruction" }, { "code": 6001, "name": "WorldAccountMismatch", "msg": "The provided world account does not match the expected PDA." } ], "metadata": { "origin": "anchor", "address": "WorLD15A7CrDwLcLy4fRqtaTb9fbd8o8iqiEMUDse2n" } }