Trait ConfigOps

Source
pub trait ConfigOps<C> {
    // Required methods
    fn insert_global_amount(
        &self,
        store: &Pubkey,
        key: &str,
        amount: &Amount,
    ) -> TransactionBuilder<'_, C>;
    fn insert_global_factor(
        &self,
        store: &Pubkey,
        key: &str,
        factor: &Factor,
    ) -> TransactionBuilder<'_, C>;
    fn insert_global_address(
        &self,
        store: &Pubkey,
        key: &str,
        address: &Pubkey,
    ) -> TransactionBuilder<'_, C>;

    // Provided methods
    fn insert_global_amount_by_key(
        &self,
        store: &Pubkey,
        key: AmountKey,
        amount: &Amount,
    ) -> TransactionBuilder<'_, C> { ... }
    fn insert_global_factor_by_key(
        &self,
        store: &Pubkey,
        key: FactorKey,
        factor: &Factor,
    ) -> TransactionBuilder<'_, C> { ... }
    fn insert_global_address_by_key(
        &self,
        store: &Pubkey,
        key: AddressKey,
        address: &Pubkey,
    ) -> TransactionBuilder<'_, C> { ... }
}
Expand description

Config Operations.

Required Methods§

Source

fn insert_global_amount( &self, store: &Pubkey, key: &str, amount: &Amount, ) -> TransactionBuilder<'_, C>

Insert a global amount.

Source

fn insert_global_factor( &self, store: &Pubkey, key: &str, factor: &Factor, ) -> TransactionBuilder<'_, C>

Insert a global factor.

Source

fn insert_global_address( &self, store: &Pubkey, key: &str, address: &Pubkey, ) -> TransactionBuilder<'_, C>

Insert a global address.

Provided Methods§

Source

fn insert_global_amount_by_key( &self, store: &Pubkey, key: AmountKey, amount: &Amount, ) -> TransactionBuilder<'_, C>

Insert a global amount by key.

Source

fn insert_global_factor_by_key( &self, store: &Pubkey, key: FactorKey, factor: &Factor, ) -> TransactionBuilder<'_, C>

Insert a global factor by key.

Source

fn insert_global_address_by_key( &self, store: &Pubkey, key: AddressKey, address: &Pubkey, ) -> TransactionBuilder<'_, C>

Insert a global address by key.

Implementors§

Source§

impl<C, S> ConfigOps<C> for Client<C>
where C: Deref<Target = S> + Clone, S: Signer,