Table of Contents

Class GenericArkContractParser

Namespace
NArk.Core.Contracts
Assembly
NArk.Core.dll
public class GenericArkContractParser : IArkContractParser
Inheritance
GenericArkContractParser
Implements
Inherited Members

Constructors

GenericArkContractParser(string, Func<Dictionary<string, string>, Network, ArkContract?>)

public GenericArkContractParser(string type, Func<Dictionary<string, string>, Network, ArkContract?> parse)

Parameters

type string
parse Func<Dictionary<string, string>, Network, ArkContract>

Properties

Type

Contract type discriminator this parser handles (e.g. "vtxo", "boarding").

public string Type { get; }

Property Value

string

Methods

Parse(Dictionary<string, string>, Network)

Parses a contract from serialized data. Returns null when the data is not valid for this type.

public ArkContract? Parse(Dictionary<string, string> contractData, Network network)

Parameters

contractData Dictionary<string, string>
network Network

Returns

ArkContract