mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-14 03:55:19 +00:00
2d7f5c4080
* update sidebar order * update event backticks * fix broken links * fix spelling
39 lines
1.2 KiB
Markdown
39 lines
1.2 KiB
Markdown
<!--
|
|
order: 4
|
|
-->
|
|
|
|
# Events
|
|
|
|
The `x/auction` module emits the following events:
|
|
|
|
## Triggered By Other Modules
|
|
|
|
| Type | Attribute Key | Attribute Value |
|
|
|---------------|---------------|-------------------|
|
|
| auction_start | auction_id | `{auction ID}` |
|
|
| auction_start | auction_type | `{auction type}` |
|
|
| auction_start | lot | `{coin amount}` |
|
|
| auction_start | bid | `{coin amount}` |
|
|
| auction_start | max_bid | `{coin amount}` |
|
|
|
|
## Handlers
|
|
|
|
### MsgPlaceBid
|
|
|
|
| Type | Attribute Key | Attribute Value |
|
|
|-------------|---------------|----------------------|
|
|
| auction_bid | auction_id | `{auction ID}` |
|
|
| auction_bid | bidder | `{latest bidder}` |
|
|
| auction_bid | bid | `{coin amount}` |
|
|
| auction_bid | lot | `{coin amount}` |
|
|
| auction_bid | end_time | `{auction end time}` |
|
|
| message | module | auction |
|
|
| message | sender | `{sender address}` |
|
|
|
|
## BeginBlock
|
|
|
|
| Type | Attribute Key | Attribute Value |
|
|
|---------------|---------------|-------------------|
|
|
| auction_close | auction_id | `{auction ID}` |
|
|
| auction_close | close_block | `{block height}` |
|