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

Add 2fa cosigners for distribution claim #6

Merged
merged 3 commits into from
May 31, 2024

Conversation

nothing0012
Copy link
Contributor

Introducing a 2FA cosigners-based distribution and claim features.

The two new endpoints are

    // Init a 2FA cosigner-based distribution
    pub fn init_distribution<'info>(
        ctx: Context<'_, '_, '_, 'info, InitDistribution<'info>>,
        args: InitDistributionArgs,
    ) -> Result<()> {
        ins_v1::init_distribution::handle(ctx, args)
    }

    // Claim from distribution using a sharded delegate_token_account
    // The cosigned_msg should be independently signed by both 2FA cosigners
    pub fn claim_from_distribution<'info>(
        ctx: Context<'_, '_, '_, 'info, ClaimFromDistribution<'info>>,
        args: ClaimFromDistributionArgs,
    ) -> Result<()> {
        ins_v1::claim_from_distribution::handle(ctx, args)
    }

@nothing0012 nothing0012 merged commit e21cf2c into main May 31, 2024
1 check passed
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.

1 participant