Giter VIP home page Giter VIP logo

nibiru's People

Contributors

dependabot[bot] avatar dylanschultzie avatar eg-easy avatar lgsyukisugiyama avatar padi-dev-hoangpa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

nibiru's Issues

Add release workflow

Description

Add release workflow which will automatically release source and binary

Required Tasks

  • add release workflow
  • test pushing tag release

Dependencies

Update CosmosSDK & tendermint version

Description

target version

  • cosmos-sdk v0.44.3
  • ibc-go/v2 v2.0.0
  • tendermint v0.34.14

Required Tasks

  • test local run
  • test airdrop cmd
  • test upgrade
  • test export genesis state

Dependencies

We found bug in neuron testnet: cosmos-gaminghub/testnets#371
We have to confirm this bug won't happen after updating node code.

update docs url

Summary of Bug

Update docs URL

Version

master

Steps to Reproduce

separate rollback command from airdrop.go

Description

rollback cmd is now located in cmd/nibirud/airdrop.go
But it should be separated from airdrop cmd.

Required Tasks

  • add cmd/nibirud/rollback.go
  • test rollback cmd

Dependencies

Mount destination not absolute

root@node:~/nibiru# git checkout v0.2
Note: switching to 'v0.2'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 40865c5 [update]cosmos-sdk v0.37.6


root@Website:~/nibiru# ls -la
total 444
drwxr-xr-x  8 root root   4096 Oct 18 15:04 .
drwx------ 10 root root   4096 Oct 18 15:03 ..
drwxr-xr-x  8 root root   4096 Oct 18 15:04 .git
-rw-r--r--  1 root root     39 Oct 18 15:03 .gitignore
-rw-r--r--  1 root root   1082 Oct 18 15:04 Dockerfile
-rw-r--r--  1 root root  11352 Oct 18 15:03 LICENSE
-rw-r--r--  1 root root   1910 Oct 18 15:04 Makefile
-rw-r--r--  1 root root   2973 Oct 18 15:04 README.md
drwxr-xr-x  2 root root   4096 Oct 18 15:04 app
drwxr-xr-x  4 root root   4096 Oct 18 15:04 cmd
drwxr-xr-x  3 root root   4096 Oct 18 15:03 docker
-rw-r--r--  1 root root   1275 Oct 18 15:04 docker-compose.yml
drwxr-xr-x  4 root root   4096 Oct 18 15:04 docs
-rw-r--r--  1 root root    442 Oct 18 15:04 go.mod
-rw-r--r--  1 root root  36439 Oct 18 15:04 go.sum
-rw-r--r--  1 root root 346993 Oct 18 15:03 nibiru_logo.png
drwxr-xr-x  2 root root   4096 Oct 18 15:04 scripts


