0g-chain/x/bep3/spec/04_events.md
Denali Marsh 6c68e41758
[R4R] bep3 module audit revisions (#505)
* most audit revisions

* remove expected income

* update begin block spec

* filter queryAtomicSwaps, add queryAssetSupplies

* update old address

* update test

* Remove legacy method

* remove legacy comment

* address PR comments

* IsValid for SwapDirection, SwapStatus

* fix rng logging

* query asset supplies

* return [64]byte from rng

* remove cross chain field from MsgCreateAtomicSwap

* move swap filtering to querier

* rename Limit field to SupplyLimit
2020-05-12 13:15:38 -07:00

2.5 KiB

Events

The x/bep3 module emits the following events:

Handlers

MsgCreateAtomicSwap

Type Attribute Key Attribute Value
create_atomic_swap sender {sender address}
create_atomic_swap recipient {recipient address}
create_atomic_swap atomic_swap_id {swap ID}
create_atomic_swap random_number_hash {random number hash}
create_atomic_swap timestamp {timestamp}
create_atomic_swap sender_other_chain {sender other chain}
create_atomic_swap expire_height {swap expiration block}
create_atomic_swap amount {coin amount}
create_atomic_swap direction {incoming or outgoing}
message module bep3
message sender {sender address}

MsgClaimAtomicSwap

Type Attribute Key Attribute Value
claim_atomic_swap claim_sender {sender address}
claim_atomic_swap recipient {recipient address}
claim_atomic_swap atomic_swap_id {swap ID}
claim_atomic_swap random_number_hash {random number hash}
claim_atomic_swap random_number {secret random number}
message module bep3
message sender {sender address}

MsgRefundAtomicSwap

Type Attribute Key Attribute Value
refund_atomic_swap refund_sender {sender address}
refund_atomic_swap sender {swap creator address}
refund_atomic_swap atomic_swap_id {swap ID}
refund_atomic_swap random_number_hash {random number hash}
message module bep3
message sender {sender address}

BeginBlock

Type Attribute Key Attribute Value
swaps_expired atomic_swap_ids {array of swap IDs}
swaps_expired expiration_block {block height at expiration}