@opendatalabs/vana-sdk 0.1.0-alpha.422707d → 0.1.0-alpha.4c1eb5b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.browser.d.ts +674 -1207
- package/dist/index.browser.js +1414 -401
- package/dist/index.browser.js.map +1 -1
- package/dist/index.node.cjs +1422 -402
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.d.cts +674 -1207
- package/dist/index.node.d.ts +674 -1207
- package/dist/index.node.js +1422 -402
- package/dist/index.node.js.map +1 -1
- package/package.json +1 -1
package/dist/index.browser.d.ts
CHANGED
|
@@ -392,8 +392,8 @@ interface PermissionInfo {
|
|
|
392
392
|
granteeId: bigint;
|
|
393
393
|
/** Grant URL */
|
|
394
394
|
grant: string;
|
|
395
|
-
/** Signature bytes */
|
|
396
|
-
signature
|
|
395
|
+
/** Signature bytes (removed in newer contract versions) */
|
|
396
|
+
signature?: `0x${string}`;
|
|
397
397
|
/** Start block */
|
|
398
398
|
startBlock: bigint;
|
|
399
399
|
/** End block */
|
|
@@ -612,13 +612,28 @@ interface Server {
|
|
|
612
612
|
publicKey: string;
|
|
613
613
|
}
|
|
614
614
|
/**
|
|
615
|
-
*
|
|
615
|
+
* Contract ServerInfo structure returned from the contract
|
|
616
616
|
*
|
|
617
617
|
* @category Permissions
|
|
618
618
|
*/
|
|
619
|
-
interface
|
|
619
|
+
interface ServerInfo {
|
|
620
|
+
/** Server ID */
|
|
621
|
+
id: bigint;
|
|
620
622
|
/** Server owner address */
|
|
621
623
|
owner: Address;
|
|
624
|
+
/** Server address */
|
|
625
|
+
serverAddress: Address;
|
|
626
|
+
/** Server public key */
|
|
627
|
+
publicKey: string;
|
|
628
|
+
/** Server URL */
|
|
629
|
+
url: string;
|
|
630
|
+
}
|
|
631
|
+
/**
|
|
632
|
+
* Parameters for adding and trusting a server
|
|
633
|
+
*
|
|
634
|
+
* @category Permissions
|
|
635
|
+
*/
|
|
636
|
+
interface AddAndTrustServerParams {
|
|
622
637
|
/** Server address */
|
|
623
638
|
serverAddress: Address;
|
|
624
639
|
/** Server URL */
|
|
@@ -653,8 +668,6 @@ interface UntrustServerParams {
|
|
|
653
668
|
interface AddAndTrustServerInput {
|
|
654
669
|
/** User nonce */
|
|
655
670
|
nonce: bigint;
|
|
656
|
-
/** Server owner address */
|
|
657
|
-
owner: Address;
|
|
658
671
|
/** Server address */
|
|
659
672
|
serverAddress: Address;
|
|
660
673
|
/** Server URL */
|
|
@@ -695,13 +708,13 @@ interface AddAndTrustServerTypedData {
|
|
|
695
708
|
domain: PermissionGrantDomain;
|
|
696
709
|
/** EIP-712 types */
|
|
697
710
|
types: {
|
|
698
|
-
|
|
711
|
+
AddServer: Array<{
|
|
699
712
|
name: string;
|
|
700
713
|
type: string;
|
|
701
714
|
}>;
|
|
702
715
|
};
|
|
703
716
|
/** Primary type */
|
|
704
|
-
primaryType: "
|
|
717
|
+
primaryType: "AddServer";
|
|
705
718
|
/** Message to sign */
|
|
706
719
|
message: AddAndTrustServerInput;
|
|
707
720
|
}
|
|
@@ -769,20 +782,20 @@ interface PermissionEvent {
|
|
|
769
782
|
* @category Permissions
|
|
770
783
|
*/
|
|
771
784
|
interface TrustedServerInfo {
|
|
772
|
-
/** Server ID
|
|
773
|
-
|
|
785
|
+
/** Server ID */
|
|
786
|
+
id: bigint;
|
|
774
787
|
/** Server owner address */
|
|
775
788
|
owner: Address;
|
|
776
|
-
/** Server URL */
|
|
777
|
-
url: string;
|
|
778
789
|
/** Server address */
|
|
779
790
|
serverAddress: Address;
|
|
780
791
|
/** Server public key */
|
|
781
792
|
publicKey: string;
|
|
782
|
-
/**
|
|
783
|
-
|
|
784
|
-
/**
|
|
785
|
-
|
|
793
|
+
/** Server URL */
|
|
794
|
+
url: string;
|
|
795
|
+
/** Start block when trust relationship began */
|
|
796
|
+
startBlock: bigint;
|
|
797
|
+
/** End block when trust relationship ended (0 if still active) */
|
|
798
|
+
endBlock: bigint;
|
|
786
799
|
}
|
|
787
800
|
/**
|
|
788
801
|
* Paginated result for trusted server queries
|
|
@@ -857,6 +870,21 @@ interface Grantee {
|
|
|
857
870
|
/** Permission IDs associated with this grantee */
|
|
858
871
|
permissionIds: number[];
|
|
859
872
|
}
|
|
873
|
+
/**
|
|
874
|
+
* Contract GranteeInfo structure returned from the contract
|
|
875
|
+
*
|
|
876
|
+
* @category Permissions
|
|
877
|
+
*/
|
|
878
|
+
interface GranteeInfo {
|
|
879
|
+
/** Grantee owner address */
|
|
880
|
+
owner: Address;
|
|
881
|
+
/** Grantee address */
|
|
882
|
+
granteeAddress: Address;
|
|
883
|
+
/** Grantee public key */
|
|
884
|
+
publicKey: string;
|
|
885
|
+
/** Permission IDs associated with this grantee */
|
|
886
|
+
permissionIds: readonly bigint[];
|
|
887
|
+
}
|
|
860
888
|
/**
|
|
861
889
|
* Parameters for registering a grantee
|
|
862
890
|
*
|
|
@@ -935,6 +963,64 @@ interface PaginatedGrantees {
|
|
|
935
963
|
/** Whether there are more grantees beyond this page */
|
|
936
964
|
hasMore: boolean;
|
|
937
965
|
}
|
|
966
|
+
/**
|
|
967
|
+
* Contract Permission structure as used in ServerFilesAndPermissionInput
|
|
968
|
+
*
|
|
969
|
+
* @category Permissions
|
|
970
|
+
*/
|
|
971
|
+
interface Permission {
|
|
972
|
+
/** Account address for the permission */
|
|
973
|
+
account: Address;
|
|
974
|
+
/** Permission key */
|
|
975
|
+
key: string;
|
|
976
|
+
}
|
|
977
|
+
/**
|
|
978
|
+
* Parameters for server files and permissions operations
|
|
979
|
+
*
|
|
980
|
+
* @category Permissions
|
|
981
|
+
*/
|
|
982
|
+
interface ServerFilesAndPermissionParams {
|
|
983
|
+
/** Grantee ID */
|
|
984
|
+
granteeId: bigint;
|
|
985
|
+
/** Grant URL or grant data */
|
|
986
|
+
grant: string;
|
|
987
|
+
/** File URLs */
|
|
988
|
+
fileUrls: string[];
|
|
989
|
+
/** Server address */
|
|
990
|
+
serverAddress: Address;
|
|
991
|
+
/** Server URL */
|
|
992
|
+
serverUrl: string;
|
|
993
|
+
/** Server public key */
|
|
994
|
+
serverPublicKey: string;
|
|
995
|
+
/** File permissions array - permissions for each file */
|
|
996
|
+
filePermissions: Permission[][];
|
|
997
|
+
}
|
|
998
|
+
/**
|
|
999
|
+
* EIP-712 typed data for server files and permissions messages
|
|
1000
|
+
*
|
|
1001
|
+
* @category Permissions
|
|
1002
|
+
*/
|
|
1003
|
+
interface ServerFilesAndPermissionTypedData extends GenericTypedData {
|
|
1004
|
+
/** Message data structure */
|
|
1005
|
+
message: {
|
|
1006
|
+
/** User nonce */
|
|
1007
|
+
nonce: bigint;
|
|
1008
|
+
/** Grantee ID */
|
|
1009
|
+
granteeId: bigint;
|
|
1010
|
+
/** Grant URL */
|
|
1011
|
+
grant: string;
|
|
1012
|
+
/** File URLs */
|
|
1013
|
+
fileUrls: string[];
|
|
1014
|
+
/** Server address */
|
|
1015
|
+
serverAddress: Address;
|
|
1016
|
+
/** Server URL */
|
|
1017
|
+
serverUrl: string;
|
|
1018
|
+
/** Server public key */
|
|
1019
|
+
serverPublicKey: string;
|
|
1020
|
+
/** File permissions array - permissions for each file */
|
|
1021
|
+
filePermissions: Permission[][];
|
|
1022
|
+
};
|
|
1023
|
+
}
|
|
938
1024
|
|
|
939
1025
|
/**
|
|
940
1026
|
* Marker interface to indicate that a Vana instance has storage configured.
|
|
@@ -1554,7 +1640,7 @@ interface ConfigValidationResult {
|
|
|
1554
1640
|
/**
|
|
1555
1641
|
* Union type of all canonical Vana contract names
|
|
1556
1642
|
*/
|
|
1557
|
-
type VanaContractName = "
|
|
1643
|
+
type VanaContractName = "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";
|
|
1558
1644
|
/**
|
|
1559
1645
|
* Contract information with typed address and ABI
|
|
1560
1646
|
*/
|
|
@@ -2250,7 +2336,7 @@ interface GetUserTrustedServersResult {
|
|
|
2250
2336
|
}
|
|
2251
2337
|
|
|
2252
2338
|
declare const contractAbis: {
|
|
2253
|
-
readonly
|
|
2339
|
+
readonly DataPortabilityPermissions: readonly [{
|
|
2254
2340
|
readonly inputs: readonly [];
|
|
2255
2341
|
readonly stateMutability: "nonpayable";
|
|
2256
2342
|
readonly type: "constructor";
|
|
@@ -2354,6 +2440,18 @@ declare const contractAbis: {
|
|
|
2354
2440
|
}];
|
|
2355
2441
|
readonly name: "InvalidNonce";
|
|
2356
2442
|
readonly type: "error";
|
|
2443
|
+
}, {
|
|
2444
|
+
readonly inputs: readonly [{
|
|
2445
|
+
readonly internalType: "uint256";
|
|
2446
|
+
readonly name: "filesLength";
|
|
2447
|
+
readonly type: "uint256";
|
|
2448
|
+
}, {
|
|
2449
|
+
readonly internalType: "uint256";
|
|
2450
|
+
readonly name: "permissionsLength";
|
|
2451
|
+
readonly type: "uint256";
|
|
2452
|
+
}];
|
|
2453
|
+
readonly name: "InvalidPermissionsLength";
|
|
2454
|
+
readonly type: "error";
|
|
2357
2455
|
}, {
|
|
2358
2456
|
readonly inputs: readonly [];
|
|
2359
2457
|
readonly name: "InvalidSignature";
|
|
@@ -2612,6 +2710,66 @@ declare const contractAbis: {
|
|
|
2612
2710
|
}];
|
|
2613
2711
|
readonly stateMutability: "nonpayable";
|
|
2614
2712
|
readonly type: "function";
|
|
2713
|
+
}, {
|
|
2714
|
+
readonly inputs: readonly [{
|
|
2715
|
+
readonly components: readonly [{
|
|
2716
|
+
readonly internalType: "uint256";
|
|
2717
|
+
readonly name: "nonce";
|
|
2718
|
+
readonly type: "uint256";
|
|
2719
|
+
}, {
|
|
2720
|
+
readonly internalType: "uint256";
|
|
2721
|
+
readonly name: "granteeId";
|
|
2722
|
+
readonly type: "uint256";
|
|
2723
|
+
}, {
|
|
2724
|
+
readonly internalType: "string";
|
|
2725
|
+
readonly name: "grant";
|
|
2726
|
+
readonly type: "string";
|
|
2727
|
+
}, {
|
|
2728
|
+
readonly internalType: "string[]";
|
|
2729
|
+
readonly name: "fileUrls";
|
|
2730
|
+
readonly type: "string[]";
|
|
2731
|
+
}, {
|
|
2732
|
+
readonly internalType: "address";
|
|
2733
|
+
readonly name: "serverAddress";
|
|
2734
|
+
readonly type: "address";
|
|
2735
|
+
}, {
|
|
2736
|
+
readonly internalType: "string";
|
|
2737
|
+
readonly name: "serverUrl";
|
|
2738
|
+
readonly type: "string";
|
|
2739
|
+
}, {
|
|
2740
|
+
readonly internalType: "string";
|
|
2741
|
+
readonly name: "serverPublicKey";
|
|
2742
|
+
readonly type: "string";
|
|
2743
|
+
}, {
|
|
2744
|
+
readonly components: readonly [{
|
|
2745
|
+
readonly internalType: "address";
|
|
2746
|
+
readonly name: "account";
|
|
2747
|
+
readonly type: "address";
|
|
2748
|
+
}, {
|
|
2749
|
+
readonly internalType: "string";
|
|
2750
|
+
readonly name: "key";
|
|
2751
|
+
readonly type: "string";
|
|
2752
|
+
}];
|
|
2753
|
+
readonly internalType: "struct IDataRegistry.Permission[][]";
|
|
2754
|
+
readonly name: "filePermissions";
|
|
2755
|
+
readonly type: "tuple[][]";
|
|
2756
|
+
}];
|
|
2757
|
+
readonly internalType: "struct IDataPortabilityPermissions.ServerFilesAndPermissionInput";
|
|
2758
|
+
readonly name: "serverFilesAndPermissionInput";
|
|
2759
|
+
readonly type: "tuple";
|
|
2760
|
+
}, {
|
|
2761
|
+
readonly internalType: "bytes";
|
|
2762
|
+
readonly name: "signature";
|
|
2763
|
+
readonly type: "bytes";
|
|
2764
|
+
}];
|
|
2765
|
+
readonly name: "addServerFilesAndPermissions";
|
|
2766
|
+
readonly outputs: readonly [{
|
|
2767
|
+
readonly internalType: "uint256";
|
|
2768
|
+
readonly name: "";
|
|
2769
|
+
readonly type: "uint256";
|
|
2770
|
+
}];
|
|
2771
|
+
readonly stateMutability: "nonpayable";
|
|
2772
|
+
readonly type: "function";
|
|
2615
2773
|
}, {
|
|
2616
2774
|
readonly inputs: readonly [];
|
|
2617
2775
|
readonly name: "dataPortabilityGrantees";
|
|
@@ -2776,20 +2934,6 @@ declare const contractAbis: {
|
|
|
2776
2934
|
readonly outputs: readonly [];
|
|
2777
2935
|
readonly stateMutability: "nonpayable";
|
|
2778
2936
|
readonly type: "function";
|
|
2779
|
-
}, {
|
|
2780
|
-
readonly inputs: readonly [{
|
|
2781
|
-
readonly internalType: "uint256";
|
|
2782
|
-
readonly name: "permissionId";
|
|
2783
|
-
readonly type: "uint256";
|
|
2784
|
-
}];
|
|
2785
|
-
readonly name: "isActivePermission";
|
|
2786
|
-
readonly outputs: readonly [{
|
|
2787
|
-
readonly internalType: "bool";
|
|
2788
|
-
readonly name: "";
|
|
2789
|
-
readonly type: "bool";
|
|
2790
|
-
}];
|
|
2791
|
-
readonly stateMutability: "view";
|
|
2792
|
-
readonly type: "function";
|
|
2793
2937
|
}, {
|
|
2794
2938
|
readonly inputs: readonly [{
|
|
2795
2939
|
readonly internalType: "address";
|
|
@@ -2876,10 +3020,6 @@ declare const contractAbis: {
|
|
|
2876
3020
|
readonly internalType: "string";
|
|
2877
3021
|
readonly name: "grant";
|
|
2878
3022
|
readonly type: "string";
|
|
2879
|
-
}, {
|
|
2880
|
-
readonly internalType: "bytes";
|
|
2881
|
-
readonly name: "signature";
|
|
2882
|
-
readonly type: "bytes";
|
|
2883
3023
|
}, {
|
|
2884
3024
|
readonly internalType: "uint256";
|
|
2885
3025
|
readonly name: "startBlock";
|
|
@@ -3167,7 +3307,7 @@ declare const contractAbis: {
|
|
|
3167
3307
|
readonly stateMutability: "pure";
|
|
3168
3308
|
readonly type: "function";
|
|
3169
3309
|
}];
|
|
3170
|
-
readonly
|
|
3310
|
+
readonly DataPortabilityServers: readonly [{
|
|
3171
3311
|
readonly inputs: readonly [];
|
|
3172
3312
|
readonly stateMutability: "nonpayable";
|
|
3173
3313
|
readonly type: "constructor";
|
|
@@ -3229,31 +3369,23 @@ declare const contractAbis: {
|
|
|
3229
3369
|
readonly type: "error";
|
|
3230
3370
|
}, {
|
|
3231
3371
|
readonly inputs: readonly [];
|
|
3232
|
-
readonly name: "
|
|
3372
|
+
readonly name: "EmptyPublicKey";
|
|
3233
3373
|
readonly type: "error";
|
|
3234
3374
|
}, {
|
|
3235
3375
|
readonly inputs: readonly [];
|
|
3236
|
-
readonly name: "
|
|
3376
|
+
readonly name: "EmptyUrl";
|
|
3237
3377
|
readonly type: "error";
|
|
3238
3378
|
}, {
|
|
3239
3379
|
readonly inputs: readonly [];
|
|
3240
|
-
readonly name: "
|
|
3380
|
+
readonly name: "EnforcedPause";
|
|
3241
3381
|
readonly type: "error";
|
|
3242
3382
|
}, {
|
|
3243
3383
|
readonly inputs: readonly [];
|
|
3244
|
-
readonly name: "
|
|
3384
|
+
readonly name: "ExpectedPause";
|
|
3245
3385
|
readonly type: "error";
|
|
3246
3386
|
}, {
|
|
3247
3387
|
readonly inputs: readonly [];
|
|
3248
|
-
readonly name: "
|
|
3249
|
-
readonly type: "error";
|
|
3250
|
-
}, {
|
|
3251
|
-
readonly inputs: readonly [{
|
|
3252
|
-
readonly internalType: "uint256";
|
|
3253
|
-
readonly name: "permissionId";
|
|
3254
|
-
readonly type: "uint256";
|
|
3255
|
-
}];
|
|
3256
|
-
readonly name: "InactivePermission";
|
|
3388
|
+
readonly name: "FailedInnerCall";
|
|
3257
3389
|
readonly type: "error";
|
|
3258
3390
|
}, {
|
|
3259
3391
|
readonly inputs: readonly [];
|
|
@@ -3273,35 +3405,51 @@ declare const contractAbis: {
|
|
|
3273
3405
|
readonly type: "error";
|
|
3274
3406
|
}, {
|
|
3275
3407
|
readonly inputs: readonly [];
|
|
3276
|
-
readonly name: "
|
|
3408
|
+
readonly name: "NotInitializing";
|
|
3277
3409
|
readonly type: "error";
|
|
3278
3410
|
}, {
|
|
3279
3411
|
readonly inputs: readonly [{
|
|
3280
3412
|
readonly internalType: "address";
|
|
3281
|
-
readonly name: "
|
|
3413
|
+
readonly name: "serverOwner";
|
|
3282
3414
|
readonly type: "address";
|
|
3283
3415
|
}, {
|
|
3284
3416
|
readonly internalType: "address";
|
|
3285
3417
|
readonly name: "requestor";
|
|
3286
3418
|
readonly type: "address";
|
|
3287
3419
|
}];
|
|
3288
|
-
readonly name: "
|
|
3420
|
+
readonly name: "NotServerOwner";
|
|
3289
3421
|
readonly type: "error";
|
|
3290
3422
|
}, {
|
|
3291
3423
|
readonly inputs: readonly [];
|
|
3292
|
-
readonly name: "
|
|
3424
|
+
readonly name: "ServerAlreadyRegistered";
|
|
3425
|
+
readonly type: "error";
|
|
3426
|
+
}, {
|
|
3427
|
+
readonly inputs: readonly [];
|
|
3428
|
+
readonly name: "ServerAlreadyTrusted";
|
|
3429
|
+
readonly type: "error";
|
|
3430
|
+
}, {
|
|
3431
|
+
readonly inputs: readonly [];
|
|
3432
|
+
readonly name: "ServerAlreadyUntrusted";
|
|
3433
|
+
readonly type: "error";
|
|
3434
|
+
}, {
|
|
3435
|
+
readonly inputs: readonly [];
|
|
3436
|
+
readonly name: "ServerNotFound";
|
|
3437
|
+
readonly type: "error";
|
|
3438
|
+
}, {
|
|
3439
|
+
readonly inputs: readonly [];
|
|
3440
|
+
readonly name: "ServerNotTrusted";
|
|
3293
3441
|
readonly type: "error";
|
|
3294
3442
|
}, {
|
|
3295
3443
|
readonly inputs: readonly [{
|
|
3296
|
-
readonly internalType: "
|
|
3297
|
-
readonly name: "
|
|
3298
|
-
readonly type: "
|
|
3444
|
+
readonly internalType: "string";
|
|
3445
|
+
readonly name: "existingUrl";
|
|
3446
|
+
readonly type: "string";
|
|
3299
3447
|
}, {
|
|
3300
|
-
readonly internalType: "
|
|
3301
|
-
readonly name: "
|
|
3302
|
-
readonly type: "
|
|
3448
|
+
readonly internalType: "string";
|
|
3449
|
+
readonly name: "providedUrl";
|
|
3450
|
+
readonly type: "string";
|
|
3303
3451
|
}];
|
|
3304
|
-
readonly name: "
|
|
3452
|
+
readonly name: "ServerUrlMismatch";
|
|
3305
3453
|
readonly type: "error";
|
|
3306
3454
|
}, {
|
|
3307
3455
|
readonly inputs: readonly [];
|
|
@@ -3344,46 +3492,6 @@ declare const contractAbis: {
|
|
|
3344
3492
|
}];
|
|
3345
3493
|
readonly name: "Paused";
|
|
3346
3494
|
readonly type: "event";
|
|
3347
|
-
}, {
|
|
3348
|
-
readonly anonymous: false;
|
|
3349
|
-
readonly inputs: readonly [{
|
|
3350
|
-
readonly indexed: true;
|
|
3351
|
-
readonly internalType: "uint256";
|
|
3352
|
-
readonly name: "permissionId";
|
|
3353
|
-
readonly type: "uint256";
|
|
3354
|
-
}, {
|
|
3355
|
-
readonly indexed: true;
|
|
3356
|
-
readonly internalType: "address";
|
|
3357
|
-
readonly name: "user";
|
|
3358
|
-
readonly type: "address";
|
|
3359
|
-
}, {
|
|
3360
|
-
readonly indexed: true;
|
|
3361
|
-
readonly internalType: "uint256";
|
|
3362
|
-
readonly name: "granteeId";
|
|
3363
|
-
readonly type: "uint256";
|
|
3364
|
-
}, {
|
|
3365
|
-
readonly indexed: false;
|
|
3366
|
-
readonly internalType: "string";
|
|
3367
|
-
readonly name: "grant";
|
|
3368
|
-
readonly type: "string";
|
|
3369
|
-
}, {
|
|
3370
|
-
readonly indexed: false;
|
|
3371
|
-
readonly internalType: "uint256[]";
|
|
3372
|
-
readonly name: "fileIds";
|
|
3373
|
-
readonly type: "uint256[]";
|
|
3374
|
-
}];
|
|
3375
|
-
readonly name: "PermissionAdded";
|
|
3376
|
-
readonly type: "event";
|
|
3377
|
-
}, {
|
|
3378
|
-
readonly anonymous: false;
|
|
3379
|
-
readonly inputs: readonly [{
|
|
3380
|
-
readonly indexed: true;
|
|
3381
|
-
readonly internalType: "uint256";
|
|
3382
|
-
readonly name: "permissionId";
|
|
3383
|
-
readonly type: "uint256";
|
|
3384
|
-
}];
|
|
3385
|
-
readonly name: "PermissionRevoked";
|
|
3386
|
-
readonly type: "event";
|
|
3387
3495
|
}, {
|
|
3388
3496
|
readonly anonymous: false;
|
|
3389
3497
|
readonly inputs: readonly [{
|
|
@@ -3444,6 +3552,81 @@ declare const contractAbis: {
|
|
|
3444
3552
|
}];
|
|
3445
3553
|
readonly name: "RoleRevoked";
|
|
3446
3554
|
readonly type: "event";
|
|
3555
|
+
}, {
|
|
3556
|
+
readonly anonymous: false;
|
|
3557
|
+
readonly inputs: readonly [{
|
|
3558
|
+
readonly indexed: true;
|
|
3559
|
+
readonly internalType: "uint256";
|
|
3560
|
+
readonly name: "serverId";
|
|
3561
|
+
readonly type: "uint256";
|
|
3562
|
+
}, {
|
|
3563
|
+
readonly indexed: true;
|
|
3564
|
+
readonly internalType: "address";
|
|
3565
|
+
readonly name: "owner";
|
|
3566
|
+
readonly type: "address";
|
|
3567
|
+
}, {
|
|
3568
|
+
readonly indexed: true;
|
|
3569
|
+
readonly internalType: "address";
|
|
3570
|
+
readonly name: "serverAddress";
|
|
3571
|
+
readonly type: "address";
|
|
3572
|
+
}, {
|
|
3573
|
+
readonly indexed: false;
|
|
3574
|
+
readonly internalType: "string";
|
|
3575
|
+
readonly name: "publicKey";
|
|
3576
|
+
readonly type: "string";
|
|
3577
|
+
}, {
|
|
3578
|
+
readonly indexed: false;
|
|
3579
|
+
readonly internalType: "string";
|
|
3580
|
+
readonly name: "url";
|
|
3581
|
+
readonly type: "string";
|
|
3582
|
+
}];
|
|
3583
|
+
readonly name: "ServerRegistered";
|
|
3584
|
+
readonly type: "event";
|
|
3585
|
+
}, {
|
|
3586
|
+
readonly anonymous: false;
|
|
3587
|
+
readonly inputs: readonly [{
|
|
3588
|
+
readonly indexed: true;
|
|
3589
|
+
readonly internalType: "address";
|
|
3590
|
+
readonly name: "user";
|
|
3591
|
+
readonly type: "address";
|
|
3592
|
+
}, {
|
|
3593
|
+
readonly indexed: true;
|
|
3594
|
+
readonly internalType: "uint256";
|
|
3595
|
+
readonly name: "serverId";
|
|
3596
|
+
readonly type: "uint256";
|
|
3597
|
+
}];
|
|
3598
|
+
readonly name: "ServerTrusted";
|
|
3599
|
+
readonly type: "event";
|
|
3600
|
+
}, {
|
|
3601
|
+
readonly anonymous: false;
|
|
3602
|
+
readonly inputs: readonly [{
|
|
3603
|
+
readonly indexed: true;
|
|
3604
|
+
readonly internalType: "address";
|
|
3605
|
+
readonly name: "user";
|
|
3606
|
+
readonly type: "address";
|
|
3607
|
+
}, {
|
|
3608
|
+
readonly indexed: true;
|
|
3609
|
+
readonly internalType: "uint256";
|
|
3610
|
+
readonly name: "serverId";
|
|
3611
|
+
readonly type: "uint256";
|
|
3612
|
+
}];
|
|
3613
|
+
readonly name: "ServerUntrusted";
|
|
3614
|
+
readonly type: "event";
|
|
3615
|
+
}, {
|
|
3616
|
+
readonly anonymous: false;
|
|
3617
|
+
readonly inputs: readonly [{
|
|
3618
|
+
readonly indexed: true;
|
|
3619
|
+
readonly internalType: "uint256";
|
|
3620
|
+
readonly name: "serverId";
|
|
3621
|
+
readonly type: "uint256";
|
|
3622
|
+
}, {
|
|
3623
|
+
readonly indexed: false;
|
|
3624
|
+
readonly internalType: "string";
|
|
3625
|
+
readonly name: "url";
|
|
3626
|
+
readonly type: "string";
|
|
3627
|
+
}];
|
|
3628
|
+
readonly name: "ServerUpdated";
|
|
3629
|
+
readonly type: "event";
|
|
3447
3630
|
}, {
|
|
3448
3631
|
readonly anonymous: false;
|
|
3449
3632
|
readonly inputs: readonly [{
|
|
@@ -3486,957 +3669,7 @@ declare const contractAbis: {
|
|
|
3486
3669
|
readonly type: "function";
|
|
3487
3670
|
}, {
|
|
3488
3671
|
readonly inputs: readonly [];
|
|
3489
|
-
readonly name: "
|
|
3490
|
-
readonly outputs: readonly [{
|
|
3491
|
-
readonly internalType: "string";
|
|
3492
|
-
readonly name: "";
|
|
3493
|
-
readonly type: "string";
|
|
3494
|
-
}];
|
|
3495
|
-
readonly stateMutability: "view";
|
|
3496
|
-
readonly type: "function";
|
|
3497
|
-
}, {
|
|
3498
|
-
readonly inputs: readonly [{
|
|
3499
|
-
readonly components: readonly [{
|
|
3500
|
-
readonly internalType: "uint256";
|
|
3501
|
-
readonly name: "nonce";
|
|
3502
|
-
readonly type: "uint256";
|
|
3503
|
-
}, {
|
|
3504
|
-
readonly internalType: "uint256";
|
|
3505
|
-
readonly name: "granteeId";
|
|
3506
|
-
readonly type: "uint256";
|
|
3507
|
-
}, {
|
|
3508
|
-
readonly internalType: "string";
|
|
3509
|
-
readonly name: "grant";
|
|
3510
|
-
readonly type: "string";
|
|
3511
|
-
}, {
|
|
3512
|
-
readonly internalType: "uint256[]";
|
|
3513
|
-
readonly name: "fileIds";
|
|
3514
|
-
readonly type: "uint256[]";
|
|
3515
|
-
}];
|
|
3516
|
-
readonly internalType: "struct IDataPortabilityPermissions.PermissionInput";
|
|
3517
|
-
readonly name: "permissionInput";
|
|
3518
|
-
readonly type: "tuple";
|
|
3519
|
-
}, {
|
|
3520
|
-
readonly internalType: "bytes";
|
|
3521
|
-
readonly name: "signature";
|
|
3522
|
-
readonly type: "bytes";
|
|
3523
|
-
}];
|
|
3524
|
-
readonly name: "addPermission";
|
|
3525
|
-
readonly outputs: readonly [{
|
|
3526
|
-
readonly internalType: "uint256";
|
|
3527
|
-
readonly name: "";
|
|
3528
|
-
readonly type: "uint256";
|
|
3529
|
-
}];
|
|
3530
|
-
readonly stateMutability: "nonpayable";
|
|
3531
|
-
readonly type: "function";
|
|
3532
|
-
}, {
|
|
3533
|
-
readonly inputs: readonly [];
|
|
3534
|
-
readonly name: "dataPortabilityGrantees";
|
|
3535
|
-
readonly outputs: readonly [{
|
|
3536
|
-
readonly internalType: "contract IDataPortabilityGrantees";
|
|
3537
|
-
readonly name: "";
|
|
3538
|
-
readonly type: "address";
|
|
3539
|
-
}];
|
|
3540
|
-
readonly stateMutability: "view";
|
|
3541
|
-
readonly type: "function";
|
|
3542
|
-
}, {
|
|
3543
|
-
readonly inputs: readonly [];
|
|
3544
|
-
readonly name: "dataPortabilityServers";
|
|
3545
|
-
readonly outputs: readonly [{
|
|
3546
|
-
readonly internalType: "contract IDataPortabilityServers";
|
|
3547
|
-
readonly name: "";
|
|
3548
|
-
readonly type: "address";
|
|
3549
|
-
}];
|
|
3550
|
-
readonly stateMutability: "view";
|
|
3551
|
-
readonly type: "function";
|
|
3552
|
-
}, {
|
|
3553
|
-
readonly inputs: readonly [];
|
|
3554
|
-
readonly name: "dataRegistry";
|
|
3555
|
-
readonly outputs: readonly [{
|
|
3556
|
-
readonly internalType: "contract IDataRegistry";
|
|
3557
|
-
readonly name: "";
|
|
3558
|
-
readonly type: "address";
|
|
3559
|
-
}];
|
|
3560
|
-
readonly stateMutability: "view";
|
|
3561
|
-
readonly type: "function";
|
|
3562
|
-
}, {
|
|
3563
|
-
readonly inputs: readonly [];
|
|
3564
|
-
readonly name: "eip712Domain";
|
|
3565
|
-
readonly outputs: readonly [{
|
|
3566
|
-
readonly internalType: "bytes1";
|
|
3567
|
-
readonly name: "fields";
|
|
3568
|
-
readonly type: "bytes1";
|
|
3569
|
-
}, {
|
|
3570
|
-
readonly internalType: "string";
|
|
3571
|
-
readonly name: "name";
|
|
3572
|
-
readonly type: "string";
|
|
3573
|
-
}, {
|
|
3574
|
-
readonly internalType: "string";
|
|
3575
|
-
readonly name: "version";
|
|
3576
|
-
readonly type: "string";
|
|
3577
|
-
}, {
|
|
3578
|
-
readonly internalType: "uint256";
|
|
3579
|
-
readonly name: "chainId";
|
|
3580
|
-
readonly type: "uint256";
|
|
3581
|
-
}, {
|
|
3582
|
-
readonly internalType: "address";
|
|
3583
|
-
readonly name: "verifyingContract";
|
|
3584
|
-
readonly type: "address";
|
|
3585
|
-
}, {
|
|
3586
|
-
readonly internalType: "bytes32";
|
|
3587
|
-
readonly name: "salt";
|
|
3588
|
-
readonly type: "bytes32";
|
|
3589
|
-
}, {
|
|
3590
|
-
readonly internalType: "uint256[]";
|
|
3591
|
-
readonly name: "extensions";
|
|
3592
|
-
readonly type: "uint256[]";
|
|
3593
|
-
}];
|
|
3594
|
-
readonly stateMutability: "view";
|
|
3595
|
-
readonly type: "function";
|
|
3596
|
-
}, {
|
|
3597
|
-
readonly inputs: readonly [{
|
|
3598
|
-
readonly internalType: "uint256";
|
|
3599
|
-
readonly name: "fileId";
|
|
3600
|
-
readonly type: "uint256";
|
|
3601
|
-
}];
|
|
3602
|
-
readonly name: "filePermissionIds";
|
|
3603
|
-
readonly outputs: readonly [{
|
|
3604
|
-
readonly internalType: "uint256[]";
|
|
3605
|
-
readonly name: "";
|
|
3606
|
-
readonly type: "uint256[]";
|
|
3607
|
-
}];
|
|
3608
|
-
readonly stateMutability: "view";
|
|
3609
|
-
readonly type: "function";
|
|
3610
|
-
}, {
|
|
3611
|
-
readonly inputs: readonly [{
|
|
3612
|
-
readonly internalType: "uint256";
|
|
3613
|
-
readonly name: "fileId";
|
|
3614
|
-
readonly type: "uint256";
|
|
3615
|
-
}];
|
|
3616
|
-
readonly name: "filePermissions";
|
|
3617
|
-
readonly outputs: readonly [{
|
|
3618
|
-
readonly internalType: "uint256[]";
|
|
3619
|
-
readonly name: "";
|
|
3620
|
-
readonly type: "uint256[]";
|
|
3621
|
-
}];
|
|
3622
|
-
readonly stateMutability: "view";
|
|
3623
|
-
readonly type: "function";
|
|
3624
|
-
}, {
|
|
3625
|
-
readonly inputs: readonly [{
|
|
3626
|
-
readonly internalType: "bytes32";
|
|
3627
|
-
readonly name: "role";
|
|
3628
|
-
readonly type: "bytes32";
|
|
3629
|
-
}];
|
|
3630
|
-
readonly name: "getRoleAdmin";
|
|
3631
|
-
readonly outputs: readonly [{
|
|
3632
|
-
readonly internalType: "bytes32";
|
|
3633
|
-
readonly name: "";
|
|
3634
|
-
readonly type: "bytes32";
|
|
3635
|
-
}];
|
|
3636
|
-
readonly stateMutability: "view";
|
|
3637
|
-
readonly type: "function";
|
|
3638
|
-
}, {
|
|
3639
|
-
readonly inputs: readonly [{
|
|
3640
|
-
readonly internalType: "bytes32";
|
|
3641
|
-
readonly name: "role";
|
|
3642
|
-
readonly type: "bytes32";
|
|
3643
|
-
}, {
|
|
3644
|
-
readonly internalType: "address";
|
|
3645
|
-
readonly name: "account";
|
|
3646
|
-
readonly type: "address";
|
|
3647
|
-
}];
|
|
3648
|
-
readonly name: "grantRole";
|
|
3649
|
-
readonly outputs: readonly [];
|
|
3650
|
-
readonly stateMutability: "nonpayable";
|
|
3651
|
-
readonly type: "function";
|
|
3652
|
-
}, {
|
|
3653
|
-
readonly inputs: readonly [{
|
|
3654
|
-
readonly internalType: "bytes32";
|
|
3655
|
-
readonly name: "role";
|
|
3656
|
-
readonly type: "bytes32";
|
|
3657
|
-
}, {
|
|
3658
|
-
readonly internalType: "address";
|
|
3659
|
-
readonly name: "account";
|
|
3660
|
-
readonly type: "address";
|
|
3661
|
-
}];
|
|
3662
|
-
readonly name: "hasRole";
|
|
3663
|
-
readonly outputs: readonly [{
|
|
3664
|
-
readonly internalType: "bool";
|
|
3665
|
-
readonly name: "";
|
|
3666
|
-
readonly type: "bool";
|
|
3667
|
-
}];
|
|
3668
|
-
readonly stateMutability: "view";
|
|
3669
|
-
readonly type: "function";
|
|
3670
|
-
}, {
|
|
3671
|
-
readonly inputs: readonly [{
|
|
3672
|
-
readonly internalType: "address";
|
|
3673
|
-
readonly name: "trustedForwarderAddress";
|
|
3674
|
-
readonly type: "address";
|
|
3675
|
-
}, {
|
|
3676
|
-
readonly internalType: "address";
|
|
3677
|
-
readonly name: "ownerAddress";
|
|
3678
|
-
readonly type: "address";
|
|
3679
|
-
}, {
|
|
3680
|
-
readonly internalType: "contract IDataRegistry";
|
|
3681
|
-
readonly name: "dataRegistryAddress";
|
|
3682
|
-
readonly type: "address";
|
|
3683
|
-
}, {
|
|
3684
|
-
readonly internalType: "contract IDataPortabilityServers";
|
|
3685
|
-
readonly name: "serversContractAddr";
|
|
3686
|
-
readonly type: "address";
|
|
3687
|
-
}, {
|
|
3688
|
-
readonly internalType: "contract IDataPortabilityGrantees";
|
|
3689
|
-
readonly name: "granteesContractAddr";
|
|
3690
|
-
readonly type: "address";
|
|
3691
|
-
}];
|
|
3692
|
-
readonly name: "initialize";
|
|
3693
|
-
readonly outputs: readonly [];
|
|
3694
|
-
readonly stateMutability: "nonpayable";
|
|
3695
|
-
readonly type: "function";
|
|
3696
|
-
}, {
|
|
3697
|
-
readonly inputs: readonly [{
|
|
3698
|
-
readonly internalType: "uint256";
|
|
3699
|
-
readonly name: "permissionId";
|
|
3700
|
-
readonly type: "uint256";
|
|
3701
|
-
}];
|
|
3702
|
-
readonly name: "isActivePermission";
|
|
3703
|
-
readonly outputs: readonly [{
|
|
3704
|
-
readonly internalType: "bool";
|
|
3705
|
-
readonly name: "";
|
|
3706
|
-
readonly type: "bool";
|
|
3707
|
-
}];
|
|
3708
|
-
readonly stateMutability: "view";
|
|
3709
|
-
readonly type: "function";
|
|
3710
|
-
}, {
|
|
3711
|
-
readonly inputs: readonly [{
|
|
3712
|
-
readonly internalType: "address";
|
|
3713
|
-
readonly name: "forwarder";
|
|
3714
|
-
readonly type: "address";
|
|
3715
|
-
}];
|
|
3716
|
-
readonly name: "isTrustedForwarder";
|
|
3717
|
-
readonly outputs: readonly [{
|
|
3718
|
-
readonly internalType: "bool";
|
|
3719
|
-
readonly name: "";
|
|
3720
|
-
readonly type: "bool";
|
|
3721
|
-
}];
|
|
3722
|
-
readonly stateMutability: "view";
|
|
3723
|
-
readonly type: "function";
|
|
3724
|
-
}, {
|
|
3725
|
-
readonly inputs: readonly [{
|
|
3726
|
-
readonly internalType: "bytes[]";
|
|
3727
|
-
readonly name: "data";
|
|
3728
|
-
readonly type: "bytes[]";
|
|
3729
|
-
}];
|
|
3730
|
-
readonly name: "multicall";
|
|
3731
|
-
readonly outputs: readonly [{
|
|
3732
|
-
readonly internalType: "bytes[]";
|
|
3733
|
-
readonly name: "results";
|
|
3734
|
-
readonly type: "bytes[]";
|
|
3735
|
-
}];
|
|
3736
|
-
readonly stateMutability: "nonpayable";
|
|
3737
|
-
readonly type: "function";
|
|
3738
|
-
}, {
|
|
3739
|
-
readonly inputs: readonly [];
|
|
3740
|
-
readonly name: "pause";
|
|
3741
|
-
readonly outputs: readonly [];
|
|
3742
|
-
readonly stateMutability: "nonpayable";
|
|
3743
|
-
readonly type: "function";
|
|
3744
|
-
}, {
|
|
3745
|
-
readonly inputs: readonly [];
|
|
3746
|
-
readonly name: "paused";
|
|
3747
|
-
readonly outputs: readonly [{
|
|
3748
|
-
readonly internalType: "bool";
|
|
3749
|
-
readonly name: "";
|
|
3750
|
-
readonly type: "bool";
|
|
3751
|
-
}];
|
|
3752
|
-
readonly stateMutability: "view";
|
|
3753
|
-
readonly type: "function";
|
|
3754
|
-
}, {
|
|
3755
|
-
readonly inputs: readonly [{
|
|
3756
|
-
readonly internalType: "uint256";
|
|
3757
|
-
readonly name: "permissionId";
|
|
3758
|
-
readonly type: "uint256";
|
|
3759
|
-
}];
|
|
3760
|
-
readonly name: "permissionFileIds";
|
|
3761
|
-
readonly outputs: readonly [{
|
|
3762
|
-
readonly internalType: "uint256[]";
|
|
3763
|
-
readonly name: "";
|
|
3764
|
-
readonly type: "uint256[]";
|
|
3765
|
-
}];
|
|
3766
|
-
readonly stateMutability: "view";
|
|
3767
|
-
readonly type: "function";
|
|
3768
|
-
}, {
|
|
3769
|
-
readonly inputs: readonly [{
|
|
3770
|
-
readonly internalType: "uint256";
|
|
3771
|
-
readonly name: "permissionId";
|
|
3772
|
-
readonly type: "uint256";
|
|
3773
|
-
}];
|
|
3774
|
-
readonly name: "permissions";
|
|
3775
|
-
readonly outputs: readonly [{
|
|
3776
|
-
readonly components: readonly [{
|
|
3777
|
-
readonly internalType: "uint256";
|
|
3778
|
-
readonly name: "id";
|
|
3779
|
-
readonly type: "uint256";
|
|
3780
|
-
}, {
|
|
3781
|
-
readonly internalType: "address";
|
|
3782
|
-
readonly name: "grantor";
|
|
3783
|
-
readonly type: "address";
|
|
3784
|
-
}, {
|
|
3785
|
-
readonly internalType: "uint256";
|
|
3786
|
-
readonly name: "nonce";
|
|
3787
|
-
readonly type: "uint256";
|
|
3788
|
-
}, {
|
|
3789
|
-
readonly internalType: "uint256";
|
|
3790
|
-
readonly name: "granteeId";
|
|
3791
|
-
readonly type: "uint256";
|
|
3792
|
-
}, {
|
|
3793
|
-
readonly internalType: "string";
|
|
3794
|
-
readonly name: "grant";
|
|
3795
|
-
readonly type: "string";
|
|
3796
|
-
}, {
|
|
3797
|
-
readonly internalType: "bytes";
|
|
3798
|
-
readonly name: "signature";
|
|
3799
|
-
readonly type: "bytes";
|
|
3800
|
-
}, {
|
|
3801
|
-
readonly internalType: "uint256";
|
|
3802
|
-
readonly name: "startBlock";
|
|
3803
|
-
readonly type: "uint256";
|
|
3804
|
-
}, {
|
|
3805
|
-
readonly internalType: "uint256";
|
|
3806
|
-
readonly name: "endBlock";
|
|
3807
|
-
readonly type: "uint256";
|
|
3808
|
-
}, {
|
|
3809
|
-
readonly internalType: "uint256[]";
|
|
3810
|
-
readonly name: "fileIds";
|
|
3811
|
-
readonly type: "uint256[]";
|
|
3812
|
-
}];
|
|
3813
|
-
readonly internalType: "struct IDataPortabilityPermissions.PermissionInfo";
|
|
3814
|
-
readonly name: "";
|
|
3815
|
-
readonly type: "tuple";
|
|
3816
|
-
}];
|
|
3817
|
-
readonly stateMutability: "view";
|
|
3818
|
-
readonly type: "function";
|
|
3819
|
-
}, {
|
|
3820
|
-
readonly inputs: readonly [];
|
|
3821
|
-
readonly name: "permissionsCount";
|
|
3822
|
-
readonly outputs: readonly [{
|
|
3823
|
-
readonly internalType: "uint256";
|
|
3824
|
-
readonly name: "";
|
|
3825
|
-
readonly type: "uint256";
|
|
3826
|
-
}];
|
|
3827
|
-
readonly stateMutability: "view";
|
|
3828
|
-
readonly type: "function";
|
|
3829
|
-
}, {
|
|
3830
|
-
readonly inputs: readonly [];
|
|
3831
|
-
readonly name: "proxiableUUID";
|
|
3832
|
-
readonly outputs: readonly [{
|
|
3833
|
-
readonly internalType: "bytes32";
|
|
3834
|
-
readonly name: "";
|
|
3835
|
-
readonly type: "bytes32";
|
|
3836
|
-
}];
|
|
3837
|
-
readonly stateMutability: "view";
|
|
3838
|
-
readonly type: "function";
|
|
3839
|
-
}, {
|
|
3840
|
-
readonly inputs: readonly [{
|
|
3841
|
-
readonly internalType: "bytes32";
|
|
3842
|
-
readonly name: "role";
|
|
3843
|
-
readonly type: "bytes32";
|
|
3844
|
-
}, {
|
|
3845
|
-
readonly internalType: "address";
|
|
3846
|
-
readonly name: "callerConfirmation";
|
|
3847
|
-
readonly type: "address";
|
|
3848
|
-
}];
|
|
3849
|
-
readonly name: "renounceRole";
|
|
3850
|
-
readonly outputs: readonly [];
|
|
3851
|
-
readonly stateMutability: "nonpayable";
|
|
3852
|
-
readonly type: "function";
|
|
3853
|
-
}, {
|
|
3854
|
-
readonly inputs: readonly [{
|
|
3855
|
-
readonly internalType: "uint256";
|
|
3856
|
-
readonly name: "permissionId";
|
|
3857
|
-
readonly type: "uint256";
|
|
3858
|
-
}];
|
|
3859
|
-
readonly name: "revokePermission";
|
|
3860
|
-
readonly outputs: readonly [];
|
|
3861
|
-
readonly stateMutability: "nonpayable";
|
|
3862
|
-
readonly type: "function";
|
|
3863
|
-
}, {
|
|
3864
|
-
readonly inputs: readonly [{
|
|
3865
|
-
readonly components: readonly [{
|
|
3866
|
-
readonly internalType: "uint256";
|
|
3867
|
-
readonly name: "nonce";
|
|
3868
|
-
readonly type: "uint256";
|
|
3869
|
-
}, {
|
|
3870
|
-
readonly internalType: "uint256";
|
|
3871
|
-
readonly name: "permissionId";
|
|
3872
|
-
readonly type: "uint256";
|
|
3873
|
-
}];
|
|
3874
|
-
readonly internalType: "struct IDataPortabilityPermissions.RevokePermissionInput";
|
|
3875
|
-
readonly name: "revokePermissionInput";
|
|
3876
|
-
readonly type: "tuple";
|
|
3877
|
-
}, {
|
|
3878
|
-
readonly internalType: "bytes";
|
|
3879
|
-
readonly name: "signature";
|
|
3880
|
-
readonly type: "bytes";
|
|
3881
|
-
}];
|
|
3882
|
-
readonly name: "revokePermissionWithSignature";
|
|
3883
|
-
readonly outputs: readonly [];
|
|
3884
|
-
readonly stateMutability: "nonpayable";
|
|
3885
|
-
readonly type: "function";
|
|
3886
|
-
}, {
|
|
3887
|
-
readonly inputs: readonly [{
|
|
3888
|
-
readonly internalType: "bytes32";
|
|
3889
|
-
readonly name: "role";
|
|
3890
|
-
readonly type: "bytes32";
|
|
3891
|
-
}, {
|
|
3892
|
-
readonly internalType: "address";
|
|
3893
|
-
readonly name: "account";
|
|
3894
|
-
readonly type: "address";
|
|
3895
|
-
}];
|
|
3896
|
-
readonly name: "revokeRole";
|
|
3897
|
-
readonly outputs: readonly [];
|
|
3898
|
-
readonly stateMutability: "nonpayable";
|
|
3899
|
-
readonly type: "function";
|
|
3900
|
-
}, {
|
|
3901
|
-
readonly inputs: readonly [{
|
|
3902
|
-
readonly internalType: "bytes32";
|
|
3903
|
-
readonly name: "role";
|
|
3904
|
-
readonly type: "bytes32";
|
|
3905
|
-
}, {
|
|
3906
|
-
readonly internalType: "bytes32";
|
|
3907
|
-
readonly name: "adminRole";
|
|
3908
|
-
readonly type: "bytes32";
|
|
3909
|
-
}];
|
|
3910
|
-
readonly name: "setRoleAdmin";
|
|
3911
|
-
readonly outputs: readonly [];
|
|
3912
|
-
readonly stateMutability: "nonpayable";
|
|
3913
|
-
readonly type: "function";
|
|
3914
|
-
}, {
|
|
3915
|
-
readonly inputs: readonly [{
|
|
3916
|
-
readonly internalType: "bytes4";
|
|
3917
|
-
readonly name: "interfaceId";
|
|
3918
|
-
readonly type: "bytes4";
|
|
3919
|
-
}];
|
|
3920
|
-
readonly name: "supportsInterface";
|
|
3921
|
-
readonly outputs: readonly [{
|
|
3922
|
-
readonly internalType: "bool";
|
|
3923
|
-
readonly name: "";
|
|
3924
|
-
readonly type: "bool";
|
|
3925
|
-
}];
|
|
3926
|
-
readonly stateMutability: "view";
|
|
3927
|
-
readonly type: "function";
|
|
3928
|
-
}, {
|
|
3929
|
-
readonly inputs: readonly [];
|
|
3930
|
-
readonly name: "trustedForwarder";
|
|
3931
|
-
readonly outputs: readonly [{
|
|
3932
|
-
readonly internalType: "address";
|
|
3933
|
-
readonly name: "";
|
|
3934
|
-
readonly type: "address";
|
|
3935
|
-
}];
|
|
3936
|
-
readonly stateMutability: "view";
|
|
3937
|
-
readonly type: "function";
|
|
3938
|
-
}, {
|
|
3939
|
-
readonly inputs: readonly [];
|
|
3940
|
-
readonly name: "unpause";
|
|
3941
|
-
readonly outputs: readonly [];
|
|
3942
|
-
readonly stateMutability: "nonpayable";
|
|
3943
|
-
readonly type: "function";
|
|
3944
|
-
}, {
|
|
3945
|
-
readonly inputs: readonly [{
|
|
3946
|
-
readonly internalType: "contract IDataRegistry";
|
|
3947
|
-
readonly name: "newDataRegistry";
|
|
3948
|
-
readonly type: "address";
|
|
3949
|
-
}];
|
|
3950
|
-
readonly name: "updateDataRegistry";
|
|
3951
|
-
readonly outputs: readonly [];
|
|
3952
|
-
readonly stateMutability: "nonpayable";
|
|
3953
|
-
readonly type: "function";
|
|
3954
|
-
}, {
|
|
3955
|
-
readonly inputs: readonly [{
|
|
3956
|
-
readonly internalType: "contract IDataPortabilityGrantees";
|
|
3957
|
-
readonly name: "newGranteesContract";
|
|
3958
|
-
readonly type: "address";
|
|
3959
|
-
}];
|
|
3960
|
-
readonly name: "updateGranteesContract";
|
|
3961
|
-
readonly outputs: readonly [];
|
|
3962
|
-
readonly stateMutability: "nonpayable";
|
|
3963
|
-
readonly type: "function";
|
|
3964
|
-
}, {
|
|
3965
|
-
readonly inputs: readonly [{
|
|
3966
|
-
readonly internalType: "contract IDataPortabilityServers";
|
|
3967
|
-
readonly name: "newServersContract";
|
|
3968
|
-
readonly type: "address";
|
|
3969
|
-
}];
|
|
3970
|
-
readonly name: "updateServersContract";
|
|
3971
|
-
readonly outputs: readonly [];
|
|
3972
|
-
readonly stateMutability: "nonpayable";
|
|
3973
|
-
readonly type: "function";
|
|
3974
|
-
}, {
|
|
3975
|
-
readonly inputs: readonly [{
|
|
3976
|
-
readonly internalType: "address";
|
|
3977
|
-
readonly name: "trustedForwarderAddress";
|
|
3978
|
-
readonly type: "address";
|
|
3979
|
-
}];
|
|
3980
|
-
readonly name: "updateTrustedForwarder";
|
|
3981
|
-
readonly outputs: readonly [];
|
|
3982
|
-
readonly stateMutability: "nonpayable";
|
|
3983
|
-
readonly type: "function";
|
|
3984
|
-
}, {
|
|
3985
|
-
readonly inputs: readonly [{
|
|
3986
|
-
readonly internalType: "address";
|
|
3987
|
-
readonly name: "newImplementation";
|
|
3988
|
-
readonly type: "address";
|
|
3989
|
-
}, {
|
|
3990
|
-
readonly internalType: "bytes";
|
|
3991
|
-
readonly name: "data";
|
|
3992
|
-
readonly type: "bytes";
|
|
3993
|
-
}];
|
|
3994
|
-
readonly name: "upgradeToAndCall";
|
|
3995
|
-
readonly outputs: readonly [];
|
|
3996
|
-
readonly stateMutability: "payable";
|
|
3997
|
-
readonly type: "function";
|
|
3998
|
-
}, {
|
|
3999
|
-
readonly inputs: readonly [{
|
|
4000
|
-
readonly internalType: "address";
|
|
4001
|
-
readonly name: "userAddress";
|
|
4002
|
-
readonly type: "address";
|
|
4003
|
-
}];
|
|
4004
|
-
readonly name: "userNonce";
|
|
4005
|
-
readonly outputs: readonly [{
|
|
4006
|
-
readonly internalType: "uint256";
|
|
4007
|
-
readonly name: "";
|
|
4008
|
-
readonly type: "uint256";
|
|
4009
|
-
}];
|
|
4010
|
-
readonly stateMutability: "view";
|
|
4011
|
-
readonly type: "function";
|
|
4012
|
-
}, {
|
|
4013
|
-
readonly inputs: readonly [{
|
|
4014
|
-
readonly internalType: "address";
|
|
4015
|
-
readonly name: "userAddress";
|
|
4016
|
-
readonly type: "address";
|
|
4017
|
-
}, {
|
|
4018
|
-
readonly internalType: "uint256";
|
|
4019
|
-
readonly name: "permissionIndex";
|
|
4020
|
-
readonly type: "uint256";
|
|
4021
|
-
}];
|
|
4022
|
-
readonly name: "userPermissionIdsAt";
|
|
4023
|
-
readonly outputs: readonly [{
|
|
4024
|
-
readonly internalType: "uint256";
|
|
4025
|
-
readonly name: "";
|
|
4026
|
-
readonly type: "uint256";
|
|
4027
|
-
}];
|
|
4028
|
-
readonly stateMutability: "view";
|
|
4029
|
-
readonly type: "function";
|
|
4030
|
-
}, {
|
|
4031
|
-
readonly inputs: readonly [{
|
|
4032
|
-
readonly internalType: "address";
|
|
4033
|
-
readonly name: "userAddress";
|
|
4034
|
-
readonly type: "address";
|
|
4035
|
-
}];
|
|
4036
|
-
readonly name: "userPermissionIdsLength";
|
|
4037
|
-
readonly outputs: readonly [{
|
|
4038
|
-
readonly internalType: "uint256";
|
|
4039
|
-
readonly name: "";
|
|
4040
|
-
readonly type: "uint256";
|
|
4041
|
-
}];
|
|
4042
|
-
readonly stateMutability: "view";
|
|
4043
|
-
readonly type: "function";
|
|
4044
|
-
}, {
|
|
4045
|
-
readonly inputs: readonly [{
|
|
4046
|
-
readonly internalType: "address";
|
|
4047
|
-
readonly name: "userAddress";
|
|
4048
|
-
readonly type: "address";
|
|
4049
|
-
}];
|
|
4050
|
-
readonly name: "userPermissionIdsValues";
|
|
4051
|
-
readonly outputs: readonly [{
|
|
4052
|
-
readonly internalType: "uint256[]";
|
|
4053
|
-
readonly name: "";
|
|
4054
|
-
readonly type: "uint256[]";
|
|
4055
|
-
}];
|
|
4056
|
-
readonly stateMutability: "view";
|
|
4057
|
-
readonly type: "function";
|
|
4058
|
-
}, {
|
|
4059
|
-
readonly inputs: readonly [{
|
|
4060
|
-
readonly internalType: "address";
|
|
4061
|
-
readonly name: "userAddress";
|
|
4062
|
-
readonly type: "address";
|
|
4063
|
-
}];
|
|
4064
|
-
readonly name: "users";
|
|
4065
|
-
readonly outputs: readonly [{
|
|
4066
|
-
readonly internalType: "uint256";
|
|
4067
|
-
readonly name: "nonce";
|
|
4068
|
-
readonly type: "uint256";
|
|
4069
|
-
}, {
|
|
4070
|
-
readonly internalType: "uint256[]";
|
|
4071
|
-
readonly name: "permissionIds";
|
|
4072
|
-
readonly type: "uint256[]";
|
|
4073
|
-
}];
|
|
4074
|
-
readonly stateMutability: "view";
|
|
4075
|
-
readonly type: "function";
|
|
4076
|
-
}, {
|
|
4077
|
-
readonly inputs: readonly [];
|
|
4078
|
-
readonly name: "version";
|
|
4079
|
-
readonly outputs: readonly [{
|
|
4080
|
-
readonly internalType: "uint256";
|
|
4081
|
-
readonly name: "";
|
|
4082
|
-
readonly type: "uint256";
|
|
4083
|
-
}];
|
|
4084
|
-
readonly stateMutability: "pure";
|
|
4085
|
-
readonly type: "function";
|
|
4086
|
-
}];
|
|
4087
|
-
readonly DataPortabilityServers: readonly [{
|
|
4088
|
-
readonly inputs: readonly [];
|
|
4089
|
-
readonly stateMutability: "nonpayable";
|
|
4090
|
-
readonly type: "constructor";
|
|
4091
|
-
}, {
|
|
4092
|
-
readonly inputs: readonly [];
|
|
4093
|
-
readonly name: "AccessControlBadConfirmation";
|
|
4094
|
-
readonly type: "error";
|
|
4095
|
-
}, {
|
|
4096
|
-
readonly inputs: readonly [{
|
|
4097
|
-
readonly internalType: "address";
|
|
4098
|
-
readonly name: "account";
|
|
4099
|
-
readonly type: "address";
|
|
4100
|
-
}, {
|
|
4101
|
-
readonly internalType: "bytes32";
|
|
4102
|
-
readonly name: "neededRole";
|
|
4103
|
-
readonly type: "bytes32";
|
|
4104
|
-
}];
|
|
4105
|
-
readonly name: "AccessControlUnauthorizedAccount";
|
|
4106
|
-
readonly type: "error";
|
|
4107
|
-
}, {
|
|
4108
|
-
readonly inputs: readonly [{
|
|
4109
|
-
readonly internalType: "address";
|
|
4110
|
-
readonly name: "target";
|
|
4111
|
-
readonly type: "address";
|
|
4112
|
-
}];
|
|
4113
|
-
readonly name: "AddressEmptyCode";
|
|
4114
|
-
readonly type: "error";
|
|
4115
|
-
}, {
|
|
4116
|
-
readonly inputs: readonly [];
|
|
4117
|
-
readonly name: "ECDSAInvalidSignature";
|
|
4118
|
-
readonly type: "error";
|
|
4119
|
-
}, {
|
|
4120
|
-
readonly inputs: readonly [{
|
|
4121
|
-
readonly internalType: "uint256";
|
|
4122
|
-
readonly name: "length";
|
|
4123
|
-
readonly type: "uint256";
|
|
4124
|
-
}];
|
|
4125
|
-
readonly name: "ECDSAInvalidSignatureLength";
|
|
4126
|
-
readonly type: "error";
|
|
4127
|
-
}, {
|
|
4128
|
-
readonly inputs: readonly [{
|
|
4129
|
-
readonly internalType: "bytes32";
|
|
4130
|
-
readonly name: "s";
|
|
4131
|
-
readonly type: "bytes32";
|
|
4132
|
-
}];
|
|
4133
|
-
readonly name: "ECDSAInvalidSignatureS";
|
|
4134
|
-
readonly type: "error";
|
|
4135
|
-
}, {
|
|
4136
|
-
readonly inputs: readonly [{
|
|
4137
|
-
readonly internalType: "address";
|
|
4138
|
-
readonly name: "implementation";
|
|
4139
|
-
readonly type: "address";
|
|
4140
|
-
}];
|
|
4141
|
-
readonly name: "ERC1967InvalidImplementation";
|
|
4142
|
-
readonly type: "error";
|
|
4143
|
-
}, {
|
|
4144
|
-
readonly inputs: readonly [];
|
|
4145
|
-
readonly name: "ERC1967NonPayable";
|
|
4146
|
-
readonly type: "error";
|
|
4147
|
-
}, {
|
|
4148
|
-
readonly inputs: readonly [];
|
|
4149
|
-
readonly name: "EmptyPublicKey";
|
|
4150
|
-
readonly type: "error";
|
|
4151
|
-
}, {
|
|
4152
|
-
readonly inputs: readonly [];
|
|
4153
|
-
readonly name: "EmptyUrl";
|
|
4154
|
-
readonly type: "error";
|
|
4155
|
-
}, {
|
|
4156
|
-
readonly inputs: readonly [];
|
|
4157
|
-
readonly name: "EnforcedPause";
|
|
4158
|
-
readonly type: "error";
|
|
4159
|
-
}, {
|
|
4160
|
-
readonly inputs: readonly [];
|
|
4161
|
-
readonly name: "ExpectedPause";
|
|
4162
|
-
readonly type: "error";
|
|
4163
|
-
}, {
|
|
4164
|
-
readonly inputs: readonly [];
|
|
4165
|
-
readonly name: "FailedInnerCall";
|
|
4166
|
-
readonly type: "error";
|
|
4167
|
-
}, {
|
|
4168
|
-
readonly inputs: readonly [];
|
|
4169
|
-
readonly name: "InvalidInitialization";
|
|
4170
|
-
readonly type: "error";
|
|
4171
|
-
}, {
|
|
4172
|
-
readonly inputs: readonly [{
|
|
4173
|
-
readonly internalType: "uint256";
|
|
4174
|
-
readonly name: "expectedNonce";
|
|
4175
|
-
readonly type: "uint256";
|
|
4176
|
-
}, {
|
|
4177
|
-
readonly internalType: "uint256";
|
|
4178
|
-
readonly name: "providedNonce";
|
|
4179
|
-
readonly type: "uint256";
|
|
4180
|
-
}];
|
|
4181
|
-
readonly name: "InvalidNonce";
|
|
4182
|
-
readonly type: "error";
|
|
4183
|
-
}, {
|
|
4184
|
-
readonly inputs: readonly [];
|
|
4185
|
-
readonly name: "NotInitializing";
|
|
4186
|
-
readonly type: "error";
|
|
4187
|
-
}, {
|
|
4188
|
-
readonly inputs: readonly [{
|
|
4189
|
-
readonly internalType: "address";
|
|
4190
|
-
readonly name: "serverOwner";
|
|
4191
|
-
readonly type: "address";
|
|
4192
|
-
}, {
|
|
4193
|
-
readonly internalType: "address";
|
|
4194
|
-
readonly name: "requestor";
|
|
4195
|
-
readonly type: "address";
|
|
4196
|
-
}];
|
|
4197
|
-
readonly name: "NotServerOwner";
|
|
4198
|
-
readonly type: "error";
|
|
4199
|
-
}, {
|
|
4200
|
-
readonly inputs: readonly [];
|
|
4201
|
-
readonly name: "ServerAlreadyRegistered";
|
|
4202
|
-
readonly type: "error";
|
|
4203
|
-
}, {
|
|
4204
|
-
readonly inputs: readonly [];
|
|
4205
|
-
readonly name: "ServerAlreadyTrusted";
|
|
4206
|
-
readonly type: "error";
|
|
4207
|
-
}, {
|
|
4208
|
-
readonly inputs: readonly [];
|
|
4209
|
-
readonly name: "ServerAlreadyUntrusted";
|
|
4210
|
-
readonly type: "error";
|
|
4211
|
-
}, {
|
|
4212
|
-
readonly inputs: readonly [];
|
|
4213
|
-
readonly name: "ServerNotFound";
|
|
4214
|
-
readonly type: "error";
|
|
4215
|
-
}, {
|
|
4216
|
-
readonly inputs: readonly [];
|
|
4217
|
-
readonly name: "ServerNotTrusted";
|
|
4218
|
-
readonly type: "error";
|
|
4219
|
-
}, {
|
|
4220
|
-
readonly inputs: readonly [{
|
|
4221
|
-
readonly internalType: "string";
|
|
4222
|
-
readonly name: "existingUrl";
|
|
4223
|
-
readonly type: "string";
|
|
4224
|
-
}, {
|
|
4225
|
-
readonly internalType: "string";
|
|
4226
|
-
readonly name: "providedUrl";
|
|
4227
|
-
readonly type: "string";
|
|
4228
|
-
}];
|
|
4229
|
-
readonly name: "ServerUrlMismatch";
|
|
4230
|
-
readonly type: "error";
|
|
4231
|
-
}, {
|
|
4232
|
-
readonly inputs: readonly [];
|
|
4233
|
-
readonly name: "UUPSUnauthorizedCallContext";
|
|
4234
|
-
readonly type: "error";
|
|
4235
|
-
}, {
|
|
4236
|
-
readonly inputs: readonly [{
|
|
4237
|
-
readonly internalType: "bytes32";
|
|
4238
|
-
readonly name: "slot";
|
|
4239
|
-
readonly type: "bytes32";
|
|
4240
|
-
}];
|
|
4241
|
-
readonly name: "UUPSUnsupportedProxiableUUID";
|
|
4242
|
-
readonly type: "error";
|
|
4243
|
-
}, {
|
|
4244
|
-
readonly inputs: readonly [];
|
|
4245
|
-
readonly name: "ZeroAddress";
|
|
4246
|
-
readonly type: "error";
|
|
4247
|
-
}, {
|
|
4248
|
-
readonly anonymous: false;
|
|
4249
|
-
readonly inputs: readonly [];
|
|
4250
|
-
readonly name: "EIP712DomainChanged";
|
|
4251
|
-
readonly type: "event";
|
|
4252
|
-
}, {
|
|
4253
|
-
readonly anonymous: false;
|
|
4254
|
-
readonly inputs: readonly [{
|
|
4255
|
-
readonly indexed: false;
|
|
4256
|
-
readonly internalType: "uint64";
|
|
4257
|
-
readonly name: "version";
|
|
4258
|
-
readonly type: "uint64";
|
|
4259
|
-
}];
|
|
4260
|
-
readonly name: "Initialized";
|
|
4261
|
-
readonly type: "event";
|
|
4262
|
-
}, {
|
|
4263
|
-
readonly anonymous: false;
|
|
4264
|
-
readonly inputs: readonly [{
|
|
4265
|
-
readonly indexed: false;
|
|
4266
|
-
readonly internalType: "address";
|
|
4267
|
-
readonly name: "account";
|
|
4268
|
-
readonly type: "address";
|
|
4269
|
-
}];
|
|
4270
|
-
readonly name: "Paused";
|
|
4271
|
-
readonly type: "event";
|
|
4272
|
-
}, {
|
|
4273
|
-
readonly anonymous: false;
|
|
4274
|
-
readonly inputs: readonly [{
|
|
4275
|
-
readonly indexed: true;
|
|
4276
|
-
readonly internalType: "bytes32";
|
|
4277
|
-
readonly name: "role";
|
|
4278
|
-
readonly type: "bytes32";
|
|
4279
|
-
}, {
|
|
4280
|
-
readonly indexed: true;
|
|
4281
|
-
readonly internalType: "bytes32";
|
|
4282
|
-
readonly name: "previousAdminRole";
|
|
4283
|
-
readonly type: "bytes32";
|
|
4284
|
-
}, {
|
|
4285
|
-
readonly indexed: true;
|
|
4286
|
-
readonly internalType: "bytes32";
|
|
4287
|
-
readonly name: "newAdminRole";
|
|
4288
|
-
readonly type: "bytes32";
|
|
4289
|
-
}];
|
|
4290
|
-
readonly name: "RoleAdminChanged";
|
|
4291
|
-
readonly type: "event";
|
|
4292
|
-
}, {
|
|
4293
|
-
readonly anonymous: false;
|
|
4294
|
-
readonly inputs: readonly [{
|
|
4295
|
-
readonly indexed: true;
|
|
4296
|
-
readonly internalType: "bytes32";
|
|
4297
|
-
readonly name: "role";
|
|
4298
|
-
readonly type: "bytes32";
|
|
4299
|
-
}, {
|
|
4300
|
-
readonly indexed: true;
|
|
4301
|
-
readonly internalType: "address";
|
|
4302
|
-
readonly name: "account";
|
|
4303
|
-
readonly type: "address";
|
|
4304
|
-
}, {
|
|
4305
|
-
readonly indexed: true;
|
|
4306
|
-
readonly internalType: "address";
|
|
4307
|
-
readonly name: "sender";
|
|
4308
|
-
readonly type: "address";
|
|
4309
|
-
}];
|
|
4310
|
-
readonly name: "RoleGranted";
|
|
4311
|
-
readonly type: "event";
|
|
4312
|
-
}, {
|
|
4313
|
-
readonly anonymous: false;
|
|
4314
|
-
readonly inputs: readonly [{
|
|
4315
|
-
readonly indexed: true;
|
|
4316
|
-
readonly internalType: "bytes32";
|
|
4317
|
-
readonly name: "role";
|
|
4318
|
-
readonly type: "bytes32";
|
|
4319
|
-
}, {
|
|
4320
|
-
readonly indexed: true;
|
|
4321
|
-
readonly internalType: "address";
|
|
4322
|
-
readonly name: "account";
|
|
4323
|
-
readonly type: "address";
|
|
4324
|
-
}, {
|
|
4325
|
-
readonly indexed: true;
|
|
4326
|
-
readonly internalType: "address";
|
|
4327
|
-
readonly name: "sender";
|
|
4328
|
-
readonly type: "address";
|
|
4329
|
-
}];
|
|
4330
|
-
readonly name: "RoleRevoked";
|
|
4331
|
-
readonly type: "event";
|
|
4332
|
-
}, {
|
|
4333
|
-
readonly anonymous: false;
|
|
4334
|
-
readonly inputs: readonly [{
|
|
4335
|
-
readonly indexed: true;
|
|
4336
|
-
readonly internalType: "uint256";
|
|
4337
|
-
readonly name: "serverId";
|
|
4338
|
-
readonly type: "uint256";
|
|
4339
|
-
}, {
|
|
4340
|
-
readonly indexed: true;
|
|
4341
|
-
readonly internalType: "address";
|
|
4342
|
-
readonly name: "owner";
|
|
4343
|
-
readonly type: "address";
|
|
4344
|
-
}, {
|
|
4345
|
-
readonly indexed: true;
|
|
4346
|
-
readonly internalType: "address";
|
|
4347
|
-
readonly name: "serverAddress";
|
|
4348
|
-
readonly type: "address";
|
|
4349
|
-
}, {
|
|
4350
|
-
readonly indexed: false;
|
|
4351
|
-
readonly internalType: "bytes";
|
|
4352
|
-
readonly name: "publicKey";
|
|
4353
|
-
readonly type: "bytes";
|
|
4354
|
-
}, {
|
|
4355
|
-
readonly indexed: false;
|
|
4356
|
-
readonly internalType: "string";
|
|
4357
|
-
readonly name: "url";
|
|
4358
|
-
readonly type: "string";
|
|
4359
|
-
}];
|
|
4360
|
-
readonly name: "ServerRegistered";
|
|
4361
|
-
readonly type: "event";
|
|
4362
|
-
}, {
|
|
4363
|
-
readonly anonymous: false;
|
|
4364
|
-
readonly inputs: readonly [{
|
|
4365
|
-
readonly indexed: true;
|
|
4366
|
-
readonly internalType: "address";
|
|
4367
|
-
readonly name: "user";
|
|
4368
|
-
readonly type: "address";
|
|
4369
|
-
}, {
|
|
4370
|
-
readonly indexed: true;
|
|
4371
|
-
readonly internalType: "uint256";
|
|
4372
|
-
readonly name: "serverId";
|
|
4373
|
-
readonly type: "uint256";
|
|
4374
|
-
}];
|
|
4375
|
-
readonly name: "ServerTrusted";
|
|
4376
|
-
readonly type: "event";
|
|
4377
|
-
}, {
|
|
4378
|
-
readonly anonymous: false;
|
|
4379
|
-
readonly inputs: readonly [{
|
|
4380
|
-
readonly indexed: true;
|
|
4381
|
-
readonly internalType: "address";
|
|
4382
|
-
readonly name: "user";
|
|
4383
|
-
readonly type: "address";
|
|
4384
|
-
}, {
|
|
4385
|
-
readonly indexed: true;
|
|
4386
|
-
readonly internalType: "uint256";
|
|
4387
|
-
readonly name: "serverId";
|
|
4388
|
-
readonly type: "uint256";
|
|
4389
|
-
}];
|
|
4390
|
-
readonly name: "ServerUntrusted";
|
|
4391
|
-
readonly type: "event";
|
|
4392
|
-
}, {
|
|
4393
|
-
readonly anonymous: false;
|
|
4394
|
-
readonly inputs: readonly [{
|
|
4395
|
-
readonly indexed: true;
|
|
4396
|
-
readonly internalType: "uint256";
|
|
4397
|
-
readonly name: "serverId";
|
|
4398
|
-
readonly type: "uint256";
|
|
4399
|
-
}, {
|
|
4400
|
-
readonly indexed: false;
|
|
4401
|
-
readonly internalType: "string";
|
|
4402
|
-
readonly name: "url";
|
|
4403
|
-
readonly type: "string";
|
|
4404
|
-
}];
|
|
4405
|
-
readonly name: "ServerUpdated";
|
|
4406
|
-
readonly type: "event";
|
|
4407
|
-
}, {
|
|
4408
|
-
readonly anonymous: false;
|
|
4409
|
-
readonly inputs: readonly [{
|
|
4410
|
-
readonly indexed: false;
|
|
4411
|
-
readonly internalType: "address";
|
|
4412
|
-
readonly name: "account";
|
|
4413
|
-
readonly type: "address";
|
|
4414
|
-
}];
|
|
4415
|
-
readonly name: "Unpaused";
|
|
4416
|
-
readonly type: "event";
|
|
4417
|
-
}, {
|
|
4418
|
-
readonly anonymous: false;
|
|
4419
|
-
readonly inputs: readonly [{
|
|
4420
|
-
readonly indexed: true;
|
|
4421
|
-
readonly internalType: "address";
|
|
4422
|
-
readonly name: "implementation";
|
|
4423
|
-
readonly type: "address";
|
|
4424
|
-
}];
|
|
4425
|
-
readonly name: "Upgraded";
|
|
4426
|
-
readonly type: "event";
|
|
4427
|
-
}, {
|
|
4428
|
-
readonly inputs: readonly [];
|
|
4429
|
-
readonly name: "DEFAULT_ADMIN_ROLE";
|
|
4430
|
-
readonly outputs: readonly [{
|
|
4431
|
-
readonly internalType: "bytes32";
|
|
4432
|
-
readonly name: "";
|
|
4433
|
-
readonly type: "bytes32";
|
|
4434
|
-
}];
|
|
4435
|
-
readonly stateMutability: "view";
|
|
4436
|
-
readonly type: "function";
|
|
4437
|
-
}, {
|
|
4438
|
-
readonly inputs: readonly [];
|
|
4439
|
-
readonly name: "MAINTAINER_ROLE";
|
|
3672
|
+
readonly name: "PERMISSION_MANAGER_ROLE";
|
|
4440
3673
|
readonly outputs: readonly [{
|
|
4441
3674
|
readonly internalType: "bytes32";
|
|
4442
3675
|
readonly name: "";
|
|
@@ -4456,28 +3689,28 @@ declare const contractAbis: {
|
|
|
4456
3689
|
readonly type: "function";
|
|
4457
3690
|
}, {
|
|
4458
3691
|
readonly inputs: readonly [{
|
|
3692
|
+
readonly internalType: "address";
|
|
3693
|
+
readonly name: "ownerAddress";
|
|
3694
|
+
readonly type: "address";
|
|
3695
|
+
}, {
|
|
4459
3696
|
readonly components: readonly [{
|
|
4460
|
-
readonly internalType: "address";
|
|
4461
|
-
readonly name: "owner";
|
|
4462
|
-
readonly type: "address";
|
|
4463
|
-
}, {
|
|
4464
3697
|
readonly internalType: "address";
|
|
4465
3698
|
readonly name: "serverAddress";
|
|
4466
3699
|
readonly type: "address";
|
|
4467
3700
|
}, {
|
|
4468
|
-
readonly internalType: "
|
|
3701
|
+
readonly internalType: "string";
|
|
4469
3702
|
readonly name: "publicKey";
|
|
4470
|
-
readonly type: "
|
|
3703
|
+
readonly type: "string";
|
|
4471
3704
|
}, {
|
|
4472
3705
|
readonly internalType: "string";
|
|
4473
3706
|
readonly name: "serverUrl";
|
|
4474
3707
|
readonly type: "string";
|
|
4475
3708
|
}];
|
|
4476
3709
|
readonly internalType: "struct IDataPortabilityServers.AddServerInput";
|
|
4477
|
-
readonly name: "
|
|
3710
|
+
readonly name: "addServerInput";
|
|
4478
3711
|
readonly type: "tuple";
|
|
4479
3712
|
}];
|
|
4480
|
-
readonly name: "
|
|
3713
|
+
readonly name: "addAndTrustServerOnBehalf";
|
|
4481
3714
|
readonly outputs: readonly [];
|
|
4482
3715
|
readonly stateMutability: "nonpayable";
|
|
4483
3716
|
readonly type: "function";
|
|
@@ -4487,25 +3720,21 @@ declare const contractAbis: {
|
|
|
4487
3720
|
readonly internalType: "uint256";
|
|
4488
3721
|
readonly name: "nonce";
|
|
4489
3722
|
readonly type: "uint256";
|
|
4490
|
-
}, {
|
|
4491
|
-
readonly internalType: "address";
|
|
4492
|
-
readonly name: "owner";
|
|
4493
|
-
readonly type: "address";
|
|
4494
3723
|
}, {
|
|
4495
3724
|
readonly internalType: "address";
|
|
4496
3725
|
readonly name: "serverAddress";
|
|
4497
3726
|
readonly type: "address";
|
|
4498
3727
|
}, {
|
|
4499
|
-
readonly internalType: "
|
|
3728
|
+
readonly internalType: "string";
|
|
4500
3729
|
readonly name: "publicKey";
|
|
4501
|
-
readonly type: "
|
|
3730
|
+
readonly type: "string";
|
|
4502
3731
|
}, {
|
|
4503
3732
|
readonly internalType: "string";
|
|
4504
3733
|
readonly name: "serverUrl";
|
|
4505
3734
|
readonly type: "string";
|
|
4506
3735
|
}];
|
|
4507
|
-
readonly internalType: "struct IDataPortabilityServers.
|
|
4508
|
-
readonly name: "
|
|
3736
|
+
readonly internalType: "struct IDataPortabilityServers.AddServerWithSignatureInput";
|
|
3737
|
+
readonly name: "addServerInput";
|
|
4509
3738
|
readonly type: "tuple";
|
|
4510
3739
|
}, {
|
|
4511
3740
|
readonly internalType: "bytes";
|
|
@@ -4519,27 +3748,31 @@ declare const contractAbis: {
|
|
|
4519
3748
|
}, {
|
|
4520
3749
|
readonly inputs: readonly [{
|
|
4521
3750
|
readonly components: readonly [{
|
|
4522
|
-
readonly internalType: "
|
|
4523
|
-
readonly name: "
|
|
4524
|
-
readonly type: "
|
|
3751
|
+
readonly internalType: "uint256";
|
|
3752
|
+
readonly name: "nonce";
|
|
3753
|
+
readonly type: "uint256";
|
|
4525
3754
|
}, {
|
|
4526
3755
|
readonly internalType: "address";
|
|
4527
3756
|
readonly name: "serverAddress";
|
|
4528
3757
|
readonly type: "address";
|
|
4529
3758
|
}, {
|
|
4530
|
-
readonly internalType: "
|
|
3759
|
+
readonly internalType: "string";
|
|
4531
3760
|
readonly name: "publicKey";
|
|
4532
|
-
readonly type: "
|
|
3761
|
+
readonly type: "string";
|
|
4533
3762
|
}, {
|
|
4534
3763
|
readonly internalType: "string";
|
|
4535
3764
|
readonly name: "serverUrl";
|
|
4536
3765
|
readonly type: "string";
|
|
4537
3766
|
}];
|
|
4538
|
-
readonly internalType: "struct IDataPortabilityServers.
|
|
3767
|
+
readonly internalType: "struct IDataPortabilityServers.AddServerWithSignatureInput";
|
|
4539
3768
|
readonly name: "addServerInput";
|
|
4540
3769
|
readonly type: "tuple";
|
|
3770
|
+
}, {
|
|
3771
|
+
readonly internalType: "bytes";
|
|
3772
|
+
readonly name: "signature";
|
|
3773
|
+
readonly type: "bytes";
|
|
4541
3774
|
}];
|
|
4542
|
-
readonly name: "
|
|
3775
|
+
readonly name: "addServerWithSignature";
|
|
4543
3776
|
readonly outputs: readonly [];
|
|
4544
3777
|
readonly stateMutability: "nonpayable";
|
|
4545
3778
|
readonly type: "function";
|
|
@@ -4637,38 +3870,6 @@ declare const contractAbis: {
|
|
|
4637
3870
|
readonly outputs: readonly [];
|
|
4638
3871
|
readonly stateMutability: "nonpayable";
|
|
4639
3872
|
readonly type: "function";
|
|
4640
|
-
}, {
|
|
4641
|
-
readonly inputs: readonly [{
|
|
4642
|
-
readonly internalType: "uint256";
|
|
4643
|
-
readonly name: "serverId";
|
|
4644
|
-
readonly type: "uint256";
|
|
4645
|
-
}];
|
|
4646
|
-
readonly name: "isActiveServer";
|
|
4647
|
-
readonly outputs: readonly [{
|
|
4648
|
-
readonly internalType: "bool";
|
|
4649
|
-
readonly name: "";
|
|
4650
|
-
readonly type: "bool";
|
|
4651
|
-
}];
|
|
4652
|
-
readonly stateMutability: "view";
|
|
4653
|
-
readonly type: "function";
|
|
4654
|
-
}, {
|
|
4655
|
-
readonly inputs: readonly [{
|
|
4656
|
-
readonly internalType: "address";
|
|
4657
|
-
readonly name: "userAddress";
|
|
4658
|
-
readonly type: "address";
|
|
4659
|
-
}, {
|
|
4660
|
-
readonly internalType: "uint256";
|
|
4661
|
-
readonly name: "serverId";
|
|
4662
|
-
readonly type: "uint256";
|
|
4663
|
-
}];
|
|
4664
|
-
readonly name: "isActiveServerForUser";
|
|
4665
|
-
readonly outputs: readonly [{
|
|
4666
|
-
readonly internalType: "bool";
|
|
4667
|
-
readonly name: "";
|
|
4668
|
-
readonly type: "bool";
|
|
4669
|
-
}];
|
|
4670
|
-
readonly stateMutability: "view";
|
|
4671
|
-
readonly type: "function";
|
|
4672
3873
|
}, {
|
|
4673
3874
|
readonly inputs: readonly [{
|
|
4674
3875
|
readonly internalType: "address";
|
|
@@ -4786,9 +3987,9 @@ declare const contractAbis: {
|
|
|
4786
3987
|
readonly name: "serverAddress";
|
|
4787
3988
|
readonly type: "address";
|
|
4788
3989
|
}, {
|
|
4789
|
-
readonly internalType: "
|
|
3990
|
+
readonly internalType: "string";
|
|
4790
3991
|
readonly name: "publicKey";
|
|
4791
|
-
readonly type: "
|
|
3992
|
+
readonly type: "string";
|
|
4792
3993
|
}, {
|
|
4793
3994
|
readonly internalType: "string";
|
|
4794
3995
|
readonly name: "url";
|
|
@@ -4821,9 +4022,9 @@ declare const contractAbis: {
|
|
|
4821
4022
|
readonly name: "serverAddress";
|
|
4822
4023
|
readonly type: "address";
|
|
4823
4024
|
}, {
|
|
4824
|
-
readonly internalType: "
|
|
4025
|
+
readonly internalType: "string";
|
|
4825
4026
|
readonly name: "publicKey";
|
|
4826
|
-
readonly type: "
|
|
4027
|
+
readonly type: "string";
|
|
4827
4028
|
}, {
|
|
4828
4029
|
readonly internalType: "string";
|
|
4829
4030
|
readonly name: "url";
|
|
@@ -5067,6 +4268,96 @@ declare const contractAbis: {
|
|
|
5067
4268
|
}];
|
|
5068
4269
|
readonly stateMutability: "view";
|
|
5069
4270
|
readonly type: "function";
|
|
4271
|
+
}, {
|
|
4272
|
+
readonly inputs: readonly [{
|
|
4273
|
+
readonly internalType: "address";
|
|
4274
|
+
readonly name: "userAddress";
|
|
4275
|
+
readonly type: "address";
|
|
4276
|
+
}];
|
|
4277
|
+
readonly name: "userServerValues";
|
|
4278
|
+
readonly outputs: readonly [{
|
|
4279
|
+
readonly components: readonly [{
|
|
4280
|
+
readonly internalType: "uint256";
|
|
4281
|
+
readonly name: "id";
|
|
4282
|
+
readonly type: "uint256";
|
|
4283
|
+
}, {
|
|
4284
|
+
readonly internalType: "address";
|
|
4285
|
+
readonly name: "owner";
|
|
4286
|
+
readonly type: "address";
|
|
4287
|
+
}, {
|
|
4288
|
+
readonly internalType: "address";
|
|
4289
|
+
readonly name: "serverAddress";
|
|
4290
|
+
readonly type: "address";
|
|
4291
|
+
}, {
|
|
4292
|
+
readonly internalType: "string";
|
|
4293
|
+
readonly name: "publicKey";
|
|
4294
|
+
readonly type: "string";
|
|
4295
|
+
}, {
|
|
4296
|
+
readonly internalType: "string";
|
|
4297
|
+
readonly name: "url";
|
|
4298
|
+
readonly type: "string";
|
|
4299
|
+
}, {
|
|
4300
|
+
readonly internalType: "uint256";
|
|
4301
|
+
readonly name: "startBlock";
|
|
4302
|
+
readonly type: "uint256";
|
|
4303
|
+
}, {
|
|
4304
|
+
readonly internalType: "uint256";
|
|
4305
|
+
readonly name: "endBlock";
|
|
4306
|
+
readonly type: "uint256";
|
|
4307
|
+
}];
|
|
4308
|
+
readonly internalType: "struct IDataPortabilityServers.TrustedServerInfo[]";
|
|
4309
|
+
readonly name: "serversInfo";
|
|
4310
|
+
readonly type: "tuple[]";
|
|
4311
|
+
}];
|
|
4312
|
+
readonly stateMutability: "view";
|
|
4313
|
+
readonly type: "function";
|
|
4314
|
+
}, {
|
|
4315
|
+
readonly inputs: readonly [{
|
|
4316
|
+
readonly internalType: "address";
|
|
4317
|
+
readonly name: "userAddress";
|
|
4318
|
+
readonly type: "address";
|
|
4319
|
+
}, {
|
|
4320
|
+
readonly internalType: "uint256";
|
|
4321
|
+
readonly name: "serverId";
|
|
4322
|
+
readonly type: "uint256";
|
|
4323
|
+
}];
|
|
4324
|
+
readonly name: "userServers";
|
|
4325
|
+
readonly outputs: readonly [{
|
|
4326
|
+
readonly components: readonly [{
|
|
4327
|
+
readonly internalType: "uint256";
|
|
4328
|
+
readonly name: "id";
|
|
4329
|
+
readonly type: "uint256";
|
|
4330
|
+
}, {
|
|
4331
|
+
readonly internalType: "address";
|
|
4332
|
+
readonly name: "owner";
|
|
4333
|
+
readonly type: "address";
|
|
4334
|
+
}, {
|
|
4335
|
+
readonly internalType: "address";
|
|
4336
|
+
readonly name: "serverAddress";
|
|
4337
|
+
readonly type: "address";
|
|
4338
|
+
}, {
|
|
4339
|
+
readonly internalType: "string";
|
|
4340
|
+
readonly name: "publicKey";
|
|
4341
|
+
readonly type: "string";
|
|
4342
|
+
}, {
|
|
4343
|
+
readonly internalType: "string";
|
|
4344
|
+
readonly name: "url";
|
|
4345
|
+
readonly type: "string";
|
|
4346
|
+
}, {
|
|
4347
|
+
readonly internalType: "uint256";
|
|
4348
|
+
readonly name: "startBlock";
|
|
4349
|
+
readonly type: "uint256";
|
|
4350
|
+
}, {
|
|
4351
|
+
readonly internalType: "uint256";
|
|
4352
|
+
readonly name: "endBlock";
|
|
4353
|
+
readonly type: "uint256";
|
|
4354
|
+
}];
|
|
4355
|
+
readonly internalType: "struct IDataPortabilityServers.TrustedServerInfo";
|
|
4356
|
+
readonly name: "";
|
|
4357
|
+
readonly type: "tuple";
|
|
4358
|
+
}];
|
|
4359
|
+
readonly stateMutability: "view";
|
|
4360
|
+
readonly type: "function";
|
|
5070
4361
|
}, {
|
|
5071
4362
|
readonly inputs: readonly [{
|
|
5072
4363
|
readonly internalType: "address";
|
|
@@ -30734,7 +30025,7 @@ declare class PermissionsController {
|
|
|
30734
30025
|
* @throws {RelayerError} When gasless submission fails
|
|
30735
30026
|
* @throws {PermissionError} When revocation fails for any other reason
|
|
30736
30027
|
*/
|
|
30737
|
-
|
|
30028
|
+
submitRevokeWithSignature(params: RevokePermissionParams): Promise<Hash>;
|
|
30738
30029
|
/**
|
|
30739
30030
|
* Retrieves the user's current nonce from the DataPortabilityServers contract.
|
|
30740
30031
|
*
|
|
@@ -30753,6 +30044,20 @@ declare class PermissionsController {
|
|
|
30753
30044
|
* ```
|
|
30754
30045
|
*/
|
|
30755
30046
|
private getUserNonce;
|
|
30047
|
+
/**
|
|
30048
|
+
* Retrieves the user's current nonce from the DataPortabilityServers contract.
|
|
30049
|
+
* This nonce is used for server-related operations (AddAndTrustServer, TrustServer, UntrustServer).
|
|
30050
|
+
*
|
|
30051
|
+
* @returns Promise resolving to the current nonce
|
|
30052
|
+
* @private
|
|
30053
|
+
*
|
|
30054
|
+
* @example
|
|
30055
|
+
* ```typescript
|
|
30056
|
+
* const nonce = await this.getServerNonce();
|
|
30057
|
+
* console.log(`Current server nonce: ${nonce}`);
|
|
30058
|
+
* ```
|
|
30059
|
+
*/
|
|
30060
|
+
private getServerNonce;
|
|
30756
30061
|
/**
|
|
30757
30062
|
* Composes the EIP-712 typed data for PermissionGrant (new simplified format).
|
|
30758
30063
|
*
|
|
@@ -30766,6 +30071,21 @@ declare class PermissionsController {
|
|
|
30766
30071
|
* @returns Promise resolving to the typed data structure
|
|
30767
30072
|
*/
|
|
30768
30073
|
private composePermissionGrantMessage;
|
|
30074
|
+
/**
|
|
30075
|
+
* Creates EIP-712 typed data structure for server files and permissions.
|
|
30076
|
+
*
|
|
30077
|
+
* @param params - Parameters for the server files and permissions message
|
|
30078
|
+
* @param params.granteeId - Grantee ID
|
|
30079
|
+
* @param params.grant - Grant URL or grant data
|
|
30080
|
+
* @param params.fileUrls - Array of file URLs
|
|
30081
|
+
* @param params.serverAddress - Server address
|
|
30082
|
+
* @param params.serverUrl - Server URL
|
|
30083
|
+
* @param params.serverPublicKey - Server public key
|
|
30084
|
+
* @param params.filePermissions - File permissions array
|
|
30085
|
+
* @param params.nonce - Unique number to prevent replay attacks
|
|
30086
|
+
* @returns Promise resolving to the typed data structure
|
|
30087
|
+
*/
|
|
30088
|
+
private composeServerFilesAndPermissionMessage;
|
|
30769
30089
|
/**
|
|
30770
30090
|
* Gets the EIP-712 domain for PermissionGrant signatures.
|
|
30771
30091
|
*
|
|
@@ -30821,38 +30141,6 @@ declare class PermissionsController {
|
|
|
30821
30141
|
* ```
|
|
30822
30142
|
*/
|
|
30823
30143
|
getUserPermissionGrantsOnChain(options?: GetUserPermissionsOptions): Promise<OnChainPermissionGrant[]>;
|
|
30824
|
-
/**
|
|
30825
|
-
* Gets all permission IDs for a specific file.
|
|
30826
|
-
*
|
|
30827
|
-
* @param fileId - The file ID to query permissions for
|
|
30828
|
-
* @returns Promise resolving to array of permission IDs
|
|
30829
|
-
* @throws {BlockchainError} When reading from contract fails or chain is unavailable
|
|
30830
|
-
*/
|
|
30831
|
-
getFilePermissionIds(fileId: bigint): Promise<bigint[]>;
|
|
30832
|
-
/**
|
|
30833
|
-
* Gets all file IDs associated with a permission.
|
|
30834
|
-
*
|
|
30835
|
-
* @param permissionId - The permission ID to query files for
|
|
30836
|
-
* @returns Promise resolving to array of file IDs
|
|
30837
|
-
* @throws {BlockchainError} When reading from contract fails or chain is unavailable
|
|
30838
|
-
*/
|
|
30839
|
-
getPermissionFileIds(permissionId: bigint): Promise<bigint[]>;
|
|
30840
|
-
/**
|
|
30841
|
-
* Checks if a permission is active.
|
|
30842
|
-
*
|
|
30843
|
-
* @param permissionId - The permission ID to check
|
|
30844
|
-
* @returns Promise resolving to boolean indicating if permission is active
|
|
30845
|
-
* @throws {BlockchainError} When reading from contract fails or chain is unavailable
|
|
30846
|
-
*/
|
|
30847
|
-
isActivePermission(permissionId: bigint): Promise<boolean>;
|
|
30848
|
-
/**
|
|
30849
|
-
* Gets permission details from the contract.
|
|
30850
|
-
*
|
|
30851
|
-
* @param permissionId - The permission ID to query
|
|
30852
|
-
* @returns Promise resolving to permission info
|
|
30853
|
-
* @throws {BlockchainError} When reading from contract fails or chain is unavailable
|
|
30854
|
-
*/
|
|
30855
|
-
getPermissionInfo(permissionId: bigint): Promise<PermissionInfo>;
|
|
30856
30144
|
/**
|
|
30857
30145
|
* Normalizes grant ID to hex format.
|
|
30858
30146
|
* Handles conversion from permission ID (bigint/number/string) to proper hex hash format.
|
|
@@ -30903,14 +30191,14 @@ declare class PermissionsController {
|
|
|
30903
30191
|
* @returns Promise resolving to transaction hash
|
|
30904
30192
|
* @deprecated Use addAndTrustServer instead
|
|
30905
30193
|
*/
|
|
30906
|
-
|
|
30194
|
+
submitTrustServer(params: TrustServerParams): Promise<Hash>;
|
|
30907
30195
|
/**
|
|
30908
30196
|
* Adds and trusts a server using a signature (gasless transaction).
|
|
30909
30197
|
*
|
|
30910
30198
|
* @param params - Parameters for adding and trusting the server
|
|
30911
30199
|
* @returns Promise resolving to transaction hash
|
|
30912
30200
|
*/
|
|
30913
|
-
|
|
30201
|
+
submitAddAndTrustServerWithSignature(params: AddAndTrustServerParams): Promise<Hash>;
|
|
30914
30202
|
/**
|
|
30915
30203
|
* Trusts a server using a signature (gasless transaction - legacy method).
|
|
30916
30204
|
*
|
|
@@ -30924,7 +30212,7 @@ declare class PermissionsController {
|
|
|
30924
30212
|
* @throws {ServerUrlMismatchError} When server URL doesn't match existing registration
|
|
30925
30213
|
* @throws {BlockchainError} When trust operation fails for any other reason
|
|
30926
30214
|
*/
|
|
30927
|
-
|
|
30215
|
+
submitTrustServerWithSignature(params: TrustServerParams): Promise<Hash>;
|
|
30928
30216
|
/**
|
|
30929
30217
|
* Submits a direct untrust server transaction (without signature).
|
|
30930
30218
|
*
|
|
@@ -30960,7 +30248,7 @@ declare class PermissionsController {
|
|
|
30960
30248
|
* console.log('Still trusting servers:', trustedServers);
|
|
30961
30249
|
* ```
|
|
30962
30250
|
*/
|
|
30963
|
-
|
|
30251
|
+
submitUntrustServer(params: UntrustServerParams): Promise<Hash>;
|
|
30964
30252
|
/**
|
|
30965
30253
|
* Untrusts a server using a signature (gasless transaction).
|
|
30966
30254
|
*
|
|
@@ -30973,7 +30261,7 @@ declare class PermissionsController {
|
|
|
30973
30261
|
* @throws {RelayerError} When gasless submission fails
|
|
30974
30262
|
* @throws {BlockchainError} When untrust transaction fails
|
|
30975
30263
|
*/
|
|
30976
|
-
|
|
30264
|
+
submitUntrustServerWithSignature(params: UntrustServerParams): Promise<Hash>;
|
|
30977
30265
|
/**
|
|
30978
30266
|
* Retrieves all servers trusted by a user from the DataPortabilityServers contract.
|
|
30979
30267
|
*
|
|
@@ -30997,61 +30285,6 @@ declare class PermissionsController {
|
|
|
30997
30285
|
* ```
|
|
30998
30286
|
*/
|
|
30999
30287
|
getTrustedServers(userAddress?: Address): Promise<number[]>;
|
|
31000
|
-
/**
|
|
31001
|
-
* Retrieves detailed information about a specific server from the DataPortabilityServers contract.
|
|
31002
|
-
*
|
|
31003
|
-
* Returns complete server information including owner, address, public key, and URL.
|
|
31004
|
-
* This information is used to establish secure connections and verify server identity.
|
|
31005
|
-
*
|
|
31006
|
-
* @param serverId - The unique numeric ID of the server to query
|
|
31007
|
-
* @returns Promise resolving to complete server information
|
|
31008
|
-
* @throws {BlockchainError} When reading from contract fails or chain is unavailable
|
|
31009
|
-
* @throws {NetworkError} When unable to connect to the blockchain network
|
|
31010
|
-
* @throws {ServerNotFoundError} When the server ID does not exist
|
|
31011
|
-
*
|
|
31012
|
-
* @example
|
|
31013
|
-
* ```typescript
|
|
31014
|
-
* const server = await vana.permissions.getServerInfo(1);
|
|
31015
|
-
*
|
|
31016
|
-
* console.log(`Server ${server.id}:`);
|
|
31017
|
-
* console.log(` Owner: ${server.owner}`);
|
|
31018
|
-
* console.log(` Address: ${server.serverAddress}`);
|
|
31019
|
-
* console.log(` URL: ${server.url}`);
|
|
31020
|
-
* console.log(` Public Key: ${server.publicKey}`);
|
|
31021
|
-
* ```
|
|
31022
|
-
*/
|
|
31023
|
-
getServerInfo(serverId: number): Promise<Server>;
|
|
31024
|
-
/**
|
|
31025
|
-
* Checks if a specific server is active in the DataPortabilityServers contract.
|
|
31026
|
-
*
|
|
31027
|
-
* An active server is one that is properly registered and operational, meaning
|
|
31028
|
-
* it can receive and process data portability requests from users.
|
|
31029
|
-
*
|
|
31030
|
-
* @param serverId - The unique numeric ID of the server to check
|
|
31031
|
-
* @returns Promise resolving to true if server is active, false otherwise
|
|
31032
|
-
* @throws {BlockchainError} When reading from contract fails or chain is unavailable
|
|
31033
|
-
* @throws {NetworkError} When unable to connect to the blockchain network
|
|
31034
|
-
*
|
|
31035
|
-
* @example
|
|
31036
|
-
* ```typescript
|
|
31037
|
-
* const isActive = await vana.permissions.isActiveServer(1);
|
|
31038
|
-
*
|
|
31039
|
-
* if (isActive) {
|
|
31040
|
-
* console.log('Server 1 is active and ready to process requests');
|
|
31041
|
-
* } else {
|
|
31042
|
-
* console.log('Server 1 is inactive or not found');
|
|
31043
|
-
* }
|
|
31044
|
-
* ```
|
|
31045
|
-
*/
|
|
31046
|
-
isActiveServer(serverId: number): Promise<boolean>;
|
|
31047
|
-
/**
|
|
31048
|
-
* Checks if a server is active for a specific user.
|
|
31049
|
-
*
|
|
31050
|
-
* @param serverId - Server ID (numeric)
|
|
31051
|
-
* @param userAddress - Optional user address (defaults to current user)
|
|
31052
|
-
* @returns Promise resolving to boolean indicating if server is active for the user
|
|
31053
|
-
*/
|
|
31054
|
-
isActiveServerForUser(serverId: number, userAddress?: Address): Promise<boolean>;
|
|
31055
30288
|
/**
|
|
31056
30289
|
* Gets the total count of trusted servers for a user.
|
|
31057
30290
|
*
|
|
@@ -31176,7 +30409,7 @@ declare class PermissionsController {
|
|
|
31176
30409
|
* console.log(`Grantee registered in transaction: ${txHash}`);
|
|
31177
30410
|
* ```
|
|
31178
30411
|
*/
|
|
31179
|
-
|
|
30412
|
+
submitRegisterGrantee(params: RegisterGranteeParams): Promise<Hash>;
|
|
31180
30413
|
/**
|
|
31181
30414
|
* Registers a grantee with a signature (gasless transaction)
|
|
31182
30415
|
*
|
|
@@ -31192,7 +30425,7 @@ declare class PermissionsController {
|
|
|
31192
30425
|
* });
|
|
31193
30426
|
* ```
|
|
31194
30427
|
*/
|
|
31195
|
-
|
|
30428
|
+
submitRegisterGranteeWithSignature(params: RegisterGranteeParams): Promise<Hash>;
|
|
31196
30429
|
/**
|
|
31197
30430
|
* Submits a signed register grantee transaction via relayer
|
|
31198
30431
|
*
|
|
@@ -31309,6 +30542,240 @@ declare class PermissionsController {
|
|
|
31309
30542
|
* @private
|
|
31310
30543
|
*/
|
|
31311
30544
|
private submitSignedRegisterGranteeTransaction;
|
|
30545
|
+
/**
|
|
30546
|
+
* Get all trusted server IDs for a user
|
|
30547
|
+
*
|
|
30548
|
+
* @param userAddress - User address to query (defaults to current user)
|
|
30549
|
+
* @returns Promise resolving to array of server IDs
|
|
30550
|
+
*/
|
|
30551
|
+
getUserServerIds(userAddress?: Address): Promise<bigint[]>;
|
|
30552
|
+
/**
|
|
30553
|
+
* Get server ID at specific index for a user
|
|
30554
|
+
*
|
|
30555
|
+
* @param userAddress - User address to query
|
|
30556
|
+
* @param serverIndex - Index in the user's server list
|
|
30557
|
+
* @returns Promise resolving to server ID
|
|
30558
|
+
*/
|
|
30559
|
+
getUserServerIdAt(userAddress: Address, serverIndex: bigint): Promise<bigint>;
|
|
30560
|
+
/**
|
|
30561
|
+
* Get the number of trusted servers for a user
|
|
30562
|
+
*
|
|
30563
|
+
* @param userAddress - User address to query (defaults to current user)
|
|
30564
|
+
* @returns Promise resolving to number of trusted servers
|
|
30565
|
+
*/
|
|
30566
|
+
getUserServerCount(userAddress?: Address): Promise<bigint>;
|
|
30567
|
+
/**
|
|
30568
|
+
* Get detailed information about trusted servers for a user
|
|
30569
|
+
*
|
|
30570
|
+
* @param userAddress - User address to query (defaults to current user)
|
|
30571
|
+
* @returns Promise resolving to array of trusted server info
|
|
30572
|
+
*/
|
|
30573
|
+
getUserTrustedServers(userAddress?: Address): Promise<TrustedServerInfo[]>;
|
|
30574
|
+
/**
|
|
30575
|
+
* Get trusted server info for a specific server ID and user
|
|
30576
|
+
*
|
|
30577
|
+
* @param userAddress - User address to query
|
|
30578
|
+
* @param serverId - Server ID to get info for
|
|
30579
|
+
* @returns Promise resolving to trusted server info
|
|
30580
|
+
*/
|
|
30581
|
+
getUserTrustedServer(userAddress: Address, serverId: bigint): Promise<TrustedServerInfo>;
|
|
30582
|
+
/**
|
|
30583
|
+
* Get server information by server ID
|
|
30584
|
+
*
|
|
30585
|
+
* @param serverId - Server ID to get info for
|
|
30586
|
+
* @returns Promise resolving to server info
|
|
30587
|
+
*/
|
|
30588
|
+
getServerInfo(serverId: bigint): Promise<ServerInfo>;
|
|
30589
|
+
/**
|
|
30590
|
+
* Get server information by server address
|
|
30591
|
+
*
|
|
30592
|
+
* @param serverAddress - Server address to get info for
|
|
30593
|
+
* @returns Promise resolving to server info
|
|
30594
|
+
*/
|
|
30595
|
+
getServerInfoByAddress(serverAddress: Address): Promise<ServerInfo>;
|
|
30596
|
+
/**
|
|
30597
|
+
* Get all permission IDs for a user
|
|
30598
|
+
*
|
|
30599
|
+
* @param userAddress - User address to query (defaults to current user)
|
|
30600
|
+
* @returns Promise resolving to array of permission IDs
|
|
30601
|
+
*/
|
|
30602
|
+
getUserPermissionIds(userAddress?: Address): Promise<bigint[]>;
|
|
30603
|
+
/**
|
|
30604
|
+
* Get permission ID at specific index for a user
|
|
30605
|
+
*
|
|
30606
|
+
* @param userAddress - User address to query
|
|
30607
|
+
* @param permissionIndex - Index in the user's permission list
|
|
30608
|
+
* @returns Promise resolving to permission ID
|
|
30609
|
+
*/
|
|
30610
|
+
getUserPermissionIdAt(userAddress: Address, permissionIndex: bigint): Promise<bigint>;
|
|
30611
|
+
/**
|
|
30612
|
+
* Get the number of permissions for a user
|
|
30613
|
+
*
|
|
30614
|
+
* @param userAddress - User address to query (defaults to current user)
|
|
30615
|
+
* @returns Promise resolving to number of permissions
|
|
30616
|
+
*/
|
|
30617
|
+
getUserPermissionCount(userAddress?: Address): Promise<bigint>;
|
|
30618
|
+
/**
|
|
30619
|
+
* Get detailed permission information by permission ID
|
|
30620
|
+
*
|
|
30621
|
+
* @param permissionId - Permission ID to get info for
|
|
30622
|
+
* @returns Promise resolving to permission info
|
|
30623
|
+
*/
|
|
30624
|
+
getPermissionInfo(permissionId: bigint): Promise<PermissionInfo>;
|
|
30625
|
+
/**
|
|
30626
|
+
* Get all permission IDs for a specific file
|
|
30627
|
+
*
|
|
30628
|
+
* @param fileId - File ID to get permissions for
|
|
30629
|
+
* @returns Promise resolving to array of permission IDs
|
|
30630
|
+
*/
|
|
30631
|
+
getFilePermissionIds(fileId: bigint): Promise<bigint[]>;
|
|
30632
|
+
/**
|
|
30633
|
+
* Get all file IDs for a specific permission
|
|
30634
|
+
*
|
|
30635
|
+
* @param permissionId - Permission ID to get files for
|
|
30636
|
+
* @returns Promise resolving to array of file IDs
|
|
30637
|
+
*/
|
|
30638
|
+
getPermissionFileIds(permissionId: bigint): Promise<bigint[]>;
|
|
30639
|
+
/**
|
|
30640
|
+
* Get all permissions for a specific file (alias for getFilePermissionIds)
|
|
30641
|
+
*
|
|
30642
|
+
* @param fileId - File ID to get permissions for
|
|
30643
|
+
* @returns Promise resolving to array of permission IDs
|
|
30644
|
+
*/
|
|
30645
|
+
getFilePermissions(fileId: bigint): Promise<bigint[]>;
|
|
30646
|
+
/**
|
|
30647
|
+
* Get grantee information by grantee ID
|
|
30648
|
+
*
|
|
30649
|
+
* @param granteeId - Grantee ID to get info for
|
|
30650
|
+
* @returns Promise resolving to grantee info
|
|
30651
|
+
*/
|
|
30652
|
+
getGranteeInfo(granteeId: bigint): Promise<GranteeInfo>;
|
|
30653
|
+
/**
|
|
30654
|
+
* Get grantee information by grantee address
|
|
30655
|
+
*
|
|
30656
|
+
* @param granteeAddress - Grantee address to get info for
|
|
30657
|
+
* @returns Promise resolving to grantee info
|
|
30658
|
+
*/
|
|
30659
|
+
getGranteeInfoByAddress(granteeAddress: Address): Promise<GranteeInfo>;
|
|
30660
|
+
/**
|
|
30661
|
+
* Get all permission IDs for a specific grantee
|
|
30662
|
+
*
|
|
30663
|
+
* @param granteeId - Grantee ID to get permissions for
|
|
30664
|
+
* @returns Promise resolving to array of permission IDs
|
|
30665
|
+
*/
|
|
30666
|
+
getGranteePermissionIds(granteeId: bigint): Promise<bigint[]>;
|
|
30667
|
+
/**
|
|
30668
|
+
* Get all permissions for a specific grantee (alias for getGranteePermissionIds)
|
|
30669
|
+
*
|
|
30670
|
+
* @param granteeId - Grantee ID to get permissions for
|
|
30671
|
+
* @returns Promise resolving to array of permission IDs
|
|
30672
|
+
*/
|
|
30673
|
+
getGranteePermissions(granteeId: bigint): Promise<bigint[]>;
|
|
30674
|
+
/**
|
|
30675
|
+
* Get all server IDs for a user
|
|
30676
|
+
*
|
|
30677
|
+
* @param userAddress - User address to get server IDs for
|
|
30678
|
+
* @returns Promise resolving to array of server IDs
|
|
30679
|
+
*/
|
|
30680
|
+
getUserServerIdsValues(userAddress: Address): Promise<bigint[]>;
|
|
30681
|
+
/**
|
|
30682
|
+
* Get server ID at specific index for a user
|
|
30683
|
+
*
|
|
30684
|
+
* @param userAddress - User address
|
|
30685
|
+
* @param serverIndex - Index of the server ID
|
|
30686
|
+
* @returns Promise resolving to server ID
|
|
30687
|
+
*/
|
|
30688
|
+
getUserServerIdsAt(userAddress: Address, serverIndex: bigint): Promise<bigint>;
|
|
30689
|
+
/**
|
|
30690
|
+
* Get the number of servers a user has
|
|
30691
|
+
*
|
|
30692
|
+
* @param userAddress - User address
|
|
30693
|
+
* @returns Promise resolving to number of servers
|
|
30694
|
+
*/
|
|
30695
|
+
getUserServerIdsLength(userAddress: Address): Promise<bigint>;
|
|
30696
|
+
/**
|
|
30697
|
+
* Get trusted server info for a specific user and server ID
|
|
30698
|
+
*
|
|
30699
|
+
* @param userAddress - User address
|
|
30700
|
+
* @param serverId - Server ID
|
|
30701
|
+
* @returns Promise resolving to trusted server info
|
|
30702
|
+
*/
|
|
30703
|
+
getUserServers(userAddress: Address, serverId: bigint): Promise<TrustedServerInfo>;
|
|
30704
|
+
/**
|
|
30705
|
+
* Get server info by server ID
|
|
30706
|
+
*
|
|
30707
|
+
* @param serverId - Server ID
|
|
30708
|
+
* @returns Promise resolving to server info
|
|
30709
|
+
*/
|
|
30710
|
+
getServers(serverId: bigint): Promise<ServerInfo>;
|
|
30711
|
+
/**
|
|
30712
|
+
* Get user info including nonce and trusted server IDs
|
|
30713
|
+
*
|
|
30714
|
+
* @param userAddress - User address
|
|
30715
|
+
* @returns Promise resolving to user info
|
|
30716
|
+
*/
|
|
30717
|
+
getUsers(userAddress: Address): Promise<{
|
|
30718
|
+
nonce: bigint;
|
|
30719
|
+
trustedServerIds: bigint[];
|
|
30720
|
+
}>;
|
|
30721
|
+
/**
|
|
30722
|
+
* Update server URL
|
|
30723
|
+
*
|
|
30724
|
+
* @param serverId - Server ID to update
|
|
30725
|
+
* @param url - New URL for the server
|
|
30726
|
+
* @returns Promise resolving to transaction hash
|
|
30727
|
+
*/
|
|
30728
|
+
submitUpdateServer(serverId: bigint, url: string): Promise<Hash>;
|
|
30729
|
+
/**
|
|
30730
|
+
* Get all permission IDs for a user
|
|
30731
|
+
*
|
|
30732
|
+
* @param userAddress - User address to get permission IDs for
|
|
30733
|
+
* @returns Promise resolving to array of permission IDs
|
|
30734
|
+
*/
|
|
30735
|
+
getUserPermissionIdsValues(userAddress: Address): Promise<bigint[]>;
|
|
30736
|
+
/**
|
|
30737
|
+
* Get permission ID at specific index for a user
|
|
30738
|
+
*
|
|
30739
|
+
* @param userAddress - User address
|
|
30740
|
+
* @param permissionIndex - Index of the permission ID
|
|
30741
|
+
* @returns Promise resolving to permission ID
|
|
30742
|
+
*/
|
|
30743
|
+
getUserPermissionIdsAt(userAddress: Address, permissionIndex: bigint): Promise<bigint>;
|
|
30744
|
+
/**
|
|
30745
|
+
* Get the number of permissions a user has
|
|
30746
|
+
*
|
|
30747
|
+
* @param userAddress - User address
|
|
30748
|
+
* @returns Promise resolving to number of permissions
|
|
30749
|
+
*/
|
|
30750
|
+
getUserPermissionIdsLength(userAddress: Address): Promise<bigint>;
|
|
30751
|
+
/**
|
|
30752
|
+
* Get permission info by permission ID
|
|
30753
|
+
*
|
|
30754
|
+
* @param permissionId - Permission ID
|
|
30755
|
+
* @returns Promise resolving to permission info
|
|
30756
|
+
*/
|
|
30757
|
+
getPermissions(permissionId: bigint): Promise<PermissionInfo>;
|
|
30758
|
+
/**
|
|
30759
|
+
* Submit permission with signature to the blockchain
|
|
30760
|
+
*
|
|
30761
|
+
* @param params - Parameters for adding permission
|
|
30762
|
+
* @returns Promise resolving to transaction hash
|
|
30763
|
+
*/
|
|
30764
|
+
submitAddPermission(params: ServerFilesAndPermissionParams): Promise<Hash>;
|
|
30765
|
+
/**
|
|
30766
|
+
* Submit server files and permissions with signature to the blockchain
|
|
30767
|
+
*
|
|
30768
|
+
* @param params - Parameters for adding server files and permissions
|
|
30769
|
+
* @returns Promise resolving to transaction hash
|
|
30770
|
+
*/
|
|
30771
|
+
submitAddServerFilesAndPermissions(params: ServerFilesAndPermissionParams): Promise<Hash>;
|
|
30772
|
+
/**
|
|
30773
|
+
* Submit permission revocation with signature to the blockchain
|
|
30774
|
+
*
|
|
30775
|
+
* @param permissionId - Permission ID to revoke
|
|
30776
|
+
* @returns Promise resolving to transaction hash
|
|
30777
|
+
*/
|
|
30778
|
+
submitRevokePermission(permissionId: bigint): Promise<Hash>;
|
|
31312
30779
|
}
|
|
31313
30780
|
|
|
31314
30781
|
/**
|
|
@@ -37233,4 +36700,4 @@ declare function Vana(config: VanaConfig): VanaBrowserImpl;
|
|
|
37233
36700
|
*/
|
|
37234
36701
|
type VanaInstance = VanaBrowserImpl;
|
|
37235
36702
|
|
|
37236
|
-
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 };
|
|
36703
|
+
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, type GranteeInfo, 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 Permission, 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 ServerFilesAndPermissionParams, type ServerFilesAndPermissionTypedData, type ServerInfo, 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 };
|