diff --git a/app/ante/ante.go b/app/ante/ante.go index 35b036b0..1f9e127e 100644 --- a/app/ante/ante.go +++ b/app/ante/ante.go @@ -87,9 +87,9 @@ func (cd CustodyDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, switch kiratypes.MsgType(msg) { case kiratypes.MsgTypeCreateCustody: { - msg, ok := msg.(*custodytypes.MsgCreteCustodyRecord) + msg, ok := msg.(*custodytypes.MsgCreateCustodyRecord) if !ok { - return ctx, sdkerrors.Wrap(sdkerrors.ErrInvalidType, "Not a MsgCreteCustodyRecord") + return ctx, sdkerrors.Wrap(sdkerrors.ErrInvalidType, "Not a MsgCreateCustodyRecord") } hash := sha256.Sum256([]byte(msg.OldKey)) @@ -107,7 +107,7 @@ func (cd CustodyDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, { msg, ok := msg.(*custodytypes.MsgAddToCustodyWhiteList) if !ok { - return ctx, sdkerrors.Wrap(sdkerrors.ErrInvalidType, "Not a MsgCreteCustodyRecord") + return ctx, sdkerrors.Wrap(sdkerrors.ErrInvalidType, "Not a MsgCreateCustodyRecord") } hash := sha256.Sum256([]byte(msg.OldKey)) @@ -125,7 +125,7 @@ func (cd CustodyDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, { msg, ok := msg.(*custodytypes.MsgAddToCustodyCustodians) if !ok { - return ctx, sdkerrors.Wrap(sdkerrors.ErrInvalidType, "Not a MsgCreteCustodyRecord") + return ctx, sdkerrors.Wrap(sdkerrors.ErrInvalidType, "Not a MsgCreateCustodyRecord") } hash := sha256.Sum256([]byte(msg.OldKey)) @@ -143,7 +143,7 @@ func (cd CustodyDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, { msg, ok := msg.(*custodytypes.MsgRemoveFromCustodyCustodians) if !ok { - return ctx, sdkerrors.Wrap(sdkerrors.ErrInvalidType, "Not a MsgCreteCustodyRecord") + return ctx, sdkerrors.Wrap(sdkerrors.ErrInvalidType, "Not a MsgCreateCustodyRecord") } hash := sha256.Sum256([]byte(msg.OldKey)) @@ -161,7 +161,7 @@ func (cd CustodyDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, { msg, ok := msg.(*custodytypes.MsgDropCustodyCustodians) if !ok { - return ctx, sdkerrors.Wrap(sdkerrors.ErrInvalidType, "Not a MsgCreteCustodyRecord") + return ctx, sdkerrors.Wrap(sdkerrors.ErrInvalidType, "Not a MsgCreateCustodyRecord") } hash := sha256.Sum256([]byte(msg.OldKey)) @@ -179,7 +179,7 @@ func (cd CustodyDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, { msg, ok := msg.(*custodytypes.MsgRemoveFromCustodyWhiteList) if !ok { - return ctx, sdkerrors.Wrap(sdkerrors.ErrInvalidType, "Not a MsgCreteCustodyRecord") + return ctx, sdkerrors.Wrap(sdkerrors.ErrInvalidType, "Not a MsgCreateCustodyRecord") } hash := sha256.Sum256([]byte(msg.OldKey)) @@ -197,7 +197,7 @@ func (cd CustodyDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, { msg, ok := msg.(*custodytypes.MsgDropCustodyWhiteList) if !ok { - return ctx, sdkerrors.Wrap(sdkerrors.ErrInvalidType, "Not a MsgCreteCustodyRecord") + return ctx, sdkerrors.Wrap(sdkerrors.ErrInvalidType, "Not a MsgCreateCustodyRecord") } hash := sha256.Sum256([]byte(msg.OldKey)) diff --git a/proto/kira/custody/tx.proto b/proto/kira/custody/tx.proto index 9f9f81ee..ac743913 100644 --- a/proto/kira/custody/tx.proto +++ b/proto/kira/custody/tx.proto @@ -11,8 +11,9 @@ option go_package = "github.com/KiraCore/sekai/x/custody/types"; // Msg defines the custody Msg service. service Msg { - rpc CreateCustody(MsgCreteCustodyRecord) returns (MsgCreteCustodyRecordResponse); + rpc CreateCustody(MsgCreateCustodyRecord) returns (MsgCreateCustodyRecordResponse); rpc DisableCustody(MsgDisableCustodyRecord) returns (MsgDisableCustodyRecordResponse); + rpc DropCustody(MsgDropCustodyRecord) returns (MsgDropCustodyRecordResponse); rpc AddToCustodians(MsgAddToCustodyCustodians) returns (MsgAddToCustodyCustodiansResponse); rpc RemoveFromCustodians(MsgRemoveFromCustodyCustodians) returns (MsgRemoveFromCustodyCustodiansResponse); rpc DropCustodians(MsgDropCustodyCustodians) returns (MsgDropCustodyCustodiansResponse); @@ -28,7 +29,7 @@ service Msg { rpc PasswordConfirm(MsgPasswordConfirmTransaction) returns (MsgPasswordConfirmTransactionResponse); } -message MsgCreteCustodyRecord { +message MsgCreateCustodyRecord { option (gogoproto.equal) = false; option (gogoproto.goproto_getters) = false; @@ -55,6 +56,22 @@ message MsgDisableCustodyRecord { (gogoproto.moretags) = "yaml:\"address\"" ]; + string old_key = 2; + string new_key = 3; + + string next_address = 4; + string target_address = 5; +} + +message MsgDropCustodyRecord { + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + bytes address = 1 [ + (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress", + (gogoproto.moretags) = "yaml:\"address\"" + ]; + string old_key = 2; string target_address = 3 ; } @@ -308,8 +325,9 @@ message MsgPasswordConfirmTransaction { string password = 4; } -message MsgCreteCustodyRecordResponse {} +message MsgCreateCustodyRecordResponse {} message MsgDisableCustodyRecordResponse {} +message MsgDropCustodyRecordResponse {} message MsgAddToCustodyCustodiansResponse {} message MsgRemoveFromCustodyCustodiansResponse {} message MsgDropCustodyCustodiansResponse {} diff --git a/scripts/test-local/custody-processes.sh b/scripts/test-local/custody-processes.sh index 6f1dcf99..c8366216 100644 --- a/scripts/test-local/custody-processes.sh +++ b/scripts/test-local/custody-processes.sh @@ -272,11 +272,11 @@ sendTokens validator "$ACCOUNT5_ADDRESS" 1000000000000 ukex 100 ukex # Send tokens with enabled custodians and enabled password protection ---> # TEST 4/1 - # Disable custodians ---> + # Drop custodians ---> echoInfo "TEST 4/1" TESTER1_BALANCE_EXPECTED=$(($TESTER1_BALANCE_EXPECTED - 150)) # -150 fee - disableCustody tester1 150 ukex $KEY3 + dropCustody tester1 150 ukex $KEY3 CUSTODY_KEY=$(getCustodyKey tester1) TESTER1_BALANCE_REAL=$(showBalance tester1 ukex) diff --git a/types/Msg.go b/types/Msg.go index ede78bb8..f3fed7c7 100644 --- a/types/Msg.go +++ b/types/Msg.go @@ -89,6 +89,7 @@ const ( // custody module MsgTypeCreateCustody = "create-custody" MsgTypeDisableCustody = "disable-custody" + MsgTypeDropCustody = "drop-custody" MsgTypeAddToCustodyWhiteList = "add-to-custody-whitelist" MsgTypeAddToCustodyCustodians = "add-to-custody-custodians" MsgTypeRemoveFromCustodyCustodians = "remove-from-custody-custodians" diff --git a/x/custody/client/cli/tx.go b/x/custody/client/cli/tx.go index 37ae4823..76f9fd91 100644 --- a/x/custody/client/cli/tx.go +++ b/x/custody/client/cli/tx.go @@ -33,6 +33,7 @@ func NewTxCmd() *cobra.Command { txCmd.AddCommand(GetTxCreateCustody()) txCmd.AddCommand(GetTxDisableCustody()) + txCmd.AddCommand(GetTxDropCustody()) txCmd.AddCommand(NewCustodiansTxCmd()) txCmd.AddCommand(NewWhiteListTxCmd()) txCmd.AddCommand(NewLimitsTxCmd()) @@ -644,6 +645,48 @@ func GetTxCreateCustody() *cobra.Command { return cmd } +func GetTxDropCustody() *cobra.Command { + cmd := &cobra.Command{ + Use: "drop", + Short: "Drop custody settings", + Args: cobra.ExactArgs(0), + RunE: func(cmd *cobra.Command, args []string) error { + clientCtx, err := client.GetClientTxContext(cmd) + if err != nil { + return err + } + + oldKey, err := cmd.Flags().GetString(OldKey) + if err != nil { + return fmt.Errorf("invalid old key: %w", err) + } + + targetAddr, err := cmd.Flags().GetString(TargetAddress) + if err != nil { + return fmt.Errorf("invalid target address: %w", err) + } + + msg := types.NewMsgDropCustody( + clientCtx.FromAddress, + oldKey, + targetAddr, + ) + + return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) + }, + } + + cmd.Flags().String(OldKey, "", "Previous hash string.") + cmd.MarkFlagRequired(OldKey) + + cmd.Flags().String(TargetAddress, "", "Target of the control request.") + + flags.AddTxFlagsToCmd(cmd) + cmd.MarkFlagRequired(flags.FlagFrom) + + return cmd +} + func GetTxDisableCustody() *cobra.Command { cmd := &cobra.Command{ Use: "disable", @@ -660,6 +703,16 @@ func GetTxDisableCustody() *cobra.Command { return fmt.Errorf("invalid old key: %w", err) } + newKey, err := cmd.Flags().GetString(NewKey) + if err != nil { + return fmt.Errorf("invalid new key: %w", err) + } + + nextAddr, err := cmd.Flags().GetString(NextAddress) + if err != nil { + return fmt.Errorf("invalid next address: %w", err) + } + targetAddr, err := cmd.Flags().GetString(TargetAddress) if err != nil { return fmt.Errorf("invalid target address: %w", err) @@ -668,6 +721,8 @@ func GetTxDisableCustody() *cobra.Command { msg := types.NewMsgDisableCustody( clientCtx.FromAddress, oldKey, + newKey, + nextAddr, targetAddr, ) @@ -678,6 +733,10 @@ func GetTxDisableCustody() *cobra.Command { cmd.Flags().String(OldKey, "", "Previous hash string.") cmd.MarkFlagRequired(OldKey) + cmd.Flags().String(NewKey, "", "Next hash string.") + cmd.MarkFlagRequired(NewKey) + + cmd.Flags().String(NextAddress, "", "Next address to control the settings.") cmd.Flags().String(TargetAddress, "", "Target of the control request.") flags.AddTxFlagsToCmd(cmd) diff --git a/x/custody/handler.go b/x/custody/handler.go index c83140e0..d816db33 100644 --- a/x/custody/handler.go +++ b/x/custody/handler.go @@ -15,12 +15,15 @@ func NewHandler(ck keeper.Keeper, cgk types.CustomGovKeeper, bk types.BankKeeper ctx = ctx.WithEventManager(sdk.NewEventManager()) switch msg := msg.(type) { - case *types.MsgCreteCustodyRecord: + case *types.MsgCreateCustodyRecord: res, err := msgServer.CreateCustody(sdk.WrapSDKContext(ctx), msg) return sdk.WrapServiceResult(ctx, res, err) case *types.MsgDisableCustodyRecord: res, err := msgServer.DisableCustody(sdk.WrapSDKContext(ctx), msg) return sdk.WrapServiceResult(ctx, res, err) + case *types.MsgDropCustodyRecord: + res, err := msgServer.DropCustody(sdk.WrapSDKContext(ctx), msg) + return sdk.WrapServiceResult(ctx, res, err) case *types.MsgAddToCustodyCustodians: res, err := msgServer.AddToCustodians(sdk.WrapSDKContext(ctx), msg) return sdk.WrapServiceResult(ctx, res, err) diff --git a/x/custody/keeper/custody.go b/x/custody/keeper/custody.go index 8a892a13..973ce491 100644 --- a/x/custody/keeper/custody.go +++ b/x/custody/keeper/custody.go @@ -27,7 +27,16 @@ func (k Keeper) SetCustodyRecord(ctx sdk.Context, record types.CustodyRecord) { store.Set(key, k.cdc.MustMarshal(record.CustodySettings)) } -func (k Keeper) DisableCustodyRecord(ctx sdk.Context, address sdk.AccAddress) { +func (k Keeper) DisableCustodyRecord(ctx sdk.Context, record types.CustodyRecord) { + store := ctx.KVStore(k.storeKey) + key := append([]byte(types.PrefixKeyCustodyRecord), record.Address...) + + record.CustodySettings.CustodyEnabled = false + + store.Set(key, k.cdc.MustMarshal(record.CustodySettings)) +} + +func (k Keeper) DropCustodyRecord(ctx sdk.Context, address sdk.AccAddress) { store := ctx.KVStore(k.storeKey) key := append([]byte(types.PrefixKeyCustodyRecord), address...) diff --git a/x/custody/keeper/msg_server.go b/x/custody/keeper/msg_server.go index 2293e947..13fa34e0 100644 --- a/x/custody/keeper/msg_server.go +++ b/x/custody/keeper/msg_server.go @@ -30,7 +30,7 @@ func NewMsgServerImpl(keeper Keeper, cgk types.CustomGovKeeper, bk types.BankKee var _ types.MsgServer = msgServer{} -func (s msgServer) CreateCustody(goCtx context.Context, msg *types.MsgCreteCustodyRecord) (*types.MsgCreteCustodyRecordResponse, error) { +func (s msgServer) CreateCustody(goCtx context.Context, msg *types.MsgCreateCustodyRecord) (*types.MsgCreateCustodyRecordResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) record := types.CustodyRecord{ Address: msg.Address, @@ -42,16 +42,48 @@ func (s msgServer) CreateCustody(goCtx context.Context, msg *types.MsgCreteCusto s.keeper.SetCustodyRecord(ctx, record) - return &types.MsgCreteCustodyRecordResponse{}, nil + return &types.MsgCreateCustodyRecordResponse{}, nil } func (s msgServer) DisableCustody(goCtx context.Context, msg *types.MsgDisableCustodyRecord) (*types.MsgDisableCustodyRecordResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) - s.keeper.DisableCustodyRecord(ctx, msg.Address) + + if msg.TargetAddress != "" { + targetAddr, err := sdk.AccAddressFromBech32(msg.TargetAddress) + if err != nil { + return nil, errors.Wrap(types.ErrWrongTargetAddr, "Can not convert string to address") + } + + msg.Address = targetAddr + } + + record := types.CustodyRecord{ + Address: msg.Address, + CustodySettings: s.keeper.GetCustodyInfoByAddress(ctx, msg.Address), + } + + s.keeper.DisableCustodyRecord(ctx, record) return &types.MsgDisableCustodyRecordResponse{}, nil } +func (s msgServer) DropCustody(goCtx context.Context, msg *types.MsgDropCustodyRecord) (*types.MsgDropCustodyRecordResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + if msg.TargetAddress != "" { + targetAddr, err := sdk.AccAddressFromBech32(msg.TargetAddress) + if err != nil { + return nil, errors.Wrap(types.ErrWrongTargetAddr, "Can not convert string to address") + } + + msg.Address = targetAddr + } + + s.keeper.DropCustodyRecord(ctx, msg.Address) + + return &types.MsgDropCustodyRecordResponse{}, nil +} + func (s msgServer) AddToCustodians(goCtx context.Context, msg *types.MsgAddToCustodyCustodians) (*types.MsgAddToCustodyCustodiansResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) diff --git a/x/custody/types/codec.go b/x/custody/types/codec.go index 1e1a6c2e..d9e19cf6 100644 --- a/x/custody/types/codec.go +++ b/x/custody/types/codec.go @@ -1,32 +1,32 @@ -package types - -import ( - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/msgservice" -) - -// RegisterCodec register codec and metadata -func RegisterCodec(cdc *codec.LegacyAmino) { - cdc.RegisterConcrete(&MsgCreteCustodyRecord{}, "kiraHub/MsgCreteCustodyRecord", nil) -} - -// RegisterInterfaces register Msg and structs -func RegisterInterfaces(registry types.InterfaceRegistry) { - registry.RegisterImplementations((*sdk.Msg)(nil), - &MsgCreteCustodyRecord{}, - ) - - msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) -} - -var ( - amino = codec.NewLegacyAmino() - ModuleCdc = codec.NewAminoCodec(amino) -) - -func init() { - RegisterCodec(amino) - amino.Seal() -} +package types + +import ( + "github.com/cosmos/cosmos-sdk/codec" + "github.com/cosmos/cosmos-sdk/codec/types" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/msgservice" +) + +// RegisterCodec register codec and metadata +func RegisterCodec(cdc *codec.LegacyAmino) { + cdc.RegisterConcrete(&MsgCreateCustodyRecord{}, "kiraHub/MsgCreateCustodyRecord", nil) +} + +// RegisterInterfaces register Msg and structs +func RegisterInterfaces(registry types.InterfaceRegistry) { + registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgCreateCustodyRecord{}, + ) + + msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) +} + +var ( + amino = codec.NewLegacyAmino() + ModuleCdc = codec.NewAminoCodec(amino) +) + +func init() { + RegisterCodec(amino) + amino.Seal() +} diff --git a/x/custody/types/msg.go b/x/custody/types/msg.go index 61d2daaa..a26dfd45 100644 --- a/x/custody/types/msg.go +++ b/x/custody/types/msg.go @@ -6,35 +6,35 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) -func NewMsgCreateCustody(addr sdk.AccAddress, custodySettings CustodySettings, oldKey, newKey, next, target string) *MsgCreteCustodyRecord { - return &MsgCreteCustodyRecord{addr, custodySettings, oldKey, newKey, next, target} +func NewMsgCreateCustody(addr sdk.AccAddress, custodySettings CustodySettings, oldKey, newKey, next, target string) *MsgCreateCustodyRecord { + return &MsgCreateCustodyRecord{addr, custodySettings, oldKey, newKey, next, target} } -func (m *MsgCreteCustodyRecord) Route() string { +func (m *MsgCreateCustodyRecord) Route() string { return ModuleName } -func (m *MsgCreteCustodyRecord) Type() string { +func (m *MsgCreateCustodyRecord) Type() string { return types.MsgTypeCreateCustody } -func (m *MsgCreteCustodyRecord) ValidateBasic() error { +func (m *MsgCreateCustodyRecord) ValidateBasic() error { return nil } -func (m *MsgCreteCustodyRecord) GetSignBytes() []byte { +func (m *MsgCreateCustodyRecord) GetSignBytes() []byte { bz := ModuleCdc.MustMarshalJSON(m) return sdk.MustSortJSON(bz) } -func (m *MsgCreteCustodyRecord) GetSigners() []sdk.AccAddress { +func (m *MsgCreateCustodyRecord) GetSigners() []sdk.AccAddress { return []sdk.AccAddress{ m.Address, } } -func NewMsgDisableCustody(addr sdk.AccAddress, oldKey, target string) *MsgDisableCustodyRecord { - return &MsgDisableCustodyRecord{addr, oldKey, target} +func NewMsgDisableCustody(addr sdk.AccAddress, oldKey, newKey, next, target string) *MsgDisableCustodyRecord { + return &MsgDisableCustodyRecord{addr, oldKey, newKey, next, target} } func (m *MsgDisableCustodyRecord) Route() string { @@ -60,6 +60,33 @@ func (m *MsgDisableCustodyRecord) GetSigners() []sdk.AccAddress { } } +func NewMsgDropCustody(addr sdk.AccAddress, oldKey, target string) *MsgDropCustodyRecord { + return &MsgDropCustodyRecord{addr, oldKey, target} +} + +func (m *MsgDropCustodyRecord) Route() string { + return ModuleName +} + +func (m *MsgDropCustodyRecord) Type() string { + return types.MsgTypeDropCustody +} + +func (m *MsgDropCustodyRecord) ValidateBasic() error { + return nil +} + +func (m *MsgDropCustodyRecord) GetSignBytes() []byte { + bz := ModuleCdc.MustMarshalJSON(m) + return sdk.MustSortJSON(bz) +} + +func (m *MsgDropCustodyRecord) GetSigners() []sdk.AccAddress { + return []sdk.AccAddress{ + m.Address, + } +} + func NewMsgApproveCustodyTransaction(from sdk.AccAddress, to sdk.AccAddress, hash string) *MsgApproveCustodyTransaction { return &MsgApproveCustodyTransaction{from, to, hash} } diff --git a/x/custody/types/tx.pb.go b/x/custody/types/tx.pb.go index 1e13db98..1c31a12c 100644 --- a/x/custody/types/tx.pb.go +++ b/x/custody/types/tx.pb.go @@ -32,7 +32,7 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -type MsgCreteCustodyRecord struct { +type MsgCreateCustodyRecord struct { Address github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=address,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"address,omitempty" yaml:"address"` CustodySettings CustodySettings `protobuf:"bytes,2,opt,name=custody_settings,json=custodySettings,proto3" json:"custody_settings"` OldKey string `protobuf:"bytes,3,opt,name=old_key,json=oldKey,proto3" json:"old_key,omitempty"` @@ -41,18 +41,18 @@ type MsgCreteCustodyRecord struct { TargetAddress string `protobuf:"bytes,6,opt,name=target_address,json=targetAddress,proto3" json:"target_address,omitempty"` } -func (m *MsgCreteCustodyRecord) Reset() { *m = MsgCreteCustodyRecord{} } -func (m *MsgCreteCustodyRecord) String() string { return proto.CompactTextString(m) } -func (*MsgCreteCustodyRecord) ProtoMessage() {} -func (*MsgCreteCustodyRecord) Descriptor() ([]byte, []int) { +func (m *MsgCreateCustodyRecord) Reset() { *m = MsgCreateCustodyRecord{} } +func (m *MsgCreateCustodyRecord) String() string { return proto.CompactTextString(m) } +func (*MsgCreateCustodyRecord) ProtoMessage() {} +func (*MsgCreateCustodyRecord) Descriptor() ([]byte, []int) { return fileDescriptor_85c0ad3d36de53cc, []int{0} } -func (m *MsgCreteCustodyRecord) XXX_Unmarshal(b []byte) error { +func (m *MsgCreateCustodyRecord) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgCreteCustodyRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgCreateCustodyRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgCreteCustodyRecord.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgCreateCustodyRecord.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -62,22 +62,24 @@ func (m *MsgCreteCustodyRecord) XXX_Marshal(b []byte, deterministic bool) ([]byt return b[:n], nil } } -func (m *MsgCreteCustodyRecord) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgCreteCustodyRecord.Merge(m, src) +func (m *MsgCreateCustodyRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateCustodyRecord.Merge(m, src) } -func (m *MsgCreteCustodyRecord) XXX_Size() int { +func (m *MsgCreateCustodyRecord) XXX_Size() int { return m.Size() } -func (m *MsgCreteCustodyRecord) XXX_DiscardUnknown() { - xxx_messageInfo_MsgCreteCustodyRecord.DiscardUnknown(m) +func (m *MsgCreateCustodyRecord) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateCustodyRecord.DiscardUnknown(m) } -var xxx_messageInfo_MsgCreteCustodyRecord proto.InternalMessageInfo +var xxx_messageInfo_MsgCreateCustodyRecord proto.InternalMessageInfo type MsgDisableCustodyRecord struct { Address github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=address,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"address,omitempty" yaml:"address"` OldKey string `protobuf:"bytes,2,opt,name=old_key,json=oldKey,proto3" json:"old_key,omitempty"` - TargetAddress string `protobuf:"bytes,3,opt,name=target_address,json=targetAddress,proto3" json:"target_address,omitempty"` + NewKey string `protobuf:"bytes,3,opt,name=new_key,json=newKey,proto3" json:"new_key,omitempty"` + NextAddress string `protobuf:"bytes,4,opt,name=next_address,json=nextAddress,proto3" json:"next_address,omitempty"` + TargetAddress string `protobuf:"bytes,5,opt,name=target_address,json=targetAddress,proto3" json:"target_address,omitempty"` } func (m *MsgDisableCustodyRecord) Reset() { *m = MsgDisableCustodyRecord{} } @@ -113,6 +115,45 @@ func (m *MsgDisableCustodyRecord) XXX_DiscardUnknown() { var xxx_messageInfo_MsgDisableCustodyRecord proto.InternalMessageInfo +type MsgDropCustodyRecord struct { + Address github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=address,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"address,omitempty" yaml:"address"` + OldKey string `protobuf:"bytes,2,opt,name=old_key,json=oldKey,proto3" json:"old_key,omitempty"` + TargetAddress string `protobuf:"bytes,3,opt,name=target_address,json=targetAddress,proto3" json:"target_address,omitempty"` +} + +func (m *MsgDropCustodyRecord) Reset() { *m = MsgDropCustodyRecord{} } +func (m *MsgDropCustodyRecord) String() string { return proto.CompactTextString(m) } +func (*MsgDropCustodyRecord) ProtoMessage() {} +func (*MsgDropCustodyRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_85c0ad3d36de53cc, []int{2} +} +func (m *MsgDropCustodyRecord) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgDropCustodyRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgDropCustodyRecord.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 *MsgDropCustodyRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgDropCustodyRecord.Merge(m, src) +} +func (m *MsgDropCustodyRecord) XXX_Size() int { + return m.Size() +} +func (m *MsgDropCustodyRecord) XXX_DiscardUnknown() { + xxx_messageInfo_MsgDropCustodyRecord.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgDropCustodyRecord proto.InternalMessageInfo + type MsgAddToCustodyCustodians struct { Address github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=address,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"address,omitempty" yaml:"address"` AddAddress []github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,2,rep,name=add_address,json=addAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"add_address,omitempty" yaml:"address"` @@ -126,7 +167,7 @@ func (m *MsgAddToCustodyCustodians) Reset() { *m = MsgAddToCustodyCustod func (m *MsgAddToCustodyCustodians) String() string { return proto.CompactTextString(m) } func (*MsgAddToCustodyCustodians) ProtoMessage() {} func (*MsgAddToCustodyCustodians) Descriptor() ([]byte, []int) { - return fileDescriptor_85c0ad3d36de53cc, []int{2} + return fileDescriptor_85c0ad3d36de53cc, []int{3} } func (m *MsgAddToCustodyCustodians) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -168,7 +209,7 @@ func (m *MsgRemoveFromCustodyCustodians) Reset() { *m = MsgRemoveFromCus func (m *MsgRemoveFromCustodyCustodians) String() string { return proto.CompactTextString(m) } func (*MsgRemoveFromCustodyCustodians) ProtoMessage() {} func (*MsgRemoveFromCustodyCustodians) Descriptor() ([]byte, []int) { - return fileDescriptor_85c0ad3d36de53cc, []int{3} + return fileDescriptor_85c0ad3d36de53cc, []int{4} } func (m *MsgRemoveFromCustodyCustodians) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -209,7 +250,7 @@ func (m *MsgDropCustodyCustodians) Reset() { *m = MsgDropCustodyCustodia func (m *MsgDropCustodyCustodians) String() string { return proto.CompactTextString(m) } func (*MsgDropCustodyCustodians) ProtoMessage() {} func (*MsgDropCustodyCustodians) Descriptor() ([]byte, []int) { - return fileDescriptor_85c0ad3d36de53cc, []int{4} + return fileDescriptor_85c0ad3d36de53cc, []int{5} } func (m *MsgDropCustodyCustodians) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -251,7 +292,7 @@ func (m *MsgAddToCustodyWhiteList) Reset() { *m = MsgAddToCustodyWhiteLi func (m *MsgAddToCustodyWhiteList) String() string { return proto.CompactTextString(m) } func (*MsgAddToCustodyWhiteList) ProtoMessage() {} func (*MsgAddToCustodyWhiteList) Descriptor() ([]byte, []int) { - return fileDescriptor_85c0ad3d36de53cc, []int{5} + return fileDescriptor_85c0ad3d36de53cc, []int{6} } func (m *MsgAddToCustodyWhiteList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -293,7 +334,7 @@ func (m *MsgRemoveFromCustodyWhiteList) Reset() { *m = MsgRemoveFromCust func (m *MsgRemoveFromCustodyWhiteList) String() string { return proto.CompactTextString(m) } func (*MsgRemoveFromCustodyWhiteList) ProtoMessage() {} func (*MsgRemoveFromCustodyWhiteList) Descriptor() ([]byte, []int) { - return fileDescriptor_85c0ad3d36de53cc, []int{6} + return fileDescriptor_85c0ad3d36de53cc, []int{7} } func (m *MsgRemoveFromCustodyWhiteList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -334,7 +375,7 @@ func (m *MsgDropCustodyWhiteList) Reset() { *m = MsgDropCustodyWhiteList func (m *MsgDropCustodyWhiteList) String() string { return proto.CompactTextString(m) } func (*MsgDropCustodyWhiteList) ProtoMessage() {} func (*MsgDropCustodyWhiteList) Descriptor() ([]byte, []int) { - return fileDescriptor_85c0ad3d36de53cc, []int{7} + return fileDescriptor_85c0ad3d36de53cc, []int{8} } func (m *MsgDropCustodyWhiteList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -378,7 +419,7 @@ func (m *MsgAddToCustodyLimits) Reset() { *m = MsgAddToCustodyLimits{} } func (m *MsgAddToCustodyLimits) String() string { return proto.CompactTextString(m) } func (*MsgAddToCustodyLimits) ProtoMessage() {} func (*MsgAddToCustodyLimits) Descriptor() ([]byte, []int) { - return fileDescriptor_85c0ad3d36de53cc, []int{8} + return fileDescriptor_85c0ad3d36de53cc, []int{9} } func (m *MsgAddToCustodyLimits) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -420,7 +461,7 @@ func (m *MsgRemoveFromCustodyLimits) Reset() { *m = MsgRemoveFromCustody func (m *MsgRemoveFromCustodyLimits) String() string { return proto.CompactTextString(m) } func (*MsgRemoveFromCustodyLimits) ProtoMessage() {} func (*MsgRemoveFromCustodyLimits) Descriptor() ([]byte, []int) { - return fileDescriptor_85c0ad3d36de53cc, []int{9} + return fileDescriptor_85c0ad3d36de53cc, []int{10} } func (m *MsgRemoveFromCustodyLimits) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -461,7 +502,7 @@ func (m *MsgDropCustodyLimits) Reset() { *m = MsgDropCustodyLimits{} } func (m *MsgDropCustodyLimits) String() string { return proto.CompactTextString(m) } func (*MsgDropCustodyLimits) ProtoMessage() {} func (*MsgDropCustodyLimits) Descriptor() ([]byte, []int) { - return fileDescriptor_85c0ad3d36de53cc, []int{10} + return fileDescriptor_85c0ad3d36de53cc, []int{11} } func (m *MsgDropCustodyLimits) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -500,7 +541,7 @@ func (m *MsgApproveCustodyTransaction) Reset() { *m = MsgApproveCustodyT func (m *MsgApproveCustodyTransaction) String() string { return proto.CompactTextString(m) } func (*MsgApproveCustodyTransaction) ProtoMessage() {} func (*MsgApproveCustodyTransaction) Descriptor() ([]byte, []int) { - return fileDescriptor_85c0ad3d36de53cc, []int{11} + return fileDescriptor_85c0ad3d36de53cc, []int{12} } func (m *MsgApproveCustodyTransaction) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -539,7 +580,7 @@ func (m *MsgDeclineCustodyTransaction) Reset() { *m = MsgDeclineCustodyT func (m *MsgDeclineCustodyTransaction) String() string { return proto.CompactTextString(m) } func (*MsgDeclineCustodyTransaction) ProtoMessage() {} func (*MsgDeclineCustodyTransaction) Descriptor() ([]byte, []int) { - return fileDescriptor_85c0ad3d36de53cc, []int{12} + return fileDescriptor_85c0ad3d36de53cc, []int{13} } func (m *MsgDeclineCustodyTransaction) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -580,7 +621,7 @@ func (m *MsgSend) Reset() { *m = MsgSend{} } func (m *MsgSend) String() string { return proto.CompactTextString(m) } func (*MsgSend) ProtoMessage() {} func (*MsgSend) Descriptor() ([]byte, []int) { - return fileDescriptor_85c0ad3d36de53cc, []int{13} + return fileDescriptor_85c0ad3d36de53cc, []int{14} } func (m *MsgSend) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -619,7 +660,7 @@ func (m *TransactionRecord) Reset() { *m = TransactionRecord{} } func (m *TransactionRecord) String() string { return proto.CompactTextString(m) } func (*TransactionRecord) ProtoMessage() {} func (*TransactionRecord) Descriptor() ([]byte, []int) { - return fileDescriptor_85c0ad3d36de53cc, []int{14} + return fileDescriptor_85c0ad3d36de53cc, []int{15} } func (m *TransactionRecord) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -677,7 +718,7 @@ func (m *TransactionPool) Reset() { *m = TransactionPool{} } func (m *TransactionPool) String() string { return proto.CompactTextString(m) } func (*TransactionPool) ProtoMessage() {} func (*TransactionPool) Descriptor() ([]byte, []int) { - return fileDescriptor_85c0ad3d36de53cc, []int{15} + return fileDescriptor_85c0ad3d36de53cc, []int{16} } func (m *TransactionPool) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -722,7 +763,7 @@ func (m *CustodyPool) Reset() { *m = CustodyPool{} } func (m *CustodyPool) String() string { return proto.CompactTextString(m) } func (*CustodyPool) ProtoMessage() {} func (*CustodyPool) Descriptor() ([]byte, []int) { - return fileDescriptor_85c0ad3d36de53cc, []int{16} + return fileDescriptor_85c0ad3d36de53cc, []int{17} } func (m *CustodyPool) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -776,7 +817,7 @@ func (m *MsgPasswordConfirmTransaction) Reset() { *m = MsgPasswordConfir func (m *MsgPasswordConfirmTransaction) String() string { return proto.CompactTextString(m) } func (*MsgPasswordConfirmTransaction) ProtoMessage() {} func (*MsgPasswordConfirmTransaction) Descriptor() ([]byte, []int) { - return fileDescriptor_85c0ad3d36de53cc, []int{17} + return fileDescriptor_85c0ad3d36de53cc, []int{18} } func (m *MsgPasswordConfirmTransaction) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -833,21 +874,21 @@ func (m *MsgPasswordConfirmTransaction) GetPassword() string { return "" } -type MsgCreteCustodyRecordResponse struct { +type MsgCreateCustodyRecordResponse struct { } -func (m *MsgCreteCustodyRecordResponse) Reset() { *m = MsgCreteCustodyRecordResponse{} } -func (m *MsgCreteCustodyRecordResponse) String() string { return proto.CompactTextString(m) } -func (*MsgCreteCustodyRecordResponse) ProtoMessage() {} -func (*MsgCreteCustodyRecordResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_85c0ad3d36de53cc, []int{18} +func (m *MsgCreateCustodyRecordResponse) Reset() { *m = MsgCreateCustodyRecordResponse{} } +func (m *MsgCreateCustodyRecordResponse) String() string { return proto.CompactTextString(m) } +func (*MsgCreateCustodyRecordResponse) ProtoMessage() {} +func (*MsgCreateCustodyRecordResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_85c0ad3d36de53cc, []int{19} } -func (m *MsgCreteCustodyRecordResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgCreateCustodyRecordResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgCreteCustodyRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgCreateCustodyRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgCreteCustodyRecordResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgCreateCustodyRecordResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -857,17 +898,17 @@ func (m *MsgCreteCustodyRecordResponse) XXX_Marshal(b []byte, deterministic bool return b[:n], nil } } -func (m *MsgCreteCustodyRecordResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgCreteCustodyRecordResponse.Merge(m, src) +func (m *MsgCreateCustodyRecordResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateCustodyRecordResponse.Merge(m, src) } -func (m *MsgCreteCustodyRecordResponse) XXX_Size() int { +func (m *MsgCreateCustodyRecordResponse) XXX_Size() int { return m.Size() } -func (m *MsgCreteCustodyRecordResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgCreteCustodyRecordResponse.DiscardUnknown(m) +func (m *MsgCreateCustodyRecordResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateCustodyRecordResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgCreteCustodyRecordResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgCreateCustodyRecordResponse proto.InternalMessageInfo type MsgDisableCustodyRecordResponse struct { } @@ -876,7 +917,7 @@ func (m *MsgDisableCustodyRecordResponse) Reset() { *m = MsgDisableCusto func (m *MsgDisableCustodyRecordResponse) String() string { return proto.CompactTextString(m) } func (*MsgDisableCustodyRecordResponse) ProtoMessage() {} func (*MsgDisableCustodyRecordResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_85c0ad3d36de53cc, []int{19} + return fileDescriptor_85c0ad3d36de53cc, []int{20} } func (m *MsgDisableCustodyRecordResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -905,6 +946,42 @@ func (m *MsgDisableCustodyRecordResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgDisableCustodyRecordResponse proto.InternalMessageInfo +type MsgDropCustodyRecordResponse struct { +} + +func (m *MsgDropCustodyRecordResponse) Reset() { *m = MsgDropCustodyRecordResponse{} } +func (m *MsgDropCustodyRecordResponse) String() string { return proto.CompactTextString(m) } +func (*MsgDropCustodyRecordResponse) ProtoMessage() {} +func (*MsgDropCustodyRecordResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_85c0ad3d36de53cc, []int{21} +} +func (m *MsgDropCustodyRecordResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgDropCustodyRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgDropCustodyRecordResponse.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 *MsgDropCustodyRecordResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgDropCustodyRecordResponse.Merge(m, src) +} +func (m *MsgDropCustodyRecordResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgDropCustodyRecordResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgDropCustodyRecordResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgDropCustodyRecordResponse proto.InternalMessageInfo + type MsgAddToCustodyCustodiansResponse struct { } @@ -912,7 +989,7 @@ func (m *MsgAddToCustodyCustodiansResponse) Reset() { *m = MsgAddToCusto func (m *MsgAddToCustodyCustodiansResponse) String() string { return proto.CompactTextString(m) } func (*MsgAddToCustodyCustodiansResponse) ProtoMessage() {} func (*MsgAddToCustodyCustodiansResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_85c0ad3d36de53cc, []int{20} + return fileDescriptor_85c0ad3d36de53cc, []int{22} } func (m *MsgAddToCustodyCustodiansResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -950,7 +1027,7 @@ func (m *MsgRemoveFromCustodyCustodiansResponse) Reset() { func (m *MsgRemoveFromCustodyCustodiansResponse) String() string { return proto.CompactTextString(m) } func (*MsgRemoveFromCustodyCustodiansResponse) ProtoMessage() {} func (*MsgRemoveFromCustodyCustodiansResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_85c0ad3d36de53cc, []int{21} + return fileDescriptor_85c0ad3d36de53cc, []int{23} } func (m *MsgRemoveFromCustodyCustodiansResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -986,7 +1063,7 @@ func (m *MsgDropCustodyCustodiansResponse) Reset() { *m = MsgDropCustody func (m *MsgDropCustodyCustodiansResponse) String() string { return proto.CompactTextString(m) } func (*MsgDropCustodyCustodiansResponse) ProtoMessage() {} func (*MsgDropCustodyCustodiansResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_85c0ad3d36de53cc, []int{22} + return fileDescriptor_85c0ad3d36de53cc, []int{24} } func (m *MsgDropCustodyCustodiansResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1022,7 +1099,7 @@ func (m *MsgAddToCustodyWhiteListResponse) Reset() { *m = MsgAddToCustod func (m *MsgAddToCustodyWhiteListResponse) String() string { return proto.CompactTextString(m) } func (*MsgAddToCustodyWhiteListResponse) ProtoMessage() {} func (*MsgAddToCustodyWhiteListResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_85c0ad3d36de53cc, []int{23} + return fileDescriptor_85c0ad3d36de53cc, []int{25} } func (m *MsgAddToCustodyWhiteListResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1058,7 +1135,7 @@ func (m *MsgRemoveFromCustodyWhiteListResponse) Reset() { *m = MsgRemove func (m *MsgRemoveFromCustodyWhiteListResponse) String() string { return proto.CompactTextString(m) } func (*MsgRemoveFromCustodyWhiteListResponse) ProtoMessage() {} func (*MsgRemoveFromCustodyWhiteListResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_85c0ad3d36de53cc, []int{24} + return fileDescriptor_85c0ad3d36de53cc, []int{26} } func (m *MsgRemoveFromCustodyWhiteListResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1094,7 +1171,7 @@ func (m *MsgDropCustodyWhiteListResponse) Reset() { *m = MsgDropCustodyW func (m *MsgDropCustodyWhiteListResponse) String() string { return proto.CompactTextString(m) } func (*MsgDropCustodyWhiteListResponse) ProtoMessage() {} func (*MsgDropCustodyWhiteListResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_85c0ad3d36de53cc, []int{25} + return fileDescriptor_85c0ad3d36de53cc, []int{27} } func (m *MsgDropCustodyWhiteListResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1130,7 +1207,7 @@ func (m *MsgAddToCustodyLimitsResponse) Reset() { *m = MsgAddToCustodyLi func (m *MsgAddToCustodyLimitsResponse) String() string { return proto.CompactTextString(m) } func (*MsgAddToCustodyLimitsResponse) ProtoMessage() {} func (*MsgAddToCustodyLimitsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_85c0ad3d36de53cc, []int{26} + return fileDescriptor_85c0ad3d36de53cc, []int{28} } func (m *MsgAddToCustodyLimitsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1166,7 +1243,7 @@ func (m *MsgRemoveFromCustodyLimitsResponse) Reset() { *m = MsgRemoveFro func (m *MsgRemoveFromCustodyLimitsResponse) String() string { return proto.CompactTextString(m) } func (*MsgRemoveFromCustodyLimitsResponse) ProtoMessage() {} func (*MsgRemoveFromCustodyLimitsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_85c0ad3d36de53cc, []int{27} + return fileDescriptor_85c0ad3d36de53cc, []int{29} } func (m *MsgRemoveFromCustodyLimitsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1202,7 +1279,7 @@ func (m *MsgDropCustodyLimitsResponse) Reset() { *m = MsgDropCustodyLimi func (m *MsgDropCustodyLimitsResponse) String() string { return proto.CompactTextString(m) } func (*MsgDropCustodyLimitsResponse) ProtoMessage() {} func (*MsgDropCustodyLimitsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_85c0ad3d36de53cc, []int{28} + return fileDescriptor_85c0ad3d36de53cc, []int{30} } func (m *MsgDropCustodyLimitsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1238,7 +1315,7 @@ func (m *MsgApproveCustodyTransactionResponse) Reset() { *m = MsgApprove func (m *MsgApproveCustodyTransactionResponse) String() string { return proto.CompactTextString(m) } func (*MsgApproveCustodyTransactionResponse) ProtoMessage() {} func (*MsgApproveCustodyTransactionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_85c0ad3d36de53cc, []int{29} + return fileDescriptor_85c0ad3d36de53cc, []int{31} } func (m *MsgApproveCustodyTransactionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1274,7 +1351,7 @@ func (m *MsgDeclineCustodyTransactionResponse) Reset() { *m = MsgDecline func (m *MsgDeclineCustodyTransactionResponse) String() string { return proto.CompactTextString(m) } func (*MsgDeclineCustodyTransactionResponse) ProtoMessage() {} func (*MsgDeclineCustodyTransactionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_85c0ad3d36de53cc, []int{30} + return fileDescriptor_85c0ad3d36de53cc, []int{32} } func (m *MsgDeclineCustodyTransactionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1310,7 +1387,7 @@ func (m *MsgSendResponse) Reset() { *m = MsgSendResponse{} } func (m *MsgSendResponse) String() string { return proto.CompactTextString(m) } func (*MsgSendResponse) ProtoMessage() {} func (*MsgSendResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_85c0ad3d36de53cc, []int{31} + return fileDescriptor_85c0ad3d36de53cc, []int{33} } func (m *MsgSendResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1346,7 +1423,7 @@ func (m *MsgPasswordConfirmTransactionResponse) Reset() { *m = MsgPasswo func (m *MsgPasswordConfirmTransactionResponse) String() string { return proto.CompactTextString(m) } func (*MsgPasswordConfirmTransactionResponse) ProtoMessage() {} func (*MsgPasswordConfirmTransactionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_85c0ad3d36de53cc, []int{32} + return fileDescriptor_85c0ad3d36de53cc, []int{34} } func (m *MsgPasswordConfirmTransactionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1376,8 +1453,9 @@ func (m *MsgPasswordConfirmTransactionResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgPasswordConfirmTransactionResponse proto.InternalMessageInfo func init() { - proto.RegisterType((*MsgCreteCustodyRecord)(nil), "kira.custody.MsgCreteCustodyRecord") + proto.RegisterType((*MsgCreateCustodyRecord)(nil), "kira.custody.MsgCreateCustodyRecord") proto.RegisterType((*MsgDisableCustodyRecord)(nil), "kira.custody.MsgDisableCustodyRecord") + proto.RegisterType((*MsgDropCustodyRecord)(nil), "kira.custody.MsgDropCustodyRecord") proto.RegisterType((*MsgAddToCustodyCustodians)(nil), "kira.custody.MsgAddToCustodyCustodians") proto.RegisterType((*MsgRemoveFromCustodyCustodians)(nil), "kira.custody.MsgRemoveFromCustodyCustodians") proto.RegisterType((*MsgDropCustodyCustodians)(nil), "kira.custody.MsgDropCustodyCustodians") @@ -1395,8 +1473,9 @@ func init() { proto.RegisterMapType((map[string]*TransactionRecord)(nil), "kira.custody.TransactionPool.RecordEntry") proto.RegisterType((*CustodyPool)(nil), "kira.custody.CustodyPool") proto.RegisterType((*MsgPasswordConfirmTransaction)(nil), "kira.custody.MsgPasswordConfirmTransaction") - proto.RegisterType((*MsgCreteCustodyRecordResponse)(nil), "kira.custody.MsgCreteCustodyRecordResponse") + proto.RegisterType((*MsgCreateCustodyRecordResponse)(nil), "kira.custody.MsgCreateCustodyRecordResponse") proto.RegisterType((*MsgDisableCustodyRecordResponse)(nil), "kira.custody.MsgDisableCustodyRecordResponse") + proto.RegisterType((*MsgDropCustodyRecordResponse)(nil), "kira.custody.MsgDropCustodyRecordResponse") proto.RegisterType((*MsgAddToCustodyCustodiansResponse)(nil), "kira.custody.MsgAddToCustodyCustodiansResponse") proto.RegisterType((*MsgRemoveFromCustodyCustodiansResponse)(nil), "kira.custody.MsgRemoveFromCustodyCustodiansResponse") proto.RegisterType((*MsgDropCustodyCustodiansResponse)(nil), "kira.custody.MsgDropCustodyCustodiansResponse") @@ -1415,97 +1494,99 @@ func init() { func init() { proto.RegisterFile("kira/custody/tx.proto", fileDescriptor_85c0ad3d36de53cc) } var fileDescriptor_85c0ad3d36de53cc = []byte{ - // 1437 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x59, 0x4d, 0x6c, 0xdc, 0x44, - 0x14, 0x8e, 0x77, 0x37, 0x7f, 0x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, 0xc4, 0x6c, 0xba, 0x88, - 0xa2, 0x26, 0x1b, 0x54, 0x43, 0x2d, 0xec, 0x1a, 0xe2, 0x27, 0x30, 0xaa, 0x1b, 0x86, 0x8b, 0x08, - 0x99, 0x13, 0xe6, 0x85, 0xea, 0x44, 0xa3, 0x79, 0xb0, 0x2f, 0x4f, 0xed, 0xe9, 0x76, 0x7b, 0x45, - 0xe1, 0x06, 0xe5, 0xaf, 0x7d, 0x79, 0xc9, 0xb4, 0xe8, 0xe6, 0xf6, 0x7a, 0xad, 0x85, 0x6d, 0x95, - 0x73, 0xb1, 0x9f, 0x25, 0x62, 0x6c, 0xa9, 0x74, 0xaf, 0x83, 0x48, 0xad, 0xde, 0x6a, 0xd5, 0x59, - 0x0f, 0xad, 0x3b, 0xa6, 0xf8, 0x21, 0x9c, 0xe2, 0x4e, 0xac, 0x11, 0x44, 0xa9, 0xe5, 0x98, 0x64, - 0xae, 0x30, 0x2f, 0x54, 0xcb, 0xcb, 0x17, 0x6a, 0x51, 0xbd, 0x6a, 0x7c, 0x56, 0xf7, 0x39, 0xa8, - 0x51, 0x7a, 0xba, 0x2f, 0x0f, 0x69, 0xd3, 0xad, 0x78, 0xb3, 0x78, 0x16, 0x46, 0x71, 0xdb, 0x58, - 0xdb, 0x42, 0x7b, 0x73, 0xc5, 0x79, 0xa1, 0x3a, 0xae, 0x8d, 0xe0, 0xb6, 0x71, 0x07, 0xed, 0x79, - 0x06, 0x07, 0xed, 0xfa, 0x86, 0x12, 0x33, 0x38, 0x68, 0xd7, 0x33, 0x5c, 0x84, 0x09, 0x07, 0x3d, - 0xa2, 0x6b, 0x5d, 0x2f, 0x87, 0x7d, 0x6b, 0xd9, 0x6b, 0xe3, 0xb3, 0x15, 0x17, 0x60, 0x8a, 0xea, - 0xae, 0x89, 0x42, 0xd0, 0x88, 0x0f, 0x9a, 0x64, 0xad, 0x1c, 0xb6, 0x32, 0xf6, 0xc5, 0x13, 0x79, - 0xe8, 0xf7, 0x27, 0xf2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35, 0x38, 0xc7, 0x9b, 0x87, 0x63, 0x82, 0xd1, 0x29, 0x88, 0xbc, 0x4e, 0x46, - 0x97, 0xf4, 0xe4, 0x08, 0x99, 0xc5, 0x54, 0x5a, 0xee, 0x1f, 0x1b, 0x65, 0xe5, 0x55, 0x37, 0x9f, - 0x35, 0xb3, 0x34, 0xa7, 0xb0, 0x1e, 0x5a, 0xc6, 0xc5, 0xf7, 0xa0, 0xe4, 0x9f, 0x18, 0xd2, 0xf7, - 0xa3, 0xd2, 0x85, 0xf4, 0x6d, 0x6a, 0xb7, 0x37, 0x81, 0xe9, 0x9e, 0x72, 0x9f, 0x92, 0x34, 0xd9, - 0x0b, 0x42, 0x4a, 0xd2, 0x1c, 0xbe, 0x7a, 0x34, 0x9a, 0x4f, 0x9f, 0x57, 0x84, 0x67, 0xcf, 0x2b, - 0xc2, 0x2f, 0xcf, 0x2b, 0xc2, 0xe3, 0x17, 0x95, 0xa1, 0x67, 0x2f, 0x2a, 0x43, 0x3f, 0xbd, 0xa8, - 0x0c, 0x3d, 0xbc, 0x1a, 0xd9, 0xdf, 0xdc, 0xb1, 0x5c, 0xbd, 0x89, 0x5d, 0xa4, 0x12, 0xb4, 0xa5, - 0x5b, 0xea, 0xa3, 0xf0, 0xcf, 0x51, 0x6f, 0x9b, 0xb3, 0x3e, 0xe2, 0xff, 0x09, 0x79, 0xf3, 0xbf, - 0x00, 0x00, 0x00, 0xff, 0xff, 0x82, 0xc7, 0xd1, 0x1e, 0x39, 0x1d, 0x00, 0x00, + // 1462 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x59, 0xcb, 0x6f, 0xdb, 0xc6, + 0x13, 0x16, 0x25, 0xf9, 0x35, 0xf2, 0x23, 0x61, 0xec, 0xc4, 0x21, 0x12, 0xd1, 0x61, 0x62, 0x47, + 0x49, 0x7e, 0x16, 0x13, 0x27, 0x3f, 0xb4, 0x30, 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 0x8f, 0x24, 0xa6, 0x52, 0xd0, 0x65, 0x14, 0x8a, 0x5e, 0xcd, 0xbf, + 0xcb, 0x49, 0xdf, 0x70, 0x50, 0x62, 0x15, 0xec, 0xb9, 0x7b, 0xc4, 0x3d, 0xbd, 0x06, 0x93, 0x21, + 0x91, 0x53, 0x2e, 0xbe, 0x62, 0x9a, 0x28, 0x91, 0x29, 0xd2, 0x57, 0x74, 0x7f, 0xfd, 0x80, 0xa5, + 0x59, 0x83, 0xaa, 0x7f, 0x42, 0xed, 0x87, 0x20, 0x4b, 0x47, 0xf6, 0x91, 0xb4, 0x1f, 0xba, 0x74, + 0x46, 0xfb, 0xe1, 0x85, 0x78, 0x45, 0x06, 0xc5, 0x27, 0x2d, 0x78, 0x57, 0x0c, 0x09, 0xd7, 0x9b, + 0x0a, 0x22, 0x1d, 0x6c, 0x11, 0x24, 0x5d, 0x02, 0x31, 0xe5, 0xc2, 0xce, 0x87, 0x94, 0x69, 0x9f, + 0x8f, 0x5f, 0x69, 0xf9, 0xf6, 0xcb, 0x70, 0x29, 0xf5, 0xc2, 0xc8, 0x07, 0x55, 0x60, 0x29, 0xfb, + 0xb2, 0xc3, 0x47, 0x4a, 0xb0, 0x90, 0x76, 0x44, 0x8f, 0x61, 0x12, 0x0f, 0xb1, 0x3e, 0xe6, 0x2a, + 0x2c, 0x66, 0x1e, 0xc0, 0xe2, 0x12, 0x24, 0x1c, 0x1b, 0x7c, 0x88, 0xe8, 0x25, 0x5b, 0xff, 0xc6, + 0xda, 0x07, 0x5c, 0x01, 0x29, 0x7d, 0xdb, 0x98, 0xae, 0x64, 0xcc, 0xbe, 0x04, 0x57, 0xb2, 0x36, + 0x19, 0x31, 0x5c, 0xea, 0x9b, 0xd7, 0xc7, 0x9d, 0x86, 0x99, 0x5e, 0x57, 0x8b, 0xaa, 0x92, 0x5e, + 0x36, 0x3d, 0xe0, 0xca, 0x97, 0x53, 0x50, 0x58, 0x23, 0x06, 0xaf, 0xc1, 0x54, 0x24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, 0xf3, 0x7d, 0x0c, 0xe0, 0x06, 0xcc, 0x98, 0x32, 0x6b, 0x99, 0x71, 0x5c, 0x3f, + 0x18, 0xe3, 0xaf, 0xee, 0x00, 0xcf, 0x1a, 0x71, 0x78, 0x53, 0xd1, 0xbf, 0x42, 0x6a, 0xb7, 0x16, + 0x56, 0x06, 0xc7, 0x86, 0x59, 0x59, 0x5b, 0xcf, 0x66, 0x4d, 0xed, 0xfd, 0x09, 0xac, 0x07, 0xbe, + 0x27, 0xf8, 0xf7, 0xa0, 0xe8, 0x9d, 0x59, 0x92, 0x77, 0xc4, 0xc2, 0xc5, 0xe4, 0x8d, 0x72, 0x6f, + 0x36, 0x81, 0x99, 0xd8, 0xfb, 0x24, 0xa1, 0x68, 0xd2, 0xdf, 0x38, 0x09, 0x45, 0x73, 0xf0, 0xeb, + 0xa9, 0xde, 0x78, 0xf1, 0xaa, 0xcc, 0xbd, 0x7c, 0x55, 0xe6, 0x7e, 0x7e, 0x55, 0xe6, 0x9e, 0xbd, + 0x2e, 0xe7, 0x5e, 0xbe, 0x2e, 0xe7, 0x7e, 0x7c, 0x5d, 0xce, 0x3d, 0xbe, 0x16, 0xda, 0x61, 0xdd, + 0x33, 0x6d, 0xb5, 0x81, 0x6d, 0x24, 0x13, 0xb4, 0xa5, 0x9a, 0xf2, 0xd3, 0xe0, 0xdf, 0x69, 0x77, + 0xa3, 0xd5, 0x1c, 0xf5, 0xfe, 0x05, 0xbe, 0xfd, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xda, 0xdc, + 0x4e, 0x5d, 0xba, 0x1e, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1520,8 +1601,9 @@ const _ = grpc.SupportPackageIsVersion4 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type MsgClient interface { - CreateCustody(ctx context.Context, in *MsgCreteCustodyRecord, opts ...grpc.CallOption) (*MsgCreteCustodyRecordResponse, error) + CreateCustody(ctx context.Context, in *MsgCreateCustodyRecord, opts ...grpc.CallOption) (*MsgCreateCustodyRecordResponse, error) DisableCustody(ctx context.Context, in *MsgDisableCustodyRecord, opts ...grpc.CallOption) (*MsgDisableCustodyRecordResponse, error) + DropCustody(ctx context.Context, in *MsgDropCustodyRecord, opts ...grpc.CallOption) (*MsgDropCustodyRecordResponse, error) AddToCustodians(ctx context.Context, in *MsgAddToCustodyCustodians, opts ...grpc.CallOption) (*MsgAddToCustodyCustodiansResponse, error) RemoveFromCustodians(ctx context.Context, in *MsgRemoveFromCustodyCustodians, opts ...grpc.CallOption) (*MsgRemoveFromCustodyCustodiansResponse, error) DropCustodians(ctx context.Context, in *MsgDropCustodyCustodians, opts ...grpc.CallOption) (*MsgDropCustodyCustodiansResponse, error) @@ -1545,8 +1627,8 @@ func NewMsgClient(cc grpc1.ClientConn) MsgClient { return &msgClient{cc} } -func (c *msgClient) CreateCustody(ctx context.Context, in *MsgCreteCustodyRecord, opts ...grpc.CallOption) (*MsgCreteCustodyRecordResponse, error) { - out := new(MsgCreteCustodyRecordResponse) +func (c *msgClient) CreateCustody(ctx context.Context, in *MsgCreateCustodyRecord, opts ...grpc.CallOption) (*MsgCreateCustodyRecordResponse, error) { + out := new(MsgCreateCustodyRecordResponse) err := c.cc.Invoke(ctx, "/kira.custody.Msg/CreateCustody", in, out, opts...) if err != nil { return nil, err @@ -1563,6 +1645,15 @@ func (c *msgClient) DisableCustody(ctx context.Context, in *MsgDisableCustodyRec return out, nil } +func (c *msgClient) DropCustody(ctx context.Context, in *MsgDropCustodyRecord, opts ...grpc.CallOption) (*MsgDropCustodyRecordResponse, error) { + out := new(MsgDropCustodyRecordResponse) + err := c.cc.Invoke(ctx, "/kira.custody.Msg/DropCustody", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *msgClient) AddToCustodians(ctx context.Context, in *MsgAddToCustodyCustodians, opts ...grpc.CallOption) (*MsgAddToCustodyCustodiansResponse, error) { out := new(MsgAddToCustodyCustodiansResponse) err := c.cc.Invoke(ctx, "/kira.custody.Msg/AddToCustodians", in, out, opts...) @@ -1682,8 +1773,9 @@ func (c *msgClient) PasswordConfirm(ctx context.Context, in *MsgPasswordConfirmT // MsgServer is the server API for Msg service. type MsgServer interface { - CreateCustody(context.Context, *MsgCreteCustodyRecord) (*MsgCreteCustodyRecordResponse, error) + CreateCustody(context.Context, *MsgCreateCustodyRecord) (*MsgCreateCustodyRecordResponse, error) DisableCustody(context.Context, *MsgDisableCustodyRecord) (*MsgDisableCustodyRecordResponse, error) + DropCustody(context.Context, *MsgDropCustodyRecord) (*MsgDropCustodyRecordResponse, error) AddToCustodians(context.Context, *MsgAddToCustodyCustodians) (*MsgAddToCustodyCustodiansResponse, error) RemoveFromCustodians(context.Context, *MsgRemoveFromCustodyCustodians) (*MsgRemoveFromCustodyCustodiansResponse, error) DropCustodians(context.Context, *MsgDropCustodyCustodians) (*MsgDropCustodyCustodiansResponse, error) @@ -1703,12 +1795,15 @@ type MsgServer interface { type UnimplementedMsgServer struct { } -func (*UnimplementedMsgServer) CreateCustody(ctx context.Context, req *MsgCreteCustodyRecord) (*MsgCreteCustodyRecordResponse, error) { +func (*UnimplementedMsgServer) CreateCustody(ctx context.Context, req *MsgCreateCustodyRecord) (*MsgCreateCustodyRecordResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateCustody not implemented") } func (*UnimplementedMsgServer) DisableCustody(ctx context.Context, req *MsgDisableCustodyRecord) (*MsgDisableCustodyRecordResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DisableCustody not implemented") } +func (*UnimplementedMsgServer) DropCustody(ctx context.Context, req *MsgDropCustodyRecord) (*MsgDropCustodyRecordResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DropCustody not implemented") +} func (*UnimplementedMsgServer) AddToCustodians(ctx context.Context, req *MsgAddToCustodyCustodians) (*MsgAddToCustodyCustodiansResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddToCustodians not implemented") } @@ -1754,7 +1849,7 @@ func RegisterMsgServer(s grpc1.Server, srv MsgServer) { } func _Msg_CreateCustody_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCreteCustodyRecord) + in := new(MsgCreateCustodyRecord) if err := dec(in); err != nil { return nil, err } @@ -1766,7 +1861,7 @@ func _Msg_CreateCustody_Handler(srv interface{}, ctx context.Context, dec func(i FullMethod: "/kira.custody.Msg/CreateCustody", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CreateCustody(ctx, req.(*MsgCreteCustodyRecord)) + return srv.(MsgServer).CreateCustody(ctx, req.(*MsgCreateCustodyRecord)) } return interceptor(ctx, in, info, handler) } @@ -1789,6 +1884,24 @@ func _Msg_DisableCustody_Handler(srv interface{}, ctx context.Context, dec func( return interceptor(ctx, in, info, handler) } +func _Msg_DropCustody_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgDropCustodyRecord) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).DropCustody(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/kira.custody.Msg/DropCustody", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).DropCustody(ctx, req.(*MsgDropCustodyRecord)) + } + return interceptor(ctx, in, info, handler) +} + func _Msg_AddToCustodians_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(MsgAddToCustodyCustodians) if err := dec(in); err != nil { @@ -2035,6 +2148,10 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ MethodName: "DisableCustody", Handler: _Msg_DisableCustody_Handler, }, + { + MethodName: "DropCustody", + Handler: _Msg_DropCustody_Handler, + }, { MethodName: "AddToCustodians", Handler: _Msg_AddToCustodians_Handler, @@ -2092,7 +2209,7 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ Metadata: "kira/custody/tx.proto", } -func (m *MsgCreteCustodyRecord) Marshal() (dAtA []byte, err error) { +func (m *MsgCreateCustodyRecord) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2102,12 +2219,12 @@ func (m *MsgCreteCustodyRecord) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgCreteCustodyRecord) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgCreateCustodyRecord) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgCreteCustodyRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgCreateCustodyRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2176,6 +2293,64 @@ func (m *MsgDisableCustodyRecord) MarshalTo(dAtA []byte) (int, error) { } func (m *MsgDisableCustodyRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TargetAddress) > 0 { + i -= len(m.TargetAddress) + copy(dAtA[i:], m.TargetAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.TargetAddress))) + i-- + dAtA[i] = 0x2a + } + if len(m.NextAddress) > 0 { + i -= len(m.NextAddress) + copy(dAtA[i:], m.NextAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.NextAddress))) + i-- + dAtA[i] = 0x22 + } + if len(m.NewKey) > 0 { + i -= len(m.NewKey) + copy(dAtA[i:], m.NewKey) + i = encodeVarintTx(dAtA, i, uint64(len(m.NewKey))) + i-- + dAtA[i] = 0x1a + } + if len(m.OldKey) > 0 { + i -= len(m.OldKey) + copy(dAtA[i:], m.OldKey) + i = encodeVarintTx(dAtA, i, uint64(len(m.OldKey))) + i-- + dAtA[i] = 0x12 + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintTx(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgDropCustodyRecord) 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 *MsgDropCustodyRecord) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgDropCustodyRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3136,7 +3311,7 @@ func (m *MsgPasswordConfirmTransaction) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *MsgCreteCustodyRecordResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgCreateCustodyRecordResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3146,12 +3321,12 @@ func (m *MsgCreteCustodyRecordResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgCreteCustodyRecordResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgCreateCustodyRecordResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgCreteCustodyRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgCreateCustodyRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3182,6 +3357,29 @@ func (m *MsgDisableCustodyRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int return len(dAtA) - i, nil } +func (m *MsgDropCustodyRecordResponse) 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 *MsgDropCustodyRecordResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgDropCustodyRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + func (m *MsgAddToCustodyCustodiansResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -3492,7 +3690,7 @@ func encodeVarintTx(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } -func (m *MsgCreteCustodyRecord) Size() (n int) { +func (m *MsgCreateCustodyRecord) Size() (n int) { if m == nil { return 0 } @@ -3524,6 +3722,35 @@ func (m *MsgCreteCustodyRecord) Size() (n int) { } func (m *MsgDisableCustodyRecord) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.OldKey) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.NewKey) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.NextAddress) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.TargetAddress) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgDropCustodyRecord) Size() (n int) { if m == nil { return 0 } @@ -3998,7 +4225,7 @@ func (m *MsgPasswordConfirmTransaction) Size() (n int) { return n } -func (m *MsgCreteCustodyRecordResponse) Size() (n int) { +func (m *MsgCreateCustodyRecordResponse) Size() (n int) { if m == nil { return 0 } @@ -4016,6 +4243,15 @@ func (m *MsgDisableCustodyRecordResponse) Size() (n int) { return n } +func (m *MsgDropCustodyRecordResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + func (m *MsgAddToCustodyCustodiansResponse) Size() (n int) { if m == nil { return 0 @@ -4139,7 +4375,7 @@ func sovTx(x uint64) (n int) { func sozTx(x uint64) (n int) { return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *MsgCreteCustodyRecord) Unmarshal(dAtA []byte) error { +func (m *MsgCreateCustodyRecord) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4162,10 +4398,10 @@ func (m *MsgCreteCustodyRecord) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgCreteCustodyRecord: wiretype end group for non-group") + return fmt.Errorf("proto: MsgCreateCustodyRecord: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCreteCustodyRecord: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgCreateCustodyRecord: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4413,6 +4649,218 @@ func (m *MsgDisableCustodyRecord) Unmarshal(dAtA []byte) error { return fmt.Errorf("proto: MsgDisableCustodyRecord: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = append(m.Address[:0], dAtA[iNdEx:postIndex]...) + if m.Address == nil { + m.Address = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OldKey", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + 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 ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OldKey = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NewKey", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + 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 ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NewKey = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + 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 ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NextAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + 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 ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TargetAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgDropCustodyRecord) 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 ErrIntOverflowTx + } + 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: MsgDropCustodyRecord: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgDropCustodyRecord: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) @@ -7807,7 +8255,7 @@ func (m *MsgPasswordConfirmTransaction) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCreteCustodyRecordResponse) Unmarshal(dAtA []byte) error { +func (m *MsgCreateCustodyRecordResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7830,10 +8278,10 @@ func (m *MsgCreteCustodyRecordResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgCreteCustodyRecordResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgCreateCustodyRecordResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCreteCustodyRecordResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgCreateCustodyRecordResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -7907,6 +8355,56 @@ func (m *MsgDisableCustodyRecordResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *MsgDropCustodyRecordResponse) 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 ErrIntOverflowTx + } + 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: MsgDropCustodyRecordResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgDropCustodyRecordResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *MsgAddToCustodyCustodiansResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/x/recovery/keeper/msg_server.go b/x/recovery/keeper/msg_server.go index 506c7cb0..dd68f36b 100644 --- a/x/recovery/keeper/msg_server.go +++ b/x/recovery/keeper/msg_server.go @@ -443,7 +443,7 @@ func (k msgServer) RotateRecoveryAddress(goCtx context.Context, msg *types.MsgRo // - custody settings := k.custodyk.GetCustodyInfoByAddress(ctx, addr) if settings != nil { - k.custodyk.DisableCustodyRecord(ctx, addr) + k.custodyk.DropCustodyRecord(ctx, addr) k.custodyk.SetCustodyRecord(ctx, custodytypes.CustodyRecord{ Address: rotatedAddr, CustodySettings: settings, diff --git a/x/recovery/types/expected_keepers.go b/x/recovery/types/expected_keepers.go index 984a342d..d9b04790 100644 --- a/x/recovery/types/expected_keepers.go +++ b/x/recovery/types/expected_keepers.go @@ -147,7 +147,7 @@ type SpendingKeeper interface { type CustodyKeeper interface { GetCustodyInfoByAddress(ctx sdk.Context, address sdk.AccAddress) *custodytypes.CustodySettings SetCustodyRecord(ctx sdk.Context, record custodytypes.CustodyRecord) - DisableCustodyRecord(ctx sdk.Context, address sdk.AccAddress) + DropCustodyRecord(ctx sdk.Context, address sdk.AccAddress) GetCustodyCustodiansByAddress(ctx sdk.Context, address sdk.AccAddress) *custodytypes.CustodyCustodianList AddToCustodyCustodians(ctx sdk.Context, record custodytypes.CustodyCustodiansRecord)