Class StateSchema

Represents a (apls) local-state or (apgs) global-state schema. These schemas determine how much storage may be used in a local-state or global-state for an application. The more space used, the larger minimum balance must be maintained in the account holding the data.

Hierarchy

Constructors

Properties

attribute_map: Record<string, string>
numByteSlice: number | bigint

Maximum number of TEAL byte slices that may be stored in the key/value store.

numUint: number | bigint

Maximum number of TEAL uints that may be stored in the key/value store.

Methods

  • Get an object ready for encoding to either JSON or msgpack.

    Parameters

    • binary: boolean = false

      Use true to indicate that the encoding can handle raw binary objects (Uint8Arrays). Use false to indicate that raw binary objects should be converted to base64 strings. True should be used for objects that will be encoded with msgpack, and false should be used for objects that will be encoded with JSON.

    Returns Record<string, any>

Generated using TypeDoc