import { rpcTypes as t } from '../generated'; export type ClientOptions = { retry: { retries: number; delay: number; }; }; export type SendOperationInput = { data: Uint8Array; publicKey: string; signature: string; }; export type EventFilter = { start?: t.Slot; end?: t.Slot; smartContractAddress?: string; callerAddress?: string; operationId?: string; isFinal?: boolean; isError?: boolean; }; export type ExecuteSCReadOnlyParams = { maxGas?: bigint; byteCode: Uint8Array; caller?: string; datastore?: Map; fee?: bigint; }; export type ExecuteSCReadOnlyResult = { executedAt: t.Slot; value: Uint8Array; error?: string; events: t.OutputEvents; gasCost: number; stateChanges: StateChanges; }; export type StateChanges = { ledgerChanges: Record; asyncPoolChanges: Record[]; posChanges: Record; executedOpsChanges: Record; executedDenunciationsChanges: Record; executionTrailHashChange: t.ExecutionTrailHashChange; }; export type ReadOnlyCallResult = { value: Uint8Array; info: { gasCost: number; error?: string; events: t.OutputEvents; stateChanges: StateChanges; }; }; export type DatastoreEntry = { address: string; key: Uint8Array | string; }; export type DatastoreKeysRequest = { address: string; final?: boolean; prefix?: Uint8Array | string; startKey?: Uint8Array | string; inclusiveStartKey?: boolean; endKey?: Uint8Array | string; inclusiveEndKey?: boolean; maxCount?: number; }; export type AddressDatastoreKeys = { address: string; isFinal: boolean; keys: Uint8Array[]; };