UNPKG

@pvpbet/pvpbet

Version:

A decentralized PVP betting platform based on the Ethereum Virtual Machine (EVM).

621 lines (615 loc) 14 kB
// 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 IBet$Type { "_format": "hh-sol-artifact-1", "contractName": "IBet", "sourceName": "contracts/interface/IBet.sol", "abi": [ { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "sender", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "count", "type": "uint256" } ], "name": "Penalized", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "sender", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "count", "type": "uint256" } ], "name": "Released", "type": "event" }, { "inputs": [], "name": "arbitratedTotalAmount", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "arbitratingPeriodStartTime", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "chip", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "chipMinValue", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "config", "outputs": [ { "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": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "confirmedWinningOption", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "creator", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "details", "outputs": [ { "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": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "disputedTotalAmount", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "isBet", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "minArbitratedTotalAmount", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "minDisputedTotalAmount", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "minVerifiedTotalAmount", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "minWageredTotalAmount", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "options", "outputs": [ { "internalType": "address[]", "name": "", "type": "address[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "limit", "type": "uint256" } ], "name": "penalize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "penalize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "penalized", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "penalizedProgress", "outputs": [ { "internalType": "uint256", "name": "done", "type": "uint256" }, { "internalType": "uint256", "name": "total", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "limit", "type": "uint256" } ], "name": "release", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "release", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "released", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "releasedProgress", "outputs": [ { "internalType": "uint256", "name": "done", "type": "uint256" }, { "internalType": "uint256", "name": "total", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "status", "outputs": [ { "internalType": "enum IBet.Status", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "statusDeadline", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "statusUpdate", "outputs": [ { "internalType": "enum IBet.Status", "name": "", "type": "uint8" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "unconfirmedWinningOption", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "verifiedTotalAmount", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "verifyingPeriodDeadline", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "vote", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "voteMinValue", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "wageredTotalAmount", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "wageringPeriodDeadline", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" } ], "bytecode": "0x", "deployedBytecode": "0x", "linkReferences": {}, "deployedLinkReferences": {} } declare module "@nomicfoundation/hardhat-viem/types" { export function deployContract( contractName: "IBet", constructorArgs?: [], config?: DeployContractConfig ): Promise<GetContractReturnType<IBet$Type["abi"]>>; export function deployContract( contractName: "contracts/interface/IBet.sol:IBet", constructorArgs?: [], config?: DeployContractConfig ): Promise<GetContractReturnType<IBet$Type["abi"]>>; export function sendDeploymentTransaction( contractName: "IBet", constructorArgs?: [], config?: SendDeploymentTransactionConfig ): Promise<{ contract: GetContractReturnType<IBet$Type["abi"]>; deploymentTransaction: GetTransactionReturnType; }>; export function sendDeploymentTransaction( contractName: "contracts/interface/IBet.sol:IBet", constructorArgs?: [], config?: SendDeploymentTransactionConfig ): Promise<{ contract: GetContractReturnType<IBet$Type["abi"]>; deploymentTransaction: GetTransactionReturnType; }>; export function getContractAt( contractName: "IBet", address: Address, config?: GetContractAtConfig ): Promise<GetContractReturnType<IBet$Type["abi"]>>; export function getContractAt( contractName: "contracts/interface/IBet.sol:IBet", address: Address, config?: GetContractAtConfig ): Promise<GetContractReturnType<IBet$Type["abi"]>>; }