algokit_transact

Struct ApplicationCallTransactionBuilder

Source
pub struct ApplicationCallTransactionBuilder { /* private fields */ }
Expand description

Implementations§

Source§

impl ApplicationCallTransactionBuilder

Source

pub fn header(&mut self, value: TransactionHeader) -> &mut Self

Common transaction header fields.

Source

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.

Source

pub fn on_complete(&mut self, value: OnApplicationComplete) -> &mut Self

Defines what additional actions occur with the transaction.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

pub fn box_references(&mut self, value: Vec<BoxReference>) -> &mut Self

The boxes that should be made available for the runtime of the program.

Source

pub fn build_fields( &self, ) -> Result<ApplicationCallTransactionFields, ApplicationCallTransactionBuilderError>

Builds a new ApplicationCallTransactionFields.

§Errors

If a required field has not been initialized.

Source§

impl ApplicationCallTransactionBuilder

Source

pub fn build( &self, ) -> Result<Transaction, ApplicationCallTransactionBuilderError>

Trait Implementations§

Source§

impl Clone for ApplicationCallTransactionBuilder

Source§

fn clone(&self) -> ApplicationCallTransactionBuilder

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for ApplicationCallTransactionBuilder

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.