mirror of
https://github.com/0glabs/0g-chain.git
synced 2025-04-01 14:26:02 +00:00
Merge 8105408bd1
into 80208ed9b7
This commit is contained in:
commit
33d8832d99
@ -134,7 +134,12 @@ func (k *Keeper) GetOrDeployCosmosCoinERC20Contract(
|
||||
// register the contract to the module store
|
||||
err = k.SetDeployedCosmosCoinContract(ctx, tokenInfo.CosmosDenom, contractAddress)
|
||||
|
||||
// TODO: emit event that contract was deployed
|
||||
// Emit event that contract was deployed
|
||||
ctx.EventManager().EmitEvent(sdk.NewEvent(
|
||||
types.EventTypeDeployedCosmosCoinContract,
|
||||
sdk.NewAttribute(types.AttributeKeyCosmosDenom, tokenInfo.CosmosDenom),
|
||||
sdk.NewAttribute(types.AttributeKeyContractAddress, contractAddress.String()),
|
||||
))
|
||||
|
||||
return contractAddress, err
|
||||
}
|
||||
|
@ -10,6 +10,7 @@ const (
|
||||
|
||||
EventTypeConvertCosmosCoinToERC20 = "convert_cosmos_coin_to_erc20"
|
||||
EventTypeConvertCosmosCoinFromERC20 = "convert_cosmos_coin_from_erc20"
|
||||
EventTypeDeployedCosmosCoinContract = "deployed_cosmos_coin_contract"
|
||||
|
||||
// Event Attributes - Common
|
||||
AttributeKeyReceiver = "receiver"
|
||||
@ -18,4 +19,8 @@ const (
|
||||
// Event Attributes - Conversions
|
||||
AttributeKeyInitiator = "initiator"
|
||||
AttributeKeyERC20Address = "erc20_address"
|
||||
|
||||
// Event Attributes - Contract Deployment
|
||||
AttributeKeyCosmosDenom = "cosmos_denom"
|
||||
AttributeKeyContractAddress = "contract_address"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user