pub enum ScriptFunctionCall {
Show 34 variants
AccountCreateAccount {
auth_key: AccountAddress,
},
AccountRotateAuthenticationKey {
new_auth_key: Vec<u8, Global>,
},
AccountUtilsCreateAndFundAccount {
account: AccountAddress,
amount: u64,
},
ReconfigurationForceReconfigure {},
StakeAddStake {
amount: u64,
},
StakeIncreaseLockup {
new_locked_until_secs: u64,
},
StakeRegisterValidatorCandidate {
consensus_pubkey: Vec<u8, Global>,
network_address: Vec<u8, Global>,
fullnode_address: Vec<u8, Global>,
},
StakeRotateConsensusKey {
pool_address: AccountAddress,
consensus_pubkey: Vec<u8, Global>,
},
StakeSetOperator {
new_operator: AccountAddress,
},
StakeUnlock {
amount: u64,
},
StakeWithdraw {},
TestCoinClaimMintCapability {},
TestCoinDelegateMintCapability {
to: AccountAddress,
},
TestCoinMint {
dst_addr: AccountAddress,
amount: u64,
},
TokenCreateLimitedCollectionScript {
name: Vec<u8, Global>,
description: Vec<u8, Global>,
uri: Vec<u8, Global>,
maximum: u64,
},
TokenCreateLimitedTokenScript {
collection: Vec<u8, Global>,
name: Vec<u8, Global>,
description: Vec<u8, Global>,
monitor_supply: bool,
initial_balance: u64,
maximum: u64,
uri: Vec<u8, Global>,
},
TokenCreateUnlimitedCollectionScript {
name: Vec<u8, Global>,
description: Vec<u8, Global>,
uri: Vec<u8, Global>,
},
TokenCreateUnlimitedTokenScript {
collection: Vec<u8, Global>,
name: Vec<u8, Global>,
description: Vec<u8, Global>,
monitor_supply: bool,
initial_balance: u64,
uri: Vec<u8, Global>,
},
TokenDirectTransferScript {
creators_address: AccountAddress,
collection: Vec<u8, Global>,
name: Vec<u8, Global>,
amount: u64,
},
TokenInitializeTokenForId {
creators_address: AccountAddress,
collection: Vec<u8, Global>,
name: Vec<u8, Global>,
},
TokenInitializeTokenScript {},
TokenTransfersCancelOfferScript {
receiver: AccountAddress,
creator: AccountAddress,
collection: Vec<u8, Global>,
name: Vec<u8, Global>,
},
TokenTransfersClaimScript {
sender: AccountAddress,
creator: AccountAddress,
collection: Vec<u8, Global>,
name: Vec<u8, Global>,
},
TokenTransfersOfferScript {
receiver: AccountAddress,
creator: AccountAddress,
collection: Vec<u8, Global>,
name: Vec<u8, Global>,
amount: u64,
},
TransactionPublishingOptionSetModulePublishingAllowed {
is_allowed: bool,
},
VMConfigSetGasConstants {
global_memory_per_byte_cost: u64,
global_memory_per_byte_write_cost: u64,
min_transaction_gas_units: u64,
large_transaction_cutoff: u64,
intrinsic_gas_per_byte: u64,
maximum_number_of_gas_units: u64,
min_price_per_gas_unit: u64,
max_price_per_gas_unit: u64,
max_transaction_size_in_bytes: u64,
gas_unit_scaling_factor: u64,
default_account_size: u64,
},
ValidatorSetScriptAddValidator {
_validator_addr: AccountAddress,
},
ValidatorSetScriptCreateValidatorAccount {
_new_account_address: AccountAddress,
_human_name: Vec<u8, Global>,
},
ValidatorSetScriptCreateValidatorOperatorAccount {
_new_account_address: AccountAddress,
_human_name: Vec<u8, Global>,
},
ValidatorSetScriptRegisterValidatorConfig {
_validator_address: AccountAddress,
_consensus_pubkey: Vec<u8, Global>,
_validator_network_addresses: Vec<u8, Global>,
_fullnode_network_addresses: Vec<u8, Global>,
},
ValidatorSetScriptRemoveValidator {
_validator_addr: AccountAddress,
},
ValidatorSetScriptSetValidatorConfigAndReconfigure {
_validator_account: AccountAddress,
_consensus_pubkey: Vec<u8, Global>,
_validator_network_addresses: Vec<u8, Global>,
_fullnode_network_addresses: Vec<u8, Global>,
},
ValidatorSetScriptSetValidatorOperator {
_operator_name: Vec<u8, Global>,
_operator_account: AccountAddress,
},
VersionSetVersion {
major: u64,
},
}Expand description
Structured representation of a call into a known Move script function.
impl ScriptFunctionCall {
pub fn encode(self) -> TransactionPayload { .. }
pub fn decode(&TransactionPayload) -> Option<ScriptFunctionCall> { .. }
}Variants
AccountCreateAccount
Fields
auth_key: AccountAddressBasic account creation method.
AccountRotateAuthenticationKey
AccountUtilsCreateAndFundAccount
ReconfigurationForceReconfigure
Fields
Force an epoch change.
StakeAddStake
Fields
amount: u64Add amount of coins from the account owning the StakePool.
StakeIncreaseLockup
Fields
new_locked_until_secs: u64Similar to increase_lockup_with_cap but will use ownership capability from the signing account.
StakeRegisterValidatorCandidate
Fields
Initialize the validator account and give ownership to the signing account.
StakeRotateConsensusKey
Rotate the consensus key of the validator, it’ll take effect in next epoch.
StakeSetOperator
Fields
new_operator: AccountAddressAllows an owner to change the operator of the stake pool.
StakeUnlock
Fields
amount: u64Similar to unlock_with_cap but will use ownership capability from the signing account.
StakeWithdraw
Fields
Withdraw from account’s inactive stake.
TestCoinClaimMintCapability
Fields
Claim the delegated mint capability and destroy the delegated token.
TestCoinDelegateMintCapability
Fields
to: AccountAddressCreate delegated token for the address so the account could claim MintCapability later.
TestCoinMint
Create new test coins and deposit them into dst_addr’s account.
TokenCreateLimitedCollectionScript
TokenCreateLimitedTokenScript
TokenCreateUnlimitedCollectionScript
TokenCreateUnlimitedTokenScript
TokenDirectTransferScript
TokenInitializeTokenForId
TokenInitializeTokenScript
Fields
TokenTransfersCancelOfferScript
TokenTransfersClaimScript
TokenTransfersOfferScript
TransactionPublishingOptionSetModulePublishingAllowed
Fields
is_allowed: boolVMConfigSetGasConstants
Fields
global_memory_per_byte_cost: u64global_memory_per_byte_write_cost: u64min_transaction_gas_units: u64large_transaction_cutoff: u64intrinsic_gas_per_byte: u64maximum_number_of_gas_units: u64min_price_per_gas_unit: u64max_price_per_gas_unit: u64max_transaction_size_in_bytes: u64gas_unit_scaling_factor: u64default_account_size: u64ValidatorSetScriptAddValidator
Fields
_validator_addr: AccountAddressValidatorSetScriptCreateValidatorAccount
ValidatorSetScriptCreateValidatorOperatorAccount
ValidatorSetScriptRegisterValidatorConfig
Fields
_validator_address: AccountAddressValidatorSetScriptRemoveValidator
Fields
_validator_addr: AccountAddressValidatorSetScriptSetValidatorConfigAndReconfigure
Fields
_validator_account: AccountAddressValidatorSetScriptSetValidatorOperator
VersionSetVersion
Fields
major: u64Updates the major version to a larger version.
Implementations
impl ScriptFunctionCall
impl ScriptFunctionCall
pub fn encode(self) -> TransactionPayload
pub fn encode(self) -> TransactionPayload
Build an Aptos TransactionPayload from a structured object ScriptFunctionCall.
pub fn decode(payload: &TransactionPayload) -> Option<ScriptFunctionCall>
pub fn decode(payload: &TransactionPayload) -> Option<ScriptFunctionCall>
Try to recognize an Aptos TransactionPayload and convert it into a structured object ScriptFunctionCall.
Trait Implementations
impl Clone for ScriptFunctionCall
impl Clone for ScriptFunctionCall
fn clone(&self) -> ScriptFunctionCall
fn clone(&self) -> ScriptFunctionCall
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
impl Debug for ScriptFunctionCall
impl Debug for ScriptFunctionCall
impl PartialEq<ScriptFunctionCall> for ScriptFunctionCall
impl PartialEq<ScriptFunctionCall> for ScriptFunctionCall
fn eq(&self, other: &ScriptFunctionCall) -> bool
fn eq(&self, other: &ScriptFunctionCall) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
fn ne(&self, other: &ScriptFunctionCall) -> bool
fn ne(&self, other: &ScriptFunctionCall) -> bool
This method tests for !=.
impl PartialOrd<ScriptFunctionCall> for ScriptFunctionCall
impl PartialOrd<ScriptFunctionCall> for ScriptFunctionCall
fn partial_cmp(&self, other: &ScriptFunctionCall) -> Option<Ordering>
fn partial_cmp(&self, other: &ScriptFunctionCall) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl StructuralPartialEq for ScriptFunctionCall
Auto Trait Implementations
impl RefUnwindSafe for ScriptFunctionCall
impl Send for ScriptFunctionCall
impl Sync for ScriptFunctionCall
impl Unpin for ScriptFunctionCall
impl UnwindSafe for ScriptFunctionCall
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more