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 a param to enable/disable nam transfers #2846

Merged
merged 5 commits into from
Apr 12, 2024

Conversation

yito88
Copy link
Member

@yito88 yito88 commented Mar 7, 2024

Describe your changes

closes #2842

Indicate on which release or other PRs this topic is based on

v0.31.9

Checklist before merging to draft

  • I have added a changelog
  • Git history is in acceptable state

@yito88 yito88 requested review from cwgoes and grarco March 7, 2024 21:09
grarco
grarco previously approved these changes Mar 8, 2024
Copy link
Contributor

@grarco grarco left a comment

Choose a reason for hiding this comment

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

There's an issue with make check-crates but apart from that looks good to me, thank you!

Copy link

codecov bot commented Mar 8, 2024

Codecov Report

Attention: Patch coverage is 97.89916% with 5 lines in your changes are missing coverage. Please review.

Project coverage is 53.96%. Comparing base (cc3edde) to head (670fbce).
Report is 117 commits behind head on main.

Files Patch % Lines
crates/namada/src/ledger/native_vp/multitoken.rs 97.22% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2846      +/-   ##
==========================================
+ Coverage   53.88%   53.96%   +0.07%     
==========================================
  Files         308      308              
  Lines      100154   100331     +177     
==========================================
+ Hits        53967    54140     +173     
- Misses      46187    46191       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

cwgoes
cwgoes previously approved these changes Mar 9, 2024
Copy link
Contributor

@cwgoes cwgoes left a comment

Choose a reason for hiding this comment

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

lgtm

@yito88 yito88 force-pushed the yuji/disable-nam-transfer-param branch from d250bd5 to 85a5a07 Compare March 9, 2024 21:45
@Fraccaman
Copy link
Member

will this prevent bonding? I think we need to be able to transfer nam to the PoS account if we need to bond.

@cwgoes
Copy link
Contributor

cwgoes commented Mar 11, 2024

will this prevent bonding? I think we need to be able to transfer nam to the PoS account if we need to bond.

Ah, good point - in that case we should allow transfers to (but not from) the PoS account.

@brentstone
Copy link
Collaborator

will this prevent bonding? I think we need to be able to transfer nam to the PoS account if we need to bond.

Ah, good point - in that case we should allow transfers to (but not from) the PoS account.

More particularly, perhaps we should allow transfers between Internal addresses and Implicit / Established addresses, since we need the same functionality with Governance and then the MASP before transfers are enabled (and maybe others I'm not considering)

@cwgoes
Copy link
Contributor

cwgoes commented Mar 11, 2024

will this prevent bonding? I think we need to be able to transfer nam to the PoS account if we need to bond.

Ah, good point - in that case we should allow transfers to (but not from) the PoS account.

More particularly, perhaps we should allow transfers between Internal addresses and Implicit / Established addresses, since we need the same functionality with Governance and then the MASP before transfers are enabled (and maybe others I'm not considering)

I don't quite follow - why would we need to transfer NAM (specifically) to and from the MASP or governance, before NAM transfers are enabled?

@brentstone
Copy link
Collaborator

brentstone commented Mar 11, 2024

Gov proposals require that the author send NAM to the gov address, which is kept if the proposal fails I believe (and refunded if passed). And if you want to shield NAM, don't we send it to the MASP address?

@cwgoes
Copy link
Contributor

cwgoes commented Mar 11, 2024

Gov proposals require that the author send NAM to the gov address, which is kept if the proposal fails I believe (and refunded if passed). And if you want to shield NAM, don't we send it to the MASP address?

Governance proposal deposits are OK. We do not want to allow shielding NAM until transfers are enabled.

tzemanovic added a commit that referenced this pull request Apr 10, 2024
* origin/yuji/disable-nam-transfer-param:
  add debug log
  small refactoring
  enable native transfer to PoS or Gov
  fix dev deps
  add param to enable/disable nam transfers

# Conflicts:
#	crates/apps/src/lib/node/ledger/shell/mod.rs
@tzemanovic tzemanovic merged commit 6e29689 into main Apr 12, 2024
18 of 19 checks passed
@tzemanovic tzemanovic deleted the yuji/disable-nam-transfer-param branch April 12, 2024 10:22
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.

Parameter to disable NAM transfers
6 participants