Skip to content

Instantly share code, notes, and snippets.

@desaperados
Last active April 26, 2019 09:06
Show Gist options
  • Save desaperados/895fdd167c7a52598bcc5327515afb7a to your computer and use it in GitHub Desktop.
Save desaperados/895fdd167c7a52598bcc5327515afb7a to your computer and use it in GitHub Desktop.
type User {
address: Address
locks: [Lock]
frees: [Free]
votes: [Vote]
weight: Float
}
# Lock event
type Lock {
usr: Address
amt: Float
tx: Transaction
}
# Free event
type Free {
usr: Address
amt: Float
tx: Transaction
}
# Vote event
type Vote {
usr: Address
slate: String
weight: Float
active: Boolean
tx: Transaction
}
type Etch {
slate: String
tx: Transaction
}
# A set of candidates (yays)
type Slate {
hash: String
yays: [Address]
approvals: [Approval]
created: Datetime
}
type Deposit {
usr: Address
amt: Float
created: Datetime
updated: Datetime
}
type Approval {
yay: Address
amt: Float
created: Datetime
updated: Datetime
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment