@show-karma/karma-gap-sdk 0.4.16 → 0.4.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (188) hide show
  1. package/core/abi/AirdropNFT.json +1 -1
  2. package/core/abi/Allo.json +860 -860
  3. package/core/abi/AlloRegistry.json +578 -578
  4. package/core/abi/CommunityResolverABI.json +506 -506
  5. package/core/abi/Donations.json +251 -251
  6. package/core/abi/EAS.json +1 -1
  7. package/core/abi/MultiAttester.json +746 -746
  8. package/core/abi/ProjectResolver.json +574 -574
  9. package/core/abi/SchemaRegistry.json +1 -1
  10. package/core/abi/index.d.ts +1114 -0
  11. package/core/abi/index.js +26 -0
  12. package/core/class/AllGapSchemas.d.ts +9 -0
  13. package/core/class/AllGapSchemas.js +19 -0
  14. package/core/class/Attestation.d.ts +173 -0
  15. package/core/class/Attestation.js +333 -0
  16. package/core/class/Fetcher.d.ts +175 -0
  17. package/core/class/Fetcher.js +13 -0
  18. package/core/class/GAP.d.ts +254 -0
  19. package/core/class/GAP.js +289 -0
  20. package/core/class/GapSchema.d.ts +34 -0
  21. package/core/class/GapSchema.js +62 -0
  22. package/core/class/Gelato/{Gelato.ts → Gelato.js} +0 -23
  23. package/core/class/GrantProgramRegistry/Allo.d.ts +17 -0
  24. package/core/class/GrantProgramRegistry/Allo.js +137 -0
  25. package/core/class/GrantProgramRegistry/AlloRegistry.d.ts +15 -0
  26. package/core/class/GrantProgramRegistry/AlloRegistry.js +70 -0
  27. package/core/class/GraphQL/AxiosGQL.d.ts +6 -0
  28. package/core/class/GraphQL/AxiosGQL.js +25 -0
  29. package/core/class/GraphQL/EASClient.d.ts +16 -0
  30. package/core/class/GraphQL/EASClient.js +26 -0
  31. package/core/class/GraphQL/GapEasClient.d.ts +71 -0
  32. package/core/class/GraphQL/GapEasClient.js +451 -0
  33. package/core/class/GraphQL/index.js +19 -0
  34. package/core/class/Schema.d.ts +233 -0
  35. package/core/class/Schema.js +490 -0
  36. package/core/class/SchemaError.d.ts +30 -0
  37. package/core/class/SchemaError.js +39 -0
  38. package/core/class/contract/GapContract.d.ts +102 -0
  39. package/core/class/contract/GapContract.js +285 -0
  40. package/core/class/entities/Community.d.ts +34 -0
  41. package/core/class/entities/Community.js +109 -0
  42. package/core/class/entities/ContributorProfile.d.ts +41 -0
  43. package/core/class/entities/ContributorProfile.js +69 -0
  44. package/core/class/entities/Grant.d.ts +54 -0
  45. package/core/class/entities/Grant.js +223 -0
  46. package/core/class/entities/GrantUpdate.d.ts +62 -0
  47. package/core/class/entities/GrantUpdate.js +114 -0
  48. package/core/class/entities/MemberOf.d.ts +11 -0
  49. package/core/class/entities/MemberOf.js +33 -0
  50. package/core/class/entities/Milestone.d.ts +168 -0
  51. package/core/class/entities/Milestone.js +657 -0
  52. package/core/class/entities/Project.d.ts +92 -0
  53. package/core/class/entities/Project.js +418 -0
  54. package/core/class/entities/ProjectImpact.d.ts +50 -0
  55. package/core/class/entities/ProjectImpact.js +112 -0
  56. package/core/class/entities/ProjectMilestone.d.ts +60 -0
  57. package/core/class/entities/ProjectMilestone.js +174 -0
  58. package/core/class/entities/ProjectPointer.d.ts +12 -0
  59. package/core/class/entities/ProjectPointer.js +22 -0
  60. package/core/class/entities/ProjectUpdate.d.ts +50 -0
  61. package/core/class/entities/ProjectUpdate.js +110 -0
  62. package/core/class/entities/Track.d.ts +16 -0
  63. package/core/class/entities/Track.js +21 -0
  64. package/core/class/entities/index.js +26 -0
  65. package/core/class/index.js +26 -0
  66. package/core/class/karma-indexer/GapIndexerClient.d.ts +66 -0
  67. package/core/class/karma-indexer/GapIndexerClient.js +207 -0
  68. package/core/class/karma-indexer/api/GapIndexerApi.d.ts +73 -0
  69. package/core/class/karma-indexer/api/GapIndexerApi.js +256 -0
  70. package/core/class/karma-indexer/api/types.d.ts +309 -0
  71. package/core/class/karma-indexer/api/types.js +2 -0
  72. package/core/class/remote-storage/IpfsStorage.d.ts +23 -0
  73. package/core/class/remote-storage/IpfsStorage.js +56 -0
  74. package/core/class/remote-storage/RemoteStorage.d.ts +41 -0
  75. package/core/class/remote-storage/RemoteStorage.js +38 -0
  76. package/core/class/types/allo.d.ts +78 -0
  77. package/core/class/types/allo.js +2 -0
  78. package/core/class/types/attestations.d.ts +173 -0
  79. package/core/class/types/attestations.js +66 -0
  80. package/core/consts.d.ts +50 -0
  81. package/core/consts.js +699 -0
  82. package/core/index.js +24 -0
  83. package/core/shared/types.d.ts +13 -0
  84. package/core/shared/types.js +2 -0
  85. package/core/types.d.ts +131 -0
  86. package/core/types.js +13 -0
  87. package/core/utils/gelato/index.js +19 -0
  88. package/core/utils/gelato/send-gelato-txn.d.ts +55 -0
  89. package/core/utils/gelato/send-gelato-txn.js +100 -0
  90. package/core/utils/gelato/sponsor-handler.d.ts +9 -0
  91. package/core/utils/gelato/sponsor-handler.js +60 -0
  92. package/core/utils/gelato/watch-gelato-txn.d.ts +7 -0
  93. package/core/utils/gelato/watch-gelato-txn.js +63 -0
  94. package/core/utils/get-date.d.ts +1 -0
  95. package/core/utils/get-date.js +7 -0
  96. package/core/utils/get-ipfs-data.d.ts +1 -0
  97. package/core/utils/get-ipfs-data.js +20 -0
  98. package/core/utils/get-web3-provider.d.ts +2 -0
  99. package/core/utils/get-web3-provider.js +18 -0
  100. package/core/utils/gql-queries.d.ts +12 -0
  101. package/core/utils/gql-queries.js +90 -0
  102. package/core/utils/index.js +23 -0
  103. package/core/utils/map-filter.d.ts +8 -0
  104. package/core/utils/map-filter.js +20 -0
  105. package/core/utils/serialize-bigint.d.ts +1 -0
  106. package/core/utils/serialize-bigint.js +8 -0
  107. package/core/utils/to-unix.d.ts +1 -0
  108. package/core/utils/to-unix.js +25 -0
  109. package/index.js +17 -0
  110. package/package.json +45 -45
  111. package/.cursorrules +0 -43
  112. package/core/abi/index.ts +0 -21
  113. package/core/class/AllGapSchemas.ts +0 -21
  114. package/core/class/Attestation.ts +0 -429
  115. package/core/class/Fetcher.ts +0 -224
  116. package/core/class/GAP.ts +0 -481
  117. package/core/class/GapSchema.ts +0 -93
  118. package/core/class/GrantProgramRegistry/Allo.ts +0 -188
  119. package/core/class/GrantProgramRegistry/AlloRegistry.ts +0 -101
  120. package/core/class/GraphQL/AxiosGQL.ts +0 -29
  121. package/core/class/GraphQL/EASClient.ts +0 -34
  122. package/core/class/GraphQL/GapEasClient.ts +0 -869
  123. package/core/class/Schema.ts +0 -659
  124. package/core/class/SchemaError.ts +0 -42
  125. package/core/class/contract/GapContract.ts +0 -457
  126. package/core/class/entities/Community.ts +0 -148
  127. package/core/class/entities/ContributorProfile.ts +0 -108
  128. package/core/class/entities/Grant.ts +0 -321
  129. package/core/class/entities/GrantUpdate.ts +0 -187
  130. package/core/class/entities/MemberOf.ts +0 -52
  131. package/core/class/entities/Milestone.ts +0 -898
  132. package/core/class/entities/Project.ts +0 -672
  133. package/core/class/entities/ProjectImpact.ts +0 -170
  134. package/core/class/entities/ProjectMilestone.ts +0 -254
  135. package/core/class/entities/ProjectPointer.ts +0 -39
  136. package/core/class/entities/ProjectUpdate.ts +0 -176
  137. package/core/class/entities/Track.ts +0 -32
  138. package/core/class/karma-indexer/GapIndexerClient.ts +0 -383
  139. package/core/class/karma-indexer/api/GapIndexerApi.ts +0 -446
  140. package/core/class/karma-indexer/api/types.ts +0 -313
  141. package/core/class/remote-storage/IpfsStorage.ts +0 -76
  142. package/core/class/remote-storage/RemoteStorage.ts +0 -65
  143. package/core/class/types/allo.ts +0 -93
  144. package/core/class/types/attestations.ts +0 -223
  145. package/core/consts.ts +0 -775
  146. package/core/scripts/create-grant.ts +0 -102
  147. package/core/scripts/create-program.ts +0 -43
  148. package/core/scripts/create-schemas.ts +0 -65
  149. package/core/scripts/deploy.ts +0 -65
  150. package/core/scripts/index.ts +0 -1
  151. package/core/scripts/milestone-multi-grants.ts +0 -125
  152. package/core/shared/types.ts +0 -13
  153. package/core/types.ts +0 -224
  154. package/core/utils/gelato/send-gelato-txn.ts +0 -114
  155. package/core/utils/gelato/sponsor-handler.ts +0 -77
  156. package/core/utils/gelato/watch-gelato-txn.ts +0 -67
  157. package/core/utils/get-date.ts +0 -3
  158. package/core/utils/get-ipfs-data.ts +0 -13
  159. package/core/utils/get-web3-provider.ts +0 -18
  160. package/core/utils/gql-queries.ts +0 -133
  161. package/core/utils/map-filter.ts +0 -21
  162. package/core/utils/serialize-bigint.ts +0 -7
  163. package/core/utils/to-unix.ts +0 -18
  164. package/create-community-example.ts +0 -119
  165. package/csv-upload/README.md +0 -74
  166. package/csv-upload/config.ts +0 -41
  167. package/csv-upload/example.csv +0 -2
  168. package/csv-upload/keys.example.json +0 -8
  169. package/csv-upload/scripts/run.ts +0 -417
  170. package/csv-upload/types.ts +0 -39
  171. package/docs/.gitkeep +0 -0
  172. package/docs/images/attestation-architecture.png +0 -0
  173. package/docs/images/dfd-get-projects.png +0 -0
  174. package/gap-schema.yaml +0 -155
  175. package/milestone-workflow-example.ts +0 -353
  176. package/readme.md +0 -872
  177. package/schemas/.gitkeep +0 -0
  178. package/schemas/GAP-schemas-1692135812877.json +0 -33
  179. package/test-file-indexer-api.ts +0 -25
  180. package/tsconfig.json +0 -26
  181. /package/{csv-upload/.gitkeep → core/class/Gelato/Gelato.d.ts} +0 -0
  182. /package/core/class/GraphQL/{index.ts → index.d.ts} +0 -0
  183. /package/core/class/entities/{index.ts → index.d.ts} +0 -0
  184. /package/core/class/{index.ts → index.d.ts} +0 -0
  185. /package/core/{index.ts → index.d.ts} +0 -0
  186. /package/core/utils/gelato/{index.ts → index.d.ts} +0 -0
  187. /package/core/utils/{index.ts → index.d.ts} +0 -0
  188. /package/{index.ts → index.d.ts} +0 -0
