x/act

Action

When created, an Action has a pending state. When the wrapped message is executed, the Action state changes to completed. The creator of the Action can revoke it at any time, changing the Action status to revoked.

Optionally, it's possible to specify a timeout height for an Action. After this height is reached by the blockchain, the Action state will change to timeout.

An Action can be approved by one or more users. The addresses of the users that approved the Action are stored in its approvers field. These addresses can be used as boolean conditions in the Rule expression.

State

The x/act module keeps the state of the following primary objects:

  • Rules

  • Actions

To manage this state, the module also keeps the following indexes:

  • Action by address referenced in its Rule

Last updated