FOAM Developer Update #4 — Signaling Release
Walking through the new features of the FOAM Map added with the signaling release.
Yesterday, FOAM signaling was released. In this post we go through the set of features that were part of that release.
New UI Features
Signaling & Signaling Radius
To enable users to stake tokens into and navigate between signals, the FOAM Map UI now features new yellow signal points, signal cards & signal radius.
Global switch for Signals and POIs
In the right bottom of the FOAM Map you can find the new map layer global switch, which enables you to control the visibility of Points of Interest and Signals.
List card click translates to point highlight
As you click an item in the list card, the map view will automatically guide you towards & highlight the associated POI/signal point.
Dashboard point card closing
For gain better overview of the map, dashboard POI cards can now be closed through a simple button click.
Transaction hash added to point card
We replaced the listing hash in the point card with a clickable transaction hash that brings you directly to the associated transaction on Etherscan.
Smart Contracts
Signals as Non-Fungible Tokens
The design of the Signal smart contracts takes a novel approach in tokenizing and representing staked tokens as Non-Fungible Tokens (NFT). Multiple tokens bonded to a signal generates an NFT that represents the signal and provides a transfer function.
FOAM implements a general purpose simple NFT that holds an arbitrary, non-zero amount of ERC20 tokens. That means, that upon minting, it requires that the NFT has been allowed to transfer tokens from the ERC20 contract. Symmetrically, the burn function simply transfers the FOAM token back to the owner.
Spatial NFT Registry
The CSTRegistry
is a general purpose registry for registering NFT
s on the FOAM map. This contract, the CSTRegistry
simply tracks a NFT tokenID
and its location in a general registry.
Signaling
The signaling contract simply ties the two contracts above together. It specifically uses the FOAM token in a NFT and populates it on the map using the CSTRegistry. When signal
is called, a NFT is minted with the specified FOAM value and registered on the map. To remove the signal, the token is simply burned.
We look forward to getting your feedback on these releases. And as always, if you have any feedback or bugs to report, let us know in our community forum.
If you have issues with signaling on the FOAM Map, please contact our support team at support@foam.space
Signaling Community Call
We will be hosting a community call this Friday, December 7th at 12:00 PM EST (New York time), to answer any questions about Signaling. To sign up for the call please click the link below: