Skip to content

refactor: simplify TS types#1179

Merged
tk-o merged 4 commits intomainfrom
fix/simplify-ts-types
Oct 15, 2025
Merged

refactor: simplify TS types#1179
tk-o merged 4 commits intomainfrom
fix/simplify-ts-types

Conversation

@tk-o
Copy link
Copy Markdown
Contributor

@tk-o tk-o commented Oct 15, 2025

Drops from type and updates all consumers of type to know when they can access the property. Also, this PR drops type from ENSAdmin, as we can now rely on the one.

Drops  from  type and updates all consumers of  type to know when they can access the  property. Also, this PR drops  type from ENSAdmin, as we can now rely on the  one.
@tk-o tk-o requested a review from a team as a code owner October 15, 2025 06:26
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Oct 15, 2025

🦋 Changeset detected

Latest commit: f33c1d6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 13 packages
Name Type
@ensnode/ensnode-sdk Minor
ensadmin Minor
ensindexer Minor
ensrainbow Minor
@ensnode/ensnode-react Minor
@ensnode/ensrainbow-sdk Minor
@ensnode/datasources Minor
@ensnode/ponder-metadata Minor
@ensnode/ensnode-schema Minor
@ensnode/ponder-subgraph Minor
@ensnode/shared-configs Minor
@docs/ensnode Minor
@docs/ensrainbow Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Oct 15, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
admin.ensnode.io Ready Ready Preview Comment Oct 15, 2025 9:01am
ensnode.io Ready Ready Preview Comment Oct 15, 2025 9:01am
ensrainbow.io Ready Ready Preview Comment Oct 15, 2025 9:01am

Copy link
Copy Markdown
Member

@lightwalker-eth lightwalker-eth left a comment

Choose a reason for hiding this comment

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

@tk-o Looks nice. Just 1 small comment. Please merge when ready 👍


return chainEntries.map(([chainId, chain]) => {
const endBlock = chain.config.endBlock ? blockViewModel(chain.config.endBlock) : null;
const endBlock = chain.config.endBlock ? chain.config.endBlock : null;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggest to update this logic to check chain.config.configType and then decide the endBlock based on that.

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.

Nice catch, will update.

@tk-o tk-o merged commit bbf0d3b into main Oct 15, 2025
9 checks passed
@tk-o tk-o deleted the fix/simplify-ts-types branch October 15, 2025 09:02
@github-actions github-actions bot mentioned this pull request Oct 15, 2025
notrab pushed a commit that referenced this pull request Oct 21, 2025
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