import { HistoryLink } from './entities';

export type NewMetadataInterface = {
  _newAccessId?: string;
  _historyLink?: HistoryLink;
};

export type TrackingMetadataInterface = {
  _trackingId: string;
  _currentAccessId?: string;
  _historyLink?: HistoryLink;
  _historyOrder?: number;
};

export type ContractCallMetadataInterface = {
  _metadata: NewMetadataInterface | TrackingMetadataInterface;
};

export type ContractCallMetadata = {
  trackingId: string | null;
  historyOrder: number | null;
  historyLink: HistoryLink | null;
  accessId: string | null;
};
