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

chore(ctb): Remove TS Utils #6151

Closed
wants to merge 1 commit into from
Closed

Conversation

refcell
Copy link
Contributor

@refcell refcell commented Jun 26, 2023

Description

Removes contract-defs.ts utilities and moves them into the sdk.

@refcell refcell self-assigned this Jun 26, 2023
@changeset-bot
Copy link

changeset-bot bot commented Jun 26, 2023

⚠️ No Changeset found

Latest commit: a813564

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

@refcell refcell requested review from tynes and clabby June 26, 2023 19:32
@netlify
Copy link

netlify bot commented Jun 26, 2023

Deploy Preview for opstack-docs canceled.

Name Link
🔨 Latest commit a813564
🔍 Latest deploy log https://app.netlify.com/sites/opstack-docs/deploys/6499e7b4e3f5c3000838b2ae

@mergify mergify bot added the sdk label Jun 26, 2023
@mergify mergify bot requested a review from roninjin10 June 26, 2023 19:32
@refcell
Copy link
Contributor Author

refcell commented Jun 26, 2023

Closing for @tynes to remove in #6148

@refcell refcell closed this Jun 26, 2023
Copy link
Contributor

@roninjin10 roninjin10 left a comment

Choose a reason for hiding this comment

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

See it closed but submitting review in case it reopens

@@ -3,3 +3,4 @@ export * from './utils'
export * from './cross-chain-messenger'
export * from './adapters'
export * from './l2-provider'
export * from './contract-defs'
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's not export it for now and isntead plan on removing it completely in a future pr. This abstraction is a bad abstraction for a bunch of reasons

  • Hardcoded to only work on CJS doesn't work on any project using the more modern and recommended ESM
  • Not typesafe
  • Not code splittable, biggest tech debt the sdk has for frontend

@refcell refcell deleted the refcell/removecontractdefs branch June 29, 2023 22:48
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