[−][src]Struct solana_libra_types::transaction::RawTransaction
RawTransaction is the portion of a transaction that a client signs
Methods
impl RawTransaction
[src]
pub fn new(
sender: AccountAddress,
sequence_number: u64,
payload: TransactionPayload,
max_gas_amount: u64,
gas_unit_price: u64,
expiration_time: Duration
) -> Self
[src]
sender: AccountAddress,
sequence_number: u64,
payload: TransactionPayload,
max_gas_amount: u64,
gas_unit_price: u64,
expiration_time: Duration
) -> Self
Create a new RawTransaction
with a payload.
It can be either to publish a module, to execute a script, or to issue a writeset transaction.
pub fn new_script(
sender: AccountAddress,
sequence_number: u64,
script: Script,
max_gas_amount: u64,
gas_unit_price: u64,
expiration_time: Duration
) -> Self
[src]
sender: AccountAddress,
sequence_number: u64,
script: Script,
max_gas_amount: u64,
gas_unit_price: u64,
expiration_time: Duration
) -> Self
Create a new RawTransaction
with a script.
A script transaction contains only code to execute. No publishing is allowed in scripts.
pub fn new_module(
sender: AccountAddress,
sequence_number: u64,
module: Module,
max_gas_amount: u64,
gas_unit_price: u64,
expiration_time: Duration
) -> Self
[src]
sender: AccountAddress,
sequence_number: u64,
module: Module,
max_gas_amount: u64,
gas_unit_price: u64,
expiration_time: Duration
) -> Self
Create a new RawTransaction
with a module to publish.
A module transaction is the only way to publish code. Only one module per transaction can be published.
pub fn new_write_set(
sender: AccountAddress,
sequence_number: u64,
write_set: WriteSet
) -> Self
[src]
sender: AccountAddress,
sequence_number: u64,
write_set: WriteSet
) -> Self
pub fn sign(
self,
private_key: &Ed25519PrivateKey,
public_key: Ed25519PublicKey
) -> Result<SignatureCheckedTransaction>
[src]
self,
private_key: &Ed25519PrivateKey,
public_key: Ed25519PublicKey
) -> Result<SignatureCheckedTransaction>
Signs the given RawTransaction
. Note that this consumes the RawTransaction
and turns it
into a SignatureCheckedTransaction
.
For a transaction that has just been signed, its signature is expected to be valid.
pub fn into_payload(self) -> TransactionPayload
[src]
pub fn format_for_client(
&self,
get_transaction_name: impl Fn(&[u8]) -> String
) -> String
[src]
&self,
get_transaction_name: impl Fn(&[u8]) -> String
) -> String
pub fn sender(&self) -> AccountAddress
[src]
Return the sender of this transaction.
Trait Implementations
impl CanonicalDeserialize for RawTransaction
[src]
fn deserialize(deserializer: &mut impl CanonicalDeserializer) -> Result<Self>
[src]
impl CanonicalSerialize for RawTransaction
[src]
fn serialize(&self, serializer: &mut impl CanonicalSerializer) -> Result<()>
[src]
impl Clone for RawTransaction
[src]
fn clone(&self) -> RawTransaction
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl CryptoHash for RawTransaction
[src]
type Hasher = RawTransactionHasher
The associated Hasher
type which comes with a unique salt for this type.
fn hash(&self) -> HashValue
[src]
impl Debug for RawTransaction
[src]
impl<'de> Deserialize<'de> for RawTransaction
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for RawTransaction
[src]
impl Hash for RawTransaction
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<RawTransaction> for RawTransaction
[src]
fn eq(&self, other: &RawTransaction) -> bool
[src]
fn ne(&self, other: &RawTransaction) -> bool
[src]
impl Serialize for RawTransaction
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for RawTransaction
[src]
impl StructuralPartialEq for RawTransaction
[src]
Auto Trait Implementations
impl RefUnwindSafe for RawTransaction
impl Send for RawTransaction
impl Sync for RawTransaction
impl Unpin for RawTransaction
impl UnwindSafe for RawTransaction
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> TestOnlyHash for T where
T: Serialize + ?Sized,
[src]
T: Serialize + ?Sized,
fn test_only_hash(&self) -> HashValue
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,