@@ -1,655 +1,655 @@
1
1
  [
2
2
  {
3
- "inputs": [
4
- {
5
- "internalType": "contract IEAS",
6
- "name": "eas",
7
- "type": "address"
8
- }
9
- ],
10
- "stateMutability": "nonpayable",
11
- "type": "constructor"
12
- },
13
- {
14
- "inputs": [],
15
- "name": "AccessDenied",
16
- "type": "error"
17
- },
18
- {
19
- "inputs": [],
20
- "name": "InsufficientValue",
21
- "type": "error"
22
- },
23
- {
24
- "inputs": [],
25
- "name": "InvalidEAS",
26
- "type": "error"
27
- },
28
- {
29
- "inputs": [],
30
- "name": "InvalidLength",
31
- "type": "error"
3
+ "inputs": [
4
+ {
5
+ "internalType": "contract IEAS",
6
+ "name": "eas",
7
+ "type": "address"
8
+ }
9
+ ],
10
+ "stateMutability": "nonpayable",
11
+ "type": "constructor"
32
12
  },
33
13
  {
34
- "inputs": [],
35
- "name": "NotPayable",
36
- "type": "error"
14
+ "inputs": [],
15
+ "name": "AccessDenied",
16
+ "type": "error"
37
17
  },
38
18
  {
39
- "anonymous": false,
40
- "inputs": [
41
- {
42
- "indexed": true,
43
- "internalType": "bytes32",
44
- "name": "uid",
45
- "type": "bytes32"
46
- },
47
- {
48
- "indexed": true,
49
- "internalType": "address",
50
- "name": "addr",
51
- "type": "address"
52
- }
53
- ],
54
- "name": "AddAdmin",
55
- "type": "event"
19
+ "inputs": [],
20
+ "name": "InsufficientValue",
21
+ "type": "error"
56
22
  },
57
23
  {
58
- "anonymous": false,
59
- "inputs": [
60
- {
61
- "indexed": false,
62
- "internalType": "uint8",
63
- "name": "version",
64
- "type": "uint8"
65
- }
66
- ],
67
- "name": "Initialized",
68
- "type": "event"
24
+ "inputs": [],
25
+ "name": "InvalidEAS",
26
+ "type": "error"
69
27
  },
70
28
  {
71
- "anonymous": false,
72
- "inputs": [
73
- {
74
- "indexed": true,
75
- "internalType": "address",
76
- "name": "previousOwner",
77
- "type": "address"
78
- },
79
- {
80
- "indexed": true,
81
- "internalType": "address",
82
- "name": "newOwner",
83
- "type": "address"
84
- }
85
- ],
86
- "name": "OwnershipTransferred",
87
- "type": "event"
29
+ "inputs": [],
30
+ "name": "InvalidLength",
31
+ "type": "error"
88
32
  },
89
33
  {
90
- "anonymous": false,
91
- "inputs": [
92
- {
93
- "indexed": true,
94
- "internalType": "bytes32",
95
- "name": "uid",
96
- "type": "bytes32"
97
- },
98
- {
99
- "indexed": true,
100
- "internalType": "address",
101
- "name": "addr",
102
- "type": "address"
103
- }
104
- ],
105
- "name": "RemoveAdmin",
106
- "type": "event"
34
+ "inputs": [],
35
+ "name": "NotPayable",
36
+ "type": "error"
107
37
  },
108
38
  {
109
- "anonymous": false,
110
- "inputs": [
111
- {
112
- "indexed": false,
113
- "internalType": "bytes32",
114
- "name": "uid",
115
- "type": "bytes32"
116
- },
117
- {
118
- "indexed": false,
119
- "internalType": "address",
120
- "name": "newOwner",
121
- "type": "address"
122
- }
123
- ],
124
- "name": "TransferOwnership",
125
- "type": "event"
39
+ "anonymous": false,
40
+ "inputs": [
41
+ {
42
+ "indexed": true,
43
+ "internalType": "bytes32",
44
+ "name": "uid",
45
+ "type": "bytes32"
46
+ },
47
+ {
48
+ "indexed": true,
49
+ "internalType": "address",
50
+ "name": "addr",
51
+ "type": "address"
52
+ }
53
+ ],
54
+ "name": "AddAdmin",
55
+ "type": "event"
126
56
  },
127
57
  {
128
- "inputs": [
129
- {
130
- "internalType": "bytes32",
131
- "name": "uid",
132
- "type": "bytes32"
133
- },
134
- {
135
- "internalType": "address",
136
- "name": "addr",
137
- "type": "address"
138
- }
139
- ],
140
- "name": "addAdmin",
141
- "outputs": [],
142
- "stateMutability": "nonpayable",
143
- "type": "function"
58
+ "anonymous": false,
59
+ "inputs": [
60
+ {
61
+ "indexed": false,
62
+ "internalType": "uint8",
63
+ "name": "version",
64
+ "type": "uint8"
65
+ }
66
+ ],
67
+ "name": "Initialized",
68
+ "type": "event"
144
69
  },
145
70
  {
146
- "inputs": [
147
- {
148
- "components": [
149
- {
150
- "internalType": "bytes32",
151
- "name": "uid",
152
- "type": "bytes32"
153
- },
154
- {
155
- "internalType": "bytes32",
156
- "name": "schema",
157
- "type": "bytes32"
158
- },
71
+ "anonymous": false,
72
+ "inputs": [
159
73
  {
160
- "internalType": "uint64",
161
- "name": "time",
162
- "type": "uint64"
74
+ "indexed": true,
75
+ "internalType": "address",
76
+ "name": "previousOwner",
77
+ "type": "address"
163
78
  },
164
79
  {
165
- "internalType": "uint64",
166
- "name": "expirationTime",
167
- "type": "uint64"
168
- },
80
+ "indexed": true,
81
+ "internalType": "address",
82
+ "name": "newOwner",
83
+ "type": "address"
84
+ }
85
+ ],
86
+ "name": "OwnershipTransferred",
87
+ "type": "event"
88
+ },
89
+ {
90
+ "anonymous": false,
91
+ "inputs": [
169
92
  {
170
- "internalType": "uint64",
171
- "name": "revocationTime",
172
- "type": "uint64"
93
+ "indexed": true,
94
+ "internalType": "bytes32",
95
+ "name": "uid",
96
+ "type": "bytes32"
173
97
  },
174
98
  {
175
- "internalType": "bytes32",
176
- "name": "refUID",
177
- "type": "bytes32"
178
- },
99
+ "indexed": true,
100
+ "internalType": "address",
101
+ "name": "addr",
102
+ "type": "address"
103
+ }
104
+ ],
105
+ "name": "RemoveAdmin",
106
+ "type": "event"
107
+ },
108
+ {
109
+ "anonymous": false,
110
+ "inputs": [
179
111
  {
180
- "internalType": "address",
181
- "name": "recipient",
182
- "type": "address"
112
+ "indexed": false,
113
+ "internalType": "bytes32",
114
+ "name": "uid",
115
+ "type": "bytes32"
183
116
  },
184
117
  {
185
- "internalType": "address",
186
- "name": "attester",
187
- "type": "address"
188
- },
118
+ "indexed": false,
119
+ "internalType": "address",
120
+ "name": "newOwner",
121
+ "type": "address"
122
+ }
123
+ ],
124
+ "name": "TransferOwnership",
125
+ "type": "event"
126
+ },
127
+ {
128
+ "inputs": [
189
129
  {
190
- "internalType": "bool",
191
- "name": "revocable",
192
- "type": "bool"
130
+ "internalType": "bytes32",
131
+ "name": "uid",
132
+ "type": "bytes32"
193
133
  },
194
134
  {
195
- "internalType": "bytes",
196
- "name": "data",
197
- "type": "bytes"
135
+ "internalType": "address",
136
+ "name": "addr",
137
+ "type": "address"
198
138
  }
199
- ],
200
- "internalType": "struct Attestation",
201
- "name": "attestation",
202
- "type": "tuple"
203
- }
204
- ],
205
- "name": "attest",
206
- "outputs": [
207
- {
208
- "internalType": "bool",
209
- "name": "",
210
- "type": "bool"
211
- }
212
- ],
213
- "stateMutability": "payable",
214
- "type": "function"
215
- },
216
- {
217
- "inputs": [],
218
- "name": "initialize",
219
- "outputs": [],
220
- "stateMutability": "nonpayable",
221
- "type": "function"
139
+ ],
140
+ "name": "addAdmin",
141
+ "outputs": [],
142
+ "stateMutability": "nonpayable",
143
+ "type": "function"
222
144
  },
