Skip to content

Commit

Permalink
add admin-related events in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tkxkd0159 committed May 9, 2023
1 parent c23a2db commit 02a7652
Showing 1 changed file with 26 additions and 9 deletions.
35 changes: 26 additions & 9 deletions x/wasm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,16 +293,20 @@ find out the entire path for the events.
| wasm-{customEventType} | {customContractAttributeKey} | {customContractAttributeKey} | (optional) Defined by wasm contract developer |

#### MsgUpdateAdmin
| Type | Attribute Key | Attribute Value | Note |
|---------|-------------------|-------------------|---------------------------|
| message | module | wasm | |
| message | sender | {senderAddress} | |
| Type | Attribute Key | Attribute Value | Note |
|-----------------------|-------------------|--------------------|------|
| message | module | wasm | |
| message | sender | {senderAddress} | |
| update_contract_admin | _contract_address | {contract_address} | |
| update_contract_admin | new_admin_address | {adminAddress} | |

#### MsgClearAdmin
| Type | Attribute Key | Attribute Value | Note |
|---------|-------------------|-------------------|---------------------------|
| message | module | wasm | |
| message | sender | {senderAddress} | |
| Type | Attribute Key | Attribute Value | Note |
|-----------------------|-------------------|--------------------|------|
| message | module | wasm | |
| message | sender | {senderAddress} | |
| update_contract_admin | _contract_address | {contract_address} | |
| update_contract_admin | new_admin_address | {adminAddress} | |

### Keeper Events
In addition to message events, the wasm keeper will produce events when the following methods are called (or any method which ends up calling them)
Expand Down Expand Up @@ -334,14 +338,27 @@ In addition to message events, the wasm keeper will produce events when the foll
|------------|---------------|-----------------|------|
| unpin_code | code_id | {codeID} | |

#### SetContractAdmin
| Type | Attribute Key | Attribute Value | Note |
|-----------------------|-------------------|--------------------|------|
| update_contract_admin | _contract_address | {contract_address} | |
| update_contract_admin | new_admin_address | {adminAddress} | |

#### SetAccessConfig
By governance

| Type | Attribute Key | Attribute Value | Note |
|---------------------------|-----------------|-----------------|------|
| update_code_access_config | code_permission | {String} | |
| update_code_access_config | code_id | {String} | |

### Proposal Events
If you use wasm proposal, it makes common event like below.

| Type | Attribute Key | Attribute Value | Note |
|---------------------|---------------|--------------------|------|
| gov_contract_result | result | {resultOfProposal} | |


## Messages

TODO
Expand Down

0 comments on commit 02a7652

Please sign in to comment.