The Player Structure
How the players are stored in our game dApp smart-contract
Goals:
Being able to link a mirror wallet to a real player EOA
Being able to track its token allowance without holding any tokens on the mirror wallet
Once we have this structure defined, we simply need to map it to the real EOA of the player.
Now we can simply access the mapping from our back or front-end using ethers:
Every property such as internalAddress
, glmbAvailable
or gamesPlayed
will now be accessible!
Last updated