Skip to content

Commit

Permalink
feat(codegen): fix module discovery logic (#2146)
Browse files Browse the repository at this point in the history
* feat(changelog): reset `Unreleased` section (#1946)

* fix(docs): change lazy ledger to celestia (#1952)

* (docs): fix typo in hello.md (#1951)

Co-authored-by: Danilo Pantani <danpantani@gmail.com>

* Minor grammar fix (#1950)

Grammar fix at line 7.

Co-authored-by: Danilo Pantani <danpantani@gmail.com>

* Minor grammar fix (#1949)

Grammar fix at line 55.

Co-authored-by: Danilo Pantani <danpantani@gmail.com>

* docs: add v0.19 to the readme (#1956)

* docs(tutorials): blog-index-update (#1961)

* feat(template): add `--no-simulation` flag (#1938)

* add no simulation flag

* add no simulation flag to scaffold message command

* move the simulation modifier function to inside the no simulation condition

Co-authored-by: Lucas Bertrand <lucas.bertrand.22@gmail.com>

* docs: Remove the link to non existing prerequisite (#1916)

* feat(docs): Remove the link to non existing prerequisite

* Update docs/guide/install.md

Co-authored-by: Barrie Byron <barrie.byron@tendermint.com>

* feat(ci): release the starport binary only on releases (#1980)

* docs: fix Discord link (#1981)

* feat(`network`): simulate requests (#1930)

* init

* Implement apply request

* fix prepare

* initialize apply test

* Apply remove tests

* refactor request

* command verify

* fix chain home

* Add comment

* simulate and refactor

* Lint

* refacotr

* refactor error

* changes in log

* lint

* Update starport/cmd/network_request_verify.go

Co-authored-by: Danilo Pantani <danpantani@gmail.com>

* Update starport/services/network/request.go

Co-authored-by: Danilo Pantani <danpantani@gmail.com>

* Danilo suggest

* lint

* Ilker comment

* comment

* ilker comment

Co-authored-by: Danilo Pantani <danpantani@gmail.com>

* feat(network): set a gas price for the gentx (#1891)

* set gas price from gentx

* merge conflicts

* use zero stake coin

* use gas price and self delegation as a flag

* use errors.wrap instead errors.new

* docs: changelog and migration doc edits for consistency and style (#2004)

* edits for consistency and migration doc for style

* Update docs/migration/index.md

Co-authored-by: İlker G. Öztürk <ilkergoktugozturk@gmail.com>

* typo and add testutil/sample change to cosmostestutil/sample

* add import paths

Co-authored-by: İlker G. Öztürk <ilkergoktugozturk@gmail.com>

* docs: minor edits and change all headings to use Sentence case (#2013)

* simple edits for heading style to use sentence case

* remove tick mark for headings and fix typo and add punctuation throughout

* update to 0.19.2 in examples and change case

* add preventing regen and change case

* minor genesis edits and change case of headings

* sentence case and minor edits for all KB articles

* docs: rm wasm (#2010)

* docs: Update docs guide v0.19.2 (#2015)

* Update Hello World tutorial to v0.19.2

* Update Blog to v0.19.2

* Update connect blockchain to v0.19.2

* Update IBC relayer tutorial to v0.19.2

* chore: bump flutter's starport_template to v2.0.2 (#2014)

* feat(network): update SPN version with the new peer structure (#2020)

* docs: Hello and Developer Tutoritials index.md, simple change case (#2019)

* Hello and index change case

* simple case change, typo fix, some minor edits

* feat(ci): add workflow to deploy `nightly` releases (#2028)

* fix(ci): add build hash for the `version` command (#2029)

* feat(network/request): don't sort and rm support for reverse ordering ranges (#2031)

* remove sort side effect in numbers.ParseList

* Apply suggestions from code review

Co-authored-by: Petr Ivanov <petr.ivanov@tendermint.com>
Co-authored-by: İlker G. Öztürk <ilkergoktugozturk@gmail.com>

* fix(pkg/numbers): fix tests (#2033)

* fix(codegen): adjust Go's camelCasing for templates to match JS'  (#2036)

* fix: Adjust camelCasing to match JS

* fix: Only use for queryclient

* docs: update v0.19.2 migration doc to reveal long GitHub paths (#2009)

* add long GitHub paths

* Apply suggestions from code review

thanks Ilker

Co-authored-by: İlker G. Öztürk <ilkergoktugozturk@gmail.com>

* remove https: so import path is literal

* Apply suggestions from code review

Co-authored-by: İlker G. Öztürk <ilkergoktugozturk@gmail.com>

* docs: update relayer KB to add a remove existing relayer section (#2022)

* add a remove existing relayer section

* Update docs/kb/relayer.md

Co-authored-by: Danilo Pantani <danpantani@gmail.com>

Co-authored-by: Danilo Pantani <danpantani@gmail.com>

* docs: upgrade build a blog to v0.19.2 and make edits (#1987)

* verify v0.19 and make edits

* 0.19 and final edits

* 0.19.2 and series of blog tutos

* docs(migration): improve v0.19.2 upgrade guideline  (#2032)

* Update index.md

* Update index.md

Co-authored-by: İlker G. Öztürk <ilkergoktugozturk@gmail.com>

* docs(hello): editorial improvements (#1979)

* Update hello.md

* Update docs/guide/hello.md

* Update docs/guide/hello.md

* add steps for query handler

* 0.19 and final edits

* teensy edit

* Update docs/guide/hello.md

Co-authored-by: İlker G. Öztürk <ilkergoktugozturk@gmail.com>

* chore: upgrade SPN version (#2048)

* fix(network): do not hide underlying err msg (#2050)

* fix(cmd/network): printing chain spinner bug (#2049)

* call shutdown

* remove useless print

Co-authored-by: İlker G. Öztürk <ilkergoktugozturk@gmail.com>

* feat(codegen/templates): export registry for all Msgs to use w/ CosmJS (#2037)

* fix(revert): #2037 (#2052)

This reverts commit a8db3cf.

* docs: add dev-env-setup.md (#1817)

* new technical-setup.md file

* Apply suggestions from Ilker code review

Co-authored-by: İlker G. Öztürk <ilkergoktugozturk@gmail.com>

* change filename per Ilker

* add link backs

* too many ensures

* dusting cobwebs off stale suggested changes, so sorry Ilker

Co-authored-by: Danilo Pantani <danpantani@gmail.com>
Co-authored-by: İlker G. Öztürk <ilkergoktugozturk@gmail.com>

* docs: add enhancements to the nameservice tutorial (#1861)

* docs: fix v0.19.2 migration Github import paths (#2056)

* feat(build): set internal version of relased binary (#1967)

* add ld flags to the build command

* add ld flags to the serve command

* add the ldflags flag to the serve command

* use ldflags as a build config

* add docs for ldflags

Co-authored-by: İlker G. Öztürk <ilkergoktugozturk@gmail.com>

* docs: tighten up network command help text (#2041)

* tighten up the command text

* add a comma

* clarify not both in error message

* add seconds unit of time

* already exists, fix subject verb agreement

* minor edits

* docs(install): remove TOC,  minor install doc improvements (#2079)

* install doc improvements

* Update docs/guide/install.md

Co-authored-by: İlker G. Öztürk <ilkergoktugozturk@gmail.com>

* chore(CI/Makefile): update the `golint` and add `go import` to the make command (#2087)

* update the golint and add go import to the gofmt make command

* fix goimport into the make command

* feat(network): Add chisel proxy support for gitpod nodes (#2055)

* recognize gitpod peer in join command

* write http tunnels into config on prepare command

* hook into start command and launch chisel proxy

* change chisel info log level

* apply review fixes 1st iteration

* apply review fixes 2nd iteration

* tweak chisel settings

* fix linter

* apply review fixes 3rd iteration

* apply review fixes 4th iteration

* apply review fixes 5th iteration

* apply review fixes 6th iteration

* apply review fixes 7th iteration

Co-authored-by: Petr Ivanov <petr.ivanov@tendermint.com>

* chore(linters): fix revive linter checks (#2093)

Co-authored-by: Petr Ivanov <petr.ivanov@tendermint.com>

* docs: contributing update for milestones (#2054)

* contributing update for milestones

* tidy up Markdown and minor edits

* added the missing Git Flow

* Apply suggestions from code review

Co-authored-by: İlker G. Öztürk <ilkergoktugozturk@gmail.com>

* chore: run `goimports` (#2094)

Co-authored-by: İlker G. Öztürk <ilkergoktugozturk@gmail.com>

* fix(network): genesis account ordering (#2095)

* fix genesis account ordering

* fix tests

* fix tests again

* apply review fixes

* Update starport/services/network/networktypes/genesisinformation.go

* make format

Co-authored-by: Petr Ivanov <petr.ivanov@tendermint.com>
Co-authored-by: İlker G. Öztürk <ilkergoktugozturk@gmail.com>

* fix(cmd/network): fix the spn network peer object printing (#2096)

* fix the spn network peer object printing

* add unit tests

* add explicit import name for spn module

* fix: go.sum (#2106)

* fix(pkg/cosmosclient): add the missing set fee granter (#2101)

* feat(cmd/network): the `chain prepare [id]` should fail if not-launched yet (#2107)

* not run preapre command if the chain is not launched

* fix unit tests

* improve the log messages for the CLI

* docs: fix genesis.html url (#2114)

* feat(network): add network campaign `list` and `show` commands (#2100)

* add campaign info command

* add campaign show command

* apply pr review discussions

* remove unused method call

* fix: use new Discord invite link discord.gg/ignt (#2117)

* use new Discord invite link discord.gg/ignt

* use new Discord invite link discord.gg/ignt

* fix(pkg/cmdrunner): log full command on error (#2078)

Co-authored-by: Petr Ivanov <krest2005@yandex.ru>

* fix(network/cmd): add the validator account flag back (#2121)

* docs: update readme to change Tendermint to Ignite (#2120)

* docs: Create CODE_OF_CONDUCT.md (#2132)

* docs: fixing a typo under blog tutorial (#2133)

* feat(pkg/cosmosclient): request more tokens from faucet as needed (#2125)

* ask token from faucet if don't have enough balance

* fix import sort

* docs(tutorial): remove unused import (#2123)

* docs: remove homebrew from install  (#2135)

* remove homebrew

* add intro to build from source

* refactor: improve tests to use `T.TempDir` (#2139)

The directory created by `T.TempDir` is automatically removed when the
test and all its subtests complete.

Reference: https://pkg.go.dev/testing#T.TempDir
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>

* docs: scavenge tuto improve language and apply styles (#2134)

* improve language and apply styles

* edits and style

* Update docs/guide/scavenge/02-game.md

Co-authored-by: Sonia Singla <soniasingla.1812@gmail.com>

Co-authored-by: Sonia Singla <soniasingla.1812@gmail.com>

* test(pkg/events): increase unit test coverage (#2138)

* Add unit tests to pkg/events

- Increases the coverage of pkg/events to 100%
- My Cosmos address: cosmos1rzz5sr7f6742gjy3ydqs5d02p3q967fqdfugng

* Add suggestions

* docs: code_of_conduct.md lower case name and simple edits for link style (#2140)

* lower case name and simple edits for link style'

* use git mv to change filename case

* feat(network): update spn version (#2141)

* feat: print start command (#2109)

* print start command

* fix lint check

* review fixes

* ux

* remove named return from Init

* fix mistype

Co-authored-by: Petr Ivanov <petr.ivanov@tendermint.com>
Co-authored-by: Danilo Pantani <danpantani@gmail.com>
Co-authored-by: İlker G. Öztürk <ilkergoktugozturk@gmail.com>

* include all registered modules in vuex codegen

Bounty address: cosmos1jkhsg47ce3jthg77p75nkve82tf2t7vv0j7rdx

* Fix lints

* feat(network): campaign update (#2099)

* add campaign update command

* fix the logic and response

* add total shares updates flag to the publish command

* vroadcast only one tx msg

* fetch and print the campaing

* update the method name

* update campaign

* update spn version

* fix xtime unit tests

* remove unused method CampaignUpdateTotalShares

* add campaign flag to the publish command

* remove unused flag

* ci: increate test timeout (#2148)

* feat(cmd/network): add `--mainnet` and `--total-supply` flags to the `publish` command (#2122)

* add mainnet and total-supply flags to the pusblish command

* create campaign publish command

* update stmt

* update spn version

* Update starport/cmd/network_chain_publish.go

* Update starport/services/network/campaign.go

* update spn version

Co-authored-by: İlker G. Öztürk <ilkergoktugozturk@gmail.com>

* move FindImportedPackages into goanalysis + CR fixes

* feat(cmd/network): creates `network campaign account list` command (#2089)

* creates `network campaign account list [campaign-id]` command

* run make format

* use goroutine to fetch the campaign accounts

* use Coin and Share type instead string

* add the validator account flag back

* add event options

* print a msg if the summary is empty

* remove unused flags

* put back the keyring flags

* add the keyring flags to the right cmd method

* update spn version

* fix events unit tests

* feat(cmd/network): add `network reward set` cmd (#2086)

* add `n chain reward-set` command

* fix comments for reward-set cmd

* improve the log messages

* fix block indentation

* add reward flags to the publish command

* run make format

* fix the spn upgrade version

* improve the log message

* add validator account flag

* improve the reward log with the new message response

* improve the events messages and logs

* improve the event message options adding the icon

* fix method names and text color

* fix events struct comment

* fix lint

* move chain reward to reward

* improve the error return message

* update spn version

* fix events unit tests

* fix duplicated log message

* fix reward height flag

* update spn version

* Apply suggestions from code review

* Apply suggestions from code review

* Apply suggestions from code review

* Apply suggestions from code review

Co-authored-by: İlker G. Öztürk <ilkergoktugozturk@gmail.com>

* ignore non app.go files in search for registered modules + CR fixes

* feat(cmd/network): implement `network chain revert-launch` command (#2144)

* rever launch

* rename revert launch cmd file

* create a method to reset the genesis time

* improve the cmd logic

Co-authored-by: İlker G. Öztürk <ilkergoktugozturk@gmail.com>

* fix(network): remove unused flags from query commands (#2155)

Co-authored-by: İlker G. Öztürk <ilkergoktugozturk@gmail.com>

* fix(template): simulation `opWeight` name for an op was always the same (#2154)

Co-authored-by: İlker G. Öztürk <ilkergoktugozturk@gmail.com>

* docs(scavenge): remove scavenge creator (#2153)

* Find app file through implementation

Co-authored-by: İlker G. Öztürk <ilkergoktugozturk@gmail.com>
Co-authored-by: 0xkrane <89357497+0xkrane@users.noreply.github.com>
Co-authored-by: Danilo Pantani <danpantani@gmail.com>
Co-authored-by: sgmoore <git-sgmoore@users.noreply.github.com>
Co-authored-by: Denis Fadeev <denis@fadeev.org>
Co-authored-by: Aliasgar Merchant <44069404+alijnmerchant21@users.noreply.github.com>
Co-authored-by: Lucas Bertrand <lucas.bertrand.22@gmail.com>
Co-authored-by: championshuttler <shivams2799@gmail.com>
Co-authored-by: Barrie Byron <barrie.byron@tendermint.com>
Co-authored-by: Sonia Singla <soniasingla.1812@gmail.com>
Co-authored-by: Tobias Schwarz <tobias@tendermint.com>
Co-authored-by: Andrzej Chmielewski <andrzejchm@users.noreply.github.com>
Co-authored-by: Petr Ivanov <krest2005@yandex.ru>
Co-authored-by: Petr Ivanov <petr.ivanov@tendermint.com>
Co-authored-by: Alex Megalokonomos <alex@clockwork.gr>
Co-authored-by: Jacob Gadikian <jacobgadikian@gmail.com>
Co-authored-by: Hariom Verma <hariom18599@gmail.com>
Co-authored-by: Giancarlos Salas <giansalex@gmail.com>
Co-authored-by: Barrie Byron <barriebyron@gmail.com>
Co-authored-by: Giuseppe Valente <7AC@users.noreply.github.com>
Co-authored-by: Harish Bhawnani <harishmmp@gmail.com>
Co-authored-by: Zach Alam <poweredbyzach@gmail.com>
Co-authored-by: Eng Zer Jun <engzerjun@gmail.com>
Co-authored-by: Theodore <a@xsq.pw>
  • Loading branch information
1 parent c306657 commit 96e8c68
Show file tree
Hide file tree
Showing 279 changed files with 5,862 additions and 1,395 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/release-binary.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
name: Release
name: Release Binaries

on:
push:
tags:
- "*"
release:
types: [ published ]

jobs:
binary:
runs-on: ubuntu-latest
env:
working-directory: go/src/github.com/tendermint/starport
working-directory: go/src/github.com/tendermint/starport

steps:
- name: Set up Go
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release-docker.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Release
name: Release Docker Image

on:
release:
types: [published]
types: [ published ]

push:
branches:
Expand Down
61 changes: 61 additions & 0 deletions .github/workflows/release-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Release nightly

on:
push:
branches:
- develop

jobs:
release-nightly:
runs-on: ubuntu-latest
env:
working-directory: go/src/github.com/tendermint/starport

steps:
- uses: actions/checkout@v2

- name: Delete the nightly release
uses: dev-drprasad/delete-tag-and-release@v0.2.0
with:
tag_name: nightly
delete_release: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Bump version and push tag
uses: mathieudutour/github-tag-action@v6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: nightly
tag_prefix: ""

- name: Upsert the nightly release
uses: ncipollo/release-action@v1
with:
tag: nightly
name: nightly
body: "Install and move to bin: `curl https://get.starport.network/starport@nightly! | bash`"
prerelease: true

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16

- name: Checkout
uses: actions/checkout@v2
with:
path: ${{ env.working-directory }}
fetch-depth: 0

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
workdir: ${{ env.working-directory }}
# never versions always requires semver even with the use of --skip-validate flag.
# we need to avoid semver since nightly release updated everytime there is chance on develop branch.
# by avoiding semver, we prevent GOPROXY and pkg.go.dev to cache this tag.
version: v0.157.0
args: release --rm-dist --skip-validate -f .goreleaser.nightly.yml
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
2 changes: 1 addition & 1 deletion .github/workflows/test-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
run: go install ./...
- name: Run Integration Tests
if: env.GIT_DIFF
run: go test -v -timeout 35m ./integration/${{ matrix.test-path }}
run: go test -v -timeout 60m ./integration/${{ matrix.test-path }}

status:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test
name: Lint
on:
pull_request:
push:
Expand Down Expand Up @@ -29,6 +29,6 @@ jobs:
if: env.GIT_DIFF
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.37
version: v1.41
args: --timeout 10m
github-token: ${{ secrets.github_token }}
2 changes: 1 addition & 1 deletion .github/workflows/test-semantic.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test
name: Semantic PR

on:
pull_request_target:
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ linters:
- gocritic
- gofmt
- goimports
- golint
- revive
# - gosec
- gosimple
- govet
Expand Down
10 changes: 10 additions & 0 deletions .goreleaser.nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
builds:
- main: ./starport/cmd/starport
ldflags:
- -s -w -X github.com/tendermint/starport/starport/internal/version.Version={{.Tag}} -X github.com/tendermint/starport/starport/internal/version.Date={{.Date}} -X github.com/tendermint/starport/starport/internal/version.Head={{.FullCommit}}
goarch:
- amd64
changelog:
skip: true
release:
prerelease: true
13 changes: 1 addition & 12 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
builds:
- main: ./starport/cmd/starport
ldflags:
- -s -w -X github.com/tendermint/starport/starport/internal/version.Version={{.Tag}} -X github.com/tendermint/starport/starport/internal/version.Date={{.Date}}
- -s -w -X github.com/tendermint/starport/starport/internal/version.Version={{.Tag}} -X github.com/tendermint/starport/starport/internal/version.Date={{.Date}} -X github.com/tendermint/starport/starport/internal/version.Head={{.FullCommit}}
goarch:
- amd64

brews:
- name: "starport"
description: "Friendly CLI tool for developing Cosmos SDK apps."
homepage: "https://github.com/tendermint/starport"
tap:
owner: "tendermint"
name: "homebrew-tap"
install: |
bin.install "starport"
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Project variables.
PROJECT_NAME = starport
DATE := $(shell date '+%Y-%m-%dT%H:%M:%S')
FIND_ARGS := -name '*.go' -type f -not -name '*.pb.go'
HEAD = $(shell git rev-parse HEAD)
LD_FLAGS = -X github.com/tendermint/starport/starport/internal/version.Head='$(HEAD)' \
-X github.com/tendermint/starport/starport/internal/version.Date='$(DATE)'
Expand Down Expand Up @@ -35,7 +36,8 @@ govet:
## format: Run gofmt.
format:
@echo Formatting...
@find . -name '*.go' -type f | xargs gofmt -d -s
@find . $(FIND_ARGS) | xargs gofmt -d -s
@find . $(FIND_ARGS) | xargs goimports -w -local github.com/tendermint/starport

## lint: Run Golang CI Lint.
lint:
Expand Down
Loading

0 comments on commit 96e8c68

Please sign in to comment.