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)
-
Undocumented
Declaration
Swift
public var to: String { get set }
-
Undocumented
Declaration
Swift
public var value: ForgeAbi_BigSint { get set }
-
Returns true if
value
has been explicitly set.Declaration
Swift
public var hasValue: Bool { get }
-
Clears the value of
value
. Subsequent reads from it will return its default value.Declaration
Swift
public mutating func clearValue()
-
Undocumented
Declaration
Swift
public var message: String { get set }
-
Undocumented
Declaration
Swift
public var address: String { get set }
-
forge won’t touch this field. Only forge app shall handle it. forge app can extend the stake if the given data cannot meet its requirement.
Declaration
Swift
public var data: SwiftProtobuf.Google_Protobuf_Any { get set }
-
Returns true if
data
has been explicitly set.Declaration
Swift
public var hasData: Bool { get }
-
Clears the value of
data
. Subsequent reads from it will return its default value.Declaration
Swift
public mutating func clearData()
-
Undocumented
Declaration
Swift
public var unknownFields: <<error type>>
-
Undocumented
Declaration
Swift
public init()
-
Undocumented
Declaration
Swift
public static let protoMessageName: String
-
Undocumented
Declaration
Swift
public static let _protobuf_nameMap: SwiftProtobuf._NameMap
-
Undocumented
Declaration
Swift
public mutating func decodeMessage<D>(decoder: inout D) throws
-
Undocumented
Declaration
Swift
public func traverse<V>(visitor: inout V) throws
-
Undocumented
Declaration
Swift
public static func == (lhs: ForgeAbi_StakeTx, rhs: ForgeAbi_StakeTx) -> Bool