Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Mastering Ethereum

You're reading from  Mastering Ethereum

Product type Book
Published in Apr 2019
Publisher Packt
ISBN-13 9781789531374
Pages 490 pages
Edition 1st Edition
Languages
Concepts
Author (1):
Merunas Grincalaitis Merunas Grincalaitis
Profile icon Merunas Grincalaitis

Table of Contents (17) Chapters

Preface Section 1: Blockchain - Ethereum Refresher
Blockchain Architecture Ethereum Ecosystems Ethereum Assets Section 2: Decentralized Application Development Workflow
Mastering Smart Contracts Mastering dApps Tools, Frameworks, Components, and Services Deployment on Testnet Various dApps Integrations Decentralized Exchanges Workflow Section 3: Ethereum Implementations
Machine Learning on the Ethereum Blockchain Creating a Blockchain-based Social Media Platform Creating a Blockchain-Based E-Commerce Marketplace Other Books You May Enjoy

Understanding the trading and matching engine

A trading and matching engine is a set of functions that use different types of algorithms to create and close orders. An algorithm could focus on completing the orders with the higher price or those that were executed earlier. It depends on the preferences of the developers. Because we'll work with smart contracts and ERC20 tokens, our engine will focus on completing the orders as quickly as they come, since it will be the users that close the orders, given that the frontend is where most of the logic will be.

We can't process large amounts of information on smart contracts since gas is expensive, so we let the React application take control of the trading to save people's funds.

Let's start by planning the functions that we'll need so that we have a solid foundation when we create the contracts and the frontend...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}