223
145
  {
224
- "inputs": [
225
- {
226
- "internalType": "bytes32",
227
- "name": "projectId",
228
- "type": "bytes32"
229
- },
230
- {
231
- "internalType": "address",
232
- "name": "addr",
233
- "type": "address"
234
- }
235
- ],
236
- "name": "isAdmin",
237
- "outputs": [
238
- {
239
- "internalType": "bool",
240
- "name": "",
241
- "type": "bool"
242
- }
243
- ],
244
- "stateMutability": "view",
245
- "type": "function"
246
- },
247
- {
248
- "inputs": [
249
- {
250
- "internalType": "bytes32",
251
- "name": "projectId",
252
- "type": "bytes32"
253
- },
254
- {
255
- "internalType": "address",
256
- "name": "addr",
257
- "type": "address"
258
- }
259
- ],
260
- "name": "isOwner",
261
- "outputs": [
262
- {
263
- "internalType": "bool",
264
- "name": "",
265
- "type": "bool"
266
- }
267
- ],
268
- "stateMutability": "view",
269
- "type": "function"
146
+ "inputs": [
147
+ {
148
+ "components": [
149
+ {
150
+ "internalType": "bytes32",
151
+ "name": "uid",
152
+ "type": "bytes32"
153
+ },
154
+ {
155
+ "internalType": "bytes32",
156
+ "name": "schema",
157
+ "type": "bytes32"
158
+ },
159
+ {
160
+ "internalType": "uint64",
161
+ "name": "time",
162
+ "type": "uint64"
163
+ },
164
+ {
165
+ "internalType": "uint64",
166
+ "name": "expirationTime",
167
+ "type": "uint64"
168
+ },
169
+ {
170
+ "internalType": "uint64",
171
+ "name": "revocationTime",
172
+ "type": "uint64"
173
+ },
174
+ {
175
+ "internalType": "bytes32",
176
+ "name": "refUID",
177
+ "type": "bytes32"
178
+ },
179
+ {
180
+ "internalType": "address",
181
+ "name": "recipient",
182
+ "type": "address"
183
+ },
184
+ {
185
+ "internalType": "address",
186
+ "name": "attester",
187
+ "type": "address"
188
+ },
189
+ {
190
+ "internalType": "bool",
191
+ "name": "revocable",
192
+ "type": "bool"
193
+ },
194
+ {
195
+ "internalType": "bytes",
196
+ "name": "data",
197
+ "type": "bytes"
198
+ }
199
+ ],
200
+ "internalType": "struct Attestation",
201
+ "name": "attestation",
202
+ "type": "tuple"
203
+ }
204
+ ],
205
+ "name": "attest",
206
+ "outputs": [
207
+ {
208
+ "internalType": "bool",
209
+ "name": "",
210
+ "type": "bool"
211
+ }
212
+ ],
213
+ "stateMutability": "payable",
214
+ "type": "function"
270
215
  },
