@mysten/sui 2.13.2 → 2.13.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.
@@ -1,31 +1,31 @@
1
- import * as _mysten_bcs1118 from "@mysten/bcs";
1
+ import * as _mysten_bcs817 from "@mysten/bcs";
2
2
  import { InferBcsInput } from "@mysten/bcs";
3
3
 
4
4
  //#region src/zklogin/bcs.d.ts
5
- declare const zkLoginSignature: _mysten_bcs1118.BcsStruct<{
6
- inputs: _mysten_bcs1118.BcsStruct<{
7
- proofPoints: _mysten_bcs1118.BcsStruct<{
8
- a: _mysten_bcs1118.BcsType<string[], Iterable<string> & {
5
+ declare const zkLoginSignature: _mysten_bcs817.BcsStruct<{
6
+ inputs: _mysten_bcs817.BcsStruct<{
7
+ proofPoints: _mysten_bcs817.BcsStruct<{
8
+ a: _mysten_bcs817.BcsType<string[], Iterable<string> & {
9
9
  length: number;
10
10
  }, string>;
11
- b: _mysten_bcs1118.BcsType<string[][], Iterable<Iterable<string> & {
11
+ b: _mysten_bcs817.BcsType<string[][], Iterable<Iterable<string> & {
12
12
  length: number;
13
13
  }> & {
14
14
  length: number;
15
15
  }, string>;
16
- c: _mysten_bcs1118.BcsType<string[], Iterable<string> & {
16
+ c: _mysten_bcs817.BcsType<string[], Iterable<string> & {
17
17
  length: number;
18
18
  }, string>;
19
19
  }, string>;
20
- issBase64Details: _mysten_bcs1118.BcsStruct<{
21
- value: _mysten_bcs1118.BcsType<string, string, "string">;
22
- indexMod4: _mysten_bcs1118.BcsType<number, number, "u8">;
20
+ issBase64Details: _mysten_bcs817.BcsStruct<{
21
+ value: _mysten_bcs817.BcsType<string, string, "string">;
22
+ indexMod4: _mysten_bcs817.BcsType<number, number, "u8">;
23
23
  }, string>;
24
- headerBase64: _mysten_bcs1118.BcsType<string, string, "string">;
25
- addressSeed: _mysten_bcs1118.BcsType<string, string, "string">;
24
+ headerBase64: _mysten_bcs817.BcsType<string, string, "string">;
25
+ addressSeed: _mysten_bcs817.BcsType<string, string, "string">;
26
26
  }, string>;
27
- maxEpoch: _mysten_bcs1118.BcsType<string, string | number | bigint, "u64">;
28
- userSignature: _mysten_bcs1118.BcsType<Uint8Array<ArrayBufferLike>, Iterable<number>, "vector<u8>">;
27
+ maxEpoch: _mysten_bcs817.BcsType<string, string | number | bigint, "u64">;
28
+ userSignature: _mysten_bcs817.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,kBAAgB,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;KAkBjB,gBAAA,GAAmB,aAAA,QAAqB,gBAAA;AAAA,KACxC,sBAAA,GAAyB,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
@@ -3,7 +3,7 @@
3
3
  "author": "Mysten Labs <build@mystenlabs.com>",
4
4
  "description": "Sui TypeScript API",
5
5
  "homepage": "https://sdk.mystenlabs.com",
6
- "version": "2.13.2",
6
+ "version": "2.13.3",
7
7
  "license": "Apache-2.0",
8
8
  "sideEffects": false,
9
9
  "files": [
@@ -85,17 +85,15 @@ export async function coreClientResolveTransactionPlugin(
85
85
  }
86
86
 
87
87
  const needsSystemState = needsGasPrice || (needsPayment && usesGasCoin);
88
- const [, systemStateResult, balanceResult, coinsResult, protocolConfigResult, chainIdResult] =
89
- await Promise.all([
90
- normalizeInputs(transactionData, client),
91
- needsSystemState ? client.core.getCurrentSystemState() : null,
92
- needsPayment && gasPayer ? client.core.getBalance({ owner: gasPayer }) : null,
93
- needsPayment && gasPayer
94
- ? client.core.listCoins({ owner: gasPayer, coinType: SUI_TYPE_ARG })
95
- : null,
96
- needsPayment && usesGasCoin ? client.core.getProtocolConfig() : null,
97
- needsPayment && usesGasCoin ? client.core.getChainIdentifier() : null,
98
- ]);
88
+ const [, systemStateResult, balanceResult, coinsResult, chainIdResult] = await Promise.all([
89
+ normalizeInputs(transactionData, client),
90
+ needsSystemState ? client.core.getCurrentSystemState() : null,
91
+ needsPayment && gasPayer ? client.core.getBalance({ owner: gasPayer }) : null,
92
+ needsPayment && gasPayer
93
+ ? client.core.listCoins({ owner: gasPayer, coinType: SUI_TYPE_ARG })
94
+ : null,
95
+ needsPayment && usesGasCoin ? client.core.getChainIdentifier() : null,
96
+ ]);
99
97
 
100
98
  await resolveObjectReferences(transactionData, client);
101
99
 
@@ -120,7 +118,6 @@ export async function coreClientResolveTransactionPlugin(
120
118
  coins: coinsResult,
121
119
  usesGasCoin,
122
120
  withdrawals,
123
- protocolConfig: protocolConfigResult?.protocolConfig,
124
121
  gasPayer: gasPayer!,
125
122
  chainIdentifier: chainIdResult?.chainIdentifier ?? null,
126
123
  epoch: systemState?.epoch ?? null,
@@ -178,7 +175,6 @@ function setGasPayment({
178
175
  coins,
179
176
  usesGasCoin,
180
177
  withdrawals,
181
- protocolConfig,
182
178
  gasPayer,
183
179
  chainIdentifier,
184
180
  epoch,
@@ -188,7 +184,6 @@ function setGasPayment({
188
184
  coins: SuiClientTypes.ListCoinsResponse;
189
185
  usesGasCoin: boolean;
190
186
  withdrawals: bigint;
191
- protocolConfig: SuiClientTypes.ProtocolConfig | undefined;
192
187
  gasPayer: string;
193
188
  chainIdentifier: string | null;
194
189
  epoch: string | null;
@@ -221,13 +216,7 @@ function setGasPayment({
221
216
 
222
217
  const reservationAmount = addressBalance - withdrawals;
223
218
 
224
- if (
225
- usesGasCoin &&
226
- reservationAmount > 0n &&
227
- protocolConfig?.featureFlags?.['enable_coin_reservation_obj_refs'] &&
228
- chainIdentifier &&
229
- epoch
230
- ) {
219
+ if (usesGasCoin && reservationAmount > 0n && chainIdentifier && epoch) {
231
220
  transactionData.gasData.payment = [
232
221
  createCoinReservationRef(reservationAmount, gasPayer, chainIdentifier, epoch),
233
222
  ...paymentCoins,
package/src/version.ts CHANGED
@@ -3,5 +3,5 @@
3
3
 
4
4
  // This file is generated by genversion.mjs. Do not edit it directly.
5
5
 
6
- export const PACKAGE_VERSION = '2.13.2';
6
+ export const PACKAGE_VERSION = '2.13.3';
7
7
  export const TARGETED_RPC_VERSION = '1.70.0';