mirror of
				https://github.com/0glabs/0g-chain.git
				synced 2025-11-04 14:17:28 +00:00 
			
		
		
		
	* add overview and basic structure * add state and params * add basic messages * add state transitions * add begin block state transitions * add missing titles * add concepts * add events * update state and concepts * update for liquidator changes * update events * mention module accounts * update begin block * update params * update page numbering * add fee descriptions * add broken link linter * add broken link linter to CI * move link check to end of CI * update typo Co-Authored-By: Kevin Davis <karzak@users.noreply.github.com> * address review comments * Update x/cdp/spec/06_params.md Co-Authored-By: Kevin Davis <karzak@users.noreply.github.com> * Update x/cdp/spec/README.md Co-Authored-By: Kevin Davis <karzak@users.noreply.github.com> * Update x/cdp/spec/README.md Co-Authored-By: Kevin Davis <karzak@users.noreply.github.com> Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
		
			
				
	
	
	
		
			2.0 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			2.0 KiB
		
	
	
	
	
	
	
	
Events
The cdp module emits the following events:
Handlers
MsgCreateCDP
| 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} | 
MsgWithdraw
| Type | Attribute Key | Attribute Value | 
|---|---|---|
| message | module | cdp | 
| message | sender | {sender address} | 
MsgDeposit
| Type | Attribute Key | Attribute Value | 
|---|---|---|
| message | module | cdp | 
| message | sender | {sender address} | 
| cdp_deposit | cdp_id | {cdp id} | 
| cdp_deposit | amount | {deposit amount} | 
MsgDrawDebt
| Type | Attribute Key | Attribute Value | 
|---|---|---|
| message | module | cdp | 
| message | sender | {sender address} | 
| cdp_draw | cdp_id | {cdp id} | 
| cdp_draw | amount | {draw amount} | 
MsgRepayDebt
| Type | Attribute Key | Attribute Value | 
|---|---|---|
| message | module | cdp | 
| message | sender | {sender address} | 
BeginBlock
| Type | Attribute Key | Attribute Value | 
|---|---|---|
| cdp_liquidation | module | cdp | 
| cdp_liquidation | cdp_id | {cdp id} | 
| cdp_liquidation | depositor | {depositor address} | 
| cdp_begin_blocker_error | module | cdp | 
| cdp_begin_blocker_error | error_message | {error} |