viem
Version:
36 lines (30 loc) • 534 B
text/typescript
import type { Address } from 'abitype'
import type { OneOf } from '../../../types/utils.js'
/** @internal */
export type AccountSigner = {
type: 'account'
data: {
id: Address
}
}
/** @internal */
export type KeySigner = {
type: 'key'
data: {
id: string
}
}
/** @internal */
export type MultiKeySigner = {
type: 'keys'
data: {
ids: string[]
}
}
/** @internal */
export type WalletSigner = {
type: 'wallet'
}
export type Signer = OneOf<
AccountSigner | KeySigner | MultiKeySigner | WalletSigner
>