AuthMode

Authorization mode for simulation.

Controls how authorization entries are handled during simulation:

  • ENFORCE: Requires existing auth entries to be valid. Use for transactions with pre-populated auth.

  • RECORD: Records new auth entries. Fails if any auth already exists. Use for initial transaction preparation.

  • RECORD_ALLOW_NONROOT: Like RECORD, but allows non-root authorization. Use for complex auth scenarios.

If unset, defaults to ENFORCE if auth entries are present, RECORD otherwise.

See also

Entries

Link copied to clipboard
@SerialName(value = "enforce")
ENFORCE

Always enforce mode, even with an empty list. Auth entries must be valid and present.

Link copied to clipboard
@SerialName(value = "record")
RECORD

Always recording mode, failing if any auth exists. Records new auth entries for the simulation.

Link copied to clipboard
@SerialName(value = "record_allow_nonroot")
RECORD_ALLOW_NONROOT

Like RECORD, but allowing non-root authorization. Useful for testing complex authorization scenarios.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.