Skip to content

Conversation

ibraheem-abe
Copy link
Contributor

@ibraheem-abe ibraheem-abe commented Oct 16, 2025

Crowdloans

1. btcli crowd list

Important

Displays a list of all crowdloans with additional information.
All loans are shown except ones which are dissolved.

image

2. btcli crowd info

Important

Displays detailed information about a specific crowdloan campaign
Information about the target call and parameters is also shown

image

3. btcli crowd contribute

Important

Allows users to contribute to an existing crowdloan which is not finalized yet
Displays funding targets and other information as well

image

4. btcli crowd withdraw

Important

Allows users to withdraw their funds from a crowd loan
Users can only withdraw their full amount; while creators can withdraw the amount except the deposit

image

5. btcli crowd create

Important

Enables creation of new crowd funding campaigns
Campaigns can be of two types; either subnet leasing, or a funding campaign after which the assets will be transferred to an address

image

6. btcli crowd finalize

Important

Allows creators to finalize an existing campaign
If target was general fundraising, amount will be transferred to the target address.
If the target was subnet lease, the chain will attempt to register the subnet and disburse the remaining amount to holders.

image

7. btcli crowd refund

Important

Allows anyone to refund the contribution amount to all holders
This can only be called if the campaign has not finalized yet

image

Note

This refunds all amount to participants except the deposit set by the creator.
To fetch the deposit, creators can call btcli crowd dissolve

8. btcli crowd dissolve

Important

Once all the holders have had their contributions refunded, the creator can use this call to get back the deposit amount.
This can only be called if the campaign has not finalized AND btcli crowd refund is already called.

image

@thewhaleking
Copy link
Contributor

Failing for SenateMembers pallet not available. Did devnet-ready remove this?

@thewhaleking
Copy link
Contributor

#658 will fix senate tests

Copy link
Contributor

@thewhaleking thewhaleking left a comment

Choose a reason for hiding this comment

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

Overall solid, but there's some required changes.

The JSON output stuff isn't required (except remove the unused --json-output args in the commands if you aren't implementing them), and can be added later (like when #649 is complete).

@thewhaleking thewhaleking linked an issue Oct 20, 2025 that may be closed by this pull request
Comment on lines +140 to +145
if estimated_calls > 1:
console.print(
f"\n[yellow]Note:[/yellow] Due to the [cyan]Refund Contributors Limit[/cyan] of {refund_limit:,} contributors per call,\n"
f" you may need to execute this command [yellow]{estimated_calls} times[/yellow] to refund all contributors.\n"
f" Each call will refund up to {refund_limit:,} contributors until all are processed.\n"
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Would be great if this could just loop so they needn't manually run the command multiple times.

@thewhaleking thewhaleking merged commit a669038 into staging Oct 20, 2025
98 of 99 checks passed
@thewhaleking thewhaleking deleted the feat/crowdloans branch October 20, 2025 17:27
This was referenced Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add crowdloan enhancements

3 participants