Skip to content

Commit

Permalink
fix: remove logo from funder
Browse files Browse the repository at this point in the history
  • Loading branch information
shifty11 committed Oct 10, 2023
1 parent 139b518 commit 64d85e6
Show file tree
Hide file tree
Showing 18 changed files with 213 additions and 562 deletions.
6 changes: 0 additions & 6 deletions docs/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7744,9 +7744,6 @@ paths:
identity:
type: string
title: identity is the 64 bit keybase.io identity string
logo:
type: string
description: logo ...
website:
type: string
description: website ...
Expand Down Expand Up @@ -8038,9 +8035,6 @@ paths:
identity:
type: string
title: identity is the 64 bit keybase.io identity string
logo:
type: string
description: logo ...
website:
type: string
description: website ...
Expand Down
16 changes: 6 additions & 10 deletions proto/kyve/funders/v1beta1/events.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@ message EventCreateFunder {
string moniker = 2;
// identity is the 64 bit keybase.io identity string
string identity = 3;
// logo ...
string logo = 4;
// website ...
string website = 5;
string website = 4;
// contact ...
string contact = 6;
string contact = 5;
// description are some additional notes the funder finds important
string description = 7;
string description = 6;
}

// EventUpdateFunder is an event emitted when a funder is created.
Expand All @@ -35,14 +33,12 @@ message EventUpdateFunder {
string moniker = 2;
// identity is the 64 bit keybase.io identity string
string identity = 3;
// logo ...
string logo = 4;
// website ...
string website = 5;
string website = 4;
// contact ...
string contact = 6;
string contact = 5;
// description are some additional notes the funder finds important
string description = 7;
string description = 6;
}

// EventFundPool is an event emitted when a pool is funded.
Expand Down
8 changes: 3 additions & 5 deletions proto/kyve/funders/v1beta1/funders.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,12 @@ message Funder {
string moniker = 2;
// identity is the 64 bit keybase.io identity string
string identity = 3;
// logo ...
string logo = 4;
// website ...
string website = 5;
string website = 4;
// contact ...
string contact = 6;
string contact = 5;
// description are some additional notes the funder finds important
string description = 7;
string description = 6;
}

// Funding is the object which holds info about the current funding
Expand Down
16 changes: 6 additions & 10 deletions proto/kyve/funders/v1beta1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,12 @@ message MsgCreateFunder {
string moniker = 2;
// identity is the 64 bit keybase.io identity string
string identity = 3;
// logo
string logo = 4;
// website
string website = 5;
string website = 4;
// contact
string contact = 6;
string contact = 5;
// description are some additional notes the funder finds important
string description = 7;
string description = 6;
}

// MsgCreateFunderResponse defines the Msg/CreateFunder response type.
Expand All @@ -45,14 +43,12 @@ message MsgUpdateFunder {
string moniker = 2;
// identity is the 64 bit keybase.io identity string
string identity = 3;
// logo
string logo = 4;
// website
string website = 5;
string website = 4;
// contact
string contact = 6;
string contact = 5;
// description are some additional notes the funder finds important
string description = 7;
string description = 6;
}

// MsgUpdateFunderResponse defines the Msg/UpdateFunder response type.
Expand Down
8 changes: 3 additions & 5 deletions proto/kyve/query/v1beta1/funders.proto
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,12 @@ message Funder {
string moniker = 2;
// identity is the 64 bit keybase.io identity string
string identity = 3;
// logo ...
string logo = 4;
// website ...
string website = 5;
string website = 4;
// contact ...
string contact = 6;
string contact = 5;
// description ...
string description = 7;
string description = 6;
}

// FunderStats ...
Expand Down
2 changes: 1 addition & 1 deletion proto/kyve/query/v1beta1/params.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import "cosmos/gov/v1/gov.proto";
import "google/api/annotations.proto";
import "kyve/bundles/v1beta1/params.proto";
import "kyve/delegation/v1beta1/params.proto";
import "kyve/funders/v1beta1/params.proto";
import "kyve/global/v1beta1/global.proto";
import "kyve/pool/v1beta1/params.proto";
import "kyve/stakers/v1beta1/params.proto";
import "kyve/funders/v1beta1/params.proto";

option go_package = "github.com/KYVENetwork/chain/x/query/types";

