Type Alias StorageProgramOperation

StorageProgramOperation:
    | "CREATE_STORAGE_PROGRAM"
    | "WRITE_STORAGE"
    | "READ_STORAGE"
    | "UPDATE_ACCESS_CONTROL"
    | "DELETE_STORAGE_PROGRAM"
    | "SET_FIELD"
    | "SET_ITEM"
    | "APPEND_ITEM"
    | "DELETE_FIELD"
    | "DELETE_ITEM"

Storage Program operations

Full data operations:

  • CREATE_STORAGE_PROGRAM: Initialize a new storage program with access control
  • WRITE_STORAGE: Write/update entire data in the storage
  • READ_STORAGE: Query operation (not a transaction, used for validation)
  • UPDATE_ACCESS_CONTROL: Modify access control settings (owner only)
  • DELETE_STORAGE_PROGRAM: Remove the entire storage program (owner/ACL permissioned)

Granular field operations (JSON encoding only):

  • SET_FIELD: Set a single field value
  • SET_ITEM: Set an item at a specific array index
  • APPEND_ITEM: Append an item to an array field
  • DELETE_FIELD: Delete a single field
  • DELETE_ITEM: Delete an item at a specific array index