Skip to content

Request: Include object types in effects in gRPC (@mysten/sui) #899

Description

@domenicodev

Currently, objectTypes have a different field on the transaction output, and can be enabled or disabled.

Could they be included in effects without any additional fields/toggles required?

To find if an object of a specific type has been created/mutated in a transaction, currently, you'd need to:

  • Filter effects.changedObjects for "required operation" (e.g. "Created")
  • Find the type of the object in objectTypes, by the given ID

Refs:
src/grpc/core.ts:312-314, src/grpc/core.ts:1179-1185: effects from query already include object types, the sdk is "hiding them" if objectTypes: false
src/grpc/core.ts:1098, src/client/types.ts:754: could include back effects here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions