@pvpbet/pvpbet
Version:
A decentralized PVP betting platform based on the Ethereum Virtual Machine (EVM).
220 lines (214 loc) • 6.19 kB
TypeScript
// This file was autogenerated by hardhat-viem, do not edit it.
// prettier-ignore
// tslint:disable
// eslint-disable
import type { Address } from "viem";
import type { GetContractReturnType } from "@nomicfoundation/hardhat-viem/types";
import "@nomicfoundation/hardhat-viem/types";
export interface IBetFactory$Type {
"_format": "hh-sol-artifact-1",
"contractName": "IBetFactory",
"sourceName": "contracts/interface/IBetFactory.sol",
"abi": [
{
"inputs": [
{
"components": [
{
"internalType": "uint256",
"name": "chipMinValue",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "voteMinValue",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "minWageredTotalAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "verificationRatio",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "announcementPeriodDuration",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "arbitratingPeriodDuration",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "singleOptionMaxAmountRatio",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "confirmDisputeAmountRatio",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "protocolRewardRatio",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "creatorRewardRatio",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "verifierRewardRatio",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "countPerRelease",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "countPerPenalize",
"type": "uint256"
}
],
"internalType": "struct IBet.BetConfig",
"name": "config",
"type": "tuple"
},
{
"components": [
{
"internalType": "string",
"name": "title",
"type": "string"
},
{
"internalType": "string",
"name": "description",
"type": "string"
},
{
"internalType": "string",
"name": "iconURL",
"type": "string"
},
{
"internalType": "string",
"name": "forumURL",
"type": "string"
},
{
"internalType": "string[]",
"name": "options",
"type": "string[]"
}
],
"internalType": "struct IBet.BetDetails",
"name": "details",
"type": "tuple"
},
{
"internalType": "uint256",
"name": "wageringPeriodDuration",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "verifyingPeriodDuration",
"type": "uint256"
},
{
"internalType": "address",
"name": "creator",
"type": "address"
},
{
"internalType": "address",
"name": "chip",
"type": "address"
},
{
"internalType": "address",
"name": "vote",
"type": "address"
},
{
"internalType": "address",
"name": "govToken",
"type": "address"
},
{
"internalType": "address",
"name": "betManager",
"type": "address"
},
{
"internalType": "address",
"name": "betOptionFactory",
"type": "address"
}
],
"name": "createBet",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"linkReferences": {},
"deployedLinkReferences": {}
}
declare module "@nomicfoundation/hardhat-viem/types" {
export function deployContract(
contractName: "IBetFactory",
constructorArgs?: [],
config?: DeployContractConfig
): Promise<GetContractReturnType<IBetFactory$Type["abi"]>>;
export function deployContract(
contractName: "contracts/interface/IBetFactory.sol:IBetFactory",
constructorArgs?: [],
config?: DeployContractConfig
): Promise<GetContractReturnType<IBetFactory$Type["abi"]>>;
export function sendDeploymentTransaction(
contractName: "IBetFactory",
constructorArgs?: [],
config?: SendDeploymentTransactionConfig
): Promise<{
contract: GetContractReturnType<IBetFactory$Type["abi"]>;
deploymentTransaction: GetTransactionReturnType;
}>;
export function sendDeploymentTransaction(
contractName: "contracts/interface/IBetFactory.sol:IBetFactory",
constructorArgs?: [],
config?: SendDeploymentTransactionConfig
): Promise<{
contract: GetContractReturnType<IBetFactory$Type["abi"]>;
deploymentTransaction: GetTransactionReturnType;
}>;
export function getContractAt(
contractName: "IBetFactory",
address: Address,
config?: GetContractAtConfig
): Promise<GetContractReturnType<IBetFactory$Type["abi"]>>;
export function getContractAt(
contractName: "contracts/interface/IBetFactory.sol:IBetFactory",
address: Address,
config?: GetContractAtConfig
): Promise<GetContractReturnType<IBetFactory$Type["abi"]>>;
}