Anchor Metaplex

Example

```rust use anchormetaplex::{CreateMetadata, createmetadata};

pub fn Initialize( ctx: Context, name: String, symbol: String, uri: String, ) -> ProgramResult { let seeds: &[&[u8]] = &[ b"mintauthority", name.asbytes(), symbol.asbytes(), &[state.bumps.mintauthority] ]; let signerseeds:&[&[&[u8]]] = &[&seeds[..]]; let cpiaccounts = CreateMetadata { mint: ctx.accounts.index_token.clone(), mint_authority: ctx.accounts.mint_authority.clone(), metadata_account: ctx.accounts.metadata_account.clone(), payer: (ctx.accounts.deployer).toaccountinfo(), updateauthority: ctx.accounts.mintauthority.toaccountinfo(), systemprogram: ctx.accounts.systemprogram.toaccountinfo(), rent: ctx.accounts.rent.toaccountinfo(), };

createmetadata( cpiaccounts, signer_seeds, name.clone(), symbol.clone(), uri, None, 0, true, true, None, None ) } ```