Struct avalanche_types::platformvm::txs::add_permissionless_validator::Tx
source · pub struct Tx {
pub base_tx: Tx,
pub validator: Validator,
pub subnet_id: Id,
pub signer: Option<ProofOfPossession>,
pub stake_transferable_outputs: Option<Vec<Output>>,
pub validator_rewards_owner: OutputOwners,
pub delegator_rewards_owner: OutputOwners,
pub delegation_shares: u32,
pub creds: Vec<Credential>,
}
Expand description
ref. https://github.com/ava-labs/avalanchego/blob/master/vms/platformvm/txs/add_permissionless_validator_tx.go ref. https://pkg.go.dev/github.com/ava-labs/avalanchego/vms/platformvm/txs#AddPermissionlessValidatorTx ref. https://pkg.go.dev/github.com/ava-labs/avalanchego/vms/platformvm/txs#Tx ref. https://pkg.go.dev/github.com/ava-labs/avalanchego/vms/platformvm/txs#UnsignedTx
Fields§
§base_tx: Tx
The transaction ID is empty for unsigned tx as long as “avax.BaseTx.Metadata” is “None”. Once Metadata is updated with signing and “Tx.Initialize”, Tx.ID() is non-empty.
validator: Validator
§subnet_id: Id
ID of the subnet this validator is validating. ref. “github.com/ava-labs/avalanchego/utils/constants.PrimaryNetworkID” (ids.Empty).
signer: Option<ProofOfPossession>
If the [subnet_id] is the primary network, [signer] is the BLS key for this validator. If the [subnet_id] is not the primary network, [signer] is empty.
stake_transferable_outputs: Option<Vec<Output>>
§validator_rewards_owner: OutputOwners
§delegator_rewards_owner: OutputOwners
§creds: Vec<Credential>
To be updated after signing.
Implementations§
source§impl Tx
impl Tx
pub fn default() -> Self
pub fn new(base_tx: Tx) -> Self
sourcepub fn tx_id(&self) -> Id
pub fn tx_id(&self) -> Id
Returns the transaction ID. Only non-empty if the embedded metadata is updated with the signing process.
pub fn type_name() -> String
pub fn type_id() -> u32
Trait Implementations§
source§impl<'de> Deserialize<'de> for Tx
impl<'de> Deserialize<'de> for Tx
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
impl Eq for Tx
impl StructuralEq for Tx
impl StructuralPartialEq for Tx
Auto Trait Implementations§
impl RefUnwindSafe for Tx
impl Send for Tx
impl Sync for Tx
impl Unpin for Tx
impl UnwindSafe for Tx
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request