Repository: ovrclk/akash
Pull request #1096 (2021-02-16 13:34:22)

feat(provider): implement info fields
Signed-off-by: Artur Troian <troian.ap@gmail.com>



Patch:
diff --git a/proto/akash/provider/v1beta1/provider.proto b/proto/akash/provider/v1beta1/provider.proto
index f3dad107..d2feb588 100644
--- a/proto/akash/provider/v1beta1/provider.proto
+++ b/proto/akash/provider/v1beta1/provider.proto
@@ -18,6 +18,19 @@ service Msg {
   rpc DeleteProvider(MsgDeleteProvider) returns (MsgDeleteProviderResponse);
 }
 
+// ProviderInfo
+message ProviderInfo {
+  string email = 1 [
+    (gogoproto.customname) = "EMail",
+    (gogoproto.jsontag)    = "email",
+    (gogoproto.moretags)   = "yaml:\"email\""
+  ];
+  string website = 2 [
+    (gogoproto.jsontag)    = "website",
+    (gogoproto.moretags)   = "yaml:\"website\""
+  ];
+}
+
 // MsgCreateProvider defines an SDK message for creating a provider
 message MsgCreateProvider {
   option (gogoproto.equal) = false;
@@ -34,6 +47,12 @@ message MsgCreateProvider {
     (gogoproto.jsontag)      = "attributes",
     (gogoproto.moretags)     = "yaml:\"attributes\""
   ];
+
+  ProviderInfo info = 4 [
+    (gogoproto.nullable) = false,
+    (gogoproto.jsontag)  = "info",
+    (gogoproto.moretags) = "yaml:\"info\""
+  ];
 }
 
 // MsgCreateProviderResponse defines the Msg/CreateProvider response type.
@@ -55,6 +74,11 @@ message MsgUpdateProvider {
     (gogoproto.jsontag)      = "attributes",
     (gogoproto.moretags)     = "yaml:\"attributes\""
   ];
+  ProviderInfo info = 4 [
+    (gogoproto.nullable) = false,
+    (gogoproto.jsontag)  = "info",
+    (gogoproto.moretags) = "yaml:\"info\""
+  ];
 }
 
 // MsgUpdateProviderResponse defines the Msg/UpdateProvider response type.
@@ -87,4 +111,10 @@ message Provider {
     (gogoproto.jsontag)      = "attributes",
     (gogoproto.moretags)     = "yaml:\"attributes\""
   ];
+
+  ProviderInfo info = 4 [
+    (gogoproto.nullable) = false,
+    (gogoproto.jsontag)  = "info",
+    (gogoproto.moretags) = "yaml:\"info\""
+  ];
 }
