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

protocol sdk - make MintAPIClient a class, with overridable http methods. add full fledged mint examples. refactor MintClient #368

Merged
merged 6 commits into from
Nov 28, 2023

Conversation

oveddan
Copy link
Collaborator

@oveddan oveddan commented Nov 15, 2023

Changes to MintApliClient and MintClient, with descriptions described in the changeset

@oveddan
Copy link
Collaborator Author

oveddan commented Nov 15, 2023

@oveddan oveddan force-pushed the protocol-sdk-split-up-1155-and-721-mint branch 3 times, most recently from 1a04173 to 7cd70e4 Compare November 16, 2023 21:53
@oveddan
Copy link
Collaborator Author

oveddan commented Nov 16, 2023

running into this; doesn't play well with viem types

Screenshot 2023-11-16 at 2 01 43 PM

@oveddan oveddan changed the base branch from main to premint-v2-auth-check-change November 28, 2023 00:06
@oveddan oveddan force-pushed the protocol-sdk-split-up-1155-and-721-mint branch from 7cd70e4 to c8619de Compare November 28, 2023 00:06
@oveddan oveddan changed the title protocol sdk - split up 721 and 1155 minting functions protocol sdk - make mintClient a class, with overridable http methods. add full fledged mint examples. refactor MintClient Nov 28, 2023
@oveddan oveddan force-pushed the protocol-sdk-split-up-1155-and-721-mint branch from 3717b77 to 36d98a7 Compare November 28, 2023 00:27
@oveddan oveddan changed the title protocol sdk - make mintClient a class, with overridable http methods. add full fledged mint examples. refactor MintClient protocol sdk - make MintAPIClient a class, with overridable http methods. add full fledged mint examples. refactor MintClient Nov 28, 2023
@oveddan oveddan marked this pull request as ready for review November 28, 2023 00:39
@@ -1,6 +1,8 @@
import { retries, get, post } from "../apis/http-api-base";
import * as httpClientBase from "../apis/http-api-base";
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: not really a fan of import * unless it’s import * as .

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

agree that this is weird. an interface would make more sense

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

just did a fix, by exporting an interface and leveraging that. let me know what you think

@oveddan oveddan force-pushed the protocol-sdk-split-up-1155-and-721-mint branch from eda7969 to f1f2b4d Compare November 28, 2023 15:58
@iainnash iainnash self-requested a review November 28, 2023 16:32
iainnash
iainnash previously approved these changes Nov 28, 2023
Copy link
Collaborator

@iainnash iainnash left a comment

Choose a reason for hiding this comment

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

lgtm

good to merge after re-running prettier.

@oveddan oveddan changed the base branch from premint-v2-auth-check-change to main November 28, 2023 20:44
@oveddan oveddan dismissed iainnash’s stale review November 28, 2023 20:44

The base branch was changed.

@oveddan oveddan force-pushed the protocol-sdk-split-up-1155-and-721-mint branch from f1f2b4d to 684cc22 Compare November 28, 2023 20:44
@oveddan oveddan merged commit 97f58b3 into main Nov 28, 2023
14 checks passed
@oveddan oveddan deleted the protocol-sdk-split-up-1155-and-721-mint branch November 28, 2023 20:49
iainnash pushed a commit that referenced this pull request Jan 5, 2024
…ods. add full fledged mint examples. refactor MintClient (#368)

* makePrepareMintTOkenParams returns single object
publicClient is optional in test

* updated changeset

* better tsdoc comments.  dont expose all methods

* make token id optional

* added interface for IHttpClient

* fix prettier
iainnash pushed a commit that referenced this pull request Jan 11, 2024
…ods. add full fledged mint examples. refactor MintClient (#368)

* makePrepareMintTOkenParams returns single object
publicClient is optional in test

* updated changeset

* better tsdoc comments.  dont expose all methods

* make token id optional

* added interface for IHttpClient

* fix prettier
iainnash pushed a commit that referenced this pull request Jan 11, 2024
…ods. add full fledged mint examples. refactor MintClient (#368)

* makePrepareMintTOkenParams returns single object
publicClient is optional in test

* updated changeset

* better tsdoc comments.  dont expose all methods

* make token id optional

* added interface for IHttpClient

* fix prettier
oveddan added a commit that referenced this pull request May 10, 2024
<!--- Provide a general summary of your changes in the Title above -->

## Description

<!--- Describe your changes in detail -->

## Motivation and Context

<!--- Why is this change required? What problem does it solve? -->
<!--- If it fixes an open issue, please link to the issue here. -->

## Does this change the ABI/API?

- [ ] This changes the ABI/API

<!-- If so, please describe how and what potential impact this may have -->

## What tests did you add/modify to account for these changes

<!--- Please describe in detail how you tested your changes. -->
<!--- Include details of your testing environment, tests ran to see how -->
<!--- your change affects other areas of the code, etc. -->

## Types of changes

<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New module / feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

## Checklist:

<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->

- [ ] My code follows the code style of this project.
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [ ] i added a changeset to account for this change

## Reviewer Checklist:

- [ ] My review includes a symposis of the changes and potential issues
- [ ] The code style is enforced
- [ ] There are no risky / concerning changes / additions to the PR
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