Struct silk::accountant::Accountant
[−]
[src]
pub struct Accountant { pub historian: Historian, pub balances: HashMap<PublicKey, i64>, pub first_id: Hash, pub last_id: Hash, // some fields omitted }
Fields
historian: Historian
balances: HashMap<PublicKey, i64>
first_id: Hash
last_id: Hash
Methods
impl Accountant
[src]
pub fn new_from_entries<I>(entries: I, ms_per_tick: Option<u64>) -> Self where
I: IntoIterator<Item = Entry>,
[src]
I: IntoIterator<Item = Entry>,
pub fn new(mint: &Mint, ms_per_tick: Option<u64>) -> Self
[src]
pub fn sync(&mut self) -> Hash
[src]
pub fn process_transaction(&mut self, tr: Transaction<i64>) -> Result<()>
[src]
pub fn transfer(
&mut self,
n: i64,
keypair: &KeyPair,
to: PublicKey
) -> Result<Signature>
[src]
&mut self,
n: i64,
keypair: &KeyPair,
to: PublicKey
) -> Result<Signature>
pub fn transfer_on_date(
&mut self,
n: i64,
keypair: &KeyPair,
to: PublicKey,
dt: DateTime<Utc>
) -> Result<Signature>
[src]
&mut self,
n: i64,
keypair: &KeyPair,
to: PublicKey,
dt: DateTime<Utc>
) -> Result<Signature>