@mysten/sui 1.4.0 → 1.5.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.
@@ -95,6 +95,10 @@ export type CompressedSignature =
95
95
  | {
96
96
  ZkLogin: string;
97
97
  };
98
+ /** Uses an enum to allow for future expansion of the ConsensusDeterminedVersionAssignments. */
99
+ export type ConsensusDeterminedVersionAssignments = {
100
+ CancelledTransactions: [string, [string, string][]][];
101
+ };
98
102
  export type SuiParsedData =
99
103
  | {
100
104
  dataType: 'moveObject';
@@ -356,13 +360,6 @@ export type InputObjectKind =
356
360
  mutable?: boolean;
357
361
  };
358
362
  };
359
- export interface LoadedChildObject {
360
- objectId: string;
361
- sequenceNumber: string;
362
- }
363
- export interface LoadedChildObjectsResponse {
364
- loadedChildObjects: LoadedChildObject[];
365
- }
366
363
  export interface MoveCallParams {
367
364
  arguments: unknown[];
368
365
  function: string;
@@ -396,7 +393,15 @@ export type MoveValue =
396
393
  id: string;
397
394
  }
398
395
  | MoveStruct
399
- | null;
396
+ | null
397
+ | MoveVariant;
398
+ export interface MoveVariant {
399
+ fields: {
400
+ [key: string]: MoveValue;
401
+ };
402
+ type: string;
403
+ variant: string;
404
+ }
400
405
  /** The struct that contains signatures and public keys necessary for authenticating a MultiSig. */
401
406
  export interface MultiSig {
402
407
  /** A bitmap that indicates the position of which public key the signature should be authenticated with. */
@@ -410,8 +415,8 @@ export interface MultiSig {
410
415
  sigs: CompressedSignature[];
411
416
  }
412
417
  /**
413
- * Deprecated, use [struct MultiSig] instead. The struct that contains signatures and public keys
414
- * necessary for authenticating a MultiSigLegacy.
418
+ * Deprecated, use [struct MultiSig] instead. The struct that contains signatures and public keys necessary
419
+ * for authenticating a MultiSigLegacy.
415
420
  */
416
421
  export interface MultiSigLegacy {
417
422
  /** A bitmap that indicates the position of which public key the signature should be authenticated with. */
@@ -715,6 +720,24 @@ export interface PaginatedTransactionResponse {
715
720
  hasNextPage: boolean;
716
721
  nextCursor?: string | null;
717
722
  }
723
+ /**
724
+ * An passkey authenticator with parsed fields. See field defition below. Can be initialized from
725
+ * [struct RawPasskeyAuthenticator].
726
+ */
727
+ export interface PasskeyAuthenticator {
728
+ /**
729
+ * `authenticatorData` is a bytearray that encodes
730
+ * [Authenticator Data](https://www.w3.org/TR/webauthn-2/#sctn-authenticator-data) structure returned
731
+ * by the authenticator attestation response as is.
732
+ */
733
+ authenticator_data: number[];
734
+ /**
735
+ * `clientDataJSON` contains a JSON-compatible UTF-8 encoded string of the client data which is passed
736
+ * to the authenticator by the client during the authentication request (see
737
+ * [CollectedClientData](https://www.w3.org/TR/webauthn-2/#dictdef-collectedclientdata))
738
+ */
739
+ client_data_json: string;
740
+ }
718
741
  export interface ProtocolConfig {
719
742
  attributes: {
720
743
  [key: string]: ProtocolConfigValue | null;
@@ -738,6 +761,9 @@ export type ProtocolConfigValue =
738
761
  }
739
762
  | {
740
763
  f64: string;
764
+ }
765
+ | {
766
+ bool: string;
741
767
  };
742
768
  export type PublicKey =
743
769
  | {
@@ -751,6 +777,9 @@ export type PublicKey =
751
777
  }
752
778
  | {
753
779
  ZkLogin: string;
780
+ }
781
+ | {
782
+ Passkey: string;
754
783
  };
755
784
  export type RPCTransactionRequestParams =
756
785
  | {
@@ -895,6 +924,12 @@ export type SuiEndOfEpochTransactionKind =
895
924
  }
896
925
  | {
897
926
  AuthenticatorStateExpire: SuiAuthenticatorStateExpire;
927
+ }
928
+ | {
929
+ BridgeStateCreate: string;
930
+ }
931
+ | {
932
+ BridgeCommitteeUpdate: string;
898
933
  };
899
934
  export interface SuiExecutionResult {
900
935
  /** The value of any arguments that were mutably borrowed. Non-mut borrowed values are not included */
@@ -1375,6 +1410,15 @@ export type SuiTransactionBlockKind =
1375
1410
  epoch: string;
1376
1411
  kind: 'ConsensusCommitPrologueV2';
1377
1412
  round: string;
1413
+ }
1414
+ | {
1415
+ commit_timestamp_ms: string;
1416
+ consensus_commit_digest: string;
1417
+ consensus_determined_version_assignments: ConsensusDeterminedVersionAssignments;
1418
+ epoch: string;
1419
+ kind: 'ConsensusCommitPrologueV3';
1420
+ round: string;
1421
+ sub_dag_index?: string | null;
1378
1422
  };
1379
1423
  export interface SuiTransactionBlockResponse {
1380
1424
  balanceChanges?: BalanceChange[] | null;
@@ -1468,9 +1512,9 @@ export interface TransferObjectParams {
1468
1512
  }
1469
1513
  /** Identifies a struct and the module it was defined in */
1470
1514
  export interface TypeOrigin {
1515
+ datatype_name: string;
1471
1516
  module_name: string;
1472
1517
  package: string;
1473
- struct_name: string;
1474
1518
  }
1475
1519
  /** Upgraded package info for the linkage table */
1476
1520
  export interface UpgradeInfo {
@@ -56,7 +56,7 @@ export interface ExecuteTransactionBlockParams {
56
56
  signature: string | string[];
57
57
  /** options for specifying the content to be returned */
58
58
  options?: RpcTypes.SuiTransactionBlockResponseOptions | null | undefined;
59
- /** The request type, derived from `SuiTransactionBlockResponseOptions` if None */
59
+ /** @deprecated requestType will be ignored by JSON RPC in the future */
60
60
  requestType?: RpcTypes.ExecuteTransactionRequestType | null | undefined;
61
61
  }
62
62
  /** Return the first four bytes of the chain's genesis checkpoint digest. */
@@ -85,9 +85,6 @@ export interface GetEventsParams {
85
85
  }
86
86
  /** Return the sequence number of the latest checkpoint that has been executed */
87
87
  export interface GetLatestCheckpointSequenceNumberParams {}
88
- export interface GetLoadedChildObjectsParams {
89
- digest: string;
90
- }
91
88
  /** Return the argument types of a Move function, based on normalized Type. */
92
89
  export interface GetMoveFunctionArgTypesParams {
93
90
  package: string;
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 = '1.4.0';
6
+ export const PACKAGE_VERSION = '1.5.0';
7
7
  export const TARGETED_RPC_VERSION = '1.31.0';