-
Notifications
You must be signed in to change notification settings - Fork 0
/
type.go
155 lines (130 loc) · 5 KB
/
type.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
package main
type Project interface{}
type Response struct {
Meta Metadata `json:"meta"`
Data []Project `json:"data"`
}
type Metadata struct {
HasNext bool `json:"has_next"`
TotalReturned int64 `json:"total_returned"`
NextOffset int64 `json:"next_offset"`
}
// NOTE: since it always update so just use the type any for now is fine
// type Project struct {
// ID string `json:"id"`
// ApplicationID string `json:"applicationId"`
// ProjectID string `json:"projectId"`
// Category string `json:"category"`
// ApplicationCategory Category `json:"applicationCategory"`
// Organization *Organization `json:"organization"`
// Name string `json:"name"`
// Description string `json:"description"`
// ProfileAvatarURL string `json:"profileAvatarUrl"`
// ProjectCoverImageURL string `json:"projectCoverImageUrl"`
// SocialLinks SocialLinks `json:"socialLinks"`
// Team []Team `json:"team"`
// Github []Github `json:"github"`
// Packages []interface{} `json:"packages"`
// Links []Github `json:"links"`
// Contracts []Contract `json:"contracts"`
// GrantsAndFunding GrantsAndFunding `json:"grantsAndFunding"`
// PricingModel PricingModel `json:"pricingModel"`
// ImpactStatement ImpactStatement `json:"impactStatement"`
// }
// type Contract struct {
// Address string `json:"address"`
// DeploymentTxHash string `json:"deploymentTxHash"`
// DeployerAddress string `json:"deployerAddress"`
// VerificationProof string `json:"verificationProof"`
// ChainID int64 `json:"chainId"`
// }
// type Github struct {
// URL string `json:"url"`
// Name *string `json:"name"`
// Description *string `json:"description"`
// }
// type GrantsAndFunding struct {
// VentureFunding []interface{} `json:"ventureFunding"`
// Grants []Grant `json:"grants"`
// Revenue []interface{} `json:"revenue"`
// }
// type Grant struct {
// Grant *string `json:"grant"`
// Link *string `json:"link"`
// Amount string `json:"amount"`
// Date string `json:"date"`
// Details *string `json:"details"`
// }
// type ImpactStatement struct {
// Category Category `json:"category"`
// Subcategory []string `json:"subcategory"`
// Statement []Statement `json:"statement"`
// }
// type Statement struct {
// Answer string `json:"answer"`
// Question string `json:"question"`
// }
// type Organization struct {
// Name string `json:"name"`
// Description string `json:"description"`
// OrganizationAvatarURL string `json:"organizationAvatarUrl"`
// OrganizationCoverImageURL *string `json:"organizationCoverImageUrl"`
// SocialLinks SocialLinks `json:"socialLinks"`
// Team []string `json:"team"`
// }
// type SocialLinks struct {
// Website []string `json:"website"`
// Farcaster []string `json:"farcaster"`
// Twitter *string `json:"twitter"`
// Mirror *string `json:"mirror"`
// }
// type Team struct {
// Fid int64 `json:"fid"`
// Object Object `json:"object"`
// PfpURL string `json:"pfp_url"`
// Profile Profile `json:"profile"`
// Username string `json:"username"`
// PowerBadge bool `json:"power_badge"`
// DisplayName string `json:"display_name"`
// ActiveStatus ActiveStatus `json:"active_status"`
// Verifications []string `json:"verifications"`
// FollowerCount int64 `json:"follower_count"`
// CustodyAddress string `json:"custody_address"`
// FollowingCount int64 `json:"following_count"`
// VerifiedAddresses VerifiedAddresses `json:"verified_addresses"`
// }
// type Profile struct {
// Bio Bio `json:"bio"`
// }
// type Bio struct {
// Text string `json:"text"`
// }
// type VerifiedAddresses struct {
// EthAddresses []string `json:"eth_addresses"`
// SolAddresses []string `json:"sol_addresses"`
// }
// type Meta struct {
// HasNext bool `json:"has_next"`
// TotalReturned int64 `json:"total_returned"`
// NextOffset int64 `json:"next_offset"`
// }
// type Category string
// const (
// EthereumCoreContributions Category = "ETHEREUM_CORE_CONTRIBUTIONS"
// OpStackResearchAndDevelopment Category = "OP_STACK_RESEARCH_AND_DEVELOPMENT"
// OpStackTooling Category = "OP_STACK_TOOLING"
// )
// type PricingModel string
// const (
// Free PricingModel = "free"
// Freemium PricingModel = "freemium"
// PayToUse PricingModel = "pay_to_use"
// )
// type ActiveStatus string
// const (
// Inactive ActiveStatus = "inactive"
// )
// type Object string
// const (
// User Object = "user"
// )