Skip to content

Conversation

@mcoetzee
Copy link
Collaborator

@mcoetzee mcoetzee commented Aug 20, 2025

Relates to https://github.com/api3dao/oev-auctioneer/issues/762

Note

We are keeping the PR open until we have enabled fast auctions for at least one chain

@mcoetzee mcoetzee requested a review from Siegrift August 20, 2025 14:06
@mcoetzee mcoetzee self-assigned this Aug 20, 2025
@github-actions
Copy link

github-actions bot commented Aug 20, 2025

Visit the preview URL for this PR (updated for commit 821e218):

https://oev-docs--pr221-auction-lengths-4cxltzdi.web.app

(expires Mon, 15 Sep 2025 08:11:32 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 6915b094b5ba83fde754632ba50c1ee9406d433f


The auction length depends on the chain.

| Chain | Length (seconds) |
Copy link
Collaborator

Choose a reason for hiding this comment

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

This table needs to be updated based on our decision on which chains are to use the fast auction times. I'd keep the PR open until we have at least one chain for which we enable the fast auctions to avoid changing the docs drastically.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm also wondering whether we should not have the table specify the auction length for each chain explicitly (and write a test for it).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I like the idea of explicitly listing all chains. In terms of writing a test for this list of chains, I think we can use the @api3/dapi-management and @api3/contracts packages to get a list of supported chains and then add a test that parses the markdown table and compares the two.

Copy link
Collaborator Author

@mcoetzee mcoetzee Aug 28, 2025

Choose a reason for hiding this comment

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

Following on from prev comment, the test wouldn't be able to assert that the auction lengths are correct, but just that the expected chains are present.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think having a check that all chains are listed is a reasonable start. Can you try hacking up a test for this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sure thing 👍

@mcoetzee mcoetzee requested a review from Siegrift August 29, 2025 09:09

```solidity
uint256(keccak256(abi.encodePacked(uint256(dAppId)))) % AUCTION_LENGTH_SECONDS;
uint256(keccak256(abi.encodePacked(uint256(dappId)))) % auctionLength;
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍 Yeah, the casing was incorrect.

.map((chain) => chain.name)
.sort((a, b) => a.localeCompare(b));

test('the auction length section lists all the supported chains', () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍 Yeah, I imagined something like this

'in-depth',
'oev-auctioneer.md'
);
const content = fs.readFileSync(docPath, 'utf8');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you make sure this errors out nicely in case the path doesn't exist (when we move the files arouind)

Copy link
Collaborator

Choose a reason for hiding this comment

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

This is quite a change 🤔 Is this only from the included deps?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah. It seems most of it gets added because of the @api3/api-integrations package (which is a dependency of @api3/dapi-management)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe if we do the test using javascript file we don't need the TS configuration? I think it's a bit of an overkill for the docs repo.

@Siegrift
Copy link
Collaborator

Siegrift commented Sep 8, 2025

Take a look at my comments @mcoetzee and LMK your thoughts, but they can be worked on later. I'm merging this to document the Arbitrum auction length.

@Siegrift Siegrift merged commit b93e8ad into main Sep 8, 2025
3 checks passed
@Siegrift Siegrift deleted the auction-lengths branch September 8, 2025 08:15
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.

3 participants