diff --git a/.gitignore b/.gitignore index d22d37ce..ed2a18f5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -*.pb.go generated /arkeod .arkeo/ diff --git a/api/arkeo/arkeo/query_grpc.pb.go b/api/arkeo/arkeo/query_grpc.pb.go new file mode 100644 index 00000000..d22d2d4b --- /dev/null +++ b/api/arkeo/arkeo/query_grpc.pb.go @@ -0,0 +1,285 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package arkeo + +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 + +// QueryClient is the client API for Query 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 QueryClient interface { + // Parameters queries the parameters of the module. + Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) + FetchProvider(ctx context.Context, in *QueryFetchProviderRequest, opts ...grpc.CallOption) (*QueryFetchProviderResponse, error) + ProviderAll(ctx context.Context, in *QueryAllProviderRequest, opts ...grpc.CallOption) (*QueryAllProviderResponse, error) + FetchContract(ctx context.Context, in *QueryFetchContractRequest, opts ...grpc.CallOption) (*QueryFetchContractResponse, error) + ContractAll(ctx context.Context, in *QueryAllContractRequest, opts ...grpc.CallOption) (*QueryAllContractResponse, error) + // Queries an active contract by spender, provider and service. + ActiveContract(ctx context.Context, in *QueryActiveContractRequest, opts ...grpc.CallOption) (*QueryActiveContractResponse, error) +} + +type queryClient struct { + cc grpc.ClientConnInterface +} + +func NewQueryClient(cc grpc.ClientConnInterface) QueryClient { + return &queryClient{cc} +} + +func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { + out := new(QueryParamsResponse) + err := c.cc.Invoke(ctx, "/arkeo.arkeo.Query/Params", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) FetchProvider(ctx context.Context, in *QueryFetchProviderRequest, opts ...grpc.CallOption) (*QueryFetchProviderResponse, error) { + out := new(QueryFetchProviderResponse) + err := c.cc.Invoke(ctx, "/arkeo.arkeo.Query/FetchProvider", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) ProviderAll(ctx context.Context, in *QueryAllProviderRequest, opts ...grpc.CallOption) (*QueryAllProviderResponse, error) { + out := new(QueryAllProviderResponse) + err := c.cc.Invoke(ctx, "/arkeo.arkeo.Query/ProviderAll", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) FetchContract(ctx context.Context, in *QueryFetchContractRequest, opts ...grpc.CallOption) (*QueryFetchContractResponse, error) { + out := new(QueryFetchContractResponse) + err := c.cc.Invoke(ctx, "/arkeo.arkeo.Query/FetchContract", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) ContractAll(ctx context.Context, in *QueryAllContractRequest, opts ...grpc.CallOption) (*QueryAllContractResponse, error) { + out := new(QueryAllContractResponse) + err := c.cc.Invoke(ctx, "/arkeo.arkeo.Query/ContractAll", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) ActiveContract(ctx context.Context, in *QueryActiveContractRequest, opts ...grpc.CallOption) (*QueryActiveContractResponse, error) { + out := new(QueryActiveContractResponse) + err := c.cc.Invoke(ctx, "/arkeo.arkeo.Query/ActiveContract", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServer is the server API for Query service. +// All implementations must embed UnimplementedQueryServer +// for forward compatibility +type QueryServer interface { + // Parameters queries the parameters of the module. + Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) + FetchProvider(context.Context, *QueryFetchProviderRequest) (*QueryFetchProviderResponse, error) + ProviderAll(context.Context, *QueryAllProviderRequest) (*QueryAllProviderResponse, error) + FetchContract(context.Context, *QueryFetchContractRequest) (*QueryFetchContractResponse, error) + ContractAll(context.Context, *QueryAllContractRequest) (*QueryAllContractResponse, error) + // Queries an active contract by spender, provider and service. + ActiveContract(context.Context, *QueryActiveContractRequest) (*QueryActiveContractResponse, error) + mustEmbedUnimplementedQueryServer() +} + +// UnimplementedQueryServer must be embedded to have forward compatible implementations. +type UnimplementedQueryServer struct { +} + +func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") +} +func (UnimplementedQueryServer) FetchProvider(context.Context, *QueryFetchProviderRequest) (*QueryFetchProviderResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FetchProvider not implemented") +} +func (UnimplementedQueryServer) ProviderAll(context.Context, *QueryAllProviderRequest) (*QueryAllProviderResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ProviderAll not implemented") +} +func (UnimplementedQueryServer) FetchContract(context.Context, *QueryFetchContractRequest) (*QueryFetchContractResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FetchContract not implemented") +} +func (UnimplementedQueryServer) ContractAll(context.Context, *QueryAllContractRequest) (*QueryAllContractResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ContractAll not implemented") +} +func (UnimplementedQueryServer) ActiveContract(context.Context, *QueryActiveContractRequest) (*QueryActiveContractResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ActiveContract not implemented") +} +func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} + +// UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to QueryServer will +// result in compilation errors. +type UnsafeQueryServer interface { + mustEmbedUnimplementedQueryServer() +} + +func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer) { + s.RegisterService(&Query_ServiceDesc, srv) +} + +func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryParamsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Params(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/arkeo.arkeo.Query/Params", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_FetchProvider_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryFetchProviderRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).FetchProvider(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/arkeo.arkeo.Query/FetchProvider", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).FetchProvider(ctx, req.(*QueryFetchProviderRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_ProviderAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllProviderRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).ProviderAll(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/arkeo.arkeo.Query/ProviderAll", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).ProviderAll(ctx, req.(*QueryAllProviderRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_FetchContract_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryFetchContractRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).FetchContract(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/arkeo.arkeo.Query/FetchContract", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).FetchContract(ctx, req.(*QueryFetchContractRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_ContractAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllContractRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).ContractAll(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/arkeo.arkeo.Query/ContractAll", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).ContractAll(ctx, req.(*QueryAllContractRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_ActiveContract_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryActiveContractRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).ActiveContract(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/arkeo.arkeo.Query/ActiveContract", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).ActiveContract(ctx, req.(*QueryActiveContractRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// Query_ServiceDesc is the grpc.ServiceDesc for Query service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Query_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "arkeo.arkeo.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Params", + Handler: _Query_Params_Handler, + }, + { + MethodName: "FetchProvider", + Handler: _Query_FetchProvider_Handler, + }, + { + MethodName: "ProviderAll", + Handler: _Query_ProviderAll_Handler, + }, + { + MethodName: "FetchContract", + Handler: _Query_FetchContract_Handler, + }, + { + MethodName: "ContractAll", + Handler: _Query_ContractAll_Handler, + }, + { + MethodName: "ActiveContract", + Handler: _Query_ActiveContract_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "arkeo/arkeo/query.proto", +} diff --git a/api/arkeo/arkeo/tx_grpc.pb.go b/api/arkeo/arkeo/tx_grpc.pb.go new file mode 100644 index 00000000..a7a635fb --- /dev/null +++ b/api/arkeo/arkeo/tx_grpc.pb.go @@ -0,0 +1,283 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package arkeo + +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 + +// 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 { + BondProvider(ctx context.Context, in *MsgBondProvider, opts ...grpc.CallOption) (*MsgBondProviderResponse, error) + ModProvider(ctx context.Context, in *MsgModProvider, opts ...grpc.CallOption) (*MsgModProviderResponse, error) + OpenContract(ctx context.Context, in *MsgOpenContract, opts ...grpc.CallOption) (*MsgOpenContractResponse, error) + CloseContract(ctx context.Context, in *MsgCloseContract, opts ...grpc.CallOption) (*MsgCloseContractResponse, error) + ClaimContractIncome(ctx context.Context, in *MsgClaimContractIncome, opts ...grpc.CallOption) (*MsgClaimContractIncomeResponse, error) + // this line is used by starport scaffolding # proto/tx/rpc + SetVersion(ctx context.Context, in *MsgSetVersion, opts ...grpc.CallOption) (*MsgSetVersionResponse, error) +} + +type msgClient struct { + cc grpc.ClientConnInterface +} + +func NewMsgClient(cc grpc.ClientConnInterface) MsgClient { + return &msgClient{cc} +} + +func (c *msgClient) BondProvider(ctx context.Context, in *MsgBondProvider, opts ...grpc.CallOption) (*MsgBondProviderResponse, error) { + out := new(MsgBondProviderResponse) + err := c.cc.Invoke(ctx, "/arkeo.arkeo.Msg/BondProvider", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) ModProvider(ctx context.Context, in *MsgModProvider, opts ...grpc.CallOption) (*MsgModProviderResponse, error) { + out := new(MsgModProviderResponse) + err := c.cc.Invoke(ctx, "/arkeo.arkeo.Msg/ModProvider", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) OpenContract(ctx context.Context, in *MsgOpenContract, opts ...grpc.CallOption) (*MsgOpenContractResponse, error) { + out := new(MsgOpenContractResponse) + err := c.cc.Invoke(ctx, "/arkeo.arkeo.Msg/OpenContract", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) CloseContract(ctx context.Context, in *MsgCloseContract, opts ...grpc.CallOption) (*MsgCloseContractResponse, error) { + out := new(MsgCloseContractResponse) + err := c.cc.Invoke(ctx, "/arkeo.arkeo.Msg/CloseContract", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) ClaimContractIncome(ctx context.Context, in *MsgClaimContractIncome, opts ...grpc.CallOption) (*MsgClaimContractIncomeResponse, error) { + out := new(MsgClaimContractIncomeResponse) + err := c.cc.Invoke(ctx, "/arkeo.arkeo.Msg/ClaimContractIncome", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) SetVersion(ctx context.Context, in *MsgSetVersion, opts ...grpc.CallOption) (*MsgSetVersionResponse, error) { + out := new(MsgSetVersionResponse) + err := c.cc.Invoke(ctx, "/arkeo.arkeo.Msg/SetVersion", 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 { + BondProvider(context.Context, *MsgBondProvider) (*MsgBondProviderResponse, error) + ModProvider(context.Context, *MsgModProvider) (*MsgModProviderResponse, error) + OpenContract(context.Context, *MsgOpenContract) (*MsgOpenContractResponse, error) + CloseContract(context.Context, *MsgCloseContract) (*MsgCloseContractResponse, error) + ClaimContractIncome(context.Context, *MsgClaimContractIncome) (*MsgClaimContractIncomeResponse, error) + // this line is used by starport scaffolding # proto/tx/rpc + SetVersion(context.Context, *MsgSetVersion) (*MsgSetVersionResponse, error) + mustEmbedUnimplementedMsgServer() +} + +// UnimplementedMsgServer must be embedded to have forward compatible implementations. +type UnimplementedMsgServer struct { +} + +func (UnimplementedMsgServer) BondProvider(context.Context, *MsgBondProvider) (*MsgBondProviderResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BondProvider not implemented") +} +func (UnimplementedMsgServer) ModProvider(context.Context, *MsgModProvider) (*MsgModProviderResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ModProvider not implemented") +} +func (UnimplementedMsgServer) OpenContract(context.Context, *MsgOpenContract) (*MsgOpenContractResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method OpenContract not implemented") +} +func (UnimplementedMsgServer) CloseContract(context.Context, *MsgCloseContract) (*MsgCloseContractResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CloseContract not implemented") +} +func (UnimplementedMsgServer) ClaimContractIncome(context.Context, *MsgClaimContractIncome) (*MsgClaimContractIncomeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ClaimContractIncome not implemented") +} +func (UnimplementedMsgServer) SetVersion(context.Context, *MsgSetVersion) (*MsgSetVersionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetVersion 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_BondProvider_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgBondProvider) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).BondProvider(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/arkeo.arkeo.Msg/BondProvider", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).BondProvider(ctx, req.(*MsgBondProvider)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_ModProvider_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgModProvider) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).ModProvider(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/arkeo.arkeo.Msg/ModProvider", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).ModProvider(ctx, req.(*MsgModProvider)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_OpenContract_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgOpenContract) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).OpenContract(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/arkeo.arkeo.Msg/OpenContract", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).OpenContract(ctx, req.(*MsgOpenContract)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_CloseContract_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCloseContract) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).CloseContract(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/arkeo.arkeo.Msg/CloseContract", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CloseContract(ctx, req.(*MsgCloseContract)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_ClaimContractIncome_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgClaimContractIncome) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).ClaimContractIncome(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/arkeo.arkeo.Msg/ClaimContractIncome", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).ClaimContractIncome(ctx, req.(*MsgClaimContractIncome)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SetVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetVersion) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SetVersion(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/arkeo.arkeo.Msg/SetVersion", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetVersion(ctx, req.(*MsgSetVersion)) + } + 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: "arkeo.arkeo.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "BondProvider", + Handler: _Msg_BondProvider_Handler, + }, + { + MethodName: "ModProvider", + Handler: _Msg_ModProvider_Handler, + }, + { + MethodName: "OpenContract", + Handler: _Msg_OpenContract_Handler, + }, + { + MethodName: "CloseContract", + Handler: _Msg_CloseContract_Handler, + }, + { + MethodName: "ClaimContractIncome", + Handler: _Msg_ClaimContractIncome_Handler, + }, + { + MethodName: "SetVersion", + Handler: _Msg_SetVersion_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "arkeo/arkeo/tx.proto", +} diff --git a/api/arkeo/claim/query_grpc.pb.go b/api/arkeo/claim/query_grpc.pb.go new file mode 100644 index 00000000..196572b3 --- /dev/null +++ b/api/arkeo/claim/query_grpc.pb.go @@ -0,0 +1,141 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package claim + +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 + +// QueryClient is the client API for Query 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 QueryClient interface { + // Parameters queries the parameters of the module. + Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) + // Queries a list of ClaimRecord items. + ClaimRecord(ctx context.Context, in *QueryClaimRecordRequest, opts ...grpc.CallOption) (*QueryClaimRecordResponse, error) +} + +type queryClient struct { + cc grpc.ClientConnInterface +} + +func NewQueryClient(cc grpc.ClientConnInterface) QueryClient { + return &queryClient{cc} +} + +func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { + out := new(QueryParamsResponse) + err := c.cc.Invoke(ctx, "/arkeo.claim.Query/Params", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) ClaimRecord(ctx context.Context, in *QueryClaimRecordRequest, opts ...grpc.CallOption) (*QueryClaimRecordResponse, error) { + out := new(QueryClaimRecordResponse) + err := c.cc.Invoke(ctx, "/arkeo.claim.Query/ClaimRecord", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServer is the server API for Query service. +// All implementations must embed UnimplementedQueryServer +// for forward compatibility +type QueryServer interface { + // Parameters queries the parameters of the module. + Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) + // Queries a list of ClaimRecord items. + ClaimRecord(context.Context, *QueryClaimRecordRequest) (*QueryClaimRecordResponse, error) + mustEmbedUnimplementedQueryServer() +} + +// UnimplementedQueryServer must be embedded to have forward compatible implementations. +type UnimplementedQueryServer struct { +} + +func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") +} +func (UnimplementedQueryServer) ClaimRecord(context.Context, *QueryClaimRecordRequest) (*QueryClaimRecordResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ClaimRecord not implemented") +} +func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} + +// UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to QueryServer will +// result in compilation errors. +type UnsafeQueryServer interface { + mustEmbedUnimplementedQueryServer() +} + +func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer) { + s.RegisterService(&Query_ServiceDesc, srv) +} + +func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryParamsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Params(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/arkeo.claim.Query/Params", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_ClaimRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryClaimRecordRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).ClaimRecord(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/arkeo.claim.Query/ClaimRecord", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).ClaimRecord(ctx, req.(*QueryClaimRecordRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// Query_ServiceDesc is the grpc.ServiceDesc for Query service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Query_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "arkeo.claim.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Params", + Handler: _Query_Params_Handler, + }, + { + MethodName: "ClaimRecord", + Handler: _Query_ClaimRecord_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "arkeo/claim/query.proto", +} diff --git a/api/arkeo/claim/tx_grpc.pb.go b/api/arkeo/claim/tx_grpc.pb.go new file mode 100644 index 00000000..4c65c741 --- /dev/null +++ b/api/arkeo/claim/tx_grpc.pb.go @@ -0,0 +1,209 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package claim + +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 + +// 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 { + ClaimEth(ctx context.Context, in *MsgClaimEth, opts ...grpc.CallOption) (*MsgClaimEthResponse, error) + ClaimArkeo(ctx context.Context, in *MsgClaimArkeo, opts ...grpc.CallOption) (*MsgClaimArkeoResponse, error) + TransferClaim(ctx context.Context, in *MsgTransferClaim, opts ...grpc.CallOption) (*MsgTransferClaimResponse, error) + AddClaim(ctx context.Context, in *MsgAddClaim, opts ...grpc.CallOption) (*MsgAddClaimResponse, error) +} + +type msgClient struct { + cc grpc.ClientConnInterface +} + +func NewMsgClient(cc grpc.ClientConnInterface) MsgClient { + return &msgClient{cc} +} + +func (c *msgClient) ClaimEth(ctx context.Context, in *MsgClaimEth, opts ...grpc.CallOption) (*MsgClaimEthResponse, error) { + out := new(MsgClaimEthResponse) + err := c.cc.Invoke(ctx, "/arkeo.claim.Msg/ClaimEth", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) ClaimArkeo(ctx context.Context, in *MsgClaimArkeo, opts ...grpc.CallOption) (*MsgClaimArkeoResponse, error) { + out := new(MsgClaimArkeoResponse) + err := c.cc.Invoke(ctx, "/arkeo.claim.Msg/ClaimArkeo", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) TransferClaim(ctx context.Context, in *MsgTransferClaim, opts ...grpc.CallOption) (*MsgTransferClaimResponse, error) { + out := new(MsgTransferClaimResponse) + err := c.cc.Invoke(ctx, "/arkeo.claim.Msg/TransferClaim", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) AddClaim(ctx context.Context, in *MsgAddClaim, opts ...grpc.CallOption) (*MsgAddClaimResponse, error) { + out := new(MsgAddClaimResponse) + err := c.cc.Invoke(ctx, "/arkeo.claim.Msg/AddClaim", 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 { + ClaimEth(context.Context, *MsgClaimEth) (*MsgClaimEthResponse, error) + ClaimArkeo(context.Context, *MsgClaimArkeo) (*MsgClaimArkeoResponse, error) + TransferClaim(context.Context, *MsgTransferClaim) (*MsgTransferClaimResponse, error) + AddClaim(context.Context, *MsgAddClaim) (*MsgAddClaimResponse, error) + mustEmbedUnimplementedMsgServer() +} + +// UnimplementedMsgServer must be embedded to have forward compatible implementations. +type UnimplementedMsgServer struct { +} + +func (UnimplementedMsgServer) ClaimEth(context.Context, *MsgClaimEth) (*MsgClaimEthResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ClaimEth not implemented") +} +func (UnimplementedMsgServer) ClaimArkeo(context.Context, *MsgClaimArkeo) (*MsgClaimArkeoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ClaimArkeo not implemented") +} +func (UnimplementedMsgServer) TransferClaim(context.Context, *MsgTransferClaim) (*MsgTransferClaimResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TransferClaim not implemented") +} +func (UnimplementedMsgServer) AddClaim(context.Context, *MsgAddClaim) (*MsgAddClaimResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddClaim 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_ClaimEth_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgClaimEth) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).ClaimEth(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/arkeo.claim.Msg/ClaimEth", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).ClaimEth(ctx, req.(*MsgClaimEth)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_ClaimArkeo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgClaimArkeo) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).ClaimArkeo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/arkeo.claim.Msg/ClaimArkeo", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).ClaimArkeo(ctx, req.(*MsgClaimArkeo)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_TransferClaim_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgTransferClaim) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).TransferClaim(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/arkeo.claim.Msg/TransferClaim", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).TransferClaim(ctx, req.(*MsgTransferClaim)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_AddClaim_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgAddClaim) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).AddClaim(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/arkeo.claim.Msg/AddClaim", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).AddClaim(ctx, req.(*MsgAddClaim)) + } + 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: "arkeo.claim.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ClaimEth", + Handler: _Msg_ClaimEth_Handler, + }, + { + MethodName: "ClaimArkeo", + Handler: _Msg_ClaimArkeo_Handler, + }, + { + MethodName: "TransferClaim", + Handler: _Msg_TransferClaim_Handler, + }, + { + MethodName: "AddClaim", + Handler: _Msg_AddClaim_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "arkeo/claim/tx.proto", +} diff --git a/x/arkeo/types/events.pb.go b/x/arkeo/types/events.pb.go new file mode 100644 index 00000000..d5bb82b5 --- /dev/null +++ b/x/arkeo/types/events.pb.go @@ -0,0 +1,3043 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: arkeo/arkeo/events.proto + +package types + +import ( + cosmossdk_io_math "cosmossdk.io/math" + fmt "fmt" + github_com_arkeonetwork_arkeo_common "github.com/arkeonetwork/arkeo/common" + _ "github.com/cosmos/cosmos-proto" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type EventBondProvider struct { + Provider github_com_arkeonetwork_arkeo_common.PubKey `protobuf:"bytes,1,opt,name=provider,proto3,casttype=github.com/arkeonetwork/arkeo/common.PubKey" json:"provider,omitempty"` + Service string `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"` + BondRel cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=bond_rel,json=bondRel,proto3,customtype=cosmossdk.io/math.Int" json:"bond_rel"` + BondAbs cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=bond_abs,json=bondAbs,proto3,customtype=cosmossdk.io/math.Int" json:"bond_abs"` +} + +func (m *EventBondProvider) Reset() { *m = EventBondProvider{} } +func (m *EventBondProvider) String() string { return proto.CompactTextString(m) } +func (*EventBondProvider) ProtoMessage() {} +func (*EventBondProvider) Descriptor() ([]byte, []int) { + return fileDescriptor_39b4417094f69f41, []int{0} +} +func (m *EventBondProvider) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventBondProvider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventBondProvider.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventBondProvider) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventBondProvider.Merge(m, src) +} +func (m *EventBondProvider) XXX_Size() int { + return m.Size() +} +func (m *EventBondProvider) XXX_DiscardUnknown() { + xxx_messageInfo_EventBondProvider.DiscardUnknown(m) +} + +var xxx_messageInfo_EventBondProvider proto.InternalMessageInfo + +func (m *EventBondProvider) GetProvider() github_com_arkeonetwork_arkeo_common.PubKey { + if m != nil { + return m.Provider + } + return nil +} + +func (m *EventBondProvider) GetService() string { + if m != nil { + return m.Service + } + return "" +} + +type EventModProvider struct { + Creator github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=creator,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"creator,omitempty"` + Provider github_com_arkeonetwork_arkeo_common.PubKey `protobuf:"bytes,2,opt,name=provider,proto3,casttype=github.com/arkeonetwork/arkeo/common.PubKey" json:"provider,omitempty"` + Service string `protobuf:"bytes,3,opt,name=service,proto3" json:"service,omitempty"` + MetadataUri string `protobuf:"bytes,4,opt,name=metadata_uri,json=metadataUri,proto3" json:"metadata_uri,omitempty"` + MetadataNonce uint64 `protobuf:"varint,5,opt,name=metadata_nonce,json=metadataNonce,proto3" json:"metadata_nonce,omitempty"` + Status ProviderStatus `protobuf:"varint,6,opt,name=status,proto3,enum=arkeo.arkeo.ProviderStatus" json:"status,omitempty"` + MinContractDuration int64 `protobuf:"varint,7,opt,name=min_contract_duration,json=minContractDuration,proto3" json:"min_contract_duration,omitempty"` + MaxContractDuration int64 `protobuf:"varint,8,opt,name=max_contract_duration,json=maxContractDuration,proto3" json:"max_contract_duration,omitempty"` + SubscriptionRate []types.Coin `protobuf:"bytes,9,rep,name=subscription_rate,json=subscriptionRate,proto3" json:"subscription_rate"` + PayAsYouGoRate []types.Coin `protobuf:"bytes,10,rep,name=pay_as_you_go_rate,json=payAsYouGoRate,proto3" json:"pay_as_you_go_rate"` + Bond cosmossdk_io_math.Int `protobuf:"bytes,11,opt,name=bond,proto3,customtype=cosmossdk.io/math.Int" json:"bond"` + SettlementDuration int64 `protobuf:"varint,12,opt,name=settlement_duration,json=settlementDuration,proto3" json:"settlement_duration,omitempty"` +} + +func (m *EventModProvider) Reset() { *m = EventModProvider{} } +func (m *EventModProvider) String() string { return proto.CompactTextString(m) } +func (*EventModProvider) ProtoMessage() {} +func (*EventModProvider) Descriptor() ([]byte, []int) { + return fileDescriptor_39b4417094f69f41, []int{1} +} +func (m *EventModProvider) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventModProvider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventModProvider.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventModProvider) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventModProvider.Merge(m, src) +} +func (m *EventModProvider) XXX_Size() int { + return m.Size() +} +func (m *EventModProvider) XXX_DiscardUnknown() { + xxx_messageInfo_EventModProvider.DiscardUnknown(m) +} + +var xxx_messageInfo_EventModProvider proto.InternalMessageInfo + +func (m *EventModProvider) GetCreator() github_com_cosmos_cosmos_sdk_types.AccAddress { + if m != nil { + return m.Creator + } + return nil +} + +func (m *EventModProvider) GetProvider() github_com_arkeonetwork_arkeo_common.PubKey { + if m != nil { + return m.Provider + } + return nil +} + +func (m *EventModProvider) GetService() string { + if m != nil { + return m.Service + } + return "" +} + +func (m *EventModProvider) GetMetadataUri() string { + if m != nil { + return m.MetadataUri + } + return "" +} + +func (m *EventModProvider) GetMetadataNonce() uint64 { + if m != nil { + return m.MetadataNonce + } + return 0 +} + +func (m *EventModProvider) GetStatus() ProviderStatus { + if m != nil { + return m.Status + } + return ProviderStatus_OFFLINE +} + +func (m *EventModProvider) GetMinContractDuration() int64 { + if m != nil { + return m.MinContractDuration + } + return 0 +} + +func (m *EventModProvider) GetMaxContractDuration() int64 { + if m != nil { + return m.MaxContractDuration + } + return 0 +} + +func (m *EventModProvider) GetSubscriptionRate() []types.Coin { + if m != nil { + return m.SubscriptionRate + } + return nil +} + +func (m *EventModProvider) GetPayAsYouGoRate() []types.Coin { + if m != nil { + return m.PayAsYouGoRate + } + return nil +} + +func (m *EventModProvider) GetSettlementDuration() int64 { + if m != nil { + return m.SettlementDuration + } + return 0 +} + +type EventOpenContract struct { + Provider github_com_arkeonetwork_arkeo_common.PubKey `protobuf:"bytes,1,opt,name=provider,proto3,casttype=github.com/arkeonetwork/arkeo/common.PubKey" json:"provider,omitempty"` + ContractId uint64 `protobuf:"varint,2,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + Service string `protobuf:"bytes,3,opt,name=service,proto3" json:"service,omitempty"` + Client github_com_arkeonetwork_arkeo_common.PubKey `protobuf:"bytes,4,opt,name=client,proto3,casttype=github.com/arkeonetwork/arkeo/common.PubKey" json:"client,omitempty"` + Delegate github_com_arkeonetwork_arkeo_common.PubKey `protobuf:"bytes,5,opt,name=delegate,proto3,casttype=github.com/arkeonetwork/arkeo/common.PubKey" json:"delegate,omitempty"` + Type ContractType `protobuf:"varint,6,opt,name=type,proto3,enum=arkeo.arkeo.ContractType" json:"type,omitempty"` + Height int64 `protobuf:"varint,7,opt,name=height,proto3" json:"height,omitempty"` + Duration int64 `protobuf:"varint,8,opt,name=duration,proto3" json:"duration,omitempty"` + Rate types.Coin `protobuf:"bytes,9,opt,name=rate,proto3" json:"rate"` + OpenCost int64 `protobuf:"varint,10,opt,name=open_cost,json=openCost,proto3" json:"open_cost,omitempty"` + Deposit cosmossdk_io_math.Int `protobuf:"bytes,11,opt,name=deposit,proto3,customtype=cosmossdk.io/math.Int" json:"deposit"` + SettlementDuration int64 `protobuf:"varint,12,opt,name=settlement_duration,json=settlementDuration,proto3" json:"settlement_duration,omitempty"` + Authorization ContractAuthorization `protobuf:"varint,13,opt,name=authorization,proto3,enum=arkeo.arkeo.ContractAuthorization" json:"authorization,omitempty"` + QueriesPerMinute int64 `protobuf:"varint,14,opt,name=queries_per_minute,json=queriesPerMinute,proto3" json:"queries_per_minute,omitempty"` +} + +func (m *EventOpenContract) Reset() { *m = EventOpenContract{} } +func (m *EventOpenContract) String() string { return proto.CompactTextString(m) } +func (*EventOpenContract) ProtoMessage() {} +func (*EventOpenContract) Descriptor() ([]byte, []int) { + return fileDescriptor_39b4417094f69f41, []int{2} +} +func (m *EventOpenContract) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventOpenContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventOpenContract.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventOpenContract) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventOpenContract.Merge(m, src) +} +func (m *EventOpenContract) XXX_Size() int { + return m.Size() +} +func (m *EventOpenContract) XXX_DiscardUnknown() { + xxx_messageInfo_EventOpenContract.DiscardUnknown(m) +} + +var xxx_messageInfo_EventOpenContract proto.InternalMessageInfo + +func (m *EventOpenContract) GetProvider() github_com_arkeonetwork_arkeo_common.PubKey { + if m != nil { + return m.Provider + } + return nil +} + +func (m *EventOpenContract) GetContractId() uint64 { + if m != nil { + return m.ContractId + } + return 0 +} + +func (m *EventOpenContract) GetService() string { + if m != nil { + return m.Service + } + return "" +} + +func (m *EventOpenContract) GetClient() github_com_arkeonetwork_arkeo_common.PubKey { + if m != nil { + return m.Client + } + return nil +} + +func (m *EventOpenContract) GetDelegate() github_com_arkeonetwork_arkeo_common.PubKey { + if m != nil { + return m.Delegate + } + return nil +} + +func (m *EventOpenContract) GetType() ContractType { + if m != nil { + return m.Type + } + return ContractType_SUBSCRIPTION +} + +func (m *EventOpenContract) GetHeight() int64 { + if m != nil { + return m.Height + } + return 0 +} + +func (m *EventOpenContract) GetDuration() int64 { + if m != nil { + return m.Duration + } + return 0 +} + +func (m *EventOpenContract) GetRate() types.Coin { + if m != nil { + return m.Rate + } + return types.Coin{} +} + +func (m *EventOpenContract) GetOpenCost() int64 { + if m != nil { + return m.OpenCost + } + return 0 +} + +func (m *EventOpenContract) GetSettlementDuration() int64 { + if m != nil { + return m.SettlementDuration + } + return 0 +} + +func (m *EventOpenContract) GetAuthorization() ContractAuthorization { + if m != nil { + return m.Authorization + } + return ContractAuthorization_STRICT +} + +func (m *EventOpenContract) GetQueriesPerMinute() int64 { + if m != nil { + return m.QueriesPerMinute + } + return 0 +} + +type EventSettleContract struct { + Provider github_com_arkeonetwork_arkeo_common.PubKey `protobuf:"bytes,1,opt,name=provider,proto3,casttype=github.com/arkeonetwork/arkeo/common.PubKey" json:"provider,omitempty"` + ContractId uint64 `protobuf:"varint,2,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + Service string `protobuf:"bytes,3,opt,name=service,proto3" json:"service,omitempty"` + Client github_com_arkeonetwork_arkeo_common.PubKey `protobuf:"bytes,4,opt,name=client,proto3,casttype=github.com/arkeonetwork/arkeo/common.PubKey" json:"client,omitempty"` + Delegate github_com_arkeonetwork_arkeo_common.PubKey `protobuf:"bytes,5,opt,name=delegate,proto3,casttype=github.com/arkeonetwork/arkeo/common.PubKey" json:"delegate,omitempty"` + Type ContractType `protobuf:"varint,6,opt,name=type,proto3,enum=arkeo.arkeo.ContractType" json:"type,omitempty"` + Nonce int64 `protobuf:"varint,7,opt,name=nonce,proto3" json:"nonce,omitempty"` + Height int64 `protobuf:"varint,8,opt,name=height,proto3" json:"height,omitempty"` + Paid cosmossdk_io_math.Int `protobuf:"bytes,9,opt,name=paid,proto3,customtype=cosmossdk.io/math.Int" json:"paid"` + Reserve cosmossdk_io_math.Int `protobuf:"bytes,10,opt,name=reserve,proto3,customtype=cosmossdk.io/math.Int" json:"reserve"` +} + +func (m *EventSettleContract) Reset() { *m = EventSettleContract{} } +func (m *EventSettleContract) String() string { return proto.CompactTextString(m) } +func (*EventSettleContract) ProtoMessage() {} +func (*EventSettleContract) Descriptor() ([]byte, []int) { + return fileDescriptor_39b4417094f69f41, []int{3} +} +func (m *EventSettleContract) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventSettleContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventSettleContract.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventSettleContract) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventSettleContract.Merge(m, src) +} +func (m *EventSettleContract) XXX_Size() int { + return m.Size() +} +func (m *EventSettleContract) XXX_DiscardUnknown() { + xxx_messageInfo_EventSettleContract.DiscardUnknown(m) +} + +var xxx_messageInfo_EventSettleContract proto.InternalMessageInfo + +func (m *EventSettleContract) GetProvider() github_com_arkeonetwork_arkeo_common.PubKey { + if m != nil { + return m.Provider + } + return nil +} + +func (m *EventSettleContract) GetContractId() uint64 { + if m != nil { + return m.ContractId + } + return 0 +} + +func (m *EventSettleContract) GetService() string { + if m != nil { + return m.Service + } + return "" +} + +func (m *EventSettleContract) GetClient() github_com_arkeonetwork_arkeo_common.PubKey { + if m != nil { + return m.Client + } + return nil +} + +func (m *EventSettleContract) GetDelegate() github_com_arkeonetwork_arkeo_common.PubKey { + if m != nil { + return m.Delegate + } + return nil +} + +func (m *EventSettleContract) GetType() ContractType { + if m != nil { + return m.Type + } + return ContractType_SUBSCRIPTION +} + +func (m *EventSettleContract) GetNonce() int64 { + if m != nil { + return m.Nonce + } + return 0 +} + +func (m *EventSettleContract) GetHeight() int64 { + if m != nil { + return m.Height + } + return 0 +} + +type EventCloseContract struct { + ContractId uint64 `protobuf:"varint,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + Provider github_com_arkeonetwork_arkeo_common.PubKey `protobuf:"bytes,2,opt,name=provider,proto3,casttype=github.com/arkeonetwork/arkeo/common.PubKey" json:"provider,omitempty"` + Service string `protobuf:"bytes,3,opt,name=service,proto3" json:"service,omitempty"` + Client github_com_arkeonetwork_arkeo_common.PubKey `protobuf:"bytes,4,opt,name=client,proto3,casttype=github.com/arkeonetwork/arkeo/common.PubKey" json:"client,omitempty"` + Delegate github_com_arkeonetwork_arkeo_common.PubKey `protobuf:"bytes,5,opt,name=delegate,proto3,casttype=github.com/arkeonetwork/arkeo/common.PubKey" json:"delegate,omitempty"` +} + +func (m *EventCloseContract) Reset() { *m = EventCloseContract{} } +func (m *EventCloseContract) String() string { return proto.CompactTextString(m) } +func (*EventCloseContract) ProtoMessage() {} +func (*EventCloseContract) Descriptor() ([]byte, []int) { + return fileDescriptor_39b4417094f69f41, []int{4} +} +func (m *EventCloseContract) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventCloseContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventCloseContract.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventCloseContract) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventCloseContract.Merge(m, src) +} +func (m *EventCloseContract) XXX_Size() int { + return m.Size() +} +func (m *EventCloseContract) XXX_DiscardUnknown() { + xxx_messageInfo_EventCloseContract.DiscardUnknown(m) +} + +var xxx_messageInfo_EventCloseContract proto.InternalMessageInfo + +func (m *EventCloseContract) GetContractId() uint64 { + if m != nil { + return m.ContractId + } + return 0 +} + +func (m *EventCloseContract) GetProvider() github_com_arkeonetwork_arkeo_common.PubKey { + if m != nil { + return m.Provider + } + return nil +} + +func (m *EventCloseContract) GetService() string { + if m != nil { + return m.Service + } + return "" +} + +func (m *EventCloseContract) GetClient() github_com_arkeonetwork_arkeo_common.PubKey { + if m != nil { + return m.Client + } + return nil +} + +func (m *EventCloseContract) GetDelegate() github_com_arkeonetwork_arkeo_common.PubKey { + if m != nil { + return m.Delegate + } + return nil +} + +type EventValidatorPayout struct { + Validator github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=validator,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"validator,omitempty"` + Reward cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=reward,proto3,customtype=cosmossdk.io/math.Int" json:"reward"` +} + +func (m *EventValidatorPayout) Reset() { *m = EventValidatorPayout{} } +func (m *EventValidatorPayout) String() string { return proto.CompactTextString(m) } +func (*EventValidatorPayout) ProtoMessage() {} +func (*EventValidatorPayout) Descriptor() ([]byte, []int) { + return fileDescriptor_39b4417094f69f41, []int{5} +} +func (m *EventValidatorPayout) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventValidatorPayout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventValidatorPayout.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventValidatorPayout) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventValidatorPayout.Merge(m, src) +} +func (m *EventValidatorPayout) XXX_Size() int { + return m.Size() +} +func (m *EventValidatorPayout) XXX_DiscardUnknown() { + xxx_messageInfo_EventValidatorPayout.DiscardUnknown(m) +} + +var xxx_messageInfo_EventValidatorPayout proto.InternalMessageInfo + +func (m *EventValidatorPayout) GetValidator() github_com_cosmos_cosmos_sdk_types.AccAddress { + if m != nil { + return m.Validator + } + return nil +} + +func init() { + proto.RegisterType((*EventBondProvider)(nil), "arkeo.arkeo.EventBondProvider") + proto.RegisterType((*EventModProvider)(nil), "arkeo.arkeo.EventModProvider") + proto.RegisterType((*EventOpenContract)(nil), "arkeo.arkeo.EventOpenContract") + proto.RegisterType((*EventSettleContract)(nil), "arkeo.arkeo.EventSettleContract") + proto.RegisterType((*EventCloseContract)(nil), "arkeo.arkeo.EventCloseContract") + proto.RegisterType((*EventValidatorPayout)(nil), "arkeo.arkeo.EventValidatorPayout") +} + +func init() { proto.RegisterFile("arkeo/arkeo/events.proto", fileDescriptor_39b4417094f69f41) } + +var fileDescriptor_39b4417094f69f41 = []byte{ + // 922 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x96, 0x4d, 0x6f, 0xe3, 0x44, + 0x18, 0xc7, 0xeb, 0x36, 0x6f, 0x9d, 0xb4, 0x55, 0x77, 0xda, 0x45, 0x6e, 0x57, 0x4a, 0x42, 0x24, + 0xa4, 0x48, 0x4b, 0x6d, 0xb5, 0xfd, 0x00, 0xab, 0xa4, 0x94, 0xa5, 0x2a, 0xcb, 0x56, 0x5e, 0x40, + 0x82, 0x8b, 0x35, 0xb6, 0x1f, 0x25, 0xa3, 0xc4, 0x33, 0x66, 0x66, 0x9c, 0x6d, 0xf8, 0x08, 0x9c, + 0x38, 0xf2, 0x21, 0x38, 0x21, 0x4e, 0x7c, 0x82, 0x3d, 0xae, 0x38, 0x20, 0xc4, 0xa1, 0x42, 0xed, + 0xb7, 0xd8, 0x13, 0xf2, 0x78, 0x9c, 0x26, 0xbb, 0x2b, 0xd8, 0x44, 0x0b, 0xe2, 0xb0, 0x97, 0xd8, + 0xf3, 0xbc, 0x79, 0xe6, 0xff, 0xfc, 0x9e, 0xd8, 0xc8, 0x26, 0x62, 0x08, 0xdc, 0xcd, 0x7f, 0x61, + 0x0c, 0x4c, 0x49, 0x27, 0x11, 0x5c, 0x71, 0x5c, 0xd7, 0x36, 0x47, 0xff, 0xee, 0xef, 0xf6, 0x79, + 0x9f, 0x6b, 0xbb, 0x9b, 0xdd, 0xe5, 0x21, 0xfb, 0x7b, 0x21, 0x97, 0x31, 0x97, 0x7e, 0xee, 0xc8, + 0x17, 0xc6, 0xd5, 0xc8, 0x57, 0x6e, 0x40, 0x24, 0xb8, 0xe3, 0xc3, 0x00, 0x14, 0x39, 0x74, 0x43, + 0x4e, 0x99, 0xf1, 0xcf, 0x3d, 0x77, 0x08, 0x90, 0x80, 0xc8, 0x3d, 0xed, 0xef, 0x56, 0xd1, 0x9d, + 0xd3, 0x6c, 0x23, 0x3d, 0xce, 0xa2, 0x0b, 0xc1, 0xc7, 0x34, 0x02, 0x81, 0xcf, 0x51, 0x2d, 0x31, + 0xf7, 0xb6, 0xd5, 0xb2, 0x3a, 0x1b, 0x3d, 0xf7, 0xc5, 0x55, 0xf3, 0x7e, 0x9f, 0xaa, 0x41, 0x1a, + 0x38, 0x21, 0x8f, 0xf3, 0x52, 0x0c, 0xd4, 0x53, 0x2e, 0x86, 0xa6, 0x6e, 0xc8, 0xe3, 0x98, 0x33, + 0xe7, 0x22, 0x0d, 0xce, 0x61, 0xe2, 0x4d, 0x0b, 0x60, 0x1b, 0x55, 0x25, 0x88, 0x31, 0x0d, 0xc1, + 0x5e, 0x6d, 0x59, 0x9d, 0x75, 0xaf, 0x58, 0xe2, 0x8f, 0x51, 0x2d, 0xe0, 0x2c, 0xf2, 0x05, 0x8c, + 0xec, 0xb5, 0xcc, 0xd5, 0xbb, 0xff, 0xec, 0xaa, 0xb9, 0xf2, 0xc7, 0x55, 0xf3, 0x6e, 0x7e, 0x20, + 0x19, 0x0d, 0x1d, 0xca, 0xdd, 0x98, 0xa8, 0x81, 0x73, 0xc6, 0xd4, 0xaf, 0x3f, 0x1f, 0x20, 0x73, + 0xee, 0x33, 0xa6, 0xbc, 0x6a, 0x96, 0xec, 0xc1, 0x68, 0x5a, 0x87, 0x04, 0xd2, 0x2e, 0x2d, 0x59, + 0xa7, 0x1b, 0xc8, 0xf6, 0x2f, 0x65, 0xb4, 0xad, 0xc5, 0x78, 0xc4, 0x67, 0xb5, 0xa8, 0x86, 0x02, + 0x88, 0xe2, 0x85, 0x14, 0x87, 0x2f, 0xae, 0x9a, 0x07, 0x33, 0x52, 0x18, 0xed, 0xf3, 0xcb, 0x81, + 0x8c, 0x86, 0xae, 0x9a, 0x24, 0x20, 0x9d, 0x6e, 0x18, 0x76, 0xa3, 0x48, 0x80, 0x94, 0x5e, 0x51, + 0x61, 0x4e, 0xd8, 0xd5, 0xb7, 0x28, 0xec, 0xda, 0xbc, 0xb0, 0xef, 0xa3, 0x8d, 0x18, 0x14, 0x89, + 0x88, 0x22, 0x7e, 0x2a, 0x68, 0x2e, 0x8a, 0x57, 0x2f, 0x6c, 0x5f, 0x08, 0x8a, 0x3f, 0x40, 0x5b, + 0xd3, 0x10, 0xc6, 0x59, 0x08, 0x76, 0xb9, 0x65, 0x75, 0x4a, 0xde, 0x66, 0x61, 0xfd, 0x2c, 0x33, + 0xe2, 0x63, 0x54, 0x91, 0x8a, 0xa8, 0x54, 0xda, 0x95, 0x96, 0xd5, 0xd9, 0x3a, 0xba, 0xe7, 0xcc, + 0x80, 0xea, 0x14, 0x22, 0x3d, 0xd1, 0x21, 0x9e, 0x09, 0xc5, 0x47, 0xe8, 0x6e, 0x4c, 0x99, 0x1f, + 0x72, 0xa6, 0x04, 0x09, 0x95, 0x1f, 0xa5, 0x82, 0x28, 0xca, 0x99, 0x5d, 0x6d, 0x59, 0x9d, 0x35, + 0x6f, 0x27, 0xa6, 0xec, 0xc4, 0xf8, 0x3e, 0x32, 0x2e, 0x9d, 0x43, 0x2e, 0x5f, 0x93, 0x53, 0x33, + 0x39, 0xe4, 0xf2, 0x95, 0x9c, 0x4f, 0xd1, 0x1d, 0x99, 0x06, 0x32, 0x14, 0x34, 0xc9, 0xd6, 0xbe, + 0x20, 0x0a, 0xec, 0xf5, 0xd6, 0x5a, 0xa7, 0x7e, 0xb4, 0xe7, 0x98, 0x06, 0x67, 0x23, 0xe1, 0x98, + 0x91, 0x70, 0x4e, 0x38, 0x65, 0xbd, 0x52, 0xc6, 0x86, 0xb7, 0x3d, 0x9b, 0xe9, 0x11, 0x05, 0xf8, + 0x1c, 0xe1, 0x84, 0x4c, 0x7c, 0x22, 0xfd, 0x09, 0x4f, 0xfd, 0x3e, 0xcf, 0xcb, 0xa1, 0x37, 0x2b, + 0xb7, 0x95, 0x90, 0x49, 0x57, 0x7e, 0xc5, 0xd3, 0x87, 0x5c, 0x17, 0x7b, 0x80, 0x4a, 0x19, 0x55, + 0x76, 0x7d, 0x71, 0x1c, 0x75, 0x22, 0x76, 0xd1, 0x8e, 0x04, 0xa5, 0x46, 0x10, 0x03, 0x9b, 0x51, + 0x63, 0x43, 0xab, 0x81, 0x6f, 0x5d, 0x85, 0x18, 0xed, 0xdf, 0xca, 0x66, 0x92, 0x1f, 0x27, 0x30, + 0x95, 0xf7, 0xed, 0x4e, 0x72, 0x13, 0xd5, 0xa7, 0xfd, 0xa1, 0x91, 0x06, 0xb8, 0xe4, 0xa1, 0xc2, + 0x74, 0x16, 0xfd, 0x0d, 0x91, 0x0f, 0x51, 0x25, 0x1c, 0x51, 0x60, 0x4a, 0xb3, 0xb8, 0xc4, 0x2e, + 0x4c, 0x7a, 0x76, 0xa0, 0x08, 0x46, 0xd0, 0xcf, 0x7a, 0x53, 0x5e, 0xf2, 0x40, 0x45, 0x01, 0x7c, + 0x80, 0x4a, 0xd9, 0xac, 0x1a, 0xb6, 0xf7, 0xe6, 0xd8, 0x2e, 0x24, 0xfc, 0x7c, 0x92, 0x80, 0xa7, + 0xc3, 0xf0, 0x7b, 0xa8, 0x32, 0x00, 0xda, 0x1f, 0x28, 0x03, 0xb2, 0x59, 0xe1, 0x7d, 0x54, 0x7b, + 0x09, 0xd7, 0xe9, 0x1a, 0x1f, 0xa3, 0x92, 0xc1, 0xd2, 0x7a, 0x13, 0x8e, 0x74, 0x30, 0xbe, 0x87, + 0xd6, 0x79, 0x02, 0xd9, 0x04, 0x49, 0x65, 0xa3, 0xbc, 0x22, 0xd7, 0x6d, 0x95, 0x0a, 0x9f, 0xa2, + 0x6a, 0x04, 0x09, 0x97, 0x54, 0x2d, 0x43, 0x57, 0x91, 0xbb, 0x30, 0x60, 0xf8, 0x13, 0xb4, 0x49, + 0x52, 0x35, 0xe0, 0x82, 0x7e, 0x9b, 0x87, 0x6e, 0x6a, 0xd5, 0xda, 0xaf, 0x55, 0xad, 0x3b, 0x1b, + 0xe9, 0xcd, 0x27, 0xe2, 0x0f, 0x11, 0xfe, 0x26, 0x05, 0x41, 0x41, 0xfa, 0x09, 0x08, 0x3f, 0xa6, + 0x2c, 0x55, 0x60, 0x6f, 0xe9, 0x27, 0x6f, 0x1b, 0xcf, 0x05, 0x88, 0x47, 0xda, 0xde, 0xfe, 0xa1, + 0x84, 0x76, 0x34, 0xd8, 0x4f, 0xf4, 0x9e, 0xde, 0xa1, 0xfd, 0x6f, 0xa0, 0xbd, 0x8b, 0xca, 0xf9, + 0x5b, 0x20, 0x27, 0x3b, 0x5f, 0xcc, 0x00, 0x5f, 0x9b, 0x03, 0xfe, 0x01, 0x2a, 0x25, 0x84, 0x46, + 0x1a, 0xea, 0x45, 0xff, 0xdd, 0xb2, 0xc4, 0x8c, 0x61, 0x01, 0x99, 0x80, 0xa0, 0xf1, 0x5e, 0x94, + 0x61, 0x93, 0xdb, 0xfe, 0x69, 0x15, 0x61, 0x8d, 0xc6, 0xc9, 0x88, 0xcb, 0x5b, 0x32, 0x5e, 0x6a, + 0xa6, 0xf5, 0x4a, 0x33, 0xff, 0xa3, 0xd7, 0xf0, 0xff, 0x92, 0x8c, 0xf6, 0x8f, 0x16, 0xda, 0xd5, + 0xa2, 0x7d, 0x49, 0x46, 0x34, 0xca, 0x3e, 0x4b, 0x2e, 0xc8, 0x84, 0xa7, 0x0a, 0x3f, 0x46, 0xeb, + 0xe3, 0xc2, 0xb4, 0xfc, 0xb7, 0xce, 0x6d, 0x0d, 0x7c, 0x82, 0x2a, 0x02, 0x9e, 0x12, 0x91, 0xcf, + 0xd3, 0x82, 0x4d, 0x36, 0xa9, 0xbd, 0xd3, 0x67, 0xd7, 0x0d, 0xeb, 0xf9, 0x75, 0xc3, 0xfa, 0xf3, + 0xba, 0x61, 0x7d, 0x7f, 0xd3, 0x58, 0x79, 0x7e, 0xd3, 0x58, 0xf9, 0xfd, 0xa6, 0xb1, 0xf2, 0xf5, + 0x3f, 0x9c, 0xff, 0xd2, 0x5c, 0xf5, 0x0e, 0x83, 0x8a, 0xfe, 0xde, 0x3d, 0xfe, 0x2b, 0x00, 0x00, + 0xff, 0xff, 0xb9, 0xcc, 0xc8, 0x4b, 0x83, 0x0b, 0x00, 0x00, +} + +func (m *EventBondProvider) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventBondProvider) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventBondProvider) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.BondAbs.Size() + i -= size + if _, err := m.BondAbs.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size := m.BondRel.Size() + i -= size + if _, err := m.BondRel.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if len(m.Service) > 0 { + i -= len(m.Service) + copy(dAtA[i:], m.Service) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Service))) + i-- + dAtA[i] = 0x12 + } + if len(m.Provider) > 0 { + i -= len(m.Provider) + copy(dAtA[i:], m.Provider) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Provider))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EventModProvider) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventModProvider) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventModProvider) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.SettlementDuration != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.SettlementDuration)) + i-- + dAtA[i] = 0x60 + } + { + size := m.Bond.Size() + i -= size + if _, err := m.Bond.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x5a + if len(m.PayAsYouGoRate) > 0 { + for iNdEx := len(m.PayAsYouGoRate) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PayAsYouGoRate[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + } + } + if len(m.SubscriptionRate) > 0 { + for iNdEx := len(m.SubscriptionRate) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SubscriptionRate[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + } + if m.MaxContractDuration != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.MaxContractDuration)) + i-- + dAtA[i] = 0x40 + } + if m.MinContractDuration != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.MinContractDuration)) + i-- + dAtA[i] = 0x38 + } + if m.Status != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.Status)) + i-- + dAtA[i] = 0x30 + } + if m.MetadataNonce != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.MetadataNonce)) + i-- + dAtA[i] = 0x28 + } + if len(m.MetadataUri) > 0 { + i -= len(m.MetadataUri) + copy(dAtA[i:], m.MetadataUri) + i = encodeVarintEvents(dAtA, i, uint64(len(m.MetadataUri))) + i-- + dAtA[i] = 0x22 + } + if len(m.Service) > 0 { + i -= len(m.Service) + copy(dAtA[i:], m.Service) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Service))) + i-- + dAtA[i] = 0x1a + } + if len(m.Provider) > 0 { + i -= len(m.Provider) + copy(dAtA[i:], m.Provider) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Provider))) + i-- + dAtA[i] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EventOpenContract) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventOpenContract) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventOpenContract) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.QueriesPerMinute != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.QueriesPerMinute)) + i-- + dAtA[i] = 0x70 + } + if m.Authorization != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.Authorization)) + i-- + dAtA[i] = 0x68 + } + if m.SettlementDuration != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.SettlementDuration)) + i-- + dAtA[i] = 0x60 + } + { + size := m.Deposit.Size() + i -= size + if _, err := m.Deposit.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x5a + if m.OpenCost != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.OpenCost)) + i-- + dAtA[i] = 0x50 + } + { + size, err := m.Rate.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + if m.Duration != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.Duration)) + i-- + dAtA[i] = 0x40 + } + if m.Height != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x38 + } + if m.Type != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x30 + } + if len(m.Delegate) > 0 { + i -= len(m.Delegate) + copy(dAtA[i:], m.Delegate) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Delegate))) + i-- + dAtA[i] = 0x2a + } + if len(m.Client) > 0 { + i -= len(m.Client) + copy(dAtA[i:], m.Client) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Client))) + i-- + dAtA[i] = 0x22 + } + if len(m.Service) > 0 { + i -= len(m.Service) + copy(dAtA[i:], m.Service) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Service))) + i-- + dAtA[i] = 0x1a + } + if m.ContractId != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.ContractId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Provider) > 0 { + i -= len(m.Provider) + copy(dAtA[i:], m.Provider) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Provider))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EventSettleContract) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventSettleContract) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventSettleContract) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Reserve.Size() + i -= size + if _, err := m.Reserve.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + { + size := m.Paid.Size() + i -= size + if _, err := m.Paid.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + if m.Height != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x40 + } + if m.Nonce != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.Nonce)) + i-- + dAtA[i] = 0x38 + } + if m.Type != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x30 + } + if len(m.Delegate) > 0 { + i -= len(m.Delegate) + copy(dAtA[i:], m.Delegate) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Delegate))) + i-- + dAtA[i] = 0x2a + } + if len(m.Client) > 0 { + i -= len(m.Client) + copy(dAtA[i:], m.Client) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Client))) + i-- + dAtA[i] = 0x22 + } + if len(m.Service) > 0 { + i -= len(m.Service) + copy(dAtA[i:], m.Service) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Service))) + i-- + dAtA[i] = 0x1a + } + if m.ContractId != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.ContractId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Provider) > 0 { + i -= len(m.Provider) + copy(dAtA[i:], m.Provider) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Provider))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EventCloseContract) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventCloseContract) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventCloseContract) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Delegate) > 0 { + i -= len(m.Delegate) + copy(dAtA[i:], m.Delegate) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Delegate))) + i-- + dAtA[i] = 0x2a + } + if len(m.Client) > 0 { + i -= len(m.Client) + copy(dAtA[i:], m.Client) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Client))) + i-- + dAtA[i] = 0x22 + } + if len(m.Service) > 0 { + i -= len(m.Service) + copy(dAtA[i:], m.Service) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Service))) + i-- + dAtA[i] = 0x1a + } + if len(m.Provider) > 0 { + i -= len(m.Provider) + copy(dAtA[i:], m.Provider) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Provider))) + i-- + dAtA[i] = 0x12 + } + if m.ContractId != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.ContractId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *EventValidatorPayout) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventValidatorPayout) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventValidatorPayout) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Reward.Size() + i -= size + if _, err := m.Reward.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Validator) > 0 { + i -= len(m.Validator) + copy(dAtA[i:], m.Validator) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Validator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintEvents(dAtA []byte, offset int, v uint64) int { + offset -= sovEvents(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *EventBondProvider) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Provider) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.Service) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = m.BondRel.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.BondAbs.Size() + n += 1 + l + sovEvents(uint64(l)) + return n +} + +func (m *EventModProvider) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.Provider) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.Service) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.MetadataUri) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + if m.MetadataNonce != 0 { + n += 1 + sovEvents(uint64(m.MetadataNonce)) + } + if m.Status != 0 { + n += 1 + sovEvents(uint64(m.Status)) + } + if m.MinContractDuration != 0 { + n += 1 + sovEvents(uint64(m.MinContractDuration)) + } + if m.MaxContractDuration != 0 { + n += 1 + sovEvents(uint64(m.MaxContractDuration)) + } + if len(m.SubscriptionRate) > 0 { + for _, e := range m.SubscriptionRate { + l = e.Size() + n += 1 + l + sovEvents(uint64(l)) + } + } + if len(m.PayAsYouGoRate) > 0 { + for _, e := range m.PayAsYouGoRate { + l = e.Size() + n += 1 + l + sovEvents(uint64(l)) + } + } + l = m.Bond.Size() + n += 1 + l + sovEvents(uint64(l)) + if m.SettlementDuration != 0 { + n += 1 + sovEvents(uint64(m.SettlementDuration)) + } + return n +} + +func (m *EventOpenContract) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Provider) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + if m.ContractId != 0 { + n += 1 + sovEvents(uint64(m.ContractId)) + } + l = len(m.Service) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.Client) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.Delegate) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + if m.Type != 0 { + n += 1 + sovEvents(uint64(m.Type)) + } + if m.Height != 0 { + n += 1 + sovEvents(uint64(m.Height)) + } + if m.Duration != 0 { + n += 1 + sovEvents(uint64(m.Duration)) + } + l = m.Rate.Size() + n += 1 + l + sovEvents(uint64(l)) + if m.OpenCost != 0 { + n += 1 + sovEvents(uint64(m.OpenCost)) + } + l = m.Deposit.Size() + n += 1 + l + sovEvents(uint64(l)) + if m.SettlementDuration != 0 { + n += 1 + sovEvents(uint64(m.SettlementDuration)) + } + if m.Authorization != 0 { + n += 1 + sovEvents(uint64(m.Authorization)) + } + if m.QueriesPerMinute != 0 { + n += 1 + sovEvents(uint64(m.QueriesPerMinute)) + } + return n +} + +func (m *EventSettleContract) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Provider) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + if m.ContractId != 0 { + n += 1 + sovEvents(uint64(m.ContractId)) + } + l = len(m.Service) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.Client) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.Delegate) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + if m.Type != 0 { + n += 1 + sovEvents(uint64(m.Type)) + } + if m.Nonce != 0 { + n += 1 + sovEvents(uint64(m.Nonce)) + } + if m.Height != 0 { + n += 1 + sovEvents(uint64(m.Height)) + } + l = m.Paid.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.Reserve.Size() + n += 1 + l + sovEvents(uint64(l)) + return n +} + +func (m *EventCloseContract) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ContractId != 0 { + n += 1 + sovEvents(uint64(m.ContractId)) + } + l = len(m.Provider) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.Service) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.Client) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.Delegate) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *EventValidatorPayout) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Validator) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = m.Reward.Size() + n += 1 + l + sovEvents(uint64(l)) + return n +} + +func sovEvents(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozEvents(x uint64) (n int) { + return sovEvents(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *EventBondProvider) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventBondProvider: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventBondProvider: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Provider", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Provider = append(m.Provider[:0], dAtA[iNdEx:postIndex]...) + if m.Provider == nil { + m.Provider = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Service", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Service = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BondRel", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.BondRel.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BondAbs", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.BondAbs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventModProvider) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventModProvider: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventModProvider: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = append(m.Creator[:0], dAtA[iNdEx:postIndex]...) + if m.Creator == nil { + m.Creator = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Provider", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Provider = append(m.Provider[:0], dAtA[iNdEx:postIndex]...) + if m.Provider == nil { + m.Provider = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Service", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Service = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MetadataUri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MetadataUri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MetadataNonce", wireType) + } + m.MetadataNonce = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MetadataNonce |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + m.Status = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Status |= ProviderStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MinContractDuration", wireType) + } + m.MinContractDuration = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MinContractDuration |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxContractDuration", wireType) + } + m.MaxContractDuration = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxContractDuration |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SubscriptionRate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SubscriptionRate = append(m.SubscriptionRate, types.Coin{}) + if err := m.SubscriptionRate[len(m.SubscriptionRate)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PayAsYouGoRate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PayAsYouGoRate = append(m.PayAsYouGoRate, types.Coin{}) + if err := m.PayAsYouGoRate[len(m.PayAsYouGoRate)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Bond", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Bond.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SettlementDuration", wireType) + } + m.SettlementDuration = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SettlementDuration |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventOpenContract) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventOpenContract: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventOpenContract: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Provider", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Provider = append(m.Provider[:0], dAtA[iNdEx:postIndex]...) + if m.Provider == nil { + m.Provider = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + m.ContractId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ContractId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Service", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Service = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Client", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Client = append(m.Client[:0], dAtA[iNdEx:postIndex]...) + if m.Client == nil { + m.Client = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Delegate", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Delegate = append(m.Delegate[:0], dAtA[iNdEx:postIndex]...) + if m.Delegate == nil { + m.Delegate = []byte{} + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= ContractType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Duration", wireType) + } + m.Duration = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Duration |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Rate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Rate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OpenCost", wireType) + } + m.OpenCost = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.OpenCost |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Deposit", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Deposit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SettlementDuration", wireType) + } + m.SettlementDuration = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SettlementDuration |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Authorization", wireType) + } + m.Authorization = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Authorization |= ContractAuthorization(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field QueriesPerMinute", wireType) + } + m.QueriesPerMinute = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.QueriesPerMinute |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventSettleContract) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventSettleContract: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventSettleContract: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Provider", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Provider = append(m.Provider[:0], dAtA[iNdEx:postIndex]...) + if m.Provider == nil { + m.Provider = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + m.ContractId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ContractId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Service", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Service = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Client", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Client = append(m.Client[:0], dAtA[iNdEx:postIndex]...) + if m.Client == nil { + m.Client = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Delegate", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Delegate = append(m.Delegate[:0], dAtA[iNdEx:postIndex]...) + if m.Delegate == nil { + m.Delegate = []byte{} + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= ContractType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) + } + m.Nonce = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Nonce |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Paid", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Paid.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reserve", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Reserve.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventCloseContract) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventCloseContract: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventCloseContract: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + m.ContractId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ContractId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Provider", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Provider = append(m.Provider[:0], dAtA[iNdEx:postIndex]...) + if m.Provider == nil { + m.Provider = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Service", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Service = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Client", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Client = append(m.Client[:0], dAtA[iNdEx:postIndex]...) + if m.Client == nil { + m.Client = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Delegate", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Delegate = append(m.Delegate[:0], dAtA[iNdEx:postIndex]...) + if m.Delegate == nil { + m.Delegate = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventValidatorPayout) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventValidatorPayout: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventValidatorPayout: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Validator = append(m.Validator[:0], dAtA[iNdEx:postIndex]...) + if m.Validator == nil { + m.Validator = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reward", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Reward.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipEvents(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowEvents + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowEvents + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowEvents + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthEvents + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupEvents + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthEvents + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/arkeo/types/genesis.pb.go b/x/arkeo/types/genesis.pb.go new file mode 100644 index 00000000..eb673750 --- /dev/null +++ b/x/arkeo/types/genesis.pb.go @@ -0,0 +1,649 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: arkeo/arkeo/genesis.proto + +package types + +import ( + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// GenesisState defines the arkeo module's genesis state. +type GenesisState struct { + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` + Providers []Provider `protobuf:"bytes,2,rep,name=providers,proto3" json:"providers"` + Contracts []Contract `protobuf:"bytes,3,rep,name=contracts,proto3" json:"contracts"` + NextContractId uint64 `protobuf:"varint,4,opt,name=next_contract_id,json=nextContractId,proto3" json:"next_contract_id,omitempty"` + ContractExpirationSets []ContractExpirationSet `protobuf:"bytes,5,rep,name=contract_expiration_sets,json=contractExpirationSets,proto3" json:"contract_expiration_sets"` + UserContractSets []UserContractSet `protobuf:"bytes,6,rep,name=user_contract_sets,json=userContractSets,proto3" json:"user_contract_sets"` + Version int64 `protobuf:"varint,7,opt,name=version,proto3" json:"version,omitempty"` +} + +func (m *GenesisState) Reset() { *m = GenesisState{} } +func (m *GenesisState) String() string { return proto.CompactTextString(m) } +func (*GenesisState) ProtoMessage() {} +func (*GenesisState) Descriptor() ([]byte, []int) { + return fileDescriptor_caae968dd754c6d4, []int{0} +} +func (m *GenesisState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GenesisState.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GenesisState) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenesisState.Merge(m, src) +} +func (m *GenesisState) XXX_Size() int { + return m.Size() +} +func (m *GenesisState) XXX_DiscardUnknown() { + xxx_messageInfo_GenesisState.DiscardUnknown(m) +} + +var xxx_messageInfo_GenesisState proto.InternalMessageInfo + +func (m *GenesisState) GetParams() Params { + if m != nil { + return m.Params + } + return Params{} +} + +func (m *GenesisState) GetProviders() []Provider { + if m != nil { + return m.Providers + } + return nil +} + +func (m *GenesisState) GetContracts() []Contract { + if m != nil { + return m.Contracts + } + return nil +} + +func (m *GenesisState) GetNextContractId() uint64 { + if m != nil { + return m.NextContractId + } + return 0 +} + +func (m *GenesisState) GetContractExpirationSets() []ContractExpirationSet { + if m != nil { + return m.ContractExpirationSets + } + return nil +} + +func (m *GenesisState) GetUserContractSets() []UserContractSet { + if m != nil { + return m.UserContractSets + } + return nil +} + +func (m *GenesisState) GetVersion() int64 { + if m != nil { + return m.Version + } + return 0 +} + +func init() { + proto.RegisterType((*GenesisState)(nil), "arkeo.arkeo.GenesisState") +} + +func init() { proto.RegisterFile("arkeo/arkeo/genesis.proto", fileDescriptor_caae968dd754c6d4) } + +var fileDescriptor_caae968dd754c6d4 = []byte{ + // 354 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0xcd, 0x6a, 0xc2, 0x40, + 0x14, 0x85, 0x33, 0x8d, 0x55, 0x3a, 0x96, 0x22, 0xd3, 0x1f, 0xa6, 0x52, 0xd2, 0xe0, 0x2a, 0x50, + 0x88, 0xd4, 0xae, 0xba, 0xb5, 0x48, 0xe9, 0x4e, 0x94, 0x6e, 0xba, 0x91, 0x18, 0x2f, 0xe9, 0x20, + 0x66, 0xc2, 0xdc, 0xd1, 0xda, 0xb7, 0xe8, 0xab, 0xf4, 0x2d, 0x5c, 0xba, 0xec, 0xaa, 0x14, 0x7d, + 0x91, 0xe2, 0x24, 0xf1, 0x07, 0xb2, 0x99, 0x24, 0xe7, 0x9c, 0xef, 0x9e, 0x81, 0x1b, 0x7a, 0x1d, + 0xa8, 0x31, 0xc8, 0x66, 0x7a, 0x46, 0x10, 0x03, 0x0a, 0xf4, 0x13, 0x25, 0xb5, 0x64, 0x55, 0x23, + 0xfa, 0xe6, 0xac, 0x5f, 0x44, 0x32, 0x92, 0x46, 0x6f, 0x6e, 0xde, 0xd2, 0x48, 0x9d, 0xef, 0xd3, + 0x49, 0xa0, 0x82, 0x09, 0x16, 0x39, 0x63, 0x80, 0x04, 0x54, 0xea, 0x34, 0xbe, 0x6d, 0x7a, 0xfa, + 0x9c, 0x16, 0xf5, 0x75, 0xa0, 0x81, 0xdd, 0xd3, 0x72, 0x8a, 0x72, 0xe2, 0x12, 0xaf, 0xda, 0x3a, + 0xf7, 0xf7, 0x8a, 0xfd, 0xae, 0xb1, 0xda, 0xa5, 0xc5, 0xef, 0xad, 0xd5, 0xcb, 0x82, 0xec, 0x91, + 0x9e, 0x24, 0x4a, 0xce, 0xc4, 0x08, 0x14, 0xf2, 0x23, 0xd7, 0xf6, 0xaa, 0xad, 0xcb, 0x43, 0x2a, + 0x73, 0x33, 0x6e, 0x97, 0xde, 0xa0, 0xa1, 0x8c, 0xb5, 0x0a, 0x42, 0x8d, 0xdc, 0x2e, 0x40, 0x9f, + 0x32, 0x37, 0x47, 0xb7, 0x69, 0xe6, 0xd1, 0x5a, 0x0c, 0x73, 0x3d, 0xc8, 0x95, 0x81, 0x18, 0xf1, + 0x92, 0x4b, 0xbc, 0x52, 0xef, 0x6c, 0xa3, 0xe7, 0xe0, 0xcb, 0x88, 0x0d, 0x29, 0xdf, 0x86, 0x60, + 0x9e, 0x08, 0x15, 0x68, 0x21, 0xe3, 0x01, 0x82, 0x46, 0x7e, 0x6c, 0x3a, 0x1b, 0x85, 0x9d, 0x9d, + 0x6d, 0xb6, 0x0f, 0xf9, 0x05, 0xae, 0xc2, 0x22, 0x13, 0x59, 0x97, 0xb2, 0x29, 0x82, 0xda, 0xdd, + 0xc6, 0x4c, 0x2f, 0x9b, 0xe9, 0x37, 0x07, 0xd3, 0x5f, 0x11, 0x54, 0xde, 0xb0, 0x9b, 0x5b, 0x9b, + 0x1e, 0xca, 0xc8, 0x38, 0xad, 0xcc, 0x40, 0xa1, 0x90, 0x31, 0xaf, 0xb8, 0xc4, 0xb3, 0x7b, 0xf9, + 0x67, 0xbb, 0xb3, 0x58, 0x39, 0x64, 0xb9, 0x72, 0xc8, 0xdf, 0xca, 0x21, 0x5f, 0x6b, 0xc7, 0x5a, + 0xae, 0x1d, 0xeb, 0x67, 0xed, 0x58, 0x6f, 0x77, 0x91, 0xd0, 0xef, 0xd3, 0xa1, 0x1f, 0xca, 0x49, + 0xba, 0xec, 0x18, 0xf4, 0x87, 0x54, 0xe3, 0x6c, 0xf3, 0xf3, 0xec, 0xa9, 0x3f, 0x13, 0xc0, 0x61, + 0xd9, 0xfc, 0x01, 0x0f, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0xcf, 0x72, 0x30, 0x30, 0x75, 0x02, + 0x00, 0x00, +} + +func (m *GenesisState) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GenesisState) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Version != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.Version)) + i-- + dAtA[i] = 0x38 + } + if len(m.UserContractSets) > 0 { + for iNdEx := len(m.UserContractSets) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.UserContractSets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if len(m.ContractExpirationSets) > 0 { + for iNdEx := len(m.ContractExpirationSets) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ContractExpirationSets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if m.NextContractId != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.NextContractId)) + i-- + dAtA[i] = 0x20 + } + if len(m.Contracts) > 0 { + for iNdEx := len(m.Contracts) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Contracts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.Providers) > 0 { + for iNdEx := len(m.Providers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Providers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { + offset -= sovGenesis(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *GenesisState) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Params.Size() + n += 1 + l + sovGenesis(uint64(l)) + if len(m.Providers) > 0 { + for _, e := range m.Providers { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.Contracts) > 0 { + for _, e := range m.Contracts { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if m.NextContractId != 0 { + n += 1 + sovGenesis(uint64(m.NextContractId)) + } + if len(m.ContractExpirationSets) > 0 { + for _, e := range m.ContractExpirationSets { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.UserContractSets) > 0 { + for _, e := range m.UserContractSets { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if m.Version != 0 { + n += 1 + sovGenesis(uint64(m.Version)) + } + return n +} + +func sovGenesis(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozGenesis(x uint64) (n int) { + return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *GenesisState) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GenesisState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Providers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Providers = append(m.Providers, Provider{}) + if err := m.Providers[len(m.Providers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Contracts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Contracts = append(m.Contracts, Contract{}) + if err := m.Contracts[len(m.Contracts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NextContractId", wireType) + } + m.NextContractId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NextContractId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractExpirationSets", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractExpirationSets = append(m.ContractExpirationSets, ContractExpirationSet{}) + if err := m.ContractExpirationSets[len(m.ContractExpirationSets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserContractSets", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UserContractSets = append(m.UserContractSets, UserContractSet{}) + if err := m.UserContractSets[len(m.UserContractSets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + m.Version = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Version |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipGenesis(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenesis + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenesis + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenesis + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthGenesis + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupGenesis + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthGenesis + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/arkeo/types/keeper.pb.go b/x/arkeo/types/keeper.pb.go new file mode 100644 index 00000000..c6772bc1 --- /dev/null +++ b/x/arkeo/types/keeper.pb.go @@ -0,0 +1,2366 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: arkeo/arkeo/keeper.proto + +package types + +import ( + cosmossdk_io_math "cosmossdk.io/math" + fmt "fmt" + github_com_arkeonetwork_arkeo_common "github.com/arkeonetwork/arkeo/common" + _ "github.com/cosmos/cosmos-proto" + types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type ProviderStatus int32 + +const ( + ProviderStatus_OFFLINE ProviderStatus = 0 + ProviderStatus_ONLINE ProviderStatus = 1 +) + +var ProviderStatus_name = map[int32]string{ + 0: "OFFLINE", + 1: "ONLINE", +} + +var ProviderStatus_value = map[string]int32{ + "OFFLINE": 0, + "ONLINE": 1, +} + +func (x ProviderStatus) String() string { + return proto.EnumName(ProviderStatus_name, int32(x)) +} + +func (ProviderStatus) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_f833050061122841, []int{0} +} + +type ContractType int32 + +const ( + ContractType_SUBSCRIPTION ContractType = 0 + ContractType_PAY_AS_YOU_GO ContractType = 1 +) + +var ContractType_name = map[int32]string{ + 0: "SUBSCRIPTION", + 1: "PAY_AS_YOU_GO", +} + +var ContractType_value = map[string]int32{ + "SUBSCRIPTION": 0, + "PAY_AS_YOU_GO": 1, +} + +func (x ContractType) String() string { + return proto.EnumName(ContractType_name, int32(x)) +} + +func (ContractType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_f833050061122841, []int{1} +} + +type ContractAuthorization int32 + +const ( + ContractAuthorization_STRICT ContractAuthorization = 0 + ContractAuthorization_OPEN ContractAuthorization = 1 +) + +var ContractAuthorization_name = map[int32]string{ + 0: "STRICT", + 1: "OPEN", +} + +var ContractAuthorization_value = map[string]int32{ + "STRICT": 0, + "OPEN": 1, +} + +func (x ContractAuthorization) String() string { + return proto.EnumName(ContractAuthorization_name, int32(x)) +} + +func (ContractAuthorization) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_f833050061122841, []int{2} +} + +type Provider struct { + PubKey github_com_arkeonetwork_arkeo_common.PubKey `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3,casttype=github.com/arkeonetwork/arkeo/common.PubKey" json:"pub_key,omitempty"` + Service github_com_arkeonetwork_arkeo_common.Service `protobuf:"varint,2,opt,name=service,proto3,casttype=github.com/arkeonetwork/arkeo/common.Service" json:"service,omitempty"` + MetadataUri string `protobuf:"bytes,3,opt,name=metadata_uri,json=metadataUri,proto3" json:"metadata_uri,omitempty"` + MetadataNonce uint64 `protobuf:"varint,4,opt,name=metadata_nonce,json=metadataNonce,proto3" json:"metadata_nonce,omitempty"` + Status ProviderStatus `protobuf:"varint,5,opt,name=status,proto3,enum=arkeo.arkeo.ProviderStatus" json:"status,omitempty"` + MinContractDuration int64 `protobuf:"varint,6,opt,name=min_contract_duration,json=minContractDuration,proto3" json:"min_contract_duration,omitempty"` + MaxContractDuration int64 `protobuf:"varint,7,opt,name=max_contract_duration,json=maxContractDuration,proto3" json:"max_contract_duration,omitempty"` + SubscriptionRate []types.Coin `protobuf:"bytes,8,rep,name=subscription_rate,json=subscriptionRate,proto3" json:"subscription_rate"` + PayAsYouGoRate []types.Coin `protobuf:"bytes,9,rep,name=pay_as_you_go_rate,json=payAsYouGoRate,proto3" json:"pay_as_you_go_rate"` + Bond cosmossdk_io_math.Int `protobuf:"bytes,10,opt,name=bond,proto3,customtype=cosmossdk.io/math.Int" json:"bond"` + LastUpdate int64 `protobuf:"varint,11,opt,name=last_update,json=lastUpdate,proto3" json:"last_update,omitempty"` + SettlementDuration int64 `protobuf:"varint,12,opt,name=settlement_duration,json=settlementDuration,proto3" json:"settlement_duration,omitempty"` +} + +func (m *Provider) Reset() { *m = Provider{} } +func (m *Provider) String() string { return proto.CompactTextString(m) } +func (*Provider) ProtoMessage() {} +func (*Provider) Descriptor() ([]byte, []int) { + return fileDescriptor_f833050061122841, []int{0} +} +func (m *Provider) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Provider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Provider.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Provider) XXX_Merge(src proto.Message) { + xxx_messageInfo_Provider.Merge(m, src) +} +func (m *Provider) XXX_Size() int { + return m.Size() +} +func (m *Provider) XXX_DiscardUnknown() { + xxx_messageInfo_Provider.DiscardUnknown(m) +} + +var xxx_messageInfo_Provider proto.InternalMessageInfo + +func (m *Provider) GetPubKey() github_com_arkeonetwork_arkeo_common.PubKey { + if m != nil { + return m.PubKey + } + return nil +} + +func (m *Provider) GetService() github_com_arkeonetwork_arkeo_common.Service { + if m != nil { + return m.Service + } + return 0 +} + +func (m *Provider) GetMetadataUri() string { + if m != nil { + return m.MetadataUri + } + return "" +} + +func (m *Provider) GetMetadataNonce() uint64 { + if m != nil { + return m.MetadataNonce + } + return 0 +} + +func (m *Provider) GetStatus() ProviderStatus { + if m != nil { + return m.Status + } + return ProviderStatus_OFFLINE +} + +func (m *Provider) GetMinContractDuration() int64 { + if m != nil { + return m.MinContractDuration + } + return 0 +} + +func (m *Provider) GetMaxContractDuration() int64 { + if m != nil { + return m.MaxContractDuration + } + return 0 +} + +func (m *Provider) GetSubscriptionRate() []types.Coin { + if m != nil { + return m.SubscriptionRate + } + return nil +} + +func (m *Provider) GetPayAsYouGoRate() []types.Coin { + if m != nil { + return m.PayAsYouGoRate + } + return nil +} + +func (m *Provider) GetLastUpdate() int64 { + if m != nil { + return m.LastUpdate + } + return 0 +} + +func (m *Provider) GetSettlementDuration() int64 { + if m != nil { + return m.SettlementDuration + } + return 0 +} + +type Contract struct { + Provider github_com_arkeonetwork_arkeo_common.PubKey `protobuf:"bytes,1,opt,name=provider,proto3,casttype=github.com/arkeonetwork/arkeo/common.PubKey" json:"provider,omitempty"` + Service github_com_arkeonetwork_arkeo_common.Service `protobuf:"varint,2,opt,name=service,proto3,casttype=github.com/arkeonetwork/arkeo/common.Service" json:"service,omitempty"` + Client github_com_arkeonetwork_arkeo_common.PubKey `protobuf:"bytes,3,opt,name=client,proto3,casttype=github.com/arkeonetwork/arkeo/common.PubKey" json:"client,omitempty"` + Delegate github_com_arkeonetwork_arkeo_common.PubKey `protobuf:"bytes,4,opt,name=delegate,proto3,casttype=github.com/arkeonetwork/arkeo/common.PubKey" json:"delegate,omitempty"` + Type ContractType `protobuf:"varint,5,opt,name=type,proto3,enum=arkeo.arkeo.ContractType" json:"type,omitempty"` + Height int64 `protobuf:"varint,6,opt,name=height,proto3" json:"height,omitempty"` + Duration int64 `protobuf:"varint,7,opt,name=duration,proto3" json:"duration,omitempty"` + Rate types.Coin `protobuf:"bytes,8,opt,name=rate,proto3" json:"rate"` + Deposit cosmossdk_io_math.Int `protobuf:"bytes,9,opt,name=deposit,proto3,customtype=cosmossdk.io/math.Int" json:"deposit"` + Paid cosmossdk_io_math.Int `protobuf:"bytes,10,opt,name=paid,proto3,customtype=cosmossdk.io/math.Int" json:"paid"` + Nonce int64 `protobuf:"varint,11,opt,name=nonce,proto3" json:"nonce,omitempty"` + SettlementHeight int64 `protobuf:"varint,12,opt,name=settlement_height,json=settlementHeight,proto3" json:"settlement_height,omitempty"` + Id uint64 `protobuf:"varint,13,opt,name=id,proto3" json:"id,omitempty"` + SettlementDuration int64 `protobuf:"varint,14,opt,name=settlement_duration,json=settlementDuration,proto3" json:"settlement_duration,omitempty"` + Authorization ContractAuthorization `protobuf:"varint,15,opt,name=authorization,proto3,enum=arkeo.arkeo.ContractAuthorization" json:"authorization,omitempty"` + QueriesPerMinute int64 `protobuf:"varint,16,opt,name=queries_per_minute,json=queriesPerMinute,proto3" json:"queries_per_minute,omitempty"` +} + +func (m *Contract) Reset() { *m = Contract{} } +func (m *Contract) String() string { return proto.CompactTextString(m) } +func (*Contract) ProtoMessage() {} +func (*Contract) Descriptor() ([]byte, []int) { + return fileDescriptor_f833050061122841, []int{1} +} +func (m *Contract) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Contract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Contract.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Contract) XXX_Merge(src proto.Message) { + xxx_messageInfo_Contract.Merge(m, src) +} +func (m *Contract) XXX_Size() int { + return m.Size() +} +func (m *Contract) XXX_DiscardUnknown() { + xxx_messageInfo_Contract.DiscardUnknown(m) +} + +var xxx_messageInfo_Contract proto.InternalMessageInfo + +func (m *Contract) GetProvider() github_com_arkeonetwork_arkeo_common.PubKey { + if m != nil { + return m.Provider + } + return nil +} + +func (m *Contract) GetService() github_com_arkeonetwork_arkeo_common.Service { + if m != nil { + return m.Service + } + return 0 +} + +func (m *Contract) GetClient() github_com_arkeonetwork_arkeo_common.PubKey { + if m != nil { + return m.Client + } + return nil +} + +func (m *Contract) GetDelegate() github_com_arkeonetwork_arkeo_common.PubKey { + if m != nil { + return m.Delegate + } + return nil +} + +func (m *Contract) GetType() ContractType { + if m != nil { + return m.Type + } + return ContractType_SUBSCRIPTION +} + +func (m *Contract) GetHeight() int64 { + if m != nil { + return m.Height + } + return 0 +} + +func (m *Contract) GetDuration() int64 { + if m != nil { + return m.Duration + } + return 0 +} + +func (m *Contract) GetRate() types.Coin { + if m != nil { + return m.Rate + } + return types.Coin{} +} + +func (m *Contract) GetNonce() int64 { + if m != nil { + return m.Nonce + } + return 0 +} + +func (m *Contract) GetSettlementHeight() int64 { + if m != nil { + return m.SettlementHeight + } + return 0 +} + +func (m *Contract) GetId() uint64 { + if m != nil { + return m.Id + } + return 0 +} + +func (m *Contract) GetSettlementDuration() int64 { + if m != nil { + return m.SettlementDuration + } + return 0 +} + +func (m *Contract) GetAuthorization() ContractAuthorization { + if m != nil { + return m.Authorization + } + return ContractAuthorization_STRICT +} + +func (m *Contract) GetQueriesPerMinute() int64 { + if m != nil { + return m.QueriesPerMinute + } + return 0 +} + +type ContractSet struct { + ContractIds []uint64 `protobuf:"varint,1,rep,packed,name=contract_ids,json=contractIds,proto3" json:"contract_ids,omitempty"` +} + +func (m *ContractSet) Reset() { *m = ContractSet{} } +func (m *ContractSet) String() string { return proto.CompactTextString(m) } +func (*ContractSet) ProtoMessage() {} +func (*ContractSet) Descriptor() ([]byte, []int) { + return fileDescriptor_f833050061122841, []int{2} +} +func (m *ContractSet) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ContractSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ContractSet.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ContractSet) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContractSet.Merge(m, src) +} +func (m *ContractSet) XXX_Size() int { + return m.Size() +} +func (m *ContractSet) XXX_DiscardUnknown() { + xxx_messageInfo_ContractSet.DiscardUnknown(m) +} + +var xxx_messageInfo_ContractSet proto.InternalMessageInfo + +func (m *ContractSet) GetContractIds() []uint64 { + if m != nil { + return m.ContractIds + } + return nil +} + +type ContractExpirationSet struct { + Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` + ContractSet *ContractSet `protobuf:"bytes,2,opt,name=contract_set,json=contractSet,proto3" json:"contract_set,omitempty"` +} + +func (m *ContractExpirationSet) Reset() { *m = ContractExpirationSet{} } +func (m *ContractExpirationSet) String() string { return proto.CompactTextString(m) } +func (*ContractExpirationSet) ProtoMessage() {} +func (*ContractExpirationSet) Descriptor() ([]byte, []int) { + return fileDescriptor_f833050061122841, []int{3} +} +func (m *ContractExpirationSet) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ContractExpirationSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ContractExpirationSet.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ContractExpirationSet) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContractExpirationSet.Merge(m, src) +} +func (m *ContractExpirationSet) XXX_Size() int { + return m.Size() +} +func (m *ContractExpirationSet) XXX_DiscardUnknown() { + xxx_messageInfo_ContractExpirationSet.DiscardUnknown(m) +} + +var xxx_messageInfo_ContractExpirationSet proto.InternalMessageInfo + +func (m *ContractExpirationSet) GetHeight() int64 { + if m != nil { + return m.Height + } + return 0 +} + +func (m *ContractExpirationSet) GetContractSet() *ContractSet { + if m != nil { + return m.ContractSet + } + return nil +} + +type UserContractSet struct { + User github_com_arkeonetwork_arkeo_common.PubKey `protobuf:"bytes,1,opt,name=user,proto3,casttype=github.com/arkeonetwork/arkeo/common.PubKey" json:"user,omitempty"` + ContractSet *ContractSet `protobuf:"bytes,2,opt,name=contract_set,json=contractSet,proto3" json:"contract_set,omitempty"` +} + +func (m *UserContractSet) Reset() { *m = UserContractSet{} } +func (m *UserContractSet) String() string { return proto.CompactTextString(m) } +func (*UserContractSet) ProtoMessage() {} +func (*UserContractSet) Descriptor() ([]byte, []int) { + return fileDescriptor_f833050061122841, []int{4} +} +func (m *UserContractSet) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UserContractSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UserContractSet.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *UserContractSet) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserContractSet.Merge(m, src) +} +func (m *UserContractSet) XXX_Size() int { + return m.Size() +} +func (m *UserContractSet) XXX_DiscardUnknown() { + xxx_messageInfo_UserContractSet.DiscardUnknown(m) +} + +var xxx_messageInfo_UserContractSet proto.InternalMessageInfo + +func (m *UserContractSet) GetUser() github_com_arkeonetwork_arkeo_common.PubKey { + if m != nil { + return m.User + } + return nil +} + +func (m *UserContractSet) GetContractSet() *ContractSet { + if m != nil { + return m.ContractSet + } + return nil +} + +func init() { + proto.RegisterEnum("arkeo.arkeo.ProviderStatus", ProviderStatus_name, ProviderStatus_value) + proto.RegisterEnum("arkeo.arkeo.ContractType", ContractType_name, ContractType_value) + proto.RegisterEnum("arkeo.arkeo.ContractAuthorization", ContractAuthorization_name, ContractAuthorization_value) + proto.RegisterType((*Provider)(nil), "arkeo.arkeo.Provider") + proto.RegisterType((*Contract)(nil), "arkeo.arkeo.Contract") + proto.RegisterType((*ContractSet)(nil), "arkeo.arkeo.ContractSet") + proto.RegisterType((*ContractExpirationSet)(nil), "arkeo.arkeo.ContractExpirationSet") + proto.RegisterType((*UserContractSet)(nil), "arkeo.arkeo.UserContractSet") +} + +func init() { proto.RegisterFile("arkeo/arkeo/keeper.proto", fileDescriptor_f833050061122841) } + +var fileDescriptor_f833050061122841 = []byte{ + // 938 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x41, 0x4f, 0xe3, 0x46, + 0x14, 0x8e, 0xc1, 0x84, 0xf0, 0x12, 0xb2, 0x66, 0x76, 0xa9, 0x0c, 0x95, 0x42, 0x1a, 0x69, 0xa5, + 0x14, 0x16, 0xa7, 0x0b, 0xbd, 0xf5, 0x50, 0x91, 0x34, 0x0b, 0x29, 0xdb, 0x24, 0x72, 0xc8, 0x81, + 0x5e, 0xac, 0x89, 0x3d, 0x4a, 0x46, 0x89, 0x3d, 0xae, 0x67, 0x4c, 0x49, 0x7f, 0x45, 0xa5, 0xfe, + 0x95, 0xf6, 0x3f, 0xec, 0x71, 0x55, 0xa9, 0x52, 0xd5, 0x03, 0xaa, 0xe0, 0x5f, 0xec, 0xa9, 0xf2, + 0xd8, 0x26, 0x49, 0xcb, 0xaa, 0x34, 0xdd, 0x8b, 0xed, 0x79, 0xef, 0x7d, 0x1f, 0x33, 0xdf, 0xfb, + 0xde, 0x10, 0xd0, 0x71, 0x30, 0x26, 0xac, 0x16, 0x3f, 0xc7, 0x84, 0xf8, 0x24, 0x30, 0xfc, 0x80, + 0x09, 0x86, 0xf2, 0x32, 0x66, 0xc8, 0xe7, 0xee, 0xb3, 0x21, 0x1b, 0x32, 0x19, 0xaf, 0x45, 0x5f, + 0x71, 0xc9, 0xee, 0x8e, 0xcd, 0xb8, 0xcb, 0xb8, 0x15, 0x27, 0xe2, 0x45, 0x92, 0x2a, 0xc5, 0xab, + 0xda, 0x00, 0x73, 0x52, 0xbb, 0x7a, 0x39, 0x20, 0x02, 0xbf, 0xac, 0xd9, 0x8c, 0x7a, 0x71, 0xbe, + 0xf2, 0xcb, 0x1a, 0xe4, 0xba, 0x01, 0xbb, 0xa2, 0x0e, 0x09, 0xd0, 0x19, 0xac, 0xfb, 0xe1, 0xc0, + 0x1a, 0x93, 0xa9, 0xae, 0x94, 0x95, 0x6a, 0xa1, 0x5e, 0x7b, 0x77, 0xb3, 0x77, 0x30, 0xa4, 0x62, + 0x14, 0x0e, 0x0c, 0x9b, 0xb9, 0xf1, 0xf6, 0x3c, 0x22, 0xbe, 0x67, 0xc1, 0x38, 0xd9, 0xab, 0xcd, + 0x5c, 0x97, 0x79, 0x46, 0x37, 0x1c, 0x9c, 0x93, 0xa9, 0x99, 0xf5, 0xe5, 0x1b, 0x7d, 0x0d, 0xeb, + 0x9c, 0x04, 0x57, 0xd4, 0x26, 0xfa, 0x4a, 0x59, 0xa9, 0xae, 0xd5, 0x3f, 0x7b, 0x77, 0xb3, 0xf7, + 0xe2, 0x51, 0x4c, 0xbd, 0x18, 0x67, 0xa6, 0x04, 0xe8, 0x13, 0x28, 0xb8, 0x44, 0x60, 0x07, 0x0b, + 0x6c, 0x85, 0x01, 0xd5, 0x57, 0xcb, 0x4a, 0x75, 0xc3, 0xcc, 0xa7, 0xb1, 0x7e, 0x40, 0xd1, 0x73, + 0x28, 0xde, 0x97, 0x78, 0xcc, 0xb3, 0x89, 0xae, 0x96, 0x95, 0xaa, 0x6a, 0x6e, 0xa6, 0xd1, 0x76, + 0x14, 0x44, 0xc7, 0x90, 0xe5, 0x02, 0x8b, 0x90, 0xeb, 0x6b, 0x65, 0xa5, 0x5a, 0x3c, 0xfa, 0xd8, + 0x98, 0xd3, 0xd6, 0x48, 0x65, 0xe8, 0xc9, 0x12, 0x33, 0x29, 0x45, 0x47, 0xb0, 0xed, 0x52, 0xcf, + 0xb2, 0x99, 0x27, 0x02, 0x6c, 0x0b, 0xcb, 0x09, 0x03, 0x2c, 0x28, 0xf3, 0xf4, 0x6c, 0x59, 0xa9, + 0xae, 0x9a, 0x4f, 0x5d, 0xea, 0x35, 0x92, 0xdc, 0x57, 0x49, 0x4a, 0x62, 0xf0, 0xf5, 0x03, 0x98, + 0xf5, 0x04, 0x83, 0xaf, 0xff, 0x81, 0x79, 0x0d, 0x5b, 0x3c, 0x1c, 0x70, 0x3b, 0xa0, 0x7e, 0xb4, + 0xb6, 0x02, 0x2c, 0x88, 0x9e, 0x2b, 0xaf, 0x56, 0xf3, 0x47, 0x3b, 0x46, 0xd2, 0xd3, 0xa8, 0x8b, + 0x46, 0xd2, 0x45, 0xa3, 0xc1, 0xa8, 0x57, 0x57, 0xdf, 0xdc, 0xec, 0x65, 0x4c, 0x6d, 0x1e, 0x69, + 0x62, 0x41, 0xd0, 0x39, 0x20, 0x1f, 0x4f, 0x2d, 0xcc, 0xad, 0x29, 0x0b, 0xad, 0x21, 0x8b, 0xe9, + 0x36, 0x1e, 0x47, 0x57, 0xf4, 0xf1, 0xf4, 0x84, 0x5f, 0xb2, 0xf0, 0x94, 0x49, 0xb2, 0x2f, 0x41, + 0x1d, 0x30, 0xcf, 0xd1, 0x21, 0x52, 0xbe, 0x7e, 0x10, 0xd5, 0xfc, 0x71, 0xb3, 0xb7, 0x1d, 0xb3, + 0x70, 0x67, 0x6c, 0x50, 0x56, 0x73, 0xb1, 0x18, 0x19, 0x2d, 0x4f, 0xfc, 0xfa, 0xf3, 0x21, 0x24, + 0xf4, 0x2d, 0x4f, 0x98, 0x12, 0x88, 0xf6, 0x20, 0x3f, 0xc1, 0x5c, 0x58, 0xa1, 0xef, 0x44, 0xdb, + 0xc8, 0x4b, 0x15, 0x20, 0x0a, 0xf5, 0x65, 0x04, 0xd5, 0xe0, 0x29, 0x27, 0x42, 0x4c, 0x88, 0x4b, + 0xbc, 0x39, 0xb9, 0x0a, 0xb2, 0x10, 0xcd, 0x52, 0xa9, 0x5a, 0x95, 0xdf, 0xb2, 0x90, 0x4b, 0x25, + 0x44, 0xe7, 0x90, 0xf3, 0x93, 0xe6, 0x2d, 0x6b, 0xdc, 0x7b, 0x82, 0x0f, 0x6a, 0xdd, 0x53, 0xc8, + 0xda, 0x13, 0x4a, 0x3c, 0x21, 0x4d, 0xbb, 0xcc, 0x3c, 0xc5, 0xf0, 0xe8, 0x84, 0x0e, 0x99, 0x90, + 0x61, 0xa4, 0x9e, 0xba, 0xe4, 0x09, 0x53, 0x02, 0x74, 0x08, 0xaa, 0x98, 0xfa, 0x24, 0x19, 0x82, + 0x9d, 0x85, 0x21, 0x48, 0x35, 0xbd, 0x98, 0xfa, 0xc4, 0x94, 0x65, 0xe8, 0x23, 0xc8, 0x8e, 0x08, + 0x1d, 0x8e, 0x44, 0xe2, 0xf8, 0x64, 0x85, 0x76, 0x21, 0xf7, 0x37, 0x5f, 0xdf, 0xaf, 0xd1, 0x31, + 0xa8, 0x89, 0x7f, 0x95, 0xc7, 0x18, 0x4e, 0x16, 0xa3, 0x26, 0xac, 0x3b, 0xc4, 0x67, 0x9c, 0x0a, + 0x7d, 0xe3, 0xbf, 0x3b, 0x2d, 0xc5, 0x46, 0x6e, 0xf5, 0x31, 0x5d, 0xce, 0xad, 0x11, 0x10, 0x3d, + 0x83, 0xb5, 0xf8, 0x12, 0x89, 0x7d, 0x1a, 0x2f, 0xd0, 0x01, 0x6c, 0xcd, 0x59, 0x34, 0x51, 0x24, + 0x36, 0xa8, 0x36, 0x4b, 0x9c, 0xc5, 0xda, 0x14, 0x61, 0x85, 0x3a, 0xfa, 0xa6, 0xbc, 0x84, 0x56, + 0xa8, 0xf3, 0x3e, 0x7f, 0x17, 0xdf, 0xe7, 0x6f, 0x74, 0x06, 0x9b, 0x38, 0x14, 0x23, 0x16, 0xd0, + 0x1f, 0xe2, 0xd2, 0x27, 0xb2, 0x59, 0x95, 0x07, 0x9b, 0x75, 0x32, 0x5f, 0x69, 0x2e, 0x02, 0xd1, + 0x0b, 0x40, 0xdf, 0x85, 0x24, 0xa0, 0x84, 0x5b, 0x3e, 0x09, 0x2c, 0x97, 0x7a, 0xa1, 0x20, 0xba, + 0x16, 0x6f, 0x3c, 0xc9, 0x74, 0x49, 0xf0, 0x8d, 0x8c, 0x57, 0x3e, 0x87, 0x7c, 0xca, 0xda, 0x23, + 0x02, 0x3d, 0x87, 0xc2, 0xfd, 0x25, 0x46, 0x1d, 0xae, 0x2b, 0xe5, 0xd5, 0xaa, 0x5a, 0x5f, 0xd1, + 0x14, 0x33, 0x9f, 0xc6, 0x5b, 0x0e, 0xaf, 0x4c, 0x60, 0x3b, 0x45, 0x35, 0xaf, 0x7d, 0x1a, 0x9f, + 0x21, 0xc2, 0xcf, 0xbc, 0xa3, 0x2c, 0x78, 0xe7, 0x8b, 0x39, 0x5e, 0x4e, 0x84, 0x9c, 0xb4, 0xfc, + 0x91, 0xfe, 0xe0, 0xe9, 0x7a, 0x44, 0xcc, 0xfe, 0x5a, 0x8f, 0x88, 0xca, 0x4f, 0x0a, 0x3c, 0xe9, + 0x73, 0x12, 0xcc, 0x6f, 0xb4, 0x01, 0x6a, 0xc8, 0x97, 0x1f, 0x7f, 0x09, 0xfe, 0x5f, 0xbb, 0xda, + 0xff, 0x14, 0x8a, 0x8b, 0xff, 0x41, 0x50, 0x1e, 0xd6, 0x3b, 0xaf, 0x5e, 0xbd, 0x6e, 0xb5, 0x9b, + 0x5a, 0x06, 0x01, 0x64, 0x3b, 0x6d, 0xf9, 0xad, 0xec, 0x1f, 0x43, 0x61, 0x7e, 0xce, 0x90, 0x06, + 0x85, 0x5e, 0xbf, 0xde, 0x6b, 0x98, 0xad, 0xee, 0x45, 0xab, 0xd3, 0xd6, 0x32, 0x68, 0x0b, 0x36, + 0xbb, 0x27, 0x97, 0xd6, 0x49, 0xcf, 0xba, 0xec, 0xf4, 0xad, 0xd3, 0x8e, 0xa6, 0xec, 0x1f, 0xce, + 0x34, 0x5e, 0xe8, 0x77, 0xc4, 0xdc, 0xbb, 0x30, 0x5b, 0x8d, 0x0b, 0x2d, 0x83, 0x72, 0xa0, 0x76, + 0xba, 0xcd, 0xb6, 0xa6, 0xd4, 0x9b, 0x6f, 0x6e, 0x4b, 0xca, 0xdb, 0xdb, 0x92, 0xf2, 0xe7, 0x6d, + 0x49, 0xf9, 0xf1, 0xae, 0x94, 0x79, 0x7b, 0x57, 0xca, 0xfc, 0x7e, 0x57, 0xca, 0x7c, 0xfb, 0x2f, + 0xc2, 0x5c, 0x27, 0xef, 0x68, 0xf6, 0xf9, 0x20, 0x2b, 0x7f, 0x26, 0x1c, 0xff, 0x15, 0x00, 0x00, + 0xff, 0xff, 0xf0, 0x10, 0xd0, 0xfd, 0xa0, 0x08, 0x00, 0x00, +} + +func (m *Provider) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Provider) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Provider) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.SettlementDuration != 0 { + i = encodeVarintKeeper(dAtA, i, uint64(m.SettlementDuration)) + i-- + dAtA[i] = 0x60 + } + if m.LastUpdate != 0 { + i = encodeVarintKeeper(dAtA, i, uint64(m.LastUpdate)) + i-- + dAtA[i] = 0x58 + } + { + size := m.Bond.Size() + i -= size + if _, err := m.Bond.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintKeeper(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + if len(m.PayAsYouGoRate) > 0 { + for iNdEx := len(m.PayAsYouGoRate) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PayAsYouGoRate[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKeeper(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + } + if len(m.SubscriptionRate) > 0 { + for iNdEx := len(m.SubscriptionRate) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SubscriptionRate[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKeeper(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + } + if m.MaxContractDuration != 0 { + i = encodeVarintKeeper(dAtA, i, uint64(m.MaxContractDuration)) + i-- + dAtA[i] = 0x38 + } + if m.MinContractDuration != 0 { + i = encodeVarintKeeper(dAtA, i, uint64(m.MinContractDuration)) + i-- + dAtA[i] = 0x30 + } + if m.Status != 0 { + i = encodeVarintKeeper(dAtA, i, uint64(m.Status)) + i-- + dAtA[i] = 0x28 + } + if m.MetadataNonce != 0 { + i = encodeVarintKeeper(dAtA, i, uint64(m.MetadataNonce)) + i-- + dAtA[i] = 0x20 + } + if len(m.MetadataUri) > 0 { + i -= len(m.MetadataUri) + copy(dAtA[i:], m.MetadataUri) + i = encodeVarintKeeper(dAtA, i, uint64(len(m.MetadataUri))) + i-- + dAtA[i] = 0x1a + } + if m.Service != 0 { + i = encodeVarintKeeper(dAtA, i, uint64(m.Service)) + i-- + dAtA[i] = 0x10 + } + if len(m.PubKey) > 0 { + i -= len(m.PubKey) + copy(dAtA[i:], m.PubKey) + i = encodeVarintKeeper(dAtA, i, uint64(len(m.PubKey))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Contract) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Contract) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Contract) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.QueriesPerMinute != 0 { + i = encodeVarintKeeper(dAtA, i, uint64(m.QueriesPerMinute)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x80 + } + if m.Authorization != 0 { + i = encodeVarintKeeper(dAtA, i, uint64(m.Authorization)) + i-- + dAtA[i] = 0x78 + } + if m.SettlementDuration != 0 { + i = encodeVarintKeeper(dAtA, i, uint64(m.SettlementDuration)) + i-- + dAtA[i] = 0x70 + } + if m.Id != 0 { + i = encodeVarintKeeper(dAtA, i, uint64(m.Id)) + i-- + dAtA[i] = 0x68 + } + if m.SettlementHeight != 0 { + i = encodeVarintKeeper(dAtA, i, uint64(m.SettlementHeight)) + i-- + dAtA[i] = 0x60 + } + if m.Nonce != 0 { + i = encodeVarintKeeper(dAtA, i, uint64(m.Nonce)) + i-- + dAtA[i] = 0x58 + } + { + size := m.Paid.Size() + i -= size + if _, err := m.Paid.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintKeeper(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + { + size := m.Deposit.Size() + i -= size + if _, err := m.Deposit.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintKeeper(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + { + size, err := m.Rate.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKeeper(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + if m.Duration != 0 { + i = encodeVarintKeeper(dAtA, i, uint64(m.Duration)) + i-- + dAtA[i] = 0x38 + } + if m.Height != 0 { + i = encodeVarintKeeper(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x30 + } + if m.Type != 0 { + i = encodeVarintKeeper(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x28 + } + if len(m.Delegate) > 0 { + i -= len(m.Delegate) + copy(dAtA[i:], m.Delegate) + i = encodeVarintKeeper(dAtA, i, uint64(len(m.Delegate))) + i-- + dAtA[i] = 0x22 + } + if len(m.Client) > 0 { + i -= len(m.Client) + copy(dAtA[i:], m.Client) + i = encodeVarintKeeper(dAtA, i, uint64(len(m.Client))) + i-- + dAtA[i] = 0x1a + } + if m.Service != 0 { + i = encodeVarintKeeper(dAtA, i, uint64(m.Service)) + i-- + dAtA[i] = 0x10 + } + if len(m.Provider) > 0 { + i -= len(m.Provider) + copy(dAtA[i:], m.Provider) + i = encodeVarintKeeper(dAtA, i, uint64(len(m.Provider))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ContractSet) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ContractSet) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ContractSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ContractIds) > 0 { + dAtA3 := make([]byte, len(m.ContractIds)*10) + var j2 int + for _, num := range m.ContractIds { + for num >= 1<<7 { + dAtA3[j2] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j2++ + } + dAtA3[j2] = uint8(num) + j2++ + } + i -= j2 + copy(dAtA[i:], dAtA3[:j2]) + i = encodeVarintKeeper(dAtA, i, uint64(j2)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ContractExpirationSet) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ContractExpirationSet) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ContractExpirationSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ContractSet != nil { + { + size, err := m.ContractSet.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKeeper(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Height != 0 { + i = encodeVarintKeeper(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *UserContractSet) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UserContractSet) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UserContractSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ContractSet != nil { + { + size, err := m.ContractSet.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKeeper(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.User) > 0 { + i -= len(m.User) + copy(dAtA[i:], m.User) + i = encodeVarintKeeper(dAtA, i, uint64(len(m.User))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintKeeper(dAtA []byte, offset int, v uint64) int { + offset -= sovKeeper(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Provider) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.PubKey) + if l > 0 { + n += 1 + l + sovKeeper(uint64(l)) + } + if m.Service != 0 { + n += 1 + sovKeeper(uint64(m.Service)) + } + l = len(m.MetadataUri) + if l > 0 { + n += 1 + l + sovKeeper(uint64(l)) + } + if m.MetadataNonce != 0 { + n += 1 + sovKeeper(uint64(m.MetadataNonce)) + } + if m.Status != 0 { + n += 1 + sovKeeper(uint64(m.Status)) + } + if m.MinContractDuration != 0 { + n += 1 + sovKeeper(uint64(m.MinContractDuration)) + } + if m.MaxContractDuration != 0 { + n += 1 + sovKeeper(uint64(m.MaxContractDuration)) + } + if len(m.SubscriptionRate) > 0 { + for _, e := range m.SubscriptionRate { + l = e.Size() + n += 1 + l + sovKeeper(uint64(l)) + } + } + if len(m.PayAsYouGoRate) > 0 { + for _, e := range m.PayAsYouGoRate { + l = e.Size() + n += 1 + l + sovKeeper(uint64(l)) + } + } + l = m.Bond.Size() + n += 1 + l + sovKeeper(uint64(l)) + if m.LastUpdate != 0 { + n += 1 + sovKeeper(uint64(m.LastUpdate)) + } + if m.SettlementDuration != 0 { + n += 1 + sovKeeper(uint64(m.SettlementDuration)) + } + return n +} + +func (m *Contract) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Provider) + if l > 0 { + n += 1 + l + sovKeeper(uint64(l)) + } + if m.Service != 0 { + n += 1 + sovKeeper(uint64(m.Service)) + } + l = len(m.Client) + if l > 0 { + n += 1 + l + sovKeeper(uint64(l)) + } + l = len(m.Delegate) + if l > 0 { + n += 1 + l + sovKeeper(uint64(l)) + } + if m.Type != 0 { + n += 1 + sovKeeper(uint64(m.Type)) + } + if m.Height != 0 { + n += 1 + sovKeeper(uint64(m.Height)) + } + if m.Duration != 0 { + n += 1 + sovKeeper(uint64(m.Duration)) + } + l = m.Rate.Size() + n += 1 + l + sovKeeper(uint64(l)) + l = m.Deposit.Size() + n += 1 + l + sovKeeper(uint64(l)) + l = m.Paid.Size() + n += 1 + l + sovKeeper(uint64(l)) + if m.Nonce != 0 { + n += 1 + sovKeeper(uint64(m.Nonce)) + } + if m.SettlementHeight != 0 { + n += 1 + sovKeeper(uint64(m.SettlementHeight)) + } + if m.Id != 0 { + n += 1 + sovKeeper(uint64(m.Id)) + } + if m.SettlementDuration != 0 { + n += 1 + sovKeeper(uint64(m.SettlementDuration)) + } + if m.Authorization != 0 { + n += 1 + sovKeeper(uint64(m.Authorization)) + } + if m.QueriesPerMinute != 0 { + n += 2 + sovKeeper(uint64(m.QueriesPerMinute)) + } + return n +} + +func (m *ContractSet) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ContractIds) > 0 { + l = 0 + for _, e := range m.ContractIds { + l += sovKeeper(uint64(e)) + } + n += 1 + sovKeeper(uint64(l)) + l + } + return n +} + +func (m *ContractExpirationSet) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Height != 0 { + n += 1 + sovKeeper(uint64(m.Height)) + } + if m.ContractSet != nil { + l = m.ContractSet.Size() + n += 1 + l + sovKeeper(uint64(l)) + } + return n +} + +func (m *UserContractSet) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.User) + if l > 0 { + n += 1 + l + sovKeeper(uint64(l)) + } + if m.ContractSet != nil { + l = m.ContractSet.Size() + n += 1 + l + sovKeeper(uint64(l)) + } + return n +} + +func sovKeeper(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozKeeper(x uint64) (n int) { + return sovKeeper(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Provider) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Provider: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Provider: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PubKey", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthKeeper + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKeeper + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PubKey = append(m.PubKey[:0], dAtA[iNdEx:postIndex]...) + if m.PubKey == nil { + m.PubKey = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Service", wireType) + } + m.Service = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Service |= github_com_arkeonetwork_arkeo_common.Service(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MetadataUri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthKeeper + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKeeper + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MetadataUri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MetadataNonce", wireType) + } + m.MetadataNonce = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MetadataNonce |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + m.Status = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Status |= ProviderStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MinContractDuration", wireType) + } + m.MinContractDuration = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MinContractDuration |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxContractDuration", wireType) + } + m.MaxContractDuration = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxContractDuration |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SubscriptionRate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthKeeper + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKeeper + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SubscriptionRate = append(m.SubscriptionRate, types.Coin{}) + if err := m.SubscriptionRate[len(m.SubscriptionRate)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PayAsYouGoRate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthKeeper + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKeeper + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PayAsYouGoRate = append(m.PayAsYouGoRate, types.Coin{}) + if err := m.PayAsYouGoRate[len(m.PayAsYouGoRate)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Bond", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthKeeper + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKeeper + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Bond.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastUpdate", wireType) + } + m.LastUpdate = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastUpdate |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SettlementDuration", wireType) + } + m.SettlementDuration = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SettlementDuration |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipKeeper(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthKeeper + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Contract) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Contract: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Contract: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Provider", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthKeeper + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKeeper + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Provider = append(m.Provider[:0], dAtA[iNdEx:postIndex]...) + if m.Provider == nil { + m.Provider = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Service", wireType) + } + m.Service = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Service |= github_com_arkeonetwork_arkeo_common.Service(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Client", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthKeeper + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKeeper + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Client = append(m.Client[:0], dAtA[iNdEx:postIndex]...) + if m.Client == nil { + m.Client = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Delegate", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthKeeper + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKeeper + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Delegate = append(m.Delegate[:0], dAtA[iNdEx:postIndex]...) + if m.Delegate == nil { + m.Delegate = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= ContractType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Duration", wireType) + } + m.Duration = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Duration |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Rate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthKeeper + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKeeper + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Rate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Deposit", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthKeeper + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKeeper + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Deposit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Paid", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthKeeper + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKeeper + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Paid.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) + } + m.Nonce = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Nonce |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SettlementHeight", wireType) + } + m.SettlementHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SettlementHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + m.Id = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Id |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SettlementDuration", wireType) + } + m.SettlementDuration = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SettlementDuration |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 15: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Authorization", wireType) + } + m.Authorization = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Authorization |= ContractAuthorization(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 16: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field QueriesPerMinute", wireType) + } + m.QueriesPerMinute = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.QueriesPerMinute |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipKeeper(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthKeeper + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ContractSet) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContractSet: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContractSet: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ContractIds = append(m.ContractIds, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthKeeper + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthKeeper + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.ContractIds) == 0 { + m.ContractIds = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ContractIds = append(m.ContractIds, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field ContractIds", wireType) + } + default: + iNdEx = preIndex + skippy, err := skipKeeper(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthKeeper + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ContractExpirationSet) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContractExpirationSet: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContractExpirationSet: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractSet", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthKeeper + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKeeper + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ContractSet == nil { + m.ContractSet = &ContractSet{} + } + if err := m.ContractSet.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipKeeper(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthKeeper + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UserContractSet) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UserContractSet: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UserContractSet: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthKeeper + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKeeper + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.User = append(m.User[:0], dAtA[iNdEx:postIndex]...) + if m.User == nil { + m.User = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractSet", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeeper + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthKeeper + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKeeper + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ContractSet == nil { + m.ContractSet = &ContractSet{} + } + if err := m.ContractSet.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipKeeper(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthKeeper + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipKeeper(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowKeeper + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowKeeper + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowKeeper + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthKeeper + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupKeeper + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthKeeper + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthKeeper = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowKeeper = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupKeeper = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/arkeo/types/misc.pb.go b/x/arkeo/types/misc.pb.go new file mode 100644 index 00000000..cf4b0e02 --- /dev/null +++ b/x/arkeo/types/misc.pb.go @@ -0,0 +1,1021 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: arkeo/arkeo/misc.proto + +package types + +import ( + fmt "fmt" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type ProtoInt64 struct { + Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *ProtoInt64) Reset() { *m = ProtoInt64{} } +func (m *ProtoInt64) String() string { return proto.CompactTextString(m) } +func (*ProtoInt64) ProtoMessage() {} +func (*ProtoInt64) Descriptor() ([]byte, []int) { + return fileDescriptor_64a3fa5463db3b34, []int{0} +} +func (m *ProtoInt64) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ProtoInt64) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ProtoInt64.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ProtoInt64) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProtoInt64.Merge(m, src) +} +func (m *ProtoInt64) XXX_Size() int { + return m.Size() +} +func (m *ProtoInt64) XXX_DiscardUnknown() { + xxx_messageInfo_ProtoInt64.DiscardUnknown(m) +} + +var xxx_messageInfo_ProtoInt64 proto.InternalMessageInfo + +func (m *ProtoInt64) GetValue() int64 { + if m != nil { + return m.Value + } + return 0 +} + +type ProtoUint64 struct { + Value uint64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *ProtoUint64) Reset() { *m = ProtoUint64{} } +func (m *ProtoUint64) String() string { return proto.CompactTextString(m) } +func (*ProtoUint64) ProtoMessage() {} +func (*ProtoUint64) Descriptor() ([]byte, []int) { + return fileDescriptor_64a3fa5463db3b34, []int{1} +} +func (m *ProtoUint64) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ProtoUint64) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ProtoUint64.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ProtoUint64) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProtoUint64.Merge(m, src) +} +func (m *ProtoUint64) XXX_Size() int { + return m.Size() +} +func (m *ProtoUint64) XXX_DiscardUnknown() { + xxx_messageInfo_ProtoUint64.DiscardUnknown(m) +} + +var xxx_messageInfo_ProtoUint64 proto.InternalMessageInfo + +func (m *ProtoUint64) GetValue() uint64 { + if m != nil { + return m.Value + } + return 0 +} + +type ProtoAccAddresses struct { + Value []github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,rep,name=value,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"value,omitempty"` +} + +func (m *ProtoAccAddresses) Reset() { *m = ProtoAccAddresses{} } +func (m *ProtoAccAddresses) String() string { return proto.CompactTextString(m) } +func (*ProtoAccAddresses) ProtoMessage() {} +func (*ProtoAccAddresses) Descriptor() ([]byte, []int) { + return fileDescriptor_64a3fa5463db3b34, []int{2} +} +func (m *ProtoAccAddresses) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ProtoAccAddresses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ProtoAccAddresses.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ProtoAccAddresses) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProtoAccAddresses.Merge(m, src) +} +func (m *ProtoAccAddresses) XXX_Size() int { + return m.Size() +} +func (m *ProtoAccAddresses) XXX_DiscardUnknown() { + xxx_messageInfo_ProtoAccAddresses.DiscardUnknown(m) +} + +var xxx_messageInfo_ProtoAccAddresses proto.InternalMessageInfo + +func (m *ProtoAccAddresses) GetValue() []github_com_cosmos_cosmos_sdk_types.AccAddress { + if m != nil { + return m.Value + } + return nil +} + +type ProtoStrings struct { + Value []string `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"` +} + +func (m *ProtoStrings) Reset() { *m = ProtoStrings{} } +func (m *ProtoStrings) String() string { return proto.CompactTextString(m) } +func (*ProtoStrings) ProtoMessage() {} +func (*ProtoStrings) Descriptor() ([]byte, []int) { + return fileDescriptor_64a3fa5463db3b34, []int{3} +} +func (m *ProtoStrings) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ProtoStrings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ProtoStrings.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ProtoStrings) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProtoStrings.Merge(m, src) +} +func (m *ProtoStrings) XXX_Size() int { + return m.Size() +} +func (m *ProtoStrings) XXX_DiscardUnknown() { + xxx_messageInfo_ProtoStrings.DiscardUnknown(m) +} + +var xxx_messageInfo_ProtoStrings proto.InternalMessageInfo + +func (m *ProtoStrings) GetValue() []string { + if m != nil { + return m.Value + } + return nil +} + +type ProtoBools struct { + Value []bool `protobuf:"varint,1,rep,packed,name=value,proto3" json:"value,omitempty"` +} + +func (m *ProtoBools) Reset() { *m = ProtoBools{} } +func (m *ProtoBools) String() string { return proto.CompactTextString(m) } +func (*ProtoBools) ProtoMessage() {} +func (*ProtoBools) Descriptor() ([]byte, []int) { + return fileDescriptor_64a3fa5463db3b34, []int{4} +} +func (m *ProtoBools) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ProtoBools) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ProtoBools.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ProtoBools) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProtoBools.Merge(m, src) +} +func (m *ProtoBools) XXX_Size() int { + return m.Size() +} +func (m *ProtoBools) XXX_DiscardUnknown() { + xxx_messageInfo_ProtoBools.DiscardUnknown(m) +} + +var xxx_messageInfo_ProtoBools proto.InternalMessageInfo + +func (m *ProtoBools) GetValue() []bool { + if m != nil { + return m.Value + } + return nil +} + +func init() { + proto.RegisterType((*ProtoInt64)(nil), "arkeo.arkeo.ProtoInt64") + proto.RegisterType((*ProtoUint64)(nil), "arkeo.arkeo.ProtoUint64") + proto.RegisterType((*ProtoAccAddresses)(nil), "arkeo.arkeo.ProtoAccAddresses") + proto.RegisterType((*ProtoStrings)(nil), "arkeo.arkeo.ProtoStrings") + proto.RegisterType((*ProtoBools)(nil), "arkeo.arkeo.ProtoBools") +} + +func init() { proto.RegisterFile("arkeo/arkeo/misc.proto", fileDescriptor_64a3fa5463db3b34) } + +var fileDescriptor_64a3fa5463db3b34 = []byte{ + // 254 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4b, 0x2c, 0xca, 0x4e, + 0xcd, 0xd7, 0x87, 0x90, 0xb9, 0x99, 0xc5, 0xc9, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0xdc, + 0x60, 0x11, 0x3d, 0x30, 0x29, 0x25, 0x92, 0x9e, 0x9f, 0x9e, 0x0f, 0x16, 0xd7, 0x07, 0xb1, 0x20, + 0x4a, 0x94, 0x94, 0xb8, 0xb8, 0x02, 0x40, 0x0c, 0xcf, 0xbc, 0x12, 0x33, 0x13, 0x21, 0x11, 0x2e, + 0xd6, 0xb2, 0xc4, 0x9c, 0xd2, 0x54, 0x09, 0x46, 0x05, 0x46, 0x0d, 0xe6, 0x20, 0x08, 0x47, 0x49, + 0x99, 0x8b, 0x1b, 0xac, 0x26, 0x34, 0x13, 0x53, 0x11, 0x0b, 0x4c, 0x51, 0x0c, 0x97, 0x20, 0x58, + 0x91, 0x63, 0x72, 0xb2, 0x63, 0x4a, 0x4a, 0x51, 0x6a, 0x71, 0x71, 0x6a, 0xb1, 0x90, 0x3b, 0x42, + 0x29, 0xb3, 0x06, 0x8f, 0x93, 0xe1, 0xaf, 0x7b, 0xf2, 0xba, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, + 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0xc9, 0xf9, 0xc5, 0xb9, 0xf9, 0xc5, 0x50, 0x4a, 0xb7, 0x38, 0x25, + 0x5b, 0xbf, 0xa4, 0xb2, 0x20, 0xb5, 0x58, 0x0f, 0x61, 0x06, 0xcc, 0x74, 0x15, 0x2e, 0x1e, 0xb0, + 0xe9, 0xc1, 0x25, 0x45, 0x99, 0x79, 0xe9, 0xc5, 0xc8, 0x6e, 0x60, 0xd6, 0xe0, 0x84, 0xa9, 0x82, + 0x79, 0xc6, 0x29, 0x3f, 0x3f, 0x07, 0x4d, 0x0d, 0x07, 0x54, 0x8d, 0x93, 0xeb, 0x89, 0x47, 0x72, + 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0x38, 0xe1, 0xb1, 0x1c, 0xc3, 0x85, 0xc7, + 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0x69, 0x23, 0xb9, 0x0c, 0x1c, 0x64, 0x79, 0xa9, 0x25, + 0xe5, 0xf9, 0x45, 0xd9, 0xd0, 0x70, 0xad, 0x80, 0xd2, 0x60, 0x27, 0x26, 0xb1, 0x81, 0x83, 0xcf, + 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x58, 0x21, 0x56, 0x5d, 0x7b, 0x01, 0x00, 0x00, +} + +func (m *ProtoInt64) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ProtoInt64) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ProtoInt64) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != 0 { + i = encodeVarintMisc(dAtA, i, uint64(m.Value)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ProtoUint64) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ProtoUint64) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ProtoUint64) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != 0 { + i = encodeVarintMisc(dAtA, i, uint64(m.Value)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ProtoAccAddresses) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ProtoAccAddresses) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ProtoAccAddresses) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Value) > 0 { + for iNdEx := len(m.Value) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Value[iNdEx]) + copy(dAtA[i:], m.Value[iNdEx]) + i = encodeVarintMisc(dAtA, i, uint64(len(m.Value[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *ProtoStrings) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ProtoStrings) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ProtoStrings) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Value) > 0 { + for iNdEx := len(m.Value) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Value[iNdEx]) + copy(dAtA[i:], m.Value[iNdEx]) + i = encodeVarintMisc(dAtA, i, uint64(len(m.Value[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *ProtoBools) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ProtoBools) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ProtoBools) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Value) > 0 { + for iNdEx := len(m.Value) - 1; iNdEx >= 0; iNdEx-- { + i-- + if m.Value[iNdEx] { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + } + i = encodeVarintMisc(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintMisc(dAtA []byte, offset int, v uint64) int { + offset -= sovMisc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ProtoInt64) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != 0 { + n += 1 + sovMisc(uint64(m.Value)) + } + return n +} + +func (m *ProtoUint64) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != 0 { + n += 1 + sovMisc(uint64(m.Value)) + } + return n +} + +func (m *ProtoAccAddresses) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Value) > 0 { + for _, b := range m.Value { + l = len(b) + n += 1 + l + sovMisc(uint64(l)) + } + } + return n +} + +func (m *ProtoStrings) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Value) > 0 { + for _, s := range m.Value { + l = len(s) + n += 1 + l + sovMisc(uint64(l)) + } + } + return n +} + +func (m *ProtoBools) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Value) > 0 { + n += 1 + sovMisc(uint64(len(m.Value))) + len(m.Value)*1 + } + return n +} + +func sovMisc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozMisc(x uint64) (n int) { + return sovMisc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ProtoInt64) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMisc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ProtoInt64: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ProtoInt64: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + m.Value = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMisc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Value |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipMisc(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMisc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ProtoUint64) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMisc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ProtoUint64: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ProtoUint64: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + m.Value = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMisc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Value |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipMisc(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMisc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ProtoAccAddresses) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMisc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ProtoAccAddresses: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ProtoAccAddresses: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMisc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthMisc + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthMisc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = append(m.Value, make([]byte, postIndex-iNdEx)) + copy(m.Value[len(m.Value)-1], dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMisc(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMisc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ProtoStrings) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMisc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ProtoStrings: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ProtoStrings: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMisc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMisc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMisc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = append(m.Value, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMisc(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMisc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ProtoBools) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMisc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ProtoBools: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ProtoBools: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType == 0 { + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMisc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Value = append(m.Value, bool(v != 0)) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMisc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthMisc + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthMisc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + elementCount = packedLen + if elementCount != 0 && len(m.Value) == 0 { + m.Value = make([]bool, 0, elementCount) + } + for iNdEx < postIndex { + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMisc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Value = append(m.Value, bool(v != 0)) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + default: + iNdEx = preIndex + skippy, err := skipMisc(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMisc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipMisc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowMisc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowMisc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowMisc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthMisc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupMisc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthMisc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthMisc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowMisc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupMisc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/arkeo/types/params.pb.go b/x/arkeo/types/params.pb.go new file mode 100644 index 00000000..02ff30d3 --- /dev/null +++ b/x/arkeo/types/params.pb.go @@ -0,0 +1,263 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: arkeo/arkeo/params.proto + +package types + +import ( + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// Params defines the parameters for the module. +type Params struct { +} + +func (m *Params) Reset() { *m = Params{} } +func (*Params) ProtoMessage() {} +func (*Params) Descriptor() ([]byte, []int) { + return fileDescriptor_47c871f4fc73dfc5, []int{0} +} +func (m *Params) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Params.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Params) XXX_Merge(src proto.Message) { + xxx_messageInfo_Params.Merge(m, src) +} +func (m *Params) XXX_Size() int { + return m.Size() +} +func (m *Params) XXX_DiscardUnknown() { + xxx_messageInfo_Params.DiscardUnknown(m) +} + +var xxx_messageInfo_Params proto.InternalMessageInfo + +func init() { + proto.RegisterType((*Params)(nil), "arkeo.arkeo.Params") +} + +func init() { proto.RegisterFile("arkeo/arkeo/params.proto", fileDescriptor_47c871f4fc73dfc5) } + +var fileDescriptor_47c871f4fc73dfc5 = []byte{ + // 142 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x48, 0x2c, 0xca, 0x4e, + 0xcd, 0xd7, 0x87, 0x90, 0x05, 0x89, 0x45, 0x89, 0xb9, 0xc5, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, + 0x42, 0xdc, 0x60, 0x31, 0x3d, 0x30, 0x29, 0x25, 0x92, 0x9e, 0x9f, 0x9e, 0x0f, 0x16, 0xd7, 0x07, + 0xb1, 0x20, 0x4a, 0x94, 0xf8, 0xb8, 0xd8, 0x02, 0xc0, 0x5a, 0xac, 0x58, 0x66, 0x2c, 0x90, 0x67, + 0x70, 0x72, 0x3d, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, + 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0xed, 0xf4, 0xcc, + 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x88, 0x5d, 0x79, 0xa9, 0x25, 0xe5, 0xf9, 0x45, + 0xd9, 0x50, 0x8b, 0x2b, 0xa0, 0x74, 0x49, 0x65, 0x41, 0x6a, 0x71, 0x12, 0x1b, 0xd8, 0x74, 0x63, + 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x93, 0xe1, 0x2d, 0xa8, 0x9c, 0x00, 0x00, 0x00, +} + +func (m *Params) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Params) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func encodeVarintParams(dAtA []byte, offset int, v uint64) int { + offset -= sovParams(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Params) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func sovParams(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozParams(x uint64) (n int) { + return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Params) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Params: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipParams(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthParams + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipParams(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowParams + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowParams + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowParams + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthParams + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupParams + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthParams + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/arkeo/types/query.pb.go b/x/arkeo/types/query.pb.go new file mode 100644 index 00000000..91f9cdfa --- /dev/null +++ b/x/arkeo/types/query.pb.go @@ -0,0 +1,2749 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: arkeo/arkeo/query.proto + +package types + +import ( + context "context" + fmt "fmt" + query "github.com/cosmos/cosmos-sdk/types/query" + _ "github.com/cosmos/gogoproto/gogoproto" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// QueryParamsRequest is request type for the Query/Params RPC method. +type QueryParamsRequest struct { +} + +func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } +func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryParamsRequest) ProtoMessage() {} +func (*QueryParamsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4b28dca1d1dd051d, []int{0} +} +func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryParamsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryParamsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryParamsRequest.Merge(m, src) +} +func (m *QueryParamsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryParamsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo + +// QueryParamsResponse is response type for the Query/Params RPC method. +type QueryParamsResponse struct { + // params holds all the parameters of this module. + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` +} + +func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } +func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryParamsResponse) ProtoMessage() {} +func (*QueryParamsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4b28dca1d1dd051d, []int{1} +} +func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryParamsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryParamsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryParamsResponse.Merge(m, src) +} +func (m *QueryParamsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryParamsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo + +func (m *QueryParamsResponse) GetParams() Params { + if m != nil { + return m.Params + } + return Params{} +} + +type QueryFetchProviderRequest struct { + Pubkey string `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"` + Service string `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"` +} + +func (m *QueryFetchProviderRequest) Reset() { *m = QueryFetchProviderRequest{} } +func (m *QueryFetchProviderRequest) String() string { return proto.CompactTextString(m) } +func (*QueryFetchProviderRequest) ProtoMessage() {} +func (*QueryFetchProviderRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4b28dca1d1dd051d, []int{2} +} +func (m *QueryFetchProviderRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryFetchProviderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryFetchProviderRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryFetchProviderRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryFetchProviderRequest.Merge(m, src) +} +func (m *QueryFetchProviderRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryFetchProviderRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryFetchProviderRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryFetchProviderRequest proto.InternalMessageInfo + +func (m *QueryFetchProviderRequest) GetPubkey() string { + if m != nil { + return m.Pubkey + } + return "" +} + +func (m *QueryFetchProviderRequest) GetService() string { + if m != nil { + return m.Service + } + return "" +} + +type QueryFetchProviderResponse struct { + Provider Provider `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider"` +} + +func (m *QueryFetchProviderResponse) Reset() { *m = QueryFetchProviderResponse{} } +func (m *QueryFetchProviderResponse) String() string { return proto.CompactTextString(m) } +func (*QueryFetchProviderResponse) ProtoMessage() {} +func (*QueryFetchProviderResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4b28dca1d1dd051d, []int{3} +} +func (m *QueryFetchProviderResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryFetchProviderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryFetchProviderResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryFetchProviderResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryFetchProviderResponse.Merge(m, src) +} +func (m *QueryFetchProviderResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryFetchProviderResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryFetchProviderResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryFetchProviderResponse proto.InternalMessageInfo + +func (m *QueryFetchProviderResponse) GetProvider() Provider { + if m != nil { + return m.Provider + } + return Provider{} +} + +type QueryAllProviderRequest struct { + Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllProviderRequest) Reset() { *m = QueryAllProviderRequest{} } +func (m *QueryAllProviderRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAllProviderRequest) ProtoMessage() {} +func (*QueryAllProviderRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4b28dca1d1dd051d, []int{4} +} +func (m *QueryAllProviderRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllProviderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllProviderRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryAllProviderRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllProviderRequest.Merge(m, src) +} +func (m *QueryAllProviderRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAllProviderRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllProviderRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllProviderRequest proto.InternalMessageInfo + +func (m *QueryAllProviderRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +type QueryAllProviderResponse struct { + Provider []Provider `protobuf:"bytes,1,rep,name=provider,proto3" json:"provider"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllProviderResponse) Reset() { *m = QueryAllProviderResponse{} } +func (m *QueryAllProviderResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAllProviderResponse) ProtoMessage() {} +func (*QueryAllProviderResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4b28dca1d1dd051d, []int{5} +} +func (m *QueryAllProviderResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllProviderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllProviderResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryAllProviderResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllProviderResponse.Merge(m, src) +} +func (m *QueryAllProviderResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAllProviderResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllProviderResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllProviderResponse proto.InternalMessageInfo + +func (m *QueryAllProviderResponse) GetProvider() []Provider { + if m != nil { + return m.Provider + } + return nil +} + +func (m *QueryAllProviderResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +type QueryFetchContractRequest struct { + ContractId uint64 `protobuf:"varint,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` +} + +func (m *QueryFetchContractRequest) Reset() { *m = QueryFetchContractRequest{} } +func (m *QueryFetchContractRequest) String() string { return proto.CompactTextString(m) } +func (*QueryFetchContractRequest) ProtoMessage() {} +func (*QueryFetchContractRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4b28dca1d1dd051d, []int{6} +} +func (m *QueryFetchContractRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryFetchContractRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryFetchContractRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryFetchContractRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryFetchContractRequest.Merge(m, src) +} +func (m *QueryFetchContractRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryFetchContractRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryFetchContractRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryFetchContractRequest proto.InternalMessageInfo + +func (m *QueryFetchContractRequest) GetContractId() uint64 { + if m != nil { + return m.ContractId + } + return 0 +} + +type QueryFetchContractResponse struct { + Contract Contract `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract"` +} + +func (m *QueryFetchContractResponse) Reset() { *m = QueryFetchContractResponse{} } +func (m *QueryFetchContractResponse) String() string { return proto.CompactTextString(m) } +func (*QueryFetchContractResponse) ProtoMessage() {} +func (*QueryFetchContractResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4b28dca1d1dd051d, []int{7} +} +func (m *QueryFetchContractResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryFetchContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryFetchContractResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryFetchContractResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryFetchContractResponse.Merge(m, src) +} +func (m *QueryFetchContractResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryFetchContractResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryFetchContractResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryFetchContractResponse proto.InternalMessageInfo + +func (m *QueryFetchContractResponse) GetContract() Contract { + if m != nil { + return m.Contract + } + return Contract{} +} + +type QueryAllContractRequest struct { + Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllContractRequest) Reset() { *m = QueryAllContractRequest{} } +func (m *QueryAllContractRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAllContractRequest) ProtoMessage() {} +func (*QueryAllContractRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4b28dca1d1dd051d, []int{8} +} +func (m *QueryAllContractRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllContractRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllContractRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryAllContractRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllContractRequest.Merge(m, src) +} +func (m *QueryAllContractRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAllContractRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllContractRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllContractRequest proto.InternalMessageInfo + +func (m *QueryAllContractRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +type QueryAllContractResponse struct { + Contract []Contract `protobuf:"bytes,1,rep,name=contract,proto3" json:"contract"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllContractResponse) Reset() { *m = QueryAllContractResponse{} } +func (m *QueryAllContractResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAllContractResponse) ProtoMessage() {} +func (*QueryAllContractResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4b28dca1d1dd051d, []int{9} +} +func (m *QueryAllContractResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllContractResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryAllContractResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllContractResponse.Merge(m, src) +} +func (m *QueryAllContractResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAllContractResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllContractResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllContractResponse proto.InternalMessageInfo + +func (m *QueryAllContractResponse) GetContract() []Contract { + if m != nil { + return m.Contract + } + return nil +} + +func (m *QueryAllContractResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +// this line is used by starport scaffolding # 3 +type QueryActiveContractRequest struct { + Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"` + Service string `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"` + Spender string `protobuf:"bytes,3,opt,name=spender,proto3" json:"spender,omitempty"` +} + +func (m *QueryActiveContractRequest) Reset() { *m = QueryActiveContractRequest{} } +func (m *QueryActiveContractRequest) String() string { return proto.CompactTextString(m) } +func (*QueryActiveContractRequest) ProtoMessage() {} +func (*QueryActiveContractRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4b28dca1d1dd051d, []int{10} +} +func (m *QueryActiveContractRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryActiveContractRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryActiveContractRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryActiveContractRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryActiveContractRequest.Merge(m, src) +} +func (m *QueryActiveContractRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryActiveContractRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryActiveContractRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryActiveContractRequest proto.InternalMessageInfo + +func (m *QueryActiveContractRequest) GetProvider() string { + if m != nil { + return m.Provider + } + return "" +} + +func (m *QueryActiveContractRequest) GetService() string { + if m != nil { + return m.Service + } + return "" +} + +func (m *QueryActiveContractRequest) GetSpender() string { + if m != nil { + return m.Spender + } + return "" +} + +type QueryActiveContractResponse struct { + Contract Contract `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract"` +} + +func (m *QueryActiveContractResponse) Reset() { *m = QueryActiveContractResponse{} } +func (m *QueryActiveContractResponse) String() string { return proto.CompactTextString(m) } +func (*QueryActiveContractResponse) ProtoMessage() {} +func (*QueryActiveContractResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4b28dca1d1dd051d, []int{11} +} +func (m *QueryActiveContractResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryActiveContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryActiveContractResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryActiveContractResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryActiveContractResponse.Merge(m, src) +} +func (m *QueryActiveContractResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryActiveContractResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryActiveContractResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryActiveContractResponse proto.InternalMessageInfo + +func (m *QueryActiveContractResponse) GetContract() Contract { + if m != nil { + return m.Contract + } + return Contract{} +} + +func init() { + proto.RegisterType((*QueryParamsRequest)(nil), "arkeo.arkeo.QueryParamsRequest") + proto.RegisterType((*QueryParamsResponse)(nil), "arkeo.arkeo.QueryParamsResponse") + proto.RegisterType((*QueryFetchProviderRequest)(nil), "arkeo.arkeo.QueryFetchProviderRequest") + proto.RegisterType((*QueryFetchProviderResponse)(nil), "arkeo.arkeo.QueryFetchProviderResponse") + proto.RegisterType((*QueryAllProviderRequest)(nil), "arkeo.arkeo.QueryAllProviderRequest") + proto.RegisterType((*QueryAllProviderResponse)(nil), "arkeo.arkeo.QueryAllProviderResponse") + proto.RegisterType((*QueryFetchContractRequest)(nil), "arkeo.arkeo.QueryFetchContractRequest") + proto.RegisterType((*QueryFetchContractResponse)(nil), "arkeo.arkeo.QueryFetchContractResponse") + proto.RegisterType((*QueryAllContractRequest)(nil), "arkeo.arkeo.QueryAllContractRequest") + proto.RegisterType((*QueryAllContractResponse)(nil), "arkeo.arkeo.QueryAllContractResponse") + proto.RegisterType((*QueryActiveContractRequest)(nil), "arkeo.arkeo.QueryActiveContractRequest") + proto.RegisterType((*QueryActiveContractResponse)(nil), "arkeo.arkeo.QueryActiveContractResponse") +} + +func init() { proto.RegisterFile("arkeo/arkeo/query.proto", fileDescriptor_4b28dca1d1dd051d) } + +var fileDescriptor_4b28dca1d1dd051d = []byte{ + // 702 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xcf, 0x4f, 0xd4, 0x40, + 0x14, 0xde, 0x02, 0xae, 0x32, 0x1b, 0xd4, 0x0c, 0x20, 0x6b, 0xd5, 0x5d, 0xd2, 0xf0, 0x2b, 0x18, + 0xdb, 0x80, 0x31, 0x5c, 0xf4, 0x00, 0x46, 0xd4, 0x83, 0x09, 0x6e, 0xa2, 0x07, 0x2f, 0x66, 0xb6, + 0x4c, 0x4a, 0xb3, 0xa5, 0x53, 0x3a, 0xb3, 0xab, 0x64, 0xc3, 0xc5, 0x8b, 0x17, 0x0f, 0x26, 0xc6, + 0x9b, 0x27, 0xff, 0x1a, 0x8e, 0x24, 0x5e, 0x3c, 0x19, 0x03, 0xfe, 0x21, 0x66, 0x67, 0xde, 0xb8, + 0x6d, 0xb7, 0x4d, 0x49, 0xd4, 0x4b, 0xa1, 0xf3, 0xbe, 0xf7, 0xbe, 0xef, 0xbd, 0x6f, 0xfa, 0x16, + 0xcd, 0x91, 0xb8, 0x43, 0x99, 0xa3, 0x9e, 0x07, 0x5d, 0x1a, 0x1f, 0xda, 0x51, 0xcc, 0x04, 0xc3, + 0x35, 0x79, 0x64, 0xcb, 0xa7, 0x39, 0xe3, 0x31, 0x8f, 0xc9, 0x73, 0x67, 0xf0, 0x9f, 0x82, 0x98, + 0x37, 0x3d, 0xc6, 0xbc, 0x80, 0x3a, 0x24, 0xf2, 0x1d, 0x12, 0x86, 0x4c, 0x10, 0xe1, 0xb3, 0x90, + 0x43, 0x74, 0xd5, 0x65, 0x7c, 0x9f, 0x71, 0xa7, 0x4d, 0x38, 0x55, 0x95, 0x9d, 0xde, 0x5a, 0x9b, + 0x0a, 0xb2, 0xe6, 0x44, 0xc4, 0xf3, 0x43, 0x09, 0x06, 0x6c, 0x3d, 0xa9, 0x22, 0x22, 0x31, 0xd9, + 0xe7, 0x79, 0x91, 0x0e, 0xa5, 0x11, 0x8d, 0x55, 0xc4, 0x9a, 0x41, 0xf8, 0xf9, 0xa0, 0xea, 0x8e, + 0x84, 0xb7, 0xe8, 0x41, 0x97, 0x72, 0x61, 0x3d, 0x41, 0xd3, 0xa9, 0x53, 0x1e, 0xb1, 0x90, 0x53, + 0xbc, 0x86, 0xaa, 0xaa, 0x6c, 0xdd, 0x98, 0x37, 0x56, 0x6a, 0xeb, 0xd3, 0x76, 0xa2, 0x3d, 0x5b, + 0x81, 0xb7, 0x26, 0x8e, 0x7f, 0x34, 0x2b, 0x2d, 0x00, 0x5a, 0xcf, 0xd0, 0x75, 0x59, 0x69, 0x9b, + 0x0a, 0x77, 0x6f, 0x27, 0x66, 0x3d, 0x7f, 0x97, 0xc6, 0x40, 0x83, 0xaf, 0xa1, 0x6a, 0xd4, 0x6d, + 0x77, 0xe8, 0xa1, 0xac, 0x37, 0xd9, 0x82, 0x37, 0x5c, 0x47, 0x17, 0x39, 0x8d, 0x7b, 0xbe, 0x4b, + 0xeb, 0x63, 0x32, 0xa0, 0x5f, 0xad, 0x17, 0xc8, 0xcc, 0x2b, 0x07, 0xfa, 0x36, 0xd0, 0xa5, 0x08, + 0xce, 0x40, 0xe1, 0x6c, 0x5a, 0x21, 0x04, 0x41, 0xe3, 0x1f, 0xb0, 0x45, 0xd0, 0x9c, 0x2c, 0xbb, + 0x19, 0x04, 0x59, 0x8d, 0xdb, 0x08, 0x0d, 0x07, 0x0d, 0x55, 0x97, 0x6c, 0xe5, 0x8a, 0x3d, 0x70, + 0xc5, 0x56, 0x7e, 0x83, 0x2b, 0xf6, 0x0e, 0xf1, 0x28, 0xe4, 0xb6, 0x12, 0x99, 0xd6, 0x17, 0x03, + 0xd5, 0x47, 0x39, 0x72, 0x85, 0x8f, 0x9f, 0x5b, 0x38, 0x7e, 0x9c, 0x52, 0x37, 0x26, 0xd5, 0x2d, + 0x97, 0xaa, 0x53, 0xac, 0x29, 0x79, 0xf7, 0x93, 0x3e, 0x3d, 0x64, 0xa1, 0x88, 0x89, 0x2b, 0xf4, + 0x0c, 0x9a, 0xa8, 0xe6, 0xc2, 0xd1, 0x6b, 0x7f, 0x57, 0x0e, 0x61, 0xa2, 0x85, 0xf4, 0xd1, 0xd3, + 0xdd, 0xb4, 0x2d, 0xc3, 0xec, 0x61, 0x77, 0x1a, 0x9b, 0x6b, 0x8b, 0x4e, 0xd0, 0xdd, 0x69, 0x70, + 0xd2, 0x96, 0xac, 0xa4, 0xff, 0x61, 0x4b, 0x89, 0xf0, 0xf1, 0x73, 0x0b, 0xff, 0x77, 0xb6, 0x04, + 0x30, 0xd8, 0x4d, 0x57, 0xf8, 0x3d, 0x9a, 0x1d, 0x82, 0x99, 0xb9, 0xef, 0x93, 0x89, 0x9b, 0x51, + 0xf8, 0x0d, 0xc9, 0x48, 0x44, 0xc3, 0x41, 0xd2, 0x38, 0x44, 0xd4, 0xab, 0xf5, 0x12, 0xdd, 0xc8, + 0x65, 0xfb, 0x4b, 0x1f, 0xd7, 0x3f, 0x57, 0xd1, 0x05, 0x59, 0x18, 0xb7, 0x51, 0x55, 0xad, 0x09, + 0xdc, 0x4c, 0xa5, 0x8e, 0xee, 0x20, 0x73, 0xbe, 0x18, 0xa0, 0xf4, 0x58, 0xb3, 0xef, 0xbe, 0xfd, + 0xfa, 0x34, 0x76, 0x05, 0x4f, 0xa5, 0x56, 0x1e, 0xfe, 0x60, 0xa0, 0xa9, 0xd4, 0x7e, 0xc0, 0x4b, + 0xa3, 0xa5, 0xf2, 0xf6, 0x91, 0xb9, 0x5c, 0x8a, 0x03, 0xe6, 0x55, 0xc9, 0xbc, 0x80, 0x2d, 0xcd, + 0x0c, 0x00, 0xa7, 0xaf, 0x36, 0xd8, 0x91, 0xd3, 0x87, 0x69, 0x1f, 0x61, 0x81, 0x6a, 0x3a, 0x7f, + 0x33, 0x08, 0xf0, 0xc2, 0x28, 0xc7, 0xe8, 0xd6, 0x31, 0x17, 0x4b, 0x50, 0xa0, 0xa3, 0x2e, 0x75, + 0x60, 0x7c, 0x35, 0xa3, 0x83, 0xe3, 0xf7, 0x7a, 0x08, 0xda, 0x94, 0xc2, 0x21, 0x64, 0x2e, 0x55, + 0xe1, 0x10, 0xb2, 0xd7, 0xc1, 0x5a, 0x94, 0xe4, 0x4d, 0x7c, 0x0b, 0xc8, 0xb5, 0xdd, 0x4e, 0x3f, + 0xb1, 0x2c, 0x64, 0xff, 0x3a, 0xb5, 0xb8, 0xff, 0xac, 0x88, 0xc5, 0x12, 0x54, 0x41, 0xff, 0x9a, + 0x98, 0xe3, 0xaf, 0x06, 0xba, 0x9c, 0xbe, 0xc6, 0x38, 0xa7, 0xb1, 0xdc, 0xcf, 0xca, 0x5c, 0x29, + 0x07, 0x02, 0xff, 0x03, 0xc9, 0xbf, 0x81, 0xef, 0x01, 0x3f, 0x91, 0xb0, 0x3b, 0xc3, 0x49, 0x68, + 0x43, 0x12, 0x17, 0xc2, 0xe9, 0xc3, 0xe7, 0x76, 0xb4, 0xf5, 0xe8, 0xf8, 0xb4, 0x61, 0x9c, 0x9c, + 0x36, 0x8c, 0x9f, 0xa7, 0x0d, 0xe3, 0xe3, 0x59, 0xa3, 0x72, 0x72, 0xd6, 0xa8, 0x7c, 0x3f, 0x6b, + 0x54, 0x5e, 0xdd, 0xf6, 0x7c, 0xb1, 0xd7, 0x6d, 0xdb, 0x2e, 0xdb, 0x57, 0xa5, 0x43, 0x2a, 0xde, + 0xb0, 0xb8, 0x03, 0x3c, 0x6f, 0xe1, 0xaf, 0x38, 0x8c, 0x28, 0x6f, 0x57, 0xe5, 0x4f, 0xf9, 0xdd, + 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x07, 0x9a, 0xac, 0x8f, 0x86, 0x08, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// QueryClient is the client API for Query service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type QueryClient interface { + // Parameters queries the parameters of the module. + Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) + FetchProvider(ctx context.Context, in *QueryFetchProviderRequest, opts ...grpc.CallOption) (*QueryFetchProviderResponse, error) + ProviderAll(ctx context.Context, in *QueryAllProviderRequest, opts ...grpc.CallOption) (*QueryAllProviderResponse, error) + FetchContract(ctx context.Context, in *QueryFetchContractRequest, opts ...grpc.CallOption) (*QueryFetchContractResponse, error) + ContractAll(ctx context.Context, in *QueryAllContractRequest, opts ...grpc.CallOption) (*QueryAllContractResponse, error) + // Queries an active contract by spender, provider and service. + ActiveContract(ctx context.Context, in *QueryActiveContractRequest, opts ...grpc.CallOption) (*QueryActiveContractResponse, error) +} + +type queryClient struct { + cc grpc1.ClientConn +} + +func NewQueryClient(cc grpc1.ClientConn) QueryClient { + return &queryClient{cc} +} + +func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { + out := new(QueryParamsResponse) + err := c.cc.Invoke(ctx, "/arkeo.arkeo.Query/Params", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) FetchProvider(ctx context.Context, in *QueryFetchProviderRequest, opts ...grpc.CallOption) (*QueryFetchProviderResponse, error) { + out := new(QueryFetchProviderResponse) + err := c.cc.Invoke(ctx, "/arkeo.arkeo.Query/FetchProvider", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) ProviderAll(ctx context.Context, in *QueryAllProviderRequest, opts ...grpc.CallOption) (*QueryAllProviderResponse, error) { + out := new(QueryAllProviderResponse) + err := c.cc.Invoke(ctx, "/arkeo.arkeo.Query/ProviderAll", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) FetchContract(ctx context.Context, in *QueryFetchContractRequest, opts ...grpc.CallOption) (*QueryFetchContractResponse, error) { + out := new(QueryFetchContractResponse) + err := c.cc.Invoke(ctx, "/arkeo.arkeo.Query/FetchContract", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) ContractAll(ctx context.Context, in *QueryAllContractRequest, opts ...grpc.CallOption) (*QueryAllContractResponse, error) { + out := new(QueryAllContractResponse) + err := c.cc.Invoke(ctx, "/arkeo.arkeo.Query/ContractAll", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) ActiveContract(ctx context.Context, in *QueryActiveContractRequest, opts ...grpc.CallOption) (*QueryActiveContractResponse, error) { + out := new(QueryActiveContractResponse) + err := c.cc.Invoke(ctx, "/arkeo.arkeo.Query/ActiveContract", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServer is the server API for Query service. +type QueryServer interface { + // Parameters queries the parameters of the module. + Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) + FetchProvider(context.Context, *QueryFetchProviderRequest) (*QueryFetchProviderResponse, error) + ProviderAll(context.Context, *QueryAllProviderRequest) (*QueryAllProviderResponse, error) + FetchContract(context.Context, *QueryFetchContractRequest) (*QueryFetchContractResponse, error) + ContractAll(context.Context, *QueryAllContractRequest) (*QueryAllContractResponse, error) + // Queries an active contract by spender, provider and service. + ActiveContract(context.Context, *QueryActiveContractRequest) (*QueryActiveContractResponse, error) +} + +// UnimplementedQueryServer can be embedded to have forward compatible implementations. +type UnimplementedQueryServer struct { +} + +func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") +} +func (*UnimplementedQueryServer) FetchProvider(ctx context.Context, req *QueryFetchProviderRequest) (*QueryFetchProviderResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FetchProvider not implemented") +} +func (*UnimplementedQueryServer) ProviderAll(ctx context.Context, req *QueryAllProviderRequest) (*QueryAllProviderResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ProviderAll not implemented") +} +func (*UnimplementedQueryServer) FetchContract(ctx context.Context, req *QueryFetchContractRequest) (*QueryFetchContractResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FetchContract not implemented") +} +func (*UnimplementedQueryServer) ContractAll(ctx context.Context, req *QueryAllContractRequest) (*QueryAllContractResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ContractAll not implemented") +} +func (*UnimplementedQueryServer) ActiveContract(ctx context.Context, req *QueryActiveContractRequest) (*QueryActiveContractResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ActiveContract not implemented") +} + +func RegisterQueryServer(s grpc1.Server, srv QueryServer) { + s.RegisterService(&_Query_serviceDesc, srv) +} + +func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryParamsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Params(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/arkeo.arkeo.Query/Params", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_FetchProvider_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryFetchProviderRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).FetchProvider(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/arkeo.arkeo.Query/FetchProvider", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).FetchProvider(ctx, req.(*QueryFetchProviderRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_ProviderAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllProviderRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).ProviderAll(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/arkeo.arkeo.Query/ProviderAll", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).ProviderAll(ctx, req.(*QueryAllProviderRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_FetchContract_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryFetchContractRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).FetchContract(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/arkeo.arkeo.Query/FetchContract", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).FetchContract(ctx, req.(*QueryFetchContractRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_ContractAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllContractRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).ContractAll(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/arkeo.arkeo.Query/ContractAll", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).ContractAll(ctx, req.(*QueryAllContractRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_ActiveContract_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryActiveContractRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).ActiveContract(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/arkeo.arkeo.Query/ActiveContract", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).ActiveContract(ctx, req.(*QueryActiveContractRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var Query_serviceDesc = _Query_serviceDesc +var _Query_serviceDesc = grpc.ServiceDesc{ + ServiceName: "arkeo.arkeo.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Params", + Handler: _Query_Params_Handler, + }, + { + MethodName: "FetchProvider", + Handler: _Query_FetchProvider_Handler, + }, + { + MethodName: "ProviderAll", + Handler: _Query_ProviderAll_Handler, + }, + { + MethodName: "FetchContract", + Handler: _Query_FetchContract_Handler, + }, + { + MethodName: "ContractAll", + Handler: _Query_ContractAll_Handler, + }, + { + MethodName: "ActiveContract", + Handler: _Query_ActiveContract_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "arkeo/arkeo/query.proto", +} + +func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryFetchProviderRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryFetchProviderRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryFetchProviderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Service) > 0 { + i -= len(m.Service) + copy(dAtA[i:], m.Service) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Service))) + i-- + dAtA[i] = 0x12 + } + if len(m.Pubkey) > 0 { + i -= len(m.Pubkey) + copy(dAtA[i:], m.Pubkey) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Pubkey))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryFetchProviderResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryFetchProviderResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryFetchProviderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Provider.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryAllProviderRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryAllProviderRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllProviderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryAllProviderResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryAllProviderResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllProviderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Provider) > 0 { + for iNdEx := len(m.Provider) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Provider[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryFetchContractRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryFetchContractRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryFetchContractRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ContractId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.ContractId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryFetchContractResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryFetchContractResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryFetchContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Contract.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryAllContractRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryAllContractRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllContractRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryAllContractResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryAllContractResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Contract) > 0 { + for iNdEx := len(m.Contract) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Contract[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryActiveContractRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryActiveContractRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryActiveContractRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Spender) > 0 { + i -= len(m.Spender) + copy(dAtA[i:], m.Spender) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Spender))) + i-- + dAtA[i] = 0x1a + } + if len(m.Service) > 0 { + i -= len(m.Service) + copy(dAtA[i:], m.Service) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Service))) + i-- + dAtA[i] = 0x12 + } + if len(m.Provider) > 0 { + i -= len(m.Provider) + copy(dAtA[i:], m.Provider) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Provider))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryActiveContractResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryActiveContractResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryActiveContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Contract.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { + offset -= sovQuery(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *QueryParamsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryParamsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Params.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryFetchProviderRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Pubkey) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Service) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryFetchProviderResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Provider.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryAllProviderRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAllProviderResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Provider) > 0 { + for _, e := range m.Provider { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryFetchContractRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ContractId != 0 { + n += 1 + sovQuery(uint64(m.ContractId)) + } + return n +} + +func (m *QueryFetchContractResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Contract.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryAllContractRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAllContractResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Contract) > 0 { + for _, e := range m.Contract { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryActiveContractRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Provider) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Service) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Spender) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryActiveContractResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Contract.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func sovQuery(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozQuery(x uint64) (n int) { + return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryFetchProviderRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryFetchProviderRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryFetchProviderRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pubkey", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Pubkey = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Service", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Service = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryFetchProviderResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryFetchProviderResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryFetchProviderResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Provider", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Provider.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllProviderRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryAllProviderRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllProviderRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllProviderResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryAllProviderResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllProviderResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Provider", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Provider = append(m.Provider, Provider{}) + if err := m.Provider[len(m.Provider)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryFetchContractRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryFetchContractRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryFetchContractRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + m.ContractId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ContractId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryFetchContractResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryFetchContractResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryFetchContractResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Contract", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Contract.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllContractRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryAllContractRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllContractRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllContractResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryAllContractResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllContractResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Contract", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Contract = append(m.Contract, Contract{}) + if err := m.Contract[len(m.Contract)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryActiveContractRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryActiveContractRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryActiveContractRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Provider", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Provider = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Service", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Service = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spender", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Spender = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryActiveContractResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryActiveContractResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryActiveContractResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Contract", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Contract.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipQuery(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowQuery + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowQuery + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowQuery + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthQuery + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupQuery + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthQuery + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/arkeo/types/tx.pb.go b/x/arkeo/types/tx.pb.go new file mode 100644 index 00000000..15da4d3c --- /dev/null +++ b/x/arkeo/types/tx.pb.go @@ -0,0 +1,3593 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: arkeo/arkeo/tx.proto + +package types + +import ( + context "context" + cosmossdk_io_math "cosmossdk.io/math" + fmt "fmt" + github_com_arkeonetwork_arkeo_common "github.com/arkeonetwork/arkeo/common" + _ "github.com/cosmos/cosmos-proto" + types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/cosmos-sdk/types/msgservice" + _ "github.com/cosmos/cosmos-sdk/types/tx/amino" + _ "github.com/cosmos/gogoproto/gogoproto" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type MsgBondProvider struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + Provider string `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"` + Service string `protobuf:"bytes,3,opt,name=service,proto3" json:"service,omitempty"` + Bond cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=bond,proto3,customtype=cosmossdk.io/math.Int" json:"bond"` +} + +func (m *MsgBondProvider) Reset() { *m = MsgBondProvider{} } +func (m *MsgBondProvider) String() string { return proto.CompactTextString(m) } +func (*MsgBondProvider) ProtoMessage() {} +func (*MsgBondProvider) Descriptor() ([]byte, []int) { + return fileDescriptor_a12700967a3e4015, []int{0} +} +func (m *MsgBondProvider) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgBondProvider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgBondProvider.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgBondProvider) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgBondProvider.Merge(m, src) +} +func (m *MsgBondProvider) XXX_Size() int { + return m.Size() +} +func (m *MsgBondProvider) XXX_DiscardUnknown() { + xxx_messageInfo_MsgBondProvider.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgBondProvider proto.InternalMessageInfo + +func (m *MsgBondProvider) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgBondProvider) GetProvider() string { + if m != nil { + return m.Provider + } + return "" +} + +func (m *MsgBondProvider) GetService() string { + if m != nil { + return m.Service + } + return "" +} + +type MsgBondProviderResponse struct { +} + +func (m *MsgBondProviderResponse) Reset() { *m = MsgBondProviderResponse{} } +func (m *MsgBondProviderResponse) String() string { return proto.CompactTextString(m) } +func (*MsgBondProviderResponse) ProtoMessage() {} +func (*MsgBondProviderResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a12700967a3e4015, []int{1} +} +func (m *MsgBondProviderResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgBondProviderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgBondProviderResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgBondProviderResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgBondProviderResponse.Merge(m, src) +} +func (m *MsgBondProviderResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgBondProviderResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgBondProviderResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgBondProviderResponse proto.InternalMessageInfo + +type MsgModProvider struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + Provider github_com_arkeonetwork_arkeo_common.PubKey `protobuf:"bytes,2,opt,name=provider,proto3,casttype=github.com/arkeonetwork/arkeo/common.PubKey" json:"provider,omitempty"` + Service string `protobuf:"bytes,3,opt,name=service,proto3" json:"service,omitempty"` + MetadataUri string `protobuf:"bytes,4,opt,name=metadata_uri,json=metadataUri,proto3" json:"metadata_uri,omitempty"` + MetadataNonce uint64 `protobuf:"varint,5,opt,name=metadata_nonce,json=metadataNonce,proto3" json:"metadata_nonce,omitempty"` + Status ProviderStatus `protobuf:"varint,6,opt,name=status,proto3,enum=arkeo.arkeo.ProviderStatus" json:"status,omitempty"` + MinContractDuration int64 `protobuf:"varint,7,opt,name=min_contract_duration,json=minContractDuration,proto3" json:"min_contract_duration,omitempty"` + MaxContractDuration int64 `protobuf:"varint,8,opt,name=max_contract_duration,json=maxContractDuration,proto3" json:"max_contract_duration,omitempty"` + SubscriptionRate []types.Coin `protobuf:"bytes,9,rep,name=subscription_rate,json=subscriptionRate,proto3" json:"subscription_rate"` + PayAsYouGoRate []types.Coin `protobuf:"bytes,10,rep,name=pay_as_you_go_rate,json=payAsYouGoRate,proto3" json:"pay_as_you_go_rate"` + SettlementDuration int64 `protobuf:"varint,11,opt,name=settlement_duration,json=settlementDuration,proto3" json:"settlement_duration,omitempty"` +} + +func (m *MsgModProvider) Reset() { *m = MsgModProvider{} } +func (m *MsgModProvider) String() string { return proto.CompactTextString(m) } +func (*MsgModProvider) ProtoMessage() {} +func (*MsgModProvider) Descriptor() ([]byte, []int) { + return fileDescriptor_a12700967a3e4015, []int{2} +} +func (m *MsgModProvider) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgModProvider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgModProvider.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgModProvider) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgModProvider.Merge(m, src) +} +func (m *MsgModProvider) XXX_Size() int { + return m.Size() +} +func (m *MsgModProvider) XXX_DiscardUnknown() { + xxx_messageInfo_MsgModProvider.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgModProvider proto.InternalMessageInfo + +func (m *MsgModProvider) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgModProvider) GetProvider() github_com_arkeonetwork_arkeo_common.PubKey { + if m != nil { + return m.Provider + } + return nil +} + +func (m *MsgModProvider) GetService() string { + if m != nil { + return m.Service + } + return "" +} + +func (m *MsgModProvider) GetMetadataUri() string { + if m != nil { + return m.MetadataUri + } + return "" +} + +func (m *MsgModProvider) GetMetadataNonce() uint64 { + if m != nil { + return m.MetadataNonce + } + return 0 +} + +func (m *MsgModProvider) GetStatus() ProviderStatus { + if m != nil { + return m.Status + } + return ProviderStatus_OFFLINE +} + +func (m *MsgModProvider) GetMinContractDuration() int64 { + if m != nil { + return m.MinContractDuration + } + return 0 +} + +func (m *MsgModProvider) GetMaxContractDuration() int64 { + if m != nil { + return m.MaxContractDuration + } + return 0 +} + +func (m *MsgModProvider) GetSubscriptionRate() []types.Coin { + if m != nil { + return m.SubscriptionRate + } + return nil +} + +func (m *MsgModProvider) GetPayAsYouGoRate() []types.Coin { + if m != nil { + return m.PayAsYouGoRate + } + return nil +} + +func (m *MsgModProvider) GetSettlementDuration() int64 { + if m != nil { + return m.SettlementDuration + } + return 0 +} + +type MsgModProviderResponse struct { +} + +func (m *MsgModProviderResponse) Reset() { *m = MsgModProviderResponse{} } +func (m *MsgModProviderResponse) String() string { return proto.CompactTextString(m) } +func (*MsgModProviderResponse) ProtoMessage() {} +func (*MsgModProviderResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a12700967a3e4015, []int{3} +} +func (m *MsgModProviderResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgModProviderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgModProviderResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgModProviderResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgModProviderResponse.Merge(m, src) +} +func (m *MsgModProviderResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgModProviderResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgModProviderResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgModProviderResponse proto.InternalMessageInfo + +type MsgOpenContract struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + Provider string `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"` + Service string `protobuf:"bytes,3,opt,name=service,proto3" json:"service,omitempty"` + Client string `protobuf:"bytes,4,opt,name=client,proto3" json:"client,omitempty"` + Delegate string `protobuf:"bytes,5,opt,name=delegate,proto3" json:"delegate,omitempty"` + ContractType ContractType `protobuf:"varint,6,opt,name=contract_type,json=contractType,proto3,enum=arkeo.arkeo.ContractType" json:"contract_type,omitempty"` + Duration int64 `protobuf:"varint,7,opt,name=duration,proto3" json:"duration,omitempty"` + Rate types.Coin `protobuf:"bytes,8,opt,name=rate,proto3" json:"rate"` + Deposit cosmossdk_io_math.Int `protobuf:"bytes,9,opt,name=deposit,proto3,customtype=cosmossdk.io/math.Int" json:"deposit"` + SettlementDuration int64 `protobuf:"varint,10,opt,name=settlement_duration,json=settlementDuration,proto3" json:"settlement_duration,omitempty"` + Authorization ContractAuthorization `protobuf:"varint,11,opt,name=authorization,proto3,enum=arkeo.arkeo.ContractAuthorization" json:"authorization,omitempty"` + QueriesPerMinute int64 `protobuf:"varint,12,opt,name=queries_per_minute,json=queriesPerMinute,proto3" json:"queries_per_minute,omitempty"` +} + +func (m *MsgOpenContract) Reset() { *m = MsgOpenContract{} } +func (m *MsgOpenContract) String() string { return proto.CompactTextString(m) } +func (*MsgOpenContract) ProtoMessage() {} +func (*MsgOpenContract) Descriptor() ([]byte, []int) { + return fileDescriptor_a12700967a3e4015, []int{4} +} +func (m *MsgOpenContract) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgOpenContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgOpenContract.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgOpenContract) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgOpenContract.Merge(m, src) +} +func (m *MsgOpenContract) XXX_Size() int { + return m.Size() +} +func (m *MsgOpenContract) XXX_DiscardUnknown() { + xxx_messageInfo_MsgOpenContract.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgOpenContract proto.InternalMessageInfo + +func (m *MsgOpenContract) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgOpenContract) GetProvider() string { + if m != nil { + return m.Provider + } + return "" +} + +func (m *MsgOpenContract) GetService() string { + if m != nil { + return m.Service + } + return "" +} + +func (m *MsgOpenContract) GetClient() string { + if m != nil { + return m.Client + } + return "" +} + +func (m *MsgOpenContract) GetDelegate() string { + if m != nil { + return m.Delegate + } + return "" +} + +func (m *MsgOpenContract) GetContractType() ContractType { + if m != nil { + return m.ContractType + } + return ContractType_SUBSCRIPTION +} + +func (m *MsgOpenContract) GetDuration() int64 { + if m != nil { + return m.Duration + } + return 0 +} + +func (m *MsgOpenContract) GetRate() types.Coin { + if m != nil { + return m.Rate + } + return types.Coin{} +} + +func (m *MsgOpenContract) GetSettlementDuration() int64 { + if m != nil { + return m.SettlementDuration + } + return 0 +} + +func (m *MsgOpenContract) GetAuthorization() ContractAuthorization { + if m != nil { + return m.Authorization + } + return ContractAuthorization_STRICT +} + +func (m *MsgOpenContract) GetQueriesPerMinute() int64 { + if m != nil { + return m.QueriesPerMinute + } + return 0 +} + +type MsgOpenContractResponse struct { +} + +func (m *MsgOpenContractResponse) Reset() { *m = MsgOpenContractResponse{} } +func (m *MsgOpenContractResponse) String() string { return proto.CompactTextString(m) } +func (*MsgOpenContractResponse) ProtoMessage() {} +func (*MsgOpenContractResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a12700967a3e4015, []int{5} +} +func (m *MsgOpenContractResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgOpenContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgOpenContractResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgOpenContractResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgOpenContractResponse.Merge(m, src) +} +func (m *MsgOpenContractResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgOpenContractResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgOpenContractResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgOpenContractResponse proto.InternalMessageInfo + +type MsgCloseContract struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + ContractId uint64 `protobuf:"varint,2,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + Client github_com_arkeonetwork_arkeo_common.PubKey `protobuf:"bytes,3,opt,name=client,proto3,casttype=github.com/arkeonetwork/arkeo/common.PubKey" json:"client,omitempty"` + Delegate github_com_arkeonetwork_arkeo_common.PubKey `protobuf:"bytes,4,opt,name=delegate,proto3,casttype=github.com/arkeonetwork/arkeo/common.PubKey" json:"delegate,omitempty"` +} + +func (m *MsgCloseContract) Reset() { *m = MsgCloseContract{} } +func (m *MsgCloseContract) String() string { return proto.CompactTextString(m) } +func (*MsgCloseContract) ProtoMessage() {} +func (*MsgCloseContract) Descriptor() ([]byte, []int) { + return fileDescriptor_a12700967a3e4015, []int{6} +} +func (m *MsgCloseContract) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCloseContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCloseContract.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgCloseContract) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCloseContract.Merge(m, src) +} +func (m *MsgCloseContract) XXX_Size() int { + return m.Size() +} +func (m *MsgCloseContract) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCloseContract.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCloseContract proto.InternalMessageInfo + +func (m *MsgCloseContract) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgCloseContract) GetContractId() uint64 { + if m != nil { + return m.ContractId + } + return 0 +} + +func (m *MsgCloseContract) GetClient() github_com_arkeonetwork_arkeo_common.PubKey { + if m != nil { + return m.Client + } + return nil +} + +func (m *MsgCloseContract) GetDelegate() github_com_arkeonetwork_arkeo_common.PubKey { + if m != nil { + return m.Delegate + } + return nil +} + +type MsgCloseContractResponse struct { +} + +func (m *MsgCloseContractResponse) Reset() { *m = MsgCloseContractResponse{} } +func (m *MsgCloseContractResponse) String() string { return proto.CompactTextString(m) } +func (*MsgCloseContractResponse) ProtoMessage() {} +func (*MsgCloseContractResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a12700967a3e4015, []int{7} +} +func (m *MsgCloseContractResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCloseContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCloseContractResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgCloseContractResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCloseContractResponse.Merge(m, src) +} +func (m *MsgCloseContractResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgCloseContractResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCloseContractResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCloseContractResponse proto.InternalMessageInfo + +type MsgClaimContractIncome struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + ContractId uint64 `protobuf:"varint,2,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + Signature []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"` + Nonce int64 `protobuf:"varint,5,opt,name=nonce,proto3" json:"nonce,omitempty"` +} + +func (m *MsgClaimContractIncome) Reset() { *m = MsgClaimContractIncome{} } +func (m *MsgClaimContractIncome) String() string { return proto.CompactTextString(m) } +func (*MsgClaimContractIncome) ProtoMessage() {} +func (*MsgClaimContractIncome) Descriptor() ([]byte, []int) { + return fileDescriptor_a12700967a3e4015, []int{8} +} +func (m *MsgClaimContractIncome) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgClaimContractIncome) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgClaimContractIncome.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgClaimContractIncome) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgClaimContractIncome.Merge(m, src) +} +func (m *MsgClaimContractIncome) XXX_Size() int { + return m.Size() +} +func (m *MsgClaimContractIncome) XXX_DiscardUnknown() { + xxx_messageInfo_MsgClaimContractIncome.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgClaimContractIncome proto.InternalMessageInfo + +func (m *MsgClaimContractIncome) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgClaimContractIncome) GetContractId() uint64 { + if m != nil { + return m.ContractId + } + return 0 +} + +func (m *MsgClaimContractIncome) GetSignature() []byte { + if m != nil { + return m.Signature + } + return nil +} + +func (m *MsgClaimContractIncome) GetNonce() int64 { + if m != nil { + return m.Nonce + } + return 0 +} + +type MsgClaimContractIncomeResponse struct { +} + +func (m *MsgClaimContractIncomeResponse) Reset() { *m = MsgClaimContractIncomeResponse{} } +func (m *MsgClaimContractIncomeResponse) String() string { return proto.CompactTextString(m) } +func (*MsgClaimContractIncomeResponse) ProtoMessage() {} +func (*MsgClaimContractIncomeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a12700967a3e4015, []int{9} +} +func (m *MsgClaimContractIncomeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgClaimContractIncomeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgClaimContractIncomeResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgClaimContractIncomeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgClaimContractIncomeResponse.Merge(m, src) +} +func (m *MsgClaimContractIncomeResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgClaimContractIncomeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgClaimContractIncomeResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgClaimContractIncomeResponse proto.InternalMessageInfo + +// this line is used by starport scaffolding # proto/tx/message +type MsgSetVersion struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + Version int64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` +} + +func (m *MsgSetVersion) Reset() { *m = MsgSetVersion{} } +func (m *MsgSetVersion) String() string { return proto.CompactTextString(m) } +func (*MsgSetVersion) ProtoMessage() {} +func (*MsgSetVersion) Descriptor() ([]byte, []int) { + return fileDescriptor_a12700967a3e4015, []int{10} +} +func (m *MsgSetVersion) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetVersion.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgSetVersion) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetVersion.Merge(m, src) +} +func (m *MsgSetVersion) XXX_Size() int { + return m.Size() +} +func (m *MsgSetVersion) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetVersion.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetVersion proto.InternalMessageInfo + +func (m *MsgSetVersion) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgSetVersion) GetVersion() int64 { + if m != nil { + return m.Version + } + return 0 +} + +type MsgSetVersionResponse struct { +} + +func (m *MsgSetVersionResponse) Reset() { *m = MsgSetVersionResponse{} } +func (m *MsgSetVersionResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSetVersionResponse) ProtoMessage() {} +func (*MsgSetVersionResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a12700967a3e4015, []int{11} +} +func (m *MsgSetVersionResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetVersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetVersionResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgSetVersionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetVersionResponse.Merge(m, src) +} +func (m *MsgSetVersionResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgSetVersionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetVersionResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetVersionResponse proto.InternalMessageInfo + +func init() { + proto.RegisterType((*MsgBondProvider)(nil), "arkeo.arkeo.MsgBondProvider") + proto.RegisterType((*MsgBondProviderResponse)(nil), "arkeo.arkeo.MsgBondProviderResponse") + proto.RegisterType((*MsgModProvider)(nil), "arkeo.arkeo.MsgModProvider") + proto.RegisterType((*MsgModProviderResponse)(nil), "arkeo.arkeo.MsgModProviderResponse") + proto.RegisterType((*MsgOpenContract)(nil), "arkeo.arkeo.MsgOpenContract") + proto.RegisterType((*MsgOpenContractResponse)(nil), "arkeo.arkeo.MsgOpenContractResponse") + proto.RegisterType((*MsgCloseContract)(nil), "arkeo.arkeo.MsgCloseContract") + proto.RegisterType((*MsgCloseContractResponse)(nil), "arkeo.arkeo.MsgCloseContractResponse") + proto.RegisterType((*MsgClaimContractIncome)(nil), "arkeo.arkeo.MsgClaimContractIncome") + proto.RegisterType((*MsgClaimContractIncomeResponse)(nil), "arkeo.arkeo.MsgClaimContractIncomeResponse") + proto.RegisterType((*MsgSetVersion)(nil), "arkeo.arkeo.MsgSetVersion") + proto.RegisterType((*MsgSetVersionResponse)(nil), "arkeo.arkeo.MsgSetVersionResponse") +} + +func init() { proto.RegisterFile("arkeo/arkeo/tx.proto", fileDescriptor_a12700967a3e4015) } + +var fileDescriptor_a12700967a3e4015 = []byte{ + // 1085 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0x41, 0x4f, 0xdc, 0x46, + 0x14, 0xc6, 0xd9, 0x05, 0xc2, 0xec, 0x42, 0xc9, 0x00, 0xc1, 0x2c, 0x64, 0xd9, 0x6e, 0x12, 0x09, + 0x41, 0xf0, 0x8a, 0x45, 0xbd, 0x70, 0x68, 0x05, 0x34, 0x4a, 0x11, 0xd9, 0x06, 0x99, 0xa6, 0x52, + 0x7b, 0x59, 0xcd, 0xda, 0x23, 0x33, 0x02, 0xcf, 0xb8, 0x33, 0x63, 0xca, 0xf6, 0x54, 0xf5, 0xd8, + 0xaa, 0x52, 0xa5, 0xfe, 0x8f, 0x8a, 0x43, 0x7e, 0x44, 0x8e, 0x51, 0x4e, 0x51, 0x0f, 0x28, 0x82, + 0x03, 0x97, 0xfe, 0x82, 0x9e, 0x2a, 0xdb, 0x63, 0xaf, 0xed, 0x5d, 0x28, 0x49, 0xd4, 0x5e, 0xbc, + 0xfb, 0xde, 0xf7, 0xde, 0x9b, 0xf7, 0x3e, 0x7f, 0x33, 0x1e, 0x30, 0x8d, 0xf8, 0x21, 0x66, 0x8d, + 0xe8, 0x29, 0x4f, 0x0c, 0x8f, 0x33, 0xc9, 0x60, 0x29, 0xb4, 0x8d, 0xf0, 0x59, 0x99, 0x76, 0x98, + 0xc3, 0x42, 0x7f, 0x23, 0xf8, 0x17, 0x85, 0x54, 0xe6, 0x2c, 0x26, 0x5c, 0x26, 0xda, 0x11, 0x10, + 0x19, 0x0a, 0xaa, 0x46, 0x56, 0xa3, 0x83, 0x04, 0x6e, 0x1c, 0xaf, 0x75, 0xb0, 0x44, 0x6b, 0x0d, + 0x8b, 0x11, 0xaa, 0x70, 0x3d, 0xbd, 0xe6, 0x21, 0xc6, 0x1e, 0xe6, 0x0a, 0x99, 0x55, 0x99, 0xae, + 0x70, 0x1a, 0xc7, 0x6b, 0xc1, 0x8f, 0x02, 0xee, 0x20, 0x97, 0x50, 0xd6, 0x08, 0x9f, 0x91, 0xab, + 0xfe, 0x97, 0x06, 0x3e, 0x6a, 0x09, 0x67, 0x8b, 0x51, 0x7b, 0x8f, 0xb3, 0x63, 0x62, 0x63, 0x0e, + 0x9b, 0x60, 0xd4, 0xe2, 0x18, 0x49, 0xc6, 0x75, 0xad, 0xa6, 0x2d, 0x8d, 0x6d, 0xe9, 0xaf, 0x5f, + 0xac, 0x4e, 0xab, 0xe6, 0x36, 0x6d, 0x9b, 0x63, 0x21, 0xf6, 0x25, 0x27, 0xd4, 0x31, 0xe3, 0x40, + 0x58, 0x01, 0xb7, 0x3d, 0x95, 0xaf, 0xdf, 0x0a, 0x92, 0xcc, 0xc4, 0x86, 0x3a, 0x18, 0x15, 0x98, + 0x1f, 0x13, 0x0b, 0xeb, 0x85, 0x10, 0x8a, 0x4d, 0xf8, 0x19, 0x28, 0x76, 0x18, 0xb5, 0xf5, 0x62, + 0xb8, 0xcc, 0xca, 0xcb, 0xb3, 0xc5, 0xa1, 0x3f, 0xcf, 0x16, 0x67, 0xa2, 0xa5, 0x84, 0x7d, 0x68, + 0x10, 0xd6, 0x70, 0x91, 0x3c, 0x30, 0x76, 0xa8, 0x7c, 0xfd, 0x62, 0x15, 0xa8, 0x1e, 0x76, 0xa8, + 0x34, 0xc3, 0xc4, 0x0d, 0xe3, 0xa7, 0xcb, 0xd3, 0xe5, 0xb8, 0x89, 0x9f, 0x2f, 0x4f, 0x97, 0xef, + 0x45, 0x7c, 0x9c, 0x28, 0x5e, 0x72, 0xa3, 0xd5, 0xe7, 0xc0, 0x6c, 0xce, 0x65, 0x62, 0xe1, 0x31, + 0x2a, 0x70, 0xfd, 0xd7, 0x61, 0x30, 0xd1, 0x12, 0x4e, 0x8b, 0x7d, 0x18, 0x11, 0xbb, 0x39, 0x22, + 0xca, 0x5b, 0x8d, 0xbf, 0xcf, 0x16, 0x57, 0x1c, 0x22, 0x0f, 0xfc, 0x8e, 0x61, 0x31, 0x37, 0xea, + 0x8c, 0x62, 0xf9, 0x3d, 0xe3, 0x87, 0xaa, 0x4d, 0x8b, 0xb9, 0x2e, 0xa3, 0xc6, 0x9e, 0xdf, 0xd9, + 0xc5, 0xdd, 0x1b, 0x31, 0xf7, 0x31, 0x28, 0xbb, 0x58, 0x22, 0x1b, 0x49, 0xd4, 0xf6, 0x39, 0x89, + 0x18, 0x34, 0x4b, 0xb1, 0xef, 0x39, 0x27, 0xf0, 0x21, 0x98, 0x48, 0x42, 0x28, 0xa3, 0x16, 0xd6, + 0x87, 0x6b, 0xda, 0x52, 0xd1, 0x1c, 0x8f, 0xbd, 0x5f, 0x06, 0x4e, 0xb8, 0x0e, 0x46, 0x84, 0x44, + 0xd2, 0x17, 0xfa, 0x48, 0x4d, 0x5b, 0x9a, 0x68, 0xce, 0x1b, 0x29, 0xd9, 0x1a, 0x31, 0x17, 0xfb, + 0x61, 0x88, 0xa9, 0x42, 0x61, 0x13, 0xcc, 0xb8, 0x84, 0xb6, 0x2d, 0x46, 0x25, 0x47, 0x96, 0x6c, + 0xdb, 0x3e, 0x47, 0x92, 0x30, 0xaa, 0x8f, 0xd6, 0xb4, 0xa5, 0x82, 0x39, 0xe5, 0x12, 0xba, 0xad, + 0xb0, 0xcf, 0x15, 0x14, 0xe6, 0xa0, 0x93, 0x01, 0x39, 0xb7, 0x55, 0x0e, 0x3a, 0xe9, 0xcb, 0x79, + 0x0a, 0xee, 0x08, 0xbf, 0x23, 0x2c, 0x4e, 0xbc, 0xc0, 0x6e, 0x73, 0x24, 0xb1, 0x3e, 0x56, 0x2b, + 0x2c, 0x95, 0x9a, 0x73, 0x86, 0x7a, 0x11, 0xc1, 0x06, 0x31, 0xd4, 0x06, 0x31, 0xb6, 0x19, 0xa1, + 0x5b, 0xc5, 0x40, 0x48, 0xe6, 0x64, 0x3a, 0xd3, 0x44, 0x12, 0xc3, 0x5d, 0x00, 0x3d, 0xd4, 0x6d, + 0x23, 0xd1, 0xee, 0x32, 0xbf, 0xed, 0xb0, 0xa8, 0x1c, 0xb8, 0x59, 0xb9, 0x09, 0x0f, 0x75, 0x37, + 0xc5, 0x37, 0xcc, 0x7f, 0xc2, 0xc2, 0x62, 0x0d, 0x30, 0x25, 0xb0, 0x94, 0x47, 0xd8, 0xc5, 0x34, + 0x35, 0x4c, 0x29, 0x1c, 0x06, 0xf6, 0xa0, 0x78, 0x96, 0x8d, 0xd5, 0xbc, 0x56, 0x17, 0xfa, 0xb4, + 0x9a, 0x12, 0x5f, 0x5d, 0x07, 0x77, 0xb3, 0x9e, 0x44, 0xa9, 0x6f, 0x8b, 0xe1, 0x9e, 0x7d, 0xe6, + 0xe1, 0x84, 0xe4, 0xff, 0x71, 0xcf, 0xde, 0x05, 0x23, 0xd6, 0x11, 0xc1, 0x54, 0x2a, 0xcd, 0x29, + 0x2b, 0xa8, 0x66, 0xe3, 0x23, 0xec, 0x04, 0x94, 0x0e, 0x47, 0xd5, 0x62, 0x1b, 0x7e, 0x0a, 0xc6, + 0x93, 0xd7, 0x2e, 0xbb, 0x1e, 0x56, 0x52, 0x9b, 0xcb, 0x48, 0x2d, 0x9e, 0xe5, 0xab, 0xae, 0x87, + 0xcd, 0xb2, 0x95, 0xb2, 0xc2, 0xda, 0x59, 0x85, 0x25, 0x36, 0x5c, 0x07, 0xc5, 0xf0, 0x35, 0x06, + 0x2a, 0xba, 0xc1, 0x6b, 0x0c, 0x83, 0xe1, 0x63, 0x30, 0x6a, 0x63, 0x8f, 0x09, 0x22, 0xf5, 0xb1, + 0x77, 0x3f, 0x7b, 0xe2, 0xdc, 0xab, 0x34, 0x00, 0xae, 0xd2, 0x00, 0xfc, 0x02, 0x8c, 0x23, 0x5f, + 0x1e, 0x30, 0x4e, 0x7e, 0xe8, 0xc9, 0x65, 0xa2, 0x59, 0x1f, 0x48, 0xc4, 0x66, 0x3a, 0xd2, 0xcc, + 0x26, 0xc2, 0x47, 0x00, 0x7e, 0xe7, 0x63, 0x4e, 0xb0, 0x68, 0x7b, 0x98, 0xb7, 0x5d, 0x42, 0x7d, + 0x89, 0xf5, 0x72, 0xb8, 0xf2, 0xa4, 0x42, 0xf6, 0x30, 0x6f, 0x85, 0xfe, 0x9b, 0x9c, 0x93, 0x69, + 0x39, 0xa9, 0x73, 0x32, 0xed, 0x4a, 0xd4, 0xf7, 0xc7, 0x2d, 0x30, 0xd9, 0x12, 0xce, 0xf6, 0x11, + 0x13, 0xf8, 0x83, 0xe4, 0xb7, 0x08, 0x4a, 0x89, 0x28, 0x88, 0x1d, 0x2a, 0xb0, 0x68, 0x82, 0xd8, + 0xb5, 0x63, 0xc3, 0x27, 0x89, 0xd2, 0x0a, 0xef, 0x77, 0x90, 0xc6, 0xd2, 0xdc, 0x4d, 0x49, 0xb3, + 0xf8, 0x9e, 0x67, 0x72, 0x5c, 0x60, 0xa3, 0x91, 0xa7, 0xb2, 0xda, 0x47, 0x65, 0x86, 0x9b, 0x7a, + 0x05, 0xe8, 0x79, 0x5f, 0x42, 0xe6, 0x1b, 0x2d, 0xdc, 0xe5, 0xdb, 0x47, 0x88, 0xb8, 0x31, 0xb8, + 0x43, 0x2d, 0xe6, 0xe2, 0xff, 0x86, 0xd2, 0x05, 0x30, 0x26, 0x88, 0x43, 0x91, 0xf4, 0xb9, 0xa2, + 0xc2, 0xec, 0x39, 0xe0, 0x34, 0x18, 0xee, 0x7d, 0x28, 0x0a, 0x66, 0x64, 0x6c, 0x7c, 0x92, 0x1f, + 0xf8, 0xc1, 0x80, 0x81, 0xfb, 0xfa, 0xaf, 0xd7, 0x40, 0x75, 0x30, 0x92, 0x0c, 0xff, 0x8b, 0x06, + 0xc6, 0x5b, 0xc2, 0xd9, 0xc7, 0xf2, 0x6b, 0xcc, 0x45, 0xf4, 0x89, 0x78, 0xf7, 0x99, 0x75, 0x30, + 0x7a, 0x1c, 0xa5, 0x87, 0xf3, 0x16, 0xcc, 0xd8, 0xdc, 0x78, 0x94, 0x6f, 0x7c, 0xbe, 0xaf, 0xf1, + 0xde, 0xda, 0xf5, 0x59, 0x30, 0x93, 0x71, 0xc4, 0x6d, 0x36, 0x7f, 0x2f, 0x82, 0x42, 0x4b, 0x38, + 0xd0, 0x04, 0xe5, 0xcc, 0x35, 0x69, 0x21, 0xb3, 0x69, 0x73, 0xd7, 0x8a, 0xca, 0x83, 0xeb, 0xd0, + 0xb8, 0x36, 0x7c, 0x06, 0x4a, 0xe9, 0x0b, 0xc7, 0x7c, 0x3e, 0x29, 0x05, 0x56, 0xee, 0x5f, 0x03, + 0x26, 0x05, 0x4d, 0x50, 0xce, 0x7c, 0x17, 0xfa, 0x9a, 0x4c, 0xa3, 0xfd, 0x4d, 0x0e, 0xda, 0xf1, + 0xf0, 0x39, 0x18, 0xcf, 0xee, 0xf6, 0x7b, 0xf9, 0xb4, 0x0c, 0x5c, 0x79, 0x78, 0x2d, 0x9c, 0x94, + 0x75, 0xc0, 0xd4, 0x20, 0xdd, 0xdf, 0xef, 0xcf, 0xee, 0x0b, 0xaa, 0xac, 0xdc, 0x20, 0x28, 0x59, + 0xe8, 0x29, 0x00, 0x29, 0x8d, 0x55, 0xf2, 0xa9, 0x3d, 0xac, 0x52, 0xbf, 0x1a, 0x8b, 0xab, 0x55, + 0x86, 0x7f, 0xbc, 0x3c, 0x5d, 0xd6, 0xb6, 0x1e, 0xbf, 0x3c, 0xaf, 0x6a, 0xaf, 0xce, 0xab, 0xda, + 0xdb, 0xf3, 0xaa, 0xf6, 0xdb, 0x45, 0x75, 0xe8, 0xd5, 0x45, 0x75, 0xe8, 0xcd, 0x45, 0x75, 0xe8, + 0xdb, 0x7f, 0x39, 0x57, 0x62, 0xf5, 0x05, 0xdf, 0x41, 0xd1, 0x19, 0x09, 0xaf, 0xe1, 0xeb, 0xff, + 0x04, 0x00, 0x00, 0xff, 0xff, 0xde, 0x1f, 0x86, 0xaf, 0x42, 0x0c, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// MsgClient is the client API for Msg service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type MsgClient interface { + BondProvider(ctx context.Context, in *MsgBondProvider, opts ...grpc.CallOption) (*MsgBondProviderResponse, error) + ModProvider(ctx context.Context, in *MsgModProvider, opts ...grpc.CallOption) (*MsgModProviderResponse, error) + OpenContract(ctx context.Context, in *MsgOpenContract, opts ...grpc.CallOption) (*MsgOpenContractResponse, error) + CloseContract(ctx context.Context, in *MsgCloseContract, opts ...grpc.CallOption) (*MsgCloseContractResponse, error) + ClaimContractIncome(ctx context.Context, in *MsgClaimContractIncome, opts ...grpc.CallOption) (*MsgClaimContractIncomeResponse, error) + // this line is used by starport scaffolding # proto/tx/rpc + SetVersion(ctx context.Context, in *MsgSetVersion, opts ...grpc.CallOption) (*MsgSetVersionResponse, error) +} + +type msgClient struct { + cc grpc1.ClientConn +} + +func NewMsgClient(cc grpc1.ClientConn) MsgClient { + return &msgClient{cc} +} + +func (c *msgClient) BondProvider(ctx context.Context, in *MsgBondProvider, opts ...grpc.CallOption) (*MsgBondProviderResponse, error) { + out := new(MsgBondProviderResponse) + err := c.cc.Invoke(ctx, "/arkeo.arkeo.Msg/BondProvider", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) ModProvider(ctx context.Context, in *MsgModProvider, opts ...grpc.CallOption) (*MsgModProviderResponse, error) { + out := new(MsgModProviderResponse) + err := c.cc.Invoke(ctx, "/arkeo.arkeo.Msg/ModProvider", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) OpenContract(ctx context.Context, in *MsgOpenContract, opts ...grpc.CallOption) (*MsgOpenContractResponse, error) { + out := new(MsgOpenContractResponse) + err := c.cc.Invoke(ctx, "/arkeo.arkeo.Msg/OpenContract", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) CloseContract(ctx context.Context, in *MsgCloseContract, opts ...grpc.CallOption) (*MsgCloseContractResponse, error) { + out := new(MsgCloseContractResponse) + err := c.cc.Invoke(ctx, "/arkeo.arkeo.Msg/CloseContract", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) ClaimContractIncome(ctx context.Context, in *MsgClaimContractIncome, opts ...grpc.CallOption) (*MsgClaimContractIncomeResponse, error) { + out := new(MsgClaimContractIncomeResponse) + err := c.cc.Invoke(ctx, "/arkeo.arkeo.Msg/ClaimContractIncome", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) SetVersion(ctx context.Context, in *MsgSetVersion, opts ...grpc.CallOption) (*MsgSetVersionResponse, error) { + out := new(MsgSetVersionResponse) + err := c.cc.Invoke(ctx, "/arkeo.arkeo.Msg/SetVersion", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// MsgServer is the server API for Msg service. +type MsgServer interface { + BondProvider(context.Context, *MsgBondProvider) (*MsgBondProviderResponse, error) + ModProvider(context.Context, *MsgModProvider) (*MsgModProviderResponse, error) + OpenContract(context.Context, *MsgOpenContract) (*MsgOpenContractResponse, error) + CloseContract(context.Context, *MsgCloseContract) (*MsgCloseContractResponse, error) + ClaimContractIncome(context.Context, *MsgClaimContractIncome) (*MsgClaimContractIncomeResponse, error) + // this line is used by starport scaffolding # proto/tx/rpc + SetVersion(context.Context, *MsgSetVersion) (*MsgSetVersionResponse, error) +} + +// UnimplementedMsgServer can be embedded to have forward compatible implementations. +type UnimplementedMsgServer struct { +} + +func (*UnimplementedMsgServer) BondProvider(ctx context.Context, req *MsgBondProvider) (*MsgBondProviderResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BondProvider not implemented") +} +func (*UnimplementedMsgServer) ModProvider(ctx context.Context, req *MsgModProvider) (*MsgModProviderResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ModProvider not implemented") +} +func (*UnimplementedMsgServer) OpenContract(ctx context.Context, req *MsgOpenContract) (*MsgOpenContractResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method OpenContract not implemented") +} +func (*UnimplementedMsgServer) CloseContract(ctx context.Context, req *MsgCloseContract) (*MsgCloseContractResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CloseContract not implemented") +} +func (*UnimplementedMsgServer) ClaimContractIncome(ctx context.Context, req *MsgClaimContractIncome) (*MsgClaimContractIncomeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ClaimContractIncome not implemented") +} +func (*UnimplementedMsgServer) SetVersion(ctx context.Context, req *MsgSetVersion) (*MsgSetVersionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetVersion not implemented") +} + +func RegisterMsgServer(s grpc1.Server, srv MsgServer) { + s.RegisterService(&_Msg_serviceDesc, srv) +} + +func _Msg_BondProvider_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgBondProvider) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).BondProvider(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/arkeo.arkeo.Msg/BondProvider", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).BondProvider(ctx, req.(*MsgBondProvider)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_ModProvider_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgModProvider) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).ModProvider(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/arkeo.arkeo.Msg/ModProvider", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).ModProvider(ctx, req.(*MsgModProvider)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_OpenContract_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgOpenContract) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).OpenContract(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/arkeo.arkeo.Msg/OpenContract", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).OpenContract(ctx, req.(*MsgOpenContract)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_CloseContract_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCloseContract) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).CloseContract(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/arkeo.arkeo.Msg/CloseContract", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CloseContract(ctx, req.(*MsgCloseContract)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_ClaimContractIncome_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgClaimContractIncome) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).ClaimContractIncome(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/arkeo.arkeo.Msg/ClaimContractIncome", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).ClaimContractIncome(ctx, req.(*MsgClaimContractIncome)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SetVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetVersion) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SetVersion(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/arkeo.arkeo.Msg/SetVersion", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetVersion(ctx, req.(*MsgSetVersion)) + } + return interceptor(ctx, in, info, handler) +} + +var Msg_serviceDesc = _Msg_serviceDesc +var _Msg_serviceDesc = grpc.ServiceDesc{ + ServiceName: "arkeo.arkeo.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "BondProvider", + Handler: _Msg_BondProvider_Handler, + }, + { + MethodName: "ModProvider", + Handler: _Msg_ModProvider_Handler, + }, + { + MethodName: "OpenContract", + Handler: _Msg_OpenContract_Handler, + }, + { + MethodName: "CloseContract", + Handler: _Msg_CloseContract_Handler, + }, + { + MethodName: "ClaimContractIncome", + Handler: _Msg_ClaimContractIncome_Handler, + }, + { + MethodName: "SetVersion", + Handler: _Msg_SetVersion_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "arkeo/arkeo/tx.proto", +} + +func (m *MsgBondProvider) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgBondProvider) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgBondProvider) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Bond.Size() + i -= size + if _, err := m.Bond.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + if len(m.Service) > 0 { + i -= len(m.Service) + copy(dAtA[i:], m.Service) + i = encodeVarintTx(dAtA, i, uint64(len(m.Service))) + i-- + dAtA[i] = 0x1a + } + if len(m.Provider) > 0 { + i -= len(m.Provider) + copy(dAtA[i:], m.Provider) + i = encodeVarintTx(dAtA, i, uint64(len(m.Provider))) + i-- + dAtA[i] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgBondProviderResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgBondProviderResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgBondProviderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgModProvider) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgModProvider) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgModProvider) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.SettlementDuration != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.SettlementDuration)) + i-- + dAtA[i] = 0x58 + } + if len(m.PayAsYouGoRate) > 0 { + for iNdEx := len(m.PayAsYouGoRate) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PayAsYouGoRate[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + } + } + if len(m.SubscriptionRate) > 0 { + for iNdEx := len(m.SubscriptionRate) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SubscriptionRate[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + } + if m.MaxContractDuration != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.MaxContractDuration)) + i-- + dAtA[i] = 0x40 + } + if m.MinContractDuration != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.MinContractDuration)) + i-- + dAtA[i] = 0x38 + } + if m.Status != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.Status)) + i-- + dAtA[i] = 0x30 + } + if m.MetadataNonce != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.MetadataNonce)) + i-- + dAtA[i] = 0x28 + } + if len(m.MetadataUri) > 0 { + i -= len(m.MetadataUri) + copy(dAtA[i:], m.MetadataUri) + i = encodeVarintTx(dAtA, i, uint64(len(m.MetadataUri))) + i-- + dAtA[i] = 0x22 + } + if len(m.Service) > 0 { + i -= len(m.Service) + copy(dAtA[i:], m.Service) + i = encodeVarintTx(dAtA, i, uint64(len(m.Service))) + i-- + dAtA[i] = 0x1a + } + if len(m.Provider) > 0 { + i -= len(m.Provider) + copy(dAtA[i:], m.Provider) + i = encodeVarintTx(dAtA, i, uint64(len(m.Provider))) + i-- + dAtA[i] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgModProviderResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgModProviderResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgModProviderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgOpenContract) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgOpenContract) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgOpenContract) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.QueriesPerMinute != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.QueriesPerMinute)) + i-- + dAtA[i] = 0x60 + } + if m.Authorization != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.Authorization)) + i-- + dAtA[i] = 0x58 + } + if m.SettlementDuration != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.SettlementDuration)) + i-- + dAtA[i] = 0x50 + } + { + size := m.Deposit.Size() + i -= size + if _, err := m.Deposit.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + { + size, err := m.Rate.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + if m.Duration != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.Duration)) + i-- + dAtA[i] = 0x38 + } + if m.ContractType != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.ContractType)) + i-- + dAtA[i] = 0x30 + } + if len(m.Delegate) > 0 { + i -= len(m.Delegate) + copy(dAtA[i:], m.Delegate) + i = encodeVarintTx(dAtA, i, uint64(len(m.Delegate))) + i-- + dAtA[i] = 0x2a + } + if len(m.Client) > 0 { + i -= len(m.Client) + copy(dAtA[i:], m.Client) + i = encodeVarintTx(dAtA, i, uint64(len(m.Client))) + i-- + dAtA[i] = 0x22 + } + if len(m.Service) > 0 { + i -= len(m.Service) + copy(dAtA[i:], m.Service) + i = encodeVarintTx(dAtA, i, uint64(len(m.Service))) + i-- + dAtA[i] = 0x1a + } + if len(m.Provider) > 0 { + i -= len(m.Provider) + copy(dAtA[i:], m.Provider) + i = encodeVarintTx(dAtA, i, uint64(len(m.Provider))) + i-- + dAtA[i] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgOpenContractResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgOpenContractResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgOpenContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgCloseContract) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgCloseContract) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCloseContract) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Delegate) > 0 { + i -= len(m.Delegate) + copy(dAtA[i:], m.Delegate) + i = encodeVarintTx(dAtA, i, uint64(len(m.Delegate))) + i-- + dAtA[i] = 0x22 + } + if len(m.Client) > 0 { + i -= len(m.Client) + copy(dAtA[i:], m.Client) + i = encodeVarintTx(dAtA, i, uint64(len(m.Client))) + i-- + dAtA[i] = 0x1a + } + if m.ContractId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.ContractId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgCloseContractResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgCloseContractResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCloseContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgClaimContractIncome) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgClaimContractIncome) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgClaimContractIncome) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Nonce != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.Nonce)) + i-- + dAtA[i] = 0x28 + } + if len(m.Signature) > 0 { + i -= len(m.Signature) + copy(dAtA[i:], m.Signature) + i = encodeVarintTx(dAtA, i, uint64(len(m.Signature))) + i-- + dAtA[i] = 0x22 + } + if m.ContractId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.ContractId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgClaimContractIncomeResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgClaimContractIncomeResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgClaimContractIncomeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgSetVersion) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgSetVersion) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetVersion) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Version != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.Version)) + i-- + dAtA[i] = 0x10 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgSetVersionResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgSetVersionResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetVersionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func encodeVarintTx(dAtA []byte, offset int, v uint64) int { + offset -= sovTx(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *MsgBondProvider) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Provider) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Service) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.Bond.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgBondProviderResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgModProvider) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Provider) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Service) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.MetadataUri) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.MetadataNonce != 0 { + n += 1 + sovTx(uint64(m.MetadataNonce)) + } + if m.Status != 0 { + n += 1 + sovTx(uint64(m.Status)) + } + if m.MinContractDuration != 0 { + n += 1 + sovTx(uint64(m.MinContractDuration)) + } + if m.MaxContractDuration != 0 { + n += 1 + sovTx(uint64(m.MaxContractDuration)) + } + if len(m.SubscriptionRate) > 0 { + for _, e := range m.SubscriptionRate { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if len(m.PayAsYouGoRate) > 0 { + for _, e := range m.PayAsYouGoRate { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if m.SettlementDuration != 0 { + n += 1 + sovTx(uint64(m.SettlementDuration)) + } + return n +} + +func (m *MsgModProviderResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgOpenContract) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Provider) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Service) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Client) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Delegate) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.ContractType != 0 { + n += 1 + sovTx(uint64(m.ContractType)) + } + if m.Duration != 0 { + n += 1 + sovTx(uint64(m.Duration)) + } + l = m.Rate.Size() + n += 1 + l + sovTx(uint64(l)) + l = m.Deposit.Size() + n += 1 + l + sovTx(uint64(l)) + if m.SettlementDuration != 0 { + n += 1 + sovTx(uint64(m.SettlementDuration)) + } + if m.Authorization != 0 { + n += 1 + sovTx(uint64(m.Authorization)) + } + if m.QueriesPerMinute != 0 { + n += 1 + sovTx(uint64(m.QueriesPerMinute)) + } + return n +} + +func (m *MsgOpenContractResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgCloseContract) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.ContractId != 0 { + n += 1 + sovTx(uint64(m.ContractId)) + } + l = len(m.Client) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Delegate) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgCloseContractResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgClaimContractIncome) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.ContractId != 0 { + n += 1 + sovTx(uint64(m.ContractId)) + } + l = len(m.Signature) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.Nonce != 0 { + n += 1 + sovTx(uint64(m.Nonce)) + } + return n +} + +func (m *MsgClaimContractIncomeResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgSetVersion) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.Version != 0 { + n += 1 + sovTx(uint64(m.Version)) + } + return n +} + +func (m *MsgSetVersionResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func sovTx(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozTx(x uint64) (n int) { + return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *MsgBondProvider) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgBondProvider: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgBondProvider: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Provider", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Provider = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Service", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Service = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Bond", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Bond.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgBondProviderResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgBondProviderResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgBondProviderResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgModProvider) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgModProvider: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgModProvider: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Provider", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Provider = append(m.Provider[:0], dAtA[iNdEx:postIndex]...) + if m.Provider == nil { + m.Provider = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Service", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Service = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MetadataUri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MetadataUri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MetadataNonce", wireType) + } + m.MetadataNonce = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MetadataNonce |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + m.Status = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Status |= ProviderStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MinContractDuration", wireType) + } + m.MinContractDuration = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MinContractDuration |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxContractDuration", wireType) + } + m.MaxContractDuration = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxContractDuration |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SubscriptionRate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SubscriptionRate = append(m.SubscriptionRate, types.Coin{}) + if err := m.SubscriptionRate[len(m.SubscriptionRate)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PayAsYouGoRate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PayAsYouGoRate = append(m.PayAsYouGoRate, types.Coin{}) + if err := m.PayAsYouGoRate[len(m.PayAsYouGoRate)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SettlementDuration", wireType) + } + m.SettlementDuration = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SettlementDuration |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgModProviderResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgModProviderResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgModProviderResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgOpenContract) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgOpenContract: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgOpenContract: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Provider", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Provider = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Service", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Service = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Client", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Client = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Delegate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Delegate = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractType", wireType) + } + m.ContractType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ContractType |= ContractType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Duration", wireType) + } + m.Duration = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Duration |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Rate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Rate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Deposit", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Deposit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SettlementDuration", wireType) + } + m.SettlementDuration = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SettlementDuration |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Authorization", wireType) + } + m.Authorization = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Authorization |= ContractAuthorization(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field QueriesPerMinute", wireType) + } + m.QueriesPerMinute = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.QueriesPerMinute |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgOpenContractResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgOpenContractResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgOpenContractResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgCloseContract) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgCloseContract: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCloseContract: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + m.ContractId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ContractId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Client", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Client = append(m.Client[:0], dAtA[iNdEx:postIndex]...) + if m.Client == nil { + m.Client = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Delegate", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Delegate = append(m.Delegate[:0], dAtA[iNdEx:postIndex]...) + if m.Delegate == nil { + m.Delegate = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgCloseContractResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgCloseContractResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCloseContractResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgClaimContractIncome) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgClaimContractIncome: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgClaimContractIncome: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + m.ContractId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ContractId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Signature = append(m.Signature[:0], dAtA[iNdEx:postIndex]...) + if m.Signature == nil { + m.Signature = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) + } + m.Nonce = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Nonce |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgClaimContractIncomeResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgClaimContractIncomeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgClaimContractIncomeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgSetVersion) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgSetVersion: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSetVersion: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + m.Version = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Version |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgSetVersionResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgSetVersionResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSetVersionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipTx(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTx + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTx + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTx + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthTx + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTx + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthTx + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/claim/types/claim_record.pb.go b/x/claim/types/claim_record.pb.go new file mode 100644 index 00000000..37238cf6 --- /dev/null +++ b/x/claim/types/claim_record.pb.go @@ -0,0 +1,631 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: arkeo/claim/claim_record.proto + +package types + +import ( + fmt "fmt" + types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// actions for arkeo chain +type Action int32 + +const ( + ACTION_CLAIM Action = 0 + ACTION_VOTE Action = 1 + ACTION_DELEGATE Action = 2 +) + +var Action_name = map[int32]string{ + 0: "ACTION_CLAIM", + 1: "ACTION_VOTE", + 2: "ACTION_DELEGATE", +} + +var Action_value = map[string]int32{ + "ACTION_CLAIM": 0, + "ACTION_VOTE": 1, + "ACTION_DELEGATE": 2, +} + +func (x Action) String() string { + return proto.EnumName(Action_name, int32(x)) +} + +func (Action) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_db5386e8ec5cd28f, []int{0} +} + +type Chain int32 + +const ( + ARKEO Chain = 0 + ETHEREUM Chain = 1 +) + +var Chain_name = map[int32]string{ + 0: "ARKEO", + 1: "ETHEREUM", +} + +var Chain_value = map[string]int32{ + "ARKEO": 0, + "ETHEREUM": 1, +} + +func (x Chain) String() string { + return proto.EnumName(Chain_name, int32(x)) +} + +func (Chain) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_db5386e8ec5cd28f, []int{1} +} + +// A Claim Records is the metadata of claim data per address +type ClaimRecord struct { + Chain Chain `protobuf:"varint,1,opt,name=chain,proto3,enum=arkeo.claim.Chain" json:"chain,omitempty"` + // arkeo address of claim user + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty" yaml:"address"` + // claimable amount per action (claim, vote, delegate - changed to 0 after + // action completed) + AmountClaim types.Coin `protobuf:"bytes,3,opt,name=amount_claim,json=amountClaim,proto3" json:"amount_claim" yaml:"amount_claim"` + AmountVote types.Coin `protobuf:"bytes,4,opt,name=amount_vote,json=amountVote,proto3" json:"amount_vote" yaml:"amount_vote"` + AmountDelegate types.Coin `protobuf:"bytes,5,opt,name=amount_delegate,json=amountDelegate,proto3" json:"amount_delegate" yaml:"amount_delegate"` + IsTransferable bool `protobuf:"varint,6,opt,name=is_transferable,json=isTransferable,proto3" json:"is_transferable,omitempty"` +} + +func (m *ClaimRecord) Reset() { *m = ClaimRecord{} } +func (m *ClaimRecord) String() string { return proto.CompactTextString(m) } +func (*ClaimRecord) ProtoMessage() {} +func (*ClaimRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_db5386e8ec5cd28f, []int{0} +} +func (m *ClaimRecord) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ClaimRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ClaimRecord.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ClaimRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClaimRecord.Merge(m, src) +} +func (m *ClaimRecord) XXX_Size() int { + return m.Size() +} +func (m *ClaimRecord) XXX_DiscardUnknown() { + xxx_messageInfo_ClaimRecord.DiscardUnknown(m) +} + +var xxx_messageInfo_ClaimRecord proto.InternalMessageInfo + +func (m *ClaimRecord) GetChain() Chain { + if m != nil { + return m.Chain + } + return ARKEO +} + +func (m *ClaimRecord) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *ClaimRecord) GetAmountClaim() types.Coin { + if m != nil { + return m.AmountClaim + } + return types.Coin{} +} + +func (m *ClaimRecord) GetAmountVote() types.Coin { + if m != nil { + return m.AmountVote + } + return types.Coin{} +} + +func (m *ClaimRecord) GetAmountDelegate() types.Coin { + if m != nil { + return m.AmountDelegate + } + return types.Coin{} +} + +func (m *ClaimRecord) GetIsTransferable() bool { + if m != nil { + return m.IsTransferable + } + return false +} + +func init() { + proto.RegisterEnum("arkeo.claim.Action", Action_name, Action_value) + proto.RegisterEnum("arkeo.claim.Chain", Chain_name, Chain_value) + proto.RegisterType((*ClaimRecord)(nil), "arkeo.claim.ClaimRecord") +} + +func init() { proto.RegisterFile("arkeo/claim/claim_record.proto", fileDescriptor_db5386e8ec5cd28f) } + +var fileDescriptor_db5386e8ec5cd28f = []byte{ + // 471 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x41, 0x6e, 0xd3, 0x40, + 0x18, 0x85, 0x3d, 0x6d, 0x13, 0xda, 0x71, 0x94, 0x58, 0x53, 0x84, 0x4c, 0x90, 0x26, 0x91, 0x17, + 0x60, 0x15, 0x64, 0xab, 0x65, 0xc7, 0xce, 0x71, 0x0d, 0x54, 0xb4, 0x44, 0xb2, 0x4c, 0x24, 0xd8, + 0x58, 0x63, 0x67, 0x48, 0xad, 0xc6, 0x9e, 0xca, 0x33, 0x2d, 0xf4, 0x06, 0x2c, 0xb9, 0x03, 0xe2, + 0x2e, 0x5d, 0x76, 0xc9, 0x2a, 0x42, 0xc9, 0x0d, 0x7a, 0x82, 0xca, 0x33, 0x53, 0x29, 0x5d, 0x75, + 0x63, 0xf9, 0x7f, 0xef, 0x7f, 0x9f, 0x9f, 0xe4, 0x1f, 0x62, 0x52, 0x9f, 0x51, 0xe6, 0xe7, 0x73, + 0x52, 0x94, 0xea, 0x99, 0xd6, 0x34, 0x67, 0xf5, 0xd4, 0x3b, 0xaf, 0x99, 0x60, 0xc8, 0x94, 0xbe, + 0x27, 0x9d, 0xfe, 0xd3, 0x19, 0x9b, 0x31, 0xa9, 0xfb, 0xcd, 0x9b, 0x5a, 0xe9, 0xe3, 0x9c, 0xf1, + 0x92, 0x71, 0x3f, 0x23, 0x9c, 0xfa, 0x97, 0xfb, 0x19, 0x15, 0x64, 0xdf, 0xcf, 0x59, 0x51, 0x29, + 0xdf, 0xf9, 0xbb, 0x09, 0xcd, 0xb0, 0xc9, 0xc7, 0x12, 0x8c, 0x5c, 0xd8, 0xca, 0x4f, 0x49, 0x51, + 0xd9, 0x60, 0x08, 0xdc, 0xee, 0x01, 0xf2, 0xd6, 0x3e, 0xe1, 0x85, 0x8d, 0x13, 0xab, 0x05, 0xf4, + 0x06, 0x3e, 0x21, 0xd3, 0x69, 0x4d, 0x39, 0xb7, 0x37, 0x86, 0xc0, 0xdd, 0x19, 0xa1, 0xdb, 0xc5, + 0xa0, 0x7b, 0x45, 0xca, 0xf9, 0x3b, 0x47, 0x1b, 0x4e, 0x7c, 0xbf, 0x82, 0xbe, 0xc2, 0x0e, 0x29, + 0xd9, 0x45, 0x25, 0x52, 0x89, 0xb2, 0x37, 0x87, 0xc0, 0x35, 0x0f, 0x9e, 0x7b, 0xaa, 0x9e, 0xd7, + 0xd4, 0xf3, 0x74, 0x3d, 0x2f, 0x64, 0x45, 0x35, 0x7a, 0x71, 0xbd, 0x18, 0x18, 0xb7, 0x8b, 0xc1, + 0xae, 0x26, 0xae, 0x85, 0x9d, 0xd8, 0x54, 0xa3, 0x2c, 0x8e, 0x26, 0x50, 0x8f, 0xe9, 0x25, 0x13, + 0xd4, 0xde, 0x7a, 0x8c, 0xdc, 0xd7, 0x64, 0xf4, 0x80, 0xdc, 0x64, 0x9d, 0x18, 0xaa, 0x69, 0xc2, + 0x04, 0x45, 0x19, 0xec, 0x69, 0x6f, 0x4a, 0xe7, 0x74, 0x46, 0x04, 0xb5, 0x5b, 0x8f, 0xb1, 0xb1, + 0x66, 0x3f, 0x7b, 0xc0, 0xbe, 0xcf, 0x3b, 0x71, 0x57, 0x29, 0x87, 0x5a, 0x40, 0xaf, 0x60, 0xaf, + 0xe0, 0xa9, 0xa8, 0x49, 0xc5, 0xbf, 0xd3, 0x9a, 0x64, 0x73, 0x6a, 0xb7, 0x87, 0xc0, 0xdd, 0x8e, + 0xbb, 0x05, 0x4f, 0xd6, 0xd4, 0xbd, 0xf7, 0xb0, 0x1d, 0xe4, 0xa2, 0x60, 0x15, 0xb2, 0x60, 0x27, + 0x08, 0x93, 0xa3, 0xf1, 0xe7, 0x34, 0x3c, 0x0e, 0x8e, 0x4e, 0x2c, 0x03, 0xf5, 0xa0, 0xa9, 0x95, + 0xc9, 0x38, 0x89, 0x2c, 0x80, 0x76, 0x61, 0x4f, 0x0b, 0x87, 0xd1, 0x71, 0xf4, 0x21, 0x48, 0x22, + 0x6b, 0xa3, 0xbf, 0xf5, 0xeb, 0x0f, 0x36, 0xf6, 0x5e, 0xc2, 0x96, 0xfc, 0x8b, 0x68, 0x07, 0xb6, + 0x82, 0xf8, 0x53, 0x34, 0xb6, 0x0c, 0xd4, 0x81, 0xdb, 0x51, 0xf2, 0x31, 0x8a, 0xa3, 0x2f, 0x27, + 0x16, 0x50, 0x7b, 0xa3, 0xe8, 0x7a, 0x89, 0xc1, 0xcd, 0x12, 0x83, 0xff, 0x4b, 0x0c, 0x7e, 0xaf, + 0xb0, 0x71, 0xb3, 0xc2, 0xc6, 0xbf, 0x15, 0x36, 0xbe, 0xbd, 0x9e, 0x15, 0xe2, 0xf4, 0x22, 0xf3, + 0x72, 0x56, 0xfa, 0xf2, 0x38, 0x2a, 0x2a, 0x7e, 0xb0, 0xfa, 0x4c, 0x0d, 0xfe, 0x4f, 0x7d, 0xae, + 0xe2, 0xea, 0x9c, 0xf2, 0xac, 0x2d, 0xaf, 0xec, 0xed, 0x5d, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe5, + 0xc9, 0x31, 0x28, 0xca, 0x02, 0x00, 0x00, +} + +func (m *ClaimRecord) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ClaimRecord) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ClaimRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.IsTransferable { + i-- + if m.IsTransferable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + { + size, err := m.AmountDelegate.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintClaimRecord(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + { + size, err := m.AmountVote.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintClaimRecord(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size, err := m.AmountClaim.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintClaimRecord(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintClaimRecord(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0x12 + } + if m.Chain != 0 { + i = encodeVarintClaimRecord(dAtA, i, uint64(m.Chain)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintClaimRecord(dAtA []byte, offset int, v uint64) int { + offset -= sovClaimRecord(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ClaimRecord) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Chain != 0 { + n += 1 + sovClaimRecord(uint64(m.Chain)) + } + l = len(m.Address) + if l > 0 { + n += 1 + l + sovClaimRecord(uint64(l)) + } + l = m.AmountClaim.Size() + n += 1 + l + sovClaimRecord(uint64(l)) + l = m.AmountVote.Size() + n += 1 + l + sovClaimRecord(uint64(l)) + l = m.AmountDelegate.Size() + n += 1 + l + sovClaimRecord(uint64(l)) + if m.IsTransferable { + n += 2 + } + return n +} + +func sovClaimRecord(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozClaimRecord(x uint64) (n int) { + return sovClaimRecord(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ClaimRecord) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowClaimRecord + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ClaimRecord: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ClaimRecord: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Chain", wireType) + } + m.Chain = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowClaimRecord + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Chain |= Chain(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowClaimRecord + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthClaimRecord + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthClaimRecord + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AmountClaim", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowClaimRecord + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthClaimRecord + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthClaimRecord + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.AmountClaim.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AmountVote", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowClaimRecord + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthClaimRecord + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthClaimRecord + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.AmountVote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AmountDelegate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowClaimRecord + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthClaimRecord + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthClaimRecord + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.AmountDelegate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsTransferable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowClaimRecord + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsTransferable = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipClaimRecord(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthClaimRecord + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipClaimRecord(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowClaimRecord + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowClaimRecord + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowClaimRecord + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthClaimRecord + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupClaimRecord + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthClaimRecord + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthClaimRecord = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowClaimRecord = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupClaimRecord = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/claim/types/genesis.pb.go b/x/claim/types/genesis.pb.go new file mode 100644 index 00000000..a36363d1 --- /dev/null +++ b/x/claim/types/genesis.pb.go @@ -0,0 +1,448 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: arkeo/claim/genesis.proto + +package types + +import ( + fmt "fmt" + types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// GenesisState defines the claim module's genesis state. +type GenesisState struct { + // balance of the claim module's account + ModuleAccountBalance types.Coin `protobuf:"bytes,1,opt,name=module_account_balance,json=moduleAccountBalance,proto3" json:"module_account_balance" yaml:"module_account_balance"` + Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` + // list of claim records, one for every airdrop recipient + ClaimRecords []ClaimRecord `protobuf:"bytes,3,rep,name=claim_records,json=claimRecords,proto3" json:"claim_records" yaml:"claim_records"` +} + +func (m *GenesisState) Reset() { *m = GenesisState{} } +func (m *GenesisState) String() string { return proto.CompactTextString(m) } +func (*GenesisState) ProtoMessage() {} +func (*GenesisState) Descriptor() ([]byte, []int) { + return fileDescriptor_087fbceea1b57c13, []int{0} +} +func (m *GenesisState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GenesisState.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GenesisState) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenesisState.Merge(m, src) +} +func (m *GenesisState) XXX_Size() int { + return m.Size() +} +func (m *GenesisState) XXX_DiscardUnknown() { + xxx_messageInfo_GenesisState.DiscardUnknown(m) +} + +var xxx_messageInfo_GenesisState proto.InternalMessageInfo + +func (m *GenesisState) GetModuleAccountBalance() types.Coin { + if m != nil { + return m.ModuleAccountBalance + } + return types.Coin{} +} + +func (m *GenesisState) GetParams() Params { + if m != nil { + return m.Params + } + return Params{} +} + +func (m *GenesisState) GetClaimRecords() []ClaimRecord { + if m != nil { + return m.ClaimRecords + } + return nil +} + +func init() { + proto.RegisterType((*GenesisState)(nil), "arkeo.claim.GenesisState") +} + +func init() { proto.RegisterFile("arkeo/claim/genesis.proto", fileDescriptor_087fbceea1b57c13) } + +var fileDescriptor_087fbceea1b57c13 = []byte{ + // 340 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0xc1, 0x4a, 0xf3, 0x40, + 0x14, 0x85, 0x93, 0xf6, 0xa7, 0x8b, 0xb4, 0xff, 0x26, 0x16, 0x49, 0x8b, 0x4e, 0x4b, 0x40, 0x28, + 0x08, 0x33, 0xb4, 0xee, 0xdc, 0x99, 0x22, 0x6e, 0x25, 0xee, 0x74, 0x51, 0x26, 0xd3, 0x21, 0x86, + 0x26, 0xb9, 0x65, 0x66, 0x5a, 0xed, 0x5b, 0xb8, 0xf2, 0x99, 0xba, 0xec, 0xd2, 0x55, 0x91, 0xe6, + 0x0d, 0x7c, 0x02, 0xc9, 0x4c, 0xc4, 0x14, 0xdc, 0x0c, 0xc9, 0xfd, 0xce, 0x39, 0xf7, 0xce, 0x1d, + 0xa7, 0x47, 0xc5, 0x82, 0x03, 0x61, 0x29, 0x4d, 0x32, 0x12, 0xf3, 0x9c, 0xcb, 0x44, 0xe2, 0xa5, + 0x00, 0x05, 0x6e, 0x5b, 0x23, 0xac, 0x51, 0xbf, 0x1b, 0x43, 0x0c, 0xba, 0x4e, 0xca, 0x2f, 0x23, + 0xe9, 0x7b, 0x75, 0xf7, 0x92, 0x0a, 0x9a, 0x55, 0xe6, 0x3e, 0xaa, 0x13, 0x7d, 0xce, 0x04, 0x67, + 0x20, 0xe6, 0x3f, 0x9c, 0x81, 0xcc, 0x40, 0x92, 0x88, 0x4a, 0x4e, 0xd6, 0xe3, 0x88, 0x2b, 0x3a, + 0x26, 0x0c, 0x92, 0xdc, 0x70, 0xff, 0xbd, 0xe1, 0x74, 0xee, 0xcc, 0x38, 0x0f, 0x8a, 0x2a, 0xee, + 0xae, 0x9d, 0xd3, 0x0c, 0xe6, 0xab, 0x94, 0xcf, 0x28, 0x63, 0xb0, 0xca, 0xd5, 0x2c, 0xa2, 0x29, + 0xcd, 0x19, 0xf7, 0xec, 0xa1, 0x3d, 0x6a, 0x4f, 0x7a, 0xd8, 0x24, 0xe2, 0x32, 0x11, 0x57, 0x89, + 0x78, 0x0a, 0x49, 0x1e, 0x5c, 0x6c, 0xf7, 0x03, 0xeb, 0x6b, 0x3f, 0x38, 0xdf, 0xd0, 0x2c, 0xbd, + 0xf6, 0xff, 0x8e, 0xf1, 0xc3, 0xae, 0x01, 0x37, 0xa6, 0x1e, 0x98, 0xb2, 0x3b, 0x76, 0x5a, 0xe6, + 0x62, 0x5e, 0x43, 0xf7, 0x39, 0xc1, 0xb5, 0xb5, 0xe0, 0x7b, 0x8d, 0x82, 0x7f, 0x65, 0x87, 0xb0, + 0x12, 0xba, 0x4f, 0xce, 0xff, 0xfa, 0x8d, 0xa5, 0xd7, 0x1c, 0x36, 0x47, 0xed, 0x89, 0x77, 0xe4, + 0x9c, 0x96, 0x67, 0xa8, 0x05, 0xc1, 0x59, 0x35, 0x60, 0xd7, 0x0c, 0x78, 0x64, 0xf6, 0xc3, 0x0e, + 0xfb, 0x95, 0xca, 0xe0, 0x76, 0x7b, 0x40, 0xf6, 0xee, 0x80, 0xec, 0xcf, 0x03, 0xb2, 0xdf, 0x0a, + 0x64, 0xed, 0x0a, 0x64, 0x7d, 0x14, 0xc8, 0x7a, 0xbc, 0x8c, 0x13, 0xf5, 0xbc, 0x8a, 0x30, 0x83, + 0x8c, 0xe8, 0x4e, 0x39, 0x57, 0x2f, 0x20, 0x16, 0xe6, 0x87, 0xbc, 0x56, 0x8f, 0xa1, 0x36, 0x4b, + 0x2e, 0xa3, 0x96, 0x5e, 0xf3, 0xd5, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x58, 0x09, 0xe0, 0x8f, + 0x00, 0x02, 0x00, 0x00, +} + +func (m *GenesisState) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GenesisState) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ClaimRecords) > 0 { + for iNdEx := len(m.ClaimRecords) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ClaimRecords[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.ModuleAccountBalance.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { + offset -= sovGenesis(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *GenesisState) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ModuleAccountBalance.Size() + n += 1 + l + sovGenesis(uint64(l)) + l = m.Params.Size() + n += 1 + l + sovGenesis(uint64(l)) + if len(m.ClaimRecords) > 0 { + for _, e := range m.ClaimRecords { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + return n +} + +func sovGenesis(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozGenesis(x uint64) (n int) { + return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *GenesisState) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GenesisState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ModuleAccountBalance", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ModuleAccountBalance.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClaimRecords", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClaimRecords = append(m.ClaimRecords, ClaimRecord{}) + if err := m.ClaimRecords[len(m.ClaimRecords)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipGenesis(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenesis + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenesis + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenesis + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthGenesis + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupGenesis + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthGenesis + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/claim/types/params.pb.go b/x/claim/types/params.pb.go new file mode 100644 index 00000000..6ed3e3b2 --- /dev/null +++ b/x/claim/types/params.pb.go @@ -0,0 +1,556 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: arkeo/claim/params.proto + +package types + +import ( + fmt "fmt" + types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" + _ "google.golang.org/protobuf/types/known/durationpb" + _ "google.golang.org/protobuf/types/known/timestamppb" + io "io" + math "math" + math_bits "math/bits" + time "time" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf +var _ = time.Kitchen + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// Params defines the parameters for the module. +type Params struct { + AirdropStartTime time.Time `protobuf:"bytes,1,opt,name=airdrop_start_time,json=airdropStartTime,proto3,stdtime" json:"airdrop_start_time" yaml:"airdrop_start_time"` + DurationUntilDecay time.Duration `protobuf:"bytes,2,opt,name=duration_until_decay,json=durationUntilDecay,proto3,stdduration" json:"duration_until_decay,omitempty" yaml:"duration_until_decay"` + DurationOfDecay time.Duration `protobuf:"bytes,3,opt,name=duration_of_decay,json=durationOfDecay,proto3,stdduration" json:"duration_of_decay,omitempty" yaml:"duration_of_decay"` + // denom of claimable asset + ClaimDenom string `protobuf:"bytes,4,opt,name=claim_denom,json=claimDenom,proto3" json:"claim_denom,omitempty"` + // uarkeo to distribute to arkeo account for gas to make claiming easier + InitialGasAmount *types.Coin `protobuf:"bytes,5,opt,name=initial_gas_amount,json=initialGasAmount,proto3" json:"initial_gas_amount,omitempty" yaml:"initial_gas_amount"` +} + +func (m *Params) Reset() { *m = Params{} } +func (m *Params) String() string { return proto.CompactTextString(m) } +func (*Params) ProtoMessage() {} +func (*Params) Descriptor() ([]byte, []int) { + return fileDescriptor_2bdbd8eba92221b6, []int{0} +} +func (m *Params) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Params.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Params) XXX_Merge(src proto.Message) { + xxx_messageInfo_Params.Merge(m, src) +} +func (m *Params) XXX_Size() int { + return m.Size() +} +func (m *Params) XXX_DiscardUnknown() { + xxx_messageInfo_Params.DiscardUnknown(m) +} + +var xxx_messageInfo_Params proto.InternalMessageInfo + +func (m *Params) GetAirdropStartTime() time.Time { + if m != nil { + return m.AirdropStartTime + } + return time.Time{} +} + +func (m *Params) GetDurationUntilDecay() time.Duration { + if m != nil { + return m.DurationUntilDecay + } + return 0 +} + +func (m *Params) GetDurationOfDecay() time.Duration { + if m != nil { + return m.DurationOfDecay + } + return 0 +} + +func (m *Params) GetClaimDenom() string { + if m != nil { + return m.ClaimDenom + } + return "" +} + +func (m *Params) GetInitialGasAmount() *types.Coin { + if m != nil { + return m.InitialGasAmount + } + return nil +} + +func init() { + proto.RegisterType((*Params)(nil), "arkeo.claim.Params") +} + +func init() { proto.RegisterFile("arkeo/claim/params.proto", fileDescriptor_2bdbd8eba92221b6) } + +var fileDescriptor_2bdbd8eba92221b6 = []byte{ + // 451 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x31, 0x6f, 0xd3, 0x40, + 0x14, 0xc7, 0x73, 0x50, 0x2a, 0xe1, 0x0c, 0x14, 0xab, 0x83, 0x9b, 0x0a, 0xbb, 0xb2, 0x84, 0x54, + 0x09, 0x74, 0xa7, 0xc2, 0xc6, 0x46, 0x1a, 0x84, 0x98, 0x40, 0x01, 0x16, 0x16, 0xeb, 0xd9, 0xb9, + 0x98, 0x53, 0x7d, 0x7e, 0xd6, 0xdd, 0x19, 0xc8, 0x57, 0x60, 0xea, 0x84, 0xf8, 0x08, 0x7c, 0x94, + 0x8e, 0x1d, 0x99, 0x02, 0x4a, 0x36, 0xc6, 0x7e, 0x02, 0x74, 0xe7, 0x33, 0x88, 0x26, 0x12, 0x5b, + 0xee, 0xff, 0x7f, 0xef, 0xfd, 0x7f, 0xf1, 0x7b, 0x41, 0x04, 0xea, 0x8c, 0x23, 0x2b, 0x2a, 0x10, + 0x92, 0x35, 0xa0, 0x40, 0x6a, 0xda, 0x28, 0x34, 0x18, 0x0e, 0x9d, 0x43, 0x9d, 0x33, 0xda, 0x2f, + 0xb1, 0x44, 0xa7, 0x33, 0xfb, 0xab, 0x2b, 0x19, 0xc5, 0x25, 0x62, 0x59, 0x71, 0xe6, 0x5e, 0x79, + 0x3b, 0x67, 0xb3, 0x56, 0x81, 0x11, 0x58, 0x7b, 0x3f, 0xb9, 0xee, 0x1b, 0x21, 0xb9, 0x36, 0x20, + 0x9b, 0x7e, 0x40, 0x81, 0x5a, 0xa2, 0x66, 0x39, 0x68, 0xce, 0x3e, 0x9c, 0xe4, 0xdc, 0xc0, 0x09, + 0x2b, 0x50, 0xf8, 0x01, 0xe9, 0xb7, 0x9d, 0x60, 0xf7, 0x95, 0x83, 0x0a, 0x31, 0x08, 0x41, 0xa8, + 0x99, 0xc2, 0x26, 0xd3, 0x06, 0x94, 0xc9, 0xec, 0xac, 0x88, 0x1c, 0x91, 0xe3, 0xe1, 0xa3, 0x11, + 0xed, 0x82, 0x68, 0x1f, 0x44, 0xdf, 0xf4, 0x41, 0xe3, 0xfb, 0x17, 0xcb, 0x64, 0x70, 0xb5, 0x4c, + 0x0e, 0x16, 0x20, 0xab, 0x27, 0xe9, 0xe6, 0x8c, 0xf4, 0xfc, 0x47, 0x42, 0xa6, 0x7b, 0xde, 0x78, + 0x6d, 0x75, 0xdb, 0x1d, 0x7e, 0x21, 0xc1, 0x7e, 0xff, 0x7f, 0xb2, 0xb6, 0x36, 0xa2, 0xca, 0x66, + 0xbc, 0x80, 0x45, 0x74, 0xc3, 0x65, 0x1e, 0x6c, 0x64, 0x4e, 0x7c, 0xf1, 0xf8, 0x85, 0x8d, 0xfc, + 0xb5, 0x4c, 0xe2, 0x6d, 0xed, 0x0f, 0x51, 0x0a, 0xc3, 0x65, 0x63, 0x16, 0x57, 0xcb, 0xe4, 0xb0, + 0x83, 0xda, 0x56, 0x97, 0x7e, 0xb5, 0x58, 0x61, 0x6f, 0xbd, 0xb5, 0xce, 0xc4, 0x1a, 0xe1, 0x67, + 0x12, 0xdc, 0xfd, 0xd3, 0x81, 0x73, 0x4f, 0x75, 0xf3, 0x7f, 0x54, 0xa7, 0x9e, 0xea, 0x70, 0xa3, + 0xf7, 0x1f, 0xa4, 0xe8, 0x1a, 0x52, 0x5f, 0xd4, 0xf1, 0xdc, 0xe9, 0xf5, 0x97, 0xf3, 0x0e, 0x26, + 0x09, 0x86, 0xee, 0x42, 0xb2, 0x19, 0xaf, 0x51, 0x46, 0x3b, 0x47, 0xe4, 0xf8, 0xf6, 0x34, 0x70, + 0xd2, 0xc4, 0x2a, 0xe1, 0x3c, 0x08, 0x45, 0x2d, 0x8c, 0x80, 0x2a, 0x2b, 0x41, 0x67, 0x20, 0xb1, + 0xad, 0x4d, 0x74, 0xcb, 0xd3, 0x76, 0xfb, 0xa7, 0x76, 0xff, 0xd4, 0xef, 0x9f, 0x9e, 0xa2, 0xa8, + 0xc7, 0xf7, 0xfe, 0xae, 0x6c, 0xb3, 0x3d, 0x9d, 0xee, 0x79, 0xf1, 0x39, 0xe8, 0xa7, 0x4e, 0x1a, + 0x3f, 0xbb, 0x58, 0xc5, 0xe4, 0x72, 0x15, 0x93, 0x9f, 0xab, 0x98, 0x9c, 0xaf, 0xe3, 0xc1, 0xe5, + 0x3a, 0x1e, 0x7c, 0x5f, 0xc7, 0x83, 0x77, 0x0f, 0x4a, 0x61, 0xde, 0xb7, 0x39, 0x2d, 0x50, 0x32, + 0x77, 0xd3, 0x35, 0x37, 0x1f, 0x51, 0x9d, 0x75, 0x0f, 0xf6, 0xc9, 0x1f, 0xbf, 0x59, 0x34, 0x5c, + 0xe7, 0xbb, 0xee, 0xc3, 0x3d, 0xfe, 0x1d, 0x00, 0x00, 0xff, 0xff, 0xda, 0x58, 0x9f, 0x2f, 0x18, + 0x03, 0x00, 0x00, +} + +func (m *Params) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Params) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.InitialGasAmount != nil { + { + size, err := m.InitialGasAmount.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintParams(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.ClaimDenom) > 0 { + i -= len(m.ClaimDenom) + copy(dAtA[i:], m.ClaimDenom) + i = encodeVarintParams(dAtA, i, uint64(len(m.ClaimDenom))) + i-- + dAtA[i] = 0x22 + } + n2, err2 := github_com_cosmos_gogoproto_types.StdDurationMarshalTo(m.DurationOfDecay, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdDuration(m.DurationOfDecay):]) + if err2 != nil { + return 0, err2 + } + i -= n2 + i = encodeVarintParams(dAtA, i, uint64(n2)) + i-- + dAtA[i] = 0x1a + n3, err3 := github_com_cosmos_gogoproto_types.StdDurationMarshalTo(m.DurationUntilDecay, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdDuration(m.DurationUntilDecay):]) + if err3 != nil { + return 0, err3 + } + i -= n3 + i = encodeVarintParams(dAtA, i, uint64(n3)) + i-- + dAtA[i] = 0x12 + n4, err4 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.AirdropStartTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.AirdropStartTime):]) + if err4 != nil { + return 0, err4 + } + i -= n4 + i = encodeVarintParams(dAtA, i, uint64(n4)) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintParams(dAtA []byte, offset int, v uint64) int { + offset -= sovParams(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Params) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.AirdropStartTime) + n += 1 + l + sovParams(uint64(l)) + l = github_com_cosmos_gogoproto_types.SizeOfStdDuration(m.DurationUntilDecay) + n += 1 + l + sovParams(uint64(l)) + l = github_com_cosmos_gogoproto_types.SizeOfStdDuration(m.DurationOfDecay) + n += 1 + l + sovParams(uint64(l)) + l = len(m.ClaimDenom) + if l > 0 { + n += 1 + l + sovParams(uint64(l)) + } + if m.InitialGasAmount != nil { + l = m.InitialGasAmount.Size() + n += 1 + l + sovParams(uint64(l)) + } + return n +} + +func sovParams(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozParams(x uint64) (n int) { + return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Params) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Params: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AirdropStartTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.AirdropStartTime, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DurationUntilDecay", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdDurationUnmarshal(&m.DurationUntilDecay, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DurationOfDecay", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdDurationUnmarshal(&m.DurationOfDecay, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClaimDenom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClaimDenom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InitialGasAmount", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.InitialGasAmount == nil { + m.InitialGasAmount = &types.Coin{} + } + if err := m.InitialGasAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipParams(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthParams + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipParams(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowParams + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowParams + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowParams + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthParams + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupParams + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthParams + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/claim/types/query.pb.go b/x/claim/types/query.pb.go new file mode 100644 index 00000000..ebcfd954 --- /dev/null +++ b/x/claim/types/query.pb.go @@ -0,0 +1,968 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: arkeo/claim/query.proto + +package types + +import ( + context "context" + fmt "fmt" + _ "github.com/cosmos/cosmos-sdk/types/query" + _ "github.com/cosmos/gogoproto/gogoproto" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// QueryParamsRequest is request type for the Query/Params RPC method. +type QueryParamsRequest struct { +} + +func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } +func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryParamsRequest) ProtoMessage() {} +func (*QueryParamsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_c9bba750e7be3a92, []int{0} +} +func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryParamsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryParamsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryParamsRequest.Merge(m, src) +} +func (m *QueryParamsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryParamsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo + +// QueryParamsResponse is response type for the Query/Params RPC method. +type QueryParamsResponse struct { + // params holds all the parameters of this module. + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` +} + +func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } +func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryParamsResponse) ProtoMessage() {} +func (*QueryParamsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c9bba750e7be3a92, []int{1} +} +func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryParamsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryParamsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryParamsResponse.Merge(m, src) +} +func (m *QueryParamsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryParamsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo + +func (m *QueryParamsResponse) GetParams() Params { + if m != nil { + return m.Params + } + return Params{} +} + +type QueryClaimRecordRequest struct { + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Chain Chain `protobuf:"varint,2,opt,name=chain,proto3,enum=arkeo.claim.Chain" json:"chain,omitempty"` +} + +func (m *QueryClaimRecordRequest) Reset() { *m = QueryClaimRecordRequest{} } +func (m *QueryClaimRecordRequest) String() string { return proto.CompactTextString(m) } +func (*QueryClaimRecordRequest) ProtoMessage() {} +func (*QueryClaimRecordRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_c9bba750e7be3a92, []int{2} +} +func (m *QueryClaimRecordRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryClaimRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryClaimRecordRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryClaimRecordRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryClaimRecordRequest.Merge(m, src) +} +func (m *QueryClaimRecordRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryClaimRecordRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryClaimRecordRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryClaimRecordRequest proto.InternalMessageInfo + +func (m *QueryClaimRecordRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *QueryClaimRecordRequest) GetChain() Chain { + if m != nil { + return m.Chain + } + return ARKEO +} + +type QueryClaimRecordResponse struct { + ClaimRecord *ClaimRecord `protobuf:"bytes,1,opt,name=claim_record,json=claimRecord,proto3" json:"claim_record,omitempty"` +} + +func (m *QueryClaimRecordResponse) Reset() { *m = QueryClaimRecordResponse{} } +func (m *QueryClaimRecordResponse) String() string { return proto.CompactTextString(m) } +func (*QueryClaimRecordResponse) ProtoMessage() {} +func (*QueryClaimRecordResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c9bba750e7be3a92, []int{3} +} +func (m *QueryClaimRecordResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryClaimRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryClaimRecordResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryClaimRecordResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryClaimRecordResponse.Merge(m, src) +} +func (m *QueryClaimRecordResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryClaimRecordResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryClaimRecordResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryClaimRecordResponse proto.InternalMessageInfo + +func (m *QueryClaimRecordResponse) GetClaimRecord() *ClaimRecord { + if m != nil { + return m.ClaimRecord + } + return nil +} + +func init() { + proto.RegisterType((*QueryParamsRequest)(nil), "arkeo.claim.QueryParamsRequest") + proto.RegisterType((*QueryParamsResponse)(nil), "arkeo.claim.QueryParamsResponse") + proto.RegisterType((*QueryClaimRecordRequest)(nil), "arkeo.claim.QueryClaimRecordRequest") + proto.RegisterType((*QueryClaimRecordResponse)(nil), "arkeo.claim.QueryClaimRecordResponse") +} + +func init() { proto.RegisterFile("arkeo/claim/query.proto", fileDescriptor_c9bba750e7be3a92) } + +var fileDescriptor_c9bba750e7be3a92 = []byte{ + // 421 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xc1, 0xcb, 0xd3, 0x30, + 0x18, 0xc6, 0x9b, 0xe1, 0x26, 0xa6, 0xe2, 0x21, 0x9b, 0xac, 0x54, 0xe9, 0x46, 0x99, 0x30, 0x26, + 0x34, 0x6c, 0x1e, 0xbd, 0x6d, 0x08, 0x1e, 0xb5, 0x17, 0x41, 0x10, 0x49, 0xbb, 0xd0, 0x95, 0xad, + 0x4d, 0x97, 0x64, 0xea, 0x10, 0x2f, 0x1e, 0x3c, 0x0b, 0xfe, 0x53, 0x3b, 0x0e, 0xbc, 0x78, 0x12, + 0xd9, 0xfc, 0x2b, 0xbe, 0xd3, 0x47, 0x93, 0x8c, 0xaf, 0xa5, 0x7c, 0x7c, 0x97, 0xb1, 0xe4, 0x79, + 0xde, 0xdf, 0xfb, 0xbc, 0x6f, 0x03, 0xfb, 0x84, 0xaf, 0x29, 0xc3, 0xf1, 0x86, 0xa4, 0x19, 0xde, + 0xee, 0x28, 0xdf, 0x07, 0x05, 0x67, 0x92, 0x21, 0x5b, 0x09, 0x81, 0x12, 0xdc, 0x5e, 0xc2, 0x12, + 0xa6, 0xee, 0x71, 0xf9, 0x4f, 0x5b, 0xdc, 0xa7, 0x09, 0x63, 0xc9, 0x86, 0x62, 0x52, 0xa4, 0x98, + 0xe4, 0x39, 0x93, 0x44, 0xa6, 0x2c, 0x17, 0x46, 0x9d, 0xc4, 0x4c, 0x64, 0x4c, 0xe0, 0x88, 0x08, + 0xaa, 0xc9, 0xf8, 0xd3, 0x34, 0xa2, 0x92, 0x4c, 0x71, 0x41, 0x92, 0x34, 0x57, 0x66, 0xe3, 0x75, + 0xaa, 0x29, 0x0a, 0xc2, 0x49, 0x76, 0xa1, 0x78, 0x55, 0x45, 0xfd, 0x7e, 0xe4, 0x34, 0x66, 0x7c, + 0xa9, 0x75, 0xbf, 0x07, 0xd1, 0xdb, 0x92, 0xfd, 0x46, 0x15, 0x85, 0x74, 0xbb, 0xa3, 0x42, 0xfa, + 0xaf, 0x61, 0xb7, 0x76, 0x2b, 0x0a, 0x96, 0x0b, 0x8a, 0xa6, 0xb0, 0xa3, 0xe1, 0x0e, 0x18, 0x82, + 0xb1, 0x3d, 0xeb, 0x06, 0x95, 0x21, 0x03, 0x6d, 0x9e, 0xdf, 0x3b, 0xfc, 0x1d, 0x58, 0xa1, 0x31, + 0xfa, 0x1f, 0x60, 0x5f, 0x91, 0x16, 0xa5, 0x25, 0x54, 0x9d, 0x4d, 0x13, 0xe4, 0xc0, 0xfb, 0x64, + 0xb9, 0xe4, 0x54, 0x68, 0xdc, 0x83, 0xf0, 0x72, 0x44, 0x63, 0xd8, 0x8e, 0x57, 0x24, 0xcd, 0x9d, + 0xd6, 0x10, 0x8c, 0x1f, 0xcd, 0x50, 0xad, 0xcd, 0xa2, 0x54, 0x42, 0x6d, 0xf0, 0xdf, 0x41, 0xa7, + 0x89, 0x37, 0x69, 0x5f, 0xc2, 0x87, 0xd5, 0x81, 0x4d, 0x66, 0xa7, 0x0e, 0xab, 0xd4, 0xd9, 0xf1, + 0xcd, 0x61, 0x76, 0x05, 0x60, 0x5b, 0x91, 0xd1, 0x0a, 0x76, 0xf4, 0x64, 0x68, 0x50, 0x2b, 0x6d, + 0xae, 0xcd, 0x1d, 0xde, 0x6e, 0xd0, 0x99, 0xfc, 0x27, 0xdf, 0x7f, 0xff, 0xff, 0xd5, 0x7a, 0x8c, + 0xba, 0xb8, 0xf9, 0xc5, 0xd0, 0x0f, 0x00, 0xed, 0x4a, 0x20, 0x34, 0x6a, 0xe2, 0x9a, 0x6b, 0x74, + 0x9f, 0xdd, 0xe1, 0x32, 0x9d, 0x27, 0xaa, 0xf3, 0x08, 0xf9, 0xb8, 0xf1, 0x22, 0xf4, 0x7e, 0xf0, + 0x57, 0xb3, 0xfe, 0x6f, 0xf3, 0x57, 0x87, 0x93, 0x07, 0x8e, 0x27, 0x0f, 0xfc, 0x3b, 0x79, 0xe0, + 0xe7, 0xd9, 0xb3, 0x8e, 0x67, 0xcf, 0xfa, 0x73, 0xf6, 0xac, 0xf7, 0xcf, 0x93, 0x54, 0xae, 0x76, + 0x51, 0x10, 0xb3, 0x4c, 0x73, 0x72, 0x2a, 0x3f, 0x33, 0xbe, 0x36, 0xd0, 0x2f, 0x06, 0x2b, 0xf7, + 0x05, 0x15, 0x51, 0x47, 0x3d, 0xb1, 0x17, 0xd7, 0x01, 0x00, 0x00, 0xff, 0xff, 0x20, 0x04, 0xb5, + 0x58, 0x24, 0x03, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// QueryClient is the client API for Query service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type QueryClient interface { + // Parameters queries the parameters of the module. + Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) + // Queries a list of ClaimRecord items. + ClaimRecord(ctx context.Context, in *QueryClaimRecordRequest, opts ...grpc.CallOption) (*QueryClaimRecordResponse, error) +} + +type queryClient struct { + cc grpc1.ClientConn +} + +func NewQueryClient(cc grpc1.ClientConn) QueryClient { + return &queryClient{cc} +} + +func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { + out := new(QueryParamsResponse) + err := c.cc.Invoke(ctx, "/arkeo.claim.Query/Params", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) ClaimRecord(ctx context.Context, in *QueryClaimRecordRequest, opts ...grpc.CallOption) (*QueryClaimRecordResponse, error) { + out := new(QueryClaimRecordResponse) + err := c.cc.Invoke(ctx, "/arkeo.claim.Query/ClaimRecord", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServer is the server API for Query service. +type QueryServer interface { + // Parameters queries the parameters of the module. + Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) + // Queries a list of ClaimRecord items. + ClaimRecord(context.Context, *QueryClaimRecordRequest) (*QueryClaimRecordResponse, error) +} + +// UnimplementedQueryServer can be embedded to have forward compatible implementations. +type UnimplementedQueryServer struct { +} + +func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") +} +func (*UnimplementedQueryServer) ClaimRecord(ctx context.Context, req *QueryClaimRecordRequest) (*QueryClaimRecordResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ClaimRecord not implemented") +} + +func RegisterQueryServer(s grpc1.Server, srv QueryServer) { + s.RegisterService(&_Query_serviceDesc, srv) +} + +func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryParamsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Params(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/arkeo.claim.Query/Params", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_ClaimRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryClaimRecordRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).ClaimRecord(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/arkeo.claim.Query/ClaimRecord", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).ClaimRecord(ctx, req.(*QueryClaimRecordRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var Query_serviceDesc = _Query_serviceDesc +var _Query_serviceDesc = grpc.ServiceDesc{ + ServiceName: "arkeo.claim.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Params", + Handler: _Query_Params_Handler, + }, + { + MethodName: "ClaimRecord", + Handler: _Query_ClaimRecord_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "arkeo/claim/query.proto", +} + +func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryClaimRecordRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryClaimRecordRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryClaimRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Chain != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Chain)) + i-- + dAtA[i] = 0x10 + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryClaimRecordResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryClaimRecordResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryClaimRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ClaimRecord != nil { + { + size, err := m.ClaimRecord.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { + offset -= sovQuery(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *QueryParamsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryParamsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Params.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryClaimRecordRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Chain != 0 { + n += 1 + sovQuery(uint64(m.Chain)) + } + return n +} + +func (m *QueryClaimRecordResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ClaimRecord != nil { + l = m.ClaimRecord.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func sovQuery(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozQuery(x uint64) (n int) { + return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryClaimRecordRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryClaimRecordRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryClaimRecordRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Chain", wireType) + } + m.Chain = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Chain |= Chain(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryClaimRecordResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryClaimRecordResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryClaimRecordResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClaimRecord", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ClaimRecord == nil { + m.ClaimRecord = &ClaimRecord{} + } + if err := m.ClaimRecord.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipQuery(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowQuery + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowQuery + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowQuery + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthQuery + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupQuery + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthQuery + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/claim/types/tx.pb.go b/x/claim/types/tx.pb.go new file mode 100644 index 00000000..82df5acc --- /dev/null +++ b/x/claim/types/tx.pb.go @@ -0,0 +1,1792 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: arkeo/claim/tx.proto + +package types + +import ( + context "context" + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + _ "github.com/cosmos/cosmos-sdk/types/msgservice" + _ "github.com/cosmos/gogoproto/gogoproto" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type MsgClaimEth struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + EthAddress string `protobuf:"bytes,2,opt,name=eth_address,json=ethAddress,proto3" json:"eth_address,omitempty"` + Signature string `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` +} + +func (m *MsgClaimEth) Reset() { *m = MsgClaimEth{} } +func (m *MsgClaimEth) String() string { return proto.CompactTextString(m) } +func (*MsgClaimEth) ProtoMessage() {} +func (*MsgClaimEth) Descriptor() ([]byte, []int) { + return fileDescriptor_6a4ddac60cb43154, []int{0} +} +func (m *MsgClaimEth) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgClaimEth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgClaimEth.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgClaimEth) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgClaimEth.Merge(m, src) +} +func (m *MsgClaimEth) XXX_Size() int { + return m.Size() +} +func (m *MsgClaimEth) XXX_DiscardUnknown() { + xxx_messageInfo_MsgClaimEth.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgClaimEth proto.InternalMessageInfo + +func (m *MsgClaimEth) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgClaimEth) GetEthAddress() string { + if m != nil { + return m.EthAddress + } + return "" +} + +func (m *MsgClaimEth) GetSignature() string { + if m != nil { + return m.Signature + } + return "" +} + +type MsgClaimEthResponse struct { +} + +func (m *MsgClaimEthResponse) Reset() { *m = MsgClaimEthResponse{} } +func (m *MsgClaimEthResponse) String() string { return proto.CompactTextString(m) } +func (*MsgClaimEthResponse) ProtoMessage() {} +func (*MsgClaimEthResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_6a4ddac60cb43154, []int{1} +} +func (m *MsgClaimEthResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgClaimEthResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgClaimEthResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgClaimEthResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgClaimEthResponse.Merge(m, src) +} +func (m *MsgClaimEthResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgClaimEthResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgClaimEthResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgClaimEthResponse proto.InternalMessageInfo + +type MsgClaimArkeo struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` +} + +func (m *MsgClaimArkeo) Reset() { *m = MsgClaimArkeo{} } +func (m *MsgClaimArkeo) String() string { return proto.CompactTextString(m) } +func (*MsgClaimArkeo) ProtoMessage() {} +func (*MsgClaimArkeo) Descriptor() ([]byte, []int) { + return fileDescriptor_6a4ddac60cb43154, []int{2} +} +func (m *MsgClaimArkeo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgClaimArkeo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgClaimArkeo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgClaimArkeo) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgClaimArkeo.Merge(m, src) +} +func (m *MsgClaimArkeo) XXX_Size() int { + return m.Size() +} +func (m *MsgClaimArkeo) XXX_DiscardUnknown() { + xxx_messageInfo_MsgClaimArkeo.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgClaimArkeo proto.InternalMessageInfo + +func (m *MsgClaimArkeo) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +type MsgClaimArkeoResponse struct { +} + +func (m *MsgClaimArkeoResponse) Reset() { *m = MsgClaimArkeoResponse{} } +func (m *MsgClaimArkeoResponse) String() string { return proto.CompactTextString(m) } +func (*MsgClaimArkeoResponse) ProtoMessage() {} +func (*MsgClaimArkeoResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_6a4ddac60cb43154, []int{3} +} +func (m *MsgClaimArkeoResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgClaimArkeoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgClaimArkeoResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgClaimArkeoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgClaimArkeoResponse.Merge(m, src) +} +func (m *MsgClaimArkeoResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgClaimArkeoResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgClaimArkeoResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgClaimArkeoResponse proto.InternalMessageInfo + +type MsgTransferClaim struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + ToAddress string `protobuf:"bytes,2,opt,name=toAddress,proto3" json:"toAddress,omitempty"` +} + +func (m *MsgTransferClaim) Reset() { *m = MsgTransferClaim{} } +func (m *MsgTransferClaim) String() string { return proto.CompactTextString(m) } +func (*MsgTransferClaim) ProtoMessage() {} +func (*MsgTransferClaim) Descriptor() ([]byte, []int) { + return fileDescriptor_6a4ddac60cb43154, []int{4} +} +func (m *MsgTransferClaim) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgTransferClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgTransferClaim.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgTransferClaim) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgTransferClaim.Merge(m, src) +} +func (m *MsgTransferClaim) XXX_Size() int { + return m.Size() +} +func (m *MsgTransferClaim) XXX_DiscardUnknown() { + xxx_messageInfo_MsgTransferClaim.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgTransferClaim proto.InternalMessageInfo + +func (m *MsgTransferClaim) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgTransferClaim) GetToAddress() string { + if m != nil { + return m.ToAddress + } + return "" +} + +type MsgTransferClaimResponse struct { +} + +func (m *MsgTransferClaimResponse) Reset() { *m = MsgTransferClaimResponse{} } +func (m *MsgTransferClaimResponse) String() string { return proto.CompactTextString(m) } +func (*MsgTransferClaimResponse) ProtoMessage() {} +func (*MsgTransferClaimResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_6a4ddac60cb43154, []int{5} +} +func (m *MsgTransferClaimResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgTransferClaimResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgTransferClaimResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgTransferClaimResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgTransferClaimResponse.Merge(m, src) +} +func (m *MsgTransferClaimResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgTransferClaimResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgTransferClaimResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgTransferClaimResponse proto.InternalMessageInfo + +type MsgAddClaim struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + Chain Chain `protobuf:"varint,2,opt,name=chain,proto3,enum=arkeo.claim.Chain" json:"chain,omitempty"` + Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` + Amount int64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"` +} + +func (m *MsgAddClaim) Reset() { *m = MsgAddClaim{} } +func (m *MsgAddClaim) String() string { return proto.CompactTextString(m) } +func (*MsgAddClaim) ProtoMessage() {} +func (*MsgAddClaim) Descriptor() ([]byte, []int) { + return fileDescriptor_6a4ddac60cb43154, []int{6} +} +func (m *MsgAddClaim) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgAddClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgAddClaim.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgAddClaim) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgAddClaim.Merge(m, src) +} +func (m *MsgAddClaim) XXX_Size() int { + return m.Size() +} +func (m *MsgAddClaim) XXX_DiscardUnknown() { + xxx_messageInfo_MsgAddClaim.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgAddClaim proto.InternalMessageInfo + +func (m *MsgAddClaim) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgAddClaim) GetChain() Chain { + if m != nil { + return m.Chain + } + return ARKEO +} + +func (m *MsgAddClaim) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *MsgAddClaim) GetAmount() int64 { + if m != nil { + return m.Amount + } + return 0 +} + +type MsgAddClaimResponse struct { +} + +func (m *MsgAddClaimResponse) Reset() { *m = MsgAddClaimResponse{} } +func (m *MsgAddClaimResponse) String() string { return proto.CompactTextString(m) } +func (*MsgAddClaimResponse) ProtoMessage() {} +func (*MsgAddClaimResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_6a4ddac60cb43154, []int{7} +} +func (m *MsgAddClaimResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgAddClaimResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgAddClaimResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgAddClaimResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgAddClaimResponse.Merge(m, src) +} +func (m *MsgAddClaimResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgAddClaimResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgAddClaimResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgAddClaimResponse proto.InternalMessageInfo + +func init() { + proto.RegisterType((*MsgClaimEth)(nil), "arkeo.claim.MsgClaimEth") + proto.RegisterType((*MsgClaimEthResponse)(nil), "arkeo.claim.MsgClaimEthResponse") + proto.RegisterType((*MsgClaimArkeo)(nil), "arkeo.claim.MsgClaimArkeo") + proto.RegisterType((*MsgClaimArkeoResponse)(nil), "arkeo.claim.MsgClaimArkeoResponse") + proto.RegisterType((*MsgTransferClaim)(nil), "arkeo.claim.MsgTransferClaim") + proto.RegisterType((*MsgTransferClaimResponse)(nil), "arkeo.claim.MsgTransferClaimResponse") + proto.RegisterType((*MsgAddClaim)(nil), "arkeo.claim.MsgAddClaim") + proto.RegisterType((*MsgAddClaimResponse)(nil), "arkeo.claim.MsgAddClaimResponse") +} + +func init() { proto.RegisterFile("arkeo/claim/tx.proto", fileDescriptor_6a4ddac60cb43154) } + +var fileDescriptor_6a4ddac60cb43154 = []byte{ + // 486 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xcb, 0x6e, 0xd3, 0x40, + 0x14, 0x8d, 0x1b, 0xfa, 0xc8, 0x8d, 0x8a, 0xd0, 0x90, 0x52, 0x63, 0x81, 0x89, 0x2c, 0x21, 0x45, + 0x20, 0x6c, 0x11, 0x24, 0xf6, 0x69, 0xd4, 0xae, 0xc8, 0xc6, 0xc0, 0x86, 0x4d, 0x34, 0xb5, 0x87, + 0xb1, 0x55, 0xec, 0x89, 0x66, 0x26, 0x50, 0x36, 0xa8, 0x9f, 0xc0, 0x0f, 0xf0, 0x0f, 0x2c, 0xf8, + 0x01, 0x76, 0x2c, 0x2b, 0x56, 0x2c, 0x51, 0xb2, 0xe0, 0x37, 0x90, 0x67, 0x3c, 0xae, 0x9d, 0x3e, + 0x16, 0xd9, 0x24, 0xb9, 0xf7, 0x9c, 0x7b, 0xe6, 0xdc, 0x9c, 0xb1, 0xa1, 0x87, 0xf9, 0x09, 0x61, + 0x41, 0xf4, 0x01, 0xa7, 0x59, 0x20, 0x4f, 0xfd, 0x19, 0x67, 0x92, 0xa1, 0xae, 0xea, 0xfa, 0xaa, + 0xeb, 0xdc, 0x8f, 0x98, 0xc8, 0x98, 0x98, 0x2a, 0x28, 0xd0, 0x85, 0xe6, 0x39, 0x6e, 0x7d, 0x5a, + 0x7d, 0x4e, 0x39, 0x89, 0x18, 0x8f, 0x4b, 0xbc, 0x47, 0x19, 0x65, 0x7a, 0xae, 0xf8, 0x55, 0x76, + 0xf7, 0xb5, 0x46, 0x90, 0x09, 0x1a, 0x7c, 0x7c, 0x5e, 0x7c, 0x69, 0xc0, 0x3b, 0xb3, 0xa0, 0x3b, + 0x11, 0x74, 0x5c, 0x08, 0x1d, 0xca, 0x04, 0x0d, 0x61, 0x3b, 0xe2, 0x04, 0x4b, 0xc6, 0x6d, 0xab, + 0x6f, 0x0d, 0x3a, 0x07, 0xf6, 0xef, 0x1f, 0xcf, 0x7a, 0xa5, 0x83, 0x51, 0x1c, 0x73, 0x22, 0xc4, + 0x6b, 0xc9, 0xd3, 0x9c, 0x86, 0x86, 0x88, 0x1e, 0x41, 0x97, 0xc8, 0x64, 0x8a, 0x35, 0x6a, 0x6f, + 0x14, 0x73, 0x21, 0x10, 0x99, 0x94, 0x7c, 0xf4, 0x00, 0x3a, 0x22, 0xa5, 0x39, 0x96, 0x73, 0x4e, + 0xec, 0xb6, 0x82, 0x2f, 0x1a, 0xde, 0x1e, 0xdc, 0xad, 0x39, 0x08, 0x89, 0x98, 0xb1, 0x5c, 0x10, + 0x6f, 0x0c, 0xbb, 0xa6, 0x3d, 0x2a, 0x56, 0x5e, 0xc7, 0x9a, 0xb7, 0x0f, 0x7b, 0x0d, 0x91, 0x4a, + 0xfd, 0x0b, 0xdc, 0x99, 0x08, 0xfa, 0x86, 0xe3, 0x5c, 0xbc, 0x27, 0x5c, 0x11, 0xd6, 0xda, 0xfd, + 0x25, 0x74, 0x24, 0x1b, 0xd5, 0x37, 0xbf, 0x61, 0xea, 0x82, 0xea, 0x39, 0x60, 0xaf, 0x9e, 0x5f, + 0x79, 0xfb, 0xa6, 0x33, 0x19, 0xc5, 0xf1, 0xfa, 0xbe, 0x06, 0xb0, 0x19, 0x25, 0x38, 0xcd, 0x95, + 0xa7, 0xdb, 0x43, 0xe4, 0xd7, 0xae, 0x97, 0x3f, 0x2e, 0x90, 0x50, 0x13, 0x90, 0x0d, 0xdb, 0x26, + 0x39, 0x1d, 0x8d, 0x29, 0xd1, 0x3d, 0xd8, 0xc2, 0x19, 0x9b, 0xe7, 0xd2, 0xbe, 0xd5, 0xb7, 0x06, + 0xed, 0xb0, 0xac, 0xca, 0xc0, 0x8c, 0x3d, 0x63, 0x7b, 0xf8, 0x73, 0x03, 0xda, 0x13, 0x41, 0xd1, + 0x11, 0xec, 0x54, 0xd7, 0xc9, 0x6e, 0x9c, 0x5b, 0x8b, 0xd9, 0xe9, 0x5f, 0x87, 0x18, 0x3d, 0xf4, + 0x0a, 0xa0, 0x96, 0xbe, 0x73, 0x25, 0x5f, 0x61, 0x8e, 0x77, 0x3d, 0x56, 0xa9, 0xbd, 0x85, 0xdd, + 0x66, 0xda, 0x0f, 0x57, 0x87, 0x1a, 0xb0, 0xf3, 0xf8, 0x46, 0xb8, 0x92, 0x3d, 0x82, 0x9d, 0x2a, + 0xa7, 0x4b, 0xcb, 0x1a, 0xe4, 0xf2, 0xb2, 0xab, 0x7f, 0x9e, 0xb3, 0x79, 0xf6, 0xef, 0xfb, 0x13, + 0xeb, 0xe0, 0xf0, 0xd7, 0xc2, 0xb5, 0xce, 0x17, 0xae, 0xf5, 0x77, 0xe1, 0x5a, 0x5f, 0x97, 0x6e, + 0xeb, 0x7c, 0xe9, 0xb6, 0xfe, 0x2c, 0xdd, 0xd6, 0xbb, 0xa7, 0x34, 0x95, 0xc9, 0xfc, 0xd8, 0x8f, + 0x58, 0x16, 0x28, 0xb1, 0x9c, 0xc8, 0x4f, 0x8c, 0x9f, 0xe8, 0x22, 0x38, 0x35, 0xef, 0x93, 0xcf, + 0x33, 0x22, 0x8e, 0xb7, 0xd4, 0xc3, 0xfd, 0xe2, 0x7f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x77, 0x36, + 0xf7, 0x07, 0x6b, 0x04, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// MsgClient is the client API for Msg service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type MsgClient interface { + ClaimEth(ctx context.Context, in *MsgClaimEth, opts ...grpc.CallOption) (*MsgClaimEthResponse, error) + ClaimArkeo(ctx context.Context, in *MsgClaimArkeo, opts ...grpc.CallOption) (*MsgClaimArkeoResponse, error) + TransferClaim(ctx context.Context, in *MsgTransferClaim, opts ...grpc.CallOption) (*MsgTransferClaimResponse, error) + AddClaim(ctx context.Context, in *MsgAddClaim, opts ...grpc.CallOption) (*MsgAddClaimResponse, error) +} + +type msgClient struct { + cc grpc1.ClientConn +} + +func NewMsgClient(cc grpc1.ClientConn) MsgClient { + return &msgClient{cc} +} + +func (c *msgClient) ClaimEth(ctx context.Context, in *MsgClaimEth, opts ...grpc.CallOption) (*MsgClaimEthResponse, error) { + out := new(MsgClaimEthResponse) + err := c.cc.Invoke(ctx, "/arkeo.claim.Msg/ClaimEth", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) ClaimArkeo(ctx context.Context, in *MsgClaimArkeo, opts ...grpc.CallOption) (*MsgClaimArkeoResponse, error) { + out := new(MsgClaimArkeoResponse) + err := c.cc.Invoke(ctx, "/arkeo.claim.Msg/ClaimArkeo", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) TransferClaim(ctx context.Context, in *MsgTransferClaim, opts ...grpc.CallOption) (*MsgTransferClaimResponse, error) { + out := new(MsgTransferClaimResponse) + err := c.cc.Invoke(ctx, "/arkeo.claim.Msg/TransferClaim", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) AddClaim(ctx context.Context, in *MsgAddClaim, opts ...grpc.CallOption) (*MsgAddClaimResponse, error) { + out := new(MsgAddClaimResponse) + err := c.cc.Invoke(ctx, "/arkeo.claim.Msg/AddClaim", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// MsgServer is the server API for Msg service. +type MsgServer interface { + ClaimEth(context.Context, *MsgClaimEth) (*MsgClaimEthResponse, error) + ClaimArkeo(context.Context, *MsgClaimArkeo) (*MsgClaimArkeoResponse, error) + TransferClaim(context.Context, *MsgTransferClaim) (*MsgTransferClaimResponse, error) + AddClaim(context.Context, *MsgAddClaim) (*MsgAddClaimResponse, error) +} + +// UnimplementedMsgServer can be embedded to have forward compatible implementations. +type UnimplementedMsgServer struct { +} + +func (*UnimplementedMsgServer) ClaimEth(ctx context.Context, req *MsgClaimEth) (*MsgClaimEthResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ClaimEth not implemented") +} +func (*UnimplementedMsgServer) ClaimArkeo(ctx context.Context, req *MsgClaimArkeo) (*MsgClaimArkeoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ClaimArkeo not implemented") +} +func (*UnimplementedMsgServer) TransferClaim(ctx context.Context, req *MsgTransferClaim) (*MsgTransferClaimResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TransferClaim not implemented") +} +func (*UnimplementedMsgServer) AddClaim(ctx context.Context, req *MsgAddClaim) (*MsgAddClaimResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddClaim not implemented") +} + +func RegisterMsgServer(s grpc1.Server, srv MsgServer) { + s.RegisterService(&_Msg_serviceDesc, srv) +} + +func _Msg_ClaimEth_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgClaimEth) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).ClaimEth(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/arkeo.claim.Msg/ClaimEth", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).ClaimEth(ctx, req.(*MsgClaimEth)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_ClaimArkeo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgClaimArkeo) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).ClaimArkeo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/arkeo.claim.Msg/ClaimArkeo", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).ClaimArkeo(ctx, req.(*MsgClaimArkeo)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_TransferClaim_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgTransferClaim) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).TransferClaim(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/arkeo.claim.Msg/TransferClaim", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).TransferClaim(ctx, req.(*MsgTransferClaim)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_AddClaim_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgAddClaim) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).AddClaim(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/arkeo.claim.Msg/AddClaim", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).AddClaim(ctx, req.(*MsgAddClaim)) + } + return interceptor(ctx, in, info, handler) +} + +var Msg_serviceDesc = _Msg_serviceDesc +var _Msg_serviceDesc = grpc.ServiceDesc{ + ServiceName: "arkeo.claim.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ClaimEth", + Handler: _Msg_ClaimEth_Handler, + }, + { + MethodName: "ClaimArkeo", + Handler: _Msg_ClaimArkeo_Handler, + }, + { + MethodName: "TransferClaim", + Handler: _Msg_TransferClaim_Handler, + }, + { + MethodName: "AddClaim", + Handler: _Msg_AddClaim_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "arkeo/claim/tx.proto", +} + +func (m *MsgClaimEth) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgClaimEth) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgClaimEth) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Signature) > 0 { + i -= len(m.Signature) + copy(dAtA[i:], m.Signature) + i = encodeVarintTx(dAtA, i, uint64(len(m.Signature))) + i-- + dAtA[i] = 0x1a + } + if len(m.EthAddress) > 0 { + i -= len(m.EthAddress) + copy(dAtA[i:], m.EthAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.EthAddress))) + i-- + dAtA[i] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgClaimEthResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgClaimEthResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgClaimEthResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgClaimArkeo) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgClaimArkeo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgClaimArkeo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgClaimArkeoResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgClaimArkeoResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgClaimArkeoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgTransferClaim) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgTransferClaim) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgTransferClaim) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ToAddress) > 0 { + i -= len(m.ToAddress) + copy(dAtA[i:], m.ToAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.ToAddress))) + i-- + dAtA[i] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgTransferClaimResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgTransferClaimResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgTransferClaimResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgAddClaim) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgAddClaim) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgAddClaim) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Amount != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.Amount)) + i-- + dAtA[i] = 0x20 + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintTx(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0x1a + } + if m.Chain != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.Chain)) + i-- + dAtA[i] = 0x10 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgAddClaimResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgAddClaimResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgAddClaimResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func encodeVarintTx(dAtA []byte, offset int, v uint64) int { + offset -= sovTx(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *MsgClaimEth) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.EthAddress) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Signature) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgClaimEthResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgClaimArkeo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgClaimArkeoResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgTransferClaim) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ToAddress) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgTransferClaimResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgAddClaim) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.Chain != 0 { + n += 1 + sovTx(uint64(m.Chain)) + } + l = len(m.Address) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.Amount != 0 { + n += 1 + sovTx(uint64(m.Amount)) + } + return n +} + +func (m *MsgAddClaimResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func sovTx(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozTx(x uint64) (n int) { + return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *MsgClaimEth) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgClaimEth: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgClaimEth: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EthAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EthAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Signature = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgClaimEthResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgClaimEthResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgClaimEthResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgClaimArkeo) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgClaimArkeo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgClaimArkeo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgClaimArkeoResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgClaimArkeoResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgClaimArkeoResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgTransferClaim) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgTransferClaim: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgTransferClaim: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ToAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ToAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgTransferClaimResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgTransferClaimResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgTransferClaimResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgAddClaim) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgAddClaim: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgAddClaim: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Chain", wireType) + } + m.Chain = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Chain |= Chain(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + m.Amount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Amount |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgAddClaimResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgAddClaimResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgAddClaimResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipTx(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTx + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTx + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTx + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthTx + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTx + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthTx + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") +)