@ayanworks/polygon-did-registry-contract 2.0.1-alpha.3 → 2.0.1-alpha.4
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/.env.sample +3 -1
- package/.github/workflows/pipeline.yaml +2 -2
- package/.openzeppelin/unknown-80002.json +325 -0
- package/artifacts/Migrations.json +1 -1
- package/artifacts/PolygonDidRegistry.json +1 -1
- package/build/artifacts/PolygonDidRegistry.json +1 -1
- package/contracts/PolygonDidRegistry.sol +36 -26
- package/hardhat.config.js +13 -2
- package/package.json +4 -3
- package/scripts/deploy.js +10 -10
- package/sst-config.json +1 -1
- package/tests/polygon_did_registry_test.test.js +117 -0
- package/tests/polygon_did_registry_test.js +0 -393
package/.env.sample
CHANGED
|
@@ -35,7 +35,7 @@ jobs:
|
|
|
35
35
|
|
|
36
36
|
- uses: pnpm/action-setup@v2
|
|
37
37
|
with:
|
|
38
|
-
version:
|
|
38
|
+
version: 9.0.1
|
|
39
39
|
|
|
40
40
|
- name: Install dependencies
|
|
41
41
|
run: pnpm install
|
|
@@ -57,7 +57,7 @@ jobs:
|
|
|
57
57
|
|
|
58
58
|
- uses: pnpm/action-setup@v2
|
|
59
59
|
with:
|
|
60
|
-
version:
|
|
60
|
+
version: 9.0.1
|
|
61
61
|
|
|
62
62
|
- name: Install dependencies
|
|
63
63
|
run: pnpm install
|
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
{
|
|
2
|
+
"manifestVersion": "3.2",
|
|
3
|
+
"proxies": [
|
|
4
|
+
{
|
|
5
|
+
"address": "0xc087766218b885C6283072BA316a2Bc31B5c17db",
|
|
6
|
+
"txHash": "0x731adaa41dca5f67d91962c0d2ca905b4ddb325f0726fb0fb8677d43456f54b2",
|
|
7
|
+
"kind": "transparent"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"address": "0xC1c392DC1073a86821B4ae37f1F0faCDcFFf45bF",
|
|
11
|
+
"txHash": "0x82f79c38e7d6c943e76deb166a87515c32441708443abf1b410944fcb848a448",
|
|
12
|
+
"kind": "transparent"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"impls": {
|
|
16
|
+
"dadc513cd81ce3e765b05219a9f956799b5405d497cd25e1342ce5b4b08463df": {
|
|
17
|
+
"address": "0x7DcCBBaEcAED517AB8c283C70774676D4479c7C4",
|
|
18
|
+
"txHash": "0x95b06c40580baf441c23699fe4ebdefcb5916b4886e4e9846a0032fa8d6066d9",
|
|
19
|
+
"layout": {
|
|
20
|
+
"solcVersion": "0.8.16",
|
|
21
|
+
"storage": [
|
|
22
|
+
{
|
|
23
|
+
"label": "totalDIDs",
|
|
24
|
+
"offset": 0,
|
|
25
|
+
"slot": "0",
|
|
26
|
+
"type": "t_uint256",
|
|
27
|
+
"contract": "PolygonDidRegistry",
|
|
28
|
+
"src": "contracts/PolygonDidRegistry.sol:9"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"label": "owner",
|
|
32
|
+
"offset": 0,
|
|
33
|
+
"slot": "1",
|
|
34
|
+
"type": "t_address",
|
|
35
|
+
"contract": "PolygonDidRegistry",
|
|
36
|
+
"src": "contracts/PolygonDidRegistry.sol:10"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"label": "polyDIDs",
|
|
40
|
+
"offset": 0,
|
|
41
|
+
"slot": "2",
|
|
42
|
+
"type": "t_mapping(t_address,t_struct(PolyDID)48_storage)",
|
|
43
|
+
"contract": "PolygonDidRegistry",
|
|
44
|
+
"src": "contracts/PolygonDidRegistry.sol:25"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"label": "activeDIDs",
|
|
48
|
+
"offset": 0,
|
|
49
|
+
"slot": "3",
|
|
50
|
+
"type": "t_mapping(t_uint256,t_address)",
|
|
51
|
+
"contract": "PolygonDidRegistry",
|
|
52
|
+
"src": "contracts/PolygonDidRegistry.sol:26"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"label": "activeAddress",
|
|
56
|
+
"offset": 0,
|
|
57
|
+
"slot": "4",
|
|
58
|
+
"type": "t_mapping(t_address,t_uint256)",
|
|
59
|
+
"contract": "PolygonDidRegistry",
|
|
60
|
+
"src": "contracts/PolygonDidRegistry.sol:27"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"label": "resourceData",
|
|
64
|
+
"offset": 0,
|
|
65
|
+
"slot": "5",
|
|
66
|
+
"type": "t_mapping(t_address,t_mapping(t_string_memory_ptr,t_string_storage))",
|
|
67
|
+
"contract": "PolygonDidRegistry",
|
|
68
|
+
"src": "contracts/PolygonDidRegistry.sol:28"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"label": "keysById",
|
|
72
|
+
"offset": 0,
|
|
73
|
+
"slot": "6",
|
|
74
|
+
"type": "t_mapping(t_address,t_array(t_string_storage)dyn_storage)",
|
|
75
|
+
"contract": "PolygonDidRegistry",
|
|
76
|
+
"src": "contracts/PolygonDidRegistry.sol:29"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"label": "initialized",
|
|
80
|
+
"offset": 0,
|
|
81
|
+
"slot": "7",
|
|
82
|
+
"type": "t_bool",
|
|
83
|
+
"contract": "PolygonDidRegistry",
|
|
84
|
+
"src": "contracts/PolygonDidRegistry.sol:35"
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"types": {
|
|
88
|
+
"t_address": {
|
|
89
|
+
"label": "address",
|
|
90
|
+
"numberOfBytes": "20"
|
|
91
|
+
},
|
|
92
|
+
"t_array(t_string_storage)dyn_storage": {
|
|
93
|
+
"label": "string[]",
|
|
94
|
+
"numberOfBytes": "32"
|
|
95
|
+
},
|
|
96
|
+
"t_bool": {
|
|
97
|
+
"label": "bool",
|
|
98
|
+
"numberOfBytes": "1"
|
|
99
|
+
},
|
|
100
|
+
"t_mapping(t_address,t_array(t_string_storage)dyn_storage)": {
|
|
101
|
+
"label": "mapping(address => string[])",
|
|
102
|
+
"numberOfBytes": "32"
|
|
103
|
+
},
|
|
104
|
+
"t_mapping(t_address,t_mapping(t_string_memory_ptr,t_string_storage))": {
|
|
105
|
+
"label": "mapping(address => mapping(string => string))",
|
|
106
|
+
"numberOfBytes": "32"
|
|
107
|
+
},
|
|
108
|
+
"t_mapping(t_address,t_struct(PolyDID)48_storage)": {
|
|
109
|
+
"label": "mapping(address => struct PolygonDidRegistry.PolyDID)",
|
|
110
|
+
"numberOfBytes": "32"
|
|
111
|
+
},
|
|
112
|
+
"t_mapping(t_address,t_uint256)": {
|
|
113
|
+
"label": "mapping(address => uint256)",
|
|
114
|
+
"numberOfBytes": "32"
|
|
115
|
+
},
|
|
116
|
+
"t_mapping(t_string_memory_ptr,t_string_storage)": {
|
|
117
|
+
"label": "mapping(string => string)",
|
|
118
|
+
"numberOfBytes": "32"
|
|
119
|
+
},
|
|
120
|
+
"t_mapping(t_uint256,t_address)": {
|
|
121
|
+
"label": "mapping(uint256 => address)",
|
|
122
|
+
"numberOfBytes": "32"
|
|
123
|
+
},
|
|
124
|
+
"t_string_memory_ptr": {
|
|
125
|
+
"label": "string",
|
|
126
|
+
"numberOfBytes": "32"
|
|
127
|
+
},
|
|
128
|
+
"t_string_storage": {
|
|
129
|
+
"label": "string",
|
|
130
|
+
"numberOfBytes": "32"
|
|
131
|
+
},
|
|
132
|
+
"t_struct(PolyDID)48_storage": {
|
|
133
|
+
"label": "struct PolygonDidRegistry.PolyDID",
|
|
134
|
+
"members": [
|
|
135
|
+
{
|
|
136
|
+
"label": "controller",
|
|
137
|
+
"type": "t_address",
|
|
138
|
+
"offset": 0,
|
|
139
|
+
"slot": "0"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"label": "created",
|
|
143
|
+
"type": "t_uint256",
|
|
144
|
+
"offset": 0,
|
|
145
|
+
"slot": "1"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"label": "updated",
|
|
149
|
+
"type": "t_uint256",
|
|
150
|
+
"offset": 0,
|
|
151
|
+
"slot": "2"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"label": "didDoc",
|
|
155
|
+
"type": "t_string_storage",
|
|
156
|
+
"offset": 0,
|
|
157
|
+
"slot": "3"
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
"numberOfBytes": "128"
|
|
161
|
+
},
|
|
162
|
+
"t_uint256": {
|
|
163
|
+
"label": "uint256",
|
|
164
|
+
"numberOfBytes": "32"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"namespaces": {}
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"c303544cc3632546a76b656533d155e9d46213d28204aec1815e9ce2006085c9": {
|
|
171
|
+
"address": "0x1c10e4CF0a8914cf2E632D2762085D8C61dB4cCb",
|
|
172
|
+
"txHash": "0x07b8b1055c4d182e564f941e6c255cf473ca91920131a254f1e00d2aeec9721c",
|
|
173
|
+
"layout": {
|
|
174
|
+
"solcVersion": "0.8.16",
|
|
175
|
+
"storage": [
|
|
176
|
+
{
|
|
177
|
+
"label": "totalDIDs",
|
|
178
|
+
"offset": 0,
|
|
179
|
+
"slot": "0",
|
|
180
|
+
"type": "t_uint256",
|
|
181
|
+
"contract": "PolygonDidRegistry",
|
|
182
|
+
"src": "contracts/PolygonDidRegistry.sol:9"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"label": "owner",
|
|
186
|
+
"offset": 0,
|
|
187
|
+
"slot": "1",
|
|
188
|
+
"type": "t_address",
|
|
189
|
+
"contract": "PolygonDidRegistry",
|
|
190
|
+
"src": "contracts/PolygonDidRegistry.sol:10"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"label": "polyDIDs",
|
|
194
|
+
"offset": 0,
|
|
195
|
+
"slot": "2",
|
|
196
|
+
"type": "t_mapping(t_address,t_struct(PolyDID)15_storage)",
|
|
197
|
+
"contract": "PolygonDidRegistry",
|
|
198
|
+
"src": "contracts/PolygonDidRegistry.sol:18"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"label": "activeDIDs",
|
|
202
|
+
"offset": 0,
|
|
203
|
+
"slot": "3",
|
|
204
|
+
"type": "t_mapping(t_uint256,t_address)",
|
|
205
|
+
"contract": "PolygonDidRegistry",
|
|
206
|
+
"src": "contracts/PolygonDidRegistry.sol:19"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"label": "activeAddress",
|
|
210
|
+
"offset": 0,
|
|
211
|
+
"slot": "4",
|
|
212
|
+
"type": "t_mapping(t_address,t_uint256)",
|
|
213
|
+
"contract": "PolygonDidRegistry",
|
|
214
|
+
"src": "contracts/PolygonDidRegistry.sol:20"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"label": "resourceData",
|
|
218
|
+
"offset": 0,
|
|
219
|
+
"slot": "5",
|
|
220
|
+
"type": "t_mapping(t_address,t_mapping(t_string_memory_ptr,t_string_storage))",
|
|
221
|
+
"contract": "PolygonDidRegistry",
|
|
222
|
+
"src": "contracts/PolygonDidRegistry.sol:21"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"label": "keysById",
|
|
226
|
+
"offset": 0,
|
|
227
|
+
"slot": "6",
|
|
228
|
+
"type": "t_mapping(t_address,t_array(t_string_storage)dyn_storage)",
|
|
229
|
+
"contract": "PolygonDidRegistry",
|
|
230
|
+
"src": "contracts/PolygonDidRegistry.sol:22"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"label": "initialized",
|
|
234
|
+
"offset": 0,
|
|
235
|
+
"slot": "7",
|
|
236
|
+
"type": "t_bool",
|
|
237
|
+
"contract": "PolygonDidRegistry",
|
|
238
|
+
"src": "contracts/PolygonDidRegistry.sol:32"
|
|
239
|
+
}
|
|
240
|
+
],
|
|
241
|
+
"types": {
|
|
242
|
+
"t_address": {
|
|
243
|
+
"label": "address",
|
|
244
|
+
"numberOfBytes": "20"
|
|
245
|
+
},
|
|
246
|
+
"t_array(t_string_storage)dyn_storage": {
|
|
247
|
+
"label": "string[]",
|
|
248
|
+
"numberOfBytes": "32"
|
|
249
|
+
},
|
|
250
|
+
"t_bool": {
|
|
251
|
+
"label": "bool",
|
|
252
|
+
"numberOfBytes": "1"
|
|
253
|
+
},
|
|
254
|
+
"t_mapping(t_address,t_array(t_string_storage)dyn_storage)": {
|
|
255
|
+
"label": "mapping(address => string[])",
|
|
256
|
+
"numberOfBytes": "32"
|
|
257
|
+
},
|
|
258
|
+
"t_mapping(t_address,t_mapping(t_string_memory_ptr,t_string_storage))": {
|
|
259
|
+
"label": "mapping(address => mapping(string => string))",
|
|
260
|
+
"numberOfBytes": "32"
|
|
261
|
+
},
|
|
262
|
+
"t_mapping(t_address,t_struct(PolyDID)15_storage)": {
|
|
263
|
+
"label": "mapping(address => struct PolygonDidRegistry.PolyDID)",
|
|
264
|
+
"numberOfBytes": "32"
|
|
265
|
+
},
|
|
266
|
+
"t_mapping(t_address,t_uint256)": {
|
|
267
|
+
"label": "mapping(address => uint256)",
|
|
268
|
+
"numberOfBytes": "32"
|
|
269
|
+
},
|
|
270
|
+
"t_mapping(t_string_memory_ptr,t_string_storage)": {
|
|
271
|
+
"label": "mapping(string => string)",
|
|
272
|
+
"numberOfBytes": "32"
|
|
273
|
+
},
|
|
274
|
+
"t_mapping(t_uint256,t_address)": {
|
|
275
|
+
"label": "mapping(uint256 => address)",
|
|
276
|
+
"numberOfBytes": "32"
|
|
277
|
+
},
|
|
278
|
+
"t_string_memory_ptr": {
|
|
279
|
+
"label": "string",
|
|
280
|
+
"numberOfBytes": "32"
|
|
281
|
+
},
|
|
282
|
+
"t_string_storage": {
|
|
283
|
+
"label": "string",
|
|
284
|
+
"numberOfBytes": "32"
|
|
285
|
+
},
|
|
286
|
+
"t_struct(PolyDID)15_storage": {
|
|
287
|
+
"label": "struct PolygonDidRegistry.PolyDID",
|
|
288
|
+
"members": [
|
|
289
|
+
{
|
|
290
|
+
"label": "controller",
|
|
291
|
+
"type": "t_address",
|
|
292
|
+
"offset": 0,
|
|
293
|
+
"slot": "0"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"label": "created",
|
|
297
|
+
"type": "t_uint256",
|
|
298
|
+
"offset": 0,
|
|
299
|
+
"slot": "1"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"label": "updated",
|
|
303
|
+
"type": "t_uint256",
|
|
304
|
+
"offset": 0,
|
|
305
|
+
"slot": "2"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"label": "didDoc",
|
|
309
|
+
"type": "t_string_storage",
|
|
310
|
+
"offset": 0,
|
|
311
|
+
"slot": "3"
|
|
312
|
+
}
|
|
313
|
+
],
|
|
314
|
+
"numberOfBytes": "128"
|
|
315
|
+
},
|
|
316
|
+
"t_uint256": {
|
|
317
|
+
"label": "uint256",
|
|
318
|
+
"numberOfBytes": "32"
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
"namespaces": {}
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|