> ## Documentation Index
> Fetch the complete documentation index at: https://injectivelabs-docs-ai-sdk.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Events

# Events

The peggy module emits the following events:

## EndBlocker

### EventAttestationObserved

| Type    | Attribute Key     | Attribute Value             |
| ------- | ----------------- | --------------------------- |
| int32   | attestation\_type | `{attestation_type}`        |
| string  | bridge\_contract  | `{bridge_contract_address}` |
| uint64  | bridge\_chain\_id | `{bridge_chain_id}`         |
| \[]byte | attestation\_id   | `{attestation_id}`          |
| uint64  | nonce             | `{event_nonce}`             |

### EventValidatorSlash

| Type   | Attribute Key      | Attribute Value         |
| ------ | ------------------ | ----------------------- |
| string | reason             | `{reason_for_slashing}` |
| int64  | power              | `{validator_power}`     |
| string | consensus\_address | `{consensus_addr}`      |
| string | operator\_address  | `{operator_addr}`       |
| string | moniker            | `{validator_moniker}`   |

## Handler

### EventSetOrchestratorAddresses

| Type   | Attribute Key          | Attribute Value       |
| ------ | ---------------------- | --------------------- |
| string | validator\_address     | `{validator_addr}`    |
| string | orchestrator\_address  | `{orchestrator_addr}` |
| string | operator\_eth\_address | `{eth_addr}`          |

### EventSendToEth

| Type     | Attribute Key    | Attribute Value  |
| -------- | ---------------- | ---------------- |
| message  | outgoing\_tx\_id | `{tx_id}`        |
| string   | sender           | `{sender_addr}`  |
| string   | receiver         | `{dest_addr}`    |
| sdk.Coin | amount           | `{token_amount}` |
| sdk.Coin | bridge\_fee      | `{token_amount}` |

### EventBridgeWithdrawCanceled

| Type                  | Attribute Key     | Attribute Value     |
| --------------------- | ----------------- | ------------------- |
| withdrawal\_cancelled | bridge\_contract  | `{bridge_contract}` |
| withdrawal\_cancelled | bridge\_chain\_id | `{bridge_chain_id}` |

### EventOutgoingBatch

| Type      | Attribute Key         | Attribute Value  |
| --------- | --------------------- | ---------------- |
| string    | denom                 | `{token_denom}`  |
| string    | orchestrator\_address | `{orch_addr}`    |
| uint64    | batch\_nonce          | `{batch_nonce}`  |
| uint64    | batch\_timeout        | `{block_height}` |
| \[]uint64 | batch\_tx\_ids        | `{ids}`          |

### EventOutgoingBatchCanceled

| Type   | Attribute Key     | Attribute Value     |
| ------ | ----------------- | ------------------- |
| string | bridge\_contract  | `{bridge_contract}` |
| uint64 | bridge\_chain\_id | `{bridge_chain_id}` |
| uint64 | batch\_id         | `{id}`              |
| uint64 | nonce             | `{nonce}`           |

### EventValsetConfirm

| Type   | Attribute Key         | Attribute Value |
| ------ | --------------------- | --------------- |
| uint64 | valset\_nonce         | `{nonce}`       |
| string | orchestrator\_address | `{prch_addr}`   |

### EventConfirmBatch

| Type   | Attribute Key         | Attribute Value |
| ------ | --------------------- | --------------- |
| uint64 | batch\_nonce          | `{nonce}`       |
| string | orchestrator\_address | `{orch_addr}`   |

### EventDepositClaim

| Type    | Attribute Key         | Attribute Value     |
| ------- | --------------------- | ------------------- |
| uint64  | event\_nonce          | `{event_nonce}`     |
| uint64  | event\_height         | `{event_height}`    |
| \[]byte | attestation\_id       | `{attestation_key}` |
| string  | ethereum\_sender      | `{sender_addr}`     |
| string  | cosmos\_receiver      | `{receiver_addr}`   |
| string  | token\_contract       | `{contract_addr}`   |
| sdk.Int | amount                | `{token_amount}`    |
| string  | orchestrator\_address | `{orch_addr}`       |
| string  | data                  | `{custom_data}`     |

### EventWithdrawClaim

| Type    | Attribute Key         | Attribute Value     |
| ------- | --------------------- | ------------------- |
| uint64  | event\_nonce          | `{event_nonce}`     |
| uint64  | event\_height         | `{event_height}`    |
| \[]byte | attestation\_id       | `{attestation_key}` |
| uint64  | batch\_nonce          | `{batch_nonce}`     |
| string  | token\_contract       | `{contract_addr}`   |
| string  | orchestrator\_address | `{orch_addr}`       |

### EventERC20DeployedClaim

| Type    | Attribute Key         | Attribute Value          |
| ------- | --------------------- | ------------------------ |
| uint64  | event\_nonce          | `{event_nonce}`          |
| uint64  | event\_height         | `{event_height}`         |
| \[]byte | attestation\_id       | `{attestation_key}`      |
| string  | cosmos\_denom         | `{token_denom}`          |
| string  | token\_contract       | `{token_conntract_addr}` |
| string  | name                  | `{token_name}`           |
| string  | symbol                | `{token_symbol}`         |
| uint64  | decimals              | `{token_decimals}`       |
| string  | orchestrator\_address | `{orch_addr}`            |

### EventValsetUpdateClaim

| Type                 | Attribute Key         | Attribute Value         |
| -------------------- | --------------------- | ----------------------- |
| uint64               | event\_nonce          | `{event_nonce}`         |
| uint64               | event\_height         | `{event_height}`        |
| \[]byte              | attestation\_id       | `{attestation_key}`     |
| uint64               | valset\_nonce         | `{valset_nonce}`        |
| \[]\*BridgeValidator | valset\_members       | `{array_of_validators}` |
| sdk.Int              | reward\_amount        | `{amount}`              |
| string               | reward\_token         | `{contract_addr}`       |
| string               | orchestrator\_address | `{orch_addr}`           |
