Skip to content

Textual Any Renderer: Remove msg header screen #14170

@amaury1093

Description

@amaury1093

Summary

The proposal is to remove the line in red in the current Any value renderer.

{ "text": "This transaction has 1 Message" },
{ "text": "Message (1/1): Object: /cosmos.bank.v1beta1.MsgSend" },
{ "text": "Message (1/1): /cosmos.bank.v1beta1.MsgSend" },
- { "text": "MsgSend object" },
{ "text": "From address: cosmos1ulav3hsenupswqfkw2y3sup5kgtqwnvqa8eyhs" },
{ "text": "To address: cosmos1abc" },
... // indentation omitted

Problem Definition

Context:

Proposal

Pros of removing the line:

  • shorter rendered output (but needs a small "hack" in Any value renderer)

Pros of keeping the line:

  • Consistency, when thinking about value renderers.

For example, for nested fields, we use:

My field: [[MsgSend object
> From address: cosmos1ulav3hsenupswqfkw2y3sup5kgtqwnvqa8eyhs]]

Which has a clear spec: <field name>: <value-rendered msg>, where the part between brackets [[ ]] denotes the message value renderer output (the brackets themselves are not shown on screen, just here to clarify the purpose).

The Any spec is:

<Type URL>
<value-renderer msg>

which gives the initial output with the message header screen.

So it's a tradeoff between shorter screens vs consistency.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions