feature/refactor types (#1101)

- **docs: remove discord badge from README**
- **fix: ensure go version is up-to-date**
- **<no value>**
- **refactor: update import paths for blocks to components**
- **feat: add Hero component template**
- **fix: update footer logo to svg**
- **feat: add Query/Sign and Query/Verify RPC methods**
- **refactor: rename Keyshares to KsVal in did/v1/state.proto**
This commit is contained in:
Prad Nukala
2024-09-29 14:40:36 -04:00
committed by GitHub
parent 91d8f523dd
commit d04c87de43
124 changed files with 7895 additions and 1072 deletions
+7
View File
@@ -34,3 +34,10 @@ func (ms msgServer) AuthorizeService(ctx context.Context, msg *types.MsgIssueMac
panic("AuthorizeService is unimplemented")
return &types.MsgIssueMacaroonResponse{}, nil
}
// IssueMacaroon implements types.MsgServer.
func (ms msgServer) IssueMacaroon(ctx context.Context, msg *types.MsgIssueMacaroon) (*types.MsgIssueMacaroonResponse, error) {
// ctx := sdk.UnwrapSDKContext(goCtx)
panic("IssueMacaroon is unimplemented")
return &types.MsgIssueMacaroonResponse{}, nil
}
+49 -49
View File
@@ -129,7 +129,7 @@ func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() {
var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo
// MsgIssueMacaroon is the message type for the AuthorizeService RPC.
// MsgIssueMacaroon is the message type for the IssueMacaroon RPC.
type MsgIssueMacaroon struct {
// Controller is the address of the controller to authenticate.
Controller string `protobuf:"bytes,1,opt,name=controller,proto3" json:"controller,omitempty"`
@@ -202,7 +202,7 @@ func (m *MsgIssueMacaroon) GetToken() string {
return ""
}
// MsgIssueMacaroonResponse is the response type for the AuthorizeService
// MsgIssueMacaroonResponse is the response type for the IssueMacaroon
// RPC.
type MsgIssueMacaroonResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
@@ -267,39 +267,39 @@ func init() {
func init() { proto.RegisterFile("macaroon/v1/tx.proto", fileDescriptor_68f908349d9da51a) }
var fileDescriptor_68f908349d9da51a = []byte{
// 507 bytes of a gzipped FileDescriptorProto
0x1f,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0x3b, 0x62, 0xe0, 0xff, 0x20, 0xf2, 0x7d, 0x0a, 0x90, 0x88, 0xff, 0xef, 0xe6, 0x70,
0x63, 0xae, 0x5a, 0x30, 0x37, 0xf8, 0x81, 0x70, 0x6d, 0x02, 0x8c, 0xb8, 0xf8, 0xce, 0xad, 0x2f,
0xe3, 0x41, 0x39, 0x87, 0x62, 0xd5, 0x7c, 0xbc, 0xad, 0x7a, 0xe3, 0xe5, 0x1d, 0x6e, 0x8d, 0xd2,
0xff, 0xfb, 0x23, 0x3d, 0xa6, 0x6a, 0xc1, 0x7d, 0x4a, 0x1e, 0x6e, 0xcd, 0xd7, 0x7c, 0xb2, 0xb5,
0x9c, 0x2b, 0x9b, 0xbb, 0x9f, 0xae, 0x2f, 0x0e, 0xd1, 0x78, 0x74, 0xb9, 0xb2, 0xd0, 0xd5, 0xca,
0x42, 0x7f, 0x56, 0x16, 0xfa, 0xba, 0xb6, 0x2a, 0x57, 0x6b, 0xab, 0xf2, 0x6b, 0x6d, 0x55, 0xde,
0x3f, 0x65, 0x5c, 0x9f, 0x46, 0x27, 0xb6, 0x2f, 0x03, 0x47, 0x0a, 0x90, 0x42, 0x39, 0xc9, 0xcf,
0xb9, 0x73, 0xf3, 0x40, 0xf4, 0x32, 0xa4, 0x70, 0x52, 0x4f, 0x1e, 0xc7, 0xf3, 0xbf, 0x01, 0x00,
0x00, 0xff, 0xff, 0x0d, 0x7b, 0xef, 0xfd, 0xa6, 0x03, 0x00, 0x00,
// 497 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x53, 0xcf, 0x6b, 0x13, 0x41,
0x14, 0xce, 0x24, 0x6d, 0x34, 0x13, 0xb5, 0x61, 0x0c, 0x76, 0xbb, 0xe8, 0x1a, 0x82, 0x62, 0x28,
0xb8, 0x4b, 0x22, 0x48, 0xc9, 0x41, 0x68, 0xc0, 0x83, 0x42, 0x20, 0xac, 0xf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, 0x0f, 0x9f,
0x6c, 0x0d, 0xd7, 0x7c, 0xbe, 0xb5, 0x9c, 0xc9, 0x9a, 0xbb, 0x9f, 0x6f, 0x2e, 0x0f, 0xc9, 0xe0,
0xf8, 0x6a, 0x61, 0x91, 0xeb, 0x85, 0x45, 0xfe, 0x2e, 0x2c, 0xf2, 0x6d, 0x69, 0x95, 0xae, 0x97,
0x56, 0xe9, 0xf7, 0xd2, 0x2a, 0x7d, 0x7c, 0x21, 0x02, 0x7d, 0x36, 0x3d, 0xb5, 0x7d, 0x08, 0x1d,
0x90, 0x08, 0x52, 0x39, 0xf1, 0xcf, 0x85, 0x73, 0xfb, 0x3a, 0xf4, 0x3c, 0xe2, 0x78, 0x5a, 0x8d,
0x5f, 0xc6, 0xab, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xe9, 0x0f, 0x46, 0xf7, 0xa3, 0x03, 0x00,
0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
@@ -318,9 +318,9 @@ type MsgClient interface {
//
// Since: cosmos-sdk 0.47
UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
// AuthorizeService asserts the given controller is the owner of the given
// IssueMacaroon asserts the given controller is the owner of the given
// address.
AuthorizeService(ctx context.Context, in *MsgIssueMacaroon, opts ...grpc.CallOption) (*MsgIssueMacaroonResponse, error)
IssueMacaroon(ctx context.Context, in *MsgIssueMacaroon, opts ...grpc.CallOption) (*MsgIssueMacaroonResponse, error)
}
type msgClient struct {
@@ -340,9 +340,9 @@ func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts
return out, nil
}
func (c *msgClient) AuthorizeService(ctx context.Context, in *MsgIssueMacaroon, opts ...grpc.CallOption) (*MsgIssueMacaroonResponse, error) {
func (c *msgClient) IssueMacaroon(ctx context.Context, in *MsgIssueMacaroon, opts ...grpc.CallOption) (*MsgIssueMacaroonResponse, error) {
out := new(MsgIssueMacaroonResponse)
err := c.cc.Invoke(ctx, "/macaroon.v1.Msg/AuthorizeService", in, out, opts...)
err := c.cc.Invoke(ctx, "/macaroon.v1.Msg/IssueMacaroon", in, out, opts...)
if err != nil {
return nil, err
}
@@ -355,9 +355,9 @@ type MsgServer interface {
//
// Since: cosmos-sdk 0.47
UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
// AuthorizeService asserts the given controller is the owner of the given
// IssueMacaroon asserts the given controller is the owner of the given
// address.
AuthorizeService(context.Context, *MsgIssueMacaroon) (*MsgIssueMacaroonResponse, error)
IssueMacaroon(context.Context, *MsgIssueMacaroon) (*MsgIssueMacaroonResponse, error)
}
// UnimplementedMsgServer can be embedded to have forward compatible implementations.
@@ -367,8 +367,8 @@ type UnimplementedMsgServer struct {
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented")
}
func (*UnimplementedMsgServer) AuthorizeService(ctx context.Context, req *MsgIssueMacaroon) (*MsgIssueMacaroonResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method AuthorizeService not implemented")
func (*UnimplementedMsgServer) IssueMacaroon(ctx context.Context, req *MsgIssueMacaroon) (*MsgIssueMacaroonResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method IssueMacaroon not implemented")
}
func RegisterMsgServer(s grpc1.Server, srv MsgServer) {
@@ -393,20 +393,20 @@ func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(in
return interceptor(ctx, in, info, handler)
}
func _Msg_AuthorizeService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
func _Msg_IssueMacaroon_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgIssueMacaroon)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).AuthorizeService(ctx, in)
return srv.(MsgServer).IssueMacaroon(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/macaroon.v1.Msg/AuthorizeService",
FullMethod: "/macaroon.v1.Msg/IssueMacaroon",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).AuthorizeService(ctx, req.(*MsgIssueMacaroon))
return srv.(MsgServer).IssueMacaroon(ctx, req.(*MsgIssueMacaroon))
}
return interceptor(ctx, in, info, handler)
}
@@ -420,8 +420,8 @@ var _Msg_serviceDesc = grpc.ServiceDesc{
Handler: _Msg_UpdateParams_Handler,
},
{
MethodName: "AuthorizeService",
Handler: _Msg_AuthorizeService_Handler,
MethodName: "IssueMacaroon",
Handler: _Msg_IssueMacaroon_Handler,
},
},
Streams: []grpc.StreamDesc{},