Deploy SPL token with authority setting #292
Open
+153
−4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Description
Changes Made
This PR adds the following changes:
Modified the deployToken action to accept mintAuthority, freezeAuthority, updateAuthority, and isMutable as parameters, allowing the configuration of the token's mint, freeze, and update authorities, as well as setting the mutability of the token metadata.
Implementation Details
I used the setAuthority function provided by @metaplex-foundation/mpl-toolbox to set the mintAuthority and updateAuthority of the SPL Token.
I used the updateV1 function provided by @metaplex-foundation/mpl-toolbox to set the updateAuthority and isMutable properties of the SPL Token.
By default, mintAuthority and freezeAuthority are set to the account that created the token.
For updateAuthority:
By default, it is set to the account that created the token.
For isMutable:
The default value is true.
Transaction executed by agent
Prompt Used
Checklist