271
216
  {
272
- "inputs": [],
273
- "name": "isPayable",
274
- "outputs": [
275
- {
276
- "internalType": "bool",
277
- "name": "",
278
- "type": "bool"
279
- }
280
- ],
281
- "stateMutability": "pure",
282
- "type": "function"
217
+ "inputs": [],
218
+ "name": "initialize",
219
+ "outputs": [],
220
+ "stateMutability": "nonpayable",
221
+ "type": "function"
283
222
  },
284
223
  {
285
- "inputs": [
286
- {
287
- "components": [
288
- {
289
- "internalType": "bytes32",
290
- "name": "uid",
291
- "type": "bytes32"
292
- },
293
- {
294
- "internalType": "bytes32",
295
- "name": "schema",
296
- "type": "bytes32"
297
- },
298
- {
299
- "internalType": "uint64",
300
- "name": "time",
301
- "type": "uint64"
302
- },
224
+ "inputs": [
303
225
  {
304
- "internalType": "uint64",
305
- "name": "expirationTime",
306
- "type": "uint64"
226
+ "internalType": "bytes32",
227
+ "name": "projectId",
228
+ "type": "bytes32"
307
229
  },
308
230
  {
309
- "internalType": "uint64",
310
- "name": "revocationTime",
311
- "type": "uint64"
312
- },
313
- {
314
- "internalType": "bytes32",
315
- "name": "refUID",
316
- "type": "bytes32"
317
- },
318
- {
319
- "internalType": "address",
320
- "name": "recipient",
321
- "type": "address"
322
- },
323
- {
324
- "internalType": "address",
325
- "name": "attester",
326
- "type": "address"
327
- },
328
- {
329
- "internalType": "bool",
330
- "name": "revocable",
331
- "type": "bool"
332
- },
231
+ "internalType": "address",
232
+ "name": "addr",
233
+ "type": "address"
234
+ }
235
+ ],
236
+ "name": "isAdmin",
237
+ "outputs": [
333
238
  {
334
- "internalType": "bytes",
335
- "name": "data",
336
- "type": "bytes"
239
+ "internalType": "bool",
240
+ "name": "",
241
+ "type": "bool"
337
242
  }
338
- ],
339
- "internalType": "struct Attestation[]",
340
- "name": "attestations",
341
- "type": "tuple[]"
342
- },
343
- {
344
- "internalType": "uint256[]",
345
- "name": "values",
346
- "type": "uint256[]"
347
- }
348
- ],
349
- "name": "multiAttest",
350
- "outputs": [
351
- {
352
- "internalType": "bool",
353
- "name": "",
354
- "type": "bool"
355
- }
356
- ],
357
- "stateMutability": "payable",
358
- "type": "function"
243
+ ],
244
+ "stateMutability": "view",
245
+ "type": "function"
359
246
  },
