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

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 +488 -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 +48 -0
  81. package/core/consts.js +641 -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 +59 -0
  92. package/core/utils/gelato/watch-gelato-txn.d.ts +7 -0
  93. package/core/utils/gelato/watch-gelato-txn.js +62 -0
  94. package/core/utils/get-date.d.ts +1 -0
  95. package/core/utils/get-date.js +6 -0
  96. package/core/utils/get-ipfs-data.d.ts +1 -0
  97. package/core/utils/get-ipfs-data.js +19 -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 +19 -0
  105. package/core/utils/serialize-bigint.d.ts +1 -0
  106. package/core/utils/serialize-bigint.js +7 -0
  107. package/core/utils/to-unix.d.ts +1 -0
  108. package/core/utils/to-unix.js +24 -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,864 +1,864 @@
1
1
  [
2
- { "inputs": [], "name": "ALLOCATION_ACTIVE", "type": "error" },
3
- { "inputs": [], "name": "ALLOCATION_NOT_ACTIVE", "type": "error" },
4
- { "inputs": [], "name": "ALLOCATION_NOT_ENDED", "type": "error" },
5
- { "inputs": [], "name": "ALREADY_INITIALIZED", "type": "error" },
6
- { "inputs": [], "name": "AMOUNT_MISMATCH", "type": "error" },
7
- { "inputs": [], "name": "ANCHOR_ERROR", "type": "error" },
8
- { "inputs": [], "name": "ARRAY_MISMATCH", "type": "error" },
9
- { "inputs": [], "name": "INVALID", "type": "error" },
10
- { "inputs": [], "name": "INVALID_ADDRESS", "type": "error" },
11
- { "inputs": [], "name": "INVALID_FEE", "type": "error" },
12
- { "inputs": [], "name": "INVALID_METADATA", "type": "error" },
13
- { "inputs": [], "name": "INVALID_REGISTRATION", "type": "error" },
14
- { "inputs": [], "name": "IS_APPROVED_STRATEGY", "type": "error" },
15
- { "inputs": [], "name": "MISMATCH", "type": "error" },
16
- { "inputs": [], "name": "NONCE_NOT_AVAILABLE", "type": "error" },
17
- { "inputs": [], "name": "NOT_APPROVED_STRATEGY", "type": "error" },
18
- { "inputs": [], "name": "NOT_ENOUGH_FUNDS", "type": "error" },
19
- { "inputs": [], "name": "NOT_INITIALIZED", "type": "error" },
20
- { "inputs": [], "name": "NOT_PENDING_OWNER", "type": "error" },
21
- { "inputs": [], "name": "NewOwnerIsZeroAddress", "type": "error" },
22
- { "inputs": [], "name": "NoHandoverRequest", "type": "error" },
23
- { "inputs": [], "name": "POOL_ACTIVE", "type": "error" },
24
- { "inputs": [], "name": "POOL_INACTIVE", "type": "error" },
25
- { "inputs": [], "name": "RECIPIENT_ALREADY_ACCEPTED", "type": "error" },
26
- {
27
- "inputs": [
28
- { "internalType": "address", "name": "recipientId", "type": "address" }
29
- ],
30
- "name": "RECIPIENT_ERROR",
31
- "type": "error"
32
- },
33
- { "inputs": [], "name": "RECIPIENT_NOT_ACCEPTED", "type": "error" },
34
- { "inputs": [], "name": "REGISTRATION_NOT_ACTIVE", "type": "error" },
35
- { "inputs": [], "name": "UNAUTHORIZED", "type": "error" },
36
- { "inputs": [], "name": "Unauthorized", "type": "error" },
37
- { "inputs": [], "name": "ZERO_ADDRESS", "type": "error" },
38
- {
39
- "anonymous": false,
40
- "inputs": [
41
- {
42
- "indexed": true,
43
- "internalType": "uint256",
44
- "name": "poolId",
45
- "type": "uint256"
46
- },
47
- {
48
- "indexed": false,
49
- "internalType": "uint256",
50
- "name": "amount",
51
- "type": "uint256"
52
- }
53
- ],
54
- "name": "BaseFeePaid",
55
- "type": "event"
56
- },
57
- {
58
- "anonymous": false,
59
- "inputs": [
60
- {
61
- "indexed": false,
62
- "internalType": "uint256",
63
- "name": "baseFee",
64
- "type": "uint256"
65
- }
66
- ],
67
- "name": "BaseFeeUpdated",
68
- "type": "event"
69
- },
70
- {
71
- "anonymous": false,
72
- "inputs": [
73
- {
74
- "indexed": false,
75
- "internalType": "uint8",
76
- "name": "version",
77
- "type": "uint8"
78
- }
79
- ],
80
- "name": "Initialized",
81
- "type": "event"
82
- },
83
- {
84
- "anonymous": false,
85
- "inputs": [
86
- {
87
- "indexed": true,
88
- "internalType": "address",
89
- "name": "pendingOwner",
90
- "type": "address"
91
- }
92
- ],
93
- "name": "OwnershipHandoverCanceled",
94
- "type": "event"
95
- },
96
- {
97
- "anonymous": false,
98
- "inputs": [
99
- {
100
- "indexed": true,
101
- "internalType": "address",
102
- "name": "pendingOwner",
103
- "type": "address"
104
- }
105
- ],
106
- "name": "OwnershipHandoverRequested",
107
- "type": "event"
108
- },
109
- {
110
- "anonymous": false,
111
- "inputs": [
112
- {
113
- "indexed": true,
114
- "internalType": "address",
115
- "name": "oldOwner",
116
- "type": "address"
117
- },
118
- {
119
- "indexed": true,
120
- "internalType": "address",
121
- "name": "newOwner",
122
- "type": "address"
123
- }
124
- ],
125
- "name": "OwnershipTransferred",
126
- "type": "event"
127
- },
128
- {
129
- "anonymous": false,
130
- "inputs": [
131
- {
132
- "indexed": false,
133
- "internalType": "uint256",
134
- "name": "percentFee",
135
- "type": "uint256"
136
- }
137
- ],
138
- "name": "PercentFeeUpdated",
139
- "type": "event"
140
- },
141
- {
142
- "anonymous": false,
143
- "inputs": [
144
- {
145
- "indexed": true,
146
- "internalType": "uint256",
147
- "name": "poolId",
148
- "type": "uint256"
149
- },
150
- {
151
- "indexed": true,
152
- "internalType": "bytes32",
153
- "name": "profileId",
154
- "type": "bytes32"
155
- },
156
- {
157
- "indexed": false,
158
- "internalType": "contract IStrategy",
159
- "name": "strategy",
160
- "type": "address"
161
- },
162
- {
163
- "indexed": false,
164
- "internalType": "address",
165
- "name": "token",
166
- "type": "address"
167
- },
168
- {
169
- "indexed": false,
170
- "internalType": "uint256",
171
- "name": "amount",
172
- "type": "uint256"
173
- },
174
- {
175
- "components": [
176
- { "internalType": "uint256", "name": "protocol", "type": "uint256" },
177
- { "internalType": "string", "name": "pointer", "type": "string" }
178
- ],
179
- "indexed": false,
180
- "internalType": "struct Metadata",
181
- "name": "metadata",
182
- "type": "tuple"
183
- }
184
- ],
185
- "name": "PoolCreated",
186
- "type": "event"
187
- },
188
- {
189
- "anonymous": false,
190
- "inputs": [
191
- {
192
- "indexed": true,
193
- "internalType": "uint256",
194
- "name": "poolId",
195
- "type": "uint256"
196
- },
197
- {
198
- "indexed": false,
199
- "internalType": "uint256",
200
- "name": "amount",
201
- "type": "uint256"
202
- },
203
- {
204
- "indexed": false,
205
- "internalType": "uint256",
206
- "name": "fee",
207
- "type": "uint256"
208
- }
209
- ],
210
- "name": "PoolFunded",
211
- "type": "event"
212
- },
213
- {
214
- "anonymous": false,
215
- "inputs": [
216
- {
217
- "indexed": true,
218
- "internalType": "uint256",
219
- "name": "poolId",
220
- "type": "uint256"
221
- },
222
- {
223
- "components": [
224
- { "internalType": "uint256", "name": "protocol", "type": "uint256" },
225
- { "internalType": "string", "name": "pointer", "type": "string" }
226
- ],
227
- "indexed": false,
228
- "internalType": "struct Metadata",
229
- "name": "metadata",
230
- "type": "tuple"
231
- }
232
- ],
233
- "name": "PoolMetadataUpdated",
234
- "type": "event"
235
- },
236
- {
237
- "anonymous": false,
238
- "inputs": [
239
- {
240
- "indexed": false,
241
- "internalType": "address",
242
- "name": "registry",
243
- "type": "address"
244
- }
245
- ],
246
- "name": "RegistryUpdated",
247
- "type": "event"
248
- },
249
- {
250
- "anonymous": false,
251
- "inputs": [
252
- {
253
- "indexed": true,
254
- "internalType": "bytes32",
255
- "name": "role",
256
- "type": "bytes32"
257
- },
258
- {
259
- "indexed": true,
260
- "internalType": "bytes32",
261
- "name": "previousAdminRole",
262
- "type": "bytes32"
263
- },
264
- {
265
- "indexed": true,
266
- "internalType": "bytes32",
267
- "name": "newAdminRole",
268
- "type": "bytes32"
269
- }
270
- ],
271
- "name": "RoleAdminChanged",
272
- "type": "event"
273
- },
274
- {
275
- "anonymous": false,
276
- "inputs": [
277
- {
278
- "indexed": true,
279
- "internalType": "bytes32",
280
- "name": "role",
281
- "type": "bytes32"
282
- },
283
- {
284
- "indexed": true,
285
- "internalType": "address",
286
- "name": "account",
287
- "type": "address"
288
- },
289
- {
290
- "indexed": true,
291
- "internalType": "address",
292
- "name": "sender",
293
- "type": "address"
294
- }
295
- ],
296
- "name": "RoleGranted",
297
- "type": "event"
298
- },
299
- {
300
- "anonymous": false,
301
- "inputs": [
302
- {
303
- "indexed": true,
304
- "internalType": "bytes32",
305
- "name": "role",
306
- "type": "bytes32"
307
- },
308
- {
309
- "indexed": true,
310
- "internalType": "address",
311
- "name": "account",
312
- "type": "address"
313
- },
314
- {
315
- "indexed": true,
316
- "internalType": "address",
317
- "name": "sender",
318
- "type": "address"
319
- }
320
- ],
321
- "name": "RoleRevoked",
322
- "type": "event"
323
- },
324
- {
325
- "anonymous": false,
326
- "inputs": [
327
- {
328
- "indexed": false,
329
- "internalType": "address",
330
- "name": "strategy",
331
- "type": "address"
332
- }
333
- ],
334
- "name": "StrategyApproved",
335
- "type": "event"
336
- },
337
- {
338
- "anonymous": false,
339
- "inputs": [
340
- {
341
- "indexed": false,
342
- "internalType": "address",
343
- "name": "strategy",
344
- "type": "address"
345
- }
346
- ],
347
- "name": "StrategyRemoved",
348
- "type": "event"
349
- },
350
- {
351
- "anonymous": false,
352
- "inputs": [
353
- {
354
- "indexed": false,
355
- "internalType": "address",
356
- "name": "treasury",
357
- "type": "address"
358
- }
359
- ],
360
- "name": "TreasuryUpdated",
361
- "type": "event"
362
- },
363
- {
364
- "inputs": [],
365
- "name": "DEFAULT_ADMIN_ROLE",
366
- "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
367
- "stateMutability": "view",
368
- "type": "function"
369
- },
370
- {
371
- "inputs": [],
372
- "name": "NATIVE",
373
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
374
- "stateMutability": "view",
375
- "type": "function"
376
- },
377
- {
378
- "inputs": [
379
- { "internalType": "uint256", "name": "_poolId", "type": "uint256" },
380
- { "internalType": "address", "name": "_manager", "type": "address" }
381
- ],
382
- "name": "addPoolManager",
383
- "outputs": [],
384
- "stateMutability": "nonpayable",
385
- "type": "function"
386
- },
387
- {
388
- "inputs": [
389
- { "internalType": "address", "name": "_strategy", "type": "address" }
390
- ],
391
- "name": "addToCloneableStrategies",
392
- "outputs": [],
393
- "stateMutability": "nonpayable",
394
- "type": "function"
395
- },
396
- {
397
- "inputs": [
398
- { "internalType": "uint256", "name": "_poolId", "type": "uint256" },
399
- { "internalType": "bytes", "name": "_data", "type": "bytes" }
400
- ],
401
- "name": "allocate",
402
- "outputs": [],
403
- "stateMutability": "payable",
404
- "type": "function"
405
- },
406
- {
407
- "inputs": [
408
- { "internalType": "uint256[]", "name": "_poolIds", "type": "uint256[]" },
409
- { "internalType": "bytes[]", "name": "_datas", "type": "bytes[]" }
410
- ],
411
- "name": "batchAllocate",
412
- "outputs": [],
413
- "stateMutability": "nonpayable",
414
- "type": "function"
415
- },
416
- {
417
- "inputs": [
418
- { "internalType": "uint256[]", "name": "_poolIds", "type": "uint256[]" },
419
- { "internalType": "bytes[]", "name": "_data", "type": "bytes[]" }
420
- ],
421
- "name": "batchRegisterRecipient",
422
- "outputs": [
423
- {
424
- "internalType": "address[]",
425
- "name": "recipientIds",
426
- "type": "address[]"
427
- }
428
- ],
429
- "stateMutability": "nonpayable",
430
- "type": "function"
431
- },
432
- {
433
- "inputs": [],
434
- "name": "cancelOwnershipHandover",
435
- "outputs": [],
436
- "stateMutability": "payable",
437
- "type": "function"
438
- },
439
- {
440
- "inputs": [
441
- { "internalType": "address", "name": "pendingOwner", "type": "address" }
442
- ],
443
- "name": "completeOwnershipHandover",
444
- "outputs": [],
445
- "stateMutability": "payable",
446
- "type": "function"
447
- },
448
- {
449
- "inputs": [
450
- { "internalType": "bytes32", "name": "_profileId", "type": "bytes32" },
451
- { "internalType": "address", "name": "_strategy", "type": "address" },
452
- { "internalType": "bytes", "name": "_initStrategyData", "type": "bytes" },
453
- { "internalType": "address", "name": "_token", "type": "address" },
454
- { "internalType": "uint256", "name": "_amount", "type": "uint256" },
455
- {
456
- "components": [
457
- { "internalType": "uint256", "name": "protocol", "type": "uint256" },
458
- { "internalType": "string", "name": "pointer", "type": "string" }
459
- ],
460
- "internalType": "struct Metadata",
461
- "name": "_metadata",
462
- "type": "tuple"
463
- },
464
- { "internalType": "address[]", "name": "_managers", "type": "address[]" }
465
- ],
466
- "name": "createPool",
467
- "outputs": [
468
- { "internalType": "uint256", "name": "poolId", "type": "uint256" }
469
- ],
470
- "stateMutability": "payable",
471
- "type": "function"
472
- },
473
- {
474
- "inputs": [
475
- { "internalType": "bytes32", "name": "_profileId", "type": "bytes32" },
476
- { "internalType": "address", "name": "_strategy", "type": "address" },
477
- { "internalType": "bytes", "name": "_initStrategyData", "type": "bytes" },
478
- { "internalType": "address", "name": "_token", "type": "address" },
479
- { "internalType": "uint256", "name": "_amount", "type": "uint256" },
480
- {
481
- "components": [
482
- { "internalType": "uint256", "name": "protocol", "type": "uint256" },
483
- { "internalType": "string", "name": "pointer", "type": "string" }
484
- ],
485
- "internalType": "struct Metadata",
486
- "name": "_metadata",
487
- "type": "tuple"
488
- },
489
- { "internalType": "address[]", "name": "_managers", "type": "address[]" }
490
- ],
491
- "name": "createPoolWithCustomStrategy",
492
- "outputs": [
493
- { "internalType": "uint256", "name": "poolId", "type": "uint256" }
494
- ],
495
- "stateMutability": "payable",
496
- "type": "function"
497
- },
498
- {
499
- "inputs": [
500
- { "internalType": "uint256", "name": "_poolId", "type": "uint256" },
501
- {
502
- "internalType": "address[]",
503
- "name": "_recipientIds",
504
- "type": "address[]"
505
- },
506
- { "internalType": "bytes", "name": "_data", "type": "bytes" }
507
- ],
508
- "name": "distribute",
509
- "outputs": [],
510
- "stateMutability": "nonpayable",
511
- "type": "function"
512
- },
513
- {
514
- "inputs": [
515
- { "internalType": "uint256", "name": "_poolId", "type": "uint256" },
516
- { "internalType": "uint256", "name": "_amount", "type": "uint256" }
517
- ],
518
- "name": "fundPool",
519
- "outputs": [],
520
- "stateMutability": "payable",
521
- "type": "function"
522
- },
523
- {
524
- "inputs": [],
525
- "name": "getBaseFee",
526
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
527
- "stateMutability": "view",
528
- "type": "function"
529
- },
530
- {
531
- "inputs": [],
532
- "name": "getFeeDenominator",
533
- "outputs": [
534
- {
535
- "internalType": "uint256",
536
- "name": "FEE_DENOMINATOR",
537
- "type": "uint256"
538
- }
539
- ],
540
- "stateMutability": "pure",
541
- "type": "function"
542
- },
543
- {
544
- "inputs": [],
545
- "name": "getPercentFee",
546
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
547
- "stateMutability": "view",
548
- "type": "function"
549
- },
550
- {
551
- "inputs": [
552
- { "internalType": "uint256", "name": "_poolId", "type": "uint256" }
553
- ],
554
- "name": "getPool",
555
- "outputs": [
556
- {
557
- "components": [
558
- { "internalType": "bytes32", "name": "profileId", "type": "bytes32" },
559
- {
560
- "internalType": "contract IStrategy",
561
- "name": "strategy",
562
- "type": "address"
563
- },
564
- { "internalType": "address", "name": "token", "type": "address" },
565
- {
566
- "components": [
567
- {
2
+ { "inputs": [], "name": "ALLOCATION_ACTIVE", "type": "error" },
3
+ { "inputs": [], "name": "ALLOCATION_NOT_ACTIVE", "type": "error" },
4
+ { "inputs": [], "name": "ALLOCATION_NOT_ENDED", "type": "error" },
5
+ { "inputs": [], "name": "ALREADY_INITIALIZED", "type": "error" },
6
+ { "inputs": [], "name": "AMOUNT_MISMATCH", "type": "error" },
7
+ { "inputs": [], "name": "ANCHOR_ERROR", "type": "error" },
8
+ { "inputs": [], "name": "ARRAY_MISMATCH", "type": "error" },
9
+ { "inputs": [], "name": "INVALID", "type": "error" },
10
+ { "inputs": [], "name": "INVALID_ADDRESS", "type": "error" },
11
+ { "inputs": [], "name": "INVALID_FEE", "type": "error" },
12
+ { "inputs": [], "name": "INVALID_METADATA", "type": "error" },
13
+ { "inputs": [], "name": "INVALID_REGISTRATION", "type": "error" },
14
+ { "inputs": [], "name": "IS_APPROVED_STRATEGY", "type": "error" },
15
+ { "inputs": [], "name": "MISMATCH", "type": "error" },
16
+ { "inputs": [], "name": "NONCE_NOT_AVAILABLE", "type": "error" },
17
+ { "inputs": [], "name": "NOT_APPROVED_STRATEGY", "type": "error" },
18
+ { "inputs": [], "name": "NOT_ENOUGH_FUNDS", "type": "error" },
19
+ { "inputs": [], "name": "NOT_INITIALIZED", "type": "error" },
20
+ { "inputs": [], "name": "NOT_PENDING_OWNER", "type": "error" },
21
+ { "inputs": [], "name": "NewOwnerIsZeroAddress", "type": "error" },
22
+ { "inputs": [], "name": "NoHandoverRequest", "type": "error" },
23
+ { "inputs": [], "name": "POOL_ACTIVE", "type": "error" },
24
+ { "inputs": [], "name": "POOL_INACTIVE", "type": "error" },
25
+ { "inputs": [], "name": "RECIPIENT_ALREADY_ACCEPTED", "type": "error" },
26
+ {
27
+ "inputs": [
28
+ { "internalType": "address", "name": "recipientId", "type": "address" }
29
+ ],
30
+ "name": "RECIPIENT_ERROR",
31
+ "type": "error"
32
+ },
33
+ { "inputs": [], "name": "RECIPIENT_NOT_ACCEPTED", "type": "error" },
34
+ { "inputs": [], "name": "REGISTRATION_NOT_ACTIVE", "type": "error" },
35
+ { "inputs": [], "name": "UNAUTHORIZED", "type": "error" },
36
+ { "inputs": [], "name": "Unauthorized", "type": "error" },
37
+ { "inputs": [], "name": "ZERO_ADDRESS", "type": "error" },
38
+ {
39
+ "anonymous": false,
40
+ "inputs": [
41
+ {
42
+ "indexed": true,
43
+ "internalType": "uint256",
44
+ "name": "poolId",
45
+ "type": "uint256"
46
+ },
47
+ {
48
+ "indexed": false,
49
+ "internalType": "uint256",
50
+ "name": "amount",
51
+ "type": "uint256"
52
+ }
53
+ ],
54
+ "name": "BaseFeePaid",
55
+ "type": "event"
56
+ },
57
+ {
58
+ "anonymous": false,
59
+ "inputs": [
60
+ {
61
+ "indexed": false,
62
+ "internalType": "uint256",
63
+ "name": "baseFee",
64
+ "type": "uint256"
65
+ }
66
+ ],
67
+ "name": "BaseFeeUpdated",
68
+ "type": "event"
69
+ },
70
+ {
71
+ "anonymous": false,
72
+ "inputs": [
73
+ {
74
+ "indexed": false,
75
+ "internalType": "uint8",
76
+ "name": "version",
77
+ "type": "uint8"
78
+ }
79
+ ],
80
+ "name": "Initialized",
81
+ "type": "event"
82
+ },
83
+ {
84
+ "anonymous": false,
85
+ "inputs": [
86
+ {
87
+ "indexed": true,
88
+ "internalType": "address",
89
+ "name": "pendingOwner",
90
+ "type": "address"
91
+ }
92
+ ],
93
+ "name": "OwnershipHandoverCanceled",
94
+ "type": "event"
95
+ },
96
+ {
97
+ "anonymous": false,
98
+ "inputs": [
99
+ {
100
+ "indexed": true,
101
+ "internalType": "address",
102
+ "name": "pendingOwner",
103
+ "type": "address"
104
+ }
105
+ ],
106
+ "name": "OwnershipHandoverRequested",
107
+ "type": "event"
108
+ },
109
+ {
110
+ "anonymous": false,
111
+ "inputs": [
112
+ {
113
+ "indexed": true,
114
+ "internalType": "address",
115
+ "name": "oldOwner",
116
+ "type": "address"
117
+ },
118
+ {
119
+ "indexed": true,
120
+ "internalType": "address",
121
+ "name": "newOwner",
122
+ "type": "address"
123
+ }
124
+ ],
125
+ "name": "OwnershipTransferred",
126
+ "type": "event"
127
+ },
128
+ {
129
+ "anonymous": false,
130
+ "inputs": [
131
+ {
132
+ "indexed": false,
133
+ "internalType": "uint256",
134
+ "name": "percentFee",
135
+ "type": "uint256"
136
+ }
137
+ ],
138
+ "name": "PercentFeeUpdated",
139
+ "type": "event"
140
+ },
141
+ {
142
+ "anonymous": false,
143
+ "inputs": [
144
+ {
145
+ "indexed": true,
146
+ "internalType": "uint256",
147
+ "name": "poolId",
148
+ "type": "uint256"
149
+ },
150
+ {
151
+ "indexed": true,
152
+ "internalType": "bytes32",
153
+ "name": "profileId",
154
+ "type": "bytes32"
155
+ },
156
+ {
157
+ "indexed": false,
158
+ "internalType": "contract IStrategy",
159
+ "name": "strategy",
160
+ "type": "address"
161
+ },
162
+ {
163
+ "indexed": false,
164
+ "internalType": "address",
165
+ "name": "token",
166
+ "type": "address"
167
+ },
168
+ {
169
+ "indexed": false,
170
+ "internalType": "uint256",
171
+ "name": "amount",
172
+ "type": "uint256"
173
+ },
174
+ {
175
+ "components": [
176
+ { "internalType": "uint256", "name": "protocol", "type": "uint256" },
177
+ { "internalType": "string", "name": "pointer", "type": "string" }
178
+ ],
179
+ "indexed": false,
180
+ "internalType": "struct Metadata",
181
+ "name": "metadata",
182
+ "type": "tuple"
183
+ }
184
+ ],
185
+ "name": "PoolCreated",
186
+ "type": "event"
187
+ },
188
+ {
189
+ "anonymous": false,
190
+ "inputs": [
191
+ {
192
+ "indexed": true,
193
+ "internalType": "uint256",
194
+ "name": "poolId",
195
+ "type": "uint256"
196
+ },
197
+ {
198
+ "indexed": false,
199
+ "internalType": "uint256",
200
+ "name": "amount",
201
+ "type": "uint256"
202
+ },
203
+ {
204
+ "indexed": false,
205
+ "internalType": "uint256",
206
+ "name": "fee",
207
+ "type": "uint256"
208
+ }
209
+ ],
210
+ "name": "PoolFunded",
211
+ "type": "event"
212
+ },
213
+ {
214
+ "anonymous": false,
215
+ "inputs": [
216
+ {
217
+ "indexed": true,
218
+ "internalType": "uint256",
219
+ "name": "poolId",
220
+ "type": "uint256"
221
+ },
222
+ {
223
+ "components": [
224
+ { "internalType": "uint256", "name": "protocol", "type": "uint256" },
225
+ { "internalType": "string", "name": "pointer", "type": "string" }
226
+ ],
227
+ "indexed": false,
228
+ "internalType": "struct Metadata",
229
+ "name": "metadata",
230
+ "type": "tuple"
231
+ }
232
+ ],
233
+ "name": "PoolMetadataUpdated",
234
+ "type": "event"
235
+ },
236
+ {
237
+ "anonymous": false,
238
+ "inputs": [
239
+ {
240
+ "indexed": false,
241
+ "internalType": "address",
242
+ "name": "registry",
243
+ "type": "address"
244
+ }
245
+ ],
246
+ "name": "RegistryUpdated",
247
+ "type": "event"
248
+ },
249
+ {
250
+ "anonymous": false,
251
+ "inputs": [
252
+ {
253
+ "indexed": true,
254
+ "internalType": "bytes32",
255
+ "name": "role",
256
+ "type": "bytes32"
257
+ },
258
+ {
259
+ "indexed": true,
260
+ "internalType": "bytes32",
261
+ "name": "previousAdminRole",
262
+ "type": "bytes32"
263
+ },
264
+ {
265
+ "indexed": true,
266
+ "internalType": "bytes32",
267
+ "name": "newAdminRole",
268
+ "type": "bytes32"
269
+ }
270
+ ],
271
+ "name": "RoleAdminChanged",
272
+ "type": "event"
273
+ },
274
+ {
275
+ "anonymous": false,
276
+ "inputs": [
277
+ {
278
+ "indexed": true,
279
+ "internalType": "bytes32",
280
+ "name": "role",
281
+ "type": "bytes32"
282
+ },
283
+ {
284
+ "indexed": true,
285
+ "internalType": "address",
286
+ "name": "account",
287
+ "type": "address"
288
+ },
289
+ {
290
+ "indexed": true,
291
+ "internalType": "address",
292
+ "name": "sender",
293
+ "type": "address"
294
+ }
295
+ ],
296
+ "name": "RoleGranted",
297
+ "type": "event"
298
+ },
299
+ {
300
+ "anonymous": false,
301
+ "inputs": [
302
+ {
303
+ "indexed": true,
304
+ "internalType": "bytes32",
305
+ "name": "role",
306
+ "type": "bytes32"
307
+ },
308
+ {
309
+ "indexed": true,
310
+ "internalType": "address",
311
+ "name": "account",
312
+ "type": "address"
313
+ },
314
+ {
315
+ "indexed": true,
316
+ "internalType": "address",
317
+ "name": "sender",
318
+ "type": "address"
319
+ }
320
+ ],
321
+ "name": "RoleRevoked",
322
+ "type": "event"
323
+ },
324
+ {
325
+ "anonymous": false,
326
+ "inputs": [
327
+ {
328
+ "indexed": false,
329
+ "internalType": "address",
330
+ "name": "strategy",
331
+ "type": "address"
332
+ }
333
+ ],
334
+ "name": "StrategyApproved",
335
+ "type": "event"
336
+ },
337
+ {
338
+ "anonymous": false,
339
+ "inputs": [
340
+ {
341
+ "indexed": false,
342
+ "internalType": "address",
343
+ "name": "strategy",
344
+ "type": "address"
345
+ }
346
+ ],
347
+ "name": "StrategyRemoved",
348
+ "type": "event"
349
+ },
350
+ {
351
+ "anonymous": false,
352
+ "inputs": [
353
+ {
354
+ "indexed": false,
355
+ "internalType": "address",
356
+ "name": "treasury",
357
+ "type": "address"
358
+ }
359
+ ],
360
+ "name": "TreasuryUpdated",
361
+ "type": "event"
362
+ },
363
+ {
364
+ "inputs": [],
365
+ "name": "DEFAULT_ADMIN_ROLE",
366
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
367
+ "stateMutability": "view",
368
+ "type": "function"
369
+ },
370
+ {
371
+ "inputs": [],
372
+ "name": "NATIVE",
373
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
374
+ "stateMutability": "view",
375
+ "type": "function"
376
+ },
377
+ {
378
+ "inputs": [
379
+ { "internalType": "uint256", "name": "_poolId", "type": "uint256" },
380
+ { "internalType": "address", "name": "_manager", "type": "address" }
381
+ ],
382
+ "name": "addPoolManager",
383
+ "outputs": [],
384
+ "stateMutability": "nonpayable",
385
+ "type": "function"
386
+ },
387
+ {
388
+ "inputs": [
389
+ { "internalType": "address", "name": "_strategy", "type": "address" }
390
+ ],
391
+ "name": "addToCloneableStrategies",
392
+ "outputs": [],
393
+ "stateMutability": "nonpayable",
394
+ "type": "function"
395
+ },
396
+ {
397
+ "inputs": [
398
+ { "internalType": "uint256", "name": "_poolId", "type": "uint256" },
399
+ { "internalType": "bytes", "name": "_data", "type": "bytes" }
400
+ ],
401
+ "name": "allocate",
402
+ "outputs": [],
403
+ "stateMutability": "payable",
404
+ "type": "function"
405
+ },
406
+ {
407
+ "inputs": [
408
+ { "internalType": "uint256[]", "name": "_poolIds", "type": "uint256[]" },
409
+ { "internalType": "bytes[]", "name": "_datas", "type": "bytes[]" }
410
+ ],
411
+ "name": "batchAllocate",
412
+ "outputs": [],
413
+ "stateMutability": "nonpayable",
414
+ "type": "function"
415
+ },
416
+ {
417
+ "inputs": [
418
+ { "internalType": "uint256[]", "name": "_poolIds", "type": "uint256[]" },
419
+ { "internalType": "bytes[]", "name": "_data", "type": "bytes[]" }
420
+ ],
421
+ "name": "batchRegisterRecipient",
422
+ "outputs": [
423
+ {
424
+ "internalType": "address[]",
425
+ "name": "recipientIds",
426
+ "type": "address[]"
427
+ }
428
+ ],
429
+ "stateMutability": "nonpayable",
430
+ "type": "function"
431
+ },
432
+ {
433
+ "inputs": [],
434
+ "name": "cancelOwnershipHandover",
435
+ "outputs": [],
436
+ "stateMutability": "payable",
437
+ "type": "function"
438
+ },
439
+ {
440
+ "inputs": [
441
+ { "internalType": "address", "name": "pendingOwner", "type": "address" }
442
+ ],
443
+ "name": "completeOwnershipHandover",
444
+ "outputs": [],
445
+ "stateMutability": "payable",
446
+ "type": "function"
447
+ },
448
+ {
449
+ "inputs": [
450
+ { "internalType": "bytes32", "name": "_profileId", "type": "bytes32" },
451
+ { "internalType": "address", "name": "_strategy", "type": "address" },
452
+ { "internalType": "bytes", "name": "_initStrategyData", "type": "bytes" },
453
+ { "internalType": "address", "name": "_token", "type": "address" },
454
+ { "internalType": "uint256", "name": "_amount", "type": "uint256" },
455
+ {
456
+ "components": [
457
+ { "internalType": "uint256", "name": "protocol", "type": "uint256" },
458
+ { "internalType": "string", "name": "pointer", "type": "string" }
459
+ ],
460
+ "internalType": "struct Metadata",
461
+ "name": "_metadata",
462
+ "type": "tuple"
463
+ },
464
+ { "internalType": "address[]", "name": "_managers", "type": "address[]" }
465
+ ],
466
+ "name": "createPool",
467
+ "outputs": [
468
+ { "internalType": "uint256", "name": "poolId", "type": "uint256" }
469
+ ],
470
+ "stateMutability": "payable",
471
+ "type": "function"
472
+ },
473
+ {
474
+ "inputs": [
475
+ { "internalType": "bytes32", "name": "_profileId", "type": "bytes32" },
476
+ { "internalType": "address", "name": "_strategy", "type": "address" },
477
+ { "internalType": "bytes", "name": "_initStrategyData", "type": "bytes" },
478
+ { "internalType": "address", "name": "_token", "type": "address" },
479
+ { "internalType": "uint256", "name": "_amount", "type": "uint256" },
480
+ {
481
+ "components": [
482
+ { "internalType": "uint256", "name": "protocol", "type": "uint256" },
483
+ { "internalType": "string", "name": "pointer", "type": "string" }
484
+ ],
485
+ "internalType": "struct Metadata",
486
+ "name": "_metadata",
487
+ "type": "tuple"
488
+ },
489
+ { "internalType": "address[]", "name": "_managers", "type": "address[]" }
490
+ ],
491
+ "name": "createPoolWithCustomStrategy",
492
+ "outputs": [
493
+ { "internalType": "uint256", "name": "poolId", "type": "uint256" }
494
+ ],
495
+ "stateMutability": "payable",
496
+ "type": "function"
497
+ },
498
+ {
499
+ "inputs": [
500
+ { "internalType": "uint256", "name": "_poolId", "type": "uint256" },
501
+ {
502
+ "internalType": "address[]",
503
+ "name": "_recipientIds",
504
+ "type": "address[]"
505
+ },
506
+ { "internalType": "bytes", "name": "_data", "type": "bytes" }
507
+ ],
508
+ "name": "distribute",
509
+ "outputs": [],
510
+ "stateMutability": "nonpayable",
511
+ "type": "function"
512
+ },
513
+ {
514
+ "inputs": [
515
+ { "internalType": "uint256", "name": "_poolId", "type": "uint256" },
516
+ { "internalType": "uint256", "name": "_amount", "type": "uint256" }
517
+ ],
518
+ "name": "fundPool",
519
+ "outputs": [],
520
+ "stateMutability": "payable",
521
+ "type": "function"
522
+ },
523
+ {
524
+ "inputs": [],
525
+ "name": "getBaseFee",
526
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
527
+ "stateMutability": "view",
528
+ "type": "function"
529
+ },
530
+ {
531
+ "inputs": [],
532
+ "name": "getFeeDenominator",
533
+ "outputs": [
534
+ {
568
535
  "internalType": "uint256",
569
- "name": "protocol",
536
+ "name": "FEE_DENOMINATOR",
570
537
  "type": "uint256"
571
- },
572
- { "internalType": "string", "name": "pointer", "type": "string" }
573
- ],
574
- "internalType": "struct Metadata",
575
- "name": "metadata",
576
- "type": "tuple"
577
- },
578
- {
579
- "internalType": "bytes32",
580
- "name": "managerRole",
581
- "type": "bytes32"
582
- },
583
- { "internalType": "bytes32", "name": "adminRole", "type": "bytes32" }
584
- ],
585
- "internalType": "struct IAllo.Pool",
586
- "name": "",
587
- "type": "tuple"
588
- }
589
- ],
590
- "stateMutability": "view",
591
- "type": "function"
592
- },
593
- {
594
- "inputs": [],
595
- "name": "getRegistry",
596
- "outputs": [
597
- { "internalType": "contract IRegistry", "name": "", "type": "address" }
598
- ],
599
- "stateMutability": "view",
600
- "type": "function"
601
- },
602
- {
603
- "inputs": [
604
- { "internalType": "bytes32", "name": "role", "type": "bytes32" }
605
- ],
606
- "name": "getRoleAdmin",
607
- "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
608
- "stateMutability": "view",
609
- "type": "function"
610
- },
611
- {
612
- "inputs": [
613
- { "internalType": "uint256", "name": "_poolId", "type": "uint256" }
614
- ],
615
- "name": "getStrategy",
616
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
617
- "stateMutability": "view",
618
- "type": "function"
619
- },
620
- {
621
- "inputs": [],
622
- "name": "getTreasury",
623
- "outputs": [
624
- { "internalType": "address payable", "name": "", "type": "address" }
625
- ],
626
- "stateMutability": "view",
627
- "type": "function"
628
- },
629
- {
630
- "inputs": [
631
- { "internalType": "bytes32", "name": "role", "type": "bytes32" },
632
- { "internalType": "address", "name": "account", "type": "address" }
633
- ],
634
- "name": "grantRole",
635
- "outputs": [],
636
- "stateMutability": "nonpayable",
637
- "type": "function"
638
- },
639
- {
640
- "inputs": [
641
- { "internalType": "bytes32", "name": "role", "type": "bytes32" },
642
- { "internalType": "address", "name": "account", "type": "address" }
643
- ],
644
- "name": "hasRole",
645
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
646
- "stateMutability": "view",
647
- "type": "function"
648
- },
649
- {
650
- "inputs": [
651
- { "internalType": "address", "name": "_owner", "type": "address" },
652
- { "internalType": "address", "name": "_registry", "type": "address" },
653
- {
654
- "internalType": "address payable",
655
- "name": "_treasury",
656
- "type": "address"
657
- },
658
- { "internalType": "uint256", "name": "_percentFee", "type": "uint256" },
659
- { "internalType": "uint256", "name": "_baseFee", "type": "uint256" }
660
- ],
661
- "name": "initialize",
662
- "outputs": [],
663
- "stateMutability": "nonpayable",
664
- "type": "function"
665
- },
666
- {
667
- "inputs": [
668
- { "internalType": "address", "name": "_strategy", "type": "address" }
669
- ],
670
- "name": "isCloneableStrategy",
671
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
672
- "stateMutability": "view",
673
- "type": "function"
674
- },
675
- {
676
- "inputs": [
677
- { "internalType": "uint256", "name": "_poolId", "type": "uint256" },
678
- { "internalType": "address", "name": "_address", "type": "address" }
679
- ],
680
- "name": "isPoolAdmin",
681
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
682
- "stateMutability": "view",
683
- "type": "function"
684
- },
685
- {
686
- "inputs": [
687
- { "internalType": "uint256", "name": "_poolId", "type": "uint256" },
688
- { "internalType": "address", "name": "_address", "type": "address" }
689
- ],
690
- "name": "isPoolManager",
691
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
692
- "stateMutability": "view",
693
- "type": "function"
694
- },
695
- {
696
- "inputs": [],
697
- "name": "owner",
698
- "outputs": [
699
- { "internalType": "address", "name": "result", "type": "address" }
700
- ],
701
- "stateMutability": "view",
702
- "type": "function"
703
- },
704
- {
705
- "inputs": [
706
- { "internalType": "address", "name": "pendingOwner", "type": "address" }
707
- ],
708
- "name": "ownershipHandoverExpiresAt",
709
- "outputs": [
710
- { "internalType": "uint256", "name": "result", "type": "uint256" }
711
- ],
712
- "stateMutability": "view",
713
- "type": "function"
714
- },
715
- {
716
- "inputs": [
717
- { "internalType": "address", "name": "_token", "type": "address" },
718
- { "internalType": "address", "name": "_recipient", "type": "address" }
719
- ],
720
- "name": "recoverFunds",
721
- "outputs": [],
722
- "stateMutability": "nonpayable",
723
- "type": "function"
724
- },
725
- {
726
- "inputs": [
727
- { "internalType": "uint256", "name": "_poolId", "type": "uint256" },
728
- { "internalType": "bytes", "name": "_data", "type": "bytes" }
729
- ],
730
- "name": "registerRecipient",
731
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
732
- "stateMutability": "payable",
733
- "type": "function"
734
- },
735
- {
736
- "inputs": [
737
- { "internalType": "address", "name": "_strategy", "type": "address" }
738
- ],
739
- "name": "removeFromCloneableStrategies",
740
- "outputs": [],
741
- "stateMutability": "nonpayable",
742
- "type": "function"
743
- },
744
- {
745
- "inputs": [
746
- { "internalType": "uint256", "name": "_poolId", "type": "uint256" },
747
- { "internalType": "address", "name": "_manager", "type": "address" }
748
- ],
749
- "name": "removePoolManager",
750
- "outputs": [],
751
- "stateMutability": "nonpayable",
752
- "type": "function"
753
- },
754
- {
755
- "inputs": [],
756
- "name": "renounceOwnership",
757
- "outputs": [],
758
- "stateMutability": "payable",
759
- "type": "function"
760
- },
761
- {
762
- "inputs": [
763
- { "internalType": "bytes32", "name": "role", "type": "bytes32" },
764
- { "internalType": "address", "name": "account", "type": "address" }
765
- ],
766
- "name": "renounceRole",
767
- "outputs": [],
768
- "stateMutability": "nonpayable",
769
- "type": "function"
770
- },
771
- {
772
- "inputs": [],
773
- "name": "requestOwnershipHandover",
774
- "outputs": [],
775
- "stateMutability": "payable",
776
- "type": "function"
777
- },
778
- {
779
- "inputs": [
780
- { "internalType": "bytes32", "name": "role", "type": "bytes32" },
781
- { "internalType": "address", "name": "account", "type": "address" }
782
- ],
783
- "name": "revokeRole",
784
- "outputs": [],
785
- "stateMutability": "nonpayable",
786
- "type": "function"
787
- },
788
- {
789
- "inputs": [
790
- { "internalType": "bytes4", "name": "interfaceId", "type": "bytes4" }
791
- ],
792
- "name": "supportsInterface",
793
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
794
- "stateMutability": "view",
795
- "type": "function"
796
- },
797
- {
798
- "inputs": [
799
- { "internalType": "address", "name": "newOwner", "type": "address" }
800
- ],
801
- "name": "transferOwnership",
802
- "outputs": [],
803
- "stateMutability": "payable",
804
- "type": "function"
805
- },
806
- {
807
- "inputs": [
808
- { "internalType": "uint256", "name": "_baseFee", "type": "uint256" }
809
- ],
810
- "name": "updateBaseFee",
811
- "outputs": [],
812
- "stateMutability": "nonpayable",
813
- "type": "function"
814
- },
815
- {
816
- "inputs": [
817
- { "internalType": "uint256", "name": "_percentFee", "type": "uint256" }
818
- ],
819
- "name": "updatePercentFee",
820
- "outputs": [],
821
- "stateMutability": "nonpayable",
822
- "type": "function"
823
- },
824
- {
825
- "inputs": [
826
- { "internalType": "uint256", "name": "_poolId", "type": "uint256" },
827
- {
828
- "components": [
829
- { "internalType": "uint256", "name": "protocol", "type": "uint256" },
830
- { "internalType": "string", "name": "pointer", "type": "string" }
831
- ],
832
- "internalType": "struct Metadata",
833
- "name": "_metadata",
834
- "type": "tuple"
835
- }
836
- ],
837
- "name": "updatePoolMetadata",
838
- "outputs": [],
839
- "stateMutability": "nonpayable",
840
- "type": "function"
841
- },
842
- {
843
- "inputs": [
844
- { "internalType": "address", "name": "_registry", "type": "address" }
845
- ],
846
- "name": "updateRegistry",
847
- "outputs": [],
848
- "stateMutability": "nonpayable",
849
- "type": "function"
850
- },
851
- {
852
- "inputs": [
853
- {
854
- "internalType": "address payable",
855
- "name": "_treasury",
856
- "type": "address"
857
- }
858
- ],
859
- "name": "updateTreasury",
860
- "outputs": [],
861
- "stateMutability": "nonpayable",
862
- "type": "function"
863
- }
538
+ }
539
+ ],
540
+ "stateMutability": "pure",
541
+ "type": "function"
542
+ },
543
+ {
544
+ "inputs": [],
545
+ "name": "getPercentFee",
546
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
547
+ "stateMutability": "view",
548
+ "type": "function"
549
+ },
550
+ {
551
+ "inputs": [
552
+ { "internalType": "uint256", "name": "_poolId", "type": "uint256" }
553
+ ],
554
+ "name": "getPool",
555
+ "outputs": [
556
+ {
557
+ "components": [
558
+ { "internalType": "bytes32", "name": "profileId", "type": "bytes32" },
559
+ {
560
+ "internalType": "contract IStrategy",
561
+ "name": "strategy",
562
+ "type": "address"
563
+ },
564
+ { "internalType": "address", "name": "token", "type": "address" },
565
+ {
566
+ "components": [
567
+ {
568
+ "internalType": "uint256",
569
+ "name": "protocol",
570
+ "type": "uint256"
571
+ },
572
+ { "internalType": "string", "name": "pointer", "type": "string" }
573
+ ],
574
+ "internalType": "struct Metadata",
575
+ "name": "metadata",
576
+ "type": "tuple"
577
+ },
578
+ {
579
+ "internalType": "bytes32",
580
+ "name": "managerRole",
581
+ "type": "bytes32"
582
+ },
583
+ { "internalType": "bytes32", "name": "adminRole", "type": "bytes32" }
584
+ ],
585
+ "internalType": "struct IAllo.Pool",
586
+ "name": "",
587
+ "type": "tuple"
588
+ }
589
+ ],
590
+ "stateMutability": "view",
591
+ "type": "function"
592
+ },
593
+ {
594
+ "inputs": [],
595
+ "name": "getRegistry",
596
+ "outputs": [
597
+ { "internalType": "contract IRegistry", "name": "", "type": "address" }
598
+ ],
599
+ "stateMutability": "view",
600
+ "type": "function"
601
+ },
602
+ {
603
+ "inputs": [
604
+ { "internalType": "bytes32", "name": "role", "type": "bytes32" }
605
+ ],
606
+ "name": "getRoleAdmin",
607
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
608
+ "stateMutability": "view",
609
+ "type": "function"
610
+ },
611
+ {
612
+ "inputs": [
613
+ { "internalType": "uint256", "name": "_poolId", "type": "uint256" }
614
+ ],
615
+ "name": "getStrategy",
616
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
617
+ "stateMutability": "view",
618
+ "type": "function"
619
+ },
620
+ {
621
+ "inputs": [],
622
+ "name": "getTreasury",
623
+ "outputs": [
624
+ { "internalType": "address payable", "name": "", "type": "address" }
625
+ ],
626
+ "stateMutability": "view",
627
+ "type": "function"
628
+ },
629
+ {
630
+ "inputs": [
631
+ { "internalType": "bytes32", "name": "role", "type": "bytes32" },
632
+ { "internalType": "address", "name": "account", "type": "address" }
633
+ ],
634
+ "name": "grantRole",
635
+ "outputs": [],
636
+ "stateMutability": "nonpayable",
637
+ "type": "function"
638
+ },
639
+ {
640
+ "inputs": [
641
+ { "internalType": "bytes32", "name": "role", "type": "bytes32" },
642
+ { "internalType": "address", "name": "account", "type": "address" }
643
+ ],
644
+ "name": "hasRole",
645
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
646
+ "stateMutability": "view",
647
+ "type": "function"
648
+ },
649
+ {
650
+ "inputs": [
651
+ { "internalType": "address", "name": "_owner", "type": "address" },
652
+ { "internalType": "address", "name": "_registry", "type": "address" },
653
+ {
654
+ "internalType": "address payable",
655
+ "name": "_treasury",
656
+ "type": "address"
657
+ },
658
+ { "internalType": "uint256", "name": "_percentFee", "type": "uint256" },
659
+ { "internalType": "uint256", "name": "_baseFee", "type": "uint256" }
660
+ ],
661
+ "name": "initialize",
662
+ "outputs": [],
663
+ "stateMutability": "nonpayable",
664
+ "type": "function"
665
+ },
666
+ {
667
+ "inputs": [
668
+ { "internalType": "address", "name": "_strategy", "type": "address" }
669
+ ],
670
+ "name": "isCloneableStrategy",
671
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
672
+ "stateMutability": "view",
673
+ "type": "function"
674
+ },
675
+ {
676
+ "inputs": [
677
+ { "internalType": "uint256", "name": "_poolId", "type": "uint256" },
678
+ { "internalType": "address", "name": "_address", "type": "address" }
679
+ ],
680
+ "name": "isPoolAdmin",
681
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
682
+ "stateMutability": "view",
683
+ "type": "function"
684
+ },
685
+ {
686
+ "inputs": [
687
+ { "internalType": "uint256", "name": "_poolId", "type": "uint256" },
688
+ { "internalType": "address", "name": "_address", "type": "address" }
689
+ ],
690
+ "name": "isPoolManager",
691
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
692
+ "stateMutability": "view",
693
+ "type": "function"
694
+ },
695
+ {
696
+ "inputs": [],
697
+ "name": "owner",
698
+ "outputs": [
699
+ { "internalType": "address", "name": "result", "type": "address" }
700
+ ],
701
+ "stateMutability": "view",
702
+ "type": "function"
703
+ },
704
+ {
705
+ "inputs": [
706
+ { "internalType": "address", "name": "pendingOwner", "type": "address" }
707
+ ],
708
+ "name": "ownershipHandoverExpiresAt",
709
+ "outputs": [
710
+ { "internalType": "uint256", "name": "result", "type": "uint256" }
711
+ ],
712
+ "stateMutability": "view",
713
+ "type": "function"
714
+ },
715
+ {
716
+ "inputs": [
717
+ { "internalType": "address", "name": "_token", "type": "address" },
718
+ { "internalType": "address", "name": "_recipient", "type": "address" }
719
+ ],
720
+ "name": "recoverFunds",
721
+ "outputs": [],
722
+ "stateMutability": "nonpayable",
723
+ "type": "function"
724
+ },
725
+ {
726
+ "inputs": [
727
+ { "internalType": "uint256", "name": "_poolId", "type": "uint256" },
728
+ { "internalType": "bytes", "name": "_data", "type": "bytes" }
729
+ ],
730
+ "name": "registerRecipient",
731
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
732
+ "stateMutability": "payable",
733
+ "type": "function"
734
+ },
735
+ {
736
+ "inputs": [
737
+ { "internalType": "address", "name": "_strategy", "type": "address" }
738
+ ],
739
+ "name": "removeFromCloneableStrategies",
740
+ "outputs": [],
741
+ "stateMutability": "nonpayable",
742
+ "type": "function"
743
+ },
744
+ {
745
+ "inputs": [
746
+ { "internalType": "uint256", "name": "_poolId", "type": "uint256" },
747
+ { "internalType": "address", "name": "_manager", "type": "address" }
748
+ ],
749
+ "name": "removePoolManager",
750
+ "outputs": [],
751
+ "stateMutability": "nonpayable",
752
+ "type": "function"
753
+ },
754
+ {
755
+ "inputs": [],
756
+ "name": "renounceOwnership",
757
+ "outputs": [],
758
+ "stateMutability": "payable",
759
+ "type": "function"
760
+ },
761
+ {
762
+ "inputs": [
763
+ { "internalType": "bytes32", "name": "role", "type": "bytes32" },
764
+ { "internalType": "address", "name": "account", "type": "address" }
765
+ ],
766
+ "name": "renounceRole",
767
+ "outputs": [],
768
+ "stateMutability": "nonpayable",
769
+ "type": "function"
770
+ },
771
+ {
772
+ "inputs": [],
773
+ "name": "requestOwnershipHandover",
774
+ "outputs": [],
775
+ "stateMutability": "payable",
776
+ "type": "function"
777
+ },
778
+ {
779
+ "inputs": [
780
+ { "internalType": "bytes32", "name": "role", "type": "bytes32" },
781
+ { "internalType": "address", "name": "account", "type": "address" }
782
+ ],
783
+ "name": "revokeRole",
784
+ "outputs": [],
785
+ "stateMutability": "nonpayable",
786
+ "type": "function"
787
+ },
788
+ {
789
+ "inputs": [
790
+ { "internalType": "bytes4", "name": "interfaceId", "type": "bytes4" }
791
+ ],
792
+ "name": "supportsInterface",
793
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
794
+ "stateMutability": "view",
795
+ "type": "function"
796
+ },
797
+ {
798
+ "inputs": [
799
+ { "internalType": "address", "name": "newOwner", "type": "address" }
800
+ ],
801
+ "name": "transferOwnership",
802
+ "outputs": [],
803
+ "stateMutability": "payable",
804
+ "type": "function"
805
+ },
806
+ {
807
+ "inputs": [
808
+ { "internalType": "uint256", "name": "_baseFee", "type": "uint256" }
809
+ ],
810
+ "name": "updateBaseFee",
811
+ "outputs": [],
812
+ "stateMutability": "nonpayable",
813
+ "type": "function"
814
+ },
815
+ {
816
+ "inputs": [
817
+ { "internalType": "uint256", "name": "_percentFee", "type": "uint256" }
818
+ ],
819
+ "name": "updatePercentFee",
820
+ "outputs": [],
821
+ "stateMutability": "nonpayable",
822
+ "type": "function"
823
+ },
824
+ {
825
+ "inputs": [
826
+ { "internalType": "uint256", "name": "_poolId", "type": "uint256" },
827
+ {
828
+ "components": [
829
+ { "internalType": "uint256", "name": "protocol", "type": "uint256" },
830
+ { "internalType": "string", "name": "pointer", "type": "string" }
831
+ ],
832
+ "internalType": "struct Metadata",
833
+ "name": "_metadata",
834
+ "type": "tuple"
835
+ }
836
+ ],
837
+ "name": "updatePoolMetadata",
838
+ "outputs": [],
839
+ "stateMutability": "nonpayable",
840
+ "type": "function"
841
+ },
842
+ {
843
+ "inputs": [
844
+ { "internalType": "address", "name": "_registry", "type": "address" }
845
+ ],
846
+ "name": "updateRegistry",
847
+ "outputs": [],
848
+ "stateMutability": "nonpayable",
849
+ "type": "function"
850
+ },
851
+ {
852
+ "inputs": [
853
+ {
854
+ "internalType": "address payable",
855
+ "name": "_treasury",
856
+ "type": "address"
857
+ }
858
+ ],
859
+ "name": "updateTreasury",
860
+ "outputs": [],
861
+ "stateMutability": "nonpayable",
862
+ "type": "function"
863
+ }
864
864
  ]