Prathamesh Musale
52e8d322fa
Some checks failed
Integration Tests / test-integration (push) Successful in 2m29s
E2E Tests / test-e2e (push) Successful in 4m6s
Unit Tests / test-unit (push) Successful in 2m3s
SDK Tests / sdk_tests_authority_auctions (push) Failing after 6m31s
SDK Tests / sdk_tests_nameservice_expiry (push) Successful in 9m11s
SDK Tests / sdk_tests (push) Failing after 10m14s
Part of [Service provider auctions](https://www.notion.so/Service-provider-auctions-a7b63697d818479493ec145ea6ea3c1c) - Add a new type of auction for service providers - Add a command to release provider auction funds - Remove unused auction module params Co-authored-by: IshaVenikar <ishavenikar7@gmail.com> Co-authored-by: Isha Venikar <ishavenikar@Ishas-MacBook-Air.local> Reviewed-on: #59 Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com> Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
270 lines
9.8 KiB
Go
270 lines
9.8 KiB
Go
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
|
// versions:
|
|
// - protoc-gen-go-grpc v1.3.0
|
|
// - protoc (unknown)
|
|
// source: cerc/auction/v1/tx.proto
|
|
|
|
package auctionv1
|
|
|
|
import (
|
|
context "context"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
)
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
// Requires gRPC-Go v1.32.0 or later.
|
|
const _ = grpc.SupportPackageIsVersion7
|
|
|
|
const (
|
|
Msg_CreateAuction_FullMethodName = "/cerc.auction.v1.Msg/CreateAuction"
|
|
Msg_CommitBid_FullMethodName = "/cerc.auction.v1.Msg/CommitBid"
|
|
Msg_RevealBid_FullMethodName = "/cerc.auction.v1.Msg/RevealBid"
|
|
Msg_UpdateParams_FullMethodName = "/cerc.auction.v1.Msg/UpdateParams"
|
|
Msg_ReleaseFunds_FullMethodName = "/cerc.auction.v1.Msg/ReleaseFunds"
|
|
)
|
|
|
|
// MsgClient is the client API for Msg service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
|
type MsgClient interface {
|
|
// CreateAuction is the command for creating an auction
|
|
CreateAuction(ctx context.Context, in *MsgCreateAuction, opts ...grpc.CallOption) (*MsgCreateAuctionResponse, error)
|
|
// CommitBid is the command for committing a bid
|
|
CommitBid(ctx context.Context, in *MsgCommitBid, opts ...grpc.CallOption) (*MsgCommitBidResponse, error)
|
|
// RevealBid is the command for revealing a bid
|
|
RevealBid(ctx context.Context, in *MsgRevealBid, opts ...grpc.CallOption) (*MsgRevealBidResponse, error)
|
|
// UpdateParams defines an operation for updating the x/staking module
|
|
// parameters.
|
|
UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
|
|
// ReleaseFunds is the command for paying the winners of provider auctions
|
|
ReleaseFunds(ctx context.Context, in *MsgReleaseFunds, opts ...grpc.CallOption) (*MsgReleaseFundsResponse, error)
|
|
}
|
|
|
|
type msgClient struct {
|
|
cc grpc.ClientConnInterface
|
|
}
|
|
|
|
func NewMsgClient(cc grpc.ClientConnInterface) MsgClient {
|
|
return &msgClient{cc}
|
|
}
|
|
|
|
func (c *msgClient) CreateAuction(ctx context.Context, in *MsgCreateAuction, opts ...grpc.CallOption) (*MsgCreateAuctionResponse, error) {
|
|
out := new(MsgCreateAuctionResponse)
|
|
err := c.cc.Invoke(ctx, Msg_CreateAuction_FullMethodName, in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *msgClient) CommitBid(ctx context.Context, in *MsgCommitBid, opts ...grpc.CallOption) (*MsgCommitBidResponse, error) {
|
|
out := new(MsgCommitBidResponse)
|
|
err := c.cc.Invoke(ctx, Msg_CommitBid_FullMethodName, in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *msgClient) RevealBid(ctx context.Context, in *MsgRevealBid, opts ...grpc.CallOption) (*MsgRevealBidResponse, error) {
|
|
out := new(MsgRevealBidResponse)
|
|
err := c.cc.Invoke(ctx, Msg_RevealBid_FullMethodName, in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) {
|
|
out := new(MsgUpdateParamsResponse)
|
|
err := c.cc.Invoke(ctx, Msg_UpdateParams_FullMethodName, in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *msgClient) ReleaseFunds(ctx context.Context, in *MsgReleaseFunds, opts ...grpc.CallOption) (*MsgReleaseFundsResponse, error) {
|
|
out := new(MsgReleaseFundsResponse)
|
|
err := c.cc.Invoke(ctx, Msg_ReleaseFunds_FullMethodName, in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// MsgServer is the server API for Msg service.
|
|
// All implementations must embed UnimplementedMsgServer
|
|
// for forward compatibility
|
|
type MsgServer interface {
|
|
// CreateAuction is the command for creating an auction
|
|
CreateAuction(context.Context, *MsgCreateAuction) (*MsgCreateAuctionResponse, error)
|
|
// CommitBid is the command for committing a bid
|
|
CommitBid(context.Context, *MsgCommitBid) (*MsgCommitBidResponse, error)
|
|
// RevealBid is the command for revealing a bid
|
|
RevealBid(context.Context, *MsgRevealBid) (*MsgRevealBidResponse, error)
|
|
// UpdateParams defines an operation for updating the x/staking module
|
|
// parameters.
|
|
UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
|
|
// ReleaseFunds is the command for paying the winners of provider auctions
|
|
ReleaseFunds(context.Context, *MsgReleaseFunds) (*MsgReleaseFundsResponse, error)
|
|
mustEmbedUnimplementedMsgServer()
|
|
}
|
|
|
|
// UnimplementedMsgServer must be embedded to have forward compatible implementations.
|
|
type UnimplementedMsgServer struct {
|
|
}
|
|
|
|
func (UnimplementedMsgServer) CreateAuction(context.Context, *MsgCreateAuction) (*MsgCreateAuctionResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method CreateAuction not implemented")
|
|
}
|
|
func (UnimplementedMsgServer) CommitBid(context.Context, *MsgCommitBid) (*MsgCommitBidResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method CommitBid not implemented")
|
|
}
|
|
func (UnimplementedMsgServer) RevealBid(context.Context, *MsgRevealBid) (*MsgRevealBidResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method RevealBid not implemented")
|
|
}
|
|
func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented")
|
|
}
|
|
func (UnimplementedMsgServer) ReleaseFunds(context.Context, *MsgReleaseFunds) (*MsgReleaseFundsResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ReleaseFunds not implemented")
|
|
}
|
|
func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {}
|
|
|
|
// UnsafeMsgServer may be embedded to opt out of forward compatibility for this service.
|
|
// Use of this interface is not recommended, as added methods to MsgServer will
|
|
// result in compilation errors.
|
|
type UnsafeMsgServer interface {
|
|
mustEmbedUnimplementedMsgServer()
|
|
}
|
|
|
|
func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer) {
|
|
s.RegisterService(&Msg_ServiceDesc, srv)
|
|
}
|
|
|
|
func _Msg_CreateAuction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(MsgCreateAuction)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MsgServer).CreateAuction(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Msg_CreateAuction_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MsgServer).CreateAuction(ctx, req.(*MsgCreateAuction))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Msg_CommitBid_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(MsgCommitBid)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MsgServer).CommitBid(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Msg_CommitBid_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MsgServer).CommitBid(ctx, req.(*MsgCommitBid))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Msg_RevealBid_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(MsgRevealBid)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MsgServer).RevealBid(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Msg_RevealBid_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MsgServer).RevealBid(ctx, req.(*MsgRevealBid))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(MsgUpdateParams)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MsgServer).UpdateParams(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Msg_UpdateParams_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Msg_ReleaseFunds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(MsgReleaseFunds)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MsgServer).ReleaseFunds(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Msg_ReleaseFunds_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MsgServer).ReleaseFunds(ctx, req.(*MsgReleaseFunds))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
// Msg_ServiceDesc is the grpc.ServiceDesc for Msg service.
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
// and not to be introspected or modified (even as a copy)
|
|
var Msg_ServiceDesc = grpc.ServiceDesc{
|
|
ServiceName: "cerc.auction.v1.Msg",
|
|
HandlerType: (*MsgServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "CreateAuction",
|
|
Handler: _Msg_CreateAuction_Handler,
|
|
},
|
|
{
|
|
MethodName: "CommitBid",
|
|
Handler: _Msg_CommitBid_Handler,
|
|
},
|
|
{
|
|
MethodName: "RevealBid",
|
|
Handler: _Msg_RevealBid_Handler,
|
|
},
|
|
{
|
|
MethodName: "UpdateParams",
|
|
Handler: _Msg_UpdateParams_Handler,
|
|
},
|
|
{
|
|
MethodName: "ReleaseFunds",
|
|
Handler: _Msg_ReleaseFunds_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "cerc/auction/v1/tx.proto",
|
|
}
|