-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from holaplex/espi/docs-update-mint
Generate api docs after adding update mint mutation
- Loading branch information
Showing
29 changed files
with
643 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
id: retry-update-mint-input | ||
title: RetryUpdateMintInput | ||
hide_table_of_contents: true | ||
pagination_next: null | ||
pagination_prev: null | ||
--- | ||
|
||
|
||
|
||
export const Bullet = () => <><span style={{ fontWeight: 'normal', fontSize: '.5em', color: 'var(--ifm-color-secondary-darkest)' }}> ● </span></> | ||
|
||
export const SpecifiedBy = (props) => <>Specification<a className="link" style={{ fontSize:'1.5em', paddingLeft:'4px' }} target="_blank" href={props.url} title={'Specified by ' + props.url}>⎘</a></> | ||
|
||
export const Badge = (props) => <><span className={'badge badge--' + props.class}>{props.text}</span></> | ||
|
||
|
||
No description | ||
|
||
```graphql | ||
input RetryUpdateMintInput { | ||
revisionId: UUID! | ||
} | ||
``` | ||
|
||
|
||
### Fields | ||
|
||
#### [<code style={{ fontWeight: 'normal' }}>RetryUpdateMintInput.<b>revisionId</b></code>](#)<Bullet />[`UUID!`](/api/scalars/uuid) <Badge class="secondary" text="non-null"/> <Badge class="secondary" text="scalar"/> | ||
> Update History ID | ||
> | ||
|
||
|
||
|
||
### Member of | ||
|
||
[`retryUpdateMint`](/api/mutations/retry-update-mint) <Badge class="secondary" text="mutation"/> | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
id: update-mint-input | ||
title: UpdateMintInput | ||
hide_table_of_contents: true | ||
pagination_next: null | ||
pagination_prev: null | ||
--- | ||
|
||
|
||
|
||
export const Bullet = () => <><span style={{ fontWeight: 'normal', fontSize: '.5em', color: 'var(--ifm-color-secondary-darkest)' }}> ● </span></> | ||
|
||
export const SpecifiedBy = (props) => <>Specification<a className="link" style={{ fontSize:'1.5em', paddingLeft:'4px' }} target="_blank" href={props.url} title={'Specified by ' + props.url}>⎘</a></> | ||
|
||
export const Badge = (props) => <><span className={'badge badge--' + props.class}>{props.text}</span></> | ||
|
||
|
||
No description | ||
|
||
```graphql | ||
input UpdateMintInput { | ||
id: UUID! | ||
metadataJson: MetadataJsonInput! | ||
sellerFeeBasisPoints: Int | ||
creators: [CreatorInput!]! | ||
} | ||
``` | ||
|
||
|
||
### Fields | ||
|
||
#### [<code style={{ fontWeight: 'normal' }}>UpdateMintInput.<b>id</b></code>](#)<Bullet />[`UUID!`](/api/scalars/uuid) <Badge class="secondary" text="non-null"/> <Badge class="secondary" text="scalar"/> | ||
> The ID of the mint to be updated | ||
> | ||
|
||
#### [<code style={{ fontWeight: 'normal' }}>UpdateMintInput.<b>metadataJson</b></code>](#)<Bullet />[`MetadataJsonInput!`](/api/inputs/metadata-json-input) <Badge class="secondary" text="non-null"/> <Badge class="secondary" text="input"/> | ||
> The metadata of the mint | ||
> | ||
|
||
#### [<code style={{ fontWeight: 'normal' }}>UpdateMintInput.<b>sellerFeeBasisPoints</b></code>](#)<Bullet />[`Int`](/api/scalars/int) <Badge class="secondary" text="scalar"/> | ||
> The optional seller fee basis points | ||
> | ||
|
||
#### [<code style={{ fontWeight: 'normal' }}>UpdateMintInput.<b>creators</b></code>](#)<Bullet />[`[CreatorInput!]!`](/api/inputs/creator-input) <Badge class="secondary" text="non-null"/> <Badge class="secondary" text="input"/> | ||
> The creators to be assigned to the NFT. | ||
For Solana, this can be up to five creators. If the project treasury wallet is set as a creator and verified set to true the creator will be verified on chain. | ||
For Polygon, this can be only 1 creator. | ||
> | ||
|
||
|
||
|
||
### Member of | ||
|
||
[`updateMint`](/api/mutations/update-mint) <Badge class="secondary" text="mutation"/> | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
id: retry-update-mint | ||
title: retryUpdateMint | ||
hide_table_of_contents: true | ||
pagination_next: null | ||
pagination_prev: null | ||
--- | ||
|
||
|
||
|
||
export const Bullet = () => <><span style={{ fontWeight: 'normal', fontSize: '.5em', color: 'var(--ifm-color-secondary-darkest)' }}> ● </span></> | ||
|
||
export const SpecifiedBy = (props) => <>Specification<a className="link" style={{ fontSize:'1.5em', paddingLeft:'4px' }} target="_blank" href={props.url} title={'Specified by ' + props.url}>⎘</a></> | ||
|
||
export const Badge = (props) => <><span className={'badge badge--' + props.class}>{props.text}</span></> | ||
|
||
|
||
This mutation retries updating a mint that failed by providing the ID of the `update_history`. | ||
# Errors | ||
If the mint cannot be saved to the database or fails to be emitted for submission to the desired blockchain, the mutation will result in an error. | ||
|
||
```graphql | ||
retryUpdateMint( | ||
input: RetryUpdateMintInput! | ||
): RetryUpdateMintPayload! | ||
``` | ||
|
||
|
||
### Arguments | ||
|
||
#### [<code style={{ fontWeight: 'normal' }}>retryUpdateMint.<b>input</b></code>](#)<Bullet />[`RetryUpdateMintInput!`](/api/inputs/retry-update-mint-input) <Badge class="secondary" text="non-null"/> <Badge class="secondary" text="input"/> | ||
> | ||
> | ||
### Type | ||
|
||
#### [`RetryUpdateMintPayload`](/api/objects/retry-update-mint-payload) <Badge class="secondary" text="object"/> | ||
> | ||
> | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
id: update-mint | ||
title: updateMint | ||
hide_table_of_contents: true | ||
pagination_next: null | ||
pagination_prev: null | ||
--- | ||
|
||
|
||
|
||
export const Bullet = () => <><span style={{ fontWeight: 'normal', fontSize: '.5em', color: 'var(--ifm-color-secondary-darkest)' }}> ● </span></> | ||
|
||
export const SpecifiedBy = (props) => <>Specification<a className="link" style={{ fontSize:'1.5em', paddingLeft:'4px' }} target="_blank" href={props.url} title={'Specified by ' + props.url}>⎘</a></> | ||
|
||
export const Badge = (props) => <><span className={'badge badge--' + props.class}>{props.text}</span></> | ||
|
||
|
||
This mutation updates a mint. | ||
# Errors | ||
If the mint cannot be saved to the database or fails to be emitted for submission to the desired blockchain, the mutation will result in an error. | ||
|
||
```graphql | ||
updateMint( | ||
input: UpdateMintInput! | ||
): UpdateMintPayload! | ||
``` | ||
|
||
|
||
### Arguments | ||
|
||
#### [<code style={{ fontWeight: 'normal' }}>updateMint.<b>input</b></code>](#)<Bullet />[`UpdateMintInput!`](/api/inputs/update-mint-input) <Badge class="secondary" text="non-null"/> <Badge class="secondary" text="input"/> | ||
> | ||
> | ||
### Type | ||
|
||
#### [`UpdateMintPayload`](/api/objects/update-mint-payload) <Badge class="secondary" text="object"/> | ||
> | ||
> | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
id: mint-creator | ||
title: MintCreator | ||
hide_table_of_contents: true | ||
pagination_next: null | ||
pagination_prev: null | ||
--- | ||
|
||
|
||
|
||
export const Bullet = () => <><span style={{ fontWeight: 'normal', fontSize: '.5em', color: 'var(--ifm-color-secondary-darkest)' }}> ● </span></> | ||
|
||
export const SpecifiedBy = (props) => <>Specification<a className="link" style={{ fontSize:'1.5em', paddingLeft:'4px' }} target="_blank" href={props.url} title={'Specified by ' + props.url}>⎘</a></> | ||
|
||
export const Badge = (props) => <><span className={'badge badge--' + props.class}>{props.text}</span></> | ||
|
||
|
||
No description | ||
|
||
```graphql | ||
type MintCreator { | ||
collectionMintId: UUID! | ||
address: String! | ||
verified: Boolean! | ||
share: Int! | ||
} | ||
``` | ||
|
||
|
||
### Fields | ||
|
||
#### [<code style={{ fontWeight: 'normal' }}>MintCreator.<b>collectionMintId</b></code>](#)<Bullet />[`UUID!`](/api/scalars/uuid) <Badge class="secondary" text="non-null"/> <Badge class="secondary" text="scalar"/> | ||
> | ||
> | ||
|
||
#### [<code style={{ fontWeight: 'normal' }}>MintCreator.<b>address</b></code>](#)<Bullet />[`String!`](/api/scalars/string) <Badge class="secondary" text="non-null"/> <Badge class="secondary" text="scalar"/> | ||
> | ||
> | ||
|
||
#### [<code style={{ fontWeight: 'normal' }}>MintCreator.<b>verified</b></code>](#)<Bullet />[`Boolean!`](/api/scalars/boolean) <Badge class="secondary" text="non-null"/> <Badge class="secondary" text="scalar"/> | ||
> | ||
> | ||
|
||
#### [<code style={{ fontWeight: 'normal' }}>MintCreator.<b>share</b></code>](#)<Bullet />[`Int!`](/api/scalars/int) <Badge class="secondary" text="non-null"/> <Badge class="secondary" text="scalar"/> | ||
> | ||
> | ||
|
||
|
||
|
||
### Member of | ||
|
||
[`CollectionMint`](/api/objects/collection-mint) <Badge class="secondary" text="object"/> | ||
|
||
|
||
|
Oops, something went wrong.