0g-chain/x/auction/spec/04_events.md
Ruaridh 22e168d06a Various Auction TODOs (#281)
* make auctions not expire without bids

* add events

* improve genesis state validation

* add genesis tests

* update comment

Co-Authored-By: Kevin Davis <karzak@users.noreply.github.com>

* add more events attributes

Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
2020-01-14 15:00:37 +01:00

1.1 KiB

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_denom {auction lot denom}
auction_start bid_denom {auction bid denom}

Handlers

MsgPlaceBid

Type Attribute Key Attribute Value
auction_bid auction_id {auction ID}
auction_bid bidder {latest bidder}
auction_bid bid_amount {coin amount}
auction_bid lot_amount {coin amount}
auction_bid end_time {auction end time}
message module auction
message sender {sender address}

EndBlock

Type Attribute Key Attribute Value
auction_close auction_id {auction ID}