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(beta): enable cycles ledger support #3669

Merged
merged 4 commits into from
Mar 25, 2024

Conversation

sesi200
Copy link
Contributor

@sesi200 sesi200 commented Mar 20, 2024

Description

If the environment variable DFX_CYCLES_LEDGER_SUPPORT_ENABLE is set and no cycles wallet is configured, then dfx will try to use the cycles ledger to perform any operation that the cycles wallet usually is used for.

The following commands/options have been unhidden:

  • dfx cycles
  • --from-subaccount for dfx deploy, dfx canister create, dfx canister deposit-cycles to determine which cycles ledger subaccount the used cycles should be used from
  • --created-at-time for dfx deploy, dfx create canister, dfx canister deposit-cycles to control transaction deduplication on the cycles ledger
  • --to-subaccount for dfx canister delete to control into which subaccount cycles are withdrawn before the canister is deleted

The cycles ledger will not be supported by default until the cycles ledger canister is under NNS control.

Fixes SDK-1331

How Has This Been Tested?

e2e

Checklist:

  • The title of this PR complies with Conventional Commits.
  • I have edited the CHANGELOG accordingly.
  • I have made corresponding changes to the documentation.

pkill -P $MITMDUMP_PID
kill $MITMDUMP_PID
pkill -P "$MITMDUMP_PID"
kill "$MITMDUMP_PID"
Copy link
Contributor Author

@sesi200 sesi200 Mar 21, 2024

Choose a reason for hiding this comment

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

Requested by latest shellcheck version

@sesi200 sesi200 marked this pull request as ready for review March 21, 2024 16:28
@sesi200 sesi200 requested review from chenyan-dfinity and a team as code owners March 21, 2024 16:28
@sesi200 sesi200 merged commit 5065517 into master Mar 25, 2024
177 checks passed
@sesi200 sesi200 deleted the SDK-1331-unhide-all-cycles-ledger-features-in-dfx branch March 25, 2024 09:09
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.

3 participants