internal MonetarySystemReserveIncreaseAttachment(JToken attachments) { AmountPerUnit = Amount.CreateAmountFromNqt(GetAttachmentValue <long>(attachments, Parameters.AmountPerUnitNqt)); CurrencyId = GetAttachmentValue <ulong>(attachments, Parameters.Currency); }
internal MessagingAliasSellAttachment(JToken attachments) { Alias = GetAttachmentValue <string>(attachments, Parameters.Alias); Price = Amount.CreateAmountFromNqt(GetAttachmentValue <long>(attachments, Parameters.PriceNqt)); }
protected MonetarySystemExchange(JToken attachments) { CurrencyId = GetAttachmentValue <ulong>(attachments, Parameters.Currency); Rate = Amount.CreateAmountFromNqt(GetAttachmentValue <long>(attachments, Parameters.RateNqt)); Units = GetAttachmentValue <long>(attachments, Parameters.Units); }
internal DigitalGoodsRefundAttachment(JToken attachments) { PurchaseId = GetAttachmentValue <ulong>(attachments, Parameters.Purchase); Refund = Amount.CreateAmountFromNqt(GetAttachmentValue <long>(attachments, Parameters.RefundNqt)); }
internal DigitalGoodsPriceChangeAttachment(JToken attachments) { GoodsId = GetAttachmentValue <ulong>(attachments, Parameters.Goods); Price = Amount.CreateAmountFromNqt(GetAttachmentValue <long>(attachments, Parameters.PriceNqt)); }
internal ColoredCoinsDividendPaymentAttachment(JToken attachments) { AmountPerQnt = Amount.CreateAmountFromNqt(GetAttachmentValue <long>(attachments, Parameters.AmountNqtPerQnt)); AssetId = GetAttachmentValue <ulong>(attachments, Parameters.Asset); Height = GetAttachmentValue <int>(attachments, Parameters.Height); }
protected ColoredCoinsOrderPlacementAttachment(JToken attachments) { AssetId = GetAttachmentValue <ulong>(attachments, Parameters.Asset); QuantityQnt = GetAttachmentValue <long>(attachments, Parameters.QuantityQnt); Price = Amount.CreateAmountFromNqt(GetAttachmentValue <long>(attachments, Parameters.PriceNqt)); }
public CreateTransactionByPublicKey(short deadline, Amount fee, BinaryHexString publicKey) : base(false, deadline, fee) { PublicKey = publicKey; }