No description, website, or topics provided.
Switch branches/tags
Clone or download
DalderupMaurice Merge pull request #18 from nos/chore/update-neo-local
chore(deps): update neo-local submodule to latest master
Latest commit 28def46 Oct 21, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github chore: add community documents Jul 22, 2018
contracts @ 09b1945
neo-local @ f3ae979 chore(deps): update neo-local submodule to latest master Oct 13, 2018
scripts It's a start Mar 28, 2018
.gitignore
.gitmodules feat(app): update to CoZ/neo-local (#5) May 24, 2018
CODE_OF_CONDUCT.md chore: add community documents Jul 22, 2018
LICENSE
Makefile
README.md
makeWIN.bat chore(root): added copying of AVM files to prevent compilation step o… Jun 2, 2018
package.json
yarn.lock It's a start Mar 28, 2018

README.md

nOS Local

An environment for nOS development.

For now, manually start the neo-local environment and load contracts:

$ git clone https://github.com/nos/nos-local.git
$ cd nos-local
$ make run

If you exit the neo-python prompt, access it again with Docker:

$ sudo docker exec -it neo-python /bin/sh -c /bin/bash
$ np-prompt -p -v

Windows enviroment

Install Docker: https://docs.docker.com/docker-for-windows/install/#what-to-know-before-you-install Switch to linux containers (right click on tray icon)

$ git clone https://github.com/nos/nos-local.git
$ cd nos-local
$ makeWIN

Once you're at the neo-python prompt (wallet password is "coz"):

open wallet ./neo-privnet.wallet
build /smart-contracts/contract.py
import contract /smart-contracts/contract.avm 0710 05 True False

Fill out the prompts for the contract meta data. Just hit [enter] if you're in a hurry 😉.

Wait a 🔥 minute and the nOS name service contract is deployed!

Let's register an example domain name with nOS:

testinvoke 9a309cfe03cead5b653bbb11f68ff6beced8f031 RegisterDomain ['AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y', 'bucket.neo', 'https://ihasabucket.com/', 'AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y']

Wait for the TX to clear, and test your domain is registered:

testinvoke 9a309cfe03cead5b653bbb11f68ff6beced8f031 GetDomain ['AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y', 'bucket.neo']

Visit nos://bucket.neo in the client!