CallArg

Type Alias CallArg 

Source
pub type CallArg = Input;
Expand description

Type alias for the SDK’s Input type, used as transaction call arguments.

Aliased Type§

pub enum CallArg {
    Pure(Vec<u8>),
    ImmutableOrOwned(ObjectReference),
    Shared(SharedObjectReference),
    Receiving(ObjectReference),
}

Variants§

§

Pure(Vec<u8>)

A move value serialized as BCS.

For normal operations this is required to be a move primitive type and not contain structs or objects.

§

ImmutableOrOwned(ObjectReference)

A move object that is either immutable or address owned

§

Shared(SharedObjectReference)

A move object whose owner is “Shared”

§

Receiving(ObjectReference)

A move object that is attempted to be received in this transaction.

Trait Implementations§

Source§

impl CallArgExt for CallArg

Source§

fn input_object_kind(&self) -> Option<InputObjectKind>

Returns the input object kind for this argument, excluding receiving objects.
Source§

fn validity_check(&self, config: &ProtocolConfig) -> UserInputResult

Validity check for this argument against the given protocol config.