Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
960bb0f
feat: ctoken pinocchio
ananas-block Jul 2, 2025
eb7ca14
post rebase
ananas-block Jul 29, 2025
23193a0
feat: add addresses to cpi context, enable spending of created accoun…
ananas-block Jul 29, 2025
7bc73dd
system program update small instruction
ananas-block Jul 30, 2025
f0533ed
sdk token 4 cpis works
ananas-block Jul 31, 2025
af868c7
chained token test create mint in cpi context works
ananas-block Jul 31, 2025
f075cf3
chaind token mint to works
ananas-block Jul 31, 2025
f3446cf
stash multiple ctoken action test implemented not working for address…
ananas-block Jul 31, 2025
c589dc0
refactor: cpi context, enable addresses, enable assigned addresses, p…
ananas-block Aug 1, 2025
e7699f8
feat: add cpi context to ctoken ixs
ananas-block Aug 1, 2025
d7ad669
fix: chained ctoken actions test
ananas-block Aug 1, 2025
7854a49
fix: cpi context address owner
ananas-block Aug 1, 2025
9cc1bc1
feat: update compressed mint, untested
ananas-block Aug 1, 2025
cb77b0f
fix tests
ananas-block Aug 1, 2025
190fafc
client test works
ananas-block Aug 1, 2025
73b0376
fixed event parsing in system program, chained test works
ananas-block Aug 1, 2025
abc4348
refactor: rename TokenContext -> HashCache
ananas-block Aug 1, 2025
2c7461a
cleanup ix data, rename UpdateCompressedMintInstructionData -> Compre…
ananas-block Aug 2, 2025
84c99d2
feat: sha hashing for cmints, start update_metadata
ananas-block Aug 3, 2025
e5f39a0
minor CU improvements
ananas-block Aug 3, 2025
948c508
feat: add zero copy enum support
ananas-block Aug 4, 2025
75b71c0
stash mint action
ananas-block Aug 4, 2025
f4ca40a
feat: add update to mint action
ananas-block Aug 4, 2025
53871f3
stash implemeneted mint actions for existing ixs
ananas-block Aug 4, 2025
a67686f
test: mint actions with token client
ananas-block Aug 4, 2025
af28ca4
works without create mint
ananas-block Aug 4, 2025
6558055
stash
ananas-block Aug 4, 2025
ace5a41
cleanup
ananas-block Aug 4, 2025
e0c8e7c
cleanup
ananas-block Aug 4, 2025
a698afa
chained action test passes
ananas-block Aug 4, 2025
da136e0
stash
ananas-block Aug 4, 2025
85ac2d9
chained test cleanup
ananas-block Aug 4, 2025
d50e034
cleanup errors
ananas-block Aug 4, 2025
80e9be7
started refactor create spl mint
ananas-block Aug 4, 2025
eddfc62
feat: mint to decompressed
ananas-block Aug 4, 2025
81da2c6
cherrypicked hasher update: support sha in hasher and lighthasher macro
SwenSchaeferjohann Jul 29, 2025
4210a9d
wip
SwenSchaeferjohann Jul 3, 2025
a6dbc88
fix rebase
SwenSchaeferjohann Jul 29, 2025
e588ae6
gmt
SwenSchaeferjohann Jul 29, 2025
df3a99c
add compressible macro
SwenSchaeferjohann Jul 29, 2025
92ca99b
rebased - fixed macro
SwenSchaeferjohann Jul 30, 2025
0f39a30
compressAs trait for compression with custom data
SwenSchaeferjohann Jul 30, 2025
de90be8
add test, fix lint
SwenSchaeferjohann Jul 30, 2025
b21dfe3
compress_as, flexible
SwenSchaeferjohann Jul 31, 2025
f288f08
Compressible macro auto-derives HasCompressionInfo macro
SwenSchaeferjohann Jul 31, 2025
72d355a
clean
SwenSchaeferjohann Jul 31, 2025
a0f1011
remove debug trait bound
SwenSchaeferjohann Jul 31, 2025
3107626
wip
SwenSchaeferjohann Jul 31, 2025
ccb453f
wip
SwenSchaeferjohann Jul 31, 2025
b4d50ec
add compress_empty_account for native + tests
SwenSchaeferjohann Jul 31, 2025
cb6cdc0
refactor compression config actions to accept rpc trait
SwenSchaeferjohann Aug 1, 2025
39d9768
better upgrade_authority check
SwenSchaeferjohann Aug 1, 2025
bbd03af
better error logging
SwenSchaeferjohann Aug 1, 2025
ae83f70
add cpda derivation check in
SwenSchaeferjohann Aug 1, 2025
4dc4507
js: dedupe in lut creation
SwenSchaeferjohann Aug 4, 2025
e213b8f
add PackedAccounts, deriveAddressV2, initializeCompressionConfig helpers
SwenSchaeferjohann Aug 4, 2025
69d0fbf
add borsh_compat module for validityProof
SwenSchaeferjohann Aug 4, 2025
a082e56
add compressible ts sdk
SwenSchaeferjohann Aug 4, 2025
c876486
packedaccounts, fix v2 tree getters
SwenSchaeferjohann Aug 4, 2025
0f6ed0e
wip
SwenSchaeferjohann Aug 4, 2025
4ad0920
wip
SwenSchaeferjohann Aug 4, 2025
c4fa3b9
wip
SwenSchaeferjohann Aug 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
40 changes: 0 additions & 40 deletions .cargo/config.toml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/ci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ jobs:
shell: bash
- name: Check workflow files
run: ${{ steps.get_actionlint.outputs.executable }} -color
shell: bash
shell: bash
10 changes: 6 additions & 4 deletions .github/workflows/light-examples-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@
- main
paths:
- "examples/**"
- "program-tests/sdk-anchor-test/**"
- "program-tests/sdk-pinocchio-test/**"
- "sdk-libs/**"
pull_request:
branches:
- "*"
paths:
- "examples/**"
- "program-tests/sdk-anchor-test/**"
- "program-tests/sdk-pinocchio-test/**"
- "sdk-libs/**"
types:
- opened
Expand All @@ -24,56 +28,54 @@
cancel-in-progress: true