360
247
  {
361
- "inputs": [
362
- {
363
- "components": [
364
- {
365
- "internalType": "bytes32",
366
- "name": "uid",
367
- "type": "bytes32"
368
- },
369
- {
370
- "internalType": "bytes32",
371
- "name": "schema",
372
- "type": "bytes32"
373
- },
248
+ "inputs": [
374
249
  {
375
- "internalType": "uint64",
376
- "name": "time",
377
- "type": "uint64"
250
+ "internalType": "bytes32",
251
+ "name": "projectId",
252
+ "type": "bytes32"
378
253
  },
379
254
  {
380
- "internalType": "uint64",
381
- "name": "expirationTime",
382
- "type": "uint64"
383
- },
384
- {
385
- "internalType": "uint64",
386
- "name": "revocationTime",
387
- "type": "uint64"
388
- },
389
- {
390
- "internalType": "bytes32",
391
- "name": "refUID",
392
- "type": "bytes32"
393
- },
394
- {
395
- "internalType": "address",
396
- "name": "recipient",
397
- "type": "address"
398
- },
399
- {
400
- "internalType": "address",
401
- "name": "attester",
402
- "type": "address"
403
- },
404
- {
405
- "internalType": "bool",
406
- "name": "revocable",
407
- "type": "bool"
408
- },
255
+ "internalType": "address",
256
+ "name": "addr",
257
+ "type": "address"
258
+ }
259
+ ],
260
+ "name": "isOwner",
261
+ "outputs": [
409
262
  {
410
- "internalType": "bytes",
411
- "name": "data",
412
- "type": "bytes"
263
+ "internalType": "bool",
264
+ "name": "",
265
+ "type": "bool"
413
266
  }
414
- ],
415
- "internalType": "struct Attestation[]",
416
- "name": "attestations",
417
- "type": "tuple[]"
418
- },
419
- {
420
- "internalType": "uint256[]",
421
- "name": "values",
422
- "type": "uint256[]"
423
- }
424
- ],
425
- "name": "multiRevoke",
426
- "outputs": [
427
- {
428
- "internalType": "bool",
429
- "name": "",
430
- "type": "bool"
431
- }
432
- ],
433
- "stateMutability": "payable",
434
- "type": "function"
435
- },
436
- {
437
- "inputs": [],
438
- "name": "owner",
439
- "outputs": [
440
- {
441
- "internalType": "address",
442
- "name": "",
443
- "type": "address"
444
- }
445
- ],
446
- "stateMutability": "view",
447
- "type": "function"
448
- },
449
- {
450
- "inputs": [
451
- {
452
- "internalType": "bytes32",
453
- "name": "",
454
- "type": "bytes32"
455
- }
456
- ],
457
- "name": "projectAdmin",
458
- "outputs": [
459
- {
460
- "internalType": "address",
461
- "name": "",
462
- "type": "address"
463
- }
464
- ],
465
- "stateMutability": "view",
466
- "type": "function"
267
+ ],
268
+ "stateMutability": "view",
269
+ "type": "function"
467
270
  },
