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

Add stackHeight to the instruction type #2866

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

steveluscher
Copy link
Collaborator

Copy link

changeset-bot bot commented Jun 27, 2024

🦋 Changeset detected

Latest commit: 3ebf596

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 37 packages
Name Type
@solana/rpc-types Patch
@solana/rpc-api Patch
@solana/accounts Patch
@solana/web3.js-experimental Patch
@solana/rpc-graphql Patch
@solana/rpc-parsed-types Patch
@solana/rpc-subscriptions-api Patch
@solana/rpc-subscriptions Patch
@solana/rpc-transformers Patch
@solana/rpc Patch
@solana/signers Patch
@solana/sysvars Patch
@solana/transaction-confirmation Patch
@solana/transaction-messages Patch
@solana/transactions Patch
@solana/programs Patch
@solana/compat Patch
@solana/react Patch
@solana/addresses Patch
@solana/assertions Patch
@solana/codecs-core Patch
@solana/codecs-data-structures Patch
@solana/codecs-numbers Patch
@solana/codecs-strings Patch
@solana/codecs Patch
@solana/errors Patch
@solana/fast-stable-stringify Patch
@solana/functional Patch
@solana/instructions Patch
@solana/keys Patch
@solana/options Patch
@solana/rpc-spec-types Patch
@solana/rpc-spec Patch
@solana/rpc-subscriptions-spec Patch
@solana/rpc-subscriptions-transport-websocket Patch
@solana/rpc-transport-http Patch
@solana/webcrypto-ed25519-polyfill Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Comment on lines 40 to 55
export const instructionConfig = [['accounts', KEYPATH_WILDCARD], ['programIdIndex'], ['stackHeight']];
export const innerInstructionsConfigs = [
['index'],
...instructionConfig.map(c => ['instructions', KEYPATH_WILDCARD, ...c]),
];
export const messageConfig = [
['addressTableLookups', KEYPATH_WILDCARD, 'writableIndexes', KEYPATH_WILDCARD],
['addressTableLookups', KEYPATH_WILDCARD, 'readonlyIndexes', KEYPATH_WILDCARD],
...instructionConfig.map(c => ['instructions', KEYPATH_WILDCARD, ...c]),
['header', 'numReadonlySignedAccounts'],
['header', 'numReadonlyUnsignedAccounts'],
['header', 'numRequiredSignatures'],
] as const;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Did a little compressing of the configuration that prevents bigint upcasts for certain values, while also adding stackHeight to the list. Please go over with a fine-toothed comb in case I missed anything.

@steveluscher steveluscher force-pushed the 06-27-add_stackheight_to_the_instruction_type branch from 251f9ab to 8c2dd82 Compare June 27, 2024 19:27
@steveluscher steveluscher force-pushed the 06-27-add_stackheight_to_the_instruction_type branch from 8c2dd82 to 05a31bf Compare June 27, 2024 19:36
@steveluscher steveluscher force-pushed the 06-27-correct_the_return_type_of_simulatetransaction_when_accounts_are_not_loaded branch from f1baa9e to 5bb7d21 Compare June 27, 2024 21:33
@steveluscher steveluscher force-pushed the 06-27-add_stackheight_to_the_instruction_type branch from 05a31bf to c5e569f Compare June 27, 2024 21:33
@steveluscher steveluscher force-pushed the 06-27-add_stackheight_to_the_instruction_type branch from c5e569f to ef54325 Compare June 27, 2024 21:41
Comment on lines +52 to +54
['instructions', KEYPATH_WILDCARD, 'accounts', KEYPATH_WILDCARD],
['instructions', KEYPATH_WILDCARD, 'programIdIndex'],
['instructions', KEYPATH_WILDCARD, 'stackHeight'],
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Would have DRY'd these up too, but using foo.map() in this file at the top level would break tree-shakability.

Base automatically changed from 06-27-correct_the_return_type_of_simulatetransaction_when_accounts_are_not_loaded to master June 28, 2024 00:18
@steveluscher steveluscher force-pushed the 06-27-add_stackheight_to_the_instruction_type branch from ef54325 to f7d6ec2 Compare June 28, 2024 00:20
Copy link
Collaborator Author

steveluscher commented Jun 28, 2024

Merge activity

  • Jun 27, 5:34 PM PDT: @steveluscher started a stack merge that includes this pull request via Graphite.
  • Jun 27, 5:34 PM PDT: Graphite rebased this pull request as part of a merge.
  • Jun 27, 5:35 PM PDT: @steveluscher merged this pull request with Graphite.

@steveluscher steveluscher force-pushed the 06-27-add_stackheight_to_the_instruction_type branch from f7d6ec2 to 3ebf596 Compare June 28, 2024 00:34
@steveluscher steveluscher merged commit 73bd5a9 into master Jun 28, 2024
6 checks passed
@steveluscher steveluscher deleted the 06-27-add_stackheight_to_the_instruction_type branch June 28, 2024 00:35
Copy link
Contributor

🎉 This PR is included in version 1.94.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link
Contributor

Because there has been no activity on this PR for 14 days since it was merged, it has been automatically locked. Please open a new issue if it requires a follow up.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants