Skip to content

La-DAO/tlatlalia-ni

Repository files navigation

Price Bulletin Contract

Contract Name Deployed Address Chains Test Chains
PriceBulletin 0xada8c0eaba7ad722f4b5555b216f8f11a81593d8 Eth, Arbitrum, Optimism, Gnosis, BSC, PolygonZkevm, Base, Linea Goerli, Mumbai, Sepolia
PriceBulletin 0x996d7b03d1537524bb20273713385c23944ff2ec Polygon, N/A

Diamond and Facets

Diamond contract address: 0x8f78dc290e1701EC664909410661DC17E9c7b62b

Contract Name Deployed Address Chain
DiamondCutFacet 0x0c1d58c012Bb6c34Ca32510f4E458b7198566f17 Gnosis
DiamondLoupeFacet 0xEB1fb5d8247999eaBA01E42b03E9458ddb77aa78 Gnosis
OwnershipFacet 0x7B85cD42B57DDDD03a4928C15c2d4FBDA909dB3a Gnosis
RedstoneFacet 0xbfaF4c60dc1dAE72e93acffE17410d04E713c783 Gnosis
PythFacet 0xB2c111eF9eFc9F330099370eb764Dbce40698635 Gnosis
ChainlinkFacet 0xC8Fe8E631C7BEDDFdF1DfAe11DC82d23018FDC14 Gnosis
CuicaFacet 0x0573ecd652e0d86cef417f8aad36297350cf1e05 Gnosis

Validate an upgrade to Price Bulletin Contract

This guide helps check if an intended upgrade to the PriceBulletin.sol contract will break storage. It uses Openzeppelin upgrades-core tool. Refer to documentation.

  1. Create the new intended version of the PriceBulletin contract with a versioned name. For example: PriceBulletinV2.sol
  2. Add the Natspec annotation reference to the contract. See example below:
@custom:oz-upgrades-from PriceBulletin
contract PriceBulletinV2 is IPriceBulletin, UUPSUpgradeable, OwnableUpgradeable, BulletinSigning {
}
  1. Format contracts and compile both with Hardhat and Foundry.
forge fmt && npx hardhat compile && forge compile
  1. Last run command (replace with the name of the versioned contract you created):
npx @openzeppelin/upgrades-core validate artifacts/build-info --contract PriceBulletinV2
  1. Once you have confirmed the changes are upgrade safe, replace the original PriceBulletin.sol contract with your changes and delete the versioned named contract.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published