@show-karma/karma-gap-sdk 0.3.43 → 0.3.45
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.
- package/core/abi/AirdropNFT.json +622 -0
- package/core/abi/Donations.json +260 -0
- package/core/abi/EAS.json +1 -0
- package/core/abi/SchemaRegistry.json +1 -0
- package/core/abi/index.d.ts +1114 -0
- package/core/abi/index.js +26 -0
- package/core/class/Attestation.d.ts +3 -2
- package/core/class/Attestation.js +11 -8
- package/core/class/GAP.d.ts +1 -1
- package/core/class/GAP.js +9 -10
- package/core/class/GapSchema.js +1 -0
- package/core/class/GraphQL/GapEasClient.d.ts +7 -7
- package/core/class/GraphQL/GapEasClient.js +60 -60
- package/core/class/Schema.d.ts +12 -3
- package/core/class/Schema.js +32 -12
- package/core/class/SchemaError.d.ts +2 -1
- package/core/class/SchemaError.js +4 -3
- package/core/class/contract/GapContract.d.ts +11 -6
- package/core/class/contract/GapContract.js +35 -6
- package/core/class/entities/Community.d.ts +2 -2
- package/core/class/entities/Community.js +9 -3
- package/core/class/entities/Grant.d.ts +11 -11
- package/core/class/entities/Grant.js +33 -29
- package/core/class/entities/GrantUpdate.d.ts +8 -2
- package/core/class/entities/GrantUpdate.js +26 -6
- package/core/class/entities/MemberOf.d.ts +2 -2
- package/core/class/entities/MemberOf.js +4 -2
- package/core/class/entities/Milestone.d.ts +14 -7
- package/core/class/entities/Milestone.js +63 -21
- package/core/class/entities/Project.d.ts +10 -5
- package/core/class/entities/Project.js +77 -9
- package/core/class/entities/ProjectImpact.d.ts +7 -3
- package/core/class/entities/ProjectImpact.js +23 -6
- package/core/class/entities/ProjectMilestone.d.ts +60 -0
- package/core/class/entities/ProjectMilestone.js +174 -0
- package/core/class/entities/ProjectUpdate.d.ts +4 -2
- package/core/class/entities/ProjectUpdate.js +21 -5
- package/core/class/karma-indexer/GapIndexerClient.d.ts +9 -7
- package/core/class/karma-indexer/GapIndexerClient.js +15 -10
- package/core/class/karma-indexer/api/GapIndexerApi.d.ts +3 -1
- package/core/class/karma-indexer/api/GapIndexerApi.js +9 -0
- package/core/class/karma-indexer/api/types.d.ts +21 -0
- package/core/class/types/attestations.d.ts +20 -1
- package/core/class/types/attestations.js +4 -1
- package/core/consts.js +219 -45
- package/core/index.d.ts +1 -0
- package/core/index.js +1 -0
- package/core/types.d.ts +12 -2
- package/package.json +1 -1
- package/core/abi/AlloCaller.json +0 -117
package/core/consts.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AlloContracts = exports.alloSupportedNetworks = exports.MountEntities = exports.Networks = exports.zeroAddress = exports.nullResolver = exports.nullRef = exports.chainIdToNetwork = exports.useDefaultAttestation = void 0;
|
|
4
|
+
const oldStatusSchema = [
|
|
5
|
+
{ type: "string", name: "type", value: null },
|
|
6
|
+
{ type: "string", name: "reason", value: null },
|
|
7
|
+
];
|
|
4
8
|
/**
|
|
5
9
|
* Schemas that should use default EAS attestation
|
|
6
10
|
* instead of the custom contract.
|
|
@@ -43,19 +47,48 @@ exports.Networks = {
|
|
|
43
47
|
projectResolver: "0x7177AdC0f924b695C0294A40C4C5FEFf5EE1E141",
|
|
44
48
|
communityResolver: "0x6dC1D6b864e8BEf815806f9e4677123496e12026",
|
|
45
49
|
donations: "0x021896771412C1D3f31BC7B01fFA3a6A17c5dA30",
|
|
50
|
+
airdropNFT: "0x2bB9aB0084477c1306A7da80f5DCDdBca4139112",
|
|
46
51
|
},
|
|
47
52
|
schemas: {
|
|
48
53
|
Community: "0x721c17b065dccc5c916e0c2708d0ef50f1810591b76d0402ff6fe5accbd8488f",
|
|
49
54
|
Details: "0x70a3f615f738fc6a4f56100692ada93d947c028b840940d97af7e7d6f0fa0577",
|
|
50
55
|
Grant: "0x12837231f48acbca4e1e7f4416f684f3353bd4d71d4f03a09d29e5ffa6f21a50",
|
|
51
|
-
GrantVerified: "
|
|
56
|
+
GrantVerified: "0xdc3f4d0938b1d029d825c01b3c53ad955e0ef3eabc1f57c1ebde90de2bf527ae",
|
|
52
57
|
MemberOf: "0x7fbb8a65924d8ad2ae12356e04b1418043e8361ba3b1b6c917de2e23df3ec81c",
|
|
53
|
-
MilestoneApproved: "
|
|
54
|
-
MilestoneCompleted: "
|
|
55
|
-
GrantUpdateStatus: "
|
|
58
|
+
MilestoneApproved: "0xdc3f4d0938b1d029d825c01b3c53ad955e0ef3eabc1f57c1ebde90de2bf527ae",
|
|
59
|
+
MilestoneCompleted: "0xdc3f4d0938b1d029d825c01b3c53ad955e0ef3eabc1f57c1ebde90de2bf527ae",
|
|
60
|
+
GrantUpdateStatus: "0xdc3f4d0938b1d029d825c01b3c53ad955e0ef3eabc1f57c1ebde90de2bf527ae",
|
|
56
61
|
Project: "0x5b873b6e7a16207b526dde366e8164e95bcda2f009272306519667c5e94d2191",
|
|
57
|
-
ProjectUpdateStatus: "
|
|
62
|
+
ProjectUpdateStatus: "0xdc3f4d0938b1d029d825c01b3c53ad955e0ef3eabc1f57c1ebde90de2bf527ae",
|
|
63
|
+
ProjectMilestoneStatus: "0xdc3f4d0938b1d029d825c01b3c53ad955e0ef3eabc1f57c1ebde90de2bf527ae",
|
|
58
64
|
},
|
|
65
|
+
oldSchemas: [
|
|
66
|
+
{
|
|
67
|
+
name: "GrantVerified",
|
|
68
|
+
uid: "0x13adc8df8a7324b1651e8bcec948b3e2d4fcfa2a88a52136206cb9ea44836e93",
|
|
69
|
+
raw: oldStatusSchema
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: "MilestoneApproved",
|
|
73
|
+
uid: "0x13adc8df8a7324b1651e8bcec948b3e2d4fcfa2a88a52136206cb9ea44836e93",
|
|
74
|
+
raw: oldStatusSchema
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: "MilestoneCompleted",
|
|
78
|
+
uid: "0x13adc8df8a7324b1651e8bcec948b3e2d4fcfa2a88a52136206cb9ea44836e93",
|
|
79
|
+
raw: oldStatusSchema
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
name: "GrantUpdateStatus",
|
|
83
|
+
uid: "0x13adc8df8a7324b1651e8bcec948b3e2d4fcfa2a88a52136206cb9ea44836e93",
|
|
84
|
+
raw: oldStatusSchema
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
name: "ProjectUpdateStatus",
|
|
88
|
+
uid: "0x13adc8df8a7324b1651e8bcec948b3e2d4fcfa2a88a52136206cb9ea44836e93",
|
|
89
|
+
raw: oldStatusSchema
|
|
90
|
+
},
|
|
91
|
+
]
|
|
59
92
|
},
|
|
60
93
|
"optimism-sepolia": {
|
|
61
94
|
chainId: 11155420,
|
|
@@ -68,19 +101,48 @@ exports.Networks = {
|
|
|
68
101
|
projectResolver: "0x832931F23ea4e3c70957DA71a7eB50F5B7efA93D",
|
|
69
102
|
schema: "0x4200000000000000000000000000000000000020",
|
|
70
103
|
donations: "0x3caF83Ed040501f1f439fb22E198bB5a67Bc2884",
|
|
104
|
+
airdropNFT: "0x57d6A954E051145D7E9dD81decaeA6d7Feb640ee",
|
|
71
105
|
},
|
|
72
106
|
schemas: {
|
|
73
107
|
Community: "0x314bb1c3c9b5311c1b813a3ad123b6ac5a03902b987795056dd2e4ff38e833ea",
|
|
74
108
|
Details: "0xd193e75f420a69910f98fa79cacdfd9d0dcbf5933edce8f8bde9a10bd204d996",
|
|
75
109
|
Grant: "0x181beb00ef05cf99caa2e4192369232f210c2764f26e238d962112bf592e9cce",
|
|
76
|
-
GrantVerified: "
|
|
110
|
+
GrantVerified: "0x6f8e6a1394bdc398f8d93a99b0ecca326d04470a4f0ee5c379bb85a458a322e4",
|
|
77
111
|
MemberOf: "0x611f9655188f372e27dce116a803fa9081ca3e2907986368d54fcad538ca3853",
|
|
78
|
-
MilestoneApproved: "
|
|
79
|
-
MilestoneCompleted: "
|
|
80
|
-
GrantUpdateStatus: "
|
|
112
|
+
MilestoneApproved: "0x6f8e6a1394bdc398f8d93a99b0ecca326d04470a4f0ee5c379bb85a458a322e4",
|
|
113
|
+
MilestoneCompleted: "0x6f8e6a1394bdc398f8d93a99b0ecca326d04470a4f0ee5c379bb85a458a322e4",
|
|
114
|
+
GrantUpdateStatus: "0x6f8e6a1394bdc398f8d93a99b0ecca326d04470a4f0ee5c379bb85a458a322e4",
|
|
81
115
|
Project: "0xf9bbd118dd100459a7d093403af21c6e7f847fd7f331b7a4e6bfb94a1366bd76",
|
|
82
|
-
ProjectUpdateStatus: "
|
|
116
|
+
ProjectUpdateStatus: "0x6f8e6a1394bdc398f8d93a99b0ecca326d04470a4f0ee5c379bb85a458a322e4",
|
|
117
|
+
ProjectMilestoneStatus: "0x6f8e6a1394bdc398f8d93a99b0ecca326d04470a4f0ee5c379bb85a458a322e4",
|
|
83
118
|
},
|
|
119
|
+
oldSchemas: [
|
|
120
|
+
{
|
|
121
|
+
name: "GrantVerified",
|
|
122
|
+
uid: "0xf9ec600d61d88614c863365a79715a7ba29781ec67643ffeb9222dd8873ee3fa",
|
|
123
|
+
raw: oldStatusSchema
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
name: "MilestoneApproved",
|
|
127
|
+
uid: "0xf9ec600d61d88614c863365a79715a7ba29781ec67643ffeb9222dd8873ee3fa",
|
|
128
|
+
raw: oldStatusSchema
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
name: "MilestoneCompleted",
|
|
132
|
+
uid: "0xf9ec600d61d88614c863365a79715a7ba29781ec67643ffeb9222dd8873ee3fa",
|
|
133
|
+
raw: oldStatusSchema
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
name: "GrantUpdateStatus",
|
|
137
|
+
uid: "0xf9ec600d61d88614c863365a79715a7ba29781ec67643ffeb9222dd8873ee3fa",
|
|
138
|
+
raw: oldStatusSchema
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
name: "ProjectUpdateStatus",
|
|
142
|
+
uid: "0xf9ec600d61d88614c863365a79715a7ba29781ec67643ffeb9222dd8873ee3fa",
|
|
143
|
+
raw: oldStatusSchema
|
|
144
|
+
},
|
|
145
|
+
]
|
|
84
146
|
},
|
|
85
147
|
arbitrum: {
|
|
86
148
|
chainId: 42161,
|
|
@@ -93,19 +155,48 @@ exports.Networks = {
|
|
|
93
155
|
projectResolver: "0x28BE0b0515be8BB8822aF1467A6613795E74717b",
|
|
94
156
|
communityResolver: "0xD534C4704F82494aBbc901560046fB62Ac63E9C4",
|
|
95
157
|
donations: "0x475F3E915601d975c792E6116791FBe9ACdBE902",
|
|
158
|
+
airdropNFT: "0xe957aFd24F91e6A14F4d47E801d70b876176772a",
|
|
96
159
|
},
|
|
97
160
|
schemas: {
|
|
98
161
|
Community: "0xc604f0661cfd522583835ed2b2c644b80e068139d287f93c7f1680888894bacc",
|
|
99
162
|
Details: "0x16bfe4783b7a9c743c401222c56a07ecb77ed42afc84b61ff1f62f5936c0b9d7",
|
|
100
163
|
Grant: "0xea02ab33f9f4c92ba02c9bb21614b7410b98c940a0d8eb8ad3a20204d8b4bda5",
|
|
101
|
-
GrantVerified: "
|
|
164
|
+
GrantVerified: "0x93391c496898c63995f23797835c8e0468be338f0dbc2df62edfd70856cde1d4",
|
|
102
165
|
MemberOf: "0x5f430aec9d04f0dcb3729775c5dfe10752e436469a7607f8c64ae44ef996e477",
|
|
103
|
-
MilestoneApproved: "
|
|
104
|
-
MilestoneCompleted: "
|
|
105
|
-
GrantUpdateStatus: "
|
|
166
|
+
MilestoneApproved: "0x93391c496898c63995f23797835c8e0468be338f0dbc2df62edfd70856cde1d4",
|
|
167
|
+
MilestoneCompleted: "0x93391c496898c63995f23797835c8e0468be338f0dbc2df62edfd70856cde1d4",
|
|
168
|
+
GrantUpdateStatus: "0x93391c496898c63995f23797835c8e0468be338f0dbc2df62edfd70856cde1d4",
|
|
106
169
|
Project: "0xac2a06e955a7e25e6729efe1a6532237e3435b21ccd3dc827ae3c94e624d25b3",
|
|
107
|
-
ProjectUpdateStatus: "
|
|
170
|
+
ProjectUpdateStatus: "0x93391c496898c63995f23797835c8e0468be338f0dbc2df62edfd70856cde1d4",
|
|
171
|
+
ProjectMilestoneStatus: "0x93391c496898c63995f23797835c8e0468be338f0dbc2df62edfd70856cde1d4",
|
|
108
172
|
},
|
|
173
|
+
oldSchemas: [
|
|
174
|
+
{
|
|
175
|
+
name: "GrantVerified",
|
|
176
|
+
uid: "0xd25ccdfbf87659a9081681eb90598d8b944ed28544da7d57c3ccbe6e6422cc15",
|
|
177
|
+
raw: oldStatusSchema
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
name: "MilestoneApproved",
|
|
181
|
+
uid: "0xd25ccdfbf87659a9081681eb90598d8b944ed28544da7d57c3ccbe6e6422cc15",
|
|
182
|
+
raw: oldStatusSchema
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
name: "MilestoneCompleted",
|
|
186
|
+
uid: "0xd25ccdfbf87659a9081681eb90598d8b944ed28544da7d57c3ccbe6e6422cc15",
|
|
187
|
+
raw: oldStatusSchema
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
name: "GrantUpdateStatus",
|
|
191
|
+
uid: "0xd25ccdfbf87659a9081681eb90598d8b944ed28544da7d57c3ccbe6e6422cc15",
|
|
192
|
+
raw: oldStatusSchema
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
name: "ProjectUpdateStatus",
|
|
196
|
+
uid: "0xd25ccdfbf87659a9081681eb90598d8b944ed28544da7d57c3ccbe6e6422cc15",
|
|
197
|
+
raw: oldStatusSchema
|
|
198
|
+
},
|
|
199
|
+
]
|
|
109
200
|
},
|
|
110
201
|
sepolia: {
|
|
111
202
|
chainId: 11155111,
|
|
@@ -118,6 +209,7 @@ exports.Networks = {
|
|
|
118
209
|
projectResolver: "0x099787D5a5aC92779A519CfD925ACB0Dc7E8bd23",
|
|
119
210
|
communityResolver: "0xa9E55D9F52d7B47792d2Db15F6A9674c56ccc5C9",
|
|
120
211
|
donations: "0xb2021F7550b8B07cA71696159B592C1F713593e4",
|
|
212
|
+
airdropNFT: "0x11f48e68Ff894D417956839263337a2989822703",
|
|
121
213
|
},
|
|
122
214
|
schemas: {
|
|
123
215
|
Community: "0xf3d790c7fdab6c1b1f25ffcc9289e5be2792eb596d2851a4d059c8aae1bc8b2e",
|
|
@@ -131,6 +223,7 @@ exports.Networks = {
|
|
|
131
223
|
GrantUpdateStatus: "0xcdef0e492d2e7ad25d0b0fdb868f6dcd1f5e5c30e42fd5fa0debdc12f7618322",
|
|
132
224
|
Project: "0xec77990a252b54b17673955c774b9712766de5eecb22ca5aa2c440e0e93257fb",
|
|
133
225
|
ProjectUpdateStatus: "0xcdef0e492d2e7ad25d0b0fdb868f6dcd1f5e5c30e42fd5fa0debdc12f7618322",
|
|
226
|
+
ProjectMilestoneStatus: "0xcdef0e492d2e7ad25d0b0fdb868f6dcd1f5e5c30e42fd5fa0debdc12f7618322",
|
|
134
227
|
},
|
|
135
228
|
},
|
|
136
229
|
"base-sepolia": {
|
|
@@ -144,6 +237,7 @@ exports.Networks = {
|
|
|
144
237
|
projectResolver: "0xC891F8eBA218f5034bf3a472528408BE19E1130E",
|
|
145
238
|
communityResolver: "0x009dC7dF3Ea3b23CE80Fd3Ba811d5bA5675934A1",
|
|
146
239
|
donations: "0x61eD6D070EE996698fB35B909e45111402336645",
|
|
240
|
+
airdropNFT: "0xa9c31794385A217832D4C8E200CfA6A8da9c7B32",
|
|
147
241
|
},
|
|
148
242
|
schemas: {
|
|
149
243
|
Community: "0xe130107659909d20cbd75a2c82e1988b09b1c08fd39ad6f4397ce27c089e0e95",
|
|
@@ -156,6 +250,7 @@ exports.Networks = {
|
|
|
156
250
|
GrantUpdateStatus: "0xe9cce07bd9295aafc78faa7afdd88a6fad6fd61834a048fb8c3dbc86cb471f81",
|
|
157
251
|
Project: "0x5ddd6b7a11406771308431ca9bd146cc717848b74b52993a532dc1aad0ccc83f",
|
|
158
252
|
ProjectUpdateStatus: "0xe9cce07bd9295aafc78faa7afdd88a6fad6fd61834a048fb8c3dbc86cb471f81",
|
|
253
|
+
ProjectMilestoneStatus: "0xe9cce07bd9295aafc78faa7afdd88a6fad6fd61834a048fb8c3dbc86cb471f81",
|
|
159
254
|
},
|
|
160
255
|
},
|
|
161
256
|
celo: {
|
|
@@ -169,19 +264,48 @@ exports.Networks = {
|
|
|
169
264
|
projectResolver: "0x6dC1D6b864e8BEf815806f9e4677123496e12026",
|
|
170
265
|
communityResolver: "0xfddb660F2F1C27d219372210745BB9f73431856E",
|
|
171
266
|
donations: "0xf373467c21841DF20529FAA8bE49381106DBc258",
|
|
267
|
+
airdropNFT: "0x884F839fA169B5ECfF5d65CA600C2B43C1F6f668",
|
|
172
268
|
},
|
|
173
269
|
schemas: {
|
|
174
270
|
Community: "0x3c2231024f4f17f3718b5bd9ed9ff29cc323dea5449f9ceba11a9888bfbdd0e1",
|
|
175
271
|
Details: "0x9895e82115987d8e3e02b35ced92e6a0509293890333f58f50ec291b34853dac",
|
|
176
272
|
Grant: "0x7afa603a89cee2d8f93d30007e2c64efddc6509fd76aa95d2ccd97b6e34acc71",
|
|
177
|
-
GrantVerified: "
|
|
273
|
+
GrantVerified: "0x80f0701853e862d920f87e8ae5b359a1625ad417a9523af2ed12bc3504b04088",
|
|
178
274
|
MemberOf: "0xb4186a2401f40a4c78768941ef9140e1fbe5fe595053a65d44f31d6df180b712",
|
|
179
|
-
MilestoneApproved: "
|
|
180
|
-
MilestoneCompleted: "
|
|
181
|
-
GrantUpdateStatus: "
|
|
275
|
+
MilestoneApproved: "0x80f0701853e862d920f87e8ae5b359a1625ad417a9523af2ed12bc3504b04088",
|
|
276
|
+
MilestoneCompleted: "0x80f0701853e862d920f87e8ae5b359a1625ad417a9523af2ed12bc3504b04088",
|
|
277
|
+
GrantUpdateStatus: "0x80f0701853e862d920f87e8ae5b359a1625ad417a9523af2ed12bc3504b04088",
|
|
182
278
|
Project: "0xf3f753b41e04d1052b5a5ec7624d1dfdb6c2da288a985120e477ddbcac071022",
|
|
183
|
-
ProjectUpdateStatus: "
|
|
279
|
+
ProjectUpdateStatus: "0x80f0701853e862d920f87e8ae5b359a1625ad417a9523af2ed12bc3504b04088",
|
|
280
|
+
ProjectMilestoneStatus: "0x80f0701853e862d920f87e8ae5b359a1625ad417a9523af2ed12bc3504b04088",
|
|
184
281
|
},
|
|
282
|
+
oldSchemas: [
|
|
283
|
+
{
|
|
284
|
+
name: "GrantVerified",
|
|
285
|
+
uid: "0xf45fdf2c064073f0623416571c2746085d785cde5a57fd0696ff88bdf78bcbdc",
|
|
286
|
+
raw: oldStatusSchema
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
name: "MilestoneApproved",
|
|
290
|
+
uid: "0xf45fdf2c064073f0623416571c2746085d785cde5a57fd0696ff88bdf78bcbdc",
|
|
291
|
+
raw: oldStatusSchema
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
name: "MilestoneCompleted",
|
|
295
|
+
uid: "0xf45fdf2c064073f0623416571c2746085d785cde5a57fd0696ff88bdf78bcbdc",
|
|
296
|
+
raw: oldStatusSchema
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
name: "GrantUpdateStatus",
|
|
300
|
+
uid: "0xf45fdf2c064073f0623416571c2746085d785cde5a57fd0696ff88bdf78bcbdc",
|
|
301
|
+
raw: oldStatusSchema
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
name: "ProjectUpdateStatus",
|
|
305
|
+
uid: "0xf45fdf2c064073f0623416571c2746085d785cde5a57fd0696ff88bdf78bcbdc",
|
|
306
|
+
raw: oldStatusSchema
|
|
307
|
+
},
|
|
308
|
+
]
|
|
185
309
|
},
|
|
186
310
|
sei: {
|
|
187
311
|
chainId: 1329,
|
|
@@ -194,19 +318,48 @@ exports.Networks = {
|
|
|
194
318
|
projectResolver: "0x96f36F25C6bD648d9bdBbd8C3E029CfB2394754d",
|
|
195
319
|
communityResolver: "0x61d519C99279DC91fC2FC56B177f42B90B35050E",
|
|
196
320
|
donations: "0xB80D85690747C3E2ceCc0f8529594C6602b642D5",
|
|
321
|
+
airdropNFT: "0xfced53EA1b05F0ef10f86757933cbD4A4e6D9c6e",
|
|
197
322
|
},
|
|
198
323
|
schemas: {
|
|
199
324
|
Community: "0x57dee0b7e1aa8e5c6280c27fecf2edeb225f1b87b47e2750f9dc7eaebe57a2ba",
|
|
200
325
|
Details: "0x1b4365b92aa47de3f67cdfb53127518381c1e66e0d9e0f8a15bbfa7250950967",
|
|
201
326
|
Grant: "0xe9030dc574039832103dd5939f9dd214340602d2af4bbf1c8b2666e720ed0bf6",
|
|
202
|
-
GrantVerified: "
|
|
327
|
+
GrantVerified: "0xc3b9bee0be3a6ea92f76fa459922a088824e29798becdc82d81f6b2309442563",
|
|
203
328
|
MemberOf: "0xb7278b94cea2b9f1a8fdd1c4bb52ed66906516a0ff9d59d0f80daffcf147ea5d",
|
|
204
|
-
MilestoneApproved: "
|
|
205
|
-
MilestoneCompleted: "
|
|
206
|
-
GrantUpdateStatus: "
|
|
329
|
+
MilestoneApproved: "0xc3b9bee0be3a6ea92f76fa459922a088824e29798becdc82d81f6b2309442563",
|
|
330
|
+
MilestoneCompleted: "0xc3b9bee0be3a6ea92f76fa459922a088824e29798becdc82d81f6b2309442563",
|
|
331
|
+
GrantUpdateStatus: "0xc3b9bee0be3a6ea92f76fa459922a088824e29798becdc82d81f6b2309442563",
|
|
207
332
|
Project: "0xf6b89107f8096220051240b89a48abb66e0a23e529c914953b80f5a2bc5ea44c",
|
|
208
|
-
ProjectUpdateStatus: "
|
|
333
|
+
ProjectUpdateStatus: "0xc3b9bee0be3a6ea92f76fa459922a088824e29798becdc82d81f6b2309442563",
|
|
334
|
+
ProjectMilestoneStatus: "0xc3b9bee0be3a6ea92f76fa459922a088824e29798becdc82d81f6b2309442563",
|
|
209
335
|
},
|
|
336
|
+
oldSchemas: [
|
|
337
|
+
{
|
|
338
|
+
name: "GrantVerified",
|
|
339
|
+
uid: "0x6edc90af92553109cfed1292a67a75b34e41880bd8a61e9d05db0473b69a2f9e",
|
|
340
|
+
raw: oldStatusSchema
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
name: "MilestoneApproved",
|
|
344
|
+
uid: "0x6edc90af92553109cfed1292a67a75b34e41880bd8a61e9d05db0473b69a2f9e",
|
|
345
|
+
raw: oldStatusSchema
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
name: "MilestoneCompleted",
|
|
349
|
+
uid: "0x6edc90af92553109cfed1292a67a75b34e41880bd8a61e9d05db0473b69a2f9e",
|
|
350
|
+
raw: oldStatusSchema
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
name: "GrantUpdateStatus",
|
|
354
|
+
uid: "0x6edc90af92553109cfed1292a67a75b34e41880bd8a61e9d05db0473b69a2f9e",
|
|
355
|
+
raw: oldStatusSchema
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
name: "ProjectUpdateStatus",
|
|
359
|
+
uid: "0x6edc90af92553109cfed1292a67a75b34e41880bd8a61e9d05db0473b69a2f9e",
|
|
360
|
+
raw: oldStatusSchema
|
|
361
|
+
},
|
|
362
|
+
]
|
|
210
363
|
},
|
|
211
364
|
"sei-testnet": {
|
|
212
365
|
chainId: 1328,
|
|
@@ -219,6 +372,7 @@ exports.Networks = {
|
|
|
219
372
|
projectResolver: "0xdA2c62101851365EEdC5A1f7087d92Ffde7345B4",
|
|
220
373
|
communityResolver: "0x50fb4a65CE924D29b9AC8C508c376a5a21Fda1BC",
|
|
221
374
|
donations: "0xB80D85690747C3E2ceCc0f8529594C6602b642D5",
|
|
375
|
+
airdropNFT: "0x00933B581765d638369cd8A10a4583c275a857A6",
|
|
222
376
|
},
|
|
223
377
|
schemas: {
|
|
224
378
|
Community: "0x968fe3d635bbf22b6253596df6290d1b6da1f192da9e2b5b41ae3595a965dbc2",
|
|
@@ -231,6 +385,7 @@ exports.Networks = {
|
|
|
231
385
|
GrantUpdateStatus: "0xb25551d21dc886be83a07c241c46de318704cb6f485191fdedcf80f4b8b28188",
|
|
232
386
|
Project: "0x9de9294fbb62391b393332a33bfc28b4e0e728dd094aee4bda3955df62f8401a5",
|
|
233
387
|
ProjectUpdateStatus: "0xb25551d21dc886be83a07c241c46de318704cb6f485191fdedcf80f4b8b28188",
|
|
388
|
+
ProjectMilestoneStatus: "0xb25551d21dc886be83a07c241c46de318704cb6f485191fdedcf80f4b8b28188",
|
|
234
389
|
},
|
|
235
390
|
},
|
|
236
391
|
};
|
|
@@ -245,35 +400,41 @@ const MountEntities = (network) => ({
|
|
|
245
400
|
name: "Community",
|
|
246
401
|
schema: [{ type: "bool", name: "community", value: true }],
|
|
247
402
|
uid: network.schemas.Community,
|
|
403
|
+
oldSchemas: network.oldSchemas?.filter(s => s.name === "Community")?.map(s => ({ uid: s.uid, raw: s.raw }))
|
|
248
404
|
},
|
|
249
405
|
CommunityDetails: {
|
|
250
406
|
name: "CommunityDetails",
|
|
251
407
|
schema: DetailsSchema,
|
|
252
408
|
uid: network.schemas.Details,
|
|
253
409
|
references: "Community",
|
|
410
|
+
oldSchemas: network.oldSchemas?.filter(s => s.name === "CommunityDetails")?.map(s => ({ uid: s.uid, raw: s.raw }))
|
|
254
411
|
},
|
|
255
412
|
Project: {
|
|
256
413
|
name: "Project",
|
|
257
414
|
schema: [{ type: "bool", name: "project", value: true }],
|
|
258
415
|
uid: network.schemas.Project,
|
|
416
|
+
oldSchemas: network.oldSchemas?.filter(s => s.name === "Project")?.map(s => ({ uid: s.uid, raw: s.raw }))
|
|
259
417
|
},
|
|
260
418
|
ProjectDetails: {
|
|
261
419
|
name: "ProjectDetails",
|
|
262
420
|
schema: DetailsSchema,
|
|
263
421
|
uid: network.schemas.Details,
|
|
264
422
|
references: "Project",
|
|
423
|
+
oldSchemas: network.oldSchemas?.filter(s => s.name === "ProjectDetails")?.map(s => ({ uid: s.uid, raw: s.raw }))
|
|
265
424
|
},
|
|
266
425
|
MemberOf: {
|
|
267
426
|
name: "MemberOf",
|
|
268
427
|
schema: [{ type: "bool", name: "memberOf", value: true }],
|
|
269
428
|
uid: network.schemas.MemberOf,
|
|
270
429
|
references: "Project",
|
|
430
|
+
oldSchemas: network.oldSchemas?.filter(s => s.name === "MemberOf")?.map(s => ({ uid: s.uid, raw: s.raw }))
|
|
271
431
|
},
|
|
272
432
|
MemberDetails: {
|
|
273
433
|
name: "MemberDetails",
|
|
274
434
|
schema: DetailsSchema,
|
|
275
435
|
uid: network.schemas.Details,
|
|
276
436
|
references: "MemberOf",
|
|
437
|
+
oldSchemas: network.oldSchemas?.filter(s => s.name === "MemberDetails")?.map(s => ({ uid: s.uid, raw: s.raw }))
|
|
277
438
|
},
|
|
278
439
|
Grant: {
|
|
279
440
|
name: "Grant",
|
|
@@ -281,98 +442,111 @@ const MountEntities = (network) => ({
|
|
|
281
442
|
// schema: [{ type: "bool", name: "grant", value: true }],
|
|
282
443
|
uid: network.schemas.Grant,
|
|
283
444
|
references: "Project",
|
|
445
|
+
oldSchemas: network.oldSchemas?.filter(s => s.name === "Grant")?.map(s => ({ uid: s.uid, raw: s.raw }))
|
|
284
446
|
},
|
|
285
447
|
GrantDetails: {
|
|
286
448
|
name: "GrantDetails",
|
|
287
449
|
schema: DetailsSchema,
|
|
288
450
|
uid: network.schemas.Details,
|
|
289
451
|
references: "Grant",
|
|
452
|
+
oldSchemas: network.oldSchemas?.filter(s => s.name === "GrantDetails")?.map(s => ({ uid: s.uid, raw: s.raw }))
|
|
290
453
|
},
|
|
291
454
|
GrantVerified: {
|
|
292
455
|
name: "GrantVerified",
|
|
293
|
-
schema:
|
|
294
|
-
{ type: "string", name: "type", value: null },
|
|
295
|
-
{ type: "string", name: "reason", value: "" },
|
|
296
|
-
],
|
|
456
|
+
schema: DetailsSchema,
|
|
297
457
|
uid: network.schemas.GrantVerified,
|
|
298
458
|
references: "Grant",
|
|
459
|
+
oldSchemas: network.oldSchemas?.filter(s => s.name === "GrantVerified")?.map(s => ({ uid: s.uid, raw: s.raw }))
|
|
299
460
|
},
|
|
300
461
|
Milestone: {
|
|
301
462
|
name: "Milestone",
|
|
302
463
|
schema: DetailsSchema,
|
|
303
464
|
uid: network.schemas.Details,
|
|
304
465
|
references: "Grant",
|
|
466
|
+
oldSchemas: network.oldSchemas?.filter(s => s.name === "Milestone")?.map(s => ({ uid: s.uid, raw: s.raw }))
|
|
305
467
|
},
|
|
306
468
|
MilestoneApproved: {
|
|
307
469
|
name: "MilestoneApproved",
|
|
308
|
-
schema:
|
|
309
|
-
{ type: "string", name: "type", value: null },
|
|
310
|
-
{ type: "string", name: "reason", value: "" },
|
|
311
|
-
],
|
|
470
|
+
schema: DetailsSchema,
|
|
312
471
|
uid: network.schemas.MilestoneApproved,
|
|
313
472
|
references: "Milestone",
|
|
473
|
+
oldSchemas: network.oldSchemas?.filter(s => s.name === "MilestoneApproved")?.map(s => ({ uid: s.uid, raw: s.raw }))
|
|
314
474
|
},
|
|
315
475
|
MilestoneCompleted: {
|
|
316
476
|
name: "MilestoneCompleted",
|
|
317
|
-
schema:
|
|
318
|
-
{ type: "string", name: "type", value: null },
|
|
319
|
-
{ type: "string", name: "reason", value: "" },
|
|
320
|
-
],
|
|
477
|
+
schema: DetailsSchema,
|
|
321
478
|
uid: network.schemas.MilestoneCompleted,
|
|
322
479
|
references: "Milestone",
|
|
480
|
+
oldSchemas: network.oldSchemas?.filter(s => s.name === "MilestoneCompleted")?.map(s => ({ uid: s.uid, raw: s.raw }))
|
|
323
481
|
},
|
|
324
482
|
Details: {
|
|
325
483
|
schema: DetailsSchema,
|
|
326
484
|
name: " schema",
|
|
327
485
|
uid: network.schemas.Details,
|
|
486
|
+
oldSchemas: network.oldSchemas?.filter(s => s.name === "DetailsSchema")?.map(s => ({ uid: s.uid, raw: s.raw }))
|
|
328
487
|
},
|
|
329
488
|
ProjectImpact: {
|
|
330
489
|
name: "ProjectImpact",
|
|
331
490
|
schema: DetailsSchema,
|
|
332
491
|
uid: network.schemas.Details,
|
|
333
492
|
references: "Project",
|
|
493
|
+
oldSchemas: network.oldSchemas?.filter(s => s.name === "ProjectImpact")?.map(s => ({ uid: s.uid, raw: s.raw }))
|
|
334
494
|
},
|
|
335
495
|
GrantUpdate: {
|
|
336
496
|
name: "GrantUpdate",
|
|
337
497
|
schema: DetailsSchema,
|
|
338
498
|
uid: network.schemas.Details,
|
|
339
499
|
references: "Grant",
|
|
500
|
+
oldSchemas: network.oldSchemas?.filter(s => s.name === "GrantUpdate")?.map(s => ({ uid: s.uid, raw: s.raw }))
|
|
340
501
|
},
|
|
341
502
|
GrantUpdateStatus: {
|
|
342
503
|
name: "GrantUpdateStatus",
|
|
343
|
-
schema:
|
|
344
|
-
{ type: "string", name: "type", value: null },
|
|
345
|
-
{ type: "string", name: "reason", value: "" },
|
|
346
|
-
],
|
|
504
|
+
schema: DetailsSchema,
|
|
347
505
|
uid: network.schemas.GrantUpdateStatus,
|
|
348
506
|
references: "GrantUpdate",
|
|
507
|
+
oldSchemas: network.oldSchemas?.filter(s => s.name === "GrantUpdateStatus")?.map(s => ({ uid: s.uid, raw: s.raw }))
|
|
349
508
|
},
|
|
350
509
|
ProjectEndorsement: {
|
|
351
510
|
name: "ProjectEndorsement",
|
|
352
511
|
schema: DetailsSchema,
|
|
353
512
|
uid: network.schemas.Details,
|
|
354
513
|
references: "Project",
|
|
514
|
+
oldSchemas: network.oldSchemas?.filter(s => s.name === "ProjectEndorsement")?.map(s => ({ uid: s.uid, raw: s.raw }))
|
|
355
515
|
},
|
|
356
516
|
ProjectUpdate: {
|
|
357
517
|
name: "ProjectUpdate",
|
|
358
518
|
schema: DetailsSchema,
|
|
359
519
|
uid: network.schemas.Details,
|
|
360
520
|
references: "Project",
|
|
521
|
+
oldSchemas: network.oldSchemas?.filter(s => s.name === "ProjectUpdate")?.map(s => ({ uid: s.uid, raw: s.raw }))
|
|
361
522
|
},
|
|
362
523
|
ProjectUpdateStatus: {
|
|
363
524
|
name: "ProjectUpdateStatus",
|
|
364
|
-
schema:
|
|
365
|
-
{ type: "string", name: "type", value: null },
|
|
366
|
-
{ type: "string", name: "reason", value: "" },
|
|
367
|
-
],
|
|
525
|
+
schema: DetailsSchema,
|
|
368
526
|
uid: network.schemas.ProjectUpdateStatus,
|
|
369
527
|
references: "ProjectUpdate",
|
|
528
|
+
oldSchemas: network.oldSchemas?.filter(s => s.name === "ProjectUpdateStatus")?.map(s => ({ uid: s.uid, raw: s.raw }))
|
|
370
529
|
},
|
|
371
530
|
ProjectPointer: {
|
|
372
531
|
name: "ProjectPointer",
|
|
373
532
|
schema: DetailsSchema,
|
|
374
533
|
uid: network.schemas.Details,
|
|
375
534
|
references: "Project",
|
|
535
|
+
oldSchemas: network.oldSchemas?.filter(s => s.name === "ProjectPointer")?.map(s => ({ uid: s.uid, raw: s.raw }))
|
|
536
|
+
},
|
|
537
|
+
ProjectMilestone: {
|
|
538
|
+
name: "ProjectMilestone",
|
|
539
|
+
schema: DetailsSchema,
|
|
540
|
+
uid: network.schemas.Details,
|
|
541
|
+
references: "Project",
|
|
542
|
+
oldSchemas: network.oldSchemas?.filter(s => s.name === "ProjectMilestone")?.map(s => ({ uid: s.uid, raw: s.raw }))
|
|
543
|
+
},
|
|
544
|
+
ProjectMilestoneStatus: {
|
|
545
|
+
name: "ProjectMilestoneStatus",
|
|
546
|
+
schema: DetailsSchema,
|
|
547
|
+
uid: network.schemas.ProjectUpdateStatus,
|
|
548
|
+
references: "ProjectMilestone",
|
|
549
|
+
oldSchemas: network.oldSchemas?.filter(s => s.name === "ProjectMilestoneStatus")?.map(s => ({ uid: s.uid, raw: s.raw }))
|
|
376
550
|
},
|
|
377
551
|
});
|
|
378
552
|
exports.MountEntities = MountEntities;
|
package/core/index.d.ts
CHANGED
package/core/index.js
CHANGED
package/core/types.d.ts
CHANGED
|
@@ -10,6 +10,10 @@ export interface SchemaInterface<T extends string = string> {
|
|
|
10
10
|
references?: T;
|
|
11
11
|
uid: Hex;
|
|
12
12
|
revocable?: boolean;
|
|
13
|
+
oldSchemas?: {
|
|
14
|
+
uid: string;
|
|
15
|
+
raw: SchemaItem[];
|
|
16
|
+
}[];
|
|
13
17
|
}
|
|
14
18
|
export interface MultiRevokeArgs {
|
|
15
19
|
uid: Hex;
|
|
@@ -23,8 +27,8 @@ export interface AttestArgs<T = unknown> {
|
|
|
23
27
|
signer: SignerOrProvider;
|
|
24
28
|
callback?: (status: CallbackStatus) => void;
|
|
25
29
|
}
|
|
26
|
-
export type TSchemaName = "Community" | "CommunityDetails" | "Grant" | "GrantDetails" | "GrantVerified" | "MemberOf" | "MemberDetails" | "Milestone" | "MilestoneCompleted" | "MilestoneApproved" | "Project" | "ProjectDetails" | "Details" | "ProjectImpact" | "ProjectUpdate" | "ProjectUpdateStatus" | "ProjectPointer" | "GrantUpdate" | "GrantUpdateStatus" | "ProjectEndorsement";
|
|
27
|
-
export type TResolvedSchemaNames = "Community" | "Grant" | "GrantVerified" | "MemberOf" | "MilestoneCompleted" | "MilestoneApproved" | "Project" | "Details" | "ProjectUpdateStatus" | "GrantUpdateStatus" | "ProjectUpdateStatus";
|
|
30
|
+
export type TSchemaName = "Community" | "CommunityDetails" | "Grant" | "GrantDetails" | "GrantVerified" | "MemberOf" | "MemberDetails" | "Milestone" | "MilestoneCompleted" | "MilestoneApproved" | "Project" | "ProjectDetails" | "Details" | "ProjectImpact" | "ProjectUpdate" | "ProjectUpdateStatus" | "ProjectPointer" | "GrantUpdate" | "GrantUpdateStatus" | "ProjectEndorsement" | "ProjectMilestone" | "ProjectMilestoneStatus";
|
|
31
|
+
export type TResolvedSchemaNames = "Community" | "Grant" | "GrantVerified" | "MemberOf" | "MilestoneCompleted" | "MilestoneApproved" | "Project" | "Details" | "ProjectUpdateStatus" | "GrantUpdateStatus" | "ProjectUpdateStatus" | "ProjectMilestoneStatus";
|
|
28
32
|
export type TExternalLink = "twitter" | "github" | "website" | "linkedin" | "discord";
|
|
29
33
|
export type TNetwork = "optimism" | "celo" | "optimism-sepolia" | "arbitrum" | "sepolia" | "sei" | "sei-testnet" | "base-sepolia";
|
|
30
34
|
/**
|
|
@@ -66,11 +70,17 @@ export interface EASNetworkConfig {
|
|
|
66
70
|
projectResolver: Hex;
|
|
67
71
|
communityResolver: Hex;
|
|
68
72
|
donations: Hex;
|
|
73
|
+
airdropNFT: Hex;
|
|
69
74
|
};
|
|
70
75
|
/**
|
|
71
76
|
* A tuple containing the schema name and it's UID for that network
|
|
72
77
|
*/
|
|
73
78
|
schemas: Record<TResolvedSchemaNames, Hex>;
|
|
79
|
+
oldSchemas?: {
|
|
80
|
+
name: string;
|
|
81
|
+
uid: string;
|
|
82
|
+
raw: SchemaItem[];
|
|
83
|
+
}[];
|
|
74
84
|
}
|
|
75
85
|
export type IGapSchema = SchemaInterface<TSchemaName>;
|
|
76
86
|
export type JSONStr = string;
|