solana_kit_subscriptions 0.1.2
solana_kit_subscriptions: ^0.1.2 copied to clipboard
Subscriptions program client for Solana Kit. Generated from the upstream Codama IDL with ergonomic helpers.
Changelog #
All notable changes to this project will be documented in this file.
This changelog is managed by monochange.
solana_kit_subscriptions 0.1.0 (2026-08-12) #
๐ฅ Breaking Change #
Add Subscriptions program client
Adds a generated Subscriptions program client pinned to solana-foundation/subscriptions ts-client-v0.3.0, including account, instruction, PDA, type, and error helpers.
Also exposes the canonical Subscriptions program address from solana_kit_address_constants.
import 'package:solana_kit/solana_kit.dart';
import 'package:solana_kit_subscriptions/solana_kit_subscriptions.dart';
Future<void> main() async {
const user = Address('11111111111111111111111111111112');
const tokenMint = Address('So11111111111111111111111111111111111111112');
final (authority, bump) = await findSubscriptionAuthorityPda(
programAddress: subscriptionsProgramAddress,
seeds: SubscriptionAuthoritySeeds(user: user, tokenMint: tokenMint),
);
print('authority=$authority bump=$bump');
}
Build typed instructions for fixed and recurring delegations.
final instruction = getCreateFixedDelegationInstruction(
programAddress: subscriptionsProgramAddress,
delegator: delegator,
subscriptionAuthority: subscriptionAuthority,
delegationAccount: delegationAccount,
delegatee: delegatee,
systemProgram: systemProgram,
fixedDelegation: CreateFixedDelegationData(
nonce: BigInt.from(1),
amount: BigInt.from(1_000_000),
expiryTs: BigInt.zero,
expectedSubscriptionAuthorityInitId: BigInt.zero,
),
);
Owner: @ifiokjr ยท Review: PR #187
๐ Feature #
Subscriptions: regenerate from ts-client-v0.4.0-rc.2
Regenerates the Subscriptions generated code from upstream IDL ts-client-v0.4.0-rc.2 (was ts-client-v0.3.0). Adds 3 new instructions:
revokeSubscriptionAuthorityrevokeAbandonedDelegationrevokeAbandonedSubscription
Adds 4 new errors: transferHookTooManyAccounts, invalidSelfProgram, planEndTsCannotExtend, recurringDelegationStartOnLandingRequiresExpiry.
Updates existing instructions with new required/optional accounts (payer, receiver, subscriptionAuthority, eventAuthority, selfProgram) and PDA-based eventAuthority defaults.
Also fixes three latent renderer bugs in codama-renderers-dart: empty struct constructors, PDA seed import merging, and BigInt import attribution.
Owner: @ifiokjr ยท Review: PR #195
๐ Documentation #
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.
Owner: @ifiokjr ยท Review: PR #192
solana_kit_subscriptions 0.1.1 (2026-08-18) #
๐ Feature #
Regenerate solana_kit_subscriptions from the v0.5.0 IDL
Regenerated solana_kit_subscriptions from the solana-foundation/subscriptions ts-client-v0.5.0 Codama IDL, bringing the generated Dart surface in sync with the pinned reference (ts-client-v0.4.0-rc.2 โ ts-client-v0.5.0).
Notable additions and changes:
- New
cancelSubscriptionNowinstruction (discriminator 17) withCancelSubscriptionNowData(expectedCurrentPeriodStartTs). resumeSubscriptionnow takes a requiredresumeData: ResumeDatastruct (expectedExpiresAtTs).UpdatePlanDatagained four required fields:expectedCreatedAt,expectedEndTs,expectedPullers, andexpectedMetadataUri.getCreatePlanInstructionaccepts an optionalpayeraccount.- Generated program-level instruction identification and parsing helpers (
SubscriptionsInstructionenum,identifySubscriptionsInstruction,parseSubscriptionsInstruction) and new error codes.
Owner: @ifiokjr ยท Review: PR #204
solana_kit_subscriptions 0.1.2 (2026-08-19) #
Changed #
- No package-specific changes were recorded;
solana_kit_subscriptionswas updated to 0.1.2.
0.0.0 #
Placeholder publication.