Add non-fungible token program (#7007)

* Add non-fungible token program

* Remove issuer and id from state

* Boot NftInstruction and NftState

* Rename NFT to Ownable

Maybe this should be "Owned" to avoid confusion with an Ownable trait?

* Rename directory

* Delete unreachable branch

* Don't use copy_from_slice - need an error, not a panic.

* Rename contract_pubkey to account_pubkey
This commit is contained in:
Greg Fitzgerald
2019-11-18 18:09:42 -07:00
committed by GitHub
parent 6ec918fabb
commit bfa2535ea1
6 changed files with 299 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
pub mod ownable_instruction;
pub mod ownable_processor;
const OWNABLE_PROGRAM_ID: [u8; 32] = [
12, 6, 169, 236, 232, 53, 216, 159, 221, 186, 8, 8, 33, 45, 166, 249, 243, 55, 177, 184, 195,
132, 141, 34, 63, 108, 219, 80, 0, 0, 0, 0,
];
solana_sdk::solana_name_id!(
OWNABLE_PROGRAM_ID,
"ownab1e111111111111111111111111111111111111"
);