PythUpgradable

Verified contract

Implementation

Active on Ethereum with 0 txns
Deployed by via 0x35452472 at 18982561
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

No balances found for "PythUpgradable"

No transactions found for "PythUpgradable"


Functions
Getter at block 21202885
 
chainId(view returns (uint16)
getValidTimePeriod(view returns (uint256)
0
governanceDataSource(view returns (struct PythInternalStructsDataSource)
(0, 0x0000000000000000000000000000000000000000000000000000000000000000)
governanceDataSourceIndex(view returns (uint32)
0
lastExecutedGovernanceSequence(view returns (uint64)
0
owner(view returns (address)
0x0000000000000000000000000000000000000000
proxiableUUID(view returns (bytes32)
0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc
pythUpgradableMagic(pure returns (uint32)
2544300804
singleUpdateFeeInWei(view returns (uint256)
0
validDataSources(view returns (struct PythInternalStructsDataSource[])
[]
validTimePeriodSeconds(view returns (uint256)
0
version(pure returns (string)
1.4.3
wormhole(view returns (address)
0x0000000000000000000000000000000000000000
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
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(
Fallback and receive

This contract contains no fallback and receive objects.

Errors
InsufficientFee(
InvalidArgument(
InvalidGovernanceDataSource(
InvalidGovernanceMessage(
InvalidGovernanceTarget(
InvalidUpdateData(
InvalidUpdateDataSource(
InvalidWormholeAddressToSet(
InvalidWormholeVaa(
NoFreshUpdate(
OldGovernanceMessage(
PriceFeedNotFound(
PriceFeedNotFoundWithinRange(
StalePrice(