Skip to content

Latest commit

 

History

History
 
 

name-registry

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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
├── project
│   ├── contracts
│   │   └── registry-contract
│   │       ├── src/main.sw
│   │       └── tests/harness.rs
│   ├── README.md
│   └── SPECIFICATION.md
├── ui
│   ├── README.md
│   └── SPECIFICATION.md
└── README.md

Running the project

User interface

TODO: The user interface does not currently exist therefore its README.md and SPECIFICATION.md are empty.

Project

In order to run the subsequent commands change into the following directory /path/to/name-registry/project/<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