These tests verify that BME operations emit proper events that can be observed in transaction logs.
Available BME query commands:
akash query bme paramsakash query bme statusakash query bme vault-state
Viewing Transaction Events:
# Query transaction by hash to see all eventsakash query tx <tx-hash> --output json | jq '.events'
# Filter for message events (includes BME actions)akash query tx <tx-hash> --output json | jq '.events[] | select(.type == "message")'Test 8.1: Event Emission - MintACT
Objective: Verify events are emitted when minting ACT
User Actions:
-
Execute mint operation:
Terminal window akash tx bme mint-act 20000000uakt --from <wallet> -yNote the transaction hash from output.
-
Query transaction events:
Terminal window akash query tx <tx-hash> --output json | jq '.events[] | select(.type == "message")' -
Look for BME mint event in the output
Expected Results:
- Event with
type: "message"containing:action: "/akash.bme.v1.MsgMintACT"sender: <user-address>module: "bme"
Example Output:
{ "type": "message", "attributes": [ { "key": "action", "value": "/akash.bme.v1.MsgMintACT" }, { "key": "sender", "value": "akash1..." }, { "key": "module", "value": "bme" }, { "key": "msg_index", "value": "0" } ]}Proof to Submit:
- Transaction hash
- Event output showing
action: "/akash.bme.v1.MsgMintACT"andmodule: "bme"
Test 8.2: Event Emission - BurnACT
Objective: Verify events are emitted when burning ACT
User Actions:
-
Ensure wallet has ACT balance (from previous minting)
-
Execute burn operation:
Terminal window akash tx bme burn-act 15000000uact --from <wallet> -yNote the transaction hash from output.
-
Query transaction events:
Terminal window akash query tx <tx-hash> --output json | jq '.events[] | select(.type == "message")' -
Look for BME burn event in the output
Expected Results:
- Event with
type: "message"containing:action: "/akash.bme.v1.MsgBurnACT"sender: <user-address>module: "bme"
Example Output:
{ "type": "message", "attributes": [ { "key": "action", "value": "/akash.bme.v1.MsgBurnACT" }, { "key": "sender", "value": "akash1..." }, { "key": "module", "value": "bme" }, { "key": "msg_index", "value": "0" } ]}Proof to Submit:
- Transaction hash
- Event output showing
action: "/akash.bme.v1.MsgBurnACT"andmodule: "bme"
Test 8.3: Event Emission - Deployment Close
Objective: Verify deployment lifecycle events are emitted during close
User Actions:
-
Create a deployment (see Category 1 for full workflow):
Terminal window akash tx deployment create deploy.yml --deposit 50000000uact --from <wallet> -y# Complete lease creation... -
Let deployment run briefly (~1-2 minutes)
-
Close deployment and capture transaction hash:
Terminal window akash tx deployment close --dseq <dseq> --from <wallet> -yNote the transaction hash.
-
Query close transaction events:
Terminal window akash query tx <tx-hash> --output json | jq '.events[] | select(.type | contains("deployment") or contains("lease"))'
Expected Results:
akash.deployment.v1.EventDeploymentClosedevent containing:idwith owner address and dseq
akash.deployment.v1.EventGroupClosedevent containing:idwith owner, dseq, and gseq
Example Output:
{ "type": "akash.deployment.v1.EventDeploymentClosed", "attributes": [ { "key": "id", "value": "{\"owner\":\"akash1...\",\"dseq\":\"12345\"}" } ]}{ "type": "akash.deployment.v1.EventGroupClosed", "attributes": [ { "key": "id", "value": "{\"owner\":\"akash1...\",\"dseq\":\"12345\",\"gseq\":1}" } ]}Proof to Submit:
- Transaction hash for deployment close
- Event output showing
EventDeploymentClosedandEventGroupClosedevents
⚠️ Important: Close deployment when testing is complete.
Summary
| Test | Event Type | Key Attributes |
|---|---|---|
| 8.1 | message | action: /akash.bme.v1.MsgMintACT, module: bme |
| 8.2 | message | action: /akash.bme.v1.MsgBurnACT, module: bme |
| 8.3 | EventDeploymentClosed, EventGroupClosed | id with owner/dseq |