Closed jens-concordium closed 2 years ago
Note: After generating the baker credentials / baker keys, the baker ID should be added to the credentials. The baker ID can be retrieved with a query to the wallet-proxy.
Note: The estimated transaction fee shown on the "amount page" during the register baker flows, will have to be shown as a range, because the potential metadata URL can vary in length, hence preventing us from estimating an exact fee before we know the actual length. It should be possible to get this info from the wallet-proxy.
Task description
If the account is not already registered as a baker, it will be possible submit a "Register baker" transaction. Technically it's just the ConfigureBaker transaction, like all the other "baker transactions". When registering a baker all parameters of the ConfigureBaker transaction is required, even commission rates and metadataURL. As it is right now, the user will never be presented with the commission rates, and the metadataURL is only presented to the user in Scenario 2 below.
There are two scenarios for the register baker transaction:
Both scenarios can be found in the box called Register baker flows in Figma.
Scenario 1 (closed pool):
After finishing the flow, the user will be taken to the baker status page.
Scenario 2 (open pool):