, 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