ForgeAbi_ConsumeAssetTx
public struct ForgeAbi_ConsumeAssetTx
extension ForgeAbi_ConsumeAssetTx: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding
Undocumented
-
issuer
could be the same asfrom
, or different, depending on use case. when this tx is being mutisigned by the asset holder, the wallet could check if the issuer is the issuer of the asset, otherwise wallet shall refuse signing it. when it goes into the chain, at verify state stage, we shall checkfrom
of this tx: a. the same as the issuer b.from.issuer == issuer
For example, a museum issued a ticket and Alice bought it. At the door (doorman) of the meseum, Alice need to consume the asset, which she scan a QR code with a prepolulated ConsumeAssetTx. Most of the time, this prepopulated tx shall be signed by the account of the door (doorman) so that we can trace where and how Alice consumed this asset, however we don’t want anyone to be able to create this tx to allure Alice to consume the asset, thus the door (doorman) shall be an account that issued by the museum. The chain will make sure only accounts that has this issuer would be able to successfully sign this tx.Declaration
Swift
public var issuer: String { get set }
-
an asset might belong to another asset, for example a ticket belongs to a specific concert or movie asset. If this is provided, besides issuer we will verify if the parent address of the asset equals to this address.
Declaration
Swift
public var address: String { get set }
-
forge won’t update data into state if app is interested in this tx.
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_ConsumeAssetTx, rhs: ForgeAbi_ConsumeAssetTx) -> Bool