UNPKG

eros-sdk-react

Version:

eros sdk

843 lines (835 loc) 407 kB
import { M as MyResponseType } from './request-B0CyrGFT.js'; import { l as ISocialLoginMethod, m as OverviewInfo, C as CEXType, n as LoginMethodType, I as IMatchEvents, o as ChainType, p as UserChainType, A as Address, H as Hash$1, q as AnyObject, r as UserTransactionType, u as useMatchWalletAssetsProps, s as UserImportTokenType, t as UserAssetToken, g as WalletAssetMergeType } from './types-BrVeC0c8.js'; import * as viem from 'viem'; import { SignableMessage, Hex, TransactionSerializable, Account, WalletClientConfig, createWalletClient, SendTransactionParameters, DeployContractParameters, WriteContractParameters, Chain } from 'viem'; import { Hash } from 'viem/types/misc'; import { Abi } from 'abitype'; import * as react_jsx_runtime from 'react/jsx-runtime'; import React__default, { ReactNode } from 'react'; import * as viem__types_actions_siwe_verifySiweMessage from 'viem/_types/actions/siwe/verifySiweMessage'; import * as viem__types_utils_ccip from 'viem/_types/utils/ccip'; import * as _tanstack_react_query from '@tanstack/react-query'; interface ModalProps { close: () => void; zIndex: number; } interface ModalContextType { show: (content: React__default.FC<ModalProps>, index?: number) => void; open: (props: { title: ReactNode; content: React__default.ComponentType<{ close: () => void; zIndex: number; }>; index?: number; }) => void; } declare function ModalProvider({ children }: { children: ReactNode; }): react_jsx_runtime.JSX.Element; declare function useModal(): ModalContextType; interface ToastContextType { show: (options: { icon?: ReactNode; timeout?: number; text: ReactNode; }) => void; success: (text: ReactNode, timeout?: number) => void; error: (text: ReactNode, timeout?: number) => void; } declare function ToastProvider({ children, zIndex }: { children: ReactNode; zIndex?: number; }): react_jsx_runtime.JSX.Element; declare function useToast(): ToastContextType; declare const LOGIN_METHOD_MAP: { email: string; evm: string; sol: string; btc: string; ton: string; tron: string; google: string; facebook: string; x: string; telegram: string; github: string; discord: string; linkedin: string; youtube: string; }; declare function useUserInfo(): { loginByMethod: (method: ISocialLoginMethod) => Promise<Window | null>; loginByTelegram: () => Promise<Window | null | undefined>; loginByTwitter: () => Promise<Window | null>; loginByGoogle: () => Promise<Window | null>; loginByWallet: () => Promise<Window | null>; loginByEmail: ({ email, code }: { email: string; code: string; }) => Promise<boolean>; bindWallet: () => Promise<Window | null>; bindTelegram: () => Promise<void>; token: string; mid: string; did: string; address: string; isLogin: boolean; logout: () => Promise<void>; getLoginEmailCode: (email: string) => Promise<string>; refreshOverview: () => Promise<void>; overview: OverviewInfo | null; bindCex: (type: CEXType) => void; username: string; auth: () => Promise<any>; login: (method: LoginMethodType | "wallet", extra?: { [key: string]: any; }) => Promise<string | void | Window | null>; bind: (method: LoginMethodType | "wallet", extra?: { [key: string]: any; }) => Promise<string | void | Window | null>; getAuthInfo: (method: keyof typeof LOGIN_METHOD_MAP) => Promise<unknown>; invite: (invite_code: string) => Promise<MyResponseType<any>>; }; declare function useMatchEvents(handlers: IMatchEvents): void; type isRecoveredType = () => Promise<boolean>; type signMessageType = (params: { message: SignableMessage; chainType?: ChainType; }) => Promise<Hex>; type signTransactionType = (params: { transaction: TransactionSerializable; chainType?: ChainType; chain: { id: number; name: string; nativeCurrency: { name: string; symbol: string; decimals: number; }; rpcUrls: { [key: string]: any; }; }; }) => Promise<`0x02${string}` | `0x01${string}` | `0x03${string}` | `0x04${string}` | viem.TransactionSerializedLegacy>; type SendTransactionReturnType = Hash; type SendTransactionParametersType = Omit<SendTransactionParameters, 'account'>; type SendTransactionType = (transaction: SendTransactionParametersType) => Promise<SendTransactionReturnType>; type DeployContractReturnType = SendTransactionReturnType; type DeployContractType = <const abi extends Abi | readonly unknown[]>(parameters: DeployContractParameters<abi>) => Promise<DeployContractReturnType>; type WriteContractParametersType = Omit<WriteContractParameters, 'account' | 'chain'> & { chain?: Chain; }; type WriteContractReturnType = SendTransactionReturnType; type WriteContractType = (params: WriteContractParametersType) => Promise<WriteContractReturnType>; interface UseWalletReturnType { walletReady: boolean; isRecovered: isRecoveredType; signMessage: signMessageType; signTransaction: signTransactionType; address: string; evmAccount: Account | undefined; createWalletClient: (parameters: Omit<WalletClientConfig, 'account'>) => Omit<ReturnType<typeof createWalletClient>, 'sendTransaction' | 'deployContract' | 'writeContract'> & { sendTransaction: SendTransactionType; deployContract: DeployContractType; writeContract: WriteContractType; } | undefined; } declare function useWallet(): UseWalletReturnType; declare function useCopyClipboard(timeout?: number): [boolean, (toCopy: string) => void]; declare function useMatchChain(): { list: UserChainType[] | undefined; chainId: number | null; setChainId: (chainId: number) => void; chain: UserChainType | null | undefined; explorerLink: (url: string) => string; showChangeNetwork: () => void; publicClient: { account: undefined; batch?: { multicall?: boolean | viem.Prettify<viem.MulticallBatchOptions> | undefined; } | undefined; cacheTime: number; ccipRead?: false | { request?: (parameters: viem.CcipRequestParameters) => Promise<viem__types_utils_ccip.CcipRequestReturnType>; } | undefined; chain: UserChainType; experimental_blockTag?: viem.BlockTag | undefined; key: string; name: string; pollingInterval: number; request: viem.EIP1193RequestFn<viem.PublicRpcSchema>; transport: viem.TransportConfig<"http", viem.EIP1193RequestFn> & { fetchOptions?: viem.HttpTransportConfig["fetchOptions"] | undefined; url?: string | undefined; }; type: string; uid: string; call: (parameters: viem.CallParameters<UserChainType>) => Promise<viem.CallReturnType>; createAccessList: (parameters: viem.CreateAccessListParameters<UserChainType>) => Promise<{ accessList: viem.AccessList; gasUsed: bigint; }>; createBlockFilter: () => Promise<viem.CreateBlockFilterReturnType>; createContractEventFilter: <const abi extends viem.Abi | readonly unknown[], eventName extends viem.ContractEventName<abi> | undefined, args extends viem.MaybeExtractEventArgsFromAbi<abi, eventName> | undefined, strict extends boolean | undefined = undefined, fromBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined, toBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined>(args: viem.CreateContractEventFilterParameters<abi, eventName, args, strict, fromBlock, toBlock>) => Promise<viem.CreateContractEventFilterReturnType<abi, eventName, args, strict, fromBlock, toBlock>>; createEventFilter: <const abiEvent extends viem.AbiEvent | undefined = undefined, const abiEvents extends readonly viem.AbiEvent[] | readonly unknown[] | undefined = abiEvent extends viem.AbiEvent ? [abiEvent] : undefined, strict extends boolean | undefined = undefined, fromBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined, toBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined, _EventName extends string | undefined = viem.MaybeAbiEventName<abiEvent>, _Args extends viem.MaybeExtractEventArgsFromAbi<abiEvents, _EventName> | undefined = undefined>(args?: viem.CreateEventFilterParameters<abiEvent, abiEvents, strict, fromBlock, toBlock, _EventName, _Args> | undefined) => Promise<viem.CreateEventFilterReturnType<abiEvent, abiEvents, strict, fromBlock, toBlock, _EventName, _Args>>; createPendingTransactionFilter: () => Promise<viem.CreatePendingTransactionFilterReturnType>; estimateContractGas: <chain extends viem.Chain | undefined, const abi extends viem.Abi | readonly unknown[], functionName extends viem.ContractFunctionName<abi, "nonpayable" | "payable">, args extends viem.ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>>(args: viem.EstimateContractGasParameters<abi, functionName, args, chain>) => Promise<viem.EstimateContractGasReturnType>; estimateGas: (args: viem.EstimateGasParameters<UserChainType>) => Promise<viem.EstimateGasReturnType>; getBalance: (args: viem.GetBalanceParameters) => Promise<viem.GetBalanceReturnType>; getBlobBaseFee: () => Promise<viem.GetBlobBaseFeeReturnType>; getBlock: <includeTransactions extends boolean = false, blockTag extends viem.BlockTag = "latest">(args?: viem.GetBlockParameters<includeTransactions, blockTag> | undefined) => Promise<{ number: blockTag extends "pending" ? null : bigint; nonce: blockTag extends "pending" ? null : `0x${string}`; size: bigint; hash: blockTag extends "pending" ? null : `0x${string}`; logsBloom: blockTag extends "pending" ? null : `0x${string}`; baseFeePerGas: bigint | null; blobGasUsed: bigint; difficulty: bigint; excessBlobGas: bigint; extraData: viem.Hex; gasLimit: bigint; gasUsed: bigint; miner: viem.Address; mixHash: viem.Hash; parentBeaconBlockRoot?: `0x${string}` | undefined; parentHash: viem.Hash; receiptsRoot: viem.Hex; sealFields: viem.Hex[]; sha3Uncles: viem.Hash; stateRoot: viem.Hash; timestamp: bigint; totalDifficulty: bigint | null; transactionsRoot: viem.Hash; uncles: viem.Hash[]; withdrawals?: viem.Withdrawal[] | undefined | undefined; withdrawalsRoot?: `0x${string}` | undefined; transactions: includeTransactions extends true ? ({ type: "legacy"; nonce: number; chainId?: number | undefined; s: viem.Hex; r: viem.Hex; value: bigint; input: viem.Hex; v: bigint; yParity?: undefined | undefined; from: viem.Address; gas: bigint; hash: viem.Hash; to: viem.Address | null; typeHex: viem.Hex | null; accessList?: undefined | undefined; authorizationList?: undefined | undefined; blobVersionedHashes?: undefined | undefined; gasPrice: bigint; maxFeePerBlobGas?: undefined | undefined; maxFeePerGas?: undefined | undefined; maxPriorityFeePerGas?: undefined | undefined; blockHash: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : `0x${string}` : never : never; blockNumber: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : bigint : never : never; transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never; } | { type: "eip2930"; nonce: number; chainId: number; s: viem.Hex; r: viem.Hex; value: bigint; input: viem.Hex; v: bigint; yParity: number; from: viem.Address; gas: bigint; hash: viem.Hash; to: viem.Address | null; typeHex: viem.Hex | null; accessList: viem.AccessList; authorizationList?: undefined | undefined; blobVersionedHashes?: undefined | undefined; gasPrice: bigint; maxFeePerBlobGas?: undefined | undefined; maxFeePerGas?: undefined | undefined; maxPriorityFeePerGas?: undefined | undefined; blockHash: (blockTag extends "pending" ? true : false) extends infer T_3 ? T_3 extends (blockTag extends "pending" ? true : false) ? T_3 extends true ? null : `0x${string}` : never : never; blockNumber: (blockTag extends "pending" ? true : false) extends infer T_4 ? T_4 extends (blockTag extends "pending" ? true : false) ? T_4 extends true ? null : bigint : never : never; transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_5 ? T_5 extends (blockTag extends "pending" ? true : false) ? T_5 extends true ? null : number : never : never; } | { type: "eip1559"; nonce: number; chainId: number; s: viem.Hex; r: viem.Hex; value: bigint; input: viem.Hex; v: bigint; yParity: number; from: viem.Address; gas: bigint; hash: viem.Hash; to: viem.Address | null; typeHex: viem.Hex | null; accessList: viem.AccessList; authorizationList?: undefined | undefined; blobVersionedHashes?: undefined | undefined; gasPrice?: undefined | undefined; maxFeePerBlobGas?: undefined | undefined; maxFeePerGas: bigint; maxPriorityFeePerGas: bigint; blockHash: (blockTag extends "pending" ? true : false) extends infer T_6 ? T_6 extends (blockTag extends "pending" ? true : false) ? T_6 extends true ? null : `0x${string}` : never : never; blockNumber: (blockTag extends "pending" ? true : false) extends infer T_7 ? T_7 extends (blockTag extends "pending" ? true : false) ? T_7 extends true ? null : bigint : never : never; transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_8 ? T_8 extends (blockTag extends "pending" ? true : false) ? T_8 extends true ? null : number : never : never; } | { type: "eip4844"; nonce: number; chainId: number; s: viem.Hex; r: viem.Hex; value: bigint; input: viem.Hex; v: bigint; yParity: number; from: viem.Address; gas: bigint; hash: viem.Hash; to: viem.Address | null; typeHex: viem.Hex | null; accessList: viem.AccessList; authorizationList?: undefined | undefined; blobVersionedHashes: readonly viem.Hex[]; gasPrice?: undefined | undefined; maxFeePerBlobGas: bigint; maxFeePerGas: bigint; maxPriorityFeePerGas: bigint; blockHash: (blockTag extends "pending" ? true : false) extends infer T_9 ? T_9 extends (blockTag extends "pending" ? true : false) ? T_9 extends true ? null : `0x${string}` : never : never; blockNumber: (blockTag extends "pending" ? true : false) extends infer T_10 ? T_10 extends (blockTag extends "pending" ? true : false) ? T_10 extends true ? null : bigint : never : never; transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_11 ? T_11 extends (blockTag extends "pending" ? true : false) ? T_11 extends true ? null : number : never : never; } | { type: "eip7702"; nonce: number; chainId: number; s: viem.Hex; r: viem.Hex; value: bigint; input: viem.Hex; v: bigint; yParity: number; from: viem.Address; gas: bigint; hash: viem.Hash; to: viem.Address | null; typeHex: viem.Hex | null; accessList: viem.AccessList; authorizationList: viem.SignedAuthorizationList; blobVersionedHashes?: undefined | undefined; gasPrice?: undefined | undefined; maxFeePerBlobGas?: undefined | undefined; maxFeePerGas: bigint; maxPriorityFeePerGas: bigint; blockHash: (blockTag extends "pending" ? true : false) extends infer T_12 ? T_12 extends (blockTag extends "pending" ? true : false) ? T_12 extends true ? null : `0x${string}` : never : never; blockNumber: (blockTag extends "pending" ? true : false) extends infer T_13 ? T_13 extends (blockTag extends "pending" ? true : false) ? T_13 extends true ? null : bigint : never : never; transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_14 ? T_14 extends (blockTag extends "pending" ? true : false) ? T_14 extends true ? null : number : never : never; })[] : `0x${string}`[]; }>; getBlockNumber: (args?: viem.GetBlockNumberParameters | undefined) => Promise<viem.GetBlockNumberReturnType>; getBlockTransactionCount: (args?: viem.GetBlockTransactionCountParameters | undefined) => Promise<viem.GetBlockTransactionCountReturnType>; getBytecode: (args: viem.GetBytecodeParameters) => Promise<viem.GetBytecodeReturnType>; getChainId: () => Promise<viem.GetChainIdReturnType>; getCode: (args: viem.GetBytecodeParameters) => Promise<viem.GetBytecodeReturnType>; getContractEvents: <const abi extends viem.Abi | readonly unknown[], eventName extends viem.ContractEventName<abi> | undefined = undefined, strict extends boolean | undefined = undefined, fromBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined, toBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined>(args: viem.GetContractEventsParameters<abi, eventName, strict, fromBlock, toBlock>) => Promise<viem.GetContractEventsReturnType<abi, eventName, strict, fromBlock, toBlock>>; getEip712Domain: (args: viem.GetEip712DomainParameters) => Promise<viem.GetEip712DomainReturnType>; getEnsAddress: (args: viem.GetEnsAddressParameters) => Promise<viem.GetEnsAddressReturnType>; getEnsAvatar: (args: viem.GetEnsAvatarParameters) => Promise<viem.GetEnsAvatarReturnType>; getEnsName: (args: viem.GetEnsNameParameters) => Promise<viem.GetEnsNameReturnType>; getEnsResolver: (args: viem.GetEnsResolverParameters) => Promise<viem.GetEnsResolverReturnType>; getEnsText: (args: viem.GetEnsTextParameters) => Promise<viem.GetEnsTextReturnType>; getFeeHistory: (args: viem.GetFeeHistoryParameters) => Promise<viem.GetFeeHistoryReturnType>; estimateFeesPerGas: <chainOverride extends viem.Chain | undefined = undefined, type extends viem.FeeValuesType = "eip1559">(args?: viem.EstimateFeesPerGasParameters<UserChainType, chainOverride, type> | undefined) => Promise<viem.EstimateFeesPerGasReturnType<type>>; getFilterChanges: <filterType extends viem.FilterType, const abi extends viem.Abi | readonly unknown[] | undefined, eventName extends string | undefined, strict extends boolean | undefined = undefined, fromBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined, toBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined>(args: viem.GetFilterChangesParameters<filterType, abi, eventName, strict, fromBlock, toBlock>) => Promise<viem.GetFilterChangesReturnType<filterType, abi, eventName, strict, fromBlock, toBlock>>; getFilterLogs: <const abi extends viem.Abi | readonly unknown[] | undefined, eventName extends string | undefined, strict extends boolean | undefined = undefined, fromBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined, toBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined>(args: viem.GetFilterLogsParameters<abi, eventName, strict, fromBlock, toBlock>) => Promise<viem.GetFilterLogsReturnType<abi, eventName, strict, fromBlock, toBlock>>; getGasPrice: () => Promise<viem.GetGasPriceReturnType>; getLogs: <const abiEvent extends viem.AbiEvent | undefined = undefined, const abiEvents extends readonly viem.AbiEvent[] | readonly unknown[] | undefined = abiEvent extends viem.AbiEvent ? [abiEvent] : undefined, strict extends boolean | undefined = undefined, fromBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined, toBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined>(args?: viem.GetLogsParameters<abiEvent, abiEvents, strict, fromBlock, toBlock> | undefined) => Promise<viem.GetLogsReturnType<abiEvent, abiEvents, strict, fromBlock, toBlock>>; getProof: (args: viem.GetProofParameters) => Promise<viem.GetProofReturnType>; estimateMaxPriorityFeePerGas: <chainOverride extends viem.Chain | undefined = undefined>(args?: { chain?: chainOverride | null | undefined; } | undefined) => Promise<viem.EstimateMaxPriorityFeePerGasReturnType>; getStorageAt: (args: viem.GetStorageAtParameters) => Promise<viem.GetStorageAtReturnType>; getTransaction: <blockTag extends viem.BlockTag = "latest">(args: viem.GetTransactionParameters<blockTag>) => Promise<{ type: "legacy"; nonce: number; chainId?: number | undefined; s: viem.Hex; r: viem.Hex; value: bigint; input: viem.Hex; v: bigint; yParity?: undefined | undefined; from: viem.Address; gas: bigint; hash: viem.Hash; to: viem.Address | null; typeHex: viem.Hex | null; accessList?: undefined | undefined; authorizationList?: undefined | undefined; blobVersionedHashes?: undefined | undefined; gasPrice: bigint; maxFeePerBlobGas?: undefined | undefined; maxFeePerGas?: undefined | undefined; maxPriorityFeePerGas?: undefined | undefined; blockHash: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : `0x${string}` : never : never; blockNumber: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : bigint : never : never; transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never; } | { type: "eip2930"; nonce: number; chainId: number; s: viem.Hex; r: viem.Hex; value: bigint; input: viem.Hex; v: bigint; yParity: number; from: viem.Address; gas: bigint; hash: viem.Hash; to: viem.Address | null; typeHex: viem.Hex | null; accessList: viem.AccessList; authorizationList?: undefined | undefined; blobVersionedHashes?: undefined | undefined; gasPrice: bigint; maxFeePerBlobGas?: undefined | undefined; maxFeePerGas?: undefined | undefined; maxPriorityFeePerGas?: undefined | undefined; blockHash: (blockTag extends "pending" ? true : false) extends infer T_3 ? T_3 extends (blockTag extends "pending" ? true : false) ? T_3 extends true ? null : `0x${string}` : never : never; blockNumber: (blockTag extends "pending" ? true : false) extends infer T_4 ? T_4 extends (blockTag extends "pending" ? true : false) ? T_4 extends true ? null : bigint : never : never; transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_5 ? T_5 extends (blockTag extends "pending" ? true : false) ? T_5 extends true ? null : number : never : never; } | { type: "eip1559"; nonce: number; chainId: number; s: viem.Hex; r: viem.Hex; value: bigint; input: viem.Hex; v: bigint; yParity: number; from: viem.Address; gas: bigint; hash: viem.Hash; to: viem.Address | null; typeHex: viem.Hex | null; accessList: viem.AccessList; authorizationList?: undefined | undefined; blobVersionedHashes?: undefined | undefined; gasPrice?: undefined | undefined; maxFeePerBlobGas?: undefined | undefined; maxFeePerGas: bigint; maxPriorityFeePerGas: bigint; blockHash: (blockTag extends "pending" ? true : false) extends infer T_6 ? T_6 extends (blockTag extends "pending" ? true : false) ? T_6 extends true ? null : `0x${string}` : never : never; blockNumber: (blockTag extends "pending" ? true : false) extends infer T_7 ? T_7 extends (blockTag extends "pending" ? true : false) ? T_7 extends true ? null : bigint : never : never; transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_8 ? T_8 extends (blockTag extends "pending" ? true : false) ? T_8 extends true ? null : number : never : never; } | { type: "eip4844"; nonce: number; chainId: number; s: viem.Hex; r: viem.Hex; value: bigint; input: viem.Hex; v: bigint; yParity: number; from: viem.Address; gas: bigint; hash: viem.Hash; to: viem.Address | null; typeHex: viem.Hex | null; accessList: viem.AccessList; authorizationList?: undefined | undefined; blobVersionedHashes: readonly viem.Hex[]; gasPrice?: undefined | undefined; maxFeePerBlobGas: bigint; maxFeePerGas: bigint; maxPriorityFeePerGas: bigint; blockHash: (blockTag extends "pending" ? true : false) extends infer T_9 ? T_9 extends (blockTag extends "pending" ? true : false) ? T_9 extends true ? null : `0x${string}` : never : never; blockNumber: (blockTag extends "pending" ? true : false) extends infer T_10 ? T_10 extends (blockTag extends "pending" ? true : false) ? T_10 extends true ? null : bigint : never : never; transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_11 ? T_11 extends (blockTag extends "pending" ? true : false) ? T_11 extends true ? null : number : never : never; } | { type: "eip7702"; nonce: number; chainId: number; s: viem.Hex; r: viem.Hex; value: bigint; input: viem.Hex; v: bigint; yParity: number; from: viem.Address; gas: bigint; hash: viem.Hash; to: viem.Address | null; typeHex: viem.Hex | null; accessList: viem.AccessList; authorizationList: viem.SignedAuthorizationList; blobVersionedHashes?: undefined | undefined; gasPrice?: undefined | undefined; maxFeePerBlobGas?: undefined | undefined; maxFeePerGas: bigint; maxPriorityFeePerGas: bigint; blockHash: (blockTag extends "pending" ? true : false) extends infer T_12 ? T_12 extends (blockTag extends "pending" ? true : false) ? T_12 extends true ? null : `0x${string}` : never : never; blockNumber: (blockTag extends "pending" ? true : false) extends infer T_13 ? T_13 extends (blockTag extends "pending" ? true : false) ? T_13 extends true ? null : bigint : never : never; transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_14 ? T_14 extends (blockTag extends "pending" ? true : false) ? T_14 extends true ? null : number : never : never; }>; getTransactionConfirmations: (args: viem.GetTransactionConfirmationsParameters<UserChainType>) => Promise<viem.GetTransactionConfirmationsReturnType>; getTransactionCount: (args: viem.GetTransactionCountParameters) => Promise<viem.GetTransactionCountReturnType>; getTransactionReceipt: (args: viem.GetTransactionReceiptParameters) => Promise<viem.TransactionReceipt>; multicall: <const contracts extends readonly unknown[], allowFailure extends boolean = true>(args: viem.MulticallParameters<contracts, allowFailure>) => Promise<viem.MulticallReturnType<contracts, allowFailure>>; prepareTransactionRequest: <const request extends viem.PrepareTransactionRequestRequest<UserChainType, chainOverride>, chainOverride extends viem.Chain | undefined = undefined, accountOverride extends viem.Account | viem.Address | undefined = undefined>(args: viem.PrepareTransactionRequestParameters<UserChainType, viem.Account | undefined, chainOverride, accountOverride, request>) => Promise<viem.UnionRequiredBy<Extract<viem.UnionOmit<viem.ExtractChainFormatterParameters<viem.DeriveChain<UserChainType, chainOverride>, "transactionRequest", viem.TransactionRequest>, "from"> & (viem.DeriveChain<UserChainType, chainOverride> extends infer T_14 ? T_14 extends viem.DeriveChain<UserChainType, chainOverride> ? T_14 extends viem.Chain ? { chain: T_14; } : { chain?: undefined; } : never : never) & (viem.DeriveAccount<viem.Account | undefined, accountOverride> extends infer T_15 ? T_15 extends viem.DeriveAccount<viem.Account | undefined, accountOverride> ? T_15 extends viem.Account ? { account: T_15; from: viem.Address; } : { account?: undefined; from?: undefined; } : never : never), viem.IsNever<((request["type"] extends string | undefined ? request["type"] : viem.GetTransactionType<request, (request extends { accessList?: undefined | undefined; authorizationList?: undefined | undefined; blobs?: undefined | undefined; blobVersionedHashes?: undefined | undefined; gasPrice?: bigint | undefined; sidecars?: undefined | undefined; } & viem.FeeValuesLegacy ? "legacy" : never) | (request extends { accessList?: viem.AccessList | undefined; authorizationList?: undefined | undefined; blobs?: undefined | undefined; blobVersionedHashes?: undefined | undefined; gasPrice?: undefined | undefined; maxFeePerBlobGas?: undefined | undefined; maxFeePerGas?: bigint | undefined; maxPriorityFeePerGas?: bigint | undefined; sidecars?: undefined | undefined; } & (viem.OneOf<{ maxFeePerGas: viem.FeeValuesEIP1559["maxFeePerGas"]; } | { maxPriorityFeePerGas: viem.FeeValuesEIP1559["maxPriorityFeePerGas"]; }, viem.FeeValuesEIP1559> & { accessList?: viem.TransactionSerializableEIP2930["accessList"] | undefined; }) ? "eip1559" : never) | (request extends { accessList?: viem.AccessList | undefined; authorizationList?: undefined | undefined; blobs?: undefined | undefined; blobVersionedHashes?: undefined | undefined; gasPrice?: bigint | undefined; sidecars?: undefined | undefined; maxFeePerBlobGas?: undefined | undefined; maxFeePerGas?: undefined | undefined; maxPriorityFeePerGas?: undefined | undefined; } & { accessList: viem.TransactionSerializableEIP2930["accessList"]; } ? "eip2930" : never) | (request extends ({ accessList?: viem.AccessList | undefined; authorizationList?: undefined | undefined; blobs?: readonly `0x${string}`[] | readonly viem.ByteArray[] | undefined; blobVersionedHashes?: readonly `0x${string}`[] | undefined; maxFeePerBlobGas?: bigint | undefined; maxFeePerGas?: bigint | undefined; maxPriorityFeePerGas?: bigint | undefined; sidecars?: false | readonly viem.BlobSidecar<`0x${string}`>[] | undefined; } | { accessList?: viem.AccessList | undefined; authorizationList?: undefined | undefined; blobs?: readonly `0x${string}`[] | readonly viem.ByteArray[] | undefined; blobVersionedHashes?: readonly `0x${string}`[] | undefined; maxFeePerBlobGas?: bigint | undefined; maxFeePerGas?: bigint | undefined; maxPriorityFeePerGas?: bigint | undefined; sidecars?: false | readonly viem.BlobSidecar<`0x${string}`>[] | undefined; }) & (viem.ExactPartial<viem.FeeValuesEIP4844> & viem.OneOf<{ blobs: viem.TransactionSerializableEIP4844["blobs"]; } | { blobVersionedHashes: viem.TransactionSerializableEIP4844["blobVersionedHashes"]; } | { sidecars: viem.TransactionSerializableEIP4844["sidecars"]; }, viem.TransactionSerializableEIP4844>) ? "eip4844" : never) | (request extends ({ accessList?: viem.AccessList | undefined; authorizationList?: viem.SignedAuthorizationList | undefined; blobs?: undefined | undefined; blobVersionedHashes?: undefined | undefined; gasPrice?: undefined | undefined; maxFeePerBlobGas?: undefined | undefined; maxFeePerGas?: bigint | undefined; maxPriorityFeePerGas?: bigint | undefined; sidecars?: undefined | undefined; } | { accessList?: viem.AccessList | undefined; authorizationList?: viem.SignedAuthorizationList | undefined; blobs?: undefined | undefined; blobVersionedHashes?: undefined | undefined; gasPrice?: undefined | undefined; maxFeePerBlobGas?: undefined | undefined; maxFeePerGas?: bigint | undefined; maxPriorityFeePerGas?: bigint | undefined; sidecars?: undefined | undefined; }) & { authorizationList: viem.TransactionSerializableEIP7702["authorizationList"]; } ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)> extends "legacy" ? unknown : viem.GetTransactionType<request, (request extends { accessList?: undefined | undefined; authorizationList?: undefined | undefined; blobs?: undefined | undefined; blobVersionedHashes?: undefined | undefined; gasPrice?: bigint | undefined; sidecars?: undefined | undefined; } & viem.FeeValuesLegacy ? "legacy" : never) | (request extends { accessList?: viem.AccessList | undefined; authorizationList?: undefined | undefined; blobs?: undefined | undefined; blobVersionedHashes?: undefined | undefined; gasPrice?: undefined | undefined; maxFeePerBlobGas?: undefined | undefined; maxFeePerGas?: bigint | undefined; maxPriorityFeePerGas?: bigint | undefined; sidecars?: undefined | undefined; } & (viem.OneOf<{ maxFeePerGas: viem.FeeValuesEIP1559["maxFeePerGas"]; } | { maxPriorityFeePerGas: viem.FeeValuesEIP1559["maxPriorityFeePerGas"]; }, viem.FeeValuesEIP1559> & { accessList?: viem.TransactionSerializableEIP2930["accessList"] | undefined; }) ? "eip1559" : never) | (request extends { accessList?: viem.AccessList | undefined; authorizationList?: undefined | undefined; blobs?: undefined | undefined; blobVersionedHashes?: undefined | undefined; gasPrice?: bigint | undefined; sidecars?: undefined | undefined; maxFeePerBlobGas?: undefined | undefined; maxFeePerGas?: undefined | undefined; maxPriorityFeePerGas?: undefined | undefined; } & { accessList: viem.TransactionSerializableEIP2930["accessList"]; } ? "eip2930" : never) | (request extends ({ accessList?: viem.AccessList | undefined; authorizationList?: undefined | undefined; blobs?: readonly `0x${string}`[] | readonly viem.ByteArray[] | undefined; blobVersionedHashes?: readonly `0x${string}`[] | undefined; maxFeePerBlobGas?: bigint | undefined; maxFeePerGas?: bigint | undefined; maxPriorityFeePerGas?: bigint | undefined; sidecars?: false | readonly viem.BlobSidecar<`0x${string}`>[] | undefined; } | { accessList?: viem.AccessList | undefined; authorizationList?: undefined | undefined; blobs?: readonly `0x${string}`[] | readonly viem.ByteArray[] | undefined; blobVersionedHashes?: readonly `0x${string}`[] | undefined; maxFeePerBlobGas?: bigint | undefined; maxFeePerGas?: bigint | undefined; maxPriorityFeePerGas?: bigint | undefined; sidecars?: false | readonly viem.BlobSidecar<`0x${string}`>[] | undefined; }) & (viem.ExactPartial<viem.FeeValuesEIP4844> & viem.OneOf<{ blobs: viem.TransactionSerializableEIP4844["blobs"]; } | { blobVersionedHashes: viem.TransactionSerializableEIP4844["blobVersionedHashes"]; } | { sidecars: viem.TransactionSerializableEIP4844["sidecars"]; }, viem.TransactionSerializableEIP4844>) ? "eip4844" : never) | (request extends ({ accessList?: viem.AccessList | undefined; authorizationList?: viem.SignedAuthorizationList | undefined; blobs?: undefined | undefined; blobVersionedHashes?: undefined | undefined; gasPrice?: undefined | undefined; maxFeePerBlobGas?: undefined | undefined; maxFeePerGas?: bigint | undefined; maxPriorityFeePerGas?: bigint | undefined; sidecars?: undefined | undefined; } | { accessList?: viem.AccessList | undefined; authorizationList?: viem.SignedAuthorizationList | undefined; blobs?: undefined | undefined; blobVersionedHashes?: undefined | undefined; gasPrice?: undefined | undefined; maxFeePerBlobGas?: undefined | undefined; maxFeePerGas?: bigint | undefined; maxPriorityFeePerGas?: bigint | undefined; sidecars?: undefined | undefined; }) & { authorizationList: viem.TransactionSerializableEIP7702["authorizationList"]; } ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) extends infer T_16 ? T_16 extends (request["type"] extends string | undefined ? request["type"] : viem.GetTransactionType<request, (request extends { accessList?: undefined | undefined; authorizationList?: undefined | undefined; blobs?: undefined | undefined; blobVersionedHashes?: undefined | undefined; gasPrice?: bigint | undefined; sidecars?: undefined | undefined; } & viem.FeeValuesLegacy ? "legacy" : never) | (request extends { accessList?: viem.AccessList | undefined; authorizationList?: undefined | undefined; blobs?: undefined | undefined; blobVersionedHashes?: undefined | undefined; gasPrice?: undefined | undefined; maxFeePerBlobGas?: undefined | undefined; maxFeePerGas?: bigint | undefined; maxPriorityFeePerGas?: bigint | undefined; sidecars?: undefined | undefined; } & (viem.OneOf<{ maxFeePerGas: viem.FeeValuesEIP1559["maxFeePerGas"]; } | { maxPriorityFeePerGas: viem.FeeValuesEIP1559["maxPriorityFeePerGas"]; }, viem.FeeValuesEIP1559> & { accessList?: viem.TransactionSerializableEIP2930["accessList"] | undefined; }) ? "eip1559" : never) | (request extends { accessList?: viem.AccessList | undefined; authorizationList?: undefined | undefined; blobs?: undefined | undefined; blobVersionedHashes?: undefined | undefined; gasPrice?: bigint | undefined; sidecars?: undefined | undefined; maxFeePerBlobGas?: undefined | undefined; maxFeePerGas?: undefined | undefined; maxPriorityFeePerGas?: undefined | undefined; } & { accessList: viem.TransactionSerializableEIP2930["accessList"]; } ? "eip2930" : never) | (request extends ({ accessList?: viem.AccessList | undefined; authorizationList?: undefined | undefined; blobs?: readonly `0x${string}`[] | readonly viem.ByteArray[] | undefined; blobVersionedHashes?: readonly `0x${string}`[] | undefined; maxFeePerBlobGas?: bigint | undefined; maxFeePerGas?: bigint | undefined; maxPriorityFeePerGas?: bigint | undefined; sidecars?: false | readonly viem.BlobSidecar<`0x${string}`>[] | undefined; } | { accessList?: viem.AccessList | undefined; authorizationList?: undefined | undefined; blobs?: readonly `0x${string}`[] | readonly viem.ByteArray[] | undefined; blobVersionedHashes?: readonly `0x${string}`[] | undefined; maxFeePerBlobGas?: bigint | undefined; maxFeePerGas?: bigint | undefined; maxPriorityFeePerGas?: bigint | undefined; sidecars?: false | readonly viem.BlobSidecar<`0x${string}`>[] | undefined; }) & (viem.ExactPartial<viem.FeeValuesEIP4844> & viem.OneOf<{ blobs: viem.TransactionSerializableEIP4844["blobs"]; } | { blobVersionedHashes: viem.TransactionSerializableEIP4844["blobVersionedHashes"]; } | { sidecars: viem.TransactionSerializableEIP4844["sidecars"]; }, viem.TransactionSerializableEIP4844>) ? "eip4844" : never) | (request extends ({ accessList?: viem.AccessList | undefined; authorizationList?: viem.SignedAuthorizationList | undefined; blobs?: undefined | undefined; blobVersionedHashes?: undefined | undefined; gasPrice?: undefined | undefined; maxFeePerBlobGas?: undefined | undefined; maxFeePerGas?: bigint | undefined; maxPriorityFeePerGas?: bigint | undefined; sidecars?: undefined | undefined; } | { accessList?: viem.AccessList | undefined; authorizationList?: viem.SignedAuthorizationList | undefined; blobs?: undefined | undefined; blobVersionedHashes?: undefined | undefined; gasPrice?: undefined | undefined; maxFeePerBlobGas?: undefined | undefined; maxFeePerGas?: bigint | undefined; maxPriorityFeePerGas?: bigint | undefined; sidecars?: undefined | undefined; }) & { authorizationList: viem.TransactionSerializableEIP7702["authorizationList"]; } ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)> extends "legacy" ? unknown : viem.GetTransactionType<request, (request extends { accessList?: undefined | undefined; authorizationList?: undefined | undefined; blobs?: undefined | undefined; blobVersionedHashes?: undefined | undefined; gasPrice?: bigint | undefined; sidecars?: undefined | undefined; } & viem.FeeValuesLegacy ? "legacy" : never) | (request extends { accessList?: viem.AccessList | undefined; authorizationList?: undefined | undefined; blobs?: undefined | undefined; blobVersionedHashes?: undefined | undefined; gasPrice?: undefined | undefined; maxFeePerBlobGas?: undefined | undefined; maxFeePerGas?: bigint | undefined; maxPriorityFeePerGas?: bigint | undefined; sidecars?: undefined | undefined; } & (viem.OneOf<{ maxFeePerGas: viem.FeeValuesEIP1559["maxFeePerGas"]; } | { maxPriorityFeePerGas: viem.FeeValuesEIP1559["maxPriorityFeePerGas"]; }, viem.FeeValuesEIP1559> & { accessList?: viem.TransactionSerializableEIP2930["accessList"] | undefined; }) ? "eip1559" : never) | (request extends { accessList?: viem.AccessList | undefined; authorizationList?: undefined | undefined; blobs?: undefined | undefined; blobVersionedHashes?: undefined | undefined; gasPrice?: bigint | undefined; sidecars?: undefined | undefined; maxFeePerBlobGas?: undefined | undefined; maxFeePerGas?: undefined | undefined; maxPriorityFeePerGas?: undefined | undefined; } & { accessList: viem.TransactionSerializableEIP2930["accessList"]; } ? "eip2930" : never) | (request extends ({ accessList?: viem.AccessList | undefined; authorizationList?: undefined | undefined; blobs?: readonly `0x${string}`[] | readonly viem.ByteArray[] | undefined; blobVersionedHashes?: readonly `0x${string}`[] | undefined; maxFeePerBlobGas?: bigint | undefined; maxFeePerGas?: bigint | undefined; maxPriorityFeePerGas?: bigint | undefined; sidecars?: false | readonly viem.BlobSidecar<`0x${string}`>[] | undefined; } | { accessList?: viem.AccessList | undefined; authorizationList?: undefined | undefined; blobs?: readonly `0x${string}`[] | readonly viem.ByteArray[] | undefined; blobVersionedHashes?: readonly `0x${string}`[] | undefined; maxFeePerBlobGas?: bigint | undefined; maxFeePerGas?: bigint | undefined; maxPriorityFeePerGas?: bigint | undefined; sidecars?: false | readonly viem.BlobSidecar<`0x${string}`>[] | undefined; }) & (viem.ExactPartial<viem.FeeValuesEIP4844> & viem.OneOf<{ blobs: viem.TransactionSerializableEIP4844["blobs"]; } | { blobVersionedHashes: viem.TransactionSerializableEIP4844["blobVersionedHashes"]; } | { sidecars: viem.TransactionSerializableEIP4844["sidecars"]; }, viem.TransactionSerializableEIP4844>) ? "eip4844" : never) | (request extends ({ accessList?: viem.AccessList | undefined; authorizationList?: viem.SignedAuthorizationList | undefined; blobs?: undefined | undefined; blobVersionedHashes?: undefined | undefined; gasPrice?: undefined | undefined; maxFeePerBlobGas?: undefined | undefined; maxFeePerGas?: bigint | undefined; maxPriorityFeePerGas?: bigint | undefined; sidecars?: undefined | undefined; } | { accessList?: viem.AccessList | undefined; authorizationList?: viem.SignedAuthorizationList | undefined; blobs?: undefined | undefined; blobVersionedHashes?: undefined | undefined; gasPrice?: undefined | undefined; maxFeePerBlobGas?: undefined | undefined; maxFeePerGas?: bigint | undefined; maxPriorityFeePerGas?: bigint | undefined; sidecars?: undefined | undefined; }) & { authorizationList: viem.TransactionSerializableEIP7702["authorizationList"]; } ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_16 extends "legacy" ? viem.TransactionRequestLegacy : never : never : never) | ((request["type"] extends string | undefined ? request["type"] : viem.GetTransactionType<request, (request extends { accessList?: undefined | undefined; authorizationList?: undefined | undefined; blobs?: undefined | undefined; blobVersionedHashes?: undefined | undefined; gasPrice?: bigint | undefined; sidecars?: undefined | undefined; } & viem.FeeValuesLegacy ? "legacy" : never) | (request extends { accessList?: viem.AccessList | undefined; authorizationList?: undefined | undefined; blobs?: undefined | undefined; blobVersionedHashes?: undefined | undefined; gasPr