Skip to content

Documents proxy contracts in README #6

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

Merged
merged 9 commits into from
May 30, 2025
Merged

Documents proxy contracts in README #6

merged 9 commits into from
May 30, 2025

Conversation

acenolaza
Copy link
Collaborator

Initial documentation for the combinator proxy contracts

@acenolaza acenolaza requested a review from Siegrift May 21, 2025 20:27
@acenolaza acenolaza self-assigned this May 21, 2025
Copy link
Contributor

@Siegrift Siegrift left a comment

Choose a reason for hiding this comment

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

I get a sense you tried to document this for audit, but I'm not sure we have to chatty. The contracts here are rather simple and we need to explain we designed them to be composable and maybe show some examples. E.g. building wstETH/USD from Api3 feeds.

For the user docs, what I have in mind:

  1. Document how to run the scripts to deploy the each of the combinators
  2. Have some common use cases

@Siegrift
Copy link
Contributor

Siegrift commented May 23, 2025

Btw. I had to look deep into implementation of @api3/contracts to understand that I should populate MNEMONIC and ETHERSCAN_API_KEY_ETHEREUM for my deployment to work. The ugly thing it's not clear what "etherscan" is the Api3 using under the hood. I don't think this can easily be changed, so it needs to be carefully documented.

In other words, for the user. Assume a person who knows that this repo is used to combine Api3 proxies and wants to do it for their dApp. They have no idea about any Api3 internals.

It also needs to say that this is provided without a warranty and there is no coverage.

@acenolaza
Copy link
Collaborator Author

I get a sense you tried to document this for audit, but I'm not sure we have to chatty. The contracts here are rather simple and we need to explain we designed them to be composable and maybe show some examples. E.g. building wstETH/USD from Api3 feeds.

Yes, I tried giving as much context as needed for auditors to be able to understand the use-cases and design philosophy without much need of going to other repos/docs. I've now simplified a lot the README based on comments.

For the user docs, what I have in mind:

  1. Document how to run the scripts to deploy the each of the combinators
  2. Have some common use cases

Where do you think this user-facing docs should go? Same README file or a spearate file under /docs for instance?

@Siegrift
Copy link
Contributor

Siegrift commented May 24, 2025

Where do you think this user-facing docs should go? Same README file or a spearate file under /docs for instance?

This README and the audit/dev comments to a separate one. Similarly, how it's done in https://github.com/api3dao/api3-dao-dashboard?tab=readme-ov-file#development-instructions

@acenolaza acenolaza changed the base branch from main to proxy-deploy-scripts May 27, 2025 21:56
Base automatically changed from proxy-deploy-scripts to main May 28, 2025 13:17
Copy link
Contributor

@Siegrift Siegrift left a comment

Choose a reason for hiding this comment

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

We should also note somewhere that the user is NOT expected to commit/create-pr with the deployed files and they act only for their convenience.

@acenolaza
Copy link
Collaborator Author

We should also note somewhere that the user is NOT expected to commit/create-pr with the deployed files and they act only for their convenience.

Deployment artifacts are added to /deployments folder by hardhat-deploy but this folder was added to the .gitignore file 👍🏻

@acenolaza acenolaza merged commit f4dc904 into main May 30, 2025
2 checks passed
@acenolaza acenolaza deleted the docs branch May 30, 2025 17:46
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