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

Add surplus and debt auctions #3

Open
pi0neerpat opened this issue Sep 15, 2023 · 4 comments
Open

Add surplus and debt auctions #3

pi0neerpat opened this issue Sep 15, 2023 · 4 comments

Comments

@pi0neerpat
Copy link
Member

pi0neerpat commented Sep 15, 2023

Depends on #5

@pi0neerpat pi0neerpat self-assigned this Sep 15, 2023
@pi0neerpat pi0neerpat added ch-21 and removed ch-20 labels Oct 10, 2023
@pi0neerpat pi0neerpat added ch-22 and removed ch-21 labels Oct 24, 2023
@pi0neerpat pi0neerpat added ch-23 and removed ch-22 labels Nov 8, 2023
@pi0neerpat pi0neerpat added ch-24 and removed ch-23 labels Nov 22, 2023
@pi0neerpat pi0neerpat assigned jahabeebs and unassigned pi0neerpat Nov 30, 2023
@pi0neerpat pi0neerpat added ch-25 and removed ch-24 labels Dec 4, 2023
@pi0neerpat pi0neerpat added ch-26 and removed ch-25 labels Dec 18, 2023
@pi0neerpat pi0neerpat added ch-27 and removed ch-26 labels Jan 3, 2024
@pi0neerpat
Copy link
Member Author

Note that Hai team has also been working to update the rai subgraph. We started our own new one, but it may be helpful to look at the changes they've made: reflexer-labs/geb-subgraph@master...hai-on-op:subgraph:hai-op-goerli

Note their changes are on branch hai-op-goerli

@jahabeebs
Copy link
Member

jahabeebs commented Jan 19, 2024

@pi0neerpat today I was able to build and deploy the auctions branch successfully and I ran the script to generate surplus auctions (forge script script/states/SurplusAuction.s.sol:SurplusAuction --fork-url http://localhost:8545 -vvvvv) however, in the graphql playground I haven't been able to see or interact with the auction. For example, I logged out the auction # form the deploy script and it was 1, but from my local graphql playground when I try to run surplusAuctionHouseSettleAuction or surplusAuctionHouseRestartAuction I get an error. I'm thinking that possibly my playground is not pointing to the correct contracts

Screenshot 2024-01-19 at 4 36 14 PM

here's the order in which I did stuff:

prepare contracts:

anvil
yarn deploy:anvil
move deployment json to the deployments/anvil folder

  • from: broadcast/Deploy.s.sol/31337/run-latest.json
  • to: deployments/anvil/
  • replace: existing run-latest.json
    node tasks/parseAnvilDeployments.js

prepare subgraph:

  1. replace all the abis with the ones deployed to anvil
  2. replace the contracts in subgraph.yml to be the ones deployed to anvil (addresses from run-latest though I noticed CollateralAuctionHouse is missing) and replace network: arbitrum-sepolia with network: mainnet
  3. docker-compose should have ethereum: 'mainnet:http://host.docker.internal:8545' rather than ethereum: 'arbitrum-sepolia:${ETHEREUM_RPC_URL}'
  4. yarn build
  5. create and deploy subgraph locally to docker instance

then I checked the playground but just get the error in the photo above or a blank response

here are logs from docker:

Screenshot 2024-01-23 at 4 53 15 PM

@pi0neerpat
Copy link
Member Author

Thanks for the update. I'll try to give it a spin

@jahabeebs
Copy link
Member

jahabeebs commented Jan 23, 2024

@pi0neerpat I've tried the flow again with the new scripts and some modifications. I've edited my comment above to say what I've tried but it still seems like anvil and docker are not communicating because I can run the scripts but then don't see any auctions in the playground

@pi0neerpat pi0neerpat added ch-29 and removed ch-28 labels Jan 29, 2024
@pi0neerpat pi0neerpat added ch-30 and removed ch-29 labels Feb 16, 2024
@pi0neerpat pi0neerpat assigned pi0neerpat and unassigned jahabeebs Mar 11, 2024
@pi0neerpat pi0neerpat added ch-31 and removed ch-30 labels Mar 11, 2024
@pi0neerpat pi0neerpat added ch-32 and removed ch-31 labels Mar 26, 2024
@pi0neerpat pi0neerpat added ch-34 and removed ch-33 labels Apr 23, 2024
@pi0neerpat pi0neerpat removed the ch-34 label May 20, 2024
@pi0neerpat pi0neerpat removed their assignment May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants