Пример #1
0
 public TransferStarted(string txId, string fromAccount, string toAccount, Core.Quantity amount)
 {
     TxId        = txId;
     FromAccount = fromAccount;
     ToAccount   = toAccount;
     Amount      = amount;
 }
Пример #2
0
 public TransferCoins(string txId, string fromAddress, string toAddress, Core.Quantity quantity, Core.Quantity fee)
 {
     TxId        = txId;
     FromAddress = fromAddress;
     ToAddress   = toAddress;
     Quantity    = quantity;
     Fee         = fee;
 }
Пример #3
0
 public CoinMined(Core.Quantity mineQuantity, string blockHash)
 {
     MineQuantity = mineQuantity;
     BlockHash    = blockHash;
 }
Пример #4
0
 public MineCoin(string address, Core.Quantity mineQuantity, string blockHash)
 {
     Address      = address;
     MineQuantity = mineQuantity;
     BlockHash    = blockHash;
 }
Пример #5
0
 public WalletBalanceChanged(Core.Quantity delta, string txId)
 {
     Delta = delta;
     TxId  = txId;
 }
Пример #6
0
 public void MineCoin(Core.Quantity mineQuantity, string blockHash)
 {
     When(new Chronos.Coins.Events.CoinMined(mineQuantity, blockHash));
 }
Пример #7
0
 public void ApplyDelta(Core.Quantity delta, string txId)
 {
     When(new Chronos.Coins.Events.WalletBalanceChanged(delta, txId));
 }
Пример #8
0
 public Transfer(string txId, string fromAccount, string toAccount, Core.Quantity amount) : this()
 {
     When(new Chronos.Accounts.Events.TransferStarted(txId, fromAccount, toAccount, amount));
 }
Пример #9
0
 /// <summary>
 /// Creates the serializable.
 /// </summary>
 /// <param name="quantity">The quantity.</param>
 /// <returns>A new serializable <see cref="Quantity" />.</returns>
 public static Quantity ToSerializable(this Core.Quantity quantity)
 {
     return(new Quantity(quantity));
 }
Пример #10
0
 public Transfer(string txId, string fromAddress, string toAddress, Core.Quantity quantity, Core.Quantity fee) : this()
 {
     When(new Chronos.Coins.Events.CoinsTransferred(txId, fromAddress, toAddress, quantity, fee));
 }
Пример #11
0
 public ChangeWalletBalance(string address, Core.Quantity delta, string txId)
 {
     Address = address;
     Delta   = delta;
     TxId    = txId;
 }