supra-ts-sdk - v2.0.0
    Preparing search index...

    Type Alias AutomationRecordAction

    AutomationRecordAction:
        | { Process: number[] }
        | {
            Remove: {
                task_index: number;
                kind: "Error" | "ConfigUpdate" | "PreExecutionLimit";
                reason: string;
            };
        }

    The action of an automation record: the task indexes processed in the cycle, or the removal of one task. Remove is sent by nodes from v12 onwards.

    Preview: the Remove variant wraps an API added in supra_node_v12.0.0, which may change until that release reaches Testnet (@beta on Remove and on its kind).

    Type Declaration

    • { Process: number[] }
    • {
          Remove: {
              task_index: number;
              kind: "Error" | "ConfigUpdate" | "PreExecutionLimit";
              reason: string;
          };
      }
      • BetaRemove: {
            task_index: number;
            kind: "Error" | "ConfigUpdate" | "PreExecutionLimit";
            reason: string;
        }

        The removal of one task. Sent by nodes from v12 onwards.

        Preview: wraps an API added in supra_node_v12.0.0, which may change until that release reaches Testnet.

        • task_index: number
        • Betakind: "Error" | "ConfigUpdate" | "PreExecutionLimit"

          Why the task is removed, which determines the refund its owner receives.

          • "Error": the task failed at runtime (an undecodable payload or predicate, a failed predicate, or a gas amount no transaction can carry). The owner receives a partial refund.
          • "ConfigUpdate": the gas config of a new epoch rules out the task's transaction (its gas amount is above the per-transaction gas cap, or its gas price cap is below the minimum gas price). A user task's owner receives the remaining fee of the current cycle and the deposit in full; a system task pays no fees and is refunded nothing. Recorded for both Move and EVM tasks.
          • "PreExecutionLimit": a limit of the gas schedule or of the VM (transaction size, intrinsic gas, dependency count or size, type size, or the minimum gas of a #[randomness] entry function) stopped the task's transaction before its entry function ran. A user task's owner receives the same partial refund as for "Error"; a system task is refunded nothing. Recorded for Move tasks only.

          Preview: wraps an API added in supra_node_v12.0.0, which may change until that release reaches Testnet.

        • reason: string