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

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