@opendatalabs/vana-sdk 3.20.0 → 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.
Files changed (27) hide show
  1. package/dist/config/contracts.config.cjs +8 -3
  2. package/dist/config/contracts.config.cjs.map +1 -1
  3. package/dist/config/contracts.config.js +8 -3
  4. package/dist/config/contracts.config.js.map +1 -1
  5. package/dist/generated/abi/DataPortabilityPermissionsImplementation.cjs +146 -512
  6. package/dist/generated/abi/DataPortabilityPermissionsImplementation.cjs.map +1 -1
  7. package/dist/generated/abi/DataPortabilityPermissionsImplementation.d.ts +136 -412
  8. package/dist/generated/abi/DataPortabilityPermissionsImplementation.js +146 -512
  9. package/dist/generated/abi/DataPortabilityPermissionsImplementation.js.map +1 -1
  10. package/dist/generated/abi/DataPortabilityServersImplementation.cjs +391 -654
  11. package/dist/generated/abi/DataPortabilityServersImplementation.cjs.map +1 -1
  12. package/dist/generated/abi/DataPortabilityServersImplementation.d.ts +302 -505
  13. package/dist/generated/abi/DataPortabilityServersImplementation.js +391 -654
  14. package/dist/generated/abi/DataPortabilityServersImplementation.js.map +1 -1
  15. package/dist/generated/abi/index.d.ts +433 -912
  16. package/dist/generated/addresses.cjs +8 -8
  17. package/dist/generated/addresses.cjs.map +1 -1
  18. package/dist/generated/addresses.d.ts +8 -8
  19. package/dist/generated/addresses.js +8 -8
  20. package/dist/generated/addresses.js.map +1 -1
  21. package/dist/index.browser.js +556 -1185
  22. package/dist/index.browser.js.map +2 -2
  23. package/dist/index.node.cjs +556 -1185
  24. package/dist/index.node.cjs.map +2 -2
  25. package/dist/index.node.js +556 -1185
  26. package/dist/index.node.js.map +2 -2
  27. package/package.json +1 -1
