pub struct TonWallet {
pub version: WalletVersion,
pub key_pair: KeyPair,
pub address: TonAddress,
pub wallet_id: i32,
}
Fields§
§version: WalletVersion
§key_pair: KeyPair
§address: TonAddress
§wallet_id: i32
Implementations§
Source§impl TonWallet
impl TonWallet
pub fn new( version: WalletVersion, key_pair: KeyPair, ) -> Result<TonWallet, TonCellError>
pub fn new_with_params( version: WalletVersion, key_pair: KeyPair, workchain: i32, wallet_id: i32, ) -> Result<TonWallet, TonCellError>
pub fn create_external_msg<T: AsRef<[ArcCell]>>( &self, expire_at: u32, seqno: u32, add_state_init: bool, internal_messages: T, ) -> Result<Cell, TonMessageError>
pub fn create_external_body<T: AsRef<[ArcCell]>>( &self, expire_at: u32, seqno: u32, internal_msgs: T, ) -> Result<Cell, TonCellError>
pub fn sign_external_body( &self, external_body: &Cell, ) -> Result<Cell, TonCellError>
pub fn wrap_signed_body( &self, signed_body: Cell, add_state_init: bool, ) -> Result<Cell, TonMessageError>
Trait Implementations§
impl Eq for TonWallet
impl StructuralPartialEq for TonWallet
Auto Trait Implementations§
impl Freeze for TonWallet
impl RefUnwindSafe for TonWallet
impl Send for TonWallet
impl Sync for TonWallet
impl Unpin for TonWallet
impl UnwindSafe for TonWallet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more