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