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.
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
TODO: The user interface does not currently exist therefore its README.md and SPECIFICATION.md are empty.
In order to run the subsequent commands change into the following directory /path/to/name-registry/project/<here>
.
forc build --locked
Before running the tests the programs must be compiled with the command above.
cargo test --locked