UNPKG

@cartesi/staking-pool

Version:
84 lines 3.5 kB
{ "contractName": "ChainlinkPriceOracle", "sourceName": "contracts/oracle/ChainlinkPriceOracle.sol", "abi": [ { "inputs": [ { "internalType": "address", "name": "_oracle", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "getPrice", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "oracle", "outputs": [ { "internalType": "contract AggregatorInterface", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" } ], "bytecode": "0x60a060405234801561001057600080fd5b5060405161021338038061021383398101604081905261002f91610044565b60601b6001600160601b031916608052610074565b60006020828403121561005657600080fd5b81516001600160a01b038116811461006d57600080fd5b9392505050565b60805160601c61017c61009760003960008181604001526099015261017c6000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80637dc0d1d01461003b57806398d5fdca1461007f575b600080fd5b6100627f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b610087610095565b604051908152602001610076565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166350d25bcd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156100f057600080fd5b505afa158015610104573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610128919061012d565b905090565b60006020828403121561013f57600080fd5b505191905056fea2646970667358221220b02909f3156bcd2200e9ef73f6ea4bfa95005c95ad082e65d279f20bd78ac38064736f6c63430008070033", "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100365760003560e01c80637dc0d1d01461003b57806398d5fdca1461007f575b600080fd5b6100627f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b610087610095565b604051908152602001610076565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166350d25bcd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156100f057600080fd5b505afa158015610104573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610128919061012d565b905090565b60006020828403121561013f57600080fd5b505191905056fea2646970667358221220b02909f3156bcd2200e9ef73f6ea4bfa95005c95ad082e65d279f20bd78ac38064736f6c63430008070033", "linkReferences": {}, "deployedLinkReferences": {}, "devdoc": { "kind": "dev", "methods": { "getPrice()": { "returns": { "_0": "value of CTSI price in ETH" } } }, "version": 1 }, "userdoc": { "kind": "user", "methods": { "getPrice()": { "notice": "Returns latest ETH/CTSI price" } }, "version": 1 }, "evm": { "gasEstimates": { "creation": { "codeDepositCost": "76000", "executionCost": "infinite", "totalCost": "infinite" }, "external": { "getPrice()": "infinite", "oracle()": "infinite" } }, "methodIdentifiers": { "getPrice()": "98d5fdca", "oracle()": "7dc0d1d0" } } }