import type { UseMutationResult } from '@tanstack/react-query'; import type { Config, ResolvedRegister } from '@wagmi/core'; import type { ConfigParameter, ExactPartial, UnionCompute } from '@wagmi/core/internal'; import { Actions } from '@wagmi/core/tempo'; import { type UseMutationParameters, type UseQueryReturnType } from '../../utils/query.js'; import type { QueryParameter } from '../utils.js'; /** * Hook for approving a spender to transfer TIP20 tokens. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * const { mutate, isPending } = Hooks.token.useApprove() * * return ( * * ) * } * ``` * * @param parameters - Parameters. * @returns Mutation result. */ export declare function useApprove(parameters?: useApprove.Parameters): useApprove.ReturnType; export declare namespace useApprove { type Parameters = ConfigParameter & { mutation?: UseMutationParameters, context> | undefined; }; type ReturnType = UseMutationResult, context>; } /** * Hook for approving a spender to transfer TIP20 tokens. * * Note: This is a synchronous hook that waits for the transaction * to be included on a block before returning a response. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * const { mutate, isPending } = Hooks.token.useApproveSync() * * return ( * * ) * } * ``` * * @param parameters - Parameters. * @returns Mutation result. */ export declare function useApproveSync(parameters?: useApproveSync.Parameters): useApproveSync.ReturnType; export declare namespace useApproveSync { type Parameters = ConfigParameter & { mutation?: UseMutationParameters, context> | undefined; }; type ReturnType = UseMutationResult, context>; } /** * Hook for burning TIP20 tokens from the caller's balance. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * const { mutate, isPending } = Hooks.token.useBurn() * * return ( * * ) * } * ``` * * @param parameters - Parameters. * @returns Mutation result. */ export declare function useBurn(parameters?: useBurn.Parameters): useBurn.ReturnType; export declare namespace useBurn { type Parameters = ConfigParameter & { mutation?: UseMutationParameters, context> | undefined; }; type ReturnType = UseMutationResult, context>; } /** * Hook for burning TIP20 tokens from the caller's balance. * * Note: This is a synchronous hook that waits for the transaction * to be included on a block before returning a response. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * const { mutate, isPending } = Hooks.token.useBurnSync() * * return ( * * ) * } * ``` * * @param parameters - Parameters. * @returns Mutation result. */ export declare function useBurnSync(parameters?: useBurnSync.Parameters): useBurnSync.ReturnType; export declare namespace useBurnSync { type Parameters = ConfigParameter & { mutation?: UseMutationParameters, context> | undefined; }; type ReturnType = UseMutationResult, context>; } /** * Hook for burning TIP20 tokens from a blocked address. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * const { mutate, isPending } = Hooks.token.useBurnBlocked() * * return ( * * ) * } * ``` * * @param parameters - Parameters. * @returns Mutation result. */ export declare function useBurnBlocked(parameters?: useBurnBlocked.Parameters): useBurnBlocked.ReturnType; export declare namespace useBurnBlocked { type Parameters = ConfigParameter & { mutation?: UseMutationParameters, context> | undefined; }; type ReturnType = UseMutationResult, context>; } /** * Hook for burning TIP20 tokens from a blocked address. * * Note: This is a synchronous hook that waits for the transaction * to be included on a block before returning a response. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * const { mutate, isPending } = Hooks.token.useBurnBlockedSync() * * return ( * * ) * } * ``` * * @param parameters - Parameters. * @returns Mutation result. */ export declare function useBurnBlockedSync(parameters?: useBurnBlockedSync.Parameters): useBurnBlockedSync.ReturnType; export declare namespace useBurnBlockedSync { type Parameters = ConfigParameter & { mutation?: UseMutationParameters, context> | undefined; }; type ReturnType = UseMutationResult, context>; } /** * Hook for changing the transfer policy ID for a TIP20 token. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * const { mutate, isPending } = Hooks.token.useChangeTransferPolicy() * * return ( * * ) * } * ``` * * @param parameters - Parameters. * @returns Mutation result. */ export declare function useChangeTransferPolicy(parameters?: useChangeTransferPolicy.Parameters): useChangeTransferPolicy.ReturnType; export declare namespace useChangeTransferPolicy { type Parameters = ConfigParameter & { mutation?: UseMutationParameters, context> | undefined; }; type ReturnType = UseMutationResult, context>; } /** * Hook for changing the transfer policy ID for a TIP20 token. * * Note: This is a synchronous hook that waits for the transaction * to be included on a block before returning a response. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * const { mutate, isPending } = Hooks.token.useChangeTransferPolicySync() * * return ( * * ) * } * ``` * * @param parameters - Parameters. * @returns Mutation result. */ export declare function useChangeTransferPolicySync(parameters?: useChangeTransferPolicySync.Parameters): useChangeTransferPolicySync.ReturnType; export declare namespace useChangeTransferPolicySync { type Parameters = ConfigParameter & { mutation?: UseMutationParameters, context> | undefined; }; type ReturnType = UseMutationResult, context>; } /** * Hook for creating a new TIP20 token. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * const { mutate, isPending } = Hooks.token.useCreate() * * return ( * * ) * } * ``` * * @param parameters - Parameters. * @returns Mutation result. */ export declare function useCreate(parameters?: useCreate.Parameters): useCreate.ReturnType; export declare namespace useCreate { type Parameters = ConfigParameter & { mutation?: UseMutationParameters, context> | undefined; }; type ReturnType = UseMutationResult, context>; } /** * Hook for creating a new TIP20 token. * * Note: This is a synchronous hook that waits for the transaction * to be included on a block before returning a response. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * const { mutate, isPending } = Hooks.token.useCreateSync() * * return ( * * ) * } * ``` * * @param parameters - Parameters. * @returns Mutation result. */ export declare function useCreateSync(parameters?: useCreateSync.Parameters): useCreateSync.ReturnType; export declare namespace useCreateSync { type Parameters = ConfigParameter & { mutation?: UseMutationParameters, context> | undefined; }; type ReturnType = UseMutationResult, context>; } /** * Hook for updating the quote token for a TIP20 token. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * const { mutate, isPending } = Hooks.token.useUpdateQuoteToken() * * return ( * * ) * } * ``` * * @param parameters - Parameters. * @returns Mutation result. */ export declare function useUpdateQuoteToken(parameters?: useUpdateQuoteToken.Parameters): useUpdateQuoteToken.ReturnType; export declare namespace useUpdateQuoteToken { type Parameters = ConfigParameter & { mutation?: UseMutationParameters, context> | undefined; }; type ReturnType = UseMutationResult, context>; } /** * Hook for updating the quote token for a TIP20 token. * * Note: This is a synchronous hook that waits for the transaction * to be included on a block before returning a response. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * const { mutate, isPending } = Hooks.token.useUpdateQuoteTokenSync() * * return ( * * ) * } * ``` * * @param parameters - Parameters. * @returns Mutation result. */ export declare function useUpdateQuoteTokenSync(parameters?: useUpdateQuoteTokenSync.Parameters): useUpdateQuoteTokenSync.ReturnType; export declare namespace useUpdateQuoteTokenSync { type Parameters = ConfigParameter & { mutation?: UseMutationParameters, context> | undefined; }; type ReturnType = UseMutationResult, context>; } /** * Hook for getting TIP20 token allowance. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * const { data, isLoading } = Hooks.token.useGetAllowance({ * account: '0x...', * spender: '0x...', * }) * * if (isLoading) return
Loading...
* return
Allowance: {data?.toString()}
* } * ``` * * @param parameters - Parameters. * @returns Query result with token allowance. */ export declare function useGetAllowance(parameters?: useGetAllowance.Parameters): useGetAllowance.ReturnValue; export declare namespace useGetAllowance { type Parameters = ConfigParameter & QueryParameter> & ExactPartial>; type ReturnValue = UseQueryReturnType; } /** * Hook for getting TIP20 token balance for an address. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * const { data, isLoading } = Hooks.token.useGetBalance({ * account: '0x...', * }) * * if (isLoading) return
Loading...
* return
Balance: {data?.toString()}
* } * ``` * * @param parameters - Parameters. * @returns Query result with token balance. */ export declare function useGetBalance(parameters?: useGetBalance.Parameters): useGetBalance.ReturnValue; export declare namespace useGetBalance { type Parameters = ConfigParameter & QueryParameter> & ExactPartial>; type ReturnValue = UseQueryReturnType; } /** * Hook for getting TIP20 token metadata. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * const { data, isLoading } = Hooks.token.useGetMetadata({ * token: '0x...', * }) * * if (isLoading) return
Loading...
* return
{data?.name} ({data?.symbol})
* } * ``` * * @param parameters - Parameters. * @returns Query result with token metadata. */ export declare function useGetMetadata(parameters?: useGetMetadata.Parameters): useGetMetadata.ReturnValue; export declare namespace useGetMetadata { type Parameters = ConfigParameter & QueryParameter> & ExactPartial>; type ReturnValue = UseQueryReturnType; } /** * Hook for getting the admin role for a specific role in a TIP20 token. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * const { data, isLoading } = Hooks.token.useGetRoleAdmin({ * role: 'issuer', * token: '0x...', * }) * * if (isLoading) return
Loading...
* return
Admin Role: {data}
* } * ``` * * @param parameters - Parameters. * @returns Query result with admin role hash. */ export declare function useGetRoleAdmin(parameters: useGetRoleAdmin.Parameters): useGetRoleAdmin.ReturnValue; export declare namespace useGetRoleAdmin { type Parameters = ConfigParameter & QueryParameter> & ExactPartial>; type ReturnValue = UseQueryReturnType; } /** * Hook for granting roles for a TIP20 token. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * const { mutate, isPending } = Hooks.token.useGrantRoles() * * return ( * * ) * } * ``` * * @param parameters - Parameters. * @returns Mutation result. */ export declare function useGrantRoles(parameters?: useGrantRoles.Parameters): useGrantRoles.ReturnType; export declare namespace useGrantRoles { type Parameters = ConfigParameter & { mutation?: UseMutationParameters, context> | undefined; }; type ReturnType = UseMutationResult, context>; } /** * Hook for granting roles for a TIP20 token. * * Note: This is a synchronous hook that waits for the transaction * to be included on a block before returning a response. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * const { mutate, isPending } = Hooks.token.useGrantRolesSync() * * return ( * * ) * } * ``` * * @param parameters - Parameters. * @returns Mutation result. */ export declare function useGrantRolesSync(parameters?: useGrantRolesSync.Parameters): useGrantRolesSync.ReturnType; export declare namespace useGrantRolesSync { type Parameters = ConfigParameter & { mutation?: UseMutationParameters, context> | undefined; }; type ReturnType = UseMutationResult, context>; } /** * Hook for checking if an account has a specific role for a TIP20 token. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * const { data, isLoading } = Hooks.token.useHasRole({ * account: '0x...', * role: 'issuer', * token: '0x...', * }) * * if (isLoading) return
Loading...
* return
Has Role: {data ? 'Yes' : 'No'}
* } * ``` * * @param parameters - Parameters. * @returns Query result with boolean indicating if account has role. */ export declare function useHasRole(parameters: useHasRole.Parameters): useHasRole.ReturnValue; export declare namespace useHasRole { type Parameters = ConfigParameter & QueryParameter> & ExactPartial>; type ReturnValue = UseQueryReturnType; } /** * Hook for minting TIP20 tokens to an address. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * const { mutate, isPending } = Hooks.token.useMint() * * return ( * * ) * } * ``` * * @param parameters - Parameters. * @returns Mutation result. */ export declare function useMint(parameters?: useMint.Parameters): useMint.ReturnType; export declare namespace useMint { type Parameters = ConfigParameter & { mutation?: UseMutationParameters, context> | undefined; }; type ReturnType = UseMutationResult, context>; } /** * Hook for minting TIP20 tokens to an address. * * Note: This is a synchronous hook that waits for the transaction * to be included on a block before returning a response. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * const { mutate, isPending } = Hooks.token.useMintSync() * * return ( * * ) * } * ``` * * @param parameters - Parameters. * @returns Mutation result. */ export declare function useMintSync(parameters?: useMintSync.Parameters): useMintSync.ReturnType; export declare namespace useMintSync { type Parameters = ConfigParameter & { mutation?: UseMutationParameters, context> | undefined; }; type ReturnType = UseMutationResult, context>; } /** * Hook for pausing a TIP20 token. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * const { mutate, isPending } = Hooks.token.usePause() * * return ( * * ) * } * ``` * * @param parameters - Parameters. * @returns Mutation result. */ export declare function usePause(parameters?: usePause.Parameters): usePause.ReturnType; export declare namespace usePause { type Parameters = ConfigParameter & { mutation?: UseMutationParameters, context> | undefined; }; type ReturnType = UseMutationResult, context>; } /** * Hook for pausing a TIP20 token. * * Note: This is a synchronous hook that waits for the transaction * to be included on a block before returning a response. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * const { mutate, isPending } = Hooks.token.usePauseSync() * * return ( * * ) * } * ``` * * @param parameters - Parameters. * @returns Mutation result. */ export declare function usePauseSync(parameters?: usePauseSync.Parameters): usePauseSync.ReturnType; export declare namespace usePauseSync { type Parameters = ConfigParameter & { mutation?: UseMutationParameters, context> | undefined; }; type ReturnType = UseMutationResult, context>; } /** * Hook for renouncing roles for a TIP20 token. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * const { mutate, isPending } = Hooks.token.useRenounceRoles() * * return ( * * ) * } * ``` * * @param parameters - Parameters. * @returns Mutation result. */ export declare function useRenounceRoles(parameters?: useRenounceRoles.Parameters): useRenounceRoles.ReturnType; export declare namespace useRenounceRoles { type Parameters = ConfigParameter & { mutation?: UseMutationParameters, context> | undefined; }; type ReturnType = UseMutationResult, context>; } /** * Hook for renouncing roles for a TIP20 token. * * Note: This is a synchronous hook that waits for the transaction * to be included on a block before returning a response. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * const { mutate, isPending } = Hooks.token.useRenounceRolesSync() * * return ( * * ) * } * ``` * * @param parameters - Parameters. * @returns Mutation result. */ export declare function useRenounceRolesSync(parameters?: useRenounceRolesSync.Parameters): useRenounceRolesSync.ReturnType; export declare namespace useRenounceRolesSync { type Parameters = ConfigParameter & { mutation?: UseMutationParameters, context> | undefined; }; type ReturnType = UseMutationResult, context>; } /** * Hook for revoking roles for a TIP20 token. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * const { mutate, isPending } = Hooks.token.useRevokeRoles() * * return ( * * ) * } * ``` * * @param parameters - Parameters. * @returns Mutation result. */ export declare function useRevokeRoles(parameters?: useRevokeRoles.Parameters): useRevokeRoles.ReturnType; export declare namespace useRevokeRoles { type Parameters = ConfigParameter & { mutation?: UseMutationParameters, context> | undefined; }; type ReturnType = UseMutationResult, context>; } /** * Hook for revoking roles for a TIP20 token. * * Note: This is a synchronous hook that waits for the transaction * to be included on a block before returning a response. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * const { mutate, isPending } = Hooks.token.useRevokeRolesSync() * * return ( * * ) * } * ``` * * @param parameters - Parameters. * @returns Mutation result. */ export declare function useRevokeRolesSync(parameters?: useRevokeRolesSync.Parameters): useRevokeRolesSync.ReturnType; export declare namespace useRevokeRolesSync { type Parameters = ConfigParameter & { mutation?: UseMutationParameters, context> | undefined; }; type ReturnType = UseMutationResult, context>; } /** * Hook for setting the admin role for a specific role in a TIP20 token. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * const { mutate, isPending } = Hooks.token.useSetRoleAdmin() * * return ( * * ) * } * ``` * * @param parameters - Parameters. * @returns Mutation result. */ export declare function useSetRoleAdmin(parameters?: useSetRoleAdmin.Parameters): useSetRoleAdmin.ReturnType; export declare namespace useSetRoleAdmin { type Parameters = ConfigParameter & { mutation?: UseMutationParameters, context> | undefined; }; type ReturnType = UseMutationResult, context>; } /** * Hook for setting the admin role for a specific role in a TIP20 token. * * Note: This is a synchronous hook that waits for the transaction * to be included on a block before returning a response. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * const { mutate, isPending } = Hooks.token.useSetRoleAdminSync() * * return ( * * ) * } * ``` * * @param parameters - Parameters. * @returns Mutation result. */ export declare function useSetRoleAdminSync(parameters?: useSetRoleAdminSync.Parameters): useSetRoleAdminSync.ReturnType; export declare namespace useSetRoleAdminSync { type Parameters = ConfigParameter & { mutation?: UseMutationParameters, context> | undefined; }; type ReturnType = UseMutationResult, context>; } /** * Hook for setting the supply cap for a TIP20 token. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * const { mutate, isPending } = Hooks.token.useSetSupplyCap() * * return ( * * ) * } * ``` * * @param parameters - Parameters. * @returns Mutation result. */ export declare function useSetSupplyCap(parameters?: useSetSupplyCap.Parameters): useSetSupplyCap.ReturnType; export declare namespace useSetSupplyCap { type Parameters = ConfigParameter & { mutation?: UseMutationParameters, context> | undefined; }; type ReturnType = UseMutationResult, context>; } /** * Hook for setting the supply cap for a TIP20 token. * * Note: This is a synchronous hook that waits for the transaction * to be included on a block before returning a response. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * const { mutate, isPending } = Hooks.token.useSetSupplyCapSync() * * return ( * * ) * } * ``` * * @param parameters - Parameters. * @returns Mutation result. */ export declare function useSetSupplyCapSync(parameters?: useSetSupplyCapSync.Parameters): useSetSupplyCapSync.ReturnType; export declare namespace useSetSupplyCapSync { type Parameters = ConfigParameter & { mutation?: UseMutationParameters, context> | undefined; }; type ReturnType = UseMutationResult, context>; } /** * Hook for transferring TIP20 tokens to another address. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * const { mutate, isPending } = Hooks.token.useTransfer() * * return ( * * ) * } * ``` * * @param parameters - Parameters. * @returns Mutation result. */ export declare function useTransfer(parameters?: useTransfer.Parameters): useTransfer.ReturnType; export declare namespace useTransfer { type Parameters = ConfigParameter & { mutation?: UseMutationParameters, context> | undefined; }; type ReturnType = UseMutationResult, context>; } /** * Hook for transferring TIP20 tokens to another address. * * Note: This is a synchronous hook that waits for the transaction * to be included on a block before returning a response. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * const { mutate, isPending } = Hooks.token.useTransferSync() * * return ( * * ) * } * ``` * * @param parameters - Parameters. * @returns Mutation result. */ export declare function useTransferSync(parameters?: useTransferSync.Parameters): useTransferSync.ReturnType; export declare namespace useTransferSync { type Parameters = ConfigParameter & { mutation?: UseMutationParameters, context> | undefined; }; type ReturnType = UseMutationResult, context>; } /** * Hook for unpausing a TIP20 token. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * const { mutate, isPending } = Hooks.token.useUnpause() * * return ( * * ) * } * ``` * * @param parameters - Parameters. * @returns Mutation result. */ export declare function useUnpause(parameters?: useUnpause.Parameters): useUnpause.ReturnType; export declare namespace useUnpause { type Parameters = ConfigParameter & { mutation?: UseMutationParameters, context> | undefined; }; type ReturnType = UseMutationResult, context>; } /** * Hook for unpausing a TIP20 token. * * Note: This is a synchronous hook that waits for the transaction * to be included on a block before returning a response. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * const { mutate, isPending } = Hooks.token.useUnpauseSync() * * return ( * * ) * } * ``` * * @param parameters - Parameters. * @returns Mutation result. */ export declare function useUnpauseSync(parameters?: useUnpauseSync.Parameters): useUnpauseSync.ReturnType; export declare namespace useUnpauseSync { type Parameters = ConfigParameter & { mutation?: UseMutationParameters, context> | undefined; }; type ReturnType = UseMutationResult, context>; } /** * Hook for preparing the quote token update for a TIP20 token. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * const { mutate, isPending } = Hooks.token.usePrepareUpdateQuoteToken() * * return ( * * ) * } * ``` * * @param parameters - Parameters. * @returns Mutation result. */ export declare function usePrepareUpdateQuoteToken(parameters?: usePrepareUpdateQuoteToken.Parameters): usePrepareUpdateQuoteToken.ReturnType; export declare namespace usePrepareUpdateQuoteToken { type Parameters = ConfigParameter & { mutation?: UseMutationParameters, context> | undefined; }; type ReturnType = UseMutationResult, context>; } /** * Hook for preparing the quote token update for a TIP20 token. * * Note: This is a synchronous hook that waits for the transaction * to be included on a block before returning a response. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * const { mutate, isPending } = Hooks.token.usePrepareUpdateQuoteTokenSync() * * return ( * * ) * } * ``` * * @param parameters - Parameters. * @returns Mutation result. */ export declare function usePrepareUpdateQuoteTokenSync(parameters?: usePrepareUpdateQuoteTokenSync.Parameters): usePrepareUpdateQuoteTokenSync.ReturnType; export declare namespace usePrepareUpdateQuoteTokenSync { type Parameters = ConfigParameter & { mutation?: UseMutationParameters, context> | undefined; }; type ReturnType = UseMutationResult, context>; } /** * Hook for watching TIP20 token role admin updates. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * Hooks.token.useWatchAdminRole({ * onRoleAdminUpdated(args) { * console.log('Role admin updated:', args) * }, * }) * * return
Watching for role admin updates...
* } * ``` * * @param parameters - Parameters. */ export declare function useWatchAdminRole(parameters?: useWatchAdminRole.Parameters): void; export declare namespace useWatchAdminRole { type Parameters = UnionCompute> & ConfigParameter & { enabled?: boolean | undefined; }>; } /** * Hook for watching TIP20 token approval events. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * Hooks.token.useWatchApprove({ * onApproval(args) { * console.log('Approval:', args) * }, * }) * * return
Watching for approvals...
* } * ``` * * @param parameters - Parameters. */ export declare function useWatchApprove(parameters?: useWatchApprove.Parameters): void; export declare namespace useWatchApprove { type Parameters = UnionCompute> & ConfigParameter & { enabled?: boolean | undefined; }>; } /** * Hook for watching TIP20 token burn events. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * Hooks.token.useWatchBurn({ * onBurn(args) { * console.log('Burn:', args) * }, * }) * * return
Watching for burns...
* } * ``` * * @param parameters - Parameters. */ export declare function useWatchBurn(parameters?: useWatchBurn.Parameters): void; export declare namespace useWatchBurn { type Parameters = UnionCompute> & ConfigParameter & { enabled?: boolean | undefined; }>; } /** * Hook for watching new TIP20 tokens created. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * Hooks.token.useWatchCreate({ * onTokenCreated(args) { * console.log('Token created:', args) * }, * }) * * return
Watching for token creations...
* } * ``` * * @param parameters - Parameters. */ export declare function useWatchCreate(parameters?: useWatchCreate.Parameters): void; export declare namespace useWatchCreate { type Parameters = UnionCompute> & ConfigParameter & { enabled?: boolean | undefined; }>; } /** * Hook for watching TIP20 token mint events. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * Hooks.token.useWatchMint({ * onMint(args) { * console.log('Mint:', args) * }, * }) * * return
Watching for mints...
* } * ``` * * @param parameters - Parameters. */ export declare function useWatchMint(parameters?: useWatchMint.Parameters): void; export declare namespace useWatchMint { type Parameters = UnionCompute> & ConfigParameter & { enabled?: boolean | undefined; }>; } /** * Hook for watching TIP20 token role membership updates. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * Hooks.token.useWatchRole({ * onRoleUpdated(args) { * console.log('Role updated:', args) * }, * }) * * return
Watching for role updates...
* } * ``` * * @param parameters - Parameters. */ export declare function useWatchRole(parameters?: useWatchRole.Parameters): void; export declare namespace useWatchRole { type Parameters = UnionCompute> & ConfigParameter & { enabled?: boolean | undefined; }>; } /** * Hook for watching TIP20 token transfer events. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * Hooks.token.useWatchTransfer({ * onTransfer(args) { * console.log('Transfer:', args) * }, * }) * * return
Watching for transfers...
* } * ``` * * @param parameters - Parameters. */ export declare function useWatchTransfer(parameters?: useWatchTransfer.Parameters): void; export declare namespace useWatchTransfer { type Parameters = UnionCompute> & ConfigParameter & { enabled?: boolean | undefined; }>; } /** * Hook for watching TIP20 token quote token update events. * * @example * ```tsx * import { Hooks } from 'wagmi/tempo' * * function App() { * Hooks.token.useWatchUpdateQuoteToken({ * onUpdateQuoteToken(args) { * if (args.completed) * console.log('quote token update completed:', args.newQuoteToken) * else * console.log('quote token update proposed:', args.newQuoteToken) * }, * }) * * return
Watching for quote token updates...
* } * ``` * * @param parameters - Parameters. */ export declare function useWatchUpdateQuoteToken(parameters?: useWatchUpdateQuoteToken.Parameters): void; export declare namespace useWatchUpdateQuoteToken { type Parameters = UnionCompute> & ConfigParameter & { enabled?: boolean | undefined; }>; } //# sourceMappingURL=token.d.ts.map