pub struct DynamicFeeTx {
pub chain_id: String,
pub nonce: u64,
pub gas_tip_cap: String,
pub gas_fee_cap: String,
pub gas: u64,
pub to: String,
pub value: String,
pub data: Bytes,
pub accesses: Vec<AccessTuple>,
pub v: Bytes,
pub r: Bytes,
pub s: Bytes,
}Expand description
DynamicFeeTx is the data of EIP-1559 dynamic fee transactions. It is a custom implementation of “DynamicFeeTx” from “github.com/ethereum/go-ethereum/core/types”.
Fields§
§chain_id: Stringchain_id of the destination EVM chain
nonce: u64nonce corresponds to the account nonce (transaction sequence).
gas_tip_cap: Stringgas_tip_cap defines the max value for the gas tip
gas_fee_cap: Stringgas_fee_cap defines the max value for the gas fee
gas: u64gas defines the gas limit defined for the transaction.
to: Stringto is the hex formatted address of the recipient
value: Stringvalue defines the the transaction amount.
data: Bytesdata is the data payload bytes of the transaction.
accesses: Vec<AccessTuple>accesses is an array of access tuples
v: Bytesv defines the recovery id and “v” signature value from the elliptic curve digital signatute algorithm (ECDSA). It indicates which of two possible solutions should be used to reconstruct the public key from the signature. In Ethereum, “v” takes the value 27 or 28 for transactions that are not relay-protected.
r: Bytesr defines the x-coordinate of a point on the elliptic curve in the elliptic curve digital signatute algorithm (ECDSA). It’s crucial in ensuring uniqueness of the signature.
s: Bytess define the signature value derived from the private key, message hash, and the value of “r”. It ensures that the signature is tied to both the message and the private key of the sender.
Trait Implementations§
Source§impl Clone for DynamicFeeTx
impl Clone for DynamicFeeTx
Source§fn clone(&self) -> DynamicFeeTx
fn clone(&self) -> DynamicFeeTx
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DynamicFeeTx
impl Debug for DynamicFeeTx
Source§impl Default for DynamicFeeTx
impl Default for DynamicFeeTx
Source§impl Message for DynamicFeeTx
impl Message for DynamicFeeTx
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self.Source§impl PartialEq for DynamicFeeTx
impl PartialEq for DynamicFeeTx
impl StructuralPartialEq for DynamicFeeTx
Auto Trait Implementations§
impl !Freeze for DynamicFeeTx
impl RefUnwindSafe for DynamicFeeTx
impl Send for DynamicFeeTx
impl Sync for DynamicFeeTx
impl Unpin for DynamicFeeTx
impl UnwindSafe for DynamicFeeTx
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<M> NibiruProstMsg for Mwhere
M: Message,
impl<M> NibiruProstMsg for Mwhere
M: Message,
fn to_binary(&self) -> Binary
Source§fn try_into_stargate_msg(&self, type_url: &str) -> CosmosMsg
fn try_into_stargate_msg(&self, type_url: &str) -> CosmosMsg
Name.type_url() function. This method attempts
to downcast the message to prost::Name, and if successful, constructs a
CosmosMsg::Stargate object corresponding to the type.