diff --git a/x/provider/handler/server.go b/x/provider/handler/server.go
index 37362e08..8a884777 100644
--- a/x/provider/handler/server.go
+++ b/x/provider/handler/server.go
@@ -34,19 +34,16 @@ var _ types.MsgServer = msgServer{}
 func (ms msgServer) CreateProvider(goCtx context.Context, msg *types.MsgCreateProvider) (*types.MsgCreateProviderResponse, error) {
 	ctx := sdk.UnwrapSDKContext(goCtx)
 
-	owner, err := sdk.AccAddressFromBech32(msg.Owner)
-	if err != nil {
+	if err := msg.ValidateBasic(); err != nil {
 		return nil, err
 	}
 
+	owner, _ := sdk.AccAddressFromBech32(msg.Owner)
+
 	if _, ok := ms.provider.Get(ctx, owner); ok {
 		return nil, errors.Wrapf(types.ErrProviderExists, "id: %s", msg.Owner)
 	}
 
-	if err := msg.Attributes.Validate(); err != nil {
-		return nil, err
-	}
-
 	if err := ms.provider.Create(ctx, types.Provider(*msg)); err != nil {
 		return nil, sdkerrors.Wrapf(ErrInternal, "err: %v", err)
 	}
@@ -57,20 +54,17 @@ func (ms msgServer) CreateProvider(goCtx context.Context, msg *types.MsgCreatePr
 func (ms msgServer) UpdateProvider(goCtx context.Context, msg *types.MsgUpdateProvider) (*types.MsgUpdateProviderResponse, error) {
 	ctx := sdk.UnwrapSDKContext(goCtx)
 
-	owner, err := sdk.AccAddressFromBech32(msg.Owner)
+	err := msg.ValidateBasic()
 	if err != nil {
 		return nil, err
 	}
 
+	owner, _ := sdk.AccAddressFromBech32(msg.Owner)
 	prov, found := ms.provider.Get(ctx, owner)
 	if !found {
 		return nil, errors.Wrapf(types.ErrProviderNotFound, "id: %s", msg.Owner)
 	}
 
-	if err := msg.Attributes.Validate(); err != nil {
-		return nil, err
-	}
-
 	// all filtering code below is madness!. should make an index to not melt the cpu
 	// TODO: use WithActiveLeases, filter by lease.Provider
 	ms.market.WithLeases(ctx, func(lease mtypes.Lease) bool {
diff --git a/x/provider/types/errors.go b/x/provider/types/errors.go
index 5946cc92..aeb5dacb 100644
--- a/x/provider/types/errors.go
+++ b/x/provider/types/errors.go
@@ -12,6 +12,7 @@ const (
 	errInvalidAddress
 	errAttributes
 	errIncompatibleAttributes
+	errInvalidInfoWebsite
 )
 
 var (
@@ -35,4 +36,7 @@ var (
 
 	// ErrIncompatibleAttributes error code for attributes update
 	ErrIncompatibleAttributes = sdkerrors.Register(ModuleName, errIncompatibleAttributes, "attributes cannot be changed")
+
+	// ErrInvalidInfoWebsite register error code for invalid info website
+	ErrInvalidInfoWebsite = sdkerrors.Register(ModuleName, errInvalidInfoWebsite, "invalid provider: invalid info website")
 )
diff --git a/x/provider/types/msgs.go b/x/provider/types/msgs.go
index 0643a52d..5b269865 100644
--- a/x/provider/types/msgs.go
+++ b/x/provider/types/msgs.go
@@ -43,6 +43,12 @@ func (msg MsgCreateProvider) ValidateBasic() error {
 	if _, err := sdk.AccAddressFromBech32(msg.Owner); err != nil {
 		return sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, "MsgCreate: Invalid Provider Address")
 	}
+	if err := msg.Attributes.Validate(); err != nil {
+		return err
+	}
+	if err := msg.Info.Validate(); err != nil {
+		return err
+	}
 	return nil
 }
 
@@ -84,6 +90,12 @@ func (msg MsgUpdateProvider) ValidateBasic() error {
 	if _, err := sdk.AccAddressFromBech32(msg.Owner); err != nil {
 		return sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, "MsgUpdate: Invalid Provider Address")
 	}
+	if err := msg.Attributes.Validate(); err != nil {
+		return err
+	}
+	if err := msg.Info.Validate(); err != nil {
+		return err
+	}
 	return nil
 }
 
diff --git a/x/provider/types/provider.pb.go b/x/provider/types/provider.pb.go
index 31a71106..3340b187 100644
--- a/x/provider/types/provider.pb.go
+++ b/x/provider/types/provider.pb.go
@@ -30,18 +30,72 @@ var _ = math.Inf
 // proto package needs to be updated.
 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
 
+// ProviderInfo
+type ProviderInfo struct {
+	EMail   string `protobuf:"bytes,1,opt,name=email,proto3" json:"email" yaml:"email"`
+	Website string `protobuf:"bytes,2,opt,name=website,proto3" json:"website" yaml:"website"`
+}
+
+func (m *ProviderInfo) Reset()         { *m = ProviderInfo{} }
+func (m *ProviderInfo) String() string { return proto.CompactTextString(m) }
+func (*ProviderInfo) ProtoMessage()    {}
+func (*ProviderInfo) Descriptor() ([]byte, []int) {
+	return fileDescriptor_12a8109840398be6, []int{0}
+}
+func (m *ProviderInfo) XXX_Unmarshal(b []byte) error {
+	return m.Unmarshal(b)
+}
+func (m *ProviderInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+	if deterministic {
+		return xxx_messageInfo_ProviderInfo.Marshal(b, m, deterministic)
+	} else {
+		b = b[:cap(b)]
+		n, err := m.MarshalToSizedBuffer(b)
+		if err != nil {
+			return nil, err
+		}
+		return b[:n], nil
+	}
+}
+func (m *ProviderInfo) XXX_Merge(src proto.Message) {
+	xxx_messageInfo_ProviderInfo.Merge(m, src)
+}
+func (m *ProviderInfo) XXX_Size() int {
+	return m.Size()
+}
+func (m *ProviderInfo) XXX_DiscardUnknown() {
+	xxx_messageInfo_ProviderInfo.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_ProviderInfo proto.InternalMessageInfo
+
+func (m *ProviderInfo) GetEMail() string {
+	if m != nil {
+		return m.EMail
+	}
+	return ""
+}
+
+func (m *ProviderInfo) GetWebsite() string {
+	if m != nil {
+		return m.Website
+	}
+	return ""
+}
+
 // MsgCreateProvider defines an SDK message for creating a provider
 type MsgCreateProvider struct {
 	Owner      string                                   `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner" yaml:"owner"`
 	HostURI    string                                   `protobuf:"bytes,2,opt,name=host_uri,json=hostUri,proto3" json:"host_uri" yaml:"host_uri"`
 	Attributes github_com_ovrclk_akash_types.Attributes `protobuf:"bytes,3,rep,name=attributes,proto3,castrepeated=github.com/ovrclk/akash/types.Attributes" json:"attributes" yaml:"attributes"`
+	Info       ProviderInfo                             `protobuf:"bytes,4,opt,name=info,proto3" json:"info" yaml:"info"`
 }
 
 func (m *MsgCreateProvider) Reset()         { *m = MsgCreateProvider{} }
 func (m *MsgCreateProvider) String() string { return proto.CompactTextString(m) }
 func (*MsgCreateProvider) ProtoMessage()    {}
 func (*MsgCreateProvider) Descriptor() ([]byte, []int) {
-	return fileDescriptor_12a8109840398be6, []int{0}
+	return fileDescriptor_12a8109840398be6, []int{1}
 }
 func (m *MsgCreateProvider) XXX_Unmarshal(b []byte) error {
 	return m.Unmarshal(b)
@@ -91,6 +145,13 @@ func (m *MsgCreateProvider) GetAttributes() github_com_ovrclk_akash_types.Attrib
 	return nil
 }
 
+func (m *MsgCreateProvider) GetInfo() ProviderInfo {
+	if m != nil {
+		return m.Info
+	}
+	return ProviderInfo{}
+}
+
 // MsgCreateProviderResponse defines the Msg/CreateProvider response type.
 type MsgCreateProviderResponse struct {
 }
@@ -99,7 +160,7 @@ func (m *MsgCreateProviderResponse) Reset()         { *m = MsgCreateProviderResp
 func (m *MsgCreateProviderResponse) String() string { return proto.CompactTextString(m) }
 func (*MsgCreateProviderResponse) ProtoMessage()    {}
 func (*MsgCreateProviderResponse) Descriptor() ([]byte, []int) {
-	return fileDescriptor_12a8109840398be6, []int{1}
+	return fileDescriptor_12a8109840398be6, []int{2}
 }
 func (m *MsgCreateProviderResponse) XXX_Unmarshal(b []byte) error {
 	return m.Unmarshal(b)
@@ -133,13 +194,14 @@ type MsgUpdateProvider struct {
 	Owner      string                                   `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner" yaml:"owner"`
 	HostURI    string                                   `protobuf:"bytes,2,opt,name=host_uri,json=hostUri,proto3" json:"host_uri" yaml:"host_uri"`
 	Attributes github_com_ovrclk_akash_types.Attributes `protobuf:"bytes,3,rep,name=attributes,proto3,castrepeated=github.com/ovrclk/akash/types.Attributes" json:"attributes" yaml:"attributes"`
+	Info       ProviderInfo                             `protobuf:"bytes,4,opt,name=info,proto3" json:"info" yaml:"info"`
 }
 
 func (m *MsgUpdateProvider) Reset()         { *m = MsgUpdateProvider{} }
 func (m *MsgUpdateProvider) String() string { return proto.CompactTextString(m) }
 func (*MsgUpdateProvider) ProtoMessage()    {}
 func (*MsgUpdateProvider) Descriptor() ([]byte, []int) {
-	return fileDescriptor_12a8109840398be6, []int{2}
+	return fileDescriptor_12a8109840398be6, []int{3}
 }
 func (m *MsgUpdateProvider) XXX_Unmarshal(b []byte) error {
 	return m.Unmarshal(b)
@@ -189,6 +251,13 @@ func (m *MsgUpdateProvider) GetAttributes() github_com_ovrclk_akash_types.Attrib
 	return nil
 }
 
+func (m *MsgUpdateProvider) GetInfo() ProviderInfo {
+	if m != nil {
+		return m.Info
+	}
+	return ProviderInfo{}
+}
+
 // MsgUpdateProviderResponse defines the Msg/UpdateProvider response type.
 type MsgUpdateProviderResponse struct {
 }
@@ -197,7 +266,7 @@ func (m *MsgUpdateProviderResponse) Reset()         { *m = MsgUpdateProviderResp
 func (m *MsgUpdateProviderResponse) String() string { return proto.CompactTextString(m) }
 func (*MsgUpdateProviderResponse) ProtoMessage()    {}
 func (*MsgUpdateProviderResponse) Descriptor() ([]byte, []int) {
-	return fileDescriptor_12a8109840398be6, []int{3}
+	return fileDescriptor_12a8109840398be6, []int{4}
 }
 func (m *MsgUpdateProviderResponse) XXX_Unmarshal(b []byte) error {
 	return m.Unmarshal(b)
@@ -235,7 +304,7 @@ func (m *MsgDeleteProvider) Reset()         { *m = MsgDeleteProvider{} }
 func (m *MsgDeleteProvider) String() string { return proto.CompactTextString(m) }
 func (*MsgDeleteProvider) ProtoMessage()    {}
 func (*MsgDeleteProvider) Descriptor() ([]byte, []int) {
-	return fileDescriptor_12a8109840398be6, []int{4}
+	return fileDescriptor_12a8109840398be6, []int{5}
 }
 func (m *MsgDeleteProvider) XXX_Unmarshal(b []byte) error {
 	return m.Unmarshal(b)
@@ -279,7 +348,7 @@ func (m *MsgDeleteProviderResponse) Reset()         { *m = MsgDeleteProviderResp
 func (m *MsgDeleteProviderResponse) String() string { return proto.CompactTextString(m) }
 func (*MsgDeleteProviderResponse) ProtoMessage()    {}
 func (*MsgDeleteProviderResponse) Descriptor() ([]byte, []int) {
-	return fileDescriptor_12a8109840398be6, []int{5}
+	return fileDescriptor_12a8109840398be6, []int{6}
 }
 func (m *MsgDeleteProviderResponse) XXX_Unmarshal(b []byte) error {
 	return m.Unmarshal(b)
@@ -313,12 +382,13 @@ type Provider struct {
 	Owner      string                                   `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner" yaml:"owner"`
 	HostURI    string                                   `protobuf:"bytes,2,opt,name=host_uri,json=hostUri,proto3" json:"host_uri" yaml:"host_uri"`
 	Attributes github_com_ovrclk_akash_types.Attributes `protobuf:"bytes,3,rep,name=attributes,proto3,castrepeated=github.com/ovrclk/akash/types.Attributes" json:"attributes" yaml:"attributes"`
+	Info       ProviderInfo                             `protobuf:"bytes,4,opt,name=info,proto3" json:"info" yaml:"info"`
 }
 
 func (m *Provider) Reset()      { *m = Provider{} }
 func (*Provider) ProtoMessage() {}
 func (*Provider) Descriptor() ([]byte, []int) {
-	return fileDescriptor_12a8109840398be6, []int{6}
+	return fileDescriptor_12a8109840398be6, []int{7}
 }
 func (m *Provider) XXX_Unmarshal(b []byte) error {
 	return m.Unmarshal(b)
@@ -368,7 +438,15 @@ func (m *Provider) GetAttributes() github_com_ovrclk_akash_types.Attributes {
 	return nil
 }
 
+func (m *Provider) GetInfo() ProviderInfo {
+	if m != nil {
+		return m.Info
+	}
+	return ProviderInfo{}
+}
+
 func init() {
+	proto.RegisterType((*ProviderInfo)(nil), "akash.provider.v1beta1.ProviderInfo")
 	proto.RegisterType((*MsgCreateProvider)(nil), "akash.provider.v1beta1.MsgCreateProvider")
 	proto.RegisterType((*MsgCreateProviderResponse)(nil), "akash.provider.v1beta1.MsgCreateProviderResponse")
 	proto.RegisterType((*MsgUpdateProvider)(nil), "akash.provider.v1beta1.MsgUpdateProvider")
@@ -383,36 +461,43 @@ func init() {
 }
 
 var fileDescriptor_12a8109840398be6 = []byte{
-	// 460 bytes of a gzipped FileDescriptorProto
-	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4d, 0xcc, 0x4e, 0x2c,
-	0xce, 0xd0, 0x2f, 0x28, 0xca, 0x2f, 0xcb, 0x4c, 0x49, 0x2d, 0xd2, 0x2f, 0x33, 0x4c, 0x4a, 0x2d,
-	0x49, 0x34, 0x84, 0x0b, 0xe8, 0x15, 0x14, 0xe5, 0x97, 0xe4, 0x0b, 0x89, 0x81, 0x95, 0xe9, 0xc1,
-	0x45, 0xa1, 0xca, 0xa4, 0x44, 0xd2, 0xf3, 0xd3, 0xf3, 0xc1, 0x4a, 0xf4, 0x41, 0x2c, 0x88, 0x6a,
-	0x29, 0x25, 0x88, 0xa1, 0x49, 0x89, 0xc5, 0xa9, 0x70, 0x03, 0x13, 0x4b, 0x4a, 0x8a, 0x32, 0x93,
-	0x4a, 0x4b, 0x52, 0x21, 0x6a, 0x94, 0x96, 0x31, 0x71, 0x09, 0xfa, 0x16, 0xa7, 0x3b, 0x17, 0xa5,
-	0x26, 0x96, 0xa4, 0x06, 0x40, 0xcd, 0x15, 0xd2, 0xe7, 0x62, 0xcd, 0x2f, 0xcf, 0x4b, 0x2d, 0x92,
-	0x60, 0x54, 0x60, 0xd4, 0xe0, 0x74, 0x92, 0x7c, 0x75, 0x4f, 0x1e, 0x22, 0xf0, 0xe9, 0x9e, 0x3c,
-	0x4f, 0x65, 0x62, 0x6e, 0x8e, 0x95, 0x12, 0x98, 0xab, 0x14, 0x04, 0x11, 0x16, 0x72, 0xe5, 0xe2,
-	0xc8, 0xc8, 0x2f, 0x2e, 0x89, 0x2f, 0x2d, 0xca, 0x94, 0x60, 0x02, 0xeb, 0xd1, 0x7a, 0x74, 0x4f,
-	0x9e, 0xdd, 0x23, 0xbf, 0xb8, 0x24, 0x34, 0xc8, 0xf3, 0xd5, 0x3d, 0x79, 0xb8, 0xf4, 0xa7, 0x7b,
-	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a, 0xe1, 0xa0, 0xa9, 0x87, 0xbd, 0x14, 0xd2, 0xc3, 0xc8, 0x1f,
-	0x52, 0x86, 0x44, 0x2b, 0x85, 0xc5, 0x0d, 0xc8, 0x3e, 0xb4, 0x6c, 0x84, 0xcf, 0x3e, 0x54, 0xa5,
-	0x78, 0xed, 0xc3, 0x9e, 0xe8, 0x40, 0xf6, 0xa1, 0xa5, 0x38, 0x7c, 0xf6, 0xa1, 0x2a, 0xc5, 0x6b,
-	0x1f, 0xf6, 0xb4, 0xe7, 0xe4, 0x74, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e,
-	0xc9, 0x31, 0x4e, 0x78, 0x2c, 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51,
-	0x38, 0x63, 0xac, 0x02, 0x51, 0x2f, 0x80, 0x23, 0x2f, 0x89, 0x0d, 0x5c, 0x76, 0x1b, 0x03, 0x02,
-	0x00, 0x00, 0xff, 0xff, 0x05, 0x6a, 0xde, 0x99, 0x36, 0x06, 0x00, 0x00,
+	// 567 bytes of a gzipped FileDescriptorProto
+	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x55, 0x3f, 0x6f, 0xd3, 0x4e,
+	0x18, 0xb6, 0xf3, 0xe7, 0x97, 0xfc, 0x2e, 0x55, 0x51, 0x2d, 0x84, 0xd2, 0x54, 0xf5, 0x45, 0x27,
+	0x90, 0x02, 0x83, 0xad, 0x84, 0x01, 0xd4, 0x8d, 0x40, 0x25, 0x8a, 0x14, 0x09, 0x19, 0x65, 0x61,
+	0x41, 0x76, 0x7b, 0x4d, 0xac, 0x26, 0x39, 0xcb, 0x77, 0x49, 0xe9, 0xc8, 0x37, 0x40, 0x4c, 0x8c,
+	0x9d, 0xf9, 0x24, 0x1d, 0xbb, 0x20, 0x31, 0x1d, 0xc8, 0x59, 0x50, 0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, 0x07, 0xf8, 0x0f, 0xb2, 0xc9, 0x18, 0x65, 0xb5, 0x52,
+	0xa3, 0x1f, 0x39, 0x50, 0xbe, 0x09, 0xff, 0x2f, 0x86, 0x5f, 0xfe, 0x78, 0x0e, 0x95, 0x28, 0x97,
+	0xd6, 0xe7, 0x1c, 0xc8, 0x77, 0x68, 0x4f, 0x1b, 0x81, 0xcd, 0xa5, 0x2f, 0xe4, 0xfd, 0xeb, 0xcc,
+	0xae, 0xbc, 0xcd, 0xb5, 0xe6, 0x6f, 0x53, 0x93, 0xc8, 0x23, 0xbf, 0xa5, 0x97, 0x7e, 0x9d, 0x5f,
+	0x96, 0xba, 0xd6, 0x6f, 0xf5, 0x2e, 0x47, 0x7e, 0x4b, 0x8b, 0xbc, 0xce, 0x2f, 0x4b, 0x5d, 0xeb,
+	0xb7, 0x7a, 0xa5, 0xdb, 0xed, 0x8b, 0x40, 0x57, 0x2f, 0x03, 0x5d, 0xfd, 0x16, 0xe8, 0xea, 0xfb,
+	0xa9, 0xae, 0x5c, 0x4e, 0x75, 0xe5, 0xcb, 0x54, 0x57, 0x5e, 0x5f, 0xbb, 0x08, 0x6f, 0xe7, 0x3f,
+	0x68, 0xb1, 0x13, 0xce, 0x7f, 0xe2, 0x27, 0xfa, 0xf0, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0xb4,
+	0x72, 0xa3, 0x94, 0xbf, 0x07, 0x00, 0x00,
 }
 
 // Reference imports to suppress errors if they are not otherwise used.
@@ -573,6 +658,43 @@ var _Msg_serviceDesc = grpc.ServiceDesc{
 	Metadata: "akash/provider/v1beta1/provider.proto",
 }
 
+func (m *ProviderInfo) Marshal() (dAtA []byte, err error) {
+	size := m.Size()
+	dAtA = make([]byte, size)
+	n, err := m.MarshalToSizedBuffer(dAtA[:size])
+	if err != nil {
+		return nil, err
+	}
+	return dAtA[:n], nil
+}
+
+func (m *ProviderInfo) MarshalTo(dAtA []byte) (int, error) {
+	size := m.Size()
+	return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *ProviderInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+	i := len(dAtA)
+	_ = i
+	var l int
+	_ = l
+	if len(m.Website) > 0 {
+		i -= len(m.Website)
+		copy(dAtA[i:], m.Website)
+		i = encodeVarintProvider(dAtA, i, uint64(len(m.Website)))
+		i--
+		dAtA[i] = 0x12
+	}
+	if len(m.EMail) > 0 {
+		i -= len(m.EMail)
+		copy(dAtA[i:], m.EMail)
+		i = encodeVarintProvider(dAtA, i, uint64(len(m.EMail)))
+		i--
+		dAtA[i] = 0xa
+	}
+	return len(dAtA) - i, nil
+}
+
 func (m *MsgCreateProvider) Marshal() (dAtA []byte, err error) {
 	size := m.Size()
 	dAtA = make([]byte, size)
@@ -593,6 +715,16 @@ func (m *MsgCreateProvider) MarshalToSizedBuffer(dAtA []byte) (int, error) {
 	_ = i
 	var l int
 	_ = l
+	{
+		size, err := m.Info.MarshalToSizedBuffer(dAtA[:i])
+		if err != nil {
+			return 0, err
+		}
+		i -= size
+		i = encodeVarintProvider(dAtA, i, uint64(size))
+	}
+	i--
+	dAtA[i] = 0x22
 	if len(m.Attributes) > 0 {
 		for iNdEx := len(m.Attributes) - 1; iNdEx >= 0; iNdEx-- {
 			{
@@ -667,6 +799,16 @@ func (m *MsgUpdateProvider) MarshalToSizedBuffer(dAtA []byte) (int, error) {
 	_ = i
 	var l int
 	_ = l
+	{
+		size, err := m.Info.MarshalToSizedBuffer(dAtA[:i])
+		if err != nil {
+			return 0, err
+		}
+		i -= size
+		i = encodeVarintProvider(dAtA, i, uint64(size))
+	}
+	i--
+	dAtA[i] = 0x22
 	if len(m.Attributes) > 0 {
 		for iNdEx := len(m.Attributes) - 1; iNdEx >= 0; iNdEx-- {
 			{
@@ -794,6 +936,16 @@ func (m *Provider) MarshalToSizedBuffer(dAtA []byte) (int, error) {
 	_ = i
 	var l int
 	_ = l
+	{
+		size, err := m.Info.MarshalToSizedBuffer(dAtA[:i])
+		if err != nil {
+			return 0, err
+		}
+		i -= size
+		i = encodeVarintProvider(dAtA, i, uint64(size))
+	}
+	i--
+	dAtA[i] = 0x22
 	if len(m.Attributes) > 0 {
 		for iNdEx := len(m.Attributes) - 1; iNdEx >= 0; iNdEx-- {
 			{
@@ -836,6 +988,23 @@ func encodeVarintProvider(dAtA []byte, offset int, v uint64) int {
 	dAtA[offset] = uint8(v)
 	return base
 }
+func (m *ProviderInfo) Size() (n int) {
+	if m == nil {
+		return 0
+	}
+	var l int
+	_ = l
+	l = len(m.EMail)
+	if l > 0 {
+		n += 1 + l + sovProvider(uint64(l))
+	}
+	l = len(m.Website)
+	if l > 0 {
+		n += 1 + l + sovProvider(uint64(l))
+	}
+	return n
+}
+
 func (m *MsgCreateProvider) Size() (n int) {
 	if m == nil {
 		return 0
@@ -856,6 +1025,8 @@ func (m *MsgCreateProvider) Size() (n int) {
 			n += 1 + l + sovProvider(uint64(l))
 		}
 	}
+	l = m.Info.Size()
+	n += 1 + l + sovProvider(uint64(l))
 	return n
 }
 
@@ -888,6 +1059,8 @@ func (m *MsgUpdateProvider) Size() (n int) {
 			n += 1 + l + sovProvider(uint64(l))
 		}
 	}
+	l = m.Info.Size()
+	n += 1 + l + sovProvider(uint64(l))
 	return n
 }
 
@@ -942,6 +1115,8 @@ func (m *Provider) Size() (n int) {
 			n += 1 + l + sovProvider(uint64(l))
 		}
 	}
+	l = m.Info.Size()
+	n += 1 + l + sovProvider(uint64(l))
 	return n
 }
 
@@ -951,6 +1126,123 @@ func sovProvider(x uint64) (n int) {
 func sozProvider(x uint64) (n int) {
 	return sovProvider(uint64((x << 1) ^ uint64((int64(x) >> 63))))
 }
+func (m *ProviderInfo) Unmarshal(dAtA []byte) error {
+	l := len(dAtA)
+	iNdEx := 0
+	for iNdEx < l {
+		preIndex := iNdEx
+		var wire uint64
+		for shift := uint(0); ; shift += 7 {
+			if shift >= 64 {
+				return ErrIntOverflowProvider
+			}
+			if iNdEx >= l {
+				return io.ErrUnexpectedEOF
+			}
+			b := dAtA[iNdEx]
+			iNdEx++
+			wire |= uint64(b&0x7F) << shift
+			if b < 0x80 {
+				break
+			}
+		}
+		fieldNum := int32(wire >> 3)
+		wireType := int(wire & 0x7)
+		if wireType == 4 {
+			return fmt.Errorf("proto: ProviderInfo: wiretype end group for non-group")
+		}
+		if fieldNum <= 0 {
+			return fmt.Errorf("proto: ProviderInfo: illegal tag %d (wire type %d)", fieldNum, wire)
+		}
+		switch fieldNum {
+		case 1:
+			if wireType != 2 {
+				return fmt.Errorf("proto: wrong wireType = %d for field EMail", wireType)
+			}
+			var stringLen uint64
+			for shift := uint(0); ; shift += 7 {
+				if shift >= 64 {
+					return ErrIntOverflowProvider
+				}
+				if iNdEx >= l {
+					return io.ErrUnexpectedEOF
+				}
+				b := dAtA[iNdEx]
+				iNdEx++
+				stringLen |= uint64(b&0x7F) << shift
+				if b < 0x80 {
+					break
+				}
+			}
+			intStringLen := int(stringLen)
+			if intStringLen < 0 {
+				return ErrInvalidLengthProvider
+			}
+			postIndex := iNdEx + intStringLen
+			if postIndex < 0 {
+				return ErrInvalidLengthProvider
+			}
+			if postIndex > l {
+				return io.ErrUnexpectedEOF
+			}
+			m.EMail = string(dAtA[iNdEx:postIndex])
+			iNdEx = postIndex
+		case 2:
+			if wireType != 2 {
+				return fmt.Errorf("proto: wrong wireType = %d for field Website", wireType)
+			}
+			var stringLen uint64
+			for shift := uint(0); ; shift += 7 {
+				if shift >= 64 {
+					return ErrIntOverflowProvider
+				}
+				if iNdEx >= l {
+					return io.ErrUnexpectedEOF
+				}
+				b := dAtA[iNdEx]
+				iNdEx++
+				stringLen |= uint64(b&0x7F) << shift
+				if b < 0x80 {
+					break
+				}
+			}
+			intStringLen := int(stringLen)
+			if intStringLen < 0 {
+				return ErrInvalidLengthProvider
+			}
+			postIndex := iNdEx + intStringLen
+			if postIndex < 0 {
+				return ErrInvalidLengthProvider
+			}
+			if postIndex > l {
+				return io.ErrUnexpectedEOF
+			}
+			m.Website = string(dAtA[iNdEx:postIndex])
+			iNdEx = postIndex
+		default:
+			iNdEx = preIndex
+			skippy, err := skipProvider(dAtA[iNdEx:])
+			if err != nil {
+				return err
+			}
+			if skippy < 0 {
+				return ErrInvalidLengthProvider
+			}
+			if (iNdEx + skippy) < 0 {
+				return ErrInvalidLengthProvider
+			}
+			if (iNdEx + skippy) > l {
+				return io.ErrUnexpectedEOF
+			}
+			iNdEx += skippy
+		}
+	}
+
+	if iNdEx > l {
+		return io.ErrUnexpectedEOF
+	}
+	return nil
+}
 func (m *MsgCreateProvider) Unmarshal(dAtA []byte) error {
 	l := len(dAtA)
 	iNdEx := 0
@@ -1078,6 +1370,39 @@ func (m *MsgCreateProvider) Unmarshal(dAtA []byte) error {
 				return err
 			}
 			iNdEx = postIndex
+		case 4:
+			if wireType != 2 {
+				return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
+			}
+			var msglen int
+			for shift := uint(0); ; shift += 7 {
+				if shift >= 64 {
+					return ErrIntOverflowProvider
+				}
+				if iNdEx >= l {
+					return io.ErrUnexpectedEOF
+				}
+				b := dAtA[iNdEx]
+				iNdEx++
+				msglen |= int(b&0x7F) << shift
+				if b < 0x80 {
+					break
+				}
+			}
+			if msglen < 0 {
+				return ErrInvalidLengthProvider
+			}
+			postIndex := iNdEx + msglen
+			if postIndex < 0 {
+				return ErrInvalidLengthProvider
+			}
+			if postIndex > l {
+				return io.ErrUnexpectedEOF
+			}
+			if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+				return err
+			}
+			iNdEx = postIndex
 		default:
 			iNdEx = preIndex
 			skippy, err := skipProvider(dAtA[iNdEx:])
@@ -1282,6 +1607,39 @@ func (m *MsgUpdateProvider) Unmarshal(dAtA []byte) error {
 				return err
 			}
 			iNdEx = postIndex
+		case 4:
+			if wireType != 2 {
+				return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
+			}
+			var msglen int
+			for shift := uint(0); ; shift += 7 {
+				if shift >= 64 {
+					return ErrIntOverflowProvider
+				}
+				if iNdEx >= l {
+					return io.ErrUnexpectedEOF
+				}
+				b := dAtA[iNdEx]
+				iNdEx++
+				msglen |= int(b&0x7F) << shift
+				if b < 0x80 {
+					break
+				}
+			}
+			if msglen < 0 {
+				return ErrInvalidLengthProvider
+			}
+			postIndex := iNdEx + msglen
+			if postIndex < 0 {
+				return ErrInvalidLengthProvider
+			}
+			if postIndex > l {
+				return io.ErrUnexpectedEOF
+			}
+			if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+				return err
+			}
+			iNdEx = postIndex
 		default:
 			iNdEx = preIndex
 			skippy, err := skipProvider(dAtA[iNdEx:])
@@ -1624,6 +1982,39 @@ func (m *Provider) Unmarshal(dAtA []byte) error {
 				return err
 			}
 			iNdEx = postIndex
+		case 4:
+			if wireType != 2 {
+				return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
+			}
+			var msglen int
+			for shift := uint(0); ; shift += 7 {
+				if shift >= 64 {
+					return ErrIntOverflowProvider
+				}
+				if iNdEx >= l {
+					return io.ErrUnexpectedEOF
+				}
+				b := dAtA[iNdEx]
+				iNdEx++
+				msglen |= int(b&0x7F) << shift
+				if b < 0x80 {
+					break
+				}
+			}
+			if msglen < 0 {
+				return ErrInvalidLengthProvider
+			}
+			postIndex := iNdEx + msglen
+			if postIndex < 0 {
+				return ErrInvalidLengthProvider
+			}
+			if postIndex > l {
+				return io.ErrUnexpectedEOF
+			}
+			if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+				return err
+			}
+			iNdEx = postIndex
 		default:
 			iNdEx = preIndex
 			skippy, err := skipProvider(dAtA[iNdEx:])
diff --git a/x/provider/types/types.go b/x/provider/types/types.go
index dc73556e..8e30361e 100644
--- a/x/provider/types/types.go
+++ b/x/provider/types/types.go
@@ -3,17 +3,23 @@ package types
 import (
 	"bytes"
 	"fmt"
+	"net/url"
 
 	sdk "github.com/cosmos/cosmos-sdk/types"
 )
 
 // String implements the Stringer interface for a Provider object.
 func (p Provider) String() string {
-	return fmt.Sprintf(`Deployment
+	res := fmt.Sprintf(`Deployment
 	Owner:   %s
 	HostURI: %s
 	Attributes: %v
 	`, p.Owner, p.HostURI, p.Attributes)
+
+	if !p.Info.IsEmpty() {
+		res += fmt.Sprintf("Info: %v\n", p.Info)
+	}
+	return res
 }
 
 // Providers is the collection of Provider
@@ -46,3 +52,16 @@ func (p *Provider) Address() sdk.AccAddress {
 
 	return owner
 }
+
+func (m ProviderInfo) IsEmpty() bool {
+	return m.EMail == "" && m.Website == ""
+}
+
+func (m ProviderInfo) Validate() error {
+	if m.Website != "" {
+		if _, err := url.Parse(m.Website); err != nil {
+			return ErrInvalidInfoWebsite
+		}
+	}
+	return nil
+}


Test patch:
diff --git a/testutil/base.go b/testutil/base.go
index 12460451..3017533d 100644
--- a/testutil/base.go
+++ b/testutil/base.go
@@ -34,6 +34,10 @@ func Hostname(t testing.TB) string {
 	return Name(t, "hostname") + ".test.com"
 }
 
+func ProviderHostname(t testing.TB) string {
+	return "https://" + Hostname(t)
+}
+
 // Attribute generates a random sdk.Attribute
 func Attribute(t testing.TB) types.Attribute {
 	t.Helper()
diff --git a/testutil/provider.go b/testutil/provider.go
index 276c7eae..33a76f93 100644
--- a/testutil/provider.go
+++ b/testutil/provider.go
@@ -13,5 +13,9 @@ func Provider(t testing.TB) ptypes.Provider {
 		Owner:      AccAddress(t).String(),
 		HostURI:    Hostname(t),
 		Attributes: Attributes(t),
+		Info: ptypes.ProviderInfo{
+			EMail:   "test@example.com",
+			Website: ProviderHostname(t),
+		},
 	}
 }
diff --git a/x/provider/handler/handler_test.go b/x/provider/handler/handler_test.go
index bf6460fe..b0ddf1f9 100644
--- a/x/provider/handler/handler_test.go
+++ b/x/provider/handler/handler_test.go
@@ -19,6 +19,10 @@ import (
 	"github.com/ovrclk/akash/x/provider/types"
 )
 
+const (
+	emailValid = "test@example.com"
+)
+
 type testSuite struct {
 	t       testing.TB
 	ctx     sdk.Context
@@ -54,7 +58,39 @@ func TestProviderCreate(t *testing.T) {
 
 	msg := &types.MsgCreateProvider{
 		Owner:   testutil.AccAddress(t).String(),
-		HostURI: testutil.Hostname(t),
+		HostURI: testutil.ProviderHostname(t),
+	}
+
+	res, err := suite.handler(suite.ctx, msg)
+	require.NotNil(t, res)
+	require.NoError(t, err)
+
+	t.Run("ensure event created", func(t *testing.T) {
+
+		iev := testutil.ParseProviderEvent(t, res.Events)
+		require.IsType(t, types.EventProviderCreated{}, iev)
+
+		dev := iev.(types.EventProviderCreated)
+
+		require.Equal(t, msg.Owner, dev.Owner.String())
+	})
+
+	res, err = suite.handler(suite.ctx, msg)
+	require.Nil(t, res)
+	require.Error(t, err)
+	require.True(t, errors.Is(err, types.ErrProviderExists))
+}
+
+func TestProviderCreateWithInfo(t *testing.T) {
+	suite := setupTestSuite(t)
+
+	msg := &types.MsgCreateProvider{
+		Owner:   testutil.AccAddress(t).String(),
+		HostURI: testutil.ProviderHostname(t),
+		Info: types.ProviderInfo{
+			EMail:   emailValid,
+			Website: testutil.Hostname(t),
+		},
 	}
 
 	res, err := suite.handler(suite.ctx, msg)
@@ -82,7 +118,7 @@ func TestProviderCreateWithDuplicated(t *testing.T) {
 
 	msg := &types.MsgCreateProvider{
 		Owner:      testutil.AccAddress(t).String(),
-		HostURI:    testutil.Hostname(t),
+		HostURI:    testutil.ProviderHostname(t),
 		Attributes: testutil.Attributes(t),
 	}
 
@@ -98,13 +134,13 @@ func TestProviderUpdateWithDuplicated(t *testing.T) {
 
 	createMsg := &types.MsgCreateProvider{
 		Owner:      testutil.AccAddress(t).String(),
-		HostURI:    testutil.Hostname(t),
+		HostURI:    testutil.ProviderHostname(t),
 		Attributes: testutil.Attributes(t),
 	}
 
 	updateMsg := &types.MsgUpdateProvider{
 		Owner:      createMsg.Owner,
-		HostURI:    testutil.Hostname(t),
+		HostURI:    testutil.ProviderHostname(t),
 		Attributes: createMsg.Attributes,
 	}
 
@@ -125,13 +161,13 @@ func TestProviderUpdateExisting(t *testing.T) {
 
 	createMsg := &types.MsgCreateProvider{
 		Owner:      addr.String(),
-		HostURI:    testutil.Hostname(t),
+		HostURI:    testutil.ProviderHostname(t),
 		Attributes: testutil.Attributes(t),
 	}
 
 	updateMsg := &types.MsgUpdateProvider{
 		Owner:      addr.String(),
-		HostURI:    testutil.Hostname(t),
+		HostURI:    testutil.ProviderHostname(t),
 		Attributes: createMsg.Attributes,
 	}
 
@@ -141,7 +177,6 @@ func TestProviderUpdateExisting(t *testing.T) {
 	res, err := suite.handler(suite.ctx, updateMsg)
 
 	t.Run("ensure event created", func(t *testing.T) {
-
 		iev := testutil.ParseProviderEvent(t, res.Events[1:])
 		require.IsType(t, types.EventProviderUpdated{}, iev)
 
@@ -158,7 +193,7 @@ func TestProviderUpdateNotExisting(t *testing.T) {
 	suite := setupTestSuite(t)
 	msg := &types.MsgUpdateProvider{
 		Owner:   testutil.AccAddress(t).String(),
-		HostURI: testutil.Hostname(t),
+		HostURI: testutil.ProviderHostname(t),
 	}
 
 	res, err := suite.handler(suite.ctx, msg)
@@ -174,13 +209,13 @@ func TestProviderUpdateAttributes(t *testing.T) {
 
 	createMsg := &types.MsgCreateProvider{
 		Owner:      addr.String(),
-		HostURI:    testutil.Hostname(t),
+		HostURI:    testutil.ProviderHostname(t),
 		Attributes: testutil.Attributes(t),
 	}
 
 	updateMsg := &types.MsgUpdateProvider{
 		Owner:      addr.String(),
-		HostURI:    testutil.Hostname(t),
+		HostURI:    testutil.ProviderHostname(t),
 		Attributes: createMsg.Attributes,
 	}
 
@@ -231,7 +266,7 @@ func TestProviderDeleteExisting(t *testing.T) {
 
 	createMsg := &types.MsgCreateProvider{
 		Owner:   addr.String(),
-		HostURI: testutil.Hostname(t),
+		HostURI: testutil.ProviderHostname(t),
 	}
 
 	deleteMsg := &types.MsgDeleteProvider{