forked from solana-labs/solana-program-library
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature/init with root #2
Closed
Closed
Conversation
This file contains 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
StanChe
force-pushed
the
feature/init_with_root
branch
from
May 27, 2024 10:16
b208909
to
4756083
Compare
StanChe
force-pushed
the
feature/init_with_root
branch
from
June 25, 2024 11:42
612330e
to
2191e25
Compare
StanChe
force-pushed
the
feature/init_with_root
branch
2 times, most recently
from
September 11, 2024 14:15
34158c5
to
f343436
Compare
tests for the canopy are included, the bpf/sbf tests for the contract will follow
tests will be added later in a form of integration tests next steps: - verify the zero-ed check is valid for the tree; - drop is_initialized_wrapped method.
…tree_with_root as the merkle tree account will not be zeroed at that point
…better reflect its usage
…d flag + comments fixed
…ounts + updated comments on append_canopy_nodes to reflect the possibility to replace those
…initialization call in a wrapper as it started reporting a stack overflow
StanChe
force-pushed
the
feature/init_with_root
branch
from
September 11, 2024 14:31
f343436
to
7cda6c4
Compare
bumped the node version to the latest used in some other flows trying to narrow down the build issue
…sfers with the transfer-fee extension. (solana-labs#7171) * Added transfer_fee extension * added create_transfer_checked_with_fee_instruction_with_extra_metas * add support for transfer-hook account resolution in transfer_with_fee * add offchain helper `invoke_transfer_checked_with_fee` * Nit: Added better description to function * add test for offchain helper `create_transfer_checked_with_fee_instruction_with_extra_metas` * add `success_transfer_with_fee` test * add test `success_transfers_with_fee_using_onchain_helper` * Add cli test `transfer_hook_with_transfer_fee` * fix: correctly use the new onchain helper in test * Remove unneeded helpers
* Revert "build(deps-dev): bump @typescript-eslint/parser from 8.4.0 to 8.5.0 (solana-labs#7257)" This reverts commit 3522730. * Revert "build(deps-dev): bump @typescript-eslint/eslint-plugin from 8.4.0 to 8.5.0 (solana-labs#7258)" This reverts commit eeb0b29.
Bumps [body-parser](https://github.com/expressjs/body-parser) and [express](https://github.com/expressjs/express). These dependencies needed to be updated together. Updates `body-parser` from 1.20.2 to 1.20.3 - [Release notes](https://github.com/expressjs/body-parser/releases) - [Changelog](https://github.com/expressjs/body-parser/blob/master/HISTORY.md) - [Commits](expressjs/body-parser@1.20.2...1.20.3) Updates `express` from 4.19.2 to 4.21.0 - [Release notes](https://github.com/expressjs/express/releases) - [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md) - [Commits](expressjs/express@4.19.2...4.21.0) --- updated-dependencies: - dependency-name: body-parser dependency-type: indirect - dependency-name: express dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* build(deps): bump uint from 0.9.1 to 0.10.0 Bumps [uint](https://github.com/paritytech/parity-common) from 0.9.1 to 0.10.0. - [Commits](paritytech/parity-common@uint-v0.9.1...uint-v0.10.0) --- updated-dependencies: - dependency-name: uint dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Allow missing docs for new version --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jon C <[email protected]>
Bumps [rollup](https://github.com/rollup/rollup) from 4.21.2 to 4.21.3. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](rollup/rollup@v4.21.2...v4.21.3) --- updated-dependencies: - dependency-name: rollup dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [tsx](https://github.com/privatenumber/tsx) from 4.19.0 to 4.19.1. - [Release notes](https://github.com/privatenumber/tsx/releases) - [Changelog](https://github.com/privatenumber/tsx/blob/master/release.config.cjs) - [Commits](privatenumber/tsx@v4.19.0...v4.19.1) --- updated-dependencies: - dependency-name: tsx dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…traction (solana-labs#6955) * add proof generation logic for confidential mint and burn * add proof extraction logic for confidential mint and burn * add tests for confidential mint and burn * Apply suggestions from code review Co-authored-by: Jon C <[email protected]> * add equality and range proof to confidential mint proof * rename `aes_key` to `source_aes_key` in confidential burn --------- Co-authored-by: Jon C <[email protected]>
Bumps [turbo](https://github.com/vercel/turborepo) from 2.1.1 to 2.1.2. - [Release notes](https://github.com/vercel/turborepo/releases) - [Changelog](https://github.com/vercel/turborepo/blob/main/release.md) - [Commits](vercel/turborepo@v2.1.1...v2.1.2) --- updated-dependencies: - dependency-name: turbo dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…-labs#7273) Bumps [eslint-config-turbo](https://github.com/vercel/turborepo/tree/HEAD/packages/eslint-config-turbo) from 2.1.1 to 2.1.2. - [Release notes](https://github.com/vercel/turborepo/releases) - [Changelog](https://github.com/vercel/turborepo/blob/main/release.md) - [Commits](https://github.com/vercel/turborepo/commits/v2.1.2/packages/eslint-config-turbo) --- updated-dependencies: - dependency-name: eslint-config-turbo dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…s#7274) Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 29.5.12 to 29.5.13. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest) --- updated-dependencies: - dependency-name: "@types/jest" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…#7275) Bumps [@types/mocha](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mocha) from 10.0.7 to 10.0.8. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mocha) --- updated-dependencies: - dependency-name: "@types/mocha" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Fix Transfer amount for 1 token in token-2022.md * Change the token number to 0.75 for clarity Co-authored-by: Jon C <[email protected]> * Update the byte-represented data --------- Co-authored-by: Jon C <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Initializing a tree with a root
This PR modifies the
account-compression
program allowing the creation of the trees that were prepared offline. It allows creating trees with or without a canopy.Verification of the validity, events, any additional checks and fields (URLs, hashes, etc.), and any additional permissions for the created tree are left to the discretion of the calling program.
The workflow
This change is inspired by solana-labs#6441
Next steps
The current master is giving similar errors when building the contract:
This PR does not change that. It appears to be related to the anchor - solana sdk versions on master. All the existing and the new tests are working fine though, but whether this might create some issues during deploys is unknown.
As a separate note
empty_node_cached
in the concurent merkle tree library was used as if it was modifying the passed in cache, but in fact it was not, this PR addsempty_node_cached_mut
that caches the already processed nodes, but it doesn't change the existing logic.