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

- 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

stake-pool/js/package.json Show resolved Hide resolved
stake-pool/js/package-lock.json Outdated Show resolved Hide resolved
stake-pool/js/src/constants.ts Outdated Show resolved Hide resolved
stake-pool/js/src/utils/stake.ts Outdated Show resolved Hide resolved
stake-pool/js/src/utils/math.ts Outdated Show resolved Hide resolved
stake-pool/js/src/index.ts Show resolved Hide resolved
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

stake-pool/js/src/instructions.ts Outdated Show resolved Hide resolved
stake-pool/js/src/index.ts Outdated Show resolved Hide resolved
stake-pool/js/test/instructions.test.ts Show resolved Hide resolved
@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 join this conversation on GitHub. Already have an account? Sign in to comment
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