import { sendMessage } from '../../messaging'; import { ArgumentDataType, Command } from '../../constants'; export interface InvokeReadMultiArgs { scriptHash: string; operation: string; args?: Argument[]; signers?: Signer[]; network?: string; } interface Signer { account: string; scopes: string; allowedcontracts?: string[]; allowedgroups?: string[]; } interface Argument { type: ArgumentDataType; value: any; } export function invokeReadMulti(data: InvokeReadMultiArgs[]): Promise { return sendMessage({ command: Command.invokeReadMulti, data, }); }