ConsenSysMesh / web3studio-sidejam

SideJam is a series of projects designed to develop application-level examples, frameworks, components (and requirements driving protocol and R&D teams) that use the W3S narrative approach to prove the need for and ability to use the Mainnet as a way to make business safe without silos.
Apache License 2.0
2 stars 2 forks source link

Optimize UI with a single call to get the whole board #18

Closed barlock closed 5 years ago

barlock commented 5 years ago

Related Issue
Supports #4

Related PRs
This PR is not dependent on any other PR

What does this PR do?
Speeds up the UI as it only needs to create one subscription instead of 80

Description of Changes
Solidity read to get the whole board as an array of touples with the index representing an object.

Game UI now has one subscription to that fn rather than 80, one for each piece.

What gif most accurately describes how I feel towards this PR?