@@ -41,13 +41,6 @@ export interface BalanceChange {
4141 /** Owner of the balance change */
4242 owner : ObjectOwner ;
4343}
44- export type CallArg =
45- | {
46- Pure : number [ ] ;
47- }
48- | {
49- Object : ObjectArg ;
50- } ;
5144export interface Checkpoint {
5245 /** Commitments to checkpoint state */
5346 checkpointCommitments : CheckpointCommitment [ ] ;
@@ -96,24 +89,6 @@ export interface CommitteeInfo {
9689 epoch : string ;
9790 validators : [ string , string ] [ ] ;
9891}
99- /** Unlike [enum Signature], [enum CompressedSignature] does not contain public key. */
100- export type CompressedSignature =
101- | {
102- Ed25519 : string ;
103- }
104- | {
105- Secp256k1 : string ;
106- }
107- | {
108- Secp256r1 : string ;
109- }
110- | 'ZkLoginDeprecated'
111- | {
112- Passkey : string ;
113- }
114- | {
115- Move : string ;
116- } ;
11792/** Uses an enum to allow for future expansion of the ConsensusDeterminedVersionAssignments. */
11893export type ConsensusDeterminedVersionAssignments = {
11994 CancelledTransactions : [ string , [ string , string ] [ ] ] [ ] ;
@@ -147,7 +122,7 @@ export interface DevInspectArgs {
147122 /** The gas budget for the transaction. */
148123 gasBudget ?: string | null ;
149124 /** The gas objects used to pay for the transaction. */
150- gasObjects ?: [ string , string , string ] [ ] | null ;
125+ gasObjects ?: IotaObjectRef [ ] | null ;
151126 /** The sponsor of the gas for the transaction, might be different from the sender. */
152127 gasSponsor ?: string | null ;
153128 /** Whether to return the raw transaction data and effects. */
@@ -409,13 +384,15 @@ export type ExecutionStatus = {
409384 error ?: string ;
410385} ;
411386/**
412- * Summary of the charges in a transaction. Storage is charged independently of computation. There are
413- * 3 parts to the storage charges: `storage_cost`: it is the charge of storage at the time the
414- * transaction is executed. The cost of storage is the number of bytes of the objects being mutated
415- * multiplied by a variable storage cost per byte `storage_rebate`: this is the amount a user gets back
416- * when manipulating an object. The `storage_rebate` is the `storage_cost` for an object minus fees.
417- * `non_refundable_storage_fee`: not all the value of the object storage cost is given back to user and
418- * there is a small fraction that is kept by the system. This value tracks that charge.
387+ * Summary of gas charges.
388+ *
389+ * Storage is charged independently of computation. There are 3 parts to the storage charges: -
390+ * `storage_cost`: it is the charge of storage at the time the transaction is executed. The cost of
391+ * storage is the number of bytes of the objects being mutated multiplied by a variable storage cost
392+ * per byte - `storage_rebate`: this is the amount a user gets back when manipulating an object. The
393+ * `storage_rebate` is the `storage_cost` for an object minus fees. - `non_refundable_storage_fee`: not
394+ * all the value of the object storage cost is given back to user and there is a small fraction that is
395+ * kept by the system. This value tracks that charge.
419396 *
420397 * When looking at a gas cost summary the amount charged to the user is
421398 * `computation_cost + storage_cost - storage_rebate` and that is the amount that is deducted from the
@@ -745,9 +722,8 @@ export type IotaSystemStateSummary =
745722 } ;
746723/**
747724 * This is the JSON-RPC type for the
748- * [`IotaSystemStateV1`](super::iota_system_state_inner_v1::IotaSystemStateV1) object. It flattens all
749- * fields to make them top-level fields such that it as minimum dependencies to the internal data
750- * structures of the IOTA system state type.
725+ * [`IotaSystemStateSummaryV1`](iota_types::iota_system_state::iota_system_state_summary::IotaSystemStateSummaryV1)
726+ * object.
751727 */
752728export interface IotaSystemStateSummaryV1 {
753729 /** The list of active validators in the current epoch. */
@@ -850,9 +826,8 @@ export interface IotaSystemStateSummaryV1 {
850826}
851827/**
852828 * This is the JSON-RPC type for the
853- * [`IotaSystemStateV2`](super::iota_system_state_inner_v2::IotaSystemStateV2) object. It flattens all
854- * fields to make them top-level fields such that it as minimum dependencies to the internal data
855- * structures of the IOTA system state type.
829+ * [`IotaSystemStateSummaryV2`](iota_types::iota_system_state::iota_system_state_summary::IotaSystemStateSummaryV2)
830+ * object.
856831 */
857832export interface IotaSystemStateSummaryV2 {
858833 /** The list of active validators in the current epoch. */
@@ -1015,19 +990,8 @@ export type IotaTransactionKind =
1015990 */
1016991export interface IotaValidatorSummary {
1017992 authorityPubkeyBytes : string ;
1018- /**
1019- * The fee set by the validator for providing staking services.
1020- *
1021- * This might be overridden by the protocol, that uses instead an effective commission rate. See more
1022- * on the associated field.
1023- */
1024993 commissionRate : string ;
1025994 description : string ;
1026- /**
1027- * The effective fee charged by the validator for staking services.
1028- *
1029- * This follows [IIP8](https://github.com/iotaledger/IIPs/blob/main/iips/IIP-0008/IIP-0008.md).
1030- */
1031995 effectiveCommissionRate ?: string | null ;
1032996 /** ID of the exchange rate table object. */
1033997 exchangeRatesId : string ;
@@ -1075,23 +1039,6 @@ export interface IotaValidatorSummary {
10751039 stakingPoolIotaBalance : string ;
10761040 votingPower : string ;
10771041}
1078- /**
1079- * MoveAuthenticator is a GenericSignature variant that enables a new method of authentication through
1080- * Move code. This function represents the data received by the Move authenticate function during the
1081- * Account Abstraction authentication flow.
1082- */
1083- export type MoveAuthenticator = {
1084- V1 : MoveAuthenticatorV1 ;
1085- } ;
1086- /** MoveAuthenticatorV1 is the first version of MoveAuthenticator. */
1087- export interface MoveAuthenticatorV1 {
1088- /** Input objects or primitive values */
1089- call_args : CallArg [ ] ;
1090- /** The object that is authenticated. Represents the account being the sender of the transaction. */
1091- object_to_authenticate : CallArg ;
1092- /** Type arguments for the Move authenticate function */
1093- type_arguments : string [ ] ;
1094- }
10951042export interface MoveCallMetrics {
10961043 /** The count of calls of each function in the last 30 days. */
10971044 rank30Days : [ MoveFunctionName , string ] [ ] ;
@@ -1151,28 +1098,6 @@ export interface MoveVariant {
11511098 type : string ;
11521099 variant : string ;
11531100}
1154- /** The struct that contains signatures and public keys necessary for authenticating a MultiSig. */
1155- export interface MultiSig {
1156- /** A bitmap that indicates the position of which public key the signature should be authenticated with. */
1157- bitmap : number ;
1158- /**
1159- * The public key encoded with each public key with its signature scheme used along with the
1160- * corresponding weight.
1161- */
1162- multisig_pk : MultiSigPublicKey ;
1163- /** The plain signature encoded with signature scheme. */
1164- sigs : CompressedSignature [ ] ;
1165- }
1166- /** The struct that contains the public key used for authenticating a MultiSig. */
1167- export interface MultiSigPublicKey {
1168- /** A list of public key and its corresponding weight. */
1169- pk_map : [ PublicKey , number ] [ ] ;
1170- /**
1171- * If the total weight of the public keys corresponding to verified signatures is larger than
1172- * threshold, the MultiSig is verified.
1173- */
1174- threshold : number ;
1175- }
11761101export interface NetworkMetrics {
11771102 /** Current checkpoint number */
11781103 currentCheckpoint : string ;
@@ -1189,20 +1114,6 @@ export interface NetworkMetrics {
11891114 /** Peak TPS in the past 30 days */
11901115 tps30Days : number ;
11911116}
1192- export type ObjectArg =
1193- | {
1194- ImmOrOwnedObject : [ string , string , string ] ;
1195- }
1196- | {
1197- SharedObject : {
1198- id : string ;
1199- initial_shared_version : string ;
1200- mutable : boolean ;
1201- } ;
1202- }
1203- | {
1204- Receiving : [ string , string , string ] ;
1205- } ;
12061117/**
12071118 * ObjectChange are derived from the object mutations in the TransactionEffect to provide richer object
12081119 * information.
@@ -1392,6 +1303,18 @@ export interface OwnedObjectRef {
13921303 owner : ObjectOwner ;
13931304 reference : IotaObjectRef ;
13941305}
1306+ /**
1307+ * Enum of different types of ownership for an object.
1308+ *
1309+ * # BCS
1310+ *
1311+ * The BCS serialized form for this type is defined by the following ABNF:
1312+ *
1313+ * ````text owner = owner-address / owner-object / owner-shared / owner-immutable
1314+ *
1315+ * owner-address = %x00 address owner-object = %x01 object-id owner-shared = %x02 u64 owner-immutable = %x03 ```
1316+ * ````
1317+ */
13951318export type ObjectOwner =
13961319 /** Object is exclusively owned by a single address, and is mutable. */
13971320 | {
@@ -1495,24 +1418,6 @@ export interface ParticipationMetrics {
14951418 /** The count of distinct addresses with delegated stake. */
14961419 totalAddresses : string ;
14971420}
1498- /**
1499- * An passkey authenticator with parsed fields. See field definition below. Can be initialized from
1500- * [struct RawPasskeyAuthenticator].
1501- */
1502- export interface PasskeyAuthenticator {
1503- /**
1504- * `authenticatorData` is a bytearray that encodes
1505- * [Authenticator Data](https://www.w3.org/TR/webauthn-2/#sctn-authenticator-data) structure returned
1506- * by the authenticator attestation response as is.
1507- */
1508- authenticator_data : number [ ] ;
1509- /**
1510- * `clientDataJSON` contains a JSON-compatible UTF-8 encoded string of the client data which is passed
1511- * to the authenticator by the client during the authentication request (see
1512- * [CollectedClientData](https://www.w3.org/TR/webauthn-2/#dictdef-collectedclientdata))
1513- */
1514- client_data_json : string ;
1515- }
15161421export interface ProtocolConfig {
15171422 attributes : {
15181423 [ key : string ] : ProtocolConfigValue | null ;
@@ -1541,20 +1446,6 @@ export type ProtocolConfigValue =
15411446 bool : string ;
15421447 } ;
15431448export type PtbInput = IotaArgument | unknown ;
1544- export type PublicKey =
1545- | {
1546- Ed25519 : string ;
1547- }
1548- | {
1549- Secp256k1 : string ;
1550- }
1551- | {
1552- Secp256r1 : string ;
1553- }
1554- | 'ZkLoginDeprecated'
1555- | {
1556- Passkey : string ;
1557- } ;
15581449export type RPCTransactionRequestParams =
15591450 | {
15601451 transferObjectRequestParams : TransferObjectParams ;
@@ -1581,16 +1472,6 @@ export type RawData =
15811472 typeOriginTable : TypeOrigin [ ] ;
15821473 version : string ;
15831474 } ;
1584- export type Signature =
1585- | {
1586- Ed25519IotaSignature : string ;
1587- }
1588- | {
1589- Secp256k1IotaSignature : string ;
1590- }
1591- | {
1592- Secp256r1IotaSignature : string ;
1593- } ;
15941475export type StakeObject =
15951476 | {
15961477 principal : string ;
0 commit comments