diff --git a/deployments/optimism/OracleSidechain.json b/deployments/optimism/OracleSidechain.json new file mode 100644 index 0000000..7b8cf6e --- /dev/null +++ b/deployments/optimism/OracleSidechain.json @@ -0,0 +1,396 @@ +{ + "address": "0xEA3D24355D8c1548777f8F96e748c913bE640D53", + "abi": [ + { + "inputs": [], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "AI", + "type": "error" + }, + { + "inputs": [], + "name": "I", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidPool", + "type": "error" + }, + { + "inputs": [], + "name": "OLD", + "type": "error" + }, + { + "inputs": [], + "name": "OnlyDataReceiver", + "type": "error" + }, + { + "inputs": [], + "name": "OnlyFactory", + "type": "error" + }, + { + "inputs": [], + "name": "T", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint16", + "name": "_observationCardinalityNextOld", + "type": "uint16" + }, + { + "indexed": false, + "internalType": "uint16", + "name": "_observationCardinalityNextNew", + "type": "uint16" + } + ], + "name": "IncreaseObservationCardinalityNext", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "_poolSalt", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "address", + "name": "_token0", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "_token1", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint24", + "name": "_fee", + "type": "uint24" + } + ], + "name": "PoolInfoInitialized", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "", + "type": "address" + }, + { + "indexed": false, + "internalType": "int256", + "name": "", + "type": "int256" + }, + { + "indexed": false, + "internalType": "int256", + "name": "", + "type": "int256" + }, + { + "indexed": false, + "internalType": "uint160", + "name": "_sqrtPriceX96", + "type": "uint160" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "int24", + "name": "_tick", + "type": "int24" + } + ], + "name": "Swap", + "type": "event" + }, + { + "inputs": [], + "name": "factory", + "outputs": [ + { + "internalType": "contract IOracleFactory", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "fee", + "outputs": [ + { + "internalType": "uint24", + "name": "", + "type": "uint24" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint16", + "name": "_observationCardinalityNext", + "type": "uint16" + } + ], + "name": "increaseObservationCardinalityNext", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_tokenA", + "type": "address" + }, + { + "internalType": "address", + "name": "_tokenB", + "type": "address" + }, + { + "internalType": "uint24", + "name": "_fee", + "type": "uint24" + } + ], + "name": "initializePoolInfo", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "observations", + "outputs": [ + { + "internalType": "uint32", + "name": "blockTimestamp", + "type": "uint32" + }, + { + "internalType": "int56", + "name": "tickCumulative", + "type": "int56" + }, + { + "internalType": "uint160", + "name": "secondsPerLiquidityCumulativeX128", + "type": "uint160" + }, + { + "internalType": "bool", + "name": "initialized", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32[]", + "name": "_secondsAgos", + "type": "uint32[]" + } + ], + "name": "observe", + "outputs": [ + { + "internalType": "int56[]", + "name": "_tickCumulatives", + "type": "int56[]" + }, + { + "internalType": "uint160[]", + "name": "_secondsPerLiquidityCumulativeX128s", + "type": "uint160[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "poolNonce", + "outputs": [ + { + "internalType": "uint24", + "name": "", + "type": "uint24" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "poolSalt", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "slot0", + "outputs": [ + { + "internalType": "uint160", + "name": "sqrtPriceX96", + "type": "uint160" + }, + { + "internalType": "int24", + "name": "tick", + "type": "int24" + }, + { + "internalType": "uint16", + "name": "observationIndex", + "type": "uint16" + }, + { + "internalType": "uint16", + "name": "observationCardinality", + "type": "uint16" + }, + { + "internalType": "uint16", + "name": "observationCardinalityNext", + "type": "uint16" + }, + { + "internalType": "uint8", + "name": "feeProtocol", + "type": "uint8" + }, + { + "internalType": "bool", + "name": "unlocked", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "token0", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "token1", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "uint32", + "name": "blockTimestamp", + "type": "uint32" + }, + { + "internalType": "int24", + "name": "tick", + "type": "int24" + } + ], + "internalType": "struct IOracleSidechain.ObservationData[]", + "name": "_observationsData", + "type": "tuple[]" + }, + { + "internalType": "uint24", + "name": "_poolNonce", + "type": "uint24" + } + ], + "name": "write", + "outputs": [ + { + "internalType": "bool", + "name": "_written", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + } + ], + "numDeployments": 1 +} \ No newline at end of file diff --git a/deployments/polygon/OracleSidechain.json b/deployments/polygon/OracleSidechain.json new file mode 100644 index 0000000..bdb819f --- /dev/null +++ b/deployments/polygon/OracleSidechain.json @@ -0,0 +1,396 @@ +{ + "address": "0x3dA3d7F689b64b4E4051a7cF13aEb25C35C14697", + "abi": [ + { + "inputs": [], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "AI", + "type": "error" + }, + { + "inputs": [], + "name": "I", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidPool", + "type": "error" + }, + { + "inputs": [], + "name": "OLD", + "type": "error" + }, + { + "inputs": [], + "name": "OnlyDataReceiver", + "type": "error" + }, + { + "inputs": [], + "name": "OnlyFactory", + "type": "error" + }, + { + "inputs": [], + "name": "T", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint16", + "name": "_observationCardinalityNextOld", + "type": "uint16" + }, + { + "indexed": false, + "internalType": "uint16", + "name": "_observationCardinalityNextNew", + "type": "uint16" + } + ], + "name": "IncreaseObservationCardinalityNext", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "_poolSalt", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "address", + "name": "_token0", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "_token1", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint24", + "name": "_fee", + "type": "uint24" + } + ], + "name": "PoolInfoInitialized", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "", + "type": "address" + }, + { + "indexed": false, + "internalType": "int256", + "name": "", + "type": "int256" + }, + { + "indexed": false, + "internalType": "int256", + "name": "", + "type": "int256" + }, + { + "indexed": false, + "internalType": "uint160", + "name": "_sqrtPriceX96", + "type": "uint160" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "int24", + "name": "_tick", + "type": "int24" + } + ], + "name": "Swap", + "type": "event" + }, + { + "inputs": [], + "name": "factory", + "outputs": [ + { + "internalType": "contract IOracleFactory", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "fee", + "outputs": [ + { + "internalType": "uint24", + "name": "", + "type": "uint24" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint16", + "name": "_observationCardinalityNext", + "type": "uint16" + } + ], + "name": "increaseObservationCardinalityNext", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_tokenA", + "type": "address" + }, + { + "internalType": "address", + "name": "_tokenB", + "type": "address" + }, + { + "internalType": "uint24", + "name": "_fee", + "type": "uint24" + } + ], + "name": "initializePoolInfo", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "observations", + "outputs": [ + { + "internalType": "uint32", + "name": "blockTimestamp", + "type": "uint32" + }, + { + "internalType": "int56", + "name": "tickCumulative", + "type": "int56" + }, + { + "internalType": "uint160", + "name": "secondsPerLiquidityCumulativeX128", + "type": "uint160" + }, + { + "internalType": "bool", + "name": "initialized", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32[]", + "name": "_secondsAgos", + "type": "uint32[]" + } + ], + "name": "observe", + "outputs": [ + { + "internalType": "int56[]", + "name": "_tickCumulatives", + "type": "int56[]" + }, + { + "internalType": "uint160[]", + "name": "_secondsPerLiquidityCumulativeX128s", + "type": "uint160[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "poolNonce", + "outputs": [ + { + "internalType": "uint24", + "name": "", + "type": "uint24" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "poolSalt", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "slot0", + "outputs": [ + { + "internalType": "uint160", + "name": "sqrtPriceX96", + "type": "uint160" + }, + { + "internalType": "int24", + "name": "tick", + "type": "int24" + }, + { + "internalType": "uint16", + "name": "observationIndex", + "type": "uint16" + }, + { + "internalType": "uint16", + "name": "observationCardinality", + "type": "uint16" + }, + { + "internalType": "uint16", + "name": "observationCardinalityNext", + "type": "uint16" + }, + { + "internalType": "uint8", + "name": "feeProtocol", + "type": "uint8" + }, + { + "internalType": "bool", + "name": "unlocked", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "token0", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "token1", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "uint32", + "name": "blockTimestamp", + "type": "uint32" + }, + { + "internalType": "int24", + "name": "tick", + "type": "int24" + } + ], + "internalType": "struct IOracleSidechain.ObservationData[]", + "name": "_observationsData", + "type": "tuple[]" + }, + { + "internalType": "uint24", + "name": "_poolNonce", + "type": "uint24" + } + ], + "name": "write", + "outputs": [ + { + "internalType": "bool", + "name": "_written", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + } + ], + "numDeployments": 1 +} \ No newline at end of file