Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

- stake_pool: implement js bindings for token metadata instructions #3441

Conversation

AlexanderRay
Copy link
Contributor

@AlexanderRay AlexanderRay commented Aug 8, 2022

Fixes #3369

@mergify mergify bot added the community Community contribution label Aug 8, 2022
Copy link
Contributor

@joncinque joncinque left a comment

Choose a reason for hiding this comment

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

Great start! We still have a couple of things to work out, and feel free to split out your other changes in a separate PR

Comment on lines +52 to +54
BufferLayout.blob(METADATA_MAX_NAME_LENGTH, 'name'),
BufferLayout.blob(METADATA_MAX_SYMBOL_LENGTH, 'symbol'),
BufferLayout.blob(METADATA_MAX_URI_LENGTH, 'uri'),
Copy link
Contributor

Choose a reason for hiding this comment

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

This probably won't work -- the stake pool program is expecting a Borsh-encoded String, which means 4 bytes for the length, followed by utf-8 bytes

@github-actions github-actions bot added the stale [bot only] Added to stale content; will be closed soon label Aug 10, 2023
@github-actions github-actions bot closed this Aug 18, 2023
@joncinque joncinque reopened this Aug 18, 2023
@github-actions github-actions bot removed the stale [bot only] Added to stale content; will be closed soon label Aug 21, 2023
@joncinque
Copy link
Contributor

Closing in favor of #5103

@joncinque joncinque closed this Aug 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
community Community contribution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

stake-pool-js: Support add / update metadata for pool token
2 participants