solana-labs / solana-web3.js

Solana JavaScript SDK
https://solana-labs.github.io/solana-web3.js
MIT License
1.97k stars 791 forks source link

Add `minContextSlot` as an option to `Transaction{Sending}SignerConfig` #2858

Closed steveluscher closed 1 week ago

steveluscher commented 1 week ago

Summary

Instead of the cumbersome getOptions() solution that requires callers of the hook to track transaction / context slot pairs and return a getter for them… just add minContextSlot to the options.

Test Plan

pnpm turbo test:unit:node test:unit:browser

Closes #2846

changeset-bot[bot] commented 1 week ago

🦋 Changeset detected

Latest commit: ee304c3790818caa9d9288fc668302848a20589f

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

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

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

steveluscher commented 1 week ago

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @steveluscher and the rest of your teammates on Graphite Graphite