Skip to content

Commit

Permalink
Fix local test
Browse files Browse the repository at this point in the history
  • Loading branch information
Siegrift committed Jan 31, 2024
1 parent 5bf1ea2 commit c7c5441
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions local-test-configuration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,8 @@ also required for the monitoring page.
The `AIRSEEKER_MNEMONIC` needs to be URI encoded via `encodeURIComponent` in JS. For example,
`test%20test%20test%20test%20test%20test%20test%20test%20test%20test%20test%20junk`.

Initially, you should see errors because the beacons are not initialized. After you run Airseeker, it will do the
updates and the errors should be gone. The page constantly polls the chain and respective signed APIs and compares the
on-chain and off-chain values. If the deviation exceeds the treshold, the value is marked bold and should be updated by
Airseeker shortly.
The page constantly polls the chain and respective signed APIs and compares the on-chain and off-chain values. If the
deviation exceeds the treshold, the value is marked bold and should be updated by Airseeker shortly.

- Run the Airseeker:

Expand Down
4 changes: 2 additions & 2 deletions local-test-configuration/monitoring/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ <h2>Active data feeds</h2>
dataFeedValue: dataFeedValue.toString(),
dataFeedTimestamp: dataFeedTimestamp.toString(),
// This slightly differs from the main logic in Airseeker, but we only care about beacon IDs here.
beacons,
beacons: decodeDataFeedDetails(dataFeedDetails),
signedApiUrls,
};
console.info('Data feed', dataFeed); // For debugging purposes.
Expand All @@ -911,7 +911,7 @@ <h2>Active data feeds</h2>
const sponsorWallet = deriveSponsorWallet(airseekerMnemonic, dapiName ?? dataFeed.dataFeedId);
const dataFeedInfo = {
dapiName: dapiName,
dataFeedId: dataFeed.decodedDataFeed.dataFeedId,
dataFeedId: dataFeed.dataFeedId,
decodedDapiName: ethers.decodeBytes32String(dapiName),
dataFeedValue: dataFeed.dataFeedValue,
offChainValue: {
Expand Down

0 comments on commit c7c5441

Please sign in to comment.