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