2020-06-03 18:54:31 +00:00
|
|
|
<!--
|
|
|
|
order: 5
|
|
|
|
-->
|
|
|
|
|
2020-01-23 19:09:36 +00:00
|
|
|
# Events
|
|
|
|
|
|
|
|
The cdp module emits the following events:
|
|
|
|
|
|
|
|
## Handlers
|
|
|
|
|
|
|
|
### MsgCreateCDP
|
|
|
|
|
2020-06-03 18:54:31 +00:00
|
|
|
| Type | Attribute Key | Attribute Value |
|
|
|
|
|-------------|---------------|--------------------|
|
|
|
|
| message | module | cdp |
|
|
|
|
| message | sender | `{sender address}' |
|
|
|
|
| create_cdp | cdp_id | `{cdp id}' |
|
|
|
|
| cdp_deposit | cdp_id | `{cdp id}' |
|
|
|
|
| cdp_deposit | amount | `{deposit amount}' |
|
|
|
|
| cdp_draw | cdp_id | `{cdp id}' |
|
|
|
|
| cdp_draw | amount | `{draw amount}' |
|
2020-01-23 19:09:36 +00:00
|
|
|
|
|
|
|
### MsgWithdraw
|
|
|
|
|
2020-05-07 21:35:42 +00:00
|
|
|
| Type | Attribute Key | Attribute Value |
|
|
|
|
|---------|--------------- |-----------------------|
|
2020-06-03 18:54:31 +00:00
|
|
|
| message | cdp_withdrawal | `{collateral amount}' |
|
|
|
|
| message | cdp_id | `{cdp_id}' |
|
2020-05-07 21:35:42 +00:00
|
|
|
| message | module | cdp |
|
2020-06-03 18:54:31 +00:00
|
|
|
| message | sender | `{sender address}' |
|
2020-01-23 19:09:36 +00:00
|
|
|
|
|
|
|
### MsgDeposit
|
|
|
|
|
2020-06-03 18:54:31 +00:00
|
|
|
| Type | Attribute Key | Attribute Value |
|
|
|
|
|-------------|---------------|--------------------|
|
|
|
|
| message | module | cdp |
|
|
|
|
| message | sender | `{sender address}' |
|
|
|
|
| cdp_deposit | cdp_id | `{cdp id}' |
|
|
|
|
| cdp_deposit | amount | `{deposit amount}' |
|
2020-01-23 19:09:36 +00:00
|
|
|
|
|
|
|
### MsgDrawDebt
|
|
|
|
|
2020-06-03 18:54:31 +00:00
|
|
|
| Type | Attribute Key | Attribute Value |
|
|
|
|
|----------|---------------|--------------------|
|
|
|
|
| message | module | cdp |
|
|
|
|
| message | sender | `{sender address}' |
|
|
|
|
| cdp_draw | cdp_id | `{cdp id}' |
|
|
|
|
| cdp_draw | amount | `{draw amount}' |
|
2020-01-23 19:09:36 +00:00
|
|
|
|
|
|
|
### MsgRepayDebt
|
|
|
|
|
2020-06-03 18:54:31 +00:00
|
|
|
| Type | Attribute Key | Attribute Value |
|
|
|
|
|---------------|---------------|----------------------|
|
|
|
|
| cdp_repayment | amount | `{repayment amount}' |
|
|
|
|
| cdp_repayment | cdp_id | `{cdp id}' |
|
|
|
|
| cdp_close | cdp_id | `{cdp id}' |
|
|
|
|
| message | module | cdp |
|
|
|
|
| message | sender | `{sender address}' |
|
2020-01-23 19:09:36 +00:00
|
|
|
|
|
|
|
## BeginBlock
|
|
|
|
|
|
|
|
| Type | Attribute Key | Attribute Value |
|
|
|
|
|-------------------------|---------------|---------------------|
|
|
|
|
| cdp_liquidation | module | cdp |
|
2020-06-03 18:54:31 +00:00
|
|
|
| cdp_liquidation | cdp_id | `{cdp id}' |
|
|
|
|
| cdp_liquidation | deposit | `{deposit}' |
|
2020-01-23 19:09:36 +00:00
|
|
|
| cdp_begin_blocker_error | module | cdp |
|
2020-06-03 18:54:31 +00:00
|
|
|
| cdp_begin_blocker_error | error_message | `{error}' |
|