@hadron-fi/fees
v0.1.0
Published
Hadron fee-share SDK — decoders, PDA derivers, and instruction builders for the arrakis-fee-split sidecar program
Readme
@hadron-fi/fees
TypeScript SDK for the arrakis-fee-split Solana sidecar program — the single source of truth for constants, account decoders, PDA derivers, and instruction builders shared between the dashboard, the ingestor, and any operator scripts.
If the on-chain layout changes, update only this package and rebuild;
all consumers (hadron-dashboard, hadron-ingestor, hadron-scripts)
will pick up the new types and runtime behavior automatically.
Layout
src/constants/—PROGRAM_ID,BOOTSTRAP_AUTHORITY, seeds, discriminators, sentinels, byte-size constants.src/types/—Recipient,SplitConfigState,AdminConfigState, ix-builder arg interfaces.src/accounts/—decodeSplitConfig,decodeAdminConfig.src/helpers/— PDA derivers (findSplitConfig,findAdminConfig,findFeeAdminProxy,derivePoolFeeConfig,deriveGlobalFeeConfig), ATA helpers, recipients-payload encoder.src/instructions/— all 9 ix builders matchingtests/common/ix_builders.rs.
Consuming
Add as a workspace-local file dep (mirrors @hadron-fi/sdk convention):
"@hadron-fi/fees": "file:../sdks/fee-share-sdk-ts"then npm install in the consumer. Build the SDK with npm run build
inside this directory to refresh dist/.
