diff --git a/docs/proto/provider.md b/docs/proto/provider.md index 853de01c..7aec57c4 100644 --- a/docs/proto/provider.md +++ b/docs/proto/provider.md @@ -46,6 +46,13 @@ - [Status](#akash.provider.v1.Status) - [akash/provider/v1/service.proto](#akash/provider/v1/service.proto) + - [AkashInfo](#akash.provider.v1.AkashInfo) + - [BuildDep](#akash.provider.v1.BuildDep) + - [GetVersionResponse](#akash.provider.v1.GetVersionResponse) + - [KubeInfo](#akash.provider.v1.KubeInfo) + - [ValidateRequest](#akash.provider.v1.ValidateRequest) + - [ValidateResponse](#akash.provider.v1.ValidateResponse) + - [ProviderRPC](#akash.provider.v1.ProviderRPC) - [akash/inventory/v1/memory.proto](#akash/inventory/v1/memory.proto) @@ -646,6 +653,115 @@ ## akash/provider/v1/service.proto + + + + ### AkashInfo + AkashInfo + + + | Field | Type | Label | Description | + | ----- | ---- | ----- | ----------- | + | `name` | [string](#string) | | | + | `app_name` | [string](#string) | | | + | `version` | [string](#string) | | | + | `git_commit` | [string](#string) | | | + | `build_tags` | [string](#string) | | | + | `go_version` | [string](#string) | | | + | `build_deps` | [BuildDep](#akash.provider.v1.BuildDep) | repeated | | + | `cosmos_sdk_version` | [string](#string) | | | + + + + + + + + + ### BuildDep + BuildDep + + + | Field | Type | Label | Description | + | ----- | ---- | ----- | ----------- | + | `path` | [string](#string) | | | + | `version` | [string](#string) | | | + | `sum` | [string](#string) | | | + | `replace` | [BuildDep](#akash.provider.v1.BuildDep) | | | + + + + + + + + + ### GetVersionResponse + GetVersionResponse + + + | Field | Type | Label | Description | + | ----- | ---- | ----- | ----------- | + | `akash` | [AkashInfo](#akash.provider.v1.AkashInfo) | | | + | `kube` | [KubeInfo](#akash.provider.v1.KubeInfo) | | | + + + + + + + + + ### KubeInfo + KubeInfo + + + | Field | Type | Label | Description | + | ----- | ---- | ----- | ----------- | + | `major` | [string](#string) | | | + | `minor` | [string](#string) | | | + | `git_version` | [string](#string) | | | + | `git_commit` | [string](#string) | | | + | `git_tree_state` | [string](#string) | | | + | `build_date` | [string](#string) | | | + | `go_version` | [string](#string) | | | + | `compiler` | [string](#string) | | | + | `platform` | [string](#string) | | | + + + + + + + + + ### ValidateRequest + ValidateRequest + + + | Field | Type | Label | Description | + | ----- | ---- | ----- | ----------- | + | `group` | [akash.deployment.v1beta3.GroupSpec](#akash.deployment.v1beta3.GroupSpec) | | | + + + + + + + + + ### ValidateResponse + ValidateResponse + + + | Field | Type | Label | Description | + | ----- | ---- | ----- | ----------- | + | `min_bid_price` | [cosmos.base.v1beta1.DecCoin](#cosmos.base.v1beta1.DecCoin) | | | + + + + + @@ -662,6 +778,9 @@ | ----------- | ------------ | ------------- | ------------| ------- | -------- | | `GetStatus` | [.google.protobuf.Empty](#google.protobuf.Empty) | [Status](#akash.provider.v1.Status) | GetStatus defines a method to query provider state buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE buf:lint:ignore RPC_RESPONSE_STANDARD_NAME | GET|/v1/status| | `StreamStatus` | [.google.protobuf.Empty](#google.protobuf.Empty) | [Status](#akash.provider.v1.Status) stream | Status defines a method to stream provider state buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE buf:lint:ignore RPC_RESPONSE_STANDARD_NAME | | + | `GetVersion` | [.google.protobuf.Empty](#google.protobuf.Empty) | [GetVersionResponse](#akash.provider.v1.GetVersionResponse) | GetVersion returns version information about the provider buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE | | + | `Validate` | [ValidateRequest](#akash.provider.v1.ValidateRequest) | [ValidateResponse](#akash.provider.v1.ValidateResponse) | Validate checks if provider will bid on given groupspec buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE | | + | `WIBOY` | [ValidateRequest](#akash.provider.v1.ValidateRequest) | [ValidateResponse](#akash.provider.v1.ValidateResponse) | WIBOY (will I bid on you) is an alias for Validate buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE buf:lint:ignore RPC_RESPONSE_STANDARD_NAME | | diff --git a/go.mod b/go.mod index 4b434c19..b259ea2a 100644 --- a/go.mod +++ b/go.mod @@ -94,6 +94,7 @@ require ( github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect github.com/golang/snappy v0.0.4 // indirect github.com/google/btree v1.1.2 // indirect + github.com/google/go-cmp v0.6.0 // indirect github.com/google/gofuzz v1.2.0 // indirect github.com/google/uuid v1.6.0 // indirect github.com/gorilla/mux v1.8.1 // indirect diff --git a/go.sum b/go.sum index a358a0c7..c2f78c8d 100644 --- a/go.sum +++ b/go.sum @@ -279,8 +279,8 @@ github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= -github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= diff --git a/go/provider/lease/v1/service.pb.go b/go/provider/lease/v1/service.pb.go index 9d5dbc28..d9c03362 100644 --- a/go/provider/lease/v1/service.pb.go +++ b/go/provider/lease/v1/service.pb.go @@ -441,6 +441,7 @@ var xxx_messageInfo_SendManifestResponse proto.InternalMessageInfo type ServiceLogsRequest struct { LeaseId v1beta4.LeaseID `protobuf:"bytes,1,opt,name=lease_id,json=leaseId,proto3" json:"LeaseID" yaml:"LeaseID"` Services []string `protobuf:"bytes,2,rep,name=services,proto3" json:"services" yaml:"services"` + Lines uint32 `protobuf:"varint,3,opt,name=lines,proto3" json:"lines" yaml:"lines"` } func (m *ServiceLogsRequest) Reset() { *m = ServiceLogsRequest{} } @@ -490,6 +491,13 @@ func (m *ServiceLogsRequest) GetServices() []string { return nil } +func (m *ServiceLogsRequest) GetLines() uint32 { + if m != nil { + return m.Lines + } + return 0 +} + // ServiceLogs type ServiceLogs struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" yaml:"name"` @@ -751,71 +759,72 @@ func init() { } var fileDescriptor_3a2116fc700fbddb = []byte{ - // 1017 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x57, 0x4d, 0x6f, 0x1b, 0x45, - 0x18, 0xce, 0xae, 0xed, 0xc4, 0x1e, 0xc7, 0x2d, 0x9d, 0x04, 0x62, 0x22, 0xe2, 0x31, 0x53, 0x5a, + // 1038 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x57, 0x41, 0x6f, 0x1b, 0x45, + 0x14, 0xce, 0xae, 0x9d, 0xc4, 0x9e, 0xc4, 0x2d, 0x9d, 0x04, 0x62, 0x22, 0xe2, 0x35, 0x53, 0x5a, 0xa5, 0x4a, 0xb2, 0xdb, 0x18, 0x24, 0x24, 0x7a, 0x40, 0x5a, 0x10, 0x55, 0xa5, 0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x8d, 0xdd, 0x9a, 0x83, 0x26, - 0x29, 0xca, 0xb1, 0x69, 0x8a, 0x6e, 0xea, 0x22, 0x34, 0x82, 0xdd, 0xfc, 0x10, 0xde, 0x06, 0x66, - 0x10, 0xc9, 0x8b, 0xa8, 0x39, 0x1b, 0x93, 0x14, 0x99, 0x41, 0x34, 0x4d, 0x51, 0x4d, 0x39, 0x04, - 0x11, 0x76, 0xcd, 0x20, 0xc2, 0x3f, 0x98, 0x60, 0xe3, 0x33, 0xc6, 0x9f, 0x12, 0xee, 0x51, 0x2e, - 0x72, 0x16, 0x6d, 0xf7, 0x59, 0xac, 0xda, 0xae, 0xa9, 0xb6, 0x85, 0x5d, 0xb4, 0x2d, 0x2c, 0xec, - 0x4a, 0x30, 0xd7, 0xc8, 0xfc, 0x57, 0x1a, 0x95, 0xfe, 0x9b, 0x46, 0x36, 0xa8, 0xc8, 0x96, 0x75, - 0xa7, 0x6f, 0x4f, 0x52, 0xa4, 0x80, 0x69, 0x8a, 0xd6, 0x67, 0xd4, 0xc1, 0xae, 0x82, 0x45, 0xb5, - 0x43, 0x32, 0xa0, 0xf2, 0xf1, 0xe9, 0xd6, 0x84, 0x5d, 0x54, 0x2b, 0x2c, 0xec, 0x4a, 0x10, 0xbf, - 0x32, 0x41, 0x63, 0x7e, 0x70, 0x32, 0x77, 0x63, 0x09, 0x77, 0xe8, 0x81, 0xd5, 0x58, 0xba, 0x49, - 0x6d, 0xea, 0x9d, 0x3d, 0xeb, 0x92, 0x15, 0x60, 0x2d, 0x8e, 0xa8, 0x83, 0x5e, 0xa4, 0x68, 0x65, - 0x92, 0x22, 0x1d, 0x62, 0x9a, 0xa2, 0x86, 0xca, 0xa0, 0x6c, 0xec, 0xea, 0x03, 0x48, 0x40, 0x45, - 0x28, 0xa3, 0x06, 0xb3, 0xde, 0xd9, 0xbf, 0x34, 0xc9, 0x5f, 0xdc, 0xb4, 0xb3, 0xa3, 0xb3, 0xa8, - 0x10, 0x33, 0xa2, 0x09, 0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, 0x19, 0x60, 0x4f, 0x32, 0x63, 0xed, 0x19, 0x1d, 0x04, 0x9f, 0x10, 0x61, + 0x11, 0x07, 0x40, 0xfc, 0x15, 0x6a, 0xb0, 0xef, 0x53, 0x16, 0x87, 0x34, 0xe8, 0x82, 0x97, 0x0e, + 0x5e, 0xf7, 0xc6, 0x99, 0x31, 0x7b, 0x30, 0xc9, 0x8c, 0x4d, 0xe9, 0x3e, 0x03, 0x13, 0x67, 0x3d, + 0xb7, 0x8f, 0x44, 0xbc, 0x07, 0xa8, 0x06, 0x8f, 0x78, 0xc2, 0x83, 0x66, 0xa5, 0xad, 0xed, 0xd6, + 0x6d, 0x63, 0x9c, 0x19, 0x05, 0x36, 0xc9, 0x8c, 0x9b, 0xea, 0x12, 0x0a, 0x21, 0x4e, 0x71, 0x88, + 0x6f, 0x23, 0xdd, 0x8f, 0xe0, 0x21, 0xea, 0xf6, 0xc6, 0x38, 0x33, 0x74, 0x3f, 0x9a, 0x64, 0x46, + 0x5d, 0x3a, 0xf8, 0x11, 0x71, 0x74, 0x3f, 0x22, 0x3f, 0xe9, 0x68, 0xe3, 0x0b, 0x1e, 0x3f, 0xa5, + 0xb1, 0xcb, 0x62, 0x91, 0xb3, 0x2c, 0xbb, 0xcf, 0x13, 0x59, 0x76, 0x5d, 0x96, 0x2d, 0xec, 0xb2, + 0x6c, 0x61, 0x11, 0x07, 0xc0, 0x42, 0x23, 0xfd, 0x5f, 0x69, 0x54, 0xf9, 0x6f, 0x1a, 0x59, 0x68, + 0x19, 0x4a, 0x56, 0x95, 0xbe, 0x3b, 0xce, 0x0c, 0x09, 0x4c, 0x32, 0x63, 0x7d, 0x4a, 0x1d, 0xe2, + 0x48, 0x58, 0xdc, 0x36, 0xa4, 0x03, 0x06, 0xcd, 0xa7, 0x4a, 0x13, 0x76, 0x79, 0x5b, 0x61, 0x11, + 0x07, 0x40, 0xf2, 0x4a, 0x47, 0x8d, 0xd9, 0xc1, 0xc9, 0xdd, 0xb5, 0x05, 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0xab, 0xcb, 0x2f, 0x76, 0x85, 0xce, 0x6f, 0x55, + 0x54, 0x83, 0xaa, 0x9c, 0xa3, 0xcf, 0xb0, 0x78, 0xaf, 0xa9, 0x51, 0xc4, 0xfb, 0x57, 0xe4, 0x9c, + 0xdb, 0x6a, 0xdb, 0x07, 0x0b, 0xb2, 0x55, 0x89, 0xe1, 0xc5, 0xcf, 0xce, 0xc1, 0x62, 0x15, 0xe6, + 0xe9, 0xcc, 0x45, 0xe9, 0x2a, 0x9f, 0x18, 0x82, 0x34, 0x66, 0x74, 0x70, 0x9d, 0x59, 0xef, 0x6b, + 0xb8, 0x7f, 0x61, 0xca, 0x17, 0x19, 0xb1, 0x3c, 0xdb, 0xfe, 0x62, 0x64, 0x55, 0x61, 0x84, 0x6e, + 0xcd, 0x54, 0xf8, 0x3f, 0xe7, 0xbb, 0xaf, 0xd9, 0x4f, 0x5e, 0x9c, 0xb5, 0xb4, 0x97, 0x67, 0x2d, + 0xed, 0xf7, 0xb3, 0x96, 0xf6, 0xe3, 0x79, 0x6b, 0xe9, 0xe5, 0x79, 0x6b, 0xe9, 0xd5, 0x79, 0x6b, + 0xe9, 0xeb, 0x8f, 0x17, 0xfb, 0x40, 0xcc, 0xfd, 0x3d, 0xd1, 0x5b, 0x81, 0xff, 0xc2, 0x7c, 0xf8, + 0x67, 0x00, 0x00, 0x00, 0xff, 0xff, 0x92, 0x56, 0xbf, 0x58, 0x71, 0x0c, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1449,6 +1458,11 @@ func (m *ServiceLogsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.Lines != 0 { + i = encodeVarintService(dAtA, i, uint64(m.Lines)) + i-- + dAtA[i] = 0x18 + } if len(m.Services) > 0 { for iNdEx := len(m.Services) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Services[iNdEx]) @@ -1821,6 +1835,9 @@ func (m *ServiceLogsRequest) Size() (n int) { n += 1 + l + sovService(uint64(l)) } } + if m.Lines != 0 { + n += 1 + sovService(uint64(m.Lines)) + } return n } @@ -2900,6 +2917,25 @@ func (m *ServiceLogsRequest) Unmarshal(dAtA []byte) error { } m.Services = append(m.Services, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Lines", wireType) + } + m.Lines = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Lines |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipService(dAtA[iNdEx:]) diff --git a/go/provider/v1/service.pb.go b/go/provider/v1/service.pb.go index af0766e8..0d147b57 100644 --- a/go/provider/v1/service.pb.go +++ b/go/provider/v1/service.pb.go @@ -6,6 +6,9 @@ package v1 import ( context "context" fmt "fmt" + v1beta3 "github.com/akash-network/akash-api/go/node/deployment/v1beta3" + types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" @@ -13,7 +16,9 @@ import ( codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" emptypb "google.golang.org/protobuf/types/known/emptypb" + io "io" math "math" + math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. @@ -27,26 +32,506 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// GetVersionResponse +type GetVersionResponse struct { + Akash *AkashInfo `protobuf:"bytes,1,opt,name=akash,proto3" json:"akash"` + Kube *KubeInfo `protobuf:"bytes,2,opt,name=kube,proto3" json:"kube"` +} + +func (m *GetVersionResponse) Reset() { *m = GetVersionResponse{} } +func (m *GetVersionResponse) String() string { return proto.CompactTextString(m) } +func (*GetVersionResponse) ProtoMessage() {} +func (*GetVersionResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_518d1307e7e58072, []int{0} +} +func (m *GetVersionResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetVersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetVersionResponse.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 *GetVersionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetVersionResponse.Merge(m, src) +} +func (m *GetVersionResponse) XXX_Size() int { + return m.Size() +} +func (m *GetVersionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetVersionResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetVersionResponse proto.InternalMessageInfo + +func (m *GetVersionResponse) GetAkash() *AkashInfo { + if m != nil { + return m.Akash + } + return nil +} + +func (m *GetVersionResponse) GetKube() *KubeInfo { + if m != nil { + return m.Kube + } + return nil +} + +// AkashInfo +type AkashInfo struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" yaml:"name"` + AppName string `protobuf:"bytes,2,opt,name=app_name,json=appName,proto3" json:"server_name" yaml:"server_name"` + Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version" yaml:"version"` + GitCommit string `protobuf:"bytes,4,opt,name=git_commit,json=gitCommit,proto3" json:"commit" yaml:"commit"` + BuildTags string `protobuf:"bytes,5,opt,name=build_tags,json=buildTags,proto3" json:"build_tags" yaml:"build_tags"` + GoVersion string `protobuf:"bytes,6,opt,name=go_version,json=goVersion,proto3" json:"go" yaml:"go"` + BuildDeps []*BuildDep `protobuf:"bytes,7,rep,name=build_deps,json=buildDeps,proto3" json:"build_deps" yaml:"build_deps"` + CosmosSdkVersion string `protobuf:"bytes,8,opt,name=cosmos_sdk_version,json=cosmosSdkVersion,proto3" json:"cosmos_sdk_version" yaml:"cosmos_sdk_version"` +} + +func (m *AkashInfo) Reset() { *m = AkashInfo{} } +func (m *AkashInfo) String() string { return proto.CompactTextString(m) } +func (*AkashInfo) ProtoMessage() {} +func (*AkashInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_518d1307e7e58072, []int{1} +} +func (m *AkashInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AkashInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AkashInfo.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 *AkashInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_AkashInfo.Merge(m, src) +} +func (m *AkashInfo) XXX_Size() int { + return m.Size() +} +func (m *AkashInfo) XXX_DiscardUnknown() { + xxx_messageInfo_AkashInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_AkashInfo proto.InternalMessageInfo + +func (m *AkashInfo) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *AkashInfo) GetAppName() string { + if m != nil { + return m.AppName + } + return "" +} + +func (m *AkashInfo) GetVersion() string { + if m != nil { + return m.Version + } + return "" +} + +func (m *AkashInfo) GetGitCommit() string { + if m != nil { + return m.GitCommit + } + return "" +} + +func (m *AkashInfo) GetBuildTags() string { + if m != nil { + return m.BuildTags + } + return "" +} + +func (m *AkashInfo) GetGoVersion() string { + if m != nil { + return m.GoVersion + } + return "" +} + +func (m *AkashInfo) GetBuildDeps() []*BuildDep { + if m != nil { + return m.BuildDeps + } + return nil +} + +func (m *AkashInfo) GetCosmosSdkVersion() string { + if m != nil { + return m.CosmosSdkVersion + } + return "" +} + +// BuildDep +type BuildDep struct { + Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + Sum string `protobuf:"bytes,3,opt,name=sum,proto3" json:"sum,omitempty"` + Replace *BuildDep `protobuf:"bytes,4,opt,name=replace,proto3" json:"replace,omitempty"` +} + +func (m *BuildDep) Reset() { *m = BuildDep{} } +func (m *BuildDep) String() string { return proto.CompactTextString(m) } +func (*BuildDep) ProtoMessage() {} +func (*BuildDep) Descriptor() ([]byte, []int) { + return fileDescriptor_518d1307e7e58072, []int{2} +} +func (m *BuildDep) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BuildDep) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BuildDep.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 *BuildDep) XXX_Merge(src proto.Message) { + xxx_messageInfo_BuildDep.Merge(m, src) +} +func (m *BuildDep) XXX_Size() int { + return m.Size() +} +func (m *BuildDep) XXX_DiscardUnknown() { + xxx_messageInfo_BuildDep.DiscardUnknown(m) +} + +var xxx_messageInfo_BuildDep proto.InternalMessageInfo + +func (m *BuildDep) GetPath() string { + if m != nil { + return m.Path + } + return "" +} + +func (m *BuildDep) GetVersion() string { + if m != nil { + return m.Version + } + return "" +} + +func (m *BuildDep) GetSum() string { + if m != nil { + return m.Sum + } + return "" +} + +func (m *BuildDep) GetReplace() *BuildDep { + if m != nil { + return m.Replace + } + return nil +} + +// KubeInfo +type KubeInfo struct { + Major string `protobuf:"bytes,1,opt,name=major,proto3" json:"major"` + Minor string `protobuf:"bytes,2,opt,name=minor,proto3" json:"minor"` + GitVersion string `protobuf:"bytes,3,opt,name=git_version,json=gitVersion,proto3" json:"gitVersion"` + GitCommit string `protobuf:"bytes,4,opt,name=git_commit,json=gitCommit,proto3" json:"gitCommit"` + GitTreeState string `protobuf:"bytes,5,opt,name=git_tree_state,json=gitTreeState,proto3" json:"gitTreeState"` + BuildDate string `protobuf:"bytes,6,opt,name=build_date,json=buildDate,proto3" json:"buildDate"` + GoVersion string `protobuf:"bytes,7,opt,name=go_version,json=goVersion,proto3" json:"goVersion"` + Compiler string `protobuf:"bytes,8,opt,name=compiler,proto3" json:"compiler"` + Platform string `protobuf:"bytes,9,opt,name=platform,proto3" json:"platform"` +} + +func (m *KubeInfo) Reset() { *m = KubeInfo{} } +func (m *KubeInfo) String() string { return proto.CompactTextString(m) } +func (*KubeInfo) ProtoMessage() {} +func (*KubeInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_518d1307e7e58072, []int{3} +} +func (m *KubeInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *KubeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_KubeInfo.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 *KubeInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_KubeInfo.Merge(m, src) +} +func (m *KubeInfo) XXX_Size() int { + return m.Size() +} +func (m *KubeInfo) XXX_DiscardUnknown() { + xxx_messageInfo_KubeInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_KubeInfo proto.InternalMessageInfo + +func (m *KubeInfo) GetMajor() string { + if m != nil { + return m.Major + } + return "" +} + +func (m *KubeInfo) GetMinor() string { + if m != nil { + return m.Minor + } + return "" +} + +func (m *KubeInfo) GetGitVersion() string { + if m != nil { + return m.GitVersion + } + return "" +} + +func (m *KubeInfo) GetGitCommit() string { + if m != nil { + return m.GitCommit + } + return "" +} + +func (m *KubeInfo) GetGitTreeState() string { + if m != nil { + return m.GitTreeState + } + return "" +} + +func (m *KubeInfo) GetBuildDate() string { + if m != nil { + return m.BuildDate + } + return "" +} + +func (m *KubeInfo) GetGoVersion() string { + if m != nil { + return m.GoVersion + } + return "" +} + +func (m *KubeInfo) GetCompiler() string { + if m != nil { + return m.Compiler + } + return "" +} + +func (m *KubeInfo) GetPlatform() string { + if m != nil { + return m.Platform + } + return "" +} + +// ValidateRequest +type ValidateRequest struct { + Group v1beta3.GroupSpec `protobuf:"bytes,1,opt,name=group,proto3" json:"group" yaml:"group"` +} + +func (m *ValidateRequest) Reset() { *m = ValidateRequest{} } +func (m *ValidateRequest) String() string { return proto.CompactTextString(m) } +func (*ValidateRequest) ProtoMessage() {} +func (*ValidateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_518d1307e7e58072, []int{4} +} +func (m *ValidateRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ValidateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ValidateRequest.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 *ValidateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ValidateRequest.Merge(m, src) +} +func (m *ValidateRequest) XXX_Size() int { + return m.Size() +} +func (m *ValidateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ValidateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ValidateRequest proto.InternalMessageInfo + +func (m *ValidateRequest) GetGroup() v1beta3.GroupSpec { + if m != nil { + return m.Group + } + return v1beta3.GroupSpec{} +} + +// ValidateResponse +type ValidateResponse struct { + MinBidPrice types.DecCoin `protobuf:"bytes,1,opt,name=min_bid_price,json=minBidPrice,proto3" json:"min_bid_price" yaml:"min_bid_price"` +} + +func (m *ValidateResponse) Reset() { *m = ValidateResponse{} } +func (m *ValidateResponse) String() string { return proto.CompactTextString(m) } +func (*ValidateResponse) ProtoMessage() {} +func (*ValidateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_518d1307e7e58072, []int{5} +} +func (m *ValidateResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ValidateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ValidateResponse.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 *ValidateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ValidateResponse.Merge(m, src) +} +func (m *ValidateResponse) XXX_Size() int { + return m.Size() +} +func (m *ValidateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ValidateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ValidateResponse proto.InternalMessageInfo + +func (m *ValidateResponse) GetMinBidPrice() types.DecCoin { + if m != nil { + return m.MinBidPrice + } + return types.DecCoin{} +} + +func init() { + proto.RegisterType((*GetVersionResponse)(nil), "akash.provider.v1.GetVersionResponse") + proto.RegisterType((*AkashInfo)(nil), "akash.provider.v1.AkashInfo") + proto.RegisterType((*BuildDep)(nil), "akash.provider.v1.BuildDep") + proto.RegisterType((*KubeInfo)(nil), "akash.provider.v1.KubeInfo") + proto.RegisterType((*ValidateRequest)(nil), "akash.provider.v1.ValidateRequest") + proto.RegisterType((*ValidateResponse)(nil), "akash.provider.v1.ValidateResponse") +} + func init() { proto.RegisterFile("akash/provider/v1/service.proto", fileDescriptor_518d1307e7e58072) } var fileDescriptor_518d1307e7e58072 = []byte{ - // 255 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4f, 0xcc, 0x4e, 0x2c, - 0xce, 0xd0, 0x2f, 0x28, 0xca, 0x2f, 0xcb, 0x4c, 0x49, 0x2d, 0xd2, 0x2f, 0x33, 0xd4, 0x2f, 0x4e, - 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x04, 0x2b, 0xd0, - 0x83, 0x29, 0xd0, 0x2b, 0x33, 0x94, 0x92, 0x4e, 0xcf, 0xcf, 0x4f, 0xcf, 0x49, 0xd5, 0x07, 0x2b, - 0x48, 0x2a, 0x4d, 0xd3, 0x4f, 0xcd, 0x2d, 0x28, 0xa9, 0x84, 0xa8, 0x97, 0x92, 0x81, 0x4a, 0x26, - 0x16, 0x64, 0xea, 0x27, 0xe6, 0xe5, 0xe5, 0x97, 0x24, 0x96, 0x64, 0xe6, 0xe7, 0x15, 0x43, 0x65, - 0xe5, 0xb0, 0x58, 0x57, 0x92, 0x58, 0x52, 0x0a, 0x95, 0x37, 0x5a, 0xc9, 0xc8, 0xc5, 0x1d, 0x00, - 0x95, 0x0c, 0x0a, 0x70, 0x16, 0x0a, 0xe5, 0xe2, 0x74, 0x4f, 0x2d, 0x09, 0x06, 0x2b, 0x11, 0x12, - 0xd3, 0x83, 0x98, 0xad, 0x07, 0xb3, 0x58, 0xcf, 0x15, 0x64, 0xb1, 0x94, 0xa4, 0x1e, 0x86, 0x1b, - 0xf5, 0x20, 0x5a, 0x94, 0x44, 0x9b, 0x2e, 0x3f, 0x99, 0xcc, 0xc4, 0x2f, 0xc4, 0x85, 0xb0, 0x29, - 0x89, 0x51, 0x4b, 0xc8, 0x99, 0x8b, 0x27, 0xb8, 0xa4, 0x28, 0x35, 0x31, 0x97, 0x6c, 0x93, 0x0d, - 0x18, 0x9d, 0xbc, 0x4f, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, - 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0xca, 0x30, 0x3d, - 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x1f, 0x6c, 0x80, 0x6e, 0x5e, 0x6a, 0x49, - 0x79, 0x7e, 0x51, 0x36, 0x94, 0x07, 0x0a, 0x9b, 0xf4, 0x7c, 0xe4, 0x50, 0x48, 0x62, 0x03, 0xdb, - 0x6c, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x6a, 0xc2, 0xd5, 0x1b, 0x90, 0x01, 0x00, 0x00, + // 1025 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x4f, 0x6f, 0x1b, 0x45, + 0x14, 0x8f, 0xf3, 0xd7, 0x1e, 0x27, 0x69, 0x3a, 0x14, 0x70, 0x93, 0xd6, 0x53, 0x6d, 0x54, 0x29, + 0x02, 0xba, 0x8b, 0x13, 0x01, 0xa2, 0x12, 0x12, 0x38, 0x41, 0x51, 0x15, 0x09, 0xa2, 0x71, 0x29, + 0x7f, 0x2e, 0xd6, 0x78, 0x3d, 0xd9, 0x0e, 0xf6, 0xee, 0x0c, 0xbb, 0x63, 0xa3, 0x1c, 0x81, 0x3b, + 0x42, 0xea, 0x99, 0x4f, 0xc0, 0x17, 0xe9, 0xb1, 0x12, 0x17, 0x4e, 0x23, 0x94, 0x70, 0xda, 0xa3, + 0x3f, 0x01, 0x9a, 0x3f, 0xeb, 0x75, 0x82, 0xdb, 0x03, 0xea, 0xc5, 0x3b, 0xef, 0xf7, 0xde, 0xef, + 0xbd, 0xe7, 0x79, 0xbf, 0x9d, 0x59, 0x80, 0xc8, 0x80, 0x64, 0x4f, 0x03, 0x91, 0xf2, 0x31, 0xeb, + 0xd3, 0x34, 0x18, 0xb7, 0x82, 0x8c, 0xa6, 0x63, 0x16, 0x52, 0x5f, 0xa4, 0x5c, 0x72, 0x78, 0xd3, + 0x04, 0xf8, 0x45, 0x80, 0x3f, 0x6e, 0x6d, 0xdf, 0x8a, 0x78, 0xc4, 0x8d, 0x37, 0xd0, 0x2b, 0x1b, + 0xb8, 0xbd, 0x13, 0x71, 0x1e, 0x0d, 0x69, 0x60, 0xac, 0xde, 0xe8, 0x2c, 0xa0, 0xb1, 0x90, 0xe7, + 0xce, 0x79, 0xc7, 0x39, 0x89, 0x60, 0x01, 0x49, 0x12, 0x2e, 0x89, 0x64, 0x3c, 0xc9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0x4a, 0xe2, 0xff, 0x9d, 0xf9, 0xfd, 0x0a, 0x3c, + 0x01, 0xa0, 0xbc, 0x76, 0x5e, 0x9a, 0xe2, 0xfe, 0x9c, 0x14, 0x73, 0x6e, 0xab, 0x0e, 0xa8, 0x16, + 0xbb, 0x0f, 0xbd, 0x39, 0x94, 0x6b, 0x42, 0xd8, 0xde, 0x7d, 0x65, 0x8c, 0x4b, 0x7a, 0x0a, 0x56, + 0xbe, 0x7e, 0xd4, 0xfe, 0xf2, 0xdb, 0xd7, 0x96, 0xb1, 0x7d, 0xf2, 0xfc, 0xa2, 0x59, 0x79, 0x71, + 0xd1, 0xac, 0xfc, 0x7d, 0xd1, 0xac, 0xfc, 0x76, 0xd9, 0x5c, 0x78, 0x71, 0xd9, 0x5c, 0xf8, 0xeb, + 0xb2, 0xb9, 0xf0, 0x5d, 0x2b, 0x62, 0xf2, 0xe9, 0xa8, 0xe7, 0x87, 0x3c, 0x0e, 0x4c, 0xa2, 0x07, + 0x09, 0x95, 0x3f, 0xf2, 0x74, 0xe0, 0x2c, 0xfd, 0x95, 0x10, 0xf1, 0xd9, 0xef, 0x81, 0xde, 0xaa, + 0xd9, 0xaa, 0x83, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x3f, 0x62, 0x3f, 0x90, 0xb0, 0x08, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -69,6 +554,16 @@ type ProviderRPCClient interface { // buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE // buf:lint:ignore RPC_RESPONSE_STANDARD_NAME StreamStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (ProviderRPC_StreamStatusClient, error) + // GetVersion returns version information about the provider + // buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + GetVersion(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetVersionResponse, error) + // Validate checks if provider will bid on given groupspec + // buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + Validate(ctx context.Context, in *ValidateRequest, opts ...grpc.CallOption) (*ValidateResponse, error) + // WIBOY (will I bid on you) is an alias for Validate + // buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + // buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + WIBOY(ctx context.Context, in *ValidateRequest, opts ...grpc.CallOption) (*ValidateResponse, error) } type providerRPCClient struct { @@ -120,6 +615,33 @@ func (x *providerRPCStreamStatusClient) Recv() (*Status, error) { return m, nil } +func (c *providerRPCClient) GetVersion(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetVersionResponse, error) { + out := new(GetVersionResponse) + err := c.cc.Invoke(ctx, "/akash.provider.v1.ProviderRPC/GetVersion", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerRPCClient) Validate(ctx context.Context, in *ValidateRequest, opts ...grpc.CallOption) (*ValidateResponse, error) { + out := new(ValidateResponse) + err := c.cc.Invoke(ctx, "/akash.provider.v1.ProviderRPC/Validate", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerRPCClient) WIBOY(ctx context.Context, in *ValidateRequest, opts ...grpc.CallOption) (*ValidateResponse, error) { + out := new(ValidateResponse) + err := c.cc.Invoke(ctx, "/akash.provider.v1.ProviderRPC/WIBOY", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // ProviderRPCServer is the server API for ProviderRPC service. type ProviderRPCServer interface { // GetStatus defines a method to query provider state @@ -130,6 +652,16 @@ type ProviderRPCServer interface { // buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE // buf:lint:ignore RPC_RESPONSE_STANDARD_NAME StreamStatus(*emptypb.Empty, ProviderRPC_StreamStatusServer) error + // GetVersion returns version information about the provider + // buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + GetVersion(context.Context, *emptypb.Empty) (*GetVersionResponse, error) + // Validate checks if provider will bid on given groupspec + // buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + Validate(context.Context, *ValidateRequest) (*ValidateResponse, error) + // WIBOY (will I bid on you) is an alias for Validate + // buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + // buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + WIBOY(context.Context, *ValidateRequest) (*ValidateResponse, error) } // UnimplementedProviderRPCServer can be embedded to have forward compatible implementations. @@ -142,6 +674,15 @@ func (*UnimplementedProviderRPCServer) GetStatus(ctx context.Context, req *empty func (*UnimplementedProviderRPCServer) StreamStatus(req *emptypb.Empty, srv ProviderRPC_StreamStatusServer) error { return status.Errorf(codes.Unimplemented, "method StreamStatus not implemented") } +func (*UnimplementedProviderRPCServer) GetVersion(ctx context.Context, req *emptypb.Empty) (*GetVersionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetVersion not implemented") +} +func (*UnimplementedProviderRPCServer) Validate(ctx context.Context, req *ValidateRequest) (*ValidateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Validate not implemented") +} +func (*UnimplementedProviderRPCServer) WIBOY(ctx context.Context, req *ValidateRequest) (*ValidateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method WIBOY not implemented") +} func RegisterProviderRPCServer(s grpc1.Server, srv ProviderRPCServer) { s.RegisterService(&_ProviderRPC_serviceDesc, srv) @@ -186,6 +727,60 @@ func (x *providerRPCStreamStatusServer) Send(m *Status) error { return x.ServerStream.SendMsg(m) } +func _ProviderRPC_GetVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(emptypb.Empty) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderRPCServer).GetVersion(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/akash.provider.v1.ProviderRPC/GetVersion", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderRPCServer).GetVersion(ctx, req.(*emptypb.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProviderRPC_Validate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ValidateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderRPCServer).Validate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/akash.provider.v1.ProviderRPC/Validate", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderRPCServer).Validate(ctx, req.(*ValidateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProviderRPC_WIBOY_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ValidateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderRPCServer).WIBOY(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/akash.provider.v1.ProviderRPC/WIBOY", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderRPCServer).WIBOY(ctx, req.(*ValidateRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _ProviderRPC_serviceDesc = grpc.ServiceDesc{ ServiceName: "akash.provider.v1.ProviderRPC", HandlerType: (*ProviderRPCServer)(nil), @@ -194,6 +789,18 @@ var _ProviderRPC_serviceDesc = grpc.ServiceDesc{ MethodName: "GetStatus", Handler: _ProviderRPC_GetStatus_Handler, }, + { + MethodName: "GetVersion", + Handler: _ProviderRPC_GetVersion_Handler, + }, + { + MethodName: "Validate", + Handler: _ProviderRPC_Validate_Handler, + }, + { + MethodName: "WIBOY", + Handler: _ProviderRPC_WIBOY_Handler, + }, }, Streams: []grpc.StreamDesc{ { @@ -204,3 +811,1714 @@ var _ProviderRPC_serviceDesc = grpc.ServiceDesc{ }, Metadata: "akash/provider/v1/service.proto", } + +func (m *GetVersionResponse) 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 *GetVersionResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetVersionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Kube != nil { + { + size, err := m.Kube.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintService(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Akash != nil { + { + size, err := m.Akash.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintService(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *AkashInfo) 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 *AkashInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AkashInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.CosmosSdkVersion) > 0 { + i -= len(m.CosmosSdkVersion) + copy(dAtA[i:], m.CosmosSdkVersion) + i = encodeVarintService(dAtA, i, uint64(len(m.CosmosSdkVersion))) + i-- + dAtA[i] = 0x42 + } + if len(m.BuildDeps) > 0 { + for iNdEx := len(m.BuildDeps) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.BuildDeps[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintService(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + } + if len(m.GoVersion) > 0 { + i -= len(m.GoVersion) + copy(dAtA[i:], m.GoVersion) + i = encodeVarintService(dAtA, i, uint64(len(m.GoVersion))) + i-- + dAtA[i] = 0x32 + } + if len(m.BuildTags) > 0 { + i -= len(m.BuildTags) + copy(dAtA[i:], m.BuildTags) + i = encodeVarintService(dAtA, i, uint64(len(m.BuildTags))) + i-- + dAtA[i] = 0x2a + } + if len(m.GitCommit) > 0 { + i -= len(m.GitCommit) + copy(dAtA[i:], m.GitCommit) + i = encodeVarintService(dAtA, i, uint64(len(m.GitCommit))) + i-- + dAtA[i] = 0x22 + } + if len(m.Version) > 0 { + i -= len(m.Version) + copy(dAtA[i:], m.Version) + i = encodeVarintService(dAtA, i, uint64(len(m.Version))) + i-- + dAtA[i] = 0x1a + } + if len(m.AppName) > 0 { + i -= len(m.AppName) + copy(dAtA[i:], m.AppName) + i = encodeVarintService(dAtA, i, uint64(len(m.AppName))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintService(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BuildDep) 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 *BuildDep) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BuildDep) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Replace != nil { + { + size, err := m.Replace.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintService(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if len(m.Sum) > 0 { + i -= len(m.Sum) + copy(dAtA[i:], m.Sum) + i = encodeVarintService(dAtA, i, uint64(len(m.Sum))) + i-- + dAtA[i] = 0x1a + } + if len(m.Version) > 0 { + i -= len(m.Version) + copy(dAtA[i:], m.Version) + i = encodeVarintService(dAtA, i, uint64(len(m.Version))) + i-- + dAtA[i] = 0x12 + } + if len(m.Path) > 0 { + i -= len(m.Path) + copy(dAtA[i:], m.Path) + i = encodeVarintService(dAtA, i, uint64(len(m.Path))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *KubeInfo) 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 *KubeInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *KubeInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Platform) > 0 { + i -= len(m.Platform) + copy(dAtA[i:], m.Platform) + i = encodeVarintService(dAtA, i, uint64(len(m.Platform))) + i-- + dAtA[i] = 0x4a + } + if len(m.Compiler) > 0 { + i -= len(m.Compiler) + copy(dAtA[i:], m.Compiler) + i = encodeVarintService(dAtA, i, uint64(len(m.Compiler))) + i-- + dAtA[i] = 0x42 + } + if len(m.GoVersion) > 0 { + i -= len(m.GoVersion) + copy(dAtA[i:], m.GoVersion) + i = encodeVarintService(dAtA, i, uint64(len(m.GoVersion))) + i-- + dAtA[i] = 0x3a + } + if len(m.BuildDate) > 0 { + i -= len(m.BuildDate) + copy(dAtA[i:], m.BuildDate) + i = encodeVarintService(dAtA, i, uint64(len(m.BuildDate))) + i-- + dAtA[i] = 0x32 + } + if len(m.GitTreeState) > 0 { + i -= len(m.GitTreeState) + copy(dAtA[i:], m.GitTreeState) + i = encodeVarintService(dAtA, i, uint64(len(m.GitTreeState))) + i-- + dAtA[i] = 0x2a + } + if len(m.GitCommit) > 0 { + i -= len(m.GitCommit) + copy(dAtA[i:], m.GitCommit) + i = encodeVarintService(dAtA, i, uint64(len(m.GitCommit))) + i-- + dAtA[i] = 0x22 + } + if len(m.GitVersion) > 0 { + i -= len(m.GitVersion) + copy(dAtA[i:], m.GitVersion) + i = encodeVarintService(dAtA, i, uint64(len(m.GitVersion))) + i-- + dAtA[i] = 0x1a + } + if len(m.Minor) > 0 { + i -= len(m.Minor) + copy(dAtA[i:], m.Minor) + i = encodeVarintService(dAtA, i, uint64(len(m.Minor))) + i-- + dAtA[i] = 0x12 + } + if len(m.Major) > 0 { + i -= len(m.Major) + copy(dAtA[i:], m.Major) + i = encodeVarintService(dAtA, i, uint64(len(m.Major))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ValidateRequest) 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 *ValidateRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ValidateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Group.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintService(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ValidateResponse) 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 *ValidateResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ValidateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.MinBidPrice.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintService(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintService(dAtA []byte, offset int, v uint64) int { + offset -= sovService(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *GetVersionResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Akash != nil { + l = m.Akash.Size() + n += 1 + l + sovService(uint64(l)) + } + if m.Kube != nil { + l = m.Kube.Size() + n += 1 + l + sovService(uint64(l)) + } + return n +} + +func (m *AkashInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovService(uint64(l)) + } + l = len(m.AppName) + if l > 0 { + n += 1 + l + sovService(uint64(l)) + } + l = len(m.Version) + if l > 0 { + n += 1 + l + sovService(uint64(l)) + } + l = len(m.GitCommit) + if l > 0 { + n += 1 + l + sovService(uint64(l)) + } + l = len(m.BuildTags) + if l > 0 { + n += 1 + l + sovService(uint64(l)) + } + l = len(m.GoVersion) + if l > 0 { + n += 1 + l + sovService(uint64(l)) + } + if len(m.BuildDeps) > 0 { + for _, e := range m.BuildDeps { + l = e.Size() + n += 1 + l + sovService(uint64(l)) + } + } + l = len(m.CosmosSdkVersion) + if l > 0 { + n += 1 + l + sovService(uint64(l)) + } + return n +} + +func (m *BuildDep) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Path) + if l > 0 { + n += 1 + l + sovService(uint64(l)) + } + l = len(m.Version) + if l > 0 { + n += 1 + l + sovService(uint64(l)) + } + l = len(m.Sum) + if l > 0 { + n += 1 + l + sovService(uint64(l)) + } + if m.Replace != nil { + l = m.Replace.Size() + n += 1 + l + sovService(uint64(l)) + } + return n +} + +func (m *KubeInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Major) + if l > 0 { + n += 1 + l + sovService(uint64(l)) + } + l = len(m.Minor) + if l > 0 { + n += 1 + l + sovService(uint64(l)) + } + l = len(m.GitVersion) + if l > 0 { + n += 1 + l + sovService(uint64(l)) + } + l = len(m.GitCommit) + if l > 0 { + n += 1 + l + sovService(uint64(l)) + } + l = len(m.GitTreeState) + if l > 0 { + n += 1 + l + sovService(uint64(l)) + } + l = len(m.BuildDate) + if l > 0 { + n += 1 + l + sovService(uint64(l)) + } + l = len(m.GoVersion) + if l > 0 { + n += 1 + l + sovService(uint64(l)) + } + l = len(m.Compiler) + if l > 0 { + n += 1 + l + sovService(uint64(l)) + } + l = len(m.Platform) + if l > 0 { + n += 1 + l + sovService(uint64(l)) + } + return n +} + +func (m *ValidateRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Group.Size() + n += 1 + l + sovService(uint64(l)) + return n +} + +func (m *ValidateResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.MinBidPrice.Size() + n += 1 + l + sovService(uint64(l)) + return n +} + +func sovService(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozService(x uint64) (n int) { + return sovService(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *GetVersionResponse) 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 ErrIntOverflowService + } + 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: GetVersionResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetVersionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Akash", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthService + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthService + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Akash == nil { + m.Akash = &AkashInfo{} + } + if err := m.Akash.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Kube", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthService + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthService + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Kube == nil { + m.Kube = &KubeInfo{} + } + if err := m.Kube.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipService(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthService + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AkashInfo) 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 ErrIntOverflowService + } + 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: AkashInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AkashInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + 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 ErrInvalidLengthService + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthService + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AppName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + 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 ErrInvalidLengthService + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthService + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AppName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + 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 ErrInvalidLengthService + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthService + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Version = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GitCommit", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + 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 ErrInvalidLengthService + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthService + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.GitCommit = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BuildTags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + 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 ErrInvalidLengthService + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthService + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BuildTags = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GoVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + 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 ErrInvalidLengthService + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthService + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.GoVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BuildDeps", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthService + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthService + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BuildDeps = append(m.BuildDeps, &BuildDep{}) + if err := m.BuildDeps[len(m.BuildDeps)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CosmosSdkVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + 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 ErrInvalidLengthService + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthService + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CosmosSdkVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipService(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthService + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BuildDep) 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 ErrIntOverflowService + } + 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: BuildDep: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BuildDep: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + 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 ErrInvalidLengthService + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthService + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Path = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + 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 ErrInvalidLengthService + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthService + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Version = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sum", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + 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 ErrInvalidLengthService + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthService + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sum = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Replace", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthService + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthService + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Replace == nil { + m.Replace = &BuildDep{} + } + if err := m.Replace.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipService(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthService + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *KubeInfo) 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 ErrIntOverflowService + } + 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: KubeInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: KubeInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Major", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + 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 ErrInvalidLengthService + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthService + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Major = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Minor", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + 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 ErrInvalidLengthService + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthService + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Minor = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GitVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + 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 ErrInvalidLengthService + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthService + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.GitVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GitCommit", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + 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 ErrInvalidLengthService + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthService + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.GitCommit = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GitTreeState", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + 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 ErrInvalidLengthService + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthService + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.GitTreeState = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BuildDate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + 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 ErrInvalidLengthService + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthService + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BuildDate = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GoVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + 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 ErrInvalidLengthService + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthService + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.GoVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Compiler", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + 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 ErrInvalidLengthService + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthService + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Compiler = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Platform", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + 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 ErrInvalidLengthService + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthService + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Platform = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipService(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthService + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ValidateRequest) 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 ErrIntOverflowService + } + 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: ValidateRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ValidateRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthService + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthService + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Group.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipService(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthService + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ValidateResponse) 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 ErrIntOverflowService + } + 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: ValidateResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ValidateResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MinBidPrice", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthService + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthService + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.MinBidPrice.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipService(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthService + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipService(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, ErrIntOverflowService + } + 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, ErrIntOverflowService + } + 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, ErrIntOverflowService + } + 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, ErrInvalidLengthService + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupService + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthService + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthService = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowService = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupService = fmt.Errorf("proto: unexpected end of group") +) diff --git a/proto/provider/akash/provider/lease/v1/service.proto b/proto/provider/akash/provider/lease/v1/service.proto index f7f26f8d..1b494736 100644 --- a/proto/provider/akash/provider/lease/v1/service.proto +++ b/proto/provider/akash/provider/lease/v1/service.proto @@ -117,6 +117,10 @@ message ServiceLogsRequest { (gogoproto.jsontag) = "services", (gogoproto.moretags) = "yaml:\"services\"" ]; + uint32 lines = 3 [ + (gogoproto.jsontag) = "lines", + (gogoproto.moretags) = "yaml:\"lines\"" + ]; } // ServiceLogs diff --git a/proto/provider/akash/provider/v1/service.proto b/proto/provider/akash/provider/v1/service.proto index 1abb2985..90077035 100644 --- a/proto/provider/akash/provider/v1/service.proto +++ b/proto/provider/akash/provider/v1/service.proto @@ -1,9 +1,14 @@ syntax = "proto3"; package akash.provider.v1; +import "gogoproto/gogo.proto"; import "google/protobuf/empty.proto"; import "google/api/annotations.proto"; + import "akash/provider/v1/status.proto"; +import "akash/deployment/v1beta3/groupspec.proto"; + +import "cosmos/base/v1beta1/coin.proto"; option go_package = "github.com/akash-network/akash-api/go/provider/v1"; @@ -23,4 +28,122 @@ service ProviderRPC { // buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE // buf:lint:ignore RPC_RESPONSE_STANDARD_NAME rpc StreamStatus(google.protobuf.Empty) returns (stream Status); + + // GetVersion returns version information about the provider + // buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + rpc GetVersion(google.protobuf.Empty) returns (GetVersionResponse); + + // Validate checks if provider will bid on given groupspec + // buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + rpc Validate(ValidateRequest) returns (ValidateResponse); + + // WIBOY (will I bid on you) is an alias for Validate + // buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + // buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + rpc WIBOY(ValidateRequest) returns (ValidateResponse); } + +// GetVersionResponse +message GetVersionResponse { + AkashInfo akash = 1 [ + (gogoproto.jsontag) = "akash" + ]; + KubeInfo kube = 2 [ + (gogoproto.jsontag) = "kube" + ]; +} + +// AkashInfo +message AkashInfo { + string name = 1 [ + (gogoproto.jsontag) = "name", + (gogoproto.moretags) = "yaml:\"name\"" + ]; + string app_name = 2 [ + (gogoproto.jsontag) = "server_name", + (gogoproto.moretags) = "yaml:\"server_name\"" + ]; + string version = 3 [ + (gogoproto.jsontag) = "version", + (gogoproto.moretags) = "yaml:\"version\"" + ]; + string git_commit = 4 [ + (gogoproto.jsontag) = "commit", + (gogoproto.moretags) = "yaml:\"commit\"" + ]; + string build_tags = 5 [ + (gogoproto.jsontag) = "build_tags", + (gogoproto.moretags) = "yaml:\"build_tags\"" + ]; + string go_version = 6 [ + (gogoproto.jsontag) = "go", + (gogoproto.moretags) = "yaml:\"go\"" + ]; + repeated BuildDep build_deps = 7 [ + (gogoproto.jsontag) = "build_deps", + (gogoproto.moretags) = "yaml:\"build_deps\"" + ]; + string cosmos_sdk_version = 8 [ + (gogoproto.jsontag) = "cosmos_sdk_version", + (gogoproto.moretags) = "yaml:\"cosmos_sdk_version\"" + + ]; +} + +// BuildDep +message BuildDep { + string path = 1; + string version = 2; + string sum = 3; + BuildDep replace = 4; +} + +// KubeInfo +message KubeInfo { + string major = 1 [ + (gogoproto.jsontag) = "major" + ]; + string minor = 2 [ + (gogoproto.jsontag) = "minor" + ]; + string git_version = 3 [ + (gogoproto.jsontag) = "gitVersion" + ]; + string git_commit = 4 [ + (gogoproto.jsontag) = "gitCommit" + ]; + string git_tree_state = 5 [ + (gogoproto.jsontag) = "gitTreeState" + ]; + string build_date = 6 [ + (gogoproto.jsontag) = "buildDate" + ]; + string go_version = 7 [ + (gogoproto.jsontag) = "goVersion" + ]; + string compiler = 8 [ + (gogoproto.jsontag) = "compiler" + ]; + string platform = 9 [ + (gogoproto.jsontag) = "platform" + ]; +} + +// ValidateRequest +message ValidateRequest { + akash.deployment.v1beta3.GroupSpec group = 1 [ + (gogoproto.nullable) = false, + (gogoproto.jsontag) = "group", + (gogoproto.moretags) = "yaml:\"group\"" + ]; +} + +// ValidateResponse +message ValidateResponse { + cosmos.base.v1beta1.DecCoin min_bid_price = 1 [ + (gogoproto.nullable) = false, + (gogoproto.jsontag) = "min_bid_price", + (gogoproto.moretags) = "yaml:\"min_bid_price\"" + ]; +} + diff --git a/ts/src/generated/akash/provider/lease/v1/service.grpc-js.ts b/ts/src/generated/akash/provider/lease/v1/service.grpc-js.ts index 9bee932c..b2b3dc5a 100644 --- a/ts/src/generated/akash/provider/lease/v1/service.grpc-js.ts +++ b/ts/src/generated/akash/provider/lease/v1/service.grpc-js.ts @@ -81,6 +81,7 @@ export interface ServiceLogsRequest { $type: 'akash.provider.lease.v1.ServiceLogsRequest'; leaseId: LeaseID | undefined; services: string[]; + lines: number; } /** ServiceLogs */ @@ -863,6 +864,7 @@ function createBaseServiceLogsRequest(): ServiceLogsRequest { $type: 'akash.provider.lease.v1.ServiceLogsRequest', leaseId: undefined, services: [], + lines: 0, }; } @@ -879,6 +881,9 @@ export const ServiceLogsRequest = { for (const v of message.services) { writer.uint32(18).string(v!); } + if (message.lines !== 0) { + writer.uint32(24).uint32(message.lines); + } return writer; }, @@ -904,6 +909,13 @@ export const ServiceLogsRequest = { message.services.push(reader.string()); continue; + case 3: + if (tag !== 24) { + break; + } + + message.lines = reader.uint32(); + continue; } if ((tag & 7) === 4 || tag === 0) { break; @@ -922,6 +934,7 @@ export const ServiceLogsRequest = { services: globalThis.Array.isArray(object?.services) ? object.services.map((e: any) => globalThis.String(e)) : [], + lines: isSet(object.lines) ? globalThis.Number(object.lines) : 0, }; }, @@ -933,6 +946,9 @@ export const ServiceLogsRequest = { if (message.services?.length) { obj.services = message.services; } + if (message.lines !== 0) { + obj.lines = Math.round(message.lines); + } return obj; }, @@ -946,6 +962,7 @@ export const ServiceLogsRequest = { ? LeaseID.fromPartial(object.leaseId) : undefined; message.services = object.services?.map((e) => e) || []; + message.lines = object.lines ?? 0; return message; }, }; diff --git a/ts/src/generated/akash/provider/lease/v1/service.ts b/ts/src/generated/akash/provider/lease/v1/service.ts index f7ed9853..b2f25af4 100644 --- a/ts/src/generated/akash/provider/lease/v1/service.ts +++ b/ts/src/generated/akash/provider/lease/v1/service.ts @@ -65,6 +65,7 @@ export interface ServiceLogsRequest { $type: 'akash.provider.lease.v1.ServiceLogsRequest'; leaseId: LeaseID | undefined; services: string[]; + lines: number; } /** ServiceLogs */ @@ -847,6 +848,7 @@ function createBaseServiceLogsRequest(): ServiceLogsRequest { $type: 'akash.provider.lease.v1.ServiceLogsRequest', leaseId: undefined, services: [], + lines: 0, }; } @@ -863,6 +865,9 @@ export const ServiceLogsRequest = { for (const v of message.services) { writer.uint32(18).string(v!); } + if (message.lines !== 0) { + writer.uint32(24).uint32(message.lines); + } return writer; }, @@ -888,6 +893,13 @@ export const ServiceLogsRequest = { message.services.push(reader.string()); continue; + case 3: + if (tag !== 24) { + break; + } + + message.lines = reader.uint32(); + continue; } if ((tag & 7) === 4 || tag === 0) { break; @@ -906,6 +918,7 @@ export const ServiceLogsRequest = { services: globalThis.Array.isArray(object?.services) ? object.services.map((e: any) => globalThis.String(e)) : [], + lines: isSet(object.lines) ? globalThis.Number(object.lines) : 0, }; }, @@ -917,6 +930,9 @@ export const ServiceLogsRequest = { if (message.services?.length) { obj.services = message.services; } + if (message.lines !== 0) { + obj.lines = Math.round(message.lines); + } return obj; }, @@ -930,6 +946,7 @@ export const ServiceLogsRequest = { ? LeaseID.fromPartial(object.leaseId) : undefined; message.services = object.services?.map((e) => e) || []; + message.lines = object.lines ?? 0; return message; }, }; diff --git a/ts/src/generated/akash/provider/v1/service.grpc-js.ts b/ts/src/generated/akash/provider/v1/service.grpc-js.ts index 708b3518..c96b2175 100644 --- a/ts/src/generated/akash/provider/v1/service.grpc-js.ts +++ b/ts/src/generated/akash/provider/v1/service.grpc-js.ts @@ -15,11 +15,842 @@ import type { ServiceError, UntypedServiceImplementation, } from '@grpc/grpc-js'; +import Long from 'long'; +import _m0 from 'protobufjs/minimal'; +import { DecCoin } from '../../../cosmos/base/v1beta1/coin'; import { Empty } from '../../../google/protobuf/empty'; +import { messageTypeRegistry } from '../../../typeRegistry'; +import { GroupSpec } from '../../deployment/v1beta3/groupspec'; import { Status } from './status'; export const protobufPackage = 'akash.provider.v1'; +/** GetVersionResponse */ +export interface GetVersionResponse { + $type: 'akash.provider.v1.GetVersionResponse'; + akash: AkashInfo | undefined; + kube: KubeInfo | undefined; +} + +/** AkashInfo */ +export interface AkashInfo { + $type: 'akash.provider.v1.AkashInfo'; + name: string; + appName: string; + version: string; + gitCommit: string; + buildTags: string; + goVersion: string; + buildDeps: BuildDep[]; + cosmosSdkVersion: string; +} + +/** BuildDep */ +export interface BuildDep { + $type: 'akash.provider.v1.BuildDep'; + path: string; + version: string; + sum: string; + replace: BuildDep | undefined; +} + +/** KubeInfo */ +export interface KubeInfo { + $type: 'akash.provider.v1.KubeInfo'; + major: string; + minor: string; + gitVersion: string; + gitCommit: string; + gitTreeState: string; + buildDate: string; + goVersion: string; + compiler: string; + platform: string; +} + +/** ValidateRequest */ +export interface ValidateRequest { + $type: 'akash.provider.v1.ValidateRequest'; + group: GroupSpec | undefined; +} + +/** ValidateResponse */ +export interface ValidateResponse { + $type: 'akash.provider.v1.ValidateResponse'; + minBidPrice: DecCoin | undefined; +} + +function createBaseGetVersionResponse(): GetVersionResponse { + return { + $type: 'akash.provider.v1.GetVersionResponse', + akash: undefined, + kube: undefined, + }; +} + +export const GetVersionResponse = { + $type: 'akash.provider.v1.GetVersionResponse' as const, + + encode( + message: GetVersionResponse, + writer: _m0.Writer = _m0.Writer.create(), + ): _m0.Writer { + if (message.akash !== undefined) { + AkashInfo.encode(message.akash, writer.uint32(10).fork()).ldelim(); + } + if (message.kube !== undefined) { + KubeInfo.encode(message.kube, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): GetVersionResponse { + const reader = + input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetVersionResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.akash = AkashInfo.decode(reader, reader.uint32()); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.kube = KubeInfo.decode(reader, reader.uint32()); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): GetVersionResponse { + return { + $type: GetVersionResponse.$type, + akash: isSet(object.akash) ? AkashInfo.fromJSON(object.akash) : undefined, + kube: isSet(object.kube) ? KubeInfo.fromJSON(object.kube) : undefined, + }; + }, + + toJSON(message: GetVersionResponse): unknown { + const obj: any = {}; + if (message.akash !== undefined) { + obj.akash = AkashInfo.toJSON(message.akash); + } + if (message.kube !== undefined) { + obj.kube = KubeInfo.toJSON(message.kube); + } + return obj; + }, + + create(base?: DeepPartial): GetVersionResponse { + return GetVersionResponse.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): GetVersionResponse { + const message = createBaseGetVersionResponse(); + message.akash = + object.akash !== undefined && object.akash !== null + ? AkashInfo.fromPartial(object.akash) + : undefined; + message.kube = + object.kube !== undefined && object.kube !== null + ? KubeInfo.fromPartial(object.kube) + : undefined; + return message; + }, +}; + +messageTypeRegistry.set(GetVersionResponse.$type, GetVersionResponse); + +function createBaseAkashInfo(): AkashInfo { + return { + $type: 'akash.provider.v1.AkashInfo', + name: '', + appName: '', + version: '', + gitCommit: '', + buildTags: '', + goVersion: '', + buildDeps: [], + cosmosSdkVersion: '', + }; +} + +export const AkashInfo = { + $type: 'akash.provider.v1.AkashInfo' as const, + + encode( + message: AkashInfo, + writer: _m0.Writer = _m0.Writer.create(), + ): _m0.Writer { + if (message.name !== '') { + writer.uint32(10).string(message.name); + } + if (message.appName !== '') { + writer.uint32(18).string(message.appName); + } + if (message.version !== '') { + writer.uint32(26).string(message.version); + } + if (message.gitCommit !== '') { + writer.uint32(34).string(message.gitCommit); + } + if (message.buildTags !== '') { + writer.uint32(42).string(message.buildTags); + } + if (message.goVersion !== '') { + writer.uint32(50).string(message.goVersion); + } + for (const v of message.buildDeps) { + BuildDep.encode(v!, writer.uint32(58).fork()).ldelim(); + } + if (message.cosmosSdkVersion !== '') { + writer.uint32(66).string(message.cosmosSdkVersion); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): AkashInfo { + const reader = + input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAkashInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.name = reader.string(); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.appName = reader.string(); + continue; + case 3: + if (tag !== 26) { + break; + } + + message.version = reader.string(); + continue; + case 4: + if (tag !== 34) { + break; + } + + message.gitCommit = reader.string(); + continue; + case 5: + if (tag !== 42) { + break; + } + + message.buildTags = reader.string(); + continue; + case 6: + if (tag !== 50) { + break; + } + + message.goVersion = reader.string(); + continue; + case 7: + if (tag !== 58) { + break; + } + + message.buildDeps.push(BuildDep.decode(reader, reader.uint32())); + continue; + case 8: + if (tag !== 66) { + break; + } + + message.cosmosSdkVersion = reader.string(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): AkashInfo { + return { + $type: AkashInfo.$type, + name: isSet(object.name) ? globalThis.String(object.name) : '', + appName: isSet(object.appName) ? globalThis.String(object.appName) : '', + version: isSet(object.version) ? globalThis.String(object.version) : '', + gitCommit: isSet(object.gitCommit) + ? globalThis.String(object.gitCommit) + : '', + buildTags: isSet(object.buildTags) + ? globalThis.String(object.buildTags) + : '', + goVersion: isSet(object.goVersion) + ? globalThis.String(object.goVersion) + : '', + buildDeps: globalThis.Array.isArray(object?.buildDeps) + ? object.buildDeps.map((e: any) => BuildDep.fromJSON(e)) + : [], + cosmosSdkVersion: isSet(object.cosmosSdkVersion) + ? globalThis.String(object.cosmosSdkVersion) + : '', + }; + }, + + toJSON(message: AkashInfo): unknown { + const obj: any = {}; + if (message.name !== '') { + obj.name = message.name; + } + if (message.appName !== '') { + obj.appName = message.appName; + } + if (message.version !== '') { + obj.version = message.version; + } + if (message.gitCommit !== '') { + obj.gitCommit = message.gitCommit; + } + if (message.buildTags !== '') { + obj.buildTags = message.buildTags; + } + if (message.goVersion !== '') { + obj.goVersion = message.goVersion; + } + if (message.buildDeps?.length) { + obj.buildDeps = message.buildDeps.map((e) => BuildDep.toJSON(e)); + } + if (message.cosmosSdkVersion !== '') { + obj.cosmosSdkVersion = message.cosmosSdkVersion; + } + return obj; + }, + + create(base?: DeepPartial): AkashInfo { + return AkashInfo.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): AkashInfo { + const message = createBaseAkashInfo(); + message.name = object.name ?? ''; + message.appName = object.appName ?? ''; + message.version = object.version ?? ''; + message.gitCommit = object.gitCommit ?? ''; + message.buildTags = object.buildTags ?? ''; + message.goVersion = object.goVersion ?? ''; + message.buildDeps = + object.buildDeps?.map((e) => BuildDep.fromPartial(e)) || []; + message.cosmosSdkVersion = object.cosmosSdkVersion ?? ''; + return message; + }, +}; + +messageTypeRegistry.set(AkashInfo.$type, AkashInfo); + +function createBaseBuildDep(): BuildDep { + return { + $type: 'akash.provider.v1.BuildDep', + path: '', + version: '', + sum: '', + replace: undefined, + }; +} + +export const BuildDep = { + $type: 'akash.provider.v1.BuildDep' as const, + + encode( + message: BuildDep, + writer: _m0.Writer = _m0.Writer.create(), + ): _m0.Writer { + if (message.path !== '') { + writer.uint32(10).string(message.path); + } + if (message.version !== '') { + writer.uint32(18).string(message.version); + } + if (message.sum !== '') { + writer.uint32(26).string(message.sum); + } + if (message.replace !== undefined) { + BuildDep.encode(message.replace, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): BuildDep { + const reader = + input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBuildDep(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.path = reader.string(); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.version = reader.string(); + continue; + case 3: + if (tag !== 26) { + break; + } + + message.sum = reader.string(); + continue; + case 4: + if (tag !== 34) { + break; + } + + message.replace = BuildDep.decode(reader, reader.uint32()); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): BuildDep { + return { + $type: BuildDep.$type, + path: isSet(object.path) ? globalThis.String(object.path) : '', + version: isSet(object.version) ? globalThis.String(object.version) : '', + sum: isSet(object.sum) ? globalThis.String(object.sum) : '', + replace: isSet(object.replace) + ? BuildDep.fromJSON(object.replace) + : undefined, + }; + }, + + toJSON(message: BuildDep): unknown { + const obj: any = {}; + if (message.path !== '') { + obj.path = message.path; + } + if (message.version !== '') { + obj.version = message.version; + } + if (message.sum !== '') { + obj.sum = message.sum; + } + if (message.replace !== undefined) { + obj.replace = BuildDep.toJSON(message.replace); + } + return obj; + }, + + create(base?: DeepPartial): BuildDep { + return BuildDep.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): BuildDep { + const message = createBaseBuildDep(); + message.path = object.path ?? ''; + message.version = object.version ?? ''; + message.sum = object.sum ?? ''; + message.replace = + object.replace !== undefined && object.replace !== null + ? BuildDep.fromPartial(object.replace) + : undefined; + return message; + }, +}; + +messageTypeRegistry.set(BuildDep.$type, BuildDep); + +function createBaseKubeInfo(): KubeInfo { + return { + $type: 'akash.provider.v1.KubeInfo', + major: '', + minor: '', + gitVersion: '', + gitCommit: '', + gitTreeState: '', + buildDate: '', + goVersion: '', + compiler: '', + platform: '', + }; +} + +export const KubeInfo = { + $type: 'akash.provider.v1.KubeInfo' as const, + + encode( + message: KubeInfo, + writer: _m0.Writer = _m0.Writer.create(), + ): _m0.Writer { + if (message.major !== '') { + writer.uint32(10).string(message.major); + } + if (message.minor !== '') { + writer.uint32(18).string(message.minor); + } + if (message.gitVersion !== '') { + writer.uint32(26).string(message.gitVersion); + } + if (message.gitCommit !== '') { + writer.uint32(34).string(message.gitCommit); + } + if (message.gitTreeState !== '') { + writer.uint32(42).string(message.gitTreeState); + } + if (message.buildDate !== '') { + writer.uint32(50).string(message.buildDate); + } + if (message.goVersion !== '') { + writer.uint32(58).string(message.goVersion); + } + if (message.compiler !== '') { + writer.uint32(66).string(message.compiler); + } + if (message.platform !== '') { + writer.uint32(74).string(message.platform); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): KubeInfo { + const reader = + input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseKubeInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.major = reader.string(); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.minor = reader.string(); + continue; + case 3: + if (tag !== 26) { + break; + } + + message.gitVersion = reader.string(); + continue; + case 4: + if (tag !== 34) { + break; + } + + message.gitCommit = reader.string(); + continue; + case 5: + if (tag !== 42) { + break; + } + + message.gitTreeState = reader.string(); + continue; + case 6: + if (tag !== 50) { + break; + } + + message.buildDate = reader.string(); + continue; + case 7: + if (tag !== 58) { + break; + } + + message.goVersion = reader.string(); + continue; + case 8: + if (tag !== 66) { + break; + } + + message.compiler = reader.string(); + continue; + case 9: + if (tag !== 74) { + break; + } + + message.platform = reader.string(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): KubeInfo { + return { + $type: KubeInfo.$type, + major: isSet(object.major) ? globalThis.String(object.major) : '', + minor: isSet(object.minor) ? globalThis.String(object.minor) : '', + gitVersion: isSet(object.gitVersion) + ? globalThis.String(object.gitVersion) + : '', + gitCommit: isSet(object.gitCommit) + ? globalThis.String(object.gitCommit) + : '', + gitTreeState: isSet(object.gitTreeState) + ? globalThis.String(object.gitTreeState) + : '', + buildDate: isSet(object.buildDate) + ? globalThis.String(object.buildDate) + : '', + goVersion: isSet(object.goVersion) + ? globalThis.String(object.goVersion) + : '', + compiler: isSet(object.compiler) + ? globalThis.String(object.compiler) + : '', + platform: isSet(object.platform) + ? globalThis.String(object.platform) + : '', + }; + }, + + toJSON(message: KubeInfo): unknown { + const obj: any = {}; + if (message.major !== '') { + obj.major = message.major; + } + if (message.minor !== '') { + obj.minor = message.minor; + } + if (message.gitVersion !== '') { + obj.gitVersion = message.gitVersion; + } + if (message.gitCommit !== '') { + obj.gitCommit = message.gitCommit; + } + if (message.gitTreeState !== '') { + obj.gitTreeState = message.gitTreeState; + } + if (message.buildDate !== '') { + obj.buildDate = message.buildDate; + } + if (message.goVersion !== '') { + obj.goVersion = message.goVersion; + } + if (message.compiler !== '') { + obj.compiler = message.compiler; + } + if (message.platform !== '') { + obj.platform = message.platform; + } + return obj; + }, + + create(base?: DeepPartial): KubeInfo { + return KubeInfo.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): KubeInfo { + const message = createBaseKubeInfo(); + message.major = object.major ?? ''; + message.minor = object.minor ?? ''; + message.gitVersion = object.gitVersion ?? ''; + message.gitCommit = object.gitCommit ?? ''; + message.gitTreeState = object.gitTreeState ?? ''; + message.buildDate = object.buildDate ?? ''; + message.goVersion = object.goVersion ?? ''; + message.compiler = object.compiler ?? ''; + message.platform = object.platform ?? ''; + return message; + }, +}; + +messageTypeRegistry.set(KubeInfo.$type, KubeInfo); + +function createBaseValidateRequest(): ValidateRequest { + return { $type: 'akash.provider.v1.ValidateRequest', group: undefined }; +} + +export const ValidateRequest = { + $type: 'akash.provider.v1.ValidateRequest' as const, + + encode( + message: ValidateRequest, + writer: _m0.Writer = _m0.Writer.create(), + ): _m0.Writer { + if (message.group !== undefined) { + GroupSpec.encode(message.group, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): ValidateRequest { + const reader = + input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidateRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.group = GroupSpec.decode(reader, reader.uint32()); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): ValidateRequest { + return { + $type: ValidateRequest.$type, + group: isSet(object.group) ? GroupSpec.fromJSON(object.group) : undefined, + }; + }, + + toJSON(message: ValidateRequest): unknown { + const obj: any = {}; + if (message.group !== undefined) { + obj.group = GroupSpec.toJSON(message.group); + } + return obj; + }, + + create(base?: DeepPartial): ValidateRequest { + return ValidateRequest.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ValidateRequest { + const message = createBaseValidateRequest(); + message.group = + object.group !== undefined && object.group !== null + ? GroupSpec.fromPartial(object.group) + : undefined; + return message; + }, +}; + +messageTypeRegistry.set(ValidateRequest.$type, ValidateRequest); + +function createBaseValidateResponse(): ValidateResponse { + return { + $type: 'akash.provider.v1.ValidateResponse', + minBidPrice: undefined, + }; +} + +export const ValidateResponse = { + $type: 'akash.provider.v1.ValidateResponse' as const, + + encode( + message: ValidateResponse, + writer: _m0.Writer = _m0.Writer.create(), + ): _m0.Writer { + if (message.minBidPrice !== undefined) { + DecCoin.encode(message.minBidPrice, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): ValidateResponse { + const reader = + input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidateResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.minBidPrice = DecCoin.decode(reader, reader.uint32()); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): ValidateResponse { + return { + $type: ValidateResponse.$type, + minBidPrice: isSet(object.minBidPrice) + ? DecCoin.fromJSON(object.minBidPrice) + : undefined, + }; + }, + + toJSON(message: ValidateResponse): unknown { + const obj: any = {}; + if (message.minBidPrice !== undefined) { + obj.minBidPrice = DecCoin.toJSON(message.minBidPrice); + } + return obj; + }, + + create(base?: DeepPartial): ValidateResponse { + return ValidateResponse.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ValidateResponse { + const message = createBaseValidateResponse(); + message.minBidPrice = + object.minBidPrice !== undefined && object.minBidPrice !== null + ? DecCoin.fromPartial(object.minBidPrice) + : undefined; + return message; + }, +}; + +messageTypeRegistry.set(ValidateResponse.$type, ValidateResponse); + /** ProviderRPC defines the RPC server for provider */ export type ProviderRPCService = typeof ProviderRPCService; export const ProviderRPCService = { @@ -55,6 +886,52 @@ export const ProviderRPCService = { Buffer.from(Status.encode(value).finish()), responseDeserialize: (value: Buffer) => Status.decode(value), }, + /** + * GetVersion returns version information about the provider + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + */ + getVersion: { + path: '/akash.provider.v1.ProviderRPC/GetVersion', + requestStream: false, + responseStream: false, + requestSerialize: (value: Empty) => + Buffer.from(Empty.encode(value).finish()), + requestDeserialize: (value: Buffer) => Empty.decode(value), + responseSerialize: (value: GetVersionResponse) => + Buffer.from(GetVersionResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => GetVersionResponse.decode(value), + }, + /** + * Validate checks if provider will bid on given groupspec + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + */ + validate: { + path: '/akash.provider.v1.ProviderRPC/Validate', + requestStream: false, + responseStream: false, + requestSerialize: (value: ValidateRequest) => + Buffer.from(ValidateRequest.encode(value).finish()), + requestDeserialize: (value: Buffer) => ValidateRequest.decode(value), + responseSerialize: (value: ValidateResponse) => + Buffer.from(ValidateResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => ValidateResponse.decode(value), + }, + /** + * WIBOY (will I bid on you) is an alias for Validate + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + */ + wiboy: { + path: '/akash.provider.v1.ProviderRPC/WIBOY', + requestStream: false, + responseStream: false, + requestSerialize: (value: ValidateRequest) => + Buffer.from(ValidateRequest.encode(value).finish()), + requestDeserialize: (value: Buffer) => ValidateRequest.decode(value), + responseSerialize: (value: ValidateResponse) => + Buffer.from(ValidateResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => ValidateResponse.decode(value), + }, } as const; export interface ProviderRPCServer extends UntypedServiceImplementation { @@ -70,6 +947,22 @@ export interface ProviderRPCServer extends UntypedServiceImplementation { * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME */ streamStatus: handleServerStreamingCall; + /** + * GetVersion returns version information about the provider + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + */ + getVersion: handleUnaryCall; + /** + * Validate checks if provider will bid on given groupspec + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + */ + validate: handleUnaryCall; + /** + * WIBOY (will I bid on you) is an alias for Validate + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + */ + wiboy: handleUnaryCall; } export interface ProviderRPCClient extends Client { @@ -107,6 +1000,73 @@ export interface ProviderRPCClient extends Client { metadata?: Metadata, options?: Partial, ): ClientReadableStream; + /** + * GetVersion returns version information about the provider + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + */ + getVersion( + request: Empty, + callback: ( + error: ServiceError | null, + response: GetVersionResponse, + ) => void, + ): ClientUnaryCall; + getVersion( + request: Empty, + metadata: Metadata, + callback: ( + error: ServiceError | null, + response: GetVersionResponse, + ) => void, + ): ClientUnaryCall; + getVersion( + request: Empty, + metadata: Metadata, + options: Partial, + callback: ( + error: ServiceError | null, + response: GetVersionResponse, + ) => void, + ): ClientUnaryCall; + /** + * Validate checks if provider will bid on given groupspec + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + */ + validate( + request: ValidateRequest, + callback: (error: ServiceError | null, response: ValidateResponse) => void, + ): ClientUnaryCall; + validate( + request: ValidateRequest, + metadata: Metadata, + callback: (error: ServiceError | null, response: ValidateResponse) => void, + ): ClientUnaryCall; + validate( + request: ValidateRequest, + metadata: Metadata, + options: Partial, + callback: (error: ServiceError | null, response: ValidateResponse) => void, + ): ClientUnaryCall; + /** + * WIBOY (will I bid on you) is an alias for Validate + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + */ + wiboy( + request: ValidateRequest, + callback: (error: ServiceError | null, response: ValidateResponse) => void, + ): ClientUnaryCall; + wiboy( + request: ValidateRequest, + metadata: Metadata, + callback: (error: ServiceError | null, response: ValidateResponse) => void, + ): ClientUnaryCall; + wiboy( + request: ValidateRequest, + metadata: Metadata, + options: Partial, + callback: (error: ServiceError | null, response: ValidateResponse) => void, + ): ClientUnaryCall; } export const ProviderRPCClient = makeGenericClientConstructor( @@ -121,3 +1081,33 @@ export const ProviderRPCClient = makeGenericClientConstructor( service: typeof ProviderRPCService; serviceName: string; }; + +type Builtin = + | Date + | Function + | Uint8Array + | string + | number + | boolean + | undefined; + +export type DeepPartial = T extends Builtin + ? T + : T extends Long + ? string | number | Long + : T extends globalThis.Array + ? globalThis.Array> + : T extends ReadonlyArray + ? ReadonlyArray> + : T extends {} + ? { [K in Exclude]?: DeepPartial } + : Partial; + +if (_m0.util.Long !== Long) { + _m0.util.Long = Long as any; + _m0.configure(); +} + +function isSet(value: any): boolean { + return value !== null && value !== undefined; +} diff --git a/ts/src/generated/akash/provider/v1/service.ts b/ts/src/generated/akash/provider/v1/service.ts index f3b45162..565d35c7 100644 --- a/ts/src/generated/akash/provider/v1/service.ts +++ b/ts/src/generated/akash/provider/v1/service.ts @@ -1,10 +1,840 @@ /* eslint-disable */ +import Long from 'long'; import _m0 from 'protobufjs/minimal'; import { Observable } from 'rxjs'; import { map } from 'rxjs/operators'; +import { DecCoin } from '../../../cosmos/base/v1beta1/coin'; import { Empty } from '../../../google/protobuf/empty'; +import { messageTypeRegistry } from '../../../typeRegistry'; +import { GroupSpec } from '../../deployment/v1beta3/groupspec'; import { Status } from './status'; +/** GetVersionResponse */ +export interface GetVersionResponse { + $type: 'akash.provider.v1.GetVersionResponse'; + akash: AkashInfo | undefined; + kube: KubeInfo | undefined; +} + +/** AkashInfo */ +export interface AkashInfo { + $type: 'akash.provider.v1.AkashInfo'; + name: string; + appName: string; + version: string; + gitCommit: string; + buildTags: string; + goVersion: string; + buildDeps: BuildDep[]; + cosmosSdkVersion: string; +} + +/** BuildDep */ +export interface BuildDep { + $type: 'akash.provider.v1.BuildDep'; + path: string; + version: string; + sum: string; + replace: BuildDep | undefined; +} + +/** KubeInfo */ +export interface KubeInfo { + $type: 'akash.provider.v1.KubeInfo'; + major: string; + minor: string; + gitVersion: string; + gitCommit: string; + gitTreeState: string; + buildDate: string; + goVersion: string; + compiler: string; + platform: string; +} + +/** ValidateRequest */ +export interface ValidateRequest { + $type: 'akash.provider.v1.ValidateRequest'; + group: GroupSpec | undefined; +} + +/** ValidateResponse */ +export interface ValidateResponse { + $type: 'akash.provider.v1.ValidateResponse'; + minBidPrice: DecCoin | undefined; +} + +function createBaseGetVersionResponse(): GetVersionResponse { + return { + $type: 'akash.provider.v1.GetVersionResponse', + akash: undefined, + kube: undefined, + }; +} + +export const GetVersionResponse = { + $type: 'akash.provider.v1.GetVersionResponse' as const, + + encode( + message: GetVersionResponse, + writer: _m0.Writer = _m0.Writer.create(), + ): _m0.Writer { + if (message.akash !== undefined) { + AkashInfo.encode(message.akash, writer.uint32(10).fork()).ldelim(); + } + if (message.kube !== undefined) { + KubeInfo.encode(message.kube, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): GetVersionResponse { + const reader = + input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetVersionResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.akash = AkashInfo.decode(reader, reader.uint32()); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.kube = KubeInfo.decode(reader, reader.uint32()); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): GetVersionResponse { + return { + $type: GetVersionResponse.$type, + akash: isSet(object.akash) ? AkashInfo.fromJSON(object.akash) : undefined, + kube: isSet(object.kube) ? KubeInfo.fromJSON(object.kube) : undefined, + }; + }, + + toJSON(message: GetVersionResponse): unknown { + const obj: any = {}; + if (message.akash !== undefined) { + obj.akash = AkashInfo.toJSON(message.akash); + } + if (message.kube !== undefined) { + obj.kube = KubeInfo.toJSON(message.kube); + } + return obj; + }, + + create(base?: DeepPartial): GetVersionResponse { + return GetVersionResponse.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): GetVersionResponse { + const message = createBaseGetVersionResponse(); + message.akash = + object.akash !== undefined && object.akash !== null + ? AkashInfo.fromPartial(object.akash) + : undefined; + message.kube = + object.kube !== undefined && object.kube !== null + ? KubeInfo.fromPartial(object.kube) + : undefined; + return message; + }, +}; + +messageTypeRegistry.set(GetVersionResponse.$type, GetVersionResponse); + +function createBaseAkashInfo(): AkashInfo { + return { + $type: 'akash.provider.v1.AkashInfo', + name: '', + appName: '', + version: '', + gitCommit: '', + buildTags: '', + goVersion: '', + buildDeps: [], + cosmosSdkVersion: '', + }; +} + +export const AkashInfo = { + $type: 'akash.provider.v1.AkashInfo' as const, + + encode( + message: AkashInfo, + writer: _m0.Writer = _m0.Writer.create(), + ): _m0.Writer { + if (message.name !== '') { + writer.uint32(10).string(message.name); + } + if (message.appName !== '') { + writer.uint32(18).string(message.appName); + } + if (message.version !== '') { + writer.uint32(26).string(message.version); + } + if (message.gitCommit !== '') { + writer.uint32(34).string(message.gitCommit); + } + if (message.buildTags !== '') { + writer.uint32(42).string(message.buildTags); + } + if (message.goVersion !== '') { + writer.uint32(50).string(message.goVersion); + } + for (const v of message.buildDeps) { + BuildDep.encode(v!, writer.uint32(58).fork()).ldelim(); + } + if (message.cosmosSdkVersion !== '') { + writer.uint32(66).string(message.cosmosSdkVersion); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): AkashInfo { + const reader = + input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAkashInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.name = reader.string(); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.appName = reader.string(); + continue; + case 3: + if (tag !== 26) { + break; + } + + message.version = reader.string(); + continue; + case 4: + if (tag !== 34) { + break; + } + + message.gitCommit = reader.string(); + continue; + case 5: + if (tag !== 42) { + break; + } + + message.buildTags = reader.string(); + continue; + case 6: + if (tag !== 50) { + break; + } + + message.goVersion = reader.string(); + continue; + case 7: + if (tag !== 58) { + break; + } + + message.buildDeps.push(BuildDep.decode(reader, reader.uint32())); + continue; + case 8: + if (tag !== 66) { + break; + } + + message.cosmosSdkVersion = reader.string(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): AkashInfo { + return { + $type: AkashInfo.$type, + name: isSet(object.name) ? globalThis.String(object.name) : '', + appName: isSet(object.appName) ? globalThis.String(object.appName) : '', + version: isSet(object.version) ? globalThis.String(object.version) : '', + gitCommit: isSet(object.gitCommit) + ? globalThis.String(object.gitCommit) + : '', + buildTags: isSet(object.buildTags) + ? globalThis.String(object.buildTags) + : '', + goVersion: isSet(object.goVersion) + ? globalThis.String(object.goVersion) + : '', + buildDeps: globalThis.Array.isArray(object?.buildDeps) + ? object.buildDeps.map((e: any) => BuildDep.fromJSON(e)) + : [], + cosmosSdkVersion: isSet(object.cosmosSdkVersion) + ? globalThis.String(object.cosmosSdkVersion) + : '', + }; + }, + + toJSON(message: AkashInfo): unknown { + const obj: any = {}; + if (message.name !== '') { + obj.name = message.name; + } + if (message.appName !== '') { + obj.appName = message.appName; + } + if (message.version !== '') { + obj.version = message.version; + } + if (message.gitCommit !== '') { + obj.gitCommit = message.gitCommit; + } + if (message.buildTags !== '') { + obj.buildTags = message.buildTags; + } + if (message.goVersion !== '') { + obj.goVersion = message.goVersion; + } + if (message.buildDeps?.length) { + obj.buildDeps = message.buildDeps.map((e) => BuildDep.toJSON(e)); + } + if (message.cosmosSdkVersion !== '') { + obj.cosmosSdkVersion = message.cosmosSdkVersion; + } + return obj; + }, + + create(base?: DeepPartial): AkashInfo { + return AkashInfo.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): AkashInfo { + const message = createBaseAkashInfo(); + message.name = object.name ?? ''; + message.appName = object.appName ?? ''; + message.version = object.version ?? ''; + message.gitCommit = object.gitCommit ?? ''; + message.buildTags = object.buildTags ?? ''; + message.goVersion = object.goVersion ?? ''; + message.buildDeps = + object.buildDeps?.map((e) => BuildDep.fromPartial(e)) || []; + message.cosmosSdkVersion = object.cosmosSdkVersion ?? ''; + return message; + }, +}; + +messageTypeRegistry.set(AkashInfo.$type, AkashInfo); + +function createBaseBuildDep(): BuildDep { + return { + $type: 'akash.provider.v1.BuildDep', + path: '', + version: '', + sum: '', + replace: undefined, + }; +} + +export const BuildDep = { + $type: 'akash.provider.v1.BuildDep' as const, + + encode( + message: BuildDep, + writer: _m0.Writer = _m0.Writer.create(), + ): _m0.Writer { + if (message.path !== '') { + writer.uint32(10).string(message.path); + } + if (message.version !== '') { + writer.uint32(18).string(message.version); + } + if (message.sum !== '') { + writer.uint32(26).string(message.sum); + } + if (message.replace !== undefined) { + BuildDep.encode(message.replace, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): BuildDep { + const reader = + input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBuildDep(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.path = reader.string(); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.version = reader.string(); + continue; + case 3: + if (tag !== 26) { + break; + } + + message.sum = reader.string(); + continue; + case 4: + if (tag !== 34) { + break; + } + + message.replace = BuildDep.decode(reader, reader.uint32()); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): BuildDep { + return { + $type: BuildDep.$type, + path: isSet(object.path) ? globalThis.String(object.path) : '', + version: isSet(object.version) ? globalThis.String(object.version) : '', + sum: isSet(object.sum) ? globalThis.String(object.sum) : '', + replace: isSet(object.replace) + ? BuildDep.fromJSON(object.replace) + : undefined, + }; + }, + + toJSON(message: BuildDep): unknown { + const obj: any = {}; + if (message.path !== '') { + obj.path = message.path; + } + if (message.version !== '') { + obj.version = message.version; + } + if (message.sum !== '') { + obj.sum = message.sum; + } + if (message.replace !== undefined) { + obj.replace = BuildDep.toJSON(message.replace); + } + return obj; + }, + + create(base?: DeepPartial): BuildDep { + return BuildDep.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): BuildDep { + const message = createBaseBuildDep(); + message.path = object.path ?? ''; + message.version = object.version ?? ''; + message.sum = object.sum ?? ''; + message.replace = + object.replace !== undefined && object.replace !== null + ? BuildDep.fromPartial(object.replace) + : undefined; + return message; + }, +}; + +messageTypeRegistry.set(BuildDep.$type, BuildDep); + +function createBaseKubeInfo(): KubeInfo { + return { + $type: 'akash.provider.v1.KubeInfo', + major: '', + minor: '', + gitVersion: '', + gitCommit: '', + gitTreeState: '', + buildDate: '', + goVersion: '', + compiler: '', + platform: '', + }; +} + +export const KubeInfo = { + $type: 'akash.provider.v1.KubeInfo' as const, + + encode( + message: KubeInfo, + writer: _m0.Writer = _m0.Writer.create(), + ): _m0.Writer { + if (message.major !== '') { + writer.uint32(10).string(message.major); + } + if (message.minor !== '') { + writer.uint32(18).string(message.minor); + } + if (message.gitVersion !== '') { + writer.uint32(26).string(message.gitVersion); + } + if (message.gitCommit !== '') { + writer.uint32(34).string(message.gitCommit); + } + if (message.gitTreeState !== '') { + writer.uint32(42).string(message.gitTreeState); + } + if (message.buildDate !== '') { + writer.uint32(50).string(message.buildDate); + } + if (message.goVersion !== '') { + writer.uint32(58).string(message.goVersion); + } + if (message.compiler !== '') { + writer.uint32(66).string(message.compiler); + } + if (message.platform !== '') { + writer.uint32(74).string(message.platform); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): KubeInfo { + const reader = + input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseKubeInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.major = reader.string(); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.minor = reader.string(); + continue; + case 3: + if (tag !== 26) { + break; + } + + message.gitVersion = reader.string(); + continue; + case 4: + if (tag !== 34) { + break; + } + + message.gitCommit = reader.string(); + continue; + case 5: + if (tag !== 42) { + break; + } + + message.gitTreeState = reader.string(); + continue; + case 6: + if (tag !== 50) { + break; + } + + message.buildDate = reader.string(); + continue; + case 7: + if (tag !== 58) { + break; + } + + message.goVersion = reader.string(); + continue; + case 8: + if (tag !== 66) { + break; + } + + message.compiler = reader.string(); + continue; + case 9: + if (tag !== 74) { + break; + } + + message.platform = reader.string(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): KubeInfo { + return { + $type: KubeInfo.$type, + major: isSet(object.major) ? globalThis.String(object.major) : '', + minor: isSet(object.minor) ? globalThis.String(object.minor) : '', + gitVersion: isSet(object.gitVersion) + ? globalThis.String(object.gitVersion) + : '', + gitCommit: isSet(object.gitCommit) + ? globalThis.String(object.gitCommit) + : '', + gitTreeState: isSet(object.gitTreeState) + ? globalThis.String(object.gitTreeState) + : '', + buildDate: isSet(object.buildDate) + ? globalThis.String(object.buildDate) + : '', + goVersion: isSet(object.goVersion) + ? globalThis.String(object.goVersion) + : '', + compiler: isSet(object.compiler) + ? globalThis.String(object.compiler) + : '', + platform: isSet(object.platform) + ? globalThis.String(object.platform) + : '', + }; + }, + + toJSON(message: KubeInfo): unknown { + const obj: any = {}; + if (message.major !== '') { + obj.major = message.major; + } + if (message.minor !== '') { + obj.minor = message.minor; + } + if (message.gitVersion !== '') { + obj.gitVersion = message.gitVersion; + } + if (message.gitCommit !== '') { + obj.gitCommit = message.gitCommit; + } + if (message.gitTreeState !== '') { + obj.gitTreeState = message.gitTreeState; + } + if (message.buildDate !== '') { + obj.buildDate = message.buildDate; + } + if (message.goVersion !== '') { + obj.goVersion = message.goVersion; + } + if (message.compiler !== '') { + obj.compiler = message.compiler; + } + if (message.platform !== '') { + obj.platform = message.platform; + } + return obj; + }, + + create(base?: DeepPartial): KubeInfo { + return KubeInfo.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): KubeInfo { + const message = createBaseKubeInfo(); + message.major = object.major ?? ''; + message.minor = object.minor ?? ''; + message.gitVersion = object.gitVersion ?? ''; + message.gitCommit = object.gitCommit ?? ''; + message.gitTreeState = object.gitTreeState ?? ''; + message.buildDate = object.buildDate ?? ''; + message.goVersion = object.goVersion ?? ''; + message.compiler = object.compiler ?? ''; + message.platform = object.platform ?? ''; + return message; + }, +}; + +messageTypeRegistry.set(KubeInfo.$type, KubeInfo); + +function createBaseValidateRequest(): ValidateRequest { + return { $type: 'akash.provider.v1.ValidateRequest', group: undefined }; +} + +export const ValidateRequest = { + $type: 'akash.provider.v1.ValidateRequest' as const, + + encode( + message: ValidateRequest, + writer: _m0.Writer = _m0.Writer.create(), + ): _m0.Writer { + if (message.group !== undefined) { + GroupSpec.encode(message.group, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): ValidateRequest { + const reader = + input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidateRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.group = GroupSpec.decode(reader, reader.uint32()); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): ValidateRequest { + return { + $type: ValidateRequest.$type, + group: isSet(object.group) ? GroupSpec.fromJSON(object.group) : undefined, + }; + }, + + toJSON(message: ValidateRequest): unknown { + const obj: any = {}; + if (message.group !== undefined) { + obj.group = GroupSpec.toJSON(message.group); + } + return obj; + }, + + create(base?: DeepPartial): ValidateRequest { + return ValidateRequest.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ValidateRequest { + const message = createBaseValidateRequest(); + message.group = + object.group !== undefined && object.group !== null + ? GroupSpec.fromPartial(object.group) + : undefined; + return message; + }, +}; + +messageTypeRegistry.set(ValidateRequest.$type, ValidateRequest); + +function createBaseValidateResponse(): ValidateResponse { + return { + $type: 'akash.provider.v1.ValidateResponse', + minBidPrice: undefined, + }; +} + +export const ValidateResponse = { + $type: 'akash.provider.v1.ValidateResponse' as const, + + encode( + message: ValidateResponse, + writer: _m0.Writer = _m0.Writer.create(), + ): _m0.Writer { + if (message.minBidPrice !== undefined) { + DecCoin.encode(message.minBidPrice, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): ValidateResponse { + const reader = + input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidateResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.minBidPrice = DecCoin.decode(reader, reader.uint32()); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): ValidateResponse { + return { + $type: ValidateResponse.$type, + minBidPrice: isSet(object.minBidPrice) + ? DecCoin.fromJSON(object.minBidPrice) + : undefined, + }; + }, + + toJSON(message: ValidateResponse): unknown { + const obj: any = {}; + if (message.minBidPrice !== undefined) { + obj.minBidPrice = DecCoin.toJSON(message.minBidPrice); + } + return obj; + }, + + create(base?: DeepPartial): ValidateResponse { + return ValidateResponse.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ValidateResponse { + const message = createBaseValidateResponse(); + message.minBidPrice = + object.minBidPrice !== undefined && object.minBidPrice !== null + ? DecCoin.fromPartial(object.minBidPrice) + : undefined; + return message; + }, +}; + +messageTypeRegistry.set(ValidateResponse.$type, ValidateResponse); + /** ProviderRPC defines the RPC server for provider */ export interface ProviderRPC { /** @@ -19,6 +849,22 @@ export interface ProviderRPC { * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME */ StreamStatus(request: Empty): Observable; + /** + * GetVersion returns version information about the provider + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + */ + GetVersion(request: Empty): Promise; + /** + * Validate checks if provider will bid on given groupspec + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + */ + Validate(request: ValidateRequest): Promise; + /** + * WIBOY (will I bid on you) is an alias for Validate + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + */ + WIBOY(request: ValidateRequest): Promise; } export const ProviderRPCServiceName = 'akash.provider.v1.ProviderRPC'; @@ -30,6 +876,9 @@ export class ProviderRPCClientImpl implements ProviderRPC { this.rpc = rpc; this.GetStatus = this.GetStatus.bind(this); this.StreamStatus = this.StreamStatus.bind(this); + this.GetVersion = this.GetVersion.bind(this); + this.Validate = this.Validate.bind(this); + this.WIBOY = this.WIBOY.bind(this); } GetStatus(request: Empty): Promise { const data = Empty.encode(request).finish(); @@ -46,6 +895,30 @@ export class ProviderRPCClientImpl implements ProviderRPC { ); return result.pipe(map((data) => Status.decode(_m0.Reader.create(data)))); } + + GetVersion(request: Empty): Promise { + const data = Empty.encode(request).finish(); + const promise = this.rpc.request(this.service, 'GetVersion', data); + return promise.then((data) => + GetVersionResponse.decode(_m0.Reader.create(data)), + ); + } + + Validate(request: ValidateRequest): Promise { + const data = ValidateRequest.encode(request).finish(); + const promise = this.rpc.request(this.service, 'Validate', data); + return promise.then((data) => + ValidateResponse.decode(_m0.Reader.create(data)), + ); + } + + WIBOY(request: ValidateRequest): Promise { + const data = ValidateRequest.encode(request).finish(); + const promise = this.rpc.request(this.service, 'WIBOY', data); + return promise.then((data) => + ValidateResponse.decode(_m0.Reader.create(data)), + ); + } } interface Rpc { @@ -70,3 +943,33 @@ interface Rpc { data: Observable, ): Observable; } + +type Builtin = + | Date + | Function + | Uint8Array + | string + | number + | boolean + | undefined; + +type DeepPartial = T extends Builtin + ? T + : T extends Long + ? string | number | Long + : T extends globalThis.Array + ? globalThis.Array> + : T extends ReadonlyArray + ? ReadonlyArray> + : T extends {} + ? { [K in Exclude]?: DeepPartial } + : Partial; + +if (_m0.util.Long !== Long) { + _m0.util.Long = Long as any; + _m0.configure(); +} + +function isSet(value: any): boolean { + return value !== null && value !== undefined; +} diff --git a/ts/src/generated/index.akash.base.v1beta3.ts b/ts/src/generated/index.akash.base.v1beta3.ts index 2cf462d6..4a06f341 100644 --- a/ts/src/generated/index.akash.base.v1beta3.ts +++ b/ts/src/generated/index.akash.base.v1beta3.ts @@ -1,3 +1,10 @@ /* eslint-disable */ export * from './akash/base/v1beta3/attribute'; +export * from './akash/base/v1beta3/resourcevalue'; +export * from './akash/base/v1beta3/cpu'; +export * from './akash/base/v1beta3/gpu'; +export * from './akash/base/v1beta3/memory'; +export * from './akash/base/v1beta3/storage'; +export * from './akash/base/v1beta3/endpoint'; +export * from './akash/base/v1beta3/resources'; diff --git a/ts/src/generated/index.akash.ts b/ts/src/generated/index.akash.ts index aaf6fb13..9a7ae0bb 100644 --- a/ts/src/generated/index.akash.ts +++ b/ts/src/generated/index.akash.ts @@ -3,3 +3,4 @@ export * as base from './index.akash.base'; export * as inventory from './index.akash.inventory'; export * as provider from './index.akash.provider'; +export * as deployment from './index.akash.deployment'; diff --git a/ts/src/generated/index.ts b/ts/src/generated/index.ts index a51552b0..f82ce968 100644 --- a/ts/src/generated/index.ts +++ b/ts/src/generated/index.ts @@ -4,3 +4,4 @@ export * as google from './index.google'; export * as gogoproto from './index.gogoproto'; export * as akash from './index.akash'; export * as k8s from './index.k8s'; +export * as cosmos from './index.cosmos';