Expand description
同笔交易内 Pump 事件后处理(零 RPC,供 gRPC/Shred 热路径):
- Create/CreateV2 + 后续 Buy 分离时,将 Buy 的 fee recipient 回填到
observed_fee_recipient - 将 Create / CreateV2 指令里的
is_cashback_enabled、is_mayhem_mode合并进同一 mint 的 Trade 事件, 避免仅有外层指令、TradeEvent 日志缺字段时sol-trade-sdk误判返现与 Mayhem fee 池
Functions§
- enrich_
create_ observed_ fee_ recipient - 扫描同签名下的买入类事件,按 mint 记录
fee_recipient(ShredStream 外层的 buy 已从 accounts[1] 解析)。 - enrich_
create_ quote_ mint_ from_ trades - enrich_
create_ v2_ from_ create_ events - Copy the official
CreateEventpayload onto the same-mintcreate_v2instruction event. Thecreate_v2instruction itself carries accounts and flags; the event payload carries the initial reserves and quote mint used by quote-denominated pools. - enrich_
pumpfun_ same_ tx_ post_ merge - 合并调用:fee 回填 + Create→Trade 标志(gRPC / Shred 在
merge之后调用一次即可)。 - enrich_
pumpfun_ trades_ from_ create_ instructions - 将同笔交易中 Create / CreateV2 的
is_cashback_enabled、is_mayhem_mode并入 Trade 事件(与官方create_v2/ bonding 语义一致)。