pub enum ScriptFunctionCall {
Show 41 variants
AccountCreateAccount {
auth_key: AccountAddress,
},
AccountRotateAuthenticationKey {
new_auth_key: Vec<u8, Global>,
},
AccountUtilsCreateAndFundAccount {
account: AccountAddress,
amount: u64,
},
AptosGovernanceCreateProposal {
stake_pool: AccountAddress,
execution_hash: Vec<u8, Global>,
},
AptosGovernanceVote {
stake_pool: AccountAddress,
proposal_id: u64,
should_pass: bool,
},
ReconfigurationForceReconfigure {},
ResourceAccountCreateResourceAccount {
seed: Vec<u8, Global>,
optional_auth_key: Vec<u8, Global>,
},
StakeAddStake {
amount: u64,
},
StakeIncreaseLockup {
new_locked_until_secs: u64,
},
StakeJoinValidatorSet {
pool_address: AccountAddress,
},
StakeLeaveValidatorSet {
pool_address: AccountAddress,
},
StakeRegisterValidatorCandidate {
consensus_pubkey: Vec<u8, Global>,
proof_of_possession: Vec<u8, Global>,
network_addresses: Vec<u8, Global>,
fullnode_addresses: Vec<u8, Global>,
},
StakeRotateConsensusKey {
pool_address: AccountAddress,
new_consensus_pubkey: Vec<u8, Global>,
proof_of_possession: Vec<u8, Global>,
},
StakeSetDelegatedVoter {
new_delegated_voter: AccountAddress,
},
StakeSetOperator {
new_operator: AccountAddress,
},
StakeUnlock {
amount: u64,
},
StakeUpdateNetworkAndFullnodeAddresses {
pool_address: AccountAddress,
new_network_addresses: Vec<u8, Global>,
new_fullnode_addresses: Vec<u8, Global>,
},
StakeWithdraw {},
AptosCoinClaimMintCapability {},
AptosCoinDelegateMintCapability {
to: AccountAddress,
},
AptosCoinMint {
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>,
royalty_points_per_million: u64,
},
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>,
royalty_points_per_million: u64,
},
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 methods.
AccountRotateAuthenticationKey
AccountUtilsCreateAndFundAccount
AptosGovernanceCreateProposal
Create a proposal with the backing stake_pool.
@param execution_hash Required. This is the hash of the resolution script. When the proposal is resolved,
only the exact script with matching hash can be successfully executed.
AptosGovernanceVote
Vote on proposal with proposal_id and voting power from stake_pool.
ReconfigurationForceReconfigure
Fields
Force an epoch change.
ResourceAccountCreateResourceAccount
Creates a new resource account and rotates the authentication key to either the optional auth key if it is non-empty (though auth keys are 32-bytes) or the source accounts current auth key.
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.
StakeJoinValidatorSet
Fields
pool_address: AccountAddressThis can only called by the operator of the validator/staking pool.
StakeLeaveValidatorSet
Fields
pool_address: AccountAddressRequest to have pool_address leave the validator set. The validator is only actually removed from the set when
the next epoch starts.
The last validator in the set cannot leave. This is an edge case that should never happen as long as the network
is still operational.
Can only be called by the operator of the validator/staking pool.
StakeRegisterValidatorCandidate
Fields
Initialize the validator account and give ownership to the signing account.
StakeRotateConsensusKey
Fields
pool_address: AccountAddressRotate the consensus key of the validator, it’ll take effect in next epoch.
StakeSetDelegatedVoter
Fields
new_delegated_voter: AccountAddressAllows an owner to change the delegated voter of the stake pool.
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.
StakeUpdateNetworkAndFullnodeAddresses
Fields
pool_address: AccountAddressUpdate the network and full node addresses of the validator. This only takes effect in the next epoch.
StakeWithdraw
Fields
Withdraw from account’s inactive stake.
AptosCoinClaimMintCapability
Fields
Claim the delegated mint capability and destroy the delegated token.
AptosCoinDelegateMintCapability
Fields
to: AccountAddressCreate delegated token for the address so the account could claim MintCapability later.
AptosCoinMint
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 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