Skip to content

Latest commit

 

History

History
64 lines (44 loc) · 1.32 KB

File metadata and controls

64 lines (44 loc) · 1.32 KB

Contract Deployment

Part of: Chainlink CRE + AWS Oracle Demo

Prerequisites

  • Sepolia ETH in your wallet (Get testnet ETH)
  • .env file configured with CRE_ETH_PRIVATE_KEY

Install Foundry

curl -L https://foundry.paradigm.xyz | bash
source ~/.bashrc
foundryup

Deploy

cd ~/sample-cre-pricefeeds-por/aws-oracle-cre/contracts/evm
export PRIVATE_KEY=0x$(grep CRE_ETH_PRIVATE_KEY ../../.env | cut -d'=' -f2)
./deploy.sh

The deploy script automatically:

  • Installs forge-std dependencies
  • Compiles contracts
  • Deploys to Sepolia
  • Updates config.staging.json with contract addresses

Next Step: Run CRE Workflow

Optional: Verify Contracts

export ETHERSCAN_API_KEY=your_key
./verify.sh <price_feed_addr> <monitor_addr>

Optional: Test Contracts

./test-contracts.sh

Contracts

  • PriceFeed - Stores asset price data
  • CollateralizationMonitor - Monitors collateral health

Both implement IReceiver for CRE workflow integration.

Related Documentation