ERC1967Proxy

Verified contract

Proxy

Active on Ethereum with 6,880 txns
Deployed by via 0xa5d52892 at 15502058
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 49 additional slots
-
variable spans 48 additional slots
-
variable spans 49 additional slots
-
variable spans 49 additional slots
-
variable spans 12 additional slots
Native
Value $0
0x451568cffc53e0bd3d47b78e3869db994738b1334a65bb7553ac0366f5680653
0x1d7273974f4f9fa5a382a1993983236a1df16c826508963969c3ec657d5524f0
0x018a84c4bde57c569494253b365ff86941ad413196e396b83322677689ff9a32
0x063de114434061ec47a8446c827f13d53c139d3f90d6488a5596620e9ed190bf
0x76fb1f7bbeda5e3e3a8d07fcff400f4bfb2ce8ce75c384918d4f19f7f0466a07
0x011dd0d357c9c9ab7275986cfe8f10fc7bac7ed131e21fb37cf13f3979dce019
0xe46975310ad9beabed25ec417395f57000a915ab9b949bb37fb4e414198945e5
0x736fd088420628712a0262427cf4605f4217245b54000b8bbea0e3283db5d237
0x7cdfee4ac96ac60dc55f8b38d206425834ce776a0694331be1bf7adaf280232f
0x872e8278e96fecae5304e3c404777ee302278324307b9c5d3308484c2b024c9b

