@price-oracle/v1-core-interfaces
Version:
Price Oracle v1 Core Interfaces and needed integration files
680 lines • 25 kB
JSON
{
"abi": [
{
"inputs": [],
"name": "PriceGovernable_NoGovernanceZeroAddress",
"type": "error"
},
{
"inputs": [],
"name": "PriceGovernable_OnlyGovernance",
"type": "error"
},
{
"inputs": [],
"name": "PriceGovernable_OnlyPendingGovernance",
"type": "error"
},
{
"inputs": [],
"name": "PricePausable_Paused",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "_pendingGovernance",
"type": "address"
}
],
"name": "GovernanceProposal",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "_governance",
"type": "address"
}
],
"name": "GovernanceSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bool",
"name": "_paused",
"type": "bool"
}
],
"name": "PausedSet",
"type": "event"
},
{
"inputs": [],
"name": "acceptGovernance",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "governance",
"outputs": [
{
"internalType": "address",
"name": "_governance",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "isPaused",
"outputs": [
{
"internalType": "bool",
"name": "_isPaused",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "pendingGovernance",
"outputs": [
{
"internalType": "address",
"name": "_pendingGovernance",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_governance",
"type": "address"
}
],
"name": "setGovernance",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bool",
"name": "_paused",
"type": "bool"
}
],
"name": "setPaused",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": {
"object": "0x",
"sourceMap": "",
"linkReferences": {}
},
"deployedBytecode": {
"object": "0x",
"sourceMap": "",
"linkReferences": {}
},
"methodIdentifiers": {
"acceptGovernance()": "238efcbc",
"governance()": "5aa6e675",
"isPaused()": "b187bd26",
"pendingGovernance()": "f39c38a0",
"setGovernance(address)": "ab033ea9",
"setPaused(bool)": "16c38b3c"
},
"rawMetadata": "{\"compiler\":{\"version\":\"0.8.10+commit.fc410830\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"PriceGovernable_NoGovernanceZeroAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"PriceGovernable_OnlyGovernance\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"PriceGovernable_OnlyPendingGovernance\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"PricePausable_Paused\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_pendingGovernance\",\"type\":\"address\"}],\"name\":\"GovernanceProposal\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_governance\",\"type\":\"address\"}],\"name\":\"GovernanceSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"_paused\",\"type\":\"bool\"}],\"name\":\"PausedSet\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"acceptGovernance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"governance\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"_governance\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isPaused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"_isPaused\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingGovernance\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"_pendingGovernance\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_governance\",\"type\":\"address\"}],\"name\":\"setGovernance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"_paused\",\"type\":\"bool\"}],\"name\":\"setPaused\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"events\":{\"PausedSet(bool)\":{\"params\":{\"_paused\":\"The new paused status, true if the contract is paused\"}}},\"kind\":\"dev\",\"methods\":{\"governance()\":{\"returns\":{\"_governance\":\"The governance address\"}},\"isPaused()\":{\"returns\":{\"_isPaused\":\"True if paused\"}},\"pendingGovernance()\":{\"returns\":{\"_pendingGovernance\":\"The pendingGovernance address\"}},\"setGovernance(address)\":{\"params\":{\"_governance\":\"The address being proposed as the new governance\"}},\"setPaused(bool)\":{\"params\":{\"_paused\":\"True to pause the contract, false to resume it\"}}},\"version\":1},\"userdoc\":{\"errors\":{\"PriceGovernable_NoGovernanceZeroAddress()\":[{\"notice\":\"Thrown when trying to set governance to zero address\"}],\"PriceGovernable_OnlyGovernance()\":[{\"notice\":\"Thrown when the caller of the function is not governance\"}],\"PriceGovernable_OnlyPendingGovernance()\":[{\"notice\":\"Thrown when the caller of the function is not pendingGovernance\"}],\"PricePausable_Paused()\":[{\"notice\":\"Thrown when trying to access a paused contract\"}]},\"events\":{\"GovernanceProposal(address)\":{\"notice\":\"Emitted when new governance is proposed\"},\"GovernanceSet(address)\":{\"notice\":\"Emitted when pendingGovernance accepts to be governance\"},\"PausedSet(bool)\":{\"notice\":\"Emitted when the pause status of the contract changes\"}},\"kind\":\"user\",\"methods\":{\"acceptGovernance()\":{\"notice\":\"Changes the governance from the current one to the previously proposed address\"},\"governance()\":{\"notice\":\"Returns the governance address\"},\"isPaused()\":{\"notice\":\"Returns the pause status\"},\"pendingGovernance()\":{\"notice\":\"Returns the pendingGovernance address\"},\"setGovernance(address)\":{\"notice\":\"Proposes a new address to be governance\"},\"setPaused(bool)\":{\"notice\":\"Set the pause status\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"solidity/interfaces/utils/IPricePausable.sol\":\"IPricePausable\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":20000},\"remappings\":[\":@contracts/=solidity/contracts/\",\":@defi-wonderland/=node_modules/@defi-wonderland/\",\":@interfaces/=solidity/interfaces/\",\":@openzeppelin/=node_modules/@openzeppelin/\",\":@test/=solidity/test/\",\":@uniswap/=node_modules/@uniswap/\",\":@uniswap/v3-core/=node_modules/@uniswap/v3-core/\",\":@uniswap/v3-periphery/=node_modules/@uniswap/v3-periphery/\",\":base64-sol/=node_modules/base64-sol/\",\":chainlink/=node_modules/chainlink/contracts/src/v0.8/\",\":ds-test/=node_modules/ds-test/src/\",\":forge-std/=node_modules/forge-std/src/\",\":isolmate/=node_modules/@defi-wonderland/isolmate/src/\",\":keep3r-v2/=node_modules/keep3r-v2/\",\":keep3r/=node_modules/keep3r-v2/solidity/\",\":openzeppelin-solidity/=node_modules/openzeppelin-solidity/\",\":oz/=node_modules/openzeppelin-solidity/contracts/\",\":uni-v3-core/=node_modules/@uniswap/v3-core/contracts/\",\":uni-v3-periphery/=node_modules/@uniswap/v3-periphery/contracts/\",\":weird-erc20/=node_modules/weird-erc20/src/\"]},\"sources\":{\"solidity/interfaces/utils/IPriceGovernable.sol\":{\"keccak256\":\"0xd58d6f0d8634ccd0e4ebf04a73c48b6741e221c66c369f3d09ec7891e96a266f\",\"license\":\"AGPL-3.0-only\",\"urls\":[\"bzz-raw://8e838c65618d08f0300e555d520e8062eae0d09f387812437a9dad0fd782ae9b\",\"dweb:/ipfs/QmYarNLYUK192seJ4hgB4nHjzzb5sxS8Bsm1K4aA21fLuX\"]},\"solidity/interfaces/utils/IPricePausable.sol\":{\"keccak256\":\"0x32147e0eac7998813804d67fef37ca41796e9d12d9cdd30206d5fb04badba29e\",\"license\":\"AGPL-3.0-only\",\"urls\":[\"bzz-raw://0cebfa2c49375ed9140244cead0d3f4c501970343ccfdd27c7fe41cc2b937ff4\",\"dweb:/ipfs/QmPZ4AY4KFSYmJnHnmwH33kuadY8t4JnnH8hjcVThVB87E\"]}},\"version\":1}",
"metadata": {
"compiler": {
"version": "0.8.10+commit.fc410830"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [],
"type": "error",
"name": "PriceGovernable_NoGovernanceZeroAddress"
},
{
"inputs": [],
"type": "error",
"name": "PriceGovernable_OnlyGovernance"
},
{
"inputs": [],
"type": "error",
"name": "PriceGovernable_OnlyPendingGovernance"
},
{
"inputs": [],
"type": "error",
"name": "PricePausable_Paused"
},
{
"inputs": [
{
"internalType": "address",
"name": "_pendingGovernance",
"type": "address",
"indexed": false
}
],
"type": "event",
"name": "GovernanceProposal",
"anonymous": false
},
{
"inputs": [
{
"internalType": "address",
"name": "_governance",
"type": "address",
"indexed": false
}
],
"type": "event",
"name": "GovernanceSet",
"anonymous": false
},
{
"inputs": [
{
"internalType": "bool",
"name": "_paused",
"type": "bool",
"indexed": false
}
],
"type": "event",
"name": "PausedSet",
"anonymous": false
},
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "function",
"name": "acceptGovernance"
},
{
"inputs": [],
"stateMutability": "view",
"type": "function",
"name": "governance",
"outputs": [
{
"internalType": "address",
"name": "_governance",
"type": "address"
}
]
},
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "function",
"name": "isPaused",
"outputs": [
{
"internalType": "bool",
"name": "_isPaused",
"type": "bool"
}
]
},
{
"inputs": [],
"stateMutability": "view",
"type": "function",
"name": "pendingGovernance",
"outputs": [
{
"internalType": "address",
"name": "_pendingGovernance",
"type": "address"
}
]
},
{
"inputs": [
{
"internalType": "address",
"name": "_governance",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function",
"name": "setGovernance"
},
{
"inputs": [
{
"internalType": "bool",
"name": "_paused",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function",
"name": "setPaused"
}
],
"devdoc": {
"kind": "dev",
"methods": {
"governance()": {
"returns": {
"_governance": "The governance address"
}
},
"isPaused()": {
"returns": {
"_isPaused": "True if paused"
}
},
"pendingGovernance()": {
"returns": {
"_pendingGovernance": "The pendingGovernance address"
}
},
"setGovernance(address)": {
"params": {
"_governance": "The address being proposed as the new governance"
}
},
"setPaused(bool)": {
"params": {
"_paused": "True to pause the contract, false to resume it"
}
}
},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {
"acceptGovernance()": {
"notice": "Changes the governance from the current one to the previously proposed address"
},
"governance()": {
"notice": "Returns the governance address"
},
"isPaused()": {
"notice": "Returns the pause status"
},
"pendingGovernance()": {
"notice": "Returns the pendingGovernance address"
},
"setGovernance(address)": {
"notice": "Proposes a new address to be governance"
},
"setPaused(bool)": {
"notice": "Set the pause status"
}
},
"version": 1
}
},
"settings": {
"remappings": [
":@contracts/=solidity/contracts/",
":@defi-wonderland/=node_modules/@defi-wonderland/",
":@interfaces/=solidity/interfaces/",
":@openzeppelin/=node_modules/@openzeppelin/",
":@test/=solidity/test/",
":@uniswap/=node_modules/@uniswap/",
":@uniswap/v3-core/=node_modules/@uniswap/v3-core/",
":@uniswap/v3-periphery/=node_modules/@uniswap/v3-periphery/",
":base64-sol/=node_modules/base64-sol/",
":chainlink/=node_modules/chainlink/contracts/src/v0.8/",
":ds-test/=node_modules/ds-test/src/",
":forge-std/=node_modules/forge-std/src/",
":isolmate/=node_modules/@defi-wonderland/isolmate/src/",
":keep3r-v2/=node_modules/keep3r-v2/",
":keep3r/=node_modules/keep3r-v2/solidity/",
":openzeppelin-solidity/=node_modules/openzeppelin-solidity/",
":oz/=node_modules/openzeppelin-solidity/contracts/",
":uni-v3-core/=node_modules/@uniswap/v3-core/contracts/",
":uni-v3-periphery/=node_modules/@uniswap/v3-periphery/contracts/",
":weird-erc20/=node_modules/weird-erc20/src/"
],
"optimizer": {
"enabled": true,
"runs": 20000
},
"metadata": {
"bytecodeHash": "ipfs"
},
"compilationTarget": {
"solidity/interfaces/utils/IPricePausable.sol": "IPricePausable"
},
"libraries": {}
},
"sources": {
"solidity/interfaces/utils/IPriceGovernable.sol": {
"keccak256": "0xd58d6f0d8634ccd0e4ebf04a73c48b6741e221c66c369f3d09ec7891e96a266f",
"urls": [
"bzz-raw://8e838c65618d08f0300e555d520e8062eae0d09f387812437a9dad0fd782ae9b",
"dweb:/ipfs/QmYarNLYUK192seJ4hgB4nHjzzb5sxS8Bsm1K4aA21fLuX"
],
"license": "AGPL-3.0-only"
},
"solidity/interfaces/utils/IPricePausable.sol": {
"keccak256": "0x32147e0eac7998813804d67fef37ca41796e9d12d9cdd30206d5fb04badba29e",
"urls": [
"bzz-raw://0cebfa2c49375ed9140244cead0d3f4c501970343ccfdd27c7fe41cc2b937ff4",
"dweb:/ipfs/QmPZ4AY4KFSYmJnHnmwH33kuadY8t4JnnH8hjcVThVB87E"
],
"license": "AGPL-3.0-only"
}
},
"version": 1
},
"ast": {
"absolutePath": "solidity/interfaces/utils/IPricePausable.sol",
"id": 45166,
"exportedSymbols": {
"IPriceGovernable": [
45139
],
"IPricePausable": [
45165
]
},
"nodeType": "SourceUnit",
"src": "42:1413:102",
"nodes": [
{
"id": 45141,
"nodeType": "PragmaDirective",
"src": "42:31:102",
"nodes": [],
"literals": [
"solidity",
">=",
"0.8",
".4",
"<",
"0.9",
".0"
]
},
{
"id": 45142,
"nodeType": "ImportDirective",
"src": "75:48:102",
"nodes": [],
"absolutePath": "solidity/interfaces/utils/IPriceGovernable.sol",
"file": "@interfaces/utils/IPriceGovernable.sol",
"nameLocation": "-1:-1:-1",
"scope": 45166,
"sourceUnit": 45140,
"symbolAliases": [],
"unitAlias": ""
},
{
"id": 45165,
"nodeType": "ContractDefinition",
"src": "125:1329:102",
"nodes": [
{
"id": 45149,
"nodeType": "EventDefinition",
"src": "499:30:102",
"nodes": [],
"anonymous": false,
"documentation": {
"id": 45145,
"nodeType": "StructuredDocumentation",
"src": "347:149:102",
"text": "@notice Emitted when the pause status of the contract changes\n@param _paused The new paused status, true if the contract is paused"
},
"name": "PausedSet",
"nameLocation": "505:9:102",
"parameters": {
"id": 45148,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 45147,
"indexed": false,
"mutability": "mutable",
"name": "_paused",
"nameLocation": "520:7:102",
"nodeType": "VariableDeclaration",
"scope": 45149,
"src": "515:12:102",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 45146,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "515:4:102",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "514:14:102"
}
},
{
"id": 45152,
"nodeType": "ErrorDefinition",
"src": "777:29:102",
"nodes": [],
"documentation": {
"id": 45150,
"nodeType": "StructuredDocumentation",
"src": "706:68:102",
"text": "@notice Thrown when trying to access a paused contract"
},
"name": "PricePausable_Paused",
"nameLocation": "783:20:102",
"parameters": {
"id": 45151,
"nodeType": "ParameterList",
"parameters": [],
"src": "803:2:102"
}
},
{
"id": 45158,
"nodeType": "FunctionDefinition",
"src": "1069:54:102",
"nodes": [],
"documentation": {
"id": 45153,
"nodeType": "StructuredDocumentation",
"src": "983:83:102",
"text": "@notice Returns the pause status\n@return _isPaused True if paused"
},
"functionSelector": "b187bd26",
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "isPaused",
"nameLocation": "1078:8:102",
"parameters": {
"id": 45154,
"nodeType": "ParameterList",
"parameters": [],
"src": "1086:2:102"
},
"returnParameters": {
"id": 45157,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 45156,
"mutability": "mutable",
"name": "_isPaused",
"nameLocation": "1112:9:102",
"nodeType": "VariableDeclaration",
"scope": 45158,
"src": "1107:14:102",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 45155,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1107:4:102",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "1106:16:102"
},
"scope": 45165,
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"id": 45164,
"nodeType": "FunctionDefinition",
"src": "1410:42:102",
"nodes": [],
"documentation": {
"id": 45159,
"nodeType": "StructuredDocumentation",
"src": "1298:109:102",
"text": "@notice Set the pause status\n@param _paused True to pause the contract, false to resume it"
},
"functionSelector": "16c38b3c",
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "setPaused",
"nameLocation": "1419:9:102",
"parameters": {
"id": 45162,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 45161,
"mutability": "mutable",
"name": "_paused",
"nameLocation": "1434:7:102",
"nodeType": "VariableDeclaration",
"scope": 45164,
"src": "1429:12:102",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 45160,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1429:4:102",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "1428:14:102"
},
"returnParameters": {
"id": 45163,
"nodeType": "ParameterList",
"parameters": [],
"src": "1451:0:102"
},
"scope": 45165,
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
}
],
"abstract": false,
"baseContracts": [
{
"baseName": {
"id": 45143,
"name": "IPriceGovernable",
"nodeType": "IdentifierPath",
"referencedDeclaration": 45139,
"src": "153:16:102"
},
"id": 45144,
"nodeType": "InheritanceSpecifier",
"src": "153:16:102"
}
],
"canonicalName": "IPricePausable",
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"linearizedBaseContracts": [
45165,
45139
],
"name": "IPricePausable",
"nameLocation": "135:14:102",
"scope": 45166,
"usedErrors": [
45110,
45113,
45116,
45152
]
}
],
"license": "AGPL-3.0-only"
},
"id": 102
}