Note: Direct ledger record queries are not available via CLI. These tests verify BME state changes through available queries (vault-state, status, bank balances) and transaction events.
Available BME query commands:
akash query bme paramsakash query bme statusakash query bme vault-state
Test 7.1: Verify State Changes - AKT→ACT (Deposit)
Objective: Confirm vault-state reflects deposit operations
User Actions:
- Record initial vault-state:
Terminal window akash query bme vault-state - Create deployment or mint ACT directly
- Wait for epoch, then query vault-state again
Expected Results: After epoch, vault-state shows:
balances.uaktincreased (AKT in vault)balances.uactincreased (ACT minted)remint_creditsincreased (AKT escrowed for future settlements)total_minted.uactincreased
Test 7.2: Verify State Changes - ACT→AKT (Refund with Remint)
Objective: Confirm vault-state reflects refund/burn operations using remint credits
User Actions:
- Start with ACT balance from previous minting
- Record initial vault-state
- Burn ACT:
Terminal window akash tx bme burn-act 50000000uact --from <wallet> -y - Wait for epoch, then query vault-state
Expected Results: After epoch, vault-state shows:
balances.uactdecreased (ACT burned)remint_creditsdecreased (used for AKT payout)total_minted.uaktunchanged (no new AKT minted - non-inflationary)- User’s AKT balance increased
Test 7.3: Verify State Changes - ACT→AKT (Inflationary Path)
Objective: Confirm vault-state shows inflationary minting when remint credits insufficient
Preconditions:
- Low remint credits relative to ACT burn amount
- Or price drop making remint credits insufficient
User Actions:
- Record initial vault-state
- Trigger refund/burn that exceeds remint credits
- Wait for epoch, then query vault-state
Expected Results: After epoch, vault-state shows:
remint_creditsdecreased (possibly to 0)total_minted.uaktINCREASED (new AKT minted - INFLATIONARY)- Total AKT supply increased
Test 7.4: Query BME Vault State
Objective: Verify all BME metrics queryable
User Actions:
- Execute BME queries via CLI:
Terminal window akash query bme vault-stateakash query bme statusakash query bme params - Verify all queries return valid data
Expected Results:
vault-statereturns: Balances, TotalBurned, TotalMinted, RemintCreditsstatusreturns: status enum, EpochHeightDiff, PreviousStatusparamsreturns: thresholds, epoch settings
Test 7.5: Event Emission - Mint Status Change
Objective: Verify EventMintStatusChange emitted on transitions
User Actions:
- Trigger mint status change (e.g., Healthy → Warning)
- Query transaction events
Expected Results:
EventMintStatusChangeemitted- Contains:
PreviousStatus,NewStatus,CollateralRatio
Test 7.6: Event Emission - Ledger Record Executed
Objective: Verify EventLedgerRecordExecuted emitted on completion
User Actions:
- Create deployment (triggers burn/mint)
- Query transaction events
Expected Results:
EventLedgerRecordExecutedemitted- Contains:
ID(LedgerRecordID)