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.
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 omittedProblem Definition
Context:
MsgSendline, as it's redundantProposal
Pros of removing the line:
Pros of keeping the line:
For example, for nested fields, we use:
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:
which gives the initial output with the message header screen.
So it's a tradeoff between shorter screens vs consistency.