Expand description
Generated by the following Solidity interface…
interface HoprWinningProbabilityOracle {
type WinProb is uint56;
error WinProbMustNotBeSame();
event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
event WinProbUpdated(WinProb oldWinProb, WinProb newWinProb);
constructor(address _newOwner, WinProb _initialWinProb);
function acceptOwnership() external;
function currentWinProb() external view returns (WinProb);
function owner() external view returns (address);
function pendingOwner() external view returns (address);
function renounceOwnership() external;
function setWinProb(WinProb _newWinProb) external;
function transferOwnership(address newOwner) external;
}
…which was generated by the following JSON ABI:
[
{
"type": "constructor",
"inputs": [
{
"name": "_newOwner",
"type": "address",
"internalType": "address"
},
{
"name": "_initialWinProb",
"type": "uint56",
"internalType": "WinProb"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "acceptOwnership",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "currentWinProb",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint56",
"internalType": "WinProb"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "owner",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "pendingOwner",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "renounceOwnership",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setWinProb",
"inputs": [
{
"name": "_newWinProb",
"type": "uint56",
"internalType": "WinProb"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "transferOwnership",
"inputs": [
{
"name": "newOwner",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "event",
"name": "OwnershipTransferStarted",
"inputs": [
{
"name": "previousOwner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "newOwner",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "OwnershipTransferred",
"inputs": [
{
"name": "previousOwner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "newOwner",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "WinProbUpdated",
"inputs": [
{
"name": "oldWinProb",
"type": "uint56",
"indexed": false,
"internalType": "WinProb"
},
{
"name": "newWinProb",
"type": "uint56",
"indexed": false,
"internalType": "WinProb"
}
],
"anonymous": false
},
{
"type": "error",
"name": "WinProbMustNotBeSame",
"inputs": []
}
]
Structs§
- Hopr
Winning Probability Oracle Instance - A
HoprWinningProbabilityOracle
instance. - Ownership
Transfer Started - Event with signature
OwnershipTransferStarted(address,address)
and selector0x38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e22700
. - Ownership
Transferred - Event with signature
OwnershipTransferred(address,address)
and selector0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0
. - WinProb
- WinProb
Must NotBe Same - Custom error with signature
WinProbMustNotBeSame()
and selector0x36bf1fcd
. - WinProb
Updated - Event with signature
WinProbUpdated(uint56,uint56)
and selector0x02728c4a80373f4765559dc3a046edea88186424827238bb46245668315d3800
. - accept
Ownership Call - Function with signature
acceptOwnership()
and selector0x79ba5097
. - accept
Ownership Return - Container type for the return parameters of the
acceptOwnership()
function. - constructor
Call - Constructor`.
- current
WinProb Call - Function with signature
currentWinProb()
and selector0x168e9160
. - current
WinProb Return - Container type for the return parameters of the
currentWinProb()
function. - owner
Call - Function with signature
owner()
and selector0x8da5cb5b
. - owner
Return - Container type for the return parameters of the
owner()
function. - pending
Owner Call - Function with signature
pendingOwner()
and selector0xe30c3978
. - pending
Owner Return - Container type for the return parameters of the
pendingOwner()
function. - renounce
Ownership Call - Function with signature
renounceOwnership()
and selector0x715018a6
. - renounce
Ownership Return - Container type for the return parameters of the
renounceOwnership()
function. - setWin
Prob Call - Function with signature
setWinProb(uint56)
and selector0xfde46ff8
. - setWin
Prob Return - Container type for the return parameters of the
setWinProb(uint56)
function. - transfer
Ownership Call - Function with signature
transferOwnership(address)
and selector0xf2fde38b
. - transfer
Ownership Return - Container type for the return parameters of the
transferOwnership(address)
function.
Enums§
- Hopr
Winning Probability Oracle Calls - Container for all the
HoprWinningProbabilityOracle
function calls. - Hopr
Winning Probability Oracle Errors - Container for all the
HoprWinningProbabilityOracle
custom errors. - Hopr
Winning Probability Oracle Events - Container for all the
HoprWinningProbabilityOracle
events.
Statics§
- BYTECODE
- The creation / init bytecode of the contract.
- DEPLOYED_
BYTECODE - The runtime bytecode of the contract, as deployed on the network.
Functions§
- deploy
- Deploys this contract using the given
provider
and constructor arguments, if any. - deploy_
builder - Creates a
RawCallBuilder
for deploying this contract using the givenprovider
and constructor arguments, if any. - new
- Creates a new wrapper around an on-chain
HoprWinningProbabilityOracle
contract instance.