GraphQL API
Govern Server is exposing a GraphQL API that lets you fetch data related to your Govern DAOs. Here is the complete list of queries and types that are available.
Queries
dao(name: String!): Dao
dao(name: String!): Dao
Use this query to get a single DAO, using its name. See the Dao
type to know more information.
daos: [Dao]
daos: [Dao]
Use this query to get the list of DAOs.
Types
GovernRegistry
Represents the DAO registry. It contains entries
, which have a name and contain a queue
and an executor
. A DAO is identified by its name.
RegistryEntry
A single registry entry. It has a name
, a queue
and an executor
. A DAO is identified by its name.
Dao
A single DAO entry.
GovernQueue
Represents a queue of scheduled actions (Container
) and a configuration.
Config
The configuration of a GovernQueue
.
Container
A Container
represents an action being scheduled for execution, inside a GovernQueue
. It also contains the configuration at the time it was scheduled, and a history of past events.
ContainerState
The different states of a Container
.
ContainerPayload
A list of actual actions attached to a Container
.
Action
Represents an independent action (transaction data) in a ContainerPayload
.
Collateral
Represents a collateral that gets attached to a Container
when scheduling it and challenging it.
Scenario 1:
Bob submits an action to be executed, with a collateral attached to it.
The action passes and doesn’t get challenged.
The action gets executed and Bob receives its collateral back.
Scenario 2:
Bob submits an action to be executed, with a collateral attached to it.
The action passes but gets challenged by Alice, with a collateral attached.
The arbitrator approves the action. Bob Receives both collaterals.
Scenario 3:
Bob submits an action to be executed, with a collateral attached to it.
The action passes but gets challenged by Alice, with a collateral attached.
The arbitrator rejects the action. Alice Receives both collaterals.
Role
The roles defined on a given GovernQueue
.
ContainerEventChallenge
A Container
event representing an action being challenged.
ContainerEventExecute
A Container
event representing an action being executed.
ContainerEventResolve
A Container
event representing an action being resolved.
ContainerEventRule
A Container
event representing an action being ruled.
ContainerEventSchedule
A Container
event representing an action being scheduled.
ContainerEventSubmitEvidence
A Container
event representing an evidence being submitted.
ContainerEventVeto
A Container
event representing an action being vetoed by the arbitrator.
Last updated
Was this helpful?