-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Add support for newer IDL standard (#6)
* ✨ Add support for newer IDL standard * 🔖 Bump version to 0.2.12
- Loading branch information
1 parent
12dd70f
commit ffa2b9f
Showing
21 changed files
with
1,468 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,227 @@ | ||
{ | ||
"address": "EragBXpF9jU2fxZh2FQC4ZWksrxkujdwcx6mcU5CoRB3", | ||
"metadata": { | ||
"name": "playerdata", | ||
"version": "0.1.5", | ||
"spec": "0.1.0", | ||
"description": "Created with Bolt" | ||
}, | ||
"instructions": [ | ||
{ | ||
"name": "initialize", | ||
"discriminator": [ | ||
175, | ||
175, | ||
109, | ||
31, | ||
13, | ||
152, | ||
155, | ||
237 | ||
], | ||
"accounts": [ | ||
{ | ||
"name": "payer", | ||
"writable": true, | ||
"signer": true | ||
}, | ||
{ | ||
"name": "data", | ||
"writable": true | ||
}, | ||
{ | ||
"name": "entity" | ||
}, | ||
{ | ||
"name": "authority" | ||
}, | ||
{ | ||
"name": "instruction_sysvar_account", | ||
"address": "Sysvar1nstructions1111111111111111111111111" | ||
}, | ||
{ | ||
"name": "system_program", | ||
"address": "11111111111111111111111111111111" | ||
} | ||
], | ||
"args": [] | ||
}, | ||
{ | ||
"name": "update", | ||
"discriminator": [ | ||
219, | ||
200, | ||
88, | ||
176, | ||
158, | ||
63, | ||
253, | ||
127 | ||
], | ||
"accounts": [ | ||
{ | ||
"name": "bolt_component", | ||
"writable": true | ||
}, | ||
{ | ||
"name": "authority" | ||
}, | ||
{ | ||
"name": "instruction_sysvar_account", | ||
"address": "Sysvar1nstructions1111111111111111111111111" | ||
} | ||
], | ||
"args": [ | ||
{ | ||
"name": "data", | ||
"type": "bytes" | ||
} | ||
] | ||
} | ||
], | ||
"accounts": [ | ||
{ | ||
"name": "Entity", | ||
"discriminator": [ | ||
46, | ||
157, | ||
161, | ||
161, | ||
254, | ||
46, | ||
79, | ||
24 | ||
] | ||
}, | ||
{ | ||
"name": "PlayerData", | ||
"discriminator": [ | ||
197, | ||
65, | ||
216, | ||
202, | ||
43, | ||
139, | ||
147, | ||
128 | ||
] | ||
} | ||
], | ||
"errors": [ | ||
{ | ||
"code": 6000, | ||
"name": "PlayerDataNotInitialized", | ||
"msg": "Player Data is not initialized." | ||
}, | ||
{ | ||
"code": 6001, | ||
"name": "PlayerDataAlreadyInitialized", | ||
"msg": "Player Data cannot be initialized multiple times." | ||
}, | ||
{ | ||
"code": 6002, | ||
"name": "InvalidOwner", | ||
"msg": "Signer did not have authority over entity." | ||
}, | ||
{ | ||
"code": 6003, | ||
"name": "NotActive", | ||
"msg": "Player not active in world" | ||
} | ||
], | ||
"types": [ | ||
{ | ||
"name": "BoltMetadata", | ||
"docs": [ | ||
"Metadata for the component." | ||
], | ||
"type": { | ||
"kind": "struct", | ||
"fields": [ | ||
{ | ||
"name": "authority", | ||
"type": "pubkey" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"name": "Entity", | ||
"type": { | ||
"kind": "struct", | ||
"fields": [ | ||
{ | ||
"name": "id", | ||
"type": "u64" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"name": "Heading", | ||
"type": { | ||
"kind": "enum", | ||
"variants": [ | ||
{ | ||
"name": "North" | ||
}, | ||
{ | ||
"name": "East" | ||
}, | ||
{ | ||
"name": "South" | ||
}, | ||
{ | ||
"name": "West" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"name": "PlayerData", | ||
"type": { | ||
"kind": "struct", | ||
"fields": [ | ||
{ | ||
"name": "is_active", | ||
"type": "bool" | ||
}, | ||
{ | ||
"name": "owner", | ||
"type": { | ||
"option": "pubkey" | ||
} | ||
}, | ||
{ | ||
"name": "world_pos_x", | ||
"type": { | ||
"option": "i32" | ||
} | ||
}, | ||
{ | ||
"name": "world_pos_y", | ||
"type": { | ||
"option": "i32" | ||
} | ||
}, | ||
{ | ||
"name": "heading", | ||
"type": { | ||
"defined": { | ||
"name": "Heading" | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "bolt_metadata", | ||
"type": { | ||
"defined": { | ||
"name": "BoltMetadata" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.