Skip to content

Commit

Permalink
chore: system program (#707)
Browse files Browse the repository at this point in the history
* system program

* test-utils fix imports

* fix imports

* rm old idl

---------

Co-authored-by: Swen <[email protected]>
  • Loading branch information
SwenSchaeferjohann and Swen authored May 14, 2024
1 parent f85dc3b commit 2e7409e
Show file tree
Hide file tree
Showing 88 changed files with 280 additions and 660 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup-and-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ runs:
solana-keygen new --no-bip39-passphrase -o /home/runner/.config/solana/id.json
npx nx build @lightprotocol/hasher.rs
npx nx build @lightprotocol/programs
npx nx build @lightprotocol/cli
npx nx build @lightprotocol/zk-compression-cli
- name: Check for git changes
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/light-sdk-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
sub-tests: '[
"@lightprotocol/circuit-lib.js:test",
"@lightprotocol/prover.js:test",
"@lightprotocol/cli:test",
"@lightprotocol/zk-compression-cli:test",
]'
steps:
- name: Log in to Docker Hub
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/light-system-programs-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ jobs:
sub-tests: '[
"cargo-test-sbf -p account-compression-test -- --test-threads=1"
]'
- program: light-compressed-pda
- program: light-system-program
sub-tests: '[
"cargo-test-sbf -p compressed-pda-test -- --test-threads=1"
"cargo-test-sbf -p system-test -- --test-threads=1"
]'
- program: light-registry
sub-tests: '[
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-pr-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ on:
- light-utils
- light-wasm-hasher
- account-compression
- light-compressed-pda
- light-system-program
- light-compressed-token
version:
description: Version to release
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
- name: Build CLI
run: |
source ./scripts/devenv.sh
npx nx build @lightprotocol/cli
npx nx build @lightprotocol/zk-compression-cli
- name: Test workspace
run: |
Expand Down
134 changes: 67 additions & 67 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ members = [
"macros/light",
"merkle-tree/*",
"programs/account-compression",
"programs/compressed-pda",
"programs/system",
"programs/compressed-token",
"programs/registry",
"test-utils",
Expand Down
4 changes: 2 additions & 2 deletions cli/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ZK Compression CLI

CLI to interact with Light Protocol and ZK compression.
CLI to interact with ZK compression.

## Requirements

Expand All @@ -15,7 +15,7 @@ CLI to interact with Light Protocol and ZK compression.
### Using npm

```bash
npm install -g @lightprotocol/cli
npm install -g @lightprotocol/zk-compression-cli
```

### Building from source
Expand Down
6 changes: 3 additions & 3 deletions cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@lightprotocol/cli",
"name": "@lightprotocol/zk-compression-cli",
"version": "0.2.8",
"description": "ZK Compression: Secure Scaling of State on Solana",
"description": "ZK Compression: Secure Scaling on Solana",
"maintainers": [
{
"name": "Light Protocol maintainers",
Expand Down Expand Up @@ -111,7 +111,7 @@
"kill": "killall solana-test-validator || true && killall solana-test-val || true && sleep 1",
"test-cli": "pnpm test-config && pnpm kill",
"test": "pnpm kill && pnpm test-cli && pnpm test-utils && pnpm test-create-mint && pnpm test-mint-to && pnpm test-transfer && pnpm test-compress-spl && pnpm test-decompress-spl && pnpm test-balance && pnpm test-compress-sol && pnpm test-decompress-sol && pnpm test-register-mint && pnpm test-approve-and-mint-to",
"install-local": "pnpm build && pnpm global remove @lightprotocol/cli || true && pnpm global add $PWD",
"install-local": "pnpm build && pnpm global remove @lightprotocol/zk-compression-cli || true && pnpm global add $PWD",
"version": "oclif readme && git add README.md"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion cli/scripts/copyLocalProgramBinaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -eux

keys="account_compression light_compressed_pda light_compressed_token light_registry"
keys="account_compression light_system_program light_compressed_token light_registry"

out_dir="`git rev-parse --show-toplevel`/cli/bin"
if [ ! -e $out_dir ]; then
Expand Down
2 changes: 1 addition & 1 deletion cli/src/utils/initTestEnv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export async function getSolanaArgs({
},
{
id: "6UqiSPd2mRCTTwkzhcs1M6DGYsqHWd5jiPueX3LwDMXQ",
name: "light_compressed_pda.so",
name: "light_system_program.so",
tag: LIGHT_MERKLE_TREE_PROGRAM_TAG,
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/token-escrow/programs/token-escrow/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ test-sbf = []
[dependencies]
anchor-lang = { version="0.29.0", features = ["init-if-needed"] }
light-compressed-token = { path = "../../../../programs/compressed-token", version = "0.3.1", features = ["cpi"]}
light-compressed-pda = { path = "../../../../programs/compressed-pda", version = "0.3.1", features = ["cpi"]}
light-system-program = { path = "../../../../programs/system", version = "0.3.1", features = ["cpi"]}
account-compression = { path = "../../../../programs/account-compression", version = "0.3.2", features = ["cpi"] }
light-hasher = { path = "../../../../merkle-tree/hasher", version = "0.1.1" }
light-verifier = { path = "../../../../circuit-lib/verifier", version = "0.1.1" }
Expand Down
Loading

0 comments on commit 2e7409e

Please sign in to comment.