Exemplo n.º 1
0
 internal MonetarySystemReserveIncreaseAttachment(JToken attachments)
 {
     AmountPerUnit = Amount.CreateAmountFromNqt(GetAttachmentValue <long>(attachments, Parameters.AmountPerUnitNqt));
     CurrencyId    = GetAttachmentValue <ulong>(attachments, Parameters.Currency);
 }
Exemplo n.º 2
0
 internal MessagingAliasSellAttachment(JToken attachments)
 {
     Alias = GetAttachmentValue <string>(attachments, Parameters.Alias);
     Price = Amount.CreateAmountFromNqt(GetAttachmentValue <long>(attachments, Parameters.PriceNqt));
 }
Exemplo n.º 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);
 }
Exemplo n.º 4
0
 internal DigitalGoodsRefundAttachment(JToken attachments)
 {
     PurchaseId = GetAttachmentValue <ulong>(attachments, Parameters.Purchase);
     Refund     = Amount.CreateAmountFromNqt(GetAttachmentValue <long>(attachments, Parameters.RefundNqt));
 }
Exemplo n.º 5
0
 internal DigitalGoodsPriceChangeAttachment(JToken attachments)
 {
     GoodsId = GetAttachmentValue <ulong>(attachments, Parameters.Goods);
     Price   = Amount.CreateAmountFromNqt(GetAttachmentValue <long>(attachments, Parameters.PriceNqt));
 }
Exemplo n.º 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);
 }
Exemplo n.º 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));
 }
Exemplo n.º 8
0
 public CreateTransactionByPublicKey(short deadline, Amount fee, BinaryHexString publicKey)
     : base(false, deadline, fee)
 {
     PublicKey = publicKey;
 }