Contract Events
The DomainSale smart contract emits a number of events to allow listenres to provide full information about the current state of domains for sale and under auction. The events emitted are as follows:
Offer
This event is emitted when an offer transaction is received. The event emits the following parameters:
sellerthe address selling the domain (this is indexed)namethe name of the domain, minus the.ethending (so for example if the offer is onmydomain.eththis would bemydomain)pricethe fixed price at which the domain can be purchased immediately (if this is0it means that this domain cannot be purchased immediately)reservethe lowest acceptable bid at which the domain will enter auction (if this is0it means that this domain cannot be purchased at auction)
Bid
This event is emitted when a bid transaction is received. The event emits the following parameters:
bidderthe address making the bid (this is indexed)namethe name of the domain, minus the.ethending (so for example if the bid is onmydomain.eththis would bemydomain)bidthe bid that was made
Cancel
This event is emitted when a cancel transaction is received. The event emits the following parameters:
sellerthe address selling the domain (this is indexed)namethe name of the domain, minus the.ethending (so for example if the cancellation is onmydomain.eththis would bemydomain)
Transfer
This event is emitted when a domain is transferred, after either a buy or a finish transaction is received. The event emits the following parameters:
sellerthe address of the domain seller (this is indexed)buyerthe address to of the domain buyer (this is indexed)namethe name of the domain, minus the.ethending (so for example if the domain transferred ismydomain.eththis would bemydomain)valuethe amount that the buyer paid to buy the domain