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

feat(zora): update zora SDK and implement getFees #507

Merged
merged 12 commits into from
Aug 13, 2024

Conversation

mmackz
Copy link
Collaborator

@mmackz mmackz commented Aug 9, 2024

  • Updates zora SDK to latest version
  • Updates method for getting salesConfig using updated SDK.
  • Implements getFees function for V2 mints
  • Removes getMintIntent tests. They are failing when not mocked due to the mins no longer being active.
  • Removes Blast as a supported chain (not compatible with updated SDK)

Fixes BOOST-4415

@mmackz mmackz requested a review from a team as a code owner August 9, 2024 21:17
Copy link

changeset-bot bot commented Aug 9, 2024

🦋 Changeset detected

Latest commit: 4a180fc

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

This PR includes changesets to release 2 packages
Name Type
@rabbitholegg/questdk-plugin-zora Minor
@rabbitholegg/questdk-plugin-registry 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

@mmackz
Copy link
Collaborator Author

mmackz commented Aug 9, 2024

Fixes BOOST-4415

@mmackz
Copy link
Collaborator Author

mmackz commented Aug 9, 2024

@@ -469,6 +439,17 @@ describe('simulateMint function', () => {
'None of the specified function selectors are present in the contract bytecode.',
)
})

test('should simulate a 1155 mint when tokenId using timed sale strategy', async () => {
Copy link
Member

Choose a reason for hiding this comment

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

V2 = timed sale strategy in all cases - right?

expect(fee.actionFee).equals(parseEther('0.29'))
})

test('should return the correct project + action fee for a 721 mint', async () => {
Copy link
Member

Choose a reason for hiding this comment

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

I haven't seen a 721 in a long time from Zora - they arn't running 721s really right? Have you seen a fixed sales strat with a 721?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have not seen an erc721 using the new sales strategy,

@Quazia Quazia merged commit 782c0b8 into main Aug 13, 2024
9 checks passed
@mmackz mmackz deleted the matthew/boost-4415-update-zora-sdk-getfees branch August 13, 2024 15:43
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