1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- use anchor_lang::prelude::*;
- pub mod instructions;
- use instructions::*;
- declare_id!("8vbaY8zv9r3AgeLjyAr7LEprJwLN5Jjus97crJBD2AV2");
- #[program]
- pub mod mint_2 {
- use super::*;
- pub fn create_token_mint(
- ctx: Context<CreateTokenMint>,
- metadata_title: String,
- metadata_symbol: String,
- metadata_uri: String,
- mint_authority_pda_bump: u8,
- ) -> Result<()> {
- create_token_mint::create_token_mint(
- ctx,
- metadata_title,
- metadata_symbol,
- metadata_uri,
- mint_authority_pda_bump,
- )
- }
- pub fn mint_to_your_wallet(
- ctx: Context<MintToYourWallet>,
- amount: u64,
- mint_authority_pda_bump: u8,
- ) -> Result<()> {
- mint_to_your_wallet::mint_to_your_wallet(
- ctx,
- amount,
- mint_authority_pda_bump,
- )
- }
- pub fn mint_to_another_wallet(
- ctx: Context<MintToAnotherWallet>,
- amount: u64,
- mint_authority_pda_bump: u8,
- ) -> Result<()> {
- mint_to_another_wallet::mint_to_another_wallet(
- ctx,
- amount,
- mint_authority_pda_bump,
- )
- }
- pub fn transfer_to_another_wallet(
- ctx: Context<TransferToAnotherWallet>,
- amount: u64,
- ) -> Result<()> {
- transfer_to_another_wallet::transfer_to_another_wallet(
- ctx,
- amount,
- )
- }
- }
|