root@Website:~/nibiru# make build-linux
GOOS=linux GOARCH=amd64 make build
make[1]: Entering directory '/root/nibiru'
go build -tags "netgo" -ldflags '-X github.com/cosmos/cosmos-sdk/version.Name=nbr -X github.com/cosmos/cosmos-sdk/version.ServerName=nbrd -X github.com/cosmos/cosmos-sdk/version.ClientName=nbrcli -X github.com/cosmos/cosmos-sdk/version.Version=0.2 -X github.com/cosmos/cosmos-sdk/version.Commit=40865c59f79f615852340ea21bcf02f67496ca6e -X "github.com/cosmos/cosmos-sdk/version.BuildTags=netgo"' -o build/nbrd ./cmd/nbrd
go: downloading github.com/cosmos/cosmos-sdk v0.37.6
go: downloading github.com/spf13/cobra v0.0.5
go: downloading github.com/tendermint/tendermint v0.32.9
go: downloading github.com/spf13/viper v1.6.1
go: downloading github.com/tendermint/tm-db v0.2.0
go: downloading github.com/gogo/protobuf v1.3.1
go: downloading github.com/gorilla/mux v1.7.0
go: downloading github.com/pelletier/go-toml v1.2.0
go: downloading github.com/pkg/errors v0.8.1
go: downloading github.com/tendermint/go-amino v0.15.1
go: downloading github.com/stretchr/testify v1.4.0
go: downloading gopkg.in/yaml.v2 v2.2.7
go: downloading github.com/bartekn/go-bip39 v0.0.0-20171116152956-a05967ea095d
go: downloading github.com/cosmos/go-bip39 v0.0.0-20180618194314-52158e4697b8
go: downloading github.com/fsnotify/fsnotify v1.4.7
go: downloading github.com/magiconair/properties v1.8.1
go: downloading github.com/mitchellh/mapstructure v1.1.2
go: downloading github.com/spf13/afero v1.2.1
go: downloading github.com/spf13/cast v1.3.0
go: downloading gopkg.in/ini.v1 v1.51.0
go: downloading github.com/golang/protobuf v1.3.2
go: downloading golang.org/x/net v0.0.0-20190628185345-da137c7871d7
go: downloading google.golang.org/grpc v1.25.1
go: downloading github.com/go-kit/kit v0.9.0
go: downloading github.com/go-logfmt/logfmt v0.4.0
go: downloading github.com/mattn/go-isatty v0.0.6
go: downloading github.com/rakyll/statik v0.1.5
go: downloading github.com/tendermint/iavl v0.12.4
go: downloading github.com/prometheus/client_golang v0.9.3
go: downloading github.com/btcsuite/btcd v0.0.0-20190115013929-ed77733ec07d
go: downloading golang.org/x/crypto v0.0.0-20190313024323-a1f597ede03a
go: downloading github.com/btcsuite/btcutil v0.0.0-20180706230648-ab6388e0c60a
go: downloading github.com/syndtr/goleveldb v1.0.1-0.20190318030020-c3a204f8e965
go: downloading golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a
go: downloading golang.org/x/text v0.3.0
go: downloading google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55
go: downloading github.com/gorilla/websocket v1.4.1
go: downloading github.com/tendermint/crypto v0.0.0-20180820045704-3764759f34a5
go: downloading github.com/beorn7/perks v1.0.0
go: downloading github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4
go: downloading github.com/prometheus/common v0.4.0
go: downloading github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084
go: downloading github.com/rcrowley/go-metrics v0.0.0-20180503174638-e2704e165165
go: downloading github.com/golang/snappy v0.0.1
go build -tags "netgo" -ldflags '-X github.com/cosmos/cosmos-sdk/version.Name=nbr -X github.com/cosmos/cosmos-sdk/version.ServerName=nbrd -X github.com/cosmos/cosmos-sdk/version.ClientName=nbrcli -X github.com/cosmos/cosmos-sdk/version.Version=0.2 -X github.com/cosmos/cosmos-sdk/version.Commit=40865c59f79f615852340ea21bcf02f67496ca6e -X "github.com/cosmos/cosmos-sdk/version.BuildTags=netgo"' -o build/nbrcli ./cmd/nbrcli
make[1]: Leaving directory '/root/nibiru'


root@node:~/nibiru# make build-docker
make -C docker/local
make[1]: Entering directory '/root/nibiru/docker/local'
docker build --tag cosmos-gaminghub/nbrdnode nbrdnode
Sending build context to Docker daemon  3.584kB
Step 1/10 : FROM alpine:3.7
3.7: Pulling from library/alpine
5d20c808ce19: Pull complete 
Digest: sha256:8421d9a84432575381bfabd248f1eb56f3aa21d9d7cd2511583c68c9b7511d10
Status: Downloaded newer image for alpine:3.7
 ---> 6d1ef012b567
Step 2/10 : RUN apk update &&     apk upgrade &&     apk --no-cache add curl jq file
 ---> Running in 238d0887b3f9
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
v3.7.3-184-gffd32bfd09 [http://dl-cdn.alpinelinux.org/alpine/v3.7/main]
v3.7.3-194-gcddd1b2302 [http://dl-cdn.alpinelinux.org/alpine/v3.7/community]
OK: 9054 distinct packages available
(1/2) Upgrading musl (1.1.18-r3 -> 1.1.18-r4)
(2/2) Upgrading musl-utils (1.1.18-r3 -> 1.1.18-r4)
Executing busybox-1.27.2-r11.trigger
OK: 4 MiB in 13 packages
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
(1/8) Installing ca-certificates (20190108-r0)
(2/8) Installing libssh2 (1.9.0-r1)
(3/8) Installing libcurl (7.61.1-r3)
(4/8) Installing curl (7.61.1-r3)
(5/8) Installing libmagic (5.32-r2)
(6/8) Installing file (5.32-r2)
(7/8) Installing oniguruma (6.6.1-r0)
(8/8) Installing jq (1.5-r5)
Executing busybox-1.27.2-r11.trigger
Executing ca-certificates-20190108-r0.trigger
OK: 12 MiB in 21 packages
Removing intermediate container 238d0887b3f9
 ---> b3e923b20e15
Step 3/10 : VOLUME [ /nbrd ]
 ---> Running in e8ab3cb7ae6f
Removing intermediate container e8ab3cb7ae6f
 ---> 2026ed1c4fad
Step 4/10 : WORKDIR /nbrd
 ---> Running in ff67ac9924c0
Removing intermediate container ff67ac9924c0
 ---> 8198af53fbfe
Step 5/10 : EXPOSE 26656 26657
 ---> Running in 43bea5e537d2
Removing intermediate container 43bea5e537d2
 ---> 148237b06766
Step 6/10 : ENTRYPOINT ["/usr/bin/wrapper.sh"]
 ---> Running in e89af1182519
Removing intermediate container e89af1182519
 ---> 84f79c9ea8a2
Step 7/10 : CMD ["start"]
 ---> Running in 3e09fd74920b
Removing intermediate container 3e09fd74920b
 ---> d88e39e30a17
Step 8/10 : STOPSIGNAL SIGTERM
 ---> Running in 0668c15e0927
Removing intermediate container 0668c15e0927
 ---> d39de611acc9
Step 9/10 : COPY wrapper.sh /usr/bin/wrapper.sh
 ---> 8906355e5737
Step 10/10 : RUN chmod +x /usr/bin/wrapper.sh
 ---> Running in 60833d4d9c98
failed to create shim: OCI runtime create failed: invalid mount {Destination:] Type:bind Source:/var/lib/docker/volumes/4baaf71e423d03789c5a241dc0782500fe9b6ba9b4da111a439f74ae6a3be9fa/_data Options:[rbind]}: mount destination ] not absolute: unknown
make[1]: *** [Makefile:4: all] Error 1
make[1]: Leaving directory '/root/nibiru/docker/local'
make: *** [Makefile:60: build-docker] Error 2

