Skip to content
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

added tokens/pda-mint-authority/poseidon #323

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ritikbhatt20
Copy link

@ritikbhatt20 ritikbhatt20 commented Nov 1, 2024

Screenshot 2024-11-02 004903

  • Note: Poseidon's transpiler does not compile initializeMint function of poseidon library to rust yet, so this is done manually in lib.rs using InitializeMint attributes in struct.
    I have raised issue to poseidon for this: Issue in Transpilation of Poseidon to Anchor Rust – In initializeMint function Turbin3/poseidon#21
  • Addition of the latest Poseidon library code, which includes a payer argument for init and initIfNeeded, ensuring compatibility with multi-signer configurations.
  • Followed the original exact program structure from the pda-mint-authority example in Anchor.
  • Includes both Anchor and Bankrun tests, providing comprehensive test coverage that was missing in previous PR.
  • Required to include "anchor-spl" and anchor-lang = { version = "0.30.1", features = ["init-if-needed"] } dependency using cargo
    and add "anchor-spl/idl-build" to idl-build list

replaced all occurrences of yarn with pnpm to maintain consistency across the project.

executed pnpm fix to ensure code quality.

committed the pnpm-lock.yaml file to the repository.

@heyAyushh heyAyushh added the contribute:poseidon Adds a poseidon example contribution to the repository. label Nov 15, 2024
@ritikbhatt20
Copy link
Author

gm @heyAyushh ,

I've completed the requested steps:

  1. Merged main into my branch.
  2. Ran pnpm fix.
  3. Verified the implementation includes the transpiled Anchor program and TypeScript files.
  4. Synchronized program ID
  5. Ran cargo fmt and cargo clippy for Rust code quality.
  6. Pushed all updates.

Please review again. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribute:poseidon Adds a poseidon example contribution to the repository.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants