Concordium / concordium-reference-wallet-android

Reference Android wallet for the Concordium blockchain
Apache License 2.0
12 stars 2 forks source link

Baking: Register baker #121

Closed jens-concordium closed 2 years ago

jens-concordium commented 2 years ago

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:

  1. The baker is registered with a pool open for delegation
  2. The baker is registered with a pool closed for delegation

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):

jens-concordium commented 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.

jens-concordium commented 2 years ago

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.