Skip to content

Commit 4b8e776

Browse files
committed
Add buildscript.sh for node initialization and configuration, update OpenAPI documentation, and enhance UnlockTokens event attributes with bridge contract address.
1 parent 7738a5c commit 4b8e776

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

docs/static/openapi.yml

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

x/evmbridge/keeper/msg_server_unlock_tokens.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ func (k msgServer) UnlockTokens(goCtx context.Context, msg *types.MsgUnlockToken
1414
ctx := sdk.UnwrapSDKContext(goCtx)
1515

1616
allowedWorkers := k.GetParams(ctx).BridgeWorkers
17+
bridgeContractAddress := k.GetParams(ctx).BridgeContractAddress
1718
var isAllowedWorker bool
1819
for _, worker := range allowedWorkers {
1920
if worker == msg.Creator {
@@ -104,6 +105,7 @@ func (k msgServer) UnlockTokens(goCtx context.Context, msg *types.MsgUnlockToken
104105
sdk.NewAttribute(types.AttributeKeyEVMTxHash, msg.EvmTxHash),
105106
sdk.NewAttribute(types.AttributeKeyBlockHeight, fmt.Sprintf("%d", blockHeight)),
106107
sdk.NewAttribute(types.AttributeKeyTimestamp, blockTime.Format(time.RFC3339)),
108+
sdk.NewAttribute(types.AttributeKeyBridgeContractAddress, bridgeContractAddress),
107109
),
108110
)
109111

x/evmbridge/types/events.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,6 @@ const (
2626
AttributeKeyEVMTxHash = "evm_tx_hash"
2727
// AttributeKeyFromEvmAddress is the EVM address that triggered the unlock
2828
AttributeKeyFromEvmAddress = "from_evm_address"
29+
// AttributeKeyBridgeContractAddress is the bridge contract address
30+
AttributeKeyBridgeContractAddress = "bridge_contract_address"
2931
)

0 commit comments

Comments
 (0)