Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
157 changes: 157 additions & 0 deletions simulations/vip-650/abi/boundValidator.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
[
{ "inputs": [], "stateMutability": "nonpayable", "type": "constructor" },
{
"inputs": [
{ "internalType": "address", "name": "sender", "type": "address" },
{ "internalType": "address", "name": "calledContract", "type": "address" },
{ "internalType": "string", "name": "methodSignature", "type": "string" }
],
"name": "Unauthorized",
"type": "error"
},
{
"anonymous": false,
"inputs": [{ "indexed": false, "internalType": "uint8", "name": "version", "type": "uint8" }],
"name": "Initialized",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": false, "internalType": "address", "name": "oldAccessControlManager", "type": "address" },
{ "indexed": false, "internalType": "address", "name": "newAccessControlManager", "type": "address" }
],
"name": "NewAccessControlManager",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" },
{ "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }
],
"name": "OwnershipTransferStarted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" },
{ "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "internalType": "address", "name": "asset", "type": "address" },
{ "indexed": true, "internalType": "uint256", "name": "upperBound", "type": "uint256" },
{ "indexed": true, "internalType": "uint256", "name": "lowerBound", "type": "uint256" }
],
"name": "ValidateConfigAdded",
"type": "event"
},
{ "inputs": [], "name": "acceptOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" },
{
"inputs": [],
"name": "accessControlManager",
"outputs": [{ "internalType": "contract IAccessControlManagerV8", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "accessControlManager_", "type": "address" }],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "pendingOwner",
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{ "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" },
{
"inputs": [{ "internalType": "address", "name": "accessControlManager_", "type": "address" }],
"name": "setAccessControlManager",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"components": [
{ "internalType": "address", "name": "asset", "type": "address" },
{ "internalType": "uint256", "name": "upperBoundRatio", "type": "uint256" },
{ "internalType": "uint256", "name": "lowerBoundRatio", "type": "uint256" }
],
"internalType": "struct BoundValidator.ValidateConfig",
"name": "config",
"type": "tuple"
}
],
"name": "setValidateConfig",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"components": [
{ "internalType": "address", "name": "asset", "type": "address" },
{ "internalType": "uint256", "name": "upperBoundRatio", "type": "uint256" },
{ "internalType": "uint256", "name": "lowerBoundRatio", "type": "uint256" }
],
"internalType": "struct BoundValidator.ValidateConfig[]",
"name": "configs",
"type": "tuple[]"
}
],
"name": "setValidateConfigs",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "", "type": "address" }],
"name": "validateConfigs",
"outputs": [
{ "internalType": "address", "name": "asset", "type": "address" },
{ "internalType": "uint256", "name": "upperBoundRatio", "type": "uint256" },
{ "internalType": "uint256", "name": "lowerBoundRatio", "type": "uint256" }
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "asset", "type": "address" },
{ "internalType": "uint256", "name": "reportedPrice", "type": "uint256" },
{ "internalType": "uint256", "name": "anchorPrice", "type": "uint256" }
],
"name": "validatePriceWithAnchorPrice",
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
"stateMutability": "view",
"type": "function"
}
]
187 changes: 187 additions & 0 deletions simulations/vip-650/abi/chainlinkOracle.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
[
{ "inputs": [], "stateMutability": "nonpayable", "type": "constructor" },
{
"inputs": [
{ "internalType": "address", "name": "sender", "type": "address" },
{ "internalType": "address", "name": "calledContract", "type": "address" },
{ "internalType": "string", "name": "methodSignature", "type": "string" }
],
"name": "Unauthorized",
"type": "error"
},
{
"anonymous": false,
"inputs": [{ "indexed": false, "internalType": "uint8", "name": "version", "type": "uint8" }],
"name": "Initialized",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": false, "internalType": "address", "name": "oldAccessControlManager", "type": "address" },
{ "indexed": false, "internalType": "address", "name": "newAccessControlManager", "type": "address" }
],
"name": "NewAccessControlManager",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" },
{ "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }
],
"name": "OwnershipTransferStarted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" },
{ "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "internalType": "address", "name": "asset", "type": "address" },
{ "indexed": false, "internalType": "uint256", "name": "previousPriceMantissa", "type": "uint256" },
{ "indexed": false, "internalType": "uint256", "name": "newPriceMantissa", "type": "uint256" }
],
"name": "PricePosted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "internalType": "address", "name": "asset", "type": "address" },
{ "indexed": false, "internalType": "address", "name": "feed", "type": "address" },
{ "indexed": false, "internalType": "uint256", "name": "maxStalePeriod", "type": "uint256" }
],
"name": "TokenConfigAdded",
"type": "event"
},
{
"inputs": [],
"name": "NATIVE_TOKEN_ADDR",
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{ "inputs": [], "name": "acceptOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" },
{
"inputs": [],
"name": "accessControlManager",
"outputs": [{ "internalType": "contract IAccessControlManagerV8", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "asset", "type": "address" }],
"name": "getPrice",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "accessControlManager_", "type": "address" }],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "pendingOwner",
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "", "type": "address" }],
"name": "prices",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{ "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" },
{
"inputs": [{ "internalType": "address", "name": "accessControlManager_", "type": "address" }],
"name": "setAccessControlManager",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "asset", "type": "address" },
{ "internalType": "uint256", "name": "price", "type": "uint256" }
],
"name": "setDirectPrice",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"components": [
{ "internalType": "address", "name": "asset", "type": "address" },
{ "internalType": "address", "name": "feed", "type": "address" },
{ "internalType": "uint256", "name": "maxStalePeriod", "type": "uint256" }
],
"internalType": "struct ChainlinkOracle.TokenConfig",
"name": "tokenConfig",
"type": "tuple"
}
],
"name": "setTokenConfig",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"components": [
{ "internalType": "address", "name": "asset", "type": "address" },
{ "internalType": "address", "name": "feed", "type": "address" },
{ "internalType": "uint256", "name": "maxStalePeriod", "type": "uint256" }
],
"internalType": "struct ChainlinkOracle.TokenConfig[]",
"name": "tokenConfigs_",
"type": "tuple[]"
}
],
"name": "setTokenConfigs",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "", "type": "address" }],
"name": "tokenConfigs",
"outputs": [
{ "internalType": "address", "name": "asset", "type": "address" },
{ "internalType": "address", "name": "feed", "type": "address" },
{ "internalType": "uint256", "name": "maxStalePeriod", "type": "uint256" }
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
Loading
Loading