Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ target/
crates/mock/fixtures
*.env*
Vixen.toml

pnpm-lock.yaml
node_modules
30 changes: 28 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ yellowstone-vixen-proto = { path = "crates/proto", version = "0.5.1" }

yellowstone-vixen-boop-parser = { path = "crates/boop-parser", version = "0.5.1" }
yellowstone-vixen-meteora-parser = { path = "crates/meteora-parser", version = "0.5.1" }
yellowstone-vixen-pumpfun-parser = { path = "crates/pumpfun-parser", version = "0.5.1" }
yellowstone-vixen-pumpfun-parser = { path = "crates/pumpfun-parser", version = "0.5.2" }
yellowstone-vixen-jupiter-swap-parser = { path = "crates/jupiter-swap-parser", version = "0.5.1" }
yellowstone-vixen-meteora-amm-parser = { path = "crates/meteora-amm-parser", version = "0.5.1" }
yellowstone-vixen-meteora-dbc-parser = { path = "crates/meteora-dbc-parser", version = "0.5.1" }
Expand All @@ -92,12 +92,13 @@ yellowstone-vixen-meteora-vault-parser = { path = "crates/meteora-vault-parser",
yellowstone-vixen-moonshot-parser = { path = "crates/moonshot-parser", version = "0.5.1" }
yellowstone-vixen-orca-whirlpool-parser = { path = "crates/orca-whirlpool-parser", version = "0.5.1" }
yellowstone-vixen-raydium-cpmm-parser = { path = "crates/raydium-cpmm-parser", version = "0.5.1" }
yellowstone-vixen-pump-swaps-parser = { path = "crates/pump-swaps-parser", version = "0.5.1" }
yellowstone-vixen-pump-swaps-parser = { path = "crates/pump-swaps-parser", version = "0.5.2" }
yellowstone-vixen-raydium-clmm-parser = { path = "crates/raydium-clmm-parser", version = "0.5.1" }
yellowstone-vixen-raydium-amm-v4-parser = { path = "crates/raydium-amm-v4-parser", version = "0.5.1" }
yellowstone-vixen-kamino-limit-orders-parser = { path = "crates/kamino-limit-orders-parser", version = "0.5.1" }
yellowstone-vixen-raydium-launchpad-parser = { path = "crates/raydium-launchpad-parser", version = "0.5.1" }
yellowstone-vixen-virtuals-parser = { path = "crates/virtuals-parser", version = "0.5.1" }
yellowstone-vixen-pump-fees-parser = { path = "crates/pump-fees-parser", version = "0.5.2" }

# Sources
yellowstone-vixen-solana-rpc-source = { path = "crates/solana-rpc-source", version = "0.3.1" }
Expand Down
42 changes: 42 additions & 0 deletions crates/pump-fees-parser/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
[package]
name = "yellowstone-vixen-pump-fees-parser"
version = "0.5.2"
edition.workspace = true
description = "Vixen program parser for Pump Fees program"
license.workspace = true
repository.workspace = true
authors.workspace = true

[dependencies]
prost.workspace = true
yellowstone-vixen-core = { workspace = true, features = ["proto"] }
tonic = { workspace = true, features = ["gzip", "zstd"] }
solana-account-info.workspace = true
solana-cpi.workspace = true
solana-decode-error.workspace = true
solana-pubkey = { workspace = true, features = ["curve25519", "borsh"] }
solana-instruction.workspace = true
solana-msg.workspace = true
solana-program-entrypoint.workspace = true
solana-program-error.workspace = true
borsh.workspace = true
num-derive.workspace = true
thiserror.workspace = true
num-traits.workspace = true
tracing = { workspace = true, optional = true }
strum = { workspace = true, optional = true }
strum_macros = { workspace = true, optional = true }

[features]
anchor = []
anchor-idl-build = []
serde = []
test-sbf = []
fetch = []
tracing = ["dep:tracing", "dep:strum", "dep:strum_macros"]
# Exposes shared transaction data like tx signature, slot and more, to be available in Vixen Handlers
shared-data = []

[build-dependencies]
prost-build.workspace = true
protobuf-src.workspace = true
19 changes: 19 additions & 0 deletions crates/pump-fees-parser/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//! This code was AUTOGENERATED using the codama library.
//! Please DO NOT EDIT THIS FILE, instead use visitors
//! to add features, then rerun codama to update it.
//!
//! <https://github.com/codama-idl/codama>
//!

use std::{env, path::PathBuf};

fn main() {
let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap());
std::env::set_var("PROTOC", protobuf_src::protoc());
// #[cfg(feature = "proto")]
prost_build::Config::new()
.enable_type_names()
.file_descriptor_set_path(out_dir.join("descriptor.bin"))
.compile_protos(&["proto/pump_fees.proto"], &["proto"])
.unwrap();
}
22 changes: 22 additions & 0 deletions crates/pump-fees-parser/codama.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// codama.cjs
const path = require("node:path");
const { rootNode } = require("@codama/nodes");
const { rootNodeFromAnchor } = require("@codama/nodes-from-anchor");
const { readJson } = require("@codama/renderers-core");
const { visit } = require("@codama/visitors-core");
const { renderVisitor } = require("@codama/renderers-vixen-parser");

const projectName = "example-parser";
const idl = readJson(path.join(__dirname, "idl.json"));

// Use the appropriate node constructor based on your IDL type:
const node = rootNodeFromAnchor(idl); // for Anchor/Shank idls
// const node = rootNode(idl.program); // for Codama idls

visit(
node,
renderVisitor({
projectFolder: __dirname,
projectName,
}),
);
Loading