Struct fuels_programs::contract::ContractCall
source · pub struct ContractCall {
pub contract_id: Bech32ContractId,
pub encoded_args: UnresolvedBytes,
pub encoded_selector: Selector,
pub call_parameters: CallParameters,
pub compute_custom_input_offset: bool,
pub variable_outputs: Option<Vec<Output>>,
pub external_contracts: Vec<Bech32ContractId>,
pub output_param: ParamType,
pub is_payable: bool,
pub custom_assets: HashMap<(AssetId, Option<Bech32Address>), u64>,
}
Expand description
Contains all data relevant to a single contract call
Fields§
§contract_id: Bech32ContractId
§encoded_args: UnresolvedBytes
§encoded_selector: Selector
§call_parameters: CallParameters
§compute_custom_input_offset: bool
§variable_outputs: Option<Vec<Output>>
§external_contracts: Vec<Bech32ContractId>
§output_param: ParamType
§is_payable: bool
§custom_assets: HashMap<(AssetId, Option<Bech32Address>), u64>
Implementations§
source§impl ContractCall
impl ContractCall
pub fn with_contract_id(self, contract_id: Bech32ContractId) -> Self
pub fn with_external_contracts( self, external_contracts: Vec<Bech32ContractId> ) -> ContractCall
pub fn with_variable_outputs( self, variable_outputs: Vec<Output> ) -> ContractCall
pub fn with_call_parameters( self, call_parameters: CallParameters ) -> ContractCall
pub fn append_variable_outputs(&mut self, num: u64)
pub fn append_external_contracts(&mut self, contract_id: Bech32ContractId)
pub fn add_custom_asset( &mut self, asset_id: AssetId, amount: u64, to: Option<Bech32Address> )
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ContractCall
impl Send for ContractCall
impl Sync for ContractCall
impl Unpin for ContractCall
impl UnwindSafe for ContractCall
Blanket Implementations§
source§impl<T> AnyDebug for Twhere
T: Any + Debug,
impl<T> AnyDebug for Twhere T: Any + Debug,
source§fn as_any_ref(&self) -> &(dyn Any + 'static)
fn as_any_ref(&self) -> &(dyn Any + 'static)
Returns a reference to the underlying type as
Any
.source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more