jobs:
system-programs:
name: system-programs
examples-tests:
name: examples-tests
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
timeout-minutes: 60

services:
redis:
image: redis:8.0.1
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5

env:
REDIS_URL: redis://localhost:6379

strategy:
matrix:
include:
- program: sdk-test-program
sub-tests: '["cargo-test-sbf -p sdk-test"]'
- program: sdk-anchor-test-program
sub-tests: '["cargo-test-sbf -p sdk-anchor-test", "cargo-test-sbf -p sdk-pinocchio-test"]'

steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Setup and build
uses: ./.github/actions/setup-and-build
with:
skip-components: "redis"

- name: build-programs
run: |
source ./scripts/devenv.sh
npx nx build @lightprotocol/programs

- name: ${{ matrix.program }}
run: |
source ./scripts/devenv.sh
npx nx build @lightprotocol/zk-compression-cli

IFS=',' read -r -a sub_tests <<< "${{ join(fromJSON(matrix['sub-tests']), ', ') }}"
for subtest in "${sub_tests[@]}"
do
echo "$subtest"
eval "RUSTFLAGS=\"-D warnings\" $subtest"
done

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
89 changes: 89 additions & 0 deletions .github/workflows/sdk-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
on:
push:
branches:
- main
paths:
- "sdk-tests/**"
- "sdk-libs/**"
- "program-libs/**"
- ".github/workflows/sdk-tests.yml"
pull_request:
branches:
- "*"
paths:
- "sdk-tests/**"
- "sdk-libs/**"
- "program-libs/**"
- ".github/workflows/sdk-tests.yml"
types:
- opened
- synchronize
- reopened
- ready_for_review

name: sdk-tests

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
sdk-tests:
name: sdk-tests
if: github.event.pull_request.draft == false
runs-on: warp-ubuntu-latest-x64-4x
timeout-minutes: 60

services:
redis:
image: redis:8.0.1
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5

env:
REDIS_URL: redis://localhost:6379
RUST_MIN_STACK: 8388608

steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Setup and build
uses: ./.github/actions/setup-and-build
with:
skip-components: "redis"

- name: Build CLI
run: |
source ./scripts/devenv.sh
npx nx build @lightprotocol/zk-compression-cli

- name: Build core programs
run: |
source ./scripts/devenv.sh
npx nx build @lightprotocol/programs

- name: Build and test all sdk-tests programs
run: |
source ./scripts/devenv.sh
# Increase stack size for SBF compilation to avoid regex_automata stack overflow
export RUST_MIN_STACK=16777216
# Remove -D warnings flag for SBF compilation to avoid compilation issues
export RUSTFLAGS=""

echo "Building and testing all sdk-tests programs sequentially..."
# Build and test each program one by one to ensure .so files exist

echo "Building and testing native-compressible"
cargo-test-sbf -p native-compressible

echo "Building and testing anchor-compressible"
cargo-test-sbf -p anchor-compressible

echo "Building and testing anchor-compressible-derived"
cargo-test-sbf -p anchor-compressible-derived
Comment on lines +32 to +89

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}

Copilot Autofix

AI about 1 year ago

To fix the issue, we will add a permissions block to the root of the workflow. This block will define the minimal permissions required for the workflow to function. Based on the provided workflow, it primarily involves checking out the repository and running tests, so contents: read should suffice. If additional permissions are required (e.g., for pull request interactions), they can be added explicitly.

The permissions block will be added at the root level, just below the name key, so it applies to all jobs in the workflow.


Suggested changeset 1
.github/workflows/sdk-tests.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/sdk-tests.yml b/.github/workflows/sdk-tests.yml
--- a/.github/workflows/sdk-tests.yml
+++ b/.github/workflows/sdk-tests.yml
@@ -24,2 +24,4 @@
 name: sdk-tests
+permissions:
+  contents: read
 
EOF
@@ -24,2 +24,4 @@
name: sdk-tests
permissions:
contents: read

Copilot is powered by AI and may make mistakes. Always verify output.
Loading
Loading