@0xobelisk/sui-client 1.1.3 → 1.1.5
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 +9 -7
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -3
- package/dist/index.mjs.map +1 -1
- package/dist/libs/suiIndexerClient/index.d.ts +8 -8
- package/package.json +1 -1
- package/src/dubhe.ts +17 -7
- package/src/libs/suiIndexerClient/index.ts +10 -10
package/dist/dubhe.d.ts
CHANGED
|
@@ -60,15 +60,17 @@ export declare class Dubhe {
|
|
|
60
60
|
after?: string;
|
|
61
61
|
orderBy?: string[];
|
|
62
62
|
}): Promise<ConnectionResponse<IndexerTransaction>>;
|
|
63
|
-
getEvents({ first, after, orderBy, }: {
|
|
63
|
+
getEvents({ first, after, name, checkpoint, orderBy, }: {
|
|
64
64
|
first?: number;
|
|
65
65
|
after?: string;
|
|
66
|
+
name?: string;
|
|
67
|
+
checkpoint?: string;
|
|
66
68
|
orderBy?: string[];
|
|
67
69
|
}): Promise<ConnectionResponse<IndexerEvent>>;
|
|
68
70
|
getSchemas({ name, key1, key2, is_removed, last_update_checkpoint, last_update_digest, value, first, after, orderBy, }: {
|
|
69
71
|
name?: string;
|
|
70
|
-
key1?:
|
|
71
|
-
key2?:
|
|
72
|
+
key1?: any;
|
|
73
|
+
key2?: any;
|
|
72
74
|
is_removed?: boolean;
|
|
73
75
|
last_update_checkpoint?: string;
|
|
74
76
|
last_update_digest?: string;
|
|
@@ -79,8 +81,8 @@ export declare class Dubhe {
|
|
|
79
81
|
}): Promise<ConnectionResponse<IndexerSchema>>;
|
|
80
82
|
getStorage({ name, key1, key2, is_removed, last_update_checkpoint, last_update_digest, value, first, after, orderBy, }: {
|
|
81
83
|
name?: string;
|
|
82
|
-
key1?:
|
|
83
|
-
key2?:
|
|
84
|
+
key1?: any;
|
|
85
|
+
key2?: any;
|
|
84
86
|
is_removed?: boolean;
|
|
85
87
|
last_update_checkpoint?: string;
|
|
86
88
|
last_update_digest?: string;
|
|
@@ -91,8 +93,8 @@ export declare class Dubhe {
|
|
|
91
93
|
}): Promise<StorageResponse<IndexerSchema>>;
|
|
92
94
|
getStorageItem({ name, key1, key2, is_removed, last_update_checkpoint, last_update_digest, value, }: {
|
|
93
95
|
name: string;
|
|
94
|
-
key1?:
|
|
95
|
-
key2?:
|
|
96
|
+
key1?: any;
|
|
97
|
+
key2?: any;
|
|
96
98
|
is_removed?: boolean;
|
|
97
99
|
last_update_checkpoint?: string;
|
|
98
100
|
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:
|
|
1156
|
-
$key2:
|
|
1155
|
+
$key1: JSON,
|
|
1156
|
+
$key2: JSON,
|
|
1157
1157
|
$is_removed: Boolean,
|
|
1158
1158
|
$last_update_checkpoint: String,
|
|
1159
1159
|
$last_update_digest: String,
|
|
@@ -2291,9 +2291,17 @@ var Dubhe = class {
|
|
|
2291
2291
|
async getEvents({
|
|
2292
2292
|
first,
|
|
2293
2293
|
after,
|
|
2294
|
+
name,
|
|
2295
|
+
checkpoint,
|
|
2294
2296
|
orderBy
|
|
2295
2297
|
}) {
|
|
2296
|
-
return await this.suiIndexerClient.getEvents({
|
|
2298
|
+
return await this.suiIndexerClient.getEvents({
|
|
2299
|
+
first,
|
|
2300
|
+
after,
|
|
2301
|
+
name,
|
|
2302
|
+
checkpoint,
|
|
2303
|
+
orderBy
|
|
2304
|
+
});
|
|
2297
2305
|
}
|
|
2298
2306
|
async getSchemas({
|
|
2299
2307
|
name,
|