Exemple #1
0
        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());
        }
Exemple #2
0
        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);
        }
Exemple #3
0
 public async Task <bool> ContainsAll(IEnumerable <Domain.Offer> of) =>
 await OfferPool.ContainsAll(of);
Exemple #4
0
 public async Task <bool> Contains(Domain.Offer of) =>
 await OfferPool.Contains(of);
Exemple #5
0
 public async Task <Domain.Offer> GetOffer(string id) =>
 await OfferPool.Get(id);
Exemple #6
0
 public async Task Add(IEnumerable <Domain.Offer> of) =>
 await OfferPool.Add(of);
Exemple #7
0
 public async Task <bool> Add(Domain.Offer of) =>
 await OfferPool.Add(of);
Exemple #8
0
 public async Task Remove(IEnumerable <Domain.Offer> batch) =>
 await OfferPool.Remove(batch);