Search Apps Documentation Source Content File Folder Download Copy Actions Download

types.gno

0.62 Kb ยท 42 lines
 1package builders
 2
 3import "time"
 4
 5type Status int
 6
 7const (
 8	StatusPending Status = iota
 9	StatusApproved
10	StatusRejected
11	StatusPaid
12)
13
14func (s Status) String() string {
15	switch s {
16	case StatusPending:
17		return "pending"
18	case StatusApproved:
19		return "approved"
20	case StatusRejected:
21		return "rejected"
22	case StatusPaid:
23		return "paid"
24	default:
25		return "unknown"
26	}
27}
28
29type Submission struct {
30	Applicant   address
31	Twitter     string
32	Discord     string
33	GitHub      string
34	RequestType string
35	Details     string
36
37	Status      Status
38	ReviewNote  string
39	SubmittedAt time.Time
40	ReviewedAt  time.Time
41	PaidAt      time.Time
42}