Expand description
Generated by the following Solidity interface…
interface HoprTicketPriceOracle {
error TicketPriceMustNotBeSame();
error TicketPriceMustNotBeZero();
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
event TicketPriceUpdated(uint256, uint256);
constructor(address _newOwner, uint256 _initialTicketPrice);
function currentTicketPrice() external view returns (uint256);
function owner() external view returns (address);
function renounceOwnership() external;
function setTicketPrice(uint256 _newTicketPrice) external;
function transferOwnership(address newOwner) external;
}
…which was generated by the following JSON ABI:
[
{
"type": "constructor",
"inputs": [
{
"name": "_newOwner",
"type": "address",
"internalType": "address"
},
{
"name": "_initialTicketPrice",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "currentTicketPrice",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "owner",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "renounceOwnership",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setTicketPrice",
"inputs": [
{
"name": "_newTicketPrice",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "transferOwnership",
"inputs": [
{
"name": "newOwner",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"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": "TicketPriceUpdated",
"inputs": [
{
"name": "",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "error",
"name": "TicketPriceMustNotBeSame",
"inputs": []
},
{
"type": "error",
"name": "TicketPriceMustNotBeZero",
"inputs": []
}
]
Structs§
- Hopr
Ticket Price Oracle Instance - A
HoprTicketPriceOracle
instance. - Ownership
Transferred - Event with signature
OwnershipTransferred(address,address)
and selector0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0
. - Ticket
Price Must NotBe Same - Custom error with signature
TicketPriceMustNotBeSame()
and selector0x9b24e939
. - Ticket
Price Must NotBe Zero - Custom error with signature
TicketPriceMustNotBeZero()
and selector0x45b257ef
. - Ticket
Price Updated - Event with signature
TicketPriceUpdated(uint256,uint256)
and selector0xd4c5e06b1ae097ba02372652a7adaa6e4a8e00be527497a3ad0ebc3f761ef3fb
. - constructor
Call - Constructor`.
- current
Ticket Price Call - Function with signature
currentTicketPrice()
and selector0xe0159106
. - current
Ticket Price Return - Container type for the return parameters of the
currentTicketPrice()
function. - owner
Call - Function with signature
owner()
and selector0x8da5cb5b
. - owner
Return - Container type for the return parameters of the
owner()
function. - renounce
Ownership Call - Function with signature
renounceOwnership()
and selector0x715018a6
. - renounce
Ownership Return - Container type for the return parameters of the
renounceOwnership()
function. - setTicket
Price Call - Function with signature
setTicketPrice(uint256)
and selector0x15981650
. - setTicket
Price Return - Container type for the return parameters of the
setTicketPrice(uint256)
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
Ticket Price Oracle Calls - Container for all the
HoprTicketPriceOracle
function calls. - Hopr
Ticket Price Oracle Errors - Container for all the
HoprTicketPriceOracle
custom errors. - Hopr
Ticket Price Oracle Events - Container for all the
HoprTicketPriceOracle
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
HoprTicketPriceOracle
contract instance.