substrate-stellar-sdk 0.3.0

A Substrate compatible SDK for Stellar
Documentation
1
2
3
4
5
6
7
use crate::{types::OperationBody, Operation, StellarSdkError};

impl Operation {
    pub fn new_inflation() -> Result<Operation, StellarSdkError> {
        Ok(Operation { source_account: None, body: OperationBody::Inflation })
    }
}