State mutation returned by scripts. Scripts return a list of mutations, not the new state directly.

interface StateMutation {
    address?: string;
    key?: string;
    spender?: string;
    type:
        | "setBalance"
        | "addBalance"
        | "subBalance"
        | "setCustomState"
        | "setAllowance";
    value: string | number | Record<string, unknown>;
}

Properties

address?: string
key?: string
spender?: string
type:
    | "setBalance"
    | "addBalance"
    | "subBalance"
    | "setCustomState"
    | "setAllowance"
value: string | number | Record<string, unknown>