Pump Fees decoder
Decode Pump Fees instructions, accounts and events in Rust with carbon-pump-fees-decoder 2.0.0. Program ID pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ.
On this page
carbon-pump-fees-decoder decodes the instructions, accounts and events of the Pump Fees program (pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ): 17 instructions, 7 account types, 14 events. It is generated with Codama from the program's IDL; see decoders for how decoders plug into a pipeline.
| Crate | carbon-pump-fees-decoder 2.0.0 |
| Install | cargo add carbon-pump-fees-decoder@2. |
| Program ID | pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ (carbon_) |
| Category | Other |
| Decoder | carbon_ |
| Instruction enum | instructions:: |
| Account enum | accounts:: |
| Event enum | instructions:: |
| Features | serde, postgres, graphql (none enabled by default) |
| API docs | docs.rs/carbon-pump-fees-decoder/2.0.0 |
| Source | decoders/pump-fees-decoder |
More program decoders without a category: Jupiter DCA, Kamino Farms, Raydium Liquidity Locking, Swig. To decode several in one pipeline, see other program decoders.
The serde feature derives Serialize/Deserialize on every type, postgres adds tables and processors for Postgres, and graphql adds a schema for the GraphQL server.
Usage#
This program crawls recent Pump Fees transactions from the public RPC and prints every decoded ClaimSocialFeePda instruction. Add the dependencies:
cargo add carbon-core@2.0.0 carbon-pump-fees-decoder@2.0.0 carbon-rpc-transaction-crawler-datasource@2.0.0 carbon-log-metrics@2.0.0 env_logger tokio --features tokio/fulluse {
carbon_core::{
error::CarbonResult, instruction::InstructionProcessorInputType, pipeline::Pipeline,
processor::Processor,
},
carbon_log_metrics::LogMetrics,
carbon_pump_fees_decoder::{instructions::PumpFeesInstruction, PumpFeesDecoder, PROGRAM_ID},
carbon_rpc_transaction_crawler_datasource::{ConnectionConfig, Filters, RpcTransactionCrawler},
std::sync::Arc,
};
#[tokio::main]
async fn main() -> CarbonResult<()> {
env_logger::init();
// Fetches the program's recent transactions over JSON-RPC, newest first.
let datasource = RpcTransactionCrawler::new(
"https://api.mainnet-beta.solana.com".to_string(),
PROGRAM_ID,
ConnectionConfig::default(),
Filters::new(None, None, None),
None,
);
Pipeline::builder()
.datasource(datasource)
.metrics(Arc::new(LogMetrics::new()))
.instruction(PumpFeesDecoder, InstructionLogger)
.build()?
.run()
.await
}
struct InstructionLogger;
impl Processor<InstructionProcessorInputType<'_, PumpFeesInstruction>> for InstructionLogger {
async fn process(
&mut self,
input: &InstructionProcessorInputType<'_, PumpFeesInstruction>,
) -> CarbonResult<()> {
let signature = input.metadata.transaction_metadata.signature;
if let PumpFeesInstruction::ClaimSocialFeePda { data, accounts, .. } = input.decoded_instruction {
println!("claim_social_fee_pda {signature}: {data:?} recipient={}", accounts.recipient);
}
Ok(())
}
}RUST_LOG=info cargo runEach ClaimSocialFeePda instruction prints one line with the transaction signature and the decoded ClaimSocialFeePda data. The public endpoint rate-limits requests, so the first lines can take a while; use your own RPC URL for anything beyond a test. See stream with RPC for the crawler options.
Events published with Anchor's emit_cpi! arrive as the CpiEvent instruction. Match them with PumpFeesInstruction:: (import instructions::); see Events. If CpiEvent never arrives, the program logs its events with emit! instead: decode them with decode_.
Decode accounts#
The transaction crawler emits transactions only. To decode accounts, use a datasource that emits account updates. This program subscribes to the program's accounts with programSubscribe on the public WebSocket endpoint and prints every decoded Pool account as it changes. Add the datasource and the Solana RPC types it takes:
cargo add carbon-rpc-program-subscribe-datasource@2.0.0 solana-client@4.2.2use {
carbon_core::{
account::AccountProcessorInputType, error::CarbonResult, pipeline::Pipeline,
processor::Processor,
},
carbon_log_metrics::LogMetrics,
carbon_pump_fees_decoder::{accounts::PumpFeesAccount, PumpFeesDecoder, PROGRAM_ID},
carbon_rpc_program_subscribe_datasource::{Filters, RpcProgramSubscribe},
solana_client::rpc_config::{RpcAccountInfoConfig, RpcProgramAccountsConfig, UiAccountEncoding},
std::sync::Arc,
};
#[tokio::main]
async fn main() -> CarbonResult<()> {
env_logger::init();
// Streams every change to an account owned by the program (programSubscribe).
let config = RpcProgramAccountsConfig {
account_config: RpcAccountInfoConfig {
encoding: Some(UiAccountEncoding::Base64),
..Default::default()
},
..Default::default()
};
let datasource = RpcProgramSubscribe::new(
"wss://api.mainnet-beta.solana.com".to_string(),
Filters::new(PROGRAM_ID, Some(config)),
);
Pipeline::builder()
.datasource(datasource)
.metrics(Arc::new(LogMetrics::new()))
.account(PumpFeesDecoder, AccountLogger)
.build()?
.run()
.await
}
struct AccountLogger;
impl Processor<AccountProcessorInputType<'_, PumpFeesAccount>> for AccountLogger {
async fn process(
&mut self,
input: &AccountProcessorInputType<'_, PumpFeesAccount>,
) -> CarbonResult<()> {
if let PumpFeesAccount::Pool(pool) = &input.decoded_account.data {
println!("pool {}: {pool:?}", input.metadata.pubkey);
}
Ok(())
}
}RUST_LOG=info cargo runEach update to a Pool account prints its address and decoded fields; the program runs until you stop it. Cargo resolves solana-client to 4.2.2, the exact version the datasource pins, so both use the same RpcProgramAccountsConfig type. To load every existing account once instead of streaming changes, see load account state.
Instructions#
Variants of PumpFeesInstruction. Each is PumpFeesInstruction::, where data and accounts are the types listed under the variant, exported from carbon_. Discriminators are the leading bytes of the instruction data, in hex.
How an instruction decodes. The decoder returns a variant only when all of these hold; otherwise the instruction is skipped and no processor is called:
- The instruction's program ID is
pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ. - The data starts with the variant's discriminator, and the rest deserializes into its data type.
- The instruction has at least as many accounts as the variant requires (the "Required accounts" count under each variant).
Accounts. They are matched by position, in the order listed. An account marked optional is None only when the instruction ends before it; Anchor programs pass the program ID as a placeholder for an omitted optional account, so check for Some(PROGRAM_ too. Accounts after the listed ones are in accounts. as AccountMetas. The decoder doesn't record whether an account signed or was writable: read that from input. and ., which follow the same order. It doesn't check signer, writable, owner or PDA constraints either; the program enforced those when the transaction executed, so a decoded instruction from a successful transaction already satisfied them.
ClaimSocialFeePda#
Discriminator e115fb85a11ec7e2 · data ClaimSocialFeePda · accounts ClaimSocialFeePdaInstructionAccounts.
| Field | Type |
|---|---|
user_id | String |
platform | u8 |
Required accounts: 6; extras go to remaining.
Fields of ClaimSocialFeePdaInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | recipient | Pubkey |
| 1 | social_ | Pubkey |
| 2 | fee_ | Pubkey |
| 3 | social_ | Pubkey |
| 4 | event_ | Pubkey |
| 5 | program | Pubkey |
| 6… | remaining | Vec< |
CreateFeeSharingConfig#
From the program's IDL:
Create Fee Sharing Config
Discriminator c34e564c6f34fbd5 · data CreateFeeSharingConfig · accounts CreateFeeSharingConfigInstructionAccounts.
No data fields.
Required accounts: 10 (13 listed); extras go to remaining.
Fields of CreateFeeSharingConfigInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | event_ | Pubkey |
| 1 | program | Pubkey |
| 2 | payer | Pubkey |
| 3 | global | Pubkey |
| 4 | mint | Pubkey |
| 5 | sharing_ | Pubkey |
| 6 | system_ | Pubkey |
| 7 | bonding_ | Pubkey |
| 8 | pump_ | Pubkey |
| 9 | pump_ | Pubkey |
| 10 | pool | Option< |
| 11 | pump_ | Option< |
| 12 | pump_ | Option< |
| 13… | remaining | Vec< |
CreateSocialFeePda#
Discriminator 90e03bd34ef8cadc · data CreateSocialFeePda · accounts CreateSocialFeePdaInstructionAccounts.
| Field | Type |
|---|---|
user_id | String |
platform | u8 |
Required accounts: 6; extras go to remaining.
Fields of CreateSocialFeePdaInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | payer | Pubkey |
| 1 | social_ | Pubkey |
| 2 | system_ | Pubkey |
| 3 | fee_ | Pubkey |
| 4 | event_ | Pubkey |
| 5 | program | Pubkey |
| 6… | remaining | Vec< |
GetFees#
From the program's IDL:
Get Fees
Discriminator e7257e55cf5b3f34 · data GetFees · accounts GetFeesInstructionAccounts.
| Field | Type |
|---|---|
is_ | bool |
market_ | u128 |
trade_ | u64 |
Required accounts: 2; extras go to remaining.
Fields of GetFeesInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | fee_config | Pubkey |
| 1 | config_ | Pubkey |
| 2… | remaining | Vec< |
InitializeFeeConfig#
From the program's IDL:
Initialize FeeConfig admin
Discriminator 3ea214857941911b · data InitializeFeeConfig · accounts InitializeFeeConfigInstructionAccounts.
No data fields.
Required accounts: 6; extras go to remaining.
Fields of InitializeFeeConfigInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | admin | Pubkey |
| 1 | fee_config | Pubkey |
| 2 | system_ | Pubkey |
| 3 | config_ | Pubkey |
| 4 | event_ | Pubkey |
| 5 | program | Pubkey |
| 6… | remaining | Vec< |
InitializeFeeProgramGlobal#
Discriminator 23d78254e9387ca7 · data InitializeFeeProgramGlobal · accounts InitializeFeeProgramGlobalInstructionAccounts.
| Field | Type |
|---|---|
social_ | Pubkey |
disable_ | u8 |
claim_ | u64 |
Required accounts: 6; extras go to remaining.
Fields of InitializeFeeProgramGlobalInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | authority | Pubkey |
| 1 | pump_global | Pubkey |
| 2 | fee_ | Pubkey |
| 3 | system_ | Pubkey |
| 4 | event_ | Pubkey |
| 5 | program | Pubkey |
| 6… | remaining | Vec< |
ResetFeeSharingConfig#
From the program's IDL:
Reset Fee Sharing Config and distribute pending fees first
Discriminator 0a02b65f107f81ba · data ResetFeeSharingConfig · accounts ResetFeeSharingConfigInstructionAccounts.
No data fields.
Required accounts: 19; extras go to remaining.
Fields of ResetFeeSharingConfigInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | new_admin | Pubkey |
| 1 | event_ | Pubkey |
| 2 | program | Pubkey |
| 3 | authority | Pubkey |
| 4 | global | Pubkey |
| 5 | mint | Pubkey |
| 6 | sharing_ | Pubkey |
| 7 | bonding_ | Pubkey |
| 8 | pump_ | Pubkey |
| 9 | system_ | Pubkey |
| 10 | pump_ | Pubkey |
| 11 | pump_ | Pubkey |
| 12 | pump_ | Pubkey |
| 13 | amm_ | Pubkey |
| 14 | wsol_mint | Pubkey |
| 15 | token_ | Pubkey |
| 16 | associated_ | Pubkey |
| 17 | coin_ | Pubkey |
| 18 | coin_ | Pubkey |
| 19… | remaining | Vec< |
RevokeFeeSharingAuthority#
From the program's IDL:
Revoke Fee Sharing Authority
Discriminator 12e99e27b9cf3a68 · data RevokeFeeSharingAuthority · accounts RevokeFeeSharingAuthorityInstructionAccounts.
No data fields.
No named accounts.
SetAuthority#
Discriminator 85fa25156ea31a79 · data SetAuthority · accounts SetAuthorityInstructionAccounts.
| Field | Type |
|---|---|
new_ | Pubkey |
Required accounts: 4; extras go to remaining.
Fields of SetAuthorityInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | authority | Pubkey |
| 1 | fee_ | Pubkey |
| 2 | event_ | Pubkey |
| 3 | program | Pubkey |
| 4… | remaining | Vec< |
SetClaimRateLimit#
Discriminator b9d39faed4315804 · data SetClaimRateLimit · accounts SetClaimRateLimitInstructionAccounts.
| Field | Type |
|---|---|
claim_ | u64 |
Required accounts: 4; extras go to remaining.
Fields of SetClaimRateLimitInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | authority | Pubkey |
| 1 | fee_ | Pubkey |
| 2 | event_ | Pubkey |
| 3 | program | Pubkey |
| 4… | remaining | Vec< |
SetDisableFlags#
Discriminator c2d9702372de33be · data SetDisableFlags · accounts SetDisableFlagsInstructionAccounts.
| Field | Type |
|---|---|
disable_ | u8 |
Required accounts: 4; extras go to remaining.
Fields of SetDisableFlagsInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | authority | Pubkey |
| 1 | fee_ | Pubkey |
| 2 | event_ | Pubkey |
| 3 | program | Pubkey |
| 4… | remaining | Vec< |
SetSocialClaimAuthority#
Discriminator 9336b89a88edb999 · data SetSocialClaimAuthority · accounts SetSocialClaimAuthorityInstructionAccounts.
| Field | Type |
|---|---|
social_ | Pubkey |
Required accounts: 4; extras go to remaining.
Fields of SetSocialClaimAuthorityInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | authority | Pubkey |
| 1 | fee_ | Pubkey |
| 2 | event_ | Pubkey |
| 3 | program | Pubkey |
| 4… | remaining | Vec< |
TransferFeeSharingAuthority#
From the program's IDL:
Transfer Fee Sharing Authority
Discriminator ca0a4bc8a422d260 · data TransferFeeSharingAuthority · accounts TransferFeeSharingAuthorityInstructionAccounts.
No data fields.
No named accounts.
UpdateAdmin#
From the program's IDL:
Update admin (only callable by admin)
Discriminator a1b028d53cb8b3e4 · data UpdateAdmin · accounts UpdateAdminInstructionAccounts.
No data fields.
Required accounts: 6; extras go to remaining.
Fields of UpdateAdminInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | admin | Pubkey |
| 1 | fee_config | Pubkey |
| 2 | new_admin | Pubkey |
| 3 | config_ | Pubkey |
| 4 | event_ | Pubkey |
| 5 | program | Pubkey |
| 6… | remaining | Vec< |
UpdateFeeConfig#
From the program's IDL:
Set/Replace fee parameters entirely (only callable by admin)
Discriminator 68b867f258976b14 · data UpdateFeeConfig · accounts UpdateFeeConfigInstructionAccounts.
| Field | Type |
|---|---|
fee_tiers | Vec< |
flat_fees | Fees |
Required accounts: 5; extras go to remaining.
Fields of UpdateFeeConfigInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | fee_config | Pubkey |
| 1 | admin | Pubkey |
| 2 | config_ | Pubkey |
| 3 | event_ | Pubkey |
| 4 | program | Pubkey |
| 5… | remaining | Vec< |
UpdateFeeShares#
From the program's IDL:
Update Fee Shares, make sure to distribute all the fees before calling this
Discriminator bd0d8863bba4ed23 · data UpdateFeeShares · accounts UpdateFeeSharesInstructionAccounts.
| Field | Type |
|---|---|
shareholders | Vec< |
Required accounts: 18; extras go to remaining.
Fields of UpdateFeeSharesInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | event_ | Pubkey |
| 1 | program | Pubkey |
| 2 | authority | Pubkey |
| 3 | global | Pubkey |
| 4 | mint | Pubkey |
| 5 | sharing_ | Pubkey |
| 6 | bonding_ | Pubkey |
| 7 | pump_ | Pubkey |
| 8 | system_ | Pubkey |
| 9 | pump_ | Pubkey |
| 10 | pump_ | Pubkey |
| 11 | pump_ | Pubkey |
| 12 | amm_ | Pubkey |
| 13 | wsol_mint | Pubkey |
| 14 | token_ | Pubkey |
| 15 | associated_ | Pubkey |
| 16 | coin_ | Pubkey |
| 17 | coin_ | Pubkey |
| 18… | remaining | Vec< |
UpsertFeeTiers#
From the program's IDL:
Update or expand fee tiers (only callable by admin)
Discriminator e317960c4d565e04 · data UpsertFeeTiers · accounts UpsertFeeTiersInstructionAccounts.
| Field | Type |
|---|---|
fee_tiers | Vec< |
offset | u8 |
Required accounts: 5; extras go to remaining.
Fields of UpsertFeeTiersInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | fee_config | Pubkey |
| 1 | admin | Pubkey |
| 2 | config_ | Pubkey |
| 3 | event_ | Pubkey |
| 4 | program | Pubkey |
| 5… | remaining | Vec< |
CpiEvent#
Anchor self-CPI that carries one of the program's events. data is the CpiEvent enum.
Discriminator e445a52e51cb9a1d · data CpiEvent · accounts CpiEventInstructionAccounts.
Required accounts: 2; extras go to remaining.
Fields of CpiEventInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | program | Pubkey |
| 1 | event_ | Pubkey |
| 2… | remaining | Vec< |
Accounts#
Variants of PumpFeesAccount. Each wraps a boxed struct from carbon_. decode_ only considers accounts owned by PROGRAM_ID and returns the first variant that matches.
BondingCurve#
Discriminator 17b7f83760d8ac60 · accounts::.
| Field | Type |
|---|---|
virtual_ | u64 |
virtual_ | u64 |
real_ | u64 |
real_ | u64 |
token_ | u64 |
complete | bool |
creator | Pubkey |
is_ | bool |
FeeConfig#
Discriminator 8f3492bbdb7b4c9b · accounts::.
| Field | Type | Description |
|---|---|---|
bump | u8 | The bump for the PDA |
admin | Pubkey | The admin account that can update the fee config |
flat_fees | Fees | The flat fees for non-pump pools |
fee_tiers | Vec< | The fee tiers |
FeeProgramGlobal#
Discriminator a2a5f5311d2537f2 · accounts::.
| Field | Type |
|---|---|
bump | u8 |
authority | Pubkey |
disable_ | u8 |
social_ | Pubkey |
claim_ | u64 |
reserved | [u8; 256] |
Global#
Discriminator a7e8e8b1c86c727f · accounts::.
| Field | Type |
|---|---|
initialized | bool |
authority | Pubkey |
fee_ | Pubkey |
initial_ | u64 |
initial_ | u64 |
initial_ | u64 |
token_ | u64 |
fee_ | u64 |
withdraw_ | Pubkey |
enable_ | bool |
pool_ | u64 |
creator_ | u64 |
fee_ | [Pubkey; 7] |
set_ | Pubkey |
admin_ | Pubkey |
create_ | bool |
whitelist_ | Pubkey |
reserved_ | Pubkey |
mayhem_ | bool |
reserved_ | [Pubkey; 7] |
Pool#
Discriminator f19a6d0411b16dbc · accounts::.
| Field | Type |
|---|---|
pool_bump | u8 |
index | u16 |
creator | Pubkey |
base_mint | Pubkey |
quote_mint | Pubkey |
lp_mint | Pubkey |
pool_ | Pubkey |
pool_ | Pubkey |
lp_supply | u64 |
coin_ | Pubkey |
is_ | bool |
SharingConfig#
Discriminator d84a0900388c5d4b · accounts::.
| Field | Type |
|---|---|
bump | u8 |
version | u8 |
status | ConfigStatus |
mint | Pubkey |
admin | Pubkey |
admin_ | bool |
shareholders | Vec< |
SocialFeePda#
Discriminator 8b6035112aa9ce96 · accounts::.
| Field | Type | Description |
|---|---|---|
bump | u8 | |
version | u8 | |
user_id | String | Max 20 characters to fit u64::MAX (18,446,744,073,709,551,615) as a string. Actual storage: 4 bytes (length prefix) + 20 bytes (content) = 24 bytes. |
platform | u8 | |
total_ | u64 | |
last_ | u64 | |
reserved | [u8; 128] |
Events#
Variants of instructions::, decoded from the CpiEvent instruction. Each wraps a struct from carbon_. The discriminator is the 8-byte event discriminator that follows the e445a52e51cb9a1d CPI-event tag.
CreateFeeSharingConfigEvent#
Discriminator 8569aac8b874fb58 · events::.
| Field | Type |
|---|---|
timestamp | i64 |
mint | Pubkey |
bonding_ | Pubkey |
pool | Option< |
sharing_ | Pubkey |
admin | Pubkey |
initial_ | Vec< |
status | ConfigStatus |
InitializeFeeConfigEvent#
Discriminator 598af4e60a38e27e · events::.
| Field | Type |
|---|---|
timestamp | i64 |
admin | Pubkey |
fee_config | Pubkey |
InitializeFeeProgramGlobalEvent#
Discriminator 28e99c4e5f0008c7 · events::.
| Field | Type |
|---|---|
timestamp | i64 |
authority | Pubkey |
social_ | Pubkey |
disable_ | u8 |
claim_ | u64 |
ResetFeeSharingConfigEvent#
Discriminator cbcc97e27837d6f3 · events::.
| Field | Type |
|---|---|
timestamp | i64 |
mint | Pubkey |
sharing_ | Pubkey |
old_admin | Pubkey |
old_ | Vec< |
new_admin | Pubkey |
new_ | Vec< |
old_version | u8 |
new_version | u8 |
SetAuthorityEvent#
Discriminator 12af8442d0c957f2 · events::.
| Field | Type |
|---|---|
timestamp | i64 |
old_ | Pubkey |
new_ | Pubkey |
SetClaimRateLimitEvent#
Discriminator 0d8f8febb5133328 · events::.
| Field | Type |
|---|---|
timestamp | i64 |
claim_ | u64 |
SetDisableFlagsEvent#
Discriminator 0508b3413137917e · events::.
| Field | Type |
|---|---|
timestamp | i64 |
disable_ | u8 |
SetSocialClaimAuthorityEvent#
Discriminator 3c767f84ef34fe0e · events::.
| Field | Type |
|---|---|
timestamp | i64 |
social_ | Pubkey |
SocialFeePdaClaimed#
Discriminator 3212c141edd2eaec · events::.
| Field | Type |
|---|---|
timestamp | i64 |
user_id | String |
platform | u8 |
social_ | Pubkey |
recipient | Pubkey |
social_ | Pubkey |
amount_ | u64 |
claimable_ | u64 |
lifetime_ | u64 |
recipient_ | u64 |
recipient_ | u64 |
SocialFeePdaCreated#
Discriminator b7b7da93187c89a9 · events::.
| Field | Type |
|---|---|
timestamp | i64 |
user_id | String |
platform | u8 |
social_ | Pubkey |
created_by | Pubkey |
UpdateAdminEvent#
Discriminator e198ab57f63f42ea · events::.
| Field | Type |
|---|---|
timestamp | i64 |
old_admin | Pubkey |
new_admin | Pubkey |
UpdateFeeConfigEvent#
Discriminator 5a1741233ef4bcd0 · events::.
| Field | Type |
|---|---|
timestamp | i64 |
admin | Pubkey |
fee_config | Pubkey |
fee_tiers | Vec< |
flat_fees | Fees |
UpdateFeeSharesEvent#
Discriminator 15bac4b85be4e1cb · events::.
| Field | Type |
|---|---|
timestamp | i64 |
mint | Pubkey |
sharing_ | Pubkey |
admin | Pubkey |
new_ | Vec< |
version | u8 |
UpsertFeeTiersEvent#
Discriminator ab59a9bb7aba21cc · events::.
| Field | Type |
|---|---|
timestamp | i64 |
admin | Pubkey |
fee_config | Pubkey |
fee_tiers | Vec< |
offset | u8 |
Types#
Types used by the instructions, accounts and events above, exported from carbon_.
ConfigStatus#
Enum types::.
| Variant |
|---|
Paused |
Active |
CreateFeeSharingConfigEvent#
Struct types::. Same fields as the CreateFeeSharingConfigEvent event.
Fees#
Struct types::Fees.
| Field | Type |
|---|---|
lp_fee_bps | u64 |
protocol_ | u64 |
creator_ | u64 |
FeeTier#
Struct types::.
| Field | Type |
|---|---|
market_ | u128 |
fees | Fees |
InitializeFeeConfigEvent#
Struct types::. Same fields as the InitializeFeeConfigEvent event.
InitializeFeeProgramGlobalEvent#
Struct types::. Same fields as the InitializeFeeProgramGlobalEvent event.
ResetFeeSharingConfigEvent#
Struct types::. Same fields as the ResetFeeSharingConfigEvent event.
SetAuthorityEvent#
Struct types::. Same fields as the SetAuthorityEvent event.
SetClaimRateLimitEvent#
Struct types::. Same fields as the SetClaimRateLimitEvent event.
SetDisableFlagsEvent#
Struct types::. Same fields as the SetDisableFlagsEvent event.
SetSocialClaimAuthorityEvent#
Struct types::. Same fields as the SetSocialClaimAuthorityEvent event.
Shareholder#
Struct types::.
| Field | Type |
|---|---|
address | Pubkey |
share_bps | u16 |
SocialFeePdaClaimed#
Struct types::. Same fields as the SocialFeePdaClaimed event.
SocialFeePdaCreated#
Struct types::. Same fields as the SocialFeePdaCreated event.
UpdateAdminEvent#
Struct types::. Same fields as the UpdateAdminEvent event.
UpdateFeeConfigEvent#
Struct types::. Same fields as the UpdateFeeConfigEvent event.
UpdateFeeSharesEvent#
Struct types::. Same fields as the UpdateFeeSharesEvent event.
UpsertFeeTiersEvent#
Struct types::. Same fields as the UpsertFeeTiersEvent event.