diff --git a/.changeset/shy-carpets-work.md b/.changeset/shy-carpets-work.md new file mode 100644 index 00000000000..d586e39d92c --- /dev/null +++ b/.changeset/shy-carpets-work.md @@ -0,0 +1,6 @@ +--- +'@iota/graphql-transport': minor +'@iota/iota-sdk': minor +--- + +Update move types diff --git a/sdk/graphql-transport/src/generated/queries.ts b/sdk/graphql-transport/src/generated/queries.ts index a41aa30dcd7..d9c3e18b992 100644 --- a/sdk/graphql-transport/src/generated/queries.ts +++ b/sdk/graphql-transport/src/generated/queries.ts @@ -1498,7 +1498,12 @@ export type Epoch = { * epoch. */ transactionBlocks: TransactionBlockConnection; - /** Validator related properties, including the active validators. */ + /** + * Validator related properties, including the active validators. + * + * For epochs other than the current the data provided refer to the start + * of the epoch. + */ validatorSet?: Maybe; }; @@ -5562,14 +5567,17 @@ export type Validator = { operationCap?: Maybe; /** * Pending pool token withdrawn during the current epoch, emptied at epoch - * boundaries. + * boundaries. Zero for past epochs. */ pendingPoolTokenWithdraw?: Maybe; - /** Pending stake amount for this epoch. */ + /** + * Pending stake amount for the current epoch, emptied at epoch boundaries. + * Zero for past epochs. + */ pendingStake?: Maybe; /** * Pending stake withdrawn during the current epoch, emptied at epoch - * boundaries. + * boundaries. Zero for past epochs. */ pendingTotalIotaWithdraw?: Maybe; /** Total number of pool tokens issued by the pool. */ diff --git a/sdk/typescript/src/client/types/generated.ts b/sdk/typescript/src/client/types/generated.ts index 395da8fe2ba..d5216633eef 100644 --- a/sdk/typescript/src/client/types/generated.ts +++ b/sdk/typescript/src/client/types/generated.ts @@ -1081,7 +1081,7 @@ export interface MoveCallMetrics { rank7Days: [MoveFunctionName, string][]; } export interface MoveCallParams { - arguments: unknown[]; + arguments: PtbInput[]; function: string; module: string; packageObjectId: string; @@ -1497,6 +1497,7 @@ export type ProtocolConfigValue = | { bool: string; }; +export type PtbInput = IotaArgument | unknown; export type PublicKey = | { Ed25519: string; diff --git a/sdk/typescript/src/client/types/params.ts b/sdk/typescript/src/client/types/params.ts index f298bb7f5a6..4bf6b49e9b8 100644 --- a/sdk/typescript/src/client/types/params.ts +++ b/sdk/typescript/src/client/types/params.ts @@ -460,7 +460,7 @@ export interface UnsafeMoveCallParams { typeArguments: string[]; /** * the arguments to be passed into the Move function, in - * [IotaJson](/developer/references/iota-api) format + * [IotaJson](https://docs.iota.org/developer/references/iota-api) format */ arguments: unknown[]; /** diff --git a/sdk/typescript/src/graphql/generated/2025.2/schema.graphql b/sdk/typescript/src/graphql/generated/2025.2/schema.graphql index a04b485bae6..59c98bbeba1 100644 --- a/sdk/typescript/src/graphql/generated/2025.2/schema.graphql +++ b/sdk/typescript/src/graphql/generated/2025.2/schema.graphql @@ -1155,6 +1155,9 @@ type Epoch { referenceGasPrice: BigInt """ Validator related properties, including the active validators. + + For epochs other than the current the data provided refer to the start + of the epoch. """ validatorSet: ValidatorSet """ @@ -4754,17 +4757,18 @@ type Validator { """ poolTokenBalance: BigInt """ - Pending stake amount for this epoch. + Pending stake amount for the current epoch, emptied at epoch boundaries. + Zero for past epochs. """ pendingStake: BigInt """ Pending stake withdrawn during the current epoch, emptied at epoch - boundaries. + boundaries. Zero for past epochs. """ pendingTotalIotaWithdraw: BigInt """ Pending pool token withdrawn during the current epoch, emptied at epoch - boundaries. + boundaries. Zero for past epochs. """ pendingPoolTokenWithdraw: BigInt """