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

Feat: Token 2022 #83

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from
Draft

Feat: Token 2022 #83

wants to merge 13 commits into from

Conversation

codewithgun
Copy link
Contributor

@codewithgun codewithgun commented Jun 10, 2024

Program

Added

  • Program endpoint claim_fee2. It supports both token and token 2022 program.
  • Program endpoint initialize_lb_pair2. It supports both token and token 2022 program.
  • Program endpoint initialize_token_badge. Mint with token badge initialized can come along with any type of extension.

Deprecated

  • Program endpoint claim_fee. Please use claim_fee2 which support both token and token 2022 program.

Breaking

  • Program endpoint initialize_reward. It requires token_badge to be passed for the reward mint.
  • Program endpoint initialize_permission_pair It requires token_badge and respective token_program to be passed.

Changed

  • Update to anchor v0.29.0

CLI

Changed

  • Use claimFee2 instead of claimFee to support both token and token 2022 program.
  • Use initializeLbPair2 instead of initializeLbPairto support both token and token 2022 program.
  • initializePermissionPair support token 2022 program.

Typescript SDK

Changed

  • Use claimFee2 instead of claimFee to support both token and token 2022 program.
  • Use initializeLbPair2 instead of initializeLbPairto support both token and token 2022 program.
  • initializePermissionPair support token 2022 program.

@andrewsource147
Copy link
Contributor

andrewsource147 commented Jun 11, 2024

  • we need to use token.owner for endpoints: addLiquidity/removeLiquidity and swap in CLI, market making/ Typescript

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants