pub fn add_vault(
        &self,
        admin_signer: &dyn Signer,
        vault: Vault,
    ) -> Result<Signature, FarmClientError> {
        self.vaults
            .borrow_mut()
            .data
            .insert(vault.name.to_string(), vault);
        self.vault_refs.borrow_mut().reset();
        let inst = self.new_instruction_add_vault(&admin_signer.pubkey(), vault)?;
        self.sign_and_send_instructions(&[admin_signer], &[inst])
    }
/// Records the Vault metadata on-chain
Records the Vault metadata on-chain
Records the Vault metadata on - chain
pub fn add_vault(
        &self,
        admin_signer: &dyn Signer,
        vault: Vault,
    ) -> Result<Signature, FarmClientError> {
        self.vaults
            .borrow_mut()
            .data
            .insert(vault.name.to_string(), vault);
        self.vault_refs.borrow_mut().reset();
        let inst = self.new_instruction_add_vault(&admin_signer.pubkey(), vault)?;
        self.sign_and_send_instructions(&[admin_signer], &[inst])
    }
pub fn add_vault ( & self , admin_signer : & dyn Signer , vault : Vault , ) -> Result < Signature , FarmClientError > { self . vaults . borrow_mut ( ) . data . insert ( vault . name . to_string ( ) , vault ) ; self . vault_refs . borrow_mut ( ) . reset ( ) ; let inst = self . new_instruction_add_vault ( & admin_signer . pubkey ( ) , vault ) ? ; self . sign_and_send_instructions ( & [ admin_signer ] , & [ inst ] ) }
Records the Vault metadata on-chain
Records the Vault metadata on - chain
&self
admin_signer
&dyn Signer
vault
Vault
&self
admin_signer
&dyn Signer
vault
Vault