import type { Address } from 'abitype'; import type { TokenId } from 'ox/tempo'; import type { Account } from '../../accounts/types.js'; import type { ReadContractParameters as viem_ReadContractParameters } from '../../actions/public/readContract.js'; import type { WriteContractSyncParameters as viem_WriteContractSyncParameters } from '../../actions/wallet/writeContractSync.js'; import type { Chain } from '../../types/chain.js'; import type { IsUndefined, MaybeRequired, UnionPick } from '../../types/utils.js'; import type { TransactionRequestTempo } from '../Transaction.js'; /** * Selects a TIP20 token by `token`, which is either a TIP20 token id or a * contract `address`. */ export type TokenParameter = { /** Token to operate on: a TIP20 token id or a contract `address`. */ token: TokenId.TokenIdOrAddress; }; export type TokenParameters = TokenParameter & { /** * Decimals used to convert between base units and the human-readable amount. * Inferred from the client's `tokens` array when `token` matches a declared * token; otherwise fetched from the token contract when needed. */ decimals?: number | undefined; }; export type GetAccountParameter = MaybeRequired<{ account?: accountOverride | Account | Address | (nullish extends true ? null : never) | undefined; }, IsUndefined extends true ? required extends true ? true : false : false>; export type ReadParameters = Pick, 'account' | 'blockNumber' | 'blockOverrides' | 'blockTag' | 'stateOverride'>; export type WriteParameters = UnionPick, 'account' | 'chain' | 'gas' | 'maxFeePerGas' | 'maxPriorityFeePerGas' | 'nonce' | 'throwOnReceiptRevert'> & UnionPick; export type WriteSyncParameters = UnionPick, 'pollingInterval' | 'timeout'>; //# sourceMappingURL=types.d.ts.map