pussy-ts/src/features/sense/frontend-architecture.md

image

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';
};
image

TODO:

  • optimistic update
  • ui format
  • list

Synonyms

cyb/src/features/sense/frontend-architecture
image frontend formats backend data to items similar to blockchain `Tx.message type`
`value` is additional information of item image

Neighbours