Last active
April 26, 2019 09:06
-
-
Save desaperados/895fdd167c7a52598bcc5327515afb7a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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