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