Expand description
Generated by the following Solidity interface…
interface PythResolver {
error ReentrancyGuardReentrantCall();
event ResolutionChallenged(uint256 indexed factoryMarketId, int64 newPrice, uint256 newPublishTime, address indexed challenger);
event ResolutionFinalized(uint256 indexed factoryMarketId, int64 price, bool outcomeYes, address indexed finalizer);
event ResolutionSubmitted(uint256 indexed factoryMarketId, int64 price, uint256 publishTime, address indexed resolver);
constructor(address _pyth, address _factory);
function CANCEL_DEADLINE() external view returns (uint256);
function FALLBACK_WINDOW() external view returns (uint256);
function FINALITY_PERIOD() external view returns (uint256);
function MAX_FALLBACK_WINDOWS() external view returns (uint256);
function acceptAdmin() external;
function admin() external view returns (address);
function confThresholdBps() external view returns (uint256);
function factory() external view returns (address);
function finalizeResolution(uint256 factoryMarketId) external;
function getPythUpdateFee(bytes[] memory priceUpdateData) external view returns (uint256);
function pendingAdmin() external view returns (address);
function pendingResolutions(uint256) external view returns (int64 price, uint256 publishTime, uint256 resolvedAtTimestamp, address resolver, bool finalized);
function pyth() external view returns (address);
function resolveMarket(uint256 factoryMarketId, bytes[] memory priceUpdateData) external payable;
function setConfThreshold(uint256 newBps) external;
function setPendingAdmin(address _pendingAdmin) external;
}…which was generated by the following JSON ABI:
[
{
"type": "constructor",
"inputs": [
{
"name": "_pyth",
"type": "address",
"internalType": "address"
},
{
"name": "_factory",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "CANCEL_DEADLINE",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "FALLBACK_WINDOW",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "FINALITY_PERIOD",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "MAX_FALLBACK_WINDOWS",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "acceptAdmin",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "admin",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "confThresholdBps",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "factory",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract MarketFactory"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "finalizeResolution",
"inputs": [
{
"name": "factoryMarketId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "getPythUpdateFee",
"inputs": [
{
"name": "priceUpdateData",
"type": "bytes[]",
"internalType": "bytes[]"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "pendingAdmin",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "pendingResolutions",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "price",
"type": "int64",
"internalType": "int64"
},
{
"name": "publishTime",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "resolvedAtTimestamp",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "resolver",
"type": "address",
"internalType": "address"
},
{
"name": "finalized",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "pyth",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IPyth"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "resolveMarket",
"inputs": [
{
"name": "factoryMarketId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "priceUpdateData",
"type": "bytes[]",
"internalType": "bytes[]"
}
],
"outputs": [],
"stateMutability": "payable"
},
{
"type": "function",
"name": "setConfThreshold",
"inputs": [
{
"name": "newBps",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setPendingAdmin",
"inputs": [
{
"name": "_pendingAdmin",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "event",
"name": "ResolutionChallenged",
"inputs": [
{
"name": "factoryMarketId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "newPrice",
"type": "int64",
"indexed": false,
"internalType": "int64"
},
{
"name": "newPublishTime",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "challenger",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "ResolutionFinalized",
"inputs": [
{
"name": "factoryMarketId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "price",
"type": "int64",
"indexed": false,
"internalType": "int64"
},
{
"name": "outcomeYes",
"type": "bool",
"indexed": false,
"internalType": "bool"
},
{
"name": "finalizer",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "ResolutionSubmitted",
"inputs": [
{
"name": "factoryMarketId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "price",
"type": "int64",
"indexed": false,
"internalType": "int64"
},
{
"name": "publishTime",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "resolver",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "error",
"name": "ReentrancyGuardReentrantCall",
"inputs": []
}
]Structs§
- CANCEL_
DEADLINE Call - Function with signature
CANCEL_DEADLINE()and selector0x59cbd3e7. - CANCEL_
DEADLINE Return - Container type for the return parameters of the
CANCEL_DEADLINE()function. - FALLBACK_
WINDOW Call - Function with signature
FALLBACK_WINDOW()and selector0x8e4baee3. - FALLBACK_
WINDOW Return - Container type for the return parameters of the
FALLBACK_WINDOW()function. - FINALITY_
PERIOD Call - Function with signature
FINALITY_PERIOD()and selector0x7c52fc1d. - FINALITY_
PERIOD Return - Container type for the return parameters of the
FINALITY_PERIOD()function. - MAX_
FALLBACK_ WINDOWS Call - Function with signature
MAX_FALLBACK_WINDOWS()and selector0x8f5d2ef0. - MAX_
FALLBACK_ WINDOWS Return - Container type for the return parameters of the
MAX_FALLBACK_WINDOWS()function. - Pyth
Resolver Instance - A
PythResolverinstance. - Reentrancy
Guard Reentrant Call - Custom error with signature
ReentrancyGuardReentrantCall()and selector0x3ee5aeb5. - Resolution
Challenged - Event with signature
ResolutionChallenged(uint256,int64,uint256,address)and selector0x63836dbc21d4e9311a697e36d9efa3ad9ddad172eeeec3543af50aa4e1a1b1a3. - Resolution
Finalized - Event with signature
ResolutionFinalized(uint256,int64,bool,address)and selector0xe8c2da02c101d47c2341851e2db03c6a7f66ea89e0cc1ede8951eb3937a1c459. - Resolution
Submitted - Event with signature
ResolutionSubmitted(uint256,int64,uint256,address)and selector0x3f7bd2674fcce048c13e608341814279816fad40ccc5ee621cab2d05c55ecdae. - accept
Admin Call - Function with signature
acceptAdmin()and selector0x0e18b681. - accept
Admin Return - Container type for the return parameters of the
acceptAdmin()function. - admin
Call - Function with signature
admin()and selector0xf851a440. - admin
Return - Container type for the return parameters of the
admin()function. - conf
Threshold BpsCall - Function with signature
confThresholdBps()and selector0x80d432fa. - conf
Threshold BpsReturn - Container type for the return parameters of the
confThresholdBps()function. - constructor
Call - Constructor`.
- factory
Call - Function with signature
factory()and selector0xc45a0155. - factory
Return - Container type for the return parameters of the
factory()function. - finalize
Resolution Call - Function with signature
finalizeResolution(uint256)and selector0xf5489b7e. - finalize
Resolution Return - Container type for the return parameters of the
finalizeResolution(uint256)function. - getPyth
Update FeeCall - Function with signature
getPythUpdateFee(bytes[])and selector0xadcaec7b. - getPyth
Update FeeReturn - Container type for the return parameters of the
getPythUpdateFee(bytes[])function. - pending
Admin Call - Function with signature
pendingAdmin()and selector0x26782247. - pending
Admin Return - Container type for the return parameters of the
pendingAdmin()function. - pending
Resolutions Call - Function with signature
pendingResolutions(uint256)and selector0xfecc1021. - pending
Resolutions Return - Container type for the return parameters of the
pendingResolutions(uint256)function. - pyth
Call - Function with signature
pyth()and selector0xf98d06f0. - pyth
Return - Container type for the return parameters of the
pyth()function. - resolve
Market Call - Function with signature
resolveMarket(uint256,bytes[])and selector0x92a8db3f. - resolve
Market Return - Container type for the return parameters of the
resolveMarket(uint256,bytes[])function. - setConf
Threshold Call - Function with signature
setConfThreshold(uint256)and selector0xa0a25b1c. - setConf
Threshold Return - Container type for the return parameters of the
setConfThreshold(uint256)function. - setPending
Admin Call - Function with signature
setPendingAdmin(address)and selector0x4dd18bf5. - setPending
Admin Return - Container type for the return parameters of the
setPendingAdmin(address)function.
Enums§
- Pyth
Resolver Calls - Container for all the
PythResolverfunction calls. - Pyth
Resolver Errors - Container for all the
PythResolvercustom errors. - Pyth
Resolver Events - Container for all the
PythResolverevents.
Functions§
- new
- Creates a new wrapper around an on-chain
PythResolvercontract instance.