Skip to content

Latest commit

 

History

History

name-registry

SwayApps NameRegistry Logo

Overview

The name registry application allows users to use human readable names instead of addresses to send and receive payments, making it easier to transfer cryptocurrency.

A name can be registered for the price of 1 unit of any asset per 100 seconds and it resolves to any Identity the owner sets. In this implementation the price is paid in the base asset on the Fuel network.

Both the asset and the price per 100 seconds are configuration time constants so can be easily changed to different values.

More information can be found in the specification.

Project structure

The project consists of a smart contract.

name-registry
├── registry-contract
│   ├── src/main.sw
│   └── tests/harness.rs
└── README.md

Running the project

User interface

TODO: The user interface does not currently exist.

Project

In order to run the subsequent commands change into the following directory /path/to/name-registry/<here>.

Program compilation

forc build --locked

Running the tests

Before running the tests the programs must be compiled with the command above.

cargo test --locked