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

Improved types, using mintType instead of interfaceId #54

Merged
merged 3 commits into from
Sep 8, 2022

Conversation

vigneshka
Copy link
Collaborator

@vigneshka vigneshka commented Sep 8, 2022

Split the Configs and Schedules into subtypes and added typeguard mintType
e.g. MerkleDropSchedule and MerkleDropSchedule
and mintType = 'MerkleDrop' for use as a typeguard

@changeset-bot
Copy link

changeset-bot bot commented Sep 8, 2022

🦋 Changeset detected

Latest commit: ffcc8fe

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

This PR includes changesets to release 1 package
Name Type
@soundxyz/sdk Patch

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

Copy link
Member

@PabloSzx PabloSzx left a comment

Choose a reason for hiding this comment

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

this is still missing the type-guard helpers to not have to manually code them after?

Copy link
Member

@PabloSzx PabloSzx left a comment

Choose a reason for hiding this comment

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

basically we need helper that do isFixedPriceSignature(...) isRangeEdition(...) isMerkleDrop(...)

@vigneshka
Copy link
Collaborator Author

@PabloSzx , what kind of helpers are you thinking?

@PabloSzx
Copy link
Member

PabloSzx commented Sep 8, 2022

basically we need helper that do isFixedPriceSignature(...) isRangeEdition(...) isMerkleDrop(...)

@PabloSzx
Copy link
Member

PabloSzx commented Sep 8, 2022

@vigneshka ffcc8fe

@vigneshka vigneshka merged commit bd76d66 into main Sep 8, 2022
@vigneshka vigneshka deleted the vigneshka/cleanup-types branch September 8, 2022 15:30
@github-actions github-actions bot mentioned this pull request Sep 8, 2022
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