@mysten/sui 2.8.0 → 2.9.1
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 +12 -0
- package/dist/bcs/bcs.d.mts +6 -6
- package/dist/client/core-resolver.mjs +5 -0
- package/dist/client/core-resolver.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/move_package_service.client.d.mts +4 -4
- package/dist/grpc/proto/sui/rpc/v2/signature_verification_service.client.d.mts +4 -4
- package/dist/grpc/proto/sui/rpc/v2/subscription_service.client.d.mts +4 -4
- package/dist/grpc/proto/sui/rpc/v2/transaction_execution_service.client.d.mts +4 -4
- package/dist/transactions/Transaction.d.mts +6 -6
- package/dist/transactions/Transaction.d.mts.map +1 -1
- package/dist/transactions/data/internal.d.mts +109 -109
- package/dist/transactions/data/internal.d.mts.map +1 -1
- package/dist/transactions/data/v1.d.mts +220 -220
- package/dist/transactions/data/v1.d.mts.map +1 -1
- package/dist/utils/constants.d.mts +2 -1
- package/dist/utils/constants.d.mts.map +1 -1
- package/dist/utils/constants.mjs +2 -1
- package/dist/utils/constants.mjs.map +1 -1
- package/dist/utils/index.d.mts +2 -2
- package/dist/utils/index.mjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/version.mjs.map +1 -1
- package/dist/zklogin/bcs.d.mts +14 -14
- package/package.json +1 -1
- package/src/client/core-resolver.ts +15 -0
- package/src/utils/constants.ts +2 -0
- package/src/utils/index.ts +1 -0
- 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'];
|
package/package.json
CHANGED
|
@@ -194,6 +194,10 @@ async function setExpiration(
|
|
|
194
194
|
client: ClientWithCoreApi,
|
|
195
195
|
existingSystemState: SystemStateData | null,
|
|
196
196
|
) {
|
|
197
|
+
if (transactionData.expiration || hasVersionedInputs(transactionData)) {
|
|
198
|
+
return;
|
|
199
|
+
}
|
|
200
|
+
|
|
197
201
|
const [systemState, { chainIdentifier }] = await Promise.all([
|
|
198
202
|
existingSystemState ?? client.core.getCurrentSystemState().then((r) => r.systemState),
|
|
199
203
|
client.core.getChainIdentifier(),
|
|
@@ -213,6 +217,17 @@ async function setExpiration(
|
|
|
213
217
|
};
|
|
214
218
|
}
|
|
215
219
|
|
|
220
|
+
function hasVersionedInputs(transactionData: TransactionDataBuilder): boolean {
|
|
221
|
+
if (transactionData.gasData.payment?.length) {
|
|
222
|
+
return true;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
return transactionData.inputs.some(
|
|
226
|
+
(input) =>
|
|
227
|
+
input.Object?.ImmOrOwnedObject || (input.UnresolvedObject && input.UnresolvedObject.version),
|
|
228
|
+
);
|
|
229
|
+
}
|
|
230
|
+
|
|
216
231
|
async function resolveObjectReferences(
|
|
217
232
|
transactionData: TransactionDataBuilder,
|
|
218
233
|
client: ClientWithCoreApi,
|
package/src/utils/constants.ts
CHANGED
|
@@ -18,5 +18,7 @@ export const SUI_SYSTEM_STATE_OBJECT_ID =
|
|
|
18
18
|
'0x0000000000000000000000000000000000000000000000000000000000000005';
|
|
19
19
|
export const SUI_RANDOM_OBJECT_ID =
|
|
20
20
|
'0x0000000000000000000000000000000000000000000000000000000000000008';
|
|
21
|
+
export const SUI_COIN_REGISTRY_OBJECT_ID =
|
|
22
|
+
'0x000000000000000000000000000000000000000000000000000000000000000c';
|
|
21
23
|
export const SUI_DENY_LIST_OBJECT_ID =
|
|
22
24
|
'0x0000000000000000000000000000000000000000000000000000000000000403';
|
package/src/utils/index.ts
CHANGED
package/src/version.ts
CHANGED