diff --git a/.changeset/small-icons-smash.md b/.changeset/small-icons-smash.md new file mode 100644 index 0000000000000..8dac4e7f6fda1 --- /dev/null +++ b/.changeset/small-icons-smash.md @@ -0,0 +1,5 @@ +--- +'@mysten/sui': minor +--- + +Add new errors to ExecutionFailureStatus enum diff --git a/sdk/typescript/src/bcs/effects.ts b/sdk/typescript/src/bcs/effects.ts index 37827116ff3cd..944a011fcf93e 100644 --- a/sdk/typescript/src/bcs/effects.ts +++ b/sdk/typescript/src/bcs/effects.ts @@ -105,6 +105,18 @@ const ExecutionFailureStatus = bcs.enum('ExecutionFailureStatus', { SuiMoveVerificationTimedout: null, SharedObjectOperationNotAllowed: null, InputObjectDeleted: null, + ExecutionCancelledDueToSharedObjectCongestion: bcs.struct( + 'ExecutionCancelledDueToSharedObjectCongestion', + { + congestedObjects: bcs.vector(Address), + }, + ), + AddressDeniedForCoin: bcs.struct('AddressDeniedForCoin', { + address: Address, + coinType: bcs.string(), + }), + CoinTypeGlobalPause: bcs.struct('CoinTypeGlobalPause', { coinType: bcs.string() }), + ExecutionCancelledDueToRandomnessUnavailable: null, }); const ExecutionStatus = bcs.enum('ExecutionStatus', {