0g-chain/x/bep3/spec/04_events.md
Denali Marsh 2d7f5c4080
[R4R] Better docs (#541)
* update sidebar order

* update event backticks

* fix broken links

* fix spelling
2020-06-03 14:54:31 -04:00

2.6 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}