Welcome to the new Provenance Blockchain developer documentation portal!
logo
The Provenance Blockchain trigger module genesis state encompasses the complete initialization and state preservation data required for trigger functionality, including comprehensive lists of active triggers, queued triggers awaiting execution, gas limit allocations for each trigger, and critical system tracking variables such as the current trigger ID counter and queue start position. This genesis state structure ensures proper trigger module configuration and continuity across blockchain restarts and upgrades by preserving all trigger registrations, execution queues, and resource allocations necessary for maintaining automated execution workflows and system integrity.

GenesisState

GenesisState contains a list of triggers, queued triggers, and gas limits. It also tracks the triggerID and the queue start. These are exported and later imported from/to the store.
protobuf
// Source: https://github.com/provenance-io/provenance/blob/bda28e5f58a4a58e8fef21141400ad362b84518b/proto/provenance/trigger/v1/genesis.proto#L11-L30 message GenesisState { // The list of all triggers repeated Trigger triggers = 1; // The list of queued triggers repeated QueuedTrigger queued_triggers = 2; // The gas limits for triggers repeated GasLimit gas_limits = 3; // The next trigger ID to use uint64 trigger_id = 4; // The start index of the queue uint64 queue_start = 5; }