pub enum TransactionBuilderParams<'a> {
Show 17 variants
AddBid {
public_key: PublicKey,
delegation_rate: u8,
amount: U512,
minimum_delegation_amount: Option<u64>,
maximum_delegation_amount: Option<u64>,
reserved_slots: Option<u32>,
},
Delegate {
delegator: PublicKey,
validator: PublicKey,
amount: U512,
},
Undelegate {
delegator: PublicKey,
validator: PublicKey,
amount: U512,
},
Redelegate {
delegator: PublicKey,
validator: PublicKey,
amount: U512,
new_validator: PublicKey,
},
ChangeBidPublicKey {
public_key: PublicKey,
new_public_key: PublicKey,
},
AddReservations {
reservations: Vec<Reservation>,
},
CancelReservations {
validator: PublicKey,
delegators: Vec<DelegatorKind>,
},
InvocableEntity {
entity_hash: AddressableEntityHash,
entry_point: &'a str,
runtime: TransactionRuntimeParams,
},
InvocableEntityAlias {
entity_alias: &'a str,
entry_point: &'a str,
runtime: TransactionRuntimeParams,
},
Package {
package_hash: PackageHash,
maybe_entity_version: Option<u32>,
entry_point: &'a str,
runtime: TransactionRuntimeParams,
},
PackageWithMajorVersion {
package_hash: PackageHash,
maybe_entity_version: Option<EntityVersion>,
entry_point: &'a str,
runtime: TransactionRuntimeParams,
major_protocol_version: Option<ProtocolVersionMajor>,
},
PackageAlias {
package_alias: &'a str,
maybe_entity_version: Option<u32>,
entry_point: &'a str,
runtime: TransactionRuntimeParams,
},
PackageAliasWithMajorVersion {
package_alias: &'a str,
maybe_entity_version: Option<EntityVersion>,
entry_point: &'a str,
runtime: TransactionRuntimeParams,
major_protocol_version: Option<ProtocolVersionMajor>,
},
Session {
is_install_upgrade: bool,
transaction_bytes: Bytes,
runtime: TransactionRuntimeParams,
},
Transfer {
maybe_source: Option<URef>,
target: TransferTarget,
amount: U512,
maybe_id: Option<u64>,
},
WithdrawBid {
public_key: PublicKey,
amount: U512,
},
ActivateBid {
validator: PublicKey,
},
}Expand description
An enum representing the parameters needed to construct a transaction builder for the commands concerning the creation of a transaction
Variants§
AddBid
Parameters for the add bid variant of the transaction builder
Fields
Delegate
Parameters for the delegate variant of the transaction builder
Fields
Undelegate
Parameters for the undelegate variant of the transaction builder
Fields
Redelegate
Parameters for the redelegate variant of the transaction builder
Fields
ChangeBidPublicKey
Parameters for the change bid public key variant of the transaction builder
Fields
AddReservations
Parameters for the add reservations variant of the transaction builder
Fields
reservations: Vec<Reservation>List of reservations for the add reservations transaction
CancelReservations
Parameters for the cancel reservations variant of the transaction builder
Fields
delegators: Vec<DelegatorKind>List of delegatora for the cancel reservations transaction
InvocableEntity
Parameters for the invocable entity variant of the transaction builder
Fields
entity_hash: AddressableEntityHashThe entity hash for the invocable entity transaction
runtime: TransactionRuntimeParamsTransaction Runtime params.
InvocableEntityAlias
Parameters for the invocable entity alias variant of the transaction builder
Fields
runtime: TransactionRuntimeParamsTransaction Runtime params.
Package
Parameters for the package variant of the transaction builder
Fields
package_hash: PackageHashThe package hash for the package transaction
runtime: TransactionRuntimeParamsTransaction Runtime.
PackageWithMajorVersion
Parameters for the package variant of the transaction builder
Fields
package_hash: PackageHashThe package hash for the package transaction
maybe_entity_version: Option<EntityVersion>The optional entity version for the package alias transaction
runtime: TransactionRuntimeParamsTransaction Runtime params.
major_protocol_version: Option<ProtocolVersionMajor>The protocol version major.
PackageAlias
Parameters for the package alias variant of the transaction builder
Fields
runtime: TransactionRuntimeParamsTransaction Runtime params.
PackageAliasWithMajorVersion
Parameters for the package alias variant of the transaction builder
Fields
maybe_entity_version: Option<EntityVersion>The optional entity version for the package alias transaction
runtime: TransactionRuntimeParamsTransaction Runtime params.
major_protocol_version: Option<ProtocolVersionMajor>The protocol version major.
Session
Parameters for the session variant of the transaction builder
Fields
runtime: TransactionRuntimeParamsTransaction Runtime.
Transfer
Parameters for the transfer variant of the transaction builder
Fields
target: TransferTargetTarget of the transfer transaction
WithdrawBid
Parameters for the withdraw bid variant of the transaction builder
Fields
ActivateBid
Parameters for the activate bid variant of the transaction builder
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for TransactionBuilderParams<'a>
impl<'a> RefUnwindSafe for TransactionBuilderParams<'a>
impl<'a> Send for TransactionBuilderParams<'a>
impl<'a> Sync for TransactionBuilderParams<'a>
impl<'a> Unpin for TransactionBuilderParams<'a>
impl<'a> UnwindSafe for TransactionBuilderParams<'a>
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more