address prefix change

Description

change address prefix from nibiru to game.

Required Tasks

  • change Bech32MainPrefix in app.go

Dependencies

Test cosmovisor upgrade

Description

Test upgrade process using cosmovisor.

Required Tasks

  • test upgrade (manually set binary)
  • add docs

Dependencies

remove rollback cmd

Description

Since rollback cmd is officially integrated in cosmos-sdk, from v0.45.2, we don't need to use our own rollback cmd.

Required Tasks

  • remove rollback cmd

Dependencies

[add] workflow

Description

add github workflow

Required Tasks

  • add nibirud start test
  • add lint checker

Dependencies

#54

set genesis params

Description

Required Tasks

  • set genesis params when migrating airdrop
  • add genesis params docs
  • research about vesting account

Dependencies

Airdrop migration

Summary

When the mainnet launch, we will distribute 1% of total supply to the ATOM holder.

How to distribute

  1. take snapshot
    There will be 2 snapshot.
  • last state of cosmoshub-3(2021/2/18)
  • cosmoshub-4 at Nov 1st in 2021
    We can take snapshot with the command gaiad export genesis.json after stopping gaiad process.
    snapshot data will be shared in cosmos-gaminghub/mainnet repository.
  1. create snapshot.json
    We can refer to the osmosis airdrop to distribute initial tokens here. (ExportAirdropSnapshotCmd)
    https://github.com/osmosis-labs/osmosis/blob/main/cmd/osmosisd/cmd/airdrop.go

  2. create new genesis.json from snapshot.json
    We can refer to the osmosis airdrop ImportGenesisAccountsFromSnapshotCmd
    https://github.com/osmosis-labs/osmosis/blob/main/cmd/osmosisd/cmd/genaccounts.go

The Difference between Osmosis airdrop

  • We will use 2 snapshots (0.5% each)
  • We only distribute $GAME, no other token like ion in osmosis.
  • the format of genesis.json might be different cosmosSDKv0.36 and cosmosSDKv0.42~

Implement

  • update cosmosSDKv0.44.0 (#55)
  • Add ExportAirdropSnapshotCmd and ImportGenesisAccountsFromSnapshotCmd in nibirud

Incorrect version number

The nibirud version should be 0.1.0 after launch,
but now is 0.3.1.

This version is coming from the latest git tag.
It' better to clear all tags.

Add wasm module

Description

Add wasm module.

Required Tasks

  • add wasm module
  • test upgrade
  • test deploy contract

Dependencies

Rename from master to main

Description

We will use main instead of master.

Required Tasks

  • rename
  • check workflow branch

Dependencies

set same value with denom name to nft name

Description

Currently, any value can be set to nft name, but it's confusing.
So, restrict the nft name value as same as denom name value

Required Tasks

  • update mint interface
  • update edit interface as well

[improvement] add sort in airdrop cmd

Description

The output of pre-genesis.json is always different because of sort feature of golang.
To create same pre-genesis.json, it is needed to sort map data of balances and accounts.

Dependencies

Remove unused files/cmd

Description

Some files and cmd are no longer used for development.

Required Tasks

  • rm docker envirnmnet
  • rm unused cmd
  • update docs

Dependencies

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.