import { DecodedStruct, NestedDecodedStruct } from '@typemove/move' import { EntryFunctionPayloadResponse, MoveResource, Event, WriteSetChangeWriteResource, WriteSetChangeDeleteResource } from '@aptos-labs/ts-sdk' export type TypedEventInstance = DecodedStruct export type TypedMoveResource = DecodedStruct // Don't use intermediate type to make IDE happier export type TypedFunctionPayload> = EntryFunctionPayloadResponse & { /** * decoded argument data using ABI, undefined if there is decoding error, usually because the ABI/data mismatch */ arguments_decoded: T } export type ResourceChange = | NestedDecodedStruct | WriteSetChangeDeleteResource