@0xobelisk/sui-client 1.0.2 → 1.0.3
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 +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dubhe.ts +3 -3
package/dist/dubhe.d.ts
CHANGED
|
@@ -39,9 +39,9 @@ export declare class Dubhe {
|
|
|
39
39
|
get tx(): MapMoudleFuncTx;
|
|
40
40
|
get object(): MapObjectStruct;
|
|
41
41
|
view(dryResult: DevInspectResults): any[];
|
|
42
|
-
state({ schema,
|
|
42
|
+
state({ schema, field, objectId, storageType, params, }: {
|
|
43
43
|
schema: string;
|
|
44
|
-
|
|
44
|
+
field: string;
|
|
45
45
|
objectId: string;
|
|
46
46
|
storageType: string;
|
|
47
47
|
params: any[];
|
package/dist/index.js
CHANGED
|
@@ -1503,14 +1503,14 @@ var Dubhe = class {
|
|
|
1503
1503
|
}
|
|
1504
1504
|
async state({
|
|
1505
1505
|
schema,
|
|
1506
|
-
|
|
1506
|
+
field,
|
|
1507
1507
|
objectId,
|
|
1508
1508
|
storageType,
|
|
1509
1509
|
params
|
|
1510
1510
|
}) {
|
|
1511
1511
|
const tx = new import_transactions3.Transaction();
|
|
1512
1512
|
const moduleName = `${schema}_schema`;
|
|
1513
|
-
const functionName = `get_${
|
|
1513
|
+
const functionName = `get_${field}`;
|
|
1514
1514
|
const schemaObject = tx.object(objectId);
|
|
1515
1515
|
const storageValueMatch = storageType.match(/^StorageValue<(.+)>$/);
|
|
1516
1516
|
const storageMapMatch = storageType.match(/^StorageMap<(.+),\s*(.+)>$/);
|