mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-10 18:15:19 +00:00
47 lines
1.5 KiB
Markdown
47 lines
1.5 KiB
Markdown
<!--
|
|
order: 4
|
|
-->
|
|
|
|
# Events
|
|
|
|
The hard module emits the following events:
|
|
|
|
## Handlers
|
|
|
|
### MsgDeposit
|
|
|
|
| Type | Attribute Key | Attribute Value |
|
|
| ------------ | ------------- | --------------------- |
|
|
| message | module | hard |
|
|
| message | sender | `{sender address}` |
|
|
| hard_deposit | amount | `{amount}` |
|
|
| hard_deposit | depositor | `{depositor address}` |
|
|
|
|
### MsgWithdraw
|
|
|
|
| Type | Attribute Key | Attribute Value |
|
|
| --------------- | ------------- | --------------------- |
|
|
| message | module | hard |
|
|
| message | sender | `{sender address}` |
|
|
| hard_withdrawal | amount | `{amount}` |
|
|
| hard_withdrawal | depositor | `{depositor address}` |
|
|
|
|
### MsgBorrow
|
|
|
|
| Type | Attribute Key | Attribute Value |
|
|
| --------------- | ------------- | -------------------- |
|
|
| message | module | hard |
|
|
| message | sender | `{sender address}` |
|
|
| hard_borrow | borrow_coins | `{amount}` |
|
|
| hard_withdrawal | borrower | `{borrower address}` |
|
|
|
|
### MsgRepay
|
|
|
|
| Type | Attribute Key | Attribute Value |
|
|
| ---------- | ------------- | -------------------- |
|
|
| message | module | hard |
|
|
| message | sender | `{sender address}` |
|
|
| message | owner | `{owner address}` |
|
|
| hard_repay | repay_coins | `{amount}` |
|
|
| hard_repay | sender | `{borrower address}` |
|