cosmos-gaminghub / nibiru Goto Github PK
View Code? Open in Web Editor NEWGAME Hub is a fair and secure game-specific blockchain using tendermint where developers can easily create decentralized games.
License: Apache License 2.0
GAME Hub is a fair and secure game-specific blockchain using tendermint where developers can easily create decentralized games.
License: Apache License 2.0
ImportGenesisAccountsFromSnapshotCmd is now located in cmd/nibirud/genaccounts.go
But it should be separated from genaccounts cmd.
cmd/nibirud/airdrop.go
Add release workflow which will automatically release source and binary
target version
We found bug in neuron testnet: cosmos-gaminghub/testnets#371
We have to confirm this bug won't happen after updating node code.
add wasmd latest version
Update docs URL
master
There is new binary
https://github.com/CosmWasm/wasmd/releases/tag/v0.27.0
There is e2e test code in gaia v7.0.0.
It should be added in nibiru.
Add creating airdrop genesis.json procedure (scripts and docs).
Test state stnc feature
Based on the community feedback, it is recommended to set minimum validator commission fee % to avoid 0% commission fee validators which will cause centralization of the network.
ante_handler.go
rollback cmd is now located in cmd/nibirud/airdrop.go
But it should be separated from airdrop cmd.
cmd/nibirud/rollback.go
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
change address prefix from nibiru
to game
.
Bech32MainPrefix
in app.go
Test upgrade process using cosmovisor.
We need to upgrade cosmosSDK version to 0.44.2 to prevent chain halt.
ref:
https://github.com/cosmos/cosmos-sdk/releases/tag/v0.44.2
master
Since rollback cmd is officially integrated in cosmos-sdk, from v0.45.2, we don't need to use our own rollback cmd.
add github workflow
When the mainnet launch, we will distribute 1% of total supply to the ATOM holder.
gaiad export genesis.json
after stopping gaiad process.cosmos-gaminghub/mainnet
repository.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
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
ExportAirdropSnapshotCmd
and ImportGenesisAccountsFromSnapshotCmd
in nibirudThe 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.
We will use main instead of master.
Now airdrop cmd distributes game
to addresses.
But we use ugame
as denom so we need to update this cmd.
main branch
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
upgrade nibiru version to include:
lint workflow is not working.
master
Ex: https://github.com/cosmos-gaminghub/nibiru/actions/runs/1675763669
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.
Some files and cmd are no longer used for development.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.