solana_kit_errors 0.10.0
solana_kit_errors: ^0.10.0 copied to clipboard
Error codes and SolanaError class for the Solana Kit Dart SDK.
Changelog #
All notable changes to this project will be documented in this file.
This changelog is managed by monochange.
0.10.0 - 2026-09-21 #
Breaking changes #
Align error code numbers with upstream and report malformed UTF-8 as a code
SolanaErrorCode numbers now match upstream @solana/kit exactly. Two port-only codes were occupying numbers upstream uses for its UTF-8 codes, which made any cross-SDK comparison of those numbers wrong.
The UTF-8 codec also stops raising a bare FormatException and reports through the error codes upstream defines:
codecsInvalidUtf8Bytes(8078026) for a malformed byte sequence, carrying theoffsetwhere decoding failed.codecsInvalidUtf8String(8078027) for a lone surrogate, carrying itsindex. This is thrown when encoding withfatal: trueand, withfatal: false, both directions keep replacing the offending unit withU+FFFD.
Two port-only codes moved or went away:
codecsInvalidBooleanmoved from8078027to8078999. The number had to change because8078027is upstream'sCODECS__INVALID_UTF8_STRING. This port validates that booleans are encoded as0or1and upstream does not, so the code has no upstream counterpart and now sits at the end of the codec block, where upstream cannot collide with it. If you match onSolanaErrorCode.codecsInvalidBoolean.value, update the number; matching on the enum member is unaffected.codecsStringContainsNullCharacterswas removed. Nothing in the workspace threw it, and upstream has no equivalent. UseUtf8CodecConfig.removeNullCharactersto control null handling instead.
try {
getUtf8Decoder().decode(bytes);
} on SolanaError catch (error) {
if (error.code == SolanaErrorCode.codecsInvalidUtf8Bytes) {
print('bad bytes at ${error.context['offset']}');
}
}
solana_kit_memo, solana_kit_offchain_messages, and solana_kit_attestation_service only had tests asserting the old FormatException for malformed UTF-8; those assertions now check the error code, and solana_kit_memo declares the solana_kit_errors dev dependency that needs.
upstream:error-codes, which also runs as part of docs:check, compares this enum against .repos/kit/packages/errors/src/codes.ts and fails on a number mismatch or an occupied number, so this cannot drift again without CI saying so.
Owner: Ifiok Jr. · Introduced in: a8f643f
Raise the Dart and Flutter baseline
The workspace now builds against Dart 3.13.3 and Flutter 3.47.4, and every package declares that floor instead of the previous Dart 3.12 range. Consumers on older SDKs can no longer resolve these packages, so this release is breaking even though no Dart API changed.
The Flutter floor rises from 3.44 to 3.47 for solana_kit_mobile_wallet_adapter, solana_kit_mobile_wallet_adapter_protocol, and solana_kit_wallet_adapter, matching the floor solana_kit_wallet_ui already required. solana_kit_lints ships the raised floor to consumers, so it carries the same breaking bump. Every other package raises only the Dart SDK floor.
Raising the language version also switches dart format to the tall style, so 83 files across library, test, script, and Codama-generated trees are reflowed. The renderer pipes generated output through dart format, so regenerating stays consistent.
Align your own SDK constraint with the workspace:
environment:
sdk: ^3.13.0
# Omit for pure Dart packages; required for the Flutter packages above.
flutter: ">=3.47.0"
Owner: Ifiok Jr. · Introduced in: 5f5fe01 · Last updated in: 19932db
Fixes #
Track @solana/kit v8.3.0
The workspace now tracks upstream @solana/kit v8.3.0 (previously v8.2.0), and upstream:parity passes against it. This entry maps every change in that upstream release to its Dart counterpart.
Ported in this release:
u256andi256number codecs (getU256Codec,getI256Codecand their encoder/decoder pairs) serialize 32 bytes, honour theendianoption, validate the full range on encode, and decode toBigInt, mirroring the existing 64-bit and 128-bit codecs.- Tap codec helpers observe values or bytes without modifying them:
tapEncoder,tapDecoder, andtapCodecobserve values, whiletapEncoderBytes,tapDecoderBytes, andtapCodecBytesobserve raw bytes and offsets. Each wrapper preserves the size characteristics of what it wraps, and any tap may throw, which makes them validation guards that need no identitytransformEncoder.
Already present before this release, and now covered by the v8.3.0 claim:
- The
getAgGenesisCertRPC method and its allowed numeric keypaths. isSolanaRequestrecognisinggetAgGenesisCertandgetTransactionsForAddress, which is also what fixed upstream'sbigintparsing forgetTransactionsForAddressresponses.
No Dart change needed:
HasAddressand theInstructionAccountInput/InstructionSignerInputwidening are TypeScript type-level changes. Dart has no structural typing, and this port'sResolvedInstructionAccountalready wraps anObjectvalue, so it accepts addresses, address-bearing objects,ProgramDerivedAddressvalues, andAccountMetarole overrides at runtime without a cast.- Marking
roleasreadonlyon the writable and signer account types is already true here:AccountMeta.roleis afinalfield. createLazyKeyPairSignerFromBytesexists upstream to defer an asynchronous WebCrypto key import. Signer creation in this port is synchronous, so there is nothing to defer and the type is not needed.
Verification:
upstream:paritypasses against@solana/kit@8.3.0upstream:checkreports the metadata is internally consistent for tracked version 8.3.0- The
@solana/kitreference pin moved to tagv8.3.0
Owner: Ifiok Jr. · Introduced in: 220066e
0.9.3 - 2026-09-12 #
Changed #
- No package-specific changes were recorded;
solana_kit_errorswas updated to 0.9.3 as part of groupmain.
0.9.2 - 2026-09-06 #
Changed #
- No package-specific changes were recorded;
solana_kit_errorswas updated to 0.9.2 as part of groupmain.
0.9.1 - 2026-08-30 #
Changed #
- No package-specific changes were recorded;
solana_kit_errorswas updated to 0.9.1 as part of groupmain.
0.9.0 - 2026-08-30 #
🚀 Feature #
Sync upstream @solana/kit v8.1.0
Tracks upstream APIs and behavior through v8.1.0:
-
solana_kit_transaction_messages(breaking): removed the deprecated compute-unit-limit helpersfillTransactionMessageProvisoryComputeUnitLimitandestimateAndSetComputeUnitLimitFactory, matching upstream@solana/kit's removal of the deprecated@solana/kitestimation helpers (#1948). UsefillTransactionMessageProvisoryResourceLimitsandestimateAndSetResourceLimitsFactoryinstead, which additionally reserve and set the loaded accounts data size limit for version 1 transactions.setTransactionMessageComputeUnitLimitandsetTransactionMessageConfignow reject compute unit limits the runtime will not honor — an integer outside[0, 1400000]— throwingSolanaErrorCode.transactionComputeUnitLimitOutOfRange, and reject invalid heap sizes — not a multiple of 1024 bytes in[32768, 262144]— throwingSolanaErrorCode.transactionInvalidHeapSize(upstream #1972). Added the upstreamheap-size.tsmodule asgetTransactionMessageHeapSize/setTransactionMessageHeapSizewith the same validation, andresource_limit_validation.dartwithassertIsValidComputeUnitLimit/assertIsValidHeapSize,minHeapSize,maxHeapSize, andheapSizeMultipleOf. Decoding is unaffected:decompileTransactionMessagestill returns messages carrying out-of-range values.Migration:
fillTransactionMessageProvisoryComputeUnitLimit(m)→fillTransactionMessageProvisoryResourceLimits(m).estimateAndSetComputeUnitLimitFactory(estimate)→estimateAndSetResourceLimitsFactory(estimateResourceLimitsFactory(estimate)).
-
solana_kit_transactions(breaking): removed the fixed-size constantstransactionPacketSize,transactionPacketHeader, andtransactionSizeLimit, matching upstream's removal ofTRANSACTION_PACKET_SIZE,TRANSACTION_PACKET_HEADER, andTRANSACTION_SIZE_LIMIT(#1948). UsegetTransactionSizeLimitto derive the limit for a specific transaction, or the per-version constantslegacyTransactionSizeLimit(1232) andv1TransactionSizeLimit(4096).Migration:
TRANSACTION_SIZE_LIMIT - getTransactionSize(t)→getTransactionSizeLimit(t) - getTransactionSize(t). -
solana_kit_errors: added thefailedToSignTransaction(13) andfailedToSignTransactions(14) error codes with upstream messages, plus the transaction codestransactionComputeUnitLimitOutOfRange(5663039) andtransactionInvalidHeapSize(5663040) (upstream #1902, #1972). -
solana_kit_instruction_plans: addedcreateFailedToSendTransactionError,createFailedToSendTransactionsError,createFailedToSignTransactionError,createFailedToSignTransactionsError, andcreateFailedToExecuteTransactionPlanError, mirroring upstream@solana/instruction-plans'transaction-plan-errors.ts(#1902, #1434). The signing factories carry the same non-enumerabletransactionPlanResultand optionallogs/preflightDatacontext as their sending counterparts, but the message includes no submission-location indicator because signing never submits. The executor now throws throughcreateFailedToExecuteTransactionPlanError. -
solana_kit: added theClientWithTransactionSendingandClientWithTransactionSigningclient interfaces, mirroring upstream@solana/plugin-interfaces(#1899).signTransaction/signTransactionsaccept the same flexible inputs as their sending counterparts and return signed transactions without submitting them. Sending results guarantee a signature-bearingcontext; signing makes no default guarantee about the context, matching the upstreamTContextparameterization (adapted to Dart's map-based result contexts). -
solana_kit_rpc_transformers(breaking): removedgetBigIntDowncastRequestTransformer, matching upstream #1948. It was no longer used by the default Solana RPC request transformer: the Solana RPC transport serializesBigIntvalues losslessly as large integer literals viastringifyJsonWithBigInts, and Agave parses JSON integers across the fullu64range without precision loss, so downcastingBigInts to (potentially lossy)ints is unnecessary.getDefaultRequestTransformerForSolanaRpcno longer downcasts; if you still need this behavior, recreate it withgetTreeWalkerRequestTransformerand a visitor that replacesBigIntnodes withintvalues. -
solana_kit_rpc_transformers: the numeric allow-list keepstransactionConfig.computeUnitLimit,transactionConfig.heapSize, andtransactionConfig.loadedAccountsDataSizeLimitfrom version 1 transaction responses as numbers instead of upcasting them toBigInt(upstream #1951). -
Documentation now tracks
@solana/kitv8.1.0, and the reference pin inconfig/reference-repos.jsonmoved tobb54243d8a57(tagv8.1.0).
Migration example:
// Before (removed):
// final estimate = estimateComputeUnitLimitFactory(rpc);
// var message = await estimateAndSetComputeUnitLimitFactory(estimate)(message);
// final freeBytes = transactionSizeLimit - getTransactionSize(transaction);
// After:
final estimate = estimateResourceLimitsFactory(rpc);
var message = await estimateAndSetResourceLimitsFactory(estimate)(message);
final freeBytes =
getTransactionSizeLimit(transaction) - getTransactionSize(transaction);
Owner: @ifiokjr · Review: PR #225 · Related issues: #1899, #1902, #1910, #1913, #1948, #1951, #1957, #1970, #1971, #1972, #1979, #220
📖 Documentation #
Unslop package docs and code comments
Rewrote every package README from a reader's perspective with verified, compilable examples, removed AI-tell phrasing from docs and code comments, and added a test that analyzes every Dart block in Markdown so examples cannot drift from the API.
0.8.0 - 2026-08-19 #
0.7.0 - 2026-08-18 #
💥 Breaking Change #
@solana/kit v7.0.0 upstream sync (foundational breaking changes)
Ports the foundational breaking changes from @solana/kit v7.0.0:
- solana_kit_errors: new
transactionIntrospectionerror domain + codes (transactionFailedToDecompileInstructionAccountIndexOutOfRange,transactionIntrospectionCannotDecodeJsonParsedTransaction,transactionIntrospectionUnrecognizedGetTransactionResponse) and instruction-plans max-instructions codes (instructionPlansInvalidMaxInstructionsPerTransaction,instructionPlansMaxInstructionsPerTransactionExceeded). - solana_kit_codecs_data_structures:
createDependentStructDecoderfluent builder for structs whose later fields depend on earlier decoded values. - solana_kit_instruction_plans: configurable
maxInstructionsPerTransaction(default 16, limit 64) onTransactionPlannerConfig, individualTransactionPlannerinvocations, andMessagePacker; invocation-specific planner values take precedence without leaking to later calls. - solana_kit_rpc_types:
isSolanaRpcResponseruntime guard. - solana_kit: removed the local
getMinimumBalanceForRentExemptionhelper (rent exemption is becoming dynamic; use the RPC method instead). - solana_kit_subscribable:
ReactiveStreamStorev7 rewrite — caller-drivenconnect()/reset()/withSignal(), startsidle, collapsesretryingintoloading(stale-while-revalidate), renamesgetUnifiedState()→getState(); removedretry(), value-onlygetState(),getError().ReactiveActionStorenow passes a freshCancellationTokento every action, cancels superseded/reset/disposed dispatches, suppresses late outcomes, exposes caller cancellation throughwithSignal(), and preserves stale results and errors while running. - solana_kit_transaction_introspection: new first-class package porting
@solana/transaction-introspection— RPC transaction decoding, instruction and inner-instruction extraction, loaded-address resolution, and instruction walking helpers; re-exported from thesolana_kitumbrella. - solana_kit_rpc_parsed_types / solana_kit_rpc_transformers / solana_kit_rpc_api: Agave 4.1.0 parsed-account types — vote commissions/latency as
int(notBigInt); rent sysvar union (lamportsPerBytevs deprecatedburnPercent/exemptionThreshold/lamportsPerByteYear); stakewarmupCooldownRateoptional; configslashPenalty/warmupCooldownRatedeprecated; keep vote commissions and latency asintin the numeric-keypath allow-lists.
Migration: getMinimumBalanceForRentExemption(space) → rpc.getMinimumBalanceForRentExemption(space).send(); store.retry() → store.connect(); store.getUnifiedState() → store.getState(); the deprecated ReactiveStore/createReactiveStoreFromStreams → createReactiveStreamStore; reactive actions must migrate from (args) async => result to (signal, args) async => result.
// Before
final lamports = getMinimumBalanceForRentExemption(space);
store.retry();
final state = store.getUnifiedState();
// After
final lamports = await rpc.getMinimumBalanceForRentExemption(space).send();
store.connect();
final state = store.getState();
Owner: @ifiokjr · Review: PR #204
🚀 Feature #
@solana/kit v7.1.0 upstream sync
Ports the @solana/kit v7.1.0 changes into the Dart SDK.
solana_kit_errors
Adds the three new error codes introduced in @solana/kit v7.1.0:
offchainMessageContentDoesNotMatchExpected(5607018) — from@solana/offchain-messages's newassertOffchainMessageV1Equalhelper.offchainMessageRequiredSignatoriesDoNotMatchExpected(5607019) — same.subscribableStreamClosedWithoutError(8195001) — from@solana/subscribable's newbridgeStoreToAsyncIterablehelper.
solana_kit_subscribable
Adds bridgeStoreToAsyncIterable, which adapts a ReactiveStreamStore into a pull-based Stream (the Dart equivalent of the upstream AsyncIterable). It seeds from the store's current snapshot, yields loaded values (latest-wins), throws on error (substituting subscribableStreamClosedWithoutError when the error payload is nullish), and ends cleanly when the CancellationToken fires. The caller owns the store's lifecycle (connect()/reset()).
solana_kit_offchain_messages
Adds assertOffchainMessageV1Equal, which asserts that a version 1 offchain message received from an untrusted signer is the message you expected it to sign. Compares content (reporting UTF-8 byte lengths) and required signatories (order-insensitive, sorted for comparison), throwing offchainMessageContentDoesNotMatchExpected / offchainMessageRequiredSignatoriesDoNotMatchExpected on mismatch.
solana_kit_instruction_plans
createTransactionPlanExecutor's executeTransactionMessage callback may now return the context of a successful result (a map that must include a signature) instead of a Signature or Transaction. The returned context is merged with the mutable context, taking precedence. Returning a Signature or Transaction still behaves as before (stored as context['signature'] / context['transaction'] with the signature derived).
solana_kit_rpc_transformers / solana_kit_rpc_api
- New
tokenBalancesConfigsexport (accountIndex,uiTokenAmount.decimals,uiTokenAmount.uiAmount). getTransaction,getBlock, andsimulateTransactionnow allow-listuiTokenAmount.uiAmount(previously upcast toBigIntwhen whole).simulateTransactionnow allow-lists token-balanceaccountIndexanduiTokenAmount.decimals.getTransactionandgetBlocknow allow-list the transactionversion(previously arrived as0nwhile typechecking as0).getTransactionsForAddressallowed-numeric keypaths.
solana_kit
Adds the v7.1.0 client-interface helpers:
ClientWithGetMinimumBalanceandClientWithFetchAccountsinterfaces.createClientWithGetMinimumBalanceFromRpc— computes the rent-exempt minimum balance viagetMinimumBalanceForRentExemption(with thewithoutHeaderrate-recovery trick).createClientWithFetchAccountsFromRpc— dispatches on address count (getAccountInfo/getMultipleAccounts/ empty short-circuit).createClientWithInterfacesFromRpc— returns both interfaces.
Also re-exports the @solana/promises helpers as Dart counterparts: isAbortError, getAbortablePromise, and safeRace (adapted to Dart's cancellation model via CancellationToken; AbortError lives in solana_kit_subscribable).
solana_kit_rpc_api
Adds the getTransactionsForAddress RPC method request side: config (commitment, filters, limit, minContextSlot, paginationToken, sortOrder, encoding, maxSupportedTransactionVersion, transactionDetails), filters (blockTime/signature/slot comparisons, status, tokenAccounts), and the params builder.
solana_kit_rpc_types
- Adds the
getTransactionsForAddressresponse types:signaturesandfullmodes (with per-entry base fields, transaction/status variants, and theTransactionDetailsenum). - Adds the shared
meta.costUnitsfield to the transaction meta types.
Already present in the Dart port (no change needed):
@solana/codecs-data-structuresgetBitArrayEncodernext-offset fix (offset + size) — the Dart encoder already returnsoffset + size.@solana/transaction-messagescompressTransactionMessageUsingAddressLookupTablesrejecting v1 transactions — a compile-time-only type narrowing upstream; not expressible in Dart's single-classTransactionMessagemodel, so no runtime change.
@solana/react changes are not ported (React-only).
Owner: @ifiokjr · Review: PR #206
🐛 Fixed #
On-chain integration tests for program clients + sendTransaction encoding fix
solana_kit_transaction_confirmation (patch)
Fix sendAndConfirmTransaction so the sendTransaction RPC call declares encoding: base64. The helper encodes the transaction as base64 via getBase64EncodedWireTransaction but previously left the encoding field unset, so real RPC nodes (including SurfPool) defaulted to base58 and rejected the payload with invalid base58 encoding. This path had only been exercised against a mocked transport, so the bug was latent.
solana_kit_errors (patch)
Fix getSolanaErrorFromTransactionError to handle instruction-error indices returned as BigInt (as SurfPool does). The instruction index was cast as num, which threw _BigIntImpl is not a subtype of num and masked the real on-chain instruction error. It now converts BigInt indices to int.
solana_kit_address_constants / solana_kit_spl_account_compression (patch)
Fix the SPL Account Compression, Noop, and MPL Bubblegum program addresses to the live mainnet IDs:
splAccountCompressionProgramAddress:cmtDvXzGgh4bcrDY2gZqFaGQqat4RNQPhKJ4jAc7uLi->cmtDvXumGCrqC1Age74AVPhSRVXJMd8PJS91L8KbNCKnoopProgramAddress:noopb9bkMVz3tFhZ5L7bJGby9DreGG5J2P4V4Wxe8tK->noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmVmplBubblegumProgramAddress:BGUMAp9Gph7G9Jn2tU58R5L2qPG1Mj9HP7G3G7VYV2Ma->BGUMAp9Gq7iTEuizy4pqaxsTyUCBK68MDfK752saRPUYstakeConfigAddress:StakeConfig1111111111111111111111111111(truncated, invalid length) ->StakeConfig11111111111111111111111111111111
The previous values point to accounts that do not exist on mainnet. An audit of every constant in the package against mainnet confirmed all other addresses are correct (native/runtime programs and sysvars are canonical per solana-sdk-ids; some native programs and lazily-created sysvars legitimately have no materialized account). SurfPool integration tests for MPL Bubblegum confirmed the corrected IDs resolve to deployed programs.
solana_kit_integration_tests (new, internal)
A non-published workspace package that runs every generated program client end-to-end against a local SurfPool Surfnet. It ships a shared IntegrationTestEnv harness (connects-or-starts SurfPool, funds a payer, builds/signs/sends/confirms transactions, deploys programs) and on-chain suites that assert the real on-chain outcome of each instruction:
- Builtin programs: Memo, System (transfer), Compute Budget, Token (createMint -> mintTo), Token-2022, Associated Token Account, Address Lookup Table, Stake (initialize), and BPF Loader (initializeBuffer).
- Subscriptions: the compiled program (
.so) is committed underconfig/programs/and deployed on-chain;initSubscriptionAuthorityruns and its PDA is verified on-chain. - MPL Bubblegum: Bubblegum + SPL Account Compression + Noop are deployed on-chain (verified executable + owned by the BPF loader) and the full compressed-NFT lifecycle runs end-to-end:
createTree(with the merkle-tree account sized per the account-compression layout formulas, 31800 bytes for (maxDepth=14, maxBufferSize=64, canopyDepth=0)) ->mintV1->transfer(leaf owner signs) ->burn(new owner signs). The tree state (root, proof, index) is parsed from the on-chain ConcurrentMerkleTree account and the data/creator hashes are recomputed client-side to drive transfer and burn.
The compiled .so artifacts are committed (not rebuilt per run) and pinned to config/reference-repos.json; see config/programs/README.md for how they are built and when they must be regenerated. Artifact names follow <package-name-minus-solana_kit>-<program-version>.so (e.g. subscriptions-v0.5.0.so, mpl_bubblegum-v0.12.0.so, spl_account_compression-v0.3.3.so, noop-v0.2.0.so). All four are compiled from the pinned source with cargo build-sbf (agave 4.2.0 / platform-tools v1.54) via scripts/build_program_artifacts.mjs (devenv task build:program-artifacts), which also applies the ahash 0.7.6 stdsimd patch needed by the solana-program 1.18.x programs and verifies the baked-in program IDs.
Owner: @ifiokjr · Review: PR #205
Kit-plugin style Surfpool client + SDK-based integration tests
solana_kit_surfpool (minor)
Add createSurfpoolClient() / connectSurfpoolClient() returning a SurfpoolClient wired up like the @solana/surfpool/kit plugin for TypeScript:
rpc/rpcSubscriptions— Solana Kit RPC and subscriptions clients pointed at the Surfnet.payer— the Surfnet's pre-fundedKeyPairSigner(embedded mode) or a caller-provided funded signer (attach mode).cheatcodes— a typedSurfnetCheatcodesRPC covering everysurfnet_*cheatcode with the prefix stripped (timeTravel,pauseClock,setAccount,writeProgram, …).rpcUrl/wsUrl— the Surfnet's HTTP and WebSocket URLs.airdrop/getMinimumBalance— funding and rent-exemption helpers.stop()— idempotent teardown that stops the Surfnet when this client started it.
createSurfpoolClient stops the Surfnet if wiring fails, so no orphaned process or ports are left behind. The new API is fully unit-tested with 100% patch coverage.
codama-renderers-dart (patch)
Fix visitSizePrefixType so BigInt-width size prefixes (u64/u128/i64/i128) generate transformEncoder/transformDecoder wrappers instead of substituting u32. The system program's bincode String length is u64, so the u32 substitution broke on-chain encoding of seed fields.
solana_kit_system (patch)
Regenerate the system program client with the size-prefix renderer fix; createAccountWithSeed, allocateWithSeed, assignWithSeed, and transferSolWithSeed now encode their u64 String-length prefixes correctly.
solana_kit_errors (patch)
Fix getSolanaErrorFromTransactionError to handle account_index values returned as BigInt by some RPC nodes (e.g. SurfPool), matching the earlier instruction-error-index fix.
solana_kit (patch)
Convert test/integration/rpc_basic_test.dart to start its own Surfpool via the SDK instead of requiring an externally launched validator.
solana_kit_mpl_bubblegum (patch)
Convert the compressed-NFT integration test to start its own Surfpool via the SDK; add solana_kit_surfpool as a dev dependency.
solana_kit_integration_tests (minor)
Integration tests now start their own Surfpool per test file via the SDK (auto-allocated ports, parallel-safe) instead of requiring an externally launched instance. Adds the gap-coverage tests: loader full deploy, system seed-based instructions, config store (committed config-v3.0.0.so artifact), subscriptions on-chain lifecycle, ALT extend/deactivate/close, error paths, token/2022 transfer+burn+setAuthority+closeAccount, stake authorize, and ATA idempotency.
// Before: manual Surfnet wiring
final surfnet = await Surfnet.start();
final rpc = createSolanaRpc(surfnet.rpcUrl);
// After: kit-plugin style client
final client = await createSurfpoolClient();
final rpc = client.rpc;
final payer = client.payer;
await client.cheatcodes.timeTravel(...);
await client.stop();
0.6.0 - 2026-08-12 #
🚀 Feature #
Upstream @solana/kit 6.10.0 parity
Updates core packages to match upstream @solana/kit 6.10.0:
-
solana_kit_errors: Adds 6 new error codes from
@solana/errors6.10:JSON_RPC__SERVER_ERROR_NO_SLOT_HISTORY(-32021),JSON_RPC__SERVER_ERROR_FILTER_TRANSACTION_NOT_FOUND(-32020),TRANSACTION__FAILED_TO_ESTIMATE_LOADED_ACCOUNTS_DATA_SIZE_LIMIT(5663036),TRANSACTION__FAILED_WHEN_SIMULATING_TO_ESTIMATE_RESOURCE_LIMITS(5663037),SUBSCRIBABLE__RETRY_NOT_SUPPORTED(8195000),WALLET__ACCOUNT_NOT_AVAILABLE(8900003). Addssubscribableandwalleterror domains. UpdatesunwrapSimulationErrorto treat resource-limit simulation failures as simulation errors. -
solana_kit_subscribable: Adds
ReactiveActionStore<TArgs, TResult>with idle/running/success/error states,dispatch/dispatchAsync/reset. AddsReactiveStreamStore<T>with loading/loaded/error/retrying states,getUnifiedStateandretry. Mirrors upstream@solana/subscribable6.10. -
solana_kit_rpc_spec: Adds
PendingRpcRequest.reactiveStore()returning aReactiveActionStorefor reactive request dispatch. -
solana_kit_rpc_api: Adds
clientIdtoClusterNode. DocumentstpuandtpuForwardsas deprecated in favor of QUIC fields. -
solana_kit_transaction_messages: Adds resource-limit estimation helpers:
ResourceLimitsEstimate,estimateResourceLimitsFactory,estimateAndSetResourceLimitsFactory,fillTransactionMessageProvisoryResourceLimits,getTransactionMessageLoadedAccountsDataSizeLimit,setTransactionMessageLoadedAccountsDataSizeLimit.
Owner: @ifiokjr · Review: PR #195
📖 Documentation #
Centralize package version documentation
Centralize package version metadata in versions.json and render package installation snippets from the shared MDT data source. Published package behavior is unchanged.
Owner: @ifiokjr · Review: PR #188
Point package README website badges at package docs
Updated package README website badges to link directly to each package's docs catalog entry and added missing package entries to the documentation website catalog/index.
0.5.0 - 2026-06-01 #
💥 Breaking Change #
Raise minimum Dart SDK to 3.12
Raise the minimum supported Dart SDK constraint to ^3.12.0 across public Dart packages.
This is a breaking change because consumers must use Dart 3.12 or newer. Flutter consumers must use a Flutter SDK that bundles Dart 3.12 or newer.
environment:
sdk: ^3.12.0
Owner: Ifiok Jr. · Introduced in: 32d5d36
🧪 Testing #
Improve test coverage to 95%+ across all packages
Added 500+ tests covering equality/hashCode/toString, codec edge cases, error paths, and constructor variants. Removed dead code in fast_stable_stringify. Fixed concurrent modification bug in subscribable.
Owner: Ifiok Jr. · Introduced in: 48216f9 · Last updated in: b7f5419
0.4.0 - 2026-05-30 #
🚀 Feature #
Convert SolanaErrorCode to Dart enum
Convert SolanaErrorCode from a static-int abstract class…
Convert SolanaErrorCode from a static-int abstract class to a Dart enum with a numeric value field, enabling exhaustive switches, type safety, and cleaner API usage.
Owner: Ifiok Jr. · Introduced in: 29e8823 · Last updated in: 0ee3d60
📝 Changed #
Restructure release groups
Move program-specific and domain-specific packages out of the main release group into standalone release schedules with independent versioning. Core SDK packages remain synchronized in the main group.
Owner: Ifiok Jr. · Introduced in: fccec7f · Last updated in: 93b3cd3
🐛 Fixed #
Add per-package coverage badges
Add codecov flags and per-package coverage badges to all package READMEs.
Owner: Ifiok Jr. · Introduced in: bed1b1f · Last updated in: 93b3cd3
Add upstream 6.9 Solana error codes
Add upstream 6.9 Solana error codes and messages for transaction account/instruction limit failures, invalid v1 config masks and config value kinds, filesystem write failures, and JSON-RPC errors with BigInt-compatible codes.
Owner: Ifiok Jr. · Introduced in: 9ee2e44 · Last updated in: 0ee3d60
Add downstream error codes
Add Solana error codes and messages for downstream…
Add Solana error codes and messages for downstream package features: fixed-point arithmetic (fixedPoints*), wallet connectivity (wallet*), UTF-8 null-character validation (codecsStringContainsNullCharacters), and key-pair grinding/filesystem helpers (keysInvalidBase58InGrindRegex, keysWriteKeyPairUnsupportedEnvironment).
Owner: Ifiok Jr. · Introduced in: 6fd8642 · Last updated in: 0ee3d60
Document upstream error-code typo
Document the upstream error-code typo for…
Document the upstream error-code typo for accountsOneOrMoreAccountsNotFound (32300001) in codes.dart.
Owner: Ifiok Jr. · Introduced in: 29e8823 · Last updated in: 0ee3d60
Add standardized error construction helpers
Add shared Solana error construction helpers and context…
Add shared Solana error construction helpers and context key conventions, then migrate representative account, RPC, and Helius call sites to preserve structured cause metadata more consistently.
Owner: Ifiok Jr. · Introduced in: 63778e5 · Last updated in: 0ee3d60