ForgeAbi_StakeTx

public struct ForgeAbi_StakeTx
extension ForgeAbi_StakeTx: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding

Here we will reuse DeclareTx to declare a node. DeclareTx could only be carried out by node admin. We will have an RPC to ask forge to use the private key of the node and declare its identity. Then an account state will be created for that node and later on people can stake to that account. The top N staked nodes will be validators in the chain. Once a node is declared, people can use StakeTx to stake its tokens to it minimun staked token is 1. stake could be very flexible, that one can stake for a node, a user, an asset, a chain or a tx hash (normally a vote tx)

Code below here is support for the SwiftProtobuf runtime.