@opendatalabs/vana-sdk 3.19.1 → 3.20.1
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/README.md +49 -0
- package/dist/config/contracts.config.cjs +8 -3
- package/dist/config/contracts.config.cjs.map +1 -1
- package/dist/config/contracts.config.js +8 -3
- package/dist/config/contracts.config.js.map +1 -1
- package/dist/direct/controller.cjs +3 -2
- package/dist/direct/controller.cjs.map +1 -1
- package/dist/direct/controller.d.ts +19 -2
- package/dist/direct/controller.js +3 -2
- package/dist/direct/controller.js.map +1 -1
- package/dist/generated/abi/DataPortabilityPermissionsImplementation.cjs +146 -512
- package/dist/generated/abi/DataPortabilityPermissionsImplementation.cjs.map +1 -1
- package/dist/generated/abi/DataPortabilityPermissionsImplementation.d.ts +136 -412
- package/dist/generated/abi/DataPortabilityPermissionsImplementation.js +146 -512
- package/dist/generated/abi/DataPortabilityPermissionsImplementation.js.map +1 -1
- package/dist/generated/abi/DataPortabilityServersImplementation.cjs +391 -654
- package/dist/generated/abi/DataPortabilityServersImplementation.cjs.map +1 -1
- package/dist/generated/abi/DataPortabilityServersImplementation.d.ts +302 -505
- package/dist/generated/abi/DataPortabilityServersImplementation.js +391 -654
- package/dist/generated/abi/DataPortabilityServersImplementation.js.map +1 -1
- package/dist/generated/abi/index.d.ts +433 -912
- package/dist/generated/addresses.cjs +8 -8
- package/dist/generated/addresses.cjs.map +1 -1
- package/dist/generated/addresses.d.ts +8 -8
- package/dist/generated/addresses.js +8 -8
- package/dist/generated/addresses.js.map +1 -1
- package/dist/index.browser.js +556 -1185
- package/dist/index.browser.js.map +2 -2
- package/dist/index.node.cjs +556 -1185
- package/dist/index.node.cjs.map +2 -2
- package/dist/index.node.js +556 -1185
- package/dist/index.node.js.map +2 -2
- package/dist/server.cjs +28 -2
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.ts +2 -0
- package/dist/server.js +29 -1
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
|
@@ -105,7 +105,7 @@ const DataPortabilityPermissionsABI = [
|
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
107
|
inputs: [],
|
|
108
|
-
name: "
|
|
108
|
+
name: "EmptyScopes",
|
|
109
109
|
type: "error"
|
|
110
110
|
},
|
|
111
111
|
{
|
|
@@ -123,73 +123,41 @@ const DataPortabilityPermissionsABI = [
|
|
|
123
123
|
name: "FailedInnerCall",
|
|
124
124
|
type: "error"
|
|
125
125
|
},
|
|
126
|
-
{
|
|
127
|
-
inputs: [],
|
|
128
|
-
name: "GranteeNotFound",
|
|
129
|
-
type: "error"
|
|
130
|
-
},
|
|
131
126
|
{
|
|
132
127
|
inputs: [
|
|
133
128
|
{
|
|
134
|
-
internalType: "
|
|
135
|
-
name: "
|
|
136
|
-
type: "
|
|
137
|
-
}
|
|
138
|
-
],
|
|
139
|
-
name: "InactivePermission",
|
|
140
|
-
type: "error"
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
inputs: [],
|
|
144
|
-
name: "InvalidInitialization",
|
|
145
|
-
type: "error"
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
inputs: [
|
|
149
|
-
{
|
|
150
|
-
internalType: "uint256",
|
|
151
|
-
name: "expectedNonce",
|
|
152
|
-
type: "uint256"
|
|
129
|
+
internalType: "address",
|
|
130
|
+
name: "claimed",
|
|
131
|
+
type: "address"
|
|
153
132
|
},
|
|
154
133
|
{
|
|
155
|
-
internalType: "
|
|
156
|
-
name: "
|
|
157
|
-
type: "
|
|
134
|
+
internalType: "address",
|
|
135
|
+
name: "actual",
|
|
136
|
+
type: "address"
|
|
158
137
|
}
|
|
159
138
|
],
|
|
160
|
-
name: "
|
|
139
|
+
name: "GrantorMismatch",
|
|
161
140
|
type: "error"
|
|
162
141
|
},
|
|
163
142
|
{
|
|
164
143
|
inputs: [
|
|
165
144
|
{
|
|
166
145
|
internalType: "uint256",
|
|
167
|
-
name: "
|
|
146
|
+
name: "currentVersion",
|
|
168
147
|
type: "uint256"
|
|
169
148
|
},
|
|
170
149
|
{
|
|
171
150
|
internalType: "uint256",
|
|
172
|
-
name: "
|
|
151
|
+
name: "providedVersion",
|
|
173
152
|
type: "uint256"
|
|
174
153
|
}
|
|
175
154
|
],
|
|
176
|
-
name: "
|
|
155
|
+
name: "InvalidGrantVersion",
|
|
177
156
|
type: "error"
|
|
178
157
|
},
|
|
179
158
|
{
|
|
180
|
-
inputs: [
|
|
181
|
-
|
|
182
|
-
internalType: "uint256",
|
|
183
|
-
name: "filesLength",
|
|
184
|
-
type: "uint256"
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
internalType: "uint256",
|
|
188
|
-
name: "schemaIdsLength",
|
|
189
|
-
type: "uint256"
|
|
190
|
-
}
|
|
191
|
-
],
|
|
192
|
-
name: "InvalidSchemaIdsLength",
|
|
159
|
+
inputs: [],
|
|
160
|
+
name: "InvalidInitialization",
|
|
193
161
|
type: "error"
|
|
194
162
|
},
|
|
195
163
|
{
|
|
@@ -197,43 +165,11 @@ const DataPortabilityPermissionsABI = [
|
|
|
197
165
|
name: "InvalidSignature",
|
|
198
166
|
type: "error"
|
|
199
167
|
},
|
|
200
|
-
{
|
|
201
|
-
inputs: [
|
|
202
|
-
{
|
|
203
|
-
internalType: "address",
|
|
204
|
-
name: "fileOwner",
|
|
205
|
-
type: "address"
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
internalType: "address",
|
|
209
|
-
name: "requestor",
|
|
210
|
-
type: "address"
|
|
211
|
-
}
|
|
212
|
-
],
|
|
213
|
-
name: "NotFileOwner",
|
|
214
|
-
type: "error"
|
|
215
|
-
},
|
|
216
168
|
{
|
|
217
169
|
inputs: [],
|
|
218
170
|
name: "NotInitializing",
|
|
219
171
|
type: "error"
|
|
220
172
|
},
|
|
221
|
-
{
|
|
222
|
-
inputs: [
|
|
223
|
-
{
|
|
224
|
-
internalType: "address",
|
|
225
|
-
name: "permissionOwner",
|
|
226
|
-
type: "address"
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
internalType: "address",
|
|
230
|
-
name: "requestor",
|
|
231
|
-
type: "address"
|
|
232
|
-
}
|
|
233
|
-
],
|
|
234
|
-
name: "NotPermissionGrantor",
|
|
235
|
-
type: "error"
|
|
236
|
-
},
|
|
237
173
|
{
|
|
238
174
|
inputs: [],
|
|
239
175
|
name: "UUPSUnauthorizedCallContext",
|
|
@@ -255,6 +191,30 @@ const DataPortabilityPermissionsABI = [
|
|
|
255
191
|
name: "ZeroAddress",
|
|
256
192
|
type: "error"
|
|
257
193
|
},
|
|
194
|
+
{
|
|
195
|
+
inputs: [],
|
|
196
|
+
name: "ZeroGranteeId",
|
|
197
|
+
type: "error"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
anonymous: false,
|
|
201
|
+
inputs: [
|
|
202
|
+
{
|
|
203
|
+
indexed: true,
|
|
204
|
+
internalType: "address",
|
|
205
|
+
name: "previous",
|
|
206
|
+
type: "address"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
indexed: true,
|
|
210
|
+
internalType: "address",
|
|
211
|
+
name: "current",
|
|
212
|
+
type: "address"
|
|
213
|
+
}
|
|
214
|
+
],
|
|
215
|
+
name: "DataPortabilityServersUpdated",
|
|
216
|
+
type: "event"
|
|
217
|
+
},
|
|
258
218
|
{
|
|
259
219
|
anonymous: false,
|
|
260
220
|
inputs: [],
|
|
@@ -292,36 +252,42 @@ const DataPortabilityPermissionsABI = [
|
|
|
292
252
|
inputs: [
|
|
293
253
|
{
|
|
294
254
|
indexed: true,
|
|
295
|
-
internalType: "
|
|
296
|
-
name: "
|
|
297
|
-
type: "
|
|
255
|
+
internalType: "bytes32",
|
|
256
|
+
name: "id",
|
|
257
|
+
type: "bytes32"
|
|
298
258
|
},
|
|
299
259
|
{
|
|
300
260
|
indexed: true,
|
|
301
261
|
internalType: "address",
|
|
302
|
-
name: "
|
|
262
|
+
name: "grantorAddress",
|
|
303
263
|
type: "address"
|
|
304
264
|
},
|
|
305
265
|
{
|
|
306
266
|
indexed: true,
|
|
307
|
-
internalType: "
|
|
267
|
+
internalType: "bytes32",
|
|
308
268
|
name: "granteeId",
|
|
309
|
-
type: "
|
|
269
|
+
type: "bytes32"
|
|
310
270
|
},
|
|
311
271
|
{
|
|
312
272
|
indexed: false,
|
|
313
|
-
internalType: "string",
|
|
314
|
-
name: "
|
|
315
|
-
type: "string"
|
|
273
|
+
internalType: "string[]",
|
|
274
|
+
name: "scopes",
|
|
275
|
+
type: "string[]"
|
|
316
276
|
},
|
|
317
277
|
{
|
|
318
278
|
indexed: false,
|
|
319
|
-
internalType: "uint256
|
|
320
|
-
name: "
|
|
321
|
-
type: "uint256
|
|
279
|
+
internalType: "uint256",
|
|
280
|
+
name: "grantVersion",
|
|
281
|
+
type: "uint256"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
indexed: false,
|
|
285
|
+
internalType: "uint256",
|
|
286
|
+
name: "expiresAt",
|
|
287
|
+
type: "uint256"
|
|
322
288
|
}
|
|
323
289
|
],
|
|
324
|
-
name: "
|
|
290
|
+
name: "PermissionSet",
|
|
325
291
|
type: "event"
|
|
326
292
|
},
|
|
327
293
|
{
|
|
@@ -329,12 +295,24 @@ const DataPortabilityPermissionsABI = [
|
|
|
329
295
|
inputs: [
|
|
330
296
|
{
|
|
331
297
|
indexed: true,
|
|
332
|
-
internalType: "
|
|
333
|
-
name: "
|
|
334
|
-
type: "
|
|
298
|
+
internalType: "bytes32",
|
|
299
|
+
name: "id",
|
|
300
|
+
type: "bytes32"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
indexed: true,
|
|
304
|
+
internalType: "address",
|
|
305
|
+
name: "grantorAddress",
|
|
306
|
+
type: "address"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
indexed: true,
|
|
310
|
+
internalType: "address",
|
|
311
|
+
name: "delegate",
|
|
312
|
+
type: "address"
|
|
335
313
|
}
|
|
336
314
|
],
|
|
337
|
-
name: "
|
|
315
|
+
name: "PermissionSignedByDelegate",
|
|
338
316
|
type: "event"
|
|
339
317
|
},
|
|
340
318
|
{
|
|
@@ -453,7 +431,7 @@ const DataPortabilityPermissionsABI = [
|
|
|
453
431
|
},
|
|
454
432
|
{
|
|
455
433
|
inputs: [],
|
|
456
|
-
name: "
|
|
434
|
+
name: "GRANT_REGISTRATION_TYPEHASH",
|
|
457
435
|
outputs: [
|
|
458
436
|
{
|
|
459
437
|
internalType: "bytes32",
|
|
@@ -482,42 +460,42 @@ const DataPortabilityPermissionsABI = [
|
|
|
482
460
|
{
|
|
483
461
|
components: [
|
|
484
462
|
{
|
|
485
|
-
internalType: "
|
|
486
|
-
name: "
|
|
487
|
-
type: "
|
|
463
|
+
internalType: "address",
|
|
464
|
+
name: "grantorAddress",
|
|
465
|
+
type: "address"
|
|
488
466
|
},
|
|
489
467
|
{
|
|
490
|
-
internalType: "
|
|
468
|
+
internalType: "bytes32",
|
|
491
469
|
name: "granteeId",
|
|
492
|
-
type: "
|
|
470
|
+
type: "bytes32"
|
|
493
471
|
},
|
|
494
472
|
{
|
|
495
|
-
internalType: "string",
|
|
496
|
-
name: "
|
|
497
|
-
type: "string"
|
|
473
|
+
internalType: "string[]",
|
|
474
|
+
name: "scopes",
|
|
475
|
+
type: "string[]"
|
|
498
476
|
},
|
|
499
477
|
{
|
|
500
|
-
internalType: "uint256
|
|
501
|
-
name: "
|
|
502
|
-
type: "uint256
|
|
478
|
+
internalType: "uint256",
|
|
479
|
+
name: "grantVersion",
|
|
480
|
+
type: "uint256"
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
internalType: "uint256",
|
|
484
|
+
name: "expiresAt",
|
|
485
|
+
type: "uint256"
|
|
503
486
|
}
|
|
504
487
|
],
|
|
505
|
-
internalType: "struct
|
|
506
|
-
name: "
|
|
488
|
+
internalType: "struct IDataPortabilityPermissionsV2.AddPermissionInput",
|
|
489
|
+
name: "input",
|
|
507
490
|
type: "tuple"
|
|
508
|
-
},
|
|
509
|
-
{
|
|
510
|
-
internalType: "bytes",
|
|
511
|
-
name: "signature",
|
|
512
|
-
type: "bytes"
|
|
513
491
|
}
|
|
514
492
|
],
|
|
515
493
|
name: "addPermission",
|
|
516
494
|
outputs: [
|
|
517
495
|
{
|
|
518
|
-
internalType: "
|
|
496
|
+
internalType: "bytes32",
|
|
519
497
|
name: "",
|
|
520
|
-
type: "
|
|
498
|
+
type: "bytes32"
|
|
521
499
|
}
|
|
522
500
|
],
|
|
523
501
|
stateMutability: "nonpayable",
|
|
@@ -528,65 +506,33 @@ const DataPortabilityPermissionsABI = [
|
|
|
528
506
|
{
|
|
529
507
|
components: [
|
|
530
508
|
{
|
|
531
|
-
internalType: "
|
|
532
|
-
name: "
|
|
533
|
-
type: "
|
|
509
|
+
internalType: "address",
|
|
510
|
+
name: "grantorAddress",
|
|
511
|
+
type: "address"
|
|
534
512
|
},
|
|
535
513
|
{
|
|
536
|
-
internalType: "
|
|
514
|
+
internalType: "bytes32",
|
|
537
515
|
name: "granteeId",
|
|
538
|
-
type: "
|
|
539
|
-
},
|
|
540
|
-
{
|
|
541
|
-
internalType: "string",
|
|
542
|
-
name: "grant",
|
|
543
|
-
type: "string"
|
|
516
|
+
type: "bytes32"
|
|
544
517
|
},
|
|
545
518
|
{
|
|
546
519
|
internalType: "string[]",
|
|
547
|
-
name: "
|
|
520
|
+
name: "scopes",
|
|
548
521
|
type: "string[]"
|
|
549
522
|
},
|
|
550
523
|
{
|
|
551
|
-
internalType: "uint256
|
|
552
|
-
name: "
|
|
553
|
-
type: "uint256
|
|
554
|
-
},
|
|
555
|
-
{
|
|
556
|
-
internalType: "address",
|
|
557
|
-
name: "serverAddress",
|
|
558
|
-
type: "address"
|
|
559
|
-
},
|
|
560
|
-
{
|
|
561
|
-
internalType: "string",
|
|
562
|
-
name: "serverUrl",
|
|
563
|
-
type: "string"
|
|
564
|
-
},
|
|
565
|
-
{
|
|
566
|
-
internalType: "string",
|
|
567
|
-
name: "serverPublicKey",
|
|
568
|
-
type: "string"
|
|
524
|
+
internalType: "uint256",
|
|
525
|
+
name: "grantVersion",
|
|
526
|
+
type: "uint256"
|
|
569
527
|
},
|
|
570
528
|
{
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
name: "account",
|
|
575
|
-
type: "address"
|
|
576
|
-
},
|
|
577
|
-
{
|
|
578
|
-
internalType: "string",
|
|
579
|
-
name: "key",
|
|
580
|
-
type: "string"
|
|
581
|
-
}
|
|
582
|
-
],
|
|
583
|
-
internalType: "struct IDataRegistry.Permission[][]",
|
|
584
|
-
name: "filePermissions",
|
|
585
|
-
type: "tuple[][]"
|
|
529
|
+
internalType: "uint256",
|
|
530
|
+
name: "expiresAt",
|
|
531
|
+
type: "uint256"
|
|
586
532
|
}
|
|
587
533
|
],
|
|
588
|
-
internalType: "struct
|
|
589
|
-
name: "
|
|
534
|
+
internalType: "struct IDataPortabilityPermissionsV2.AddPermissionInput",
|
|
535
|
+
name: "input",
|
|
590
536
|
type: "tuple"
|
|
591
537
|
},
|
|
592
538
|
{
|
|
@@ -595,36 +541,23 @@ const DataPortabilityPermissionsABI = [
|
|
|
595
541
|
type: "bytes"
|
|
596
542
|
}
|
|
597
543
|
],
|
|
598
|
-
name: "
|
|
544
|
+
name: "addPermissionWithSignature",
|
|
599
545
|
outputs: [
|
|
600
546
|
{
|
|
601
|
-
internalType: "
|
|
547
|
+
internalType: "bytes32",
|
|
602
548
|
name: "",
|
|
603
|
-
type: "
|
|
549
|
+
type: "bytes32"
|
|
604
550
|
}
|
|
605
551
|
],
|
|
606
552
|
stateMutability: "nonpayable",
|
|
607
553
|
type: "function"
|
|
608
554
|
},
|
|
609
|
-
{
|
|
610
|
-
inputs: [],
|
|
611
|
-
name: "dataPortabilityGrantees",
|
|
612
|
-
outputs: [
|
|
613
|
-
{
|
|
614
|
-
internalType: "contract IDataPortabilityGrantees",
|
|
615
|
-
name: "",
|
|
616
|
-
type: "address"
|
|
617
|
-
}
|
|
618
|
-
],
|
|
619
|
-
stateMutability: "view",
|
|
620
|
-
type: "function"
|
|
621
|
-
},
|
|
622
555
|
{
|
|
623
556
|
inputs: [],
|
|
624
557
|
name: "dataPortabilityServers",
|
|
625
558
|
outputs: [
|
|
626
559
|
{
|
|
627
|
-
internalType: "contract
|
|
560
|
+
internalType: "contract IDataPortabilityServersV2",
|
|
628
561
|
name: "",
|
|
629
562
|
type: "address"
|
|
630
563
|
}
|
|
@@ -634,12 +567,12 @@ const DataPortabilityPermissionsABI = [
|
|
|
634
567
|
},
|
|
635
568
|
{
|
|
636
569
|
inputs: [],
|
|
637
|
-
name: "
|
|
570
|
+
name: "domainSeparator",
|
|
638
571
|
outputs: [
|
|
639
572
|
{
|
|
640
|
-
internalType: "
|
|
573
|
+
internalType: "bytes32",
|
|
641
574
|
name: "",
|
|
642
|
-
type: "
|
|
575
|
+
type: "bytes32"
|
|
643
576
|
}
|
|
644
577
|
],
|
|
645
578
|
stateMutability: "view",
|
|
@@ -691,17 +624,17 @@ const DataPortabilityPermissionsABI = [
|
|
|
691
624
|
{
|
|
692
625
|
inputs: [
|
|
693
626
|
{
|
|
694
|
-
internalType: "
|
|
695
|
-
name: "
|
|
696
|
-
type: "
|
|
627
|
+
internalType: "bytes32",
|
|
628
|
+
name: "role",
|
|
629
|
+
type: "bytes32"
|
|
697
630
|
}
|
|
698
631
|
],
|
|
699
|
-
name: "
|
|
632
|
+
name: "getRoleAdmin",
|
|
700
633
|
outputs: [
|
|
701
634
|
{
|
|
702
|
-
internalType: "
|
|
635
|
+
internalType: "bytes32",
|
|
703
636
|
name: "",
|
|
704
|
-
type: "
|
|
637
|
+
type: "bytes32"
|
|
705
638
|
}
|
|
706
639
|
],
|
|
707
640
|
stateMutability: "view",
|
|
@@ -710,31 +643,17 @@ const DataPortabilityPermissionsABI = [
|
|
|
710
643
|
{
|
|
711
644
|
inputs: [
|
|
712
645
|
{
|
|
713
|
-
internalType: "
|
|
714
|
-
name: "
|
|
715
|
-
type: "
|
|
716
|
-
}
|
|
717
|
-
],
|
|
718
|
-
name: "filePermissions",
|
|
719
|
-
outputs: [
|
|
720
|
-
{
|
|
721
|
-
internalType: "uint256[]",
|
|
722
|
-
name: "",
|
|
723
|
-
type: "uint256[]"
|
|
724
|
-
}
|
|
725
|
-
],
|
|
726
|
-
stateMutability: "view",
|
|
727
|
-
type: "function"
|
|
728
|
-
},
|
|
729
|
-
{
|
|
730
|
-
inputs: [
|
|
646
|
+
internalType: "address",
|
|
647
|
+
name: "grantorAddress",
|
|
648
|
+
type: "address"
|
|
649
|
+
},
|
|
731
650
|
{
|
|
732
651
|
internalType: "bytes32",
|
|
733
|
-
name: "
|
|
652
|
+
name: "granteeId",
|
|
734
653
|
type: "bytes32"
|
|
735
654
|
}
|
|
736
655
|
],
|
|
737
|
-
name: "
|
|
656
|
+
name: "grantId",
|
|
738
657
|
outputs: [
|
|
739
658
|
{
|
|
740
659
|
internalType: "bytes32",
|
|
@@ -789,30 +708,10 @@ const DataPortabilityPermissionsABI = [
|
|
|
789
708
|
},
|
|
790
709
|
{
|
|
791
710
|
inputs: [
|
|
792
|
-
{
|
|
793
|
-
internalType: "address",
|
|
794
|
-
name: "trustedForwarderAddress",
|
|
795
|
-
type: "address"
|
|
796
|
-
},
|
|
797
711
|
{
|
|
798
712
|
internalType: "address",
|
|
799
713
|
name: "ownerAddress",
|
|
800
714
|
type: "address"
|
|
801
|
-
},
|
|
802
|
-
{
|
|
803
|
-
internalType: "contract IDataRegistry",
|
|
804
|
-
name: "dataRegistryAddress",
|
|
805
|
-
type: "address"
|
|
806
|
-
},
|
|
807
|
-
{
|
|
808
|
-
internalType: "contract IDataPortabilityServers",
|
|
809
|
-
name: "serversContractAddr",
|
|
810
|
-
type: "address"
|
|
811
|
-
},
|
|
812
|
-
{
|
|
813
|
-
internalType: "contract IDataPortabilityGrantees",
|
|
814
|
-
name: "granteesContractAddr",
|
|
815
|
-
type: "address"
|
|
816
715
|
}
|
|
817
716
|
],
|
|
818
717
|
name: "initialize",
|
|
@@ -823,12 +722,12 @@ const DataPortabilityPermissionsABI = [
|
|
|
823
722
|
{
|
|
824
723
|
inputs: [
|
|
825
724
|
{
|
|
826
|
-
internalType: "
|
|
827
|
-
name: "
|
|
828
|
-
type: "
|
|
725
|
+
internalType: "bytes32",
|
|
726
|
+
name: "id",
|
|
727
|
+
type: "bytes32"
|
|
829
728
|
}
|
|
830
729
|
],
|
|
831
|
-
name: "
|
|
730
|
+
name: "isActive",
|
|
832
731
|
outputs: [
|
|
833
732
|
{
|
|
834
733
|
internalType: "bool",
|
|
@@ -862,76 +761,42 @@ const DataPortabilityPermissionsABI = [
|
|
|
862
761
|
{
|
|
863
762
|
inputs: [
|
|
864
763
|
{
|
|
865
|
-
internalType: "
|
|
866
|
-
name: "
|
|
867
|
-
type: "
|
|
868
|
-
}
|
|
869
|
-
],
|
|
870
|
-
name: "permissionFileIds",
|
|
871
|
-
outputs: [
|
|
872
|
-
{
|
|
873
|
-
internalType: "uint256[]",
|
|
874
|
-
name: "",
|
|
875
|
-
type: "uint256[]"
|
|
876
|
-
}
|
|
877
|
-
],
|
|
878
|
-
stateMutability: "view",
|
|
879
|
-
type: "function"
|
|
880
|
-
},
|
|
881
|
-
{
|
|
882
|
-
inputs: [
|
|
883
|
-
{
|
|
884
|
-
internalType: "uint256",
|
|
885
|
-
name: "permissionId",
|
|
886
|
-
type: "uint256"
|
|
764
|
+
internalType: "bytes32",
|
|
765
|
+
name: "id",
|
|
766
|
+
type: "bytes32"
|
|
887
767
|
}
|
|
888
768
|
],
|
|
889
769
|
name: "permissions",
|
|
890
770
|
outputs: [
|
|
891
771
|
{
|
|
892
772
|
components: [
|
|
893
|
-
{
|
|
894
|
-
internalType: "uint256",
|
|
895
|
-
name: "id",
|
|
896
|
-
type: "uint256"
|
|
897
|
-
},
|
|
898
773
|
{
|
|
899
774
|
internalType: "address",
|
|
900
|
-
name: "
|
|
775
|
+
name: "grantorAddress",
|
|
901
776
|
type: "address"
|
|
902
777
|
},
|
|
903
778
|
{
|
|
904
|
-
internalType: "
|
|
905
|
-
name: "nonce",
|
|
906
|
-
type: "uint256"
|
|
907
|
-
},
|
|
908
|
-
{
|
|
909
|
-
internalType: "uint256",
|
|
779
|
+
internalType: "bytes32",
|
|
910
780
|
name: "granteeId",
|
|
911
|
-
type: "
|
|
781
|
+
type: "bytes32"
|
|
912
782
|
},
|
|
913
783
|
{
|
|
914
|
-
internalType: "string",
|
|
915
|
-
name: "
|
|
916
|
-
type: "string"
|
|
784
|
+
internalType: "string[]",
|
|
785
|
+
name: "scopes",
|
|
786
|
+
type: "string[]"
|
|
917
787
|
},
|
|
918
788
|
{
|
|
919
789
|
internalType: "uint256",
|
|
920
|
-
name: "
|
|
790
|
+
name: "grantVersion",
|
|
921
791
|
type: "uint256"
|
|
922
792
|
},
|
|
923
793
|
{
|
|
924
794
|
internalType: "uint256",
|
|
925
|
-
name: "
|
|
795
|
+
name: "expiresAt",
|
|
926
796
|
type: "uint256"
|
|
927
|
-
},
|
|
928
|
-
{
|
|
929
|
-
internalType: "uint256[]",
|
|
930
|
-
name: "fileIds",
|
|
931
|
-
type: "uint256[]"
|
|
932
797
|
}
|
|
933
798
|
],
|
|
934
|
-
internalType: "struct
|
|
799
|
+
internalType: "struct IDataPortabilityPermissionsV2.Permission",
|
|
935
800
|
name: "",
|
|
936
801
|
type: "tuple"
|
|
937
802
|
}
|
|
@@ -939,19 +804,6 @@ const DataPortabilityPermissionsABI = [
|
|
|
939
804
|
stateMutability: "view",
|
|
940
805
|
type: "function"
|
|
941
806
|
},
|
|
942
|
-
{
|
|
943
|
-
inputs: [],
|
|
944
|
-
name: "permissionsCount",
|
|
945
|
-
outputs: [
|
|
946
|
-
{
|
|
947
|
-
internalType: "uint256",
|
|
948
|
-
name: "",
|
|
949
|
-
type: "uint256"
|
|
950
|
-
}
|
|
951
|
-
],
|
|
952
|
-
stateMutability: "view",
|
|
953
|
-
type: "function"
|
|
954
|
-
},
|
|
955
807
|
{
|
|
956
808
|
inputs: [],
|
|
957
809
|
name: "proxiableUUID",
|
|
@@ -983,49 +835,6 @@ const DataPortabilityPermissionsABI = [
|
|
|
983
835
|
stateMutability: "nonpayable",
|
|
984
836
|
type: "function"
|
|
985
837
|
},
|
|
986
|
-
{
|
|
987
|
-
inputs: [
|
|
988
|
-
{
|
|
989
|
-
internalType: "uint256",
|
|
990
|
-
name: "permissionId",
|
|
991
|
-
type: "uint256"
|
|
992
|
-
}
|
|
993
|
-
],
|
|
994
|
-
name: "revokePermission",
|
|
995
|
-
outputs: [],
|
|
996
|
-
stateMutability: "nonpayable",
|
|
997
|
-
type: "function"
|
|
998
|
-
},
|
|
999
|
-
{
|
|
1000
|
-
inputs: [
|
|
1001
|
-
{
|
|
1002
|
-
components: [
|
|
1003
|
-
{
|
|
1004
|
-
internalType: "uint256",
|
|
1005
|
-
name: "nonce",
|
|
1006
|
-
type: "uint256"
|
|
1007
|
-
},
|
|
1008
|
-
{
|
|
1009
|
-
internalType: "uint256",
|
|
1010
|
-
name: "permissionId",
|
|
1011
|
-
type: "uint256"
|
|
1012
|
-
}
|
|
1013
|
-
],
|
|
1014
|
-
internalType: "struct IDataPortabilityPermissions.RevokePermissionInput",
|
|
1015
|
-
name: "revokePermissionInput",
|
|
1016
|
-
type: "tuple"
|
|
1017
|
-
},
|
|
1018
|
-
{
|
|
1019
|
-
internalType: "bytes",
|
|
1020
|
-
name: "signature",
|
|
1021
|
-
type: "bytes"
|
|
1022
|
-
}
|
|
1023
|
-
],
|
|
1024
|
-
name: "revokePermissionWithSignature",
|
|
1025
|
-
outputs: [],
|
|
1026
|
-
stateMutability: "nonpayable",
|
|
1027
|
-
type: "function"
|
|
1028
|
-
},
|
|
1029
838
|
{
|
|
1030
839
|
inputs: [
|
|
1031
840
|
{
|
|
@@ -1047,17 +856,12 @@ const DataPortabilityPermissionsABI = [
|
|
|
1047
856
|
{
|
|
1048
857
|
inputs: [
|
|
1049
858
|
{
|
|
1050
|
-
internalType: "
|
|
1051
|
-
name: "
|
|
1052
|
-
type: "
|
|
1053
|
-
},
|
|
1054
|
-
{
|
|
1055
|
-
internalType: "bytes32",
|
|
1056
|
-
name: "adminRole",
|
|
1057
|
-
type: "bytes32"
|
|
859
|
+
internalType: "address",
|
|
860
|
+
name: "newDataPortabilityServers",
|
|
861
|
+
type: "address"
|
|
1058
862
|
}
|
|
1059
863
|
],
|
|
1060
|
-
name: "
|
|
864
|
+
name: "setDataPortabilityServers",
|
|
1061
865
|
outputs: [],
|
|
1062
866
|
stateMutability: "nonpayable",
|
|
1063
867
|
type: "function"
|
|
@@ -1081,19 +885,6 @@ const DataPortabilityPermissionsABI = [
|
|
|
1081
885
|
stateMutability: "view",
|
|
1082
886
|
type: "function"
|
|
1083
887
|
},
|
|
1084
|
-
{
|
|
1085
|
-
inputs: [],
|
|
1086
|
-
name: "trustedForwarder",
|
|
1087
|
-
outputs: [
|
|
1088
|
-
{
|
|
1089
|
-
internalType: "address",
|
|
1090
|
-
name: "",
|
|
1091
|
-
type: "address"
|
|
1092
|
-
}
|
|
1093
|
-
],
|
|
1094
|
-
stateMutability: "view",
|
|
1095
|
-
type: "function"
|
|
1096
|
-
},
|
|
1097
888
|
{
|
|
1098
889
|
inputs: [],
|
|
1099
890
|
name: "unpause",
|
|
@@ -1101,58 +892,6 @@ const DataPortabilityPermissionsABI = [
|
|
|
1101
892
|
stateMutability: "nonpayable",
|
|
1102
893
|
type: "function"
|
|
1103
894
|
},
|
|
1104
|
-
{
|
|
1105
|
-
inputs: [
|
|
1106
|
-
{
|
|
1107
|
-
internalType: "contract IDataRegistry",
|
|
1108
|
-
name: "newDataRegistry",
|
|
1109
|
-
type: "address"
|
|
1110
|
-
}
|
|
1111
|
-
],
|
|
1112
|
-
name: "updateDataRegistry",
|
|
1113
|
-
outputs: [],
|
|
1114
|
-
stateMutability: "nonpayable",
|
|
1115
|
-
type: "function"
|
|
1116
|
-
},
|
|
1117
|
-
{
|
|
1118
|
-
inputs: [
|
|
1119
|
-
{
|
|
1120
|
-
internalType: "contract IDataPortabilityGrantees",
|
|
1121
|
-
name: "newGranteesContract",
|
|
1122
|
-
type: "address"
|
|
1123
|
-
}
|
|
1124
|
-
],
|
|
1125
|
-
name: "updateGranteesContract",
|
|
1126
|
-
outputs: [],
|
|
1127
|
-
stateMutability: "nonpayable",
|
|
1128
|
-
type: "function"
|
|
1129
|
-
},
|
|
1130
|
-
{
|
|
1131
|
-
inputs: [
|
|
1132
|
-
{
|
|
1133
|
-
internalType: "contract IDataPortabilityServers",
|
|
1134
|
-
name: "newServersContract",
|
|
1135
|
-
type: "address"
|
|
1136
|
-
}
|
|
1137
|
-
],
|
|
1138
|
-
name: "updateServersContract",
|
|
1139
|
-
outputs: [],
|
|
1140
|
-
stateMutability: "nonpayable",
|
|
1141
|
-
type: "function"
|
|
1142
|
-
},
|
|
1143
|
-
{
|
|
1144
|
-
inputs: [
|
|
1145
|
-
{
|
|
1146
|
-
internalType: "address",
|
|
1147
|
-
name: "trustedForwarderAddress",
|
|
1148
|
-
type: "address"
|
|
1149
|
-
}
|
|
1150
|
-
],
|
|
1151
|
-
name: "updateTrustedForwarder",
|
|
1152
|
-
outputs: [],
|
|
1153
|
-
stateMutability: "nonpayable",
|
|
1154
|
-
type: "function"
|
|
1155
|
-
},
|
|
1156
895
|
{
|
|
1157
896
|
inputs: [
|
|
1158
897
|
{
|
|
@@ -1171,111 +910,6 @@ const DataPortabilityPermissionsABI = [
|
|
|
1171
910
|
stateMutability: "payable",
|
|
1172
911
|
type: "function"
|
|
1173
912
|
},
|
|
1174
|
-
{
|
|
1175
|
-
inputs: [
|
|
1176
|
-
{
|
|
1177
|
-
internalType: "address",
|
|
1178
|
-
name: "userAddress",
|
|
1179
|
-
type: "address"
|
|
1180
|
-
}
|
|
1181
|
-
],
|
|
1182
|
-
name: "userNonce",
|
|
1183
|
-
outputs: [
|
|
1184
|
-
{
|
|
1185
|
-
internalType: "uint256",
|
|
1186
|
-
name: "",
|
|
1187
|
-
type: "uint256"
|
|
1188
|
-
}
|
|
1189
|
-
],
|
|
1190
|
-
stateMutability: "view",
|
|
1191
|
-
type: "function"
|
|
1192
|
-
},
|
|
1193
|
-
{
|
|
1194
|
-
inputs: [
|
|
1195
|
-
{
|
|
1196
|
-
internalType: "address",
|
|
1197
|
-
name: "userAddress",
|
|
1198
|
-
type: "address"
|
|
1199
|
-
},
|
|
1200
|
-
{
|
|
1201
|
-
internalType: "uint256",
|
|
1202
|
-
name: "permissionIndex",
|
|
1203
|
-
type: "uint256"
|
|
1204
|
-
}
|
|
1205
|
-
],
|
|
1206
|
-
name: "userPermissionIdsAt",
|
|
1207
|
-
outputs: [
|
|
1208
|
-
{
|
|
1209
|
-
internalType: "uint256",
|
|
1210
|
-
name: "",
|
|
1211
|
-
type: "uint256"
|
|
1212
|
-
}
|
|
1213
|
-
],
|
|
1214
|
-
stateMutability: "view",
|
|
1215
|
-
type: "function"
|
|
1216
|
-
},
|
|
1217
|
-
{
|
|
1218
|
-
inputs: [
|
|
1219
|
-
{
|
|
1220
|
-
internalType: "address",
|
|
1221
|
-
name: "userAddress",
|
|
1222
|
-
type: "address"
|
|
1223
|
-
}
|
|
1224
|
-
],
|
|
1225
|
-
name: "userPermissionIdsLength",
|
|
1226
|
-
outputs: [
|
|
1227
|
-
{
|
|
1228
|
-
internalType: "uint256",
|
|
1229
|
-
name: "",
|
|
1230
|
-
type: "uint256"
|
|
1231
|
-
}
|
|
1232
|
-
],
|
|
1233
|
-
stateMutability: "view",
|
|
1234
|
-
type: "function"
|
|
1235
|
-
},
|
|
1236
|
-
{
|
|
1237
|
-
inputs: [
|
|
1238
|
-
{
|
|
1239
|
-
internalType: "address",
|
|
1240
|
-
name: "userAddress",
|
|
1241
|
-
type: "address"
|
|
1242
|
-
}
|
|
1243
|
-
],
|
|
1244
|
-
name: "userPermissionIdsValues",
|
|
1245
|
-
outputs: [
|
|
1246
|
-
{
|
|
1247
|
-
internalType: "uint256[]",
|
|
1248
|
-
name: "",
|
|
1249
|
-
type: "uint256[]"
|
|
1250
|
-
}
|
|
1251
|
-
],
|
|
1252
|
-
stateMutability: "view",
|
|
1253
|
-
type: "function"
|
|
1254
|
-
},
|
|
1255
|
-
{
|
|
1256
|
-
inputs: [
|
|
1257
|
-
{
|
|
1258
|
-
internalType: "address",
|
|
1259
|
-
name: "userAddress",
|
|
1260
|
-
type: "address"
|
|
1261
|
-
}
|
|
1262
|
-
],
|
|
1263
|
-
name: "users",
|
|
1264
|
-
outputs: [
|
|
1265
|
-
{
|
|
1266
|
-
internalType: "uint256",
|
|
1267
|
-
name: "nonce",
|
|
1268
|
-
type: "uint256"
|
|
1269
|
-
},
|
|
1270
|
-
{
|
|
1271
|
-
internalType: "uint256[]",
|
|
1272
|
-
name: "permissionIds",
|
|
1273
|
-
type: "uint256[]"
|
|
1274
|
-
}
|
|
1275
|
-
],
|
|
1276
|
-
stateMutability: "view",
|
|
1277
|
-
type: "function"
|
|
1278
|
-
},
|
|
1279
913
|
{
|
|
1280
914
|
inputs: [],
|
|
1281
915
|
name: "version",
|