Files
pumpfun-bonkfun-bot_github/idl/pump_swap_idl.json
T
55ae2afd82 feat(pumpfun): resync with the 2026-09-15 program upgrade (#202)
* feat(idl): refresh to upstream 8109141 and decode omitted OptionU64 args

Vendors pump.json, pump_amm.json and pump_fees.json from
pump-fun/pump-public-docs@8109141 (holder rewards coins, cashback
deprecation). create_v2 gains two trailing optionals: creator_fee_bps
(OptionU64) and is_holder_reward (OptionBool).

_is_optional_type only recognised OptionBool, so a create_v2 that omits
creator_fee_bps failed the whole decode and the coin dropped out of the
instruction path — the same failure #184 fixed for is_cashback_enabled.
Reproduced against two live mainnet create_v2 transactions captured
2026-09-15: one omits creator_fee_bps (157-byte instruction data), one
sends it (156 bytes) — both are added as getTransaction fixtures under
learning-examples/.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(learning-examples): accept 125-byte bonding curves in dataSize filters

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* docs(learning-examples): replace unrun/recycled curve-size claims with dated live measurements

The 45s/205-update/24-curve figures and the logsSubscribe/same-tx
extend_account claim in the two graduating-token docstrings were
carried over from before the 125/151 filter change and never
re-verified under it. Replaced with fresh 2026-09-15 measurements: a
length-unfiltered programSubscribe run, a direct 125->151 transition
observed on one curve, and a live run of the Geyser script's own
two-group build_subscribe_request confirming both filter groups
actually deliver. Unreproduced claims are now marked UNVERIFIED
in-line instead of stated flatly.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(learning-examples): stop enumerating bonding-curve dataSize lengths

extend_account can grow a curve to any length the program allows, so the
CURVE_ACCOUNT_LENS = (125, 151) allowlist in both graduating-token scripts
was whack-a-mole -- a live 256-byte curve was already missed. Drop the
dataSize/datasize server-side filter entirely (discriminator + complete
memcmp already restrict delivery to BondingCurve accounts) and replace the
allowlist with a MIN_CURVE_LEN client-side floor. Collapse the Geyser
script's two named filter groups back to one now that there's no length to
fan out over. Extend verify_curve_account_sizes.py to assert neither script
constructs a dataSize filter and that 125/151/256-byte curves all decode.

Measured live 2026-09-15, filtered vs unfiltered subscribed simultaneously
so both see identical trade activity: ~0.6-0.7% extra traffic on WebSocket,
statistically zero on Geyser -- dropping the filter is effectively free.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(learning-examples): remove untraceable bandwidth figure, session wording

Review of the dataSize-enumeration fix found a docstring figure (90s window,
2/224/866 updates at 256/125/151 bytes) that no command in the fix report
actually produced -- it was a byproduct of the discarded sequential-window
run, never written down with its command+output. Drop it and rely only on
the properly-documented 120s simultaneous measurement already backing the
rest of the paragraph.

Also replace two "carried from an earlier session" UNVERIFIED markers with
the repo's own convention (UNVERIFIED: <what>, no reference to how or when
the file was edited), and give both the update and byte ratio (1.006x /
1.007x) instead of a single derived percentage.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* feat(pumpfun): surface is_holder_reward and creator_fee_bps on TokenInfo

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(pumpfun): verify the USDC half of the creator_fee_bps claim

The comment on TokenInfo.creator_fee_bps stated flatly that SOL- and
USDC-paired coins always carry bps 0, but only the SOL half had been
observed live. Found 10 USDC-paired bonding curves (via Dune's indexed
CreateEvent table) and read each one directly through
PumpFunCurveManager.get_pool_state: all 10 show creator_fee_bps=0,
matching every custom-pair coin observed showing nonzero. Dated the
verification in the comment instead of leaving it an unmarked claim.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* feat(examples): create holder-reward coins; mark cashback legacy-only

create_v2 now rejects is_cashback_enabled=[true] with 6082
CashbackDeprecated as of the 2026-09-15 upgrade. Add ENABLE_HOLDER_REWARD
to mint_and_buy_v2.py so the trailing create_v2 args can reach
is_holder_reward instead, and relabel the still-live cashback code paths
in core.py, instruction_builder.py and curve_manager.py with the
deprecation date. No cashback account handling is removed anywhere -
existing cashback coins keep trading and accruing exactly as before.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* feat(pumpfun): resolve quote mints to their real token program

A 2026-09-15 pump.fun upgrade lets create_v2 pair a coin with a Token-2022
quote mint (error 6064 now accepts "SPL Token or Token-2022"), and such
coins already trade on mainnet. quote_token_program() only knew WSOL/USDC
and silently defaulted everything else to SPL Token, deriving associated
token accounts that don't exist on chain for any other quote mint.

Add an async resolver that reads a mint's owner from chain and caches it
for the process, pre-seeded with WSOL/USDC so they stay free. The bot
warms this cache once at startup for every configured quote mint; the
hot path (event parsing, address resolution) only ever reads the cache,
preserving extreme_fast_mode's zero-RPC contract between detection and
submission. quote_token_program() itself is untouched so its
existing call sites keep their non-optional Pubkey return.

Also fixes the standalone pump_v2.py learning-examples helper, which had
the same bug in a form that ignored its argument entirely, and gives
simulate_bot_buy_path.py a quote_amounts entry so it can exercise a
non-SOL-paired coin instead of unconditionally skipping it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* feat(core): name Anchor error codes when reporting a reverted transaction

confirm_transaction only answers whether a transaction landed; meta.err
carries the revert. Logging it raw as {'InstructionError': [idx,
{'Custom': n}]} told an operator nothing, and pump.fun's 2026-09-15
upgrade added 22 new error codes to the pump program and 10 to
pump-amm, so an unnamed number is now more likely to be wrong than
useful. IDLParser.describe_error_code() looks a Custom(N) code up in
an IDL's error table; SolanaClient logs the match alongside the raw
meta.err at both revert sites, so a buy reverting with
BuybackFeeRecipientMissing (issue #175) now prints "6062
BuybackFeeRecipientMissing" instead of a bare 6062.

SolanaClient is shared across pump.fun and letsbonk.fun and has no
record of which program a given transaction invoked, so this only
checks pump.fun's table -- the program the bot's own buy_v2/sell_v2
call directly. A revert on a different program is described against
the wrong table if the code number collides, or left unnamed
otherwise; see the docstring on _describe_program_error.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(core): correct get_account_info's return type annotation

It was typed dict[str, Any] but solana-py's AsyncClient.get_account_info
actually returns a solders Account object. Every real caller already
reads attributes (.data, .owner) rather than subscripting, so this was
latent rather than a live bug -- but the wrong annotation is what let
those callers work by accident, and would mislead anyone who trusted
the type and reached for result["owner"] instead.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(core): tag the revert description with the table it came from

The name appended to a reverted transaction's log line looked like a
fact about whichever program actually reverted, but it is only ever
looked up in pump.fun's error table. This bot also trades letsbonk.fun,
so a letsbonk revert whose numeric code happens to also exist in
pump's table would get a confident, wrong name -- worse than the bare
number it replaced, since a wrong name stops the reader from checking.
Prefixing the description with "pump.fun IDL:" carries the same
limitation the docstring already stated out to the log line itself, so
it's visible without reading the source.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* docs: resync CLAUDE.md and README.md with the 2026-09-15 program upgrade

The bonding curve is 125 bytes now (not 151, no more padding), create_v2
takes eight args instead of six, cashback creation is deprecated (6082
CashbackDeprecated) while existing cashback coins keep trading, quote
assets are no longer just SOL/USDC (QuoteControl, not Global, is the
authoritative mint registry), and holder-reward coins were undocumented
entirely. Add verify_curve_account_sizes.py to both docs' verification
lists, retire the superseded CU comments in instruction_builder.py (the
180k/120k limits are untouched), and fix two stale cashback comments plus
a docstring in client.py that showed a msg suffix code 6062 doesn't have.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(trading): refresh quote_token_program_id alongside quote_mint

_refresh_quote_mint synced token_info.quote_mint from freshly-read curve
state but left quote_token_program_id at its construction-time value. A
stale non-None program id wins the `or` in
PumpFunAddressProvider.resolve_quote, so a curve refresh that reveals a
Token-2022 quote mint still resolves the associated_quote_* ATAs under SPL
Token -- an address that does not exist on chain.

cached_quote_token_program is a synchronous dict read, so this keeps
extreme_fast_mode's zero-RPC-call contract between detection and
submission.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(examples): resolve the quote mint's real token program in manual buy/sell

manual_buy.py and manual_sell.py derived the quote ATA's owning program
through pump_v2.quote_token_program, which defaults any mint outside the
WSOL/USDC map to SPL Token. A pump.fun upgrade verified 2026-09-15 lets
create_v2 pair a coin with a Token-2022 quote mint (error 6064 now accepts
"SPL Token or Token-2022"), so that default derives an ATA that does not
exist on a Token-2022-quoted coin -- and these scripts submit real
transactions, so the failure burns one.

Both now call pump_v2.resolve_quote_token_program (free for WSOL/USDC via
its cache, one RPC call otherwise) and thread the resolved program into
both the buy_v2/sell_v2 instruction and the quote ATA creation.

Verified against a real Token-2022-quoted pump.fun coin found via Dune
(pumpdotfun_solana.pump_evt_createevent, mint G5Ve125Poi7KoDRP5uLsgu5NQdm3KoqfyUkq4cqtTo4r,
quote_mint Xsc9qvGR1efVDFGLrVsmkzv3qi45LTBjeUKSPmx9qEh, confirmed Token-2022-owned
by RPC read): the old default derives associated_quote_bonding_curve
FViEZvbcYjoSwGE2b37HiCXmPT3N7kSd1nQavFzcD7Yb, which does not exist on chain;
the fixed resolution derives DfxcBKXTLDqobNEmR5JkaBeoKqNbJE1vKbtQVbowXz4x,
which exists on chain and is owned by the Token-2022 program.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(core): correct get_multiple_accounts's return type annotation

Declared as list[Any] while it actually returns a list of solders Account
objects (or None for missing accounts) -- the same stale-annotation
pattern already corrected on get_account_info.

Checked the one caller, PumpFunCurveManager.get_pool_state_and_token_program,
which already unpacks the two entries and reads .data / .owner off them
directly rather than subscripting -- no live bug behind the wrong
annotation here.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* refactor(examples): use the public decode API in the optional-args verifier

check_omitted_option_u64_decodes and check_option_u64_present_decodes
reached into IDLParser._decode_instruction_args behind # noqa: SLF001
instead of the public decode_instruction(data, keys, accounts) already
used by every other check in this file. The fixtures already carry valid
accounts/keys (previously discarded as data, _, _), so the public method
expresses the same check -- confirmed it returns byte-for-byte identical
decoded args as the private call did.

Confirmed the check stays load-bearing: reverting _is_optional_type to a
narrow == "OptionBool" comparison drops the verifier to 2/7 checks passed,
exit 1, including the two checks touched here.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* docs: correct unverified claims from the final branch review

Text-only fixes from the whole-branch review — no code defects found.

- CLAUDE.md: create_v2 trailing-arg claim was circular (sourced from our own
  minter script) and wrong — the three committed fixtures show 0, 1 and 2
  trailing args, never 3. Rewritten with the counted byte lengths and dated;
  the unobserved 3-arg form is now marked UNVERIFIED instead of asserted.
- src/interfaces/core.py, CLAUDE.md: corrected an inflated "25 SOL-paired"
  sample to the actual 21 (25 coins captured live, 4 of them custom-pair).
- instruction_builder.py: buy_v2/sell_v2 CU comments cited figures from a
  task brief that were never re-measured on this branch. Re-measured via
  simulate_v2_trades.py on 2026-09-15 (106,677 / ~77,196 CU) and updated the
  comments; the configured 180k/120k limits are unchanged.
- simulate_bot_buy_path.py: removed a working-session reference ("this
  task") from a comment.
- get_graduating_tokens.py, get_graduating_tokens_geyser.py's sibling docs
  (pump_v2.py, fetch_price.py, get_bonding_curve_status.py,
  verify_pumpportal_buy_path.py): made the curve-length story consistent
  (125/151/256, don't enumerate lengths) instead of a stale "125 or 151"
  framing; resolved an UNVERIFIED marker that mint_and_buy_v2.py already
  answers (extend_account can share a transaction with create_v2); removed
  a redundant restated clause in the bandwidth-measurement paragraph.

Verified: all 7 verify_*/simulate offline+mainnet checks still exit 0,
buy_v2/sell_v2 account counts unchanged at 27/26.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(trading): resolve quote-mint decimals instead of defaulting to 9

quote_decimals()/quote_units_per_token() defaulted every quote mint outside
the WSOL/USDC map to SOL's 9 decimals, mis-scaling max_sol_cost/min_sol_output
by up to 1000x for a custom Token-2022 quote mint (verified: 6 decimals).
Extend resolve_quote_token_program's existing mint-account fetch to also
parse and cache decimals from the same read (byte offset 44, shared by SPL
Token and Token-2022), so the fix costs zero extra RPC calls and the
zero-RPC extreme_fast_mode contract holds. Mirrored the same treatment in
learning-examples/pump_v2.py's standalone copy.

Also decode is_holder_reward in the instruction-only create_v2 parse path
(a landed transaction proves it, since the program rejects the flag when
globally disabled) while leaving creator_fee_bps at its default, since
upstream docs say it's ignored for SOL/USDC-paired coins and nothing reads
it today.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(examples): strengthen optional-arg verifier assertions

Fix verify_create_v2_optional_args.py to properly assert value equality
rather than just presence when checking optional arguments:

- check_omitted_option_u64_decodes: verify both creator_fee_bps and
  is_holder_reward are exactly None (not just present in dict)
- check_option_u64_present_decodes: decode the fixture, verify
  creator_fee_bps shape is {"field_0": <value>}, and assert the actual
  value (0) rather than just non-null
- Fixture decodes to creator_fee_bps={'field_0': 0}, is_holder_reward=None

Also fix README.md line 166: "Three examples" → "Four examples" to match
the four verification commands listed.

Temporary revert of idl_parser.py's _is_optional_type confirms the
strengthened assertions are load-bearing: changing from startswith("Option")
back to == "OptionBool" causes 4 of 7 checks to fail.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EkvFUgSiZoaF7w4xugrgBc

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-16 09:36:44 +02:00

7681 lines
157 KiB
JSON

{
"address": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA",
"metadata": {
"name": "pump_amm",
"version": "0.1.0",
"spec": "0.1.0",
"description": "Created with Anchor"
},
"instructions": [
{
"name": "admin_cto_pool",
"discriminator": [
45,
61,
165,
151,
104,
0,
49,
189
],
"accounts": [
{
"name": "payer",
"writable": true,
"signer": true
},
{
"name": "global_config"
},
{
"name": "pool",
"writable": true
},
{
"name": "pool_authority",
"signer": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
112,
111,
111,
108,
45,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
},
{
"kind": "account",
"path": "pool.base_mint",
"account": "Pool"
}
],
"program": {
"kind": "const",
"value": [
1,
86,
224,
246,
147,
102,
90,
207,
68,
219,
21,
104,
191,
23,
91,
170,
81,
137,
203,
151,
245,
210,
255,
59,
101,
93,
43,
182,
253,
109,
24,
176
]
}
}
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
95,
95,
101,
118,
101,
110,
116,
95,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "program"
}
],
"args": [
{
"name": "coin_creator",
"type": "pubkey"
},
{
"name": "is_holder_reward",
"type": "bool"
},
{
"name": "creator_fee_bps",
"type": {
"option": "u64"
}
}
]
},
{
"name": "admin_update_token_incentives",
"discriminator": [
209,
11,
115,
87,
213,
23,
124,
204
],
"accounts": [
{
"name": "admin",
"writable": true,
"signer": true,
"relations": [
"global_config"
]
},
{
"name": "global_config",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
103,
108,
111,
98,
97,
108,
95,
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "global_volume_accumulator",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
103,
108,
111,
98,
97,
108,
95,
118,
111,
108,
117,
109,
101,
95,
97,
99,
99,
117,
109,
117,
108,
97,
116,
111,
114
]
}
]
}
},
{
"name": "mint"
},
{
"name": "global_incentive_token_account",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "global_volume_accumulator"
},
{
"kind": "account",
"path": "token_program"
},
{
"kind": "account",
"path": "mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "associated_token_program",
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "token_program"
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
95,
95,
101,
118,
101,
110,
116,
95,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "program"
}
],
"args": [
{
"name": "start_time",
"type": "i64"
},
{
"name": "end_time",
"type": "i64"
},
{
"name": "seconds_in_a_day",
"type": "i64"
},
{
"name": "day_number",
"type": "u64"
},
{
"name": "token_supply_per_day",
"type": "u64"
}
]
},
{
"name": "boost_buy_and_burn",
"discriminator": [
105,
68,
6,
175,
0,
7,
35,
162
],
"accounts": [
{
"name": "pool"
},
{
"name": "authority",
"writable": true,
"signer": true
},
{
"name": "global_config",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
103,
108,
111,
98,
97,
108,
95,
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "base_mint",
"writable": true,
"relations": [
"pool"
]
},
{
"name": "quote_mint",
"relations": [
"pool"
]
},
{
"name": "pool_base_token_account",
"writable": true,
"relations": [
"pool"
]
},
{
"name": "pool_quote_token_account",
"writable": true,
"relations": [
"pool"
]
},
{
"name": "boost_vault_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
98,
111,
111,
115,
116,
95,
118,
97,
117,
108,
116
]
},
{
"kind": "account",
"path": "pool"
}
]
}
},
{
"name": "boost_vault",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "boost_vault_authority"
},
{
"kind": "account",
"path": "quote_token_program"
},
{
"kind": "account",
"path": "quote_mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "base_token_program"
},
{
"name": "quote_token_program"
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
95,
95,
101,
118,
101,
110,
116,
95,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "program"
}
],
"args": [
{
"name": "quote_amount_in",
"type": "u64"
},
{
"name": "min_base_amount_burned",
"type": "u64"
}
]
},
{
"name": "buy",
"docs": [
"For cashback coins, optionally pass user_volume_accumulator_wsol_ata as remaining_accounts[0].",
"If provided and valid, the ATA will be initialized if needed."
],
"discriminator": [
102,
6,
61,
18,
1,
218,
235,
234
],
"accounts": [
{
"name": "pool",
"writable": true
},
{
"name": "user",
"writable": true,
"signer": true
},
{
"name": "global_config"
},
{
"name": "base_mint",
"relations": [
"pool"
]
},
{
"name": "quote_mint",
"relations": [
"pool"
]
},
{
"name": "user_base_token_account",
"writable": true
},
{
"name": "user_quote_token_account",
"writable": true
},
{
"name": "pool_base_token_account",
"writable": true,
"relations": [
"pool"
]
},
{
"name": "pool_quote_token_account",
"writable": true,
"relations": [
"pool"
]
},
{
"name": "protocol_fee_recipient"
},
{
"name": "protocol_fee_recipient_token_account",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "protocol_fee_recipient"
},
{
"kind": "account",
"path": "quote_token_program"
},
{
"kind": "account",
"path": "quote_mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "base_token_program"
},
{
"name": "quote_token_program"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "associated_token_program",
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
95,
95,
101,
118,
101,
110,
116,
95,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "program",
"address": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA"
},
{
"name": "coin_creator_vault_ata",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "coin_creator_vault_authority"
},
{
"kind": "account",
"path": "quote_token_program"
},
{
"kind": "account",
"path": "quote_mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "coin_creator_vault_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
114,
101,
97,
116,
111,
114,
95,
118,
97,
117,
108,
116
]
},
{
"kind": "account",
"path": "pool.coin_creator",
"account": "Pool"
}
]
}
},
{
"name": "global_volume_accumulator",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
103,
108,
111,
98,
97,
108,
95,
118,
111,
108,
117,
109,
101,
95,
97,
99,
99,
117,
109,
117,
108,
97,
116,
111,
114
]
}
]
}
},
{
"name": "user_volume_accumulator",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
117,
115,
101,
114,
95,
118,
111,
108,
117,
109,
101,
95,
97,
99,
99,
117,
109,
117,
108,
97,
116,
111,
114
]
},
{
"kind": "account",
"path": "user"
}
]
}
},
{
"name": "fee_config",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
102,
101,
101,
95,
99,
111,
110,
102,
105,
103
]
},
{
"kind": "const",
"value": [
12,
20,
222,
252,
130,
94,
198,
118,
148,
37,
8,
24,
187,
101,
64,
101,
244,
41,
141,
49,
86,
213,
113,
180,
212,
248,
9,
12,
24,
233,
168,
99
]
}
],
"program": {
"kind": "account",
"path": "fee_program"
}
}
},
{
"name": "fee_program",
"address": "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ"
}
],
"args": [
{
"name": "base_amount_out",
"type": "u64"
},
{
"name": "max_quote_amount_in",
"type": "u64"
},
{
"name": "track_volume",
"type": {
"defined": {
"name": "OptionBool"
}
}
}
]
},
{
"name": "buy_exact_quote_in",
"docs": [
"Given a budget of spendable_quote_in, buy at least min_base_amount_out",
"Fees will be deducted from spendable_quote_in",
"",
"f(quote) = tokens, where tokens >= min_base_amount_out",
"",
"Make sure the payer has enough SOL to cover creation of the following accounts (unless already created):",
"- protocol_fee_recipient_token_account: rent.minimum_balance(TokenAccount::LEN)",
"- coin_creator_vault_ata: rent.minimum_balance(TokenAccount::LEN)",
"- user_volume_accumulator: rent.minimum_balance(UserVolumeAccumulator::LEN)",
"",
"For cashback coins, optionally pass user_volume_accumulator_wsol_ata as remaining_accounts[0].",
"If provided and valid, the ATA will be initialized if needed."
],
"discriminator": [
198,
46,
21,
82,
180,
217,
232,
112
],
"accounts": [
{
"name": "pool",
"writable": true
},
{
"name": "user",
"writable": true,
"signer": true
},
{
"name": "global_config"
},
{
"name": "base_mint",
"relations": [
"pool"
]
},
{
"name": "quote_mint",
"relations": [
"pool"
]
},
{
"name": "user_base_token_account",
"writable": true
},
{
"name": "user_quote_token_account",
"writable": true
},
{
"name": "pool_base_token_account",
"writable": true,
"relations": [
"pool"
]
},
{
"name": "pool_quote_token_account",
"writable": true,
"relations": [
"pool"
]
},
{
"name": "protocol_fee_recipient"
},
{
"name": "protocol_fee_recipient_token_account",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "protocol_fee_recipient"
},
{
"kind": "account",
"path": "quote_token_program"
},
{
"kind": "account",
"path": "quote_mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "base_token_program"
},
{
"name": "quote_token_program"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "associated_token_program",
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
95,
95,
101,
118,
101,
110,
116,
95,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "program",
"address": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA"
},
{
"name": "coin_creator_vault_ata",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "coin_creator_vault_authority"
},
{
"kind": "account",
"path": "quote_token_program"
},
{
"kind": "account",
"path": "quote_mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "coin_creator_vault_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
114,
101,
97,
116,
111,
114,
95,
118,
97,
117,
108,
116
]
},
{
"kind": "account",
"path": "pool.coin_creator",
"account": "Pool"
}
]
}
},
{
"name": "global_volume_accumulator",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
103,
108,
111,
98,
97,
108,
95,
118,
111,
108,
117,
109,
101,
95,
97,
99,
99,
117,
109,
117,
108,
97,
116,
111,
114
]
}
]
}
},
{
"name": "user_volume_accumulator",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
117,
115,
101,
114,
95,
118,
111,
108,
117,
109,
101,
95,
97,
99,
99,
117,
109,
117,
108,
97,
116,
111,
114
]
},
{
"kind": "account",
"path": "user"
}
]
}
},
{
"name": "fee_config",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
102,
101,
101,
95,
99,
111,
110,
102,
105,
103
]
},
{
"kind": "const",
"value": [
12,
20,
222,
252,
130,
94,
198,
118,
148,
37,
8,
24,
187,
101,
64,
101,
244,
41,
141,
49,
86,
213,
113,
180,
212,
248,
9,
12,
24,
233,
168,
99
]
}
],
"program": {
"kind": "account",
"path": "fee_program"
}
}
},
{
"name": "fee_program",
"address": "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ"
}
],
"args": [
{
"name": "spendable_quote_in",
"type": "u64"
},
{
"name": "min_base_amount_out",
"type": "u64"
},
{
"name": "track_volume",
"type": {
"defined": {
"name": "OptionBool"
}
}
}
]
},
{
"name": "claim_cashback",
"docs": [
"Pays out the user's accrued cashback. `user_wsol_token_account` may be any token account",
"of `quote_mint` owned by `user`, not only the associated one."
],
"discriminator": [
37,
58,
35,
126,
190,
53,
228,
197
],
"accounts": [
{
"name": "user",
"writable": true
},
{
"name": "user_volume_accumulator",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
117,
115,
101,
114,
95,
118,
111,
108,
117,
109,
101,
95,
97,
99,
99,
117,
109,
117,
108,
97,
116,
111,
114
]
},
{
"kind": "account",
"path": "user"
}
]
}
},
{
"name": "quote_mint"
},
{
"name": "quote_token_program"
},
{
"name": "user_volume_accumulator_wsol_token_account",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "user_volume_accumulator"
},
{
"kind": "account",
"path": "quote_token_program"
},
{
"kind": "account",
"path": "quote_mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "user_wsol_token_account",
"writable": true
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
95,
95,
101,
118,
101,
110,
116,
95,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "program",
"address": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA"
}
],
"args": []
},
{
"name": "claim_token_incentives",
"discriminator": [
16,
4,
71,
28,
204,
1,
40,
27
],
"accounts": [
{
"name": "user"
},
{
"name": "user_ata",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "user"
},
{
"kind": "account",
"path": "token_program"
},
{
"kind": "account",
"path": "mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "global_volume_accumulator",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
103,
108,
111,
98,
97,
108,
95,
118,
111,
108,
117,
109,
101,
95,
97,
99,
99,
117,
109,
117,
108,
97,
116,
111,
114
]
}
]
}
},
{
"name": "global_incentive_token_account",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "global_volume_accumulator"
},
{
"kind": "account",
"path": "token_program"
},
{
"kind": "account",
"path": "mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "user_volume_accumulator",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
117,
115,
101,
114,
95,
118,
111,
108,
117,
109,
101,
95,
97,
99,
99,
117,
109,
117,
108,
97,
116,
111,
114
]
},
{
"kind": "account",
"path": "user"
}
]
}
},
{
"name": "mint",
"relations": [
"global_volume_accumulator"
]
},
{
"name": "token_program"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "associated_token_program",
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
95,
95,
101,
118,
101,
110,
116,
95,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "program",
"address": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA"
},
{
"name": "payer",
"writable": true,
"signer": true
}
],
"args": []
},
{
"name": "close_user_volume_accumulator",
"discriminator": [
249,
69,
164,
218,
150,
103,
84,
138
],
"accounts": [
{
"name": "user",
"writable": true,
"signer": true
},
{
"name": "user_volume_accumulator",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
117,
115,
101,
114,
95,
118,
111,
108,
117,
109,
101,
95,
97,
99,
99,
117,
109,
117,
108,
97,
116,
111,
114
]
},
{
"kind": "account",
"path": "user"
}
]
}
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
95,
95,
101,
118,
101,
110,
116,
95,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "program"
}
],
"args": []
},
{
"name": "collect_coin_creator_fee",
"discriminator": [
160,
57,
89,
42,
181,
139,
43,
66
],
"accounts": [
{
"name": "quote_mint"
},
{
"name": "quote_token_program"
},
{
"name": "coin_creator"
},
{
"name": "coin_creator_vault_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
114,
101,
97,
116,
111,
114,
95,
118,
97,
117,
108,
116
]
},
{
"kind": "account",
"path": "coin_creator"
}
]
}
},
{
"name": "coin_creator_vault_ata",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "coin_creator_vault_authority"
},
{
"kind": "account",
"path": "quote_token_program"
},
{
"kind": "account",
"path": "quote_mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "coin_creator_token_account",
"writable": true
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
95,
95,
101,
118,
101,
110,
116,
95,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "program"
}
],
"args": []
},
{
"name": "create_config",
"discriminator": [
201,
207,
243,
114,
75,
111,
47,
189
],
"accounts": [
{
"name": "admin",
"writable": true,
"signer": true,
"address": "8LWu7QM2dGR1G8nKDHthckea57bkCzXyBTAKPJUBDHo8"
},
{
"name": "global_config",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
103,
108,
111,
98,
97,
108,
95,
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
95,
95,
101,
118,
101,
110,
116,
95,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "program"
}
],
"args": [
{
"name": "lp_fee_basis_points",
"type": "u64"
},
{
"name": "protocol_fee_basis_points",
"type": "u64"
},
{
"name": "protocol_fee_recipients",
"type": {
"array": [
"pubkey",
8
]
}
},
{
"name": "coin_creator_fee_basis_points",
"type": "u64"
},
{
"name": "admin_set_coin_creator_authority",
"type": "pubkey"
}
]
},
{
"name": "create_pool",
"discriminator": [
233,
146,
209,
142,
207,
104,
64,
188
],
"accounts": [
{
"name": "pool",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
112,
111,
111,
108
]
},
{
"kind": "arg",
"path": "index"
},
{
"kind": "account",
"path": "creator"
},
{
"kind": "account",
"path": "base_mint"
},
{
"kind": "account",
"path": "quote_mint"
}
]
}
},
{
"name": "global_config"
},
{
"name": "creator",
"writable": true,
"signer": true
},
{
"name": "base_mint"
},
{
"name": "quote_mint"
},
{
"name": "lp_mint",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
112,
111,
111,
108,
95,
108,
112,
95,
109,
105,
110,
116
]
},
{
"kind": "account",
"path": "pool"
}
]
}
},
{
"name": "user_base_token_account",
"writable": true
},
{
"name": "user_quote_token_account",
"writable": true
},
{
"name": "user_pool_token_account",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "creator"
},
{
"kind": "account",
"path": "token_2022_program"
},
{
"kind": "account",
"path": "lp_mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "pool_base_token_account",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "pool"
},
{
"kind": "account",
"path": "base_token_program"
},
{
"kind": "account",
"path": "base_mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "pool_quote_token_account",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "pool"
},
{
"kind": "account",
"path": "quote_token_program"
},
{
"kind": "account",
"path": "quote_mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "token_2022_program",
"address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
},
{
"name": "base_token_program"
},
{
"name": "quote_token_program"
},
{
"name": "associated_token_program",
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
95,
95,
101,
118,
101,
110,
116,
95,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "program"
}
],
"args": [
{
"name": "index",
"type": "u16"
},
{
"name": "base_amount_in",
"type": "u64"
},
{
"name": "quote_amount_in",
"type": "u64"
},
{
"name": "coin_creator",
"type": "pubkey"
},
{
"name": "is_mayhem_mode",
"type": "bool"
},
{
"name": "is_cashback_coin",
"type": {
"defined": {
"name": "OptionBool"
}
}
},
{
"name": "creator_fee_bps",
"type": {
"defined": {
"name": "OptionU64"
}
}
},
{
"name": "can_edit_creator_fee",
"type": {
"defined": {
"name": "OptionBool"
}
}
},
{
"name": "is_holder_reward",
"type": {
"defined": {
"name": "OptionBool"
}
}
}
]
},
{
"name": "deposit",
"discriminator": [
242,
35,
198,
137,
82,
225,
242,
182
],
"accounts": [
{
"name": "pool",
"writable": true
},
{
"name": "global_config"
},
{
"name": "user",
"signer": true
},
{
"name": "base_mint",
"relations": [
"pool"
]
},
{
"name": "quote_mint",
"relations": [
"pool"
]
},
{
"name": "lp_mint",
"writable": true,
"relations": [
"pool"
]
},
{
"name": "user_base_token_account",
"writable": true
},
{
"name": "user_quote_token_account",
"writable": true
},
{
"name": "user_pool_token_account",
"writable": true
},
{
"name": "pool_base_token_account",
"writable": true,
"relations": [
"pool"
]
},
{
"name": "pool_quote_token_account",
"writable": true,
"relations": [
"pool"
]
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"name": "token_2022_program",
"address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
95,
95,
101,
118,
101,
110,
116,
95,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "program"
}
],
"args": [
{
"name": "lp_token_amount_out",
"type": "u64"
},
{
"name": "max_base_amount_in",
"type": "u64"
},
{
"name": "max_quote_amount_in",
"type": "u64"
}
]
},
{
"name": "disable",
"discriminator": [
185,
173,
187,
90,
216,
15,
238,
233
],
"accounts": [
{
"name": "admin",
"signer": true,
"relations": [
"global_config"
]
},
{
"name": "global_config",
"writable": true
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
95,
95,
101,
118,
101,
110,
116,
95,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "program"
}
],
"args": [
{
"name": "disable_create_pool",
"type": "bool"
},
{
"name": "disable_deposit",
"type": "bool"
},
{
"name": "disable_withdraw",
"type": "bool"
},
{
"name": "disable_buy",
"type": "bool"
},
{
"name": "disable_sell",
"type": "bool"
}
]
},
{
"name": "extend_account",
"discriminator": [
234,
102,
194,
203,
150,
72,
62,
229
],
"accounts": [
{
"name": "account",
"writable": true
},
{
"name": "user",
"writable": true,
"signer": true
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
95,
95,
101,
118,
101,
110,
116,
95,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "program"
}
],
"args": []
},
{
"name": "init_boost",
"discriminator": [
140,
233,
33,
94,
132,
90,
194,
143
],
"accounts": [
{
"name": "pool",
"writable": true
},
{
"name": "global_config",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
103,
108,
111,
98,
97,
108,
95,
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "creator",
"writable": true,
"signer": true
},
{
"name": "base_mint",
"relations": [
"pool"
]
},
{
"name": "quote_mint",
"relations": [
"pool"
]
},
{
"name": "pool_base_token_account",
"relations": [
"pool"
]
},
{
"name": "pool_quote_token_account",
"writable": true,
"relations": [
"pool"
]
},
{
"name": "boost_vault_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
98,
111,
111,
115,
116,
95,
118,
97,
117,
108,
116
]
},
{
"kind": "account",
"path": "pool"
}
]
}
},
{
"name": "boost_vault",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "boost_vault_authority"
},
{
"kind": "account",
"path": "quote_token_program"
},
{
"kind": "account",
"path": "quote_mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "quote_token_program"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "associated_token_program",
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
95,
95,
101,
118,
101,
110,
116,
95,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "program"
}
],
"args": []
},
{
"name": "init_user_volume_accumulator",
"discriminator": [
94,
6,
202,
115,
255,
96,
232,
183
],
"accounts": [
{
"name": "payer",
"writable": true,
"signer": true
},
{
"name": "user"
},
{
"name": "user_volume_accumulator",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
117,
115,
101,
114,
95,
118,
111,
108,
117,
109,
101,
95,
97,
99,
99,
117,
109,
117,
108,
97,
116,
111,
114
]
},
{
"kind": "account",
"path": "user"
}
]
}
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
95,
95,
101,
118,
101,
110,
116,
95,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "program"
}
],
"args": []
},
{
"name": "migrate_pool_coin_creator",
"docs": [
"Migrate Pool Coin Creator to Sharing Config"
],
"discriminator": [
208,
8,
159,
4,
74,
175,
16,
58
],
"accounts": [
{
"name": "pool",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
112,
111,
111,
108
]
},
{
"kind": "account",
"path": "pool.index",
"account": "Pool"
},
{
"kind": "account",
"path": "pool.creator",
"account": "Pool"
},
{
"kind": "account",
"path": "pool.base_mint",
"account": "Pool"
},
{
"kind": "account",
"path": "pool.quote_mint",
"account": "Pool"
}
]
}
},
{
"name": "sharing_config",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
115,
104,
97,
114,
105,
110,
103,
45,
99,
111,
110,
102,
105,
103
]
},
{
"kind": "account",
"path": "pool.base_mint",
"account": "Pool"
}
],
"program": {
"kind": "const",
"value": [
12,
53,
255,
169,
5,
90,
142,
86,
141,
168,
247,
188,
7,
86,
21,
39,
76,
241,
201,
44,
164,
31,
64,
0,
156,
81,
106,
164,
20,
194,
124,
112
]
}
}
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
95,
95,
101,
118,
101,
110,
116,
95,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "program"
}
],
"args": []
},
{
"name": "sell",
"discriminator": [
51,
230,
133,
164,
1,
127,
131,
173
],
"accounts": [
{
"name": "pool",
"writable": true
},
{
"name": "user",
"writable": true,
"signer": true
},
{
"name": "global_config"
},
{
"name": "base_mint",
"relations": [
"pool"
]
},
{
"name": "quote_mint",
"relations": [
"pool"
]
},
{
"name": "user_base_token_account",
"writable": true
},
{
"name": "user_quote_token_account",
"writable": true
},
{
"name": "pool_base_token_account",
"writable": true,
"relations": [
"pool"
]
},
{
"name": "pool_quote_token_account",
"writable": true,
"relations": [
"pool"
]
},
{
"name": "protocol_fee_recipient"
},
{
"name": "protocol_fee_recipient_token_account",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "protocol_fee_recipient"
},
{
"kind": "account",
"path": "quote_token_program"
},
{
"kind": "account",
"path": "quote_mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "base_token_program"
},
{
"name": "quote_token_program"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "associated_token_program",
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
95,
95,
101,
118,
101,
110,
116,
95,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "program",
"address": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA"
},
{
"name": "coin_creator_vault_ata",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "coin_creator_vault_authority"
},
{
"kind": "account",
"path": "quote_token_program"
},
{
"kind": "account",
"path": "quote_mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "coin_creator_vault_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
114,
101,
97,
116,
111,
114,
95,
118,
97,
117,
108,
116
]
},
{
"kind": "account",
"path": "pool.coin_creator",
"account": "Pool"
}
]
}
},
{
"name": "fee_config",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
102,
101,
101,
95,
99,
111,
110,
102,
105,
103
]
},
{
"kind": "const",
"value": [
12,
20,
222,
252,
130,
94,
198,
118,
148,
37,
8,
24,
187,
101,
64,
101,
244,
41,
141,
49,
86,
213,
113,
180,
212,
248,
9,
12,
24,
233,
168,
99
]
}
],
"program": {
"kind": "account",
"path": "fee_program"
}
}
},
{
"name": "fee_program",
"address": "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ"
}
],
"args": [
{
"name": "base_amount_in",
"type": "u64"
},
{
"name": "min_quote_amount_out",
"type": "u64"
}
]
},
{
"name": "set_boost_authority",
"discriminator": [
227,
149,
76,
42,
130,
39,
234,
205
],
"accounts": [
{
"name": "admin",
"signer": true,
"relations": [
"global_config"
]
},
{
"name": "global_config",
"writable": true
},
{
"name": "boost_authority"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
95,
95,
101,
118,
101,
110,
116,
95,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "program"
}
],
"args": []
},
{
"name": "set_coin_creator",
"docs": [
"Sets Pool::coin_creator from Metaplex metadata creator or BondingCurve::creator"
],
"discriminator": [
210,
149,
128,
45,
188,
58,
78,
175
],
"accounts": [
{
"name": "pool",
"writable": true
},
{
"name": "metadata",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
109,
101,
116,
97,
100,
97,
116,
97
]
},
{
"kind": "const",
"value": [
11,
112,
101,
177,
227,
209,
124,
69,
56,
157,
82,
127,
107,
4,
195,
205,
88,
184,
108,
115,
26,
160,
253,
181,
73,
182,
209,
188,
3,
248,
41,
70
]
},
{
"kind": "account",
"path": "pool.base_mint",
"account": "Pool"
}
],
"program": {
"kind": "const",
"value": [
11,
112,
101,
177,
227,
209,
124,
69,
56,
157,
82,
127,
107,
4,
195,
205,
88,
184,
108,
115,
26,
160,
253,
181,
73,
182,
209,
188,
3,
248,
41,
70
]
}
}
},
{
"name": "bonding_curve",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
98,
111,
110,
100,
105,
110,
103,
45,
99,
117,
114,
118,
101
]
},
{
"kind": "account",
"path": "pool.base_mint",
"account": "Pool"
}
],
"program": {
"kind": "const",
"value": [
1,
86,
224,
246,
147,
102,
90,
207,
68,
219,
21,
104,
191,
23,
91,
170,
81,
137,
203,
151,
245,
210,
255,
59,
101,
93,
43,
182,
253,
109,
24,
176
]
}
}
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
95,
95,
101,
118,
101,
110,
116,
95,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "program"
}
],
"args": []
},
{
"name": "set_reserved_fee_recipients",
"discriminator": [
111,
172,
162,
232,
114,
89,
213,
142
],
"accounts": [
{
"name": "global_config",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
103,
108,
111,
98,
97,
108,
95,
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "admin",
"signer": true,
"relations": [
"global_config"
]
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
95,
95,
101,
118,
101,
110,
116,
95,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "program"
}
],
"args": [
{
"name": "whitelist_pda",
"type": "pubkey"
}
]
},
{
"name": "sync_user_volume_accumulator",
"discriminator": [
86,
31,
192,
87,
163,
87,
79,
238
],
"accounts": [
{
"name": "user"
},
{
"name": "global_volume_accumulator",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
103,
108,
111,
98,
97,
108,
95,
118,
111,
108,
117,
109,
101,
95,
97,
99,
99,
117,
109,
117,
108,
97,
116,
111,
114
]
}
]
}
},
{
"name": "user_volume_accumulator",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
117,
115,
101,
114,
95,
118,
111,
108,
117,
109,
101,
95,
97,
99,
99,
117,
109,
117,
108,
97,
116,
111,
114
]
},
{
"kind": "account",
"path": "user"
}
]
}
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
95,
95,
101,
118,
101,
110,
116,
95,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "program"
}
],
"args": []
},
{
"name": "toggle_boost",
"discriminator": [
117,
161,
160,
74,
223,
137,
118,
99
],
"accounts": [
{
"name": "admin",
"signer": true,
"relations": [
"global_config"
]
},
{
"name": "global_config",
"writable": true
}
],
"args": [
{
"name": "enabled",
"type": "bool"
}
]
},
{
"name": "toggle_cashback_enabled",
"discriminator": [
115,
103,
224,
255,
189,
89,
86,
195
],
"accounts": [
{
"name": "admin",
"signer": true,
"relations": [
"global_config"
]
},
{
"name": "global_config",
"writable": true
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
95,
95,
101,
118,
101,
110,
116,
95,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "program"
}
],
"args": [
{
"name": "enabled",
"type": "bool"
}
]
},
{
"name": "toggle_mayhem_mode",
"discriminator": [
1,
9,
111,
208,
100,
31,
255,
163
],
"accounts": [
{
"name": "admin",
"signer": true,
"relations": [
"global_config"
]
},
{
"name": "global_config",
"writable": true
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
95,
95,
101,
118,
101,
110,
116,
95,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "program"
}
],
"args": [
{
"name": "enabled",
"type": "bool"
}
]
},
{
"name": "transfer_creator_fees_to_pump",
"docs": [
"Transfer creator fees to pump creator vault",
"If coin creator fees are currently below rent.minimum_balance(TokenAccount::LEN)",
"The transfer will be skipped"
],
"discriminator": [
139,
52,
134,
85,
228,
229,
108,
241
],
"accounts": [
{
"name": "wsol_mint",
"docs": [
"Pump Canonical Pool are quoted in wSOL"
]
},
{
"name": "token_program"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "associated_token_program",
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
},
{
"name": "coin_creator"
},
{
"name": "coin_creator_vault_authority",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
114,
101,
97,
116,
111,
114,
95,
118,
97,
117,
108,
116
]
},
{
"kind": "account",
"path": "coin_creator"
}
]
}
},
{
"name": "coin_creator_vault_ata",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "coin_creator_vault_authority"
},
{
"kind": "account",
"path": "token_program"
},
{
"kind": "account",
"path": "wsol_mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "pump_creator_vault",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
114,
101,
97,
116,
111,
114,
45,
118,
97,
117,
108,
116
]
},
{
"kind": "account",
"path": "coin_creator"
}
],
"program": {
"kind": "const",
"value": [
1,
86,
224,
246,
147,
102,
90,
207,
68,
219,
21,
104,
191,
23,
91,
170,
81,
137,
203,
151,
245,
210,
255,
59,
101,
93,
43,
182,
253,
109,
24,
176
]
}
}
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
95,
95,
101,
118,
101,
110,
116,
95,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "program"
}
],
"args": []
},
{
"name": "transfer_creator_fees_to_pump_v2",
"discriminator": [
1,
33,
78,
185,
33,
67,
44,
92
],
"accounts": [
{
"name": "payer",
"writable": true,
"signer": true
},
{
"name": "quote_mint"
},
{
"name": "token_program"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "associated_token_program",
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
},
{
"name": "coin_creator"
},
{
"name": "coin_creator_vault_authority",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
114,
101,
97,
116,
111,
114,
95,
118,
97,
117,
108,
116
]
},
{
"kind": "account",
"path": "coin_creator"
}
]
}
},
{
"name": "coin_creator_vault_ata",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "coin_creator_vault_authority"
},
{
"kind": "account",
"path": "token_program"
},
{
"kind": "account",
"path": "quote_mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "pump_creator_vault",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
114,
101,
97,
116,
111,
114,
45,
118,
97,
117,
108,
116
]
},
{
"kind": "account",
"path": "coin_creator"
}
],
"program": {
"kind": "const",
"value": [
1,
86,
224,
246,
147,
102,
90,
207,
68,
219,
21,
104,
191,
23,
91,
170,
81,
137,
203,
151,
245,
210,
255,
59,
101,
93,
43,
182,
253,
109,
24,
176
]
}
}
},
{
"name": "pump_creator_vault_ata",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "pump_creator_vault"
},
{
"kind": "account",
"path": "token_program"
},
{
"kind": "account",
"path": "quote_mint"
}
],
"program": {
"kind": "account",
"path": "associated_token_program"
}
}
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
95,
95,
101,
118,
101,
110,
116,
95,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "program"
}
],
"args": []
},
{
"name": "update_admin",
"discriminator": [
161,
176,
40,
213,
60,
184,
179,
228
],
"accounts": [
{
"name": "admin",
"signer": true,
"relations": [
"global_config"
]
},
{
"name": "global_config",
"writable": true
},
{
"name": "new_admin"
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
95,
95,
101,
118,
101,
110,
116,
95,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "program"
}
],
"args": []
},
{
"name": "update_buyback_config",
"discriminator": [
251,
224,
171,
146,
160,
26,
113,
233
],
"accounts": [
{
"name": "admin",
"signer": true,
"relations": [
"global_config"
]
},
{
"name": "global_config",
"writable": true
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
95,
95,
101,
118,
101,
110,
116,
95,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "program"
}
],
"args": [
{
"name": "buyback_basis_points",
"type": {
"option": "u64"
}
}
]
},
{
"name": "update_creator_fee_config",
"discriminator": [
61,
175,
160,
249,
66,
66,
136,
175
],
"accounts": [
{
"name": "admin",
"writable": true,
"signer": true,
"relations": [
"global_config"
]
},
{
"name": "global_config",
"writable": true
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
95,
95,
101,
118,
101,
110,
116,
95,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "program"
}
],
"args": [
{
"name": "creator_fee_configurable",
"type": "bool"
},
{
"name": "max_configurable_creator_fee_bps",
"type": "u64"
}
]
},
{
"name": "update_fee_config",
"discriminator": [
104,
184,
103,
242,
88,
151,
107,
20
],
"accounts": [
{
"name": "admin",
"signer": true,
"relations": [
"global_config"
]
},
{
"name": "global_config",
"writable": true
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
95,
95,
101,
118,
101,
110,
116,
95,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "program"
}
],
"args": [
{
"name": "lp_fee_basis_points",
"type": "u64"
},
{
"name": "protocol_fee_basis_points",
"type": "u64"
},
{
"name": "protocol_fee_recipients",
"type": {
"array": [
"pubkey",
8
]
}
},
{
"name": "coin_creator_fee_basis_points",
"type": "u64"
},
{
"name": "admin_set_coin_creator_authority",
"type": "pubkey"
}
]
},
{
"name": "withdraw",
"discriminator": [
183,
18,
70,
156,
148,
109,
161,
34
],
"accounts": [
{
"name": "pool",
"writable": true
},
{
"name": "global_config"
},
{
"name": "user",
"signer": true
},
{
"name": "base_mint",
"relations": [
"pool"
]
},
{
"name": "quote_mint",
"relations": [
"pool"
]
},
{
"name": "lp_mint",
"writable": true,
"relations": [
"pool"
]
},
{
"name": "user_base_token_account",
"writable": true
},
{
"name": "user_quote_token_account",
"writable": true
},
{
"name": "user_pool_token_account",
"writable": true
},
{
"name": "pool_base_token_account",
"writable": true,
"relations": [
"pool"
]
},
{
"name": "pool_quote_token_account",
"writable": true,
"relations": [
"pool"
]
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"name": "token_2022_program",
"address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
95,
95,
101,
118,
101,
110,
116,
95,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "program"
}
],
"args": [
{
"name": "lp_token_amount_in",
"type": "u64"
},
{
"name": "min_base_amount_out",
"type": "u64"
},
{
"name": "min_quote_amount_out",
"type": "u64"
}
]
}
],
"accounts": [
{
"name": "BondingCurve",
"discriminator": [
23,
183,
248,
55,
96,
216,
172,
96
]
},
{
"name": "FeeConfig",
"discriminator": [
143,
52,
146,
187,
219,
123,
76,
155
]
},
{
"name": "GlobalConfig",
"discriminator": [
149,
8,
156,
202,
160,
252,
176,
217
]
},
{
"name": "GlobalVolumeAccumulator",
"discriminator": [
202,
42,
246,
43,
142,
190,
30,
255
]
},
{
"name": "Pool",
"discriminator": [
241,
154,
109,
4,
17,
177,
109,
188
]
},
{
"name": "SharingConfig",
"discriminator": [
216,
74,
9,
0,
56,
140,
93,
75
]
},
{
"name": "UserVolumeAccumulator",
"discriminator": [
86,
255,
112,
14,
102,
53,
154,
250
]
}
],
"events": [
{
"name": "AdminCtoPoolEvent",
"discriminator": [
47,
35,
163,
249,
150,
157,
147,
122
]
},
{
"name": "AdminUpdateTokenIncentivesEvent",
"discriminator": [
147,
250,
108,
120,
247,
29,
67,
222
]
},
{
"name": "BoostBuyAndBurnEvent",
"discriminator": [
63,
69,
28,
22,
48,
92,
194,
185
]
},
{
"name": "BuyEvent",
"discriminator": [
103,
244,
82,
31,
44,
245,
119,
119
]
},
{
"name": "ClaimCashbackEvent",
"discriminator": [
226,
214,
246,
33,
7,
242,
147,
229
]
},
{
"name": "ClaimTokenIncentivesEvent",
"discriminator": [
79,
172,
246,
49,
205,
91,
206,
232
]
},
{
"name": "CloseUserVolumeAccumulatorEvent",
"discriminator": [
146,
159,
189,
172,
146,
88,
56,
244
]
},
{
"name": "CollectCoinCreatorFeeEvent",
"discriminator": [
232,
245,
194,
238,
234,
218,
58,
89
]
},
{
"name": "CreateConfigEvent",
"discriminator": [
107,
52,
89,
129,
55,
226,
81,
22
]
},
{
"name": "CreatePoolEvent",
"discriminator": [
177,
49,
12,
210,
160,
118,
167,
116
]
},
{
"name": "DepositEvent",
"discriminator": [
120,
248,
61,
83,
31,
142,
107,
144
]
},
{
"name": "DisableEvent",
"discriminator": [
107,
253,
193,
76,
228,
202,
27,
104
]
},
{
"name": "ExtendAccountEvent",
"discriminator": [
97,
97,
215,
144,
93,
146,
22,
124
]
},
{
"name": "InitBoostEvent",
"discriminator": [
174,
124,
74,
249,
4,
81,
246,
17
]
},
{
"name": "InitUserVolumeAccumulatorEvent",
"discriminator": [
134,
36,
13,
72,
232,
101,
130,
216
]
},
{
"name": "MigratePoolCoinCreatorEvent",
"discriminator": [
170,
221,
82,
199,
147,
165,
247,
46
]
},
{
"name": "ReservedFeeRecipientsEvent",
"discriminator": [
43,
188,
250,
18,
221,
75,
187,
95
]
},
{
"name": "SellEvent",
"discriminator": [
62,
47,
55,
10,
165,
3,
220,
42
]
},
{
"name": "SetBondingCurveCoinCreatorEvent",
"discriminator": [
242,
231,
235,
102,
65,
99,
189,
211
]
},
{
"name": "SetBoostAuthorityEvent",
"discriminator": [
89,
128,
240,
141,
91,
202,
71,
105
]
},
{
"name": "SetMetaplexCoinCreatorEvent",
"discriminator": [
150,
107,
199,
123,
124,
207,
102,
228
]
},
{
"name": "SyncUserVolumeAccumulatorEvent",
"discriminator": [
197,
122,
167,
124,
116,
81,
91,
255
]
},
{
"name": "UpdateAdminEvent",
"discriminator": [
225,
152,
171,
87,
246,
63,
66,
234
]
},
{
"name": "UpdateCreatorFeeConfigEvent",
"discriminator": [
152,
198,
124,
124,
106,
246,
127,
191
]
},
{
"name": "UpdateFeeConfigEvent",
"discriminator": [
90,
23,
65,
35,
62,
244,
188,
208
]
},
{
"name": "WithdrawEvent",
"discriminator": [
22,
9,
133,
26,
160,
44,
71,
192
]
}
],
"errors": [
{
"code": 6000,
"name": "FeeBasisPointsExceedsMaximum"
},
{
"code": 6001,
"name": "ZeroBaseAmount"
},
{
"code": 6002,
"name": "ZeroQuoteAmount"
},
{
"code": 6003,
"name": "TooLittlePoolTokenLiquidity"
},
{
"code": 6004,
"name": "ExceededSlippage"
},
{
"code": 6005,
"name": "InvalidAdmin"
},
{
"code": 6006,
"name": "UnsupportedBaseMint"
},
{
"code": 6007,
"name": "UnsupportedQuoteMint"
},
{
"code": 6008,
"name": "InvalidBaseMint"
},
{
"code": 6009,
"name": "InvalidQuoteMint"
},
{
"code": 6010,
"name": "InvalidLpMint"
},
{
"code": 6011,
"name": "AllProtocolFeeRecipientsShouldBeNonZero"
},
{
"code": 6012,
"name": "UnsortedNotUniqueProtocolFeeRecipients"
},
{
"code": 6013,
"name": "InvalidProtocolFeeRecipient"
},
{
"code": 6014,
"name": "InvalidPoolBaseTokenAccount"
},
{
"code": 6015,
"name": "InvalidPoolQuoteTokenAccount"
},
{
"code": 6016,
"name": "BuyMoreBaseAmountThanPoolReserves"
},
{
"code": 6017,
"name": "DisabledCreatePool"
},
{
"code": 6018,
"name": "DisabledDeposit"
},
{
"code": 6019,
"name": "DisabledWithdraw"
},
{
"code": 6020,
"name": "DisabledBuy"
},
{
"code": 6021,
"name": "DisabledSell"
},
{
"code": 6022,
"name": "SameMint"
},
{
"code": 6023,
"name": "Overflow"
},
{
"code": 6024,
"name": "Truncation"
},
{
"code": 6025,
"name": "DivisionByZero"
},
{
"code": 6026,
"name": "NewSizeLessThanCurrentSize"
},
{
"code": 6027,
"name": "AccountTypeNotSupported"
},
{
"code": 6028,
"name": "OnlyCanonicalPumpPoolsCanHaveCoinCreator"
},
{
"code": 6029,
"name": "InvalidAdminSetCoinCreatorAuthority"
},
{
"code": 6030,
"name": "StartTimeInThePast"
},
{
"code": 6031,
"name": "EndTimeInThePast"
},
{
"code": 6032,
"name": "EndTimeBeforeStartTime"
},
{
"code": 6033,
"name": "TimeRangeTooLarge"
},
{
"code": 6034,
"name": "EndTimeBeforeCurrentDay"
},
{
"code": 6035,
"name": "SupplyUpdateForFinishedRange"
},
{
"code": 6036,
"name": "DayIndexAfterEndIndex"
},
{
"code": 6037,
"name": "DayInActiveRange"
},
{
"code": 6038,
"name": "InvalidIncentiveMint"
},
{
"code": 6039,
"name": "BuyNotEnoughQuoteTokensToCoverFees",
"msg": "buy: Not enough quote tokens to cover for fees."
},
{
"code": 6040,
"name": "BuySlippageBelowMinBaseAmountOut",
"msg": "buy: slippage - would buy less tokens than expected min_base_amount_out"
},
{
"code": 6041,
"name": "MayhemModeDisabled"
},
{
"code": 6042,
"name": "OnlyPumpPoolsMayhemMode"
},
{
"code": 6043,
"name": "MayhemModeInDesiredState"
},
{
"code": 6044,
"name": "NotEnoughRemainingAccounts"
},
{
"code": 6045,
"name": "InvalidSharingConfigBaseMint"
},
{
"code": 6046,
"name": "InvalidSharingConfigCoinCreator"
},
{
"code": 6047,
"name": "CoinCreatorMigratedToSharingConfig",
"msg": "coin creator has been migrated to sharing config"
},
{
"code": 6048,
"name": "CreatorVaultMigratedToSharingConfig",
"msg": "creator_vault has been migrated to sharing config, use pump:distribute_creator_fees instead"
},
{
"code": 6049,
"name": "CashbackNotEnabled",
"msg": "Cashback is disabled"
},
{
"code": 6050,
"name": "OnlyPumpPoolsCashback"
},
{
"code": 6051,
"name": "CashbackNotInDesiredState"
},
{
"code": 6052,
"name": "TokensInVaultLessThanCashbackEarned"
},
{
"code": 6053,
"name": "BuybackFeeRecipientNotAuthorized",
"msg": "Buyback fee recipient not authorized"
},
{
"code": 6054,
"name": "AllBuybackFeeRecipientsShouldBeNonZero"
},
{
"code": 6055,
"name": "NotUniqueBuybackFeeRecipients"
},
{
"code": 6056,
"name": "BuybackBasisPointsOutOfRange",
"msg": "buyback_basis_points must be <= 10_000"
},
{
"code": 6057,
"name": "WrongBuybackFeeRecipientsCount",
"msg": "buyback fee recipients require exactly 8 remaining accounts (or none)"
},
{
"code": 6058,
"name": "BuybackFeeRecipientMissing"
},
{
"code": 6059,
"name": "MissingCashbackAccounts",
"msg": "Cashback trade is missing the required remaining accounts"
},
{
"code": 6060,
"name": "InvalidCashbackAccumulator",
"msg": "Cashback user_volume_accumulator account is invalid"
},
{
"code": 6061,
"name": "InvalidCashbackAccumulatorAta",
"msg": "Cashback user_volume_accumulator ATA is missing or invalid"
},
{
"code": 6062,
"name": "InvalidPoolV2",
"msg": "pool_v2 remaining account is missing or invalid"
},
{
"code": 6063,
"name": "InsufficientRealQuoteReserves",
"msg": "BOOST: sell output exceeds the real quote vault. effective = real + virtual is pricing-only; payout is capped at real_vault, so quote min(out, real_vault)"
},
{
"code": 6064,
"name": "BoostPoolLiquidityUnsupported",
"msg": "BOOST: deposit/withdraw don't apply to boost pools"
},
{
"code": 6065,
"name": "PoolCannotBoost",
"msg": "BOOST: pool cannot be boosted (no virtual reserves)"
},
{
"code": 6066,
"name": "BoostDisabled",
"msg": "BOOST: boost is disabled"
},
{
"code": 6067,
"name": "SeedLockViolation",
"msg": "BOOST: lp_supply must never drop below the circulating LP mint supply"
},
{
"code": 6068,
"name": "CreatorFeeNotConfigurable",
"msg": "Configurable creator fee is disabled"
},
{
"code": 6069,
"name": "CreatorFeeBpsOutOfRange",
"msg": "Creator fee basis points must be between 1 and the configured maximum"
},
{
"code": 6070,
"name": "CreatorFeeNotEditable",
"msg": "Creator fee is not editable for this pool"
},
{
"code": 6071,
"name": "CreatorFeeNotAllowedForCashbackCoin",
"msg": "Cashback coins cannot have a creator fee"
},
{
"code": 6072,
"name": "SharingConfigNotActive",
"msg": "Sharing config is not active"
},
{
"code": 6073,
"name": "NotAuthorized",
"msg": "Not authorized"
},
{
"code": 6074,
"name": "HolderRewardCreatorImmutable",
"msg": "The coin creator of a holder-reward pool cannot be changed"
},
{
"code": 6075,
"name": "CtoNotAllowedForMayhemPool",
"msg": "CTO is not allowed on a mayhem-mode pool"
},
{
"code": 6076,
"name": "InvalidHolderRewardCoinCreator",
"msg": "A holder-reward pool's coin creator must be the holder-rewards PDA"
},
{
"code": 6077,
"name": "CreatorFeeNotConfigurableForQuote",
"msg": "Creator fee is not configurable on a SOL or USDC quote; the fee schedule applies"
}
],
"types": [
{
"name": "AdminCtoPoolEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "timestamp",
"type": "i64"
},
{
"name": "base_mint",
"type": "pubkey"
},
{
"name": "pool",
"type": "pubkey"
},
{
"name": "old_coin_creator",
"type": "pubkey"
},
{
"name": "new_coin_creator",
"type": "pubkey"
},
{
"name": "is_holder_reward",
"type": "bool"
},
{
"name": "is_cashback_coin",
"type": "bool"
},
{
"name": "old_creator_fee_bps",
"type": "u64"
},
{
"name": "new_creator_fee_bps",
"type": "u64"
}
]
}
},
{
"name": "AdminUpdateTokenIncentivesEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "start_time",
"type": "i64"
},
{
"name": "end_time",
"type": "i64"
},
{
"name": "day_number",
"type": "u64"
},
{
"name": "token_supply_per_day",
"type": "u64"
},
{
"name": "mint",
"type": "pubkey"
},
{
"name": "seconds_in_a_day",
"type": "i64"
},
{
"name": "timestamp",
"type": "i64"
}
]
}
},
{
"name": "BondingCurve",
"type": {
"kind": "struct",
"fields": [
{
"name": "virtual_token_reserves",
"type": "u64"
},
{
"name": "virtual_sol_reserves",
"type": "u64"
},
{
"name": "real_token_reserves",
"type": "u64"
},
{
"name": "real_sol_reserves",
"type": "u64"
},
{
"name": "token_total_supply",
"type": "u64"
},
{
"name": "complete",
"type": "bool"
},
{
"name": "creator",
"type": "pubkey"
},
{
"name": "is_mayhem_mode",
"type": "bool"
},
{
"name": "is_cashback_coin",
"type": "bool"
}
]
}
},
{
"name": "BoostBuyAndBurnEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "timestamp",
"type": "i64"
},
{
"name": "mint",
"type": "pubkey"
},
{
"name": "bonding_curve",
"type": "pubkey"
},
{
"name": "pool",
"type": "pubkey"
},
{
"name": "authority",
"type": "pubkey"
},
{
"name": "quote_amount_in_requested",
"type": "u64"
},
{
"name": "quote_amount_in_used",
"type": "u64"
},
{
"name": "base_amount_burned",
"type": "u64"
},
{
"name": "virtual_quote_reserves",
"type": "i128"
},
{
"name": "real_quote_reserves_after",
"type": "u64"
},
{
"name": "base_reserves_after",
"type": "u64"
},
{
"name": "boost_vault_remaining",
"type": "u64"
}
]
}
},
{
"name": "BuyEvent",
"docs": [
"ix_name: \"buy\" | \"buy_exact_quote_in\""
],
"type": {
"kind": "struct",
"fields": [
{
"name": "timestamp",
"type": "i64"
},
{
"name": "base_amount_out",
"type": "u64"
},
{
"name": "max_quote_amount_in",
"type": "u64"
},
{
"name": "user_base_token_reserves",
"type": "u64"
},
{
"name": "user_quote_token_reserves",
"type": "u64"
},
{
"name": "pool_base_token_reserves",
"type": "u64"
},
{
"name": "pool_quote_token_reserves",
"type": "u64"
},
{
"name": "quote_amount_in",
"type": "u64"
},
{
"name": "lp_fee_basis_points",
"type": "u64"
},
{
"name": "lp_fee",
"type": "u64"
},
{
"name": "protocol_fee_basis_points",
"type": "u64"
},
{
"name": "protocol_fee",
"type": "u64"
},
{
"name": "quote_amount_in_with_lp_fee",
"type": "u64"
},
{
"name": "user_quote_amount_in",
"type": "u64"
},
{
"name": "pool",
"type": "pubkey"
},
{
"name": "user",
"type": "pubkey"
},
{
"name": "user_base_token_account",
"type": "pubkey"
},
{
"name": "user_quote_token_account",
"type": "pubkey"
},
{
"name": "protocol_fee_recipient",
"type": "pubkey"
},
{
"name": "protocol_fee_recipient_token_account",
"type": "pubkey"
},
{
"name": "coin_creator",
"type": "pubkey"
},
{
"name": "coin_creator_fee_basis_points",
"type": "u64"
},
{
"name": "coin_creator_fee",
"type": "u64"
},
{
"name": "track_volume",
"type": "bool"
},
{
"name": "total_unclaimed_tokens",
"type": "u64"
},
{
"name": "total_claimed_tokens",
"type": "u64"
},
{
"name": "current_sol_volume",
"type": "u64"
},
{
"name": "last_update_timestamp",
"type": "i64"
},
{
"name": "min_base_amount_out",
"type": "u64"
},
{
"name": "ix_name",
"type": "string"
},
{
"name": "cashback_fee_basis_points",
"type": "u64"
},
{
"name": "cashback",
"type": "u64"
},
{
"name": "buyback_fee_basis_points",
"type": "u64"
},
{
"name": "buyback_fee",
"type": "u64"
},
{
"name": "virtual_quote_reserves",
"type": "i128"
},
{
"name": "can_boost",
"type": "bool"
},
{
"name": "base_supply",
"type": "u64"
},
{
"name": "holder_rewards_bps",
"type": "u64"
},
{
"name": "holder_rewards",
"type": "u64"
}
]
}
},
{
"name": "ClaimCashbackEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "user",
"type": "pubkey"
},
{
"name": "amount",
"type": "u64"
},
{
"name": "timestamp",
"type": "i64"
},
{
"name": "total_claimed",
"type": "u64"
},
{
"name": "total_cashback_earned",
"type": "u64"
}
]
}
},
{
"name": "ClaimTokenIncentivesEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "user",
"type": "pubkey"
},
{
"name": "mint",
"type": "pubkey"
},
{
"name": "amount",
"type": "u64"
},
{
"name": "timestamp",
"type": "i64"
},
{
"name": "total_claimed_tokens",
"type": "u64"
},
{
"name": "current_sol_volume",
"type": "u64"
}
]
}
},
{
"name": "CloseUserVolumeAccumulatorEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "user",
"type": "pubkey"
},
{
"name": "timestamp",
"type": "i64"
},
{
"name": "total_unclaimed_tokens",
"type": "u64"
},
{
"name": "total_claimed_tokens",
"type": "u64"
},
{
"name": "current_sol_volume",
"type": "u64"
},
{
"name": "last_update_timestamp",
"type": "i64"
}
]
}
},
{
"name": "CollectCoinCreatorFeeEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "timestamp",
"type": "i64"
},
{
"name": "coin_creator",
"type": "pubkey"
},
{
"name": "coin_creator_fee",
"type": "u64"
},
{
"name": "coin_creator_vault_ata",
"type": "pubkey"
},
{
"name": "coin_creator_token_account",
"type": "pubkey"
}
]
}
},
{
"name": "ConfigStatus",
"type": {
"kind": "enum",
"variants": [
{
"name": "Paused"
},
{
"name": "Active"
}
]
}
},
{
"name": "CreateConfigEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "timestamp",
"type": "i64"
},
{
"name": "admin",
"type": "pubkey"
},
{
"name": "lp_fee_basis_points",
"type": "u64"
},
{
"name": "protocol_fee_basis_points",
"type": "u64"
},
{
"name": "protocol_fee_recipients",
"type": {
"array": [
"pubkey",
8
]
}
},
{
"name": "coin_creator_fee_basis_points",
"type": "u64"
},
{
"name": "admin_set_coin_creator_authority",
"type": "pubkey"
}
]
}
},
{
"name": "CreatePoolEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "timestamp",
"type": "i64"
},
{
"name": "index",
"type": "u16"
},
{
"name": "creator",
"type": "pubkey"
},
{
"name": "base_mint",
"type": "pubkey"
},
{
"name": "quote_mint",
"type": "pubkey"
},
{
"name": "base_mint_decimals",
"type": "u8"
},
{
"name": "quote_mint_decimals",
"type": "u8"
},
{
"name": "base_amount_in",
"type": "u64"
},
{
"name": "quote_amount_in",
"type": "u64"
},
{
"name": "pool_base_amount",
"type": "u64"
},
{
"name": "pool_quote_amount",
"type": "u64"
},
{
"name": "minimum_liquidity",
"type": "u64"
},
{
"name": "initial_liquidity",
"type": "u64"
},
{
"name": "lp_token_amount_out",
"type": "u64"
},
{
"name": "pool_bump",
"type": "u8"
},
{
"name": "pool",
"type": "pubkey"
},
{
"name": "lp_mint",
"type": "pubkey"
},
{
"name": "user_base_token_account",
"type": "pubkey"
},
{
"name": "user_quote_token_account",
"type": "pubkey"
},
{
"name": "coin_creator",
"type": "pubkey"
},
{
"name": "is_mayhem_mode",
"type": "bool"
},
{
"name": "creator_fee_bps",
"type": "u64"
},
{
"name": "can_edit_creator_fee",
"type": "bool"
},
{
"name": "is_holder_reward",
"type": "bool"
}
]
}
},
{
"name": "DepositEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "timestamp",
"type": "i64"
},
{
"name": "lp_token_amount_out",
"type": "u64"
},
{
"name": "max_base_amount_in",
"type": "u64"
},
{
"name": "max_quote_amount_in",
"type": "u64"
},
{
"name": "user_base_token_reserves",
"type": "u64"
},
{
"name": "user_quote_token_reserves",
"type": "u64"
},
{
"name": "pool_base_token_reserves",
"type": "u64"
},
{
"name": "pool_quote_token_reserves",
"type": "u64"
},
{
"name": "base_amount_in",
"type": "u64"
},
{
"name": "quote_amount_in",
"type": "u64"
},
{
"name": "lp_mint_supply",
"type": "u64"
},
{
"name": "pool",
"type": "pubkey"
},
{
"name": "user",
"type": "pubkey"
},
{
"name": "user_base_token_account",
"type": "pubkey"
},
{
"name": "user_quote_token_account",
"type": "pubkey"
},
{
"name": "user_pool_token_account",
"type": "pubkey"
}
]
}
},
{
"name": "DisableEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "timestamp",
"type": "i64"
},
{
"name": "admin",
"type": "pubkey"
},
{
"name": "disable_create_pool",
"type": "bool"
},
{
"name": "disable_deposit",
"type": "bool"
},
{
"name": "disable_withdraw",
"type": "bool"
},
{
"name": "disable_buy",
"type": "bool"
},
{
"name": "disable_sell",
"type": "bool"
}
]
}
},
{
"name": "ExtendAccountEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "timestamp",
"type": "i64"
},
{
"name": "account",
"type": "pubkey"
},
{
"name": "user",
"type": "pubkey"
},
{
"name": "current_size",
"type": "u64"
},
{
"name": "new_size",
"type": "u64"
}
]
}
},
{
"name": "FeeConfig",
"type": {
"kind": "struct",
"fields": [
{
"name": "bump",
"type": "u8"
},
{
"name": "admin",
"type": "pubkey"
},
{
"name": "flat_fees",
"type": {
"defined": {
"name": "Fees"
}
}
},
{
"name": "fee_tiers",
"type": {
"vec": {
"defined": {
"name": "FeeTier"
}
}
}
},
{
"name": "stable_fee_tiers",
"type": {
"vec": {
"defined": {
"name": "FeeTier"
}
}
}
},
{
"name": "exotic_flat_fees",
"type": {
"defined": {
"name": "Fees"
}
}
}
]
}
},
{
"name": "FeeTier",
"type": {
"kind": "struct",
"fields": [
{
"name": "market_cap_lamports_threshold",
"type": "u128"
},
{
"name": "fees",
"type": {
"defined": {
"name": "Fees"
}
}
}
]
}
},
{
"name": "Fees",
"type": {
"kind": "struct",
"fields": [
{
"name": "lp_fee_bps",
"type": "u64"
},
{
"name": "protocol_fee_bps",
"type": "u64"
},
{
"name": "creator_fee_bps",
"type": "u64"
}
]
}
},
{
"name": "GlobalConfig",
"type": {
"kind": "struct",
"fields": [
{
"name": "admin",
"docs": [
"The admin pubkey"
],
"type": "pubkey"
},
{
"name": "lp_fee_basis_points",
"type": "u64"
},
{
"name": "protocol_fee_basis_points",
"type": "u64"
},
{
"name": "disable_flags",
"docs": [
"Flags to disable certain functionality",
"bit 0 - Disable create pool",
"bit 1 - Disable deposit",
"bit 2 - Disable withdraw",
"bit 3 - Disable buy",
"bit 4 - Disable sell"
],
"type": "u8"
},
{
"name": "protocol_fee_recipients",
"docs": [
"Addresses of the protocol fee recipients"
],
"type": {
"array": [
"pubkey",
8
]
}
},
{
"name": "coin_creator_fee_basis_points",
"type": "u64"
},
{
"name": "admin_set_coin_creator_authority",
"docs": [
"The admin authority for setting coin creators"
],
"type": "pubkey"
},
{
"name": "whitelist_pda",
"type": "pubkey"
},
{
"name": "reserved_fee_recipient",
"type": "pubkey"
},
{
"name": "mayhem_mode_enabled",
"type": "bool"
},
{
"name": "reserved_fee_recipients",
"type": {
"array": [
"pubkey",
7
]
}
},
{
"name": "is_cashback_enabled",
"type": "bool"
},
{
"name": "buyback_fee_recipients",
"type": {
"array": [
"pubkey",
8
]
}
},
{
"name": "buyback_basis_points",
"type": "u64"
},
{
"name": "boost_authority",
"type": "pubkey"
},
{
"name": "boost_enabled",
"type": "bool"
},
{
"name": "creator_fee_configurable",
"type": "bool"
},
{
"name": "max_configurable_creator_fee_bps",
"type": "u64"
}
]
}
},
{
"name": "GlobalVolumeAccumulator",
"type": {
"kind": "struct",
"fields": [
{
"name": "start_time",
"type": "i64"
},
{
"name": "end_time",
"type": "i64"
},
{
"name": "seconds_in_a_day",
"type": "i64"
},
{
"name": "mint",
"type": "pubkey"
},
{
"name": "total_token_supply",
"type": {
"array": [
"u64",
30
]
}
},
{
"name": "sol_volumes",
"type": {
"array": [
"u64",
30
]
}
}
]
}
},
{
"name": "InitBoostEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "timestamp",
"type": "i64"
},
{
"name": "mint",
"type": "pubkey"
},
{
"name": "bonding_curve",
"type": "pubkey"
},
{
"name": "pool",
"type": "pubkey"
},
{
"name": "virtual_quote_reserves",
"type": "i128"
},
{
"name": "real_quote_reserves_after",
"type": "u64"
}
]
}
},
{
"name": "InitUserVolumeAccumulatorEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "payer",
"type": "pubkey"
},
{
"name": "user",
"type": "pubkey"
},
{
"name": "timestamp",
"type": "i64"
}
]
}
},
{
"name": "MigratePoolCoinCreatorEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "timestamp",
"type": "i64"
},
{
"name": "base_mint",
"type": "pubkey"
},
{
"name": "pool",
"type": "pubkey"
},
{
"name": "sharing_config",
"type": "pubkey"
},
{
"name": "old_coin_creator",
"type": "pubkey"
},
{
"name": "new_coin_creator",
"type": "pubkey"
}
]
}
},
{
"name": "OptionBool",
"type": {
"kind": "struct",
"fields": [
"bool"
]
}
},
{
"name": "OptionU64",
"type": {
"kind": "struct",
"fields": [
"u64"
]
}
},
{
"name": "Pool",
"type": {
"kind": "struct",
"fields": [
{
"name": "pool_bump",
"type": "u8"
},
{
"name": "index",
"type": "u16"
},
{
"name": "creator",
"type": "pubkey"
},
{
"name": "base_mint",
"type": "pubkey"
},
{
"name": "quote_mint",
"type": "pubkey"
},
{
"name": "lp_mint",
"type": "pubkey"
},
{
"name": "pool_base_token_account",
"type": "pubkey"
},
{
"name": "pool_quote_token_account",
"type": "pubkey"
},
{
"name": "lp_supply",
"docs": [
"True circulating supply without burns and lock-ups"
],
"type": "u64"
},
{
"name": "coin_creator",
"type": "pubkey"
},
{
"name": "is_mayhem_mode",
"type": "bool"
},
{
"name": "is_cashback_coin",
"type": "bool"
},
{
"name": "virtual_quote_reserves",
"docs": [
"For non-boost pools, value is 0, so the behavior is identical to legacy pools."
],
"type": "i128"
},
{
"name": "creator_fee_bps",
"type": "u64"
},
{
"name": "can_edit_creator_fee",
"type": "bool"
},
{
"name": "is_holder_reward",
"type": "bool"
}
]
}
},
{
"name": "ReservedFeeRecipientsEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "timestamp",
"type": "i64"
},
{
"name": "reserved_fee_recipient",
"type": "pubkey"
},
{
"name": "reserved_fee_recipients",
"type": {
"array": [
"pubkey",
7
]
}
}
]
}
},
{
"name": "SellEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "timestamp",
"type": "i64"
},
{
"name": "base_amount_in",
"type": "u64"
},
{
"name": "min_quote_amount_out",
"type": "u64"
},
{
"name": "user_base_token_reserves",
"type": "u64"
},
{
"name": "user_quote_token_reserves",
"type": "u64"
},
{
"name": "pool_base_token_reserves",
"type": "u64"
},
{
"name": "pool_quote_token_reserves",
"type": "u64"
},
{
"name": "quote_amount_out",
"type": "u64"
},
{
"name": "lp_fee_basis_points",
"type": "u64"
},
{
"name": "lp_fee",
"type": "u64"
},
{
"name": "protocol_fee_basis_points",
"type": "u64"
},
{
"name": "protocol_fee",
"type": "u64"
},
{
"name": "quote_amount_out_without_lp_fee",
"type": "u64"
},
{
"name": "user_quote_amount_out",
"type": "u64"
},
{
"name": "pool",
"type": "pubkey"
},
{
"name": "user",
"type": "pubkey"
},
{
"name": "user_base_token_account",
"type": "pubkey"
},
{
"name": "user_quote_token_account",
"type": "pubkey"
},
{
"name": "protocol_fee_recipient",
"type": "pubkey"
},
{
"name": "protocol_fee_recipient_token_account",
"type": "pubkey"
},
{
"name": "coin_creator",
"type": "pubkey"
},
{
"name": "coin_creator_fee_basis_points",
"type": "u64"
},
{
"name": "coin_creator_fee",
"type": "u64"
},
{
"name": "cashback_fee_basis_points",
"type": "u64"
},
{
"name": "cashback",
"type": "u64"
},
{
"name": "buyback_fee_basis_points",
"type": "u64"
},
{
"name": "buyback_fee",
"type": "u64"
},
{
"name": "virtual_quote_reserves",
"type": "i128"
},
{
"name": "can_boost",
"type": "bool"
},
{
"name": "base_supply",
"type": "u64"
},
{
"name": "holder_rewards_bps",
"type": "u64"
},
{
"name": "holder_rewards",
"type": "u64"
}
]
}
},
{
"name": "SetBondingCurveCoinCreatorEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "timestamp",
"type": "i64"
},
{
"name": "base_mint",
"type": "pubkey"
},
{
"name": "pool",
"type": "pubkey"
},
{
"name": "bonding_curve",
"type": "pubkey"
},
{
"name": "coin_creator",
"type": "pubkey"
}
]
}
},
{
"name": "SetBoostAuthorityEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "timestamp",
"type": "i64"
},
{
"name": "admin",
"type": "pubkey"
},
{
"name": "old_boost_authority",
"type": "pubkey"
},
{
"name": "new_boost_authority",
"type": "pubkey"
}
]
}
},
{
"name": "SetMetaplexCoinCreatorEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "timestamp",
"type": "i64"
},
{
"name": "base_mint",
"type": "pubkey"
},
{
"name": "pool",
"type": "pubkey"
},
{
"name": "metadata",
"type": "pubkey"
},
{
"name": "coin_creator",
"type": "pubkey"
}
]
}
},
{
"name": "Shareholder",
"type": {
"kind": "struct",
"fields": [
{
"name": "address",
"type": "pubkey"
},
{
"name": "share_bps",
"type": "u16"
}
]
}
},
{
"name": "SharingConfig",
"type": {
"kind": "struct",
"fields": [
{
"name": "bump",
"type": "u8"
},
{
"name": "version",
"type": "u8"
},
{
"name": "status",
"type": {
"defined": {
"name": "ConfigStatus"
}
}
},
{
"name": "mint",
"type": "pubkey"
},
{
"name": "admin",
"type": "pubkey"
},
{
"name": "admin_revoked",
"type": "bool"
},
{
"name": "shareholders",
"type": {
"vec": {
"defined": {
"name": "Shareholder"
}
}
}
}
]
}
},
{
"name": "SyncUserVolumeAccumulatorEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "user",
"type": "pubkey"
},
{
"name": "total_claimed_tokens_before",
"type": "u64"
},
{
"name": "total_claimed_tokens_after",
"type": "u64"
},
{
"name": "timestamp",
"type": "i64"
}
]
}
},
{
"name": "UpdateAdminEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "timestamp",
"type": "i64"
},
{
"name": "admin",
"type": "pubkey"
},
{
"name": "new_admin",
"type": "pubkey"
}
]
}
},
{
"name": "UpdateCreatorFeeConfigEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "timestamp",
"type": "i64"
},
{
"name": "admin",
"type": "pubkey"
},
{
"name": "creator_fee_configurable",
"type": "bool"
},
{
"name": "max_configurable_creator_fee_bps",
"type": "u64"
}
]
}
},
{
"name": "UpdateFeeConfigEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "timestamp",
"type": "i64"
},
{
"name": "admin",
"type": "pubkey"
},
{
"name": "lp_fee_basis_points",
"type": "u64"
},
{
"name": "protocol_fee_basis_points",
"type": "u64"
},
{
"name": "protocol_fee_recipients",
"type": {
"array": [
"pubkey",
8
]
}
},
{
"name": "coin_creator_fee_basis_points",
"type": "u64"
},
{
"name": "admin_set_coin_creator_authority",
"type": "pubkey"
}
]
}
},
{
"name": "UserVolumeAccumulator",
"type": {
"kind": "struct",
"fields": [
{
"name": "user",
"type": "pubkey"
},
{
"name": "needs_claim",
"type": "bool"
},
{
"name": "total_unclaimed_tokens",
"type": "u64"
},
{
"name": "total_claimed_tokens",
"type": "u64"
},
{
"name": "current_sol_volume",
"type": "u64"
},
{
"name": "last_update_timestamp",
"type": "i64"
},
{
"name": "has_total_claimed_tokens",
"type": "bool"
},
{
"name": "cashback_earned",
"type": "u64"
},
{
"name": "total_cashback_claimed",
"type": "u64"
}
]
}
},
{
"name": "WithdrawEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "timestamp",
"type": "i64"
},
{
"name": "lp_token_amount_in",
"type": "u64"
},
{
"name": "min_base_amount_out",
"type": "u64"
},
{
"name": "min_quote_amount_out",
"type": "u64"
},
{
"name": "user_base_token_reserves",
"type": "u64"
},
{
"name": "user_quote_token_reserves",
"type": "u64"
},
{
"name": "pool_base_token_reserves",
"type": "u64"
},
{
"name": "pool_quote_token_reserves",
"type": "u64"
},
{
"name": "base_amount_out",
"type": "u64"
},
{
"name": "quote_amount_out",
"type": "u64"
},
{
"name": "lp_mint_supply",
"type": "u64"
},
{
"name": "pool",
"type": "pubkey"
},
{
"name": "user",
"type": "pubkey"
},
{
"name": "user_base_token_account",
"type": "pubkey"
},
{
"name": "user_quote_token_account",
"type": "pubkey"
},
{
"name": "user_pool_token_account",
"type": "pubkey"
}
]
}
}
]
}