@nomspace/nomspace
npm i @nomspace/nomspace

@nomspace/nomspace

A simple name resolution protocol

by nomspace

1.0.6 (see all)License:ISCTypeScript:Built-In
npm i @nomspace/nomspace
Readme

Nomspace

--

A simple name resolution service

Nomkit documentation

Installation

yarn add @nomspace/nomspace

You will also want ContractKit from: @celo/contractkit or @celo-tools/use-contractkit

Usage

import {NomKit} from "@nomspace/nomspace"
import {newKit} from "@celo/contractkit"

const kit = newKit("https://forno.celo.org")
const nomKit = new NomKit(kit, "0xABf8faBbC071F320F222A526A2e1fBE26429344d")

// Resolve a example.nom
// NOTE: Nomspace is case-sensitive. Convention is to always use lowercase
const resolution = await kit.resolve("example".toLowerCase());
console.log(resolution)

// Reserve a example.nom
await reserve("example").send({from: kit.accounts[0]})

Contract addresses

Mainnet

Nom: 0xABf8faBbC071F320F222A526A2e1fBE26429344d

FeeModuleV0: 0xD9f17C3122B36017a499f0E33cF405Ae39aDdC9e

FeeModuleV1: 0x07DDCB69Bc2637A6c03d5523696E21B688b42d65

Alfajores

Nom: 0x36C976Da6A6499Cad683064F849afa69CD4dec2e

FeeModuleV0: 0xa41b00095C14Ff7c3697485136eE53C12B3a681A

FeeModuleV1: TODO

Downloads/wk

20

GitHub Stars

11

LAST COMMIT

5mos ago

MAINTAINERS

1

CONTRIBUTORS

0

OPEN ISSUES

0

OPEN PRs

1
VersionTagPublished
1.0.6
latest
5mos ago
No alternatives found
No tutorials found
Add a tutorial