@@ -86,7 +86,7 @@ declare const contractAbis: {
86
86
  readonly type: "error";
87
87
  }, {
88
88
  readonly inputs: readonly [];
89
- readonly name: "EmptyGrant";
89
+ readonly name: "EmptyScopes";
90
90
  readonly type: "error";
91
91
  }, {
92
92
  readonly inputs: readonly [];
@@ -100,90 +100,42 @@ declare const contractAbis: {
100
100
  readonly inputs: readonly [];
101
101
  readonly name: "FailedInnerCall";
102
102
  readonly type: "error";
103
- }, {
104
- readonly inputs: readonly [];
105
- readonly name: "GranteeNotFound";
106
- readonly type: "error";
107
- }, {
108
- readonly inputs: readonly [{
109
- readonly internalType: "uint256";
110
- readonly name: "permissionId";
111
- readonly type: "uint256";
112
- }];
113
- readonly name: "InactivePermission";
114
- readonly type: "error";
115
- }, {
116
- readonly inputs: readonly [];
117
- readonly name: "InvalidInitialization";
118
- readonly type: "error";
119
103
  }, {
120
104
  readonly inputs: readonly [{
121
- readonly internalType: "uint256";
122
- readonly name: "expectedNonce";
123
- readonly type: "uint256";
105
+ readonly internalType: "address";
106
+ readonly name: "claimed";
107
+ readonly type: "address";
124
108
  }, {
125
- readonly internalType: "uint256";
126
- readonly name: "providedNonce";
127
- readonly type: "uint256";
109
+ readonly internalType: "address";
110
+ readonly name: "actual";
111
+ readonly type: "address";
128
112
  }];
129
- readonly name: "InvalidNonce";
113
+ readonly name: "GrantorMismatch";
130
114
  readonly type: "error";
131
115
  }, {
132
116
  readonly inputs: readonly [{
133
117
  readonly internalType: "uint256";
134
- readonly name: "filesLength";
118
+ readonly name: "currentVersion";
135
119
  readonly type: "uint256";
136
120
  }, {
137
121
  readonly internalType: "uint256";
138
- readonly name: "permissionsLength";
122
+ readonly name: "providedVersion";
139
123
  readonly type: "uint256";
140
124
  }];
141
- readonly name: "InvalidPermissionsLength";
125
+ readonly name: "InvalidGrantVersion";
142
126
  readonly type: "error";
143
127
  }, {
144
- readonly inputs: readonly [{
145
- readonly internalType: "uint256";
146
- readonly name: "filesLength";
147
- readonly type: "uint256";
148
- }, {
149
- readonly internalType: "uint256";
150
- readonly name: "schemaIdsLength";
151
- readonly type: "uint256";
152
- }];
153
- readonly name: "InvalidSchemaIdsLength";
128
+ readonly inputs: readonly [];
129
+ readonly name: "InvalidInitialization";
154
130
  readonly type: "error";
155
131
  }, {
156
132
  readonly inputs: readonly [];
157
133
  readonly name: "InvalidSignature";
158
134
  readonly type: "error";
159
- }, {
160
- readonly inputs: readonly [{
161
- readonly internalType: "address";
162
- readonly name: "fileOwner";
163
- readonly type: "address";
164
- }, {
165
- readonly internalType: "address";
166
- readonly name: "requestor";
167
- readonly type: "address";
168
- }];
169
- readonly name: "NotFileOwner";
170
- readonly type: "error";
171
135
  }, {
172
136
  readonly inputs: readonly [];
173
137
  readonly name: "NotInitializing";
174
138
  readonly type: "error";
175
- }, {
176
- readonly inputs: readonly [{
177
- readonly internalType: "address";
178
- readonly name: "permissionOwner";
179
- readonly type: "address";
180
- }, {
181
- readonly internalType: "address";
182
- readonly name: "requestor";
183
- readonly type: "address";
184
- }];
185
- readonly name: "NotPermissionGrantor";
186
- readonly type: "error";
187
139
  }, {
188
140
  readonly inputs: readonly [];
189
141
  readonly name: "UUPSUnauthorizedCallContext";
@@ -200,6 +152,25 @@ declare const contractAbis: {
200
152
  readonly inputs: readonly [];
201
153
  readonly name: "ZeroAddress";
202
154
  readonly type: "error";
155
+ }, {
156
+ readonly inputs: readonly [];
157
+ readonly name: "ZeroGranteeId";
158
+ readonly type: "error";
159
+ }, {
160
+ readonly anonymous: false;
161
+ readonly inputs: readonly [{
162
+ readonly indexed: true;
163
+ readonly internalType: "address";
164
+ readonly name: "previous";
165
+ readonly type: "address";
166
+ }, {
167
+ readonly indexed: true;
168
+ readonly internalType: "address";
169
+ readonly name: "current";
170
+ readonly type: "address";
171
+ }];
172
+ readonly name: "DataPortabilityServersUpdated";
173
+ readonly type: "event";
203
174
  }, {
204
175
  readonly anonymous: false;
205
176
  readonly inputs: readonly [];
@@ -229,41 +200,56 @@ declare const contractAbis: {
229
200
  readonly anonymous: false;
230
201
  readonly inputs: readonly [{
231
202
  readonly indexed: true;
232
- readonly internalType: "uint256";
233
- readonly name: "permissionId";
234
- readonly type: "uint256";
203
+ readonly internalType: "bytes32";
204
+ readonly name: "id";
205
+ readonly type: "bytes32";
235
206
  }, {
236
207
  readonly indexed: true;
237
208
  readonly internalType: "address";
238
- readonly name: "user";
209
+ readonly name: "grantorAddress";
239
210
  readonly type: "address";
240
211
  }, {
241
212
  readonly indexed: true;
242
- readonly internalType: "uint256";
213
+ readonly internalType: "bytes32";
243
214
  readonly name: "granteeId";
244
- readonly type: "uint256";
215
+ readonly type: "bytes32";
245
216
  }, {
246
217
  readonly indexed: false;
247
- readonly internalType: "string";
248
- readonly name: "grant";
249
- readonly type: "string";
218
+ readonly internalType: "string[]";
219
+ readonly name: "scopes";
220
+ readonly type: "string[]";
250
221
  }, {
251
222
  readonly indexed: false;
252
- readonly internalType: "uint256[]";
253
- readonly name: "fileIds";
254
- readonly type: "uint256[]";
223
+ readonly internalType: "uint256";
224
+ readonly name: "grantVersion";
225
+ readonly type: "uint256";
226
+ }, {
227
+ readonly indexed: false;
228
+ readonly internalType: "uint256";
229
+ readonly name: "expiresAt";
230
+ readonly type: "uint256";
255
231
  }];
256
- readonly name: "PermissionAdded";
232
+ readonly name: "PermissionSet";
257
233
  readonly type: "event";
258
234
  }, {
259
235
  readonly anonymous: false;
260
236
  readonly inputs: readonly [{
261
237
  readonly indexed: true;
262
- readonly internalType: "uint256";
263
- readonly name: "permissionId";
264
- readonly type: "uint256";
238
+ readonly internalType: "bytes32";
239
+ readonly name: "id";
240
+ readonly type: "bytes32";
241
+ }, {
242
+ readonly indexed: true;
243
+ readonly internalType: "address";
244
+ readonly name: "grantorAddress";
245
+ readonly type: "address";
246
+ }, {
247
+ readonly indexed: true;
248
+ readonly internalType: "address";
249
+ readonly name: "delegate";
250
+ readonly type: "address";
265
251
  }];
266
- readonly name: "PermissionRevoked";
252
+ readonly name: "PermissionSignedByDelegate";
267
253
  readonly type: "event";
268
254
  }, {
269
255
  readonly anonymous: false;
@@ -357,7 +343,7 @@ declare const contractAbis: {
357
343
  readonly type: "function";
358
344
  }, {
359
345
  readonly inputs: readonly [];
360
- readonly name: "MAINTAINER_ROLE";
346
+ readonly name: "GRANT_REGISTRATION_TYPEHASH";
361
347
  readonly outputs: readonly [{
362
348
  readonly internalType: "bytes32";
363
349
  readonly name: "";
@@ -378,117 +364,82 @@ declare const contractAbis: {
378
364
  }, {
379
365
  readonly inputs: readonly [{
380
366
  readonly components: readonly [{
367
+ readonly internalType: "address";
368
+ readonly name: "grantorAddress";
369
+ readonly type: "address";
370
+ }, {
371
+ readonly internalType: "bytes32";
372
+ readonly name: "granteeId";
373
+ readonly type: "bytes32";
374
+ }, {
375
+ readonly internalType: "string[]";
376
+ readonly name: "scopes";
377
+ readonly type: "string[]";
378
+ }, {
381
379
  readonly internalType: "uint256";
382
- readonly name: "nonce";
380
+ readonly name: "grantVersion";
383
381
  readonly type: "uint256";
384
382
  }, {
385
383
  readonly internalType: "uint256";
386
- readonly name: "granteeId";
384
+ readonly name: "expiresAt";
387
385
  readonly type: "uint256";
388
- }, {
389
- readonly internalType: "string";
390
- readonly name: "grant";
391
- readonly type: "string";
392
- }, {
393
- readonly internalType: "uint256[]";
394
- readonly name: "fileIds";
395
- readonly type: "uint256[]";
396
386
  }];
397
- readonly internalType: "struct IDataPortabilityPermissions.PermissionInput";
398
- readonly name: "permissionInput";
387
+ readonly internalType: "struct IDataPortabilityPermissionsV2.AddPermissionInput";
388
+ readonly name: "input";
399
389
  readonly type: "tuple";
400
- }, {
401
- readonly internalType: "bytes";
402
- readonly name: "signature";
403
- readonly type: "bytes";
404
390
  }];
405
391
  readonly name: "addPermission";
406
392
  readonly outputs: readonly [{
407
- readonly internalType: "uint256";
393
+ readonly internalType: "bytes32";
408
394
  readonly name: "";
409
- readonly type: "uint256";
395
+ readonly type: "bytes32";
410
396
  }];
411
397
  readonly stateMutability: "nonpayable";
412
398
  readonly type: "function";
413
399
  }, {
414
400
  readonly inputs: readonly [{
415
401
  readonly components: readonly [{
416
- readonly internalType: "uint256";
417
- readonly name: "nonce";
418
- readonly type: "uint256";
402
+ readonly internalType: "address";
403
+ readonly name: "grantorAddress";
404
+ readonly type: "address";
419
405
  }, {
420
- readonly internalType: "uint256";
406
+ readonly internalType: "bytes32";
421
407
  readonly name: "granteeId";
422
- readonly type: "uint256";
423
- }, {
424
- readonly internalType: "string";
425
- readonly name: "grant";
426
- readonly type: "string";
408
+ readonly type: "bytes32";
427
409
  }, {
428
410
  readonly internalType: "string[]";
429
- readonly name: "fileUrls";
411
+ readonly name: "scopes";
430
412
  readonly type: "string[]";
431
413
  }, {
432
- readonly internalType: "uint256[]";
433
- readonly name: "schemaIds";
434
- readonly type: "uint256[]";
435
- }, {
436
- readonly internalType: "address";
437
- readonly name: "serverAddress";
438
- readonly type: "address";
439
- }, {
440
- readonly internalType: "string";
441
- readonly name: "serverUrl";
442
- readonly type: "string";
443
- }, {
444
- readonly internalType: "string";
445
- readonly name: "serverPublicKey";
446
- readonly type: "string";
414
+ readonly internalType: "uint256";
415
+ readonly name: "grantVersion";
416
+ readonly type: "uint256";
447
417
  }, {
448
- readonly components: readonly [{
449
- readonly internalType: "address";
450
- readonly name: "account";
451
- readonly type: "address";
452
- }, {
453
- readonly internalType: "string";
454
- readonly name: "key";
455
- readonly type: "string";
456
- }];
457
- readonly internalType: "struct IDataRegistry.Permission[][]";
458
- readonly name: "filePermissions";
459
- readonly type: "tuple[][]";
418
+ readonly internalType: "uint256";
419
+ readonly name: "expiresAt";
420
+ readonly type: "uint256";
460
421
  }];
461
- readonly internalType: "struct IDataPortabilityPermissions.ServerFilesAndPermissionInput";
462
- readonly name: "serverFilesAndPermissionInput";
422
+ readonly internalType: "struct IDataPortabilityPermissionsV2.AddPermissionInput";
423
+ readonly name: "input";
463
424
  readonly type: "tuple";
464
425
  }, {
465
426
  readonly internalType: "bytes";
466
427
  readonly name: "signature";
467
428
  readonly type: "bytes";
468
429
  }];
469
- readonly name: "addServerFilesAndPermissions";
430
+ readonly name: "addPermissionWithSignature";
470
431
  readonly outputs: readonly [{
471
- readonly internalType: "uint256";
432
+ readonly internalType: "bytes32";
472
433
  readonly name: "";
473
- readonly type: "uint256";
434
+ readonly type: "bytes32";
474
435
  }];
475
436
  readonly stateMutability: "nonpayable";
476
437
  readonly type: "function";
477
- }, {
478
- readonly inputs: readonly [];
479
- readonly name: "dataPortabilityGrantees";
480
- readonly outputs: readonly [{
481
- readonly internalType: "contract IDataPortabilityGrantees";
482
- readonly name: "";
483
- readonly type: "address";
484
- }];
485
- readonly stateMutability: "view";
486
- readonly type: "function";
487
438
  }, {
488
439
  readonly inputs: readonly [];
489
440
  readonly name: "dataPortabilityServers";
490
441
  readonly outputs: readonly [{
491
- readonly internalType: "contract IDataPortabilityServers";
442
+ readonly internalType: "contract IDataPortabilityServersV2";
492
443
  readonly name: "";
493
444
  readonly type: "address";
494
445
  }];
@@ -496,11 +447,11 @@ declare const contractAbis: {
496
447
  readonly type: "function";
497
448
  }, {
498
449
  readonly inputs: readonly [];
499
- readonly name: "dataRegistry";
450
+ readonly name: "domainSeparator";
500
451
  readonly outputs: readonly [{
501
- readonly internalType: "contract IDataRegistry";
452
+ readonly internalType: "bytes32";
502
453
  readonly name: "";
503
- readonly type: "address";
454
+ readonly type: "bytes32";
504
455
  }];
505
456
  readonly stateMutability: "view";
506
457
  readonly type: "function";
@@ -540,39 +491,29 @@ declare const contractAbis: {
540
491
  readonly type: "function";
541
492
  }, {
542
493
  readonly inputs: readonly [{
543
- readonly internalType: "uint256";
544
- readonly name: "fileId";
545
- readonly type: "uint256";
546
- }];
547
- readonly name: "filePermissionIds";
548
- readonly outputs: readonly [{
549
- readonly internalType: "uint256[]";
550
- readonly name: "";
551
- readonly type: "uint256[]";
552
- }];
553
- readonly stateMutability: "view";
554
- readonly type: "function";
555
- }, {
556
- readonly inputs: readonly [{
557
- readonly internalType: "uint256";
558
- readonly name: "fileId";
559
- readonly type: "uint256";
494
+ readonly internalType: "bytes32";
495
+ readonly name: "role";
496
+ readonly type: "bytes32";
560
497
  }];
561
- readonly name: "filePermissions";
498
+ readonly name: "getRoleAdmin";
562
499
  readonly outputs: readonly [{
563
- readonly internalType: "uint256[]";
500
+ readonly internalType: "bytes32";
564
501
  readonly name: "";
565
- readonly type: "uint256[]";
502
+ readonly type: "bytes32";
566
503
  }];
567
504
  readonly stateMutability: "view";
568
505
  readonly type: "function";
569
506
  }, {
570
507
  readonly inputs: readonly [{
508
+ readonly internalType: "address";
509
+ readonly name: "grantorAddress";
510
+ readonly type: "address";
511
+ }, {
571
512
  readonly internalType: "bytes32";
572
- readonly name: "role";
513
+ readonly name: "granteeId";
573
514
  readonly type: "bytes32";
574
515
  }];
575
- readonly name: "getRoleAdmin";
516
+ readonly name: "grantId";
576
517
  readonly outputs: readonly [{
577
518
  readonly internalType: "bytes32";
578
519
  readonly name: "";
@@ -614,25 +555,9 @@ declare const contractAbis: {
614
555
  readonly type: "function";
615
556
  }, {
616
557
  readonly inputs: readonly [{
617
- readonly internalType: "address";
618
- readonly name: "trustedForwarderAddress";
619
- readonly type: "address";
620
- }, {
621
558
  readonly internalType: "address";
622
559
  readonly name: "ownerAddress";
623
560
  readonly type: "address";
624
- }, {
625
- readonly internalType: "contract IDataRegistry";
626
- readonly name: "dataRegistryAddress";
627
- readonly type: "address";
628
- }, {
629
- readonly internalType: "contract IDataPortabilityServers";
630
- readonly name: "serversContractAddr";
631
- readonly type: "address";
632
- }, {
633
- readonly internalType: "contract IDataPortabilityGrantees";
634
- readonly name: "granteesContractAddr";
635
- readonly type: "address";
636
561
  }];
637
562
  readonly name: "initialize";
638
563
  readonly outputs: readonly [];
@@ -640,11 +565,11 @@ declare const contractAbis: {
640
565
  readonly type: "function";
641
566
  }, {
642
567
  readonly inputs: readonly [{
643
- readonly internalType: "address";
644
- readonly name: "forwarder";
645
- readonly type: "address";
568
+ readonly internalType: "bytes32";
569
+ readonly name: "id";
570
+ readonly type: "bytes32";
646
571
  }];
647
- readonly name: "isTrustedForwarder";
572
+ readonly name: "isActive";
648
573
  readonly outputs: readonly [{
649
574
  readonly internalType: "bool";
650
575
  readonly name: "";
@@ -670,75 +595,39 @@ declare const contractAbis: {
670
595
  readonly type: "function";
671
596
  }, {
672
597
  readonly inputs: readonly [{
673
- readonly internalType: "uint256";
674
- readonly name: "permissionId";
675
- readonly type: "uint256";
676
- }];
677
- readonly name: "permissionFileIds";
678
- readonly outputs: readonly [{
679
- readonly internalType: "uint256[]";
680
- readonly name: "";
681
- readonly type: "uint256[]";
682
- }];
683
- readonly stateMutability: "view";
684
- readonly type: "function";
685
- }, {
686
- readonly inputs: readonly [{
687
- readonly internalType: "uint256";
688
- readonly name: "permissionId";
689
- readonly type: "uint256";
598
+ readonly internalType: "bytes32";
599
+ readonly name: "id";
600
+ readonly type: "bytes32";
690
601
  }];
691
602
  readonly name: "permissions";
692
603
  readonly outputs: readonly [{
693
604
  readonly components: readonly [{
694
- readonly internalType: "uint256";
695
- readonly name: "id";
696
- readonly type: "uint256";
697
- }, {
698
605
  readonly internalType: "address";
699
- readonly name: "grantor";
606
+ readonly name: "grantorAddress";
700
607
  readonly type: "address";
701
608
  }, {
702
- readonly internalType: "uint256";
703
- readonly name: "nonce";
704
- readonly type: "uint256";
705
- }, {
706
- readonly internalType: "uint256";
609
+ readonly internalType: "bytes32";
707
610
  readonly name: "granteeId";
708
- readonly type: "uint256";
611
+ readonly type: "bytes32";
709
612
  }, {
710
- readonly internalType: "string";
711
- readonly name: "grant";
712
- readonly type: "string";
613
+ readonly internalType: "string[]";
614
+ readonly name: "scopes";
615
+ readonly type: "string[]";
713
616
  }, {
714
617
  readonly internalType: "uint256";
715
- readonly name: "startBlock";
618
+ readonly name: "grantVersion";
716
619
  readonly type: "uint256";
717
620
  }, {
718
621
  readonly internalType: "uint256";
719
- readonly name: "endBlock";
622
+ readonly name: "expiresAt";
720
623
  readonly type: "uint256";
721
- }, {
722
- readonly internalType: "uint256[]";
723
- readonly name: "fileIds";
724
- readonly type: "uint256[]";
725
624
  }];
726
- readonly internalType: "struct IDataPortabilityPermissions.PermissionInfo";
625
+ readonly internalType: "struct IDataPortabilityPermissionsV2.Permission";
727
626
  readonly name: "";
728
627
  readonly type: "tuple";
729
628
  }];
730
629
  readonly stateMutability: "view";
731
630
  readonly type: "function";
732
- }, {
733
- readonly inputs: readonly [];
734
- readonly name: "permissionsCount";
735
- readonly outputs: readonly [{
736
- readonly internalType: "uint256";
737
- readonly name: "";
738
- readonly type: "uint256";
739
- }];
740
- readonly stateMutability: "view";
741
- readonly type: "function";
742
631
  }, {
743
632
  readonly inputs: readonly [];
744
633
  readonly name: "proxiableUUID";
@@ -763,39 +652,6 @@ declare const contractAbis: {
763
652
  readonly outputs: readonly [];
764
653
  readonly stateMutability: "nonpayable";
765
654
  readonly type: "function";
766
- }, {
767
- readonly inputs: readonly [{
768
- readonly internalType: "uint256";
769
- readonly name: "permissionId";
770
- readonly type: "uint256";
771
- }];
772
- readonly name: "revokePermission";
773
- readonly outputs: readonly [];
774
- readonly stateMutability: "nonpayable";
775
- readonly type: "function";
776
- }, {
777
- readonly inputs: readonly [{
778
- readonly components: readonly [{
779
- readonly internalType: "uint256";
780
- readonly name: "nonce";
781
- readonly type: "uint256";
782
- }, {
783
- readonly internalType: "uint256";
784
- readonly name: "permissionId";
785
- readonly type: "uint256";
786
- }];
787
- readonly internalType: "struct IDataPortabilityPermissions.RevokePermissionInput";
788
- readonly name: "revokePermissionInput";
789
- readonly type: "tuple";
790
- }, {
791
- readonly internalType: "bytes";
792
- readonly name: "signature";
793
- readonly type: "bytes";
794
- }];
795
- readonly name: "revokePermissionWithSignature";
796
- readonly outputs: readonly [];
797
- readonly stateMutability: "nonpayable";
798
- readonly type: "function";
799
655
  }, {
800
656
  readonly inputs: readonly [{
801
657
  readonly internalType: "bytes32";
@@ -812,15 +668,11 @@ declare const contractAbis: {
812
668
  readonly type: "function";
813
669
  }, {
814
670
  readonly inputs: readonly [{
815
- readonly internalType: "bytes32";
816
- readonly name: "role";
817
- readonly type: "bytes32";
818
- }, {
819
- readonly internalType: "bytes32";
820
- readonly name: "adminRole";
821
- readonly type: "bytes32";
671
+ readonly internalType: "address";
672
+ readonly name: "newDataPortabilityServers";
673
+ readonly type: "address";
822
674
  }];
823
- readonly name: "setRoleAdmin";
675
+ readonly name: "setDataPortabilityServers";
824
676
  readonly outputs: readonly [];
825
677
  readonly stateMutability: "nonpayable";
826
678
  readonly type: "function";
@@ -838,62 +690,12 @@ declare const contractAbis: {
838
690
  }];
839
691
  readonly stateMutability: "view";
840
692
  readonly type: "function";
841
- }, {
842
- readonly inputs: readonly [];
843
- readonly name: "trustedForwarder";
844
- readonly outputs: readonly [{
845
- readonly internalType: "address";
846
- readonly name: "";
847
- readonly type: "address";
848
- }];
849
- readonly stateMutability: "view";
850
- readonly type: "function";
851
693
  }, {
852
694
  readonly inputs: readonly [];
853
695
  readonly name: "unpause";
854
696
  readonly outputs: readonly [];
855
697
  readonly stateMutability: "nonpayable";
856
698
  readonly type: "function";
857
- }, {
858
- readonly inputs: readonly [{
859
- readonly internalType: "contract IDataRegistry";
860
- readonly name: "newDataRegistry";
861
- readonly type: "address";
862
- }];
863
- readonly name: "updateDataRegistry";
864
- readonly outputs: readonly [];
865
- readonly stateMutability: "nonpayable";
866
- readonly type: "function";
867
- }, {
868
- readonly inputs: readonly [{
869
- readonly internalType: "contract IDataPortabilityGrantees";
870
- readonly name: "newGranteesContract";
871
- readonly type: "address";
872
- }];
873
- readonly name: "updateGranteesContract";
874
- readonly outputs: readonly [];
875
- readonly stateMutability: "nonpayable";
876
- readonly type: "function";
877
- }, {
878
- readonly inputs: readonly [{
879
- readonly internalType: "contract IDataPortabilityServers";
880
- readonly name: "newServersContract";
881
- readonly type: "address";
882
- }];
883
- readonly name: "updateServersContract";
884
- readonly outputs: readonly [];
885
- readonly stateMutability: "nonpayable";
886
- readonly type: "function";
887
- }, {
888
- readonly inputs: readonly [{
889
- readonly internalType: "address";
890
- readonly name: "trustedForwarderAddress";
891
- readonly type: "address";
892
- }];
893
- readonly name: "updateTrustedForwarder";
894
- readonly outputs: readonly [];
895
- readonly stateMutability: "nonpayable";
896
- readonly type: "function";
897
699
  }, {
898
700
  readonly inputs: readonly [{
899
701
  readonly internalType: "address";
@@ -908,84 +710,6 @@ declare const contractAbis: {
908
710
  readonly outputs: readonly [];
909
711
  readonly stateMutability: "payable";
910
712
  readonly type: "function";
911
- }, {
912
- readonly inputs: readonly [{
913
- readonly internalType: "address";
914
- readonly name: "userAddress";
915
- readonly type: "address";
916
- }];
917
- readonly name: "userNonce";
918
- readonly outputs: readonly [{
919
- readonly internalType: "uint256";
920
- readonly name: "";
921
- readonly type: "uint256";
922
- }];
923
- readonly stateMutability: "view";
924
- readonly type: "function";
925
- }, {
926
- readonly inputs: readonly [{
927
- readonly internalType: "address";
928
- readonly name: "userAddress";
929
- readonly type: "address";
930
- }, {
931
- readonly internalType: "uint256";
932
- readonly name: "permissionIndex";
933
- readonly type: "uint256";
934
- }];
935
- readonly name: "userPermissionIdsAt";
936
- readonly outputs: readonly [{
937
- readonly internalType: "uint256";
938
- readonly name: "";
939
- readonly type: "uint256";
940
- }];
941
- readonly stateMutability: "view";
942
- readonly type: "function";
943
- }, {
944
- readonly inputs: readonly [{
945
- readonly internalType: "address";
946
- readonly name: "userAddress";
947
- readonly type: "address";
948
- }];
949
- readonly name: "userPermissionIdsLength";
950
- readonly outputs: readonly [{
951
- readonly internalType: "uint256";
952
- readonly name: "";
953
- readonly type: "uint256";
954
- }];
955
- readonly stateMutability: "view";
956
- readonly type: "function";
957
- }, {
958
- readonly inputs: readonly [{
959
- readonly internalType: "address";
960
- readonly name: "userAddress";
961
- readonly type: "address";
962
- }];
963
- readonly name: "userPermissionIdsValues";
964
- readonly outputs: readonly [{
965
- readonly internalType: "uint256[]";
966
- readonly name: "";
967
- readonly type: "uint256[]";
968
- }];
969
- readonly stateMutability: "view";
970
- readonly type: "function";
971
- }, {
972
- readonly inputs: readonly [{
973
- readonly internalType: "address";
974
- readonly name: "userAddress";
975
- readonly type: "address";
976
- }];
977
- readonly name: "users";
978
- readonly outputs: readonly [{
979
- readonly internalType: "uint256";
980
- readonly name: "nonce";
981
- readonly type: "uint256";
982
- }, {
983
- readonly internalType: "uint256[]";
984
- readonly name: "permissionIds";
985
- readonly type: "uint256[]";
986
- }];
987
- readonly stateMutability: "view";
988
- readonly type: "function";
989
713
  }, {
990
714
  readonly inputs: readonly [];
991
715
  readonly name: "version";
@@ -1025,6 +749,26 @@ declare const contractAbis: {
1025
749
  }];
1026
750
  readonly name: "AddressEmptyCode";
1027
751
  readonly type: "error";
752
+ }, {
753
+ readonly inputs: readonly [{
754
+ readonly internalType: "bytes32";
755
+ readonly name: "serverId";
756
+ readonly type: "bytes32";
757
+ }];
758
+ readonly name: "AlreadyRevoked";
759
+ readonly type: "error";
760
+ }, {
761
+ readonly inputs: readonly [{
762
+ readonly internalType: "uint256";
763
+ readonly name: "deadline";
764
+ readonly type: "uint256";
765
+ }, {
766
+ readonly internalType: "uint256";
767
+ readonly name: "currentTime";
768
+ readonly type: "uint256";
769
+ }];
770
+ readonly name: "DeadlineExpired";
771
+ readonly type: "error";
1028
772
  }, {
1029
773
  readonly inputs: readonly [];
1030
774
  readonly name: "ECDSAInvalidSignature";
@@ -1082,16 +826,8 @@ declare const contractAbis: {
1082
826
  readonly name: "InvalidInitialization";
1083
827
  readonly type: "error";
1084
828
  }, {
1085
- readonly inputs: readonly [{
1086
- readonly internalType: "uint256";
1087
- readonly name: "expectedNonce";
1088
- readonly type: "uint256";
1089
- }, {
1090
- readonly internalType: "uint256";
1091
- readonly name: "providedNonce";
1092
- readonly type: "uint256";
1093
- }];
1094
- readonly name: "InvalidNonce";
829
+ readonly inputs: readonly [];
830
+ readonly name: "InvalidSignature";
1095
831
  readonly type: "error";
1096
832
  }, {
1097
833
  readonly inputs: readonly [];
@@ -1099,47 +835,59 @@ declare const contractAbis: {
1099
835
  readonly type: "error";
1100
836
  }, {
1101
837
  readonly inputs: readonly [{
838
+ readonly internalType: "bytes32";
839
+ readonly name: "serverId";
840
+ readonly type: "bytes32";
841
+ }, {
1102
842
  readonly internalType: "address";
1103
- readonly name: "serverOwner";
843
+ readonly name: "claimed";
1104
844
  readonly type: "address";
1105
845
  }, {
1106
846
  readonly internalType: "address";
1107
- readonly name: "requestor";
847
+ readonly name: "actual";
1108
848
  readonly type: "address";
1109
849
  }];
1110
850
  readonly name: "NotServerOwner";
1111
851
  readonly type: "error";
1112
852
  }, {
1113
- readonly inputs: readonly [];
1114
- readonly name: "ServerAlreadyRegistered";
1115
- readonly type: "error";
1116
- }, {
1117
- readonly inputs: readonly [];
1118
- readonly name: "ServerAlreadyTrusted";
853
+ readonly inputs: readonly [{
854
+ readonly internalType: "address";
855
+ readonly name: "claimed";
856
+ readonly type: "address";
857
+ }, {
858
+ readonly internalType: "address";
859
+ readonly name: "recovered";
860
+ readonly type: "address";
861
+ }];
862
+ readonly name: "OwnerMismatch";
1119
863
  readonly type: "error";
1120
864
  }, {
1121
- readonly inputs: readonly [];
1122
- readonly name: "ServerAlreadyUntrusted";
865
+ readonly inputs: readonly [{
866
+ readonly internalType: "address";
867
+ readonly name: "serverAddress";
868
+ readonly type: "address";
869
+ }];
870
+ readonly name: "ServerAlreadyRegistered";
1123
871
  readonly type: "error";
1124
872
  }, {
1125
- readonly inputs: readonly [];
873
+ readonly inputs: readonly [{
874
+ readonly internalType: "bytes32";
875
+ readonly name: "serverId";
876
+ readonly type: "bytes32";
877
+ }];
1126
878
  readonly name: "ServerNotFound";
1127
879
  readonly type: "error";
1128
- }, {
1129
- readonly inputs: readonly [];
1130
- readonly name: "ServerNotTrusted";
1131
- readonly type: "error";
1132
880
  }, {
1133
881
  readonly inputs: readonly [{
1134
- readonly internalType: "string";
1135
- readonly name: "existingUrl";
1136
- readonly type: "string";
882
+ readonly internalType: "bytes32";
883
+ readonly name: "expected";
884
+ readonly type: "bytes32";
1137
885
  }, {
1138
- readonly internalType: "string";
1139
- readonly name: "providedUrl";
1140
- readonly type: "string";
886
+ readonly internalType: "bytes32";
887
+ readonly name: "provided";
888
+ readonly type: "bytes32";
1141
889
  }];
1142
- readonly name: "ServerUrlMismatch";
890
+ readonly name: "StaleServerId";
1143
891
  readonly type: "error";
1144
892
  }, {
1145
893
  readonly inputs: readonly [];
@@ -1246,76 +994,51 @@ declare const contractAbis: {
1246
994
  readonly anonymous: false;
1247
995
  readonly inputs: readonly [{
1248
996
  readonly indexed: true;
1249
- readonly internalType: "uint256";
997
+ readonly internalType: "bytes32";
1250
998
  readonly name: "serverId";
1251
- readonly type: "uint256";
999
+ readonly type: "bytes32";
1252
1000
  }, {
1253
1001
  readonly indexed: true;
1254
1002
  readonly internalType: "address";
1255
- readonly name: "owner";
1003
+ readonly name: "ownerAddress";
1256
1004
  readonly type: "address";
1257
1005
  }, {
1258
1006
  readonly indexed: true;
1259
1007
  readonly internalType: "address";
1260
1008
  readonly name: "serverAddress";
1261
1009
  readonly type: "address";
1262
- }, {
1263
- readonly indexed: false;
1264
- readonly internalType: "string";
1265
- readonly name: "publicKey";
1266
- readonly type: "string";
1267
- }, {
1268
- readonly indexed: false;
1269
- readonly internalType: "string";
1270
- readonly name: "url";
1271
- readonly type: "string";
1272
1010
  }];
1273
- readonly name: "ServerRegistered";
1011
+ readonly name: "ServerDeregistered";
1274
1012
  readonly type: "event";
1275
1013
  }, {
1276
1014
  readonly anonymous: false;
1277
1015
  readonly inputs: readonly [{
1278
1016
  readonly indexed: true;
1279
- readonly internalType: "address";
1280
- readonly name: "user";
1281
- readonly type: "address";
1282
- }, {
1283
- readonly indexed: true;
1284
- readonly internalType: "uint256";
1017
+ readonly internalType: "bytes32";
1285
1018
  readonly name: "serverId";
1286
- readonly type: "uint256";
1287
- }];
1288
- readonly name: "ServerTrusted";
1289
- readonly type: "event";
1290
- }, {
1291
- readonly anonymous: false;
1292
- readonly inputs: readonly [{
1019
+ readonly type: "bytes32";
1020
+ }, {
1293
1021
  readonly indexed: true;
1294
1022
  readonly internalType: "address";
1295
- readonly name: "user";
1023
+ readonly name: "ownerAddress";
1296
1024
  readonly type: "address";
1297
1025
  }, {
1298
1026
  readonly indexed: true;
1299
- readonly internalType: "uint256";
1300
- readonly name: "serverId";
1301
- readonly type: "uint256";
1302
- }];
1303
- readonly name: "ServerUntrusted";
1304
- readonly type: "event";
1305
- }, {
1306
- readonly anonymous: false;
1307
- readonly inputs: readonly [{
1308
- readonly indexed: true;
1309
- readonly internalType: "uint256";
1310
- readonly name: "serverId";
1311
- readonly type: "uint256";
1027
+ readonly internalType: "address";
1028
+ readonly name: "serverAddress";
1029
+ readonly type: "address";
1312
1030
  }, {
1313
1031
  readonly indexed: false;
1314
1032
  readonly internalType: "string";
1315
- readonly name: "url";
1033
+ readonly name: "publicKey";
1034
+ readonly type: "string";
1035
+ }, {
1036
+ readonly indexed: false;
1037
+ readonly internalType: "string";
1038
+ readonly name: "serverUrl";
1316
1039
  readonly type: "string";
1317
1040
  }];
1318
- readonly name: "ServerUpdated";
1041
+ readonly name: "ServerRegistered";
1319
1042
  readonly type: "event";
1320
1043
  }, {
1321
1044
  readonly anonymous: false;
@@ -1359,7 +1082,17 @@ declare const contractAbis: {
1359
1082
  readonly type: "function";
1360
1083
  }, {
1361
1084
  readonly inputs: readonly [];
1362
- readonly name: "PERMISSION_MANAGER_ROLE";
1085
+ readonly name: "SERVER_DEREGISTRATION_TYPEHASH";
1086
+ readonly outputs: readonly [{
1087
+ readonly internalType: "bytes32";
1088
+ readonly name: "";
1089
+ readonly type: "bytes32";
1090
+ }];
1091
+ readonly stateMutability: "view";
1092
+ readonly type: "function";
1093
+ }, {
1094
+ readonly inputs: readonly [];
1095
+ readonly name: "SERVER_REGISTRATION_TYPEHASH";
1363
1096
  readonly outputs: readonly [{
1364
1097
  readonly internalType: "bytes32";
1365
1098
  readonly name: "";
@@ -1380,92 +1113,80 @@ declare const contractAbis: {
1380
1113
  }, {
1381
1114
  readonly inputs: readonly [{
1382
1115
  readonly internalType: "address";
1383
- readonly name: "ownerAddress";
1116
+ readonly name: "serverAddress";
1384
1117
  readonly type: "address";
1385
- }, {
1386
- readonly components: readonly [{
1387
- readonly internalType: "address";
1388
- readonly name: "serverAddress";
1389
- readonly type: "address";
1390
- }, {
1391
- readonly internalType: "string";
1392
- readonly name: "publicKey";
1393
- readonly type: "string";
1394
- }, {
1395
- readonly internalType: "string";
1396
- readonly name: "serverUrl";
1397
- readonly type: "string";
1398
- }];
1399
- readonly internalType: "struct IDataPortabilityServers.AddServerInput";
1400
- readonly name: "addServerInput";
1401
- readonly type: "tuple";
1402
1118
  }];
1403
- readonly name: "addAndTrustServerByManager";
1404
- readonly outputs: readonly [];
1405
- readonly stateMutability: "nonpayable";
1119
+ readonly name: "activeServerId";
1120
+ readonly outputs: readonly [{
1121
+ readonly internalType: "bytes32";
1122
+ readonly name: "";
1123
+ readonly type: "bytes32";
1124
+ }];
1125
+ readonly stateMutability: "view";
1406
1126
  readonly type: "function";
1407
1127
  }, {
1408
1128
  readonly inputs: readonly [{
1409
- readonly components: readonly [{
1410
- readonly internalType: "uint256";
1411
- readonly name: "nonce";
1412
- readonly type: "uint256";
1413
- }, {
1414
- readonly internalType: "address";
1415
- readonly name: "serverAddress";
1416
- readonly type: "address";
1417
- }, {
1418
- readonly internalType: "string";
1419
- readonly name: "publicKey";
1420
- readonly type: "string";
1421
- }, {
1422
- readonly internalType: "string";
1423
- readonly name: "serverUrl";
1424
- readonly type: "string";
1425
- }];
1426
- readonly internalType: "struct IDataPortabilityServers.AddServerWithSignatureInput";
1427
- readonly name: "addServerInput";
1428
- readonly type: "tuple";
1129
+ readonly internalType: "address";
1130
+ readonly name: "serverAddress";
1131
+ readonly type: "address";
1429
1132
  }, {
1430
- readonly internalType: "bytes";
1431
- readonly name: "signature";
1432
- readonly type: "bytes";
1133
+ readonly internalType: "string";
1134
+ readonly name: "publicKey";
1135
+ readonly type: "string";
1136
+ }, {
1137
+ readonly internalType: "string";
1138
+ readonly name: "serverUrl";
1139
+ readonly type: "string";
1433
1140
  }];
1434
- readonly name: "addAndTrustServerWithSignature";
1435
- readonly outputs: readonly [];
1436
- readonly stateMutability: "nonpayable";
1141
+ readonly name: "computeServerId";
1142
+ readonly outputs: readonly [{
1143
+ readonly internalType: "bytes32";
1144
+ readonly name: "";
1145
+ readonly type: "bytes32";
1146
+ }];
1147
+ readonly stateMutability: "view";
1437
1148
  readonly type: "function";
1438
1149
  }, {
1439
1150
  readonly inputs: readonly [{
1440
1151
  readonly components: readonly [{
1441
- readonly internalType: "uint256";
1442
- readonly name: "nonce";
1443
- readonly type: "uint256";
1152
+ readonly internalType: "address";
1153
+ readonly name: "ownerAddress";
1154
+ readonly type: "address";
1444
1155
  }, {
1445
1156
  readonly internalType: "address";
1446
1157
  readonly name: "serverAddress";
1447
1158
  readonly type: "address";
1448
1159
  }, {
1449
- readonly internalType: "string";
1450
- readonly name: "publicKey";
1451
- readonly type: "string";
1160
+ readonly internalType: "bytes32";
1161
+ readonly name: "serverId";
1162
+ readonly type: "bytes32";
1452
1163
  }, {
1453
- readonly internalType: "string";
1454
- readonly name: "serverUrl";
1455
- readonly type: "string";
1164
+ readonly internalType: "uint256";
1165
+ readonly name: "deadline";
1166
+ readonly type: "uint256";
1456
1167
  }];
1457
- readonly internalType: "struct IDataPortabilityServers.AddServerWithSignatureInput";
1458
- readonly name: "addServerInput";
1168
+ readonly internalType: "struct IDataPortabilityServersV2.ServerDeregistration";
1169
+ readonly name: "input";
1459
1170
  readonly type: "tuple";
1460
1171
  }, {
1461
1172
  readonly internalType: "bytes";
1462
1173
  readonly name: "signature";
1463
1174
  readonly type: "bytes";
1464
1175
  }];
1465
- readonly name: "addServerWithSignature";
1176
+ readonly name: "deregisterServerWithSignature";
1466
1177
  readonly outputs: readonly [];
1467
1178
  readonly stateMutability: "nonpayable";
1468
1179
  readonly type: "function";
1180
+ }, {
1181
+ readonly inputs: readonly [];
1182
+ readonly name: "domainSeparator";
1183
+ readonly outputs: readonly [{
1184
+ readonly internalType: "bytes32";
1185
+ readonly name: "";
1186
+ readonly type: "bytes32";
1187
+ }];
1188
+ readonly stateMutability: "view";
1189
+ readonly type: "function";
1469
1190
  }, {
1470
1191
  readonly inputs: readonly [];
1471
1192
  readonly name: "eip712Domain";
@@ -1500,6 +1221,49 @@ declare const contractAbis: {
1500
1221
  }];
1501
1222
  readonly stateMutability: "view";
1502
1223
  readonly type: "function";
1224
+ }, {
1225
+ readonly inputs: readonly [{
1226
+ readonly internalType: "address";
1227
+ readonly name: "serverAddress";
1228
+ readonly type: "address";
1229
+ }];
1230
+ readonly name: "getActiveServerByAddress";
1231
+ readonly outputs: readonly [{
1232
+ readonly components: readonly [{
1233
+ readonly internalType: "bytes32";
1234
+ readonly name: "id";
1235
+ readonly type: "bytes32";
1236
+ }, {
1237
+ readonly internalType: "address";
1238
+ readonly name: "ownerAddress";
1239
+ readonly type: "address";
1240
+ }, {
1241
+ readonly internalType: "address";
1242
+ readonly name: "serverAddress";
1243
+ readonly type: "address";
1244
+ }, {
1245
+ readonly internalType: "string";
1246
+ readonly name: "publicKey";
1247
+ readonly type: "string";
1248
+ }, {
1249
+ readonly internalType: "string";
1250
+ readonly name: "serverUrl";
1251
+ readonly type: "string";
1252
+ }, {
1253
+ readonly internalType: "uint256";
1254
+ readonly name: "registeredAtBlock";
1255
+ readonly type: "uint256";
1256
+ }, {
1257
+ readonly internalType: "uint256";
1258
+ readonly name: "revokedAtBlock";
1259
+ readonly type: "uint256";
1260
+ }];
1261
+ readonly internalType: "struct IDataPortabilityServersV2.ServerInfo";
1262
+ readonly name: "";
1263
+ readonly type: "tuple";
1264
+ }];
1265
+ readonly stateMutability: "view";
1266
+ readonly type: "function";
1503
1267
  }, {
1504
1268
  readonly inputs: readonly [{
1505
1269
  readonly internalType: "bytes32";
@@ -1514,6 +1278,49 @@ declare const contractAbis: {
1514
1278
  }];
1515
1279
  readonly stateMutability: "view";
1516
1280
  readonly type: "function";
1281
+ }, {
1282
+ readonly inputs: readonly [{
1283
+ readonly internalType: "bytes32";
1284
+ readonly name: "serverId";
1285
+ readonly type: "bytes32";
1286
+ }];
1287
+ readonly name: "getServer";
1288
+ readonly outputs: readonly [{
1289
+ readonly components: readonly [{
1290
+ readonly internalType: "bytes32";
1291
+ readonly name: "id";
1292
+ readonly type: "bytes32";
1293
+ }, {
1294
+ readonly internalType: "address";
1295
+ readonly name: "ownerAddress";
1296
+ readonly type: "address";
1297
+ }, {
1298
+ readonly internalType: "address";
1299
+ readonly name: "serverAddress";
1300
+ readonly type: "address";
1301
+ }, {
1302
+ readonly internalType: "string";
1303
+ readonly name: "publicKey";
1304
+ readonly type: "string";
1305
+ }, {
1306
+ readonly internalType: "string";
1307
+ readonly name: "serverUrl";
1308
+ readonly type: "string";
1309
+ }, {
1310
+ readonly internalType: "uint256";
1311
+ readonly name: "registeredAtBlock";
1312
+ readonly type: "uint256";
1313
+ }, {
1314
+ readonly internalType: "uint256";
1315
+ readonly name: "revokedAtBlock";
1316
+ readonly type: "uint256";
1317
+ }];
1318
+ readonly internalType: "struct IDataPortabilityServersV2.ServerInfo";
1319
+ readonly name: "";
1320
+ readonly type: "tuple";
1321
+ }];
1322
+ readonly stateMutability: "view";
1323
+ readonly type: "function";
1517
1324
  }, {
1518
1325
  readonly inputs: readonly [{
1519
1326
  readonly internalType: "bytes32";
@@ -1574,6 +1381,49 @@ declare const contractAbis: {
1574
1381
  }];
1575
1382
  readonly stateMutability: "view";
1576
1383
  readonly type: "function";
1384
+ }, {
1385
+ readonly inputs: readonly [{
1386
+ readonly internalType: "address";
1387
+ readonly name: "ownerAddress";
1388
+ readonly type: "address";
1389
+ }];
1390
+ readonly name: "ownerServers";
1391
+ readonly outputs: readonly [{
1392
+ readonly components: readonly [{
1393
+ readonly internalType: "bytes32";
1394
+ readonly name: "id";
1395
+ readonly type: "bytes32";
1396
+ }, {
1397
+ readonly internalType: "address";
1398
+ readonly name: "ownerAddress";
1399
+ readonly type: "address";
1400
+ }, {
1401
+ readonly internalType: "address";
1402
+ readonly name: "serverAddress";
1403
+ readonly type: "address";
1404
+ }, {
1405
+ readonly internalType: "string";
1406
+ readonly name: "publicKey";
1407
+ readonly type: "string";
1408
+ }, {
1409
+ readonly internalType: "string";
1410
+ readonly name: "serverUrl";
1411
+ readonly type: "string";
1412
+ }, {
1413
+ readonly internalType: "uint256";
1414
+ readonly name: "registeredAtBlock";
1415
+ readonly type: "uint256";
1416
+ }, {
1417
+ readonly internalType: "uint256";
1418
+ readonly name: "revokedAtBlock";
1419
+ readonly type: "uint256";
1420
+ }];
1421
+ readonly internalType: "struct IDataPortabilityServersV2.ServerInfo[]";
1422
+ readonly name: "";
1423
+ readonly type: "tuple[]";
1424
+ }];
1425
+ readonly stateMutability: "view";
1426
+ readonly type: "function";
1577
1427
  }, {
1578
1428
  readonly inputs: readonly [];
1579
1429
  readonly name: "pause";
@@ -1602,61 +1452,9 @@ declare const contractAbis: {
1602
1452
  readonly type: "function";
1603
1453
  }, {
1604
1454
  readonly inputs: readonly [{
1605
- readonly internalType: "bytes32";
1606
- readonly name: "role";
1607
- readonly type: "bytes32";
1608
- }, {
1609
- readonly internalType: "address";
1610
- readonly name: "callerConfirmation";
1611
- readonly type: "address";
1612
- }];
1613
- readonly name: "renounceRole";
1614
- readonly outputs: readonly [];
1615
- readonly stateMutability: "nonpayable";
1616
- readonly type: "function";
1617
- }, {
1618
- readonly inputs: readonly [{
1619
- readonly internalType: "bytes32";
1620
- readonly name: "role";
1621
- readonly type: "bytes32";
1622
- }, {
1623
- readonly internalType: "address";
1624
- readonly name: "account";
1625
- readonly type: "address";
1626
- }];
1627
- readonly name: "revokeRole";
1628
- readonly outputs: readonly [];
1629
- readonly stateMutability: "nonpayable";
1630
- readonly type: "function";
1631
- }, {
1632
- readonly inputs: readonly [{
1633
- readonly internalType: "address";
1634
- readonly name: "serverAddress";
1635
- readonly type: "address";
1636
- }];
1637
- readonly name: "serverAddressToId";
1638
- readonly outputs: readonly [{
1639
- readonly internalType: "uint256";
1640
- readonly name: "serverId";
1641
- readonly type: "uint256";
1642
- }];
1643
- readonly stateMutability: "view";
1644
- readonly type: "function";
1645
- }, {
1646
- readonly inputs: readonly [{
1647
- readonly internalType: "address";
1648
- readonly name: "serverAddress";
1649
- readonly type: "address";
1650
- }];
1651
- readonly name: "serverByAddress";
1652
- readonly outputs: readonly [{
1653
1455
  readonly components: readonly [{
1654
- readonly internalType: "uint256";
1655
- readonly name: "id";
1656
- readonly type: "uint256";
1657
- }, {
1658
1456
  readonly internalType: "address";
1659
- readonly name: "owner";
1457
+ readonly name: "ownerAddress";
1660
1458
  readonly type: "address";
1661
1459
  }, {
1662
1460
  readonly internalType: "address";
@@ -1668,59 +1466,24 @@ declare const contractAbis: {
1668
1466
  readonly type: "string";
1669
1467
  }, {
1670
1468
  readonly internalType: "string";
1671
- readonly name: "url";
1469
+ readonly name: "serverUrl";
1672
1470
  readonly type: "string";
1673
1471
  }];
1674
- readonly internalType: "struct IDataPortabilityServers.ServerInfo";
1675
- readonly name: "";
1472
+ readonly internalType: "struct IDataPortabilityServersV2.ServerRegistration";
1473
+ readonly name: "input";
1676
1474
  readonly type: "tuple";
1475
+ }, {
1476
+ readonly internalType: "bytes";
1477
+ readonly name: "signature";
1478
+ readonly type: "bytes";
1677
1479
  }];
1678
- readonly stateMutability: "view";
1679
- readonly type: "function";
1680
- }, {
1681
- readonly inputs: readonly [{
1682
- readonly internalType: "uint256";
1683
- readonly name: "serverId";
1684
- readonly type: "uint256";
1685
- }];
1686
- readonly name: "servers";
1480
+ readonly name: "registerServerWithSignature";
1687
1481
  readonly outputs: readonly [{
1688
- readonly components: readonly [{
1689
- readonly internalType: "uint256";
1690
- readonly name: "id";
1691
- readonly type: "uint256";
1692
- }, {
1693
- readonly internalType: "address";
1694
- readonly name: "owner";
1695
- readonly type: "address";
1696
- }, {
1697
- readonly internalType: "address";
1698
- readonly name: "serverAddress";
1699
- readonly type: "address";
1700
- }, {
1701
- readonly internalType: "string";
1702
- readonly name: "publicKey";
1703
- readonly type: "string";
1704
- }, {
1705
- readonly internalType: "string";
1706
- readonly name: "url";
1707
- readonly type: "string";
1708
- }];
1709
- readonly internalType: "struct IDataPortabilityServers.ServerInfo";
1710
- readonly name: "";
1711
- readonly type: "tuple";
1712
- }];
1713
- readonly stateMutability: "view";
1714
- readonly type: "function";
1715
- }, {
1716
- readonly inputs: readonly [];
1717
- readonly name: "serversCount";
1718
- readonly outputs: readonly [{
1719
- readonly internalType: "uint256";
1720
- readonly name: "";
1721
- readonly type: "uint256";
1482
+ readonly internalType: "bytes32";
1483
+ readonly name: "serverId";
1484
+ readonly type: "bytes32";
1722
1485
  }];
1723
- readonly stateMutability: "view";
1486
+ readonly stateMutability: "nonpayable";
1724
1487
  readonly type: "function";
1725
1488
  }, {
1726
1489
  readonly inputs: readonly [{
@@ -1728,28 +1491,38 @@ declare const contractAbis: {
1728
1491
  readonly name: "role";
1729
1492
  readonly type: "bytes32";
1730
1493
  }, {
1731
- readonly internalType: "bytes32";
1732
- readonly name: "adminRole";
1733
- readonly type: "bytes32";
1494
+ readonly internalType: "address";
1495
+ readonly name: "callerConfirmation";
1496
+ readonly type: "address";
1734
1497
  }];
1735
- readonly name: "setRoleAdmin";
1498
+ readonly name: "renounceRole";
1736
1499
  readonly outputs: readonly [];
1737
1500
  readonly stateMutability: "nonpayable";
1738
1501
  readonly type: "function";
1739
1502
  }, {
1740
1503
  readonly inputs: readonly [{
1504
+ readonly internalType: "bytes32";
1505
+ readonly name: "role";
1506
+ readonly type: "bytes32";
1507
+ }, {
1741
1508
  readonly internalType: "address";
1742
- readonly name: "userAddress";
1509
+ readonly name: "account";
1743
1510
  readonly type: "address";
1744
- }, {
1745
- readonly internalType: "uint256";
1746
- readonly name: "nonce";
1747
- readonly type: "uint256";
1748
1511
  }];
1749
- readonly name: "setUserNonce";
1512
+ readonly name: "revokeRole";
1750
1513
  readonly outputs: readonly [];
1751
1514
  readonly stateMutability: "nonpayable";
1752
1515
  readonly type: "function";
1516
+ }, {
1517
+ readonly inputs: readonly [];
1518
+ readonly name: "serversCount";
1519
+ readonly outputs: readonly [{
1520
+ readonly internalType: "uint256";
1521
+ readonly name: "";
1522
+ readonly type: "uint256";
1523
+ }];
1524
+ readonly stateMutability: "view";
1525
+ readonly type: "function";
1753
1526
  }, {
1754
1527
  readonly inputs: readonly [{
1755
1528
  readonly internalType: "bytes4";
@@ -1764,53 +1537,6 @@ declare const contractAbis: {
1764
1537
  }];
1765
1538
  readonly stateMutability: "view";
1766
1539
  readonly type: "function";
1767
- }, {
1768
- readonly inputs: readonly [{
1769
- readonly internalType: "uint256";
1770
- readonly name: "serverId";
1771
- readonly type: "uint256";
1772
- }];
1773
- readonly name: "trustServer";
1774
- readonly outputs: readonly [];
1775
- readonly stateMutability: "nonpayable";
1776
- readonly type: "function";
1777
- }, {
1778
- readonly inputs: readonly [{
1779
- readonly internalType: "address";
1780
- readonly name: "userAddress";
1781
- readonly type: "address";
1782
- }, {
1783
- readonly internalType: "uint256";
1784
- readonly name: "serverId";
1785
- readonly type: "uint256";
1786
- }];
1787
- readonly name: "trustServerByManager";
1788
- readonly outputs: readonly [];
1789
- readonly stateMutability: "nonpayable";
1790
- readonly type: "function";
1791
- }, {
1792
- readonly inputs: readonly [{
1793
- readonly components: readonly [{
1794
- readonly internalType: "uint256";
1795
- readonly name: "nonce";
1796
- readonly type: "uint256";
1797
- }, {
1798
- readonly internalType: "uint256";
1799
- readonly name: "serverId";
1800
- readonly type: "uint256";
1801
- }];
1802
- readonly internalType: "struct IDataPortabilityServers.TrustServerInput";
1803
- readonly name: "trustServerInput";
1804
- readonly type: "tuple";
1805
- }, {
1806
- readonly internalType: "bytes";
1807
- readonly name: "signature";
1808
- readonly type: "bytes";
1809
- }];
1810
- readonly name: "trustServerWithSignature";
1811
- readonly outputs: readonly [];
1812
- readonly stateMutability: "nonpayable";
1813
- readonly type: "function";
1814
1540
  }, {
1815
1541
  readonly inputs: readonly [];
1816
1542
  readonly name: "trustedForwarder";
@@ -1827,53 +1553,6 @@ declare const contractAbis: {
1827
1553
  readonly outputs: readonly [];
1828
1554
  readonly stateMutability: "nonpayable";
1829
1555
  readonly type: "function";
1830
- }, {
1831
- readonly inputs: readonly [{
1832
- readonly internalType: "uint256";
1833
- readonly name: "serverId";
1834
- readonly type: "uint256";
1835
- }];
1836
- readonly name: "untrustServer";
1837
- readonly outputs: readonly [];
1838
- readonly stateMutability: "nonpayable";
1839
- readonly type: "function";
1840
- }, {
1841
- readonly inputs: readonly [{
1842
- readonly components: readonly [{
1843
- readonly internalType: "uint256";
1844
- readonly name: "nonce";
1845
- readonly type: "uint256";
1846
- }, {
1847
- readonly internalType: "uint256";
1848
- readonly name: "serverId";
1849
- readonly type: "uint256";
1850
- }];
1851
- readonly internalType: "struct IDataPortabilityServers.UntrustServerInput";
1852
- readonly name: "untrustServerInput";
1853
- readonly type: "tuple";
1854
- }, {
1855
- readonly internalType: "bytes";
1856
- readonly name: "signature";
1857
- readonly type: "bytes";
1858
- }];
1859
- readonly name: "untrustServerWithSignature";
1860
- readonly outputs: readonly [];
1861
- readonly stateMutability: "nonpayable";
1862
- readonly type: "function";
1863
- }, {
1864
- readonly inputs: readonly [{
1865
- readonly internalType: "uint256";
1866
- readonly name: "serverId";
1867
- readonly type: "uint256";
1868
- }, {
1869
- readonly internalType: "string";
1870
- readonly name: "url";
1871
- readonly type: "string";
1872
- }];
1873
- readonly name: "updateServer";
1874
- readonly outputs: readonly [];
1875
- readonly stateMutability: "nonpayable";
1876
- readonly type: "function";
1877
1556
  }, {
1878
1557
  readonly inputs: readonly [{
1879
1558
  readonly internalType: "address";
@@ -1899,172 +1578,14 @@ declare const contractAbis: {
1899
1578
  readonly stateMutability: "payable";
1900
1579
  readonly type: "function";
1901
1580
  }, {
1902
- readonly inputs: readonly [{
1903
- readonly internalType: "address";
1904
- readonly name: "userAddress";
1905
- readonly type: "address";
1906
- }];
1907
- readonly name: "userNonce";
1908
- readonly outputs: readonly [{
1909
- readonly internalType: "uint256";
1910
- readonly name: "";
1911
- readonly type: "uint256";
1912
- }];
1913
- readonly stateMutability: "view";
1914
- readonly type: "function";
1915
- }, {
1916
- readonly inputs: readonly [{
1917
- readonly internalType: "address";
1918
- readonly name: "userAddress";
1919
- readonly type: "address";
1920
- }, {
1921
- readonly internalType: "uint256";
1922
- readonly name: "serverIndex";
1923
- readonly type: "uint256";
1924
- }];
1925
- readonly name: "userServerIdsAt";
1926
- readonly outputs: readonly [{
1927
- readonly internalType: "uint256";
1928
- readonly name: "";
1929
- readonly type: "uint256";
1930
- }];
1931
- readonly stateMutability: "view";
1932
- readonly type: "function";
1933
- }, {
1934
- readonly inputs: readonly [{
1935
- readonly internalType: "address";
1936
- readonly name: "userAddress";
1937
- readonly type: "address";
1938
- }];
1939
- readonly name: "userServerIdsLength";
1940
- readonly outputs: readonly [{
1941
- readonly internalType: "uint256";
1942
- readonly name: "";
1943
- readonly type: "uint256";
1944
- }];
1945
- readonly stateMutability: "view";
1946
- readonly type: "function";
1947
- }, {
1948
- readonly inputs: readonly [{
1949
- readonly internalType: "address";
1950
- readonly name: "userAddress";
1951
- readonly type: "address";
1952
- }];
1953
- readonly name: "userServerIdsValues";
1954
- readonly outputs: readonly [{
1955
- readonly internalType: "uint256[]";
1956
- readonly name: "";
1957
- readonly type: "uint256[]";
1958
- }];
1959
- readonly stateMutability: "view";
1960
- readonly type: "function";
1961
- }, {
1962
- readonly inputs: readonly [{
1963
- readonly internalType: "address";
1964
- readonly name: "userAddress";
1965
- readonly type: "address";
1966
- }];
1967
- readonly name: "userServerValues";
1581
+ readonly inputs: readonly [];
1582
+ readonly name: "version";
1968
1583
  readonly outputs: readonly [{
1969
- readonly components: readonly [{
1970
- readonly internalType: "uint256";
1971
- readonly name: "id";
1972
- readonly type: "uint256";
1973
- }, {
1974
- readonly internalType: "address";
1975
- readonly name: "owner";
1976
- readonly type: "address";
1977
- }, {
1978
- readonly internalType: "address";
1979
- readonly name: "serverAddress";
1980
- readonly type: "address";
1981
- }, {
1982
- readonly internalType: "string";
1983
- readonly name: "publicKey";
1984
- readonly type: "string";
1985
- }, {
1986
- readonly internalType: "string";
1987
- readonly name: "url";
1988
- readonly type: "string";
1989
- }, {
1990
- readonly internalType: "uint256";
1991
- readonly name: "startBlock";
1992
- readonly type: "uint256";
1993
- }, {
1994
- readonly internalType: "uint256";
1995
- readonly name: "endBlock";
1996
- readonly type: "uint256";
1997
- }];
1998
- readonly internalType: "struct IDataPortabilityServers.TrustedServerInfo[]";
1999
- readonly name: "serversInfo";
2000
- readonly type: "tuple[]";
2001
- }];
2002
- readonly stateMutability: "view";
2003
- readonly type: "function";
2004
- }, {
2005
- readonly inputs: readonly [{
2006
- readonly internalType: "address";
2007
- readonly name: "userAddress";
2008
- readonly type: "address";
2009
- }, {
2010
1584
  readonly internalType: "uint256";
2011
- readonly name: "serverId";
2012
- readonly type: "uint256";
2013
- }];
2014
- readonly name: "userServers";
2015
- readonly outputs: readonly [{
2016
- readonly components: readonly [{
2017
- readonly internalType: "uint256";
2018
- readonly name: "id";
2019
- readonly type: "uint256";
2020
- }, {
2021
- readonly internalType: "address";
2022
- readonly name: "owner";
2023
- readonly type: "address";
2024
- }, {
2025
- readonly internalType: "address";
2026
- readonly name: "serverAddress";
2027
- readonly type: "address";
2028
- }, {
2029
- readonly internalType: "string";
2030
- readonly name: "publicKey";
2031
- readonly type: "string";
2032
- }, {
2033
- readonly internalType: "string";
2034
- readonly name: "url";
2035
- readonly type: "string";
2036
- }, {
2037
- readonly internalType: "uint256";
2038
- readonly name: "startBlock";
2039
- readonly type: "uint256";
2040
- }, {
2041
- readonly internalType: "uint256";
2042
- readonly name: "endBlock";
2043
- readonly type: "uint256";
2044
- }];
2045
- readonly internalType: "struct IDataPortabilityServers.TrustedServerInfo";
2046
1585
  readonly name: "";
2047
- readonly type: "tuple";
2048
- }];
2049
- readonly stateMutability: "view";
2050
- readonly type: "function";
2051
- }, {
2052
- readonly inputs: readonly [{
2053
- readonly internalType: "address";
2054
- readonly name: "userAddress";
2055
- readonly type: "address";
2056
- }];
2057
- readonly name: "users";
2058
- readonly outputs: readonly [{
2059
- readonly internalType: "uint256";
2060
- readonly name: "nonce";
2061
1586
  readonly type: "uint256";
2062
- }, {
2063
- readonly internalType: "uint256[]";
2064
- readonly name: "trustedServerIds";
2065
- readonly type: "uint256[]";
2066
1587
  }];
2067
- readonly stateMutability: "view";
1588
+ readonly stateMutability: "pure";
2068
1589
  readonly type: "function";
2069
1590
  }];
2070
1591
  readonly DataPortabilityGrantees: readonly [{