Functions
Getter at block 21202885
chainId(view returns (uint16)
2
getValidTimePeriod(view returns (uint256)
120
governanceDataSource(view returns (struct PythInternalStructsDataSource)
(1, 0x5635979a221c34931e32620b9293a463065555ea71fe97cd6237ade875b12e9e)
governanceDataSourceIndex(view returns (uint32)
0
lastExecutedGovernanceSequence(view returns (uint64)
120
owner(view returns (address)
0x0000000000000000000000000000000000000000
 
proxiableUUID(view returns (bytes32)
pythUpgradableMagic(pure returns (uint32)
2544300804
singleUpdateFeeInWei(view returns (uint256)
1
validDataSources(view returns (struct PythInternalStructsDataSource[])
[(1, 0x6bb14509a612f01fbbc4cffeebd4bbfb492a86df717ebe92eb6df432a3f00a25), (26, 0xf8cd23c2ab91237730770bbea08d61005cdda0984348f3f6eecb559638c0bba0), (26, 0xe101faedac5851e32b9b23b5f9411a8c2bac4aae3ed4dd7b811dd1a72ea4aa71)]
validTimePeriodSeconds(view returns (uint256)
120
version(pure returns (string)
1.4.3
wormhole(view returns (address)
0x74f09cb3c7e2a01865f424fd14f6dc9a14e3e94e
Read-only
getEmaPrice(bytes32 idview returns (struct PythStructsPrice price)
getEmaPriceNoOlderThan(bytes32 iduint256 ageview returns (struct PythStructsPrice price)
getEmaPriceUnsafe(bytes32 idview returns (struct PythStructsPrice price)
getPrice(bytes32 idview returns (struct PythStructsPrice price)
getPriceNoOlderThan(bytes32 iduint256 ageview returns (struct PythStructsPrice price)
getPriceUnsafe(bytes32 idview returns (struct PythStructsPrice price)
getUpdateFee(bytes[] updateDataview returns (uint256 feeAmount)
getUpdateFee(uint256 updateDataSizeview returns (uint256 feeAmount)
hashDataSource(struct PythInternalStructsDataSource dspure returns (bytes32)
isValidDataSource(uint16 dataSourceChainIdbytes32 dataSourceEmitterAddressview returns (bool)
isValidGovernanceDataSource(uint16 governanceChainIdbytes32 governanceEmitterAddressview returns (bool)
latestPriceInfoPublishTime(bytes32 priceIdview returns (uint64)
parseAuthorizeGovernanceDataSourceTransferPayload(bytes encodedPayloadpure returns (PythGovernanceInstructionsAuthorizeGovernanceDataSourceTransferPayload sgds)
parseGovernanceInstruction(bytes encodedInstructionpure returns (PythGovernanceInstructionsGovernanceInstruction gi)
parseRequestGovernanceDataSourceTransferPayload(bytes encodedPayloadpure returns (PythGovernanceInstructionsRequestGovernanceDataSourceTransferPayload sgdsClaim)
parseSetDataSourcesPayload(bytes encodedPayloadpure returns (PythGovernanceInstructionsSetDataSourcesPayload sds)
parseSetFeePayload(bytes encodedPayloadpure returns (PythGovernanceInstructionsSetFeePayload sf)
parseSetValidPeriodPayload(bytes encodedPayloadpure returns (PythGovernanceInstructionsSetValidPeriodPayload svp)
parseSetWormholeAddressPayload(bytes encodedPayloadpure returns (PythGovernanceInstructionsSetWormholeAddressPayload sw)
parseUpgradeContractPayload(bytes encodedPayloadpure returns (PythGovernanceInstructionsUpgradeContractPayload uc)
priceFeedExists(bytes32 idview returns (bool)
queryPriceFeed(bytes32 idview returns (struct PythStructsPriceFeed priceFeed)
State-modifying
executeGovernanceInstruction(bytes encodedVM
initialize(address wormholeuint16[] dataSourceEmitterChainIdsbytes32[] dataSourceEmitterAddressesuint16 governanceEmitterChainIdbytes32 governanceEmitterAddressuint64 governanceInitialSequenceuint256 validTimePeriodSecondsuint256 singleUpdateFeeInWei
parsePriceFeedUpdates(bytes[] updateDatabytes32[] priceIdsuint64 minPublishTimeuint64 maxPublishTimepayable returns (struct PythStructsPriceFeed[] priceFeeds)
parsePriceFeedUpdatesUnique(bytes[] updateDatabytes32[] priceIdsuint64 minPublishTimeuint64 maxPublishTimepayable returns (struct PythStructsPriceFeed[] priceFeeds)
renounceOwnership(
transferOwnership(address newOwner
updatePriceFeeds(bytes[] updateDatapayable 
updatePriceFeedsIfNecessary(bytes[] updateDatabytes32[] priceIdsuint64[] publishTimespayable 
upgradeTo(address newImplementation
upgradeToAndCall(address newImplementationbytes datapayable 
Events
AdminChanged(address previousAdminaddress newAdmin
BeaconUpgraded(address indexed beacon
Upgraded(address indexed implementation
AdminChanged(address previousAdminaddress newAdmin
BatchPriceFeedUpdate(uint16 chainIduint64 sequenceNumber
BeaconUpgraded(address indexed beacon
ContractUpgraded(address oldImplementationaddress newImplementation
DataSourcesSet(struct PythInternalStructsDataSource[] oldDataSourcesstruct PythInternalStructsDataSource[] newDataSources
FeeSet(uint256 oldFeeuint256 newFee
GovernanceDataSourceSet(struct PythInternalStructsDataSource oldDataSourcestruct PythInternalStructsDataSource newDataSourceuint64 initialSequence
Initialized(uint8 version
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
PriceFeedUpdate(bytes32 indexed iduint64 publishTimeint64 priceuint64 conf
Upgraded(address indexed implementation
ValidPeriodSet(uint256 oldValidPerioduint256 newValidPeriod
WormholeAddressSet(address oldWormholeAddressaddress newWormholeAddress
Constructor
constructor(address _logicbytes _data
Fallback and receive
fallback(
receive(
Errors
InsufficientFee(
InvalidArgument(
InvalidGovernanceDataSource(
InvalidGovernanceMessage(
InvalidGovernanceTarget(
InvalidUpdateData(
InvalidUpdateDataSource(
InvalidWormholeAddressToSet(
InvalidWormholeVaa(
NoFreshUpdate(
OldGovernanceMessage(
PriceFeedNotFound(
PriceFeedNotFoundWithinRange(
StalePrice(