Skip to content Search Apps Documentation Source Content Run Reset Eval Playground File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

prooftrail source realm

Constants 1

Functions 10

func CreateTask

crossing Action
1func CreateTask(cur realm, communityID int, title, description, requirements string) int
source

func UpdateTask

crossing Action
1func UpdateTask(cur realm, taskID int, description, requirements string)
source

Description/requirements may only change while the task is open and has no submissions, so contributors are never judged against rules that changed after they submitted.

Types 4

type Community

struct
1type Community struct {
2	id          int
3	name        string
4	description string
5	admin       address
6	reviewers   []address
7	createdAt   int64
8}
source

type Event

struct
1type Event struct {
2	seq     int
3	kind    string
4	actor   address
5	subject int
6	detail  string
7	at      int64
8}
source

type Submission

struct
 1type Submission struct {
 2	id           int
 3	taskID       int
 4	communityID  int
 5	contributor  address
 6	evidenceURL  string
 7	evidenceHash string // SHA-256 (hex) of the evidence, computed by the contributor. Proves integrity only.
 8	notes        string
 9	status       string
10	reviewer     address
11	reviewReason string
12	submittedAt  int64
13	reviewedAt   int64
14}
source

type Task

struct
 1type Task struct {
 2	id           int
 3	communityID  int
 4	title        string
 5	description  string
 6	requirements string
 7	status       string
 8	createdBy    address
 9	createdAt    int64
10}
source

Dependencies

Imports 4

/r/g1nnfdg26xumukuxjevxtfz2wv09dt6x0zwmjmpr/prooftrail

Imported by indexer

Source Files 3