This file contains hidden or 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
use anchor_lang::prelude::*; | |
use anchor_spl::token::{self, Token, Mint, TokenAccount, Transfer}; | |
use anchor_spl::associated_token::AssociatedToken; | |
declare_id!("insert your program id here"); | |
pub mod constants{ | |
pub const VAULT_SEED : &[u8] = b"token_vault"; | |
} |
This file contains hidden or 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
import { | |
Connection, | |
Keypair, | |
PublicKey, | |
SystemProgram, | |
Transaction, | |
clusterApiUrl, | |
sendAndConfirmTransaction, | |
} from "@solana/web3.js"; | |
import { |