0g-chain/x/auction/spec/04_events.md

35 lines
1.2 KiB
Markdown
Raw Normal View History

# Events
The `x/auction` module emits the following events:
## Triggered By Other Modules
2020-05-08 15:07:11 +00:00
| 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} |
2020-05-08 15:07:11 +00:00
| 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} |
2020-05-08 15:07:11 +00:00
| auction_close | close_block | {block height} |