neutron

module
v1.0.1-rc0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2023 License: Apache-2.0

README

Neutron

Neutron

NOTE: current version is a WIP.

Requirements

  • Go 1.18
  • Ignite Cli
  • Hermes IBC Relayer
How to install Ignite CLI
curl https://get.ignite.com/cli! | bash
How to install Hermes IBC Relayer

For current CCV modules support there is not any suitable version of hermes, so you need to build it by yourself.

git clone https://github.com/informalsystems/hermes.git
cd hermes
git checkout 7defaf067dbe6f60588518ea1619f228d38ac48d
cargo build --release --bin hermes

Build and Install Neutron Zone

make install

Run local testnet node instances connected via IBC

Bootstrap two chains and create an IBC connection

In order to bootstrap two chains it is required to clone gaiad v7.0.3 next to neutron repository and install it.

git clone https://github.com/cosmos/gaia.git
cd gaia
git checkout v7.0.3
make install

after that you can turn back into neutron directory and run:

make init
Start relayer
make start-rly

Generate proto

ignite generate proto-go

Running with docker

Build the image:

make build-docker-image

After the image is built, you can start/stop with:

make start-docker-container
make stop-docker-container

Running with docker + relayer

ssh-add ./.ssh/id_rsa
make start-cosmopark
make stop-cosmopark

Make sure you delete node image if you use the whole thing in dev purposes

@docker rmi neutron-node

Documentation

You can check the documentation here: https://neutron-org.github.io/neutron-docs/

Note: we are going to open & deploy the docs soon.

Examples

You can check out the example contracts here: https://github.com/neutron-org/neutron-contracts

Tests

Integration tests are implemented here: https://github.com/neutron-org/neutron-integration-tests

Directories

Path Synopsis
app
cmd
contractmanager/nullify
Package nullify provides methods to init nil values structs for test assertion.
Package nullify provides methods to init nil values structs for test assertion.
cron/nullify
Package nullify provides methods to init nil values structs for test assertion.
Package nullify provides methods to init nil values structs for test assertion.
feeburner/nullify
Package nullify provides methods to init nil values structs for test assertion.
Package nullify provides methods to init nil values structs for test assertion.
interchainqueries/nullify
Package nullify provides methods to init nil values structs for test assertion.
Package nullify provides methods to init nil values structs for test assertion.
interchaintxs/nullify
Package nullify provides methods to init nil values structs for test assertion.
Package nullify provides methods to init nil values structs for test assertion.
mocks/contractmanager/types
Package mock_types is a generated GoMock package.
Package mock_types is a generated GoMock package.
mocks/cron/types
Package mock_types is a generated GoMock package.
Package mock_types is a generated GoMock package.
mocks/feeburner/types
Package mock_types is a generated GoMock package.
Package mock_types is a generated GoMock package.
mocks/feerefunder/types
Package mock_types is a generated GoMock package.
Package mock_types is a generated GoMock package.
mocks/interchainqueries/keeper
Package mock_types is a generated GoMock package.
Package mock_types is a generated GoMock package.
mocks/interchainqueries/types
Package mock_types is a generated GoMock package.
Package mock_types is a generated GoMock package.
mocks/interchaintxs/types
Package mock_types is a generated GoMock package.
Package mock_types is a generated GoMock package.
mocks/transfer/types
Package mock_types is a generated GoMock package.
Package mock_types is a generated GoMock package.
x
contractmanager/types
Package types is a reverse proxy.
Package types is a reverse proxy.
cron/types
Package types is a reverse proxy.
Package types is a reverse proxy.
feeburner/types
Package types is a reverse proxy.
Package types is a reverse proxy.
feerefunder/types
Package types is a reverse proxy.
Package types is a reverse proxy.
interchainqueries/types
Package types is a reverse proxy.
Package types is a reverse proxy.
interchaintxs/types
Package types is a reverse proxy.
Package types is a reverse proxy.
tokenfactory/types
Package types is a reverse proxy.
Package types is a reverse proxy.
transfer/types
Package types is a reverse proxy.
Package types is a reverse proxy.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL