Trait ton_contracts::WalletVersion
source · pub trait WalletVersion {
type Data: CellSerialize;
type MessageBody: CellSerialize;
// Required methods
fn code() -> Arc<Cell>;
fn init_data(wallet_id: u32, pubkey: [u8; 32]) -> Self::Data;
fn create_external_body(
wallet_id: u32,
expire_at: DateTime<Utc>,
seqno: u32,
msgs: impl IntoIterator<Item = WalletOpSendMessage>
) -> Self::MessageBody;
}Required Associated Types§
type Data: CellSerialize
type MessageBody: CellSerialize
Required Methods§
fn code() -> Arc<Cell>
fn init_data(wallet_id: u32, pubkey: [u8; 32]) -> Self::Data
fn create_external_body( wallet_id: u32, expire_at: DateTime<Utc>, seqno: u32, msgs: impl IntoIterator<Item = WalletOpSendMessage> ) -> Self::MessageBody
Object Safety§
This trait is not object safe.