Trait casper_types::system::handle_payment::HandlePayment[][src]

pub trait HandlePayment: MintProvider + RuntimeProvider + Sized {
    fn get_payment_purse(&self) -> Result<URef, Error> { ... }
fn set_refund_purse(&mut self, purse: URef) -> Result<(), Error> { ... }
fn get_refund_purse(&self) -> Result<Option<URef>, Error> { ... }
fn finalize_payment(
        &mut self,
        amount_spent: U512,
        account: AccountHash,
        target: URef
    ) -> Result<(), Error> { ... } }
Expand description

Handle payment functionality implementation.

Provided methods

Get payment purse.

Set refund purse.

Get refund purse.

Finalize payment with amount_spent and a given account.

Implementors