diff --git a/proto/mycel/registry/tx.proto b/proto/mycel/registry/tx.proto index f9c34be1..67683e20 100644 --- a/proto/mycel/registry/tx.proto +++ b/proto/mycel/registry/tx.proto @@ -8,7 +8,7 @@ option go_package = "github.com/mycel-domain/mycel/x/registry/types"; service Msg { rpc UpdateWalletRecord (MsgUpdateWalletRecord ) returns (MsgUpdateWalletRecordResponse ); rpc UpdateDnsRecord (MsgUpdateDnsRecord ) returns (MsgUpdateDnsRecordResponse ); - rpc RegisterDomain (MsgRegisterDomain ) returns (MsgRegisterDomainResponse ); + rpc RegisterSecondLevelDomain (MsgRegisterSecondLevelDomain ) returns (MsgRegisterSecondLevelDomainResponse ); rpc RegisterTopLevelDomain (MsgRegisterTopLevelDomain ) returns (MsgRegisterTopLevelDomainResponse ); rpc WithdrawRegistrationFee (MsgWithdrawRegistrationFee) returns (MsgWithdrawRegistrationFeeResponse); } @@ -32,14 +32,14 @@ message MsgUpdateDnsRecord { message MsgUpdateDnsRecordResponse {} -message MsgRegisterDomain { +message MsgRegisterSecondLevelDomain { string creator = 1; string name = 2; string parent = 3; uint64 registrationPeriodInYear = 4; } -message MsgRegisterDomainResponse {} +message MsgRegisterSecondLevelDomainResponse {} message MsgRegisterTopLevelDomain { string creator = 1; diff --git a/x/registry/client/cli/tx_register_second_level_domain.go b/x/registry/client/cli/tx_register_second_level_domain.go index 8ebbbed9..8c829f85 100644 --- a/x/registry/client/cli/tx_register_second_level_domain.go +++ b/x/registry/client/cli/tx_register_second_level_domain.go @@ -31,7 +31,7 @@ func CmdRegisterDomain() *cobra.Command { return err } - msg := types.NewMsgRegisterDomain( + msg := types.NewMsgRegisterSecondLevelDomain( clientCtx.GetFromAddress().String(), argName, argParent, diff --git a/x/registry/keeper/msg_server_register_second_level_domain.go b/x/registry/keeper/msg_server_register_second_level_domain.go index a7386079..d3626757 100644 --- a/x/registry/keeper/msg_server_register_second_level_domain.go +++ b/x/registry/keeper/msg_server_register_second_level_domain.go @@ -11,7 +11,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" ) -func (k msgServer) RegisterDomain(goCtx context.Context, msg *types.MsgRegisterDomain) (*types.MsgRegisterDomainResponse, error) { +func (k msgServer) RegisterSecondLevelDomain(goCtx context.Context, msg *types.MsgRegisterSecondLevelDomain) (*types.MsgRegisterSecondLevelDomainResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) if msg.RegistrationPeriodInYear < 1 || msg.RegistrationPeriodInYear > 4 { @@ -38,10 +38,10 @@ func (k msgServer) RegisterDomain(goCtx context.Context, msg *types.MsgRegisterD AccessControl: accessControl, } - err = k.Keeper.RegisterDomain(ctx, domain, creatorAddress, msg.RegistrationPeriodInYear) + err = k.Keeper.RegisterSecondLevelDomain(ctx, domain, creatorAddress, msg.RegistrationPeriodInYear) if err != nil { return nil, err } - return &types.MsgRegisterDomainResponse{}, nil + return &types.MsgRegisterSecondLevelDomainResponse{}, nil } diff --git a/x/registry/keeper/msg_server_register_second_level_domain_test.go b/x/registry/keeper/msg_server_register_second_level_domain_test.go index d14aa192..d2564794 100644 --- a/x/registry/keeper/msg_server_register_second_level_domain_test.go +++ b/x/registry/keeper/msg_server_register_second_level_domain_test.go @@ -53,13 +53,13 @@ func (suite *KeeperTestSuite) TestRegisterSecondLevelDomain() { expErr: errorsmod.Wrapf(errors.New(fmt.Sprintf("foo.cel")), types.ErrDomainIsAlreadyTaken.Error()), fn: func() { // Register domain once - domain := &types.MsgRegisterDomain{ + domain := &types.MsgRegisterSecondLevelDomain{ Creator: testutil.Alice, Name: "foo", Parent: "cel", RegistrationPeriodInYear: 1, } - _, err := suite.msgServer.RegisterDomain(suite.ctx, domain) + _, err := suite.msgServer.RegisterSecondLevelDomain(suite.ctx, domain) suite.Require().Nil(err) }, }, @@ -78,7 +78,7 @@ func (suite *KeeperTestSuite) TestRegisterSecondLevelDomain() { suite.Run(fmt.Sprintf("Case %d", i), func() { suite.SetupTest() - registerMsg := &types.MsgRegisterDomain{ + registerMsg := &types.MsgRegisterSecondLevelDomain{ Creator: tc.creator, Name: tc.name, Parent: tc.parent, @@ -98,7 +98,7 @@ func (suite *KeeperTestSuite) TestRegisterSecondLevelDomain() { tc.fn() // Register domain - _, err := suite.msgServer.RegisterDomain(suite.ctx, registerMsg) + _, err := suite.msgServer.RegisterSecondLevelDomain(suite.ctx, registerMsg) fmt.Println("----Case_", i, "---01", err) if err == nil { @@ -125,9 +125,9 @@ func (suite *KeeperTestSuite) TestRegisterSecondLevelDomain() { suite.Require().EqualValues(sdk.StringEvent{ Type: types.EventTypeRegsterDomain, Attributes: []sdk.Attribute{ - {Key: types.AttributeRegisterDomainEventName, Value: tc.name}, - {Key: types.AttributeRegisterDomainEventParent, Value: tc.parent}, - {Key: types.AttributeRegisterDomainEventExpirationDate, Value: events[eventIndex].Attributes[2].Value}, + {Key: types.AttributeRegisterSecondLevelDomainEventName, Value: tc.name}, + {Key: types.AttributeRegisterSecondLevelDomainEventParent, Value: tc.parent}, + {Key: types.AttributeRegisterSecondLevelDomainEventExpirationDate, Value: events[eventIndex].Attributes[2].Value}, }, }, events[eventIndex]) } else { diff --git a/x/registry/keeper/msg_server_update_dns_record_test.go b/x/registry/keeper/msg_server_update_dns_record_test.go index 36bd0f77..ec257451 100644 --- a/x/registry/keeper/msg_server_update_dns_record_test.go +++ b/x/registry/keeper/msg_server_update_dns_record_test.go @@ -72,13 +72,13 @@ func (suite *KeeperTestSuite) TestUpdateDnsRecord() { suite.SetupTest() // Register domain - domain := &types.MsgRegisterDomain{ + domain := &types.MsgRegisterSecondLevelDomain{ Creator: testutil.Alice, Name: "foo", Parent: "cel", RegistrationPeriodInYear: 1, } - _, err := suite.msgServer.RegisterDomain(suite.ctx, domain) + _, err := suite.msgServer.RegisterSecondLevelDomain(suite.ctx, domain) suite.Require().Nil(err) // Run test case function tc.fn() diff --git a/x/registry/keeper/msg_server_update_wallet_record.go b/x/registry/keeper/msg_server_update_wallet_record.go index 07e39e8d..899697f8 100644 --- a/x/registry/keeper/msg_server_update_wallet_record.go +++ b/x/registry/keeper/msg_server_update_wallet_record.go @@ -34,7 +34,7 @@ func (k msgServer) UpdateWalletRecord(goCtx context.Context, msg *types.MsgUpdat ctx.EventManager().EmitEvent( sdk.NewEvent(types.EventTypeUpdateWalletRecord, sdk.NewAttribute(types.AttributeUpdateWalletRecordEventDomainName, msg.Name), - sdk.NewAttribute(types.AttributeRegisterDomainEventParent, msg.Parent), + sdk.NewAttribute(types.AttributeUpdateDnsRecordEventDomainParent, msg.Parent), sdk.NewAttribute(types.AttributeUpdateWalletRecordEventWalletRecordType, msg.WalletRecordType), sdk.NewAttribute(types.AttributeUpdateWalletRecordEventValue, msg.Value), ), diff --git a/x/registry/keeper/msg_server_update_wallet_record_test.go b/x/registry/keeper/msg_server_update_wallet_record_test.go index 16f7c2f6..6a1b24b2 100644 --- a/x/registry/keeper/msg_server_update_wallet_record_test.go +++ b/x/registry/keeper/msg_server_update_wallet_record_test.go @@ -91,13 +91,13 @@ func (suite *KeeperTestSuite) TestUpdateWalletRecord() { suite.SetupTest() // Register domain - domain := &types.MsgRegisterDomain{ + domain := &types.MsgRegisterSecondLevelDomain{ Creator: testutil.Alice, Name: "foo", Parent: "cel", RegistrationPeriodInYear: 1, } - _, err := suite.msgServer.RegisterDomain(suite.ctx, domain) + _, err := suite.msgServer.RegisterSecondLevelDomain(suite.ctx, domain) suite.Require().Nil(err) // Run test case function tc.fn() diff --git a/x/registry/keeper/register_second_level_domain.go b/x/registry/keeper/register_second_level_domain.go index 6cb157b9..8c151448 100644 --- a/x/registry/keeper/register_second_level_domain.go +++ b/x/registry/keeper/register_second_level_domain.go @@ -62,7 +62,7 @@ func (k Keeper) IncrementParentsSubdomainCount(ctx sdk.Context, domain types.Sec k.SetTopLevelDomain(ctx, parentDomain) } -func (k Keeper) RegisterDomain(ctx sdk.Context, domain types.SecondLevelDomain, owner sdk.AccAddress, registrationPeriodIYear uint64) (err error) { +func (k Keeper) RegisterSecondLevelDomain(ctx sdk.Context, domain types.SecondLevelDomain, owner sdk.AccAddress, registrationPeriodIYear uint64) (err error) { // Validate domain err = k.ValidateSecondLevelDomain(ctx, domain) if err != nil { @@ -104,9 +104,9 @@ func (k Keeper) RegisterDomain(ctx sdk.Context, domain types.SecondLevelDomain, // Emit event ctx.EventManager().EmitEvent( sdk.NewEvent(types.EventTypeRegsterDomain, - sdk.NewAttribute(types.AttributeRegisterDomainEventName, domain.Name), - sdk.NewAttribute(types.AttributeRegisterDomainEventParent, domain.Parent), - sdk.NewAttribute(types.AttributeRegisterDomainEventExpirationDate, strconv.FormatInt(domain.ExpirationDate, 10)), + sdk.NewAttribute(types.AttributeRegisterSecondLevelDomainEventName, domain.Name), + sdk.NewAttribute(types.AttributeRegisterSecondLevelDomainEventParent, domain.Parent), + sdk.NewAttribute(types.AttributeRegisterSecondLevelDomainEventExpirationDate, strconv.FormatInt(domain.ExpirationDate, 10)), ), ) diff --git a/x/registry/module_simulation.go b/x/registry/module_simulation.go index f80ba545..7dd05afc 100644 --- a/x/registry/module_simulation.go +++ b/x/registry/module_simulation.go @@ -27,9 +27,9 @@ const ( // TODO: Determine the simulation weight value defaultWeightMsgUpdateWalletRecord int = 100 - opWeightMsgRegisterDomain = "op_weight_msg_register_domain" + opWeightMsgRegisterSecondLevelDomain = "op_weight_msg_register_domain" // TODO: Determine the simulation weight value - defaultWeightMsgRegisterDomain int = 100 + defaultWeightMsgRegisterSecondLevelDomain int = 100 opWeightMsgRegisterTopLevelDomain = "op_weight_msg_register_top_level_domain" // TODO: Determine the simulation weight value @@ -78,15 +78,15 @@ func (am AppModule) WeightedOperations(simState module.SimulationState) []simtyp registrysimulation.SimulateMsgUpdateWalletRecord(am.accountKeeper, am.bankKeeper, am.keeper), )) - var weightMsgRegisterDomain int - simState.AppParams.GetOrGenerate(simState.Cdc, opWeightMsgRegisterDomain, &weightMsgRegisterDomain, nil, + var weightMsgRegisterSecondLevelDomain int + simState.AppParams.GetOrGenerate(simState.Cdc, opWeightMsgRegisterSecondLevelDomain, &weightMsgRegisterSecondLevelDomain, nil, func(_ *rand.Rand) { - weightMsgRegisterDomain = defaultWeightMsgRegisterDomain + weightMsgRegisterSecondLevelDomain = defaultWeightMsgRegisterSecondLevelDomain }, ) operations = append(operations, simulation.NewWeightedOperation( - weightMsgRegisterDomain, - registrysimulation.SimulateMsgRegisterDomain(am.accountKeeper, am.bankKeeper, am.keeper), + weightMsgRegisterSecondLevelDomain, + registrysimulation.SimulateMsgRegisterSecondLevelDomain(am.accountKeeper, am.bankKeeper, am.keeper), )) var weightMsgRegisterTopLevelDomain int diff --git a/x/registry/simulation/register_domain.go b/x/registry/simulation/register_domain.go index ff66b189..dd5f86cb 100644 --- a/x/registry/simulation/register_domain.go +++ b/x/registry/simulation/register_domain.go @@ -10,7 +10,7 @@ import ( "github.com/mycel-domain/mycel/x/registry/types" ) -func SimulateMsgRegisterDomain( +func SimulateMsgRegisterSecondLevelDomain( ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, @@ -18,12 +18,12 @@ func SimulateMsgRegisterDomain( return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { simAccount, _ := simtypes.RandomAcc(r, accs) - msg := &types.MsgRegisterDomain{ + msg := &types.MsgRegisterSecondLevelDomain{ Creator: simAccount.Address.String(), } - // TODO: Handling the RegisterDomain simulation + // TODO: Handling the RegisterSecondLevelDomain simulation - return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "RegisterDomain simulation not implemented"), nil, nil + return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "RegisterSecondLevelDomain simulation not implemented"), nil, nil } } diff --git a/x/registry/types/codec.go b/x/registry/types/codec.go index ba34df8e..12dd4af1 100644 --- a/x/registry/types/codec.go +++ b/x/registry/types/codec.go @@ -9,7 +9,7 @@ import ( func RegisterCodec(cdc *codec.LegacyAmino) { cdc.RegisterConcrete(&MsgUpdateWalletRecord{}, "registry/UpdateWalletRecord", nil) - cdc.RegisterConcrete(&MsgRegisterDomain{}, "registry/RegisterDomain", nil) + cdc.RegisterConcrete(&MsgRegisterSecondLevelDomain{}, "registry/RegisterSecondLevelDomain", nil) cdc.RegisterConcrete(&MsgRegisterTopLevelDomain{}, "registry/RegisterTopLevelDomain", nil) cdc.RegisterConcrete(&MsgWithdrawRegistrationFee{}, "registry/WithdrawRegistrationFee", nil) // this line is used by starport scaffolding # 2 @@ -20,7 +20,7 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { &MsgUpdateWalletRecord{}, ) registry.RegisterImplementations((*sdk.Msg)(nil), - &MsgRegisterDomain{}, + &MsgRegisterSecondLevelDomain{}, ) registry.RegisterImplementations((*sdk.Msg)(nil), &MsgRegisterTopLevelDomain{}, diff --git a/x/registry/types/events.go b/x/registry/types/events.go index 4ae3f813..4eec536c 100644 --- a/x/registry/types/events.go +++ b/x/registry/types/events.go @@ -4,9 +4,9 @@ package types const ( EventTypeRegsterDomain = "register-domain" - AttributeRegisterDomainEventName = "name" - AttributeRegisterDomainEventParent = "parent" - AttributeRegisterDomainEventExpirationDate = "expiration-date" + AttributeRegisterSecondLevelDomainEventName = "name" + AttributeRegisterSecondLevelDomainEventParent = "parent" + AttributeRegisterSecondLevelDomainEventExpirationDate = "expiration-date" ) // Register top-level-domain event diff --git a/x/registry/types/message_register_domain.go b/x/registry/types/message_register_second_level_domain.go similarity index 52% rename from x/registry/types/message_register_domain.go rename to x/registry/types/message_register_second_level_domain.go index f67264cf..b85c67e1 100644 --- a/x/registry/types/message_register_domain.go +++ b/x/registry/types/message_register_second_level_domain.go @@ -6,12 +6,12 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) -const TypeMsgRegisterDomain = "register_domain" +const TypeMsgRegisterSecondLevelDomain = "register_domain" -var _ sdk.Msg = &MsgRegisterDomain{} +var _ sdk.Msg = &MsgRegisterSecondLevelDomain{} -func NewMsgRegisterDomain(creator string, name string, parent string, registrationPeriodInYear uint64) *MsgRegisterDomain { - return &MsgRegisterDomain{ +func NewMsgRegisterSecondLevelDomain(creator string, name string, parent string, registrationPeriodInYear uint64) *MsgRegisterSecondLevelDomain { + return &MsgRegisterSecondLevelDomain{ Creator: creator, Name: name, Parent: parent, @@ -19,15 +19,15 @@ func NewMsgRegisterDomain(creator string, name string, parent string, registrati } } -func (msg *MsgRegisterDomain) Route() string { +func (msg *MsgRegisterSecondLevelDomain) Route() string { return RouterKey } -func (msg *MsgRegisterDomain) Type() string { - return TypeMsgRegisterDomain +func (msg *MsgRegisterSecondLevelDomain) Type() string { + return TypeMsgRegisterSecondLevelDomain } -func (msg *MsgRegisterDomain) GetSigners() []sdk.AccAddress { +func (msg *MsgRegisterSecondLevelDomain) GetSigners() []sdk.AccAddress { creator, err := sdk.AccAddressFromBech32(msg.Creator) if err != nil { panic(err) @@ -35,12 +35,12 @@ func (msg *MsgRegisterDomain) GetSigners() []sdk.AccAddress { return []sdk.AccAddress{creator} } -func (msg *MsgRegisterDomain) GetSignBytes() []byte { +func (msg *MsgRegisterSecondLevelDomain) GetSignBytes() []byte { bz := ModuleCdc.MustMarshalJSON(msg) return sdk.MustSortJSON(bz) } -func (msg *MsgRegisterDomain) ValidateBasic() error { +func (msg *MsgRegisterSecondLevelDomain) ValidateBasic() error { _, err := sdk.AccAddressFromBech32(msg.Creator) if err != nil { return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) diff --git a/x/registry/types/message_register_domain_test.go b/x/registry/types/message_register_second_level_domain_test.go similarity index 83% rename from x/registry/types/message_register_domain_test.go rename to x/registry/types/message_register_second_level_domain_test.go index 46309245..173c4bc7 100644 --- a/x/registry/types/message_register_domain_test.go +++ b/x/registry/types/message_register_second_level_domain_test.go @@ -8,15 +8,15 @@ import ( "github.com/stretchr/testify/require" ) -func TestMsgRegisterDomain_ValidateBasic(t *testing.T) { +func TestMsgRegisterSecondLevelDomain_ValidateBasic(t *testing.T) { tests := []struct { name string - msg MsgRegisterDomain + msg MsgRegisterSecondLevelDomain err error }{ { name: "invalid address", - msg: MsgRegisterDomain{ + msg: MsgRegisterSecondLevelDomain{ Creator: "invalid_address", Name: "foo", Parent: "cel", @@ -25,7 +25,7 @@ func TestMsgRegisterDomain_ValidateBasic(t *testing.T) { err: sdkerrors.ErrInvalidAddress, }, { name: "valid address", - msg: MsgRegisterDomain{ + msg: MsgRegisterSecondLevelDomain{ Creator: sample.AccAddress(), Name: "foo", Parent: "cel", diff --git a/x/registry/types/tx.pb.go b/x/registry/types/tx.pb.go index 0359b774..db262cb9 100644 --- a/x/registry/types/tx.pb.go +++ b/x/registry/types/tx.pb.go @@ -251,25 +251,25 @@ func (m *MsgUpdateDnsRecordResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgUpdateDnsRecordResponse proto.InternalMessageInfo -type MsgRegisterDomain struct { +type MsgRegisterSecondLevelDomain struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Parent string `protobuf:"bytes,3,opt,name=parent,proto3" json:"parent,omitempty"` RegistrationPeriodInYear uint64 `protobuf:"varint,4,opt,name=registrationPeriodInYear,proto3" json:"registrationPeriodInYear,omitempty"` } -func (m *MsgRegisterDomain) Reset() { *m = MsgRegisterDomain{} } -func (m *MsgRegisterDomain) String() string { return proto.CompactTextString(m) } -func (*MsgRegisterDomain) ProtoMessage() {} -func (*MsgRegisterDomain) Descriptor() ([]byte, []int) { +func (m *MsgRegisterSecondLevelDomain) Reset() { *m = MsgRegisterSecondLevelDomain{} } +func (m *MsgRegisterSecondLevelDomain) String() string { return proto.CompactTextString(m) } +func (*MsgRegisterSecondLevelDomain) ProtoMessage() {} +func (*MsgRegisterSecondLevelDomain) Descriptor() ([]byte, []int) { return fileDescriptor_7a4e7619dfc6612f, []int{4} } -func (m *MsgRegisterDomain) XXX_Unmarshal(b []byte) error { +func (m *MsgRegisterSecondLevelDomain) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgRegisterDomain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgRegisterSecondLevelDomain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgRegisterDomain.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgRegisterSecondLevelDomain.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -279,61 +279,61 @@ func (m *MsgRegisterDomain) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return b[:n], nil } } -func (m *MsgRegisterDomain) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgRegisterDomain.Merge(m, src) +func (m *MsgRegisterSecondLevelDomain) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRegisterSecondLevelDomain.Merge(m, src) } -func (m *MsgRegisterDomain) XXX_Size() int { +func (m *MsgRegisterSecondLevelDomain) XXX_Size() int { return m.Size() } -func (m *MsgRegisterDomain) XXX_DiscardUnknown() { - xxx_messageInfo_MsgRegisterDomain.DiscardUnknown(m) +func (m *MsgRegisterSecondLevelDomain) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRegisterSecondLevelDomain.DiscardUnknown(m) } -var xxx_messageInfo_MsgRegisterDomain proto.InternalMessageInfo +var xxx_messageInfo_MsgRegisterSecondLevelDomain proto.InternalMessageInfo -func (m *MsgRegisterDomain) GetCreator() string { +func (m *MsgRegisterSecondLevelDomain) GetCreator() string { if m != nil { return m.Creator } return "" } -func (m *MsgRegisterDomain) GetName() string { +func (m *MsgRegisterSecondLevelDomain) GetName() string { if m != nil { return m.Name } return "" } -func (m *MsgRegisterDomain) GetParent() string { +func (m *MsgRegisterSecondLevelDomain) GetParent() string { if m != nil { return m.Parent } return "" } -func (m *MsgRegisterDomain) GetRegistrationPeriodInYear() uint64 { +func (m *MsgRegisterSecondLevelDomain) GetRegistrationPeriodInYear() uint64 { if m != nil { return m.RegistrationPeriodInYear } return 0 } -type MsgRegisterDomainResponse struct { +type MsgRegisterSecondLevelDomainResponse struct { } -func (m *MsgRegisterDomainResponse) Reset() { *m = MsgRegisterDomainResponse{} } -func (m *MsgRegisterDomainResponse) String() string { return proto.CompactTextString(m) } -func (*MsgRegisterDomainResponse) ProtoMessage() {} -func (*MsgRegisterDomainResponse) Descriptor() ([]byte, []int) { +func (m *MsgRegisterSecondLevelDomainResponse) Reset() { *m = MsgRegisterSecondLevelDomainResponse{} } +func (m *MsgRegisterSecondLevelDomainResponse) String() string { return proto.CompactTextString(m) } +func (*MsgRegisterSecondLevelDomainResponse) ProtoMessage() {} +func (*MsgRegisterSecondLevelDomainResponse) Descriptor() ([]byte, []int) { return fileDescriptor_7a4e7619dfc6612f, []int{5} } -func (m *MsgRegisterDomainResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgRegisterSecondLevelDomainResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgRegisterDomainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgRegisterSecondLevelDomainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgRegisterDomainResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgRegisterSecondLevelDomainResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -343,17 +343,17 @@ func (m *MsgRegisterDomainResponse) XXX_Marshal(b []byte, deterministic bool) ([ return b[:n], nil } } -func (m *MsgRegisterDomainResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgRegisterDomainResponse.Merge(m, src) +func (m *MsgRegisterSecondLevelDomainResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRegisterSecondLevelDomainResponse.Merge(m, src) } -func (m *MsgRegisterDomainResponse) XXX_Size() int { +func (m *MsgRegisterSecondLevelDomainResponse) XXX_Size() int { return m.Size() } -func (m *MsgRegisterDomainResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgRegisterDomainResponse.DiscardUnknown(m) +func (m *MsgRegisterSecondLevelDomainResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRegisterSecondLevelDomainResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgRegisterDomainResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgRegisterSecondLevelDomainResponse proto.InternalMessageInfo type MsgRegisterTopLevelDomain struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` @@ -544,8 +544,8 @@ func init() { proto.RegisterType((*MsgUpdateWalletRecordResponse)(nil), "mycel.registry.MsgUpdateWalletRecordResponse") proto.RegisterType((*MsgUpdateDnsRecord)(nil), "mycel.registry.MsgUpdateDnsRecord") proto.RegisterType((*MsgUpdateDnsRecordResponse)(nil), "mycel.registry.MsgUpdateDnsRecordResponse") - proto.RegisterType((*MsgRegisterDomain)(nil), "mycel.registry.MsgRegisterDomain") - proto.RegisterType((*MsgRegisterDomainResponse)(nil), "mycel.registry.MsgRegisterDomainResponse") + proto.RegisterType((*MsgRegisterSecondLevelDomain)(nil), "mycel.registry.MsgRegisterSecondLevelDomain") + proto.RegisterType((*MsgRegisterSecondLevelDomainResponse)(nil), "mycel.registry.MsgRegisterSecondLevelDomainResponse") proto.RegisterType((*MsgRegisterTopLevelDomain)(nil), "mycel.registry.MsgRegisterTopLevelDomain") proto.RegisterType((*MsgRegisterTopLevelDomainResponse)(nil), "mycel.registry.MsgRegisterTopLevelDomainResponse") proto.RegisterType((*MsgWithdrawRegistrationFee)(nil), "mycel.registry.MsgWithdrawRegistrationFee") @@ -555,37 +555,38 @@ func init() { func init() { proto.RegisterFile("mycel/registry/tx.proto", fileDescriptor_7a4e7619dfc6612f) } var fileDescriptor_7a4e7619dfc6612f = []byte{ - // 478 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x94, 0x41, 0x6b, 0xd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, 0x64, 0xa6, 0xc4, 0xf8, 0x8f, 0x60, 0xd5, - 0x32, 0x51, 0x17, 0x99, 0x34, 0xa5, 0xee, 0xd3, 0xb9, 0xa5, 0xa6, 0x6f, 0x09, 0x6b, 0xb6, 0xe9, - 0x68, 0xdb, 0x1e, 0x8b, 0xd6, 0xdd, 0x9e, 0x5f, 0x5b, 0xb5, 0x7e, 0xf1, 0xea, 0xd7, 0xd8, 0x23, - 0x27, 0x63, 0x8f, 0xfc, 0x19, 0x7b, 0xe4, 0xeb, 0xc4, 0xeb, 0x9c, 0x4c, 0xbc, 0xce, 0xef, 0x89, - 0xd7, 0xf9, 0x18, 0xc4, 0x89, 0x3a, 0x38, 0xdc, 0x0f, 0x86, 0x3c, 0xeb, 0x6b, 0xdf, 0xad, 0x48, - 0x53, 0x9f, 0x06, 0xfd, 0xe3, 0xda, 0xa3, 0x5e, 0x16, 0x28, 0xf7, 0x97, 0xf5, 0xc3, 0xfe, 0xec, - 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xfe, 0x50, 0xf9, 0x4a, 0xf3, 0x05, 0x00, 0x00, + // 485 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x95, 0xcf, 0x6b, 0xd4, 0x40, + 0x14, 0xc7, 0x77, 0xdc, 0x6d, 0xc5, 0x07, 0xfe, 0x60, 0xd0, 0x36, 0x0d, 0x35, 0x6a, 0x5c, 0x45, + 0x8b, 0xcd, 0x62, 0xf5, 0xe4, 0x51, 0x8a, 0xa8, 0xb8, 0x20, 0xb1, 0x52, 0xf4, 0x36, 0x4d, 0x1e, + 0x69, 0x24, 0xc9, 0x84, 0x99, 0xe9, 0xb6, 0x39, 0x79, 0xf2, 0xee, 0xc9, 0xab, 0xfe, 0x39, 0x3d, + 0xf6, 0xe8, 0x51, 0x76, 0xff, 0x11, 0x61, 0xda, 0x0c, 0x59, 0x9b, 0xd9, 0x6e, 0xa5, 0xb7, 0xbc, + 0x37, 0x5f, 0xbe, 0xef, 0xf3, 0x32, 0xef, 0x31, 0xb0, 0x9c, 0x57, 0x11, 0x66, 0x03, 0x81, 0x49, + 0x2a, 0x95, 0xa8, 0x06, 0xea, 0x20, 0x28, 0x05, 0x57, 0x9c, 0x5e, 0xd3, 0x07, 0x41, 0x7d, 0xe0, + 0xff, 0x24, 0x70, 0x6b, 0x28, 0x93, 0x8f, 0x65, 0xcc, 0x14, 0x6e, 0xb3, 0x2c, 0x43, 0x15, 0x62, + 0xc4, 0x45, 0x4c, 0x1d, 0xb8, 0x1c, 0x09, 0x64, 0x8a, 0x0b, 0x87, 0xdc, 0x25, 0x8f, 0xae, 0x84, + 0x75, 0x48, 0x29, 0xf4, 0x0a, 0x96, 0xa3, 0x73, 0x49, 0xa7, 0xf5, 0x37, 0x5d, 0x82, 0xc5, 0x92, + 0x09, 0x2c, 0x94, 0xd3, 0xd5, 0xd9, 0x93, 0x88, 0xae, 0xc1, 0x8d, 0xfd, 0x86, 0xeb, 0x56, 0x55, + 0xa2, 0xd3, 0xd3, 0x8a, 0x53, 0x79, 0x7a, 0x13, 0x16, 0x46, 0x2c, 0xdb, 0x43, 0x67, 0x41, 0x0b, + 0x8e, 0x03, 0xff, 0x0e, 0xdc, 0x6e, 0x05, 0x0c, 0x51, 0x96, 0xbc, 0x90, 0xe8, 0xff, 0x20, 0x40, + 0x8d, 0x62, 0xb3, 0x90, 0x17, 0xca, 0xdf, 0x87, 0xab, 0x71, 0x6d, 0xd9, 0x80, 0x9f, 0x4e, 0x5a, + 0xc8, 0x57, 0xc1, 0x3d, 0xcd, 0x65, 0xb0, 0x7f, 0x11, 0x58, 0x1d, 0xca, 0x24, 0xd4, 0x37, 0x81, + 0xe2, 0x03, 0x46, 0xbc, 0x88, 0xdf, 0xe1, 0x08, 0xb3, 0x4d, 0x9e, 0xb3, 0xb4, 0xb8, 0xa0, 0x06, + 0x5e, 0x80, 0x73, 0x72, 0xd9, 0x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 0xa4, 0x6a, 0x77, 0x6f, 0x27, + 0x88, 0x78, 0x3e, 0xd0, 0xbe, 0xeb, 0xb1, 0xa6, 0x3e, 0x0e, 0x06, 0x07, 0x8d, 0xb7, 0xa0, 0x2a, + 0x51, 0xee, 0x2c, 0xea, 0xf7, 0xe0, 0xd9, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x06, 0xa4, 0x1f, + 0x93, 0x2a, 0x06, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -602,7 +603,7 @@ const _ = grpc.SupportPackageIsVersion4 type MsgClient interface { UpdateWalletRecord(ctx context.Context, in *MsgUpdateWalletRecord, opts ...grpc.CallOption) (*MsgUpdateWalletRecordResponse, error) UpdateDnsRecord(ctx context.Context, in *MsgUpdateDnsRecord, opts ...grpc.CallOption) (*MsgUpdateDnsRecordResponse, error) - RegisterDomain(ctx context.Context, in *MsgRegisterDomain, opts ...grpc.CallOption) (*MsgRegisterDomainResponse, error) + RegisterSecondLevelDomain(ctx context.Context, in *MsgRegisterSecondLevelDomain, opts ...grpc.CallOption) (*MsgRegisterSecondLevelDomainResponse, error) RegisterTopLevelDomain(ctx context.Context, in *MsgRegisterTopLevelDomain, opts ...grpc.CallOption) (*MsgRegisterTopLevelDomainResponse, error) WithdrawRegistrationFee(ctx context.Context, in *MsgWithdrawRegistrationFee, opts ...grpc.CallOption) (*MsgWithdrawRegistrationFeeResponse, error) } @@ -633,9 +634,9 @@ func (c *msgClient) UpdateDnsRecord(ctx context.Context, in *MsgUpdateDnsRecord, return out, nil } -func (c *msgClient) RegisterDomain(ctx context.Context, in *MsgRegisterDomain, opts ...grpc.CallOption) (*MsgRegisterDomainResponse, error) { - out := new(MsgRegisterDomainResponse) - err := c.cc.Invoke(ctx, "/mycel.registry.Msg/RegisterDomain", in, out, opts...) +func (c *msgClient) RegisterSecondLevelDomain(ctx context.Context, in *MsgRegisterSecondLevelDomain, opts ...grpc.CallOption) (*MsgRegisterSecondLevelDomainResponse, error) { + out := new(MsgRegisterSecondLevelDomainResponse) + err := c.cc.Invoke(ctx, "/mycel.registry.Msg/RegisterSecondLevelDomain", in, out, opts...) if err != nil { return nil, err } @@ -664,7 +665,7 @@ func (c *msgClient) WithdrawRegistrationFee(ctx context.Context, in *MsgWithdraw type MsgServer interface { UpdateWalletRecord(context.Context, *MsgUpdateWalletRecord) (*MsgUpdateWalletRecordResponse, error) UpdateDnsRecord(context.Context, *MsgUpdateDnsRecord) (*MsgUpdateDnsRecordResponse, error) - RegisterDomain(context.Context, *MsgRegisterDomain) (*MsgRegisterDomainResponse, error) + RegisterSecondLevelDomain(context.Context, *MsgRegisterSecondLevelDomain) (*MsgRegisterSecondLevelDomainResponse, error) RegisterTopLevelDomain(context.Context, *MsgRegisterTopLevelDomain) (*MsgRegisterTopLevelDomainResponse, error) WithdrawRegistrationFee(context.Context, *MsgWithdrawRegistrationFee) (*MsgWithdrawRegistrationFeeResponse, error) } @@ -679,8 +680,8 @@ func (*UnimplementedMsgServer) UpdateWalletRecord(ctx context.Context, req *MsgU func (*UnimplementedMsgServer) UpdateDnsRecord(ctx context.Context, req *MsgUpdateDnsRecord) (*MsgUpdateDnsRecordResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateDnsRecord not implemented") } -func (*UnimplementedMsgServer) RegisterDomain(ctx context.Context, req *MsgRegisterDomain) (*MsgRegisterDomainResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RegisterDomain not implemented") +func (*UnimplementedMsgServer) RegisterSecondLevelDomain(ctx context.Context, req *MsgRegisterSecondLevelDomain) (*MsgRegisterSecondLevelDomainResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RegisterSecondLevelDomain not implemented") } func (*UnimplementedMsgServer) RegisterTopLevelDomain(ctx context.Context, req *MsgRegisterTopLevelDomain) (*MsgRegisterTopLevelDomainResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RegisterTopLevelDomain not implemented") @@ -729,20 +730,20 @@ func _Msg_UpdateDnsRecord_Handler(srv interface{}, ctx context.Context, dec func return interceptor(ctx, in, info, handler) } -func _Msg_RegisterDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgRegisterDomain) +func _Msg_RegisterSecondLevelDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRegisterSecondLevelDomain) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MsgServer).RegisterDomain(ctx, in) + return srv.(MsgServer).RegisterSecondLevelDomain(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.registry.Msg/RegisterDomain", + FullMethod: "/mycel.registry.Msg/RegisterSecondLevelDomain", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).RegisterDomain(ctx, req.(*MsgRegisterDomain)) + return srv.(MsgServer).RegisterSecondLevelDomain(ctx, req.(*MsgRegisterSecondLevelDomain)) } return interceptor(ctx, in, info, handler) } @@ -796,8 +797,8 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ Handler: _Msg_UpdateDnsRecord_Handler, }, { - MethodName: "RegisterDomain", - Handler: _Msg_RegisterDomain_Handler, + MethodName: "RegisterSecondLevelDomain", + Handler: _Msg_RegisterSecondLevelDomain_Handler, }, { MethodName: "RegisterTopLevelDomain", @@ -974,7 +975,7 @@ func (m *MsgUpdateDnsRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, err return len(dAtA) - i, nil } -func (m *MsgRegisterDomain) Marshal() (dAtA []byte, err error) { +func (m *MsgRegisterSecondLevelDomain) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -984,12 +985,12 @@ func (m *MsgRegisterDomain) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgRegisterDomain) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgRegisterSecondLevelDomain) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgRegisterDomain) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgRegisterSecondLevelDomain) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1023,7 +1024,7 @@ func (m *MsgRegisterDomain) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgRegisterDomainResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgRegisterSecondLevelDomainResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1033,12 +1034,12 @@ func (m *MsgRegisterDomainResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgRegisterDomainResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgRegisterSecondLevelDomainResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgRegisterDomainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgRegisterSecondLevelDomainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1258,7 +1259,7 @@ func (m *MsgUpdateDnsRecordResponse) Size() (n int) { return n } -func (m *MsgRegisterDomain) Size() (n int) { +func (m *MsgRegisterSecondLevelDomain) Size() (n int) { if m == nil { return 0 } @@ -1282,7 +1283,7 @@ func (m *MsgRegisterDomain) Size() (n int) { return n } -func (m *MsgRegisterDomainResponse) Size() (n int) { +func (m *MsgRegisterSecondLevelDomainResponse) Size() (n int) { if m == nil { return 0 } @@ -1872,7 +1873,7 @@ func (m *MsgUpdateDnsRecordResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgRegisterDomain) Unmarshal(dAtA []byte) error { +func (m *MsgRegisterSecondLevelDomain) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1895,10 +1896,10 @@ func (m *MsgRegisterDomain) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgRegisterDomain: wiretype end group for non-group") + return fmt.Errorf("proto: MsgRegisterSecondLevelDomain: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgRegisterDomain: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgRegisterSecondLevelDomain: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2037,7 +2038,7 @@ func (m *MsgRegisterDomain) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgRegisterDomainResponse) Unmarshal(dAtA []byte) error { +func (m *MsgRegisterSecondLevelDomainResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2060,10 +2061,10 @@ func (m *MsgRegisterDomainResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgRegisterDomainResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgRegisterSecondLevelDomainResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgRegisterDomainResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgRegisterSecondLevelDomainResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: