Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
6c17e4a
feat: mayhem update in idl
smypmsa Nov 14, 2025
36603f6
feat(examples): update bonding curve scripts
smypmsa Nov 14, 2025
b45ae11
feat(example): update listen_blocksubscribe
smypmsa Nov 14, 2025
26de4e5
feat(examples): update geyser listener
smypmsa Nov 14, 2025
d23f415
feat(examples): update all new token listeners
smypmsa Nov 15, 2025
01a84de
feat(examples): add comments, fix printing, formatting
smypmsa Nov 15, 2025
5f7daaa
feat(examples): pumpswap buy and sell update with mayhem mode
smypmsa Nov 15, 2025
aa02a6d
fix(examples): sell pump amm fee recipient
smypmsa Nov 15, 2025
e6c3461
feat(examples): update decode scripts
smypmsa Nov 17, 2025
02f69a3
feat(examples): update fetch price
smypmsa Nov 17, 2025
afd2484
feat(examples): buy and sell bonding curve scripts
smypmsa Nov 17, 2025
2fefee8
feat(examples): add mint with mayhem mode enabled
smypmsa Nov 17, 2025
ade0e91
feat(examples): improve listening to wallet txs
smypmsa Nov 17, 2025
cc0e29c
feat(examples): migration listener improvements
smypmsa Nov 17, 2025
4e65191
feat(examples): global vol accumulator is not writable
smypmsa Nov 17, 2025
24664cd
feat(examples): support token/token2022 programs in buy instructions
smypmsa Nov 17, 2025
2c2dc1d
feat(examples): token/token2022 for pumpswap buy
smypmsa Nov 17, 2025
9321db1
feat(examples): token/token2022 supprot for sell instructions
smypmsa Nov 17, 2025
8112b9a
feat(bot): support create_v2 with token2022, mayhem mode, other fixes
smypmsa Nov 17, 2025
677f032
fix(bot): support only token2022 in logs and pumportal listeners
smypmsa Nov 18, 2025
b4840db
feat(bot): token2022 support in cleanup flow
smypmsa Nov 18, 2025
97fd3f7
fix(bot): update token program handling and improve price validation …
smypmsa Nov 18, 2025
5765700
feat(bot): enhance token program handling for LetsBonk integration
smypmsa Nov 18, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,525 changes: 1,600 additions & 925 deletions idl/pump_fun_idl.json

Large diffs are not rendered by default.

243 changes: 241 additions & 2 deletions idl/pump_swap_idl.json
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,6 @@
},
{
"name": "global_volume_accumulator",
"writable": true,
"pda": {
"seeds": [
{
Expand Down Expand Up @@ -972,7 +971,6 @@
},
{
"name": "global_volume_accumulator",
"writable": true,
"pda": {
"seeds": [
{
Expand Down Expand Up @@ -2085,6 +2083,10 @@
{
"name": "coin_creator",
"type": "pubkey"
},
{
"name": "is_mayhem_mode",
"type": "bool"
}
]
},
Expand Down Expand Up @@ -3006,6 +3008,92 @@
],
"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": [
Expand Down Expand Up @@ -3134,6 +3222,70 @@
],
"args": []
},
{
"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": "update_admin",
"discriminator": [
Expand Down Expand Up @@ -3644,6 +3796,19 @@
216
]
},
{
"name": "ReservedFeeRecipientsEvent",
"discriminator": [
43,
188,
250,
18,
221,
75,
187,
95
]
},
{
"name": "SellEvent",
"discriminator": [
Expand Down Expand Up @@ -3902,6 +4067,22 @@
"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"
}
],
"types": [
Expand Down Expand Up @@ -4005,6 +4186,10 @@
{
"name": "creator",
"type": "pubkey"
},
{
"name": "is_mayhem_mode",
"type": "bool"
}
]
}
Expand Down Expand Up @@ -4357,6 +4542,10 @@
{
"name": "coin_creator",
"type": "pubkey"
},
{
"name": "is_mayhem_mode",
"type": "bool"
}
]
}
Expand Down Expand Up @@ -4625,6 +4814,27 @@
"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
]
}
}
]
}
Expand Down Expand Up @@ -4747,6 +4957,35 @@
{
"name": "coin_creator",
"type": "pubkey"
},
{
"name": "is_mayhem_mode",
"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
]
}
}
]
}
Expand Down
Loading