@opendatalabs/vana-sdk 3.20.0 → 3.21.0

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 (45) 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/direct/access-request-client.cjs +100 -2
  6. package/dist/direct/access-request-client.cjs.map +1 -1
  7. package/dist/direct/access-request-client.d.ts +23 -1
  8. package/dist/direct/access-request-client.js +98 -1
  9. package/dist/direct/access-request-client.js.map +1 -1
  10. package/dist/direct/controller.cjs +4 -0
  11. package/dist/direct/controller.cjs.map +1 -1
  12. package/dist/direct/controller.d.ts +10 -1
  13. package/dist/direct/controller.js +6 -1
  14. package/dist/direct/controller.js.map +1 -1
  15. package/dist/direct/types.cjs.map +1 -1
  16. package/dist/direct/types.d.ts +45 -0
  17. package/dist/direct/types.js.map +1 -1
  18. package/dist/generated/abi/DataPortabilityPermissionsImplementation.cjs +146 -512
  19. package/dist/generated/abi/DataPortabilityPermissionsImplementation.cjs.map +1 -1
  20. package/dist/generated/abi/DataPortabilityPermissionsImplementation.d.ts +136 -412
  21. package/dist/generated/abi/DataPortabilityPermissionsImplementation.js +146 -512
  22. package/dist/generated/abi/DataPortabilityPermissionsImplementation.js.map +1 -1
  23. package/dist/generated/abi/DataPortabilityServersImplementation.cjs +391 -654
  24. package/dist/generated/abi/DataPortabilityServersImplementation.cjs.map +1 -1
  25. package/dist/generated/abi/DataPortabilityServersImplementation.d.ts +302 -505
  26. package/dist/generated/abi/DataPortabilityServersImplementation.js +391 -654
  27. package/dist/generated/abi/DataPortabilityServersImplementation.js.map +1 -1
  28. package/dist/generated/abi/index.d.ts +433 -912
  29. package/dist/generated/addresses.cjs +8 -8
  30. package/dist/generated/addresses.cjs.map +1 -1
  31. package/dist/generated/addresses.d.ts +8 -8
  32. package/dist/generated/addresses.js +8 -8
  33. package/dist/generated/addresses.js.map +1 -1
  34. package/dist/index.browser.js +556 -1185
  35. package/dist/index.browser.js.map +2 -2
  36. package/dist/index.node.cjs +556 -1185
  37. package/dist/index.node.cjs.map +2 -2
  38. package/dist/index.node.js +556 -1185
  39. package/dist/index.node.js.map +2 -2
  40. package/dist/server.cjs +4 -2
  41. package/dist/server.cjs.map +1 -1
  42. package/dist/server.d.ts +2 -2
  43. package/dist/server.js +4 -2
  44. package/dist/server.js.map +1 -1
  45. package/package.json +1 -1
@@ -26,6 +26,26 @@ export declare const DataPortabilityServersABI: readonly [{
26
26
  }];
27
27
  readonly name: "AddressEmptyCode";
28
28
  readonly type: "error";
