Add e2e tests for gRPC requests and CLI commands #13
@ -608,7 +608,6 @@ type GenesisState struct {
|
|||||||
// params defines all the parameters of the module.
|
// params defines all the parameters of the module.
|
||||||
Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
|
Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
|
||||||
// bonds defines all the bonds
|
// bonds defines all the bonds
|
||||||
// TODO: Add nullable = false ?
|
|
||||||
Bonds []*Bond `protobuf:"bytes,2,rep,name=bonds,proto3" json:"bonds,omitempty"`
|
Bonds []*Bond `protobuf:"bytes,2,rep,name=bonds,proto3" json:"bonds,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -123,8 +123,6 @@ message QueryAuctionsByBidderRequest {
|
|||||||
message QueryAuctionsByBidderResponse {
|
message QueryAuctionsByBidderResponse {
|
||||||
// List of auctions
|
// List of auctions
|
||||||
Auctions auctions = 1;
|
Auctions auctions = 1;
|
||||||
|
|
||||||
// TODO: Add pagination?
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// AuctionsByOwnerRequest is the format for querying all auctions created by an owner
|
// AuctionsByOwnerRequest is the format for querying all auctions created by an owner
|
||||||
|
@ -13,6 +13,5 @@ message GenesisState {
|
|||||||
Params params = 1 [(gogoproto.nullable) = false];
|
Params params = 1 [(gogoproto.nullable) = false];
|
||||||
|
|
||||||
// bonds defines all the bonds
|
// bonds defines all the bonds
|
||||||
// TODO: Add nullable = false ?
|
|
||||||
repeated Bond bonds = 2 [(gogoproto.moretags) = "json:\"bonds\" yaml:\"bonds\""];
|
repeated Bond bonds = 2 [(gogoproto.moretags) = "json:\"bonds\" yaml:\"bonds\""];
|
||||||
}
|
}
|
||||||
|
@ -222,7 +222,7 @@ func (ets *E2ETestSuite) TestGetAuctionsByOwnerGrpc() {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"valid request to get auctions by owner",
|
"valid request to get auctions by owner",
|
||||||
fmt.Sprintf("%s/%s", reqURL, randomOwnerAddress), // TODO: use ownerAddress?
|
fmt.Sprintf("%s/%s", reqURL, ownerAddress),
|
||||||
"",
|
"",
|
||||||
false,
|
false,
|
||||||
},
|
},
|
||||||
|
@ -28,7 +28,6 @@ type GenesisState struct {
|
|||||||
// params defines all the parameters of the module.
|
// params defines all the parameters of the module.
|
||||||
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
|
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
|
||||||
// bonds defines all the bonds
|
// bonds defines all the bonds
|
||||||
// TODO: Add nullable = false ?
|
|
||||||
Bonds []*Bond `protobuf:"bytes,2,rep,name=bonds,proto3" json:"bonds,omitempty" json:"bonds" yaml:"bonds"`
|
Bonds []*Bond `protobuf:"bytes,2,rep,name=bonds,proto3" json:"bonds,omitempty" json:"bonds" yaml:"bonds"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user