@pvpbet/pvpbet
Version:
A decentralized PVP betting platform based on the Ethereum Virtual Machine (EVM).
760 lines (759 loc) • 16.8 kB
JSON
{
"_format": "hh-sol-artifact-1",
"contractName": "IBetConfigurator",
"sourceName": "contracts/interface/IBetConfigurator.sol",
"abi": [
{
"inputs": [],
"name": "announcementPeriodDuration",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "arbitratingPeriodDuration",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "chip",
"type": "address"
}
],
"name": "betConfig",
"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": [
{
"internalType": "address",
"name": "chip",
"type": "address"
}
],
"name": "chipMinValue",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "chipTokenAllowlist",
"outputs": [
{
"internalType": "address[]",
"name": "",
"type": "address[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "confirmDisputeAmountRatio",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "countPerPenalize",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "countPerRelease",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "creatorRewardRatio",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "maxOptionsCount",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "maxVerifyingPeriodDuration",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "maxWageringPeriodDuration",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "minOptionsCount",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "minVerifyingPeriodDuration",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "chip",
"type": "address"
}
],
"name": "minWageredTotalAmount",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "minWageringPeriodDuration",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "originAllowlist",
"outputs": [
{
"internalType": "string[]",
"name": "",
"type": "string[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "protocolRewardRatio",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "newAnnouncementPeriodDuration",
"type": "uint256"
}
],
"name": "setAnnouncementPeriodDuration",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "newArbitratingPeriodDuration",
"type": "uint256"
}
],
"name": "setArbitratingPeriodDuration",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "chip",
"type": "address"
},
{
"internalType": "uint256",
"name": "newChipMinValue",
"type": "uint256"
}
],
"name": "setChipMinValue",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "newChipTokenAllowlist",
"type": "address[]"
}
],
"name": "setChipTokenAllowlist",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "newConfirmDisputeAmountRatio",
"type": "uint256"
}
],
"name": "setConfirmDisputeAmountRatio",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "newCountPerPenalize",
"type": "uint256"
}
],
"name": "setCountPerPenalize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "newCountPerRelease",
"type": "uint256"
}
],
"name": "setCountPerRelease",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "newCreatorRewardRatio",
"type": "uint256"
}
],
"name": "setCreatorRewardRatio",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "newMaxOptionsCount",
"type": "uint256"
}
],
"name": "setMaxOptionsCount",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "newMaxVerifyingPeriodDuration",
"type": "uint256"
}
],
"name": "setMaxVerifyingPeriodDuration",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "newMaxWageringPeriodDuration",
"type": "uint256"
}
],
"name": "setMaxWageringPeriodDuration",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "newMinOptionsCount",
"type": "uint256"
}
],
"name": "setMinOptionsCount",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "newMinVerifyingPeriodDuration",
"type": "uint256"
}
],
"name": "setMinVerifyingPeriodDuration",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "chip",
"type": "address"
},
{
"internalType": "uint256",
"name": "newMinWageredTotalAmount",
"type": "uint256"
}
],
"name": "setMinWageredTotalAmount",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "newMinWageringPeriodDuration",
"type": "uint256"
}
],
"name": "setMinWageringPeriodDuration",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string[]",
"name": "newOriginAllowlist",
"type": "string[]"
}
],
"name": "setOriginAllowlist",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "newProtocolRewardRatio",
"type": "uint256"
}
],
"name": "setProtocolRewardRatio",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "newSingleOptionMaxAmountRatio",
"type": "uint256"
}
],
"name": "setSingleOptionMaxAmountRatio",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "chip",
"type": "address"
},
{
"internalType": "uint256",
"name": "newVerificationRatio",
"type": "uint256"
}
],
"name": "setVerificationRatio",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "newVerifierRewardRatio",
"type": "uint256"
}
],
"name": "setVerifierRewardRatio",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "newVoteMinValue",
"type": "uint256"
}
],
"name": "setVoteMinValue",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "singleOptionMaxAmountRatio",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
}
],
"name": "validateChipToken",
"outputs": [],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "description",
"type": "string"
}
],
"name": "validateDescription",
"outputs": [],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "wageringPeriodDuration",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "verifyingPeriodDuration",
"type": "uint256"
}
],
"name": "validateDuration",
"outputs": [],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string[]",
"name": "options",
"type": "string[]"
}
],
"name": "validateOptions",
"outputs": [],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "title",
"type": "string"
}
],
"name": "validateTitle",
"outputs": [],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "url",
"type": "string"
}
],
"name": "validateUrl",
"outputs": [],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "chip",
"type": "address"
}
],
"name": "verificationRatio",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "verifierRewardRatio",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "voteMinValue",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"linkReferences": {},
"deployedLinkReferences": {}
}