crea8r / communify

Decaying tokens.
0 stars 0 forks source link

Transfer with memo #3

Closed 0xk2 closed 1 month ago

0xk2 commented 1 month ago

Every transaction will create a memo

#[account]
#[derive(InitSpace)]
pub struct Memo {
  pub community: Pubkey,
  pub from: Pubkey,
  pub to: Pubkey,
  #[max_len(50)]
  pub note: String,
}

Memo is immutable, filterable on community, sender and receiver. App developer can use AI to build a profile of "to" and "from" address.