Args for remote function call.

This class can serialize assembly script native types into bytes, in order to make smart-contract function call easier.

In a smart-contract exposed function, use this class to deserialize the string argument, using the next... methods.

In a smart-contract, to call another smart-contract function, use this class to serialize the arguments you want to pass to the smart-contract function call.

Hierarchy

  • Args

Constructors

Methods

  • Adds an argument to the serialized byte string if the argument is an instance of a handled type (String of u32.MAX_VALUE characters maximum, Address, Uint8Array, bool, u8, u32, i32, f32, u64, i64, f64).

    Returns

    the modified Arg instance

    Type Parameters

    • T

    Parameters

    • arg: T

      the argument to add

    Returns Args

Generated using TypeDoc