-
Notifications
You must be signed in to change notification settings - Fork 123
Polkadot Auctions and Crowdloan
-
Start your relaychain as usually
-
Go to
Developer->Extrinsics
, and use the methodregister
to register a parachain for a account. In this tutorial, we choose the accoutAlice
. -
First, use
register.reserve()
to register aParaID
for this accout.Go to
Network->Explorer
to see the new block.Your paraID will be included in the latest occurrence -
Then use this
ParaID
to register a parachain for this account, like this:Here,
genesis_head
andvalidation_code
are the same in this tutorialManta Parachain Testing
: Manta/docs at manta-pc · Manta-Network/Manta (github.com) -
You can see the result here
Network->Parachain->subpage: parathread
. Register some parachains for other accounts as the same.
Go to the page Network->Parachain->Crowdloan
to start a new crowdloan. Click the button Add fund
to start it.
Here, cap
means your target of this crowdloan. first_period
and last_period
means the period of the lease you intend to bid on in a auction later. end block
means end crowdloan when a future block is reached.
The result can see Network->Parachain->Crowdloan
Click Contribute
to contribute for this crowdloan. The asset of the crowdloan will be transferred to a new account created by polkadot. When the auction for the corresponding lease starts, polkadot will automatically use the balances on these accounts to bid on the lease for crowdloaner.
Start a auction with sudo
, like this
Here, lease_period_index
means the lease you want to start for auction. The system default auction lease is 8 period starting from the set lease of period. In the test, you can set lease of period of the auction coincide with the crowdloan lease so that the balances of the crowdloan will automatically participate in this auction. The system default auction lease is 8 period starting from the set lease of period.
For example, if you set a crowdloan for the lease 3-4. Then you can start auction with lease of period to 2 and 2-9 period of lease will be up for bid. And after auction start, you can see it in Network->Parachain->Auction
:
Here are the current winners of the bidding.