Migration Guide v7.0
API Changes
Cosmos
Regen Ledger v7.0 includes an update to Cosmos SDK 0.53 and the addition of Protocol Pool and Circuit Breaker modules.
Events
abci.TxResult.Logbehavior changedIn v7.0, the
logfield inabci.TxResultis no longer populated when message execution is successful.Instead, each emitted event now includes an additional attribute:
msg_index: identifies which message within the transaction the event and its attributes belong to.
This allows consumers to reliably group events by the message that produced them, without relying on the legacy
logfield.
BeginBlock and EndBlock events via
FinalizeBlockBeginBlockandEndBlockevents are now emitted throughFinalizeBlock.These events include a new attribute to distinguish their origin:
mode=BeginBlockfor events originating fromBeginBlockmode=EndBlockfor events originating fromEndBlock
Indexers and event consumers must use the
modeattribute to determine whether an event came fromBeginBlockorEndBlock.
IBC
ibc.applications.transfer.v1
What changed for clients
List all denominations
- Old: GET /ibc/apps/transfer/v1/denom_traces
+ New: GET /ibc/apps/transfer/v1/denoms
Response
- Old field: denom_traces
+ New field: denoms
Get denomination
- Old: GET /ibc/apps/transfer/v1/denom_traces/{hash}
+ New: GET /ibc/apps/transfer/v1/denoms/{hash}
Response
- Old field: denom_trace
+ New field: denom
Denom object format
Old format (DenomTrace)
{
"base_denom": "uregen",
"path": "transfer/channel-0/transfer/channel-1"
}
New format (Denom)
{
"base": "uregen",
"trace": [
{
"port_id": "transfer",
"channel_id": "channel-0"
},
{
"port_id": "transfer",
"channel_id": "channel-1"
}
]
}