diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index c83cf0481..97afe3876 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -72,7 +72,7 @@ jobs: with: registry: ghcr.io username: hyperweb-io - password: ${{ secrets.HYPERWEB_PAT }} + password: ${{ secrets.GH_HYPERWEB_PAT }} - name: Build if: github.event_name == 'pull_request' @@ -118,7 +118,7 @@ jobs: with: registry: ghcr.io username: hyperweb-io - password: ${{ secrets.HYPERWEB_PAT }} + password: ${{ secrets.GH_HYPERWEB_PAT }} - name: Build chains if: github.event_name == 'pull_request' diff --git a/.github/workflows/starship-docker.yaml b/.github/workflows/starship-docker.yaml index 81602ab85..0f59a5de5 100644 --- a/.github/workflows/starship-docker.yaml +++ b/.github/workflows/starship-docker.yaml @@ -68,7 +68,7 @@ jobs: with: registry: ghcr.io username: hyperweb-io - password: ${{ secrets.HYPERWEB_PAT }} + password: ${{ secrets.GH_HYPERWEB_PAT }} - name: Determine tag if: steps.changes.outputs.src == 'true' || github.event_name == 'workflow_dispatch' diff --git a/starship/exposer/config.go b/starship/exposer/config.go index c925110a2..7d1ff25d9 100644 --- a/starship/exposer/config.go +++ b/starship/exposer/config.go @@ -28,6 +28,10 @@ type Config struct { NodeIDFile string `name:"node-id-file" json:"node_id_file" env:"NODE_ID_FILE" usage:"Path of node-id json file"` // GenesisFile is full path to the genesis file GenesisFile string `name:"genesis-file" json:"genesis_file" env:"GENESIS_FILE" usage:"Path of genesis file"` + // GenesisSSZ is full path to the genesis ssz file + GenesisSSZ string `name:"genesis-ssz" json:"genesis_ssz" env:"GENESIS_SSZ" usage:"Path of genesis ssz file"` + // ConfigFile is full path to the config file + ConfigFile string `name:"config-file" json:"config_file" env:"CONFIG_FILE" usage:"Path of config file"` // MnemonicFile is full path to the keys file MnemonicFile string `name:"mnemonic-file" json:"mnemonic_file" env:"MNEMONIC_FILE" usage:"Path of mnemonic file"` // PrivValFile is full path of the node validator private key file diff --git a/starship/exposer/exposer/mnemonic.pb.go b/starship/exposer/exposer/mnemonic.pb.go index 5a26d2d87..1cdb128f6 100644 --- a/starship/exposer/exposer/mnemonic.pb.go +++ b/starship/exposer/exposer/mnemonic.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.36.4 // protoc (unknown) // source: exposer/mnemonic.proto @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -21,22 +22,19 @@ const ( ) type Mnemonic struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` + Mnemonic string `protobuf:"bytes,3,opt,name=mnemonic,proto3" json:"mnemonic,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` - Mnemonic string `protobuf:"bytes,3,opt,name=mnemonic,proto3" json:"mnemonic,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Mnemonic) Reset() { *x = Mnemonic{} - if protoimpl.UnsafeEnabled { - mi := &file_exposer_mnemonic_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_exposer_mnemonic_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Mnemonic) String() string { @@ -47,7 +45,7 @@ func (*Mnemonic) ProtoMessage() {} func (x *Mnemonic) ProtoReflect() protoreflect.Message { mi := &file_exposer_mnemonic_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -84,25 +82,22 @@ func (x *Mnemonic) GetMnemonic() string { } type Keys struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Genesis []*Mnemonic `protobuf:"bytes,1,rep,name=genesis,proto3" json:"genesis,omitempty"` + Validators []*Mnemonic `protobuf:"bytes,2,rep,name=validators,proto3" json:"validators,omitempty"` + Keys []*Mnemonic `protobuf:"bytes,3,rep,name=keys,proto3" json:"keys,omitempty"` + Relayers []*Mnemonic `protobuf:"bytes,4,rep,name=relayers,proto3" json:"relayers,omitempty"` + Faucet []*Mnemonic `protobuf:"bytes,5,rep,name=faucet,proto3" json:"faucet,omitempty"` + RelayersCli []*Mnemonic `protobuf:"bytes,6,rep,name=relayers_cli,json=relayersCli,proto3" json:"relayers_cli,omitempty"` unknownFields protoimpl.UnknownFields - - Genesis []*Mnemonic `protobuf:"bytes,1,rep,name=genesis,proto3" json:"genesis,omitempty"` - Validators []*Mnemonic `protobuf:"bytes,2,rep,name=validators,proto3" json:"validators,omitempty"` - Keys []*Mnemonic `protobuf:"bytes,3,rep,name=keys,proto3" json:"keys,omitempty"` - Relayers []*Mnemonic `protobuf:"bytes,4,rep,name=relayers,proto3" json:"relayers,omitempty"` - Faucet []*Mnemonic `protobuf:"bytes,5,rep,name=faucet,proto3" json:"faucet,omitempty"` - RelayersCli []*Mnemonic `protobuf:"bytes,6,rep,name=relayers_cli,json=relayersCli,proto3" json:"relayers_cli,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Keys) Reset() { *x = Keys{} - if protoimpl.UnsafeEnabled { - mi := &file_exposer_mnemonic_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_exposer_mnemonic_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Keys) String() string { @@ -113,7 +108,7 @@ func (*Keys) ProtoMessage() {} func (x *Keys) ProtoReflect() protoreflect.Message { mi := &file_exposer_mnemonic_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -171,21 +166,18 @@ func (x *Keys) GetRelayersCli() []*Mnemonic { } type TypeKey struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` unknownFields protoimpl.UnknownFields - - Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TypeKey) Reset() { *x = TypeKey{} - if protoimpl.UnsafeEnabled { - mi := &file_exposer_mnemonic_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_exposer_mnemonic_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TypeKey) String() string { @@ -196,7 +188,7 @@ func (*TypeKey) ProtoMessage() {} func (x *TypeKey) ProtoReflect() protoreflect.Message { mi := &file_exposer_mnemonic_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -226,22 +218,19 @@ func (x *TypeKey) GetValue() string { } type PrivValidatorKey struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + PubKey *TypeKey `protobuf:"bytes,2,opt,name=pub_key,proto3" json:"pub_key,omitempty"` + PrivKey *TypeKey `protobuf:"bytes,3,opt,name=priv_key,proto3" json:"priv_key,omitempty"` unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - PubKey *TypeKey `protobuf:"bytes,2,opt,name=pub_key,proto3" json:"pub_key,omitempty"` - PrivKey *TypeKey `protobuf:"bytes,3,opt,name=priv_key,proto3" json:"priv_key,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PrivValidatorKey) Reset() { *x = PrivValidatorKey{} - if protoimpl.UnsafeEnabled { - mi := &file_exposer_mnemonic_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_exposer_mnemonic_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PrivValidatorKey) String() string { @@ -252,7 +241,7 @@ func (*PrivValidatorKey) ProtoMessage() {} func (x *PrivValidatorKey) ProtoReflect() protoreflect.Message { mi := &file_exposer_mnemonic_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -289,20 +278,17 @@ func (x *PrivValidatorKey) GetPrivKey() *TypeKey { } type NodeKey struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + PrivKey *TypeKey `protobuf:"bytes,1,opt,name=priv_key,proto3" json:"priv_key,omitempty"` unknownFields protoimpl.UnknownFields - - PrivKey *TypeKey `protobuf:"bytes,1,opt,name=priv_key,proto3" json:"priv_key,omitempty"` + sizeCache protoimpl.SizeCache } func (x *NodeKey) Reset() { *x = NodeKey{} - if protoimpl.UnsafeEnabled { - mi := &file_exposer_mnemonic_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_exposer_mnemonic_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NodeKey) String() string { @@ -313,7 +299,7 @@ func (*NodeKey) ProtoMessage() {} func (x *NodeKey) ProtoReflect() protoreflect.Message { mi := &file_exposer_mnemonic_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -337,7 +323,7 @@ func (x *NodeKey) GetPrivKey() *TypeKey { var File_exposer_mnemonic_proto protoreflect.FileDescriptor -var file_exposer_mnemonic_proto_rawDesc = []byte{ +var file_exposer_mnemonic_proto_rawDesc = string([]byte{ 0x0a, 0x16, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x2f, 0x6d, 0x6e, 0x65, 0x6d, 0x6f, 0x6e, 0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x22, 0x4e, 0x0a, 0x08, 0x4d, 0x6e, 0x65, 0x6d, 0x6f, 0x6e, 0x69, 0x63, 0x12, 0x12, 0x0a, @@ -378,26 +364,26 @@ var file_exposer_mnemonic_proto_rawDesc = []byte{ 0x37, 0x0a, 0x07, 0x4e, 0x6f, 0x64, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x2c, 0x0a, 0x08, 0x70, 0x72, 0x69, 0x76, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x08, - 0x70, 0x72, 0x69, 0x76, 0x5f, 0x6b, 0x65, 0x79, 0x42, 0x84, 0x01, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, + 0x70, 0x72, 0x69, 0x76, 0x5f, 0x6b, 0x65, 0x79, 0x42, 0x81, 0x01, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x2e, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x42, 0x0d, 0x4d, 0x6e, 0x65, 0x6d, 0x6f, 0x6e, - 0x69, 0x63, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x2d, - 0x74, 0x65, 0x63, 0x68, 0x2f, 0x73, 0x74, 0x61, 0x72, 0x73, 0x68, 0x69, 0x70, 0x2f, 0x65, 0x78, - 0x70, 0x6f, 0x73, 0x65, 0x72, 0xa2, 0x02, 0x03, 0x45, 0x58, 0x58, 0xaa, 0x02, 0x07, 0x45, 0x78, - 0x70, 0x6f, 0x73, 0x65, 0x72, 0xca, 0x02, 0x07, 0x45, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0xe2, - 0x02, 0x13, 0x45, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x07, 0x45, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} + 0x69, 0x63, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x79, 0x70, 0x65, 0x72, 0x77, 0x65, 0x62, 0x2d, 0x69, + 0x6f, 0x2f, 0x73, 0x74, 0x61, 0x72, 0x73, 0x68, 0x69, 0x70, 0x2f, 0x65, 0x78, 0x70, 0x6f, 0x73, + 0x65, 0x72, 0xa2, 0x02, 0x03, 0x45, 0x58, 0x58, 0xaa, 0x02, 0x07, 0x45, 0x78, 0x70, 0x6f, 0x73, + 0x65, 0x72, 0xca, 0x02, 0x07, 0x45, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0xe2, 0x02, 0x13, 0x45, + 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x07, 0x45, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +}) var ( file_exposer_mnemonic_proto_rawDescOnce sync.Once - file_exposer_mnemonic_proto_rawDescData = file_exposer_mnemonic_proto_rawDesc + file_exposer_mnemonic_proto_rawDescData []byte ) func file_exposer_mnemonic_proto_rawDescGZIP() []byte { file_exposer_mnemonic_proto_rawDescOnce.Do(func() { - file_exposer_mnemonic_proto_rawDescData = protoimpl.X.CompressGZIP(file_exposer_mnemonic_proto_rawDescData) + file_exposer_mnemonic_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_exposer_mnemonic_proto_rawDesc), len(file_exposer_mnemonic_proto_rawDesc))) }) return file_exposer_mnemonic_proto_rawDescData } @@ -432,73 +418,11 @@ func file_exposer_mnemonic_proto_init() { if File_exposer_mnemonic_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_exposer_mnemonic_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*Mnemonic); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_exposer_mnemonic_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*Keys); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_exposer_mnemonic_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*TypeKey); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_exposer_mnemonic_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*PrivValidatorKey); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_exposer_mnemonic_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*NodeKey); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_exposer_mnemonic_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_exposer_mnemonic_proto_rawDesc), len(file_exposer_mnemonic_proto_rawDesc)), NumEnums: 0, NumMessages: 5, NumExtensions: 0, @@ -509,7 +433,6 @@ func file_exposer_mnemonic_proto_init() { MessageInfos: file_exposer_mnemonic_proto_msgTypes, }.Build() File_exposer_mnemonic_proto = out.File - file_exposer_mnemonic_proto_rawDesc = nil file_exposer_mnemonic_proto_goTypes = nil file_exposer_mnemonic_proto_depIdxs = nil } diff --git a/starship/exposer/exposer/node.pb.go b/starship/exposer/exposer/node.pb.go index b0466ab4d..44b8a8305 100644 --- a/starship/exposer/exposer/node.pb.go +++ b/starship/exposer/exposer/node.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.36.4 // protoc (unknown) // source: exposer/node.proto @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -21,22 +22,19 @@ const ( ) type Status struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Jsonrpc string `protobuf:"bytes,1,opt,name=jsonrpc,proto3" json:"jsonrpc,omitempty"` + Id float64 `protobuf:"fixed64,2,opt,name=id,proto3" json:"id,omitempty"` + Result *Status_Result `protobuf:"bytes,3,opt,name=result,proto3" json:"result,omitempty"` unknownFields protoimpl.UnknownFields - - Jsonrpc string `protobuf:"bytes,1,opt,name=jsonrpc,proto3" json:"jsonrpc,omitempty"` - Id float64 `protobuf:"fixed64,2,opt,name=id,proto3" json:"id,omitempty"` - Result *Status_Result `protobuf:"bytes,3,opt,name=result,proto3" json:"result,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Status) Reset() { *x = Status{} - if protoimpl.UnsafeEnabled { - mi := &file_exposer_node_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_exposer_node_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Status) String() string { @@ -47,7 +45,7 @@ func (*Status) ProtoMessage() {} func (x *Status) ProtoReflect() protoreflect.Message { mi := &file_exposer_node_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -84,10 +82,7 @@ func (x *Status) GetResult() *Status_Result { } type NodeInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` ListenAddr string `protobuf:"bytes,2,opt,name=listen_addr,proto3" json:"listen_addr,omitempty"` Network string `protobuf:"bytes,3,opt,name=network,proto3" json:"network,omitempty"` @@ -96,15 +91,15 @@ type NodeInfo struct { Moniker string `protobuf:"bytes,6,opt,name=moniker,proto3" json:"moniker,omitempty"` ProtocolVersion *NodeInfo_ProtocolVersion `protobuf:"bytes,7,opt,name=protocol_version,proto3" json:"protocol_version,omitempty"` Other *NodeInfo_Other `protobuf:"bytes,8,opt,name=other,proto3" json:"other,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NodeInfo) Reset() { *x = NodeInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_exposer_node_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_exposer_node_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NodeInfo) String() string { @@ -115,7 +110,7 @@ func (*NodeInfo) ProtoMessage() {} func (x *NodeInfo) ProtoReflect() protoreflect.Message { mi := &file_exposer_node_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -187,28 +182,25 @@ func (x *NodeInfo) GetOther() *NodeInfo_Other { } type SyncInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - LatestBlockHash string `protobuf:"bytes,1,opt,name=latest_block_hash,proto3" json:"latest_block_hash,omitempty"` - LatestAppHash string `protobuf:"bytes,2,opt,name=latest_app_hash,proto3" json:"latest_app_hash,omitempty"` - LatestBlockHeight string `protobuf:"bytes,3,opt,name=latest_block_height,proto3" json:"latest_block_height,omitempty"` - LatestBlockTime string `protobuf:"bytes,4,opt,name=latest_block_time,proto3" json:"latest_block_time,omitempty"` - EarliestAppHash string `protobuf:"bytes,5,opt,name=earliest_app_hash,proto3" json:"earliest_app_hash,omitempty"` - EarliestBlockHash string `protobuf:"bytes,6,opt,name=earliest_block_hash,proto3" json:"earliest_block_hash,omitempty"` - EarliestBlockHeight string `protobuf:"bytes,7,opt,name=earliest_block_height,proto3" json:"earliest_block_height,omitempty"` - EarliestBlockTime string `protobuf:"bytes,8,opt,name=earliest_block_time,proto3" json:"earliest_block_time,omitempty"` - CatchingUp bool `protobuf:"varint,9,opt,name=catching_up,proto3" json:"catching_up,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + LatestBlockHash string `protobuf:"bytes,1,opt,name=latest_block_hash,proto3" json:"latest_block_hash,omitempty"` + LatestAppHash string `protobuf:"bytes,2,opt,name=latest_app_hash,proto3" json:"latest_app_hash,omitempty"` + LatestBlockHeight string `protobuf:"bytes,3,opt,name=latest_block_height,proto3" json:"latest_block_height,omitempty"` + LatestBlockTime string `protobuf:"bytes,4,opt,name=latest_block_time,proto3" json:"latest_block_time,omitempty"` + EarliestAppHash string `protobuf:"bytes,5,opt,name=earliest_app_hash,proto3" json:"earliest_app_hash,omitempty"` + EarliestBlockHash string `protobuf:"bytes,6,opt,name=earliest_block_hash,proto3" json:"earliest_block_hash,omitempty"` + EarliestBlockHeight string `protobuf:"bytes,7,opt,name=earliest_block_height,proto3" json:"earliest_block_height,omitempty"` + EarliestBlockTime string `protobuf:"bytes,8,opt,name=earliest_block_time,proto3" json:"earliest_block_time,omitempty"` + CatchingUp bool `protobuf:"varint,9,opt,name=catching_up,proto3" json:"catching_up,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SyncInfo) Reset() { *x = SyncInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_exposer_node_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_exposer_node_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SyncInfo) String() string { @@ -219,7 +211,7 @@ func (*SyncInfo) ProtoMessage() {} func (x *SyncInfo) ProtoReflect() protoreflect.Message { mi := &file_exposer_node_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -298,22 +290,19 @@ func (x *SyncInfo) GetCatchingUp() bool { } type ValidatorInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + VotingPower string `protobuf:"bytes,2,opt,name=voting_power,proto3" json:"voting_power,omitempty"` + PubKey *ValidatorInfo_Key `protobuf:"bytes,3,opt,name=pub_key,proto3" json:"pub_key,omitempty"` unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - VotingPower string `protobuf:"bytes,2,opt,name=voting_power,proto3" json:"voting_power,omitempty"` - PubKey *ValidatorInfo_Key `protobuf:"bytes,3,opt,name=pub_key,proto3" json:"pub_key,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ValidatorInfo) Reset() { *x = ValidatorInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_exposer_node_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_exposer_node_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ValidatorInfo) String() string { @@ -324,7 +313,7 @@ func (*ValidatorInfo) ProtoMessage() {} func (x *ValidatorInfo) ProtoReflect() protoreflect.Message { mi := &file_exposer_node_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -361,24 +350,21 @@ func (x *ValidatorInfo) GetPubKey() *ValidatorInfo_Key { } type PrivValidatorState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Height string `protobuf:"bytes,1,opt,name=height,proto3" json:"height,omitempty"` + Round *int32 `protobuf:"varint,2,opt,name=round,proto3,oneof" json:"round,omitempty"` + Step *int32 `protobuf:"varint,3,opt,name=step,proto3,oneof" json:"step,omitempty"` + Signature *string `protobuf:"bytes,4,opt,name=signature,proto3,oneof" json:"signature,omitempty"` + Signbytes *string `protobuf:"bytes,5,opt,name=signbytes,proto3,oneof" json:"signbytes,omitempty"` unknownFields protoimpl.UnknownFields - - Height string `protobuf:"bytes,1,opt,name=height,proto3" json:"height,omitempty"` - Round *int32 `protobuf:"varint,2,opt,name=round,proto3,oneof" json:"round,omitempty"` - Step *int32 `protobuf:"varint,3,opt,name=step,proto3,oneof" json:"step,omitempty"` - Signature *string `protobuf:"bytes,4,opt,name=signature,proto3,oneof" json:"signature,omitempty"` - Signbytes *string `protobuf:"bytes,5,opt,name=signbytes,proto3,oneof" json:"signbytes,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PrivValidatorState) Reset() { *x = PrivValidatorState{} - if protoimpl.UnsafeEnabled { - mi := &file_exposer_node_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_exposer_node_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PrivValidatorState) String() string { @@ -389,7 +375,7 @@ func (*PrivValidatorState) ProtoMessage() {} func (x *PrivValidatorState) ProtoReflect() protoreflect.Message { mi := &file_exposer_node_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -440,22 +426,19 @@ func (x *PrivValidatorState) GetSignbytes() string { } type Status_Result struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + NodeInfo *NodeInfo `protobuf:"bytes,1,opt,name=node_info,proto3" json:"node_info,omitempty"` + SyncInfo *SyncInfo `protobuf:"bytes,2,opt,name=sync_info,proto3" json:"sync_info,omitempty"` + ValidatorInfo *ValidatorInfo `protobuf:"bytes,3,opt,name=validator_info,proto3" json:"validator_info,omitempty"` unknownFields protoimpl.UnknownFields - - NodeInfo *NodeInfo `protobuf:"bytes,1,opt,name=node_info,proto3" json:"node_info,omitempty"` - SyncInfo *SyncInfo `protobuf:"bytes,2,opt,name=sync_info,proto3" json:"sync_info,omitempty"` - ValidatorInfo *ValidatorInfo `protobuf:"bytes,3,opt,name=validator_info,proto3" json:"validator_info,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Status_Result) Reset() { *x = Status_Result{} - if protoimpl.UnsafeEnabled { - mi := &file_exposer_node_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_exposer_node_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Status_Result) String() string { @@ -466,7 +449,7 @@ func (*Status_Result) ProtoMessage() {} func (x *Status_Result) ProtoReflect() protoreflect.Message { mi := &file_exposer_node_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -503,22 +486,19 @@ func (x *Status_Result) GetValidatorInfo() *ValidatorInfo { } type NodeInfo_ProtocolVersion struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + P2P string `protobuf:"bytes,1,opt,name=p2p,proto3" json:"p2p,omitempty"` + Block string `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"` + App string `protobuf:"bytes,3,opt,name=app,proto3" json:"app,omitempty"` unknownFields protoimpl.UnknownFields - - P2P string `protobuf:"bytes,1,opt,name=p2p,proto3" json:"p2p,omitempty"` - Block string `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"` - App string `protobuf:"bytes,3,opt,name=app,proto3" json:"app,omitempty"` + sizeCache protoimpl.SizeCache } func (x *NodeInfo_ProtocolVersion) Reset() { *x = NodeInfo_ProtocolVersion{} - if protoimpl.UnsafeEnabled { - mi := &file_exposer_node_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_exposer_node_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NodeInfo_ProtocolVersion) String() string { @@ -529,7 +509,7 @@ func (*NodeInfo_ProtocolVersion) ProtoMessage() {} func (x *NodeInfo_ProtocolVersion) ProtoReflect() protoreflect.Message { mi := &file_exposer_node_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -566,21 +546,18 @@ func (x *NodeInfo_ProtocolVersion) GetApp() string { } type NodeInfo_Other struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TxIndex string `protobuf:"bytes,1,opt,name=tx_index,proto3" json:"tx_index,omitempty"` + RpcAddress string `protobuf:"bytes,2,opt,name=rpc_address,proto3" json:"rpc_address,omitempty"` unknownFields protoimpl.UnknownFields - - TxIndex string `protobuf:"bytes,1,opt,name=tx_index,proto3" json:"tx_index,omitempty"` - RpcAddress string `protobuf:"bytes,2,opt,name=rpc_address,proto3" json:"rpc_address,omitempty"` + sizeCache protoimpl.SizeCache } func (x *NodeInfo_Other) Reset() { *x = NodeInfo_Other{} - if protoimpl.UnsafeEnabled { - mi := &file_exposer_node_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_exposer_node_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NodeInfo_Other) String() string { @@ -591,7 +568,7 @@ func (*NodeInfo_Other) ProtoMessage() {} func (x *NodeInfo_Other) ProtoReflect() protoreflect.Message { mi := &file_exposer_node_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -621,21 +598,18 @@ func (x *NodeInfo_Other) GetRpcAddress() string { } type ValidatorInfo_Key struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` unknownFields protoimpl.UnknownFields - - Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ValidatorInfo_Key) Reset() { *x = ValidatorInfo_Key{} - if protoimpl.UnsafeEnabled { - mi := &file_exposer_node_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_exposer_node_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ValidatorInfo_Key) String() string { @@ -646,7 +620,7 @@ func (*ValidatorInfo_Key) ProtoMessage() {} func (x *ValidatorInfo_Key) ProtoReflect() protoreflect.Message { mi := &file_exposer_node_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -677,7 +651,7 @@ func (x *ValidatorInfo_Key) GetValue() string { var File_exposer_node_proto protoreflect.FileDescriptor -var file_exposer_node_proto_rawDesc = []byte{ +var file_exposer_node_proto_rawDesc = string([]byte{ 0x0a, 0x12, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x22, 0x8f, 0x02, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6a, 0x73, 0x6f, 0x6e, @@ -776,26 +750,25 @@ var file_exposer_node_proto_rawDesc = []byte{ 0x6e, 0x62, 0x79, 0x74, 0x65, 0x73, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x73, - 0x69, 0x67, 0x6e, 0x62, 0x79, 0x74, 0x65, 0x73, 0x42, 0x80, 0x01, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, - 0x2e, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x42, 0x09, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x2d, 0x74, 0x65, 0x63, 0x68, - 0x2f, 0x73, 0x74, 0x61, 0x72, 0x73, 0x68, 0x69, 0x70, 0x2f, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, - 0x72, 0xa2, 0x02, 0x03, 0x45, 0x58, 0x58, 0xaa, 0x02, 0x07, 0x45, 0x78, 0x70, 0x6f, 0x73, 0x65, - 0x72, 0xca, 0x02, 0x07, 0x45, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0xe2, 0x02, 0x13, 0x45, 0x78, - 0x70, 0x6f, 0x73, 0x65, 0x72, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0xea, 0x02, 0x07, 0x45, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, -} + 0x69, 0x67, 0x6e, 0x62, 0x79, 0x74, 0x65, 0x73, 0x42, 0x7d, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x2e, + 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x42, 0x09, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x68, 0x79, 0x70, 0x65, 0x72, 0x77, 0x65, 0x62, 0x2d, 0x69, 0x6f, 0x2f, 0x73, 0x74, 0x61, + 0x72, 0x73, 0x68, 0x69, 0x70, 0x2f, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0xa2, 0x02, 0x03, + 0x45, 0x58, 0x58, 0xaa, 0x02, 0x07, 0x45, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0xca, 0x02, 0x07, + 0x45, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0xe2, 0x02, 0x13, 0x45, 0x78, 0x70, 0x6f, 0x73, 0x65, + 0x72, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x07, + 0x45, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +}) var ( file_exposer_node_proto_rawDescOnce sync.Once - file_exposer_node_proto_rawDescData = file_exposer_node_proto_rawDesc + file_exposer_node_proto_rawDescData []byte ) func file_exposer_node_proto_rawDescGZIP() []byte { file_exposer_node_proto_rawDescOnce.Do(func() { - file_exposer_node_proto_rawDescData = protoimpl.X.CompressGZIP(file_exposer_node_proto_rawDescData) + file_exposer_node_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_exposer_node_proto_rawDesc), len(file_exposer_node_proto_rawDesc))) }) return file_exposer_node_proto_rawDescData } @@ -832,122 +805,12 @@ func file_exposer_node_proto_init() { if File_exposer_node_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_exposer_node_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*Status); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_exposer_node_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*NodeInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_exposer_node_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*SyncInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_exposer_node_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*ValidatorInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_exposer_node_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*PrivValidatorState); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_exposer_node_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*Status_Result); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_exposer_node_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*NodeInfo_ProtocolVersion); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_exposer_node_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*NodeInfo_Other); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_exposer_node_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*ValidatorInfo_Key); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_exposer_node_proto_msgTypes[4].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_exposer_node_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_exposer_node_proto_rawDesc), len(file_exposer_node_proto_rawDesc)), NumEnums: 0, NumMessages: 9, NumExtensions: 0, @@ -958,7 +821,6 @@ func file_exposer_node_proto_init() { MessageInfos: file_exposer_node_proto_msgTypes, }.Build() File_exposer_node_proto = out.File - file_exposer_node_proto_rawDesc = nil file_exposer_node_proto_goTypes = nil file_exposer_node_proto_depIdxs = nil } diff --git a/starship/exposer/exposer/service.pb.go b/starship/exposer/exposer/service.pb.go index f39676678..19c03767d 100644 --- a/starship/exposer/exposer/service.pb.go +++ b/starship/exposer/exposer/service.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.36.4 // protoc (unknown) // source: exposer/service.proto @@ -16,6 +16,7 @@ import ( structpb "google.golang.org/protobuf/types/known/structpb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -26,20 +27,17 @@ const ( ) type ResponseNodeID struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + NodeId string `protobuf:"bytes,1,opt,name=node_id,proto3" json:"node_id,omitempty"` unknownFields protoimpl.UnknownFields - - NodeId string `protobuf:"bytes,1,opt,name=node_id,proto3" json:"node_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ResponseNodeID) Reset() { *x = ResponseNodeID{} - if protoimpl.UnsafeEnabled { - mi := &file_exposer_service_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_exposer_service_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ResponseNodeID) String() string { @@ -50,7 +48,7 @@ func (*ResponseNodeID) ProtoMessage() {} func (x *ResponseNodeID) ProtoReflect() protoreflect.Message { mi := &file_exposer_service_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -73,21 +71,18 @@ func (x *ResponseNodeID) GetNodeId() string { } type ResponsePubKey struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` unknownFields protoimpl.UnknownFields - - Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ResponsePubKey) Reset() { *x = ResponsePubKey{} - if protoimpl.UnsafeEnabled { - mi := &file_exposer_service_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_exposer_service_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ResponsePubKey) String() string { @@ -98,7 +93,7 @@ func (*ResponsePubKey) ProtoMessage() {} func (x *ResponsePubKey) ProtoReflect() protoreflect.Message { mi := &file_exposer_service_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -128,20 +123,17 @@ func (x *ResponsePubKey) GetKey() string { } type ResponseFileData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields - - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ResponseFileData) Reset() { *x = ResponseFileData{} - if protoimpl.UnsafeEnabled { - mi := &file_exposer_service_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_exposer_service_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ResponseFileData) String() string { @@ -152,7 +144,7 @@ func (*ResponseFileData) ProtoMessage() {} func (x *ResponseFileData) ProtoReflect() protoreflect.Message { mi := &file_exposer_service_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -175,11 +167,8 @@ func (x *ResponseFileData) GetData() []byte { } type RequestCreateChannel struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AChain string `protobuf:"bytes,1,opt,name=a_chain,proto3" json:"a_chain,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + AChain string `protobuf:"bytes,1,opt,name=a_chain,proto3" json:"a_chain,omitempty"` // if a_connection is not specified then a new connection is formed AConnection *string `protobuf:"bytes,2,opt,name=a_connection,proto3,oneof" json:"a_connection,omitempty"` // needs to be defined if a_connection is not defined @@ -188,15 +177,15 @@ type RequestCreateChannel struct { BPort string `protobuf:"bytes,5,opt,name=b_port,proto3" json:"b_port,omitempty"` ChannelVersion *string `protobuf:"bytes,6,opt,name=channel_version,proto3,oneof" json:"channel_version,omitempty"` Order *string `protobuf:"bytes,7,opt,name=order,proto3,oneof" json:"order,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *RequestCreateChannel) Reset() { *x = RequestCreateChannel{} - if protoimpl.UnsafeEnabled { - mi := &file_exposer_service_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_exposer_service_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RequestCreateChannel) String() string { @@ -207,7 +196,7 @@ func (*RequestCreateChannel) ProtoMessage() {} func (x *RequestCreateChannel) ProtoReflect() protoreflect.Message { mi := &file_exposer_service_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -272,20 +261,17 @@ func (x *RequestCreateChannel) GetOrder() string { } type ResponseCreateChannel struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` unknownFields protoimpl.UnknownFields - - Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ResponseCreateChannel) Reset() { *x = ResponseCreateChannel{} - if protoimpl.UnsafeEnabled { - mi := &file_exposer_service_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_exposer_service_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ResponseCreateChannel) String() string { @@ -296,7 +282,7 @@ func (*ResponseCreateChannel) ProtoMessage() {} func (x *ResponseCreateChannel) ProtoReflect() protoreflect.Message { mi := &file_exposer_service_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -320,7 +306,7 @@ func (x *ResponseCreateChannel) GetStatus() string { var File_exposer_service_proto protoreflect.FileDescriptor -var file_exposer_service_proto_rawDesc = []byte{ +var file_exposer_service_proto_rawDesc = string([]byte{ 0x0a, 0x15, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, @@ -366,7 +352,7 @@ var file_exposer_service_proto_rawDesc = []byte{ 0x0a, 0x15, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x32, - 0xb8, 0x05, 0x0a, 0x07, 0x45, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x12, 0x4e, 0x0a, 0x09, 0x47, + 0xe7, 0x06, 0x0a, 0x07, 0x45, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x12, 0x4e, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x44, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x17, 0x2e, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, @@ -382,53 +368,64 @@ var file_exposer_service_proto_rawDesc = []byte{ 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x22, 0x10, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0a, 0x12, 0x08, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, - 0x12, 0x3f, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, + 0x12, 0x58, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x53, + 0x5a, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x19, 0x2e, 0x65, 0x78, 0x70, 0x6f, + 0x73, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x46, 0x69, 0x6c, 0x65, + 0x44, 0x61, 0x74, 0x61, 0x22, 0x14, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0e, 0x12, 0x0c, 0x2f, 0x67, + 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x5f, 0x73, 0x73, 0x7a, 0x12, 0x53, 0x0a, 0x0d, 0x47, 0x65, + 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, - 0x70, 0x74, 0x79, 0x1a, 0x0d, 0x2e, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x2e, 0x4b, 0x65, - 0x79, 0x73, 0x22, 0x0d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x07, 0x12, 0x05, 0x2f, 0x6b, 0x65, 0x79, - 0x73, 0x12, 0x53, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x50, 0x72, 0x69, 0x76, 0x4b, 0x65, 0x79, 0x12, - 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x19, 0x2e, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, - 0x72, 0x2e, 0x50, 0x72, 0x69, 0x76, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x4b, - 0x65, 0x79, 0x22, 0x12, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0c, 0x12, 0x0a, 0x2f, 0x70, 0x72, 0x69, - 0x76, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x12, 0x6b, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x50, 0x72, 0x69, - 0x76, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, - 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1b, 0x2e, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, - 0x72, 0x2e, 0x50, 0x72, 0x69, 0x76, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x12, 0x15, 0x2f, 0x70, - 0x72, 0x69, 0x76, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x73, 0x74, - 0x61, 0x74, 0x65, 0x12, 0x49, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x4b, 0x65, - 0x79, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x10, 0x2e, 0x65, 0x78, 0x70, 0x6f, - 0x73, 0x65, 0x72, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x4b, 0x65, 0x79, 0x22, 0x11, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x0b, 0x12, 0x09, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x12, 0x6a, - 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x12, - 0x1d, 0x2e, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x1a, 0x1e, - 0x2e, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x22, 0x1a, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x3a, 0x01, 0x2a, 0x22, 0x0f, 0x2f, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x42, 0x83, 0x01, 0x0a, 0x0b, 0x63, - 0x6f, 0x6d, 0x2e, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x42, 0x0c, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2a, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x6c, 0x6f, 0x67, 0x79, - 0x2d, 0x74, 0x65, 0x63, 0x68, 0x2f, 0x73, 0x74, 0x61, 0x72, 0x73, 0x68, 0x69, 0x70, 0x2f, 0x65, - 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0xa2, 0x02, 0x03, 0x45, 0x58, 0x58, 0xaa, 0x02, 0x07, 0x45, - 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0xca, 0x02, 0x07, 0x45, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, - 0xe2, 0x02, 0x13, 0x45, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x07, 0x45, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} + 0x70, 0x74, 0x79, 0x1a, 0x19, 0x2e, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x2e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x61, 0x74, 0x61, 0x22, 0x0f, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x09, 0x12, 0x07, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, + 0x3f, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, + 0x74, 0x79, 0x1a, 0x0d, 0x2e, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x2e, 0x4b, 0x65, 0x79, + 0x73, 0x22, 0x0d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x07, 0x12, 0x05, 0x2f, 0x6b, 0x65, 0x79, 0x73, + 0x12, 0x53, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x50, 0x72, 0x69, 0x76, 0x4b, 0x65, 0x79, 0x12, 0x16, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x19, 0x2e, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, + 0x2e, 0x50, 0x72, 0x69, 0x76, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x4b, 0x65, + 0x79, 0x22, 0x12, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0c, 0x12, 0x0a, 0x2f, 0x70, 0x72, 0x69, 0x76, + 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x12, 0x6b, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x50, 0x72, 0x69, 0x76, + 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x16, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1b, 0x2e, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, + 0x2e, 0x50, 0x72, 0x69, 0x76, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x12, 0x15, 0x2f, 0x70, 0x72, + 0x69, 0x76, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x73, 0x74, 0x61, + 0x74, 0x65, 0x12, 0x49, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x4b, 0x65, 0x79, + 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x10, 0x2e, 0x65, 0x78, 0x70, 0x6f, 0x73, + 0x65, 0x72, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x4b, 0x65, 0x79, 0x22, 0x11, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x0b, 0x12, 0x09, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x12, 0x6a, 0x0a, + 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x1d, + 0x2e, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x1a, 0x1e, 0x2e, + 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x22, 0x1a, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x3a, 0x01, 0x2a, 0x22, 0x0f, 0x2f, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x42, 0x80, 0x01, 0x0a, 0x0b, 0x63, 0x6f, + 0x6d, 0x2e, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x42, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x79, 0x70, 0x65, 0x72, 0x77, 0x65, 0x62, 0x2d, 0x69, + 0x6f, 0x2f, 0x73, 0x74, 0x61, 0x72, 0x73, 0x68, 0x69, 0x70, 0x2f, 0x65, 0x78, 0x70, 0x6f, 0x73, + 0x65, 0x72, 0xa2, 0x02, 0x03, 0x45, 0x58, 0x58, 0xaa, 0x02, 0x07, 0x45, 0x78, 0x70, 0x6f, 0x73, + 0x65, 0x72, 0xca, 0x02, 0x07, 0x45, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0xe2, 0x02, 0x13, 0x45, + 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x07, 0x45, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +}) var ( file_exposer_service_proto_rawDescOnce sync.Once - file_exposer_service_proto_rawDescData = file_exposer_service_proto_rawDesc + file_exposer_service_proto_rawDescData []byte ) func file_exposer_service_proto_rawDescGZIP() []byte { file_exposer_service_proto_rawDescOnce.Do(func() { - file_exposer_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_exposer_service_proto_rawDescData) + file_exposer_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_exposer_service_proto_rawDesc), len(file_exposer_service_proto_rawDesc))) }) return file_exposer_service_proto_rawDescData } @@ -451,21 +448,25 @@ var file_exposer_service_proto_depIdxs = []int32{ 5, // 0: exposer.Exposer.GetNodeID:input_type -> google.protobuf.Empty 5, // 1: exposer.Exposer.GetPubKey:input_type -> google.protobuf.Empty 5, // 2: exposer.Exposer.GetGenesisFile:input_type -> google.protobuf.Empty - 5, // 3: exposer.Exposer.GetKeys:input_type -> google.protobuf.Empty - 5, // 4: exposer.Exposer.GetPrivKey:input_type -> google.protobuf.Empty - 5, // 5: exposer.Exposer.GetPrivValidatorState:input_type -> google.protobuf.Empty - 5, // 6: exposer.Exposer.GetNodeKey:input_type -> google.protobuf.Empty - 3, // 7: exposer.Exposer.CreateChannel:input_type -> exposer.RequestCreateChannel - 0, // 8: exposer.Exposer.GetNodeID:output_type -> exposer.ResponseNodeID - 1, // 9: exposer.Exposer.GetPubKey:output_type -> exposer.ResponsePubKey - 6, // 10: exposer.Exposer.GetGenesisFile:output_type -> google.protobuf.Struct - 7, // 11: exposer.Exposer.GetKeys:output_type -> exposer.Keys - 8, // 12: exposer.Exposer.GetPrivKey:output_type -> exposer.PrivValidatorKey - 9, // 13: exposer.Exposer.GetPrivValidatorState:output_type -> exposer.PrivValidatorState - 10, // 14: exposer.Exposer.GetNodeKey:output_type -> exposer.NodeKey - 4, // 15: exposer.Exposer.CreateChannel:output_type -> exposer.ResponseCreateChannel - 8, // [8:16] is the sub-list for method output_type - 0, // [0:8] is the sub-list for method input_type + 5, // 3: exposer.Exposer.GetGenesisSSZ:input_type -> google.protobuf.Empty + 5, // 4: exposer.Exposer.GetConfigFile:input_type -> google.protobuf.Empty + 5, // 5: exposer.Exposer.GetKeys:input_type -> google.protobuf.Empty + 5, // 6: exposer.Exposer.GetPrivKey:input_type -> google.protobuf.Empty + 5, // 7: exposer.Exposer.GetPrivValidatorState:input_type -> google.protobuf.Empty + 5, // 8: exposer.Exposer.GetNodeKey:input_type -> google.protobuf.Empty + 3, // 9: exposer.Exposer.CreateChannel:input_type -> exposer.RequestCreateChannel + 0, // 10: exposer.Exposer.GetNodeID:output_type -> exposer.ResponseNodeID + 1, // 11: exposer.Exposer.GetPubKey:output_type -> exposer.ResponsePubKey + 6, // 12: exposer.Exposer.GetGenesisFile:output_type -> google.protobuf.Struct + 2, // 13: exposer.Exposer.GetGenesisSSZ:output_type -> exposer.ResponseFileData + 2, // 14: exposer.Exposer.GetConfigFile:output_type -> exposer.ResponseFileData + 7, // 15: exposer.Exposer.GetKeys:output_type -> exposer.Keys + 8, // 16: exposer.Exposer.GetPrivKey:output_type -> exposer.PrivValidatorKey + 9, // 17: exposer.Exposer.GetPrivValidatorState:output_type -> exposer.PrivValidatorState + 10, // 18: exposer.Exposer.GetNodeKey:output_type -> exposer.NodeKey + 4, // 19: exposer.Exposer.CreateChannel:output_type -> exposer.ResponseCreateChannel + 10, // [10:20] is the sub-list for method output_type + 0, // [0:10] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name 0, // [0:0] is the sub-list for extension extendee 0, // [0:0] is the sub-list for field type_name @@ -478,74 +479,12 @@ func file_exposer_service_proto_init() { } file_exposer_mnemonic_proto_init() file_exposer_node_proto_init() - if !protoimpl.UnsafeEnabled { - file_exposer_service_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*ResponseNodeID); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_exposer_service_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*ResponsePubKey); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_exposer_service_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*ResponseFileData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_exposer_service_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*RequestCreateChannel); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_exposer_service_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*ResponseCreateChannel); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_exposer_service_proto_msgTypes[3].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_exposer_service_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_exposer_service_proto_rawDesc), len(file_exposer_service_proto_rawDesc)), NumEnums: 0, NumMessages: 5, NumExtensions: 0, @@ -556,7 +495,6 @@ func file_exposer_service_proto_init() { MessageInfos: file_exposer_service_proto_msgTypes, }.Build() File_exposer_service_proto = out.File - file_exposer_service_proto_rawDesc = nil file_exposer_service_proto_goTypes = nil file_exposer_service_proto_depIdxs = nil } diff --git a/starship/exposer/exposer/service.pb.gw.go b/starship/exposer/exposer/service.pb.gw.go index 7a6690edf..cc2d028f2 100644 --- a/starship/exposer/exposer/service.pb.gw.go +++ b/starship/exposer/exposer/service.pb.gw.go @@ -10,6 +10,7 @@ package exposer import ( "context" + "errors" "io" "net/http" @@ -25,180 +26,215 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = errors.New + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_Exposer_GetNodeID_0(ctx context.Context, marshaler runtime.Marshaler, client ExposerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq emptypb.Empty - var metadata runtime.ServerMetadata - + var ( + protoReq emptypb.Empty + metadata runtime.ServerMetadata + ) msg, err := client.GetNodeID(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Exposer_GetNodeID_0(ctx context.Context, marshaler runtime.Marshaler, server ExposerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq emptypb.Empty - var metadata runtime.ServerMetadata - + var ( + protoReq emptypb.Empty + metadata runtime.ServerMetadata + ) msg, err := server.GetNodeID(ctx, &protoReq) return msg, metadata, err - } func request_Exposer_GetPubKey_0(ctx context.Context, marshaler runtime.Marshaler, client ExposerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq emptypb.Empty - var metadata runtime.ServerMetadata - + var ( + protoReq emptypb.Empty + metadata runtime.ServerMetadata + ) msg, err := client.GetPubKey(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Exposer_GetPubKey_0(ctx context.Context, marshaler runtime.Marshaler, server ExposerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq emptypb.Empty - var metadata runtime.ServerMetadata - + var ( + protoReq emptypb.Empty + metadata runtime.ServerMetadata + ) msg, err := server.GetPubKey(ctx, &protoReq) return msg, metadata, err - } func request_Exposer_GetGenesisFile_0(ctx context.Context, marshaler runtime.Marshaler, client ExposerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq emptypb.Empty - var metadata runtime.ServerMetadata - + var ( + protoReq emptypb.Empty + metadata runtime.ServerMetadata + ) msg, err := client.GetGenesisFile(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Exposer_GetGenesisFile_0(ctx context.Context, marshaler runtime.Marshaler, server ExposerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq emptypb.Empty - var metadata runtime.ServerMetadata - + var ( + protoReq emptypb.Empty + metadata runtime.ServerMetadata + ) msg, err := server.GetGenesisFile(ctx, &protoReq) return msg, metadata, err +} +func request_Exposer_GetGenesisSSZ_0(ctx context.Context, marshaler runtime.Marshaler, client ExposerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var ( + protoReq emptypb.Empty + metadata runtime.ServerMetadata + ) + msg, err := client.GetGenesisSSZ(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err } -func request_Exposer_GetKeys_0(ctx context.Context, marshaler runtime.Marshaler, client ExposerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq emptypb.Empty - var metadata runtime.ServerMetadata +func local_request_Exposer_GetGenesisSSZ_0(ctx context.Context, marshaler runtime.Marshaler, server ExposerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var ( + protoReq emptypb.Empty + metadata runtime.ServerMetadata + ) + msg, err := server.GetGenesisSSZ(ctx, &protoReq) + return msg, metadata, err +} - msg, err := client.GetKeys(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) +func request_Exposer_GetConfigFile_0(ctx context.Context, marshaler runtime.Marshaler, client ExposerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var ( + protoReq emptypb.Empty + metadata runtime.ServerMetadata + ) + msg, err := client.GetConfigFile(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err +} + +func local_request_Exposer_GetConfigFile_0(ctx context.Context, marshaler runtime.Marshaler, server ExposerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var ( + protoReq emptypb.Empty + metadata runtime.ServerMetadata + ) + msg, err := server.GetConfigFile(ctx, &protoReq) return msg, metadata, err +} +func request_Exposer_GetKeys_0(ctx context.Context, marshaler runtime.Marshaler, client ExposerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var ( + protoReq emptypb.Empty + metadata runtime.ServerMetadata + ) + msg, err := client.GetKeys(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err } func local_request_Exposer_GetKeys_0(ctx context.Context, marshaler runtime.Marshaler, server ExposerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq emptypb.Empty - var metadata runtime.ServerMetadata - + var ( + protoReq emptypb.Empty + metadata runtime.ServerMetadata + ) msg, err := server.GetKeys(ctx, &protoReq) return msg, metadata, err - } func request_Exposer_GetPrivKey_0(ctx context.Context, marshaler runtime.Marshaler, client ExposerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq emptypb.Empty - var metadata runtime.ServerMetadata - + var ( + protoReq emptypb.Empty + metadata runtime.ServerMetadata + ) msg, err := client.GetPrivKey(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Exposer_GetPrivKey_0(ctx context.Context, marshaler runtime.Marshaler, server ExposerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq emptypb.Empty - var metadata runtime.ServerMetadata - + var ( + protoReq emptypb.Empty + metadata runtime.ServerMetadata + ) msg, err := server.GetPrivKey(ctx, &protoReq) return msg, metadata, err - } func request_Exposer_GetPrivValidatorState_0(ctx context.Context, marshaler runtime.Marshaler, client ExposerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq emptypb.Empty - var metadata runtime.ServerMetadata - + var ( + protoReq emptypb.Empty + metadata runtime.ServerMetadata + ) msg, err := client.GetPrivValidatorState(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Exposer_GetPrivValidatorState_0(ctx context.Context, marshaler runtime.Marshaler, server ExposerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq emptypb.Empty - var metadata runtime.ServerMetadata - + var ( + protoReq emptypb.Empty + metadata runtime.ServerMetadata + ) msg, err := server.GetPrivValidatorState(ctx, &protoReq) return msg, metadata, err - } func request_Exposer_GetNodeKey_0(ctx context.Context, marshaler runtime.Marshaler, client ExposerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq emptypb.Empty - var metadata runtime.ServerMetadata - + var ( + protoReq emptypb.Empty + metadata runtime.ServerMetadata + ) msg, err := client.GetNodeKey(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Exposer_GetNodeKey_0(ctx context.Context, marshaler runtime.Marshaler, server ExposerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq emptypb.Empty - var metadata runtime.ServerMetadata - + var ( + protoReq emptypb.Empty + metadata runtime.ServerMetadata + ) msg, err := server.GetNodeKey(ctx, &protoReq) return msg, metadata, err - } func request_Exposer_CreateChannel_0(ctx context.Context, marshaler runtime.Marshaler, client ExposerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RequestCreateChannel - var metadata runtime.ServerMetadata - - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq RequestCreateChannel + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.CreateChannel(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Exposer_CreateChannel_0(ctx context.Context, marshaler runtime.Marshaler, server ExposerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RequestCreateChannel - var metadata runtime.ServerMetadata - - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq RequestCreateChannel + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.CreateChannel(ctx, &protoReq) return msg, metadata, err - } // RegisterExposerHandlerServer registers the http handlers for service Exposer to "mux". // UnaryRPC :call ExposerServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterExposerHandlerFromEndpoint instead. +// GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call. func RegisterExposerHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ExposerServer) error { - - mux.Handle("GET", pattern_Exposer_GetNodeID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Exposer_GetNodeID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/exposer.Exposer/GetNodeID", runtime.WithHTTPPathPattern("/node_id")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/exposer.Exposer/GetNodeID", runtime.WithHTTPPathPattern("/node_id")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -210,20 +246,15 @@ func RegisterExposerHandlerServer(ctx context.Context, mux *runtime.ServeMux, se runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Exposer_GetNodeID_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Exposer_GetPubKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Exposer_GetPubKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/exposer.Exposer/GetPubKey", runtime.WithHTTPPathPattern("/pub_key")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/exposer.Exposer/GetPubKey", runtime.WithHTTPPathPattern("/pub_key")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -235,20 +266,15 @@ func RegisterExposerHandlerServer(ctx context.Context, mux *runtime.ServeMux, se runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Exposer_GetPubKey_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Exposer_GetGenesisFile_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Exposer_GetGenesisFile_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/exposer.Exposer/GetGenesisFile", runtime.WithHTTPPathPattern("/genesis")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/exposer.Exposer/GetGenesisFile", runtime.WithHTTPPathPattern("/genesis")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -260,20 +286,55 @@ func RegisterExposerHandlerServer(ctx context.Context, mux *runtime.ServeMux, se runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Exposer_GetGenesisFile_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Exposer_GetKeys_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Exposer_GetGenesisSSZ_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/exposer.Exposer/GetGenesisSSZ", runtime.WithHTTPPathPattern("/genesis_ssz")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Exposer_GetGenesisSSZ_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + forward_Exposer_GetGenesisSSZ_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) + mux.Handle(http.MethodGet, pattern_Exposer_GetConfigFile_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/exposer.Exposer/GetConfigFile", runtime.WithHTTPPathPattern("/config")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Exposer_GetConfigFile_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + forward_Exposer_GetConfigFile_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) + mux.Handle(http.MethodGet, pattern_Exposer_GetKeys_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/exposer.Exposer/GetKeys", runtime.WithHTTPPathPattern("/keys")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/exposer.Exposer/GetKeys", runtime.WithHTTPPathPattern("/keys")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -285,20 +346,15 @@ func RegisterExposerHandlerServer(ctx context.Context, mux *runtime.ServeMux, se runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Exposer_GetKeys_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Exposer_GetPrivKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Exposer_GetPrivKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/exposer.Exposer/GetPrivKey", runtime.WithHTTPPathPattern("/priv_keys")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/exposer.Exposer/GetPrivKey", runtime.WithHTTPPathPattern("/priv_keys")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -310,20 +366,15 @@ func RegisterExposerHandlerServer(ctx context.Context, mux *runtime.ServeMux, se runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Exposer_GetPrivKey_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Exposer_GetPrivValidatorState_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Exposer_GetPrivValidatorState_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/exposer.Exposer/GetPrivValidatorState", runtime.WithHTTPPathPattern("/priv_validator_state")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/exposer.Exposer/GetPrivValidatorState", runtime.WithHTTPPathPattern("/priv_validator_state")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -335,20 +386,15 @@ func RegisterExposerHandlerServer(ctx context.Context, mux *runtime.ServeMux, se runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Exposer_GetPrivValidatorState_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Exposer_GetNodeKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Exposer_GetNodeKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/exposer.Exposer/GetNodeKey", runtime.WithHTTPPathPattern("/node_key")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/exposer.Exposer/GetNodeKey", runtime.WithHTTPPathPattern("/node_key")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -360,20 +406,15 @@ func RegisterExposerHandlerServer(ctx context.Context, mux *runtime.ServeMux, se runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Exposer_GetNodeKey_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Exposer_CreateChannel_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Exposer_CreateChannel_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/exposer.Exposer/CreateChannel", runtime.WithHTTPPathPattern("/create_channel")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/exposer.Exposer/CreateChannel", runtime.WithHTTPPathPattern("/create_channel")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -385,9 +426,7 @@ func RegisterExposerHandlerServer(ctx context.Context, mux *runtime.ServeMux, se runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Exposer_CreateChannel_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -414,7 +453,6 @@ func RegisterExposerHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeM } }() }() - return RegisterExposerHandler(ctx, mux, conn) } @@ -428,16 +466,13 @@ func RegisterExposerHandler(ctx context.Context, mux *runtime.ServeMux, conn *gr // to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ExposerClient". // Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ExposerClient" // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "ExposerClient" to call the correct interceptors. +// "ExposerClient" to call the correct interceptors. This client ignores the HTTP middlewares. func RegisterExposerHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ExposerClient) error { - - mux.Handle("GET", pattern_Exposer_GetNodeID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Exposer_GetNodeID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/exposer.Exposer/GetNodeID", runtime.WithHTTPPathPattern("/node_id")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/exposer.Exposer/GetNodeID", runtime.WithHTTPPathPattern("/node_id")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -448,18 +483,13 @@ func RegisterExposerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Exposer_GetNodeID_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Exposer_GetPubKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Exposer_GetPubKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/exposer.Exposer/GetPubKey", runtime.WithHTTPPathPattern("/pub_key")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/exposer.Exposer/GetPubKey", runtime.WithHTTPPathPattern("/pub_key")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -470,18 +500,13 @@ func RegisterExposerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Exposer_GetPubKey_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Exposer_GetGenesisFile_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Exposer_GetGenesisFile_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/exposer.Exposer/GetGenesisFile", runtime.WithHTTPPathPattern("/genesis")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/exposer.Exposer/GetGenesisFile", runtime.WithHTTPPathPattern("/genesis")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -492,18 +517,47 @@ func RegisterExposerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Exposer_GetGenesisFile_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Exposer_GetKeys_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Exposer_GetGenesisSSZ_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/exposer.Exposer/GetGenesisSSZ", runtime.WithHTTPPathPattern("/genesis_ssz")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Exposer_GetGenesisSSZ_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + forward_Exposer_GetGenesisSSZ_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) + mux.Handle(http.MethodGet, pattern_Exposer_GetConfigFile_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/exposer.Exposer/GetKeys", runtime.WithHTTPPathPattern("/keys")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/exposer.Exposer/GetConfigFile", runtime.WithHTTPPathPattern("/config")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Exposer_GetConfigFile_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + forward_Exposer_GetConfigFile_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) + mux.Handle(http.MethodGet, pattern_Exposer_GetKeys_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/exposer.Exposer/GetKeys", runtime.WithHTTPPathPattern("/keys")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -514,18 +568,13 @@ func RegisterExposerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Exposer_GetKeys_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Exposer_GetPrivKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Exposer_GetPrivKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/exposer.Exposer/GetPrivKey", runtime.WithHTTPPathPattern("/priv_keys")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/exposer.Exposer/GetPrivKey", runtime.WithHTTPPathPattern("/priv_keys")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -536,18 +585,13 @@ func RegisterExposerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Exposer_GetPrivKey_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Exposer_GetPrivValidatorState_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Exposer_GetPrivValidatorState_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/exposer.Exposer/GetPrivValidatorState", runtime.WithHTTPPathPattern("/priv_validator_state")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/exposer.Exposer/GetPrivValidatorState", runtime.WithHTTPPathPattern("/priv_validator_state")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -558,18 +602,13 @@ func RegisterExposerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Exposer_GetPrivValidatorState_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Exposer_GetNodeKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Exposer_GetNodeKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/exposer.Exposer/GetNodeKey", runtime.WithHTTPPathPattern("/node_key")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/exposer.Exposer/GetNodeKey", runtime.WithHTTPPathPattern("/node_key")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -580,18 +619,13 @@ func RegisterExposerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Exposer_GetNodeKey_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Exposer_CreateChannel_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Exposer_CreateChannel_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/exposer.Exposer/CreateChannel", runtime.WithHTTPPathPattern("/create_channel")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/exposer.Exposer/CreateChannel", runtime.WithHTTPPathPattern("/create_channel")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -602,46 +636,33 @@ func RegisterExposerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Exposer_CreateChannel_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - return nil } var ( - pattern_Exposer_GetNodeID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"node_id"}, "")) - - pattern_Exposer_GetPubKey_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"pub_key"}, "")) - - pattern_Exposer_GetGenesisFile_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"genesis"}, "")) - - pattern_Exposer_GetKeys_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"keys"}, "")) - - pattern_Exposer_GetPrivKey_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"priv_keys"}, "")) - + pattern_Exposer_GetNodeID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"node_id"}, "")) + pattern_Exposer_GetPubKey_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"pub_key"}, "")) + pattern_Exposer_GetGenesisFile_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"genesis"}, "")) + pattern_Exposer_GetGenesisSSZ_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"genesis_ssz"}, "")) + pattern_Exposer_GetConfigFile_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"config"}, "")) + pattern_Exposer_GetKeys_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"keys"}, "")) + pattern_Exposer_GetPrivKey_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"priv_keys"}, "")) pattern_Exposer_GetPrivValidatorState_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"priv_validator_state"}, "")) - - pattern_Exposer_GetNodeKey_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"node_key"}, "")) - - pattern_Exposer_CreateChannel_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"create_channel"}, "")) + pattern_Exposer_GetNodeKey_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"node_key"}, "")) + pattern_Exposer_CreateChannel_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"create_channel"}, "")) ) var ( - forward_Exposer_GetNodeID_0 = runtime.ForwardResponseMessage - - forward_Exposer_GetPubKey_0 = runtime.ForwardResponseMessage - - forward_Exposer_GetGenesisFile_0 = runtime.ForwardResponseMessage - - forward_Exposer_GetKeys_0 = runtime.ForwardResponseMessage - - forward_Exposer_GetPrivKey_0 = runtime.ForwardResponseMessage - + forward_Exposer_GetNodeID_0 = runtime.ForwardResponseMessage + forward_Exposer_GetPubKey_0 = runtime.ForwardResponseMessage + forward_Exposer_GetGenesisFile_0 = runtime.ForwardResponseMessage + forward_Exposer_GetGenesisSSZ_0 = runtime.ForwardResponseMessage + forward_Exposer_GetConfigFile_0 = runtime.ForwardResponseMessage + forward_Exposer_GetKeys_0 = runtime.ForwardResponseMessage + forward_Exposer_GetPrivKey_0 = runtime.ForwardResponseMessage forward_Exposer_GetPrivValidatorState_0 = runtime.ForwardResponseMessage - - forward_Exposer_GetNodeKey_0 = runtime.ForwardResponseMessage - - forward_Exposer_CreateChannel_0 = runtime.ForwardResponseMessage + forward_Exposer_GetNodeKey_0 = runtime.ForwardResponseMessage + forward_Exposer_CreateChannel_0 = runtime.ForwardResponseMessage ) diff --git a/starship/exposer/exposer/service_grpc.pb.go b/starship/exposer/exposer/service_grpc.pb.go index a1c3fcd32..7f87dfc8c 100644 --- a/starship/exposer/exposer/service_grpc.pb.go +++ b/starship/exposer/exposer/service_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.4.0 +// - protoc-gen-go-grpc v1.5.1 // - protoc (unknown) // source: exposer/service.proto @@ -17,13 +17,15 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.62.0 or later. -const _ = grpc.SupportPackageIsVersion8 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( Exposer_GetNodeID_FullMethodName = "/exposer.Exposer/GetNodeID" Exposer_GetPubKey_FullMethodName = "/exposer.Exposer/GetPubKey" Exposer_GetGenesisFile_FullMethodName = "/exposer.Exposer/GetGenesisFile" + Exposer_GetGenesisSSZ_FullMethodName = "/exposer.Exposer/GetGenesisSSZ" + Exposer_GetConfigFile_FullMethodName = "/exposer.Exposer/GetConfigFile" Exposer_GetKeys_FullMethodName = "/exposer.Exposer/GetKeys" Exposer_GetPrivKey_FullMethodName = "/exposer.Exposer/GetPrivKey" Exposer_GetPrivValidatorState_FullMethodName = "/exposer.Exposer/GetPrivValidatorState" @@ -43,6 +45,10 @@ type ExposerClient interface { GetPubKey(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ResponsePubKey, error) // GetGenesisFile returns the genesis file of the node GetGenesisFile(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*structpb.Struct, error) + // GetGenesisSSZ returns the genesis file of the node + GetGenesisSSZ(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ResponseFileData, error) + // GetConfigFile returns the config file of the node + GetConfigFile(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ResponseFileData, error) // GetKeysFile returns the keys of the node GetKeys(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Keys, error) // GetPrivKeys returns the keys of the node @@ -94,6 +100,26 @@ func (c *exposerClient) GetGenesisFile(ctx context.Context, in *emptypb.Empty, o return out, nil } +func (c *exposerClient) GetGenesisSSZ(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ResponseFileData, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ResponseFileData) + err := c.cc.Invoke(ctx, Exposer_GetGenesisSSZ_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *exposerClient) GetConfigFile(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ResponseFileData, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ResponseFileData) + err := c.cc.Invoke(ctx, Exposer_GetConfigFile_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *exposerClient) GetKeys(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Keys, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Keys) @@ -146,7 +172,7 @@ func (c *exposerClient) CreateChannel(ctx context.Context, in *RequestCreateChan // ExposerServer is the server API for Exposer service. // All implementations must embed UnimplementedExposerServer -// for forward compatibility +// for forward compatibility. // // Interface for service type ExposerServer interface { @@ -156,6 +182,10 @@ type ExposerServer interface { GetPubKey(context.Context, *emptypb.Empty) (*ResponsePubKey, error) // GetGenesisFile returns the genesis file of the node GetGenesisFile(context.Context, *emptypb.Empty) (*structpb.Struct, error) + // GetGenesisSSZ returns the genesis file of the node + GetGenesisSSZ(context.Context, *emptypb.Empty) (*ResponseFileData, error) + // GetConfigFile returns the config file of the node + GetConfigFile(context.Context, *emptypb.Empty) (*ResponseFileData, error) // GetKeysFile returns the keys of the node GetKeys(context.Context, *emptypb.Empty) (*Keys, error) // GetPrivKeys returns the keys of the node @@ -170,9 +200,12 @@ type ExposerServer interface { mustEmbedUnimplementedExposerServer() } -// UnimplementedExposerServer must be embedded to have forward compatible implementations. -type UnimplementedExposerServer struct { -} +// UnimplementedExposerServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedExposerServer struct{} func (UnimplementedExposerServer) GetNodeID(context.Context, *emptypb.Empty) (*ResponseNodeID, error) { return nil, status.Errorf(codes.Unimplemented, "method GetNodeID not implemented") @@ -183,6 +216,12 @@ func (UnimplementedExposerServer) GetPubKey(context.Context, *emptypb.Empty) (*R func (UnimplementedExposerServer) GetGenesisFile(context.Context, *emptypb.Empty) (*structpb.Struct, error) { return nil, status.Errorf(codes.Unimplemented, "method GetGenesisFile not implemented") } +func (UnimplementedExposerServer) GetGenesisSSZ(context.Context, *emptypb.Empty) (*ResponseFileData, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetGenesisSSZ not implemented") +} +func (UnimplementedExposerServer) GetConfigFile(context.Context, *emptypb.Empty) (*ResponseFileData, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetConfigFile not implemented") +} func (UnimplementedExposerServer) GetKeys(context.Context, *emptypb.Empty) (*Keys, error) { return nil, status.Errorf(codes.Unimplemented, "method GetKeys not implemented") } @@ -199,6 +238,7 @@ func (UnimplementedExposerServer) CreateChannel(context.Context, *RequestCreateC return nil, status.Errorf(codes.Unimplemented, "method CreateChannel not implemented") } func (UnimplementedExposerServer) mustEmbedUnimplementedExposerServer() {} +func (UnimplementedExposerServer) testEmbeddedByValue() {} // UnsafeExposerServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ExposerServer will @@ -208,6 +248,13 @@ type UnsafeExposerServer interface { } func RegisterExposerServer(s grpc.ServiceRegistrar, srv ExposerServer) { + // If the following call pancis, it indicates UnimplementedExposerServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Exposer_ServiceDesc, srv) } @@ -265,6 +312,42 @@ func _Exposer_GetGenesisFile_Handler(srv interface{}, ctx context.Context, dec f return interceptor(ctx, in, info, handler) } +func _Exposer_GetGenesisSSZ_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.(ExposerServer).GetGenesisSSZ(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Exposer_GetGenesisSSZ_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ExposerServer).GetGenesisSSZ(ctx, req.(*emptypb.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _Exposer_GetConfigFile_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.(ExposerServer).GetConfigFile(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Exposer_GetConfigFile_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ExposerServer).GetConfigFile(ctx, req.(*emptypb.Empty)) + } + return interceptor(ctx, in, info, handler) +} + func _Exposer_GetKeys_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 { @@ -374,6 +457,14 @@ var Exposer_ServiceDesc = grpc.ServiceDesc{ MethodName: "GetGenesisFile", Handler: _Exposer_GetGenesisFile_Handler, }, + { + MethodName: "GetGenesisSSZ", + Handler: _Exposer_GetGenesisSSZ_Handler, + }, + { + MethodName: "GetConfigFile", + Handler: _Exposer_GetConfigFile_Handler, + }, { MethodName: "GetKeys", Handler: _Exposer_GetKeys_Handler, diff --git a/starship/exposer/handler_chain.go b/starship/exposer/handler_chain.go index bcaa7ab2e..de8f1063f 100644 --- a/starship/exposer/handler_chain.go +++ b/starship/exposer/handler_chain.go @@ -95,6 +95,26 @@ func (a *AppServer) GetGenesisFile(ctx context.Context, _ *emptypb.Empty) (*stru return structpb.NewStruct(state) } +func (a *AppServer) GetGenesisSSZ(ctx context.Context, _ *emptypb.Empty) (*pb.ResponseFileData, error) { + data, err := os.ReadFile(a.config.GenesisSSZ) + if err != nil { + return nil, err + } + + // Return the file as raw bytes + return &pb.ResponseFileData{Data: data}, nil +} + +func (a *AppServer) GetConfigFile(ctx context.Context, _ *emptypb.Empty) (*pb.ResponseFileData, error) { + data, err := os.ReadFile(a.config.ConfigFile) + if err != nil { + return nil, err + } + + // Return the file as raw bytes + return &pb.ResponseFileData{Data: data}, nil +} + func (a *AppServer) GetKeys(ctx context.Context, _ *emptypb.Empty) (*pb.Keys, error) { jsonFile, err := os.Open(a.config.MnemonicFile) if err != nil { diff --git a/starship/faucet/faucet/service.pb.go b/starship/faucet/faucet/service.pb.go index b73765faa..6769d7b00 100644 --- a/starship/faucet/faucet/service.pb.go +++ b/starship/faucet/faucet/service.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.36.4 // protoc (unknown) // source: faucet/service.proto @@ -14,6 +14,7 @@ import ( emptypb "google.golang.org/protobuf/types/known/emptypb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -24,21 +25,18 @@ const ( ) type RequestCredit struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` unknownFields protoimpl.UnknownFields - - Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RequestCredit) Reset() { *x = RequestCredit{} - if protoimpl.UnsafeEnabled { - mi := &file_faucet_service_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_faucet_service_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RequestCredit) String() string { @@ -49,7 +47,7 @@ func (*RequestCredit) ProtoMessage() {} func (x *RequestCredit) ProtoReflect() protoreflect.Message { mi := &file_faucet_service_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -79,20 +77,17 @@ func (x *RequestCredit) GetAddress() string { } type ResponseCredit struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` unknownFields protoimpl.UnknownFields - - Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ResponseCredit) Reset() { *x = ResponseCredit{} - if protoimpl.UnsafeEnabled { - mi := &file_faucet_service_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_faucet_service_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ResponseCredit) String() string { @@ -103,7 +98,7 @@ func (*ResponseCredit) ProtoMessage() {} func (x *ResponseCredit) ProtoReflect() protoreflect.Message { mi := &file_faucet_service_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -127,7 +122,7 @@ func (x *ResponseCredit) GetStatus() string { var File_faucet_service_proto protoreflect.FileDescriptor -var file_faucet_service_proto_rawDesc = []byte{ +var file_faucet_service_proto_rawDesc = string([]byte{ 0x0a, 0x14, 0x66, 0x61, 0x75, 0x63, 0x65, 0x74, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x66, 0x61, 0x75, 0x63, 0x65, 0x74, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, @@ -153,25 +148,25 @@ var file_faucet_service_proto_rawDesc = []byte{ 0x65, 0x73, 0x74, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x1a, 0x16, 0x2e, 0x66, 0x61, 0x75, 0x63, 0x65, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x22, 0x12, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0c, 0x3a, 0x01, 0x2a, 0x22, 0x07, 0x2f, 0x63, - 0x72, 0x65, 0x64, 0x69, 0x74, 0x42, 0x7d, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x75, + 0x72, 0x65, 0x64, 0x69, 0x74, 0x42, 0x7a, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x75, 0x63, 0x65, 0x74, 0x42, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, - 0x6f, 0x50, 0x01, 0x5a, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x2d, 0x74, 0x65, 0x63, 0x68, 0x2f, 0x73, - 0x74, 0x61, 0x72, 0x73, 0x68, 0x69, 0x70, 0x2f, 0x66, 0x61, 0x75, 0x63, 0x65, 0x74, 0xa2, 0x02, - 0x03, 0x46, 0x58, 0x58, 0xaa, 0x02, 0x06, 0x46, 0x61, 0x75, 0x63, 0x65, 0x74, 0xca, 0x02, 0x06, - 0x46, 0x61, 0x75, 0x63, 0x65, 0x74, 0xe2, 0x02, 0x12, 0x46, 0x61, 0x75, 0x63, 0x65, 0x74, 0x5c, - 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x06, 0x46, 0x61, - 0x75, 0x63, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} + 0x6f, 0x50, 0x01, 0x5a, 0x26, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x68, 0x79, 0x70, 0x65, 0x72, 0x77, 0x65, 0x62, 0x2d, 0x69, 0x6f, 0x2f, 0x73, 0x74, 0x61, 0x72, + 0x73, 0x68, 0x69, 0x70, 0x2f, 0x66, 0x61, 0x75, 0x63, 0x65, 0x74, 0xa2, 0x02, 0x03, 0x46, 0x58, + 0x58, 0xaa, 0x02, 0x06, 0x46, 0x61, 0x75, 0x63, 0x65, 0x74, 0xca, 0x02, 0x06, 0x46, 0x61, 0x75, + 0x63, 0x65, 0x74, 0xe2, 0x02, 0x12, 0x46, 0x61, 0x75, 0x63, 0x65, 0x74, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x06, 0x46, 0x61, 0x75, 0x63, 0x65, + 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +}) var ( file_faucet_service_proto_rawDescOnce sync.Once - file_faucet_service_proto_rawDescData = file_faucet_service_proto_rawDesc + file_faucet_service_proto_rawDescData []byte ) func file_faucet_service_proto_rawDescGZIP() []byte { file_faucet_service_proto_rawDescOnce.Do(func() { - file_faucet_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_faucet_service_proto_rawDescData) + file_faucet_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_faucet_service_proto_rawDesc), len(file_faucet_service_proto_rawDesc))) }) return file_faucet_service_proto_rawDescData } @@ -201,37 +196,11 @@ func file_faucet_service_proto_init() { return } file_faucet_status_proto_init() - if !protoimpl.UnsafeEnabled { - file_faucet_service_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*RequestCredit); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_faucet_service_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*ResponseCredit); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_faucet_service_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_faucet_service_proto_rawDesc), len(file_faucet_service_proto_rawDesc)), NumEnums: 0, NumMessages: 2, NumExtensions: 0, @@ -242,7 +211,6 @@ func file_faucet_service_proto_init() { MessageInfos: file_faucet_service_proto_msgTypes, }.Build() File_faucet_service_proto = out.File - file_faucet_service_proto_rawDesc = nil file_faucet_service_proto_goTypes = nil file_faucet_service_proto_depIdxs = nil } diff --git a/starship/faucet/faucet/service.pb.gw.go b/starship/faucet/faucet/service.pb.gw.go index 24c6f7efe..d0fd46481 100644 --- a/starship/faucet/faucet/service.pb.gw.go +++ b/starship/faucet/faucet/service.pb.gw.go @@ -10,6 +10,7 @@ package faucet import ( "context" + "errors" "io" "net/http" @@ -25,72 +26,71 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = errors.New + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_Faucet_Status_0(ctx context.Context, marshaler runtime.Marshaler, client FaucetClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq emptypb.Empty - var metadata runtime.ServerMetadata - + var ( + protoReq emptypb.Empty + metadata runtime.ServerMetadata + ) msg, err := client.Status(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Faucet_Status_0(ctx context.Context, marshaler runtime.Marshaler, server FaucetServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq emptypb.Empty - var metadata runtime.ServerMetadata - + var ( + protoReq emptypb.Empty + metadata runtime.ServerMetadata + ) msg, err := server.Status(ctx, &protoReq) return msg, metadata, err - } func request_Faucet_Credit_0(ctx context.Context, marshaler runtime.Marshaler, client FaucetClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RequestCredit - var metadata runtime.ServerMetadata - - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq RequestCredit + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.Credit(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Faucet_Credit_0(ctx context.Context, marshaler runtime.Marshaler, server FaucetServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RequestCredit - var metadata runtime.ServerMetadata - - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq RequestCredit + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.Credit(ctx, &protoReq) return msg, metadata, err - } // RegisterFaucetHandlerServer registers the http handlers for service Faucet to "mux". // UnaryRPC :call FaucetServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterFaucetHandlerFromEndpoint instead. +// GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call. func RegisterFaucetHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FaucetServer) error { - - mux.Handle("GET", pattern_Faucet_Status_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Faucet_Status_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/faucet.Faucet/Status", runtime.WithHTTPPathPattern("/status")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/faucet.Faucet/Status", runtime.WithHTTPPathPattern("/status")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -102,20 +102,15 @@ func RegisterFaucetHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Faucet_Status_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Faucet_Credit_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Faucet_Credit_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/faucet.Faucet/Credit", runtime.WithHTTPPathPattern("/credit")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/faucet.Faucet/Credit", runtime.WithHTTPPathPattern("/credit")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -127,9 +122,7 @@ func RegisterFaucetHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Faucet_Credit_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -156,7 +149,6 @@ func RegisterFaucetHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMu } }() }() - return RegisterFaucetHandler(ctx, mux, conn) } @@ -170,16 +162,13 @@ func RegisterFaucetHandler(ctx context.Context, mux *runtime.ServeMux, conn *grp // to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "FaucetClient". // Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "FaucetClient" // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "FaucetClient" to call the correct interceptors. +// "FaucetClient" to call the correct interceptors. This client ignores the HTTP middlewares. func RegisterFaucetHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FaucetClient) error { - - mux.Handle("GET", pattern_Faucet_Status_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Faucet_Status_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/faucet.Faucet/Status", runtime.WithHTTPPathPattern("/status")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/faucet.Faucet/Status", runtime.WithHTTPPathPattern("/status")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -190,18 +179,13 @@ func RegisterFaucetHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Faucet_Status_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Faucet_Credit_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Faucet_Credit_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/faucet.Faucet/Credit", runtime.WithHTTPPathPattern("/credit")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/faucet.Faucet/Credit", runtime.WithHTTPPathPattern("/credit")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -212,22 +196,17 @@ func RegisterFaucetHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Faucet_Credit_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - return nil } var ( pattern_Faucet_Status_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"status"}, "")) - pattern_Faucet_Credit_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"credit"}, "")) ) var ( forward_Faucet_Status_0 = runtime.ForwardResponseMessage - forward_Faucet_Credit_0 = runtime.ForwardResponseMessage ) diff --git a/starship/faucet/faucet/service_grpc.pb.go b/starship/faucet/faucet/service_grpc.pb.go index 160763394..315695448 100644 --- a/starship/faucet/faucet/service_grpc.pb.go +++ b/starship/faucet/faucet/service_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.4.0 +// - protoc-gen-go-grpc v1.5.1 // - protoc (unknown) // source: faucet/service.proto @@ -16,8 +16,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.62.0 or later. -const _ = grpc.SupportPackageIsVersion8 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( Faucet_Status_FullMethodName = "/faucet.Faucet/Status" @@ -66,7 +66,7 @@ func (c *faucetClient) Credit(ctx context.Context, in *RequestCredit, opts ...gr // FaucetServer is the server API for Faucet service. // All implementations must embed UnimplementedFaucetServer -// for forward compatibility +// for forward compatibility. // // Interface for service type FaucetServer interface { @@ -77,9 +77,12 @@ type FaucetServer interface { mustEmbedUnimplementedFaucetServer() } -// UnimplementedFaucetServer must be embedded to have forward compatible implementations. -type UnimplementedFaucetServer struct { -} +// UnimplementedFaucetServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedFaucetServer struct{} func (UnimplementedFaucetServer) Status(context.Context, *emptypb.Empty) (*State, error) { return nil, status.Errorf(codes.Unimplemented, "method Status not implemented") @@ -88,6 +91,7 @@ func (UnimplementedFaucetServer) Credit(context.Context, *RequestCredit) (*Respo return nil, status.Errorf(codes.Unimplemented, "method Credit not implemented") } func (UnimplementedFaucetServer) mustEmbedUnimplementedFaucetServer() {} +func (UnimplementedFaucetServer) testEmbeddedByValue() {} // UnsafeFaucetServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to FaucetServer will @@ -97,6 +101,13 @@ type UnsafeFaucetServer interface { } func RegisterFaucetServer(s grpc.ServiceRegistrar, srv FaucetServer) { + // If the following call pancis, it indicates UnimplementedFaucetServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Faucet_ServiceDesc, srv) } diff --git a/starship/faucet/faucet/status.pb.go b/starship/faucet/faucet/status.pb.go index abb0d18b0..4cc332877 100644 --- a/starship/faucet/faucet/status.pb.go +++ b/starship/faucet/faucet/status.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.36.4 // protoc (unknown) // source: faucet/status.proto @@ -12,6 +12,7 @@ import ( _ "google.golang.org/protobuf/types/descriptorpb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -22,21 +23,18 @@ const ( ) type Coin struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` + Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` unknownFields protoimpl.UnknownFields - - Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` - Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Coin) Reset() { *x = Coin{} - if protoimpl.UnsafeEnabled { - mi := &file_faucet_status_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_faucet_status_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Coin) String() string { @@ -47,7 +45,7 @@ func (*Coin) ProtoMessage() {} func (x *Coin) ProtoReflect() protoreflect.Message { mi := &file_faucet_status_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -77,21 +75,18 @@ func (x *Coin) GetAmount() string { } type AddressBalance struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Balance []*Coin `protobuf:"bytes,2,rep,name=balance,proto3" json:"balance,omitempty"` unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Balance []*Coin `protobuf:"bytes,2,rep,name=balance,proto3" json:"balance,omitempty"` + sizeCache protoimpl.SizeCache } func (x *AddressBalance) Reset() { *x = AddressBalance{} - if protoimpl.UnsafeEnabled { - mi := &file_faucet_status_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_faucet_status_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AddressBalance) String() string { @@ -102,7 +97,7 @@ func (*AddressBalance) ProtoMessage() {} func (x *AddressBalance) ProtoReflect() protoreflect.Message { mi := &file_faucet_status_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -132,26 +127,23 @@ func (x *AddressBalance) GetBalance() []*Coin { } type State struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - NodeUrl string `protobuf:"bytes,2,opt,name=node_url,json=nodeUrl,proto3" json:"node_url,omitempty"` - ChainId string `protobuf:"bytes,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - ChainTokens []string `protobuf:"bytes,4,rep,name=chain_tokens,json=chainTokens,proto3" json:"chain_tokens,omitempty"` - AvailableTokens []string `protobuf:"bytes,5,rep,name=available_tokens,json=availableTokens,proto3" json:"available_tokens,omitempty"` - Holder *AddressBalance `protobuf:"bytes,6,opt,name=holder,proto3" json:"holder,omitempty"` - Distributors []*AddressBalance `protobuf:"bytes,7,rep,name=distributors,proto3" json:"distributors,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + NodeUrl string `protobuf:"bytes,2,opt,name=node_url,json=nodeUrl,proto3" json:"node_url,omitempty"` + ChainId string `protobuf:"bytes,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + ChainTokens []string `protobuf:"bytes,4,rep,name=chain_tokens,json=chainTokens,proto3" json:"chain_tokens,omitempty"` + AvailableTokens []string `protobuf:"bytes,5,rep,name=available_tokens,json=availableTokens,proto3" json:"available_tokens,omitempty"` + Holder *AddressBalance `protobuf:"bytes,6,opt,name=holder,proto3" json:"holder,omitempty"` + Distributors []*AddressBalance `protobuf:"bytes,7,rep,name=distributors,proto3" json:"distributors,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *State) Reset() { *x = State{} - if protoimpl.UnsafeEnabled { - mi := &file_faucet_status_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_faucet_status_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *State) String() string { @@ -162,7 +154,7 @@ func (*State) ProtoMessage() {} func (x *State) ProtoReflect() protoreflect.Message { mi := &file_faucet_status_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -228,7 +220,7 @@ func (x *State) GetDistributors() []*AddressBalance { var File_faucet_status_proto protoreflect.FileDescriptor -var file_faucet_status_proto_rawDesc = []byte{ +var file_faucet_status_proto_rawDesc = string([]byte{ 0x0a, 0x13, 0x66, 0x61, 0x75, 0x63, 0x65, 0x74, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x66, 0x61, 0x75, 0x63, 0x65, 0x74, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, @@ -258,26 +250,25 @@ var file_faucet_status_proto_rawDesc = []byte{ 0x3a, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x61, 0x75, 0x63, 0x65, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x0c, 0x64, - 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x73, 0x42, 0x7c, 0x0a, 0x0a, 0x63, + 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x73, 0x42, 0x79, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x75, 0x63, 0x65, 0x74, 0x42, 0x0b, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x2d, 0x74, - 0x65, 0x63, 0x68, 0x2f, 0x73, 0x74, 0x61, 0x72, 0x73, 0x68, 0x69, 0x70, 0x2f, 0x66, 0x61, 0x75, - 0x63, 0x65, 0x74, 0xa2, 0x02, 0x03, 0x46, 0x58, 0x58, 0xaa, 0x02, 0x06, 0x46, 0x61, 0x75, 0x63, - 0x65, 0x74, 0xca, 0x02, 0x06, 0x46, 0x61, 0x75, 0x63, 0x65, 0x74, 0xe2, 0x02, 0x12, 0x46, 0x61, - 0x75, 0x63, 0x65, 0x74, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0xea, 0x02, 0x06, 0x46, 0x61, 0x75, 0x63, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, -} + 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x26, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x79, 0x70, 0x65, 0x72, 0x77, 0x65, 0x62, 0x2d, 0x69, 0x6f, + 0x2f, 0x73, 0x74, 0x61, 0x72, 0x73, 0x68, 0x69, 0x70, 0x2f, 0x66, 0x61, 0x75, 0x63, 0x65, 0x74, + 0xa2, 0x02, 0x03, 0x46, 0x58, 0x58, 0xaa, 0x02, 0x06, 0x46, 0x61, 0x75, 0x63, 0x65, 0x74, 0xca, + 0x02, 0x06, 0x46, 0x61, 0x75, 0x63, 0x65, 0x74, 0xe2, 0x02, 0x12, 0x46, 0x61, 0x75, 0x63, 0x65, + 0x74, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x06, + 0x46, 0x61, 0x75, 0x63, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +}) var ( file_faucet_status_proto_rawDescOnce sync.Once - file_faucet_status_proto_rawDescData = file_faucet_status_proto_rawDesc + file_faucet_status_proto_rawDescData []byte ) func file_faucet_status_proto_rawDescGZIP() []byte { file_faucet_status_proto_rawDescOnce.Do(func() { - file_faucet_status_proto_rawDescData = protoimpl.X.CompressGZIP(file_faucet_status_proto_rawDescData) + file_faucet_status_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_faucet_status_proto_rawDesc), len(file_faucet_status_proto_rawDesc))) }) return file_faucet_status_proto_rawDescData } @@ -304,49 +295,11 @@ func file_faucet_status_proto_init() { if File_faucet_status_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_faucet_status_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*Coin); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_faucet_status_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*AddressBalance); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_faucet_status_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*State); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_faucet_status_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_faucet_status_proto_rawDesc), len(file_faucet_status_proto_rawDesc)), NumEnums: 0, NumMessages: 3, NumExtensions: 0, @@ -357,7 +310,6 @@ func file_faucet_status_proto_init() { MessageInfos: file_faucet_status_proto_msgTypes, }.Build() File_faucet_status_proto = out.File - file_faucet_status_proto_rawDesc = nil file_faucet_status_proto_goTypes = nil file_faucet_status_proto_depIdxs = nil } diff --git a/starship/proto/exposer/service.proto b/starship/proto/exposer/service.proto index 61c95a85d..ccf6b2b22 100644 --- a/starship/proto/exposer/service.proto +++ b/starship/proto/exposer/service.proto @@ -26,6 +26,14 @@ service Exposer { rpc GetGenesisFile(google.protobuf.Empty) returns (google.protobuf.Struct) { option (google.api.http) = { get: "/genesis" }; } + // GetGenesisSSZ returns the genesis file of the node + rpc GetGenesisSSZ(google.protobuf.Empty) returns (ResponseFileData) { + option (google.api.http) = { get: "/genesis_ssz" }; + } + // GetConfigFile returns the config file of the node + rpc GetConfigFile(google.protobuf.Empty) returns (ResponseFileData) { + option (google.api.http) = { get: "/config" }; + } // GetKeysFile returns the keys of the node rpc GetKeys(google.protobuf.Empty) returns (Keys) { option (google.api.http) = { get: "/keys" }; diff --git a/starship/registry/registry/chain.pb.go b/starship/registry/registry/chain.pb.go index bb666f3bd..4e53df184 100644 --- a/starship/registry/registry/chain.pb.go +++ b/starship/registry/registry/chain.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.36.4 // protoc (unknown) // source: registry/chain.proto @@ -12,6 +12,7 @@ import ( _ "google.golang.org/protobuf/types/descriptorpb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -22,24 +23,21 @@ const ( ) type FeeTokens struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` - FixedMinGasPrice float64 `protobuf:"fixed64,2,opt,name=fixed_min_gas_price,proto3" json:"fixed_min_gas_price,omitempty"` - LowGasPrice float64 `protobuf:"fixed64,3,opt,name=low_gas_price,proto3" json:"low_gas_price,omitempty"` - AverageGasPrice float64 `protobuf:"fixed64,4,opt,name=average_gas_price,proto3" json:"average_gas_price,omitempty"` - HighGasPrice float64 `protobuf:"fixed64,5,opt,name=high_gas_price,proto3" json:"high_gas_price,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` + FixedMinGasPrice float64 `protobuf:"fixed64,2,opt,name=fixed_min_gas_price,proto3" json:"fixed_min_gas_price,omitempty"` + LowGasPrice float64 `protobuf:"fixed64,3,opt,name=low_gas_price,proto3" json:"low_gas_price,omitempty"` + AverageGasPrice float64 `protobuf:"fixed64,4,opt,name=average_gas_price,proto3" json:"average_gas_price,omitempty"` + HighGasPrice float64 `protobuf:"fixed64,5,opt,name=high_gas_price,proto3" json:"high_gas_price,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *FeeTokens) Reset() { *x = FeeTokens{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_chain_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_chain_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FeeTokens) String() string { @@ -50,7 +48,7 @@ func (*FeeTokens) ProtoMessage() {} func (x *FeeTokens) ProtoReflect() protoreflect.Message { mi := &file_registry_chain_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -101,20 +99,17 @@ func (x *FeeTokens) GetHighGasPrice() float64 { } type Fees struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + FeeTokens []*FeeTokens `protobuf:"bytes,1,rep,name=fee_tokens,proto3" json:"fee_tokens,omitempty"` unknownFields protoimpl.UnknownFields - - FeeTokens []*FeeTokens `protobuf:"bytes,1,rep,name=fee_tokens,proto3" json:"fee_tokens,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Fees) Reset() { *x = Fees{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_chain_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_chain_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Fees) String() string { @@ -125,7 +120,7 @@ func (*Fees) ProtoMessage() {} func (x *Fees) ProtoReflect() protoreflect.Message { mi := &file_registry_chain_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -148,20 +143,17 @@ func (x *Fees) GetFeeTokens() []*FeeTokens { } type StakingTokens struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` unknownFields protoimpl.UnknownFields - - Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` + sizeCache protoimpl.SizeCache } func (x *StakingTokens) Reset() { *x = StakingTokens{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_chain_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_chain_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StakingTokens) String() string { @@ -172,7 +164,7 @@ func (*StakingTokens) ProtoMessage() {} func (x *StakingTokens) ProtoReflect() protoreflect.Message { mi := &file_registry_chain_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -195,24 +187,21 @@ func (x *StakingTokens) GetDenom() string { } type LockDuration struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Duration: + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Duration: // // *LockDuration_Blocks // *LockDuration_Time - Duration isLockDuration_Duration `protobuf_oneof:"duration"` + Duration isLockDuration_Duration `protobuf_oneof:"duration"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *LockDuration) Reset() { *x = LockDuration{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_chain_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_chain_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LockDuration) String() string { @@ -223,7 +212,7 @@ func (*LockDuration) ProtoMessage() {} func (x *LockDuration) ProtoReflect() protoreflect.Message { mi := &file_registry_chain_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -238,23 +227,27 @@ func (*LockDuration) Descriptor() ([]byte, []int) { return file_registry_chain_proto_rawDescGZIP(), []int{3} } -func (m *LockDuration) GetDuration() isLockDuration_Duration { - if m != nil { - return m.Duration +func (x *LockDuration) GetDuration() isLockDuration_Duration { + if x != nil { + return x.Duration } return nil } func (x *LockDuration) GetBlocks() uint32 { - if x, ok := x.GetDuration().(*LockDuration_Blocks); ok { - return x.Blocks + if x != nil { + if x, ok := x.Duration.(*LockDuration_Blocks); ok { + return x.Blocks + } } return 0 } func (x *LockDuration) GetTime() string { - if x, ok := x.GetDuration().(*LockDuration_Time); ok { - return x.Time + if x != nil { + if x, ok := x.Duration.(*LockDuration_Time); ok { + return x.Time + } } return "" } @@ -276,21 +269,18 @@ func (*LockDuration_Blocks) isLockDuration_Duration() {} func (*LockDuration_Time) isLockDuration_Duration() {} type Staking struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + StakingTokens []*StakingTokens `protobuf:"bytes,1,rep,name=staking_tokens,proto3" json:"staking_tokens,omitempty"` + LockDuration *LockDuration `protobuf:"bytes,2,opt,name=lock_duration,proto3,oneof" json:"lock_duration,omitempty"` unknownFields protoimpl.UnknownFields - - StakingTokens []*StakingTokens `protobuf:"bytes,1,rep,name=staking_tokens,proto3" json:"staking_tokens,omitempty"` - LockDuration *LockDuration `protobuf:"bytes,2,opt,name=lock_duration,proto3,oneof" json:"lock_duration,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Staking) Reset() { *x = Staking{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_chain_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_chain_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Staking) String() string { @@ -301,7 +291,7 @@ func (*Staking) ProtoMessage() {} func (x *Staking) ProtoReflect() protoreflect.Message { mi := &file_registry_chain_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -331,22 +321,19 @@ func (x *Staking) GetLockDuration() *LockDuration { } type Genesis struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + GenesisUrl string `protobuf:"bytes,2,opt,name=genesis_url,proto3" json:"genesis_url,omitempty"` + IcsCcvUrl *string `protobuf:"bytes,3,opt,name=ics_ccv_url,proto3,oneof" json:"ics_ccv_url,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - GenesisUrl string `protobuf:"bytes,2,opt,name=genesis_url,proto3" json:"genesis_url,omitempty"` - IcsCcvUrl *string `protobuf:"bytes,3,opt,name=ics_ccv_url,proto3,oneof" json:"ics_ccv_url,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Genesis) Reset() { *x = Genesis{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_chain_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_chain_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Genesis) String() string { @@ -357,7 +344,7 @@ func (*Genesis) ProtoMessage() {} func (x *Genesis) ProtoReflect() protoreflect.Message { mi := &file_registry_chain_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -394,36 +381,33 @@ func (x *Genesis) GetIcsCcvUrl() string { } type Versions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` - Height uint32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` - Proposal *string `protobuf:"bytes,4,opt,name=proposal,proto3,oneof" json:"proposal,omitempty"` - PreviousVersionName *string `protobuf:"bytes,5,opt,name=previous_version_name,proto3,oneof" json:"previous_version_name,omitempty"` - NextVersionName *string `protobuf:"bytes,6,opt,name=next_version_name,proto3,oneof" json:"next_version_name,omitempty"` - RecommendedVersion *string `protobuf:"bytes,7,opt,name=recommended_version,proto3,oneof" json:"recommended_version,omitempty"` - GoVersion *string `protobuf:"bytes,8,opt,name=go_version,proto3,oneof" json:"go_version,omitempty"` - CompatibleVersions []string `protobuf:"bytes,9,rep,name=compatible_versions,proto3" json:"compatible_versions,omitempty"` - CosmosSdkVersion *string `protobuf:"bytes,10,opt,name=cosmos_sdk_version,proto3,oneof" json:"cosmos_sdk_version,omitempty"` - Consensus *Versions_Consensus `protobuf:"bytes,11,opt,name=consensus,proto3,oneof" json:"consensus,omitempty"` - CosmwasmVersion *string `protobuf:"bytes,12,opt,name=cosmwasm_version,proto3,oneof" json:"cosmwasm_version,omitempty"` - CosmwasmEnabled *bool `protobuf:"varint,13,opt,name=cosmwasm_enabled,proto3,oneof" json:"cosmwasm_enabled,omitempty"` - CosmwasmPath *string `protobuf:"bytes,14,opt,name=cosmwasm_path,proto3,oneof" json:"cosmwasm_path,omitempty"` - IbcGoVersion *string `protobuf:"bytes,15,opt,name=ibc_go_version,proto3,oneof" json:"ibc_go_version,omitempty"` - IcsEnabled []string `protobuf:"bytes,16,rep,name=ics_enabled,proto3" json:"ics_enabled,omitempty"` - Binaries *Versions_Binaries `protobuf:"bytes,17,opt,name=binaries,proto3,oneof" json:"binaries,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` + Height uint32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` + Proposal *string `protobuf:"bytes,4,opt,name=proposal,proto3,oneof" json:"proposal,omitempty"` + PreviousVersionName *string `protobuf:"bytes,5,opt,name=previous_version_name,proto3,oneof" json:"previous_version_name,omitempty"` + NextVersionName *string `protobuf:"bytes,6,opt,name=next_version_name,proto3,oneof" json:"next_version_name,omitempty"` + RecommendedVersion *string `protobuf:"bytes,7,opt,name=recommended_version,proto3,oneof" json:"recommended_version,omitempty"` + GoVersion *string `protobuf:"bytes,8,opt,name=go_version,proto3,oneof" json:"go_version,omitempty"` + CompatibleVersions []string `protobuf:"bytes,9,rep,name=compatible_versions,proto3" json:"compatible_versions,omitempty"` + CosmosSdkVersion *string `protobuf:"bytes,10,opt,name=cosmos_sdk_version,proto3,oneof" json:"cosmos_sdk_version,omitempty"` + Consensus *Versions_Consensus `protobuf:"bytes,11,opt,name=consensus,proto3,oneof" json:"consensus,omitempty"` + CosmwasmVersion *string `protobuf:"bytes,12,opt,name=cosmwasm_version,proto3,oneof" json:"cosmwasm_version,omitempty"` + CosmwasmEnabled *bool `protobuf:"varint,13,opt,name=cosmwasm_enabled,proto3,oneof" json:"cosmwasm_enabled,omitempty"` + CosmwasmPath *string `protobuf:"bytes,14,opt,name=cosmwasm_path,proto3,oneof" json:"cosmwasm_path,omitempty"` + IbcGoVersion *string `protobuf:"bytes,15,opt,name=ibc_go_version,proto3,oneof" json:"ibc_go_version,omitempty"` + IcsEnabled []string `protobuf:"bytes,16,rep,name=ics_enabled,proto3" json:"ics_enabled,omitempty"` + Binaries *Versions_Binaries `protobuf:"bytes,17,opt,name=binaries,proto3,oneof" json:"binaries,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Versions) Reset() { *x = Versions{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_chain_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_chain_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Versions) String() string { @@ -434,7 +418,7 @@ func (*Versions) ProtoMessage() {} func (x *Versions) ProtoReflect() protoreflect.Message { mi := &file_registry_chain_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -569,32 +553,29 @@ func (x *Versions) GetBinaries() *Versions_Binaries { } type Codebase struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - GitRepo string `protobuf:"bytes,1,opt,name=git_repo,proto3" json:"git_repo,omitempty"` - RecommendedVersion *string `protobuf:"bytes,2,opt,name=recommended_version,proto3,oneof" json:"recommended_version,omitempty"` - CompatibleVersions []string `protobuf:"bytes,3,rep,name=compatible_versions,proto3" json:"compatible_versions,omitempty"` - Binaries *Versions_Binaries `protobuf:"bytes,4,opt,name=binaries,proto3,oneof" json:"binaries,omitempty"` - CosmosSdkVersion *string `protobuf:"bytes,5,opt,name=cosmos_sdk_version,proto3,oneof" json:"cosmos_sdk_version,omitempty"` - Consensus *Codebase_Consensus `protobuf:"bytes,6,opt,name=consensus,proto3,oneof" json:"consensus,omitempty"` - CosmwasmVersion *string `protobuf:"bytes,7,opt,name=cosmwasm_version,proto3,oneof" json:"cosmwasm_version,omitempty"` - CosmwasmEnabled *bool `protobuf:"varint,8,opt,name=cosmwasm_enabled,proto3,oneof" json:"cosmwasm_enabled,omitempty"` - CosmwasmPath *string `protobuf:"bytes,9,opt,name=cosmwasm_path,proto3,oneof" json:"cosmwasm_path,omitempty"` - IbcGoVersion *string `protobuf:"bytes,10,opt,name=ibc_go_version,proto3,oneof" json:"ibc_go_version,omitempty"` - IcsEnabled []string `protobuf:"bytes,11,rep,name=ics_enabled,proto3" json:"ics_enabled,omitempty"` - Genesis *Genesis `protobuf:"bytes,12,opt,name=genesis,proto3,oneof" json:"genesis,omitempty"` - Versions []*Versions `protobuf:"bytes,13,rep,name=versions,proto3" json:"versions,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + GitRepo string `protobuf:"bytes,1,opt,name=git_repo,proto3" json:"git_repo,omitempty"` + RecommendedVersion *string `protobuf:"bytes,2,opt,name=recommended_version,proto3,oneof" json:"recommended_version,omitempty"` + CompatibleVersions []string `protobuf:"bytes,3,rep,name=compatible_versions,proto3" json:"compatible_versions,omitempty"` + Binaries *Versions_Binaries `protobuf:"bytes,4,opt,name=binaries,proto3,oneof" json:"binaries,omitempty"` + CosmosSdkVersion *string `protobuf:"bytes,5,opt,name=cosmos_sdk_version,proto3,oneof" json:"cosmos_sdk_version,omitempty"` + Consensus *Codebase_Consensus `protobuf:"bytes,6,opt,name=consensus,proto3,oneof" json:"consensus,omitempty"` + CosmwasmVersion *string `protobuf:"bytes,7,opt,name=cosmwasm_version,proto3,oneof" json:"cosmwasm_version,omitempty"` + CosmwasmEnabled *bool `protobuf:"varint,8,opt,name=cosmwasm_enabled,proto3,oneof" json:"cosmwasm_enabled,omitempty"` + CosmwasmPath *string `protobuf:"bytes,9,opt,name=cosmwasm_path,proto3,oneof" json:"cosmwasm_path,omitempty"` + IbcGoVersion *string `protobuf:"bytes,10,opt,name=ibc_go_version,proto3,oneof" json:"ibc_go_version,omitempty"` + IcsEnabled []string `protobuf:"bytes,11,rep,name=ics_enabled,proto3" json:"ics_enabled,omitempty"` + Genesis *Genesis `protobuf:"bytes,12,opt,name=genesis,proto3,oneof" json:"genesis,omitempty"` + Versions []*Versions `protobuf:"bytes,13,rep,name=versions,proto3" json:"versions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Codebase) Reset() { *x = Codebase{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_chain_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_chain_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Codebase) String() string { @@ -605,7 +586,7 @@ func (*Codebase) ProtoMessage() {} func (x *Codebase) ProtoReflect() protoreflect.Message { mi := &file_registry_chain_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -712,21 +693,18 @@ func (x *Codebase) GetVersions() []*Versions { } type LogoURIs struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Png string `protobuf:"bytes,1,opt,name=png,proto3" json:"png,omitempty"` + Svg string `protobuf:"bytes,2,opt,name=svg,proto3" json:"svg,omitempty"` unknownFields protoimpl.UnknownFields - - Png string `protobuf:"bytes,1,opt,name=png,proto3" json:"png,omitempty"` - Svg string `protobuf:"bytes,2,opt,name=svg,proto3" json:"svg,omitempty"` + sizeCache protoimpl.SizeCache } func (x *LogoURIs) Reset() { *x = LogoURIs{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_chain_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_chain_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LogoURIs) String() string { @@ -737,7 +715,7 @@ func (*LogoURIs) ProtoMessage() {} func (x *LogoURIs) ProtoReflect() protoreflect.Message { mi := &file_registry_chain_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -767,21 +745,18 @@ func (x *LogoURIs) GetSvg() string { } type Image struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Png *string `protobuf:"bytes,1,opt,name=png,proto3,oneof" json:"png,omitempty"` + Theme map[string]string `protobuf:"bytes,2,rep,name=theme,proto3" json:"theme,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields - - Png *string `protobuf:"bytes,1,opt,name=png,proto3,oneof" json:"png,omitempty"` - Theme map[string]string `protobuf:"bytes,2,rep,name=theme,proto3" json:"theme,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + sizeCache protoimpl.SizeCache } func (x *Image) Reset() { *x = Image{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_chain_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_chain_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Image) String() string { @@ -792,7 +767,7 @@ func (*Image) ProtoMessage() {} func (x *Image) ProtoReflect() protoreflect.Message { mi := &file_registry_chain_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -822,22 +797,19 @@ func (x *Image) GetTheme() map[string]string { } type Peer struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + Provider *string `protobuf:"bytes,3,opt,name=provider,proto3,oneof" json:"provider,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` - Provider *string `protobuf:"bytes,3,opt,name=provider,proto3,oneof" json:"provider,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Peer) Reset() { *x = Peer{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_chain_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_chain_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Peer) String() string { @@ -848,7 +820,7 @@ func (*Peer) ProtoMessage() {} func (x *Peer) ProtoReflect() protoreflect.Message { mi := &file_registry_chain_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -885,21 +857,18 @@ func (x *Peer) GetProvider() string { } type Peers struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Seeds []*Peer `protobuf:"bytes,1,rep,name=seeds,proto3" json:"seeds,omitempty"` - PersistentPeers []*Peer `protobuf:"bytes,2,rep,name=persistent_peers,proto3" json:"persistent_peers,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Seeds []*Peer `protobuf:"bytes,1,rep,name=seeds,proto3" json:"seeds,omitempty"` + PersistentPeers []*Peer `protobuf:"bytes,2,rep,name=persistent_peers,proto3" json:"persistent_peers,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Peers) Reset() { *x = Peers{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_chain_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_chain_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Peers) String() string { @@ -910,7 +879,7 @@ func (*Peers) ProtoMessage() {} func (x *Peers) ProtoReflect() protoreflect.Message { mi := &file_registry_chain_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -940,25 +909,22 @@ func (x *Peers) GetPersistentPeers() []*Peer { } type APIs struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Rpc []*APIs_API `protobuf:"bytes,1,rep,name=rpc,proto3" json:"rpc,omitempty"` - Rest []*APIs_API `protobuf:"bytes,2,rep,name=rest,proto3" json:"rest,omitempty"` - Grpc []*APIs_API `protobuf:"bytes,3,rep,name=grpc,proto3" json:"grpc,omitempty"` - Wss []*APIs_API `protobuf:"bytes,4,rep,name=wss,proto3" json:"wss,omitempty"` - GrpcWeb []*APIs_API `protobuf:"bytes,5,rep,name=grpc_web,json=grpc-web,proto3" json:"grpc_web,omitempty"` - EvmHttpJsonrpc []*APIs_API `protobuf:"bytes,6,rep,name=evm_http_jsonrpc,json=evm-http-jsonrpc,proto3" json:"evm_http_jsonrpc,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Rpc []*APIs_API `protobuf:"bytes,1,rep,name=rpc,proto3" json:"rpc,omitempty"` + Rest []*APIs_API `protobuf:"bytes,2,rep,name=rest,proto3" json:"rest,omitempty"` + Grpc []*APIs_API `protobuf:"bytes,3,rep,name=grpc,proto3" json:"grpc,omitempty"` + Wss []*APIs_API `protobuf:"bytes,4,rep,name=wss,proto3" json:"wss,omitempty"` + GrpcWeb []*APIs_API `protobuf:"bytes,5,rep,name=grpc_web,json=grpc-web,proto3" json:"grpc_web,omitempty"` + EvmHttpJsonrpc []*APIs_API `protobuf:"bytes,6,rep,name=evm_http_jsonrpc,json=evm-http-jsonrpc,proto3" json:"evm_http_jsonrpc,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *APIs) Reset() { *x = APIs{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_chain_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_chain_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *APIs) String() string { @@ -969,7 +935,7 @@ func (*APIs) ProtoMessage() {} func (x *APIs) ProtoReflect() protoreflect.Message { mi := &file_registry_chain_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1027,26 +993,23 @@ func (x *APIs) GetEvmHttpJsonrpc() []*APIs_API { } type Explorer struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` + Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` + TxPage *string `protobuf:"bytes,3,opt,name=tx_page,proto3,oneof" json:"tx_page,omitempty"` + AccountPage *string `protobuf:"bytes,4,opt,name=account_page,proto3,oneof" json:"account_page,omitempty"` + ValidatorPage *string `protobuf:"bytes,5,opt,name=validator_page,proto3,oneof" json:"validator_page,omitempty"` + ProposalPage *string `protobuf:"bytes,6,opt,name=proposal_page,proto3,oneof" json:"proposal_page,omitempty"` + BlockPage *string `protobuf:"bytes,7,opt,name=block_page,proto3,oneof" json:"block_page,omitempty"` unknownFields protoimpl.UnknownFields - - Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` - Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` - TxPage *string `protobuf:"bytes,3,opt,name=tx_page,proto3,oneof" json:"tx_page,omitempty"` - AccountPage *string `protobuf:"bytes,4,opt,name=account_page,proto3,oneof" json:"account_page,omitempty"` - ValidatorPage *string `protobuf:"bytes,5,opt,name=validator_page,proto3,oneof" json:"validator_page,omitempty"` - ProposalPage *string `protobuf:"bytes,6,opt,name=proposal_page,proto3,oneof" json:"proposal_page,omitempty"` - BlockPage *string `protobuf:"bytes,7,opt,name=block_page,proto3,oneof" json:"block_page,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Explorer) Reset() { *x = Explorer{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_chain_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_chain_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Explorer) String() string { @@ -1057,7 +1020,7 @@ func (*Explorer) ProtoMessage() {} func (x *Explorer) ProtoReflect() protoreflect.Message { mi := &file_registry_chain_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1122,10 +1085,7 @@ func (x *Explorer) GetBlockPage() string { } type ChainRegistry struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Schema string `protobuf:"bytes,1,opt,name=schema,json=$schema,proto3" json:"schema,omitempty"` ChainName string `protobuf:"bytes,2,opt,name=chain_name,proto3" json:"chain_name,omitempty"` ChainId string `protobuf:"bytes,3,opt,name=chain_id,proto3" json:"chain_id,omitempty"` @@ -1152,15 +1112,15 @@ type ChainRegistry struct { Explorers []*Explorer `protobuf:"bytes,24,rep,name=explorers,proto3" json:"explorers,omitempty"` Keywords []string `protobuf:"bytes,25,rep,name=keywords,proto3" json:"keywords,omitempty"` ExtraCodecs []string `protobuf:"bytes,26,rep,name=extra_codecs,proto3" json:"extra_codecs,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ChainRegistry) Reset() { *x = ChainRegistry{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_chain_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_chain_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChainRegistry) String() string { @@ -1171,7 +1131,7 @@ func (*ChainRegistry) ProtoMessage() {} func (x *ChainRegistry) ProtoReflect() protoreflect.Message { mi := &file_registry_chain_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1370,22 +1330,19 @@ func (x *ChainRegistry) GetExtraCodecs() []string { // DenomUnit and ChainAsset messages type DenomUnit struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` + Exponent int32 `protobuf:"varint,2,opt,name=exponent,proto3" json:"exponent,omitempty"` + Aliases []string `protobuf:"bytes,3,rep,name=aliases,proto3" json:"aliases,omitempty"` unknownFields protoimpl.UnknownFields - - Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` - Exponent int32 `protobuf:"varint,2,opt,name=exponent,proto3" json:"exponent,omitempty"` - Aliases []string `protobuf:"bytes,3,rep,name=aliases,proto3" json:"aliases,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DenomUnit) Reset() { *x = DenomUnit{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_chain_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_chain_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DenomUnit) String() string { @@ -1396,7 +1353,7 @@ func (*DenomUnit) ProtoMessage() {} func (x *DenomUnit) ProtoReflect() protoreflect.Message { mi := &file_registry_chain_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1433,28 +1390,25 @@ func (x *DenomUnit) GetAliases() []string { } type ChainAsset struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` + DenomUnits []*DenomUnit `protobuf:"bytes,2,rep,name=denom_units,proto3" json:"denom_units,omitempty"` + Base string `protobuf:"bytes,3,opt,name=base,proto3" json:"base,omitempty"` + Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` + Display *string `protobuf:"bytes,5,opt,name=display,proto3,oneof" json:"display,omitempty"` + Symbol *string `protobuf:"bytes,6,opt,name=symbol,proto3,oneof" json:"symbol,omitempty"` + CoingeckoId *string `protobuf:"bytes,7,opt,name=coingecko_id,proto3,oneof" json:"coingecko_id,omitempty"` + Keywords []string `protobuf:"bytes,8,rep,name=keywords,proto3" json:"keywords,omitempty"` + Logo_URIs *LogoURIs `protobuf:"bytes,9,opt,name=logo_URIs,proto3,oneof" json:"logo_URIs,omitempty"` unknownFields protoimpl.UnknownFields - - Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` - DenomUnits []*DenomUnit `protobuf:"bytes,2,rep,name=denom_units,proto3" json:"denom_units,omitempty"` - Base string `protobuf:"bytes,3,opt,name=base,proto3" json:"base,omitempty"` - Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` - Display *string `protobuf:"bytes,5,opt,name=display,proto3,oneof" json:"display,omitempty"` - Symbol *string `protobuf:"bytes,6,opt,name=symbol,proto3,oneof" json:"symbol,omitempty"` - CoingeckoId *string `protobuf:"bytes,7,opt,name=coingecko_id,proto3,oneof" json:"coingecko_id,omitempty"` - Keywords []string `protobuf:"bytes,8,rep,name=keywords,proto3" json:"keywords,omitempty"` - Logo_URIs *LogoURIs `protobuf:"bytes,9,opt,name=logo_URIs,proto3,oneof" json:"logo_URIs,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ChainAsset) Reset() { *x = ChainAsset{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_chain_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_chain_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChainAsset) String() string { @@ -1465,7 +1419,7 @@ func (*ChainAsset) ProtoMessage() {} func (x *ChainAsset) ProtoReflect() protoreflect.Message { mi := &file_registry_chain_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1544,21 +1498,18 @@ func (x *ChainAsset) GetLogo_URIs() *LogoURIs { } type AssetList struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ChainName string `protobuf:"bytes,1,opt,name=chain_name,proto3" json:"chain_name,omitempty"` + Assets []*ChainAsset `protobuf:"bytes,2,rep,name=assets,proto3" json:"assets,omitempty"` unknownFields protoimpl.UnknownFields - - ChainName string `protobuf:"bytes,1,opt,name=chain_name,proto3" json:"chain_name,omitempty"` - Assets []*ChainAsset `protobuf:"bytes,2,rep,name=assets,proto3" json:"assets,omitempty"` + sizeCache protoimpl.SizeCache } func (x *AssetList) Reset() { *x = AssetList{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_chain_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_chain_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AssetList) String() string { @@ -1569,7 +1520,7 @@ func (*AssetList) ProtoMessage() {} func (x *AssetList) ProtoReflect() protoreflect.Message { mi := &file_registry_chain_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1599,21 +1550,18 @@ func (x *AssetList) GetAssets() []*ChainAsset { } type Versions_Consensus struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + Version *string `protobuf:"bytes,2,opt,name=version,proto3,oneof" json:"version,omitempty"` unknownFields protoimpl.UnknownFields - - Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - Version *string `protobuf:"bytes,2,opt,name=version,proto3,oneof" json:"version,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Versions_Consensus) Reset() { *x = Versions_Consensus{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_chain_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_chain_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Versions_Consensus) String() string { @@ -1624,7 +1572,7 @@ func (*Versions_Consensus) ProtoMessage() {} func (x *Versions_Consensus) ProtoReflect() protoreflect.Message { mi := &file_registry_chain_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1654,25 +1602,22 @@ func (x *Versions_Consensus) GetVersion() string { } type Versions_Binaries struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + LinuxAmd64 *string `protobuf:"bytes,1,opt,name=linux_amd64,json=linux/amd64,proto3,oneof" json:"linux_amd64,omitempty"` + LinuxArm64 *string `protobuf:"bytes,2,opt,name=linux_arm64,json=linux/arm64,proto3,oneof" json:"linux_arm64,omitempty"` + DarwinAmd64 *string `protobuf:"bytes,3,opt,name=darwin_amd64,json=darwin/amd64,proto3,oneof" json:"darwin_amd64,omitempty"` + DarwinArm64 *string `protobuf:"bytes,4,opt,name=darwin_arm64,json=darwin/arm64,proto3,oneof" json:"darwin_arm64,omitempty"` + WindowsAmd64 *string `protobuf:"bytes,5,opt,name=windows_amd64,json=windows/amd64,proto3,oneof" json:"windows_amd64,omitempty"` + WindowsArm64 *string `protobuf:"bytes,6,opt,name=windows_arm64,json=windows/arm64,proto3,oneof" json:"windows_arm64,omitempty"` unknownFields protoimpl.UnknownFields - - LinuxAmd64 *string `protobuf:"bytes,1,opt,name=linux_amd64,json=linux/amd64,proto3,oneof" json:"linux_amd64,omitempty"` - LinuxArm64 *string `protobuf:"bytes,2,opt,name=linux_arm64,json=linux/arm64,proto3,oneof" json:"linux_arm64,omitempty"` - DarwinAmd64 *string `protobuf:"bytes,3,opt,name=darwin_amd64,json=darwin/amd64,proto3,oneof" json:"darwin_amd64,omitempty"` - DarwinArm64 *string `protobuf:"bytes,4,opt,name=darwin_arm64,json=darwin/arm64,proto3,oneof" json:"darwin_arm64,omitempty"` - WindowsAmd64 *string `protobuf:"bytes,5,opt,name=windows_amd64,json=windows/amd64,proto3,oneof" json:"windows_amd64,omitempty"` - WindowsArm64 *string `protobuf:"bytes,6,opt,name=windows_arm64,json=windows/arm64,proto3,oneof" json:"windows_arm64,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Versions_Binaries) Reset() { *x = Versions_Binaries{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_chain_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_chain_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Versions_Binaries) String() string { @@ -1683,7 +1628,7 @@ func (*Versions_Binaries) ProtoMessage() {} func (x *Versions_Binaries) ProtoReflect() protoreflect.Message { mi := &file_registry_chain_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1741,21 +1686,18 @@ func (x *Versions_Binaries) GetWindowsArm64() string { } type Codebase_Consensus struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + Version *string `protobuf:"bytes,2,opt,name=version,proto3,oneof" json:"version,omitempty"` unknownFields protoimpl.UnknownFields - - Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - Version *string `protobuf:"bytes,2,opt,name=version,proto3,oneof" json:"version,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Codebase_Consensus) Reset() { *x = Codebase_Consensus{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_chain_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_chain_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Codebase_Consensus) String() string { @@ -1766,7 +1708,7 @@ func (*Codebase_Consensus) ProtoMessage() {} func (x *Codebase_Consensus) ProtoReflect() protoreflect.Message { mi := &file_registry_chain_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1796,22 +1738,19 @@ func (x *Codebase_Consensus) GetVersion() string { } type APIs_API struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Provider string `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"` + Archive *bool `protobuf:"varint,3,opt,name=archive,proto3,oneof" json:"archive,omitempty"` unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Provider string `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"` - Archive *bool `protobuf:"varint,3,opt,name=archive,proto3,oneof" json:"archive,omitempty"` + sizeCache protoimpl.SizeCache } func (x *APIs_API) Reset() { *x = APIs_API{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_chain_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_chain_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *APIs_API) String() string { @@ -1822,7 +1761,7 @@ func (*APIs_API) ProtoMessage() {} func (x *APIs_API) ProtoReflect() protoreflect.Message { mi := &file_registry_chain_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1859,25 +1798,22 @@ func (x *APIs_API) GetArchive() bool { } type ChainRegistry_Bech32Config struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Bech32PrefixAccAddr *string `protobuf:"bytes,1,opt,name=bech32PrefixAccAddr,proto3,oneof" json:"bech32PrefixAccAddr,omitempty"` - Bech32PrefixAccPub *string `protobuf:"bytes,2,opt,name=bech32PrefixAccPub,proto3,oneof" json:"bech32PrefixAccPub,omitempty"` - Bech32PrefixValAddr *string `protobuf:"bytes,3,opt,name=bech32PrefixValAddr,proto3,oneof" json:"bech32PrefixValAddr,omitempty"` - Bech32PrefixValPub *string `protobuf:"bytes,4,opt,name=bech32PrefixValPub,proto3,oneof" json:"bech32PrefixValPub,omitempty"` - Bech32PrefixConsAddr *string `protobuf:"bytes,5,opt,name=bech32PrefixConsAddr,proto3,oneof" json:"bech32PrefixConsAddr,omitempty"` - Bech32PrefixConsPub *string `protobuf:"bytes,6,opt,name=bech32PrefixConsPub,proto3,oneof" json:"bech32PrefixConsPub,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Bech32PrefixAccAddr *string `protobuf:"bytes,1,opt,name=bech32PrefixAccAddr,proto3,oneof" json:"bech32PrefixAccAddr,omitempty"` + Bech32PrefixAccPub *string `protobuf:"bytes,2,opt,name=bech32PrefixAccPub,proto3,oneof" json:"bech32PrefixAccPub,omitempty"` + Bech32PrefixValAddr *string `protobuf:"bytes,3,opt,name=bech32PrefixValAddr,proto3,oneof" json:"bech32PrefixValAddr,omitempty"` + Bech32PrefixValPub *string `protobuf:"bytes,4,opt,name=bech32PrefixValPub,proto3,oneof" json:"bech32PrefixValPub,omitempty"` + Bech32PrefixConsAddr *string `protobuf:"bytes,5,opt,name=bech32PrefixConsAddr,proto3,oneof" json:"bech32PrefixConsAddr,omitempty"` + Bech32PrefixConsPub *string `protobuf:"bytes,6,opt,name=bech32PrefixConsPub,proto3,oneof" json:"bech32PrefixConsPub,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ChainRegistry_Bech32Config) Reset() { *x = ChainRegistry_Bech32Config{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_chain_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_chain_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChainRegistry_Bech32Config) String() string { @@ -1888,7 +1824,7 @@ func (*ChainRegistry_Bech32Config) ProtoMessage() {} func (x *ChainRegistry_Bech32Config) ProtoReflect() protoreflect.Message { mi := &file_registry_chain_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1947,7 +1883,7 @@ func (x *ChainRegistry_Bech32Config) GetBech32PrefixConsPub() string { var File_registry_chain_proto protoreflect.FileDescriptor -var file_registry_chain_proto_rawDesc = []byte{ +var file_registry_chain_proto_rawDesc = string([]byte{ 0x0a, 0x14, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, @@ -2347,26 +2283,26 @@ var file_registry_chain_proto_rawDesc = []byte{ 0x28, 0x09, 0x52, 0x0a, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2c, 0x0a, 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x41, - 0x73, 0x73, 0x65, 0x74, 0x52, 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x42, 0x87, 0x01, 0x0a, + 0x73, 0x73, 0x65, 0x74, 0x52, 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x42, 0x84, 0x01, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x42, 0x0a, 0x43, - 0x68, 0x61, 0x69, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2b, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x6c, 0x6f, 0x67, - 0x79, 0x2d, 0x74, 0x65, 0x63, 0x68, 0x2f, 0x73, 0x74, 0x61, 0x72, 0x73, 0x68, 0x69, 0x70, 0x2f, - 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0xa2, 0x02, 0x03, 0x52, 0x58, 0x58, 0xaa, 0x02, - 0x08, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0xca, 0x02, 0x08, 0x52, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x72, 0x79, 0xe2, 0x02, 0x14, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, - 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x08, 0x52, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} + 0x68, 0x61, 0x69, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x28, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x79, 0x70, 0x65, 0x72, 0x77, 0x65, 0x62, + 0x2d, 0x69, 0x6f, 0x2f, 0x73, 0x74, 0x61, 0x72, 0x73, 0x68, 0x69, 0x70, 0x2f, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0xa2, 0x02, 0x03, 0x52, 0x58, 0x58, 0xaa, 0x02, 0x08, 0x52, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0xca, 0x02, 0x08, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0xe2, 0x02, 0x14, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x08, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +}) var ( file_registry_chain_proto_rawDescOnce sync.Once - file_registry_chain_proto_rawDescData = file_registry_chain_proto_rawDesc + file_registry_chain_proto_rawDescData []byte ) func file_registry_chain_proto_rawDescGZIP() []byte { file_registry_chain_proto_rawDescOnce.Do(func() { - file_registry_chain_proto_rawDescData = protoimpl.X.CompressGZIP(file_registry_chain_proto_rawDescData) + file_registry_chain_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_registry_chain_proto_rawDesc), len(file_registry_chain_proto_rawDesc))) }) return file_registry_chain_proto_rawDescData } @@ -2441,284 +2377,6 @@ func file_registry_chain_proto_init() { if File_registry_chain_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_registry_chain_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*FeeTokens); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_chain_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*Fees); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_chain_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*StakingTokens); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_chain_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*LockDuration); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_chain_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*Staking); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_chain_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*Genesis); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_chain_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*Versions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_chain_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*Codebase); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_chain_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*LogoURIs); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_chain_proto_msgTypes[9].Exporter = func(v any, i int) any { - switch v := v.(*Image); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_chain_proto_msgTypes[10].Exporter = func(v any, i int) any { - switch v := v.(*Peer); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_chain_proto_msgTypes[11].Exporter = func(v any, i int) any { - switch v := v.(*Peers); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_chain_proto_msgTypes[12].Exporter = func(v any, i int) any { - switch v := v.(*APIs); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_chain_proto_msgTypes[13].Exporter = func(v any, i int) any { - switch v := v.(*Explorer); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_chain_proto_msgTypes[14].Exporter = func(v any, i int) any { - switch v := v.(*ChainRegistry); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_chain_proto_msgTypes[15].Exporter = func(v any, i int) any { - switch v := v.(*DenomUnit); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_chain_proto_msgTypes[16].Exporter = func(v any, i int) any { - switch v := v.(*ChainAsset); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_chain_proto_msgTypes[17].Exporter = func(v any, i int) any { - switch v := v.(*AssetList); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_chain_proto_msgTypes[18].Exporter = func(v any, i int) any { - switch v := v.(*Versions_Consensus); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_chain_proto_msgTypes[19].Exporter = func(v any, i int) any { - switch v := v.(*Versions_Binaries); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_chain_proto_msgTypes[20].Exporter = func(v any, i int) any { - switch v := v.(*Codebase_Consensus); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_chain_proto_msgTypes[22].Exporter = func(v any, i int) any { - switch v := v.(*APIs_API); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_chain_proto_msgTypes[23].Exporter = func(v any, i int) any { - switch v := v.(*ChainRegistry_Bech32Config); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_registry_chain_proto_msgTypes[3].OneofWrappers = []any{ (*LockDuration_Blocks)(nil), (*LockDuration_Time)(nil), @@ -2741,7 +2399,7 @@ func file_registry_chain_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_registry_chain_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_registry_chain_proto_rawDesc), len(file_registry_chain_proto_rawDesc)), NumEnums: 0, NumMessages: 24, NumExtensions: 0, @@ -2752,7 +2410,6 @@ func file_registry_chain_proto_init() { MessageInfos: file_registry_chain_proto_msgTypes, }.Build() File_registry_chain_proto = out.File - file_registry_chain_proto_rawDesc = nil file_registry_chain_proto_goTypes = nil file_registry_chain_proto_depIdxs = nil } diff --git a/starship/registry/registry/ibc.pb.go b/starship/registry/registry/ibc.pb.go index 833762323..dae0df16f 100644 --- a/starship/registry/registry/ibc.pb.go +++ b/starship/registry/registry/ibc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.36.4 // protoc (unknown) // source: registry/ibc.proto @@ -12,6 +12,7 @@ import ( _ "google.golang.org/protobuf/types/descriptorpb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -22,22 +23,19 @@ const ( ) type IBCChain struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ChainName string `protobuf:"bytes,1,opt,name=chain_name,proto3" json:"chain_name,omitempty"` + ClientId string `protobuf:"bytes,2,opt,name=client_id,proto3" json:"client_id,omitempty"` + ConnectionId string `protobuf:"bytes,3,opt,name=connection_id,proto3" json:"connection_id,omitempty"` unknownFields protoimpl.UnknownFields - - ChainName string `protobuf:"bytes,1,opt,name=chain_name,proto3" json:"chain_name,omitempty"` - ClientId string `protobuf:"bytes,2,opt,name=client_id,proto3" json:"client_id,omitempty"` - ConnectionId string `protobuf:"bytes,3,opt,name=connection_id,proto3" json:"connection_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *IBCChain) Reset() { *x = IBCChain{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_ibc_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_ibc_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *IBCChain) String() string { @@ -48,7 +46,7 @@ func (*IBCChain) ProtoMessage() {} func (x *IBCChain) ProtoReflect() protoreflect.Message { mi := &file_registry_ibc_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -85,24 +83,21 @@ func (x *IBCChain) GetConnectionId() string { } type ChannelData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Chain_1 *ChannelData_ChannelPort `protobuf:"bytes,1,opt,name=chain_1,proto3" json:"chain_1,omitempty"` + Chain_2 *ChannelData_ChannelPort `protobuf:"bytes,2,opt,name=chain_2,proto3" json:"chain_2,omitempty"` + Ordering string `protobuf:"bytes,3,opt,name=ordering,proto3" json:"ordering,omitempty"` + Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` + Tags *ChannelData_Tags `protobuf:"bytes,5,opt,name=tags,proto3" json:"tags,omitempty"` unknownFields protoimpl.UnknownFields - - Chain_1 *ChannelData_ChannelPort `protobuf:"bytes,1,opt,name=chain_1,proto3" json:"chain_1,omitempty"` - Chain_2 *ChannelData_ChannelPort `protobuf:"bytes,2,opt,name=chain_2,proto3" json:"chain_2,omitempty"` - Ordering string `protobuf:"bytes,3,opt,name=ordering,proto3" json:"ordering,omitempty"` - Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` - Tags *ChannelData_Tags `protobuf:"bytes,5,opt,name=tags,proto3" json:"tags,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ChannelData) Reset() { *x = ChannelData{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_ibc_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_ibc_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChannelData) String() string { @@ -113,7 +108,7 @@ func (*ChannelData) ProtoMessage() {} func (x *ChannelData) ProtoReflect() protoreflect.Message { mi := &file_registry_ibc_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -164,23 +159,20 @@ func (x *ChannelData) GetTags() *ChannelData_Tags { } type IBCData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Schema string `protobuf:"bytes,1,opt,name=schema,json=$schema,proto3" json:"schema,omitempty"` + Chain_1 *IBCChain `protobuf:"bytes,2,opt,name=chain_1,proto3" json:"chain_1,omitempty"` + Chain_2 *IBCChain `protobuf:"bytes,3,opt,name=chain_2,proto3" json:"chain_2,omitempty"` + Channels []*ChannelData `protobuf:"bytes,4,rep,name=channels,proto3" json:"channels,omitempty"` unknownFields protoimpl.UnknownFields - - Schema string `protobuf:"bytes,1,opt,name=schema,json=$schema,proto3" json:"schema,omitempty"` - Chain_1 *IBCChain `protobuf:"bytes,2,opt,name=chain_1,proto3" json:"chain_1,omitempty"` - Chain_2 *IBCChain `protobuf:"bytes,3,opt,name=chain_2,proto3" json:"chain_2,omitempty"` - Channels []*ChannelData `protobuf:"bytes,4,rep,name=channels,proto3" json:"channels,omitempty"` + sizeCache protoimpl.SizeCache } func (x *IBCData) Reset() { *x = IBCData{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_ibc_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_ibc_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *IBCData) String() string { @@ -191,7 +183,7 @@ func (*IBCData) ProtoMessage() {} func (x *IBCData) ProtoReflect() protoreflect.Message { mi := &file_registry_ibc_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -235,21 +227,18 @@ func (x *IBCData) GetChannels() []*ChannelData { } type ChannelData_ChannelPort struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ChannelId string `protobuf:"bytes,1,opt,name=channel_id,proto3" json:"channel_id,omitempty"` + PortId string `protobuf:"bytes,2,opt,name=port_id,proto3" json:"port_id,omitempty"` unknownFields protoimpl.UnknownFields - - ChannelId string `protobuf:"bytes,1,opt,name=channel_id,proto3" json:"channel_id,omitempty"` - PortId string `protobuf:"bytes,2,opt,name=port_id,proto3" json:"port_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ChannelData_ChannelPort) Reset() { *x = ChannelData_ChannelPort{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_ibc_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_ibc_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChannelData_ChannelPort) String() string { @@ -260,7 +249,7 @@ func (*ChannelData_ChannelPort) ProtoMessage() {} func (x *ChannelData_ChannelPort) ProtoReflect() protoreflect.Message { mi := &file_registry_ibc_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -290,22 +279,19 @@ func (x *ChannelData_ChannelPort) GetPortId() string { } type ChannelData_Tags struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + Preferred bool `protobuf:"varint,2,opt,name=preferred,proto3" json:"preferred,omitempty"` + Dex string `protobuf:"bytes,3,opt,name=dex,proto3" json:"dex,omitempty"` unknownFields protoimpl.UnknownFields - - Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - Preferred bool `protobuf:"varint,2,opt,name=preferred,proto3" json:"preferred,omitempty"` - Dex string `protobuf:"bytes,3,opt,name=dex,proto3" json:"dex,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ChannelData_Tags) Reset() { *x = ChannelData_Tags{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_ibc_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_ibc_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChannelData_Tags) String() string { @@ -316,7 +302,7 @@ func (*ChannelData_Tags) ProtoMessage() {} func (x *ChannelData_Tags) ProtoReflect() protoreflect.Message { mi := &file_registry_ibc_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -354,7 +340,7 @@ func (x *ChannelData_Tags) GetDex() string { var File_registry_ibc_proto protoreflect.FileDescriptor -var file_registry_ibc_proto_rawDesc = []byte{ +var file_registry_ibc_proto_rawDesc = string([]byte{ 0x0a, 0x12, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x69, 0x62, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, @@ -401,26 +387,26 @@ var file_registry_ibc_proto_rawDesc = []byte{ 0x6e, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x32, 0x12, 0x31, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x44, - 0x61, 0x74, 0x61, 0x52, 0x08, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x42, 0x85, 0x01, + 0x61, 0x74, 0x61, 0x52, 0x08, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x42, 0x82, 0x01, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x42, 0x08, - 0x49, 0x62, 0x63, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x6c, 0x6f, 0x67, 0x79, - 0x2d, 0x74, 0x65, 0x63, 0x68, 0x2f, 0x73, 0x74, 0x61, 0x72, 0x73, 0x68, 0x69, 0x70, 0x2f, 0x72, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0xa2, 0x02, 0x03, 0x52, 0x58, 0x58, 0xaa, 0x02, 0x08, - 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0xca, 0x02, 0x08, 0x52, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x72, 0x79, 0xe2, 0x02, 0x14, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x47, - 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x08, 0x52, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x72, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} + 0x49, 0x62, 0x63, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x79, 0x70, 0x65, 0x72, 0x77, 0x65, 0x62, 0x2d, + 0x69, 0x6f, 0x2f, 0x73, 0x74, 0x61, 0x72, 0x73, 0x68, 0x69, 0x70, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0xa2, 0x02, 0x03, 0x52, 0x58, 0x58, 0xaa, 0x02, 0x08, 0x52, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0xca, 0x02, 0x08, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0xe2, 0x02, 0x14, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x08, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +}) var ( file_registry_ibc_proto_rawDescOnce sync.Once - file_registry_ibc_proto_rawDescData = file_registry_ibc_proto_rawDesc + file_registry_ibc_proto_rawDescData []byte ) func file_registry_ibc_proto_rawDescGZIP() []byte { file_registry_ibc_proto_rawDescOnce.Do(func() { - file_registry_ibc_proto_rawDescData = protoimpl.X.CompressGZIP(file_registry_ibc_proto_rawDescData) + file_registry_ibc_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_registry_ibc_proto_rawDesc), len(file_registry_ibc_proto_rawDesc))) }) return file_registry_ibc_proto_rawDescData } @@ -452,73 +438,11 @@ func file_registry_ibc_proto_init() { if File_registry_ibc_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_registry_ibc_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*IBCChain); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_ibc_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*ChannelData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_ibc_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*IBCData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_ibc_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*ChannelData_ChannelPort); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_ibc_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*ChannelData_Tags); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_registry_ibc_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_registry_ibc_proto_rawDesc), len(file_registry_ibc_proto_rawDesc)), NumEnums: 0, NumMessages: 5, NumExtensions: 0, @@ -529,7 +453,6 @@ func file_registry_ibc_proto_init() { MessageInfos: file_registry_ibc_proto_msgTypes, }.Build() File_registry_ibc_proto = out.File - file_registry_ibc_proto_rawDesc = nil file_registry_ibc_proto_goTypes = nil file_registry_ibc_proto_depIdxs = nil } diff --git a/starship/registry/registry/mnemonic.pb.go b/starship/registry/registry/mnemonic.pb.go index 980b1c90c..e56702384 100644 --- a/starship/registry/registry/mnemonic.pb.go +++ b/starship/registry/registry/mnemonic.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.36.4 // protoc (unknown) // source: registry/mnemonic.proto @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -21,22 +22,19 @@ const ( ) type Mnemonic struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` + Mnemonic string `protobuf:"bytes,3,opt,name=mnemonic,proto3" json:"mnemonic,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` - Mnemonic string `protobuf:"bytes,3,opt,name=mnemonic,proto3" json:"mnemonic,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Mnemonic) Reset() { *x = Mnemonic{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_mnemonic_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_mnemonic_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Mnemonic) String() string { @@ -47,7 +45,7 @@ func (*Mnemonic) ProtoMessage() {} func (x *Mnemonic) ProtoReflect() protoreflect.Message { mi := &file_registry_mnemonic_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -84,25 +82,22 @@ func (x *Mnemonic) GetMnemonic() string { } type Keys struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Genesis []*Mnemonic `protobuf:"bytes,1,rep,name=genesis,proto3" json:"genesis,omitempty"` + Validators []*Mnemonic `protobuf:"bytes,2,rep,name=validators,proto3" json:"validators,omitempty"` + Keys []*Mnemonic `protobuf:"bytes,3,rep,name=keys,proto3" json:"keys,omitempty"` + Relayers []*Mnemonic `protobuf:"bytes,4,rep,name=relayers,proto3" json:"relayers,omitempty"` + Faucet []*Mnemonic `protobuf:"bytes,5,rep,name=faucet,proto3" json:"faucet,omitempty"` + RelayersCli []*Mnemonic `protobuf:"bytes,6,rep,name=relayers_cli,json=relayersCli,proto3" json:"relayers_cli,omitempty"` unknownFields protoimpl.UnknownFields - - Genesis []*Mnemonic `protobuf:"bytes,1,rep,name=genesis,proto3" json:"genesis,omitempty"` - Validators []*Mnemonic `protobuf:"bytes,2,rep,name=validators,proto3" json:"validators,omitempty"` - Keys []*Mnemonic `protobuf:"bytes,3,rep,name=keys,proto3" json:"keys,omitempty"` - Relayers []*Mnemonic `protobuf:"bytes,4,rep,name=relayers,proto3" json:"relayers,omitempty"` - Faucet []*Mnemonic `protobuf:"bytes,5,rep,name=faucet,proto3" json:"faucet,omitempty"` - RelayersCli []*Mnemonic `protobuf:"bytes,6,rep,name=relayers_cli,json=relayersCli,proto3" json:"relayers_cli,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Keys) Reset() { *x = Keys{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_mnemonic_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_mnemonic_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Keys) String() string { @@ -113,7 +108,7 @@ func (*Keys) ProtoMessage() {} func (x *Keys) ProtoReflect() protoreflect.Message { mi := &file_registry_mnemonic_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -171,21 +166,18 @@ func (x *Keys) GetRelayersCli() []*Mnemonic { } type TypeKey struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` unknownFields protoimpl.UnknownFields - - Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TypeKey) Reset() { *x = TypeKey{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_mnemonic_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_mnemonic_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TypeKey) String() string { @@ -196,7 +188,7 @@ func (*TypeKey) ProtoMessage() {} func (x *TypeKey) ProtoReflect() protoreflect.Message { mi := &file_registry_mnemonic_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -226,22 +218,19 @@ func (x *TypeKey) GetValue() string { } type PrivValidatorKey struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + PubKey *TypeKey `protobuf:"bytes,2,opt,name=pub_key,proto3" json:"pub_key,omitempty"` + PrivKey *TypeKey `protobuf:"bytes,3,opt,name=priv_key,proto3" json:"priv_key,omitempty"` unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - PubKey *TypeKey `protobuf:"bytes,2,opt,name=pub_key,proto3" json:"pub_key,omitempty"` - PrivKey *TypeKey `protobuf:"bytes,3,opt,name=priv_key,proto3" json:"priv_key,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PrivValidatorKey) Reset() { *x = PrivValidatorKey{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_mnemonic_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_mnemonic_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PrivValidatorKey) String() string { @@ -252,7 +241,7 @@ func (*PrivValidatorKey) ProtoMessage() {} func (x *PrivValidatorKey) ProtoReflect() protoreflect.Message { mi := &file_registry_mnemonic_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -290,7 +279,7 @@ func (x *PrivValidatorKey) GetPrivKey() *TypeKey { var File_registry_mnemonic_proto protoreflect.FileDescriptor -var file_registry_mnemonic_proto_rawDesc = []byte{ +var file_registry_mnemonic_proto_rawDesc = string([]byte{ 0x0a, 0x17, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x6d, 0x6e, 0x65, 0x6d, 0x6f, 0x6e, 0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x22, 0x4e, 0x0a, 0x08, 0x4d, 0x6e, 0x65, 0x6d, 0x6f, 0x6e, 0x69, 0x63, 0x12, @@ -328,26 +317,26 @@ var file_registry_mnemonic_proto_rawDesc = []byte{ 0x79, 0x52, 0x07, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x12, 0x2d, 0x0a, 0x08, 0x70, 0x72, 0x69, 0x76, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x4b, 0x65, 0x79, 0x52, - 0x08, 0x70, 0x72, 0x69, 0x76, 0x5f, 0x6b, 0x65, 0x79, 0x42, 0x8a, 0x01, 0x0a, 0x0c, 0x63, 0x6f, + 0x08, 0x70, 0x72, 0x69, 0x76, 0x5f, 0x6b, 0x65, 0x79, 0x42, 0x87, 0x01, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x42, 0x0d, 0x4d, 0x6e, 0x65, 0x6d, - 0x6f, 0x6e, 0x69, 0x63, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2b, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x6c, 0x6f, 0x67, - 0x79, 0x2d, 0x74, 0x65, 0x63, 0x68, 0x2f, 0x73, 0x74, 0x61, 0x72, 0x73, 0x68, 0x69, 0x70, 0x2f, - 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0xa2, 0x02, 0x03, 0x52, 0x58, 0x58, 0xaa, 0x02, - 0x08, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0xca, 0x02, 0x08, 0x52, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x72, 0x79, 0xe2, 0x02, 0x14, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, - 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x08, 0x52, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} + 0x6f, 0x6e, 0x69, 0x63, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x28, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x79, 0x70, 0x65, 0x72, 0x77, 0x65, 0x62, + 0x2d, 0x69, 0x6f, 0x2f, 0x73, 0x74, 0x61, 0x72, 0x73, 0x68, 0x69, 0x70, 0x2f, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0xa2, 0x02, 0x03, 0x52, 0x58, 0x58, 0xaa, 0x02, 0x08, 0x52, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0xca, 0x02, 0x08, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0xe2, 0x02, 0x14, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x08, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +}) var ( file_registry_mnemonic_proto_rawDescOnce sync.Once - file_registry_mnemonic_proto_rawDescData = file_registry_mnemonic_proto_rawDesc + file_registry_mnemonic_proto_rawDescData []byte ) func file_registry_mnemonic_proto_rawDescGZIP() []byte { file_registry_mnemonic_proto_rawDescOnce.Do(func() { - file_registry_mnemonic_proto_rawDescData = protoimpl.X.CompressGZIP(file_registry_mnemonic_proto_rawDescData) + file_registry_mnemonic_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_registry_mnemonic_proto_rawDesc), len(file_registry_mnemonic_proto_rawDesc))) }) return file_registry_mnemonic_proto_rawDescData } @@ -380,61 +369,11 @@ func file_registry_mnemonic_proto_init() { if File_registry_mnemonic_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_registry_mnemonic_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*Mnemonic); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_mnemonic_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*Keys); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_mnemonic_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*TypeKey); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_mnemonic_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*PrivValidatorKey); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_registry_mnemonic_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_registry_mnemonic_proto_rawDesc), len(file_registry_mnemonic_proto_rawDesc)), NumEnums: 0, NumMessages: 4, NumExtensions: 0, @@ -445,7 +384,6 @@ func file_registry_mnemonic_proto_init() { MessageInfos: file_registry_mnemonic_proto_msgTypes, }.Build() File_registry_mnemonic_proto = out.File - file_registry_mnemonic_proto_rawDesc = nil file_registry_mnemonic_proto_goTypes = nil file_registry_mnemonic_proto_depIdxs = nil } diff --git a/starship/registry/registry/service.pb.go b/starship/registry/registry/service.pb.go index ff4621912..0012294b6 100644 --- a/starship/registry/registry/service.pb.go +++ b/starship/registry/registry/service.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.36.4 // protoc (unknown) // source: registry/service.proto @@ -14,6 +14,7 @@ import ( emptypb "google.golang.org/protobuf/types/known/emptypb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -24,20 +25,17 @@ const ( ) type ResponseChains struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Chains []*ChainRegistry `protobuf:"bytes,1,rep,name=chains,proto3" json:"chains,omitempty"` unknownFields protoimpl.UnknownFields - - Chains []*ChainRegistry `protobuf:"bytes,1,rep,name=chains,proto3" json:"chains,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ResponseChains) Reset() { *x = ResponseChains{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_service_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_service_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ResponseChains) String() string { @@ -48,7 +46,7 @@ func (*ResponseChains) ProtoMessage() {} func (x *ResponseChains) ProtoReflect() protoreflect.Message { mi := &file_registry_service_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -71,20 +69,17 @@ func (x *ResponseChains) GetChains() []*ChainRegistry { } type ResponseChainIDs struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ChainIds []string `protobuf:"bytes,1,rep,name=chain_ids,proto3" json:"chain_ids,omitempty"` unknownFields protoimpl.UnknownFields - - ChainIds []string `protobuf:"bytes,1,rep,name=chain_ids,proto3" json:"chain_ids,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ResponseChainIDs) Reset() { *x = ResponseChainIDs{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_service_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_service_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ResponseChainIDs) String() string { @@ -95,7 +90,7 @@ func (*ResponseChainIDs) ProtoMessage() {} func (x *ResponseChainIDs) ProtoReflect() protoreflect.Message { mi := &file_registry_service_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -118,20 +113,17 @@ func (x *ResponseChainIDs) GetChainIds() []string { } type RequestChain struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Chain string `protobuf:"bytes,1,opt,name=chain,proto3" json:"chain,omitempty"` unknownFields protoimpl.UnknownFields - - Chain string `protobuf:"bytes,1,opt,name=chain,proto3" json:"chain,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RequestChain) Reset() { *x = RequestChain{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_service_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_service_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RequestChain) String() string { @@ -142,7 +134,7 @@ func (*RequestChain) ProtoMessage() {} func (x *RequestChain) ProtoReflect() protoreflect.Message { mi := &file_registry_service_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -165,22 +157,19 @@ func (x *RequestChain) GetChain() string { } type ResponseChainAssets struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Schema string `protobuf:"bytes,1,opt,name=schema,json=$schema,proto3" json:"schema,omitempty"` + ChainName string `protobuf:"bytes,2,opt,name=chain_name,proto3" json:"chain_name,omitempty"` + Assets []*ChainAsset `protobuf:"bytes,3,rep,name=assets,proto3" json:"assets,omitempty"` unknownFields protoimpl.UnknownFields - - Schema string `protobuf:"bytes,1,opt,name=schema,json=$schema,proto3" json:"schema,omitempty"` - ChainName string `protobuf:"bytes,2,opt,name=chain_name,proto3" json:"chain_name,omitempty"` - Assets []*ChainAsset `protobuf:"bytes,3,rep,name=assets,proto3" json:"assets,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ResponseChainAssets) Reset() { *x = ResponseChainAssets{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_service_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_service_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ResponseChainAssets) String() string { @@ -191,7 +180,7 @@ func (*ResponseChainAssets) ProtoMessage() {} func (x *ResponseChainAssets) ProtoReflect() protoreflect.Message { mi := &file_registry_service_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -228,20 +217,17 @@ func (x *ResponseChainAssets) GetAssets() []*ChainAsset { } type ResponseListIBC struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Data []*IBCData `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields - - Data []*IBCData `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ResponseListIBC) Reset() { *x = ResponseListIBC{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_service_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_service_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ResponseListIBC) String() string { @@ -252,7 +238,7 @@ func (*ResponseListIBC) ProtoMessage() {} func (x *ResponseListIBC) ProtoReflect() protoreflect.Message { mi := &file_registry_service_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -275,21 +261,18 @@ func (x *ResponseListIBC) GetData() []*IBCData { } type RequestIBCInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Chain_1 string `protobuf:"bytes,1,opt,name=chain_1,proto3" json:"chain_1,omitempty"` + Chain_2 string `protobuf:"bytes,2,opt,name=chain_2,proto3" json:"chain_2,omitempty"` unknownFields protoimpl.UnknownFields - - Chain_1 string `protobuf:"bytes,1,opt,name=chain_1,proto3" json:"chain_1,omitempty"` - Chain_2 string `protobuf:"bytes,2,opt,name=chain_2,proto3" json:"chain_2,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RequestIBCInfo) Reset() { *x = RequestIBCInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_service_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_service_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RequestIBCInfo) String() string { @@ -300,7 +283,7 @@ func (*RequestIBCInfo) ProtoMessage() {} func (x *RequestIBCInfo) ProtoReflect() protoreflect.Message { mi := &file_registry_service_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -331,7 +314,7 @@ func (x *RequestIBCInfo) GetChain_2() string { var File_registry_service_proto protoreflect.FileDescriptor -var file_registry_service_proto_rawDesc = []byte{ +var file_registry_service_proto_rawDesc = string([]byte{ 0x0a, 0x16, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, @@ -425,26 +408,26 @@ var file_registry_service_proto_rawDesc = []byte{ 0x49, 0x6e, 0x66, 0x6f, 0x1a, 0x11, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x49, 0x42, 0x43, 0x44, 0x61, 0x74, 0x61, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x12, 0x18, 0x2f, 0x69, 0x62, 0x63, 0x2f, 0x7b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x31, 0x7d, 0x2f, - 0x7b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x32, 0x7d, 0x42, 0x89, 0x01, 0x0a, 0x0c, 0x63, 0x6f, + 0x7b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x32, 0x7d, 0x42, 0x86, 0x01, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x42, 0x0c, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x6c, 0x6f, 0x67, 0x79, - 0x2d, 0x74, 0x65, 0x63, 0x68, 0x2f, 0x73, 0x74, 0x61, 0x72, 0x73, 0x68, 0x69, 0x70, 0x2f, 0x72, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0xa2, 0x02, 0x03, 0x52, 0x58, 0x58, 0xaa, 0x02, 0x08, - 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0xca, 0x02, 0x08, 0x52, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x72, 0x79, 0xe2, 0x02, 0x14, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x47, - 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x08, 0x52, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x72, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} + 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x79, 0x70, 0x65, 0x72, 0x77, 0x65, 0x62, 0x2d, + 0x69, 0x6f, 0x2f, 0x73, 0x74, 0x61, 0x72, 0x73, 0x68, 0x69, 0x70, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0xa2, 0x02, 0x03, 0x52, 0x58, 0x58, 0xaa, 0x02, 0x08, 0x52, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0xca, 0x02, 0x08, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0xe2, 0x02, 0x14, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x08, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +}) var ( file_registry_service_proto_rawDescOnce sync.Once - file_registry_service_proto_rawDescData = file_registry_service_proto_rawDesc + file_registry_service_proto_rawDescData []byte ) func file_registry_service_proto_rawDescGZIP() []byte { file_registry_service_proto_rawDescOnce.Do(func() { - file_registry_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_registry_service_proto_rawDescData) + file_registry_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_registry_service_proto_rawDesc), len(file_registry_service_proto_rawDesc))) }) return file_registry_service_proto_rawDescData } @@ -504,85 +487,11 @@ func file_registry_service_proto_init() { file_registry_chain_proto_init() file_registry_ibc_proto_init() file_registry_mnemonic_proto_init() - if !protoimpl.UnsafeEnabled { - file_registry_service_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*ResponseChains); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_service_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*ResponseChainIDs); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_service_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*RequestChain); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_service_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*ResponseChainAssets); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_service_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*ResponseListIBC); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_service_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*RequestIBCInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_registry_service_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_registry_service_proto_rawDesc), len(file_registry_service_proto_rawDesc)), NumEnums: 0, NumMessages: 6, NumExtensions: 0, @@ -593,7 +502,6 @@ func file_registry_service_proto_init() { MessageInfos: file_registry_service_proto_msgTypes, }.Build() File_registry_service_proto = out.File - file_registry_service_proto_rawDesc = nil file_registry_service_proto_goTypes = nil file_registry_service_proto_depIdxs = nil } diff --git a/starship/registry/registry/service.pb.gw.go b/starship/registry/registry/service.pb.gw.go index 5f76eaefd..d2bcf2cf7 100644 --- a/starship/registry/registry/service.pb.gw.go +++ b/starship/registry/registry/service.pb.gw.go @@ -10,6 +10,7 @@ package registry import ( "context" + "errors" "io" "net/http" @@ -25,466 +26,351 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = errors.New + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_Registry_ListChainIDs_0(ctx context.Context, marshaler runtime.Marshaler, client RegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq emptypb.Empty - var metadata runtime.ServerMetadata - + var ( + protoReq emptypb.Empty + metadata runtime.ServerMetadata + ) msg, err := client.ListChainIDs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Registry_ListChainIDs_0(ctx context.Context, marshaler runtime.Marshaler, server RegistryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq emptypb.Empty - var metadata runtime.ServerMetadata - + var ( + protoReq emptypb.Empty + metadata runtime.ServerMetadata + ) msg, err := server.ListChainIDs(ctx, &protoReq) return msg, metadata, err - } func request_Registry_ListChains_0(ctx context.Context, marshaler runtime.Marshaler, client RegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq emptypb.Empty - var metadata runtime.ServerMetadata - + var ( + protoReq emptypb.Empty + metadata runtime.ServerMetadata + ) msg, err := client.ListChains(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Registry_ListChains_0(ctx context.Context, marshaler runtime.Marshaler, server RegistryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq emptypb.Empty - var metadata runtime.ServerMetadata - + var ( + protoReq emptypb.Empty + metadata runtime.ServerMetadata + ) msg, err := server.ListChains(ctx, &protoReq) return msg, metadata, err - } func request_Registry_GetChain_0(ctx context.Context, marshaler runtime.Marshaler, client RegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RequestChain - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq RequestChain + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["chain"] + val, ok := pathParams["chain"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chain") } - protoReq.Chain, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chain", err) } - msg, err := client.GetChain(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Registry_GetChain_0(ctx context.Context, marshaler runtime.Marshaler, server RegistryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RequestChain - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq RequestChain + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["chain"] + val, ok := pathParams["chain"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chain") } - protoReq.Chain, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chain", err) } - msg, err := server.GetChain(ctx, &protoReq) return msg, metadata, err - } func request_Registry_GetChainKeys_0(ctx context.Context, marshaler runtime.Marshaler, client RegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RequestChain - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq RequestChain + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["chain"] + val, ok := pathParams["chain"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chain") } - protoReq.Chain, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chain", err) } - msg, err := client.GetChainKeys(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Registry_GetChainKeys_0(ctx context.Context, marshaler runtime.Marshaler, server RegistryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RequestChain - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq RequestChain + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["chain"] + val, ok := pathParams["chain"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chain") } - protoReq.Chain, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chain", err) } - msg, err := server.GetChainKeys(ctx, &protoReq) return msg, metadata, err - } func request_Registry_ListChainPeers_0(ctx context.Context, marshaler runtime.Marshaler, client RegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RequestChain - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq RequestChain + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["chain"] + val, ok := pathParams["chain"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chain") } - protoReq.Chain, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chain", err) } - msg, err := client.ListChainPeers(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Registry_ListChainPeers_0(ctx context.Context, marshaler runtime.Marshaler, server RegistryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RequestChain - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq RequestChain + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["chain"] + val, ok := pathParams["chain"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chain") } - protoReq.Chain, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chain", err) } - msg, err := server.ListChainPeers(ctx, &protoReq) return msg, metadata, err - } func request_Registry_ListChainAPIs_0(ctx context.Context, marshaler runtime.Marshaler, client RegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RequestChain - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq RequestChain + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["chain"] + val, ok := pathParams["chain"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chain") } - protoReq.Chain, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chain", err) } - msg, err := client.ListChainAPIs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Registry_ListChainAPIs_0(ctx context.Context, marshaler runtime.Marshaler, server RegistryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RequestChain - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq RequestChain + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["chain"] + val, ok := pathParams["chain"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chain") } - protoReq.Chain, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chain", err) } - msg, err := server.ListChainAPIs(ctx, &protoReq) return msg, metadata, err - } func request_Registry_GetChainAssets_0(ctx context.Context, marshaler runtime.Marshaler, client RegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RequestChain - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq RequestChain + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["chain"] + val, ok := pathParams["chain"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chain") } - protoReq.Chain, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chain", err) } - msg, err := client.GetChainAssets(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Registry_GetChainAssets_0(ctx context.Context, marshaler runtime.Marshaler, server RegistryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RequestChain - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq RequestChain + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["chain"] + val, ok := pathParams["chain"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chain") } - protoReq.Chain, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chain", err) } - msg, err := server.GetChainAssets(ctx, &protoReq) return msg, metadata, err - } func request_Registry_ListIBC_0(ctx context.Context, marshaler runtime.Marshaler, client RegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq emptypb.Empty - var metadata runtime.ServerMetadata - + var ( + protoReq emptypb.Empty + metadata runtime.ServerMetadata + ) msg, err := client.ListIBC(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Registry_ListIBC_0(ctx context.Context, marshaler runtime.Marshaler, server RegistryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq emptypb.Empty - var metadata runtime.ServerMetadata - + var ( + protoReq emptypb.Empty + metadata runtime.ServerMetadata + ) msg, err := server.ListIBC(ctx, &protoReq) return msg, metadata, err - } func request_Registry_ListChainIBC_0(ctx context.Context, marshaler runtime.Marshaler, client RegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RequestChain - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq RequestChain + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["chain"] + val, ok := pathParams["chain"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chain") } - protoReq.Chain, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chain", err) } - msg, err := client.ListChainIBC(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Registry_ListChainIBC_0(ctx context.Context, marshaler runtime.Marshaler, server RegistryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RequestChain - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq RequestChain + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["chain"] + val, ok := pathParams["chain"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chain") } - protoReq.Chain, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chain", err) } - msg, err := server.ListChainIBC(ctx, &protoReq) return msg, metadata, err - } func request_Registry_GetIBCInfo_0(ctx context.Context, marshaler runtime.Marshaler, client RegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RequestIBCInfo - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq RequestIBCInfo + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["chain_1"] + val, ok := pathParams["chain_1"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chain_1") } - protoReq.Chain_1, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chain_1", err) } - val, ok = pathParams["chain_2"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chain_2") } - protoReq.Chain_2, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chain_2", err) } - msg, err := client.GetIBCInfo(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Registry_GetIBCInfo_0(ctx context.Context, marshaler runtime.Marshaler, server RegistryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RequestIBCInfo - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq RequestIBCInfo + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["chain_1"] + val, ok := pathParams["chain_1"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chain_1") } - protoReq.Chain_1, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chain_1", err) } - val, ok = pathParams["chain_2"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chain_2") } - protoReq.Chain_2, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chain_2", err) } - msg, err := server.GetIBCInfo(ctx, &protoReq) return msg, metadata, err - } // RegisterRegistryHandlerServer registers the http handlers for service Registry to "mux". // UnaryRPC :call RegistryServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterRegistryHandlerFromEndpoint instead. +// GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call. func RegisterRegistryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RegistryServer) error { - - mux.Handle("GET", pattern_Registry_ListChainIDs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Registry_ListChainIDs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/registry.Registry/ListChainIDs", runtime.WithHTTPPathPattern("/chain_ids")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/registry.Registry/ListChainIDs", runtime.WithHTTPPathPattern("/chain_ids")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -496,20 +382,15 @@ func RegisterRegistryHandlerServer(ctx context.Context, mux *runtime.ServeMux, s runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Registry_ListChainIDs_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Registry_ListChains_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Registry_ListChains_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/registry.Registry/ListChains", runtime.WithHTTPPathPattern("/chains")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/registry.Registry/ListChains", runtime.WithHTTPPathPattern("/chains")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -521,20 +402,15 @@ func RegisterRegistryHandlerServer(ctx context.Context, mux *runtime.ServeMux, s runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Registry_ListChains_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Registry_GetChain_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Registry_GetChain_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/registry.Registry/GetChain", runtime.WithHTTPPathPattern("/chains/{chain}")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/registry.Registry/GetChain", runtime.WithHTTPPathPattern("/chains/{chain}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -546,20 +422,15 @@ func RegisterRegistryHandlerServer(ctx context.Context, mux *runtime.ServeMux, s runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Registry_GetChain_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Registry_GetChainKeys_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Registry_GetChainKeys_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/registry.Registry/GetChainKeys", runtime.WithHTTPPathPattern("/chains/{chain}/keys")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/registry.Registry/GetChainKeys", runtime.WithHTTPPathPattern("/chains/{chain}/keys")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -571,20 +442,15 @@ func RegisterRegistryHandlerServer(ctx context.Context, mux *runtime.ServeMux, s runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Registry_GetChainKeys_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Registry_ListChainPeers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Registry_ListChainPeers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/registry.Registry/ListChainPeers", runtime.WithHTTPPathPattern("/chains/{chain}/peers")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/registry.Registry/ListChainPeers", runtime.WithHTTPPathPattern("/chains/{chain}/peers")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -596,20 +462,15 @@ func RegisterRegistryHandlerServer(ctx context.Context, mux *runtime.ServeMux, s runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Registry_ListChainPeers_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Registry_ListChainAPIs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Registry_ListChainAPIs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/registry.Registry/ListChainAPIs", runtime.WithHTTPPathPattern("/chains/{chain}/apis")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/registry.Registry/ListChainAPIs", runtime.WithHTTPPathPattern("/chains/{chain}/apis")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -621,20 +482,15 @@ func RegisterRegistryHandlerServer(ctx context.Context, mux *runtime.ServeMux, s runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Registry_ListChainAPIs_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Registry_GetChainAssets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Registry_GetChainAssets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/registry.Registry/GetChainAssets", runtime.WithHTTPPathPattern("/chains/{chain}/assets")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/registry.Registry/GetChainAssets", runtime.WithHTTPPathPattern("/chains/{chain}/assets")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -646,20 +502,15 @@ func RegisterRegistryHandlerServer(ctx context.Context, mux *runtime.ServeMux, s runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Registry_GetChainAssets_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Registry_ListIBC_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Registry_ListIBC_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/registry.Registry/ListIBC", runtime.WithHTTPPathPattern("/ibc")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/registry.Registry/ListIBC", runtime.WithHTTPPathPattern("/ibc")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -671,20 +522,15 @@ func RegisterRegistryHandlerServer(ctx context.Context, mux *runtime.ServeMux, s runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Registry_ListIBC_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Registry_ListChainIBC_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Registry_ListChainIBC_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/registry.Registry/ListChainIBC", runtime.WithHTTPPathPattern("/ibc/{chain}")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/registry.Registry/ListChainIBC", runtime.WithHTTPPathPattern("/ibc/{chain}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -696,20 +542,15 @@ func RegisterRegistryHandlerServer(ctx context.Context, mux *runtime.ServeMux, s runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Registry_ListChainIBC_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Registry_GetIBCInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Registry_GetIBCInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/registry.Registry/GetIBCInfo", runtime.WithHTTPPathPattern("/ibc/{chain_1}/{chain_2}")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/registry.Registry/GetIBCInfo", runtime.WithHTTPPathPattern("/ibc/{chain_1}/{chain_2}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -721,9 +562,7 @@ func RegisterRegistryHandlerServer(ctx context.Context, mux *runtime.ServeMux, s runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Registry_GetIBCInfo_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -750,7 +589,6 @@ func RegisterRegistryHandlerFromEndpoint(ctx context.Context, mux *runtime.Serve } }() }() - return RegisterRegistryHandler(ctx, mux, conn) } @@ -764,16 +602,13 @@ func RegisterRegistryHandler(ctx context.Context, mux *runtime.ServeMux, conn *g // to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "RegistryClient". // Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "RegistryClient" // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "RegistryClient" to call the correct interceptors. +// "RegistryClient" to call the correct interceptors. This client ignores the HTTP middlewares. func RegisterRegistryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RegistryClient) error { - - mux.Handle("GET", pattern_Registry_ListChainIDs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Registry_ListChainIDs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/registry.Registry/ListChainIDs", runtime.WithHTTPPathPattern("/chain_ids")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/registry.Registry/ListChainIDs", runtime.WithHTTPPathPattern("/chain_ids")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -784,18 +619,13 @@ func RegisterRegistryHandlerClient(ctx context.Context, mux *runtime.ServeMux, c runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Registry_ListChainIDs_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Registry_ListChains_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Registry_ListChains_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/registry.Registry/ListChains", runtime.WithHTTPPathPattern("/chains")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/registry.Registry/ListChains", runtime.WithHTTPPathPattern("/chains")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -806,18 +636,13 @@ func RegisterRegistryHandlerClient(ctx context.Context, mux *runtime.ServeMux, c runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Registry_ListChains_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Registry_GetChain_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Registry_GetChain_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/registry.Registry/GetChain", runtime.WithHTTPPathPattern("/chains/{chain}")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/registry.Registry/GetChain", runtime.WithHTTPPathPattern("/chains/{chain}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -828,18 +653,13 @@ func RegisterRegistryHandlerClient(ctx context.Context, mux *runtime.ServeMux, c runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Registry_GetChain_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Registry_GetChainKeys_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Registry_GetChainKeys_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/registry.Registry/GetChainKeys", runtime.WithHTTPPathPattern("/chains/{chain}/keys")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/registry.Registry/GetChainKeys", runtime.WithHTTPPathPattern("/chains/{chain}/keys")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -850,18 +670,13 @@ func RegisterRegistryHandlerClient(ctx context.Context, mux *runtime.ServeMux, c runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Registry_GetChainKeys_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Registry_ListChainPeers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Registry_ListChainPeers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/registry.Registry/ListChainPeers", runtime.WithHTTPPathPattern("/chains/{chain}/peers")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/registry.Registry/ListChainPeers", runtime.WithHTTPPathPattern("/chains/{chain}/peers")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -872,18 +687,13 @@ func RegisterRegistryHandlerClient(ctx context.Context, mux *runtime.ServeMux, c runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Registry_ListChainPeers_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Registry_ListChainAPIs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Registry_ListChainAPIs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/registry.Registry/ListChainAPIs", runtime.WithHTTPPathPattern("/chains/{chain}/apis")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/registry.Registry/ListChainAPIs", runtime.WithHTTPPathPattern("/chains/{chain}/apis")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -894,18 +704,13 @@ func RegisterRegistryHandlerClient(ctx context.Context, mux *runtime.ServeMux, c runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Registry_ListChainAPIs_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Registry_GetChainAssets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Registry_GetChainAssets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/registry.Registry/GetChainAssets", runtime.WithHTTPPathPattern("/chains/{chain}/assets")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/registry.Registry/GetChainAssets", runtime.WithHTTPPathPattern("/chains/{chain}/assets")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -916,18 +721,13 @@ func RegisterRegistryHandlerClient(ctx context.Context, mux *runtime.ServeMux, c runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Registry_GetChainAssets_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Registry_ListIBC_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Registry_ListIBC_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/registry.Registry/ListIBC", runtime.WithHTTPPathPattern("/ibc")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/registry.Registry/ListIBC", runtime.WithHTTPPathPattern("/ibc")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -938,18 +738,13 @@ func RegisterRegistryHandlerClient(ctx context.Context, mux *runtime.ServeMux, c runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Registry_ListIBC_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Registry_ListChainIBC_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Registry_ListChainIBC_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/registry.Registry/ListChainIBC", runtime.WithHTTPPathPattern("/ibc/{chain}")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/registry.Registry/ListChainIBC", runtime.WithHTTPPathPattern("/ibc/{chain}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -960,18 +755,13 @@ func RegisterRegistryHandlerClient(ctx context.Context, mux *runtime.ServeMux, c runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Registry_ListChainIBC_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Registry_GetIBCInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Registry_GetIBCInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/registry.Registry/GetIBCInfo", runtime.WithHTTPPathPattern("/ibc/{chain_1}/{chain_2}")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/registry.Registry/GetIBCInfo", runtime.WithHTTPPathPattern("/ibc/{chain_1}/{chain_2}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -982,54 +772,33 @@ func RegisterRegistryHandlerClient(ctx context.Context, mux *runtime.ServeMux, c runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Registry_GetIBCInfo_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - return nil } var ( - pattern_Registry_ListChainIDs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"chain_ids"}, "")) - - pattern_Registry_ListChains_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"chains"}, "")) - - pattern_Registry_GetChain_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"chains", "chain"}, "")) - - pattern_Registry_GetChainKeys_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"chains", "chain", "keys"}, "")) - + pattern_Registry_ListChainIDs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"chain_ids"}, "")) + pattern_Registry_ListChains_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"chains"}, "")) + pattern_Registry_GetChain_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"chains", "chain"}, "")) + pattern_Registry_GetChainKeys_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"chains", "chain", "keys"}, "")) pattern_Registry_ListChainPeers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"chains", "chain", "peers"}, "")) - - pattern_Registry_ListChainAPIs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"chains", "chain", "apis"}, "")) - + pattern_Registry_ListChainAPIs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"chains", "chain", "apis"}, "")) pattern_Registry_GetChainAssets_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"chains", "chain", "assets"}, "")) - - pattern_Registry_ListIBC_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"ibc"}, "")) - - pattern_Registry_ListChainIBC_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"ibc", "chain"}, "")) - - pattern_Registry_GetIBCInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 1, 0, 4, 1, 5, 2}, []string{"ibc", "chain_1", "chain_2"}, "")) + pattern_Registry_ListIBC_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"ibc"}, "")) + pattern_Registry_ListChainIBC_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"ibc", "chain"}, "")) + pattern_Registry_GetIBCInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 1, 0, 4, 1, 5, 2}, []string{"ibc", "chain_1", "chain_2"}, "")) ) var ( - forward_Registry_ListChainIDs_0 = runtime.ForwardResponseMessage - - forward_Registry_ListChains_0 = runtime.ForwardResponseMessage - - forward_Registry_GetChain_0 = runtime.ForwardResponseMessage - - forward_Registry_GetChainKeys_0 = runtime.ForwardResponseMessage - + forward_Registry_ListChainIDs_0 = runtime.ForwardResponseMessage + forward_Registry_ListChains_0 = runtime.ForwardResponseMessage + forward_Registry_GetChain_0 = runtime.ForwardResponseMessage + forward_Registry_GetChainKeys_0 = runtime.ForwardResponseMessage forward_Registry_ListChainPeers_0 = runtime.ForwardResponseMessage - - forward_Registry_ListChainAPIs_0 = runtime.ForwardResponseMessage - + forward_Registry_ListChainAPIs_0 = runtime.ForwardResponseMessage forward_Registry_GetChainAssets_0 = runtime.ForwardResponseMessage - - forward_Registry_ListIBC_0 = runtime.ForwardResponseMessage - - forward_Registry_ListChainIBC_0 = runtime.ForwardResponseMessage - - forward_Registry_GetIBCInfo_0 = runtime.ForwardResponseMessage + forward_Registry_ListIBC_0 = runtime.ForwardResponseMessage + forward_Registry_ListChainIBC_0 = runtime.ForwardResponseMessage + forward_Registry_GetIBCInfo_0 = runtime.ForwardResponseMessage ) diff --git a/starship/registry/registry/service_grpc.pb.go b/starship/registry/registry/service_grpc.pb.go index 71cadc7f2..c76337592 100644 --- a/starship/registry/registry/service_grpc.pb.go +++ b/starship/registry/registry/service_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.4.0 +// - protoc-gen-go-grpc v1.5.1 // - protoc (unknown) // source: registry/service.proto @@ -16,8 +16,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.62.0 or later. -const _ = grpc.SupportPackageIsVersion8 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( Registry_ListChainIDs_FullMethodName = "/registry.Registry/ListChainIDs" @@ -168,7 +168,7 @@ func (c *registryClient) GetIBCInfo(ctx context.Context, in *RequestIBCInfo, opt // RegistryServer is the server API for Registry service. // All implementations must embed UnimplementedRegistryServer -// for forward compatibility +// for forward compatibility. // // Interface for service type RegistryServer interface { @@ -193,9 +193,12 @@ type RegistryServer interface { mustEmbedUnimplementedRegistryServer() } -// UnimplementedRegistryServer must be embedded to have forward compatible implementations. -type UnimplementedRegistryServer struct { -} +// UnimplementedRegistryServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedRegistryServer struct{} func (UnimplementedRegistryServer) ListChainIDs(context.Context, *emptypb.Empty) (*ResponseChainIDs, error) { return nil, status.Errorf(codes.Unimplemented, "method ListChainIDs not implemented") @@ -228,6 +231,7 @@ func (UnimplementedRegistryServer) GetIBCInfo(context.Context, *RequestIBCInfo) return nil, status.Errorf(codes.Unimplemented, "method GetIBCInfo not implemented") } func (UnimplementedRegistryServer) mustEmbedUnimplementedRegistryServer() {} +func (UnimplementedRegistryServer) testEmbeddedByValue() {} // UnsafeRegistryServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to RegistryServer will @@ -237,6 +241,13 @@ type UnsafeRegistryServer interface { } func RegisterRegistryServer(s grpc.ServiceRegistrar, srv RegistryServer) { + // If the following call pancis, it indicates UnimplementedRegistryServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Registry_ServiceDesc, srv) }