Expand Down
2 changes: 0 additions & 2 deletions x/funders/client/cli/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
const (
FlagMoniker = "moniker"
FlagIdentity = "identity"
FlagLogo = "logo"
FlagWebsite = "website"
FlagContact = "contact"
FlagDescription = "description"
Expand All @@ -18,7 +17,6 @@ func flagSetFunderCreate() *flag.FlagSet {

fs.String(FlagMoniker, "", "The funder's name")
fs.String(FlagIdentity, "", "The optional identity signature (ex. UPort or Keybase)")
fs.String(FlagLogo, "", "The funder's (optional) logo")
fs.String(FlagWebsite, "", "The funder's (optional) website")
fs.String(FlagContact, "", "The funder's (optional) security contact email")
fs.String(FlagDescription, "", "The funder's (optional) description")
Expand Down
4 changes: 0 additions & 4 deletions x/funders/client/cli/tx_create_funder.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ func CmdCreateFunder() *cobra.Command {
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) (err error) {
argMoniker := args[0]

// moniker, _ := cmd.Flags().GetString(FlagEditMoniker)
identity, _ := cmd.Flags().GetString(FlagIdentity)
logo, _ := cmd.Flags().GetString(FlagLogo)
website, _ := cmd.Flags().GetString(FlagWebsite)
contact, _ := cmd.Flags().GetString(FlagContact)
description, _ := cmd.Flags().GetString(FlagDescription)
Expand All @@ -32,7 +29,6 @@ func CmdCreateFunder() *cobra.Command {
Creator: clientCtx.GetFromAddress().String(),
Moniker: argMoniker,
Identity: identity,
Logo: logo,
Website: website,
Contact: contact,
Description: description,
Expand Down
2 changes: 0 additions & 2 deletions x/funders/client/cli/tx_update_funder.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ func CmdUpdateFunder() *cobra.Command {
RunE: func(cmd *cobra.Command, args []string) (err error) {
moniker, _ := cmd.Flags().GetString(FlagMoniker)
identity, _ := cmd.Flags().GetString(FlagIdentity)
logo, _ := cmd.Flags().GetString(FlagLogo)
website, _ := cmd.Flags().GetString(FlagWebsite)
contact, _ := cmd.Flags().GetString(FlagContact)
description, _ := cmd.Flags().GetString(FlagDescription)
Expand All @@ -29,7 +28,6 @@ func CmdUpdateFunder() *cobra.Command {
Creator: clientCtx.GetFromAddress().String(),
Moniker: moniker,
Identity: identity,
Logo: logo,
Website: website,
Contact: contact,
Description: description,
Expand Down
2 changes: 0 additions & 2 deletions x/funders/keeper/msg_server_create_funder.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ func (k msgServer) CreateFunder(goCtx context.Context, msg *types.MsgCreateFunde
Address: msg.Creator,
Moniker: msg.Moniker,
Identity: msg.Identity,
Logo: msg.Logo,
Website: msg.Website,
Contact: msg.Contact,
Description: msg.Description,
Expand All @@ -36,7 +35,6 @@ func (k msgServer) CreateFunder(goCtx context.Context, msg *types.MsgCreateFunde
Address: msg.Creator,
Moniker: msg.Moniker,
Identity: msg.Identity,
Logo: msg.Logo,
Website: msg.Website,
Contact: msg.Contact,
Description: msg.Description,
Expand Down
5 changes: 1 addition & 4 deletions x/funders/keeper/msg_server_create_funder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,18 @@ var _ = Describe("msg_server_create_funder.go", Ordered, func() {
Expect(funder.Address).To(Equal(i.ALICE))
Expect(funder.Moniker).To(Equal("moniker"))
Expect(funder.Identity).To(BeEmpty())
Expect(funder.Logo).To(BeEmpty())
Expect(funder.Website).To(BeEmpty())
Expect(funder.Contact).To(BeEmpty())
Expect(funder.Description).To(BeEmpty())
})

It("Create a funder with all values set", func() {
// ACT
moniker, identity, logo, website, contact, description := "moniker", "identity", "logo", "website", "contact", "description"
moniker, identity, website, contact, description := "moniker", "identity", "website", "contact", "description"
s.RunTxFundersSuccess(&types.MsgCreateFunder{
Creator: i.ALICE,
Moniker: moniker,
Identity: identity,
Logo: logo,
Website: website,
Contact: contact,
Description: description,
Expand All @@ -77,7 +75,6 @@ var _ = Describe("msg_server_create_funder.go", Ordered, func() {
Expect(funder.Address).To(Equal(i.ALICE))
Expect(funder.Moniker).To(Equal(moniker))
Expect(funder.Identity).To(Equal(identity))
Expect(funder.Logo).To(Equal(logo))
Expect(funder.Website).To(Equal(website))
Expect(funder.Contact).To(Equal(contact))
Expect(funder.Description).To(Equal(description))
Expand Down
2 changes: 0 additions & 2 deletions x/funders/keeper/msg_server_update_funder.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ func (k msgServer) UpdateFunder(goCtx context.Context, msg *types.MsgUpdateFunde
Address: msg.Creator,
Moniker: msg.Moniker,
Identity: msg.Identity,
Logo: msg.Logo,
Website: msg.Website,
Contact: msg.Contact,
Description: msg.Description,
Expand All @@ -34,7 +33,6 @@ func (k msgServer) UpdateFunder(goCtx context.Context, msg *types.MsgUpdateFunde
Address: msg.Creator,
Moniker: msg.Moniker,
Identity: msg.Identity,
Logo: msg.Logo,
Website: msg.Website,
Contact: msg.Contact,
Description: msg.Description,
Expand Down
Loading

0 comments on commit 64d85e6

Please sign in to comment.