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