@0xobelisk/sui-client 1.1.2 → 1.1.4

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/dubhe.d.ts CHANGED
@@ -67,8 +67,8 @@ export declare class Dubhe {
67
67
  }): Promise<ConnectionResponse<IndexerEvent>>;
68
68
  getSchemas({ name, key1, key2, is_removed, last_update_checkpoint, last_update_digest, value, first, after, orderBy, }: {
69
69
  name?: string;
70
- key1?: string;
71
- key2?: string;
70
+ key1?: any;
71
+ key2?: any;
72
72
  is_removed?: boolean;
73
73
  last_update_checkpoint?: string;
74
74
  last_update_digest?: string;
@@ -79,8 +79,8 @@ export declare class Dubhe {
79
79
  }): Promise<ConnectionResponse<IndexerSchema>>;
80
80
  getStorage({ name, key1, key2, is_removed, last_update_checkpoint, last_update_digest, value, first, after, orderBy, }: {
81
81
  name?: string;
82
- key1?: string;
83
- key2?: string;
82
+ key1?: any;
83
+ key2?: any;
84
84
  is_removed?: boolean;
85
85
  last_update_checkpoint?: string;
86
86
  last_update_digest?: string;
@@ -91,8 +91,8 @@ export declare class Dubhe {
91
91
  }): Promise<StorageResponse<IndexerSchema>>;
92
92
  getStorageItem({ name, key1, key2, is_removed, last_update_checkpoint, last_update_digest, value, }: {
93
93
  name: string;
94
- key1?: string;
95
- key2?: string;
94
+ key1?: any;
95
+ key2?: any;
96
96
  is_removed?: boolean;
97
97
  last_update_checkpoint?: string;
98
98
  last_update_digest?: string;
package/dist/index.js CHANGED
@@ -1152,8 +1152,8 @@ var SuiIndexerClient = class {
1152
1152
  $first: Int,
1153
1153
  $after: String,
1154
1154
  $name: String,
1155
- $key1: String,
1156
- $key2: String,
1155
+ $key1: JSON,
1156
+ $key2: JSON,
1157
1157
  $is_removed: Boolean,
1158
1158
  $last_update_checkpoint: String,
1159
1159
  $last_update_digest: String,
@@ -2012,7 +2012,7 @@ var Dubhe = class {
2012
2012
  (moudlevalue) => {
2013
2013
  const data = moudlevalue;
2014
2014
  const moduleName = data.name;
2015
- const objMoudleId = `${packageId}::${moduleName}`;
2015
+ const objMoudleId = `${this.packageId}::${moduleName}`;
2016
2016
  if (data.enums) {
2017
2017
  Object.entries(data.enums).forEach(([enumName, enumType]) => {
2018
2018
  const objectId = `${objMoudleId}::${enumName}`;
@@ -2086,7 +2086,7 @@ var Dubhe = class {
2086
2086
  }
2087
2087
  }
2088
2088
  this.contractFactory = new SuiContractFactory({
2089
- packageId,
2089
+ packageId: this.packageId,
2090
2090
  metadata
2091
2091
  });
2092
2092
  }