Skip to content

Latest commit

 

History

History
69 lines (68 loc) · 1.03 KB

SCHEMA.md

File metadata and controls

69 lines (68 loc) · 1.03 KB

Metamask-Snaps

Schema

Users

[
  {
    address : string,
    contacts<array> : [
      {
        name : string,
        address : string
      }
    ],
    balances<array> : [
      {
        address : string,
        owedBalance : float
      }
    ],
    groups<Hashmap> : {
      groupId: balanceOwed
    },
    recurring_payments : [
      {
        _id : id,
        name : string,
        to : string,
        amount : float,
        billDate : timestamp,
        activeStatus : boolean
      }
    ]
  }
]

Groups

[
  {
    _id : id,
    name : string,
    type : (group, personal),
    members<Hashmap> : {
      user: owedBalance
    },
    splits<collection> : [
      {
        _id : id,
        date : timestamp,
        name : string,
        involved<HashMap> : [
          {
            user : reference,
            amount : float
          }
        ],
        chat : [
          {
            _id : id,
            date : timestamp,
            message : string
          }
        ]
      }
    ]
  }
]