-
Notifications
You must be signed in to change notification settings - Fork 101
chore: 0011 proc macro rebase to ctoken #1894
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
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 eb7ca14
post rebase
ananas-block 23193a0
feat: add addresses to cpi context, enable spending of created accoun…
ananas-block 7bc73dd
system program update small instruction
ananas-block f0533ed
sdk token 4 cpis works
ananas-block af868c7
chained token test create mint in cpi context works
ananas-block f075cf3
chaind token mint to works
ananas-block f3446cf
stash multiple ctoken action test implemented not working for address…
ananas-block c589dc0
refactor: cpi context, enable addresses, enable assigned addresses, p…
ananas-block e7699f8
feat: add cpi context to ctoken ixs
ananas-block d7ad669
fix: chained ctoken actions test
ananas-block 7854a49
fix: cpi context address owner
ananas-block 9cc1bc1
feat: update compressed mint, untested
ananas-block cb77b0f
fix tests
ananas-block 190fafc
client test works
ananas-block 73b0376
fixed event parsing in system program, chained test works
ananas-block abc4348
refactor: rename TokenContext -> HashCache
ananas-block 2c7461a
cleanup ix data, rename UpdateCompressedMintInstructionData -> Compre…
ananas-block 84c99d2
feat: sha hashing for cmints, start update_metadata
ananas-block e5f39a0
minor CU improvements
ananas-block 948c508
feat: add zero copy enum support
ananas-block 75b71c0
stash mint action
ananas-block f4ca40a
feat: add update to mint action
ananas-block 53871f3
stash implemeneted mint actions for existing ixs
ananas-block a67686f
test: mint actions with token client
ananas-block af28ca4
works without create mint
ananas-block 6558055
stash
ananas-block ace5a41
cleanup
ananas-block e0c8e7c
cleanup
ananas-block a698afa
chained action test passes
ananas-block da136e0
stash
ananas-block 85ac2d9
chained test cleanup
ananas-block d50e034
cleanup errors
ananas-block 80e9be7
started refactor create spl mint
ananas-block eddfc62
feat: mint to decompressed
ananas-block 81da2c6
cherrypicked hasher update: support sha in hasher and lighthasher macro
SwenSchaeferjohann 4210a9d
wip
SwenSchaeferjohann a6dbc88
fix rebase
SwenSchaeferjohann e588ae6
gmt
SwenSchaeferjohann df3a99c
add compressible macro
SwenSchaeferjohann 92ca99b
rebased - fixed macro
SwenSchaeferjohann 0f39a30
compressAs trait for compression with custom data
SwenSchaeferjohann de90be8
add test, fix lint
SwenSchaeferjohann b21dfe3
compress_as, flexible
SwenSchaeferjohann f288f08
Compressible macro auto-derives HasCompressionInfo macro
SwenSchaeferjohann 72d355a
clean
SwenSchaeferjohann a0f1011
remove debug trait bound
SwenSchaeferjohann 3107626
wip
SwenSchaeferjohann ccb453f
wip
SwenSchaeferjohann b4d50ec
add compress_empty_account for native + tests
SwenSchaeferjohann cb6cdc0
refactor compression config actions to accept rpc trait
SwenSchaeferjohann 39d9768
better upgrade_authority check
SwenSchaeferjohann bbd03af
better error logging
SwenSchaeferjohann ae83f70
add cpda derivation check in
SwenSchaeferjohann 4dc4507
js: dedupe in lut creation
SwenSchaeferjohann e213b8f
add PackedAccounts, deriveAddressV2, initializeCompressionConfig helpers
SwenSchaeferjohann 69d0fbf
add borsh_compat module for validityProof
SwenSchaeferjohann a082e56
add compressible ts sdk
SwenSchaeferjohann c876486
packedaccounts, fix v2 tree getters
SwenSchaeferjohann 0f6ed0e
wip
SwenSchaeferjohann 4ad0920
wip
SwenSchaeferjohann c4fa3b9
wip
SwenSchaeferjohann File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Copilot Autofix
AI about 1 year ago
To fix the issue, we will add a
permissionsblock 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, socontents: readshould suffice. If additional permissions are required (e.g., for pull request interactions), they can be added explicitly.The
permissionsblock will be added at the root level, just below thenamekey, so it applies to all jobs in the workflow.