468
271
  {
469
- "inputs": [
470
- {
471
- "internalType": "bytes32",
472
- "name": "",
473
- "type": "bytes32"
474
- },
475
- {
476
- "internalType": "address",
477
- "name": "",
478
- "type": "address"
479
- }
480
- ],
481
- "name": "projectAdmins",
482
- "outputs": [
483
- {
484
- "internalType": "bool",
485
- "name": "",
486
- "type": "bool"
487
- }
488
- ],
489
- "stateMutability": "view",
490
- "type": "function"
272
+ "inputs": [],
273
+ "name": "isPayable",
274
+ "outputs": [
275
+ {
276
+ "internalType": "bool",
277
+ "name": "",
278
+ "type": "bool"
279
+ }
280
+ ],
281
+ "stateMutability": "pure",
282
+ "type": "function"
491
283
  },
492
284
  {
493
- "inputs": [
494
- {
495
- "internalType": "bytes32",
496
- "name": "",
497
- "type": "bytes32"
498
- }
499
- ],
500
- "name": "projectOwner",
501
- "outputs": [
502
- {
503
- "internalType": "address",
504
- "name": "",
505
- "type": "address"
506
- }
507
- ],
508
- "stateMutability": "view",
509
- "type": "function"
285
+ "inputs": [
286
+ {
287
+ "components": [
288
+ {
289
+ "internalType": "bytes32",
290
+ "name": "uid",
291
+ "type": "bytes32"
292
+ },
293
+ {
294
+ "internalType": "bytes32",
295
+ "name": "schema",
296
+ "type": "bytes32"
297
+ },
298
+ {
299
+ "internalType": "uint64",
300
+ "name": "time",
301
+ "type": "uint64"
302
+ },
303
+ {
304
+ "internalType": "uint64",
305
+ "name": "expirationTime",
306
+ "type": "uint64"
307
+ },
308
+ {
309
+ "internalType": "uint64",
310
+ "name": "revocationTime",
311
+ "type": "uint64"
312
+ },
313
+ {
314
+ "internalType": "bytes32",
315
+ "name": "refUID",
316
+ "type": "bytes32"
317
+ },
318
+ {
319
+ "internalType": "address",
320
+ "name": "recipient",
321
+ "type": "address"
322
+ },
323
+ {
324
+ "internalType": "address",
325
+ "name": "attester",
326
+ "type": "address"
327
+ },
328
+ {
329
+ "internalType": "bool",
330
+ "name": "revocable",
331
+ "type": "bool"
332
+ },
333
+ {
334
+ "internalType": "bytes",
335
+ "name": "data",
336
+ "type": "bytes"
337
+ }
338
+ ],
339
+ "internalType": "struct Attestation[]",
340
+ "name": "attestations",
341
+ "type": "tuple[]"
342
+ },
343
+ {
344
+ "internalType": "uint256[]",
345
+ "name": "values",
346
+ "type": "uint256[]"
347
+ }
348
+ ],
349
+ "name": "multiAttest",
350
+ "outputs": [
351
+ {
352
+ "internalType": "bool",
353
+ "name": "",
354
+ "type": "bool"
355
+ }
356
+ ],
357
+ "stateMutability": "payable",
358
+ "type": "function"
510
359
  },
