UNPKG

@perp/perp-oracle-contract

Version:

Perpetual Protocol Curie (v2) oracle contracts - v0.5.0 is not an audited version

54 lines (53 loc) 2.16 kB
{ "_format": "hh-sol-artifact-1", "contractName": "CumulativeTwap", "sourceName": "contracts/twap/CumulativeTwap.sol", "abi": [ { "inputs": [], "name": "currentObservationIndex", "outputs": [ { "internalType": "uint16", "name": "", "type": "uint16" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "observations", "outputs": [ { "internalType": "uint256", "name": "price", "type": "uint256" }, { "internalType": "uint256", "name": "priceCumulative", "type": "uint256" }, { "internalType": "uint256", "name": "timestamp", "type": "uint256" } ], "stateMutability": "view", "type": "function" } ], "bytecode": "0x608060405234801561001057600080fd5b5060f38061001f6000396000f3fe6080604052348015600f57600080fd5b506004361060325760003560e01c8063252c09d7146037578063aed3aff714606f575b600080fd5b605160048036036020811015604b57600080fd5b5035608c565b60408051938452602084019290925282820152519081900360600190f35b607560b3565b6040805161ffff9092168252519081900360200190f35b6001816107088110609c57600080fd5b600302018054600182015460029092015490925083565b60005461ffff168156fea2646970667358221220bd4798eebbfc36966dcc1df51c5a550e64aed483f68e2566852c06d1b11c580b64736f6c63430007060033", "deployedBytecode": "0x6080604052348015600f57600080fd5b506004361060325760003560e01c8063252c09d7146037578063aed3aff714606f575b600080fd5b605160048036036020811015604b57600080fd5b5035608c565b60408051938452602084019290925282820152519081900360600190f35b607560b3565b6040805161ffff9092168252519081900360200190f35b6001816107088110609c57600080fd5b600302018054600182015460029092015490925083565b60005461ffff168156fea2646970667358221220bd4798eebbfc36966dcc1df51c5a550e64aed483f68e2566852c06d1b11c580b64736f6c63430007060033", "linkReferences": {}, "deployedLinkReferences": {} }