@mysten/sui 2.13.4 → 2.14.0
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/CHANGELOG.md +10 -0
- package/dist/bcs/bcs.d.mts +6 -6
- package/dist/client/types.d.mts +12 -3
- package/dist/client/types.d.mts.map +1 -1
- package/dist/graphql/core.mjs.map +1 -1
- package/dist/grpc/core.mjs.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/ledger_service.client.d.mts +4 -4
- package/dist/grpc/proto/sui/rpc/v2/name_service.client.d.mts +4 -4
- package/dist/grpc/proto/sui/rpc/v2/state_service.client.d.mts +4 -4
- package/dist/grpc/proto/sui/rpc/v2/subscription_service.client.d.mts +4 -4
- package/dist/jsonRpc/core.mjs.map +1 -1
- package/dist/jsonRpc/types/generated.d.mts +1 -1
- package/dist/transactions/data/v1.d.mts +220 -220
- package/dist/transactions/data/v1.d.mts.map +1 -1
- package/dist/transactions/data/v2.d.mts +16 -16
- package/dist/transactions/data/v2.d.mts.map +1 -1
- package/dist/version.mjs +1 -1
- package/dist/version.mjs.map +1 -1
- package/dist/zklogin/bcs.d.mts +14 -14
- package/dist/zklogin/bcs.d.mts.map +1 -1
- package/package.json +1 -1
- package/src/client/types.ts +12 -3
- package/src/graphql/core.ts +1 -1
- package/src/grpc/core.ts +1 -1
- package/src/jsonRpc/core.ts +1 -1
- package/src/jsonRpc/types/generated.ts +1 -1
- package/src/version.ts +1 -1
package/dist/zklogin/bcs.d.mts
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _mysten_bcs810 from "@mysten/bcs";
|
|
2
2
|
import { InferBcsInput } from "@mysten/bcs";
|
|
3
3
|
|
|
4
4
|
//#region src/zklogin/bcs.d.ts
|
|
5
|
-
declare const zkLoginSignature:
|
|
6
|
-
inputs:
|
|
7
|
-
proofPoints:
|
|
8
|
-
a:
|
|
5
|
+
declare const zkLoginSignature: _mysten_bcs810.BcsStruct<{
|
|
6
|
+
inputs: _mysten_bcs810.BcsStruct<{
|
|
7
|
+
proofPoints: _mysten_bcs810.BcsStruct<{
|
|
8
|
+
a: _mysten_bcs810.BcsType<string[], Iterable<string> & {
|
|
9
9
|
length: number;
|
|
10
10
|
}, string>;
|
|
11
|
-
b:
|
|
11
|
+
b: _mysten_bcs810.BcsType<string[][], Iterable<Iterable<string> & {
|
|
12
12
|
length: number;
|
|
13
13
|
}> & {
|
|
14
14
|
length: number;
|
|
15
15
|
}, string>;
|
|
16
|
-
c:
|
|
16
|
+
c: _mysten_bcs810.BcsType<string[], Iterable<string> & {
|
|
17
17
|
length: number;
|
|
18
18
|
}, string>;
|
|
19
19
|
}, string>;
|
|
20
|
-
issBase64Details:
|
|
21
|
-
value:
|
|
22
|
-
indexMod4:
|
|
20
|
+
issBase64Details: _mysten_bcs810.BcsStruct<{
|
|
21
|
+
value: _mysten_bcs810.BcsType<string, string, "string">;
|
|
22
|
+
indexMod4: _mysten_bcs810.BcsType<number, number, "u8">;
|
|
23
23
|
}, string>;
|
|
24
|
-
headerBase64:
|
|
25
|
-
addressSeed:
|
|
24
|
+
headerBase64: _mysten_bcs810.BcsType<string, string, "string">;
|
|
25
|
+
addressSeed: _mysten_bcs810.BcsType<string, string, "string">;
|
|
26
26
|
}, string>;
|
|
27
|
-
maxEpoch:
|
|
28
|
-
userSignature:
|
|
27
|
+
maxEpoch: _mysten_bcs810.BcsType<string, string | number | bigint, "u64">;
|
|
28
|
+
userSignature: _mysten_bcs810.BcsType<Uint8Array<ArrayBufferLike>, Iterable<number>, "vector<u8>">;
|
|
29
29
|
}, string>;
|
|
30
30
|
type ZkLoginSignature = InferBcsInput<typeof zkLoginSignature>;
|
|
31
31
|
type ZkLoginSignatureInputs = ZkLoginSignature['inputs'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bcs.d.mts","names":[],"sources":["../../src/zklogin/bcs.ts"],"mappings":";;;;cAMa,gBAAA,
|
|
1
|
+
{"version":3,"file":"bcs.d.mts","names":[],"sources":["../../src/zklogin/bcs.ts"],"mappings":";;;;cAMa,gBAAA,iBAAgB,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;KAkBjB,gBAAA,GAAmB,aAAA,QAAqB,gBAAA;AAAA,KACxC,sBAAA,GAAyB,gBAAA"}
|
package/package.json
CHANGED
package/src/client/types.ts
CHANGED
|
@@ -88,7 +88,10 @@ export namespace SuiClientTypes {
|
|
|
88
88
|
/**
|
|
89
89
|
* Include the Display v2 rendered output for the object.
|
|
90
90
|
*
|
|
91
|
-
* Returns a map of display field names to their rendered
|
|
91
|
+
* Returns a map of display field names to their rendered values. Most values
|
|
92
|
+
* are strings, but Display v2 templates can produce structured JSON values
|
|
93
|
+
* (objects, arrays) for fields that use the `:json` transform or reference
|
|
94
|
+
* non-string Move types.
|
|
92
95
|
* Returns `null` if the object's type does not have an associated Display template.
|
|
93
96
|
*/
|
|
94
97
|
display?: boolean;
|
|
@@ -181,8 +184,14 @@ export namespace SuiClientTypes {
|
|
|
181
184
|
}
|
|
182
185
|
|
|
183
186
|
export interface Display {
|
|
184
|
-
/**
|
|
185
|
-
|
|
187
|
+
/**
|
|
188
|
+
* Successfully rendered display field values, keyed by field name.
|
|
189
|
+
*
|
|
190
|
+
* Most values are strings, but Display v2 templates can produce structured
|
|
191
|
+
* JSON values (objects, arrays) for fields that reference non-string Move
|
|
192
|
+
* types or use the `:json` transform.
|
|
193
|
+
*/
|
|
194
|
+
output: Record<string, unknown> | null;
|
|
186
195
|
/** Per-field rendering errors, keyed by field name. `null` if all fields succeeded. */
|
|
187
196
|
errors: Record<string, string> | null;
|
|
188
197
|
}
|
package/src/graphql/core.ts
CHANGED
|
@@ -792,7 +792,7 @@ function mapDisplay(
|
|
|
792
792
|
if (!include) return undefined;
|
|
793
793
|
if (!display) return null;
|
|
794
794
|
return {
|
|
795
|
-
output: (display.output as Record<string,
|
|
795
|
+
output: (display.output as Record<string, unknown> | null) ?? null,
|
|
796
796
|
errors: (display.errors as Record<string, string> | null) ?? null,
|
|
797
797
|
};
|
|
798
798
|
}
|
package/src/grpc/core.ts
CHANGED
|
@@ -809,7 +809,7 @@ function mapDisplayProto(
|
|
|
809
809
|
return {
|
|
810
810
|
output:
|
|
811
811
|
display.output !== undefined
|
|
812
|
-
? (Value.toJson(display.output) as Record<string,
|
|
812
|
+
? (Value.toJson(display.output) as Record<string, unknown> | null)
|
|
813
813
|
: null,
|
|
814
814
|
errors:
|
|
815
815
|
display.errors !== undefined
|
package/src/jsonRpc/core.ts
CHANGED
|
@@ -747,7 +747,7 @@ function parseObject<Include extends SuiClientTypes.ObjectInclude = {}>(
|
|
|
747
747
|
|
|
748
748
|
const displayData = include?.display
|
|
749
749
|
? object.display?.data != null
|
|
750
|
-
? { output: object.display.data as Record<string,
|
|
750
|
+
? { output: object.display.data as Record<string, unknown>, errors: null }
|
|
751
751
|
: null
|
|
752
752
|
: undefined;
|
|
753
753
|
|
package/src/version.ts
CHANGED