sol-parser-sdk 0.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +24 -0
- package/LICENSE +21 -0
- package/README.md +236 -0
- package/README_CN.md +236 -0
- package/dist/accounts/mod.d.ts +15 -0
- package/dist/accounts/mod.js +173 -0
- package/dist/accounts/nonce.d.ts +5 -0
- package/dist/accounts/nonce.js +32 -0
- package/dist/accounts/pumpfun.d.ts +16 -0
- package/dist/accounts/pumpfun.js +538 -0
- package/dist/accounts/pumpswap.d.ts +8 -0
- package/dist/accounts/pumpswap.js +192 -0
- package/dist/accounts/raydium_orca.d.ts +26 -0
- package/dist/accounts/raydium_orca.js +453 -0
- package/dist/accounts/rpc_wallet.d.ts +5 -0
- package/dist/accounts/rpc_wallet.js +18 -0
- package/dist/accounts/rust_aliases.d.ts +10 -0
- package/dist/accounts/rust_aliases.js +21 -0
- package/dist/accounts/token.d.ts +5 -0
- package/dist/accounts/token.js +98 -0
- package/dist/accounts/types.d.ts +9 -0
- package/dist/accounts/types.js +2 -0
- package/dist/accounts/utils.d.ts +1 -0
- package/dist/accounts/utils.js +12 -0
- package/dist/accounts/wallet_resolve.d.ts +1 -0
- package/dist/accounts/wallet_resolve.js +28 -0
- package/dist/common/constants.d.ts +10 -0
- package/dist/common/constants.js +13 -0
- package/dist/core/account_dispatcher_rpc.d.ts +11 -0
- package/dist/core/account_dispatcher_rpc.js +155 -0
- package/dist/core/account_fill_bonk.d.ts +4 -0
- package/dist/core/account_fill_bonk.js +20 -0
- package/dist/core/account_fill_meteora.d.ts +15 -0
- package/dist/core/account_fill_meteora.js +27 -0
- package/dist/core/account_fill_orca.d.ts +5 -0
- package/dist/core/account_fill_orca.js +18 -0
- package/dist/core/account_fill_pumpfun.d.ts +7 -0
- package/dist/core/account_fill_pumpfun.js +167 -0
- package/dist/core/account_fill_pumpswap.d.ts +10 -0
- package/dist/core/account_fill_pumpswap.js +128 -0
- package/dist/core/account_fill_raydium.d.ts +20 -0
- package/dist/core/account_fill_raydium.js +104 -0
- package/dist/core/account_fill_raydium_launchlab.d.ts +4 -0
- package/dist/core/account_fill_raydium_launchlab.js +20 -0
- package/dist/core/account_pubkey_cache.d.ts +12 -0
- package/dist/core/account_pubkey_cache.js +26 -0
- package/dist/core/clock.d.ts +8 -0
- package/dist/core/clock.js +20 -0
- package/dist/core/common_filler_rpc.d.ts +6 -0
- package/dist/core/common_filler_rpc.js +21 -0
- package/dist/core/dex_event.d.ts +1704 -0
- package/dist/core/dex_event.js +14 -0
- package/dist/core/error.d.ts +43 -0
- package/dist/core/error.js +16 -0
- package/dist/core/json_utils.d.ts +8 -0
- package/dist/core/json_utils.js +18 -0
- package/dist/core/metadata.d.ts +11 -0
- package/dist/core/metadata.js +13 -0
- package/dist/core/pumpfun_fee_enrich.d.ts +6 -0
- package/dist/core/pumpfun_fee_enrich.js +159 -0
- package/dist/core/rpc_invoke_map.d.ts +23 -0
- package/dist/core/rpc_invoke_map.js +157 -0
- package/dist/core/unified_parser.d.ts +19 -0
- package/dist/core/unified_parser.js +50 -0
- package/dist/grpc/client.d.ts +83 -0
- package/dist/grpc/client.js +645 -0
- package/dist/grpc/client_stub.d.ts +5 -0
- package/dist/grpc/client_stub.js +5 -0
- package/dist/grpc/event_parser.d.ts +6 -0
- package/dist/grpc/event_parser.js +15 -0
- package/dist/grpc/geyser_connect.d.ts +30 -0
- package/dist/grpc/geyser_connect.js +40 -0
- package/dist/grpc/log_instr_dedup.d.ts +2 -0
- package/dist/grpc/log_instr_dedup.js +402 -0
- package/dist/grpc/order_buffer.d.ts +27 -0
- package/dist/grpc/order_buffer.js +166 -0
- package/dist/grpc/program_ids.d.ts +27 -0
- package/dist/grpc/program_ids.js +61 -0
- package/dist/grpc/rpc_to_grpc.d.ts +18 -0
- package/dist/grpc/rpc_to_grpc.js +127 -0
- package/dist/grpc/subscribe_builder.d.ts +13 -0
- package/dist/grpc/subscribe_builder.js +66 -0
- package/dist/grpc/transaction_meta.d.ts +29 -0
- package/dist/grpc/transaction_meta.js +208 -0
- package/dist/grpc/types.d.ts +195 -0
- package/dist/grpc/types.js +551 -0
- package/dist/grpc/yellowstone_parse.d.ts +16 -0
- package/dist/grpc/yellowstone_parse.js +62 -0
- package/dist/index.d.ts +50 -0
- package/dist/index.js +298 -0
- package/dist/instr/bonk_ix.d.ts +8 -0
- package/dist/instr/bonk_ix.js +131 -0
- package/dist/instr/inner.d.ts +4 -0
- package/dist/instr/inner.js +453 -0
- package/dist/instr/meteora_damm_ix.d.ts +8 -0
- package/dist/instr/meteora_damm_ix.js +601 -0
- package/dist/instr/meteora_dlmm_ix.d.ts +2 -0
- package/dist/instr/meteora_dlmm_ix.js +134 -0
- package/dist/instr/meteora_pools_ix.d.ts +2 -0
- package/dist/instr/meteora_pools_ix.js +78 -0
- package/dist/instr/mod.d.ts +18 -0
- package/dist/instr/mod.js +129 -0
- package/dist/instr/orca_whirlpool_ix.d.ts +8 -0
- package/dist/instr/orca_whirlpool_ix.js +119 -0
- package/dist/instr/program_ids.d.ts +4 -0
- package/dist/instr/program_ids.js +20 -0
- package/dist/instr/pump_fees_ix.d.ts +2 -0
- package/dist/instr/pump_fees_ix.js +168 -0
- package/dist/instr/pumpfun_ix.d.ts +6 -0
- package/dist/instr/pumpfun_ix.js +448 -0
- package/dist/instr/pumpswap_ix.d.ts +5 -0
- package/dist/instr/pumpswap_ix.js +270 -0
- package/dist/instr/raydium_amm_v4_ix.d.ts +6 -0
- package/dist/instr/raydium_amm_v4_ix.js +112 -0
- package/dist/instr/raydium_clmm_ix.d.ts +5 -0
- package/dist/instr/raydium_clmm_ix.js +184 -0
- package/dist/instr/raydium_cpmm_ix.d.ts +5 -0
- package/dist/instr/raydium_cpmm_ix.js +109 -0
- package/dist/instr/raydium_launchlab_ix.d.ts +8 -0
- package/dist/instr/raydium_launchlab_ix.js +125 -0
- package/dist/instr/rust_aliases.d.ts +10 -0
- package/dist/instr/rust_aliases.js +20 -0
- package/dist/instr/utils.d.ts +10 -0
- package/dist/instr/utils.js +35 -0
- package/dist/logs/discriminator_lut.d.ts +19 -0
- package/dist/logs/discriminator_lut.js +62 -0
- package/dist/logs/meteora_amm.d.ts +8 -0
- package/dist/logs/meteora_amm.js +113 -0
- package/dist/logs/meteora_damm.d.ts +5 -0
- package/dist/logs/meteora_damm.js +367 -0
- package/dist/logs/meteora_dbc.d.ts +11 -0
- package/dist/logs/meteora_dbc.js +142 -0
- package/dist/logs/meteora_dlmm.d.ts +6 -0
- package/dist/logs/meteora_dlmm.js +201 -0
- package/dist/logs/optimized_matcher.d.ts +11 -0
- package/dist/logs/optimized_matcher.js +941 -0
- package/dist/logs/orca.d.ts +6 -0
- package/dist/logs/orca.js +148 -0
- package/dist/logs/program_data.d.ts +2 -0
- package/dist/logs/program_data.js +20 -0
- package/dist/logs/program_log_discriminators.d.ts +80 -0
- package/dist/logs/program_log_discriminators.js +88 -0
- package/dist/logs/pump.d.ts +14 -0
- package/dist/logs/pump.js +378 -0
- package/dist/logs/pump_amm.d.ts +9 -0
- package/dist/logs/pump_amm.js +418 -0
- package/dist/logs/pump_fees.d.ts +23 -0
- package/dist/logs/pump_fees.js +364 -0
- package/dist/logs/raydium_amm.d.ts +9 -0
- package/dist/logs/raydium_amm.js +224 -0
- package/dist/logs/raydium_clmm.d.ts +17 -0
- package/dist/logs/raydium_clmm.js +624 -0
- package/dist/logs/raydium_cpmm.d.ts +7 -0
- package/dist/logs/raydium_cpmm.js +121 -0
- package/dist/logs/raydium_launchlab.d.ts +10 -0
- package/dist/logs/raydium_launchlab.js +84 -0
- package/dist/logs/raydium_launchpad.d.ts +12 -0
- package/dist/logs/raydium_launchpad.js +92 -0
- package/dist/logs/rust_aliases.d.ts +7 -0
- package/dist/logs/rust_aliases.js +16 -0
- package/dist/parser_alias.d.ts +3 -0
- package/dist/parser_alias.js +2 -0
- package/dist/rpc_parser.d.ts +17 -0
- package/dist/rpc_parser.js +39 -0
- package/dist/rpc_transaction.d.ts +27 -0
- package/dist/rpc_transaction.js +416 -0
- package/dist/shredstream/alt_lookup.d.ts +9 -0
- package/dist/shredstream/alt_lookup.js +70 -0
- package/dist/shredstream/client.d.ts +65 -0
- package/dist/shredstream/client.js +403 -0
- package/dist/shredstream/config.d.ts +30 -0
- package/dist/shredstream/config.js +34 -0
- package/dist/shredstream/entries_decode.d.ts +28 -0
- package/dist/shredstream/entries_decode.js +251 -0
- package/dist/shredstream/index.d.ts +17 -0
- package/dist/shredstream/index.js +33 -0
- package/dist/shredstream/instruction_parse.d.ts +34 -0
- package/dist/shredstream/instruction_parse.js +79 -0
- package/dist/shredstream/proto_types.d.ts +9 -0
- package/dist/shredstream/proto_types.js +2 -0
- package/dist/shredstream/shredstream.proto +15 -0
- package/dist/shredstream/wire_to_shred_tx.d.ts +2 -0
- package/dist/shredstream/wire_to_shred_tx.js +59 -0
- package/dist/util/binary.d.ts +14 -0
- package/dist/util/binary.js +82 -0
- package/dist/util/market.d.ts +18 -0
- package/dist/util/market.js +54 -0
- package/dist/warmup.d.ts +3 -0
- package/dist/warmup.js +23 -0
- package/package.json +61 -0
|
@@ -0,0 +1,1704 @@
|
|
|
1
|
+
import type { EventMetadata } from "./metadata.js";
|
|
2
|
+
/** 统一 DEX 事件:外部标签 JSON(单键对象);键名清单见 `scripts/dex-event-variant-names.json` */
|
|
3
|
+
export type DexEvent = {
|
|
4
|
+
PumpFunCreate: PumpFunCreateTokenEvent;
|
|
5
|
+
} | {
|
|
6
|
+
PumpFunCreateV2: PumpFunCreateV2TokenEvent;
|
|
7
|
+
} | {
|
|
8
|
+
PumpFunTrade: PumpFunTradeEvent;
|
|
9
|
+
} | {
|
|
10
|
+
PumpFunBuy: PumpFunTradeEvent;
|
|
11
|
+
} | {
|
|
12
|
+
PumpFunSell: PumpFunTradeEvent;
|
|
13
|
+
} | {
|
|
14
|
+
PumpFunBuyExactSolIn: PumpFunTradeEvent;
|
|
15
|
+
} | {
|
|
16
|
+
PumpFunMigrate: PumpFunMigrateEvent;
|
|
17
|
+
} | {
|
|
18
|
+
PumpFeesCreateFeeSharingConfig: PumpFeesCreateFeeSharingConfigEvent;
|
|
19
|
+
} | {
|
|
20
|
+
PumpFeesInitializeFeeConfig: PumpFeesInitializeFeeConfigEvent;
|
|
21
|
+
} | {
|
|
22
|
+
PumpFeesResetFeeSharingConfig: PumpFeesResetFeeSharingConfigEvent;
|
|
23
|
+
} | {
|
|
24
|
+
PumpFeesRevokeFeeSharingAuthority: PumpFeesRevokeFeeSharingAuthorityEvent;
|
|
25
|
+
} | {
|
|
26
|
+
PumpFeesTransferFeeSharingAuthority: PumpFeesTransferFeeSharingAuthorityEvent;
|
|
27
|
+
} | {
|
|
28
|
+
PumpFeesUpdateAdmin: PumpFeesUpdateAdminEvent;
|
|
29
|
+
} | {
|
|
30
|
+
PumpFeesUpdateFeeConfig: PumpFeesUpdateFeeConfigEvent;
|
|
31
|
+
} | {
|
|
32
|
+
PumpFeesUpdateFeeShares: PumpFeesUpdateFeeSharesEvent;
|
|
33
|
+
} | {
|
|
34
|
+
PumpFeesUpsertFeeTiers: PumpFeesUpsertFeeTiersEvent;
|
|
35
|
+
} | {
|
|
36
|
+
PumpFunMigrateBondingCurveCreator: PumpFunMigrateBondingCurveCreatorEvent;
|
|
37
|
+
} | {
|
|
38
|
+
PumpSwapTrade: PumpSwapTradeEvent;
|
|
39
|
+
} | {
|
|
40
|
+
PumpSwapBuy: PumpSwapBuyEvent;
|
|
41
|
+
} | {
|
|
42
|
+
PumpSwapSell: PumpSwapSellEvent;
|
|
43
|
+
} | {
|
|
44
|
+
PumpSwapCreatePool: PumpSwapCreatePoolEvent;
|
|
45
|
+
} | {
|
|
46
|
+
PumpSwapLiquidityAdded: PumpSwapLiquidityAdded;
|
|
47
|
+
} | {
|
|
48
|
+
PumpSwapLiquidityRemoved: PumpSwapLiquidityRemoved;
|
|
49
|
+
} | {
|
|
50
|
+
RaydiumClmmSwap: RaydiumClmmSwapEvent;
|
|
51
|
+
} | {
|
|
52
|
+
RaydiumClmmIncreaseLiquidity: RaydiumClmmIncreaseLiquidityEvent;
|
|
53
|
+
} | {
|
|
54
|
+
RaydiumClmmDecreaseLiquidity: RaydiumClmmDecreaseLiquidityEvent;
|
|
55
|
+
} | {
|
|
56
|
+
RaydiumClmmCreatePool: RaydiumClmmCreatePoolEvent;
|
|
57
|
+
} | {
|
|
58
|
+
RaydiumClmmOpenPosition: RaydiumClmmOpenPositionEvent;
|
|
59
|
+
} | {
|
|
60
|
+
RaydiumClmmOpenPositionWithTokenExtNft: RaydiumClmmOpenPositionWithTokenExtNftEvent;
|
|
61
|
+
} | {
|
|
62
|
+
RaydiumClmmClosePosition: RaydiumClmmClosePositionEvent;
|
|
63
|
+
} | {
|
|
64
|
+
RaydiumClmmCollectFee: RaydiumClmmCollectFeeEvent;
|
|
65
|
+
} | {
|
|
66
|
+
RaydiumClmmLiquidityChange: RaydiumClmmLiquidityChangeEvent;
|
|
67
|
+
} | {
|
|
68
|
+
RaydiumClmmConfigChange: RaydiumClmmConfigChangeEvent;
|
|
69
|
+
} | {
|
|
70
|
+
RaydiumClmmCreatePersonalPosition: RaydiumClmmCreatePersonalPositionEvent;
|
|
71
|
+
} | {
|
|
72
|
+
RaydiumClmmLiquidityCalculate: RaydiumClmmLiquidityCalculateEvent;
|
|
73
|
+
} | {
|
|
74
|
+
RaydiumClmmOpenLimitOrder: RaydiumClmmOpenLimitOrderEvent;
|
|
75
|
+
} | {
|
|
76
|
+
RaydiumClmmIncreaseLimitOrder: RaydiumClmmIncreaseLimitOrderEvent;
|
|
77
|
+
} | {
|
|
78
|
+
RaydiumClmmDecreaseLimitOrder: RaydiumClmmDecreaseLimitOrderEvent;
|
|
79
|
+
} | {
|
|
80
|
+
RaydiumClmmSettleLimitOrder: RaydiumClmmSettleLimitOrderEvent;
|
|
81
|
+
} | {
|
|
82
|
+
RaydiumClmmUpdateRewardInfos: RaydiumClmmUpdateRewardInfosEvent;
|
|
83
|
+
} | {
|
|
84
|
+
RaydiumCpmmSwap: RaydiumCpmmSwapEvent;
|
|
85
|
+
} | {
|
|
86
|
+
RaydiumCpmmDeposit: RaydiumCpmmDepositEvent;
|
|
87
|
+
} | {
|
|
88
|
+
RaydiumCpmmWithdraw: RaydiumCpmmWithdrawEvent;
|
|
89
|
+
} | {
|
|
90
|
+
RaydiumCpmmInitialize: RaydiumCpmmInitializeEvent;
|
|
91
|
+
} | {
|
|
92
|
+
RaydiumAmmV4Swap: RaydiumAmmV4SwapEvent;
|
|
93
|
+
} | {
|
|
94
|
+
RaydiumAmmV4Deposit: RaydiumAmmV4DepositEvent;
|
|
95
|
+
} | {
|
|
96
|
+
RaydiumAmmV4Withdraw: RaydiumAmmV4WithdrawEvent;
|
|
97
|
+
} | {
|
|
98
|
+
RaydiumAmmV4WithdrawPnl: RaydiumAmmV4WithdrawPnlEvent;
|
|
99
|
+
} | {
|
|
100
|
+
RaydiumAmmV4Initialize2: RaydiumAmmV4Initialize2Event;
|
|
101
|
+
} | {
|
|
102
|
+
OrcaWhirlpoolSwap: OrcaWhirlpoolSwapEvent;
|
|
103
|
+
} | {
|
|
104
|
+
OrcaWhirlpoolLiquidityIncreased: OrcaWhirlpoolLiquidityIncreasedEvent;
|
|
105
|
+
} | {
|
|
106
|
+
OrcaWhirlpoolLiquidityDecreased: OrcaWhirlpoolLiquidityDecreasedEvent;
|
|
107
|
+
} | {
|
|
108
|
+
OrcaWhirlpoolPoolInitialized: OrcaWhirlpoolPoolInitializedEvent;
|
|
109
|
+
} | {
|
|
110
|
+
MeteoraPoolsSwap: MeteoraPoolsSwapEvent;
|
|
111
|
+
} | {
|
|
112
|
+
MeteoraPoolsAddLiquidity: MeteoraPoolsAddLiquidityEvent;
|
|
113
|
+
} | {
|
|
114
|
+
MeteoraPoolsRemoveLiquidity: MeteoraPoolsRemoveLiquidityEvent;
|
|
115
|
+
} | {
|
|
116
|
+
MeteoraPoolsBootstrapLiquidity: MeteoraPoolsBootstrapLiquidityEvent;
|
|
117
|
+
} | {
|
|
118
|
+
MeteoraPoolsPoolCreated: MeteoraPoolsPoolCreatedEvent;
|
|
119
|
+
} | {
|
|
120
|
+
MeteoraPoolsSetPoolFees: MeteoraPoolsSetPoolFeesEvent;
|
|
121
|
+
} | {
|
|
122
|
+
MeteoraDammV2Swap: MeteoraDammV2SwapEvent;
|
|
123
|
+
} | {
|
|
124
|
+
MeteoraDammV2AddLiquidity: MeteoraDammV2AddLiquidityEvent;
|
|
125
|
+
} | {
|
|
126
|
+
MeteoraDammV2RemoveLiquidity: MeteoraDammV2RemoveLiquidityEvent;
|
|
127
|
+
} | {
|
|
128
|
+
MeteoraDammV2CreatePosition: MeteoraDammV2CreatePositionEvent;
|
|
129
|
+
} | {
|
|
130
|
+
MeteoraDammV2InitializePool: MeteoraDammV2InitializePoolEvent;
|
|
131
|
+
} | {
|
|
132
|
+
MeteoraDammV2ClosePosition: MeteoraDammV2ClosePositionEvent;
|
|
133
|
+
} | {
|
|
134
|
+
MeteoraDbcSwap: MeteoraDbcSwapEvent;
|
|
135
|
+
} | {
|
|
136
|
+
MeteoraDbcInitializePool: MeteoraDbcInitializePoolEvent;
|
|
137
|
+
} | {
|
|
138
|
+
MeteoraDbcCurveComplete: MeteoraDbcCurveCompleteEvent;
|
|
139
|
+
} | {
|
|
140
|
+
MeteoraDlmmSwap: MeteoraDlmmSwapEvent;
|
|
141
|
+
} | {
|
|
142
|
+
MeteoraDlmmAddLiquidity: MeteoraDlmmAddLiquidityEvent;
|
|
143
|
+
} | {
|
|
144
|
+
MeteoraDlmmRemoveLiquidity: MeteoraDlmmRemoveLiquidityEvent;
|
|
145
|
+
} | {
|
|
146
|
+
MeteoraDlmmInitializePool: MeteoraDlmmInitializePoolEvent;
|
|
147
|
+
} | {
|
|
148
|
+
MeteoraDlmmInitializeBinArray: MeteoraDlmmInitializeBinArrayEvent;
|
|
149
|
+
} | {
|
|
150
|
+
MeteoraDlmmCreatePosition: MeteoraDlmmCreatePositionEvent;
|
|
151
|
+
} | {
|
|
152
|
+
MeteoraDlmmClosePosition: MeteoraDlmmClosePositionEvent;
|
|
153
|
+
} | {
|
|
154
|
+
MeteoraDlmmClaimFee: MeteoraDlmmClaimFeeEvent;
|
|
155
|
+
} | {
|
|
156
|
+
RaydiumLaunchlabTrade: RaydiumLaunchlabTradeEvent;
|
|
157
|
+
} | {
|
|
158
|
+
RaydiumLaunchlabPoolCreate: RaydiumLaunchlabPoolCreateEvent;
|
|
159
|
+
} | {
|
|
160
|
+
RaydiumLaunchlabMigrateAmm: RaydiumLaunchlabMigrateAmmEvent;
|
|
161
|
+
} | {
|
|
162
|
+
TokenInfo: TokenInfoEvent;
|
|
163
|
+
} | {
|
|
164
|
+
TokenAccount: TokenAccountEvent;
|
|
165
|
+
} | {
|
|
166
|
+
NonceAccount: NonceAccountEvent;
|
|
167
|
+
} | {
|
|
168
|
+
PumpFunGlobalAccount: PumpFunGlobalAccountEvent;
|
|
169
|
+
} | {
|
|
170
|
+
PumpFunBondingCurveAccount: PumpFunBondingCurveAccountEvent;
|
|
171
|
+
} | {
|
|
172
|
+
PumpFunFeeConfigAccount: PumpFunFeeConfigAccountEvent;
|
|
173
|
+
} | {
|
|
174
|
+
PumpFunSharingConfigAccount: PumpFunSharingConfigAccountEvent;
|
|
175
|
+
} | {
|
|
176
|
+
PumpFunGlobalVolumeAccumulatorAccount: PumpFunGlobalVolumeAccumulatorAccountEvent;
|
|
177
|
+
} | {
|
|
178
|
+
PumpFunUserVolumeAccumulatorAccount: PumpFunUserVolumeAccumulatorAccountEvent;
|
|
179
|
+
} | {
|
|
180
|
+
PumpSwapGlobalConfigAccount: PumpSwapGlobalConfigAccountEvent;
|
|
181
|
+
} | {
|
|
182
|
+
PumpSwapPoolAccount: PumpSwapPoolAccountEvent;
|
|
183
|
+
} | {
|
|
184
|
+
RaydiumClmmAmmConfigAccount: RaydiumClmmAmmConfigAccountEvent;
|
|
185
|
+
} | {
|
|
186
|
+
RaydiumClmmPoolStateAccount: RaydiumClmmPoolStateAccountEvent;
|
|
187
|
+
} | {
|
|
188
|
+
RaydiumClmmTickArrayStateAccount: RaydiumClmmTickArrayStateAccountEvent;
|
|
189
|
+
} | {
|
|
190
|
+
RaydiumCpmmAmmConfigAccount: RaydiumCpmmAmmConfigAccountEvent;
|
|
191
|
+
} | {
|
|
192
|
+
RaydiumCpmmPoolStateAccount: RaydiumCpmmPoolStateAccountEvent;
|
|
193
|
+
} | {
|
|
194
|
+
OrcaWhirlpoolAccount: OrcaWhirlpoolAccountEvent;
|
|
195
|
+
} | {
|
|
196
|
+
OrcaPositionAccount: OrcaPositionAccountEvent;
|
|
197
|
+
} | {
|
|
198
|
+
OrcaTickArrayAccount: OrcaTickArrayAccountEvent;
|
|
199
|
+
} | {
|
|
200
|
+
OrcaFeeTierAccount: OrcaFeeTierAccountEvent;
|
|
201
|
+
} | {
|
|
202
|
+
OrcaWhirlpoolsConfigAccount: OrcaWhirlpoolsConfigAccountEvent;
|
|
203
|
+
} | {
|
|
204
|
+
BlockMeta: BlockMetaEvent;
|
|
205
|
+
} | {
|
|
206
|
+
Error: string;
|
|
207
|
+
};
|
|
208
|
+
export interface PumpFunCreateTokenEvent {
|
|
209
|
+
metadata: EventMetadata;
|
|
210
|
+
name: string;
|
|
211
|
+
symbol: string;
|
|
212
|
+
uri: string;
|
|
213
|
+
mint: string;
|
|
214
|
+
bonding_curve: string;
|
|
215
|
+
user: string;
|
|
216
|
+
creator: string;
|
|
217
|
+
timestamp: bigint;
|
|
218
|
+
virtual_token_reserves: bigint;
|
|
219
|
+
virtual_sol_reserves: bigint;
|
|
220
|
+
real_token_reserves: bigint;
|
|
221
|
+
token_total_supply: bigint;
|
|
222
|
+
token_program: string;
|
|
223
|
+
is_mayhem_mode: boolean;
|
|
224
|
+
is_cashback_enabled: boolean;
|
|
225
|
+
quote_mint: string;
|
|
226
|
+
quote_vault: string;
|
|
227
|
+
quote_token_program: string;
|
|
228
|
+
virtual_quote_reserves: bigint;
|
|
229
|
+
ix_name: string;
|
|
230
|
+
}
|
|
231
|
+
export interface PumpFunCreateV2TokenEvent extends PumpFunCreateTokenEvent {
|
|
232
|
+
mint_authority: string;
|
|
233
|
+
associated_bonding_curve: string;
|
|
234
|
+
global: string;
|
|
235
|
+
system_program: string;
|
|
236
|
+
associated_token_program: string;
|
|
237
|
+
mayhem_program_id: string;
|
|
238
|
+
global_params: string;
|
|
239
|
+
sol_vault: string;
|
|
240
|
+
mayhem_state: string;
|
|
241
|
+
mayhem_token_vault: string;
|
|
242
|
+
event_authority: string;
|
|
243
|
+
program: string;
|
|
244
|
+
observed_fee_recipient: string;
|
|
245
|
+
}
|
|
246
|
+
export interface PumpFunTradeEvent {
|
|
247
|
+
metadata: EventMetadata;
|
|
248
|
+
mint: string;
|
|
249
|
+
sol_amount: bigint;
|
|
250
|
+
token_amount: bigint;
|
|
251
|
+
is_buy: boolean;
|
|
252
|
+
is_created_buy: boolean;
|
|
253
|
+
user: string;
|
|
254
|
+
timestamp: bigint;
|
|
255
|
+
virtual_sol_reserves: bigint;
|
|
256
|
+
virtual_token_reserves: bigint;
|
|
257
|
+
real_sol_reserves: bigint;
|
|
258
|
+
real_token_reserves: bigint;
|
|
259
|
+
fee_recipient: string;
|
|
260
|
+
fee_basis_points: bigint;
|
|
261
|
+
fee: bigint;
|
|
262
|
+
creator: string;
|
|
263
|
+
creator_fee_basis_points: bigint;
|
|
264
|
+
creator_fee: bigint;
|
|
265
|
+
track_volume: boolean;
|
|
266
|
+
total_unclaimed_tokens: bigint;
|
|
267
|
+
total_claimed_tokens: bigint;
|
|
268
|
+
current_sol_volume: bigint;
|
|
269
|
+
last_update_timestamp: bigint;
|
|
270
|
+
ix_name: string;
|
|
271
|
+
mayhem_mode: boolean;
|
|
272
|
+
cashback_fee_basis_points: bigint;
|
|
273
|
+
cashback: bigint;
|
|
274
|
+
buyback_fee_basis_points?: bigint;
|
|
275
|
+
buyback_fee?: bigint;
|
|
276
|
+
shareholders?: PumpFeesShareholder[];
|
|
277
|
+
quote_mint?: string;
|
|
278
|
+
quote_amount?: bigint;
|
|
279
|
+
virtual_quote_reserves?: bigint;
|
|
280
|
+
real_quote_reserves?: bigint;
|
|
281
|
+
is_cashback_coin: boolean;
|
|
282
|
+
amount?: bigint;
|
|
283
|
+
max_sol_cost?: bigint;
|
|
284
|
+
min_sol_output?: bigint;
|
|
285
|
+
spendable_sol_in?: bigint;
|
|
286
|
+
spendable_quote_in?: bigint;
|
|
287
|
+
min_tokens_out?: bigint;
|
|
288
|
+
global?: string;
|
|
289
|
+
bonding_curve: string;
|
|
290
|
+
bonding_curve_v2?: string;
|
|
291
|
+
associated_bonding_curve: string;
|
|
292
|
+
associated_user?: string;
|
|
293
|
+
system_program?: string;
|
|
294
|
+
token_program: string;
|
|
295
|
+
quote_token_program?: string;
|
|
296
|
+
associated_token_program?: string;
|
|
297
|
+
creator_vault: string;
|
|
298
|
+
associated_quote_fee_recipient?: string;
|
|
299
|
+
buyback_fee_recipient?: string;
|
|
300
|
+
associated_quote_buyback_fee_recipient?: string;
|
|
301
|
+
associated_quote_bonding_curve?: string;
|
|
302
|
+
associated_quote_user?: string;
|
|
303
|
+
associated_creator_vault?: string;
|
|
304
|
+
sharing_config?: string;
|
|
305
|
+
event_authority?: string;
|
|
306
|
+
program?: string;
|
|
307
|
+
global_volume_accumulator?: string;
|
|
308
|
+
user_volume_accumulator?: string;
|
|
309
|
+
associated_user_volume_accumulator?: string;
|
|
310
|
+
fee_config?: string;
|
|
311
|
+
fee_program?: string;
|
|
312
|
+
account?: string;
|
|
313
|
+
}
|
|
314
|
+
export interface PumpFunMigrateEvent {
|
|
315
|
+
metadata: EventMetadata;
|
|
316
|
+
user: string;
|
|
317
|
+
mint: string;
|
|
318
|
+
mint_amount: bigint;
|
|
319
|
+
sol_amount: bigint;
|
|
320
|
+
pool_migration_fee: bigint;
|
|
321
|
+
bonding_curve: string;
|
|
322
|
+
timestamp: bigint;
|
|
323
|
+
pool: string;
|
|
324
|
+
}
|
|
325
|
+
export interface PumpFeesShareholder {
|
|
326
|
+
address: string;
|
|
327
|
+
share_bps: number;
|
|
328
|
+
}
|
|
329
|
+
export type PumpFeesConfigStatus = "Paused" | "Active";
|
|
330
|
+
export interface PumpFeesFees {
|
|
331
|
+
lp_fee_bps: bigint;
|
|
332
|
+
protocol_fee_bps: bigint;
|
|
333
|
+
creator_fee_bps: bigint;
|
|
334
|
+
}
|
|
335
|
+
export interface PumpFeesFeeTier {
|
|
336
|
+
market_cap_lamports_threshold: bigint;
|
|
337
|
+
fees: PumpFeesFees;
|
|
338
|
+
}
|
|
339
|
+
export interface PumpFeesCreateFeeSharingConfigEvent {
|
|
340
|
+
metadata: EventMetadata;
|
|
341
|
+
timestamp: bigint;
|
|
342
|
+
mint: string;
|
|
343
|
+
bonding_curve: string;
|
|
344
|
+
pool?: string;
|
|
345
|
+
sharing_config: string;
|
|
346
|
+
admin: string;
|
|
347
|
+
initial_shareholders: PumpFeesShareholder[];
|
|
348
|
+
status: PumpFeesConfigStatus;
|
|
349
|
+
}
|
|
350
|
+
export interface PumpFeesInitializeFeeConfigEvent {
|
|
351
|
+
metadata: EventMetadata;
|
|
352
|
+
timestamp: bigint;
|
|
353
|
+
admin: string;
|
|
354
|
+
fee_config: string;
|
|
355
|
+
}
|
|
356
|
+
export interface PumpFeesResetFeeSharingConfigEvent {
|
|
357
|
+
metadata: EventMetadata;
|
|
358
|
+
timestamp: bigint;
|
|
359
|
+
mint: string;
|
|
360
|
+
sharing_config: string;
|
|
361
|
+
old_admin: string;
|
|
362
|
+
old_shareholders: PumpFeesShareholder[];
|
|
363
|
+
new_admin: string;
|
|
364
|
+
new_shareholders: PumpFeesShareholder[];
|
|
365
|
+
}
|
|
366
|
+
export interface PumpFeesRevokeFeeSharingAuthorityEvent {
|
|
367
|
+
metadata: EventMetadata;
|
|
368
|
+
timestamp: bigint;
|
|
369
|
+
mint: string;
|
|
370
|
+
sharing_config: string;
|
|
371
|
+
admin: string;
|
|
372
|
+
}
|
|
373
|
+
export interface PumpFeesTransferFeeSharingAuthorityEvent {
|
|
374
|
+
metadata: EventMetadata;
|
|
375
|
+
timestamp: bigint;
|
|
376
|
+
mint: string;
|
|
377
|
+
sharing_config: string;
|
|
378
|
+
old_admin: string;
|
|
379
|
+
new_admin: string;
|
|
380
|
+
}
|
|
381
|
+
export interface PumpFeesUpdateAdminEvent {
|
|
382
|
+
metadata: EventMetadata;
|
|
383
|
+
timestamp: bigint;
|
|
384
|
+
old_admin: string;
|
|
385
|
+
new_admin: string;
|
|
386
|
+
}
|
|
387
|
+
export interface PumpFeesUpdateFeeConfigEvent {
|
|
388
|
+
metadata: EventMetadata;
|
|
389
|
+
timestamp: bigint;
|
|
390
|
+
admin: string;
|
|
391
|
+
fee_config: string;
|
|
392
|
+
fee_tiers: PumpFeesFeeTier[];
|
|
393
|
+
flat_fees: PumpFeesFees;
|
|
394
|
+
}
|
|
395
|
+
export interface PumpFeesUpdateFeeSharesEvent {
|
|
396
|
+
metadata: EventMetadata;
|
|
397
|
+
timestamp: bigint;
|
|
398
|
+
mint: string;
|
|
399
|
+
sharing_config: string;
|
|
400
|
+
admin: string;
|
|
401
|
+
bonding_curve: string;
|
|
402
|
+
pump_creator_vault: string;
|
|
403
|
+
new_shareholders: PumpFeesShareholder[];
|
|
404
|
+
}
|
|
405
|
+
export interface PumpFeesUpsertFeeTiersEvent {
|
|
406
|
+
metadata: EventMetadata;
|
|
407
|
+
timestamp: bigint;
|
|
408
|
+
admin: string;
|
|
409
|
+
fee_config: string;
|
|
410
|
+
fee_tiers: PumpFeesFeeTier[];
|
|
411
|
+
offset: number;
|
|
412
|
+
}
|
|
413
|
+
export interface PumpFunMigrateBondingCurveCreatorEvent {
|
|
414
|
+
metadata: EventMetadata;
|
|
415
|
+
timestamp: bigint;
|
|
416
|
+
mint: string;
|
|
417
|
+
bonding_curve: string;
|
|
418
|
+
sharing_config: string;
|
|
419
|
+
old_creator: string;
|
|
420
|
+
new_creator: string;
|
|
421
|
+
}
|
|
422
|
+
/** 与 `PumpSwapTradeEvent`(IDL TradeEvent)对齐 */
|
|
423
|
+
export interface PumpSwapTradeEvent {
|
|
424
|
+
metadata: EventMetadata;
|
|
425
|
+
mint: string;
|
|
426
|
+
sol_amount: bigint;
|
|
427
|
+
token_amount: bigint;
|
|
428
|
+
is_buy: boolean;
|
|
429
|
+
user: string;
|
|
430
|
+
timestamp: bigint;
|
|
431
|
+
virtual_sol_reserves: bigint;
|
|
432
|
+
virtual_token_reserves: bigint;
|
|
433
|
+
real_sol_reserves: bigint;
|
|
434
|
+
real_token_reserves: bigint;
|
|
435
|
+
fee_recipient: string;
|
|
436
|
+
fee_basis_points: bigint;
|
|
437
|
+
fee: bigint;
|
|
438
|
+
creator: string;
|
|
439
|
+
creator_fee_basis_points: bigint;
|
|
440
|
+
creator_fee: bigint;
|
|
441
|
+
track_volume: boolean;
|
|
442
|
+
total_unclaimed_tokens: bigint;
|
|
443
|
+
total_claimed_tokens: bigint;
|
|
444
|
+
current_sol_volume: bigint;
|
|
445
|
+
last_update_timestamp: bigint;
|
|
446
|
+
ix_name: string;
|
|
447
|
+
}
|
|
448
|
+
export interface PumpSwapBuyEvent {
|
|
449
|
+
metadata: EventMetadata;
|
|
450
|
+
timestamp: bigint;
|
|
451
|
+
base_amount_out: bigint;
|
|
452
|
+
max_quote_amount_in: bigint;
|
|
453
|
+
user_base_token_reserves: bigint;
|
|
454
|
+
user_quote_token_reserves: bigint;
|
|
455
|
+
pool_base_token_reserves: bigint;
|
|
456
|
+
pool_quote_token_reserves: bigint;
|
|
457
|
+
quote_amount_in: bigint;
|
|
458
|
+
lp_fee_basis_points: bigint;
|
|
459
|
+
lp_fee: bigint;
|
|
460
|
+
protocol_fee_basis_points: bigint;
|
|
461
|
+
protocol_fee: bigint;
|
|
462
|
+
quote_amount_in_with_lp_fee: bigint;
|
|
463
|
+
user_quote_amount_in: bigint;
|
|
464
|
+
pool: string;
|
|
465
|
+
user: string;
|
|
466
|
+
user_base_token_account: string;
|
|
467
|
+
user_quote_token_account: string;
|
|
468
|
+
protocol_fee_recipient: string;
|
|
469
|
+
protocol_fee_recipient_token_account: string;
|
|
470
|
+
coin_creator: string;
|
|
471
|
+
coin_creator_fee_basis_points: bigint;
|
|
472
|
+
coin_creator_fee: bigint;
|
|
473
|
+
track_volume: boolean;
|
|
474
|
+
total_unclaimed_tokens: bigint;
|
|
475
|
+
total_claimed_tokens: bigint;
|
|
476
|
+
current_sol_volume: bigint;
|
|
477
|
+
last_update_timestamp: bigint;
|
|
478
|
+
min_base_amount_out: bigint;
|
|
479
|
+
ix_name: string;
|
|
480
|
+
/** 与 `PumpSwapBuyEvent`:PUMP_CASHBACK / IDL */
|
|
481
|
+
cashback_fee_basis_points: bigint;
|
|
482
|
+
cashback: bigint;
|
|
483
|
+
/** 由 fees 指令数据填充(见 `fillDataRpc`) */
|
|
484
|
+
is_pump_pool: boolean;
|
|
485
|
+
/** 自指令账户填充(account_fillers/pumpswap) */
|
|
486
|
+
base_mint: string;
|
|
487
|
+
quote_mint: string;
|
|
488
|
+
pool_base_token_account: string;
|
|
489
|
+
pool_quote_token_account: string;
|
|
490
|
+
coin_creator_vault_ata: string;
|
|
491
|
+
coin_creator_vault_authority: string;
|
|
492
|
+
base_token_program: string;
|
|
493
|
+
quote_token_program: string;
|
|
494
|
+
pool_v2?: string;
|
|
495
|
+
fee_recipient?: string;
|
|
496
|
+
fee_recipient_quote_token_account?: string;
|
|
497
|
+
}
|
|
498
|
+
export interface PumpSwapSellEvent {
|
|
499
|
+
metadata: EventMetadata;
|
|
500
|
+
timestamp: bigint;
|
|
501
|
+
base_amount_in: bigint;
|
|
502
|
+
min_quote_amount_out: bigint;
|
|
503
|
+
user_base_token_reserves: bigint;
|
|
504
|
+
user_quote_token_reserves: bigint;
|
|
505
|
+
pool_base_token_reserves: bigint;
|
|
506
|
+
pool_quote_token_reserves: bigint;
|
|
507
|
+
quote_amount_out: bigint;
|
|
508
|
+
lp_fee_basis_points: bigint;
|
|
509
|
+
lp_fee: bigint;
|
|
510
|
+
protocol_fee_basis_points: bigint;
|
|
511
|
+
protocol_fee: bigint;
|
|
512
|
+
quote_amount_out_without_lp_fee: bigint;
|
|
513
|
+
user_quote_amount_out: bigint;
|
|
514
|
+
pool: string;
|
|
515
|
+
user: string;
|
|
516
|
+
user_base_token_account: string;
|
|
517
|
+
user_quote_token_account: string;
|
|
518
|
+
protocol_fee_recipient: string;
|
|
519
|
+
protocol_fee_recipient_token_account: string;
|
|
520
|
+
coin_creator: string;
|
|
521
|
+
coin_creator_fee_basis_points: bigint;
|
|
522
|
+
coin_creator_fee: bigint;
|
|
523
|
+
cashback_fee_basis_points: bigint;
|
|
524
|
+
cashback: bigint;
|
|
525
|
+
is_pump_pool: boolean;
|
|
526
|
+
base_mint: string;
|
|
527
|
+
quote_mint: string;
|
|
528
|
+
pool_base_token_account: string;
|
|
529
|
+
pool_quote_token_account: string;
|
|
530
|
+
coin_creator_vault_ata: string;
|
|
531
|
+
coin_creator_vault_authority: string;
|
|
532
|
+
base_token_program: string;
|
|
533
|
+
quote_token_program: string;
|
|
534
|
+
pool_v2?: string;
|
|
535
|
+
fee_recipient?: string;
|
|
536
|
+
fee_recipient_quote_token_account?: string;
|
|
537
|
+
}
|
|
538
|
+
export interface PumpSwapCreatePoolEvent {
|
|
539
|
+
metadata: EventMetadata;
|
|
540
|
+
timestamp: bigint;
|
|
541
|
+
index: number;
|
|
542
|
+
creator: string;
|
|
543
|
+
base_mint: string;
|
|
544
|
+
quote_mint: string;
|
|
545
|
+
base_mint_decimals: number;
|
|
546
|
+
quote_mint_decimals: number;
|
|
547
|
+
base_amount_in: bigint;
|
|
548
|
+
quote_amount_in: bigint;
|
|
549
|
+
pool_base_amount: bigint;
|
|
550
|
+
pool_quote_amount: bigint;
|
|
551
|
+
minimum_liquidity: bigint;
|
|
552
|
+
initial_liquidity: bigint;
|
|
553
|
+
lp_token_amount_out: bigint;
|
|
554
|
+
pool_bump: number;
|
|
555
|
+
pool: string;
|
|
556
|
+
lp_mint: string;
|
|
557
|
+
user_base_token_account: string;
|
|
558
|
+
user_quote_token_account: string;
|
|
559
|
+
coin_creator: string;
|
|
560
|
+
is_mayhem_mode: boolean;
|
|
561
|
+
}
|
|
562
|
+
export interface PumpSwapLiquidityAdded {
|
|
563
|
+
metadata: EventMetadata;
|
|
564
|
+
timestamp: bigint;
|
|
565
|
+
lp_token_amount_out: bigint;
|
|
566
|
+
max_base_amount_in: bigint;
|
|
567
|
+
max_quote_amount_in: bigint;
|
|
568
|
+
user_base_token_reserves: bigint;
|
|
569
|
+
user_quote_token_reserves: bigint;
|
|
570
|
+
pool_base_token_reserves: bigint;
|
|
571
|
+
pool_quote_token_reserves: bigint;
|
|
572
|
+
base_amount_in: bigint;
|
|
573
|
+
quote_amount_in: bigint;
|
|
574
|
+
lp_mint_supply: bigint;
|
|
575
|
+
pool: string;
|
|
576
|
+
user: string;
|
|
577
|
+
user_base_token_account: string;
|
|
578
|
+
user_quote_token_account: string;
|
|
579
|
+
user_pool_token_account: string;
|
|
580
|
+
}
|
|
581
|
+
export interface PumpSwapLiquidityRemoved {
|
|
582
|
+
metadata: EventMetadata;
|
|
583
|
+
timestamp: bigint;
|
|
584
|
+
lp_token_amount_in: bigint;
|
|
585
|
+
min_base_amount_out: bigint;
|
|
586
|
+
min_quote_amount_out: bigint;
|
|
587
|
+
user_base_token_reserves: bigint;
|
|
588
|
+
user_quote_token_reserves: bigint;
|
|
589
|
+
pool_base_token_reserves: bigint;
|
|
590
|
+
pool_quote_token_reserves: bigint;
|
|
591
|
+
base_amount_out: bigint;
|
|
592
|
+
quote_amount_out: bigint;
|
|
593
|
+
lp_mint_supply: bigint;
|
|
594
|
+
pool: string;
|
|
595
|
+
user: string;
|
|
596
|
+
user_base_token_account: string;
|
|
597
|
+
user_quote_token_account: string;
|
|
598
|
+
user_pool_token_account: string;
|
|
599
|
+
}
|
|
600
|
+
/**
|
|
601
|
+
* Raydium CLMM Swap(Program data 子集)。
|
|
602
|
+
* `sqrt_price_x64` 对应链上载荷中的 sqrt price limit u128。
|
|
603
|
+
* TS 为 `bigint`;Go/Python 落 JSON 时为十进制字符串;占位 `liquidity` 为 `0n` / `"0"`。
|
|
604
|
+
*/
|
|
605
|
+
export interface RaydiumClmmSwapEvent {
|
|
606
|
+
metadata: EventMetadata;
|
|
607
|
+
pool_state: string;
|
|
608
|
+
token_account_0: string;
|
|
609
|
+
token_account_1: string;
|
|
610
|
+
amount_0: bigint;
|
|
611
|
+
amount_1: bigint;
|
|
612
|
+
zero_for_one: boolean;
|
|
613
|
+
sqrt_price_x64: bigint;
|
|
614
|
+
liquidity: bigint;
|
|
615
|
+
sender: string;
|
|
616
|
+
transfer_fee_0: bigint;
|
|
617
|
+
transfer_fee_1: bigint;
|
|
618
|
+
tick: number;
|
|
619
|
+
}
|
|
620
|
+
/** `liquidity` 在 Go/Python 为十进制字符串。 */
|
|
621
|
+
export interface RaydiumClmmIncreaseLiquidityEvent {
|
|
622
|
+
metadata: EventMetadata;
|
|
623
|
+
pool: string;
|
|
624
|
+
position_nft_mint: string;
|
|
625
|
+
user: string;
|
|
626
|
+
liquidity: bigint;
|
|
627
|
+
amount_0: bigint;
|
|
628
|
+
amount_1: bigint;
|
|
629
|
+
amount_0_transfer_fee: bigint;
|
|
630
|
+
amount_1_transfer_fee: bigint;
|
|
631
|
+
amount0_max: bigint;
|
|
632
|
+
amount1_max: bigint;
|
|
633
|
+
}
|
|
634
|
+
/** `liquidity` 在 Go/Python 为十进制字符串。 */
|
|
635
|
+
export interface RaydiumClmmDecreaseLiquidityEvent {
|
|
636
|
+
metadata: EventMetadata;
|
|
637
|
+
pool: string;
|
|
638
|
+
position_nft_mint: string;
|
|
639
|
+
user: string;
|
|
640
|
+
liquidity: bigint;
|
|
641
|
+
decrease_amount_0: bigint;
|
|
642
|
+
decrease_amount_1: bigint;
|
|
643
|
+
fee_amount_0: bigint;
|
|
644
|
+
fee_amount_1: bigint;
|
|
645
|
+
reward_amounts: [bigint, bigint, bigint];
|
|
646
|
+
transfer_fee_0: bigint;
|
|
647
|
+
transfer_fee_1: bigint;
|
|
648
|
+
amount0_min: bigint;
|
|
649
|
+
amount1_min: bigint;
|
|
650
|
+
}
|
|
651
|
+
/** `sqrt_price_x64` 在 Go/Python 为十进制字符串。 */
|
|
652
|
+
export interface RaydiumClmmCreatePoolEvent {
|
|
653
|
+
metadata: EventMetadata;
|
|
654
|
+
pool: string;
|
|
655
|
+
token_0_mint: string;
|
|
656
|
+
token_1_mint: string;
|
|
657
|
+
tick_spacing: number;
|
|
658
|
+
fee_rate: number;
|
|
659
|
+
creator: string;
|
|
660
|
+
sqrt_price_x64: bigint;
|
|
661
|
+
tick: number;
|
|
662
|
+
token_vault_0: string;
|
|
663
|
+
token_vault_1: string;
|
|
664
|
+
open_time: bigint;
|
|
665
|
+
}
|
|
666
|
+
/** 与 `RaydiumClmmOpenPositionEvent` 对齐 */
|
|
667
|
+
export interface RaydiumClmmOpenPositionEvent {
|
|
668
|
+
metadata: EventMetadata;
|
|
669
|
+
pool: string;
|
|
670
|
+
user: string;
|
|
671
|
+
position_nft_mint: string;
|
|
672
|
+
tick_lower_index: number;
|
|
673
|
+
tick_upper_index: number;
|
|
674
|
+
liquidity: bigint;
|
|
675
|
+
}
|
|
676
|
+
/** 与 `RaydiumClmmOpenPositionWithTokenExtNftEvent` 对齐 */
|
|
677
|
+
export interface RaydiumClmmOpenPositionWithTokenExtNftEvent {
|
|
678
|
+
metadata: EventMetadata;
|
|
679
|
+
pool: string;
|
|
680
|
+
user: string;
|
|
681
|
+
position_nft_mint: string;
|
|
682
|
+
tick_lower_index: number;
|
|
683
|
+
tick_upper_index: number;
|
|
684
|
+
liquidity: bigint;
|
|
685
|
+
}
|
|
686
|
+
/** 与 `RaydiumClmmClosePositionEvent` 对齐 */
|
|
687
|
+
export interface RaydiumClmmClosePositionEvent {
|
|
688
|
+
metadata: EventMetadata;
|
|
689
|
+
pool: string;
|
|
690
|
+
user: string;
|
|
691
|
+
position_nft_mint: string;
|
|
692
|
+
}
|
|
693
|
+
export interface RaydiumClmmCollectFeeEvent {
|
|
694
|
+
metadata: EventMetadata;
|
|
695
|
+
pool_state: string;
|
|
696
|
+
position_nft_mint: string;
|
|
697
|
+
recipient_token_account_0: string;
|
|
698
|
+
recipient_token_account_1: string;
|
|
699
|
+
amount_0: bigint;
|
|
700
|
+
amount_1: bigint;
|
|
701
|
+
}
|
|
702
|
+
export interface RaydiumClmmLiquidityChangeEvent {
|
|
703
|
+
metadata: EventMetadata;
|
|
704
|
+
pool_state: string;
|
|
705
|
+
tick: number;
|
|
706
|
+
tick_lower: number;
|
|
707
|
+
tick_upper: number;
|
|
708
|
+
liquidity_before: bigint;
|
|
709
|
+
liquidity_after: bigint;
|
|
710
|
+
}
|
|
711
|
+
export interface RaydiumClmmConfigChangeEvent {
|
|
712
|
+
metadata: EventMetadata;
|
|
713
|
+
index: number;
|
|
714
|
+
owner: string;
|
|
715
|
+
protocol_fee_rate: number;
|
|
716
|
+
trade_fee_rate: number;
|
|
717
|
+
tick_spacing: number;
|
|
718
|
+
fund_fee_rate: number;
|
|
719
|
+
fund_owner: string;
|
|
720
|
+
}
|
|
721
|
+
export interface RaydiumClmmCreatePersonalPositionEvent {
|
|
722
|
+
metadata: EventMetadata;
|
|
723
|
+
pool_state: string;
|
|
724
|
+
minter: string;
|
|
725
|
+
nft_owner: string;
|
|
726
|
+
tick_lower_index: number;
|
|
727
|
+
tick_upper_index: number;
|
|
728
|
+
liquidity: bigint;
|
|
729
|
+
deposit_amount_0: bigint;
|
|
730
|
+
deposit_amount_1: bigint;
|
|
731
|
+
deposit_amount_0_transfer_fee: bigint;
|
|
732
|
+
deposit_amount_1_transfer_fee: bigint;
|
|
733
|
+
}
|
|
734
|
+
export interface RaydiumClmmLiquidityCalculateEvent {
|
|
735
|
+
metadata: EventMetadata;
|
|
736
|
+
pool_liquidity: bigint;
|
|
737
|
+
pool_sqrt_price_x64: bigint;
|
|
738
|
+
pool_tick: number;
|
|
739
|
+
calc_amount_0: bigint;
|
|
740
|
+
calc_amount_1: bigint;
|
|
741
|
+
trade_fee_owed_0: bigint;
|
|
742
|
+
trade_fee_owed_1: bigint;
|
|
743
|
+
transfer_fee_0: bigint;
|
|
744
|
+
transfer_fee_1: bigint;
|
|
745
|
+
}
|
|
746
|
+
export interface RaydiumClmmOpenLimitOrderEvent {
|
|
747
|
+
metadata: EventMetadata;
|
|
748
|
+
pool_id: string;
|
|
749
|
+
limit_order: string;
|
|
750
|
+
zero_for_one: boolean;
|
|
751
|
+
tick_index: number;
|
|
752
|
+
total_amount: bigint;
|
|
753
|
+
transfer_fee: bigint;
|
|
754
|
+
}
|
|
755
|
+
export interface RaydiumClmmIncreaseLimitOrderEvent {
|
|
756
|
+
metadata: EventMetadata;
|
|
757
|
+
pool_id: string;
|
|
758
|
+
limit_order: string;
|
|
759
|
+
zero_for_one: boolean;
|
|
760
|
+
tick_index: number;
|
|
761
|
+
total_amount: bigint;
|
|
762
|
+
increased_amount: bigint;
|
|
763
|
+
transfer_fee: bigint;
|
|
764
|
+
}
|
|
765
|
+
export interface RaydiumClmmDecreaseLimitOrderEvent {
|
|
766
|
+
metadata: EventMetadata;
|
|
767
|
+
pool_id: string;
|
|
768
|
+
limit_order: string;
|
|
769
|
+
zero_for_one: boolean;
|
|
770
|
+
tick_index: number;
|
|
771
|
+
total_amount: bigint;
|
|
772
|
+
filled_amount: bigint;
|
|
773
|
+
settled_output_amount: bigint;
|
|
774
|
+
decreased_amount: bigint;
|
|
775
|
+
}
|
|
776
|
+
export interface RaydiumClmmSettleLimitOrderEvent {
|
|
777
|
+
metadata: EventMetadata;
|
|
778
|
+
pool_id: string;
|
|
779
|
+
limit_order: string;
|
|
780
|
+
zero_for_one: boolean;
|
|
781
|
+
tick_index: number;
|
|
782
|
+
total_amount: bigint;
|
|
783
|
+
filled_amount: bigint;
|
|
784
|
+
settled_amount_out: bigint;
|
|
785
|
+
}
|
|
786
|
+
export interface RaydiumClmmUpdateRewardInfosEvent {
|
|
787
|
+
metadata: EventMetadata;
|
|
788
|
+
reward_growth_global_x64: [bigint, bigint, bigint];
|
|
789
|
+
}
|
|
790
|
+
export interface RaydiumCpmmSwapEvent {
|
|
791
|
+
metadata: EventMetadata;
|
|
792
|
+
pool_id: string;
|
|
793
|
+
input_vault_before: bigint;
|
|
794
|
+
output_vault_before: bigint;
|
|
795
|
+
input_amount: bigint;
|
|
796
|
+
output_amount: bigint;
|
|
797
|
+
input_transfer_fee: bigint;
|
|
798
|
+
output_transfer_fee: bigint;
|
|
799
|
+
base_input: boolean;
|
|
800
|
+
}
|
|
801
|
+
export interface RaydiumCpmmDepositEvent {
|
|
802
|
+
metadata: EventMetadata;
|
|
803
|
+
pool: string;
|
|
804
|
+
user: string;
|
|
805
|
+
lp_token_amount: bigint;
|
|
806
|
+
token0_amount: bigint;
|
|
807
|
+
token1_amount: bigint;
|
|
808
|
+
}
|
|
809
|
+
export interface RaydiumCpmmWithdrawEvent {
|
|
810
|
+
metadata: EventMetadata;
|
|
811
|
+
pool: string;
|
|
812
|
+
user: string;
|
|
813
|
+
lp_token_amount: bigint;
|
|
814
|
+
token0_amount: bigint;
|
|
815
|
+
token1_amount: bigint;
|
|
816
|
+
}
|
|
817
|
+
export interface RaydiumCpmmInitializeEvent {
|
|
818
|
+
metadata: EventMetadata;
|
|
819
|
+
pool: string;
|
|
820
|
+
creator: string;
|
|
821
|
+
init_amount0: bigint;
|
|
822
|
+
init_amount1: bigint;
|
|
823
|
+
}
|
|
824
|
+
export interface RaydiumAmmV4SwapEvent {
|
|
825
|
+
metadata: EventMetadata;
|
|
826
|
+
amount_in: bigint;
|
|
827
|
+
minimum_amount_out: bigint;
|
|
828
|
+
max_amount_in: bigint;
|
|
829
|
+
amount_out: bigint;
|
|
830
|
+
token_program: string;
|
|
831
|
+
amm: string;
|
|
832
|
+
amm_authority: string;
|
|
833
|
+
amm_open_orders: string;
|
|
834
|
+
amm_target_orders?: string;
|
|
835
|
+
pool_coin_token_account: string;
|
|
836
|
+
pool_pc_token_account: string;
|
|
837
|
+
serum_program: string;
|
|
838
|
+
serum_market: string;
|
|
839
|
+
serum_bids: string;
|
|
840
|
+
serum_asks: string;
|
|
841
|
+
serum_event_queue: string;
|
|
842
|
+
serum_coin_vault_account: string;
|
|
843
|
+
serum_pc_vault_account: string;
|
|
844
|
+
serum_vault_signer: string;
|
|
845
|
+
user_source_token_account: string;
|
|
846
|
+
user_destination_token_account: string;
|
|
847
|
+
user_source_owner: string;
|
|
848
|
+
}
|
|
849
|
+
export interface RaydiumAmmV4DepositEvent {
|
|
850
|
+
metadata: EventMetadata;
|
|
851
|
+
max_coin_amount: bigint;
|
|
852
|
+
max_pc_amount: bigint;
|
|
853
|
+
base_side: bigint;
|
|
854
|
+
token_program: string;
|
|
855
|
+
amm: string;
|
|
856
|
+
amm_authority: string;
|
|
857
|
+
amm_open_orders: string;
|
|
858
|
+
amm_target_orders: string;
|
|
859
|
+
lp_mint_address: string;
|
|
860
|
+
pool_coin_token_account: string;
|
|
861
|
+
pool_pc_token_account: string;
|
|
862
|
+
serum_market: string;
|
|
863
|
+
user_coin_token_account: string;
|
|
864
|
+
user_pc_token_account: string;
|
|
865
|
+
user_lp_token_account: string;
|
|
866
|
+
user_owner: string;
|
|
867
|
+
serum_event_queue: string;
|
|
868
|
+
}
|
|
869
|
+
export interface RaydiumAmmV4WithdrawEvent {
|
|
870
|
+
metadata: EventMetadata;
|
|
871
|
+
amount: bigint;
|
|
872
|
+
token_program: string;
|
|
873
|
+
amm: string;
|
|
874
|
+
amm_authority: string;
|
|
875
|
+
amm_open_orders: string;
|
|
876
|
+
amm_target_orders: string;
|
|
877
|
+
lp_mint_address: string;
|
|
878
|
+
pool_coin_token_account: string;
|
|
879
|
+
pool_pc_token_account: string;
|
|
880
|
+
pool_withdraw_queue: string;
|
|
881
|
+
pool_temp_lp_token_account: string;
|
|
882
|
+
serum_program: string;
|
|
883
|
+
serum_market: string;
|
|
884
|
+
serum_coin_vault_account: string;
|
|
885
|
+
serum_pc_vault_account: string;
|
|
886
|
+
serum_vault_signer: string;
|
|
887
|
+
user_lp_token_account: string;
|
|
888
|
+
user_coin_token_account: string;
|
|
889
|
+
user_pc_token_account: string;
|
|
890
|
+
user_owner: string;
|
|
891
|
+
serum_event_queue: string;
|
|
892
|
+
serum_bids: string;
|
|
893
|
+
serum_asks: string;
|
|
894
|
+
}
|
|
895
|
+
/** 与 `RaydiumAmmV4WithdrawPnlEvent` 对齐 */
|
|
896
|
+
export interface RaydiumAmmV4WithdrawPnlEvent {
|
|
897
|
+
metadata: EventMetadata;
|
|
898
|
+
token_program: string;
|
|
899
|
+
amm: string;
|
|
900
|
+
amm_config: string;
|
|
901
|
+
amm_authority: string;
|
|
902
|
+
amm_open_orders: string;
|
|
903
|
+
pool_coin_token_account: string;
|
|
904
|
+
pool_pc_token_account: string;
|
|
905
|
+
coin_pnl_token_account: string;
|
|
906
|
+
pc_pnl_token_account: string;
|
|
907
|
+
pnl_owner: string;
|
|
908
|
+
amm_target_orders: string;
|
|
909
|
+
serum_program: string;
|
|
910
|
+
serum_market: string;
|
|
911
|
+
serum_event_queue: string;
|
|
912
|
+
serum_coin_vault_account: string;
|
|
913
|
+
serum_pc_vault_account: string;
|
|
914
|
+
serum_vault_signer: string;
|
|
915
|
+
}
|
|
916
|
+
/** 与 `RaydiumAmmV4Initialize2Event` 对齐 */
|
|
917
|
+
export interface RaydiumAmmV4Initialize2Event {
|
|
918
|
+
metadata: EventMetadata;
|
|
919
|
+
nonce: number;
|
|
920
|
+
open_time: bigint;
|
|
921
|
+
init_pc_amount: bigint;
|
|
922
|
+
init_coin_amount: bigint;
|
|
923
|
+
token_program: string;
|
|
924
|
+
spl_associated_token_account: string;
|
|
925
|
+
system_program: string;
|
|
926
|
+
rent: string;
|
|
927
|
+
amm: string;
|
|
928
|
+
amm_authority: string;
|
|
929
|
+
amm_open_orders: string;
|
|
930
|
+
lp_mint: string;
|
|
931
|
+
coin_mint: string;
|
|
932
|
+
pc_mint: string;
|
|
933
|
+
pool_coin_token_account: string;
|
|
934
|
+
pool_pc_token_account: string;
|
|
935
|
+
pool_withdraw_queue: string;
|
|
936
|
+
amm_target_orders: string;
|
|
937
|
+
pool_temp_lp: string;
|
|
938
|
+
serum_program: string;
|
|
939
|
+
serum_market: string;
|
|
940
|
+
user_wallet: string;
|
|
941
|
+
user_token_coin: string;
|
|
942
|
+
user_token_pc: string;
|
|
943
|
+
user_lp_token_account: string;
|
|
944
|
+
}
|
|
945
|
+
/** Orca Whirlpool:u128 语义字段在 TS 为 `bigint`;Go/Python 为十进制字符串。 */
|
|
946
|
+
export interface OrcaWhirlpoolSwapEvent {
|
|
947
|
+
metadata: EventMetadata;
|
|
948
|
+
whirlpool: string;
|
|
949
|
+
a_to_b: boolean;
|
|
950
|
+
pre_sqrt_price: bigint;
|
|
951
|
+
post_sqrt_price: bigint;
|
|
952
|
+
input_amount: bigint;
|
|
953
|
+
output_amount: bigint;
|
|
954
|
+
input_transfer_fee: bigint;
|
|
955
|
+
output_transfer_fee: bigint;
|
|
956
|
+
lp_fee: bigint;
|
|
957
|
+
protocol_fee: bigint;
|
|
958
|
+
}
|
|
959
|
+
/** `liquidity` 在 Go/Python 为十进制字符串。 */
|
|
960
|
+
export interface OrcaWhirlpoolLiquidityIncreasedEvent {
|
|
961
|
+
metadata: EventMetadata;
|
|
962
|
+
whirlpool: string;
|
|
963
|
+
position: string;
|
|
964
|
+
tick_lower_index: number;
|
|
965
|
+
tick_upper_index: number;
|
|
966
|
+
liquidity: bigint;
|
|
967
|
+
token_a_amount: bigint;
|
|
968
|
+
token_b_amount: bigint;
|
|
969
|
+
token_a_transfer_fee: bigint;
|
|
970
|
+
token_b_transfer_fee: bigint;
|
|
971
|
+
}
|
|
972
|
+
/** `liquidity` 在 Go/Python 为十进制字符串。 */
|
|
973
|
+
export interface OrcaWhirlpoolLiquidityDecreasedEvent {
|
|
974
|
+
metadata: EventMetadata;
|
|
975
|
+
whirlpool: string;
|
|
976
|
+
position: string;
|
|
977
|
+
tick_lower_index: number;
|
|
978
|
+
tick_upper_index: number;
|
|
979
|
+
liquidity: bigint;
|
|
980
|
+
token_a_amount: bigint;
|
|
981
|
+
token_b_amount: bigint;
|
|
982
|
+
token_a_transfer_fee: bigint;
|
|
983
|
+
token_b_transfer_fee: bigint;
|
|
984
|
+
}
|
|
985
|
+
/** `initial_sqrt_price` 在 Go/Python 为十进制字符串。 */
|
|
986
|
+
export interface OrcaWhirlpoolPoolInitializedEvent {
|
|
987
|
+
metadata: EventMetadata;
|
|
988
|
+
whirlpool: string;
|
|
989
|
+
whirlpools_config: string;
|
|
990
|
+
token_mint_a: string;
|
|
991
|
+
token_mint_b: string;
|
|
992
|
+
tick_spacing: number;
|
|
993
|
+
token_program_a: string;
|
|
994
|
+
token_program_b: string;
|
|
995
|
+
decimals_a: number;
|
|
996
|
+
decimals_b: number;
|
|
997
|
+
initial_sqrt_price: bigint;
|
|
998
|
+
}
|
|
999
|
+
export interface MeteoraPoolsSwapEvent {
|
|
1000
|
+
metadata: EventMetadata;
|
|
1001
|
+
in_amount: bigint;
|
|
1002
|
+
out_amount: bigint;
|
|
1003
|
+
trade_fee: bigint;
|
|
1004
|
+
admin_fee: bigint;
|
|
1005
|
+
host_fee: bigint;
|
|
1006
|
+
}
|
|
1007
|
+
export interface MeteoraPoolsAddLiquidityEvent {
|
|
1008
|
+
metadata: EventMetadata;
|
|
1009
|
+
lp_mint_amount: bigint;
|
|
1010
|
+
token_a_amount: bigint;
|
|
1011
|
+
token_b_amount: bigint;
|
|
1012
|
+
}
|
|
1013
|
+
export interface MeteoraPoolsRemoveLiquidityEvent {
|
|
1014
|
+
metadata: EventMetadata;
|
|
1015
|
+
lp_unmint_amount: bigint;
|
|
1016
|
+
token_a_out_amount: bigint;
|
|
1017
|
+
token_b_out_amount: bigint;
|
|
1018
|
+
}
|
|
1019
|
+
export interface MeteoraPoolsBootstrapLiquidityEvent {
|
|
1020
|
+
metadata: EventMetadata;
|
|
1021
|
+
lp_mint_amount: bigint;
|
|
1022
|
+
token_a_amount: bigint;
|
|
1023
|
+
token_b_amount: bigint;
|
|
1024
|
+
pool: string;
|
|
1025
|
+
}
|
|
1026
|
+
export interface MeteoraPoolsPoolCreatedEvent {
|
|
1027
|
+
metadata: EventMetadata;
|
|
1028
|
+
lp_mint: string;
|
|
1029
|
+
token_a_mint: string;
|
|
1030
|
+
token_b_mint: string;
|
|
1031
|
+
pool_type: number;
|
|
1032
|
+
pool: string;
|
|
1033
|
+
}
|
|
1034
|
+
/**
|
|
1035
|
+
* Meteora DAMM v2 Swap。TS 内 u128 语义字段为 `bigint`;
|
|
1036
|
+
* Go `DexEvent` / Python 解析结果中 `next_sqrt_price` 等为**十进制字符串**(与 `bigint` 十进制一致)。
|
|
1037
|
+
*/
|
|
1038
|
+
export interface MeteoraDammV2SwapEvent {
|
|
1039
|
+
metadata: EventMetadata;
|
|
1040
|
+
pool: string;
|
|
1041
|
+
amount_in: bigint;
|
|
1042
|
+
output_amount: bigint;
|
|
1043
|
+
trade_direction: number;
|
|
1044
|
+
has_referral: boolean;
|
|
1045
|
+
minimum_amount_out: bigint;
|
|
1046
|
+
next_sqrt_price: bigint;
|
|
1047
|
+
lp_fee: bigint;
|
|
1048
|
+
protocol_fee: bigint;
|
|
1049
|
+
partner_fee: bigint;
|
|
1050
|
+
referral_fee: bigint;
|
|
1051
|
+
actual_amount_in: bigint;
|
|
1052
|
+
current_timestamp: bigint;
|
|
1053
|
+
token_a_vault: string;
|
|
1054
|
+
token_b_vault: string;
|
|
1055
|
+
token_a_mint: string;
|
|
1056
|
+
token_b_mint: string;
|
|
1057
|
+
token_a_program: string;
|
|
1058
|
+
token_b_program: string;
|
|
1059
|
+
}
|
|
1060
|
+
/** 与 `MeteoraDammV2AddLiquidityEvent` 对齐;Go/Python 中 `liquidity_delta` 为十进制字符串。 */
|
|
1061
|
+
export interface MeteoraDammV2AddLiquidityEvent {
|
|
1062
|
+
metadata: EventMetadata;
|
|
1063
|
+
pool: string;
|
|
1064
|
+
position: string;
|
|
1065
|
+
owner: string;
|
|
1066
|
+
token_a_amount: bigint;
|
|
1067
|
+
token_b_amount: bigint;
|
|
1068
|
+
liquidity_delta: bigint;
|
|
1069
|
+
token_a_amount_threshold: bigint;
|
|
1070
|
+
token_b_amount_threshold: bigint;
|
|
1071
|
+
total_amount_a: bigint;
|
|
1072
|
+
total_amount_b: bigint;
|
|
1073
|
+
}
|
|
1074
|
+
/** 与 `MeteoraDammV2RemoveLiquidityEvent` 对齐;Go/Python 中 `liquidity_delta` 为十进制字符串。 */
|
|
1075
|
+
export interface MeteoraDammV2RemoveLiquidityEvent {
|
|
1076
|
+
metadata: EventMetadata;
|
|
1077
|
+
pool: string;
|
|
1078
|
+
position: string;
|
|
1079
|
+
owner: string;
|
|
1080
|
+
token_a_amount: bigint;
|
|
1081
|
+
token_b_amount: bigint;
|
|
1082
|
+
liquidity_delta: bigint;
|
|
1083
|
+
token_a_amount_threshold: bigint;
|
|
1084
|
+
token_b_amount_threshold: bigint;
|
|
1085
|
+
}
|
|
1086
|
+
/** 与 `MeteoraDammV2CreatePositionEvent` 对齐 */
|
|
1087
|
+
export interface MeteoraDammV2CreatePositionEvent {
|
|
1088
|
+
metadata: EventMetadata;
|
|
1089
|
+
pool: string;
|
|
1090
|
+
owner: string;
|
|
1091
|
+
position: string;
|
|
1092
|
+
position_nft_mint: string;
|
|
1093
|
+
}
|
|
1094
|
+
export interface MeteoraDammV2InitializePoolEvent {
|
|
1095
|
+
metadata: EventMetadata;
|
|
1096
|
+
pool: string;
|
|
1097
|
+
token_a_mint: string;
|
|
1098
|
+
token_b_mint: string;
|
|
1099
|
+
creator: string;
|
|
1100
|
+
payer: string;
|
|
1101
|
+
alpha_vault: string;
|
|
1102
|
+
pool_fees: unknown;
|
|
1103
|
+
sqrt_min_price: bigint;
|
|
1104
|
+
sqrt_max_price: bigint;
|
|
1105
|
+
activation_type: number;
|
|
1106
|
+
collect_fee_mode: number;
|
|
1107
|
+
liquidity: bigint;
|
|
1108
|
+
sqrt_price: bigint;
|
|
1109
|
+
activation_point: bigint;
|
|
1110
|
+
token_a_flag: number;
|
|
1111
|
+
token_b_flag: number;
|
|
1112
|
+
token_a_amount: bigint;
|
|
1113
|
+
token_b_amount: bigint;
|
|
1114
|
+
total_amount_a: bigint;
|
|
1115
|
+
total_amount_b: bigint;
|
|
1116
|
+
pool_type: number;
|
|
1117
|
+
position?: string;
|
|
1118
|
+
position_nft_mint?: string;
|
|
1119
|
+
}
|
|
1120
|
+
/** 与 `MeteoraDammV2ClosePositionEvent` 对齐 */
|
|
1121
|
+
export interface MeteoraDammV2ClosePositionEvent {
|
|
1122
|
+
metadata: EventMetadata;
|
|
1123
|
+
pool: string;
|
|
1124
|
+
owner: string;
|
|
1125
|
+
position: string;
|
|
1126
|
+
position_nft_mint: string;
|
|
1127
|
+
}
|
|
1128
|
+
export interface MeteoraDbcSwapEvent {
|
|
1129
|
+
metadata: EventMetadata;
|
|
1130
|
+
pool: string;
|
|
1131
|
+
config: string;
|
|
1132
|
+
trade_direction: number;
|
|
1133
|
+
has_referral: boolean;
|
|
1134
|
+
amount_in: bigint;
|
|
1135
|
+
minimum_amount_out: bigint;
|
|
1136
|
+
actual_input_amount: bigint;
|
|
1137
|
+
output_amount: bigint;
|
|
1138
|
+
next_sqrt_price: bigint;
|
|
1139
|
+
trading_fee: bigint;
|
|
1140
|
+
protocol_fee: bigint;
|
|
1141
|
+
referral_fee: bigint;
|
|
1142
|
+
current_timestamp: bigint;
|
|
1143
|
+
}
|
|
1144
|
+
export interface MeteoraDbcInitializePoolEvent {
|
|
1145
|
+
metadata: EventMetadata;
|
|
1146
|
+
pool: string;
|
|
1147
|
+
config: string;
|
|
1148
|
+
creator: string;
|
|
1149
|
+
base_mint: string;
|
|
1150
|
+
pool_type: number;
|
|
1151
|
+
activation_point: bigint;
|
|
1152
|
+
}
|
|
1153
|
+
export interface MeteoraDbcCurveCompleteEvent {
|
|
1154
|
+
metadata: EventMetadata;
|
|
1155
|
+
pool: string;
|
|
1156
|
+
config: string;
|
|
1157
|
+
base_reserve: bigint;
|
|
1158
|
+
quote_reserve: bigint;
|
|
1159
|
+
}
|
|
1160
|
+
/** Meteora DLMM Swap:`fee_bps` 在 Go/Python 为十进制字符串。 */
|
|
1161
|
+
export interface MeteoraDlmmSwapEvent {
|
|
1162
|
+
metadata: EventMetadata;
|
|
1163
|
+
pool: string;
|
|
1164
|
+
from: string;
|
|
1165
|
+
start_bin_id: number;
|
|
1166
|
+
end_bin_id: number;
|
|
1167
|
+
amount_in: bigint;
|
|
1168
|
+
amount_out: bigint;
|
|
1169
|
+
swap_for_y: boolean;
|
|
1170
|
+
fee: bigint;
|
|
1171
|
+
protocol_fee: bigint;
|
|
1172
|
+
fee_bps: bigint;
|
|
1173
|
+
host_fee: bigint;
|
|
1174
|
+
}
|
|
1175
|
+
export interface MeteoraPoolsSetPoolFeesEvent {
|
|
1176
|
+
metadata: EventMetadata;
|
|
1177
|
+
trade_fee_numerator: bigint;
|
|
1178
|
+
trade_fee_denominator: bigint;
|
|
1179
|
+
owner_trade_fee_numerator: bigint;
|
|
1180
|
+
owner_trade_fee_denominator: bigint;
|
|
1181
|
+
pool: string;
|
|
1182
|
+
}
|
|
1183
|
+
export interface MeteoraDlmmAddLiquidityEvent {
|
|
1184
|
+
metadata: EventMetadata;
|
|
1185
|
+
pool: string;
|
|
1186
|
+
from: string;
|
|
1187
|
+
position: string;
|
|
1188
|
+
amounts: [bigint, bigint];
|
|
1189
|
+
active_bin_id: number;
|
|
1190
|
+
}
|
|
1191
|
+
export interface MeteoraDlmmRemoveLiquidityEvent {
|
|
1192
|
+
metadata: EventMetadata;
|
|
1193
|
+
pool: string;
|
|
1194
|
+
from: string;
|
|
1195
|
+
position: string;
|
|
1196
|
+
amounts: [bigint, bigint];
|
|
1197
|
+
active_bin_id: number;
|
|
1198
|
+
}
|
|
1199
|
+
export interface MeteoraDlmmInitializePoolEvent {
|
|
1200
|
+
metadata: EventMetadata;
|
|
1201
|
+
pool: string;
|
|
1202
|
+
creator: string;
|
|
1203
|
+
active_bin_id: number;
|
|
1204
|
+
bin_step: number;
|
|
1205
|
+
}
|
|
1206
|
+
export interface MeteoraDlmmInitializeBinArrayEvent {
|
|
1207
|
+
metadata: EventMetadata;
|
|
1208
|
+
pool: string;
|
|
1209
|
+
bin_array: string;
|
|
1210
|
+
index: bigint;
|
|
1211
|
+
}
|
|
1212
|
+
export interface MeteoraDlmmCreatePositionEvent {
|
|
1213
|
+
metadata: EventMetadata;
|
|
1214
|
+
pool: string;
|
|
1215
|
+
position: string;
|
|
1216
|
+
owner: string;
|
|
1217
|
+
lower_bin_id: number;
|
|
1218
|
+
width: number;
|
|
1219
|
+
}
|
|
1220
|
+
export interface MeteoraDlmmClosePositionEvent {
|
|
1221
|
+
metadata: EventMetadata;
|
|
1222
|
+
pool: string;
|
|
1223
|
+
position: string;
|
|
1224
|
+
owner: string;
|
|
1225
|
+
}
|
|
1226
|
+
export interface MeteoraDlmmClaimFeeEvent {
|
|
1227
|
+
metadata: EventMetadata;
|
|
1228
|
+
pool: string;
|
|
1229
|
+
position: string;
|
|
1230
|
+
owner: string;
|
|
1231
|
+
fee_x: bigint;
|
|
1232
|
+
fee_y: bigint;
|
|
1233
|
+
}
|
|
1234
|
+
export type TradeDirection = "Buy" | "Sell";
|
|
1235
|
+
export interface RaydiumLaunchlabTradeEvent {
|
|
1236
|
+
metadata: EventMetadata;
|
|
1237
|
+
pool_state: string;
|
|
1238
|
+
user: string;
|
|
1239
|
+
amount_in: bigint;
|
|
1240
|
+
amount_out: bigint;
|
|
1241
|
+
is_buy: boolean;
|
|
1242
|
+
trade_direction: TradeDirection;
|
|
1243
|
+
exact_in: boolean;
|
|
1244
|
+
}
|
|
1245
|
+
export interface BaseMintParam {
|
|
1246
|
+
symbol: string;
|
|
1247
|
+
name: string;
|
|
1248
|
+
uri: string;
|
|
1249
|
+
decimals: number;
|
|
1250
|
+
}
|
|
1251
|
+
export interface RaydiumLaunchlabPoolCreateEvent {
|
|
1252
|
+
metadata: EventMetadata;
|
|
1253
|
+
base_mint_param: BaseMintParam;
|
|
1254
|
+
pool_state: string;
|
|
1255
|
+
creator: string;
|
|
1256
|
+
}
|
|
1257
|
+
export interface RaydiumLaunchlabMigrateAmmEvent {
|
|
1258
|
+
metadata: EventMetadata;
|
|
1259
|
+
old_pool: string;
|
|
1260
|
+
new_pool: string;
|
|
1261
|
+
user: string;
|
|
1262
|
+
liquidity_amount: bigint;
|
|
1263
|
+
}
|
|
1264
|
+
export interface TokenInfoEvent {
|
|
1265
|
+
metadata: EventMetadata;
|
|
1266
|
+
pubkey: string;
|
|
1267
|
+
executable: boolean;
|
|
1268
|
+
lamports: bigint;
|
|
1269
|
+
owner: string;
|
|
1270
|
+
rent_epoch: bigint;
|
|
1271
|
+
supply: bigint;
|
|
1272
|
+
decimals: number;
|
|
1273
|
+
}
|
|
1274
|
+
export interface TokenAccountEvent {
|
|
1275
|
+
metadata: EventMetadata;
|
|
1276
|
+
pubkey: string;
|
|
1277
|
+
executable: boolean;
|
|
1278
|
+
lamports: bigint;
|
|
1279
|
+
owner: string;
|
|
1280
|
+
rent_epoch: bigint;
|
|
1281
|
+
amount: bigint | null;
|
|
1282
|
+
token_owner: string;
|
|
1283
|
+
}
|
|
1284
|
+
export interface NonceAccountEvent {
|
|
1285
|
+
metadata: EventMetadata;
|
|
1286
|
+
pubkey: string;
|
|
1287
|
+
executable: boolean;
|
|
1288
|
+
lamports: bigint;
|
|
1289
|
+
owner: string;
|
|
1290
|
+
rent_epoch: bigint;
|
|
1291
|
+
nonce: string;
|
|
1292
|
+
authority: string;
|
|
1293
|
+
}
|
|
1294
|
+
export interface PumpFunGlobal {
|
|
1295
|
+
initialized: boolean;
|
|
1296
|
+
authority: string;
|
|
1297
|
+
fee_recipient: string;
|
|
1298
|
+
initial_virtual_token_reserves: bigint;
|
|
1299
|
+
initial_virtual_sol_reserves: bigint;
|
|
1300
|
+
initial_real_token_reserves: bigint;
|
|
1301
|
+
token_total_supply: bigint;
|
|
1302
|
+
fee_basis_points: bigint;
|
|
1303
|
+
withdraw_authority: string;
|
|
1304
|
+
enable_migrate: boolean;
|
|
1305
|
+
pool_migration_fee: bigint;
|
|
1306
|
+
creator_fee_basis_points: bigint;
|
|
1307
|
+
fee_recipients: string[];
|
|
1308
|
+
set_creator_authority: string;
|
|
1309
|
+
admin_set_creator_authority: string;
|
|
1310
|
+
create_v2_enabled: boolean;
|
|
1311
|
+
whitelist_pda: string;
|
|
1312
|
+
reserved_fee_recipient: string;
|
|
1313
|
+
mayhem_mode_enabled: boolean;
|
|
1314
|
+
reserved_fee_recipients: string[];
|
|
1315
|
+
is_cashback_enabled: boolean;
|
|
1316
|
+
buyback_fee_recipients: string[];
|
|
1317
|
+
buyback_basis_points: bigint;
|
|
1318
|
+
initial_virtual_quote_reserves: bigint;
|
|
1319
|
+
whitelisted_quote_mints: string[];
|
|
1320
|
+
}
|
|
1321
|
+
export interface PumpFunGlobalAccountEvent {
|
|
1322
|
+
metadata: EventMetadata;
|
|
1323
|
+
pubkey: string;
|
|
1324
|
+
global: PumpFunGlobal;
|
|
1325
|
+
}
|
|
1326
|
+
export interface PumpFunBondingCurve {
|
|
1327
|
+
virtual_token_reserves: bigint;
|
|
1328
|
+
virtual_quote_reserves: bigint;
|
|
1329
|
+
real_token_reserves: bigint;
|
|
1330
|
+
real_quote_reserves: bigint;
|
|
1331
|
+
token_total_supply: bigint;
|
|
1332
|
+
complete: boolean;
|
|
1333
|
+
creator: string;
|
|
1334
|
+
is_mayhem_mode: boolean;
|
|
1335
|
+
is_cashback_coin: boolean;
|
|
1336
|
+
quote_mint: string;
|
|
1337
|
+
}
|
|
1338
|
+
export interface PumpFunBondingCurveAccountEvent {
|
|
1339
|
+
metadata: EventMetadata;
|
|
1340
|
+
pubkey: string;
|
|
1341
|
+
bonding_curve: PumpFunBondingCurve;
|
|
1342
|
+
}
|
|
1343
|
+
export interface PumpFunFeeConfig {
|
|
1344
|
+
bump: number;
|
|
1345
|
+
admin: string;
|
|
1346
|
+
flat_fees: PumpFeesFees;
|
|
1347
|
+
fee_tiers: PumpFeesFeeTier[];
|
|
1348
|
+
stable_fee_tiers: PumpFeesFeeTier[];
|
|
1349
|
+
}
|
|
1350
|
+
export interface PumpFunFeeConfigAccountEvent {
|
|
1351
|
+
metadata: EventMetadata;
|
|
1352
|
+
pubkey: string;
|
|
1353
|
+
fee_config: PumpFunFeeConfig;
|
|
1354
|
+
}
|
|
1355
|
+
export interface PumpFunSharingConfig {
|
|
1356
|
+
bump: number;
|
|
1357
|
+
version: number;
|
|
1358
|
+
status: PumpFeesConfigStatus;
|
|
1359
|
+
mint: string;
|
|
1360
|
+
admin: string;
|
|
1361
|
+
admin_revoked: boolean;
|
|
1362
|
+
shareholders: PumpFeesShareholder[];
|
|
1363
|
+
}
|
|
1364
|
+
export interface PumpFunSharingConfigAccountEvent {
|
|
1365
|
+
metadata: EventMetadata;
|
|
1366
|
+
pubkey: string;
|
|
1367
|
+
sharing_config: PumpFunSharingConfig;
|
|
1368
|
+
}
|
|
1369
|
+
export interface PumpFunGlobalVolumeAccumulator {
|
|
1370
|
+
start_time: bigint;
|
|
1371
|
+
end_time: bigint;
|
|
1372
|
+
seconds_in_a_day: bigint;
|
|
1373
|
+
mint: string;
|
|
1374
|
+
total_token_supply: bigint[];
|
|
1375
|
+
sol_volumes: bigint[];
|
|
1376
|
+
}
|
|
1377
|
+
export interface PumpFunGlobalVolumeAccumulatorAccountEvent {
|
|
1378
|
+
metadata: EventMetadata;
|
|
1379
|
+
pubkey: string;
|
|
1380
|
+
global_volume_accumulator: PumpFunGlobalVolumeAccumulator;
|
|
1381
|
+
}
|
|
1382
|
+
export interface PumpFunUserVolumeAccumulator {
|
|
1383
|
+
user: string;
|
|
1384
|
+
needs_claim: boolean;
|
|
1385
|
+
total_unclaimed_tokens: bigint;
|
|
1386
|
+
total_claimed_tokens: bigint;
|
|
1387
|
+
current_sol_volume: bigint;
|
|
1388
|
+
last_update_timestamp: bigint;
|
|
1389
|
+
has_total_claimed_tokens: boolean;
|
|
1390
|
+
cashback_earned: bigint;
|
|
1391
|
+
total_cashback_claimed: bigint;
|
|
1392
|
+
stable_cashback_earned: bigint;
|
|
1393
|
+
total_stable_cashback_claimed: bigint;
|
|
1394
|
+
}
|
|
1395
|
+
export interface PumpFunUserVolumeAccumulatorAccountEvent {
|
|
1396
|
+
metadata: EventMetadata;
|
|
1397
|
+
pubkey: string;
|
|
1398
|
+
user_volume_accumulator: PumpFunUserVolumeAccumulator;
|
|
1399
|
+
}
|
|
1400
|
+
export interface PumpSwapGlobalConfig {
|
|
1401
|
+
admin: string;
|
|
1402
|
+
lp_fee_basis_points: bigint;
|
|
1403
|
+
protocol_fee_basis_points: bigint;
|
|
1404
|
+
disable_flags: number;
|
|
1405
|
+
protocol_fee_recipients: string[];
|
|
1406
|
+
coin_creator_fee_basis_points: bigint;
|
|
1407
|
+
admin_set_coin_creator_authority: string;
|
|
1408
|
+
whitelist_pda: string;
|
|
1409
|
+
reserved_fee_recipient: string;
|
|
1410
|
+
mayhem_mode_enabled: boolean;
|
|
1411
|
+
reserved_fee_recipients: string[];
|
|
1412
|
+
}
|
|
1413
|
+
export interface PumpSwapGlobalConfigAccountEvent {
|
|
1414
|
+
metadata: EventMetadata;
|
|
1415
|
+
pubkey: string;
|
|
1416
|
+
executable: boolean;
|
|
1417
|
+
lamports: bigint;
|
|
1418
|
+
owner: string;
|
|
1419
|
+
rent_epoch: bigint;
|
|
1420
|
+
global_config: PumpSwapGlobalConfig;
|
|
1421
|
+
}
|
|
1422
|
+
export interface PumpSwapPool {
|
|
1423
|
+
pool_bump: number;
|
|
1424
|
+
index: number;
|
|
1425
|
+
creator: string;
|
|
1426
|
+
base_mint: string;
|
|
1427
|
+
quote_mint: string;
|
|
1428
|
+
lp_mint: string;
|
|
1429
|
+
pool_base_token_account: string;
|
|
1430
|
+
pool_quote_token_account: string;
|
|
1431
|
+
lp_supply: bigint;
|
|
1432
|
+
coin_creator: string;
|
|
1433
|
+
is_mayhem_mode: boolean;
|
|
1434
|
+
is_cashback_coin: boolean;
|
|
1435
|
+
}
|
|
1436
|
+
export interface PumpSwapPoolAccountEvent {
|
|
1437
|
+
metadata: EventMetadata;
|
|
1438
|
+
pubkey: string;
|
|
1439
|
+
executable: boolean;
|
|
1440
|
+
lamports: bigint;
|
|
1441
|
+
owner: string;
|
|
1442
|
+
rent_epoch: bigint;
|
|
1443
|
+
pool: PumpSwapPool;
|
|
1444
|
+
}
|
|
1445
|
+
export interface RaydiumClmmAmmConfigAccountEvent {
|
|
1446
|
+
metadata: EventMetadata;
|
|
1447
|
+
pubkey: string;
|
|
1448
|
+
amm_config: RaydiumClmmAmmConfig;
|
|
1449
|
+
}
|
|
1450
|
+
export interface RaydiumClmmAmmConfig {
|
|
1451
|
+
bump: number;
|
|
1452
|
+
index: number;
|
|
1453
|
+
owner: string;
|
|
1454
|
+
protocol_fee_rate: number;
|
|
1455
|
+
trade_fee_rate: number;
|
|
1456
|
+
tick_spacing: number;
|
|
1457
|
+
fund_fee_rate: number;
|
|
1458
|
+
padding_u32: number;
|
|
1459
|
+
fund_owner: string;
|
|
1460
|
+
padding: bigint[];
|
|
1461
|
+
}
|
|
1462
|
+
export interface RaydiumClmmPoolStateAccountEvent {
|
|
1463
|
+
metadata: EventMetadata;
|
|
1464
|
+
pubkey: string;
|
|
1465
|
+
pool_state: RaydiumClmmPoolState;
|
|
1466
|
+
}
|
|
1467
|
+
export interface RaydiumClmmPoolState {
|
|
1468
|
+
bump: [number];
|
|
1469
|
+
amm_config: string;
|
|
1470
|
+
owner: string;
|
|
1471
|
+
token_mint_0: string;
|
|
1472
|
+
token_mint_1: string;
|
|
1473
|
+
token_vault_0: string;
|
|
1474
|
+
token_vault_1: string;
|
|
1475
|
+
observation_key: string;
|
|
1476
|
+
mint_decimals_0: number;
|
|
1477
|
+
mint_decimals_1: number;
|
|
1478
|
+
tick_spacing: number;
|
|
1479
|
+
liquidity: bigint;
|
|
1480
|
+
sqrt_price_x64: bigint;
|
|
1481
|
+
tick_current: number;
|
|
1482
|
+
padding3: number;
|
|
1483
|
+
padding4: number;
|
|
1484
|
+
fee_growth_global_0_x64: bigint;
|
|
1485
|
+
fee_growth_global_1_x64: bigint;
|
|
1486
|
+
protocol_fees_token_0: bigint;
|
|
1487
|
+
protocol_fees_token_1: bigint;
|
|
1488
|
+
padding5: bigint[];
|
|
1489
|
+
status: number;
|
|
1490
|
+
fee_on: number;
|
|
1491
|
+
padding: number[];
|
|
1492
|
+
reward_infos: RaydiumClmmRewardInfo[];
|
|
1493
|
+
tick_array_bitmap: bigint[];
|
|
1494
|
+
padding6: bigint[];
|
|
1495
|
+
fund_fees_token_0: bigint;
|
|
1496
|
+
fund_fees_token_1: bigint;
|
|
1497
|
+
open_time: bigint;
|
|
1498
|
+
recent_epoch: bigint;
|
|
1499
|
+
dynamic_fee_info: RaydiumClmmDynamicFeeInfo;
|
|
1500
|
+
padding1: bigint[];
|
|
1501
|
+
padding2: bigint[];
|
|
1502
|
+
}
|
|
1503
|
+
export interface RaydiumClmmRewardInfo {
|
|
1504
|
+
reward_state: number;
|
|
1505
|
+
open_time: bigint;
|
|
1506
|
+
end_time: bigint;
|
|
1507
|
+
last_update_time: bigint;
|
|
1508
|
+
emissions_per_second_x64: bigint;
|
|
1509
|
+
reward_total_emitted: bigint;
|
|
1510
|
+
reward_claimed: bigint;
|
|
1511
|
+
token_mint: string;
|
|
1512
|
+
token_vault: string;
|
|
1513
|
+
authority: string;
|
|
1514
|
+
reward_growth_global_x64: bigint;
|
|
1515
|
+
}
|
|
1516
|
+
export interface RaydiumClmmDynamicFeeInfo {
|
|
1517
|
+
filter_period: number;
|
|
1518
|
+
decay_period: number;
|
|
1519
|
+
reduction_factor: number;
|
|
1520
|
+
dynamic_fee_control: number;
|
|
1521
|
+
max_volatility_accumulator: number;
|
|
1522
|
+
tick_spacing_index_reference: number;
|
|
1523
|
+
volatility_reference: number;
|
|
1524
|
+
volatility_accumulator: number;
|
|
1525
|
+
last_update_timestamp: bigint;
|
|
1526
|
+
padding: number[];
|
|
1527
|
+
}
|
|
1528
|
+
export interface RaydiumClmmTickArrayStateAccountEvent {
|
|
1529
|
+
metadata: EventMetadata;
|
|
1530
|
+
pubkey: string;
|
|
1531
|
+
tick_array_state: RaydiumClmmTickArrayState;
|
|
1532
|
+
}
|
|
1533
|
+
export interface RaydiumClmmTickArrayState {
|
|
1534
|
+
pool_id: string;
|
|
1535
|
+
start_tick_index: number;
|
|
1536
|
+
ticks: Tick[];
|
|
1537
|
+
initialized_tick_count: number;
|
|
1538
|
+
recent_epoch: bigint;
|
|
1539
|
+
padding: number[];
|
|
1540
|
+
}
|
|
1541
|
+
export interface Tick {
|
|
1542
|
+
tick: number;
|
|
1543
|
+
liquidity_net: bigint;
|
|
1544
|
+
liquidity_gross: bigint;
|
|
1545
|
+
fee_growth_outside_0_x64: bigint;
|
|
1546
|
+
fee_growth_outside_1_x64: bigint;
|
|
1547
|
+
reward_growths_outside_x64: bigint[];
|
|
1548
|
+
order_phase: bigint;
|
|
1549
|
+
orders_amount: bigint;
|
|
1550
|
+
part_filled_orders_remaining: bigint;
|
|
1551
|
+
unfilled_ratio_x64: bigint;
|
|
1552
|
+
padding: number[];
|
|
1553
|
+
}
|
|
1554
|
+
export interface RaydiumCpmmAmmConfigAccountEvent {
|
|
1555
|
+
metadata: EventMetadata;
|
|
1556
|
+
pubkey: string;
|
|
1557
|
+
amm_config: RaydiumCpmmAmmConfig;
|
|
1558
|
+
}
|
|
1559
|
+
export interface RaydiumCpmmAmmConfig {
|
|
1560
|
+
bump: number;
|
|
1561
|
+
disable_create_pool: boolean;
|
|
1562
|
+
index: number;
|
|
1563
|
+
trade_fee_rate: bigint;
|
|
1564
|
+
protocol_fee_rate: bigint;
|
|
1565
|
+
fund_fee_rate: bigint;
|
|
1566
|
+
create_pool_fee: bigint;
|
|
1567
|
+
protocol_owner: string;
|
|
1568
|
+
fund_owner: string;
|
|
1569
|
+
creator_fee_rate: bigint;
|
|
1570
|
+
padding: bigint[];
|
|
1571
|
+
}
|
|
1572
|
+
export interface RaydiumCpmmPoolStateAccountEvent {
|
|
1573
|
+
metadata: EventMetadata;
|
|
1574
|
+
pubkey: string;
|
|
1575
|
+
pool_state: RaydiumCpmmPoolState;
|
|
1576
|
+
}
|
|
1577
|
+
export interface RaydiumCpmmPoolState {
|
|
1578
|
+
amm_config: string;
|
|
1579
|
+
pool_creator: string;
|
|
1580
|
+
token_0_vault: string;
|
|
1581
|
+
token_1_vault: string;
|
|
1582
|
+
lp_mint: string;
|
|
1583
|
+
token_0_mint: string;
|
|
1584
|
+
token_1_mint: string;
|
|
1585
|
+
token_0_program: string;
|
|
1586
|
+
token_1_program: string;
|
|
1587
|
+
observation_key: string;
|
|
1588
|
+
auth_bump: number;
|
|
1589
|
+
status: number;
|
|
1590
|
+
lp_mint_decimals: number;
|
|
1591
|
+
mint_0_decimals: number;
|
|
1592
|
+
mint_1_decimals: number;
|
|
1593
|
+
lp_supply: bigint;
|
|
1594
|
+
protocol_fees_token_0: bigint;
|
|
1595
|
+
protocol_fees_token_1: bigint;
|
|
1596
|
+
fund_fees_token_0: bigint;
|
|
1597
|
+
fund_fees_token_1: bigint;
|
|
1598
|
+
open_time: bigint;
|
|
1599
|
+
recent_epoch: bigint;
|
|
1600
|
+
creator_fee_on: number;
|
|
1601
|
+
enable_creator_fee: boolean;
|
|
1602
|
+
padding1: number[];
|
|
1603
|
+
creator_fees_token_0: bigint;
|
|
1604
|
+
creator_fees_token_1: bigint;
|
|
1605
|
+
padding: bigint[];
|
|
1606
|
+
}
|
|
1607
|
+
export interface OrcaWhirlpoolAccountEvent {
|
|
1608
|
+
metadata: EventMetadata;
|
|
1609
|
+
pubkey: string;
|
|
1610
|
+
whirlpool: OrcaWhirlpoolAccount;
|
|
1611
|
+
}
|
|
1612
|
+
export interface OrcaWhirlpoolAccount {
|
|
1613
|
+
whirlpools_config: string;
|
|
1614
|
+
whirlpool_bump: number;
|
|
1615
|
+
tick_spacing: number;
|
|
1616
|
+
tick_spacing_seed: number[];
|
|
1617
|
+
fee_rate: number;
|
|
1618
|
+
protocol_fee_rate: number;
|
|
1619
|
+
liquidity: bigint;
|
|
1620
|
+
sqrt_price: bigint;
|
|
1621
|
+
tick_current_index: number;
|
|
1622
|
+
protocol_fee_owed_a: bigint;
|
|
1623
|
+
protocol_fee_owed_b: bigint;
|
|
1624
|
+
token_mint_a: string;
|
|
1625
|
+
token_vault_a: string;
|
|
1626
|
+
fee_growth_global_a: bigint;
|
|
1627
|
+
token_mint_b: string;
|
|
1628
|
+
token_vault_b: string;
|
|
1629
|
+
fee_growth_global_b: bigint;
|
|
1630
|
+
reward_last_updated_timestamp: bigint;
|
|
1631
|
+
reward_infos: OrcaWhirlpoolRewardInfo[];
|
|
1632
|
+
}
|
|
1633
|
+
export interface OrcaWhirlpoolRewardInfo {
|
|
1634
|
+
mint: string;
|
|
1635
|
+
vault: string;
|
|
1636
|
+
authority: string;
|
|
1637
|
+
emissions_per_second_x64: bigint;
|
|
1638
|
+
growth_global_x64: bigint;
|
|
1639
|
+
}
|
|
1640
|
+
export interface OrcaPositionAccountEvent {
|
|
1641
|
+
metadata: EventMetadata;
|
|
1642
|
+
pubkey: string;
|
|
1643
|
+
position: OrcaPositionAccount;
|
|
1644
|
+
}
|
|
1645
|
+
export interface OrcaPositionAccount {
|
|
1646
|
+
whirlpool: string;
|
|
1647
|
+
position_mint: string;
|
|
1648
|
+
liquidity: bigint;
|
|
1649
|
+
tick_lower_index: number;
|
|
1650
|
+
tick_upper_index: number;
|
|
1651
|
+
fee_growth_checkpoint_a: bigint;
|
|
1652
|
+
fee_owed_a: bigint;
|
|
1653
|
+
fee_growth_checkpoint_b: bigint;
|
|
1654
|
+
fee_owed_b: bigint;
|
|
1655
|
+
reward_infos: OrcaPositionRewardInfo[];
|
|
1656
|
+
}
|
|
1657
|
+
export interface OrcaPositionRewardInfo {
|
|
1658
|
+
growth_inside_checkpoint: bigint;
|
|
1659
|
+
amount_owed: bigint;
|
|
1660
|
+
}
|
|
1661
|
+
export interface OrcaTickArrayAccountEvent {
|
|
1662
|
+
metadata: EventMetadata;
|
|
1663
|
+
pubkey: string;
|
|
1664
|
+
tick_array: OrcaTickArrayAccount;
|
|
1665
|
+
}
|
|
1666
|
+
export interface OrcaTickArrayAccount {
|
|
1667
|
+
start_tick_index: number;
|
|
1668
|
+
ticks: OrcaTick[];
|
|
1669
|
+
whirlpool: string;
|
|
1670
|
+
}
|
|
1671
|
+
export interface OrcaTick {
|
|
1672
|
+
initialized: boolean;
|
|
1673
|
+
liquidity_net: bigint;
|
|
1674
|
+
liquidity_gross: bigint;
|
|
1675
|
+
fee_growth_outside_a: bigint;
|
|
1676
|
+
fee_growth_outside_b: bigint;
|
|
1677
|
+
reward_growths_outside: bigint[];
|
|
1678
|
+
}
|
|
1679
|
+
export interface OrcaFeeTierAccountEvent {
|
|
1680
|
+
metadata: EventMetadata;
|
|
1681
|
+
pubkey: string;
|
|
1682
|
+
fee_tier: OrcaFeeTierAccount;
|
|
1683
|
+
}
|
|
1684
|
+
export interface OrcaFeeTierAccount {
|
|
1685
|
+
whirlpools_config: string;
|
|
1686
|
+
tick_spacing: number;
|
|
1687
|
+
default_fee_rate: number;
|
|
1688
|
+
}
|
|
1689
|
+
export interface OrcaWhirlpoolsConfigAccountEvent {
|
|
1690
|
+
metadata: EventMetadata;
|
|
1691
|
+
pubkey: string;
|
|
1692
|
+
config: OrcaWhirlpoolsConfigAccount;
|
|
1693
|
+
}
|
|
1694
|
+
export interface OrcaWhirlpoolsConfigAccount {
|
|
1695
|
+
fee_authority: string;
|
|
1696
|
+
collect_protocol_fees_authority: string;
|
|
1697
|
+
reward_emissions_super_authority: string;
|
|
1698
|
+
default_protocol_fee_rate: number;
|
|
1699
|
+
}
|
|
1700
|
+
export interface BlockMetaEvent {
|
|
1701
|
+
metadata: EventMetadata;
|
|
1702
|
+
}
|
|
1703
|
+
export declare function metadataForDexEvent(ev: DexEvent): EventMetadata | null;
|
|
1704
|
+
export declare function defaultPubkey(): string;
|