Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config and deploy for manual feed on xdai #245

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alex-cardstack
Copy link
Contributor

@alex-cardstack alex-cardstack commented Aug 16, 2022

The DIA oracle stopped updating, this prepares switching to a manual oracle.

The new contracts are deployed and configured:

https://blockscout.com/xdai/mainnet/address/0x426558d0cA2f9ec45EbBe4A69Ef10323d5941446/read-proxy#address-tabs
https://blockscout.com/xdai/mainnet/address/0xb62e47A584F9Db9fCbB3241966A12B24dF926261/read-proxy#address-tabs

If it is necessary to switch, which may not be the case now the oracle is updating again,
then:

  1. Merge this PR
  2. Apply config with yarn deploy:xdai:config-only
  3. Merge the relay server PR
  4. Apply relay service config and verify in relay server django admin that the config is correct pointing to the new card oracle

Then, reguarly update the price feed with:

export CURRENT_PRICE=219200

env CARD_USD_PRICE=$CURRENT_PRICE yarn deploy:xdai:update-card-price

Copy link
Contributor

@habdelra habdelra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great!

The DIA oracle stopped updating, this prepares switching to a manual oracle.

If it is necessary to switch, which may not be the case now the oracle is updating again,
then:

1. Merge this PR
2. Apply config with `yarn deploy:xdai:config-only`
3. Merge [the relay server PR](https://github.com/cardstack/card-protocol-relay-service/pull/89)
4. Apply relay service config and verify in relay server django admin that the config is correct pointing to the new card oracle

Then, reguarly update the price feed with:

```sh
export CURRENT_PRICE=219200

env CARD_USD_PRICE=$CURRENT_PRICE yarn deploy:xdai:update-card-price
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants