Skip to content

Conversation

@DannyDelott
Copy link
Contributor

Closes #1637

This creates a YieldSourceId that is strongly typed, avoids circular dependencies in appconfig, and can be used in consumer code without the type getting lost, as we found to be the case when using declaration merging with tsup.

While here I also added a findYieldSource selector to centralize the way we lookup this info in appconfig. This will make it easy to restructure appconfig as needed without needing to update all the consumers.

@changeset-bot
Copy link

changeset-bot bot commented Nov 12, 2024

⚠️ No Changeset found

Latest commit: c85b396

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@vercel
Copy link

vercel bot commented Nov 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hyperdrive-mainnet-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 12, 2024 5:43am
hyperdrive-sepolia-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 12, 2024 5:43am
6 Skipped Deployments
Name Status Preview Comments Updated (UTC)
hyperdrive-js ⬜️ Ignored (Inspect) Nov 12, 2024 5:43am
hyperdrive-mainnet-production ⬜️ Ignored (Inspect) Nov 12, 2024 5:43am
hyperdrive-sepolia-production ⬜️ Ignored (Inspect) Nov 12, 2024 5:43am
testnet-v1 ⬜️ Ignored (Inspect) Nov 12, 2024 5:43am
testnet-v1.0.6 ⬜️ Ignored (Inspect) Nov 12, 2024 5:43am
trading-competition ⬜️ Ignored (Inspect) Nov 12, 2024 5:43am

@DannyDelott DannyDelott merged commit 3f6fa78 into main Nov 12, 2024
14 checks passed
@DannyDelott DannyDelott deleted the danny-yieldsourceid branch November 12, 2024 15:35
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