Skip to content

[contract-addresses] Add ChainId type predicate#756

Merged
rhinodavid merged 1 commit intodevelopmentfrom
david/contract-chainid
Nov 2, 2023
Merged

[contract-addresses] Add ChainId type predicate#756
rhinodavid merged 1 commit intodevelopmentfrom
david/contract-chainid

Conversation

@rhinodavid
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

sort

zrxVault: string;
}

export enum ChainId {
Copy link
Copy Markdown
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
@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