29
+ }, {
30
+ readonly inputs: readonly [{
31
+ readonly internalType: "bytes32";
32
+ readonly name: "serverId";
33
+ readonly type: "bytes32";
34
+ }];
35
+ readonly name: "AlreadyRevoked";
36
+ readonly type: "error";
37
+ }, {
38
+ readonly inputs: readonly [{
39
+ readonly internalType: "uint256";
40
+ readonly name: "deadline";
41
+ readonly type: "uint256";
42
+ }, {
43
+ readonly internalType: "uint256";
44
+ readonly name: "currentTime";
45
+ readonly type: "uint256";
46
+ }];
47
+ readonly name: "DeadlineExpired";
48
+ readonly type: "error";
29
49
  }, {
30
50
  readonly inputs: readonly [];
31
51
  readonly name: "ECDSAInvalidSignature";
@@ -83,16 +103,8 @@ export declare const DataPortabilityServersABI: readonly [{
83
103
  readonly name: "InvalidInitialization";
84
104
  readonly type: "error";
85
105
  }, {
86
- readonly inputs: readonly [{
87
- readonly internalType: "uint256";
88
- readonly name: "expectedNonce";
89
- readonly type: "uint256";
90
- }, {
91
- readonly internalType: "uint256";
92
- readonly name: "providedNonce";
93
- readonly type: "uint256";
94
- }];
95
- readonly name: "InvalidNonce";
106
+ readonly inputs: readonly [];
107
+ readonly name: "InvalidSignature";
96
108
  readonly type: "error";
97
109
  }, {
98
110
  readonly inputs: readonly [];
@@ -100,47 +112,59 @@ export declare const DataPortabilityServersABI: readonly [{
100
112
  readonly type: "error";
101
113
  }, {
102
114
  readonly inputs: readonly [{
115
+ readonly internalType: "bytes32";
116
+ readonly name: "serverId";
117
+ readonly type: "bytes32";
118
+ }, {
103
119
  readonly internalType: "address";
104
- readonly name: "serverOwner";
120
+ readonly name: "claimed";
105
121
  readonly type: "address";
106
122
  }, {
107
123
  readonly internalType: "address";
108
- readonly name: "requestor";
124
+ readonly name: "actual";
109
125
  readonly type: "address";
110
126
  }];
111
127
  readonly name: "NotServerOwner";
112
128
  readonly type: "error";
113
129
  }, {
114
- readonly inputs: readonly [];
115
- readonly name: "ServerAlreadyRegistered";
116
- readonly type: "error";
117
- }, {
118
- readonly inputs: readonly [];
119
- readonly name: "ServerAlreadyTrusted";
130
+ readonly inputs: readonly [{
131
+ readonly internalType: "address";
132
+ readonly name: "claimed";
133
+ readonly type: "address";
134
+ }, {
135
+ readonly internalType: "address";
136
+ readonly name: "recovered";
137
+ readonly type: "address";
138
+ }];
139
+ readonly name: "OwnerMismatch";
120
140
  readonly type: "error";
121
141
  }, {
122
- readonly inputs: readonly [];
123
- readonly name: "ServerAlreadyUntrusted";
142
+ readonly inputs: readonly [{
143
+ readonly internalType: "address";
144
+ readonly name: "serverAddress";
145
+ readonly type: "address";
146
+ }];
147
+ readonly name: "ServerAlreadyRegistered";
124
148
  readonly type: "error";
125
149
  }, {
126
- readonly inputs: readonly [];
150
+ readonly inputs: readonly [{
151
+ readonly internalType: "bytes32";
152
+ readonly name: "serverId";
153
+ readonly type: "bytes32";
154
+ }];
127
155
  readonly name: "ServerNotFound";
128
156
  readonly type: "error";
129
- }, {
130
- readonly inputs: readonly [];
131
- readonly name: "ServerNotTrusted";
132
- readonly type: "error";
133
157
  }, {
134
158
  readonly inputs: readonly [{
135
- readonly internalType: "string";
136
- readonly name: "existingUrl";
137
- readonly type: "string";
159
+ readonly internalType: "bytes32";
160
+ readonly name: "expected";
161
+ readonly type: "bytes32";
138
162
  }, {
139
- readonly internalType: "string";
140
- readonly name: "providedUrl";
141
- readonly type: "string";
163
+ readonly internalType: "bytes32";
164
+ readonly name: "provided";
165
+ readonly type: "bytes32";
142
166
  }];
143
- readonly name: "ServerUrlMismatch";
167
+ readonly name: "StaleServerId";
144
168
  readonly type: "error";
145
169
  }, {
146
170
  readonly inputs: readonly [];
@@ -247,76 +271,51 @@ export declare const DataPortabilityServersABI: readonly [{
247
271
  readonly anonymous: false;
248
272
  readonly inputs: readonly [{
249
273
  readonly indexed: true;
250
- readonly internalType: "uint256";
274
+ readonly internalType: "bytes32";
251
275
  readonly name: "serverId";
252
- readonly type: "uint256";
276
+ readonly type: "bytes32";
253
277
  }, {
254
278
  readonly indexed: true;
255
279
  readonly internalType: "address";
256
- readonly name: "owner";
280
+ readonly name: "ownerAddress";
257
281
  readonly type: "address";
258
282
  }, {
259
283
  readonly indexed: true;
260
284
  readonly internalType: "address";
261
285
  readonly name: "serverAddress";
262
286
  readonly type: "address";
263
- }, {
264
- readonly indexed: false;
265
- readonly internalType: "string";
266
- readonly name: "publicKey";
267
- readonly type: "string";
268
- }, {
269
- readonly indexed: false;
270
- readonly internalType: "string";
271
- readonly name: "url";
272
- readonly type: "string";
273
287
  }];
274
- readonly name: "ServerRegistered";
288
+ readonly name: "ServerDeregistered";
275
289
  readonly type: "event";
276
290
  }, {
277
291
  readonly anonymous: false;
278
292
  readonly inputs: readonly [{
293
+ readonly indexed: true;
294
+ readonly internalType: "bytes32";
295
+ readonly name: "serverId";
296
+ readonly type: "bytes32";
297
+ }, {
279
298
  readonly indexed: true;
280
299
  readonly internalType: "address";
281
- readonly name: "user";
300
+ readonly name: "ownerAddress";
282
301
  readonly type: "address";
283
302
  }, {
284
- readonly indexed: true;
285
- readonly internalType: "uint256";
286
- readonly name: "serverId";
287
- readonly type: "uint256";
288
- }];
289
- readonly name: "ServerTrusted";
290
- readonly type: "event";
291
- }, {
292
- readonly anonymous: false;
293
- readonly inputs: readonly [{
294
303
  readonly indexed: true;
295
304
  readonly internalType: "address";
296
- readonly name: "user";
305
+ readonly name: "serverAddress";
297
306
  readonly type: "address";
298
307
  }, {
299
- readonly indexed: true;
300
- readonly internalType: "uint256";
301
- readonly name: "serverId";
302
- readonly type: "uint256";
303
- }];
304
- readonly name: "ServerUntrusted";
305
- readonly type: "event";
306
- }, {
307
- readonly anonymous: false;
308
- readonly inputs: readonly [{
309
- readonly indexed: true;
310
- readonly internalType: "uint256";
311
- readonly name: "serverId";
312
- readonly type: "uint256";
308
+ readonly indexed: false;
309
+ readonly internalType: "string";
310
+ readonly name: "publicKey";
311
+ readonly type: "string";
313
312
  }, {
314
313
  readonly indexed: false;
315
314
  readonly internalType: "string";
316
- readonly name: "url";
315
+ readonly name: "serverUrl";
317
316
  readonly type: "string";
318
317
  }];
319
- readonly name: "ServerUpdated";
318
+ readonly name: "ServerRegistered";
320
319
  readonly type: "event";
321
320
  }, {
322
321
  readonly anonymous: false;
@@ -360,7 +359,17 @@ export declare const DataPortabilityServersABI: readonly [{
360
359
  readonly type: "function";
361
360
  }, {
362
361
  readonly inputs: readonly [];
363
- readonly name: "PERMISSION_MANAGER_ROLE";
362
+ readonly name: "SERVER_DEREGISTRATION_TYPEHASH";
363
+ readonly outputs: readonly [{
364
+ readonly internalType: "bytes32";
365
+ readonly name: "";
366
+ readonly type: "bytes32";
367
+ }];
368
+ readonly stateMutability: "view";
369
+ readonly type: "function";
370
+ }, {
371
+ readonly inputs: readonly [];
372
+ readonly name: "SERVER_REGISTRATION_TYPEHASH";
364
373
  readonly outputs: readonly [{
365
374
  readonly internalType: "bytes32";
366
375
  readonly name: "";
@@ -381,92 +390,80 @@ export declare const DataPortabilityServersABI: readonly [{
381
390
  }, {
382
391
  readonly inputs: readonly [{
383
392
  readonly internalType: "address";
384
- readonly name: "ownerAddress";
393
+ readonly name: "serverAddress";
385
394
  readonly type: "address";
386
- }, {
387
- readonly components: readonly [{
388
- readonly internalType: "address";
389
- readonly name: "serverAddress";
390
- readonly type: "address";
391
- }, {
392
- readonly internalType: "string";
393
- readonly name: "publicKey";
394
- readonly type: "string";
395
- }, {
396
- readonly internalType: "string";
397
- readonly name: "serverUrl";
398
- readonly type: "string";
399
- }];
400
- readonly internalType: "struct IDataPortabilityServers.AddServerInput";
401
- readonly name: "addServerInput";
402
- readonly type: "tuple";
403
395
  }];
404
- readonly name: "addAndTrustServerByManager";
405
- readonly outputs: readonly [];
406
- readonly stateMutability: "nonpayable";
396
+ readonly name: "activeServerId";
397
+ readonly outputs: readonly [{
398
+ readonly internalType: "bytes32";
399
+ readonly name: "";
400
+ readonly type: "bytes32";
401
+ }];
402
+ readonly stateMutability: "view";
407
403
  readonly type: "function";
408
404
  }, {
409
405
  readonly inputs: readonly [{
410
- readonly components: readonly [{
411
- readonly internalType: "uint256";
412
- readonly name: "nonce";
413
- readonly type: "uint256";
414
- }, {
415
- readonly internalType: "address";
416
- readonly name: "serverAddress";
417
- readonly type: "address";
418
- }, {
419
- readonly internalType: "string";
420
- readonly name: "publicKey";
421
- readonly type: "string";
422
- }, {
423
- readonly internalType: "string";
424
- readonly name: "serverUrl";
425
- readonly type: "string";
426
- }];
427
- readonly internalType: "struct IDataPortabilityServers.AddServerWithSignatureInput";
428
- readonly name: "addServerInput";
429
- readonly type: "tuple";
406
+ readonly internalType: "address";
407
+ readonly name: "serverAddress";
408
+ readonly type: "address";
430
409
  }, {
431
- readonly internalType: "bytes";
432
- readonly name: "signature";
433
- readonly type: "bytes";
410
+ readonly internalType: "string";
411
+ readonly name: "publicKey";
412
+ readonly type: "string";
413
+ }, {
414
+ readonly internalType: "string";
415
+ readonly name: "serverUrl";
416
+ readonly type: "string";
434
417
  }];
435
- readonly name: "addAndTrustServerWithSignature";
436
- readonly outputs: readonly [];
437
- readonly stateMutability: "nonpayable";
418
+ readonly name: "computeServerId";
419
+ readonly outputs: readonly [{
420
+ readonly internalType: "bytes32";
421
+ readonly name: "";
422
+ readonly type: "bytes32";
423
+ }];
424
+ readonly stateMutability: "view";
438
425
  readonly type: "function";
439
426
  }, {
440
427
  readonly inputs: readonly [{
441
428
  readonly components: readonly [{
442
- readonly internalType: "uint256";
443
- readonly name: "nonce";
444
- readonly type: "uint256";
429
+ readonly internalType: "address";
430
+ readonly name: "ownerAddress";
431
+ readonly type: "address";
445
432
  }, {
446
433
  readonly internalType: "address";
447
434
  readonly name: "serverAddress";
448
435
  readonly type: "address";
449
436
  }, {
450
- readonly internalType: "string";
451
- readonly name: "publicKey";
452
- readonly type: "string";
437
+ readonly internalType: "bytes32";
438
+ readonly name: "serverId";
439
+ readonly type: "bytes32";
453
440
  }, {
454
- readonly internalType: "string";
455
- readonly name: "serverUrl";
456
- readonly type: "string";
441
+ readonly internalType: "uint256";
442
+ readonly name: "deadline";
443
+ readonly type: "uint256";
457
444
  }];
458
- readonly internalType: "struct IDataPortabilityServers.AddServerWithSignatureInput";
459
- readonly name: "addServerInput";
445
+ readonly internalType: "struct IDataPortabilityServersV2.ServerDeregistration";
446
+ readonly name: "input";
460
447
  readonly type: "tuple";
461
448
  }, {
462
449
  readonly internalType: "bytes";
463
450
  readonly name: "signature";
464
451
  readonly type: "bytes";
465
452
  }];
466
- readonly name: "addServerWithSignature";
453
+ readonly name: "deregisterServerWithSignature";
467
454
  readonly outputs: readonly [];
468
455
  readonly stateMutability: "nonpayable";
469
456
  readonly type: "function";
457
+ }, {
458
+ readonly inputs: readonly [];
459
+ readonly name: "domainSeparator";
460
+ readonly outputs: readonly [{
461
+ readonly internalType: "bytes32";
462
+ readonly name: "";
463
+ readonly type: "bytes32";
464
+ }];
465
+ readonly stateMutability: "view";
466
+ readonly type: "function";
470
467
  }, {
471
468
  readonly inputs: readonly [];
472
469
  readonly name: "eip712Domain";
@@ -503,15 +500,44 @@ export declare const DataPortabilityServersABI: readonly [{
503
500
  readonly type: "function";
504
501
  }, {
505
502
  readonly inputs: readonly [{
506
- readonly internalType: "bytes32";
507
- readonly name: "role";
508
- readonly type: "bytes32";
503
+ readonly internalType: "address";
504
+ readonly name: "serverAddress";
505
+ readonly type: "address";
509
506
  }];
510
- readonly name: "getRoleAdmin";
507
+ readonly name: "getActiveServerByAddress";
511
508
  readonly outputs: readonly [{
512
- readonly internalType: "bytes32";
509
+ readonly components: readonly [{
510
+ readonly internalType: "bytes32";
511
+ readonly name: "id";
512
+ readonly type: "bytes32";
513
+ }, {
514
+ readonly internalType: "address";
515
+ readonly name: "ownerAddress";
516
+ readonly type: "address";
517
+ }, {
518
+ readonly internalType: "address";
519
+ readonly name: "serverAddress";
520
+ readonly type: "address";
521
+ }, {
522
+ readonly internalType: "string";
523
+ readonly name: "publicKey";
524
+ readonly type: "string";
525
+ }, {
526
+ readonly internalType: "string";
527
+ readonly name: "serverUrl";
528
+ readonly type: "string";
529
+ }, {
530
+ readonly internalType: "uint256";
531
+ readonly name: "registeredAtBlock";
532
+ readonly type: "uint256";
533
+ }, {
534
+ readonly internalType: "uint256";
535
+ readonly name: "revokedAtBlock";
536
+ readonly type: "uint256";
537
+ }];
538
+ readonly internalType: "struct IDataPortabilityServersV2.ServerInfo";
513
539
  readonly name: "";
514
- readonly type: "bytes32";
540
+ readonly type: "tuple";
515
541
  }];
516
542
  readonly stateMutability: "view";
517
543
  readonly type: "function";
@@ -520,70 +546,83 @@ export declare const DataPortabilityServersABI: readonly [{
520
546
  readonly internalType: "bytes32";
521
547
  readonly name: "role";
522
548
  readonly type: "bytes32";
523
- }, {
524
- readonly internalType: "address";
525
- readonly name: "account";
526
- readonly type: "address";
527
549
  }];
528
- readonly name: "grantRole";
529
- readonly outputs: readonly [];
530
- readonly stateMutability: "nonpayable";
550
+ readonly name: "getRoleAdmin";
551
+ readonly outputs: readonly [{
552
+ readonly internalType: "bytes32";
553
+ readonly name: "";
554
+ readonly type: "bytes32";
555
+ }];
556
+ readonly stateMutability: "view";
531
557
  readonly type: "function";
532
558
  }, {
533
559
  readonly inputs: readonly [{
534
560
  readonly internalType: "bytes32";
535
- readonly name: "role";
561
+ readonly name: "serverId";
536
562
  readonly type: "bytes32";
537
- }, {
538
- readonly internalType: "address";
539
- readonly name: "account";
540
- readonly type: "address";
541
563
  }];
542
- readonly name: "hasRole";
564
+ readonly name: "getServer";
543
565
  readonly outputs: readonly [{
544
- readonly internalType: "bool";
566
+ readonly components: readonly [{
567
+ readonly internalType: "bytes32";
568
+ readonly name: "id";
569
+ readonly type: "bytes32";
570
+ }, {
571
+ readonly internalType: "address";
572
+ readonly name: "ownerAddress";
573
+ readonly type: "address";
574
+ }, {
575
+ readonly internalType: "address";
576
+ readonly name: "serverAddress";
577
+ readonly type: "address";
578
+ }, {
579
+ readonly internalType: "string";
580
+ readonly name: "publicKey";
581
+ readonly type: "string";
582
+ }, {
583
+ readonly internalType: "string";
584
+ readonly name: "serverUrl";
585
+ readonly type: "string";
586
+ }, {
587
+ readonly internalType: "uint256";
588
+ readonly name: "registeredAtBlock";
589
+ readonly type: "uint256";
590
+ }, {
591
+ readonly internalType: "uint256";
592
+ readonly name: "revokedAtBlock";
593
+ readonly type: "uint256";
594
+ }];
595
+ readonly internalType: "struct IDataPortabilityServersV2.ServerInfo";
545
596
  readonly name: "";
546
- readonly type: "bool";
597
+ readonly type: "tuple";
547
598
  }];
548
599
  readonly stateMutability: "view";
549
600
  readonly type: "function";
550
601
  }, {
551
602
  readonly inputs: readonly [{
552
- readonly internalType: "address";
553
- readonly name: "trustedForwarderAddress";
554
- readonly type: "address";
603
+ readonly internalType: "bytes32";
604
+ readonly name: "role";
605
+ readonly type: "bytes32";
555
606
  }, {
556
607
  readonly internalType: "address";
557
- readonly name: "ownerAddress";
608
+ readonly name: "account";
558
609
  readonly type: "address";
559
610
  }];
560
- readonly name: "initialize";
611
+ readonly name: "grantRole";
561
612
  readonly outputs: readonly [];
562
613
  readonly stateMutability: "nonpayable";
563
614
  readonly type: "function";
564
615
  }, {
565
616
  readonly inputs: readonly [{
617
+ readonly internalType: "bytes32";
618
+ readonly name: "role";
619
+ readonly type: "bytes32";
620
+ }, {
566
621
  readonly internalType: "address";
567
- readonly name: "forwarder";
622
+ readonly name: "account";
568
623
  readonly type: "address";
569
624
  }];
570
- readonly name: "isTrustedForwarder";
571
- readonly outputs: readonly [{
572
- readonly internalType: "bool";
573
- readonly name: "";
574
- readonly type: "bool";
575
- }];
576
- readonly stateMutability: "view";
577
- readonly type: "function";
578
- }, {
579
- readonly inputs: readonly [];
580
- readonly name: "pause";
581
- readonly outputs: readonly [];
582
- readonly stateMutability: "nonpayable";
583
- readonly type: "function";
584
- }, {
585
- readonly inputs: readonly [];
586
- readonly name: "paused";
625
+ readonly name: "hasRole";
587
626
  readonly outputs: readonly [{
588
627
  readonly internalType: "bool";
589
628
  readonly name: "";
@@ -591,73 +630,49 @@ export declare const DataPortabilityServersABI: readonly [{
591
630
  }];
592
631
  readonly stateMutability: "view";
593
632
  readonly type: "function";
594
- }, {
595
- readonly inputs: readonly [];
596
- readonly name: "proxiableUUID";
597
- readonly outputs: readonly [{
598
- readonly internalType: "bytes32";
599
- readonly name: "";
600
- readonly type: "bytes32";
601
- }];
602
- readonly stateMutability: "view";
603
- readonly type: "function";
604
633
  }, {
605
634
  readonly inputs: readonly [{
606
- readonly internalType: "bytes32";
607
- readonly name: "role";
608
- readonly type: "bytes32";
609
- }, {
610
635
  readonly internalType: "address";
611
- readonly name: "callerConfirmation";
636
+ readonly name: "trustedForwarderAddress";
612
637
  readonly type: "address";
613
- }];
614
- readonly name: "renounceRole";
615
- readonly outputs: readonly [];
616
- readonly stateMutability: "nonpayable";
617
- readonly type: "function";
618
- }, {
619
- readonly inputs: readonly [{
620
- readonly internalType: "bytes32";
621
- readonly name: "role";
622
- readonly type: "bytes32";
623
638
  }, {
624
639
  readonly internalType: "address";
625
- readonly name: "account";
640
+ readonly name: "ownerAddress";
626
641
  readonly type: "address";
627
642
  }];
628
- readonly name: "revokeRole";
643
+ readonly name: "initialize";
629
644
  readonly outputs: readonly [];
630
645
  readonly stateMutability: "nonpayable";
631
646
  readonly type: "function";
632
647
  }, {
633
648
  readonly inputs: readonly [{
634
649
  readonly internalType: "address";
635
- readonly name: "serverAddress";
650
+ readonly name: "forwarder";
636
651
  readonly type: "address";
637
652
  }];
638
- readonly name: "serverAddressToId";
653
+ readonly name: "isTrustedForwarder";
639
654
  readonly outputs: readonly [{
640
- readonly internalType: "uint256";
641
- readonly name: "serverId";
642
- readonly type: "uint256";
655
+ readonly internalType: "bool";
656
+ readonly name: "";
657
+ readonly type: "bool";
643
658
  }];
644
659
  readonly stateMutability: "view";
645
660
  readonly type: "function";
646
661
  }, {
647
662
  readonly inputs: readonly [{
648
663
  readonly internalType: "address";
649
- readonly name: "serverAddress";
664
+ readonly name: "ownerAddress";
650
665
  readonly type: "address";
651
666
  }];
652
- readonly name: "serverByAddress";
667
+ readonly name: "ownerServers";
653
668
  readonly outputs: readonly [{
654
669
  readonly components: readonly [{
655
- readonly internalType: "uint256";
670
+ readonly internalType: "bytes32";
656
671
  readonly name: "id";
657
- readonly type: "uint256";
672
+ readonly type: "bytes32";
658
673
  }, {
659
674
  readonly internalType: "address";
660
- readonly name: "owner";
675
+ readonly name: "ownerAddress";
661
676
  readonly type: "address";
662
677
  }, {
663
678
  readonly internalType: "address";
@@ -669,30 +684,54 @@ export declare const DataPortabilityServersABI: readonly [{
669
684
  readonly type: "string";
670
685
  }, {
671
686
  readonly internalType: "string";
672
- readonly name: "url";
687
+ readonly name: "serverUrl";
673
688
  readonly type: "string";
689
+ }, {
690
+ readonly internalType: "uint256";
691
+ readonly name: "registeredAtBlock";
692
+ readonly type: "uint256";
693
+ }, {
694
+ readonly internalType: "uint256";
695
+ readonly name: "revokedAtBlock";
696
+ readonly type: "uint256";
674
697
  }];
675
- readonly internalType: "struct IDataPortabilityServers.ServerInfo";
698
+ readonly internalType: "struct IDataPortabilityServersV2.ServerInfo[]";
676
699
  readonly name: "";
677
- readonly type: "tuple";
700
+ readonly type: "tuple[]";
678
701
  }];
679
702
  readonly stateMutability: "view";
680
703
  readonly type: "function";
681
704
  }, {
682
- readonly inputs: readonly [{
683
- readonly internalType: "uint256";
684
- readonly name: "serverId";
685
- readonly type: "uint256";
705
+ readonly inputs: readonly [];
706
+ readonly name: "pause";
707
+ readonly outputs: readonly [];
708
+ readonly stateMutability: "nonpayable";
709
+ readonly type: "function";
710
+ }, {
711
+ readonly inputs: readonly [];
712
+ readonly name: "paused";
713
+ readonly outputs: readonly [{
714
+ readonly internalType: "bool";
715
+ readonly name: "";
716
+ readonly type: "bool";
686
717
  }];
687
- readonly name: "servers";
718
+ readonly stateMutability: "view";
719
+ readonly type: "function";
720
+ }, {
721
+ readonly inputs: readonly [];
722
+ readonly name: "proxiableUUID";
688
723
  readonly outputs: readonly [{
724
+ readonly internalType: "bytes32";
725
+ readonly name: "";
726
+ readonly type: "bytes32";
727
+ }];
728
+ readonly stateMutability: "view";
729
+ readonly type: "function";
730
+ }, {
731
+ readonly inputs: readonly [{
689
732
  readonly components: readonly [{
690
- readonly internalType: "uint256";
691
- readonly name: "id";
692
- readonly type: "uint256";
693
- }, {
694
733
  readonly internalType: "address";
695
- readonly name: "owner";
734
+ readonly name: "ownerAddress";
696
735
  readonly type: "address";
697
736
  }, {
698
737
  readonly internalType: "address";
@@ -704,24 +743,24 @@ export declare const DataPortabilityServersABI: readonly [{
704
743
  readonly type: "string";
705
744
  }, {
706
745
  readonly internalType: "string";
707
- readonly name: "url";
746
+ readonly name: "serverUrl";
708
747
  readonly type: "string";
709
748
  }];
710
- readonly internalType: "struct IDataPortabilityServers.ServerInfo";
711
- readonly name: "";
749
+ readonly internalType: "struct IDataPortabilityServersV2.ServerRegistration";
750
+ readonly name: "input";
712
751
  readonly type: "tuple";
752
+ }, {
753
+ readonly internalType: "bytes";
754
+ readonly name: "signature";
755
+ readonly type: "bytes";
713
756
  }];
714
- readonly stateMutability: "view";
715
- readonly type: "function";
716
- }, {
717
- readonly inputs: readonly [];
718
- readonly name: "serversCount";
757
+ readonly name: "registerServerWithSignature";
719
758
  readonly outputs: readonly [{
720
- readonly internalType: "uint256";
721
- readonly name: "";
722
- readonly type: "uint256";
759
+ readonly internalType: "bytes32";
760
+ readonly name: "serverId";
761
+ readonly type: "bytes32";
723
762
  }];
724
- readonly stateMutability: "view";
763
+ readonly stateMutability: "nonpayable";
725
764
  readonly type: "function";
726
765
  }, {
727
766
  readonly inputs: readonly [{
@@ -729,28 +768,38 @@ export declare const DataPortabilityServersABI: readonly [{
729
768
  readonly name: "role";
730
769
  readonly type: "bytes32";
731
770
  }, {
732
- readonly internalType: "bytes32";
733
- readonly name: "adminRole";
734
- readonly type: "bytes32";
771
+ readonly internalType: "address";
772
+ readonly name: "callerConfirmation";
773
+ readonly type: "address";
735
774
  }];
736
- readonly name: "setRoleAdmin";
775
+ readonly name: "renounceRole";
737
776
  readonly outputs: readonly [];
738
777
  readonly stateMutability: "nonpayable";
739
778
  readonly type: "function";
740
779
  }, {
741
780
  readonly inputs: readonly [{
781
+ readonly internalType: "bytes32";
782
+ readonly name: "role";
783
+ readonly type: "bytes32";
784
+ }, {
742
785
  readonly internalType: "address";
743
- readonly name: "userAddress";
786
+ readonly name: "account";
744
787
  readonly type: "address";
745
- }, {
746
- readonly internalType: "uint256";
747
- readonly name: "nonce";
748
- readonly type: "uint256";
749
788
  }];
750
- readonly name: "setUserNonce";
789
+ readonly name: "revokeRole";
751
790
  readonly outputs: readonly [];
752
791
  readonly stateMutability: "nonpayable";
753
792
  readonly type: "function";
793
+ }, {
794
+ readonly inputs: readonly [];
795
+ readonly name: "serversCount";
796
+ readonly outputs: readonly [{
797
+ readonly internalType: "uint256";
798
+ readonly name: "";
799
+ readonly type: "uint256";
800
+ }];
801
+ readonly stateMutability: "view";
802
+ readonly type: "function";
754
803
  }, {
755
804
  readonly inputs: readonly [{
756
805
  readonly internalType: "bytes4";
@@ -765,53 +814,6 @@ export declare const DataPortabilityServersABI: readonly [{
765
814
  }];
766
815
  readonly stateMutability: "view";
767
816
  readonly type: "function";
768
- }, {
769
- readonly inputs: readonly [{
770
- readonly internalType: "uint256";
771
- readonly name: "serverId";
772
- readonly type: "uint256";
773
- }];
774
- readonly name: "trustServer";
775
- readonly outputs: readonly [];
776
- readonly stateMutability: "nonpayable";
777
- readonly type: "function";
778
- }, {
779
- readonly inputs: readonly [{
780
- readonly internalType: "address";
781
- readonly name: "userAddress";
782
- readonly type: "address";
783
- }, {
784
- readonly internalType: "uint256";
785
- readonly name: "serverId";
786
- readonly type: "uint256";
787
- }];
788
- readonly name: "trustServerByManager";
789
- readonly outputs: readonly [];
790
- readonly stateMutability: "nonpayable";
791
- readonly type: "function";
792
- }, {
793
- readonly inputs: readonly [{
794
- readonly components: readonly [{
795
- readonly internalType: "uint256";
796
- readonly name: "nonce";
797
- readonly type: "uint256";
798
- }, {
799
- readonly internalType: "uint256";
800
- readonly name: "serverId";
801
- readonly type: "uint256";
802
- }];
803
- readonly internalType: "struct IDataPortabilityServers.TrustServerInput";
804
- readonly name: "trustServerInput";
805
- readonly type: "tuple";
806
- }, {
807
- readonly internalType: "bytes";
808
- readonly name: "signature";
809
- readonly type: "bytes";
810
- }];
811
- readonly name: "trustServerWithSignature";
812
- readonly outputs: readonly [];
813
- readonly stateMutability: "nonpayable";
814
- readonly type: "function";
815
817
  }, {
816
818
  readonly inputs: readonly [];
817
819
  readonly name: "trustedForwarder";
@@ -828,53 +830,6 @@ export declare const DataPortabilityServersABI: readonly [{
828
830
  readonly outputs: readonly [];
829
831
  readonly stateMutability: "nonpayable";
830
832
  readonly type: "function";
831
- }, {
832
- readonly inputs: readonly [{
833
- readonly internalType: "uint256";
834
- readonly name: "serverId";
835
- readonly type: "uint256";
836
- }];
837
- readonly name: "untrustServer";
838
- readonly outputs: readonly [];
839
- readonly stateMutability: "nonpayable";
840
- readonly type: "function";
841
- }, {
842
- readonly inputs: readonly [{
843
- readonly components: readonly [{
844
- readonly internalType: "uint256";
845
- readonly name: "nonce";
846
- readonly type: "uint256";
847
- }, {
848
- readonly internalType: "uint256";
849
- readonly name: "serverId";
850
- readonly type: "uint256";
851
- }];
852
- readonly internalType: "struct IDataPortabilityServers.UntrustServerInput";
853
- readonly name: "untrustServerInput";
854
- readonly type: "tuple";
855
- }, {
856
- readonly internalType: "bytes";
857
- readonly name: "signature";
858
- readonly type: "bytes";
859
- }];
860
- readonly name: "untrustServerWithSignature";
861
- readonly outputs: readonly [];
862
- readonly stateMutability: "nonpayable";
863
- readonly type: "function";
864
- }, {
865
- readonly inputs: readonly [{
866
- readonly internalType: "uint256";
867
- readonly name: "serverId";
868
- readonly type: "uint256";
869
- }, {
870
- readonly internalType: "string";
871
- readonly name: "url";
872
- readonly type: "string";
873
- }];
874
- readonly name: "updateServer";
875
- readonly outputs: readonly [];
876
- readonly stateMutability: "nonpayable";
877
- readonly type: "function";
878
833
  }, {
879
834
  readonly inputs: readonly [{
880
835
  readonly internalType: "address";
@@ -900,172 +855,14 @@ export declare const DataPortabilityServersABI: readonly [{
900
855
  readonly stateMutability: "payable";
901
856
  readonly type: "function";
902
857
  }, {
903
- readonly inputs: readonly [{
904
- readonly internalType: "address";
905
- readonly name: "userAddress";
906
- readonly type: "address";
907
- }];
908
- readonly name: "userNonce";
909
- readonly outputs: readonly [{
910
- readonly internalType: "uint256";
911
- readonly name: "";
912
- readonly type: "uint256";
913
- }];
914
- readonly stateMutability: "view";
915
- readonly type: "function";
916
- }, {
917
- readonly inputs: readonly [{
918
- readonly internalType: "address";
919
- readonly name: "userAddress";
920
- readonly type: "address";
921
- }, {
922
- readonly internalType: "uint256";
923
- readonly name: "serverIndex";
924
- readonly type: "uint256";
925
- }];
926
- readonly name: "userServerIdsAt";
927
- readonly outputs: readonly [{
928
- readonly internalType: "uint256";
929
- readonly name: "";
930
- readonly type: "uint256";
931
- }];
932
- readonly stateMutability: "view";
933
- readonly type: "function";
934
- }, {
935
- readonly inputs: readonly [{
936
- readonly internalType: "address";
937
- readonly name: "userAddress";
938
- readonly type: "address";
939
- }];
940
- readonly name: "userServerIdsLength";
941
- readonly outputs: readonly [{
942
- readonly internalType: "uint256";
943
- readonly name: "";
944
- readonly type: "uint256";
945
- }];
946
- readonly stateMutability: "view";
947
- readonly type: "function";
948
- }, {
949
- readonly inputs: readonly [{
950
- readonly internalType: "address";
951
- readonly name: "userAddress";
952
- readonly type: "address";
953
- }];
954
- readonly name: "userServerIdsValues";
955
- readonly outputs: readonly [{
956
- readonly internalType: "uint256[]";
957
- readonly name: "";
958
- readonly type: "uint256[]";
959
- }];
960
- readonly stateMutability: "view";
961
- readonly type: "function";
962
- }, {
963
- readonly inputs: readonly [{
964
- readonly internalType: "address";
965
- readonly name: "userAddress";
966
- readonly type: "address";
967
- }];
968
- readonly name: "userServerValues";
858
+ readonly inputs: readonly [];
859
+ readonly name: "version";
969
860
  readonly outputs: readonly [{
970
- readonly components: readonly [{
971
- readonly internalType: "uint256";
972
- readonly name: "id";
973
- readonly type: "uint256";
974
- }, {
975
- readonly internalType: "address";
976
- readonly name: "owner";
977
- readonly type: "address";
978
- }, {
979
- readonly internalType: "address";
980
- readonly name: "serverAddress";
981
- readonly type: "address";
982
- }, {
983
- readonly internalType: "string";
984
- readonly name: "publicKey";
985
- readonly type: "string";
986
- }, {
987
- readonly internalType: "string";
988
- readonly name: "url";
989
- readonly type: "string";
990
- }, {
991
- readonly internalType: "uint256";
992
- readonly name: "startBlock";
993
- readonly type: "uint256";
994
- }, {
995
- readonly internalType: "uint256";
996
- readonly name: "endBlock";
997
- readonly type: "uint256";
998
- }];
999
- readonly internalType: "struct IDataPortabilityServers.TrustedServerInfo[]";
1000
- readonly name: "serversInfo";
1001
- readonly type: "tuple[]";
1002
- }];
1003
- readonly stateMutability: "view";
1004
- readonly type: "function";
1005
- }, {
1006
- readonly inputs: readonly [{
1007
- readonly internalType: "address";
1008
- readonly name: "userAddress";
1009
- readonly type: "address";
1010
- }, {
1011
861
  readonly internalType: "uint256";
1012
- readonly name: "serverId";
1013
- readonly type: "uint256";
1014
- }];
1015
- readonly name: "userServers";
1016
- readonly outputs: readonly [{
1017
- readonly components: readonly [{
1018
- readonly internalType: "uint256";
1019
- readonly name: "id";
1020
- readonly type: "uint256";
1021
- }, {
1022
- readonly internalType: "address";
1023
- readonly name: "owner";
1024
- readonly type: "address";
1025
- }, {
1026
- readonly internalType: "address";
1027
- readonly name: "serverAddress";
1028
- readonly type: "address";
1029
- }, {
1030
- readonly internalType: "string";
1031
- readonly name: "publicKey";
1032
- readonly type: "string";
1033
- }, {
1034
- readonly internalType: "string";
1035
- readonly name: "url";
1036
- readonly type: "string";
1037
- }, {
1038
- readonly internalType: "uint256";
1039
- readonly name: "startBlock";
1040
- readonly type: "uint256";
1041
- }, {
1042
- readonly internalType: "uint256";
1043
- readonly name: "endBlock";
1044
- readonly type: "uint256";
1045
- }];
1046
- readonly internalType: "struct IDataPortabilityServers.TrustedServerInfo";
1047
862
  readonly name: "";
1048
- readonly type: "tuple";
1049
- }];
1050
- readonly stateMutability: "view";
1051
- readonly type: "function";
1052
- }, {
1053
- readonly inputs: readonly [{
1054
- readonly internalType: "address";
1055
- readonly name: "userAddress";
1056
- readonly type: "address";
1057
- }];
1058
- readonly name: "users";
1059
- readonly outputs: readonly [{
1060
- readonly internalType: "uint256";
1061
- readonly name: "nonce";
1062
863
  readonly type: "uint256";
1063
- }, {
1064
- readonly internalType: "uint256[]";
1065
- readonly name: "trustedServerIds";
1066
- readonly type: "uint256[]";
1067
864
  }];
1068
- readonly stateMutability: "view";
865
+ readonly stateMutability: "pure";
1069
866
  readonly type: "function";
1070
867
  }];
1071
868
  export default DataPortabilityServersABI;