Skip to content

Commit

Permalink
release 3.0.0 (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
noandrea authored Feb 3, 2022
1 parent 7c52f4c commit afa0ee5
Show file tree
Hide file tree
Showing 82 changed files with 198 additions and 186 deletions.
45 changes: 33 additions & 12 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,38 @@
## [Unreleased]


<a name="v2.1.2"></a>
## [v2.1.2] - 2021-11-04
<a name="v3.0.0"></a>
## [v3.0.0] - 2022-01-30
### Chore
- simplify the release command
- update module version to v3
- upgrade cosoms-sdk version to 0.44.3 ([#308](https://github.com/allinbits/cosmos-cash/issues/308))
- update to cosmos-sdk v0.45.0 ([#331](https://github.com/allinbits/cosmos-cash/issues/331t))

### Docs
- minor documentation edits
- fix for style and standard, do not repeat term ([#322](https://github.com/allinbits/cosmos-cash/issues/322))
- prettier home page for the documentation portal ([#309](https://github.com/allinbits/cosmos-cash/issues/309))

### Feat
- implement add/remove controller and full update of a did doc ([#328](https://github.com/allinbits/cosmos-cash/issues/328))
- polishing credential issuance ([#320](https://github.com/allinbits/cosmos-cash/issues/320))

### Fix
- import path for the v2 module version path
- missing semantic import versioning from module declaration
- **ci:** rules for gosec linter

### Test
- increase test coverage ([#334](https://github.com/allinbits/cosmos-cash/issues/334))
- enhance [#279](https://github.com/allinbits/cosmos-cash/issues/279) did cli test go ([#300](https://github.com/allinbits/cosmos-cash/issues/300))

<a name="v2.1.1"></a>
## [v2.1.1] - 2021-11-04
### Chore
- update changelog for v2.1.1
### BREAKING CHANGE

- update message overwrite a full did document (change command semantics)
- did events are only of two types
- credential IDs are automatically generated by default, they can be overridden using the `--credential-id` parameter

### Fix
- missing semantic import versioning from module declaration


<a name="v2.1.0"></a>
Expand Down Expand Up @@ -141,6 +159,9 @@ remove support for legacy key format
- **seed:** add params to switch chain for selective disclosure


<a name="v0.1.0"></a>
## [v0.1.0] - 2021-06-03

<a name="v21.06.03"></a>
## v21.06.03 - 2021-06-03
### Chore
Expand Down Expand Up @@ -210,11 +231,11 @@ remove support for legacy key format
- **integration-test:** restructure app.go and fix RegisterTxService


[Unreleased]: https://github.com/allinbits/cosmos-cash/compare/v2.1.2...HEAD
[v2.1.2]: https://github.com/allinbits/cosmos-cash/compare/v2.1.1...v2.1.2
[v2.1.1]: https://github.com/allinbits/cosmos-cash/compare/v2.1.0...v2.1.1
[Unreleased]: https://github.com/allinbits/cosmos-cash/compare/v3.0.0...HEAD
[v3.0.0]: https://github.com/allinbits/cosmos-cash/compare/v2.1.0...v3.0.0
[v2.1.0]: https://github.com/allinbits/cosmos-cash/compare/v2.0.0...v2.1.0
[v2.0.0]: https://github.com/allinbits/cosmos-cash/compare/v1.0.0...v2.0.0
[v1.0.0]: https://github.com/allinbits/cosmos-cash/compare/v0.2.0...v1.0.0
[v0.2.0]: https://github.com/allinbits/cosmos-cash/compare/v0.2.0-pre...v0.2.0
[v0.2.0-pre]: https://github.com/allinbits/cosmos-cash/compare/v21.06.03...v0.2.0-pre
[v0.2.0-pre]: https://github.com/allinbits/cosmos-cash/compare/v0.1.0...v0.2.0-pre
[v0.1.0]: https://github.com/allinbits/cosmos-cash/compare/v21.06.03...v0.1.0
24 changes: 9 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,14 @@ test-ci:
changelog:
git-chglog --output CHANGELOG.md

git-release-prepare:
_get-release-version:
ifneq ($(shell git branch --show-current | head -c 9), release/v)
$(error this is not a release branch. a release branch should be something like 'release/v1.2.3')
endif
$(eval APP_VERSION = $(subst release/,,$(shell git branch --show-current)))
# @echo -n "releasing version $(APP_VERSION), confirm? [y/N] " && read ans && [ $${ans:-N} == y ]

release-prepare: _get-release-version
@echo making release $(APP_VERSION)
ifndef APP_VERSION
$(error APP_VERSION is not set, please specifiy the version you want to tag)
Expand All @@ -86,17 +93,4 @@ endif
ifneq ($(shell git rev-parse --abbrev-ref HEAD),main)
$(error you are not on the main branch. aborting)
endif
git tag -s -a "$(APP_VERSION)" -m "Changelog: https://github.com/allinbits/cosmos-cash/blob/main/CHANGELOG.md"

_release-patch:
$(eval APP_VERSION = $(shell git describe --tags | awk -F '("|")' '{ print($$1)}' | awk -F. '{$$NF = $$NF + 1;} 1' | sed 's/ /./g'))
release-patch: _release-patch git-release-prepare

_release-minor:
$(eval APP_VERSION = $(shell git describe --tags | awk -F '("|")' '{ print($$1)}' | awk -F. '{$$(NF-1) = $$(NF-1) + 1;} 1' | sed 's/ /./g' | awk -F. '{$$(NF) = 0;} 1' | sed 's/ /./g'))
release-minor: _release-minor git-release-prepare

_release-major:
$(eval APP_VERSION = $(shell git describe --tags | awk -F '("|")' '{ print($$1)}' | awk -F. '{$$(NF-2) = $$(NF-2) + 1;} 1' | sed 's/ /./g' | awk -F. '{$$(NF-1) = 0;} 1' | sed 's/ /./g' | awk -F. '{$$(NF) = 0;} 1' | sed 's/ /./g' ))
release-major: _release-major git-release-prepare

git tag -s -a "$(shell git-chglog $(APP_VERSION))" -m "Changelog: https://github.com/allinbits/cosmos-cash/blob/main/CHANGELOG.md"
8 changes: 4 additions & 4 deletions app/ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"github.com/cosmos/cosmos-sdk/x/auth/signing"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"

didkeeper "github.com/allinbits/cosmos-cash/v2/x/did/keeper"
issuerante "github.com/allinbits/cosmos-cash/v2/x/issuer/ante"
issuerkeeper "github.com/allinbits/cosmos-cash/v2/x/issuer/keeper"
vcskeeper "github.com/allinbits/cosmos-cash/v2/x/verifiable-credential/keeper"
didkeeper "github.com/allinbits/cosmos-cash/v3/x/did/keeper"
issuerante "github.com/allinbits/cosmos-cash/v3/x/issuer/ante"
issuerkeeper "github.com/allinbits/cosmos-cash/v3/x/issuer/keeper"
vcskeeper "github.com/allinbits/cosmos-cash/v3/x/verifiable-credential/keeper"
)

// NewAnteHandler returns an AnteHandler that checks and increments sequence
Expand Down
28 changes: 14 additions & 14 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,22 +90,22 @@ import ( // this line is used by starport scaffolding # stargate/app/moduleImpor
tmos "github.com/tendermint/tendermint/libs/os"
dbm "github.com/tendermint/tm-db"

appparams "github.com/allinbits/cosmos-cash/v2/app/params"
"github.com/allinbits/cosmos-cash/v2/x/did"
didkeeper "github.com/allinbits/cosmos-cash/v2/x/did/keeper"
didtypes "github.com/allinbits/cosmos-cash/v2/x/did/types"
"github.com/allinbits/cosmos-cash/v2/x/issuer"
issuerkeeper "github.com/allinbits/cosmos-cash/v2/x/issuer/keeper"
issuertypes "github.com/allinbits/cosmos-cash/v2/x/issuer/types"
"github.com/allinbits/cosmos-cash/v2/x/regulator"
regulatorkeeper "github.com/allinbits/cosmos-cash/v2/x/regulator/keeper"
regulatortypes "github.com/allinbits/cosmos-cash/v2/x/regulator/types"
vcs "github.com/allinbits/cosmos-cash/v2/x/verifiable-credential"
vcskeeper "github.com/allinbits/cosmos-cash/v2/x/verifiable-credential/keeper"
vcstypes "github.com/allinbits/cosmos-cash/v2/x/verifiable-credential/types"
appparams "github.com/allinbits/cosmos-cash/v3/app/params"
"github.com/allinbits/cosmos-cash/v3/x/did"
didkeeper "github.com/allinbits/cosmos-cash/v3/x/did/keeper"
didtypes "github.com/allinbits/cosmos-cash/v3/x/did/types"
"github.com/allinbits/cosmos-cash/v3/x/issuer"
issuerkeeper "github.com/allinbits/cosmos-cash/v3/x/issuer/keeper"
issuertypes "github.com/allinbits/cosmos-cash/v3/x/issuer/types"
"github.com/allinbits/cosmos-cash/v3/x/regulator"
regulatorkeeper "github.com/allinbits/cosmos-cash/v3/x/regulator/keeper"
regulatortypes "github.com/allinbits/cosmos-cash/v3/x/regulator/types"
vcs "github.com/allinbits/cosmos-cash/v3/x/verifiable-credential"
vcskeeper "github.com/allinbits/cosmos-cash/v3/x/verifiable-credential/keeper"
vcstypes "github.com/allinbits/cosmos-cash/v3/x/verifiable-credential/types"

// unnamed import of statik for swagger UI support
_ "github.com/allinbits/cosmos-cash/v2/docs/Reference/swagger/statik"
_ "github.com/allinbits/cosmos-cash/v3/docs/Reference/swagger/statik"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion app/encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package app
import (
"github.com/cosmos/cosmos-sdk/std"

"github.com/allinbits/cosmos-cash/v2/app/params"
"github.com/allinbits/cosmos-cash/v3/app/params"
)

// MakeEncodingConfig creates an EncodingConfig for testing
Expand Down
2 changes: 1 addition & 1 deletion cmd/cosmos-cashd/cmd/genaccounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types"
"github.com/spf13/cobra"

regulatortypes "github.com/allinbits/cosmos-cash/v2/x/regulator/types"
regulatortypes "github.com/allinbits/cosmos-cash/v3/x/regulator/types"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions cmd/cosmos-cashd/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ import (
"github.com/tendermint/tendermint/libs/log"
dbm "github.com/tendermint/tm-db"

"github.com/allinbits/cosmos-cash/v2/app"
"github.com/allinbits/cosmos-cash/v2/app/params"
"github.com/allinbits/cosmos-cash/v3/app"
"github.com/allinbits/cosmos-cash/v3/app/params"
)

// ChainID the chain did
Expand Down
4 changes: 2 additions & 2 deletions cmd/cosmos-cashd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"github.com/cosmos/cosmos-sdk/server"
svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"

"github.com/allinbits/cosmos-cash/v2/app"
"github.com/allinbits/cosmos-cash/v2/cmd/cosmos-cashd/cmd"
"github.com/allinbits/cosmos-cash/v3/app"
"github.com/allinbits/cosmos-cash/v3/cmd/cosmos-cashd/cmd"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/allinbits/cosmos-cash/v2
module github.com/allinbits/cosmos-cash/v3

go 1.17

Expand Down
2 changes: 1 addition & 1 deletion proto/did/did.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";
package allinbits.cosmoscash.did;

option go_package = "github.com/allinbits/cosmos-cash/v2/x/did/types";
option go_package = "github.com/allinbits/cosmos-cash/v3/x/did/types";

import "gogoproto/gogo.proto";
import "google/protobuf/timestamp.proto";
Expand Down
2 changes: 1 addition & 1 deletion proto/did/event.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";
package allinbits.cosmoscash.did;

option go_package = "github.com/allinbits/cosmos-cash/v2/x/did/types";
option go_package = "github.com/allinbits/cosmos-cash/v3/x/did/types";

import "gogoproto/gogo.proto";

Expand Down
2 changes: 1 addition & 1 deletion proto/did/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "did/did.proto";
import "gogoproto/gogo.proto";
// this line is used by starport scaffolding # 1

option go_package = "github.com/allinbits/cosmos-cash/v2/x/did/types";
option go_package = "github.com/allinbits/cosmos-cash/v3/x/did/types";

// this line is used by starport scaffolding # 1

Expand Down
2 changes: 1 addition & 1 deletion proto/did/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "gogoproto/gogo.proto";
import "did/did.proto";
import "google/api/annotations.proto";

option go_package = "github.com/allinbits/cosmos-cash/v2/x/did/types";
option go_package = "github.com/allinbits/cosmos-cash/v3/x/did/types";

// Msg defines the identity Msg service.
service Msg {
Expand Down
2 changes: 1 addition & 1 deletion proto/issuer/issuer.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";
package allinbits.cosmoscash.issuer;

option go_package = "github.com/allinbits/cosmos-cash/v2/x/issuer/types";
option go_package = "github.com/allinbits/cosmos-cash/v3/x/issuer/types";

// Issuer represents an e-money token issuer
message Issuer {
Expand Down
2 changes: 1 addition & 1 deletion proto/issuer/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "issuer/issuer.proto";
import "gogoproto/gogo.proto";
// this line is used by starport scaffolding # 1

option go_package = "github.com/allinbits/cosmos-cash/v2/x/issuer/types";
option go_package = "github.com/allinbits/cosmos-cash/v3/x/issuer/types";

// Query defines the gRPC querier service.
service Query {
Expand Down
2 changes: 1 addition & 1 deletion proto/issuer/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import "gogoproto/gogo.proto";
import "verifiable-credential/verifiable-credential.proto";
// this line is used by starport scaffolding # proto/tx/import

option go_package = "github.com/allinbits/cosmos-cash/v2/x/issuer/types";
option go_package = "github.com/allinbits/cosmos-cash/v3/x/issuer/types";

// Msg defines the Msg service.
service Msg {
Expand Down
2 changes: 1 addition & 1 deletion proto/regulator/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package allinbits.cosmoscash.regulator;

// this line is used by starport scaffolding # genesis/proto/import

option go_package = "github.com/allinbits/cosmos-cash/v2/x/regulator/types";
option go_package = "github.com/allinbits/cosmos-cash/v3/x/regulator/types";

import "gogoproto/gogo.proto";

Expand Down
2 changes: 1 addition & 1 deletion proto/regulator/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "google/api/annotations.proto";
import "cosmos/base/query/v1beta1/pagination.proto";
// this line is used by starport scaffolding # 1

option go_package = "github.com/allinbits/cosmos-cash/v2/x/regulator/types";
option go_package = "github.com/allinbits/cosmos-cash/v3/x/regulator/types";

// Query defines the gRPC querier service.
service Query {
Expand Down
2 changes: 1 addition & 1 deletion proto/regulator/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package allinbits.cosmoscash.regulator;

// this line is used by starport scaffolding # proto/tx/import

option go_package = "github.com/allinbits/cosmos-cash/v2/x/regulator/types";
option go_package = "github.com/allinbits/cosmos-cash/v3/x/regulator/types";

import "gogoproto/gogo.proto";
import "verifiable-credential/verifiable-credential.proto";
Expand Down
2 changes: 1 addition & 1 deletion proto/verifiable-credential/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "verifiable-credential/verifiable-credential.proto";
import "gogoproto/gogo.proto";
// this line is used by starport scaffolding # 1

option go_package = "github.com/allinbits/cosmos-cash/v2/x/verifiable-credential/types";
option go_package = "github.com/allinbits/cosmos-cash/v3/x/verifiable-credential/types";

// Query defines the gRPC querier service.
service Query {
Expand Down
2 changes: 1 addition & 1 deletion proto/verifiable-credential/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package allinbits.cosmoscash.verifiablecredential;

// this line is used by starport scaffolding # proto/tx/import

option go_package = "github.com/allinbits/cosmos-cash/v2/x/verifiable-credential/types";
option go_package = "github.com/allinbits/cosmos-cash/v3/x/verifiable-credential/types";

import "gogoproto/gogo.proto";
import "verifiable-credential/verifiable-credential.proto";
Expand Down
4 changes: 2 additions & 2 deletions proto/verifiable-credential/verifiable-credential.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package allinbits.cosmoscash.verifiablecredential;
import "gogoproto/gogo.proto";
import "google/protobuf/timestamp.proto";
import "cosmos/base/v1beta1/coin.proto";
option go_package = "github.com/allinbits/cosmos-cash/v2/x/verifiable-credential/types";
option go_package = "github.com/allinbits/cosmos-cash/v3/x/verifiable-credential/types";

/*
Credentials are a part of our daily lives; driver's licenses are used to assert
Expand Down Expand Up @@ -157,7 +157,7 @@ message RegulatorCredentialSubject {
}

// RegistrationCredentialSubject is used to identify a business entity
// https://github.com/allinbits/cosmos-cash/v2/blob/main/docs/Explanation/ADR/adr-005-registration-credential.md
// https://github.com/allinbits/cosmos-cash/v3/blob/main/docs/Explanation/ADR/adr-005-registration-credential.md
message RegistrationCredentialSubject {
// The value of id represents the ID of the credential_subject
string id = 1;
Expand Down
2 changes: 1 addition & 1 deletion scripts/protocgen
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ done


# move proto files to the right places
cp -r github.com/allinbits/cosmos-cash/v2/* ./
cp -r github.com/allinbits/cosmos-cash/v3/* ./
rm -rf github.com

2 changes: 1 addition & 1 deletion x/did/client/cli/aries.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"github.com/cosmos/cosmos-sdk/client/tx"
"github.com/spf13/cobra"

"github.com/allinbits/cosmos-cash/v2/x/did/types"
"github.com/allinbits/cosmos-cash/v3/x/did/types"
)

// request send a json http request
Expand Down
8 changes: 4 additions & 4 deletions x/did/client/cli/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ import (
"github.com/stretchr/testify/suite"
tmcli "github.com/tendermint/tendermint/libs/cli"

"github.com/allinbits/cosmos-cash/v2/x/did/client/cli"
"github.com/allinbits/cosmos-cash/v2/x/did/types"
"github.com/allinbits/cosmos-cash/v3/x/did/client/cli"
"github.com/allinbits/cosmos-cash/v3/x/did/types"
"github.com/cosmos/cosmos-sdk/client/flags"
clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli"
"github.com/cosmos/cosmos-sdk/testutil/network"
sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/allinbits/cosmos-cash/v2/app"
"github.com/allinbits/cosmos-cash/v2/app/params"
"github.com/allinbits/cosmos-cash/v3/app"
"github.com/allinbits/cosmos-cash/v3/app/params"
"github.com/cosmos/cosmos-sdk/baseapp"
servertypes "github.com/cosmos/cosmos-sdk/server/types"
"github.com/cosmos/cosmos-sdk/simapp"
Expand Down
2 changes: 1 addition & 1 deletion x/did/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/spf13/cobra"

"github.com/allinbits/cosmos-cash/v2/x/did/types"
"github.com/allinbits/cosmos-cash/v3/x/did/types"
)

// GetQueryCmd returns the cli query commands for this module
Expand Down
2 changes: 1 addition & 1 deletion x/did/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/spf13/cobra"

"github.com/allinbits/cosmos-cash/v2/x/did/types"
"github.com/allinbits/cosmos-cash/v3/x/did/types"
)

// GetTxCmd returns the transaction commands for this module
Expand Down
2 changes: 1 addition & 1 deletion x/did/keeper/did.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/allinbits/cosmos-cash/v2/x/did/types"
"github.com/allinbits/cosmos-cash/v3/x/did/types"
)

func (k Keeper) SetDidDocument(ctx sdk.Context, key []byte, document types.DidDocument) {
Expand Down
Loading

0 comments on commit afa0ee5

Please sign in to comment.