@azuro-org/sdk
Version:
One-stop solution for building betting dApps on the Azuro Protocol.
39 lines (38 loc) • 1.26 kB
TypeScript
import { type Address, type Hex } from 'viem';
import { type ChainId } from '@azuro-org/toolkit';
import { type Bet } from '../../global';
type SubmitProps = {
bets: Array<Pick<Bet, 'tokenId' | 'coreAddress' | 'lpAddress' | 'freebetId' | 'paymaster'> & {
freebetContractAddress?: Address;
}>;
};
type Props = {
chainId?: ChainId;
};
export declare const useRedeemBet: ({ chainId }?: Props) => {
isPending: boolean;
isProcessing: boolean;
data: `0x${string}` | undefined;
error: any;
submit: (props: SubmitProps) => Promise<{
blobGasPrice?: bigint | undefined;
blobGasUsed?: bigint | undefined;
blockHash: import("viem").Hash;
blockNumber: bigint;
contractAddress: Address | null | undefined;
cumulativeGasUsed: bigint;
effectiveGasPrice: bigint;
from: Address;
gasUsed: bigint;
logs: import("viem").Log<bigint, number, false>[];
logsBloom: Hex;
root?: `0x${string}` | undefined;
status: "success" | "reverted";
to: Address | null;
transactionHash: import("viem").Hash;
transactionIndex: number;
type: import("viem").TransactionType;
chainId: number;
}>;
};
export {};