Optional
value: null | TSerialize an argument to BCS-serialized bytes.
The serializer instance used for serialization.
Serialize an argument to BCS-serialized bytes. Serialize an argument as a type-agnostic, fixed byte sequence. The byte sequence contains the number of the following bytes followed by the BCS-serialized bytes for a typed argument.
The serializer used to convert the argument.
Static
BoolFactory method to generate a MoveOptionboolean
or undefined
.
Optional
value: null | booleanthe value used to fill the MoveOption. If value
is undefined
the resulting MoveOption's .isSome() method will return false.
a MoveOptionvalue
Static
deserializeStatic
MoveFactory method to generate a MoveOptionstring
or undefined
.
Optional
value: null | stringthe value used to fill the MoveOption. If value
is undefined
the resulting MoveOption's .isSome() method will return false.
a MoveOptionvalue
Static
U128Factory method to generate a MoveOptionnumber
or a bigint
or undefined
.
Optional
value: null | AnyNumberthe value used to fill the MoveOption. If value
is undefined
the resulting MoveOption's .isSome() method will return false.
a MoveOptionvalue
Static
U16Factory method to generate a MoveOptionnumber
or undefined
.
Optional
value: null | numberthe value used to fill the MoveOption. If value
is undefined
the resulting MoveOption's .isSome() method will return false.
a MoveOptionvalue
Static
U256Factory method to generate a MoveOptionnumber
or a bigint
or undefined
.
Optional
value: null | AnyNumberthe value used to fill the MoveOption. If value
is undefined
the resulting MoveOption's .isSome() method will return false.
a MoveOptionvalue
Static
U32Factory method to generate a MoveOptionnumber
or undefined
.
Optional
value: null | numberthe value used to fill the MoveOption. If value
is undefined
the resulting MoveOption's .isSome() method will return false.
a MoveOptionvalue
Static
U64Factory method to generate a MoveOptionnumber
or a bigint
or undefined
.
Optional
value: null | AnyNumberthe value used to fill the MoveOption. If value
is undefined
the resulting MoveOption's .isSome() method will return false.
a MoveOptionvalue
Static
U8Factory method to generate a MoveOptionnumber
or undefined
.
Optional
value: null | numberthe value used to fill the MoveOption. If value
is undefined
the resulting MoveOption's .isSome() method will return false.
a MoveOptionvalue
Represents an argument for entry functions, providing methods to serialize the argument to BCS-serialized bytes and convert it to different formats.