substrate-stellar-sdk 0.3.0

A Substrate compatible SDK for Stellar
Documentation
1
2
3
4
5
6
7
use crate::{types::ClaimantV0, ClaimPredicate, Claimant, IntoAccountId, StellarSdkError};

impl Claimant {
    pub fn new<T: IntoAccountId>(destination: T, predicate: ClaimPredicate) -> Result<Self, StellarSdkError> {
        Ok(Claimant::ClaimantTypeV0(ClaimantV0 { destination: destination.into_account_id()?, predicate }))
    }
}