public TransferStarted(string txId, string fromAccount, string toAccount, Core.Quantity amount)
 {
     TxId        = txId;
     FromAccount = fromAccount;
     ToAccount   = toAccount;
     Amount      = amount;
 }
Exemple #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;
 }
Exemple #3
0
 public CoinMined(Core.Quantity mineQuantity, string blockHash)
 {
     MineQuantity = mineQuantity;
     BlockHash    = blockHash;
 }
Exemple #4
0
 public MineCoin(string address, Core.Quantity mineQuantity, string blockHash)
 {
     Address      = address;
     MineQuantity = mineQuantity;
     BlockHash    = blockHash;
 }
Exemple #5
0
 public WalletBalanceChanged(Core.Quantity delta, string txId)
 {
     Delta = delta;
     TxId  = txId;
 }
Exemple #6
0
 public void MineCoin(Core.Quantity mineQuantity, string blockHash)
 {
     When(new Chronos.Coins.Events.CoinMined(mineQuantity, blockHash));
 }
Exemple #7
0
 public void ApplyDelta(Core.Quantity delta, string txId)
 {
     When(new Chronos.Coins.Events.WalletBalanceChanged(delta, txId));
 }
Exemple #8
0
 public Transfer(string txId, string fromAccount, string toAccount, Core.Quantity amount) : this()
 {
     When(new Chronos.Accounts.Events.TransferStarted(txId, fromAccount, toAccount, amount));
 }
Exemple #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));
 }
Exemple #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));
 }
Exemple #11
0
 public ChangeWalletBalance(string address, Core.Quantity delta, string txId)
 {
     Address = address;
     Delta   = delta;
     TxId    = txId;
 }