Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
38cfa13
patch to compile
SwenSchaeferjohann Oct 23, 2025
0b317ec
wip
SwenSchaeferjohann Oct 27, 2025
91a203d
add borsh_compat compressed_proof
SwenSchaeferjohann Oct 28, 2025
ba29d31
add new_address_owner to instructiondata trait
SwenSchaeferjohann Oct 28, 2025
45c2057
add derive_compressed_address
SwenSchaeferjohann Oct 28, 2025
e89eace
remaining new_address_owner impl
SwenSchaeferjohann Oct 28, 2025
c2abaeb
add csdk-anchor-test program
SwenSchaeferjohann Oct 28, 2025
a220555
lint add address_owner trait impl
SwenSchaeferjohann Oct 28, 2025
6cc3bca
add sdk libs - wip
SwenSchaeferjohann Oct 28, 2025
c5702b4
add transfer_interface, transfer_ctoken, transfer_spl_to_ctoken, tran…
SwenSchaeferjohann Oct 28, 2025
b04c0f0
rename consistently transfer_x
SwenSchaeferjohann Oct 28, 2025
6691368
rename file transfer_decompressed to transfer_ctoken
SwenSchaeferjohann Oct 28, 2025
14e69b0
add todos
SwenSchaeferjohann Oct 29, 2025
d26b3cb
add create_ctoken_account_signed, rename create_compressible_token_ac…
SwenSchaeferjohann Oct 29, 2025
2dab642
add create_associated_ctoken_account
SwenSchaeferjohann Oct 29, 2025
4250ae9
add inline comment to copyLocalProgramBinaries.sh
SwenSchaeferjohann Oct 29, 2025
4860837
remove new_address_owner
SwenSchaeferjohann Oct 29, 2025
ca189d4
add pack and unpack for tokendata
SwenSchaeferjohann Oct 29, 2025
1afed33
first pass, compressible helpers for light-sdk
SwenSchaeferjohann Oct 29, 2025
f7dfe70
wip
SwenSchaeferjohann Oct 31, 2025
ce3d31a
compiles
SwenSchaeferjohann Nov 2, 2025
2dd20a3
lint
SwenSchaeferjohann Nov 3, 2025
460534c
compressAccountsIdempotent csdk works, adjust test asserts to account…
SwenSchaeferjohann Nov 3, 2025
774778f
ctoken add signer flags for decompress_full_ctoken_accounts_with_indices
SwenSchaeferjohann Nov 3, 2025
3148264
wip
SwenSchaeferjohann Nov 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"git": {
"sha1": "313f623c72bfaaba1f18551e94a3f863d318cc8d"
},
"path_in_vcs": "light-program-profiler"
}
56 changes: 56 additions & 0 deletions .cargo-patches/light-program-profiler-0.1.1/Cargo.lock

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

46 changes: 46 additions & 0 deletions .cargo-patches/light-program-profiler-0.1.1/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "light-program-profiler"
version = "0.1.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Profiler macros with custom profiler syscalls for Solana programs"
homepage = "https://github.com/Lightprotocol/light-program-profiler"
readme = false
license = "Apache-2.0"
repository = "https://github.com/Lightprotocol/light-program-profiler"

[features]
inline = ["light-profiler-macro/inline"]
profile-heap = ["light-profiler-macro/profile-heap"]
profile-program = ["light-profiler-macro/profile-program"]

[lib]
name = "light_program_profiler"
path = "src/lib.rs"

[dependencies.light-profiler-macro]
version = "0.1.1"

[lints.rust.unexpected_cfgs]
level = "allow"
priority = 0
check-cfg = [
'cfg(target_os, values("solana"))',
'cfg(feature, values("frozen-abi", "no-entrypoint"))',
]
23 changes: 23 additions & 0 deletions .cargo-patches/light-program-profiler-0.1.1/Cargo.toml.orig

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

57 changes: 57 additions & 0 deletions .cargo-patches/light-program-profiler-0.1.1/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
#![allow(unused_variables)]
pub use light_profiler_macro::profile;

#[inline(always)]
pub fn log_compute_units_start(id: &str, id_len: u64) {
#[cfg(target_os = "solana")]
unsafe {
sol_log_compute_units_start(id.as_ptr() as u64, id_len, 0, 0, 0);
}
}

#[inline(always)]
pub fn log_compute_units_end(id: &str, id_len: u64) {
#[cfg(target_os = "solana")]
unsafe {
sol_log_compute_units_end(id.as_ptr() as u64, id_len, 0, 0, 0);
}
}

#[cfg(feature = "profile-heap")]
pub fn log_compute_units_start_with_heap(id: &str, id_len: u64, heap_value: u64) {
#[cfg(target_os = "solana")]
unsafe {
sol_log_compute_units_start(id.as_ptr() as u64, id_len, heap_value, 1, 0);
}
}

#[cfg(feature = "profile-heap")]
pub fn log_compute_units_end_with_heap(id: &str, id_len: u64, heap_value: u64) {
#[cfg(target_os = "solana")]
unsafe {
sol_log_compute_units_end(id.as_ptr() as u64, id_len, heap_value, 1, 0);
}
}

#[cfg(target_os = "solana")]
extern "C" {
fn sol_log_compute_units_start(
id_addr: u64,
id_len: u64,
heap_value: u64,
with_heap: u64,
_arg5: u64,
);
}

#[cfg(target_os = "solana")]
extern "C" {

fn sol_log_compute_units_end(
id_addr: u64,
id_len: u64,
heap_value: u64,
with_heap: u64,
_arg5: u64,
);
}
Loading