Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

All notable changes to the Aptos TypeScript SDK will be captured in this file. This changelog is written by hand for now. It adheres to the format set out by [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

# Unreleased
- Add `is_enum` field to `MoveStruct`.

# 5.1.4 (2025-11-13)
- Add serialization for signed integers

Expand Down
5 changes: 5 additions & 0 deletions src/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1518,6 +1518,11 @@ export type MoveStruct = {
* the Move source code. This attribute is only relevant for v2 events.
*/
is_event: boolean;
/**
* True if the struct is an enum (e.g. enum MyEnum { A, B, C }), false if it is a
* regular struct (e.g. struct MyStruct { a: u8, b: u8 }).
*/
is_enum: boolean;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might want to be `is_enum?: boolean in the short term

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I won't land it until we're live in mainnet.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just an update, it's still not live on testnet. Probably another month or something until mainnet.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's live on testnet now but still not mainnet.

/**
* Abilities associated with the struct
*/
Expand Down
Loading