Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VEN-2086]: Update ResilientOracle Implementation #93

Merged
merged 24 commits into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
860451e
chore: vipt for testnet
0xlucian Oct 19, 2023
407b484
chore: add failing simulation for testnet. will commit a fix for it soon
0xlucian Oct 19, 2023
00e0172
feat: check the old implementation using the proxyAdmin view function
chechu Oct 19, 2023
ae5f6e5
chore: finish simulation for testnet vip
0xlucian Oct 19, 2023
f78e09c
fix: format code
0xlucian Oct 19, 2023
ad099af
chore: add one more verification for ACM
0xlucian Oct 19, 2023
1d4ad99
refactor: cleanup code
0xlucian Oct 19, 2023
2e47fd7
chore: add mainnet VIP
0xlucian Oct 19, 2023
3a2771f
chore: add simulation for mainnet VIP
0xlucian Oct 19, 2023
4dedbcd
fix: lint
0xlucian Oct 19, 2023
c8997d0
feat: check bound validator contract after setting it
chechu Oct 19, 2023
8de5551
fixup! feat: check bound validator contract after setting it
chechu Oct 19, 2023
491e68a
refactor: fix VIP description
0xlucian Oct 19, 2023
97def5b
fix: description quotes
0xlucian Oct 19, 2023
87f7139
fix: typo
0xlucian Oct 19, 2023
f688a18
refactor: address PR comments
0xlucian Oct 23, 2023
6e1f4e7
refactor: extend mainnet VIP to add configuration for RedstoneOracble…
0xlucian Nov 14, 2023
44acb60
refactor: extend the simulation and add assertions for the RedStone o…
0xlucian Nov 14, 2023
166f2d2
feat: set final ID for VIP 205
chechu Nov 16, 2023
a1033ed
feat: add more tests for VIP 205 and avoid setMaxStale in the simulation
chechu Nov 16, 2023
081abd3
fixup! feat: add more tests for VIP 205 and avoid setMaxStale in the …
chechu Nov 16, 2023
1ed04f7
feat: add final description for VIP 205
chechu Nov 16, 2023
855f6e4
feat: set final ID for VIP-211
chechu Nov 27, 2023
90d136a
Merge branch 'develop' into vip/ven-2086
chechu Nov 27, 2023
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
333 changes: 333 additions & 0 deletions simulations/vip-211/vip-211-testnet/abi/boundValidator.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,333 @@
[
{
"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"
}
]
Loading
Loading