@opendatalabs/vana-sdk 0.1.0-alpha.7d82289 → 0.1.0-alpha.7e71046

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.
@@ -2445,6 +2445,18 @@ declare const contractAbis: {
2445
2445
  }];
2446
2446
  readonly name: "InvalidPermissionsLength";
2447
2447
  readonly type: "error";
2448
+ }, {
2449
+ readonly inputs: readonly [{
2450
+ readonly internalType: "uint256";
2451
+ readonly name: "filesLength";
2452
+ readonly type: "uint256";
2453
+ }, {
2454
+ readonly internalType: "uint256";
2455
+ readonly name: "schemaIdsLength";
2456
+ readonly type: "uint256";
2457
+ }];
2458
+ readonly name: "InvalidSchemaIdsLength";
2459
+ readonly type: "error";
2448
2460
  }, {
2449
2461
  readonly inputs: readonly [];
2450
2462
  readonly name: "InvalidSignature";
@@ -3707,7 +3719,7 @@ declare const contractAbis: {
3707
3719
  readonly name: "addServerInput";
3708
3720
  readonly type: "tuple";
3709
3721
  }];
3710
- readonly name: "addAndTrustServerOnBehalf";
3722
+ readonly name: "addAndTrustServerByManager";
3711
3723
  readonly outputs: readonly [];
3712
3724
  readonly stateMutability: "nonpayable";
3713
3725
  readonly type: "function";
@@ -4095,6 +4107,20 @@ declare const contractAbis: {
4095
4107
  readonly outputs: readonly [];
4096
4108
  readonly stateMutability: "nonpayable";
4097
4109
  readonly type: "function";
4110
+ }, {
4111
+ readonly inputs: readonly [{
4112
+ readonly internalType: "address";
4113
+ readonly name: "userAddress";
4114
+ readonly type: "address";
4115
+ }, {
4116
+ readonly internalType: "uint256";
4117
+ readonly name: "serverId";
4118
+ readonly type: "uint256";
4119
+ }];
4120
+ readonly name: "trustServerByManager";
4121
+ readonly outputs: readonly [];
4122
+ readonly stateMutability: "nonpayable";
4123
+ readonly type: "function";
4098
4124
  }, {
4099
4125
  readonly inputs: readonly [{
4100
4126
  readonly components: readonly [{
@@ -6173,6 +6173,22 @@ var init_DataPortabilityPermissionsImplementation = __esm({
6173
6173
  name: "InvalidPermissionsLength",
6174
6174
  type: "error"
6175
6175
  },
6176
+ {
6177
+ inputs: [
6178
+ {
6179
+ internalType: "uint256",
6180
+ name: "filesLength",
6181
+ type: "uint256"
6182
+ },
6183
+ {
6184
+ internalType: "uint256",
6185
+ name: "schemaIdsLength",
6186
+ type: "uint256"
6187
+ }
6188
+ ],
6189
+ name: "InvalidSchemaIdsLength",
6190
+ type: "error"
6191
+ },
6176
6192
  {
6177
6193
  inputs: [],
6178
6194
  name: "InvalidSignature",
@@ -7817,7 +7833,7 @@ var init_DataPortabilityServersImplementation = __esm({
7817
7833
  type: "tuple"
7818
7834
  }
7819
7835
  ],
7820
- name: "addAndTrustServerOnBehalf",
7836
+ name: "addAndTrustServerByManager",
7821
7837
  outputs: [],
7822
7838
  stateMutability: "nonpayable",
7823
7839
  type: "function"
@@ -8323,6 +8339,24 @@ var init_DataPortabilityServersImplementation = __esm({
8323
8339
  stateMutability: "nonpayable",
8324
8340
  type: "function"
8325
8341
  },
8342
+ {
8343
+ inputs: [
8344
+ {
8345
+ internalType: "address",
8346
+ name: "userAddress",
8347
+ type: "address"
8348
+ },
8349
+ {
8350
+ internalType: "uint256",
8351
+ name: "serverId",
8352
+ type: "uint256"
8353
+ }
8354
+ ],
8355
+ name: "trustServerByManager",
8356
+ outputs: [],
8357
+ stateMutability: "nonpayable",
8358
+ type: "function"
8359
+ },
8326
8360
  {
8327
8361
  inputs: [
8328
8362
  {
@@ -38095,7 +38129,7 @@ var PermissionsController = class {
38095
38129
  const txHash = await this.context.walletClient.writeContract({
38096
38130
  address: DataPortabilityServersAddress,
38097
38131
  abi: DataPortabilityServersAbi,
38098
- functionName: "addAndTrustServerOnBehalf",
38132
+ functionName: "addAndTrustServerByManager",
38099
38133
  args: [
38100
38134
  userAddress,
38101
38135
  {
@@ -40527,6 +40561,7 @@ var PermissionsController = class {
40527
40561
  granteeId: typedData.message.granteeId,
40528
40562
  grant: typedData.message.grant,
40529
40563
  fileUrls: typedData.message.fileUrls,
40564
+ schemaIds: typedData.message.schemaIds,
40530
40565
  serverAddress: typedData.message.serverAddress,
40531
40566
  serverUrl: typedData.message.serverUrl,
40532
40567
  serverPublicKey: typedData.message.serverPublicKey,