Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions metadata/program/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ license = "MIT"
[lib]
crate-type = ["cdylib", "lib"]

[features]
no-entrypoint = []
test-bpf = []

[dependencies]
borsh = "0.9"
borsh-derive = "0.9"
Expand Down
8 changes: 6 additions & 2 deletions metadata/program/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
//! SPL Token Metadata

pub mod constants;
pub mod entrypoint;
pub mod error;
pub mod instruction;
pub mod processor;
pub mod state;
pub mod utils;

// Defineing the program ID
#[cfg(not(feature = "no-entrypoint"))]
pub mod entrypoint;

// SPL Token Metadata Program ID
solana_program::declare_id!("metaAig5QsCBSfstkwqPQxzdjXdUB8JxjfvtvEPNe3F");
16 changes: 8 additions & 8 deletions metadata/program/src/processor.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
use crate::{
constants::{MAX_NAME_LEN, MAX_SYMBOL_LEN, MAX_URI_LEN, METADATA_SEED},
error::MetadataError,
instruction::TokenInstruction,
state::TokenMetadata,
utils::derive_metadata_pda,
};

use borsh::{BorshDeserialize, BorshSerialize};
use solana_program::{
account_info::{next_account_info, AccountInfo},
Expand All @@ -19,6 +11,14 @@ use solana_program::{
sysvar::Sysvar,
};

use crate::{
constants::{MAX_NAME_LEN, MAX_SYMBOL_LEN, MAX_URI_LEN, METADATA_SEED},
error::MetadataError,
instruction::TokenInstruction,
state::TokenMetadata,
utils::derive_metadata_pda,
};

pub struct Processor;
impl Processor {
pub fn process(
Expand Down
Loading