import type * as core_Address from '../../../core/Address.js' import type * as core_AccountConfig from '../../../tempo/AccountConfig.js' import type * as core_AccountOperation from '../../../tempo/AccountOperation.js' import type * as z from 'zod/mini' import { expectTypeOf, test } from 'vp/test' import * as z_RpcSchemaTempo from '../RpcSchemaTempo.js' test('tempo_simulateV1 has the expected method name', () => { expectTypeOf< typeof z_RpcSchemaTempo.tempo_simulateV1.method >().toEqualTypeOf<'tempo_simulateV1'>() }) test('tempo_simulateV1 params accept a simple call', () => { type Params = z.input expectTypeOf<{ blockStateCalls: readonly { calls?: readonly never[] | undefined }[] }>().toExtend() }) test('Tempo namespace exposes tempo_simulateV1', () => { expectTypeOf().toEqualTypeOf< typeof z_RpcSchemaTempo.tempo_simulateV1 >() }) test('account methods have the expected method names', () => { expectTypeOf< typeof z_RpcSchemaTempo.account_approveKeyAuthorization.method >().toEqualTypeOf<'account_approveKeyAuthorization'>() expectTypeOf< typeof z_RpcSchemaTempo.account_approveRawTransaction.method >().toEqualTypeOf<'account_approveRawTransaction'>() expectTypeOf< typeof z_RpcSchemaTempo.account_approveRawTransactionSync.method >().toEqualTypeOf<'account_approveRawTransactionSync'>() expectTypeOf< typeof z_RpcSchemaTempo.account_getConfig.method >().toEqualTypeOf<'account_getConfig'>() expectTypeOf< typeof z_RpcSchemaTempo.account_getOperation.method >().toEqualTypeOf<'account_getOperation'>() }) test('account_getConfig has the expected request and return types', () => { expectTypeOf< z.input >().toEqualTypeOf<[{ address: core_Address.Address }]>() expectTypeOf< z.output >().toEqualTypeOf() }) test('account return schemas decode RPC operations', () => { expectTypeOf< z.output >().toMatchTypeOf() expectTypeOf< z.output >().toMatchTypeOf() }) test('Account namespace exposes account methods', () => { expectTypeOf< typeof z_RpcSchemaTempo.Account.account_getConfig >().toEqualTypeOf() expectTypeOf< typeof z_RpcSchemaTempo.Account.account_getOperation >().toEqualTypeOf() })