pub struct ApplicationCallTransactionBuilder { /* private fields */ }
Expand description
Builder for ApplicationCallTransactionFields
.
Implementations§
Source§impl ApplicationCallTransactionBuilder
impl ApplicationCallTransactionBuilder
Sourcepub fn header(&mut self, value: TransactionHeader) -> &mut Self
pub fn header(&mut self, value: TransactionHeader) -> &mut Self
Common transaction header fields.
Sourcepub fn app_id(&mut self, value: u64) -> &mut Self
pub fn app_id(&mut self, value: u64) -> &mut Self
ID of the application being called.
Set this to 0 to indicate an application creation call.
Sourcepub fn on_complete(&mut self, value: OnApplicationComplete) -> &mut Self
pub fn on_complete(&mut self, value: OnApplicationComplete) -> &mut Self
Defines what additional actions occur with the transaction.
Sourcepub fn approval_program(&mut self, value: Vec<u8>) -> &mut Self
pub fn approval_program(&mut self, value: Vec<u8>) -> &mut Self
Logic executed for every application call transaction, except when on-completion is set to “clear”.
Approval programs may reject the transaction. Only required for application creation and update transactions.
Sourcepub fn clear_state_program(&mut self, value: Vec<u8>) -> &mut Self
pub fn clear_state_program(&mut self, value: Vec<u8>) -> &mut Self
Logic executed for application call transactions with on-completion set to “clear”.
Clear state programs cannot reject the transaction. Only required for application creation and update transactions.
Sourcepub fn global_state_schema(&mut self, value: StateSchema) -> &mut Self
pub fn global_state_schema(&mut self, value: StateSchema) -> &mut Self
Holds the maximum number of global state values.
Only required for application creation transactions. This cannot be changed after creation.
Sourcepub fn local_state_schema(&mut self, value: StateSchema) -> &mut Self
pub fn local_state_schema(&mut self, value: StateSchema) -> &mut Self
Holds the maximum number of local state values.
Only required for application creation transactions. This cannot be changed after creation.
Sourcepub fn extra_program_pages(&mut self, value: u64) -> &mut Self
pub fn extra_program_pages(&mut self, value: u64) -> &mut Self
Number of additional pages allocated to the application’s approval and clear state programs.
Each extra program page is 2048 bytes. The sum of approval program and clear state program may not exceed 2048*(1+extra_program_pages) bytes. Currently, the maximum value is 3. This cannot be changed after creation.
Sourcepub fn args(&mut self, value: Vec<Vec<u8>>) -> &mut Self
pub fn args(&mut self, value: Vec<Vec<u8>>) -> &mut Self
Transaction specific arguments available in the application’s approval program and clear state program.
Sourcepub fn account_references(&mut self, value: Vec<Address>) -> &mut Self
pub fn account_references(&mut self, value: Vec<Address>) -> &mut Self
List of accounts in addition to the sender that may be accessed from the application’s approval program and clear state program.
Sourcepub fn app_references(&mut self, value: Vec<u64>) -> &mut Self
pub fn app_references(&mut self, value: Vec<u64>) -> &mut Self
List of applications in addition to the application ID that may be called from the application’s approval program and clear state program.
Sourcepub fn asset_references(&mut self, value: Vec<u64>) -> &mut Self
pub fn asset_references(&mut self, value: Vec<u64>) -> &mut Self
Lists the assets whose parameters may be accessed by this application’s approval program and clear state program.
The access is read-only.
Sourcepub fn box_references(&mut self, value: Vec<BoxReference>) -> &mut Self
pub fn box_references(&mut self, value: Vec<BoxReference>) -> &mut Self
The boxes that should be made available for the runtime of the program.
Sourcepub fn build_fields(
&self,
) -> Result<ApplicationCallTransactionFields, ApplicationCallTransactionBuilderError>
pub fn build_fields( &self, ) -> Result<ApplicationCallTransactionFields, ApplicationCallTransactionBuilderError>
Builds a new ApplicationCallTransactionFields
.
§Errors
If a required field has not been initialized.
Source§impl ApplicationCallTransactionBuilder
impl ApplicationCallTransactionBuilder
pub fn build( &self, ) -> Result<Transaction, ApplicationCallTransactionBuilderError>
Trait Implementations§
Source§impl Clone for ApplicationCallTransactionBuilder
impl Clone for ApplicationCallTransactionBuilder
Source§fn clone(&self) -> ApplicationCallTransactionBuilder
fn clone(&self) -> ApplicationCallTransactionBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more