import { Keypair , TransactionInstruction } from '@solana/web3.js' ; import { sendTransactionWithNotifications } from '../tools/transactions' ; import { RpcContext } from '@solana/spl-governance' ; import { withUpdateProgramMetadata } from '@solana/spl-governance' ; export const updateProgramMetadata = async ( { connection , wallet , programId , walletPubkey , } ) => { let signers = [ ] ; let instructions = [ ] ; await withUpdateProgramMetadata ( instructions , programId , walletPubkey ) ; await sendTransactionWithNotifications ( connection , wallet , instructions , signers , 'Updating Program Metadata' , 'Program Metadata Updated' ) ; } ;