Skip to content

Commit 3b1ea32

Browse files
author
gitopia1c2zfrmhra3spfrc2m5ft64hef30guf60lvtcm3
committed
Merge pull request #117 from gitopia/fix-pr-merge
2 parents 867ea09 + da63545 commit 3b1ea32

33 files changed

Lines changed: 184 additions & 39 deletions

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,32 @@
22

33
All notable changes will be documented here.
44

5+
## [5.1.0] - 2024-11-30
6+
7+
- fix errors in pull request merge messages
8+
- set whois update in UpdateDaoMetadata proposal
9+
- fix UpdateDaoConfig proposal
10+
- update protobuf imports
11+
- add the new v5.1.0 upgrade handler
12+
13+
## [5.0.1] - 2024-11-27
14+
15+
- update mocks and fix build error
16+
17+
## [5.0.0] - 2024-11-27
18+
19+
- Use cosmos-sdk fork for disabling pruning of proposals and votes in group proposals
20+
- Implement Gitopia DAOs using the cosmos-sdk module group.
21+
- Port existing DAO transactions
22+
- Create new DAO proposal types
23+
- Merging PR in DAO repositories
24+
- Creating new releases in DAO repositories
25+
- Managing collaborators in DAO repositories
26+
- Updating DAO governance configuration
27+
- Updating DAO metadata
28+
- DAO treasury spend
29+
- Migration for existing DAOs and members
30+
531
## [4.0.0] - 2024-08-20
632

733
- Upgrade cosmos-sdk version to v0.47.13

app/app.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ import (
4040
"github.com/gitopia/gitopia/v5/app/upgrades"
4141
v4 "github.com/gitopia/gitopia/v5/app/upgrades/v4"
4242
v5 "github.com/gitopia/gitopia/v5/app/upgrades/v5"
43+
v51 "github.com/gitopia/gitopia/v5/app/upgrades/v51"
4344
gitopiatypes "github.com/gitopia/gitopia/v5/x/gitopia/types"
4445
rewardstypes "github.com/gitopia/gitopia/v5/x/rewards/types"
4546
"github.com/spf13/cast"
@@ -69,6 +70,7 @@ var (
6970
},
7071
v4.Upgrade,
7172
v5.Upgrade,
73+
v51.Upgrade,
7274
}
7375
)
7476

app/upgrades/v51/constants.go

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package v51
2+
3+
import (
4+
"github.com/gitopia/gitopia/v5/app/upgrades"
5+
6+
store "github.com/cosmos/cosmos-sdk/store/types"
7+
)
8+
9+
// UpgradeName defines the on-chain upgrade name for the Gitopia v5.1.0 upgrade.
10+
const (
11+
UpgradeName = "v5.1.0"
12+
)
13+
14+
var Upgrade = upgrades.Upgrade{
15+
UpgradeName: UpgradeName,
16+
CreateUpgradeHandler: CreateUpgradeHandler,
17+
StoreUpgrades: store.StoreUpgrades{
18+
Added: []string{},
19+
Deleted: []string{},
20+
},
21+
}

app/upgrades/v51/upgrades.go

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
package v51
2+
3+
import (
4+
sdk "github.com/cosmos/cosmos-sdk/types"
5+
"github.com/cosmos/cosmos-sdk/types/module"
6+
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
7+
"github.com/gitopia/gitopia/v5/app/keepers"
8+
)
9+
10+
func CreateUpgradeHandler(
11+
mm *module.Manager,
12+
configurator module.Configurator,
13+
keepers *keepers.AppKeepers,
14+
) upgradetypes.UpgradeHandler {
15+
return func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
16+
ctx.Logger().Info("Starting upgrade v5.1.0...")
17+
18+
ctx.Logger().Info("Migrating DAOs to the newer implementation...")
19+
20+
migrations, err := mm.RunMigrations(ctx, configurator, fromVM)
21+
if err != nil {
22+
return nil, err
23+
}
24+
25+
ctx.Logger().Info("v5.1.0 Upgrade Complete")
26+
return migrations, nil
27+
}
28+
}

proto/gitopia/gitopia/gitopia/attachment.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
syntax = "proto3";
22
package gitopia.gitopia.gitopia;
33

4-
option go_package = "github.com/gitopia/gitopia/v4/x/gitopia/types";
4+
option go_package = "github.com/gitopia/gitopia/v5/x/gitopia/types";
55

66
message Attachment {
77
string name = 1;

proto/gitopia/gitopia/gitopia/bounty.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ package gitopia.gitopia.gitopia;
44
import "gogoproto/gogo.proto";
55
import "cosmos/base/v1beta1/coin.proto";
66

7-
option go_package = "github.com/gitopia/gitopia/v4/x/gitopia/types";
7+
option go_package = "github.com/gitopia/gitopia/v5/x/gitopia/types";
88

99
enum BountyState {
1010
option (gogoproto.goproto_enum_prefix) = false;

proto/gitopia/gitopia/gitopia/branch.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
syntax = "proto3";
22
package gitopia.gitopia.gitopia;
33

4-
option go_package = "github.com/gitopia/gitopia/v4/x/gitopia/types";
4+
option go_package = "github.com/gitopia/gitopia/v5/x/gitopia/types";
55

66
message Branch {
77
uint64 id = 1;

proto/gitopia/gitopia/gitopia/comment.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
syntax = "proto3";
22
package gitopia.gitopia.gitopia;
33

4-
option go_package = "github.com/gitopia/gitopia/v4/x/gitopia/types";
4+
option go_package = "github.com/gitopia/gitopia/v5/x/gitopia/types";
55

66
import "gogoproto/gogo.proto";
77
import "gitopia/gitopia/gitopia/reaction.proto";

proto/gitopia/gitopia/gitopia/dao.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
syntax = "proto3";
22
package gitopia.gitopia.gitopia;
33

4-
option go_package = "github.com/gitopia/gitopia/v4/x/gitopia/types";
4+
option go_package = "github.com/gitopia/gitopia/v5/x/gitopia/types";
55

66
import "gogoproto/gogo.proto";
77

proto/gitopia/gitopia/gitopia/exercised_amount.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ package gitopia.gitopia.gitopia;
44
import "gogoproto/gogo.proto";
55
import "cosmos/base/v1beta1/coin.proto";
66

7-
option go_package = "github.com/gitopia/gitopia/v4/x/gitopia/types";
7+
option go_package = "github.com/gitopia/gitopia/v5/x/gitopia/types";
88

99
message ExercisedAmount {
1010
string address = 1;

0 commit comments

Comments
 (0)