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

Raffle Demo #1583

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Raffle Demo #1583

wants to merge 1 commit into from

Conversation

clangenb
Copy link
Contributor

@clangenb clangenb commented Mar 9, 2024

Raffle Demo for the Sub0 Conference.

This is actually a very simple use case comprised of only one substrate-pallet and some boilerplate logic to integrate it and to create a CLI. Maybe we want to somewhat maintain it.

@clangenb clangenb marked this pull request as draft March 9, 2024 07:59
}

impl AddRaffleCmd {
pub(crate) fn run(&self, cli: &Cli, trusted_args: &TrustedCli) -> CliResult {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here we easily see that if we make CLI and TrustedCli traits, and then put them into core, we can actually move all the raffle commands into applibs/raffle/cli without add the commands here, we only need one line of code then to add the commands to the overarching CLI.

@brenzi brenzi mentioned this pull request Oct 1, 2024
3 tasks
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