UNPKG

@azuro-org/sdk

Version:

One-stop solution for building betting dApps on the Azuro Protocol.

104 lines (103 loc) 3.9 kB
import { type ChainId } from '@azuro-org/toolkit'; import { type Hex } from 'viem'; export declare const WRAP_CHAINS: number[]; type Props = { chainId?: ChainId; }; export declare const useWrapTokens: ({ chainId }?: Props) => { wrap: (amount: string) => Promise<{ blobGasPrice?: bigint | undefined; blobGasUsed?: bigint | undefined; blockHash: import("viem").Hash; blockNumber: bigint; blockTimestamp?: bigint | undefined; contractAddress: import("abitype").Address | null | undefined; cumulativeGasUsed: bigint; effectiveGasPrice: bigint; from: import("abitype").Address; gasUsed: bigint; logs: import("viem").Log<bigint, number, false>[]; logsBloom: Hex; root?: `0x${string}` | undefined; status: "success" | "reverted"; to: import("abitype").Address | null; transactionHash: import("viem").Hash; transactionIndex: number; type: import("viem").TransactionType; chainId: number; }>; unwrap: (amount: string) => Promise<{ blobGasPrice?: bigint | undefined; blobGasUsed?: bigint | undefined; blockHash: import("viem").Hash; blockNumber: bigint; blockTimestamp?: bigint | undefined; contractAddress: import("abitype").Address | null | undefined; cumulativeGasUsed: bigint; effectiveGasPrice: bigint; from: import("abitype").Address; gasUsed: bigint; logs: import("viem").Log<bigint, number, false>[]; logsBloom: Hex; root?: `0x${string}` | undefined; status: "success" | "reverted"; to: import("abitype").Address | null; transactionHash: import("viem").Hash; transactionIndex: number; type: import("viem").TransactionType; chainId: number; }>; wrapTx: { data: `0x${string}` | undefined; receipt: { blobGasPrice?: bigint | undefined; blobGasUsed?: bigint | undefined; blockHash: import("viem").Hash; blockNumber: bigint; blockTimestamp?: bigint | undefined; contractAddress: import("abitype").Address | null | undefined; cumulativeGasUsed: bigint; effectiveGasPrice: bigint; from: import("abitype").Address; gasUsed: bigint; logs: import("viem").Log<bigint, number, false>[]; logsBloom: Hex; root?: `0x${string}` | undefined; status: "success" | "reverted"; to: import("abitype").Address | null; transactionHash: import("viem").Hash; transactionIndex: number; type: import("viem").TransactionType; chainId: number; } | undefined; isPending: boolean; isProcessing: boolean; }; unwrapTx: { data: `0x${string}` | undefined; receipt: { blobGasPrice?: bigint | undefined; blobGasUsed?: bigint | undefined; blockHash: import("viem").Hash; blockNumber: bigint; blockTimestamp?: bigint | undefined; contractAddress: import("abitype").Address | null | undefined; cumulativeGasUsed: bigint; effectiveGasPrice: bigint; from: import("abitype").Address; gasUsed: bigint; logs: import("viem").Log<bigint, number, false>[]; logsBloom: Hex; root?: `0x${string}` | undefined; status: "success" | "reverted"; to: import("abitype").Address | null; transactionHash: import("viem").Hash; transactionIndex: number; type: import("viem").TransactionType; chainId: number; } | undefined; isPending: boolean; isProcessing: boolean; }; }; export {};