@opendatalabs/vana-sdk 0.1.0-alpha.b0b3dfc → 0.1.0-alpha.b23c60e

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.
@@ -236,8 +236,10 @@ interface GrantPermissionParams$1 {
236
236
  grantee: Address;
237
237
  /** The class of computation, e.g., "llm_inference" */
238
238
  operation: string;
239
- /** Array of file IDs to grant permission for.
240
- * Obtain file IDs from `vana.data.getUserFiles()` or from upload results via `vana.data.upload().fileId`. */
239
+ /**
240
+ * Array of file IDs to grant permission for.
241
+ * Obtain file IDs from `vana.data.getUserFiles()` or from upload results via `vana.data.upload().fileId`.
242
+ */
241
243
  files: number[];
242
244
  /** The full, off-chain parameters (e.g., LLM prompt) */
243
245
  parameters: Record<string, unknown>;
@@ -356,6 +358,8 @@ interface PermissionGrantMessage {
356
358
  interface PermissionInputMessage {
357
359
  /** Nonce */
358
360
  nonce: bigint;
361
+ /** Grantee ID */
362
+ granteeId: bigint;
359
363
  /** Grant URL */
360
364
  grant: string;
361
365
  /** File IDs */
@@ -384,14 +388,18 @@ interface PermissionInfo {
384
388
  grantor: Address;
385
389
  /** Nonce used when creating */
386
390
  nonce: bigint;
391
+ /** Grantee ID */
392
+ granteeId: bigint;
387
393
  /** Grant URL */
388
394
  grant: string;
389
395
  /** Signature bytes */
390
396
  signature: `0x${string}`;
391
- /** Whether the permission is active */
392
- isActive: boolean;
397
+ /** Start block */
398
+ startBlock: bigint;
399
+ /** End block */
400
+ endBlock: bigint;
393
401
  /** File IDs associated with this permission */
394
- fileIds: bigint[];
402
+ fileIds: readonly bigint[];
395
403
  }
396
404
  /**
397
405
  * EIP-712 Permission message structure (simplified future format)
@@ -592,19 +600,41 @@ interface PermissionAnalytics {
592
600
  * @category Permissions
593
601
  */
594
602
  interface Server {
603
+ /** Server ID (numeric) */
604
+ id: number;
605
+ /** Server owner address */
606
+ owner: Address;
595
607
  /** Server URL */
596
608
  url: string;
609
+ /** Server address */
610
+ serverAddress: Address;
611
+ /** Server public key */
612
+ publicKey: string;
597
613
  }
598
614
  /**
599
- * Parameters for trusting a server
615
+ * Parameters for adding and trusting a server
600
616
  *
601
617
  * @category Permissions
602
618
  */
603
- interface TrustServerParams {
604
- /** Server ID (address) */
605
- serverId: Address;
619
+ interface AddAndTrustServerParams {
620
+ /** Server owner address */
621
+ owner: Address;
622
+ /** Server address */
623
+ serverAddress: Address;
606
624
  /** Server URL */
607
625
  serverUrl: string;
626
+ /** Server public key */
627
+ publicKey: string;
628
+ }
629
+ /**
630
+ * Parameters for trusting a server (legacy)
631
+ *
632
+ * @category Permissions
633
+ * @deprecated Use AddAndTrustServerParams instead
634
+ */
635
+ interface TrustServerParams {
636
+ /** Server ID (numeric) */
637
+ serverId: number;
608
638
  }
609
639
  /**
610
640
  * Parameters for untrusting a server
@@ -612,21 +642,37 @@ interface TrustServerParams {
612
642
  * @category Permissions
613
643
  */
614
644
  interface UntrustServerParams {
615
- /** Server ID (address) */
616
- serverId: Address;
645
+ /** Server ID (numeric) */
646
+ serverId: number;
617
647
  }
618
648
  /**
619
- * Input for trusting a server with signature (gasless)
649
+ * Input for adding and trusting a server with signature (gasless)
620
650
  *
621
651
  * @category Permissions
622
652
  */
623
- interface TrustServerInput {
653
+ interface AddAndTrustServerInput {
624
654
  /** User nonce */
625
655
  nonce: bigint;
626
- /** Server ID (address) */
627
- serverId: Address;
656
+ /** Server owner address */
657
+ owner: Address;
658
+ /** Server address */
659
+ serverAddress: Address;
628
660
  /** Server URL */
629
661
  serverUrl: string;
662
+ /** Server public key */
663
+ publicKey: string;
664
+ }
665
+ /**
666
+ * Input for trusting a server with signature (gasless)
667
+ *
668
+ * @category Permissions
669
+ * @deprecated Use AddAndTrustServerInput instead
670
+ */
671
+ interface TrustServerInput {
672
+ /** User nonce */
673
+ nonce: bigint;
674
+ /** Server ID (numeric) */
675
+ serverId: number;
630
676
  }
631
677
  /**
632
678
  * Input for untrusting a server with signature (gasless)
@@ -636,13 +682,34 @@ interface TrustServerInput {
636
682
  interface UntrustServerInput {
637
683
  /** User nonce */
638
684
  nonce: bigint;
639
- /** Server ID (address) */
640
- serverId: Address;
685
+ /** Server ID (numeric) */
686
+ serverId: number;
687
+ }
688
+ /**
689
+ * EIP-712 typed data for AddAndTrustServer
690
+ *
691
+ * @category Permissions
692
+ */
693
+ interface AddAndTrustServerTypedData {
694
+ /** EIP-712 domain */
695
+ domain: PermissionGrantDomain;
696
+ /** EIP-712 types */
697
+ types: {
698
+ AddAndTrustServer: Array<{
699
+ name: string;
700
+ type: string;
701
+ }>;
702
+ };
703
+ /** Primary type */
704
+ primaryType: "AddAndTrustServer";
705
+ /** Message to sign */
706
+ message: AddAndTrustServerInput;
641
707
  }
642
708
  /**
643
709
  * EIP-712 typed data for TrustServer
644
710
  *
645
711
  * @category Permissions
712
+ * @deprecated Use AddAndTrustServerTypedData instead
646
713
  */
647
714
  interface TrustServerTypedData {
648
715
  /** EIP-712 domain */
@@ -702,10 +769,16 @@ interface PermissionEvent {
702
769
  * @category Permissions
703
770
  */
704
771
  interface TrustedServerInfo {
705
- /** Server ID (address) */
706
- serverId: Address;
772
+ /** Server ID (numeric) */
773
+ serverId: number;
774
+ /** Server owner address */
775
+ owner: Address;
707
776
  /** Server URL */
708
777
  url: string;
778
+ /** Server address */
779
+ serverAddress: Address;
780
+ /** Server public key */
781
+ publicKey: string;
709
782
  /** Whether this server is trusted by the user */
710
783
  isTrusted: boolean;
711
784
  /** Index in user's trusted server list (if trusted) */
@@ -717,8 +790,8 @@ interface TrustedServerInfo {
717
790
  * @category Permissions
718
791
  */
719
792
  interface PaginatedTrustedServers {
720
- /** Array of server addresses */
721
- servers: Address[];
793
+ /** Array of server IDs (numeric) */
794
+ servers: number[];
722
795
  /** Total number of trusted servers */
723
796
  total: number;
724
797
  /** Offset used for this query */
@@ -750,11 +823,9 @@ interface TrustedServerQueryOptions {
750
823
  */
751
824
  interface BatchServerInfoResult {
752
825
  /** Successfully retrieved server info */
753
- servers: Map<Address, {
754
- url: string;
755
- }>;
826
+ servers: Map<number, Server>;
756
827
  /** Server IDs that failed to retrieve */
757
- failed: Address[];
828
+ failed: number[];
758
829
  }
759
830
  /**
760
831
  * Server trust status information
@@ -762,13 +833,108 @@ interface BatchServerInfoResult {
762
833
  * @category Permissions
763
834
  */
764
835
  interface ServerTrustStatus {
765
- /** Server ID being checked */
766
- serverId: Address;
836
+ /** Server ID being checked (numeric) */
837
+ serverId: number;
767
838
  /** Whether the server is trusted by the user */
768
839
  isTrusted: boolean;
769
840
  /** Index in user's trusted server list (if trusted) */
770
841
  trustIndex?: number;
771
842
  }
843
+ /**
844
+ * Grantee information
845
+ *
846
+ * @category Permissions
847
+ */
848
+ interface Grantee {
849
+ /** Grantee ID (numeric) */
850
+ id: number;
851
+ /** Grantee owner address */
852
+ owner: Address;
853
+ /** Grantee address */
854
+ address: Address;
855
+ /** Grantee public key */
856
+ publicKey: string;
857
+ /** Permission IDs associated with this grantee */
858
+ permissionIds: number[];
859
+ }
860
+ /**
861
+ * Parameters for registering a grantee
862
+ *
863
+ * @category Permissions
864
+ */
865
+ interface RegisterGranteeParams {
866
+ /** Grantee owner address */
867
+ owner: Address;
868
+ /** Grantee address */
869
+ granteeAddress: Address;
870
+ /** Grantee public key */
871
+ publicKey: string;
872
+ }
873
+ /**
874
+ * Input for registering a grantee with signature (gasless)
875
+ *
876
+ * @category Permissions
877
+ */
878
+ interface RegisterGranteeInput extends Record<string, unknown> {
879
+ /** User nonce */
880
+ nonce: bigint;
881
+ /** Grantee owner address */
882
+ owner: Address;
883
+ /** Grantee address */
884
+ granteeAddress: Address;
885
+ /** Grantee public key */
886
+ publicKey: string;
887
+ }
888
+ /**
889
+ * EIP-712 typed data for RegisterGrantee
890
+ *
891
+ * @category Permissions
892
+ */
893
+ interface RegisterGranteeTypedData {
894
+ /** EIP-712 domain */
895
+ domain: PermissionGrantDomain;
896
+ /** EIP-712 types */
897
+ types: {
898
+ RegisterGrantee: Array<{
899
+ name: string;
900
+ type: string;
901
+ }>;
902
+ };
903
+ /** Primary type */
904
+ primaryType: "RegisterGrantee";
905
+ /** Message to sign */
906
+ message: RegisterGranteeInput;
907
+ }
908
+ /**
909
+ * Options for querying grantees
910
+ *
911
+ * @category Permissions
912
+ */
913
+ interface GranteeQueryOptions {
914
+ /** Maximum number of grantees to return */
915
+ limit?: number;
916
+ /** Offset for pagination */
917
+ offset?: number;
918
+ /** Whether to include permission info or just basic info */
919
+ includePermissions?: boolean;
920
+ }
921
+ /**
922
+ * Paginated result for grantee queries
923
+ *
924
+ * @category Permissions
925
+ */
926
+ interface PaginatedGrantees {
927
+ /** Array of grantees */
928
+ grantees: Grantee[];
929
+ /** Total number of grantees */
930
+ total: number;
931
+ /** Offset used for this query */
932
+ offset: number;
933
+ /** Limit used for this query */
934
+ limit: number;
935
+ /** Whether there are more grantees beyond this page */
936
+ hasMore: boolean;
937
+ }
772
938
 
773
939
  /**
774
940
  * Marker interface to indicate that a Vana instance has storage configured.
@@ -1118,6 +1284,13 @@ interface BaseConfig {
1118
1284
  * @example ['https://gateway.pinata.cloud', 'https://ipfs.io']
1119
1285
  */
1120
1286
  ipfsGateways?: string[];
1287
+ /**
1288
+ * Default personal server base URL for server operations.
1289
+ * Required for ServerController methods like getIdentity(), createOperation(), etc.
1290
+ *
1291
+ * @example 'https://my-personal-server.example.com'
1292
+ */
1293
+ defaultPersonalServerUrl?: string;
1121
1294
  }
1122
1295
  /**
1123
1296
  * Base configuration interface that requires storage for storage-dependent operations
@@ -1146,6 +1319,13 @@ interface BaseConfigWithStorage {
1146
1319
  * @example ['https://gateway.pinata.cloud', 'https://ipfs.io']
1147
1320
  */
1148
1321
  ipfsGateways?: string[];
1322
+ /**
1323
+ * Default personal server base URL for server operations.
1324
+ * Required for ServerController methods like getIdentity(), createOperation(), etc.
1325
+ *
1326
+ * @example 'https://my-personal-server.example.com'
1327
+ */
1328
+ defaultPersonalServerUrl?: string;
1149
1329
  }
1150
1330
  /**
1151
1331
  * Configuration with wallet client
@@ -1366,7 +1546,7 @@ interface ConfigValidationResult {
1366
1546
  /**
1367
1547
  * Union type of all canonical Vana contract names
1368
1548
  */
1369
- type VanaContractName = "DataPermissions" | "DataRegistry" | "TeePool" | "ComputeEngine" | "TeePoolPhala" | "DataRefinerRegistry" | "QueryEngine" | "ComputeInstructionRegistry" | "TeePoolEphemeralStandard" | "TeePoolPersistentStandard" | "TeePoolPersistentGpu" | "TeePoolDedicatedStandard" | "TeePoolDedicatedGpu" | "VanaEpoch" | "DLPRegistry" | "DLPRegistryTreasury" | "DLPPerformance" | "DLPRewardDeployer" | "DLPRewardDeployerTreasury" | "DLPRewardSwap" | "SwapHelper" | "VanaPoolStaking" | "VanaPoolEntity" | "VanaPoolTreasury" | "DAT" | "DATFactory" | "DATPausable" | "DATVotes" | "DataLiquidityPool" | "DLPRoot";
1549
+ type VanaContractName = "DataPermissions" | "DataPortabilityPermissions" | "DataPortabilityServers" | "DataPortabilityGrantees" | "DataRegistry" | "TeePool" | "ComputeEngine" | "TeePoolPhala" | "DataRefinerRegistry" | "QueryEngine" | "ComputeInstructionRegistry" | "TeePoolEphemeralStandard" | "TeePoolPersistentStandard" | "TeePoolPersistentGpu" | "TeePoolDedicatedStandard" | "TeePoolDedicatedGpu" | "VanaEpoch" | "DLPRegistry" | "DLPRegistryTreasury" | "DLPPerformance" | "DLPRewardDeployer" | "DLPRewardDeployerTreasury" | "DLPRewardSwap" | "SwapHelper" | "VanaPoolStaking" | "VanaPoolEntity" | "VanaPoolTreasury" | "DAT" | "DATFactory" | "DATPausable" | "DATVotes" | "DataLiquidityPool" | "DLPRoot";
1370
1550
  /**
1371
1551
  * Contract information with typed address and ABI
1372
1552
  */
@@ -1449,8 +1629,10 @@ interface UserFile$1 {
1449
1629
  ownerAddress: Address;
1450
1630
  /** Block number when this file was registered on-chain. */
1451
1631
  addedAtBlock: bigint;
1452
- /** Schema identifier for data validation and structure definition.
1453
- * Obtain schema IDs from `vana.schemas.list()` or when creating schemas via `vana.schemas.create()`. */
1632
+ /**
1633
+ * Schema identifier for data validation and structure definition.
1634
+ * Obtain schema IDs from `vana.schemas.list()` or when creating schemas via `vana.schemas.create()`.
1635
+ */
1454
1636
  schemaId?: number;
1455
1637
  /** Unix timestamp when the file was registered on-chain. */
1456
1638
  addedAtTimestamp?: bigint;
@@ -2124,10 +2306,6 @@ declare const contractAbis: {
2124
2306
  readonly inputs: readonly [];
2125
2307
  readonly name: "EmptyGrant";
2126
2308
  readonly type: "error";
2127
- }, {
2128
- readonly inputs: readonly [];
2129
- readonly name: "EmptyUrl";
2130
- readonly type: "error";
2131
2309
  }, {
2132
2310
  readonly inputs: readonly [];
2133
2311
  readonly name: "EnforcedPause";
@@ -2142,7 +2320,7 @@ declare const contractAbis: {
2142
2320
  readonly type: "error";
2143
2321
  }, {
2144
2322
  readonly inputs: readonly [];
2145
- readonly name: "GrantAlreadyUsed";
2323
+ readonly name: "GranteeNotFound";
2146
2324
  readonly type: "error";
2147
2325
  }, {
2148
2326
  readonly inputs: readonly [{
@@ -2200,30 +2378,6 @@ declare const contractAbis: {
2200
2378
  }];
2201
2379
  readonly name: "NotPermissionGrantor";
2202
2380
  readonly type: "error";
2203
- }, {
2204
- readonly inputs: readonly [];
2205
- readonly name: "ServerAlreadyRegistered";
2206
- readonly type: "error";
2207
- }, {
2208
- readonly inputs: readonly [];
2209
- readonly name: "ServerNotFound";
2210
- readonly type: "error";
2211
- }, {
2212
- readonly inputs: readonly [];
2213
- readonly name: "ServerNotTrusted";
2214
- readonly type: "error";
2215
- }, {
2216
- readonly inputs: readonly [{
2217
- readonly internalType: "string";
2218
- readonly name: "existingUrl";
2219
- readonly type: "string";
2220
- }, {
2221
- readonly internalType: "string";
2222
- readonly name: "providedUrl";
2223
- readonly type: "string";
2224
- }];
2225
- readonly name: "ServerUrlMismatch";
2226
- readonly type: "error";
2227
2381
  }, {
2228
2382
  readonly inputs: readonly [];
2229
2383
  readonly name: "UUPSUnauthorizedCallContext";
@@ -2277,6 +2431,11 @@ declare const contractAbis: {
2277
2431
  readonly internalType: "address";
2278
2432
  readonly name: "user";
2279
2433
  readonly type: "address";
2434
+ }, {
2435
+ readonly indexed: true;
2436
+ readonly internalType: "uint256";
2437
+ readonly name: "granteeId";
2438
+ readonly type: "uint256";
2280
2439
  }, {
2281
2440
  readonly indexed: false;
2282
2441
  readonly internalType: "string";
@@ -2360,56 +2519,6 @@ declare const contractAbis: {
2360
2519
  }];
2361
2520
  readonly name: "RoleRevoked";
2362
2521
  readonly type: "event";
2363
- }, {
2364
- readonly anonymous: false;
2365
- readonly inputs: readonly [{
2366
- readonly indexed: true;
2367
- readonly internalType: "address";
2368
- readonly name: "serverId";
2369
- readonly type: "address";
2370
- }, {
2371
- readonly indexed: false;
2372
- readonly internalType: "string";
2373
- readonly name: "url";
2374
- readonly type: "string";
2375
- }];
2376
- readonly name: "ServerAdded";
2377
- readonly type: "event";
2378
- }, {
2379
- readonly anonymous: false;
2380
- readonly inputs: readonly [{
2381
- readonly indexed: true;
2382
- readonly internalType: "address";
2383
- readonly name: "user";
2384
- readonly type: "address";
2385
- }, {
2386
- readonly indexed: true;
2387
- readonly internalType: "address";
2388
- readonly name: "serverId";
2389
- readonly type: "address";
2390
- }, {
2391
- readonly indexed: false;
2392
- readonly internalType: "string";
2393
- readonly name: "serverUrl";
2394
- readonly type: "string";
2395
- }];
2396
- readonly name: "ServerTrusted";
2397
- readonly type: "event";
2398
- }, {
2399
- readonly anonymous: false;
2400
- readonly inputs: readonly [{
2401
- readonly indexed: true;
2402
- readonly internalType: "address";
2403
- readonly name: "user";
2404
- readonly type: "address";
2405
- }, {
2406
- readonly indexed: true;
2407
- readonly internalType: "address";
2408
- readonly name: "serverId";
2409
- readonly type: "address";
2410
- }];
2411
- readonly name: "ServerUntrusted";
2412
- readonly type: "event";
2413
2522
  }, {
2414
2523
  readonly anonymous: false;
2415
2524
  readonly inputs: readonly [{
@@ -2466,6 +2575,10 @@ declare const contractAbis: {
2466
2575
  readonly internalType: "uint256";
2467
2576
  readonly name: "nonce";
2468
2577
  readonly type: "uint256";
2578
+ }, {
2579
+ readonly internalType: "uint256";
2580
+ readonly name: "granteeId";
2581
+ readonly type: "uint256";
2469
2582
  }, {
2470
2583
  readonly internalType: "string";
2471
2584
  readonly name: "grant";
@@ -2475,8 +2588,8 @@ declare const contractAbis: {
2475
2588
  readonly name: "fileIds";
2476
2589
  readonly type: "uint256[]";
2477
2590
  }];
2478
- readonly internalType: "struct IDataPermissions.PermissionInput";
2479
- readonly name: "permission";
2591
+ readonly internalType: "struct IDataPortabilityPermissions.PermissionInput";
2592
+ readonly name: "permissionInput";
2480
2593
  readonly type: "tuple";
2481
2594
  }, {
2482
2595
  readonly internalType: "bytes";
@@ -2491,6 +2604,26 @@ declare const contractAbis: {
2491
2604
  }];
2492
2605
  readonly stateMutability: "nonpayable";
2493
2606
  readonly type: "function";
2607
+ }, {
2608
+ readonly inputs: readonly [];
2609
+ readonly name: "dataPortabilityGrantees";
2610
+ readonly outputs: readonly [{
2611
+ readonly internalType: "contract IDataPortabilityGrantees";
2612
+ readonly name: "";
2613
+ readonly type: "address";
2614
+ }];
2615
+ readonly stateMutability: "view";
2616
+ readonly type: "function";
2617
+ }, {
2618
+ readonly inputs: readonly [];
2619
+ readonly name: "dataPortabilityServers";
2620
+ readonly outputs: readonly [{
2621
+ readonly internalType: "contract IDataPortabilityServers";
2622
+ readonly name: "";
2623
+ readonly type: "address";
2624
+ }];
2625
+ readonly stateMutability: "view";
2626
+ readonly type: "function";
2494
2627
  }, {
2495
2628
  readonly inputs: readonly [];
2496
2629
  readonly name: "dataRegistry";
@@ -2549,6 +2682,20 @@ declare const contractAbis: {
2549
2682
  }];
2550
2683
  readonly stateMutability: "view";
2551
2684
  readonly type: "function";
2685
+ }, {
2686
+ readonly inputs: readonly [{
2687
+ readonly internalType: "uint256";
2688
+ readonly name: "fileId";
2689
+ readonly type: "uint256";
2690
+ }];
2691
+ readonly name: "filePermissions";
2692
+ readonly outputs: readonly [{
2693
+ readonly internalType: "uint256[]";
2694
+ readonly name: "";
2695
+ readonly type: "uint256[]";
2696
+ }];
2697
+ readonly stateMutability: "view";
2698
+ readonly type: "function";
2552
2699
  }, {
2553
2700
  readonly inputs: readonly [{
2554
2701
  readonly internalType: "bytes32";
@@ -2608,6 +2755,14 @@ declare const contractAbis: {
2608
2755
  readonly internalType: "contract IDataRegistry";
2609
2756
  readonly name: "dataRegistryAddress";
2610
2757
  readonly type: "address";
2758
+ }, {
2759
+ readonly internalType: "contract IDataPortabilityServers";
2760
+ readonly name: "serversContractAddr";
2761
+ readonly type: "address";
2762
+ }, {
2763
+ readonly internalType: "contract IDataPortabilityGrantees";
2764
+ readonly name: "granteesContractAddr";
2765
+ readonly type: "address";
2611
2766
  }];
2612
2767
  readonly name: "initialize";
2613
2768
  readonly outputs: readonly [];
@@ -2685,20 +2840,6 @@ declare const contractAbis: {
2685
2840
  }];
2686
2841
  readonly stateMutability: "view";
2687
2842
  readonly type: "function";
2688
- }, {
2689
- readonly inputs: readonly [{
2690
- readonly internalType: "string";
2691
- readonly name: "grant";
2692
- readonly type: "string";
2693
- }];
2694
- readonly name: "permissionIdByGrant";
2695
- readonly outputs: readonly [{
2696
- readonly internalType: "uint256";
2697
- readonly name: "";
2698
- readonly type: "uint256";
2699
- }];
2700
- readonly stateMutability: "view";
2701
- readonly type: "function";
2702
2843
  }, {
2703
2844
  readonly inputs: readonly [{
2704
2845
  readonly internalType: "uint256";
@@ -2719,6 +2860,10 @@ declare const contractAbis: {
2719
2860
  readonly internalType: "uint256";
2720
2861
  readonly name: "nonce";
2721
2862
  readonly type: "uint256";
2863
+ }, {
2864
+ readonly internalType: "uint256";
2865
+ readonly name: "granteeId";
2866
+ readonly type: "uint256";
2722
2867
  }, {
2723
2868
  readonly internalType: "string";
2724
2869
  readonly name: "grant";
@@ -2728,15 +2873,19 @@ declare const contractAbis: {
2728
2873
  readonly name: "signature";
2729
2874
  readonly type: "bytes";
2730
2875
  }, {
2731
- readonly internalType: "bool";
2732
- readonly name: "isActive";
2733
- readonly type: "bool";
2876
+ readonly internalType: "uint256";
2877
+ readonly name: "startBlock";
2878
+ readonly type: "uint256";
2879
+ }, {
2880
+ readonly internalType: "uint256";
2881
+ readonly name: "endBlock";
2882
+ readonly type: "uint256";
2734
2883
  }, {
2735
2884
  readonly internalType: "uint256[]";
2736
2885
  readonly name: "fileIds";
2737
2886
  readonly type: "uint256[]";
2738
2887
  }];
2739
- readonly internalType: "struct IDataPermissions.PermissionInfo";
2888
+ readonly internalType: "struct IDataPortabilityPermissions.PermissionInfo";
2740
2889
  readonly name: "";
2741
2890
  readonly type: "tuple";
2742
2891
  }];
@@ -2797,7 +2946,7 @@ declare const contractAbis: {
2797
2946
  readonly name: "permissionId";
2798
2947
  readonly type: "uint256";
2799
2948
  }];
2800
- readonly internalType: "struct IDataPermissions.RevokePermissionInput";
2949
+ readonly internalType: "struct IDataPortabilityPermissions.RevokePermissionInput";
2801
2950
  readonly name: "revokePermissionInput";
2802
2951
  readonly type: "tuple";
2803
2952
  }, {
@@ -2825,23 +2974,2700 @@ declare const contractAbis: {
2825
2974
  readonly type: "function";
2826
2975
  }, {
2827
2976
  readonly inputs: readonly [{
2977
+ readonly internalType: "bytes32";
2978
+ readonly name: "role";
2979
+ readonly type: "bytes32";
2980
+ }, {
2981
+ readonly internalType: "bytes32";
2982
+ readonly name: "adminRole";
2983
+ readonly type: "bytes32";
2984
+ }];
2985
+ readonly name: "setRoleAdmin";
2986
+ readonly outputs: readonly [];
2987
+ readonly stateMutability: "nonpayable";
2988
+ readonly type: "function";
2989
+ }, {
2990
+ readonly inputs: readonly [{
2991
+ readonly internalType: "bytes4";
2992
+ readonly name: "interfaceId";
2993
+ readonly type: "bytes4";
2994
+ }];
2995
+ readonly name: "supportsInterface";
2996
+ readonly outputs: readonly [{
2997
+ readonly internalType: "bool";
2998
+ readonly name: "";
2999
+ readonly type: "bool";
3000
+ }];
3001
+ readonly stateMutability: "view";
3002
+ readonly type: "function";
3003
+ }, {
3004
+ readonly inputs: readonly [];
3005
+ readonly name: "trustedForwarder";
3006
+ readonly outputs: readonly [{
3007
+ readonly internalType: "address";
3008
+ readonly name: "";
3009
+ readonly type: "address";
3010
+ }];
3011
+ readonly stateMutability: "view";
3012
+ readonly type: "function";
3013
+ }, {
3014
+ readonly inputs: readonly [];
3015
+ readonly name: "unpause";
3016
+ readonly outputs: readonly [];
3017
+ readonly stateMutability: "nonpayable";
3018
+ readonly type: "function";
3019
+ }, {
3020
+ readonly inputs: readonly [{
3021
+ readonly internalType: "contract IDataRegistry";
3022
+ readonly name: "newDataRegistry";
3023
+ readonly type: "address";
3024
+ }];
3025
+ readonly name: "updateDataRegistry";
3026
+ readonly outputs: readonly [];
3027
+ readonly stateMutability: "nonpayable";
3028
+ readonly type: "function";
3029
+ }, {
3030
+ readonly inputs: readonly [{
3031
+ readonly internalType: "contract IDataPortabilityGrantees";
3032
+ readonly name: "newGranteesContract";
3033
+ readonly type: "address";
3034
+ }];
3035
+ readonly name: "updateGranteesContract";
3036
+ readonly outputs: readonly [];
3037
+ readonly stateMutability: "nonpayable";
3038
+ readonly type: "function";
3039
+ }, {
3040
+ readonly inputs: readonly [{
3041
+ readonly internalType: "contract IDataPortabilityServers";
3042
+ readonly name: "newServersContract";
3043
+ readonly type: "address";
3044
+ }];
3045
+ readonly name: "updateServersContract";
3046
+ readonly outputs: readonly [];
3047
+ readonly stateMutability: "nonpayable";
3048
+ readonly type: "function";
3049
+ }, {
3050
+ readonly inputs: readonly [{
3051
+ readonly internalType: "address";
3052
+ readonly name: "trustedForwarderAddress";
3053
+ readonly type: "address";
3054
+ }];
3055
+ readonly name: "updateTrustedForwarder";
3056
+ readonly outputs: readonly [];
3057
+ readonly stateMutability: "nonpayable";
3058
+ readonly type: "function";
3059
+ }, {
3060
+ readonly inputs: readonly [{
3061
+ readonly internalType: "address";
3062
+ readonly name: "newImplementation";
3063
+ readonly type: "address";
3064
+ }, {
3065
+ readonly internalType: "bytes";
3066
+ readonly name: "data";
3067
+ readonly type: "bytes";
3068
+ }];
3069
+ readonly name: "upgradeToAndCall";
3070
+ readonly outputs: readonly [];
3071
+ readonly stateMutability: "payable";
3072
+ readonly type: "function";
3073
+ }, {
3074
+ readonly inputs: readonly [{
3075
+ readonly internalType: "address";
3076
+ readonly name: "userAddress";
3077
+ readonly type: "address";
3078
+ }];
3079
+ readonly name: "userNonce";
3080
+ readonly outputs: readonly [{
3081
+ readonly internalType: "uint256";
3082
+ readonly name: "";
3083
+ readonly type: "uint256";
3084
+ }];
3085
+ readonly stateMutability: "view";
3086
+ readonly type: "function";
3087
+ }, {
3088
+ readonly inputs: readonly [{
3089
+ readonly internalType: "address";
3090
+ readonly name: "userAddress";
3091
+ readonly type: "address";
3092
+ }, {
3093
+ readonly internalType: "uint256";
3094
+ readonly name: "permissionIndex";
3095
+ readonly type: "uint256";
3096
+ }];
3097
+ readonly name: "userPermissionIdsAt";
3098
+ readonly outputs: readonly [{
3099
+ readonly internalType: "uint256";
3100
+ readonly name: "";
3101
+ readonly type: "uint256";
3102
+ }];
3103
+ readonly stateMutability: "view";
3104
+ readonly type: "function";
3105
+ }, {
3106
+ readonly inputs: readonly [{
3107
+ readonly internalType: "address";
3108
+ readonly name: "userAddress";
3109
+ readonly type: "address";
3110
+ }];
3111
+ readonly name: "userPermissionIdsLength";
3112
+ readonly outputs: readonly [{
3113
+ readonly internalType: "uint256";
3114
+ readonly name: "";
3115
+ readonly type: "uint256";
3116
+ }];
3117
+ readonly stateMutability: "view";
3118
+ readonly type: "function";
3119
+ }, {
3120
+ readonly inputs: readonly [{
3121
+ readonly internalType: "address";
3122
+ readonly name: "userAddress";
3123
+ readonly type: "address";
3124
+ }];
3125
+ readonly name: "userPermissionIdsValues";
3126
+ readonly outputs: readonly [{
3127
+ readonly internalType: "uint256[]";
3128
+ readonly name: "";
3129
+ readonly type: "uint256[]";
3130
+ }];
3131
+ readonly stateMutability: "view";
3132
+ readonly type: "function";
3133
+ }, {
3134
+ readonly inputs: readonly [{
3135
+ readonly internalType: "address";
3136
+ readonly name: "userAddress";
3137
+ readonly type: "address";
3138
+ }];
3139
+ readonly name: "users";
3140
+ readonly outputs: readonly [{
3141
+ readonly internalType: "uint256";
3142
+ readonly name: "nonce";
3143
+ readonly type: "uint256";
3144
+ }, {
3145
+ readonly internalType: "uint256[]";
3146
+ readonly name: "permissionIds";
3147
+ readonly type: "uint256[]";
3148
+ }];
3149
+ readonly stateMutability: "view";
3150
+ readonly type: "function";
3151
+ }, {
3152
+ readonly inputs: readonly [];
3153
+ readonly name: "version";
3154
+ readonly outputs: readonly [{
3155
+ readonly internalType: "uint256";
3156
+ readonly name: "";
3157
+ readonly type: "uint256";
3158
+ }];
3159
+ readonly stateMutability: "pure";
3160
+ readonly type: "function";
3161
+ }];
3162
+ readonly DataPortabilityPermissions: readonly [{
3163
+ readonly inputs: readonly [];
3164
+ readonly stateMutability: "nonpayable";
3165
+ readonly type: "constructor";
3166
+ }, {
3167
+ readonly inputs: readonly [];
3168
+ readonly name: "AccessControlBadConfirmation";
3169
+ readonly type: "error";
3170
+ }, {
3171
+ readonly inputs: readonly [{
3172
+ readonly internalType: "address";
3173
+ readonly name: "account";
3174
+ readonly type: "address";
3175
+ }, {
3176
+ readonly internalType: "bytes32";
3177
+ readonly name: "neededRole";
3178
+ readonly type: "bytes32";
3179
+ }];
3180
+ readonly name: "AccessControlUnauthorizedAccount";
3181
+ readonly type: "error";
3182
+ }, {
3183
+ readonly inputs: readonly [{
3184
+ readonly internalType: "address";
3185
+ readonly name: "target";
3186
+ readonly type: "address";
3187
+ }];
3188
+ readonly name: "AddressEmptyCode";
3189
+ readonly type: "error";
3190
+ }, {
3191
+ readonly inputs: readonly [];
3192
+ readonly name: "ECDSAInvalidSignature";
3193
+ readonly type: "error";
3194
+ }, {
3195
+ readonly inputs: readonly [{
3196
+ readonly internalType: "uint256";
3197
+ readonly name: "length";
3198
+ readonly type: "uint256";
3199
+ }];
3200
+ readonly name: "ECDSAInvalidSignatureLength";
3201
+ readonly type: "error";
3202
+ }, {
3203
+ readonly inputs: readonly [{
3204
+ readonly internalType: "bytes32";
3205
+ readonly name: "s";
3206
+ readonly type: "bytes32";
3207
+ }];
3208
+ readonly name: "ECDSAInvalidSignatureS";
3209
+ readonly type: "error";
3210
+ }, {
3211
+ readonly inputs: readonly [{
3212
+ readonly internalType: "address";
3213
+ readonly name: "implementation";
3214
+ readonly type: "address";
3215
+ }];
3216
+ readonly name: "ERC1967InvalidImplementation";
3217
+ readonly type: "error";
3218
+ }, {
3219
+ readonly inputs: readonly [];
3220
+ readonly name: "ERC1967NonPayable";
3221
+ readonly type: "error";
3222
+ }, {
3223
+ readonly inputs: readonly [];
3224
+ readonly name: "EmptyGrant";
3225
+ readonly type: "error";
3226
+ }, {
3227
+ readonly inputs: readonly [];
3228
+ readonly name: "EnforcedPause";
3229
+ readonly type: "error";
3230
+ }, {
3231
+ readonly inputs: readonly [];
3232
+ readonly name: "ExpectedPause";
3233
+ readonly type: "error";
3234
+ }, {
3235
+ readonly inputs: readonly [];
3236
+ readonly name: "FailedInnerCall";
3237
+ readonly type: "error";
3238
+ }, {
3239
+ readonly inputs: readonly [];
3240
+ readonly name: "GranteeNotFound";
3241
+ readonly type: "error";
3242
+ }, {
3243
+ readonly inputs: readonly [{
3244
+ readonly internalType: "uint256";
3245
+ readonly name: "permissionId";
3246
+ readonly type: "uint256";
3247
+ }];
3248
+ readonly name: "InactivePermission";
3249
+ readonly type: "error";
3250
+ }, {
3251
+ readonly inputs: readonly [];
3252
+ readonly name: "InvalidInitialization";
3253
+ readonly type: "error";
3254
+ }, {
3255
+ readonly inputs: readonly [{
3256
+ readonly internalType: "uint256";
3257
+ readonly name: "expectedNonce";
3258
+ readonly type: "uint256";
3259
+ }, {
3260
+ readonly internalType: "uint256";
3261
+ readonly name: "providedNonce";
3262
+ readonly type: "uint256";
3263
+ }];
3264
+ readonly name: "InvalidNonce";
3265
+ readonly type: "error";
3266
+ }, {
3267
+ readonly inputs: readonly [];
3268
+ readonly name: "InvalidSignature";
3269
+ readonly type: "error";
3270
+ }, {
3271
+ readonly inputs: readonly [{
3272
+ readonly internalType: "address";
3273
+ readonly name: "fileOwner";
3274
+ readonly type: "address";
3275
+ }, {
3276
+ readonly internalType: "address";
3277
+ readonly name: "requestor";
3278
+ readonly type: "address";
3279
+ }];
3280
+ readonly name: "NotFileOwner";
3281
+ readonly type: "error";
3282
+ }, {
3283
+ readonly inputs: readonly [];
3284
+ readonly name: "NotInitializing";
3285
+ readonly type: "error";
3286
+ }, {
3287
+ readonly inputs: readonly [{
3288
+ readonly internalType: "address";
3289
+ readonly name: "permissionOwner";
3290
+ readonly type: "address";
3291
+ }, {
3292
+ readonly internalType: "address";
3293
+ readonly name: "requestor";
3294
+ readonly type: "address";
3295
+ }];
3296
+ readonly name: "NotPermissionGrantor";
3297
+ readonly type: "error";
3298
+ }, {
3299
+ readonly inputs: readonly [];
3300
+ readonly name: "UUPSUnauthorizedCallContext";
3301
+ readonly type: "error";
3302
+ }, {
3303
+ readonly inputs: readonly [{
3304
+ readonly internalType: "bytes32";
3305
+ readonly name: "slot";
3306
+ readonly type: "bytes32";
3307
+ }];
3308
+ readonly name: "UUPSUnsupportedProxiableUUID";
3309
+ readonly type: "error";
3310
+ }, {
3311
+ readonly inputs: readonly [];
3312
+ readonly name: "ZeroAddress";
3313
+ readonly type: "error";
3314
+ }, {
3315
+ readonly anonymous: false;
3316
+ readonly inputs: readonly [];
3317
+ readonly name: "EIP712DomainChanged";
3318
+ readonly type: "event";
3319
+ }, {
3320
+ readonly anonymous: false;
3321
+ readonly inputs: readonly [{
3322
+ readonly indexed: false;
3323
+ readonly internalType: "uint64";
3324
+ readonly name: "version";
3325
+ readonly type: "uint64";
3326
+ }];
3327
+ readonly name: "Initialized";
3328
+ readonly type: "event";
3329
+ }, {
3330
+ readonly anonymous: false;
3331
+ readonly inputs: readonly [{
3332
+ readonly indexed: false;
3333
+ readonly internalType: "address";
3334
+ readonly name: "account";
3335
+ readonly type: "address";
3336
+ }];
3337
+ readonly name: "Paused";
3338
+ readonly type: "event";
3339
+ }, {
3340
+ readonly anonymous: false;
3341
+ readonly inputs: readonly [{
3342
+ readonly indexed: true;
3343
+ readonly internalType: "uint256";
3344
+ readonly name: "permissionId";
3345
+ readonly type: "uint256";
3346
+ }, {
3347
+ readonly indexed: true;
3348
+ readonly internalType: "address";
3349
+ readonly name: "user";
3350
+ readonly type: "address";
3351
+ }, {
3352
+ readonly indexed: true;
3353
+ readonly internalType: "uint256";
3354
+ readonly name: "granteeId";
3355
+ readonly type: "uint256";
3356
+ }, {
3357
+ readonly indexed: false;
3358
+ readonly internalType: "string";
3359
+ readonly name: "grant";
3360
+ readonly type: "string";
3361
+ }, {
3362
+ readonly indexed: false;
3363
+ readonly internalType: "uint256[]";
3364
+ readonly name: "fileIds";
3365
+ readonly type: "uint256[]";
3366
+ }];
3367
+ readonly name: "PermissionAdded";
3368
+ readonly type: "event";
3369
+ }, {
3370
+ readonly anonymous: false;
3371
+ readonly inputs: readonly [{
3372
+ readonly indexed: true;
3373
+ readonly internalType: "uint256";
3374
+ readonly name: "permissionId";
3375
+ readonly type: "uint256";
3376
+ }];
3377
+ readonly name: "PermissionRevoked";
3378
+ readonly type: "event";
3379
+ }, {
3380
+ readonly anonymous: false;
3381
+ readonly inputs: readonly [{
3382
+ readonly indexed: true;
3383
+ readonly internalType: "bytes32";
3384
+ readonly name: "role";
3385
+ readonly type: "bytes32";
3386
+ }, {
3387
+ readonly indexed: true;
3388
+ readonly internalType: "bytes32";
3389
+ readonly name: "previousAdminRole";
3390
+ readonly type: "bytes32";
3391
+ }, {
3392
+ readonly indexed: true;
3393
+ readonly internalType: "bytes32";
3394
+ readonly name: "newAdminRole";
3395
+ readonly type: "bytes32";
3396
+ }];
3397
+ readonly name: "RoleAdminChanged";
3398
+ readonly type: "event";
3399
+ }, {
3400
+ readonly anonymous: false;
3401
+ readonly inputs: readonly [{
3402
+ readonly indexed: true;
3403
+ readonly internalType: "bytes32";
3404
+ readonly name: "role";
3405
+ readonly type: "bytes32";
3406
+ }, {
3407
+ readonly indexed: true;
3408
+ readonly internalType: "address";
3409
+ readonly name: "account";
3410
+ readonly type: "address";
3411
+ }, {
3412
+ readonly indexed: true;
3413
+ readonly internalType: "address";
3414
+ readonly name: "sender";
3415
+ readonly type: "address";
3416
+ }];
3417
+ readonly name: "RoleGranted";
3418
+ readonly type: "event";
3419
+ }, {
3420
+ readonly anonymous: false;
3421
+ readonly inputs: readonly [{
3422
+ readonly indexed: true;
3423
+ readonly internalType: "bytes32";
3424
+ readonly name: "role";
3425
+ readonly type: "bytes32";
3426
+ }, {
3427
+ readonly indexed: true;
3428
+ readonly internalType: "address";
3429
+ readonly name: "account";
3430
+ readonly type: "address";
3431
+ }, {
3432
+ readonly indexed: true;
3433
+ readonly internalType: "address";
3434
+ readonly name: "sender";
3435
+ readonly type: "address";
3436
+ }];
3437
+ readonly name: "RoleRevoked";
3438
+ readonly type: "event";
3439
+ }, {
3440
+ readonly anonymous: false;
3441
+ readonly inputs: readonly [{
3442
+ readonly indexed: false;
3443
+ readonly internalType: "address";
3444
+ readonly name: "account";
3445
+ readonly type: "address";
3446
+ }];
3447
+ readonly name: "Unpaused";
3448
+ readonly type: "event";
3449
+ }, {
3450
+ readonly anonymous: false;
3451
+ readonly inputs: readonly [{
3452
+ readonly indexed: true;
3453
+ readonly internalType: "address";
3454
+ readonly name: "implementation";
3455
+ readonly type: "address";
3456
+ }];
3457
+ readonly name: "Upgraded";
3458
+ readonly type: "event";
3459
+ }, {
3460
+ readonly inputs: readonly [];
3461
+ readonly name: "DEFAULT_ADMIN_ROLE";
3462
+ readonly outputs: readonly [{
3463
+ readonly internalType: "bytes32";
3464
+ readonly name: "";
3465
+ readonly type: "bytes32";
3466
+ }];
3467
+ readonly stateMutability: "view";
3468
+ readonly type: "function";
3469
+ }, {
3470
+ readonly inputs: readonly [];
3471
+ readonly name: "MAINTAINER_ROLE";
3472
+ readonly outputs: readonly [{
3473
+ readonly internalType: "bytes32";
3474
+ readonly name: "";
3475
+ readonly type: "bytes32";
3476
+ }];
3477
+ readonly stateMutability: "view";
3478
+ readonly type: "function";
3479
+ }, {
3480
+ readonly inputs: readonly [];
3481
+ readonly name: "UPGRADE_INTERFACE_VERSION";
3482
+ readonly outputs: readonly [{
3483
+ readonly internalType: "string";
3484
+ readonly name: "";
3485
+ readonly type: "string";
3486
+ }];
3487
+ readonly stateMutability: "view";
3488
+ readonly type: "function";
3489
+ }, {
3490
+ readonly inputs: readonly [{
3491
+ readonly components: readonly [{
3492
+ readonly internalType: "uint256";
3493
+ readonly name: "nonce";
3494
+ readonly type: "uint256";
3495
+ }, {
3496
+ readonly internalType: "uint256";
3497
+ readonly name: "granteeId";
3498
+ readonly type: "uint256";
3499
+ }, {
3500
+ readonly internalType: "string";
3501
+ readonly name: "grant";
3502
+ readonly type: "string";
3503
+ }, {
3504
+ readonly internalType: "uint256[]";
3505
+ readonly name: "fileIds";
3506
+ readonly type: "uint256[]";
3507
+ }];
3508
+ readonly internalType: "struct IDataPortabilityPermissions.PermissionInput";
3509
+ readonly name: "permissionInput";
3510
+ readonly type: "tuple";
3511
+ }, {
3512
+ readonly internalType: "bytes";
3513
+ readonly name: "signature";
3514
+ readonly type: "bytes";
3515
+ }];
3516
+ readonly name: "addPermission";
3517
+ readonly outputs: readonly [{
3518
+ readonly internalType: "uint256";
3519
+ readonly name: "";
3520
+ readonly type: "uint256";
3521
+ }];
3522
+ readonly stateMutability: "nonpayable";
3523
+ readonly type: "function";
3524
+ }, {
3525
+ readonly inputs: readonly [];
3526
+ readonly name: "dataPortabilityGrantees";
3527
+ readonly outputs: readonly [{
3528
+ readonly internalType: "contract IDataPortabilityGrantees";
3529
+ readonly name: "";
3530
+ readonly type: "address";
3531
+ }];
3532
+ readonly stateMutability: "view";
3533
+ readonly type: "function";
3534
+ }, {
3535
+ readonly inputs: readonly [];
3536
+ readonly name: "dataPortabilityServers";
3537
+ readonly outputs: readonly [{
3538
+ readonly internalType: "contract IDataPortabilityServers";
3539
+ readonly name: "";
3540
+ readonly type: "address";
3541
+ }];
3542
+ readonly stateMutability: "view";
3543
+ readonly type: "function";
3544
+ }, {
3545
+ readonly inputs: readonly [];
3546
+ readonly name: "dataRegistry";
3547
+ readonly outputs: readonly [{
3548
+ readonly internalType: "contract IDataRegistry";
3549
+ readonly name: "";
3550
+ readonly type: "address";
3551
+ }];
3552
+ readonly stateMutability: "view";
3553
+ readonly type: "function";
3554
+ }, {
3555
+ readonly inputs: readonly [];
3556
+ readonly name: "eip712Domain";
3557
+ readonly outputs: readonly [{
3558
+ readonly internalType: "bytes1";
3559
+ readonly name: "fields";
3560
+ readonly type: "bytes1";
3561
+ }, {
3562
+ readonly internalType: "string";
3563
+ readonly name: "name";
3564
+ readonly type: "string";
3565
+ }, {
3566
+ readonly internalType: "string";
3567
+ readonly name: "version";
3568
+ readonly type: "string";
3569
+ }, {
3570
+ readonly internalType: "uint256";
3571
+ readonly name: "chainId";
3572
+ readonly type: "uint256";
3573
+ }, {
3574
+ readonly internalType: "address";
3575
+ readonly name: "verifyingContract";
3576
+ readonly type: "address";
3577
+ }, {
3578
+ readonly internalType: "bytes32";
3579
+ readonly name: "salt";
3580
+ readonly type: "bytes32";
3581
+ }, {
3582
+ readonly internalType: "uint256[]";
3583
+ readonly name: "extensions";
3584
+ readonly type: "uint256[]";
3585
+ }];
3586
+ readonly stateMutability: "view";
3587
+ readonly type: "function";
3588
+ }, {
3589
+ readonly inputs: readonly [{
3590
+ readonly internalType: "uint256";
3591
+ readonly name: "fileId";
3592
+ readonly type: "uint256";
3593
+ }];
3594
+ readonly name: "filePermissionIds";
3595
+ readonly outputs: readonly [{
3596
+ readonly internalType: "uint256[]";
3597
+ readonly name: "";
3598
+ readonly type: "uint256[]";
3599
+ }];
3600
+ readonly stateMutability: "view";
3601
+ readonly type: "function";
3602
+ }, {
3603
+ readonly inputs: readonly [{
3604
+ readonly internalType: "uint256";
3605
+ readonly name: "fileId";
3606
+ readonly type: "uint256";
3607
+ }];
3608
+ readonly name: "filePermissions";
3609
+ readonly outputs: readonly [{
3610
+ readonly internalType: "uint256[]";
3611
+ readonly name: "";
3612
+ readonly type: "uint256[]";
3613
+ }];
3614
+ readonly stateMutability: "view";
3615
+ readonly type: "function";
3616
+ }, {
3617
+ readonly inputs: readonly [{
3618
+ readonly internalType: "bytes32";
3619
+ readonly name: "role";
3620
+ readonly type: "bytes32";
3621
+ }];
3622
+ readonly name: "getRoleAdmin";
3623
+ readonly outputs: readonly [{
3624
+ readonly internalType: "bytes32";
3625
+ readonly name: "";
3626
+ readonly type: "bytes32";
3627
+ }];
3628
+ readonly stateMutability: "view";
3629
+ readonly type: "function";
3630
+ }, {
3631
+ readonly inputs: readonly [{
3632
+ readonly internalType: "bytes32";
3633
+ readonly name: "role";
3634
+ readonly type: "bytes32";
3635
+ }, {
3636
+ readonly internalType: "address";
3637
+ readonly name: "account";
3638
+ readonly type: "address";
3639
+ }];
3640
+ readonly name: "grantRole";
3641
+ readonly outputs: readonly [];
3642
+ readonly stateMutability: "nonpayable";
3643
+ readonly type: "function";
3644
+ }, {
3645
+ readonly inputs: readonly [{
3646
+ readonly internalType: "bytes32";
3647
+ readonly name: "role";
3648
+ readonly type: "bytes32";
3649
+ }, {
3650
+ readonly internalType: "address";
3651
+ readonly name: "account";
3652
+ readonly type: "address";
3653
+ }];
3654
+ readonly name: "hasRole";
3655
+ readonly outputs: readonly [{
3656
+ readonly internalType: "bool";
3657
+ readonly name: "";
3658
+ readonly type: "bool";
3659
+ }];
3660
+ readonly stateMutability: "view";
3661
+ readonly type: "function";
3662
+ }, {
3663
+ readonly inputs: readonly [{
3664
+ readonly internalType: "address";
3665
+ readonly name: "trustedForwarderAddress";
3666
+ readonly type: "address";
3667
+ }, {
3668
+ readonly internalType: "address";
3669
+ readonly name: "ownerAddress";
3670
+ readonly type: "address";
3671
+ }, {
3672
+ readonly internalType: "contract IDataRegistry";
3673
+ readonly name: "dataRegistryAddress";
3674
+ readonly type: "address";
3675
+ }, {
3676
+ readonly internalType: "contract IDataPortabilityServers";
3677
+ readonly name: "serversContractAddr";
3678
+ readonly type: "address";
3679
+ }, {
3680
+ readonly internalType: "contract IDataPortabilityGrantees";
3681
+ readonly name: "granteesContractAddr";
3682
+ readonly type: "address";
3683
+ }];
3684
+ readonly name: "initialize";
3685
+ readonly outputs: readonly [];
3686
+ readonly stateMutability: "nonpayable";
3687
+ readonly type: "function";
3688
+ }, {
3689
+ readonly inputs: readonly [{
3690
+ readonly internalType: "uint256";
3691
+ readonly name: "permissionId";
3692
+ readonly type: "uint256";
3693
+ }];
3694
+ readonly name: "isActivePermission";
3695
+ readonly outputs: readonly [{
3696
+ readonly internalType: "bool";
3697
+ readonly name: "";
3698
+ readonly type: "bool";
3699
+ }];
3700
+ readonly stateMutability: "view";
3701
+ readonly type: "function";
3702
+ }, {
3703
+ readonly inputs: readonly [{
3704
+ readonly internalType: "address";
3705
+ readonly name: "forwarder";
3706
+ readonly type: "address";
3707
+ }];
3708
+ readonly name: "isTrustedForwarder";
3709
+ readonly outputs: readonly [{
3710
+ readonly internalType: "bool";
3711
+ readonly name: "";
3712
+ readonly type: "bool";
3713
+ }];
3714
+ readonly stateMutability: "view";
3715
+ readonly type: "function";
3716
+ }, {
3717
+ readonly inputs: readonly [{
3718
+ readonly internalType: "bytes[]";
3719
+ readonly name: "data";
3720
+ readonly type: "bytes[]";
3721
+ }];
3722
+ readonly name: "multicall";
3723
+ readonly outputs: readonly [{
3724
+ readonly internalType: "bytes[]";
3725
+ readonly name: "results";
3726
+ readonly type: "bytes[]";
3727
+ }];
3728
+ readonly stateMutability: "nonpayable";
3729
+ readonly type: "function";
3730
+ }, {
3731
+ readonly inputs: readonly [];
3732
+ readonly name: "pause";
3733
+ readonly outputs: readonly [];
3734
+ readonly stateMutability: "nonpayable";
3735
+ readonly type: "function";
3736
+ }, {
3737
+ readonly inputs: readonly [];
3738
+ readonly name: "paused";
3739
+ readonly outputs: readonly [{
3740
+ readonly internalType: "bool";
3741
+ readonly name: "";
3742
+ readonly type: "bool";
3743
+ }];
3744
+ readonly stateMutability: "view";
3745
+ readonly type: "function";
3746
+ }, {
3747
+ readonly inputs: readonly [{
3748
+ readonly internalType: "uint256";
3749
+ readonly name: "permissionId";
3750
+ readonly type: "uint256";
3751
+ }];
3752
+ readonly name: "permissionFileIds";
3753
+ readonly outputs: readonly [{
3754
+ readonly internalType: "uint256[]";
3755
+ readonly name: "";
3756
+ readonly type: "uint256[]";
3757
+ }];
3758
+ readonly stateMutability: "view";
3759
+ readonly type: "function";
3760
+ }, {
3761
+ readonly inputs: readonly [{
3762
+ readonly internalType: "uint256";
3763
+ readonly name: "permissionId";
3764
+ readonly type: "uint256";
3765
+ }];
3766
+ readonly name: "permissions";
3767
+ readonly outputs: readonly [{
3768
+ readonly components: readonly [{
3769
+ readonly internalType: "uint256";
3770
+ readonly name: "id";
3771
+ readonly type: "uint256";
3772
+ }, {
3773
+ readonly internalType: "address";
3774
+ readonly name: "grantor";
3775
+ readonly type: "address";
3776
+ }, {
3777
+ readonly internalType: "uint256";
3778
+ readonly name: "nonce";
3779
+ readonly type: "uint256";
3780
+ }, {
3781
+ readonly internalType: "uint256";
3782
+ readonly name: "granteeId";
3783
+ readonly type: "uint256";
3784
+ }, {
3785
+ readonly internalType: "string";
3786
+ readonly name: "grant";
3787
+ readonly type: "string";
3788
+ }, {
3789
+ readonly internalType: "bytes";
3790
+ readonly name: "signature";
3791
+ readonly type: "bytes";
3792
+ }, {
3793
+ readonly internalType: "uint256";
3794
+ readonly name: "startBlock";
3795
+ readonly type: "uint256";
3796
+ }, {
3797
+ readonly internalType: "uint256";
3798
+ readonly name: "endBlock";
3799
+ readonly type: "uint256";
3800
+ }, {
3801
+ readonly internalType: "uint256[]";
3802
+ readonly name: "fileIds";
3803
+ readonly type: "uint256[]";
3804
+ }];
3805
+ readonly internalType: "struct IDataPortabilityPermissions.PermissionInfo";
3806
+ readonly name: "";
3807
+ readonly type: "tuple";
3808
+ }];
3809
+ readonly stateMutability: "view";
3810
+ readonly type: "function";
3811
+ }, {
3812
+ readonly inputs: readonly [];
3813
+ readonly name: "permissionsCount";
3814
+ readonly outputs: readonly [{
3815
+ readonly internalType: "uint256";
3816
+ readonly name: "";
3817
+ readonly type: "uint256";
3818
+ }];
3819
+ readonly stateMutability: "view";
3820
+ readonly type: "function";
3821
+ }, {
3822
+ readonly inputs: readonly [];
3823
+ readonly name: "proxiableUUID";
3824
+ readonly outputs: readonly [{
3825
+ readonly internalType: "bytes32";
3826
+ readonly name: "";
3827
+ readonly type: "bytes32";
3828
+ }];
3829
+ readonly stateMutability: "view";
3830
+ readonly type: "function";
3831
+ }, {
3832
+ readonly inputs: readonly [{
3833
+ readonly internalType: "bytes32";
3834
+ readonly name: "role";
3835
+ readonly type: "bytes32";
3836
+ }, {
3837
+ readonly internalType: "address";
3838
+ readonly name: "callerConfirmation";
3839
+ readonly type: "address";
3840
+ }];
3841
+ readonly name: "renounceRole";
3842
+ readonly outputs: readonly [];
3843
+ readonly stateMutability: "nonpayable";
3844
+ readonly type: "function";
3845
+ }, {
3846
+ readonly inputs: readonly [{
3847
+ readonly internalType: "uint256";
3848
+ readonly name: "permissionId";
3849
+ readonly type: "uint256";
3850
+ }];
3851
+ readonly name: "revokePermission";
3852
+ readonly outputs: readonly [];
3853
+ readonly stateMutability: "nonpayable";
3854
+ readonly type: "function";
3855
+ }, {
3856
+ readonly inputs: readonly [{
3857
+ readonly components: readonly [{
3858
+ readonly internalType: "uint256";
3859
+ readonly name: "nonce";
3860
+ readonly type: "uint256";
3861
+ }, {
3862
+ readonly internalType: "uint256";
3863
+ readonly name: "permissionId";
3864
+ readonly type: "uint256";
3865
+ }];
3866
+ readonly internalType: "struct IDataPortabilityPermissions.RevokePermissionInput";
3867
+ readonly name: "revokePermissionInput";
3868
+ readonly type: "tuple";
3869
+ }, {
3870
+ readonly internalType: "bytes";
3871
+ readonly name: "signature";
3872
+ readonly type: "bytes";
3873
+ }];
3874
+ readonly name: "revokePermissionWithSignature";
3875
+ readonly outputs: readonly [];
3876
+ readonly stateMutability: "nonpayable";
3877
+ readonly type: "function";
3878
+ }, {
3879
+ readonly inputs: readonly [{
3880
+ readonly internalType: "bytes32";
3881
+ readonly name: "role";
3882
+ readonly type: "bytes32";
3883
+ }, {
3884
+ readonly internalType: "address";
3885
+ readonly name: "account";
3886
+ readonly type: "address";
3887
+ }];
3888
+ readonly name: "revokeRole";
3889
+ readonly outputs: readonly [];
3890
+ readonly stateMutability: "nonpayable";
3891
+ readonly type: "function";
3892
+ }, {
3893
+ readonly inputs: readonly [{
3894
+ readonly internalType: "bytes32";
3895
+ readonly name: "role";
3896
+ readonly type: "bytes32";
3897
+ }, {
3898
+ readonly internalType: "bytes32";
3899
+ readonly name: "adminRole";
3900
+ readonly type: "bytes32";
3901
+ }];
3902
+ readonly name: "setRoleAdmin";
3903
+ readonly outputs: readonly [];
3904
+ readonly stateMutability: "nonpayable";
3905
+ readonly type: "function";
3906
+ }, {
3907
+ readonly inputs: readonly [{
3908
+ readonly internalType: "bytes4";
3909
+ readonly name: "interfaceId";
3910
+ readonly type: "bytes4";
3911
+ }];
3912
+ readonly name: "supportsInterface";
3913
+ readonly outputs: readonly [{
3914
+ readonly internalType: "bool";
3915
+ readonly name: "";
3916
+ readonly type: "bool";
3917
+ }];
3918
+ readonly stateMutability: "view";
3919
+ readonly type: "function";
3920
+ }, {
3921
+ readonly inputs: readonly [];
3922
+ readonly name: "trustedForwarder";
3923
+ readonly outputs: readonly [{
3924
+ readonly internalType: "address";
3925
+ readonly name: "";
3926
+ readonly type: "address";
3927
+ }];
3928
+ readonly stateMutability: "view";
3929
+ readonly type: "function";
3930
+ }, {
3931
+ readonly inputs: readonly [];
3932
+ readonly name: "unpause";
3933
+ readonly outputs: readonly [];
3934
+ readonly stateMutability: "nonpayable";
3935
+ readonly type: "function";
3936
+ }, {
3937
+ readonly inputs: readonly [{
3938
+ readonly internalType: "contract IDataRegistry";
3939
+ readonly name: "newDataRegistry";
3940
+ readonly type: "address";
3941
+ }];
3942
+ readonly name: "updateDataRegistry";
3943
+ readonly outputs: readonly [];
3944
+ readonly stateMutability: "nonpayable";
3945
+ readonly type: "function";
3946
+ }, {
3947
+ readonly inputs: readonly [{
3948
+ readonly internalType: "contract IDataPortabilityGrantees";
3949
+ readonly name: "newGranteesContract";
3950
+ readonly type: "address";
3951
+ }];
3952
+ readonly name: "updateGranteesContract";
3953
+ readonly outputs: readonly [];
3954
+ readonly stateMutability: "nonpayable";
3955
+ readonly type: "function";
3956
+ }, {
3957
+ readonly inputs: readonly [{
3958
+ readonly internalType: "contract IDataPortabilityServers";
3959
+ readonly name: "newServersContract";
3960
+ readonly type: "address";
3961
+ }];
3962
+ readonly name: "updateServersContract";
3963
+ readonly outputs: readonly [];
3964
+ readonly stateMutability: "nonpayable";
3965
+ readonly type: "function";
3966
+ }, {
3967
+ readonly inputs: readonly [{
3968
+ readonly internalType: "address";
3969
+ readonly name: "trustedForwarderAddress";
3970
+ readonly type: "address";
3971
+ }];
3972
+ readonly name: "updateTrustedForwarder";
3973
+ readonly outputs: readonly [];
3974
+ readonly stateMutability: "nonpayable";
3975
+ readonly type: "function";
3976
+ }, {
3977
+ readonly inputs: readonly [{
3978
+ readonly internalType: "address";
3979
+ readonly name: "newImplementation";
3980
+ readonly type: "address";
3981
+ }, {
3982
+ readonly internalType: "bytes";
3983
+ readonly name: "data";
3984
+ readonly type: "bytes";
3985
+ }];
3986
+ readonly name: "upgradeToAndCall";
3987
+ readonly outputs: readonly [];
3988
+ readonly stateMutability: "payable";
3989
+ readonly type: "function";
3990
+ }, {
3991
+ readonly inputs: readonly [{
3992
+ readonly internalType: "address";
3993
+ readonly name: "userAddress";
3994
+ readonly type: "address";
3995
+ }];
3996
+ readonly name: "userNonce";
3997
+ readonly outputs: readonly [{
3998
+ readonly internalType: "uint256";
3999
+ readonly name: "";
4000
+ readonly type: "uint256";
4001
+ }];
4002
+ readonly stateMutability: "view";
4003
+ readonly type: "function";
4004
+ }, {
4005
+ readonly inputs: readonly [{
4006
+ readonly internalType: "address";
4007
+ readonly name: "userAddress";
4008
+ readonly type: "address";
4009
+ }, {
4010
+ readonly internalType: "uint256";
4011
+ readonly name: "permissionIndex";
4012
+ readonly type: "uint256";
4013
+ }];
4014
+ readonly name: "userPermissionIdsAt";
4015
+ readonly outputs: readonly [{
4016
+ readonly internalType: "uint256";
4017
+ readonly name: "";
4018
+ readonly type: "uint256";
4019
+ }];
4020
+ readonly stateMutability: "view";
4021
+ readonly type: "function";
4022
+ }, {
4023
+ readonly inputs: readonly [{
4024
+ readonly internalType: "address";
4025
+ readonly name: "userAddress";
4026
+ readonly type: "address";
4027
+ }];
4028
+ readonly name: "userPermissionIdsLength";
4029
+ readonly outputs: readonly [{
4030
+ readonly internalType: "uint256";
4031
+ readonly name: "";
4032
+ readonly type: "uint256";
4033
+ }];
4034
+ readonly stateMutability: "view";
4035
+ readonly type: "function";
4036
+ }, {
4037
+ readonly inputs: readonly [{
4038
+ readonly internalType: "address";
4039
+ readonly name: "userAddress";
4040
+ readonly type: "address";
4041
+ }];
4042
+ readonly name: "userPermissionIdsValues";
4043
+ readonly outputs: readonly [{
4044
+ readonly internalType: "uint256[]";
4045
+ readonly name: "";
4046
+ readonly type: "uint256[]";
4047
+ }];
4048
+ readonly stateMutability: "view";
4049
+ readonly type: "function";
4050
+ }, {
4051
+ readonly inputs: readonly [{
4052
+ readonly internalType: "address";
4053
+ readonly name: "userAddress";
4054
+ readonly type: "address";
4055
+ }];
4056
+ readonly name: "users";
4057
+ readonly outputs: readonly [{
4058
+ readonly internalType: "uint256";
4059
+ readonly name: "nonce";
4060
+ readonly type: "uint256";
4061
+ }, {
4062
+ readonly internalType: "uint256[]";
4063
+ readonly name: "permissionIds";
4064
+ readonly type: "uint256[]";
4065
+ }];
4066
+ readonly stateMutability: "view";
4067
+ readonly type: "function";
4068
+ }, {
4069
+ readonly inputs: readonly [];
4070
+ readonly name: "version";
4071
+ readonly outputs: readonly [{
4072
+ readonly internalType: "uint256";
4073
+ readonly name: "";
4074
+ readonly type: "uint256";
4075
+ }];
4076
+ readonly stateMutability: "pure";
4077
+ readonly type: "function";
4078
+ }];
4079
+ readonly DataPortabilityServers: readonly [{
4080
+ readonly inputs: readonly [];
4081
+ readonly stateMutability: "nonpayable";
4082
+ readonly type: "constructor";
4083
+ }, {
4084
+ readonly inputs: readonly [];
4085
+ readonly name: "AccessControlBadConfirmation";
4086
+ readonly type: "error";
4087
+ }, {
4088
+ readonly inputs: readonly [{
4089
+ readonly internalType: "address";
4090
+ readonly name: "account";
4091
+ readonly type: "address";
4092
+ }, {
4093
+ readonly internalType: "bytes32";
4094
+ readonly name: "neededRole";
4095
+ readonly type: "bytes32";
4096
+ }];
4097
+ readonly name: "AccessControlUnauthorizedAccount";
4098
+ readonly type: "error";
4099
+ }, {
4100
+ readonly inputs: readonly [{
4101
+ readonly internalType: "address";
4102
+ readonly name: "target";
4103
+ readonly type: "address";
4104
+ }];
4105
+ readonly name: "AddressEmptyCode";
4106
+ readonly type: "error";
4107
+ }, {
4108
+ readonly inputs: readonly [];
4109
+ readonly name: "ECDSAInvalidSignature";
4110
+ readonly type: "error";
4111
+ }, {
4112
+ readonly inputs: readonly [{
4113
+ readonly internalType: "uint256";
4114
+ readonly name: "length";
4115
+ readonly type: "uint256";
4116
+ }];
4117
+ readonly name: "ECDSAInvalidSignatureLength";
4118
+ readonly type: "error";
4119
+ }, {
4120
+ readonly inputs: readonly [{
4121
+ readonly internalType: "bytes32";
4122
+ readonly name: "s";
4123
+ readonly type: "bytes32";
4124
+ }];
4125
+ readonly name: "ECDSAInvalidSignatureS";
4126
+ readonly type: "error";
4127
+ }, {
4128
+ readonly inputs: readonly [{
4129
+ readonly internalType: "address";
4130
+ readonly name: "implementation";
4131
+ readonly type: "address";
4132
+ }];
4133
+ readonly name: "ERC1967InvalidImplementation";
4134
+ readonly type: "error";
4135
+ }, {
4136
+ readonly inputs: readonly [];
4137
+ readonly name: "ERC1967NonPayable";
4138
+ readonly type: "error";
4139
+ }, {
4140
+ readonly inputs: readonly [];
4141
+ readonly name: "EmptyPublicKey";
4142
+ readonly type: "error";
4143
+ }, {
4144
+ readonly inputs: readonly [];
4145
+ readonly name: "EmptyUrl";
4146
+ readonly type: "error";
4147
+ }, {
4148
+ readonly inputs: readonly [];
4149
+ readonly name: "EnforcedPause";
4150
+ readonly type: "error";
4151
+ }, {
4152
+ readonly inputs: readonly [];
4153
+ readonly name: "ExpectedPause";
4154
+ readonly type: "error";
4155
+ }, {
4156
+ readonly inputs: readonly [];
4157
+ readonly name: "FailedInnerCall";
4158
+ readonly type: "error";
4159
+ }, {
4160
+ readonly inputs: readonly [];
4161
+ readonly name: "InvalidInitialization";
4162
+ readonly type: "error";
4163
+ }, {
4164
+ readonly inputs: readonly [{
4165
+ readonly internalType: "uint256";
4166
+ readonly name: "expectedNonce";
4167
+ readonly type: "uint256";
4168
+ }, {
4169
+ readonly internalType: "uint256";
4170
+ readonly name: "providedNonce";
4171
+ readonly type: "uint256";
4172
+ }];
4173
+ readonly name: "InvalidNonce";
4174
+ readonly type: "error";
4175
+ }, {
4176
+ readonly inputs: readonly [];
4177
+ readonly name: "NotInitializing";
4178
+ readonly type: "error";
4179
+ }, {
4180
+ readonly inputs: readonly [{
4181
+ readonly internalType: "address";
4182
+ readonly name: "serverOwner";
4183
+ readonly type: "address";
4184
+ }, {
4185
+ readonly internalType: "address";
4186
+ readonly name: "requestor";
4187
+ readonly type: "address";
4188
+ }];
4189
+ readonly name: "NotServerOwner";
4190
+ readonly type: "error";
4191
+ }, {
4192
+ readonly inputs: readonly [];
4193
+ readonly name: "ServerAlreadyRegistered";
4194
+ readonly type: "error";
4195
+ }, {
4196
+ readonly inputs: readonly [];
4197
+ readonly name: "ServerAlreadyTrusted";
4198
+ readonly type: "error";
4199
+ }, {
4200
+ readonly inputs: readonly [];
4201
+ readonly name: "ServerAlreadyUntrusted";
4202
+ readonly type: "error";
4203
+ }, {
4204
+ readonly inputs: readonly [];
4205
+ readonly name: "ServerNotFound";
4206
+ readonly type: "error";
4207
+ }, {
4208
+ readonly inputs: readonly [];
4209
+ readonly name: "ServerNotTrusted";
4210
+ readonly type: "error";
4211
+ }, {
4212
+ readonly inputs: readonly [{
4213
+ readonly internalType: "string";
4214
+ readonly name: "existingUrl";
4215
+ readonly type: "string";
4216
+ }, {
4217
+ readonly internalType: "string";
4218
+ readonly name: "providedUrl";
4219
+ readonly type: "string";
4220
+ }];
4221
+ readonly name: "ServerUrlMismatch";
4222
+ readonly type: "error";
4223
+ }, {
4224
+ readonly inputs: readonly [];
4225
+ readonly name: "UUPSUnauthorizedCallContext";
4226
+ readonly type: "error";
4227
+ }, {
4228
+ readonly inputs: readonly [{
4229
+ readonly internalType: "bytes32";
4230
+ readonly name: "slot";
4231
+ readonly type: "bytes32";
4232
+ }];
4233
+ readonly name: "UUPSUnsupportedProxiableUUID";
4234
+ readonly type: "error";
4235
+ }, {
4236
+ readonly inputs: readonly [];
4237
+ readonly name: "ZeroAddress";
4238
+ readonly type: "error";
4239
+ }, {
4240
+ readonly anonymous: false;
4241
+ readonly inputs: readonly [];
4242
+ readonly name: "EIP712DomainChanged";
4243
+ readonly type: "event";
4244
+ }, {
4245
+ readonly anonymous: false;
4246
+ readonly inputs: readonly [{
4247
+ readonly indexed: false;
4248
+ readonly internalType: "uint64";
4249
+ readonly name: "version";
4250
+ readonly type: "uint64";
4251
+ }];
4252
+ readonly name: "Initialized";
4253
+ readonly type: "event";
4254
+ }, {
4255
+ readonly anonymous: false;
4256
+ readonly inputs: readonly [{
4257
+ readonly indexed: false;
4258
+ readonly internalType: "address";
4259
+ readonly name: "account";
4260
+ readonly type: "address";
4261
+ }];
4262
+ readonly name: "Paused";
4263
+ readonly type: "event";
4264
+ }, {
4265
+ readonly anonymous: false;
4266
+ readonly inputs: readonly [{
4267
+ readonly indexed: true;
4268
+ readonly internalType: "bytes32";
4269
+ readonly name: "role";
4270
+ readonly type: "bytes32";
4271
+ }, {
4272
+ readonly indexed: true;
4273
+ readonly internalType: "bytes32";
4274
+ readonly name: "previousAdminRole";
4275
+ readonly type: "bytes32";
4276
+ }, {
4277
+ readonly indexed: true;
4278
+ readonly internalType: "bytes32";
4279
+ readonly name: "newAdminRole";
4280
+ readonly type: "bytes32";
4281
+ }];
4282
+ readonly name: "RoleAdminChanged";
4283
+ readonly type: "event";
4284
+ }, {
4285
+ readonly anonymous: false;
4286
+ readonly inputs: readonly [{
4287
+ readonly indexed: true;
4288
+ readonly internalType: "bytes32";
4289
+ readonly name: "role";
4290
+ readonly type: "bytes32";
4291
+ }, {
4292
+ readonly indexed: true;
4293
+ readonly internalType: "address";
4294
+ readonly name: "account";
4295
+ readonly type: "address";
4296
+ }, {
4297
+ readonly indexed: true;
4298
+ readonly internalType: "address";
4299
+ readonly name: "sender";
4300
+ readonly type: "address";
4301
+ }];
4302
+ readonly name: "RoleGranted";
4303
+ readonly type: "event";
4304
+ }, {
4305
+ readonly anonymous: false;
4306
+ readonly inputs: readonly [{
4307
+ readonly indexed: true;
4308
+ readonly internalType: "bytes32";
4309
+ readonly name: "role";
4310
+ readonly type: "bytes32";
4311
+ }, {
4312
+ readonly indexed: true;
4313
+ readonly internalType: "address";
4314
+ readonly name: "account";
4315
+ readonly type: "address";
4316
+ }, {
4317
+ readonly indexed: true;
4318
+ readonly internalType: "address";
4319
+ readonly name: "sender";
4320
+ readonly type: "address";
4321
+ }];
4322
+ readonly name: "RoleRevoked";
4323
+ readonly type: "event";
4324
+ }, {
4325
+ readonly anonymous: false;
4326
+ readonly inputs: readonly [{
4327
+ readonly indexed: true;
4328
+ readonly internalType: "uint256";
4329
+ readonly name: "serverId";
4330
+ readonly type: "uint256";
4331
+ }, {
4332
+ readonly indexed: true;
4333
+ readonly internalType: "address";
4334
+ readonly name: "owner";
4335
+ readonly type: "address";
4336
+ }, {
4337
+ readonly indexed: true;
4338
+ readonly internalType: "address";
4339
+ readonly name: "serverAddress";
4340
+ readonly type: "address";
4341
+ }, {
4342
+ readonly indexed: false;
4343
+ readonly internalType: "bytes";
4344
+ readonly name: "publicKey";
4345
+ readonly type: "bytes";
4346
+ }, {
4347
+ readonly indexed: false;
4348
+ readonly internalType: "string";
4349
+ readonly name: "url";
4350
+ readonly type: "string";
4351
+ }];
4352
+ readonly name: "ServerRegistered";
4353
+ readonly type: "event";
4354
+ }, {
4355
+ readonly anonymous: false;
4356
+ readonly inputs: readonly [{
4357
+ readonly indexed: true;
4358
+ readonly internalType: "address";
4359
+ readonly name: "user";
4360
+ readonly type: "address";
4361
+ }, {
4362
+ readonly indexed: true;
4363
+ readonly internalType: "uint256";
4364
+ readonly name: "serverId";
4365
+ readonly type: "uint256";
4366
+ }];
4367
+ readonly name: "ServerTrusted";
4368
+ readonly type: "event";
4369
+ }, {
4370
+ readonly anonymous: false;
4371
+ readonly inputs: readonly [{
4372
+ readonly indexed: true;
4373
+ readonly internalType: "address";
4374
+ readonly name: "user";
4375
+ readonly type: "address";
4376
+ }, {
4377
+ readonly indexed: true;
4378
+ readonly internalType: "uint256";
4379
+ readonly name: "serverId";
4380
+ readonly type: "uint256";
4381
+ }];
4382
+ readonly name: "ServerUntrusted";
4383
+ readonly type: "event";
4384
+ }, {
4385
+ readonly anonymous: false;
4386
+ readonly inputs: readonly [{
4387
+ readonly indexed: true;
4388
+ readonly internalType: "uint256";
4389
+ readonly name: "serverId";
4390
+ readonly type: "uint256";
4391
+ }, {
4392
+ readonly indexed: false;
4393
+ readonly internalType: "string";
4394
+ readonly name: "url";
4395
+ readonly type: "string";
4396
+ }];
4397
+ readonly name: "ServerUpdated";
4398
+ readonly type: "event";
4399
+ }, {
4400
+ readonly anonymous: false;
4401
+ readonly inputs: readonly [{
4402
+ readonly indexed: false;
4403
+ readonly internalType: "address";
4404
+ readonly name: "account";
4405
+ readonly type: "address";
4406
+ }];
4407
+ readonly name: "Unpaused";
4408
+ readonly type: "event";
4409
+ }, {
4410
+ readonly anonymous: false;
4411
+ readonly inputs: readonly [{
4412
+ readonly indexed: true;
4413
+ readonly internalType: "address";
4414
+ readonly name: "implementation";
4415
+ readonly type: "address";
4416
+ }];
4417
+ readonly name: "Upgraded";
4418
+ readonly type: "event";
4419
+ }, {
4420
+ readonly inputs: readonly [];
4421
+ readonly name: "DEFAULT_ADMIN_ROLE";
4422
+ readonly outputs: readonly [{
4423
+ readonly internalType: "bytes32";
4424
+ readonly name: "";
4425
+ readonly type: "bytes32";
4426
+ }];
4427
+ readonly stateMutability: "view";
4428
+ readonly type: "function";
4429
+ }, {
4430
+ readonly inputs: readonly [];
4431
+ readonly name: "MAINTAINER_ROLE";
4432
+ readonly outputs: readonly [{
4433
+ readonly internalType: "bytes32";
4434
+ readonly name: "";
4435
+ readonly type: "bytes32";
4436
+ }];
4437
+ readonly stateMutability: "view";
4438
+ readonly type: "function";
4439
+ }, {
4440
+ readonly inputs: readonly [];
4441
+ readonly name: "UPGRADE_INTERFACE_VERSION";
4442
+ readonly outputs: readonly [{
4443
+ readonly internalType: "string";
4444
+ readonly name: "";
4445
+ readonly type: "string";
4446
+ }];
4447
+ readonly stateMutability: "view";
4448
+ readonly type: "function";
4449
+ }, {
4450
+ readonly inputs: readonly [{
4451
+ readonly components: readonly [{
4452
+ readonly internalType: "address";
4453
+ readonly name: "owner";
4454
+ readonly type: "address";
4455
+ }, {
4456
+ readonly internalType: "address";
4457
+ readonly name: "serverAddress";
4458
+ readonly type: "address";
4459
+ }, {
4460
+ readonly internalType: "bytes";
4461
+ readonly name: "publicKey";
4462
+ readonly type: "bytes";
4463
+ }, {
4464
+ readonly internalType: "string";
4465
+ readonly name: "serverUrl";
4466
+ readonly type: "string";
4467
+ }];
4468
+ readonly internalType: "struct IDataPortabilityServers.AddServerInput";
4469
+ readonly name: "addAndTrustServerInput";
4470
+ readonly type: "tuple";
4471
+ }];
4472
+ readonly name: "addAndTrustServer";
4473
+ readonly outputs: readonly [];
4474
+ readonly stateMutability: "nonpayable";
4475
+ readonly type: "function";
4476
+ }, {
4477
+ readonly inputs: readonly [{
4478
+ readonly components: readonly [{
4479
+ readonly internalType: "uint256";
4480
+ readonly name: "nonce";
4481
+ readonly type: "uint256";
4482
+ }, {
4483
+ readonly internalType: "address";
4484
+ readonly name: "owner";
4485
+ readonly type: "address";
4486
+ }, {
4487
+ readonly internalType: "address";
4488
+ readonly name: "serverAddress";
4489
+ readonly type: "address";
4490
+ }, {
4491
+ readonly internalType: "bytes";
4492
+ readonly name: "publicKey";
4493
+ readonly type: "bytes";
4494
+ }, {
4495
+ readonly internalType: "string";
4496
+ readonly name: "serverUrl";
4497
+ readonly type: "string";
4498
+ }];
4499
+ readonly internalType: "struct IDataPortabilityServers.AddAndTrustServerInput";
4500
+ readonly name: "addAndTrustServerInput";
4501
+ readonly type: "tuple";
4502
+ }, {
4503
+ readonly internalType: "bytes";
4504
+ readonly name: "signature";
4505
+ readonly type: "bytes";
4506
+ }];
4507
+ readonly name: "addAndTrustServerWithSignature";
4508
+ readonly outputs: readonly [];
4509
+ readonly stateMutability: "nonpayable";
4510
+ readonly type: "function";
4511
+ }, {
4512
+ readonly inputs: readonly [{
4513
+ readonly components: readonly [{
4514
+ readonly internalType: "address";
4515
+ readonly name: "owner";
4516
+ readonly type: "address";
4517
+ }, {
4518
+ readonly internalType: "address";
4519
+ readonly name: "serverAddress";
4520
+ readonly type: "address";
4521
+ }, {
4522
+ readonly internalType: "bytes";
4523
+ readonly name: "publicKey";
4524
+ readonly type: "bytes";
4525
+ }, {
4526
+ readonly internalType: "string";
4527
+ readonly name: "serverUrl";
4528
+ readonly type: "string";
4529
+ }];
4530
+ readonly internalType: "struct IDataPortabilityServers.AddServerInput";
4531
+ readonly name: "addServerInput";
4532
+ readonly type: "tuple";
4533
+ }];
4534
+ readonly name: "addServer";
4535
+ readonly outputs: readonly [];
4536
+ readonly stateMutability: "nonpayable";
4537
+ readonly type: "function";
4538
+ }, {
4539
+ readonly inputs: readonly [];
4540
+ readonly name: "eip712Domain";
4541
+ readonly outputs: readonly [{
4542
+ readonly internalType: "bytes1";
4543
+ readonly name: "fields";
4544
+ readonly type: "bytes1";
4545
+ }, {
4546
+ readonly internalType: "string";
4547
+ readonly name: "name";
4548
+ readonly type: "string";
4549
+ }, {
4550
+ readonly internalType: "string";
4551
+ readonly name: "version";
4552
+ readonly type: "string";
4553
+ }, {
4554
+ readonly internalType: "uint256";
4555
+ readonly name: "chainId";
4556
+ readonly type: "uint256";
4557
+ }, {
4558
+ readonly internalType: "address";
4559
+ readonly name: "verifyingContract";
4560
+ readonly type: "address";
4561
+ }, {
4562
+ readonly internalType: "bytes32";
4563
+ readonly name: "salt";
4564
+ readonly type: "bytes32";
4565
+ }, {
4566
+ readonly internalType: "uint256[]";
4567
+ readonly name: "extensions";
4568
+ readonly type: "uint256[]";
4569
+ }];
4570
+ readonly stateMutability: "view";
4571
+ readonly type: "function";
4572
+ }, {
4573
+ readonly inputs: readonly [{
4574
+ readonly internalType: "bytes32";
4575
+ readonly name: "role";
4576
+ readonly type: "bytes32";
4577
+ }];
4578
+ readonly name: "getRoleAdmin";
4579
+ readonly outputs: readonly [{
4580
+ readonly internalType: "bytes32";
4581
+ readonly name: "";
4582
+ readonly type: "bytes32";
4583
+ }];
4584
+ readonly stateMutability: "view";
4585
+ readonly type: "function";
4586
+ }, {
4587
+ readonly inputs: readonly [{
4588
+ readonly internalType: "bytes32";
4589
+ readonly name: "role";
4590
+ readonly type: "bytes32";
4591
+ }, {
4592
+ readonly internalType: "address";
4593
+ readonly name: "account";
4594
+ readonly type: "address";
4595
+ }];
4596
+ readonly name: "grantRole";
4597
+ readonly outputs: readonly [];
4598
+ readonly stateMutability: "nonpayable";
4599
+ readonly type: "function";
4600
+ }, {
4601
+ readonly inputs: readonly [{
4602
+ readonly internalType: "bytes32";
4603
+ readonly name: "role";
4604
+ readonly type: "bytes32";
4605
+ }, {
4606
+ readonly internalType: "address";
4607
+ readonly name: "account";
4608
+ readonly type: "address";
4609
+ }];
4610
+ readonly name: "hasRole";
4611
+ readonly outputs: readonly [{
4612
+ readonly internalType: "bool";
4613
+ readonly name: "";
4614
+ readonly type: "bool";
4615
+ }];
4616
+ readonly stateMutability: "view";
4617
+ readonly type: "function";
4618
+ }, {
4619
+ readonly inputs: readonly [{
4620
+ readonly internalType: "address";
4621
+ readonly name: "trustedForwarderAddress";
4622
+ readonly type: "address";
4623
+ }, {
4624
+ readonly internalType: "address";
4625
+ readonly name: "ownerAddress";
4626
+ readonly type: "address";
4627
+ }];
4628
+ readonly name: "initialize";
4629
+ readonly outputs: readonly [];
4630
+ readonly stateMutability: "nonpayable";
4631
+ readonly type: "function";
4632
+ }, {
4633
+ readonly inputs: readonly [{
4634
+ readonly internalType: "uint256";
4635
+ readonly name: "serverId";
4636
+ readonly type: "uint256";
4637
+ }];
4638
+ readonly name: "isActiveServer";
4639
+ readonly outputs: readonly [{
4640
+ readonly internalType: "bool";
4641
+ readonly name: "";
4642
+ readonly type: "bool";
4643
+ }];
4644
+ readonly stateMutability: "view";
4645
+ readonly type: "function";
4646
+ }, {
4647
+ readonly inputs: readonly [{
4648
+ readonly internalType: "address";
4649
+ readonly name: "userAddress";
4650
+ readonly type: "address";
4651
+ }, {
4652
+ readonly internalType: "uint256";
4653
+ readonly name: "serverId";
4654
+ readonly type: "uint256";
4655
+ }];
4656
+ readonly name: "isActiveServerForUser";
4657
+ readonly outputs: readonly [{
4658
+ readonly internalType: "bool";
4659
+ readonly name: "";
4660
+ readonly type: "bool";
4661
+ }];
4662
+ readonly stateMutability: "view";
4663
+ readonly type: "function";
4664
+ }, {
4665
+ readonly inputs: readonly [{
4666
+ readonly internalType: "address";
4667
+ readonly name: "forwarder";
4668
+ readonly type: "address";
4669
+ }];
4670
+ readonly name: "isTrustedForwarder";
4671
+ readonly outputs: readonly [{
4672
+ readonly internalType: "bool";
4673
+ readonly name: "";
4674
+ readonly type: "bool";
4675
+ }];
4676
+ readonly stateMutability: "view";
4677
+ readonly type: "function";
4678
+ }, {
4679
+ readonly inputs: readonly [{
4680
+ readonly internalType: "bytes[]";
4681
+ readonly name: "data";
4682
+ readonly type: "bytes[]";
4683
+ }];
4684
+ readonly name: "multicall";
4685
+ readonly outputs: readonly [{
4686
+ readonly internalType: "bytes[]";
4687
+ readonly name: "results";
4688
+ readonly type: "bytes[]";
4689
+ }];
4690
+ readonly stateMutability: "nonpayable";
4691
+ readonly type: "function";
4692
+ }, {
4693
+ readonly inputs: readonly [];
4694
+ readonly name: "pause";
4695
+ readonly outputs: readonly [];
4696
+ readonly stateMutability: "nonpayable";
4697
+ readonly type: "function";
4698
+ }, {
4699
+ readonly inputs: readonly [];
4700
+ readonly name: "paused";
4701
+ readonly outputs: readonly [{
4702
+ readonly internalType: "bool";
4703
+ readonly name: "";
4704
+ readonly type: "bool";
4705
+ }];
4706
+ readonly stateMutability: "view";
4707
+ readonly type: "function";
4708
+ }, {
4709
+ readonly inputs: readonly [];
4710
+ readonly name: "proxiableUUID";
4711
+ readonly outputs: readonly [{
4712
+ readonly internalType: "bytes32";
4713
+ readonly name: "";
4714
+ readonly type: "bytes32";
4715
+ }];
4716
+ readonly stateMutability: "view";
4717
+ readonly type: "function";
4718
+ }, {
4719
+ readonly inputs: readonly [{
4720
+ readonly internalType: "bytes32";
4721
+ readonly name: "role";
4722
+ readonly type: "bytes32";
4723
+ }, {
4724
+ readonly internalType: "address";
4725
+ readonly name: "callerConfirmation";
4726
+ readonly type: "address";
4727
+ }];
4728
+ readonly name: "renounceRole";
4729
+ readonly outputs: readonly [];
4730
+ readonly stateMutability: "nonpayable";
4731
+ readonly type: "function";
4732
+ }, {
4733
+ readonly inputs: readonly [{
4734
+ readonly internalType: "bytes32";
4735
+ readonly name: "role";
4736
+ readonly type: "bytes32";
4737
+ }, {
4738
+ readonly internalType: "address";
4739
+ readonly name: "account";
4740
+ readonly type: "address";
4741
+ }];
4742
+ readonly name: "revokeRole";
4743
+ readonly outputs: readonly [];
4744
+ readonly stateMutability: "nonpayable";
4745
+ readonly type: "function";
4746
+ }, {
4747
+ readonly inputs: readonly [{
4748
+ readonly internalType: "address";
4749
+ readonly name: "serverAddress";
4750
+ readonly type: "address";
4751
+ }];
4752
+ readonly name: "serverAddressToId";
4753
+ readonly outputs: readonly [{
4754
+ readonly internalType: "uint256";
4755
+ readonly name: "serverId";
4756
+ readonly type: "uint256";
4757
+ }];
4758
+ readonly stateMutability: "view";
4759
+ readonly type: "function";
4760
+ }, {
4761
+ readonly inputs: readonly [{
4762
+ readonly internalType: "address";
4763
+ readonly name: "serverAddress";
4764
+ readonly type: "address";
4765
+ }];
4766
+ readonly name: "serverByAddress";
4767
+ readonly outputs: readonly [{
4768
+ readonly components: readonly [{
4769
+ readonly internalType: "uint256";
4770
+ readonly name: "id";
4771
+ readonly type: "uint256";
4772
+ }, {
4773
+ readonly internalType: "address";
4774
+ readonly name: "owner";
4775
+ readonly type: "address";
4776
+ }, {
4777
+ readonly internalType: "address";
4778
+ readonly name: "serverAddress";
4779
+ readonly type: "address";
4780
+ }, {
4781
+ readonly internalType: "bytes";
4782
+ readonly name: "publicKey";
4783
+ readonly type: "bytes";
4784
+ }, {
4785
+ readonly internalType: "string";
4786
+ readonly name: "url";
4787
+ readonly type: "string";
4788
+ }];
4789
+ readonly internalType: "struct IDataPortabilityServers.ServerInfo";
4790
+ readonly name: "";
4791
+ readonly type: "tuple";
4792
+ }];
4793
+ readonly stateMutability: "view";
4794
+ readonly type: "function";
4795
+ }, {
4796
+ readonly inputs: readonly [{
4797
+ readonly internalType: "uint256";
4798
+ readonly name: "serverId";
4799
+ readonly type: "uint256";
4800
+ }];
4801
+ readonly name: "servers";
4802
+ readonly outputs: readonly [{
4803
+ readonly components: readonly [{
4804
+ readonly internalType: "uint256";
4805
+ readonly name: "id";
4806
+ readonly type: "uint256";
4807
+ }, {
4808
+ readonly internalType: "address";
4809
+ readonly name: "owner";
4810
+ readonly type: "address";
4811
+ }, {
4812
+ readonly internalType: "address";
4813
+ readonly name: "serverAddress";
4814
+ readonly type: "address";
4815
+ }, {
4816
+ readonly internalType: "bytes";
4817
+ readonly name: "publicKey";
4818
+ readonly type: "bytes";
4819
+ }, {
4820
+ readonly internalType: "string";
4821
+ readonly name: "url";
4822
+ readonly type: "string";
4823
+ }];
4824
+ readonly internalType: "struct IDataPortabilityServers.ServerInfo";
4825
+ readonly name: "";
4826
+ readonly type: "tuple";
4827
+ }];
4828
+ readonly stateMutability: "view";
4829
+ readonly type: "function";
4830
+ }, {
4831
+ readonly inputs: readonly [];
4832
+ readonly name: "serversCount";
4833
+ readonly outputs: readonly [{
4834
+ readonly internalType: "uint256";
4835
+ readonly name: "";
4836
+ readonly type: "uint256";
4837
+ }];
4838
+ readonly stateMutability: "view";
4839
+ readonly type: "function";
4840
+ }, {
4841
+ readonly inputs: readonly [{
4842
+ readonly internalType: "bytes32";
4843
+ readonly name: "role";
4844
+ readonly type: "bytes32";
4845
+ }, {
4846
+ readonly internalType: "bytes32";
4847
+ readonly name: "adminRole";
4848
+ readonly type: "bytes32";
4849
+ }];
4850
+ readonly name: "setRoleAdmin";
4851
+ readonly outputs: readonly [];
4852
+ readonly stateMutability: "nonpayable";
4853
+ readonly type: "function";
4854
+ }, {
4855
+ readonly inputs: readonly [{
4856
+ readonly internalType: "address";
4857
+ readonly name: "userAddress";
4858
+ readonly type: "address";
4859
+ }, {
4860
+ readonly internalType: "uint256";
4861
+ readonly name: "nonce";
4862
+ readonly type: "uint256";
4863
+ }];
4864
+ readonly name: "setUserNonce";
4865
+ readonly outputs: readonly [];
4866
+ readonly stateMutability: "nonpayable";
4867
+ readonly type: "function";
4868
+ }, {
4869
+ readonly inputs: readonly [{
4870
+ readonly internalType: "bytes4";
4871
+ readonly name: "interfaceId";
4872
+ readonly type: "bytes4";
4873
+ }];
4874
+ readonly name: "supportsInterface";
4875
+ readonly outputs: readonly [{
4876
+ readonly internalType: "bool";
4877
+ readonly name: "";
4878
+ readonly type: "bool";
4879
+ }];
4880
+ readonly stateMutability: "view";
4881
+ readonly type: "function";
4882
+ }, {
4883
+ readonly inputs: readonly [{
4884
+ readonly internalType: "uint256";
4885
+ readonly name: "serverId";
4886
+ readonly type: "uint256";
4887
+ }];
4888
+ readonly name: "trustServer";
4889
+ readonly outputs: readonly [];
4890
+ readonly stateMutability: "nonpayable";
4891
+ readonly type: "function";
4892
+ }, {
4893
+ readonly inputs: readonly [{
4894
+ readonly components: readonly [{
4895
+ readonly internalType: "uint256";
4896
+ readonly name: "nonce";
4897
+ readonly type: "uint256";
4898
+ }, {
4899
+ readonly internalType: "uint256";
4900
+ readonly name: "serverId";
4901
+ readonly type: "uint256";
4902
+ }];
4903
+ readonly internalType: "struct IDataPortabilityServers.TrustServerInput";
4904
+ readonly name: "trustServerInput";
4905
+ readonly type: "tuple";
4906
+ }, {
4907
+ readonly internalType: "bytes";
4908
+ readonly name: "signature";
4909
+ readonly type: "bytes";
4910
+ }];
4911
+ readonly name: "trustServerWithSignature";
4912
+ readonly outputs: readonly [];
4913
+ readonly stateMutability: "nonpayable";
4914
+ readonly type: "function";
4915
+ }, {
4916
+ readonly inputs: readonly [];
4917
+ readonly name: "trustedForwarder";
4918
+ readonly outputs: readonly [{
4919
+ readonly internalType: "address";
4920
+ readonly name: "";
4921
+ readonly type: "address";
4922
+ }];
4923
+ readonly stateMutability: "view";
4924
+ readonly type: "function";
4925
+ }, {
4926
+ readonly inputs: readonly [];
4927
+ readonly name: "unpause";
4928
+ readonly outputs: readonly [];
4929
+ readonly stateMutability: "nonpayable";
4930
+ readonly type: "function";
4931
+ }, {
4932
+ readonly inputs: readonly [{
4933
+ readonly internalType: "uint256";
4934
+ readonly name: "serverId";
4935
+ readonly type: "uint256";
4936
+ }];
4937
+ readonly name: "untrustServer";
4938
+ readonly outputs: readonly [];
4939
+ readonly stateMutability: "nonpayable";
4940
+ readonly type: "function";
4941
+ }, {
4942
+ readonly inputs: readonly [{
4943
+ readonly components: readonly [{
4944
+ readonly internalType: "uint256";
4945
+ readonly name: "nonce";
4946
+ readonly type: "uint256";
4947
+ }, {
4948
+ readonly internalType: "uint256";
4949
+ readonly name: "serverId";
4950
+ readonly type: "uint256";
4951
+ }];
4952
+ readonly internalType: "struct IDataPortabilityServers.UntrustServerInput";
4953
+ readonly name: "untrustServerInput";
4954
+ readonly type: "tuple";
4955
+ }, {
4956
+ readonly internalType: "bytes";
4957
+ readonly name: "signature";
4958
+ readonly type: "bytes";
4959
+ }];
4960
+ readonly name: "untrustServerWithSignature";
4961
+ readonly outputs: readonly [];
4962
+ readonly stateMutability: "nonpayable";
4963
+ readonly type: "function";
4964
+ }, {
4965
+ readonly inputs: readonly [{
4966
+ readonly internalType: "uint256";
4967
+ readonly name: "serverId";
4968
+ readonly type: "uint256";
4969
+ }, {
4970
+ readonly internalType: "string";
4971
+ readonly name: "url";
4972
+ readonly type: "string";
4973
+ }];
4974
+ readonly name: "updateServer";
4975
+ readonly outputs: readonly [];
4976
+ readonly stateMutability: "nonpayable";
4977
+ readonly type: "function";
4978
+ }, {
4979
+ readonly inputs: readonly [{
4980
+ readonly internalType: "address";
4981
+ readonly name: "trustedForwarderAddress";
4982
+ readonly type: "address";
4983
+ }];
4984
+ readonly name: "updateTrustedForwarder";
4985
+ readonly outputs: readonly [];
4986
+ readonly stateMutability: "nonpayable";
4987
+ readonly type: "function";
4988
+ }, {
4989
+ readonly inputs: readonly [{
4990
+ readonly internalType: "address";
4991
+ readonly name: "newImplementation";
4992
+ readonly type: "address";
4993
+ }, {
4994
+ readonly internalType: "bytes";
4995
+ readonly name: "data";
4996
+ readonly type: "bytes";
4997
+ }];
4998
+ readonly name: "upgradeToAndCall";
4999
+ readonly outputs: readonly [];
5000
+ readonly stateMutability: "payable";
5001
+ readonly type: "function";
5002
+ }, {
5003
+ readonly inputs: readonly [{
5004
+ readonly internalType: "address";
5005
+ readonly name: "userAddress";
5006
+ readonly type: "address";
5007
+ }];
5008
+ readonly name: "userNonce";
5009
+ readonly outputs: readonly [{
5010
+ readonly internalType: "uint256";
5011
+ readonly name: "";
5012
+ readonly type: "uint256";
5013
+ }];
5014
+ readonly stateMutability: "view";
5015
+ readonly type: "function";
5016
+ }, {
5017
+ readonly inputs: readonly [{
5018
+ readonly internalType: "address";
5019
+ readonly name: "userAddress";
5020
+ readonly type: "address";
5021
+ }, {
5022
+ readonly internalType: "uint256";
5023
+ readonly name: "serverIndex";
5024
+ readonly type: "uint256";
5025
+ }];
5026
+ readonly name: "userServerIdsAt";
5027
+ readonly outputs: readonly [{
5028
+ readonly internalType: "uint256";
5029
+ readonly name: "";
5030
+ readonly type: "uint256";
5031
+ }];
5032
+ readonly stateMutability: "view";
5033
+ readonly type: "function";
5034
+ }, {
5035
+ readonly inputs: readonly [{
5036
+ readonly internalType: "address";
5037
+ readonly name: "userAddress";
5038
+ readonly type: "address";
5039
+ }];
5040
+ readonly name: "userServerIdsLength";
5041
+ readonly outputs: readonly [{
5042
+ readonly internalType: "uint256";
5043
+ readonly name: "";
5044
+ readonly type: "uint256";
5045
+ }];
5046
+ readonly stateMutability: "view";
5047
+ readonly type: "function";
5048
+ }, {
5049
+ readonly inputs: readonly [{
5050
+ readonly internalType: "address";
5051
+ readonly name: "userAddress";
5052
+ readonly type: "address";
5053
+ }];
5054
+ readonly name: "userServerIdsValues";
5055
+ readonly outputs: readonly [{
5056
+ readonly internalType: "uint256[]";
5057
+ readonly name: "";
5058
+ readonly type: "uint256[]";
5059
+ }];
5060
+ readonly stateMutability: "view";
5061
+ readonly type: "function";
5062
+ }, {
5063
+ readonly inputs: readonly [{
5064
+ readonly internalType: "address";
5065
+ readonly name: "userAddress";
5066
+ readonly type: "address";
5067
+ }];
5068
+ readonly name: "users";
5069
+ readonly outputs: readonly [{
5070
+ readonly internalType: "uint256";
5071
+ readonly name: "nonce";
5072
+ readonly type: "uint256";
5073
+ }, {
5074
+ readonly internalType: "uint256[]";
5075
+ readonly name: "trustedServerIds";
5076
+ readonly type: "uint256[]";
5077
+ }];
5078
+ readonly stateMutability: "view";
5079
+ readonly type: "function";
5080
+ }];
5081
+ readonly DataPortabilityGrantees: readonly [{
5082
+ readonly inputs: readonly [];
5083
+ readonly stateMutability: "nonpayable";
5084
+ readonly type: "constructor";
5085
+ }, {
5086
+ readonly inputs: readonly [];
5087
+ readonly name: "AccessControlBadConfirmation";
5088
+ readonly type: "error";
5089
+ }, {
5090
+ readonly inputs: readonly [{
5091
+ readonly internalType: "address";
5092
+ readonly name: "account";
5093
+ readonly type: "address";
5094
+ }, {
5095
+ readonly internalType: "bytes32";
5096
+ readonly name: "neededRole";
5097
+ readonly type: "bytes32";
5098
+ }];
5099
+ readonly name: "AccessControlUnauthorizedAccount";
5100
+ readonly type: "error";
5101
+ }, {
5102
+ readonly inputs: readonly [{
5103
+ readonly internalType: "address";
5104
+ readonly name: "target";
5105
+ readonly type: "address";
5106
+ }];
5107
+ readonly name: "AddressEmptyCode";
5108
+ readonly type: "error";
5109
+ }, {
5110
+ readonly inputs: readonly [{
5111
+ readonly internalType: "address";
5112
+ readonly name: "implementation";
5113
+ readonly type: "address";
5114
+ }];
5115
+ readonly name: "ERC1967InvalidImplementation";
5116
+ readonly type: "error";
5117
+ }, {
5118
+ readonly inputs: readonly [];
5119
+ readonly name: "ERC1967NonPayable";
5120
+ readonly type: "error";
5121
+ }, {
5122
+ readonly inputs: readonly [];
5123
+ readonly name: "EmptyPublicKey";
5124
+ readonly type: "error";
5125
+ }, {
5126
+ readonly inputs: readonly [];
5127
+ readonly name: "EnforcedPause";
5128
+ readonly type: "error";
5129
+ }, {
5130
+ readonly inputs: readonly [];
5131
+ readonly name: "ExpectedPause";
5132
+ readonly type: "error";
5133
+ }, {
5134
+ readonly inputs: readonly [];
5135
+ readonly name: "FailedInnerCall";
5136
+ readonly type: "error";
5137
+ }, {
5138
+ readonly inputs: readonly [];
5139
+ readonly name: "GranteeAlreadyRegistered";
5140
+ readonly type: "error";
5141
+ }, {
5142
+ readonly inputs: readonly [];
5143
+ readonly name: "GranteeNotFound";
5144
+ readonly type: "error";
5145
+ }, {
5146
+ readonly inputs: readonly [];
5147
+ readonly name: "InvalidInitialization";
5148
+ readonly type: "error";
5149
+ }, {
5150
+ readonly inputs: readonly [];
5151
+ readonly name: "NotInitializing";
5152
+ readonly type: "error";
5153
+ }, {
5154
+ readonly inputs: readonly [];
5155
+ readonly name: "UUPSUnauthorizedCallContext";
5156
+ readonly type: "error";
5157
+ }, {
5158
+ readonly inputs: readonly [{
5159
+ readonly internalType: "bytes32";
5160
+ readonly name: "slot";
5161
+ readonly type: "bytes32";
5162
+ }];
5163
+ readonly name: "UUPSUnsupportedProxiableUUID";
5164
+ readonly type: "error";
5165
+ }, {
5166
+ readonly inputs: readonly [];
5167
+ readonly name: "ZeroAddress";
5168
+ readonly type: "error";
5169
+ }, {
5170
+ readonly anonymous: false;
5171
+ readonly inputs: readonly [{
5172
+ readonly indexed: true;
5173
+ readonly internalType: "uint256";
5174
+ readonly name: "granteeId";
5175
+ readonly type: "uint256";
5176
+ }, {
5177
+ readonly indexed: true;
2828
5178
  readonly internalType: "address";
2829
- readonly name: "serverId";
5179
+ readonly name: "owner";
5180
+ readonly type: "address";
5181
+ }, {
5182
+ readonly indexed: true;
5183
+ readonly internalType: "address";
5184
+ readonly name: "granteeAddress";
2830
5185
  readonly type: "address";
5186
+ }, {
5187
+ readonly indexed: false;
5188
+ readonly internalType: "string";
5189
+ readonly name: "publicKey";
5190
+ readonly type: "string";
2831
5191
  }];
2832
- readonly name: "servers";
5192
+ readonly name: "GranteeRegistered";
5193
+ readonly type: "event";
5194
+ }, {
5195
+ readonly anonymous: false;
5196
+ readonly inputs: readonly [{
5197
+ readonly indexed: false;
5198
+ readonly internalType: "uint64";
5199
+ readonly name: "version";
5200
+ readonly type: "uint64";
5201
+ }];
5202
+ readonly name: "Initialized";
5203
+ readonly type: "event";
5204
+ }, {
5205
+ readonly anonymous: false;
5206
+ readonly inputs: readonly [{
5207
+ readonly indexed: false;
5208
+ readonly internalType: "address";
5209
+ readonly name: "account";
5210
+ readonly type: "address";
5211
+ }];
5212
+ readonly name: "Paused";
5213
+ readonly type: "event";
5214
+ }, {
5215
+ readonly anonymous: false;
5216
+ readonly inputs: readonly [{
5217
+ readonly indexed: true;
5218
+ readonly internalType: "bytes32";
5219
+ readonly name: "role";
5220
+ readonly type: "bytes32";
5221
+ }, {
5222
+ readonly indexed: true;
5223
+ readonly internalType: "bytes32";
5224
+ readonly name: "previousAdminRole";
5225
+ readonly type: "bytes32";
5226
+ }, {
5227
+ readonly indexed: true;
5228
+ readonly internalType: "bytes32";
5229
+ readonly name: "newAdminRole";
5230
+ readonly type: "bytes32";
5231
+ }];
5232
+ readonly name: "RoleAdminChanged";
5233
+ readonly type: "event";
5234
+ }, {
5235
+ readonly anonymous: false;
5236
+ readonly inputs: readonly [{
5237
+ readonly indexed: true;
5238
+ readonly internalType: "bytes32";
5239
+ readonly name: "role";
5240
+ readonly type: "bytes32";
5241
+ }, {
5242
+ readonly indexed: true;
5243
+ readonly internalType: "address";
5244
+ readonly name: "account";
5245
+ readonly type: "address";
5246
+ }, {
5247
+ readonly indexed: true;
5248
+ readonly internalType: "address";
5249
+ readonly name: "sender";
5250
+ readonly type: "address";
5251
+ }];
5252
+ readonly name: "RoleGranted";
5253
+ readonly type: "event";
5254
+ }, {
5255
+ readonly anonymous: false;
5256
+ readonly inputs: readonly [{
5257
+ readonly indexed: true;
5258
+ readonly internalType: "bytes32";
5259
+ readonly name: "role";
5260
+ readonly type: "bytes32";
5261
+ }, {
5262
+ readonly indexed: true;
5263
+ readonly internalType: "address";
5264
+ readonly name: "account";
5265
+ readonly type: "address";
5266
+ }, {
5267
+ readonly indexed: true;
5268
+ readonly internalType: "address";
5269
+ readonly name: "sender";
5270
+ readonly type: "address";
5271
+ }];
5272
+ readonly name: "RoleRevoked";
5273
+ readonly type: "event";
5274
+ }, {
5275
+ readonly anonymous: false;
5276
+ readonly inputs: readonly [{
5277
+ readonly indexed: false;
5278
+ readonly internalType: "address";
5279
+ readonly name: "account";
5280
+ readonly type: "address";
5281
+ }];
5282
+ readonly name: "Unpaused";
5283
+ readonly type: "event";
5284
+ }, {
5285
+ readonly anonymous: false;
5286
+ readonly inputs: readonly [{
5287
+ readonly indexed: true;
5288
+ readonly internalType: "address";
5289
+ readonly name: "implementation";
5290
+ readonly type: "address";
5291
+ }];
5292
+ readonly name: "Upgraded";
5293
+ readonly type: "event";
5294
+ }, {
5295
+ readonly inputs: readonly [];
5296
+ readonly name: "DEFAULT_ADMIN_ROLE";
5297
+ readonly outputs: readonly [{
5298
+ readonly internalType: "bytes32";
5299
+ readonly name: "";
5300
+ readonly type: "bytes32";
5301
+ }];
5302
+ readonly stateMutability: "view";
5303
+ readonly type: "function";
5304
+ }, {
5305
+ readonly inputs: readonly [];
5306
+ readonly name: "MAINTAINER_ROLE";
5307
+ readonly outputs: readonly [{
5308
+ readonly internalType: "bytes32";
5309
+ readonly name: "";
5310
+ readonly type: "bytes32";
5311
+ }];
5312
+ readonly stateMutability: "view";
5313
+ readonly type: "function";
5314
+ }, {
5315
+ readonly inputs: readonly [];
5316
+ readonly name: "PERMISSION_MANAGER_ROLE";
5317
+ readonly outputs: readonly [{
5318
+ readonly internalType: "bytes32";
5319
+ readonly name: "";
5320
+ readonly type: "bytes32";
5321
+ }];
5322
+ readonly stateMutability: "view";
5323
+ readonly type: "function";
5324
+ }, {
5325
+ readonly inputs: readonly [];
5326
+ readonly name: "UPGRADE_INTERFACE_VERSION";
5327
+ readonly outputs: readonly [{
5328
+ readonly internalType: "string";
5329
+ readonly name: "";
5330
+ readonly type: "string";
5331
+ }];
5332
+ readonly stateMutability: "view";
5333
+ readonly type: "function";
5334
+ }, {
5335
+ readonly inputs: readonly [{
5336
+ readonly internalType: "uint256";
5337
+ readonly name: "granteeId";
5338
+ readonly type: "uint256";
5339
+ }, {
5340
+ readonly internalType: "uint256";
5341
+ readonly name: "permissionId";
5342
+ readonly type: "uint256";
5343
+ }];
5344
+ readonly name: "addPermissionToGrantee";
5345
+ readonly outputs: readonly [];
5346
+ readonly stateMutability: "nonpayable";
5347
+ readonly type: "function";
5348
+ }, {
5349
+ readonly inputs: readonly [{
5350
+ readonly internalType: "bytes32";
5351
+ readonly name: "role";
5352
+ readonly type: "bytes32";
5353
+ }];
5354
+ readonly name: "getRoleAdmin";
5355
+ readonly outputs: readonly [{
5356
+ readonly internalType: "bytes32";
5357
+ readonly name: "";
5358
+ readonly type: "bytes32";
5359
+ }];
5360
+ readonly stateMutability: "view";
5361
+ readonly type: "function";
5362
+ }, {
5363
+ readonly inputs: readonly [{
5364
+ readonly internalType: "bytes32";
5365
+ readonly name: "role";
5366
+ readonly type: "bytes32";
5367
+ }, {
5368
+ readonly internalType: "address";
5369
+ readonly name: "account";
5370
+ readonly type: "address";
5371
+ }];
5372
+ readonly name: "grantRole";
5373
+ readonly outputs: readonly [];
5374
+ readonly stateMutability: "nonpayable";
5375
+ readonly type: "function";
5376
+ }, {
5377
+ readonly inputs: readonly [{
5378
+ readonly internalType: "address";
5379
+ readonly name: "granteeAddress";
5380
+ readonly type: "address";
5381
+ }];
5382
+ readonly name: "granteeAddressToId";
5383
+ readonly outputs: readonly [{
5384
+ readonly internalType: "uint256";
5385
+ readonly name: "granteeId";
5386
+ readonly type: "uint256";
5387
+ }];
5388
+ readonly stateMutability: "view";
5389
+ readonly type: "function";
5390
+ }, {
5391
+ readonly inputs: readonly [{
5392
+ readonly internalType: "address";
5393
+ readonly name: "granteeAddress";
5394
+ readonly type: "address";
5395
+ }];
5396
+ readonly name: "granteeByAddress";
2833
5397
  readonly outputs: readonly [{
2834
5398
  readonly components: readonly [{
5399
+ readonly internalType: "address";
5400
+ readonly name: "owner";
5401
+ readonly type: "address";
5402
+ }, {
5403
+ readonly internalType: "address";
5404
+ readonly name: "granteeAddress";
5405
+ readonly type: "address";
5406
+ }, {
2835
5407
  readonly internalType: "string";
2836
- readonly name: "url";
5408
+ readonly name: "publicKey";
5409
+ readonly type: "string";
5410
+ }, {
5411
+ readonly internalType: "uint256[]";
5412
+ readonly name: "permissionIds";
5413
+ readonly type: "uint256[]";
5414
+ }];
5415
+ readonly internalType: "struct IDataPortabilityGrantees.GranteeInfo";
5416
+ readonly name: "";
5417
+ readonly type: "tuple";
5418
+ }];
5419
+ readonly stateMutability: "view";
5420
+ readonly type: "function";
5421
+ }, {
5422
+ readonly inputs: readonly [{
5423
+ readonly internalType: "uint256";
5424
+ readonly name: "granteeId";
5425
+ readonly type: "uint256";
5426
+ }];
5427
+ readonly name: "granteeInfo";
5428
+ readonly outputs: readonly [{
5429
+ readonly components: readonly [{
5430
+ readonly internalType: "address";
5431
+ readonly name: "owner";
5432
+ readonly type: "address";
5433
+ }, {
5434
+ readonly internalType: "address";
5435
+ readonly name: "granteeAddress";
5436
+ readonly type: "address";
5437
+ }, {
5438
+ readonly internalType: "string";
5439
+ readonly name: "publicKey";
5440
+ readonly type: "string";
5441
+ }, {
5442
+ readonly internalType: "uint256[]";
5443
+ readonly name: "permissionIds";
5444
+ readonly type: "uint256[]";
5445
+ }];
5446
+ readonly internalType: "struct IDataPortabilityGrantees.GranteeInfo";
5447
+ readonly name: "";
5448
+ readonly type: "tuple";
5449
+ }];
5450
+ readonly stateMutability: "view";
5451
+ readonly type: "function";
5452
+ }, {
5453
+ readonly inputs: readonly [{
5454
+ readonly internalType: "uint256";
5455
+ readonly name: "granteeId";
5456
+ readonly type: "uint256";
5457
+ }];
5458
+ readonly name: "granteePermissionIds";
5459
+ readonly outputs: readonly [{
5460
+ readonly internalType: "uint256[]";
5461
+ readonly name: "";
5462
+ readonly type: "uint256[]";
5463
+ }];
5464
+ readonly stateMutability: "view";
5465
+ readonly type: "function";
5466
+ }, {
5467
+ readonly inputs: readonly [{
5468
+ readonly internalType: "uint256";
5469
+ readonly name: "granteeId";
5470
+ readonly type: "uint256";
5471
+ }];
5472
+ readonly name: "granteePermissions";
5473
+ readonly outputs: readonly [{
5474
+ readonly internalType: "uint256[]";
5475
+ readonly name: "";
5476
+ readonly type: "uint256[]";
5477
+ }];
5478
+ readonly stateMutability: "view";
5479
+ readonly type: "function";
5480
+ }, {
5481
+ readonly inputs: readonly [{
5482
+ readonly internalType: "uint256";
5483
+ readonly name: "granteeId";
5484
+ readonly type: "uint256";
5485
+ }];
5486
+ readonly name: "grantees";
5487
+ readonly outputs: readonly [{
5488
+ readonly components: readonly [{
5489
+ readonly internalType: "address";
5490
+ readonly name: "owner";
5491
+ readonly type: "address";
5492
+ }, {
5493
+ readonly internalType: "address";
5494
+ readonly name: "granteeAddress";
5495
+ readonly type: "address";
5496
+ }, {
5497
+ readonly internalType: "string";
5498
+ readonly name: "publicKey";
2837
5499
  readonly type: "string";
5500
+ }, {
5501
+ readonly internalType: "uint256[]";
5502
+ readonly name: "permissionIds";
5503
+ readonly type: "uint256[]";
2838
5504
  }];
2839
- readonly internalType: "struct IDataPermissions.Server";
5505
+ readonly internalType: "struct IDataPortabilityGrantees.GranteeInfo";
2840
5506
  readonly name: "";
2841
5507
  readonly type: "tuple";
2842
5508
  }];
2843
5509
  readonly stateMutability: "view";
2844
5510
  readonly type: "function";
5511
+ }, {
5512
+ readonly inputs: readonly [];
5513
+ readonly name: "granteesCount";
5514
+ readonly outputs: readonly [{
5515
+ readonly internalType: "uint256";
5516
+ readonly name: "";
5517
+ readonly type: "uint256";
5518
+ }];
5519
+ readonly stateMutability: "view";
5520
+ readonly type: "function";
5521
+ }, {
5522
+ readonly inputs: readonly [{
5523
+ readonly internalType: "bytes32";
5524
+ readonly name: "role";
5525
+ readonly type: "bytes32";
5526
+ }, {
5527
+ readonly internalType: "address";
5528
+ readonly name: "account";
5529
+ readonly type: "address";
5530
+ }];
5531
+ readonly name: "hasRole";
5532
+ readonly outputs: readonly [{
5533
+ readonly internalType: "bool";
5534
+ readonly name: "";
5535
+ readonly type: "bool";
5536
+ }];
5537
+ readonly stateMutability: "view";
5538
+ readonly type: "function";
5539
+ }, {
5540
+ readonly inputs: readonly [{
5541
+ readonly internalType: "address";
5542
+ readonly name: "trustedForwarderAddress";
5543
+ readonly type: "address";
5544
+ }, {
5545
+ readonly internalType: "address";
5546
+ readonly name: "ownerAddress";
5547
+ readonly type: "address";
5548
+ }];
5549
+ readonly name: "initialize";
5550
+ readonly outputs: readonly [];
5551
+ readonly stateMutability: "nonpayable";
5552
+ readonly type: "function";
5553
+ }, {
5554
+ readonly inputs: readonly [{
5555
+ readonly internalType: "address";
5556
+ readonly name: "forwarder";
5557
+ readonly type: "address";
5558
+ }];
5559
+ readonly name: "isTrustedForwarder";
5560
+ readonly outputs: readonly [{
5561
+ readonly internalType: "bool";
5562
+ readonly name: "";
5563
+ readonly type: "bool";
5564
+ }];
5565
+ readonly stateMutability: "view";
5566
+ readonly type: "function";
5567
+ }, {
5568
+ readonly inputs: readonly [{
5569
+ readonly internalType: "bytes[]";
5570
+ readonly name: "data";
5571
+ readonly type: "bytes[]";
5572
+ }];
5573
+ readonly name: "multicall";
5574
+ readonly outputs: readonly [{
5575
+ readonly internalType: "bytes[]";
5576
+ readonly name: "results";
5577
+ readonly type: "bytes[]";
5578
+ }];
5579
+ readonly stateMutability: "nonpayable";
5580
+ readonly type: "function";
5581
+ }, {
5582
+ readonly inputs: readonly [];
5583
+ readonly name: "pause";
5584
+ readonly outputs: readonly [];
5585
+ readonly stateMutability: "nonpayable";
5586
+ readonly type: "function";
5587
+ }, {
5588
+ readonly inputs: readonly [];
5589
+ readonly name: "paused";
5590
+ readonly outputs: readonly [{
5591
+ readonly internalType: "bool";
5592
+ readonly name: "";
5593
+ readonly type: "bool";
5594
+ }];
5595
+ readonly stateMutability: "view";
5596
+ readonly type: "function";
5597
+ }, {
5598
+ readonly inputs: readonly [];
5599
+ readonly name: "proxiableUUID";
5600
+ readonly outputs: readonly [{
5601
+ readonly internalType: "bytes32";
5602
+ readonly name: "";
5603
+ readonly type: "bytes32";
5604
+ }];
5605
+ readonly stateMutability: "view";
5606
+ readonly type: "function";
5607
+ }, {
5608
+ readonly inputs: readonly [{
5609
+ readonly internalType: "address";
5610
+ readonly name: "owner";
5611
+ readonly type: "address";
5612
+ }, {
5613
+ readonly internalType: "address";
5614
+ readonly name: "granteeAddress";
5615
+ readonly type: "address";
5616
+ }, {
5617
+ readonly internalType: "string";
5618
+ readonly name: "publicKey";
5619
+ readonly type: "string";
5620
+ }];
5621
+ readonly name: "registerGrantee";
5622
+ readonly outputs: readonly [{
5623
+ readonly internalType: "uint256";
5624
+ readonly name: "";
5625
+ readonly type: "uint256";
5626
+ }];
5627
+ readonly stateMutability: "nonpayable";
5628
+ readonly type: "function";
5629
+ }, {
5630
+ readonly inputs: readonly [{
5631
+ readonly internalType: "uint256";
5632
+ readonly name: "granteeId";
5633
+ readonly type: "uint256";
5634
+ }, {
5635
+ readonly internalType: "uint256";
5636
+ readonly name: "permissionId";
5637
+ readonly type: "uint256";
5638
+ }];
5639
+ readonly name: "removePermissionFromGrantee";
5640
+ readonly outputs: readonly [];
5641
+ readonly stateMutability: "nonpayable";
5642
+ readonly type: "function";
5643
+ }, {
5644
+ readonly inputs: readonly [{
5645
+ readonly internalType: "bytes32";
5646
+ readonly name: "role";
5647
+ readonly type: "bytes32";
5648
+ }, {
5649
+ readonly internalType: "address";
5650
+ readonly name: "callerConfirmation";
5651
+ readonly type: "address";
5652
+ }];
5653
+ readonly name: "renounceRole";
5654
+ readonly outputs: readonly [];
5655
+ readonly stateMutability: "nonpayable";
5656
+ readonly type: "function";
5657
+ }, {
5658
+ readonly inputs: readonly [{
5659
+ readonly internalType: "bytes32";
5660
+ readonly name: "role";
5661
+ readonly type: "bytes32";
5662
+ }, {
5663
+ readonly internalType: "address";
5664
+ readonly name: "account";
5665
+ readonly type: "address";
5666
+ }];
5667
+ readonly name: "revokeRole";
5668
+ readonly outputs: readonly [];
5669
+ readonly stateMutability: "nonpayable";
5670
+ readonly type: "function";
2845
5671
  }, {
2846
5672
  readonly inputs: readonly [{
2847
5673
  readonly internalType: "bytes32";
@@ -2870,47 +5696,6 @@ declare const contractAbis: {
2870
5696
  }];
2871
5697
  readonly stateMutability: "view";
2872
5698
  readonly type: "function";
2873
- }, {
2874
- readonly inputs: readonly [{
2875
- readonly internalType: "address";
2876
- readonly name: "serverId";
2877
- readonly type: "address";
2878
- }, {
2879
- readonly internalType: "string";
2880
- readonly name: "serverUrl";
2881
- readonly type: "string";
2882
- }];
2883
- readonly name: "trustServer";
2884
- readonly outputs: readonly [];
2885
- readonly stateMutability: "nonpayable";
2886
- readonly type: "function";
2887
- }, {
2888
- readonly inputs: readonly [{
2889
- readonly components: readonly [{
2890
- readonly internalType: "uint256";
2891
- readonly name: "nonce";
2892
- readonly type: "uint256";
2893
- }, {
2894
- readonly internalType: "address";
2895
- readonly name: "serverId";
2896
- readonly type: "address";
2897
- }, {
2898
- readonly internalType: "string";
2899
- readonly name: "serverUrl";
2900
- readonly type: "string";
2901
- }];
2902
- readonly internalType: "struct IDataPermissions.TrustServerInput";
2903
- readonly name: "trustServerInput";
2904
- readonly type: "tuple";
2905
- }, {
2906
- readonly internalType: "bytes";
2907
- readonly name: "signature";
2908
- readonly type: "bytes";
2909
- }];
2910
- readonly name: "trustServerWithSignature";
2911
- readonly outputs: readonly [];
2912
- readonly stateMutability: "nonpayable";
2913
- readonly type: "function";
2914
5699
  }, {
2915
5700
  readonly inputs: readonly [];
2916
5701
  readonly name: "trustedForwarder";
@@ -2927,49 +5712,6 @@ declare const contractAbis: {
2927
5712
  readonly outputs: readonly [];
2928
5713
  readonly stateMutability: "nonpayable";
2929
5714
  readonly type: "function";
2930
- }, {
2931
- readonly inputs: readonly [{
2932
- readonly internalType: "address";
2933
- readonly name: "serverId";
2934
- readonly type: "address";
2935
- }];
2936
- readonly name: "untrustServer";
2937
- readonly outputs: readonly [];
2938
- readonly stateMutability: "nonpayable";
2939
- readonly type: "function";
2940
- }, {
2941
- readonly inputs: readonly [{
2942
- readonly components: readonly [{
2943
- readonly internalType: "uint256";
2944
- readonly name: "nonce";
2945
- readonly type: "uint256";
2946
- }, {
2947
- readonly internalType: "address";
2948
- readonly name: "serverId";
2949
- readonly type: "address";
2950
- }];
2951
- readonly internalType: "struct IDataPermissions.UntrustServerInput";
2952
- readonly name: "untrustServerInput";
2953
- readonly type: "tuple";
2954
- }, {
2955
- readonly internalType: "bytes";
2956
- readonly name: "signature";
2957
- readonly type: "bytes";
2958
- }];
2959
- readonly name: "untrustServerWithSignature";
2960
- readonly outputs: readonly [];
2961
- readonly stateMutability: "nonpayable";
2962
- readonly type: "function";
2963
- }, {
2964
- readonly inputs: readonly [{
2965
- readonly internalType: "contract IDataRegistry";
2966
- readonly name: "newDataRegistry";
2967
- readonly type: "address";
2968
- }];
2969
- readonly name: "updateDataRegistry";
2970
- readonly outputs: readonly [];
2971
- readonly stateMutability: "nonpayable";
2972
- readonly type: "function";
2973
5715
  }, {
2974
5716
  readonly inputs: readonly [{
2975
5717
  readonly internalType: "address";
@@ -2994,168 +5736,6 @@ declare const contractAbis: {
2994
5736
  readonly outputs: readonly [];
2995
5737
  readonly stateMutability: "payable";
2996
5738
  readonly type: "function";
2997
- }, {
2998
- readonly inputs: readonly [{
2999
- readonly internalType: "address";
3000
- readonly name: "user";
3001
- readonly type: "address";
3002
- }];
3003
- readonly name: "userNonce";
3004
- readonly outputs: readonly [{
3005
- readonly internalType: "uint256";
3006
- readonly name: "";
3007
- readonly type: "uint256";
3008
- }];
3009
- readonly stateMutability: "view";
3010
- readonly type: "function";
3011
- }, {
3012
- readonly inputs: readonly [{
3013
- readonly internalType: "address";
3014
- readonly name: "user";
3015
- readonly type: "address";
3016
- }, {
3017
- readonly internalType: "uint256";
3018
- readonly name: "permissionIndex";
3019
- readonly type: "uint256";
3020
- }];
3021
- readonly name: "userPermissionIdsAt";
3022
- readonly outputs: readonly [{
3023
- readonly internalType: "uint256";
3024
- readonly name: "";
3025
- readonly type: "uint256";
3026
- }];
3027
- readonly stateMutability: "view";
3028
- readonly type: "function";
3029
- }, {
3030
- readonly inputs: readonly [{
3031
- readonly internalType: "address";
3032
- readonly name: "user";
3033
- readonly type: "address";
3034
- }];
3035
- readonly name: "userPermissionIdsLength";
3036
- readonly outputs: readonly [{
3037
- readonly internalType: "uint256";
3038
- readonly name: "";
3039
- readonly type: "uint256";
3040
- }];
3041
- readonly stateMutability: "view";
3042
- readonly type: "function";
3043
- }, {
3044
- readonly inputs: readonly [{
3045
- readonly internalType: "address";
3046
- readonly name: "user";
3047
- readonly type: "address";
3048
- }];
3049
- readonly name: "userPermissionIdsValues";
3050
- readonly outputs: readonly [{
3051
- readonly internalType: "uint256[]";
3052
- readonly name: "";
3053
- readonly type: "uint256[]";
3054
- }];
3055
- readonly stateMutability: "view";
3056
- readonly type: "function";
3057
- }, {
3058
- readonly inputs: readonly [{
3059
- readonly internalType: "address";
3060
- readonly name: "user";
3061
- readonly type: "address";
3062
- }, {
3063
- readonly internalType: "uint256";
3064
- readonly name: "permissionIndex";
3065
- readonly type: "uint256";
3066
- }];
3067
- readonly name: "userRevokedPermissionIdsAt";
3068
- readonly outputs: readonly [{
3069
- readonly internalType: "uint256";
3070
- readonly name: "";
3071
- readonly type: "uint256";
3072
- }];
3073
- readonly stateMutability: "view";
3074
- readonly type: "function";
3075
- }, {
3076
- readonly inputs: readonly [{
3077
- readonly internalType: "address";
3078
- readonly name: "user";
3079
- readonly type: "address";
3080
- }];
3081
- readonly name: "userRevokedPermissionIdsLength";
3082
- readonly outputs: readonly [{
3083
- readonly internalType: "uint256";
3084
- readonly name: "";
3085
- readonly type: "uint256";
3086
- }];
3087
- readonly stateMutability: "view";
3088
- readonly type: "function";
3089
- }, {
3090
- readonly inputs: readonly [{
3091
- readonly internalType: "address";
3092
- readonly name: "user";
3093
- readonly type: "address";
3094
- }];
3095
- readonly name: "userRevokedPermissionIdsValues";
3096
- readonly outputs: readonly [{
3097
- readonly internalType: "uint256[]";
3098
- readonly name: "";
3099
- readonly type: "uint256[]";
3100
- }];
3101
- readonly stateMutability: "view";
3102
- readonly type: "function";
3103
- }, {
3104
- readonly inputs: readonly [{
3105
- readonly internalType: "address";
3106
- readonly name: "user";
3107
- readonly type: "address";
3108
- }, {
3109
- readonly internalType: "uint256";
3110
- readonly name: "serverIndex";
3111
- readonly type: "uint256";
3112
- }];
3113
- readonly name: "userServerIdsAt";
3114
- readonly outputs: readonly [{
3115
- readonly internalType: "address";
3116
- readonly name: "";
3117
- readonly type: "address";
3118
- }];
3119
- readonly stateMutability: "view";
3120
- readonly type: "function";
3121
- }, {
3122
- readonly inputs: readonly [{
3123
- readonly internalType: "address";
3124
- readonly name: "user";
3125
- readonly type: "address";
3126
- }];
3127
- readonly name: "userServerIdsLength";
3128
- readonly outputs: readonly [{
3129
- readonly internalType: "uint256";
3130
- readonly name: "";
3131
- readonly type: "uint256";
3132
- }];
3133
- readonly stateMutability: "view";
3134
- readonly type: "function";
3135
- }, {
3136
- readonly inputs: readonly [{
3137
- readonly internalType: "address";
3138
- readonly name: "user";
3139
- readonly type: "address";
3140
- }];
3141
- readonly name: "userServerIdsValues";
3142
- readonly outputs: readonly [{
3143
- readonly internalType: "address[]";
3144
- readonly name: "";
3145
- readonly type: "address[]";
3146
- }];
3147
- readonly stateMutability: "view";
3148
- readonly type: "function";
3149
- }, {
3150
- readonly inputs: readonly [];
3151
- readonly name: "version";
3152
- readonly outputs: readonly [{
3153
- readonly internalType: "uint256";
3154
- readonly name: "";
3155
- readonly type: "uint256";
3156
- }];
3157
- readonly stateMutability: "pure";
3158
- readonly type: "function";
3159
5739
  }];
3160
5740
  readonly DataRegistry: readonly [{
3161
5741
  readonly inputs: readonly [];
@@ -27842,6 +30422,8 @@ interface ControllerContext$1 {
27842
30422
  hasStorage?: () => boolean;
27843
30423
  /** Default IPFS gateways to use for fetching files. */
27844
30424
  ipfsGateways?: string[];
30425
+ /** Default personal server base URL for server operations. */
30426
+ defaultPersonalServerUrl?: string;
27845
30427
  }
27846
30428
  /**
27847
30429
  * Manages gasless data access permissions and trusted server registry operations.
@@ -28137,7 +30719,7 @@ declare class PermissionsController {
28137
30719
  */
28138
30720
  revokeWithSignature(params: RevokePermissionParams): Promise<Hash>;
28139
30721
  /**
28140
- * Retrieves the user's current nonce from the DataPermissions contract.
30722
+ * Retrieves the user's current nonce from the DataPortabilityServers contract.
28141
30723
  *
28142
30724
  * @returns Promise resolving to the user's current nonce value
28143
30725
  * @throws {Error} When wallet account is not available
@@ -28254,35 +30836,47 @@ declare class PermissionsController {
28254
30836
  */
28255
30837
  private normalizeGrantId;
28256
30838
  /**
28257
- * Trusts a server for data processing.
30839
+ * Adds and trusts a server for data processing.
28258
30840
  *
28259
- * @param params - Parameters for trusting the server
28260
- * @param params.serverId - The server's Ethereum address
28261
- * @param params.serverUrl - The server's URL endpoint
30841
+ * @param params - Parameters for adding and trusting the server
28262
30842
  * @returns Promise resolving to transaction hash
28263
30843
  * @throws {UserRejectedRequestError} When user rejects the transaction
28264
30844
  * @throws {BlockchainError} When chain ID is unavailable or transaction fails
28265
30845
  * @throws {Error} When wallet account is not available
28266
30846
  * @example
28267
30847
  * ```typescript
28268
- * // Trust a server by providing its ID and URL
28269
- * const txHash = await vana.permissions.trustServer({
28270
- * serverId: '0x742d35Cc6634C0532925a3b8D4C9db96C4b4d8b6',
28271
- * serverUrl: 'https://personal-server.vana.org'
30848
+ * // Add and trust a server by providing all required details
30849
+ * const txHash = await vana.permissions.addAndTrustServer({
30850
+ * owner: '0x1234...',
30851
+ * serverAddress: '0x742d35Cc6634C0532925a3b8D4C9db96C4b4d8b6',
30852
+ * serverUrl: 'https://myserver.example.com',
30853
+ * publicKey: '0x456...'
28272
30854
  * });
28273
- * console.log('Server trusted in transaction:', txHash);
28274
- *
28275
- * // Verify the server was added to trusted list
28276
- * const trustedServers = await vana.permissions.getTrustedServers();
28277
- * console.log('Trusted servers:', trustedServers.length);
30855
+ * console.log('Server added and trusted in transaction:', txHash);
28278
30856
  * ```
28279
30857
  */
30858
+ addAndTrustServer(params: AddAndTrustServerParams): Promise<Hash>;
30859
+ /**
30860
+ * Trusts a server for data processing (legacy method).
30861
+ *
30862
+ * @param params - Parameters for trusting the server
30863
+ * @returns Promise resolving to transaction hash
30864
+ * @deprecated Use addAndTrustServer instead
30865
+ */
28280
30866
  trustServer(params: TrustServerParams): Promise<Hash>;
28281
30867
  /**
28282
- * Trusts a server using a signature (gasless transaction).
30868
+ * Adds and trusts a server using a signature (gasless transaction).
30869
+ *
30870
+ * @param params - Parameters for adding and trusting the server
30871
+ * @returns Promise resolving to transaction hash
30872
+ */
30873
+ addAndTrustServerWithSignature(params: AddAndTrustServerParams): Promise<Hash>;
30874
+ /**
30875
+ * Trusts a server using a signature (gasless transaction - legacy method).
28283
30876
  *
28284
30877
  * @param params - Parameters for trusting the server
28285
30878
  * @returns Promise resolving to transaction hash
30879
+ * @deprecated Use addAndTrustServerWithSignature instead
28286
30880
  * @throws {BlockchainError} When chain ID is not available
28287
30881
  * @throws {NonceError} When retrieving user nonce fails
28288
30882
  * @throws {SignatureError} When user rejects the signature request
@@ -28327,18 +30921,33 @@ declare class PermissionsController {
28327
30921
  * Gets all servers trusted by a user.
28328
30922
  *
28329
30923
  * @param userAddress - Optional user address (defaults to current user)
28330
- * @returns Promise resolving to array of trusted server addresses
30924
+ * @returns Promise resolving to array of trusted server IDs (numeric)
28331
30925
  * @throws {BlockchainError} When reading from contract fails or chain is unavailable
28332
30926
  */
28333
- getTrustedServers(userAddress?: Address): Promise<Address[]>;
30927
+ getTrustedServers(userAddress?: Address): Promise<number[]>;
28334
30928
  /**
28335
30929
  * Gets server information by server ID.
28336
30930
  *
28337
- * @param serverId - Server address
30931
+ * @param serverId - Server ID (numeric)
28338
30932
  * @returns Promise resolving to server information
28339
30933
  * @throws {BlockchainError} When reading from contract fails or chain is unavailable
28340
30934
  */
28341
- getServerInfo(serverId: Address): Promise<Server>;
30935
+ getServerInfo(serverId: number): Promise<Server>;
30936
+ /**
30937
+ * Checks if a server is active.
30938
+ *
30939
+ * @param serverId - Server ID (numeric)
30940
+ * @returns Promise resolving to boolean indicating if server is active
30941
+ */
30942
+ isActiveServer(serverId: number): Promise<boolean>;
30943
+ /**
30944
+ * Checks if a server is active for a specific user.
30945
+ *
30946
+ * @param serverId - Server ID (numeric)
30947
+ * @param userAddress - Optional user address (defaults to current user)
30948
+ * @returns Promise resolving to boolean indicating if server is active for the user
30949
+ */
30950
+ isActiveServerForUser(serverId: number, userAddress?: Address): Promise<boolean>;
28342
30951
  /**
28343
30952
  * Gets the total count of trusted servers for a user.
28344
30953
  *
@@ -28370,15 +30979,22 @@ declare class PermissionsController {
28370
30979
  * @returns Promise resolving to batch result with successes and failures
28371
30980
  * @throws {BlockchainError} When reading from contract fails or chain is unavailable
28372
30981
  */
28373
- getServerInfoBatch(serverIds: Address[]): Promise<BatchServerInfoResult>;
30982
+ getServerInfoBatch(serverIds: number[]): Promise<BatchServerInfoResult>;
28374
30983
  /**
28375
30984
  * Checks whether a specific server is trusted by a user.
28376
30985
  *
28377
- * @param serverId - Server ID to check
30986
+ * @param serverId - Server ID to check (numeric)
28378
30987
  * @param userAddress - Optional user address (defaults to current user)
28379
30988
  * @returns Promise resolving to server trust status
28380
30989
  */
28381
- checkServerTrustStatus(serverId: Address, userAddress?: Address): Promise<ServerTrustStatus>;
30990
+ checkServerTrustStatus(serverId: number, userAddress?: Address): Promise<ServerTrustStatus>;
30991
+ /**
30992
+ * Composes EIP-712 typed data for AddAndTrustServer.
30993
+ *
30994
+ * @param input - The add and trust server input data containing server details
30995
+ * @returns Promise resolving to the typed data structure for server add and trust
30996
+ */
30997
+ private composeAddAndTrustServerMessage;
28382
30998
  /**
28383
30999
  * Composes EIP-712 typed data for TrustServer.
28384
31000
  *
@@ -28393,6 +31009,20 @@ declare class PermissionsController {
28393
31009
  * @returns Promise resolving to the typed data structure for server untrust
28394
31010
  */
28395
31011
  private composeUntrustServerMessage;
31012
+ /**
31013
+ * Gets the EIP-712 domain for DataPortabilityServers signatures.
31014
+ *
31015
+ * @returns Promise resolving to the EIP-712 domain configuration
31016
+ */
31017
+ private getServersDomain;
31018
+ /**
31019
+ * Submits an add and trust server transaction directly to the blockchain.
31020
+ *
31021
+ * @param addAndTrustServerInput - The add and trust server input data containing server details
31022
+ * @param signature - The cryptographic signature for the transaction
31023
+ * @returns Promise resolving to the transaction hash
31024
+ */
31025
+ private submitAddAndTrustServerTransaction;
28396
31026
  /**
28397
31027
  * Submits a trust server transaction directly to the blockchain.
28398
31028
  *
@@ -28417,6 +31047,107 @@ declare class PermissionsController {
28417
31047
  * @returns Promise resolving to the transaction hash
28418
31048
  */
28419
31049
  private submitSignedUntrustTransaction;
31050
+ /**
31051
+ * Registers a new grantee
31052
+ *
31053
+ * @param params - Parameters for registering the grantee
31054
+ * @returns Promise resolving to the transaction hash
31055
+ *
31056
+ * @example
31057
+ * ```typescript
31058
+ * const txHash = await vana.permissions.registerGrantee({
31059
+ * owner: "0x742d35Cc6558Fd4D9e9E0E888F0462ef6919Bd36",
31060
+ * granteeAddress: "0xApp1234567890123456789012345678901234567890",
31061
+ * publicKey: "0x1234567890abcdef..."
31062
+ * });
31063
+ * ```
31064
+ */
31065
+ registerGrantee(params: RegisterGranteeParams): Promise<Hash>;
31066
+ /**
31067
+ * Registers a grantee with a signature (gasless transaction)
31068
+ *
31069
+ * @param params - Parameters for registering the grantee
31070
+ * @returns Promise resolving to the transaction hash
31071
+ *
31072
+ * @example
31073
+ * ```typescript
31074
+ * const txHash = await vana.permissions.registerGranteeWithSignature({
31075
+ * owner: "0x742d35Cc6558Fd4D9e9E0E888F0462ef6919Bd36",
31076
+ * granteeAddress: "0xApp1234567890123456789012345678901234567890",
31077
+ * publicKey: "0x1234567890abcdef..."
31078
+ * });
31079
+ * ```
31080
+ */
31081
+ registerGranteeWithSignature(params: RegisterGranteeParams): Promise<Hash>;
31082
+ /**
31083
+ * Submits a signed register grantee transaction via relayer
31084
+ *
31085
+ * @param typedData - The EIP-712 typed data for register grantee
31086
+ * @param signature - The cryptographic signature
31087
+ * @returns Promise resolving to the transaction hash
31088
+ *
31089
+ * @example
31090
+ * ```typescript
31091
+ * const result = await vana.permissions.submitSignedRegisterGrantee(typedData, signature);
31092
+ * ```
31093
+ */
31094
+ submitSignedRegisterGrantee(typedData: RegisterGranteeTypedData, signature: Hash): Promise<Hash>;
31095
+ /**
31096
+ * Gets all grantees
31097
+ *
31098
+ * @param options - Query options
31099
+ * @returns Promise resolving to paginated grantees
31100
+ *
31101
+ * @example
31102
+ * ```typescript
31103
+ * const result = await vana.permissions.getGrantees({
31104
+ * limit: 10,
31105
+ * offset: 0
31106
+ * });
31107
+ * ```
31108
+ */
31109
+ getGrantees(options?: GranteeQueryOptions): Promise<PaginatedGrantees>;
31110
+ /**
31111
+ * Gets a grantee by their address
31112
+ *
31113
+ * @param granteeAddress - The grantee's address
31114
+ * @returns Promise resolving to the grantee info or null if not found
31115
+ *
31116
+ * @example
31117
+ * ```typescript
31118
+ * const grantee = await vana.permissions.getGranteeByAddress("0x1234...");
31119
+ * ```
31120
+ */
31121
+ getGranteeByAddress(granteeAddress: Address): Promise<Grantee | null>;
31122
+ /**
31123
+ * Gets a grantee by their ID
31124
+ *
31125
+ * @param granteeId - The grantee's ID
31126
+ * @returns Promise resolving to the grantee info or null if not found
31127
+ *
31128
+ * @example
31129
+ * ```typescript
31130
+ * const grantee = await vana.permissions.getGranteeById(1);
31131
+ * ```
31132
+ */
31133
+ getGranteeById(granteeId: number): Promise<Grantee | null>;
31134
+ /**
31135
+ * Builds EIP-712 typed data for grantee registration
31136
+ *
31137
+ * @param input - The register grantee input
31138
+ * @returns Promise resolving to the typed data structure
31139
+ * @private
31140
+ */
31141
+ private buildRegisterGranteeTypedData;
31142
+ /**
31143
+ * Submits a register grantee transaction with signature.
31144
+ *
31145
+ * @param typedData - The EIP-712 typed data structure for the registration
31146
+ * @param _signature - The cryptographic signature authorizing the registration (currently unused)
31147
+ * @returns Promise resolving to the transaction hash
31148
+ * @private
31149
+ */
31150
+ private submitSignedRegisterGranteeTransaction;
28420
31151
  }
28421
31152
 
28422
31153
  /**
@@ -31877,8 +34608,8 @@ declare class DataController {
31877
34608
  */
31878
34609
  declare class ServerController {
31879
34610
  private readonly context;
31880
- readonly PERSONAL_SERVER_BASE_URL: string | undefined;
31881
34611
  constructor(context: ControllerContext$1);
34612
+ private get personalServerBaseUrl();
31882
34613
  /**
31883
34614
  * Retrieves the cryptographic identity of a personal server.
31884
34615
  *
@@ -32349,6 +35080,7 @@ declare class VanaCore {
32349
35080
  private readonly storageManager?;
32350
35081
  private readonly hasRequiredStorage;
32351
35082
  private readonly ipfsGateways?;
35083
+ private readonly defaultPersonalServerUrl?;
32352
35084
  /**
32353
35085
  * Initializes a new VanaCore client instance with the provided configuration.
32354
35086
  *
@@ -34340,4 +37072,4 @@ declare function Vana(config: VanaConfig): VanaBrowserImpl;
34340
37072
  */
34341
37073
  type VanaInstance = VanaBrowserImpl;
34342
37074
 
34343
- export { type $defs, type APIResponse, type AddRefinerParams, type AddRefinerResult, type AddSchemaParams, type AddSchemaResult, type AllKeys, ApiClient, type ApiClientConfig, type ApiResponse, AsyncQueue, type AsyncResult, type AuthenticationErrorResponse, type Awaited, type BaseConfig, type BaseConfigWithStorage, BaseController, type BatchServerInfoResult, type BatchUploadParams, type BatchUploadResult, type BlockRange, BlockchainError, type BlockchainErrorResponse, type Brand, BrowserPlatformAdapter, type Cache, type CacheConfig, CallbackStorage, type ChainConfig, type ChainConfigWithStorage, type CheckPermissionParams, CircuitBreaker, type ComputeErrorResponse, type ConditionalOptional, type ConfigValidationOptions, type ConfigValidationResult, type ContractAddresses, type ContractCall, type ContractDeployment, ContractFactory, type ContractInfo, type ContractMethodParams, type ContractMethodReturnType, ContractNotFoundError, type Controller, type ControllerContext, type CreateOperationParams, type CreateOperationRequest, type CreateOperationResponse, type CreateSchemaParams, type CreateSchemaResult, DEFAULT_ENCRYPTION_SEED, DEFAULT_IPFS_GATEWAY, DataController, type DataSchema, type DecryptionErrorResponse, type DeepPartial, type DeepReadonly, type DeleteFileParams, type DeleteFileResult, type DownloadFileParams, type DownloadFileResult, type EncryptedUploadParams, type EncryptionInfo, type ErrorResponse, EventEmitter, type EventFilter, type EventLog, type Factory, type FileAccessErrorResponse, type FileAccessPermissions, type FileMetadata, type FilePermissionParams, type FileSharingConfig, type GasEstimate, type GenericRequest, type GenericResponse, type GenericTypedData, type GetFileParams, type GetOperationResponse, type GetUserFilesParams, type GetUserPermissionsOptions, type GetUserTrustedServersParams, type GetUserTrustedServersResult, GoogleDriveStorage, GrantExpiredError, type GrantFile, type GrantPermissionParams, GrantSchemaError, GrantValidationError, type GrantValidationErrorResponse, type GrantValidationOptions, type GrantValidationResult, type GrantedPermission, GranteeMismatchError, type HttpMethod, IPFS_GATEWAYS, type IdentityResponseModel, type InitPersonalServerParams, type InternalServerErrorResponse, InvalidConfigurationError, IpfsStorage, type LegacyPermissionParams, type MaybeArray, type MaybePromise, MemoryCache, type Middleware, MiddlewarePipeline, NetworkError, type NetworkInfo, type Nominal, type NonNullable, NonceError, type NotFoundErrorResponse, type Observable, type Observer, type OmitByType, type OnChainPermissionGrant, type OperationErrorResponse, OperationNotAllowedError, type OptionalKeys, type PaginatedTrustedServers, type PaginationParams, type PaginationResult, type PartialExcept, type PermissionAnalytics, type PermissionCheckResult, PermissionError, type PermissionEvent, type PermissionGrantDomain, type PermissionGrantMessage, type PermissionGrantTypedData, type PermissionInfo, type PermissionInputMessage, type PermissionOperation, type PermissionQueryResult, type PermissionStatus, PermissionsController, PersonalServerError, type PersonalServerIdentity, type PersonalServerModel, type PickByType, type PinataListResponse, type PinataPin, PinataStorage, type PinataUploadResponse, type Plugin, type PostRequestParams, type PromiseResult, ProtocolController, type QueryPermissionsParams, type RateLimitInfo, RateLimiter, type RateLimiterConfig, type Refiner, type RelayerCallbacks, type RelayerConfig, RelayerError, type RelayerErrorResponse, type RelayerMetrics, type RelayerQueueInfo, type RelayerRequestOptions, type RelayerStatus, type RelayerStorageResponse, type RelayerStoreParams, type RelayerSubmitParams, type RelayerTransactionResponse, type RelayerTransactionStatus, type RelayerWebhookConfig, type RelayerWebhookPayload, type ReplicateAPIResponse, type ReplicateStatus, type Repository, type RequestOptions, type RequireKeys, type RequiredExcept, type RetryConfig, RetryUtility, type RevokePermissionInput, type RevokePermissionParams, type RuntimeConfig, type Schema, SchemaValidationError, SchemaValidator, SerializationError, type Server, type components as ServerComponents, ServerController, type $defs as ServerDefs, type operations as ServerOperations, type paths as ServerPaths, type ServerTrustStatus, ServerUrlMismatchError, type webhooks as ServerWebhooks, type Service, SignatureCache, SignatureError, type SimplifiedPermissionMessage, type StateMachine, type StatusInfo, type StorageCallbacks, type StorageConfig, type StorageDownloadOptions, StorageError, type StorageFile, type StorageListOptions, type StorageListResult, StorageManager, type StorageProvider, type StorageProviderConfig, type StorageRequiredMarker, type StorageUploadResult, type TimeRange, type TransactionOptions, type TransactionReceipt, type Transformer, type TrustServerInput, type TrustServerParams, type TrustServerTypedData, type TrustedServer, type TrustedServerInfo, type TrustedServerQueryMode, type TrustedServerQueryOptions, type UnencryptedUploadParams, type UntrustServerInput, type UntrustServerParams, type UntrustServerTypedData, type UpdateSchemaIdParams, type UpdateSchemaIdResult, type UploadEncryptedFileResult, type UploadFileParams, type UploadFileResult, type UploadParams, type UploadProgress, type UploadResult, type UserFile, UserRejectedRequestError, type ValidationErrorResponse, type ValidationResult, type Validator, Vana, VanaBrowserImpl, type VanaChain, type VanaChainConfig, type VanaChainId, type VanaConfig, type VanaConfigWithStorage, type VanaContract, type VanaContract as VanaContractAbi, type VanaContractInstance, type VanaContractName, VanaCore, VanaCoreFactory, VanaError, type VanaInstance, type VanaPlatformAdapter, type WalletConfig, type WalletConfigWithStorage, __contractCache, chains, checkGrantAccess, clearContractCache, type components, convertIpfsUrl, convertIpfsUrlWithFallbacks, createAndStoreGrant, createBrowserPlatformAdapter, createGrantFile, createPlatformAdapterSafe, createValidatedGrant, decryptBlobWithSignedKey, decryptWithPrivateKey, decryptWithWalletPrivateKey, Vana as default, detectPlatform, encryptBlobWithSignedKey, encryptFileKey, encryptWithWalletPublicKey, extractIpfsHash, fetchAndValidateSchema, fetchWithFallbacks, formatEth, formatNumber, formatToken, generateEncryptionKey, generateEncryptionKeyPair, generatePGPKeyPair, getAbi, getAllChains, getChainConfig, getContractAddress, getContractController, getContractInfo, getEncryptionParameters, getGatewayUrls, getGrantFileHash, getGrantTimeRemaining, getPlatformCapabilities, hasStorageConfig, isAPIResponse, isChainConfig, isGrantExpired, isIpfsUrl, isPlatformSupported, isReplicateAPIResponse, isVanaChain, isVanaChainId, isWalletConfig, moksha, mokshaTestnet, type operations, parseReplicateOutput, type paths, retrieveAndValidateGrant, retrieveGrantFile, safeParseJSON, schemaValidator, shortenAddress, storeGrantFile, summarizeGrant, validateDataAgainstSchema, validateDataSchema, validateGrant, validateGrantExpiry, validateGrantFile, validateGranteeAccess, validateOperationAccess, vanaMainnet, type webhooks, withSignatureCache };
37075
+ export { type $defs, type APIResponse, type AddAndTrustServerInput, type AddAndTrustServerParams, type AddAndTrustServerTypedData, type AddRefinerParams, type AddRefinerResult, type AddSchemaParams, type AddSchemaResult, type AllKeys, ApiClient, type ApiClientConfig, type ApiResponse, AsyncQueue, type AsyncResult, type AuthenticationErrorResponse, type Awaited, type BaseConfig, type BaseConfigWithStorage, BaseController, type BatchServerInfoResult, type BatchUploadParams, type BatchUploadResult, type BlockRange, BlockchainError, type BlockchainErrorResponse, type Brand, BrowserPlatformAdapter, type Cache, type CacheConfig, CallbackStorage, type ChainConfig, type ChainConfigWithStorage, type CheckPermissionParams, CircuitBreaker, type ComputeErrorResponse, type ConditionalOptional, type ConfigValidationOptions, type ConfigValidationResult, type ContractAddresses, type ContractCall, type ContractDeployment, ContractFactory, type ContractInfo, type ContractMethodParams, type ContractMethodReturnType, ContractNotFoundError, type Controller, type ControllerContext, type CreateOperationParams, type CreateOperationRequest, type CreateOperationResponse, type CreateSchemaParams, type CreateSchemaResult, DEFAULT_ENCRYPTION_SEED, DEFAULT_IPFS_GATEWAY, DataController, type DataSchema, type DecryptionErrorResponse, type DeepPartial, type DeepReadonly, type DeleteFileParams, type DeleteFileResult, type DownloadFileParams, type DownloadFileResult, type EncryptedUploadParams, type EncryptionInfo, type ErrorResponse, EventEmitter, type EventFilter, type EventLog, type Factory, type FileAccessErrorResponse, type FileAccessPermissions, type FileMetadata, type FilePermissionParams, type FileSharingConfig, type GasEstimate, type GenericRequest, type GenericResponse, type GenericTypedData, type GetFileParams, type GetOperationResponse, type GetUserFilesParams, type GetUserPermissionsOptions, type GetUserTrustedServersParams, type GetUserTrustedServersResult, GoogleDriveStorage, GrantExpiredError, type GrantFile, type GrantPermissionParams, GrantSchemaError, GrantValidationError, type GrantValidationErrorResponse, type GrantValidationOptions, type GrantValidationResult, type GrantedPermission, type Grantee, GranteeMismatchError, type GranteeQueryOptions, type HttpMethod, IPFS_GATEWAYS, type IdentityResponseModel, type InitPersonalServerParams, type InternalServerErrorResponse, InvalidConfigurationError, IpfsStorage, type LegacyPermissionParams, type MaybeArray, type MaybePromise, MemoryCache, type Middleware, MiddlewarePipeline, NetworkError, type NetworkInfo, type Nominal, type NonNullable, NonceError, type NotFoundErrorResponse, type Observable, type Observer, type OmitByType, type OnChainPermissionGrant, type OperationErrorResponse, OperationNotAllowedError, type OptionalKeys, type PaginatedGrantees, type PaginatedTrustedServers, type PaginationParams, type PaginationResult, type PartialExcept, type PermissionAnalytics, type PermissionCheckResult, PermissionError, type PermissionEvent, type PermissionGrantDomain, type PermissionGrantMessage, type PermissionGrantTypedData, type PermissionInfo, type PermissionInputMessage, type PermissionOperation, type PermissionQueryResult, type PermissionStatus, PermissionsController, PersonalServerError, type PersonalServerIdentity, type PersonalServerModel, type PickByType, type PinataListResponse, type PinataPin, PinataStorage, type PinataUploadResponse, type Plugin, type PostRequestParams, type PromiseResult, ProtocolController, type QueryPermissionsParams, type RateLimitInfo, RateLimiter, type RateLimiterConfig, type Refiner, type RegisterGranteeInput, type RegisterGranteeParams, type RegisterGranteeTypedData, type RelayerCallbacks, type RelayerConfig, RelayerError, type RelayerErrorResponse, type RelayerMetrics, type RelayerQueueInfo, type RelayerRequestOptions, type RelayerStatus, type RelayerStorageResponse, type RelayerStoreParams, type RelayerSubmitParams, type RelayerTransactionResponse, type RelayerTransactionStatus, type RelayerWebhookConfig, type RelayerWebhookPayload, type ReplicateAPIResponse, type ReplicateStatus, type Repository, type RequestOptions, type RequireKeys, type RequiredExcept, type RetryConfig, RetryUtility, type RevokePermissionInput, type RevokePermissionParams, type RuntimeConfig, type Schema, SchemaValidationError, SchemaValidator, SerializationError, type Server, type components as ServerComponents, ServerController, type $defs as ServerDefs, type operations as ServerOperations, type paths as ServerPaths, type ServerTrustStatus, ServerUrlMismatchError, type webhooks as ServerWebhooks, type Service, SignatureCache, SignatureError, type SimplifiedPermissionMessage, type StateMachine, type StatusInfo, type StorageCallbacks, type StorageConfig, type StorageDownloadOptions, StorageError, type StorageFile, type StorageListOptions, type StorageListResult, StorageManager, type StorageProvider, type StorageProviderConfig, type StorageRequiredMarker, type StorageUploadResult, type TimeRange, type TransactionOptions, type TransactionReceipt, type Transformer, type TrustServerInput, type TrustServerParams, type TrustServerTypedData, type TrustedServer, type TrustedServerInfo, type TrustedServerQueryMode, type TrustedServerQueryOptions, type UnencryptedUploadParams, type UntrustServerInput, type UntrustServerParams, type UntrustServerTypedData, type UpdateSchemaIdParams, type UpdateSchemaIdResult, type UploadEncryptedFileResult, type UploadFileParams, type UploadFileResult, type UploadParams, type UploadProgress, type UploadResult, type UserFile, UserRejectedRequestError, type ValidationErrorResponse, type ValidationResult, type Validator, Vana, VanaBrowserImpl, type VanaChain, type VanaChainConfig, type VanaChainId, type VanaConfig, type VanaConfigWithStorage, type VanaContract, type VanaContract as VanaContractAbi, type VanaContractInstance, type VanaContractName, VanaCore, VanaCoreFactory, VanaError, type VanaInstance, type VanaPlatformAdapter, type WalletConfig, type WalletConfigWithStorage, __contractCache, chains, checkGrantAccess, clearContractCache, type components, convertIpfsUrl, convertIpfsUrlWithFallbacks, createAndStoreGrant, createBrowserPlatformAdapter, createGrantFile, createPlatformAdapterSafe, createValidatedGrant, decryptBlobWithSignedKey, decryptWithPrivateKey, decryptWithWalletPrivateKey, Vana as default, detectPlatform, encryptBlobWithSignedKey, encryptFileKey, encryptWithWalletPublicKey, extractIpfsHash, fetchAndValidateSchema, fetchWithFallbacks, formatEth, formatNumber, formatToken, generateEncryptionKey, generateEncryptionKeyPair, generatePGPKeyPair, getAbi, getAllChains, getChainConfig, getContractAddress, getContractController, getContractInfo, getEncryptionParameters, getGatewayUrls, getGrantFileHash, getGrantTimeRemaining, getPlatformCapabilities, hasStorageConfig, isAPIResponse, isChainConfig, isGrantExpired, isIpfsUrl, isPlatformSupported, isReplicateAPIResponse, isVanaChain, isVanaChainId, isWalletConfig, moksha, mokshaTestnet, type operations, parseReplicateOutput, type paths, retrieveAndValidateGrant, retrieveGrantFile, safeParseJSON, schemaValidator, shortenAddress, storeGrantFile, summarizeGrant, validateDataAgainstSchema, validateDataSchema, validateGrant, validateGrantExpiry, validateGrantFile, validateGranteeAccess, validateOperationAccess, vanaMainnet, type webhooks, withSignatureCache };