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
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export { DEFAULT_CHANNEL_SIZE, DEFAULT_CONNECT_TIMEOUT, DEFAULT_MAX_DECODING_MESSAGE_SIZE, DEFAULT_METRICS_PRINT_INTERVAL_SECONDS, DEFAULT_METRICS_WINDOW_SECONDS, DEFAULT_REQUEST_TIMEOUT, SLOW_PROCESSING_THRESHOLD_US, } from "./common/constants.js";
|
|
2
|
+
export type { DexEvent } from "./core/dex_event.js";
|
|
3
|
+
export { metadataForDexEvent, defaultPubkey } from "./core/dex_event.js";
|
|
4
|
+
export { bigintToJsonReplacer, dexEventToJsonString } from "./core/json_utils.js";
|
|
5
|
+
export type { EventMetadata } from "./core/metadata.js";
|
|
6
|
+
export type { ParseError } from "./core/error.js";
|
|
7
|
+
export { formatParseError } from "./core/error.js";
|
|
8
|
+
export { enrichCreateV2FromCreateEvents, enrichCreateV2ObservedFeeRecipient, enrichPumpfunTradesFromCreateInstructions, enrichPumpfunSameTxPostMerge, } from "./core/pumpfun_fee_enrich.js";
|
|
9
|
+
export { parseTransactionEvents, parseLogsOnly, parseTransactionWithListener, parseTransactionEventsStreaming, parseLogsStreaming, parseTransactionWithStreamingListener, parseLog, parseLog as parse_log, nowUs, type EventListener, type StreamingEventListener, } from "./core/unified_parser.js";
|
|
10
|
+
export { nowMicros, nowNanos, elapsedMicrosSince } from "./core/clock.js";
|
|
11
|
+
export { sqrtPriceX64ToPrice, vaultPriceFromBalances, normalizeBuySellFromTokenDelta, normalizeBuySellFromInputMint, type NumericAmount, type NormalizedTradeSide, } from "./util/market.js";
|
|
12
|
+
export { AccountPubkeyCache, buildAccountPubkeysWithCache, buildAccountPubkeysWithCache as build_account_pubkeys_with_cache, } from "./core/account_pubkey_cache.js";
|
|
13
|
+
export { warmupParser, isWarmedUp } from "./warmup.js";
|
|
14
|
+
export { parseTransactionFromRpc, parseRpcTransaction, fillAccountsFromTransactionDataRpc, fillDataRpc, applyAccountFillsToLogEvents, convertRpcToGrpc, convert_rpc_to_grpc, type ConvertRpcToGrpcOk, type ConvertRpcToGrpcErr, } from "./rpc_parser.js";
|
|
15
|
+
export { parseDexEventsFromGrpcTransactionInfo, grpcTxIndexFromInfo, } from "./grpc/yellowstone_parse.js";
|
|
16
|
+
export { pubkeyBytesToBs58, collectAccountKeysBs58, lamportBalanceDeltas, heuristicSolCounterpartiesForWatchedKeys, tokenBalanceRawAmount, splTokenCounterpartyByOwner, collectWatchTransferCounterpartyPairs, tryYellowstoneSignature, } from "./grpc/transaction_meta.js";
|
|
17
|
+
/** Rust `grpc::transaction_meta` 蛇形命名别名(便于从 Rust 迁移) */
|
|
18
|
+
export { pubkeyBytesToBs58 as pubkey_bytes_to_bs58, collectAccountKeysBs58 as collect_account_keys_bs58, lamportBalanceDeltas as lamport_balance_deltas, heuristicSolCounterpartiesForWatchedKeys as heuristic_sol_counterparties_for_watched_keys, tokenBalanceRawAmount as token_balance_raw_amount, splTokenCounterpartyByOwner as spl_token_counterparty_by_owner, collectWatchTransferCounterpartyPairs as collect_watch_transfer_counterparty_pairs, tryYellowstoneSignature as try_yellowstone_signature, } from "./grpc/transaction_meta.js";
|
|
19
|
+
export { type OrderMode, type Protocol, type ClientConfig, type StreamingConfig, type TransactionFilter, type AccountFilter, type AccountFilterData, type AccountFilterMemcmp, type SlotFilter, type EventType, type StreamingEventType, type EventTypeFilter, defaultClientConfig, lowLatencyClientConfig, highThroughputClientConfig, newTransactionFilter, transactionFilterFromProgramIds, newAccountFilter, newSlotFilter, slotFilterMinSlot, slotFilterMaxSlot, accountFilterFromProgramOwners, accountFilterMemcmp, eventTypeFilterIncludeOnly, eventTypeFilterExclude, eventTypeFilterIncludesPumpfun, eventTypeFilterIncludesPumpswap, eventTypeFilterIncludesMeteoraDammV2, eventTypeFilterIncludesMeteoraDbc, eventTypeFilterIncludesMeteoraPools, eventTypeFilterIncludesMeteoraDlmm, eventTypeFilterIncludesRaydiumClmm, eventTypeFilterIncludesRaydiumCpmm, eventTypeFilterIncludesRaydiumAmmV4, eventTypeFilterIncludesOrcaWhirlpool, eventTypeFilterIncludesRaydiumLaunchlab, eventTypeFilterIncludesPumpFees, eventTypeFilterAllowsInstructionParsing, ALL_EVENT_TYPES, } from "./grpc/types.js";
|
|
20
|
+
export { ALL_EVENT_TYPES as all_event_types } from "./grpc/types.js";
|
|
21
|
+
export type { StreamingConfig as streaming_config } from "./grpc/types.js";
|
|
22
|
+
export { PROTOCOL_PROGRAM_IDS, PUMPFUN_PROGRAM_ID, PUMPSWAP_PROGRAM_ID, PUMPSWAP_FEES_PROGRAM_ID, PUMP_FEES_PROGRAM_ID, RAYDIUM_LAUNCHLAB_PROGRAM_ID, RAYDIUM_CPMM_PROGRAM_ID, RAYDIUM_CLMM_PROGRAM_ID, RAYDIUM_AMM_V4_PROGRAM_ID, ORCA_WHIRLPOOL_PROGRAM_ID, METEORA_POOLS_PROGRAM_ID, METEORA_DAMM_V2_PROGRAM_ID, METEORA_DLMM_PROGRAM_ID, METEORA_DBC_PROGRAM_ID, getProgramIdsForProtocols, transactionFilterForProtocols, accountFilterForProtocols, } from "./grpc/program_ids.js";
|
|
23
|
+
export { PROTOCOL_PROGRAM_IDS as protocol_program_ids, getProgramIdsForProtocols as get_program_ids_for_protocols, transactionFilterForProtocols as transaction_filter_for_protocols, accountFilterForProtocols as account_filter_for_protocols, } from "./grpc/program_ids.js";
|
|
24
|
+
/** Rust `grpc::types` 蛇形命名别名 */
|
|
25
|
+
export { defaultClientConfig as default_client_config, lowLatencyClientConfig as low_latency_client_config, highThroughputClientConfig as high_throughput_client_config, newTransactionFilter as new_transaction_filter, transactionFilterFromProgramIds as transaction_filter_from_program_ids, newAccountFilter as new_account_filter, newSlotFilter as new_slot_filter, slotFilterMinSlot as slot_filter_min_slot, slotFilterMaxSlot as slot_filter_max_slot, accountFilterFromProgramOwners as account_filter_from_program_owners, accountFilterMemcmp as account_filter_memcmp, eventTypeFilterIncludeOnly as event_type_filter_include_only, eventTypeFilterExclude as event_type_filter_exclude, eventTypeFilterIncludeOnly as include_only, eventTypeFilterExclude as exclude_types, } from "./grpc/types.js";
|
|
26
|
+
export { buildSubscribeRequest, buildSubscribeRequestWithCommitment, buildSubscribeTransactionFiltersNamed, CommitmentLevel, } from "./grpc/subscribe_builder.js";
|
|
27
|
+
/** Rust `grpc::subscribe_builder` 蛇形命名 */
|
|
28
|
+
export { buildSubscribeRequest as build_subscribe_request, buildSubscribeRequestWithCommitment as build_subscribe_request_with_commitment, buildSubscribeTransactionFiltersNamed as build_subscribe_transaction_filters_named, } from "./grpc/subscribe_builder.js";
|
|
29
|
+
export { parseInvokeInfo, parseLogOptimized, parseLogOptimizedWithProgramId, parseLogUnified, parseProgramCompleteInfo, } from "./logs/optimized_matcher.js";
|
|
30
|
+
/** Rust `logs` 蛇形命名别名(`parse_meteora_damm_log` 等) */
|
|
31
|
+
export { parse_meteora_damm_log, parse_meteora_dlmm_log, parse_log_optimized, parse_log_unified, } from "./logs/rust_aliases.js";
|
|
32
|
+
/** 与 Rust `logs::discriminator_lut` 名称 / 协议查询对齐 */
|
|
33
|
+
export { discriminatorToName, discriminator_to_name, discriminatorToProtocol, discriminator_to_protocol, lookupDiscriminator, lookup_discriminator, type LogProtocol, type LutDiscriminatorInfo, } from "./logs/discriminator_lut.js";
|
|
34
|
+
export { parseMeteoraDammLog } from "./logs/meteora_damm.js";
|
|
35
|
+
export { PROGRAM_LOG_DISC, PUMPSWAP_DISC, u64leDiscriminator, type ProgramLogDiscriminatorKey, } from "./logs/program_log_discriminators.js";
|
|
36
|
+
export type { ParsedEvent } from "./parser_alias.js";
|
|
37
|
+
export { parseAccountUnified, type AccountData, parseNonceAccount, isNonceAccount, parseTokenAccount, parsePumpfunGlobal, parsePumpfunAccount, isPumpfunGlobalAccount, parsePumpswapGlobalConfig, parsePumpswapPool, parsePumpswapAccount, isGlobalConfigAccount, isPoolAccount, hasDiscriminator, userWalletPubkeyForOnchainAccount, rpcResolveUserWalletPubkey, } from "./accounts/mod.js";
|
|
38
|
+
/** Rust `accounts` 蛇形命名别名 */
|
|
39
|
+
export { parse_account_unified, parse_nonce_account, parse_token_account, parse_pumpfun_global, parse_pumpswap_global_config, parse_pumpswap_pool, rpc_resolve_user_wallet_pubkey, user_wallet_pubkey_for_onchain_account, } from "./accounts/rust_aliases.js";
|
|
40
|
+
export { parseInstructionUnified, parsePumpfunInstruction, parsePumpswapInstruction, parseMeteoraDammInstruction, parseMeteoraDlmmInstruction, parseMeteoraPoolsInstruction, parsePumpFeesInstruction, } from "./instr/mod.js";
|
|
41
|
+
/** Rust `instr` 根模块蛇形命名别名 */
|
|
42
|
+
export { parse_instruction_unified, parse_pumpfun_instruction, parse_pumpswap_instruction, parse_meteora_damm_instruction, parse_meteora_dlmm_instruction, parse_meteora_pools_instruction, parse_pump_fees_instruction, } from "./instr/rust_aliases.js";
|
|
43
|
+
export * as programIds from "./instr/program_ids.js";
|
|
44
|
+
export { YellowstoneGrpc, type SubscribeCallbacks, type DexEventSubscription } from "./grpc/client.js";
|
|
45
|
+
export { connectYellowstoneGeyser, defaultGeyserConnectConfig, geyserGrpcChannelOptions, type GeyserConnectConfig, } from "./grpc/geyser_connect.js";
|
|
46
|
+
/** 与 Rust `sol_parser_sdk::grpc::event_parser` 模块对应 */
|
|
47
|
+
export * as event_parser from "./grpc/event_parser.js";
|
|
48
|
+
export { connectYellowstoneGeyser as connect_yellowstone_geyser, defaultGeyserConnectConfig as default_geyser_connect_config, geyserGrpcChannelOptions as geyser_grpc_channel_options, } from "./grpc/geyser_connect.js";
|
|
49
|
+
export { ShredStreamClient, ShredEventQueue, dexEventsFromShredWasmTx, dexEventsFromShredWasmTxWithFullKeys, fullAccountKeyStringsFromShredTx, loadAddressLookupTableAccounts, bincodeVecEntryCount, decodeEntriesBincodeFlat, decodeEntriesBincodeNested, decodeShredstreamEntriesBincode, wireBytesToShredWasmTx, type ShredStreamReceiveStats, type ShredWasmTx, type ShredWasmCompiledIx, type ShredStreamConfig, type DecodedWireTransaction, defaultShredStreamConfig, lowLatencyShredStreamConfig, highThroughputShredStreamConfig, type SubscribeEntriesRequest, type ShredstreamEntryMessage, } from "./shredstream/index.js";
|
|
50
|
+
export { defaultShredStreamConfig as default_shred_stream_config, lowLatencyShredStreamConfig as low_latency_shred_stream_config, highThroughputShredStreamConfig as high_throughput_shred_stream_config, } from "./shredstream/index.js";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.heuristicSolCounterpartiesForWatchedKeys = exports.lamportBalanceDeltas = exports.collectAccountKeysBs58 = exports.pubkeyBytesToBs58 = exports.grpcTxIndexFromInfo = exports.parseDexEventsFromGrpcTransactionInfo = exports.convert_rpc_to_grpc = exports.convertRpcToGrpc = exports.applyAccountFillsToLogEvents = exports.fillDataRpc = exports.fillAccountsFromTransactionDataRpc = exports.parseRpcTransaction = exports.parseTransactionFromRpc = exports.isWarmedUp = exports.warmupParser = exports.build_account_pubkeys_with_cache = exports.buildAccountPubkeysWithCache = exports.AccountPubkeyCache = exports.normalizeBuySellFromInputMint = exports.normalizeBuySellFromTokenDelta = exports.vaultPriceFromBalances = exports.sqrtPriceX64ToPrice = exports.elapsedMicrosSince = exports.nowNanos = exports.nowMicros = exports.nowUs = exports.parse_log = exports.parseLog = exports.parseTransactionWithStreamingListener = exports.parseLogsStreaming = exports.parseTransactionEventsStreaming = exports.parseTransactionWithListener = exports.parseLogsOnly = exports.parseTransactionEvents = exports.enrichPumpfunSameTxPostMerge = exports.enrichPumpfunTradesFromCreateInstructions = exports.enrichCreateV2ObservedFeeRecipient = exports.enrichCreateV2FromCreateEvents = exports.formatParseError = exports.dexEventToJsonString = exports.bigintToJsonReplacer = exports.defaultPubkey = exports.metadataForDexEvent = exports.SLOW_PROCESSING_THRESHOLD_US = exports.DEFAULT_REQUEST_TIMEOUT = exports.DEFAULT_METRICS_WINDOW_SECONDS = exports.DEFAULT_METRICS_PRINT_INTERVAL_SECONDS = exports.DEFAULT_MAX_DECODING_MESSAGE_SIZE = exports.DEFAULT_CONNECT_TIMEOUT = exports.DEFAULT_CHANNEL_SIZE = void 0;
|
|
37
|
+
exports.ORCA_WHIRLPOOL_PROGRAM_ID = exports.RAYDIUM_AMM_V4_PROGRAM_ID = exports.RAYDIUM_CLMM_PROGRAM_ID = exports.RAYDIUM_CPMM_PROGRAM_ID = exports.RAYDIUM_LAUNCHLAB_PROGRAM_ID = exports.PUMP_FEES_PROGRAM_ID = exports.PUMPSWAP_FEES_PROGRAM_ID = exports.PUMPSWAP_PROGRAM_ID = exports.PUMPFUN_PROGRAM_ID = exports.PROTOCOL_PROGRAM_IDS = exports.all_event_types = exports.ALL_EVENT_TYPES = exports.eventTypeFilterAllowsInstructionParsing = exports.eventTypeFilterIncludesPumpFees = exports.eventTypeFilterIncludesRaydiumLaunchlab = exports.eventTypeFilterIncludesOrcaWhirlpool = exports.eventTypeFilterIncludesRaydiumAmmV4 = exports.eventTypeFilterIncludesRaydiumCpmm = exports.eventTypeFilterIncludesRaydiumClmm = exports.eventTypeFilterIncludesMeteoraDlmm = exports.eventTypeFilterIncludesMeteoraPools = exports.eventTypeFilterIncludesMeteoraDbc = exports.eventTypeFilterIncludesMeteoraDammV2 = exports.eventTypeFilterIncludesPumpswap = exports.eventTypeFilterIncludesPumpfun = exports.eventTypeFilterExclude = exports.eventTypeFilterIncludeOnly = exports.accountFilterMemcmp = exports.accountFilterFromProgramOwners = exports.slotFilterMaxSlot = exports.slotFilterMinSlot = exports.newSlotFilter = exports.newAccountFilter = exports.transactionFilterFromProgramIds = exports.newTransactionFilter = exports.highThroughputClientConfig = exports.lowLatencyClientConfig = exports.defaultClientConfig = exports.try_yellowstone_signature = exports.collect_watch_transfer_counterparty_pairs = exports.spl_token_counterparty_by_owner = exports.token_balance_raw_amount = exports.heuristic_sol_counterparties_for_watched_keys = exports.lamport_balance_deltas = exports.collect_account_keys_bs58 = exports.pubkey_bytes_to_bs58 = exports.tryYellowstoneSignature = exports.collectWatchTransferCounterpartyPairs = exports.splTokenCounterpartyByOwner = exports.tokenBalanceRawAmount = void 0;
|
|
38
|
+
exports.PROGRAM_LOG_DISC = exports.parseMeteoraDammLog = exports.lookup_discriminator = exports.lookupDiscriminator = exports.discriminator_to_protocol = exports.discriminatorToProtocol = exports.discriminator_to_name = exports.discriminatorToName = exports.parse_log_unified = exports.parse_log_optimized = exports.parse_meteora_dlmm_log = exports.parse_meteora_damm_log = exports.parseProgramCompleteInfo = exports.parseLogUnified = exports.parseLogOptimizedWithProgramId = exports.parseLogOptimized = exports.parseInvokeInfo = exports.build_subscribe_transaction_filters_named = exports.build_subscribe_request_with_commitment = exports.build_subscribe_request = exports.CommitmentLevel = exports.buildSubscribeTransactionFiltersNamed = exports.buildSubscribeRequestWithCommitment = exports.buildSubscribeRequest = exports.exclude_types = exports.include_only = exports.event_type_filter_exclude = exports.event_type_filter_include_only = exports.account_filter_memcmp = exports.account_filter_from_program_owners = exports.slot_filter_max_slot = exports.slot_filter_min_slot = exports.new_slot_filter = exports.new_account_filter = exports.transaction_filter_from_program_ids = exports.new_transaction_filter = exports.high_throughput_client_config = exports.low_latency_client_config = exports.default_client_config = exports.account_filter_for_protocols = exports.transaction_filter_for_protocols = exports.get_program_ids_for_protocols = exports.protocol_program_ids = exports.accountFilterForProtocols = exports.transactionFilterForProtocols = exports.getProgramIdsForProtocols = exports.METEORA_DBC_PROGRAM_ID = exports.METEORA_DLMM_PROGRAM_ID = exports.METEORA_DAMM_V2_PROGRAM_ID = exports.METEORA_POOLS_PROGRAM_ID = void 0;
|
|
39
|
+
exports.ShredEventQueue = exports.ShredStreamClient = exports.geyser_grpc_channel_options = exports.default_geyser_connect_config = exports.connect_yellowstone_geyser = exports.event_parser = exports.geyserGrpcChannelOptions = exports.defaultGeyserConnectConfig = exports.connectYellowstoneGeyser = exports.YellowstoneGrpc = exports.programIds = exports.parse_pump_fees_instruction = exports.parse_meteora_pools_instruction = exports.parse_meteora_dlmm_instruction = exports.parse_meteora_damm_instruction = exports.parse_pumpswap_instruction = exports.parse_pumpfun_instruction = exports.parse_instruction_unified = exports.parsePumpFeesInstruction = exports.parseMeteoraPoolsInstruction = exports.parseMeteoraDlmmInstruction = exports.parseMeteoraDammInstruction = exports.parsePumpswapInstruction = exports.parsePumpfunInstruction = exports.parseInstructionUnified = exports.user_wallet_pubkey_for_onchain_account = exports.rpc_resolve_user_wallet_pubkey = exports.parse_pumpswap_pool = exports.parse_pumpswap_global_config = exports.parse_pumpfun_global = exports.parse_token_account = exports.parse_nonce_account = exports.parse_account_unified = exports.rpcResolveUserWalletPubkey = exports.userWalletPubkeyForOnchainAccount = exports.hasDiscriminator = exports.isPoolAccount = exports.isGlobalConfigAccount = exports.parsePumpswapAccount = exports.parsePumpswapPool = exports.parsePumpswapGlobalConfig = exports.isPumpfunGlobalAccount = exports.parsePumpfunAccount = exports.parsePumpfunGlobal = exports.parseTokenAccount = exports.isNonceAccount = exports.parseNonceAccount = exports.parseAccountUnified = exports.u64leDiscriminator = exports.PUMPSWAP_DISC = void 0;
|
|
40
|
+
exports.high_throughput_shred_stream_config = exports.low_latency_shred_stream_config = exports.default_shred_stream_config = exports.highThroughputShredStreamConfig = exports.lowLatencyShredStreamConfig = exports.defaultShredStreamConfig = exports.wireBytesToShredWasmTx = exports.decodeShredstreamEntriesBincode = exports.decodeEntriesBincodeNested = exports.decodeEntriesBincodeFlat = exports.bincodeVecEntryCount = exports.loadAddressLookupTableAccounts = exports.fullAccountKeyStringsFromShredTx = exports.dexEventsFromShredWasmTxWithFullKeys = exports.dexEventsFromShredWasmTx = void 0;
|
|
41
|
+
var constants_js_1 = require("./common/constants.js");
|
|
42
|
+
Object.defineProperty(exports, "DEFAULT_CHANNEL_SIZE", { enumerable: true, get: function () { return constants_js_1.DEFAULT_CHANNEL_SIZE; } });
|
|
43
|
+
Object.defineProperty(exports, "DEFAULT_CONNECT_TIMEOUT", { enumerable: true, get: function () { return constants_js_1.DEFAULT_CONNECT_TIMEOUT; } });
|
|
44
|
+
Object.defineProperty(exports, "DEFAULT_MAX_DECODING_MESSAGE_SIZE", { enumerable: true, get: function () { return constants_js_1.DEFAULT_MAX_DECODING_MESSAGE_SIZE; } });
|
|
45
|
+
Object.defineProperty(exports, "DEFAULT_METRICS_PRINT_INTERVAL_SECONDS", { enumerable: true, get: function () { return constants_js_1.DEFAULT_METRICS_PRINT_INTERVAL_SECONDS; } });
|
|
46
|
+
Object.defineProperty(exports, "DEFAULT_METRICS_WINDOW_SECONDS", { enumerable: true, get: function () { return constants_js_1.DEFAULT_METRICS_WINDOW_SECONDS; } });
|
|
47
|
+
Object.defineProperty(exports, "DEFAULT_REQUEST_TIMEOUT", { enumerable: true, get: function () { return constants_js_1.DEFAULT_REQUEST_TIMEOUT; } });
|
|
48
|
+
Object.defineProperty(exports, "SLOW_PROCESSING_THRESHOLD_US", { enumerable: true, get: function () { return constants_js_1.SLOW_PROCESSING_THRESHOLD_US; } });
|
|
49
|
+
var dex_event_js_1 = require("./core/dex_event.js");
|
|
50
|
+
Object.defineProperty(exports, "metadataForDexEvent", { enumerable: true, get: function () { return dex_event_js_1.metadataForDexEvent; } });
|
|
51
|
+
Object.defineProperty(exports, "defaultPubkey", { enumerable: true, get: function () { return dex_event_js_1.defaultPubkey; } });
|
|
52
|
+
var json_utils_js_1 = require("./core/json_utils.js");
|
|
53
|
+
Object.defineProperty(exports, "bigintToJsonReplacer", { enumerable: true, get: function () { return json_utils_js_1.bigintToJsonReplacer; } });
|
|
54
|
+
Object.defineProperty(exports, "dexEventToJsonString", { enumerable: true, get: function () { return json_utils_js_1.dexEventToJsonString; } });
|
|
55
|
+
var error_js_1 = require("./core/error.js");
|
|
56
|
+
Object.defineProperty(exports, "formatParseError", { enumerable: true, get: function () { return error_js_1.formatParseError; } });
|
|
57
|
+
var pumpfun_fee_enrich_js_1 = require("./core/pumpfun_fee_enrich.js");
|
|
58
|
+
Object.defineProperty(exports, "enrichCreateV2FromCreateEvents", { enumerable: true, get: function () { return pumpfun_fee_enrich_js_1.enrichCreateV2FromCreateEvents; } });
|
|
59
|
+
Object.defineProperty(exports, "enrichCreateV2ObservedFeeRecipient", { enumerable: true, get: function () { return pumpfun_fee_enrich_js_1.enrichCreateV2ObservedFeeRecipient; } });
|
|
60
|
+
Object.defineProperty(exports, "enrichPumpfunTradesFromCreateInstructions", { enumerable: true, get: function () { return pumpfun_fee_enrich_js_1.enrichPumpfunTradesFromCreateInstructions; } });
|
|
61
|
+
Object.defineProperty(exports, "enrichPumpfunSameTxPostMerge", { enumerable: true, get: function () { return pumpfun_fee_enrich_js_1.enrichPumpfunSameTxPostMerge; } });
|
|
62
|
+
var unified_parser_js_1 = require("./core/unified_parser.js");
|
|
63
|
+
Object.defineProperty(exports, "parseTransactionEvents", { enumerable: true, get: function () { return unified_parser_js_1.parseTransactionEvents; } });
|
|
64
|
+
Object.defineProperty(exports, "parseLogsOnly", { enumerable: true, get: function () { return unified_parser_js_1.parseLogsOnly; } });
|
|
65
|
+
Object.defineProperty(exports, "parseTransactionWithListener", { enumerable: true, get: function () { return unified_parser_js_1.parseTransactionWithListener; } });
|
|
66
|
+
Object.defineProperty(exports, "parseTransactionEventsStreaming", { enumerable: true, get: function () { return unified_parser_js_1.parseTransactionEventsStreaming; } });
|
|
67
|
+
Object.defineProperty(exports, "parseLogsStreaming", { enumerable: true, get: function () { return unified_parser_js_1.parseLogsStreaming; } });
|
|
68
|
+
Object.defineProperty(exports, "parseTransactionWithStreamingListener", { enumerable: true, get: function () { return unified_parser_js_1.parseTransactionWithStreamingListener; } });
|
|
69
|
+
Object.defineProperty(exports, "parseLog", { enumerable: true, get: function () { return unified_parser_js_1.parseLog; } });
|
|
70
|
+
Object.defineProperty(exports, "parse_log", { enumerable: true, get: function () { return unified_parser_js_1.parseLog; } });
|
|
71
|
+
Object.defineProperty(exports, "nowUs", { enumerable: true, get: function () { return unified_parser_js_1.nowUs; } });
|
|
72
|
+
var clock_js_1 = require("./core/clock.js");
|
|
73
|
+
Object.defineProperty(exports, "nowMicros", { enumerable: true, get: function () { return clock_js_1.nowMicros; } });
|
|
74
|
+
Object.defineProperty(exports, "nowNanos", { enumerable: true, get: function () { return clock_js_1.nowNanos; } });
|
|
75
|
+
Object.defineProperty(exports, "elapsedMicrosSince", { enumerable: true, get: function () { return clock_js_1.elapsedMicrosSince; } });
|
|
76
|
+
var market_js_1 = require("./util/market.js");
|
|
77
|
+
Object.defineProperty(exports, "sqrtPriceX64ToPrice", { enumerable: true, get: function () { return market_js_1.sqrtPriceX64ToPrice; } });
|
|
78
|
+
Object.defineProperty(exports, "vaultPriceFromBalances", { enumerable: true, get: function () { return market_js_1.vaultPriceFromBalances; } });
|
|
79
|
+
Object.defineProperty(exports, "normalizeBuySellFromTokenDelta", { enumerable: true, get: function () { return market_js_1.normalizeBuySellFromTokenDelta; } });
|
|
80
|
+
Object.defineProperty(exports, "normalizeBuySellFromInputMint", { enumerable: true, get: function () { return market_js_1.normalizeBuySellFromInputMint; } });
|
|
81
|
+
var account_pubkey_cache_js_1 = require("./core/account_pubkey_cache.js");
|
|
82
|
+
Object.defineProperty(exports, "AccountPubkeyCache", { enumerable: true, get: function () { return account_pubkey_cache_js_1.AccountPubkeyCache; } });
|
|
83
|
+
Object.defineProperty(exports, "buildAccountPubkeysWithCache", { enumerable: true, get: function () { return account_pubkey_cache_js_1.buildAccountPubkeysWithCache; } });
|
|
84
|
+
Object.defineProperty(exports, "build_account_pubkeys_with_cache", { enumerable: true, get: function () { return account_pubkey_cache_js_1.buildAccountPubkeysWithCache; } });
|
|
85
|
+
var warmup_js_1 = require("./warmup.js");
|
|
86
|
+
Object.defineProperty(exports, "warmupParser", { enumerable: true, get: function () { return warmup_js_1.warmupParser; } });
|
|
87
|
+
Object.defineProperty(exports, "isWarmedUp", { enumerable: true, get: function () { return warmup_js_1.isWarmedUp; } });
|
|
88
|
+
var rpc_parser_js_1 = require("./rpc_parser.js");
|
|
89
|
+
Object.defineProperty(exports, "parseTransactionFromRpc", { enumerable: true, get: function () { return rpc_parser_js_1.parseTransactionFromRpc; } });
|
|
90
|
+
Object.defineProperty(exports, "parseRpcTransaction", { enumerable: true, get: function () { return rpc_parser_js_1.parseRpcTransaction; } });
|
|
91
|
+
Object.defineProperty(exports, "fillAccountsFromTransactionDataRpc", { enumerable: true, get: function () { return rpc_parser_js_1.fillAccountsFromTransactionDataRpc; } });
|
|
92
|
+
Object.defineProperty(exports, "fillDataRpc", { enumerable: true, get: function () { return rpc_parser_js_1.fillDataRpc; } });
|
|
93
|
+
Object.defineProperty(exports, "applyAccountFillsToLogEvents", { enumerable: true, get: function () { return rpc_parser_js_1.applyAccountFillsToLogEvents; } });
|
|
94
|
+
Object.defineProperty(exports, "convertRpcToGrpc", { enumerable: true, get: function () { return rpc_parser_js_1.convertRpcToGrpc; } });
|
|
95
|
+
Object.defineProperty(exports, "convert_rpc_to_grpc", { enumerable: true, get: function () { return rpc_parser_js_1.convert_rpc_to_grpc; } });
|
|
96
|
+
var yellowstone_parse_js_1 = require("./grpc/yellowstone_parse.js");
|
|
97
|
+
Object.defineProperty(exports, "parseDexEventsFromGrpcTransactionInfo", { enumerable: true, get: function () { return yellowstone_parse_js_1.parseDexEventsFromGrpcTransactionInfo; } });
|
|
98
|
+
Object.defineProperty(exports, "grpcTxIndexFromInfo", { enumerable: true, get: function () { return yellowstone_parse_js_1.grpcTxIndexFromInfo; } });
|
|
99
|
+
var transaction_meta_js_1 = require("./grpc/transaction_meta.js");
|
|
100
|
+
Object.defineProperty(exports, "pubkeyBytesToBs58", { enumerable: true, get: function () { return transaction_meta_js_1.pubkeyBytesToBs58; } });
|
|
101
|
+
Object.defineProperty(exports, "collectAccountKeysBs58", { enumerable: true, get: function () { return transaction_meta_js_1.collectAccountKeysBs58; } });
|
|
102
|
+
Object.defineProperty(exports, "lamportBalanceDeltas", { enumerable: true, get: function () { return transaction_meta_js_1.lamportBalanceDeltas; } });
|
|
103
|
+
Object.defineProperty(exports, "heuristicSolCounterpartiesForWatchedKeys", { enumerable: true, get: function () { return transaction_meta_js_1.heuristicSolCounterpartiesForWatchedKeys; } });
|
|
104
|
+
Object.defineProperty(exports, "tokenBalanceRawAmount", { enumerable: true, get: function () { return transaction_meta_js_1.tokenBalanceRawAmount; } });
|
|
105
|
+
Object.defineProperty(exports, "splTokenCounterpartyByOwner", { enumerable: true, get: function () { return transaction_meta_js_1.splTokenCounterpartyByOwner; } });
|
|
106
|
+
Object.defineProperty(exports, "collectWatchTransferCounterpartyPairs", { enumerable: true, get: function () { return transaction_meta_js_1.collectWatchTransferCounterpartyPairs; } });
|
|
107
|
+
Object.defineProperty(exports, "tryYellowstoneSignature", { enumerable: true, get: function () { return transaction_meta_js_1.tryYellowstoneSignature; } });
|
|
108
|
+
/** Rust `grpc::transaction_meta` 蛇形命名别名(便于从 Rust 迁移) */
|
|
109
|
+
var transaction_meta_js_2 = require("./grpc/transaction_meta.js");
|
|
110
|
+
Object.defineProperty(exports, "pubkey_bytes_to_bs58", { enumerable: true, get: function () { return transaction_meta_js_2.pubkeyBytesToBs58; } });
|
|
111
|
+
Object.defineProperty(exports, "collect_account_keys_bs58", { enumerable: true, get: function () { return transaction_meta_js_2.collectAccountKeysBs58; } });
|
|
112
|
+
Object.defineProperty(exports, "lamport_balance_deltas", { enumerable: true, get: function () { return transaction_meta_js_2.lamportBalanceDeltas; } });
|
|
113
|
+
Object.defineProperty(exports, "heuristic_sol_counterparties_for_watched_keys", { enumerable: true, get: function () { return transaction_meta_js_2.heuristicSolCounterpartiesForWatchedKeys; } });
|
|
114
|
+
Object.defineProperty(exports, "token_balance_raw_amount", { enumerable: true, get: function () { return transaction_meta_js_2.tokenBalanceRawAmount; } });
|
|
115
|
+
Object.defineProperty(exports, "spl_token_counterparty_by_owner", { enumerable: true, get: function () { return transaction_meta_js_2.splTokenCounterpartyByOwner; } });
|
|
116
|
+
Object.defineProperty(exports, "collect_watch_transfer_counterparty_pairs", { enumerable: true, get: function () { return transaction_meta_js_2.collectWatchTransferCounterpartyPairs; } });
|
|
117
|
+
Object.defineProperty(exports, "try_yellowstone_signature", { enumerable: true, get: function () { return transaction_meta_js_2.tryYellowstoneSignature; } });
|
|
118
|
+
var types_js_1 = require("./grpc/types.js");
|
|
119
|
+
Object.defineProperty(exports, "defaultClientConfig", { enumerable: true, get: function () { return types_js_1.defaultClientConfig; } });
|
|
120
|
+
Object.defineProperty(exports, "lowLatencyClientConfig", { enumerable: true, get: function () { return types_js_1.lowLatencyClientConfig; } });
|
|
121
|
+
Object.defineProperty(exports, "highThroughputClientConfig", { enumerable: true, get: function () { return types_js_1.highThroughputClientConfig; } });
|
|
122
|
+
Object.defineProperty(exports, "newTransactionFilter", { enumerable: true, get: function () { return types_js_1.newTransactionFilter; } });
|
|
123
|
+
Object.defineProperty(exports, "transactionFilterFromProgramIds", { enumerable: true, get: function () { return types_js_1.transactionFilterFromProgramIds; } });
|
|
124
|
+
Object.defineProperty(exports, "newAccountFilter", { enumerable: true, get: function () { return types_js_1.newAccountFilter; } });
|
|
125
|
+
Object.defineProperty(exports, "newSlotFilter", { enumerable: true, get: function () { return types_js_1.newSlotFilter; } });
|
|
126
|
+
Object.defineProperty(exports, "slotFilterMinSlot", { enumerable: true, get: function () { return types_js_1.slotFilterMinSlot; } });
|
|
127
|
+
Object.defineProperty(exports, "slotFilterMaxSlot", { enumerable: true, get: function () { return types_js_1.slotFilterMaxSlot; } });
|
|
128
|
+
Object.defineProperty(exports, "accountFilterFromProgramOwners", { enumerable: true, get: function () { return types_js_1.accountFilterFromProgramOwners; } });
|
|
129
|
+
Object.defineProperty(exports, "accountFilterMemcmp", { enumerable: true, get: function () { return types_js_1.accountFilterMemcmp; } });
|
|
130
|
+
Object.defineProperty(exports, "eventTypeFilterIncludeOnly", { enumerable: true, get: function () { return types_js_1.eventTypeFilterIncludeOnly; } });
|
|
131
|
+
Object.defineProperty(exports, "eventTypeFilterExclude", { enumerable: true, get: function () { return types_js_1.eventTypeFilterExclude; } });
|
|
132
|
+
Object.defineProperty(exports, "eventTypeFilterIncludesPumpfun", { enumerable: true, get: function () { return types_js_1.eventTypeFilterIncludesPumpfun; } });
|
|
133
|
+
Object.defineProperty(exports, "eventTypeFilterIncludesPumpswap", { enumerable: true, get: function () { return types_js_1.eventTypeFilterIncludesPumpswap; } });
|
|
134
|
+
Object.defineProperty(exports, "eventTypeFilterIncludesMeteoraDammV2", { enumerable: true, get: function () { return types_js_1.eventTypeFilterIncludesMeteoraDammV2; } });
|
|
135
|
+
Object.defineProperty(exports, "eventTypeFilterIncludesMeteoraDbc", { enumerable: true, get: function () { return types_js_1.eventTypeFilterIncludesMeteoraDbc; } });
|
|
136
|
+
Object.defineProperty(exports, "eventTypeFilterIncludesMeteoraPools", { enumerable: true, get: function () { return types_js_1.eventTypeFilterIncludesMeteoraPools; } });
|
|
137
|
+
Object.defineProperty(exports, "eventTypeFilterIncludesMeteoraDlmm", { enumerable: true, get: function () { return types_js_1.eventTypeFilterIncludesMeteoraDlmm; } });
|
|
138
|
+
Object.defineProperty(exports, "eventTypeFilterIncludesRaydiumClmm", { enumerable: true, get: function () { return types_js_1.eventTypeFilterIncludesRaydiumClmm; } });
|
|
139
|
+
Object.defineProperty(exports, "eventTypeFilterIncludesRaydiumCpmm", { enumerable: true, get: function () { return types_js_1.eventTypeFilterIncludesRaydiumCpmm; } });
|
|
140
|
+
Object.defineProperty(exports, "eventTypeFilterIncludesRaydiumAmmV4", { enumerable: true, get: function () { return types_js_1.eventTypeFilterIncludesRaydiumAmmV4; } });
|
|
141
|
+
Object.defineProperty(exports, "eventTypeFilterIncludesOrcaWhirlpool", { enumerable: true, get: function () { return types_js_1.eventTypeFilterIncludesOrcaWhirlpool; } });
|
|
142
|
+
Object.defineProperty(exports, "eventTypeFilterIncludesRaydiumLaunchlab", { enumerable: true, get: function () { return types_js_1.eventTypeFilterIncludesRaydiumLaunchlab; } });
|
|
143
|
+
Object.defineProperty(exports, "eventTypeFilterIncludesPumpFees", { enumerable: true, get: function () { return types_js_1.eventTypeFilterIncludesPumpFees; } });
|
|
144
|
+
Object.defineProperty(exports, "eventTypeFilterAllowsInstructionParsing", { enumerable: true, get: function () { return types_js_1.eventTypeFilterAllowsInstructionParsing; } });
|
|
145
|
+
Object.defineProperty(exports, "ALL_EVENT_TYPES", { enumerable: true, get: function () { return types_js_1.ALL_EVENT_TYPES; } });
|
|
146
|
+
var types_js_2 = require("./grpc/types.js");
|
|
147
|
+
Object.defineProperty(exports, "all_event_types", { enumerable: true, get: function () { return types_js_2.ALL_EVENT_TYPES; } });
|
|
148
|
+
var program_ids_js_1 = require("./grpc/program_ids.js");
|
|
149
|
+
Object.defineProperty(exports, "PROTOCOL_PROGRAM_IDS", { enumerable: true, get: function () { return program_ids_js_1.PROTOCOL_PROGRAM_IDS; } });
|
|
150
|
+
Object.defineProperty(exports, "PUMPFUN_PROGRAM_ID", { enumerable: true, get: function () { return program_ids_js_1.PUMPFUN_PROGRAM_ID; } });
|
|
151
|
+
Object.defineProperty(exports, "PUMPSWAP_PROGRAM_ID", { enumerable: true, get: function () { return program_ids_js_1.PUMPSWAP_PROGRAM_ID; } });
|
|
152
|
+
Object.defineProperty(exports, "PUMPSWAP_FEES_PROGRAM_ID", { enumerable: true, get: function () { return program_ids_js_1.PUMPSWAP_FEES_PROGRAM_ID; } });
|
|
153
|
+
Object.defineProperty(exports, "PUMP_FEES_PROGRAM_ID", { enumerable: true, get: function () { return program_ids_js_1.PUMP_FEES_PROGRAM_ID; } });
|
|
154
|
+
Object.defineProperty(exports, "RAYDIUM_LAUNCHLAB_PROGRAM_ID", { enumerable: true, get: function () { return program_ids_js_1.RAYDIUM_LAUNCHLAB_PROGRAM_ID; } });
|
|
155
|
+
Object.defineProperty(exports, "RAYDIUM_CPMM_PROGRAM_ID", { enumerable: true, get: function () { return program_ids_js_1.RAYDIUM_CPMM_PROGRAM_ID; } });
|
|
156
|
+
Object.defineProperty(exports, "RAYDIUM_CLMM_PROGRAM_ID", { enumerable: true, get: function () { return program_ids_js_1.RAYDIUM_CLMM_PROGRAM_ID; } });
|
|
157
|
+
Object.defineProperty(exports, "RAYDIUM_AMM_V4_PROGRAM_ID", { enumerable: true, get: function () { return program_ids_js_1.RAYDIUM_AMM_V4_PROGRAM_ID; } });
|
|
158
|
+
Object.defineProperty(exports, "ORCA_WHIRLPOOL_PROGRAM_ID", { enumerable: true, get: function () { return program_ids_js_1.ORCA_WHIRLPOOL_PROGRAM_ID; } });
|
|
159
|
+
Object.defineProperty(exports, "METEORA_POOLS_PROGRAM_ID", { enumerable: true, get: function () { return program_ids_js_1.METEORA_POOLS_PROGRAM_ID; } });
|
|
160
|
+
Object.defineProperty(exports, "METEORA_DAMM_V2_PROGRAM_ID", { enumerable: true, get: function () { return program_ids_js_1.METEORA_DAMM_V2_PROGRAM_ID; } });
|
|
161
|
+
Object.defineProperty(exports, "METEORA_DLMM_PROGRAM_ID", { enumerable: true, get: function () { return program_ids_js_1.METEORA_DLMM_PROGRAM_ID; } });
|
|
162
|
+
Object.defineProperty(exports, "METEORA_DBC_PROGRAM_ID", { enumerable: true, get: function () { return program_ids_js_1.METEORA_DBC_PROGRAM_ID; } });
|
|
163
|
+
Object.defineProperty(exports, "getProgramIdsForProtocols", { enumerable: true, get: function () { return program_ids_js_1.getProgramIdsForProtocols; } });
|
|
164
|
+
Object.defineProperty(exports, "transactionFilterForProtocols", { enumerable: true, get: function () { return program_ids_js_1.transactionFilterForProtocols; } });
|
|
165
|
+
Object.defineProperty(exports, "accountFilterForProtocols", { enumerable: true, get: function () { return program_ids_js_1.accountFilterForProtocols; } });
|
|
166
|
+
var program_ids_js_2 = require("./grpc/program_ids.js");
|
|
167
|
+
Object.defineProperty(exports, "protocol_program_ids", { enumerable: true, get: function () { return program_ids_js_2.PROTOCOL_PROGRAM_IDS; } });
|
|
168
|
+
Object.defineProperty(exports, "get_program_ids_for_protocols", { enumerable: true, get: function () { return program_ids_js_2.getProgramIdsForProtocols; } });
|
|
169
|
+
Object.defineProperty(exports, "transaction_filter_for_protocols", { enumerable: true, get: function () { return program_ids_js_2.transactionFilterForProtocols; } });
|
|
170
|
+
Object.defineProperty(exports, "account_filter_for_protocols", { enumerable: true, get: function () { return program_ids_js_2.accountFilterForProtocols; } });
|
|
171
|
+
/** Rust `grpc::types` 蛇形命名别名 */
|
|
172
|
+
var types_js_3 = require("./grpc/types.js");
|
|
173
|
+
Object.defineProperty(exports, "default_client_config", { enumerable: true, get: function () { return types_js_3.defaultClientConfig; } });
|
|
174
|
+
Object.defineProperty(exports, "low_latency_client_config", { enumerable: true, get: function () { return types_js_3.lowLatencyClientConfig; } });
|
|
175
|
+
Object.defineProperty(exports, "high_throughput_client_config", { enumerable: true, get: function () { return types_js_3.highThroughputClientConfig; } });
|
|
176
|
+
Object.defineProperty(exports, "new_transaction_filter", { enumerable: true, get: function () { return types_js_3.newTransactionFilter; } });
|
|
177
|
+
Object.defineProperty(exports, "transaction_filter_from_program_ids", { enumerable: true, get: function () { return types_js_3.transactionFilterFromProgramIds; } });
|
|
178
|
+
Object.defineProperty(exports, "new_account_filter", { enumerable: true, get: function () { return types_js_3.newAccountFilter; } });
|
|
179
|
+
Object.defineProperty(exports, "new_slot_filter", { enumerable: true, get: function () { return types_js_3.newSlotFilter; } });
|
|
180
|
+
Object.defineProperty(exports, "slot_filter_min_slot", { enumerable: true, get: function () { return types_js_3.slotFilterMinSlot; } });
|
|
181
|
+
Object.defineProperty(exports, "slot_filter_max_slot", { enumerable: true, get: function () { return types_js_3.slotFilterMaxSlot; } });
|
|
182
|
+
Object.defineProperty(exports, "account_filter_from_program_owners", { enumerable: true, get: function () { return types_js_3.accountFilterFromProgramOwners; } });
|
|
183
|
+
Object.defineProperty(exports, "account_filter_memcmp", { enumerable: true, get: function () { return types_js_3.accountFilterMemcmp; } });
|
|
184
|
+
Object.defineProperty(exports, "event_type_filter_include_only", { enumerable: true, get: function () { return types_js_3.eventTypeFilterIncludeOnly; } });
|
|
185
|
+
Object.defineProperty(exports, "event_type_filter_exclude", { enumerable: true, get: function () { return types_js_3.eventTypeFilterExclude; } });
|
|
186
|
+
Object.defineProperty(exports, "include_only", { enumerable: true, get: function () { return types_js_3.eventTypeFilterIncludeOnly; } });
|
|
187
|
+
Object.defineProperty(exports, "exclude_types", { enumerable: true, get: function () { return types_js_3.eventTypeFilterExclude; } });
|
|
188
|
+
var subscribe_builder_js_1 = require("./grpc/subscribe_builder.js");
|
|
189
|
+
Object.defineProperty(exports, "buildSubscribeRequest", { enumerable: true, get: function () { return subscribe_builder_js_1.buildSubscribeRequest; } });
|
|
190
|
+
Object.defineProperty(exports, "buildSubscribeRequestWithCommitment", { enumerable: true, get: function () { return subscribe_builder_js_1.buildSubscribeRequestWithCommitment; } });
|
|
191
|
+
Object.defineProperty(exports, "buildSubscribeTransactionFiltersNamed", { enumerable: true, get: function () { return subscribe_builder_js_1.buildSubscribeTransactionFiltersNamed; } });
|
|
192
|
+
Object.defineProperty(exports, "CommitmentLevel", { enumerable: true, get: function () { return subscribe_builder_js_1.CommitmentLevel; } });
|
|
193
|
+
/** Rust `grpc::subscribe_builder` 蛇形命名 */
|
|
194
|
+
var subscribe_builder_js_2 = require("./grpc/subscribe_builder.js");
|
|
195
|
+
Object.defineProperty(exports, "build_subscribe_request", { enumerable: true, get: function () { return subscribe_builder_js_2.buildSubscribeRequest; } });
|
|
196
|
+
Object.defineProperty(exports, "build_subscribe_request_with_commitment", { enumerable: true, get: function () { return subscribe_builder_js_2.buildSubscribeRequestWithCommitment; } });
|
|
197
|
+
Object.defineProperty(exports, "build_subscribe_transaction_filters_named", { enumerable: true, get: function () { return subscribe_builder_js_2.buildSubscribeTransactionFiltersNamed; } });
|
|
198
|
+
var optimized_matcher_js_1 = require("./logs/optimized_matcher.js");
|
|
199
|
+
Object.defineProperty(exports, "parseInvokeInfo", { enumerable: true, get: function () { return optimized_matcher_js_1.parseInvokeInfo; } });
|
|
200
|
+
Object.defineProperty(exports, "parseLogOptimized", { enumerable: true, get: function () { return optimized_matcher_js_1.parseLogOptimized; } });
|
|
201
|
+
Object.defineProperty(exports, "parseLogOptimizedWithProgramId", { enumerable: true, get: function () { return optimized_matcher_js_1.parseLogOptimizedWithProgramId; } });
|
|
202
|
+
Object.defineProperty(exports, "parseLogUnified", { enumerable: true, get: function () { return optimized_matcher_js_1.parseLogUnified; } });
|
|
203
|
+
Object.defineProperty(exports, "parseProgramCompleteInfo", { enumerable: true, get: function () { return optimized_matcher_js_1.parseProgramCompleteInfo; } });
|
|
204
|
+
/** Rust `logs` 蛇形命名别名(`parse_meteora_damm_log` 等) */
|
|
205
|
+
var rust_aliases_js_1 = require("./logs/rust_aliases.js");
|
|
206
|
+
Object.defineProperty(exports, "parse_meteora_damm_log", { enumerable: true, get: function () { return rust_aliases_js_1.parse_meteora_damm_log; } });
|
|
207
|
+
Object.defineProperty(exports, "parse_meteora_dlmm_log", { enumerable: true, get: function () { return rust_aliases_js_1.parse_meteora_dlmm_log; } });
|
|
208
|
+
Object.defineProperty(exports, "parse_log_optimized", { enumerable: true, get: function () { return rust_aliases_js_1.parse_log_optimized; } });
|
|
209
|
+
Object.defineProperty(exports, "parse_log_unified", { enumerable: true, get: function () { return rust_aliases_js_1.parse_log_unified; } });
|
|
210
|
+
/** 与 Rust `logs::discriminator_lut` 名称 / 协议查询对齐 */
|
|
211
|
+
var discriminator_lut_js_1 = require("./logs/discriminator_lut.js");
|
|
212
|
+
Object.defineProperty(exports, "discriminatorToName", { enumerable: true, get: function () { return discriminator_lut_js_1.discriminatorToName; } });
|
|
213
|
+
Object.defineProperty(exports, "discriminator_to_name", { enumerable: true, get: function () { return discriminator_lut_js_1.discriminator_to_name; } });
|
|
214
|
+
Object.defineProperty(exports, "discriminatorToProtocol", { enumerable: true, get: function () { return discriminator_lut_js_1.discriminatorToProtocol; } });
|
|
215
|
+
Object.defineProperty(exports, "discriminator_to_protocol", { enumerable: true, get: function () { return discriminator_lut_js_1.discriminator_to_protocol; } });
|
|
216
|
+
Object.defineProperty(exports, "lookupDiscriminator", { enumerable: true, get: function () { return discriminator_lut_js_1.lookupDiscriminator; } });
|
|
217
|
+
Object.defineProperty(exports, "lookup_discriminator", { enumerable: true, get: function () { return discriminator_lut_js_1.lookup_discriminator; } });
|
|
218
|
+
var meteora_damm_js_1 = require("./logs/meteora_damm.js");
|
|
219
|
+
Object.defineProperty(exports, "parseMeteoraDammLog", { enumerable: true, get: function () { return meteora_damm_js_1.parseMeteoraDammLog; } });
|
|
220
|
+
var program_log_discriminators_js_1 = require("./logs/program_log_discriminators.js");
|
|
221
|
+
Object.defineProperty(exports, "PROGRAM_LOG_DISC", { enumerable: true, get: function () { return program_log_discriminators_js_1.PROGRAM_LOG_DISC; } });
|
|
222
|
+
Object.defineProperty(exports, "PUMPSWAP_DISC", { enumerable: true, get: function () { return program_log_discriminators_js_1.PUMPSWAP_DISC; } });
|
|
223
|
+
Object.defineProperty(exports, "u64leDiscriminator", { enumerable: true, get: function () { return program_log_discriminators_js_1.u64leDiscriminator; } });
|
|
224
|
+
var mod_js_1 = require("./accounts/mod.js");
|
|
225
|
+
Object.defineProperty(exports, "parseAccountUnified", { enumerable: true, get: function () { return mod_js_1.parseAccountUnified; } });
|
|
226
|
+
Object.defineProperty(exports, "parseNonceAccount", { enumerable: true, get: function () { return mod_js_1.parseNonceAccount; } });
|
|
227
|
+
Object.defineProperty(exports, "isNonceAccount", { enumerable: true, get: function () { return mod_js_1.isNonceAccount; } });
|
|
228
|
+
Object.defineProperty(exports, "parseTokenAccount", { enumerable: true, get: function () { return mod_js_1.parseTokenAccount; } });
|
|
229
|
+
Object.defineProperty(exports, "parsePumpfunGlobal", { enumerable: true, get: function () { return mod_js_1.parsePumpfunGlobal; } });
|
|
230
|
+
Object.defineProperty(exports, "parsePumpfunAccount", { enumerable: true, get: function () { return mod_js_1.parsePumpfunAccount; } });
|
|
231
|
+
Object.defineProperty(exports, "isPumpfunGlobalAccount", { enumerable: true, get: function () { return mod_js_1.isPumpfunGlobalAccount; } });
|
|
232
|
+
Object.defineProperty(exports, "parsePumpswapGlobalConfig", { enumerable: true, get: function () { return mod_js_1.parsePumpswapGlobalConfig; } });
|
|
233
|
+
Object.defineProperty(exports, "parsePumpswapPool", { enumerable: true, get: function () { return mod_js_1.parsePumpswapPool; } });
|
|
234
|
+
Object.defineProperty(exports, "parsePumpswapAccount", { enumerable: true, get: function () { return mod_js_1.parsePumpswapAccount; } });
|
|
235
|
+
Object.defineProperty(exports, "isGlobalConfigAccount", { enumerable: true, get: function () { return mod_js_1.isGlobalConfigAccount; } });
|
|
236
|
+
Object.defineProperty(exports, "isPoolAccount", { enumerable: true, get: function () { return mod_js_1.isPoolAccount; } });
|
|
237
|
+
Object.defineProperty(exports, "hasDiscriminator", { enumerable: true, get: function () { return mod_js_1.hasDiscriminator; } });
|
|
238
|
+
Object.defineProperty(exports, "userWalletPubkeyForOnchainAccount", { enumerable: true, get: function () { return mod_js_1.userWalletPubkeyForOnchainAccount; } });
|
|
239
|
+
Object.defineProperty(exports, "rpcResolveUserWalletPubkey", { enumerable: true, get: function () { return mod_js_1.rpcResolveUserWalletPubkey; } });
|
|
240
|
+
/** Rust `accounts` 蛇形命名别名 */
|
|
241
|
+
var rust_aliases_js_2 = require("./accounts/rust_aliases.js");
|
|
242
|
+
Object.defineProperty(exports, "parse_account_unified", { enumerable: true, get: function () { return rust_aliases_js_2.parse_account_unified; } });
|
|
243
|
+
Object.defineProperty(exports, "parse_nonce_account", { enumerable: true, get: function () { return rust_aliases_js_2.parse_nonce_account; } });
|
|
244
|
+
Object.defineProperty(exports, "parse_token_account", { enumerable: true, get: function () { return rust_aliases_js_2.parse_token_account; } });
|
|
245
|
+
Object.defineProperty(exports, "parse_pumpfun_global", { enumerable: true, get: function () { return rust_aliases_js_2.parse_pumpfun_global; } });
|
|
246
|
+
Object.defineProperty(exports, "parse_pumpswap_global_config", { enumerable: true, get: function () { return rust_aliases_js_2.parse_pumpswap_global_config; } });
|
|
247
|
+
Object.defineProperty(exports, "parse_pumpswap_pool", { enumerable: true, get: function () { return rust_aliases_js_2.parse_pumpswap_pool; } });
|
|
248
|
+
Object.defineProperty(exports, "rpc_resolve_user_wallet_pubkey", { enumerable: true, get: function () { return rust_aliases_js_2.rpc_resolve_user_wallet_pubkey; } });
|
|
249
|
+
Object.defineProperty(exports, "user_wallet_pubkey_for_onchain_account", { enumerable: true, get: function () { return rust_aliases_js_2.user_wallet_pubkey_for_onchain_account; } });
|
|
250
|
+
var mod_js_2 = require("./instr/mod.js");
|
|
251
|
+
Object.defineProperty(exports, "parseInstructionUnified", { enumerable: true, get: function () { return mod_js_2.parseInstructionUnified; } });
|
|
252
|
+
Object.defineProperty(exports, "parsePumpfunInstruction", { enumerable: true, get: function () { return mod_js_2.parsePumpfunInstruction; } });
|
|
253
|
+
Object.defineProperty(exports, "parsePumpswapInstruction", { enumerable: true, get: function () { return mod_js_2.parsePumpswapInstruction; } });
|
|
254
|
+
Object.defineProperty(exports, "parseMeteoraDammInstruction", { enumerable: true, get: function () { return mod_js_2.parseMeteoraDammInstruction; } });
|
|
255
|
+
Object.defineProperty(exports, "parseMeteoraDlmmInstruction", { enumerable: true, get: function () { return mod_js_2.parseMeteoraDlmmInstruction; } });
|
|
256
|
+
Object.defineProperty(exports, "parseMeteoraPoolsInstruction", { enumerable: true, get: function () { return mod_js_2.parseMeteoraPoolsInstruction; } });
|
|
257
|
+
Object.defineProperty(exports, "parsePumpFeesInstruction", { enumerable: true, get: function () { return mod_js_2.parsePumpFeesInstruction; } });
|
|
258
|
+
/** Rust `instr` 根模块蛇形命名别名 */
|
|
259
|
+
var rust_aliases_js_3 = require("./instr/rust_aliases.js");
|
|
260
|
+
Object.defineProperty(exports, "parse_instruction_unified", { enumerable: true, get: function () { return rust_aliases_js_3.parse_instruction_unified; } });
|
|
261
|
+
Object.defineProperty(exports, "parse_pumpfun_instruction", { enumerable: true, get: function () { return rust_aliases_js_3.parse_pumpfun_instruction; } });
|
|
262
|
+
Object.defineProperty(exports, "parse_pumpswap_instruction", { enumerable: true, get: function () { return rust_aliases_js_3.parse_pumpswap_instruction; } });
|
|
263
|
+
Object.defineProperty(exports, "parse_meteora_damm_instruction", { enumerable: true, get: function () { return rust_aliases_js_3.parse_meteora_damm_instruction; } });
|
|
264
|
+
Object.defineProperty(exports, "parse_meteora_dlmm_instruction", { enumerable: true, get: function () { return rust_aliases_js_3.parse_meteora_dlmm_instruction; } });
|
|
265
|
+
Object.defineProperty(exports, "parse_meteora_pools_instruction", { enumerable: true, get: function () { return rust_aliases_js_3.parse_meteora_pools_instruction; } });
|
|
266
|
+
Object.defineProperty(exports, "parse_pump_fees_instruction", { enumerable: true, get: function () { return rust_aliases_js_3.parse_pump_fees_instruction; } });
|
|
267
|
+
exports.programIds = __importStar(require("./instr/program_ids.js"));
|
|
268
|
+
var client_js_1 = require("./grpc/client.js");
|
|
269
|
+
Object.defineProperty(exports, "YellowstoneGrpc", { enumerable: true, get: function () { return client_js_1.YellowstoneGrpc; } });
|
|
270
|
+
var geyser_connect_js_1 = require("./grpc/geyser_connect.js");
|
|
271
|
+
Object.defineProperty(exports, "connectYellowstoneGeyser", { enumerable: true, get: function () { return geyser_connect_js_1.connectYellowstoneGeyser; } });
|
|
272
|
+
Object.defineProperty(exports, "defaultGeyserConnectConfig", { enumerable: true, get: function () { return geyser_connect_js_1.defaultGeyserConnectConfig; } });
|
|
273
|
+
Object.defineProperty(exports, "geyserGrpcChannelOptions", { enumerable: true, get: function () { return geyser_connect_js_1.geyserGrpcChannelOptions; } });
|
|
274
|
+
/** 与 Rust `sol_parser_sdk::grpc::event_parser` 模块对应 */
|
|
275
|
+
exports.event_parser = __importStar(require("./grpc/event_parser.js"));
|
|
276
|
+
var geyser_connect_js_2 = require("./grpc/geyser_connect.js");
|
|
277
|
+
Object.defineProperty(exports, "connect_yellowstone_geyser", { enumerable: true, get: function () { return geyser_connect_js_2.connectYellowstoneGeyser; } });
|
|
278
|
+
Object.defineProperty(exports, "default_geyser_connect_config", { enumerable: true, get: function () { return geyser_connect_js_2.defaultGeyserConnectConfig; } });
|
|
279
|
+
Object.defineProperty(exports, "geyser_grpc_channel_options", { enumerable: true, get: function () { return geyser_connect_js_2.geyserGrpcChannelOptions; } });
|
|
280
|
+
var index_js_1 = require("./shredstream/index.js");
|
|
281
|
+
Object.defineProperty(exports, "ShredStreamClient", { enumerable: true, get: function () { return index_js_1.ShredStreamClient; } });
|
|
282
|
+
Object.defineProperty(exports, "ShredEventQueue", { enumerable: true, get: function () { return index_js_1.ShredEventQueue; } });
|
|
283
|
+
Object.defineProperty(exports, "dexEventsFromShredWasmTx", { enumerable: true, get: function () { return index_js_1.dexEventsFromShredWasmTx; } });
|
|
284
|
+
Object.defineProperty(exports, "dexEventsFromShredWasmTxWithFullKeys", { enumerable: true, get: function () { return index_js_1.dexEventsFromShredWasmTxWithFullKeys; } });
|
|
285
|
+
Object.defineProperty(exports, "fullAccountKeyStringsFromShredTx", { enumerable: true, get: function () { return index_js_1.fullAccountKeyStringsFromShredTx; } });
|
|
286
|
+
Object.defineProperty(exports, "loadAddressLookupTableAccounts", { enumerable: true, get: function () { return index_js_1.loadAddressLookupTableAccounts; } });
|
|
287
|
+
Object.defineProperty(exports, "bincodeVecEntryCount", { enumerable: true, get: function () { return index_js_1.bincodeVecEntryCount; } });
|
|
288
|
+
Object.defineProperty(exports, "decodeEntriesBincodeFlat", { enumerable: true, get: function () { return index_js_1.decodeEntriesBincodeFlat; } });
|
|
289
|
+
Object.defineProperty(exports, "decodeEntriesBincodeNested", { enumerable: true, get: function () { return index_js_1.decodeEntriesBincodeNested; } });
|
|
290
|
+
Object.defineProperty(exports, "decodeShredstreamEntriesBincode", { enumerable: true, get: function () { return index_js_1.decodeShredstreamEntriesBincode; } });
|
|
291
|
+
Object.defineProperty(exports, "wireBytesToShredWasmTx", { enumerable: true, get: function () { return index_js_1.wireBytesToShredWasmTx; } });
|
|
292
|
+
Object.defineProperty(exports, "defaultShredStreamConfig", { enumerable: true, get: function () { return index_js_1.defaultShredStreamConfig; } });
|
|
293
|
+
Object.defineProperty(exports, "lowLatencyShredStreamConfig", { enumerable: true, get: function () { return index_js_1.lowLatencyShredStreamConfig; } });
|
|
294
|
+
Object.defineProperty(exports, "highThroughputShredStreamConfig", { enumerable: true, get: function () { return index_js_1.highThroughputShredStreamConfig; } });
|
|
295
|
+
var index_js_2 = require("./shredstream/index.js");
|
|
296
|
+
Object.defineProperty(exports, "default_shred_stream_config", { enumerable: true, get: function () { return index_js_2.defaultShredStreamConfig; } });
|
|
297
|
+
Object.defineProperty(exports, "low_latency_shred_stream_config", { enumerable: true, get: function () { return index_js_2.lowLatencyShredStreamConfig; } });
|
|
298
|
+
Object.defineProperty(exports, "high_throughput_shred_stream_config", { enumerable: true, get: function () { return index_js_2.highThroughputShredStreamConfig; } });
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bonk / Raydium Launchpad 指令解析
|
|
3
|
+
*
|
|
4
|
+
* 1) **Program data 日志形载荷**(与 `logs/raydium_launchpad` 一致):前 8 字节为事件 disc,后跟 pool/user/金额…
|
|
5
|
+
* 2) **Anchor 外层指令**:`global:buy` / `sell` / `create_pool` / `migrate_to_amm` 等(sha256 前 8 字节),参数多为 Borsh u64。
|
|
6
|
+
*/
|
|
7
|
+
import type { DexEvent } from "../core/dex_event.js";
|
|
8
|
+
export declare function parseBonkInstruction(instructionData: Uint8Array, accounts: string[], signature: string, slot: number, txIndex: number, blockTimeUs: number | undefined, grpcRecvUs: number): DexEvent | null;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.parseBonkInstruction = parseBonkInstruction;
|
|
4
|
+
const dex_event_js_1 = require("../core/dex_event.js");
|
|
5
|
+
const raydium_launchpad_js_1 = require("../logs/raydium_launchpad.js");
|
|
6
|
+
const utils_js_1 = require("./utils.js");
|
|
7
|
+
const Z = (0, dex_event_js_1.defaultPubkey)();
|
|
8
|
+
/** Anchor `sha256("global:<name>")[0..8]`,与链上 Launchpad / pAMM 系指令一致 */
|
|
9
|
+
const ANCHOR = {
|
|
10
|
+
BUY: [102, 6, 61, 18, 1, 218, 235, 234],
|
|
11
|
+
SELL: [51, 230, 133, 164, 1, 127, 131, 173],
|
|
12
|
+
BUY_EXACT_IN: [250, 234, 13, 123, 213, 156, 19, 236],
|
|
13
|
+
SELL_EXACT_OUT: [95, 200, 71, 34, 8, 9, 11, 166],
|
|
14
|
+
CREATE_POOL: [233, 146, 209, 142, 207, 104, 64, 188],
|
|
15
|
+
MIGRATE_TO_AMM: [207, 82, 192, 145, 254, 207, 145, 223],
|
|
16
|
+
};
|
|
17
|
+
function discEqU64(data, disc) {
|
|
18
|
+
if (data.length < 8)
|
|
19
|
+
return false;
|
|
20
|
+
const v = (0, utils_js_1.readU64LE)(data, 0);
|
|
21
|
+
return v === disc;
|
|
22
|
+
}
|
|
23
|
+
function headEq(data, bytes) {
|
|
24
|
+
if (data.length < 8)
|
|
25
|
+
return false;
|
|
26
|
+
for (let i = 0; i < 8; i++)
|
|
27
|
+
if (data[i] !== bytes[i])
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
/** 与 PumpSwap buy/sell 一致:两 u64(base / quote 侧限额) */
|
|
32
|
+
function tradeFromTwoU64(payload, accounts, meta, mode) {
|
|
33
|
+
const a0 = (0, utils_js_1.readU64LE)(payload, 0) ?? 0n;
|
|
34
|
+
const a1 = (0, utils_js_1.readU64LE)(payload, 8) ?? 0n;
|
|
35
|
+
const pool = (0, utils_js_1.getAccount)(accounts, 1) ?? Z;
|
|
36
|
+
const user = (0, utils_js_1.getAccount)(accounts, 0) ?? Z;
|
|
37
|
+
if (mode === "buy") {
|
|
38
|
+
return {
|
|
39
|
+
BonkTrade: {
|
|
40
|
+
metadata: meta,
|
|
41
|
+
pool_state: pool,
|
|
42
|
+
user,
|
|
43
|
+
amount_in: a1,
|
|
44
|
+
amount_out: a0,
|
|
45
|
+
is_buy: true,
|
|
46
|
+
trade_direction: "Buy",
|
|
47
|
+
exact_in: true,
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
BonkTrade: {
|
|
53
|
+
metadata: meta,
|
|
54
|
+
pool_state: pool,
|
|
55
|
+
user,
|
|
56
|
+
amount_in: a0,
|
|
57
|
+
amount_out: a1,
|
|
58
|
+
is_buy: false,
|
|
59
|
+
trade_direction: "Sell",
|
|
60
|
+
exact_in: true,
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
function parseBonkInstruction(instructionData, accounts, signature, slot, txIndex, blockTimeUs, grpcRecvUs) {
|
|
65
|
+
if (instructionData.length < 8)
|
|
66
|
+
return null;
|
|
67
|
+
const meta = (0, utils_js_1.ixMeta)(signature, slot, txIndex, blockTimeUs, grpcRecvUs);
|
|
68
|
+
// --- Program data 事件形(与链上 emit 载荷一致,偶见于外层) ---
|
|
69
|
+
if (discEqU64(instructionData, raydium_launchpad_js_1.BONK_DISC.TRADE)) {
|
|
70
|
+
return (0, raydium_launchpad_js_1.parseBonkTradeFromData)(instructionData.subarray(8), meta);
|
|
71
|
+
}
|
|
72
|
+
if (discEqU64(instructionData, raydium_launchpad_js_1.BONK_DISC.POOL_CREATE)) {
|
|
73
|
+
return (0, raydium_launchpad_js_1.parseBonkPoolCreateFromData)(instructionData.subarray(8), meta);
|
|
74
|
+
}
|
|
75
|
+
if (discEqU64(instructionData, raydium_launchpad_js_1.BONK_DISC.MIGRATE_AMM)) {
|
|
76
|
+
return (0, raydium_launchpad_js_1.parseBonkMigrateAmmFromData)(instructionData.subarray(8), meta);
|
|
77
|
+
}
|
|
78
|
+
const rest = instructionData.subarray(8);
|
|
79
|
+
// --- Anchor:买卖(两 u64) ---
|
|
80
|
+
if (headEq(instructionData, ANCHOR.BUY) || headEq(instructionData, ANCHOR.BUY_EXACT_IN)) {
|
|
81
|
+
if (rest.length < 16)
|
|
82
|
+
return null;
|
|
83
|
+
return tradeFromTwoU64(rest, accounts, meta, "buy");
|
|
84
|
+
}
|
|
85
|
+
if (headEq(instructionData, ANCHOR.SELL) || headEq(instructionData, ANCHOR.SELL_EXACT_OUT)) {
|
|
86
|
+
if (rest.length < 16)
|
|
87
|
+
return null;
|
|
88
|
+
return tradeFromTwoU64(rest, accounts, meta, "sell");
|
|
89
|
+
}
|
|
90
|
+
// --- create_pool:优先按日志形载荷解析;否则用账户兜底 ---
|
|
91
|
+
if (headEq(instructionData, ANCHOR.CREATE_POOL)) {
|
|
92
|
+
const parsed = (0, raydium_launchpad_js_1.parseBonkPoolCreateFromData)(rest, meta);
|
|
93
|
+
if (parsed)
|
|
94
|
+
return parsed;
|
|
95
|
+
if (accounts.length >= 9) {
|
|
96
|
+
return {
|
|
97
|
+
BonkPoolCreate: {
|
|
98
|
+
metadata: meta,
|
|
99
|
+
base_mint_param: {
|
|
100
|
+
symbol: "BONK",
|
|
101
|
+
name: "Bonk Pool",
|
|
102
|
+
uri: "https://bonk.com",
|
|
103
|
+
decimals: 5,
|
|
104
|
+
},
|
|
105
|
+
pool_state: (0, utils_js_1.getAccount)(accounts, 1) ?? Z,
|
|
106
|
+
creator: (0, utils_js_1.getAccount)(accounts, 8) ?? Z,
|
|
107
|
+
},
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
return null;
|
|
111
|
+
}
|
|
112
|
+
// --- migrate_to_amm ---
|
|
113
|
+
if (headEq(instructionData, ANCHOR.MIGRATE_TO_AMM)) {
|
|
114
|
+
const parsed = (0, raydium_launchpad_js_1.parseBonkMigrateAmmFromData)(rest, meta);
|
|
115
|
+
if (parsed)
|
|
116
|
+
return parsed;
|
|
117
|
+
if (rest.length >= 8 && accounts.length >= 3) {
|
|
118
|
+
return {
|
|
119
|
+
BonkMigrateAmm: {
|
|
120
|
+
metadata: meta,
|
|
121
|
+
old_pool: (0, utils_js_1.getAccount)(accounts, 0) ?? Z,
|
|
122
|
+
new_pool: (0, utils_js_1.getAccount)(accounts, 1) ?? Z,
|
|
123
|
+
user: (0, utils_js_1.getAccount)(accounts, 2) ?? Z,
|
|
124
|
+
liquidity_amount: (0, utils_js_1.readU64LE)(rest, 0) ?? 0n,
|
|
125
|
+
},
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
return null;
|
|
129
|
+
}
|
|
130
|
+
return null;
|
|
131
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { DexEvent } from "../core/dex_event.js";
|
|
2
|
+
import type { EventTypeFilter } from "../grpc/types.js";
|
|
3
|
+
export declare function parseInnerCompiledInstructionIfSupported(data: Uint8Array, accounts: string[], signature: string, slot: number, txIndex: number, blockTimeUs: number | undefined, grpcRecvUs: number, filter: EventTypeFilter | undefined, programId: string): DexEvent | null;
|
|
4
|
+
export declare function parseInnerInstructionUnified(instructionData: Uint8Array, accounts: string[], signature: string, slot: number, txIndex: number, blockTimeUs: number | undefined, grpcRecvUs: number, filter: EventTypeFilter | undefined, programId: string, isCreatedBuy?: boolean): DexEvent | null;
|