frontend formats backend data to items similar to blockchain Tx.message type
value is additional information of item
// store primary type of item
// similar to Tx.message
type SenseItem = {
id: SenseItemId;
transactionHash: string;
timestamp: string;
memo: string;
from: string;
type: string; // ex. cosmos.bank.v1beta1.MsgSend
// additional information of tx, link
value: {};
// for optimistic update
status?: 'pending' | 'error';
};
TODO:
- optimistic update
- ui format
- list