511
360
  {
512
- "inputs": [
513
- {
514
- "internalType": "bytes32",
515
- "name": "uid",
516
- "type": "bytes32"
517
- },
518
- {
519
- "internalType": "address",
520
- "name": "addr",
521
- "type": "address"
522
- }
523
- ],
524
- "name": "removeAdmin",
525
- "outputs": [],
526
- "stateMutability": "nonpayable",
527
- "type": "function"
361
+ "inputs": [
362
+ {
363
+ "components": [
364
+ {
365
+ "internalType": "bytes32",
366
+ "name": "uid",
367
+ "type": "bytes32"
368
+ },
369
+ {
370
+ "internalType": "bytes32",
371
+ "name": "schema",
372
+ "type": "bytes32"
373
+ },
374
+ {
375
+ "internalType": "uint64",
376
+ "name": "time",
377
+ "type": "uint64"
378
+ },
379
+ {
380
+ "internalType": "uint64",
381
+ "name": "expirationTime",
382
+ "type": "uint64"
383
+ },
384
+ {
385
+ "internalType": "uint64",
386
+ "name": "revocationTime",
387
+ "type": "uint64"
388
+ },
389
+ {
390
+ "internalType": "bytes32",
391
+ "name": "refUID",
392
+ "type": "bytes32"
393
+ },
394
+ {
395
+ "internalType": "address",
396
+ "name": "recipient",
397
+ "type": "address"
398
+ },
399
+ {
400
+ "internalType": "address",
401
+ "name": "attester",
402
+ "type": "address"
403
+ },
404
+ {
405
+ "internalType": "bool",
406
+ "name": "revocable",
407
+ "type": "bool"
408
+ },
409
+ {
410
+ "internalType": "bytes",
411
+ "name": "data",
412
+ "type": "bytes"
413
+ }
414
+ ],
415
+ "internalType": "struct Attestation[]",
416
+ "name": "attestations",
417
+ "type": "tuple[]"
418
+ },
419
+ {
420
+ "internalType": "uint256[]",
421
+ "name": "values",
422
+ "type": "uint256[]"
423
+ }
424
+ ],
425
+ "name": "multiRevoke",
426
+ "outputs": [
427
+ {
428
+ "internalType": "bool",
429
+ "name": "",
430
+ "type": "bool"
431
+ }
432
+ ],
433
+ "stateMutability": "payable",
434
+ "type": "function"
528
435
  },
529
436
  {
530
- "inputs": [],
531
- "name": "renounceOwnership",
532
- "outputs": [],
533
- "stateMutability": "nonpayable",
534
- "type": "function"
437
+ "inputs": [],
438
+ "name": "owner",
439
+ "outputs": [
440
+ {
441
+ "internalType": "address",
442
+ "name": "",
443
+ "type": "address"
444
+ }
445
+ ],
446
+ "stateMutability": "view",
447
+ "type": "function"
535
448
  },
