public async Task Merge(Pool pool) { await DepositPool.Add(await pool.DepositPool.GetPool()); await OfferPool.Add(await pool.OfferPool.GetPool()); await OfferCancelPool.Add(await pool.OfferCancelPool.GetPool()); await TransactionPool.Add(await pool.TransactionPool.GetPool()); await WithdrawalPool.Add(await pool.WithdrawalPool.GetPool()); }
public Pool Fork() { var fork = new Pool(); fork.DepositPool = DepositPool.Fork(); fork.OfferPool = OfferPool.Fork(); fork.OfferCancelPool = OfferCancelPool.Fork(); fork.TransactionPool = TransactionPool.Fork(); fork.WithdrawalPool = WithdrawalPool.Fork(); return(fork); }
public async Task <bool> ContainsAll(IEnumerable <Domain.Offer> of) => await OfferPool.ContainsAll(of);
public async Task <bool> Contains(Domain.Offer of) => await OfferPool.Contains(of);
public async Task <Domain.Offer> GetOffer(string id) => await OfferPool.Get(id);
public async Task Add(IEnumerable <Domain.Offer> of) => await OfferPool.Add(of);
public async Task <bool> Add(Domain.Offer of) => await OfferPool.Add(of);
public async Task Remove(IEnumerable <Domain.Offer> batch) => await OfferPool.Remove(batch);