text: const anchor = require('@project-serum/anchor');
  const { SystemProgram } = anchor.web3;
  
  const main = async() => {
    console.log("🚀 Starting test...")
  
    const provider = anchor.Provider.env();
    anchor.setProvider(provider);
  
    const program = anchor.workspace.Myepicproject;
    const baseAccount = anchor.web3.Keypair.generate();
    let tx = await program.rpc.startStuffOff({
      accounts: {
        baseAccount: baseAccount.publicKey,
        user: provider.wallet.publicKey,
        systemProgram: SystemProgram.programId,
      },
      signers: [baseAccount],
    });
    console.log("📝 Your transaction signature", tx);
  
    let account = await program.account.baseAccount.fetch(baseAccount.publicKey);
    console.log('👀 GIF Count', account.totalGifs.toString())
  
    // You'll need to now pass a GIF link to the function!
    await program.rpc.addGif("https://i.giphy.com/media/PAqjdPkJLDsmBRSYUp/giphy.webp", {
      accounts: {
        baseAccount: baseAccount.publicKey,
      },
    });
    
    // Call the account.
    account = await program.account.baseAccount.fetch(baseAccount.publicKey);
    console.log('👀 GIF Count', account.totalGifs.toString())
  
    // Access gif_list on the account!
    console.log('👀 GIF List', account.gifList)
  }
  
  const runMain = async () => {
    try {
      await main();
      process.exit(0);
    } catch (error) {
      console.error(error);
      process.exit(1);
    }
  };
  
  runMain();