Skip to content

Commit

Permalink
feat: add proto message info to ObjectDetail type so that it can be m…
Browse files Browse the repository at this point in the history
…arshalled into json by using jsonpb
  • Loading branch information
clydemeng committed Dec 11, 2023
1 parent c74e254 commit 31f6ba4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:

env:
GreenfieldTag: develop
GreenfieldStorageProviderTag: feat-add-tags
GreenfieldStorageProviderTag: develop
GOPRIVATE: github.com/bnb-chain
GH_ACCESS_TOKEN: ${{ secrets.GH_TOKEN }}
MYSQL_USER: root
Expand Down
5 changes: 5 additions & 0 deletions types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"time"

sdk "github.com/cosmos/cosmos-sdk/types"
proto "github.com/cosmos/gogoproto/proto"

spTypes "github.com/bnb-chain/greenfield/x/sp/types"
storagetypes "github.com/bnb-chain/greenfield/x/storage/types"
Expand All @@ -32,6 +33,10 @@ type ObjectDetail struct {
GlobalVirtualGroup *types.GlobalVirtualGroup `protobuf:"bytes,2,opt,name=global_virtual_group" json:"global_virtual_group,omitempty"`
}

func (m *ObjectDetail) ProtoMessage() {}
func (m *ObjectDetail) Reset() { *m = ObjectDetail{} }
func (m *ObjectDetail) String() string { return proto.CompactTextString(m) }

// QueryPieceInfo indicates the challenge or recovery object piece info.
// If it is primary sp, the RedundancyIndex value should be -1, else it indicates the index of secondary sp.
type QueryPieceInfo struct {
Expand Down

0 comments on commit 31f6ba4

Please sign in to comment.