Const
Creates a BcsType representing a map of a given key and value type
Creates a BcsType representing an optional value
Creates a BcsType representing a variable length vector of a given type
Creates a BcsType that can be used to read and write boolean values.
Optional
options: BcsTypeOptions<boolean, boolean, string>Creates a BcsType representing a fixed length byte array
The number of bytes this types represents
Optional
options: BcsTypeOptions<Uint8Array<ArrayBufferLike>, Iterable<number, any, any>, string>Creates a BcsType representing a variable length byte array
Optional
options: BcsTypeOptions<Uint8Array<ArrayBufferLike>, Iterable<number, any, any>, string>Creates a BcsType representing an enum of a given set of options
The name of the enum
Optional
options: Omit<Creates a BcsType that can ser/de string values. Strings will be UTF-8 encoded
Optional
options: BcsTypeOptions<string, string, string>Creates a BcsType representing a struct of a given set of fields
The name of the struct
The fields of the struct. The order of the fields affects how data is serialized and deserialized
Optional
options: Omit<Creates a BcsType that can be used to read and write a 128-bit unsigned integer.
Optional
options: BcsTypeOptions<string, string | number | bigint, string>Creates a BcsType that can be used to read and write a 16-bit unsigned integer.
Optional
options: BcsTypeOptions<number, number, string>Creates a BcsType that can be used to read and write a 256-bit unsigned integer.
Optional
options: BcsTypeOptions<string, string | number | bigint, string>Creates a BcsType that can be used to read and write a 32-bit unsigned integer.
Optional
options: BcsTypeOptions<number, number, string>Creates a BcsType that can be used to read and write a 64-bit unsigned integer.
Optional
options: BcsTypeOptions<string, string | number | bigint, string>Creates a BcsType that can be used to read and write an 8-bit unsigned integer.
Optional
options: BcsTypeOptions<number, number, string>Creates a BcsType that can be used to read and write unsigned LEB encoded integers
Optional
options: BcsTypeOptions<number, number, string>
Creates a BcsType that represents a fixed length array of a given type