Skip to content

Conversation

JoeCap08055
Copy link
Collaborator

@JoeCap08055 JoeCap08055 commented May 12, 2025

Goal

The goal of this PR is to implement a withdraw_tokens extrinsic that allows MSAs holding tokens to authorize their tokens to be withdrawn to a specified account.

Closes #2388

Discussion

Checklist

  • Updated Pallet Readme?
  • Updated js/api-augment for Custom RPC APIs?
  • Design doc(s) updated?
  • Unit Tests added?
  • e2e Tests added?
  • Benchmarks added?
  • Spec version incremented?

@github-actions github-actions bot added metadata-changed Metadata has changed since the latest full release metadata-version-not-incremented Metadata has changed since the latest full release, but the version has not been incremented labels May 12, 2025
@github-actions github-actions bot removed metadata-changed Metadata has changed since the latest full release metadata-version-not-incremented Metadata has changed since the latest full release, but the version has not been incremented labels May 13, 2025
Copy link

codecov bot commented May 13, 2025

Codecov Report

Attention: Patch coverage is 97.93103% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
pallets/msa/src/lib.rs 98.23% 2 Missing ⚠️
pallets/msa/src/types.rs 96.87% 1 Missing ⚠️
Files with missing lines Coverage Δ
pallets/msa/src/types.rs 97.74% <96.87%> (-0.28%) ⬇️
pallets/msa/src/lib.rs 93.29% <98.23%> (+0.54%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions github-actions bot added metadata-changed Metadata has changed since the latest full release metadata-version-not-incremented Metadata has changed since the latest full release, but the version has not been incremented labels May 13, 2025
@github-actions github-actions bot added metadata-changed Metadata has changed since the latest full release and removed metadata-changed Metadata has changed since the latest full release metadata-version-not-incremented Metadata has changed since the latest full release, but the version has not been incremented labels May 13, 2025
@github-actions github-actions bot removed the metadata-changed Metadata has changed since the latest full release label May 13, 2025
@github-actions github-actions bot added metadata-changed Metadata has changed since the latest full release metadata-version-not-incremented Metadata has changed since the latest full release, but the version has not been incremented labels May 13, 2025
@github-actions github-actions bot added metadata-changed Metadata has changed since the latest full release and removed metadata-changed Metadata has changed since the latest full release metadata-version-not-incremented Metadata has changed since the latest full release, but the version has not been incremented labels May 14, 2025
@JoeCap08055 JoeCap08055 marked this pull request as ready for review May 14, 2025 16:33
@JoeCap08055 JoeCap08055 requested a review from wilwade as a code owner May 14, 2025 16:33
Copy link
Collaborator

@shannonwells shannonwells left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had just the nitpick comment but nothing blocking. Lots of good work!

@github-actions github-actions bot added metadata-changed Metadata has changed since the latest full release and removed metadata-changed Metadata has changed since the latest full release labels Jun 1, 2025
@github-actions github-actions bot removed the metadata-changed Metadata has changed since the latest full release label Jun 4, 2025
@github-actions github-actions bot added the metadata-changed Metadata has changed since the latest full release label Jun 4, 2025
@github-actions github-actions bot added metadata-changed Metadata has changed since the latest full release and removed metadata-changed Metadata has changed since the latest full release labels Jun 6, 2025
@JoeCap08055 JoeCap08055 requested a review from demisx as a code owner June 6, 2025 14:40
@github-actions github-actions bot added metadata-changed Metadata has changed since the latest full release and removed metadata-changed Metadata has changed since the latest full release labels Jun 6, 2025
Copy link
Collaborator

@mattheworris mattheworris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Read through changes and looked into cargo deny.
  • Nice work.
    🚢 it!

@github-actions github-actions bot removed the metadata-changed Metadata has changed since the latest full release label Jun 11, 2025
Copy link
Collaborator

@enddynayn enddynayn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work here 👍 ! Definitely not a simple PR.

@github-actions github-actions bot added the metadata-changed Metadata has changed since the latest full release label Jun 11, 2025
@JoeCap08055 JoeCap08055 merged commit 1b8782f into main Jun 11, 2025
34 checks passed
@JoeCap08055 JoeCap08055 deleted the feat/withdraw-tokens-from-msa branch June 11, 2025 17:07
pub fn withdraw_tokens(
origin: OriginFor<T>,
_msa_owner_public_key: T::AccountId,
msa_owner_proof: MultiSignature,
Copy link
Collaborator

@aramikm aramikm Jun 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we might need to comments in here that mentioned that the proof check is done inside the extension so we don't need to do it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
metadata-changed Metadata has changed since the latest full release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tokens held by MSA-owned accounts can be withdrawn
6 participants