PythUpgradable
Verified contract
Implementation
Active on
Base with 0 txns
Storage
Map
Table
Raw
Constants and immutables
11
Slot
XX
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
Balances ($0.00)
No balances found for "PythUpgradable"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "PythUpgradable"
ABI
ABI objects
Getter at block 22744049 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 id) view returns (struct PythStructsPrice price)
getEmaPriceNoOlderThan(bytes32 id, uint256 age) view returns (struct PythStructsPrice price)
getEmaPriceUnsafe(bytes32 id) view returns (struct PythStructsPrice price)
getPrice(bytes32 id) view returns (struct PythStructsPrice price)
getPriceNoOlderThan(bytes32 id, uint256 age) view returns (struct PythStructsPrice price)
getPriceUnsafe(bytes32 id) view returns (struct PythStructsPrice price)
getUpdateFee(bytes[] updateData) view returns (uint256 feeAmount)
getUpdateFee(uint256 updateDataSize) view returns (uint256 feeAmount)
hashDataSource(struct PythInternalStructsDataSource ds) pure returns (bytes32)
isValidDataSource(uint16 dataSourceChainId, bytes32 dataSourceEmitterAddress) view returns (bool)
isValidGovernanceDataSource(uint16 governanceChainId, bytes32 governanceEmitterAddress) view returns (bool)
latestPriceInfoPublishTime(bytes32 priceId) view returns (uint64)
parseAuthorizeGovernanceDataSourceTransferPayload(bytes encodedPayload) pure returns (PythGovernanceInstructionsAuthorizeGovernanceDataSourceTransferPayload sgds)
parseGovernanceInstruction(bytes encodedInstruction) pure returns (PythGovernanceInstructionsGovernanceInstruction gi)
parseRequestGovernanceDataSourceTransferPayload(bytes encodedPayload) pure returns (PythGovernanceInstructionsRequestGovernanceDataSourceTransferPayload sgdsClaim)
parseSetDataSourcesPayload(bytes encodedPayload) pure returns (PythGovernanceInstructionsSetDataSourcesPayload sds)
parseSetFeePayload(bytes encodedPayload) pure returns (PythGovernanceInstructionsSetFeePayload sf)
parseSetValidPeriodPayload(bytes encodedPayload) pure returns (PythGovernanceInstructionsSetValidPeriodPayload svp)
parseSetWormholeAddressPayload(bytes encodedPayload) pure returns (PythGovernanceInstructionsSetWormholeAddressPayload sw)
parseUpgradeContractPayload(bytes encodedPayload) pure returns (PythGovernanceInstructionsUpgradeContractPayload uc)
priceFeedExists(bytes32 id) view returns (bool)
queryPriceFeed(bytes32 id) view returns (struct PythStructsPriceFeed priceFeed)
State-modifying
Events executeGovernanceInstruction(bytes encodedVM)
initialize(address wormhole, uint16[] dataSourceEmitterChainIds, bytes32[] dataSourceEmitterAddresses, uint16 governanceEmitterChainId, bytes32 governanceEmitterAddress, uint64 governanceInitialSequence, uint256 validTimePeriodSeconds, uint256 singleUpdateFeeInWei)
parsePriceFeedUpdates(bytes[] updateData, bytes32[] priceIds, uint64 minPublishTime, uint64 maxPublishTime) payable returns (struct PythStructsPriceFeed[] priceFeeds)
parsePriceFeedUpdatesUnique(bytes[] updateData, bytes32[] priceIds, uint64 minPublishTime, uint64 maxPublishTime) payable returns (struct PythStructsPriceFeed[] priceFeeds)
renounceOwnership()
transferOwnership(address newOwner)
updatePriceFeeds(bytes[] updateData) payable
updatePriceFeedsIfNecessary(bytes[] updateData, bytes32[] priceIds, uint64[] publishTimes) payable
upgradeTo(address newImplementation)
upgradeToAndCall(address newImplementation, bytes data) payable
AdminChanged(address previousAdmin, address newAdmin)
BatchPriceFeedUpdate(uint16 chainId, uint64 sequenceNumber)
BeaconUpgraded(address indexed beacon)
ContractUpgraded(address oldImplementation, address newImplementation)
DataSourcesSet(struct PythInternalStructsDataSource[] oldDataSources, struct PythInternalStructsDataSource[] newDataSources)
FeeSet(uint256 oldFee, uint256 newFee)
GovernanceDataSourceSet(struct PythInternalStructsDataSource oldDataSource, struct PythInternalStructsDataSource newDataSource, uint64 initialSequence)
Initialized(uint8 version)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
PriceFeedUpdate(bytes32 indexed id, uint64 publishTime, int64 price, uint64 conf)
Upgraded(address indexed implementation)
ValidPeriodSet(uint256 oldValidPeriod, uint256 newValidPeriod)
WormholeAddressSet(address oldWormholeAddress, address newWormholeAddress)
constructor()
This contract contains no fallback and receive objects.
InsufficientFee()
InvalidArgument()
InvalidGovernanceDataSource()
InvalidGovernanceMessage()
InvalidGovernanceTarget()
InvalidUpdateData()
InvalidUpdateDataSource()
InvalidWormholeAddressToSet()
InvalidWormholeVaa()
NoFreshUpdate()
OldGovernanceMessage()
PriceFeedNotFound()
PriceFeedNotFoundWithinRange()
StalePrice()