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

[contract-addresses] Add ChainId type predicate #756

Merged
merged 1 commit into from
Nov 2, 2023

Conversation

rhinodavid
Copy link
Contributor

Description

Add a handy-dandy type predicate for Chain ID.

And sort the types like we care about them.

Testing instructions

Batteries included!

@rhinodavid rhinodavid requested review from dekz and kyu-c as code owners October 27, 2023 21:05
@@ -1,42 +1,49 @@
import addresses from '../addresses.json';

export interface ContractAddresses {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

sort

zeroExGovernor: string;
zrxToken: string;
zrxTreasury: string;
zrxVault: string;
}

export enum ChainId {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

sort by number

@rhinodavid rhinodavid force-pushed the david/contract-chainid branch from 0ccd385 to ac5e271 Compare October 27, 2023 21:06
@rhinodavid rhinodavid merged commit c5650da into development Nov 2, 2023
1 check failed
@rhinodavid rhinodavid deleted the david/contract-chainid branch November 2, 2023 22:30
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.

4 participants