public TokenTransactionMaker(ICurrencyItem aCurrencyItem, KeyManager aKeyManager, ServerConnection aServerConnection) : base(aKeyManager, aServerConnection) { FToken = aCurrencyItem as ICurrencyToken ?? throw new ArgumentException(nameof(aCurrencyItem), $"Currency item is not a token. Argument must implement {nameof(ICurrencyToken)}"); FCurrencyItem = aServerConnection.GetCurrency(FToken.ParentCurrencyID); }
public void RemoveCurrenciesToWatch(ICurrencyToken aToken) => FTokenWatchInventory.TryRemove(aToken.ContractAddress, out _);
public void AddCurrenciesToWatch(ICurrencyToken aToken) { FTokenWatchInventory.TryAdd(aToken.ContractAddress, aToken); FCoreUpdaterTimer.Change(5000, Timeout.Infinite); }
public ClientCurrencyTokenItem(ICurrencyToken aToken) : base(aToken) { }