pub fn add_program_id(
        &self,
        admin_signer: &dyn Signer,
        name: &str,
        program_id: &Pubkey,
        program_id_type: ProgramIDType,
        refdb_index: Option<usize>,
    ) -> Result<Signature, FarmClientError> {
        let inst = self.new_instruction_add_program_id(
            &admin_signer.pubkey(),
            name,
            program_id,
            program_id_type,
            refdb_index,
        )?;
        self.sign_and_send_instructions(&[admin_signer], &[inst])
    }
/// Records the Program ID metadata on-chain
Records the Program ID metadata on-chain
Records the Program ID metadata on - chain
pub fn add_program_id(
        &self,
        admin_signer: &dyn Signer,
        name: &str,
        program_id: &Pubkey,
        program_id_type: ProgramIDType,
        refdb_index: Option<usize>,
    ) -> Result<Signature, FarmClientError> {
        let inst = self.new_instruction_add_program_id(
            &admin_signer.pubkey(),
            name,
            program_id,
            program_id_type,
            refdb_index,
        )?;
        self.sign_and_send_instructions(&[admin_signer], &[inst])
    }
pub fn add_program_id ( & self , admin_signer : & dyn Signer , name : & str , program_id : & Pubkey , program_id_type : ProgramIDType , refdb_index : Option < usize > , ) -> Result < Signature , FarmClientError > { let inst = self . new_instruction_add_program_id ( & admin_signer . pubkey ( ) , name , program_id , program_id_type , refdb_index , ) ? ; self . sign_and_send_instructions ( & [ admin_signer ] , & [ inst ] ) }
Records the Program ID metadata on-chain
Records the Program ID metadata on - chain
&self
admin_signer
&dyn Signer
name
&str
program_id
&Pubkey
program_id_type
ProgramIDType
refdb_index
Option<usize>
&self
admin_signer
&dyn Signer
name
&str
program_id
&Pubkey
program_id_type
ProgramIDType
refdb_index
Option<usize>