Skip to content

Phala-Network/mirrored-price-feed

 
 

Repository files navigation

Price Feed

Usage

Setup

# Install deps
yarn install

# Fill your wallet private key in the .env file
cp env.example .env

Build and test

yarn build
yarn test

Deploy

Firstly, you need to deploy the OffchainAggregator contract for a price feed, such as the ETH/USD pair.

yarn deploy

Then update the aggregatorContracts in the feeder.ts file, update the deployed contract address to the corresponding pair aggregator address.

Trigger price feed update

bun feeder.ts

# Or

npx tsx feeder.ts

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 54.1%
  • Solidity 45.9%