536
449
  {
537
- "inputs": [
538
- {
539
- "components": [
450
+ "inputs": [
540
451
  {
541
- "internalType": "bytes32",
542
- "name": "uid",
543
- "type": "bytes32"
544
- },
452
+ "internalType": "bytes32",
453
+ "name": "",
454
+ "type": "bytes32"
455
+ }
456
+ ],
457
+ "name": "projectAdmin",
458
+ "outputs": [
545
459
  {
546
- "internalType": "bytes32",
547
- "name": "schema",
548
- "type": "bytes32"
549
- },
460
+ "internalType": "address",
461
+ "name": "",
462
+ "type": "address"
463
+ }
464
+ ],
465
+ "stateMutability": "view",
466
+ "type": "function"
467
+ },
468
+ {
469
+ "inputs": [
550
470
  {
551
- "internalType": "uint64",
552
- "name": "time",
553
- "type": "uint64"
471
+ "internalType": "bytes32",
472
+ "name": "",
473
+ "type": "bytes32"
554
474
  },
555
475
  {
556
- "internalType": "uint64",
557
- "name": "expirationTime",
558
- "type": "uint64"
559
- },
476
+ "internalType": "address",
477
+ "name": "",
478
+ "type": "address"
479
+ }
480
+ ],
481
+ "name": "projectAdmins",
482
+ "outputs": [
560
483
  {
561
- "internalType": "uint64",
562
- "name": "revocationTime",
563
- "type": "uint64"
564
- },
484
+ "internalType": "bool",
485
+ "name": "",
486
+ "type": "bool"
487
+ }
488
+ ],
489
+ "stateMutability": "view",
490
+ "type": "function"
491
+ },
492
+ {
493
+ "inputs": [
565
494
  {
566
- "internalType": "bytes32",
567
- "name": "refUID",
568
- "type": "bytes32"
569
- },
495
+ "internalType": "bytes32",
496
+ "name": "",
497
+ "type": "bytes32"
498
+ }
499
+ ],
500
+ "name": "projectOwner",
501
+ "outputs": [
570
502
  {
571
- "internalType": "address",
572
- "name": "recipient",
573
- "type": "address"
574
- },
503
+ "internalType": "address",
504
+ "name": "",
505
+ "type": "address"
506
+ }
507
+ ],
508
+ "stateMutability": "view",
509
+ "type": "function"
510
+ },
511
+ {
512
+ "inputs": [
575
513
  {
576
- "internalType": "address",
577
- "name": "attester",
578
- "type": "address"
514
+ "internalType": "bytes32",
515
+ "name": "uid",
516
+ "type": "bytes32"
579
517
  },
580
518
  {
581
- "internalType": "bool",
582
- "name": "revocable",
583
- "type": "bool"
584
- },
519
+ "internalType": "address",
520
+ "name": "addr",
521
+ "type": "address"
522
+ }
523
+ ],
524
+ "name": "removeAdmin",
525
+ "outputs": [],
526
+ "stateMutability": "nonpayable",
527
+ "type": "function"
528
+ },
529
+ {
530
+ "inputs": [],
531
+ "name": "renounceOwnership",
532
+ "outputs": [],
533
+ "stateMutability": "nonpayable",
534
+ "type": "function"
535
+ },
536
+ {
537
+ "inputs": [
538
+ {
539
+ "components": [
540
+ {
541
+ "internalType": "bytes32",
542
+ "name": "uid",
543
+ "type": "bytes32"
544
+ },
545
+ {
546
+ "internalType": "bytes32",
547
+ "name": "schema",
548
+ "type": "bytes32"
549
+ },
550
+ {
551
+ "internalType": "uint64",
552
+ "name": "time",
553
+ "type": "uint64"
554
+ },
555
+ {
556
+ "internalType": "uint64",
557
+ "name": "expirationTime",
558
+ "type": "uint64"
559
+ },
560
+ {
561
+ "internalType": "uint64",
562
+ "name": "revocationTime",
563
+ "type": "uint64"
564
+ },
565
+ {
566
+ "internalType": "bytes32",
567
+ "name": "refUID",
568
+ "type": "bytes32"
569
+ },
570
+ {
571
+ "internalType": "address",
572
+ "name": "recipient",
573
+ "type": "address"
574
+ },
575
+ {
576
+ "internalType": "address",
577
+ "name": "attester",
578
+ "type": "address"
579
+ },
580
+ {
581
+ "internalType": "bool",
582
+ "name": "revocable",
583
+ "type": "bool"
584
+ },
585
+ {
586
+ "internalType": "bytes",
587
+ "name": "data",
588
+ "type": "bytes"
589
+ }
590
+ ],
591
+ "internalType": "struct Attestation",
592
+ "name": "attestation",
593
+ "type": "tuple"
594
+ }
595
+ ],
596
+ "name": "revoke",
597
+ "outputs": [
585
598
  {
586
- "internalType": "bytes",
587
- "name": "data",
588
- "type": "bytes"
599
+ "internalType": "bool",
600
+ "name": "",
601
+ "type": "bool"
589
602
  }
590
- ],
591
- "internalType": "struct Attestation",
592
- "name": "attestation",
593
- "type": "tuple"
594
- }
595
- ],
596
- "name": "revoke",
597
- "outputs": [
598
- {
599
- "internalType": "bool",
600
- "name": "",
601
- "type": "bool"
602
- }
603
- ],
604
- "stateMutability": "payable",
605
- "type": "function"
603
+ ],
604
+ "stateMutability": "payable",
605
+ "type": "function"
606
606
  },
607
607
  {
608
- "inputs": [
609
- {
610
- "internalType": "address",
611
- "name": "newOwner",
612
- "type": "address"
613
- }
614
- ],
615
- "name": "transferOwnership",
616
- "outputs": [],
617
- "stateMutability": "nonpayable",
618
- "type": "function"
608
+ "inputs": [
609
+ {
610
+ "internalType": "address",
611
+ "name": "newOwner",
612
+ "type": "address"
613
+ }
614
+ ],
615
+ "name": "transferOwnership",
616
+ "outputs": [],
617
+ "stateMutability": "nonpayable",
618
+ "type": "function"
619
619
  },
620
620
  {
621
- "inputs": [
622
- {
623
- "internalType": "bytes32",
624
- "name": "uid",
625
- "type": "bytes32"
626
- },
627
- {
628
- "internalType": "address",
629
- "name": "newOwner",
630
- "type": "address"
631
- }
632
- ],
633
- "name": "transferProjectOwnership",
634
- "outputs": [],
635
- "stateMutability": "nonpayable",
636
- "type": "function"
621
+ "inputs": [
622
+ {
623
+ "internalType": "bytes32",
624
+ "name": "uid",
625
+ "type": "bytes32"
626
+ },
627
+ {
628
+ "internalType": "address",
629
+ "name": "newOwner",
630
+ "type": "address"
631
+ }
632
+ ],
633
+ "name": "transferProjectOwnership",
634
+ "outputs": [],
635
+ "stateMutability": "nonpayable",
636
+ "type": "function"
637
637
  },
638
638
  {
639
- "inputs": [],
640
- "name": "version",
641
- "outputs": [
642
- {
643
- "internalType": "string",
644
- "name": "",
645
- "type": "string"
646
- }
647
- ],
648
- "stateMutability": "view",
649
- "type": "function"
639
+ "inputs": [],
640
+ "name": "version",
641
+ "outputs": [
642
+ {
643
+ "internalType": "string",
644
+ "name": "",
645
+ "type": "string"
646
+ }
647
+ ],
648
+ "stateMutability": "view",
649
+ "type": "function"
650
650
  },
651
651
  {
652
- "stateMutability": "payable",
653
- "type": "receive"
652
+ "stateMutability": "payable",
653
+ "type": "receive"
654
654
  }
655
- ]
655
+ ]