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: AccountAddress

Basic account creation method.

AccountRotateAuthenticationKey

Fields

new_auth_key: Vec<u8, Global>

AccountUtilsCreateAndFundAccount

Fields

account: AccountAddress
amount: u64

ReconfigurationForceReconfigure

Fields

Force an epoch change.

StakeAddStake

Fields

amount: u64

Add amount of coins from the account owning the StakePool.

StakeIncreaseLockup

Fields

new_locked_until_secs: u64

Similar to increase_lockup_with_cap but will use ownership capability from the signing account.

StakeRegisterValidatorCandidate

Fields

consensus_pubkey: Vec<u8, Global>
network_address: Vec<u8, Global>
fullnode_address: Vec<u8, Global>

Initialize the validator account and give ownership to the signing account.

StakeRotateConsensusKey

Fields

pool_address: AccountAddress
consensus_pubkey: Vec<u8, Global>

Rotate the consensus key of the validator, it’ll take effect in next epoch.

StakeSetOperator

Fields

new_operator: AccountAddress

Allows an owner to change the operator of the stake pool.

StakeUnlock

Fields

amount: u64

Similar 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

Create delegated token for the address so the account could claim MintCapability later.

TestCoinMint

Fields

dst_addr: AccountAddress
amount: u64

Create new test coins and deposit them into dst_addr’s account.

TokenCreateLimitedCollectionScript

Fields

name: Vec<u8, Global>
description: Vec<u8, Global>
uri: Vec<u8, Global>
maximum: u64

TokenCreateLimitedTokenScript

Fields

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

Fields

name: Vec<u8, Global>
description: Vec<u8, Global>
uri: Vec<u8, Global>

TokenCreateUnlimitedTokenScript

Fields

collection: Vec<u8, Global>
name: Vec<u8, Global>
description: Vec<u8, Global>
monitor_supply: bool
initial_balance: u64
uri: Vec<u8, Global>

TokenDirectTransferScript

Fields

creators_address: AccountAddress
collection: Vec<u8, Global>
name: Vec<u8, Global>
amount: u64

TokenInitializeTokenForId

Fields

creators_address: AccountAddress
collection: Vec<u8, Global>
name: Vec<u8, Global>

TokenInitializeTokenScript

Fields

TokenTransfersCancelOfferScript

Fields

receiver: AccountAddress
creator: AccountAddress
collection: Vec<u8, Global>
name: Vec<u8, Global>

TokenTransfersClaimScript

Fields

creator: AccountAddress
collection: Vec<u8, Global>
name: Vec<u8, Global>

TokenTransfersOfferScript

Fields

receiver: AccountAddress
creator: AccountAddress
collection: Vec<u8, Global>
name: Vec<u8, Global>
amount: u64

TransactionPublishingOptionSetModulePublishingAllowed

Fields

is_allowed: bool

VMConfigSetGasConstants

Fields

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

Fields

_validator_addr: AccountAddress

ValidatorSetScriptCreateValidatorAccount

Fields

_new_account_address: AccountAddress
_human_name: Vec<u8, Global>

ValidatorSetScriptCreateValidatorOperatorAccount

Fields

_new_account_address: AccountAddress
_human_name: Vec<u8, Global>

ValidatorSetScriptRegisterValidatorConfig

Fields

_validator_address: AccountAddress
_consensus_pubkey: Vec<u8, Global>
_validator_network_addresses: Vec<u8, Global>
_fullnode_network_addresses: Vec<u8, Global>

ValidatorSetScriptRemoveValidator

Fields

_validator_addr: AccountAddress

ValidatorSetScriptSetValidatorConfigAndReconfigure

Fields

_validator_account: AccountAddress
_consensus_pubkey: Vec<u8, Global>
_validator_network_addresses: Vec<u8, Global>
_fullnode_network_addresses: Vec<u8, Global>

ValidatorSetScriptSetValidatorOperator

Fields

_operator_name: Vec<u8, Global>
_operator_account: AccountAddress

VersionSetVersion

Fields

major: u64

Updates the major version to a larger version.

Implementations

Build an Aptos TransactionPayload from a structured object ScriptFunctionCall.

Try to recognize an Aptos TransactionPayload and convert it into a structured object ScriptFunctionCall.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more