diff --git a/docs/cli/zetacored/zetacored_tx_crosschain.md b/docs/cli/zetacored/zetacored_tx_crosschain.md index a7e2465ab1..bb8a200308 100644 --- a/docs/cli/zetacored/zetacored_tx_crosschain.md +++ b/docs/cli/zetacored/zetacored_tx_crosschain.md @@ -25,6 +25,7 @@ zetacored tx crosschain [flags] ### SEE ALSO * [zetacored tx](zetacored_tx.md) - Transactions subcommands +* [zetacored tx crosschain abort-stuck-cctx](zetacored_tx_crosschain_abort-stuck-cctx.md) - abort a stuck CCTX * [zetacored tx crosschain add-to-in-tx-tracker](zetacored_tx_crosschain_add-to-in-tx-tracker.md) - Add a in-tx-tracker Use 0:Zeta,1:Gas,2:ERC20 * [zetacored tx crosschain add-to-out-tx-tracker](zetacored_tx_crosschain_add-to-out-tx-tracker.md) - Add a out-tx-tracker diff --git a/docs/cli/zetacored/zetacored_tx_crosschain_abort-stuck-cctx.md b/docs/cli/zetacored/zetacored_tx_crosschain_abort-stuck-cctx.md new file mode 100644 index 0000000000..206cda6442 --- /dev/null +++ b/docs/cli/zetacored/zetacored_tx_crosschain_abort-stuck-cctx.md @@ -0,0 +1,52 @@ +# tx crosschain abort-stuck-cctx + +abort a stuck CCTX + +``` +zetacored tx crosschain abort-stuck-cctx [index] [flags] +``` + +### Options + +``` + -a, --account-number uint The account number of the signing account (offline mode only) + --aux Generate aux signer data instead of sending a tx + -b, --broadcast-mode string Transaction broadcasting mode (sync|async|block) + --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) + --fee-granter string Fee granter grants fees for the transaction + --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer + --fees string Fees to pay along with transaction; eg: 10uatom + --from string Name or address of private key with which to sign + --gas string gas limit to set per-transaction; set to "auto" to calculate sufficient gas automatically. Note: "auto" option doesn't always report accurate results. Set a valid coin value to adjust the result. Can be used instead of "fees". (default 200000) + --gas-adjustment float adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored (default 1) + --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) + --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) + -h, --help help for abort-stuck-cctx + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) + --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used + --ledger Use a connected Ledger device + --node string [host]:[port] to tendermint rpc interface for this chain + --note string Note to add a description to the transaction (previously --memo) + --offline Offline mode (does not allow any online functionality) + -o, --output string Output format (text|json) + -s, --sequence uint The sequence number of the signing account (offline mode only) + --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height + --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator + -y, --yes Skip tx broadcasting prompt confirmation +``` + +### Options inherited from parent commands + +``` + --chain-id string The network chain ID + --home string directory for config and data + --log_format string The logging format (json|plain) + --log_level string The logging level (trace|debug|info|warn|error|fatal|panic) + --trace print out full stack trace on errors +``` + +### SEE ALSO + +* [zetacored tx crosschain](zetacored_tx_crosschain.md) - crosschain transactions subcommands + diff --git a/docs/openapi/openapi.swagger.yaml b/docs/openapi/openapi.swagger.yaml index 2e2b7c54c3..1ba9d75fcb 100644 --- a/docs/openapi/openapi.swagger.yaml +++ b/docs/openapi/openapi.swagger.yaml @@ -50830,6 +50830,8 @@ definitions: lastReceiveHeight: type: string format: uint64 + crosschainMsgAbortStuckCCTXResponse: + type: object crosschainMsgAddToInTxTrackerResponse: type: object crosschainMsgAddToOutTxTrackerResponse: diff --git a/docs/spec/crosschain/messages.md b/docs/spec/crosschain/messages.md index c74e063ffd..1659a95bf0 100644 --- a/docs/spec/crosschain/messages.md +++ b/docs/spec/crosschain/messages.md @@ -258,3 +258,15 @@ message MsgCreateTSSVoter { } ``` +## MsgAbortStuckCCTX + +AbortStuckCCTX aborts a stuck CCTX +Authorized: admin policy group 2 + +```proto +message MsgAbortStuckCCTX { + string creator = 1; + string cctx_index = 2; +} +``` + diff --git a/proto/crosschain/tx.proto b/proto/crosschain/tx.proto index b660c38968..3ccfba1911 100644 --- a/proto/crosschain/tx.proto +++ b/proto/crosschain/tx.proto @@ -19,6 +19,8 @@ service Msg { rpc UpdateTssAddress(MsgUpdateTssAddress) returns (MsgUpdateTssAddressResponse); rpc MigrateTssFunds(MsgMigrateTssFunds) returns (MsgMigrateTssFundsResponse); rpc CreateTSSVoter(MsgCreateTSSVoter) returns (MsgCreateTSSVoterResponse); + + rpc AbortStuckCCTX(MsgAbortStuckCCTX) returns (MsgAbortStuckCCTXResponse); } message MsgCreateTSSVoter { @@ -153,3 +155,10 @@ message MsgVoteOnObservedInboundTx { } message MsgVoteOnObservedInboundTxResponse {} + +message MsgAbortStuckCCTX { + string creator = 1; + string cctx_index = 2; +} + +message MsgAbortStuckCCTXResponse {} diff --git a/typescript/crosschain/tx_pb.d.ts b/typescript/crosschain/tx_pb.d.ts index 6c425e3990..b96408964c 100644 --- a/typescript/crosschain/tx_pb.d.ts +++ b/typescript/crosschain/tx_pb.d.ts @@ -730,3 +730,51 @@ export declare class MsgVoteOnObservedInboundTxResponse extends Message | undefined, b: MsgVoteOnObservedInboundTxResponse | PlainMessage | undefined): boolean; } +/** + * @generated from message zetachain.zetacore.crosschain.MsgAbortStuckCCTX + */ +export declare class MsgAbortStuckCCTX extends Message { + /** + * @generated from field: string creator = 1; + */ + creator: string; + + /** + * @generated from field: string cctx_index = 2; + */ + cctxIndex: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.MsgAbortStuckCCTX"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAbortStuckCCTX; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAbortStuckCCTX; + + static fromJsonString(jsonString: string, options?: Partial): MsgAbortStuckCCTX; + + static equals(a: MsgAbortStuckCCTX | PlainMessage | undefined, b: MsgAbortStuckCCTX | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.MsgAbortStuckCCTXResponse + */ +export declare class MsgAbortStuckCCTXResponse extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.MsgAbortStuckCCTXResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAbortStuckCCTXResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAbortStuckCCTXResponse; + + static fromJsonString(jsonString: string, options?: Partial): MsgAbortStuckCCTXResponse; + + static equals(a: MsgAbortStuckCCTXResponse | PlainMessage | undefined, b: MsgAbortStuckCCTXResponse | PlainMessage | undefined): boolean; +} + diff --git a/x/crosschain/client/cli/cli_cctx.go b/x/crosschain/client/cli/cli_cctx.go index 8f38c4ebe1..e85712f50e 100644 --- a/x/crosschain/client/cli/cli_cctx.go +++ b/x/crosschain/client/cli/cli_cctx.go @@ -277,3 +277,25 @@ func CmdCCTXOutboundVoter() *cobra.Command { return cmd } + +func CmdAbortStuckCCTX() *cobra.Command { + cmd := &cobra.Command{ + Use: "abort-stuck-cctx [index]", + Short: "abort a stuck CCTX", + Args: cobra.ExactArgs(1), + RunE: func(cmd *cobra.Command, args []string) error { + clientCtx := client.GetClientContextFromCmd(cmd) + + msg := &types.MsgAbortStuckCCTX{ + Creator: clientCtx.GetFromAddress().String(), + CctxIndex: args[0], + } + + return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) + }, + } + + flags.AddTxFlagsToCmd(cmd) + + return cmd +} diff --git a/x/crosschain/client/cli/tx.go b/x/crosschain/client/cli/tx.go index 0fc5e3c302..d8e6b3bc0e 100644 --- a/x/crosschain/client/cli/tx.go +++ b/x/crosschain/client/cli/tx.go @@ -30,6 +30,7 @@ func GetTxCmd() *cobra.Command { CmdUpdateTss(), CmdMigrateTssFunds(), CmdAddToInTxTracker(), + CmdAbortStuckCCTX(), ) return cmd diff --git a/x/crosschain/keeper/msg_server_abort_stuck_cctx.go b/x/crosschain/keeper/msg_server_abort_stuck_cctx.go new file mode 100644 index 0000000000..32c4bdf55f --- /dev/null +++ b/x/crosschain/keeper/msg_server_abort_stuck_cctx.go @@ -0,0 +1,51 @@ +package keeper + +import ( + "context" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/zeta-chain/zetacore/x/crosschain/types" + observertypes "github.com/zeta-chain/zetacore/x/observer/types" +) + +const ( + // AbortMessage is the message to abort a stuck CCTX + AbortMessage = "CCTX aborted with admin cmd" +) + +// AbortStuckCCTX aborts a stuck CCTX +// Authorized: admin policy group 2 +func (k msgServer) AbortStuckCCTX( + goCtx context.Context, + msg *types.MsgAbortStuckCCTX, +) (*types.MsgAbortStuckCCTXResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + // check if authorized + if msg.Creator != k.zetaObserverKeeper.GetParams(ctx).GetAdminPolicyAccount(observertypes.Policy_Type_group2) { + return nil, observertypes.ErrNotAuthorized + } + + // check if the cctx exists + cctx, found := k.GetCrossChainTx(ctx, msg.CctxIndex) + if !found { + return nil, types.ErrCannotFindCctx + } + + // check if the cctx is pending + isPending := cctx.CctxStatus.Status == types.CctxStatus_PendingOutbound || + cctx.CctxStatus.Status == types.CctxStatus_PendingInbound || + cctx.CctxStatus.Status == types.CctxStatus_PendingRevert + if !isPending { + return nil, types.ErrStatusNotPending + } + + cctx.CctxStatus = &types.Status{ + Status: types.CctxStatus_Aborted, + StatusMessage: AbortMessage, + } + + k.SetCrossChainTx(ctx, cctx) + + return &types.MsgAbortStuckCCTXResponse{}, nil +} diff --git a/x/crosschain/keeper/msg_server_abort_stuck_cctx_test.go b/x/crosschain/keeper/msg_server_abort_stuck_cctx_test.go new file mode 100644 index 0000000000..f9b7c380e0 --- /dev/null +++ b/x/crosschain/keeper/msg_server_abort_stuck_cctx_test.go @@ -0,0 +1,151 @@ +package keeper_test + +import ( + "testing" + + "github.com/stretchr/testify/require" + keepertest "github.com/zeta-chain/zetacore/testutil/keeper" + "github.com/zeta-chain/zetacore/testutil/sample" + crosschainkeeper "github.com/zeta-chain/zetacore/x/crosschain/keeper" + crosschaintypes "github.com/zeta-chain/zetacore/x/crosschain/types" + observertypes "github.com/zeta-chain/zetacore/x/observer/types" +) + +func TestMsgServer_AbortStuckCCTX(t *testing.T) { + t.Run("can abort a cctx in pending inbound", func(t *testing.T) { + k, ctx, _, zk := keepertest.CrosschainKeeper(t) + msgServer := crosschainkeeper.NewMsgServerImpl(*k) + admin := sample.AccAddress() + setAdminPolicies(ctx, zk, admin) + + // create a cctx + cctx := sample.CrossChainTx(t, "cctx_index") + cctx.CctxStatus = &crosschaintypes.Status{ + Status: crosschaintypes.CctxStatus_PendingInbound, + StatusMessage: "pending inbound", + } + k.SetCrossChainTx(ctx, *cctx) + + // abort the cctx + _, err := msgServer.AbortStuckCCTX(ctx, &crosschaintypes.MsgAbortStuckCCTX{ + Creator: admin, + CctxIndex: "cctx_index", + }) + + require.NoError(t, err) + cctxFound, found := k.GetCrossChainTx(ctx, "cctx_index") + require.True(t, found) + require.Equal(t, crosschaintypes.CctxStatus_Aborted, cctxFound.CctxStatus.Status) + require.Equal(t, crosschainkeeper.AbortMessage, cctxFound.CctxStatus.StatusMessage) + }) + + t.Run("can abort a cctx in pending outbound", func(t *testing.T) { + k, ctx, _, zk := keepertest.CrosschainKeeper(t) + msgServer := crosschainkeeper.NewMsgServerImpl(*k) + admin := sample.AccAddress() + setAdminPolicies(ctx, zk, admin) + + // create a cctx + cctx := sample.CrossChainTx(t, "cctx_index") + cctx.CctxStatus = &crosschaintypes.Status{ + Status: crosschaintypes.CctxStatus_PendingOutbound, + StatusMessage: "pending outbound", + } + k.SetCrossChainTx(ctx, *cctx) + + // abort the cctx + _, err := msgServer.AbortStuckCCTX(ctx, &crosschaintypes.MsgAbortStuckCCTX{ + Creator: admin, + CctxIndex: "cctx_index", + }) + + require.NoError(t, err) + cctxFound, found := k.GetCrossChainTx(ctx, "cctx_index") + require.True(t, found) + require.Equal(t, crosschaintypes.CctxStatus_Aborted, cctxFound.CctxStatus.Status) + require.Equal(t, crosschainkeeper.AbortMessage, cctxFound.CctxStatus.StatusMessage) + }) + + t.Run("can abort a cctx in pending revert", func(t *testing.T) { + k, ctx, _, zk := keepertest.CrosschainKeeper(t) + msgServer := crosschainkeeper.NewMsgServerImpl(*k) + admin := sample.AccAddress() + setAdminPolicies(ctx, zk, admin) + + // create a cctx + cctx := sample.CrossChainTx(t, "cctx_index") + cctx.CctxStatus = &crosschaintypes.Status{ + Status: crosschaintypes.CctxStatus_PendingRevert, + StatusMessage: "pending revert", + } + k.SetCrossChainTx(ctx, *cctx) + + // abort the cctx + _, err := msgServer.AbortStuckCCTX(ctx, &crosschaintypes.MsgAbortStuckCCTX{ + Creator: admin, + CctxIndex: "cctx_index", + }) + + require.NoError(t, err) + cctxFound, found := k.GetCrossChainTx(ctx, "cctx_index") + require.True(t, found) + require.Equal(t, crosschaintypes.CctxStatus_Aborted, cctxFound.CctxStatus.Status) + require.Equal(t, crosschainkeeper.AbortMessage, cctxFound.CctxStatus.StatusMessage) + }) + + t.Run("cannot abort a cctx in pending outbound if not admin", func(t *testing.T) { + k, ctx, _, _ := keepertest.CrosschainKeeper(t) + msgServer := crosschainkeeper.NewMsgServerImpl(*k) + + // create a cctx + cctx := sample.CrossChainTx(t, "cctx_index") + cctx.CctxStatus = &crosschaintypes.Status{ + Status: crosschaintypes.CctxStatus_PendingOutbound, + StatusMessage: "pending outbound", + } + k.SetCrossChainTx(ctx, *cctx) + + // abort the cctx + _, err := msgServer.AbortStuckCCTX(ctx, &crosschaintypes.MsgAbortStuckCCTX{ + Creator: sample.AccAddress(), + CctxIndex: "cctx_index", + }) + require.ErrorIs(t, err, observertypes.ErrNotAuthorized) + }) + + t.Run("cannot abort a cctx if doesn't exist", func(t *testing.T) { + k, ctx, _, zk := keepertest.CrosschainKeeper(t) + msgServer := crosschainkeeper.NewMsgServerImpl(*k) + admin := sample.AccAddress() + setAdminPolicies(ctx, zk, admin) + + // abort the cctx + _, err := msgServer.AbortStuckCCTX(ctx, &crosschaintypes.MsgAbortStuckCCTX{ + Creator: admin, + CctxIndex: "cctx_index", + }) + require.ErrorIs(t, err, crosschaintypes.ErrCannotFindCctx) + }) + + t.Run("cannot abort a cctx if not pending", func(t *testing.T) { + k, ctx, _, zk := keepertest.CrosschainKeeper(t) + msgServer := crosschainkeeper.NewMsgServerImpl(*k) + admin := sample.AccAddress() + setAdminPolicies(ctx, zk, admin) + + // create a cctx + cctx := sample.CrossChainTx(t, "cctx_index") + cctx.CctxStatus = &crosschaintypes.Status{ + Status: crosschaintypes.CctxStatus_OutboundMined, + StatusMessage: "outbound mined", + } + k.SetCrossChainTx(ctx, *cctx) + + // abort the cctx + _, err := msgServer.AbortStuckCCTX(ctx, &crosschaintypes.MsgAbortStuckCCTX{ + Creator: admin, + CctxIndex: "cctx_index", + }) + require.ErrorIs(t, err, crosschaintypes.ErrStatusNotPending) + }) +} diff --git a/x/crosschain/types/codec.go b/x/crosschain/types/codec.go index c85eb7f8ea..fb3d51db0a 100644 --- a/x/crosschain/types/codec.go +++ b/x/crosschain/types/codec.go @@ -18,6 +18,7 @@ func RegisterCodec(cdc *codec.LegacyAmino) { cdc.RegisterConcrete(&MsgWhitelistERC20{}, "crosschain/WhitelistERC20", nil) cdc.RegisterConcrete(&MsgMigrateTssFunds{}, "crosschain/MigrateTssFunds", nil) cdc.RegisterConcrete(&MsgUpdateTssAddress{}, "crosschain/UpdateTssAddress", nil) + cdc.RegisterConcrete(&MsgAbortStuckCCTX{}, "crosschain/AbortStuckCCTX", nil) } func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { @@ -32,6 +33,7 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { &MsgWhitelistERC20{}, &MsgMigrateTssFunds{}, &MsgUpdateTssAddress{}, + &MsgAbortStuckCCTX{}, ) msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) diff --git a/x/crosschain/types/message_abort_stuck_cctx.go b/x/crosschain/types/message_abort_stuck_cctx.go new file mode 100644 index 0000000000..102290ab9b --- /dev/null +++ b/x/crosschain/types/message_abort_stuck_cctx.go @@ -0,0 +1,47 @@ +package types + +import ( + errorsmod "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +) + +const TypeMsgAbortStuckCCTX = "AbortStuckCCTX" + +var _ sdk.Msg = &MsgAbortStuckCCTX{} + +func NewMsgAbortStuckCCTX(creator string, cctxIndex string) *MsgAbortStuckCCTX { + return &MsgAbortStuckCCTX{ + Creator: creator, + CctxIndex: cctxIndex, + } +} + +func (msg *MsgAbortStuckCCTX) Route() string { + return RouterKey +} + +func (msg *MsgAbortStuckCCTX) Type() string { + return TypeMsgAbortStuckCCTX +} + +func (msg *MsgAbortStuckCCTX) GetSigners() []sdk.AccAddress { + creator, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + panic(err) + } + return []sdk.AccAddress{creator} +} + +func (msg *MsgAbortStuckCCTX) GetSignBytes() []byte { + bz := ModuleCdc.MustMarshalJSON(msg) + return sdk.MustSortJSON(bz) +} + +func (msg *MsgAbortStuckCCTX) ValidateBasic() error { + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) + } + return nil +} diff --git a/x/crosschain/types/message_abort_stuck_cctx_test.go b/x/crosschain/types/message_abort_stuck_cctx_test.go new file mode 100644 index 0000000000..40bdcf4794 --- /dev/null +++ b/x/crosschain/types/message_abort_stuck_cctx_test.go @@ -0,0 +1,45 @@ +package types_test + +import ( + "testing" + + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/stretchr/testify/require" + "github.com/zeta-chain/zetacore/testutil/sample" + "github.com/zeta-chain/zetacore/x/crosschain/types" +) + +func TestMsgAbortStuckCCTX_ValidateBasic(t *testing.T) { + tests := []struct { + name string + msg types.MsgAbortStuckCCTX + err error + }{ + { + name: "invalid address", + msg: types.MsgAbortStuckCCTX{ + Creator: "invalid_address", + CctxIndex: "cctx_index", + }, + err: sdkerrors.ErrInvalidAddress, + }, + { + name: "valid", + msg: types.MsgAbortStuckCCTX{ + Creator: sample.AccAddress(), + CctxIndex: "cctx_index", + }, + err: nil, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + err := tt.msg.ValidateBasic() + if tt.err != nil { + require.ErrorIs(t, err, tt.err) + return + } + require.NoError(t, err) + }) + } +} diff --git a/x/crosschain/types/tx.pb.go b/x/crosschain/types/tx.pb.go index 6745107685..c784912394 100644 --- a/x/crosschain/types/tx.pb.go +++ b/x/crosschain/types/tx.pb.go @@ -1262,6 +1262,94 @@ func (m *MsgVoteOnObservedInboundTxResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgVoteOnObservedInboundTxResponse proto.InternalMessageInfo +type MsgAbortStuckCCTX struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + CctxIndex string `protobuf:"bytes,2,opt,name=cctx_index,json=cctxIndex,proto3" json:"cctx_index,omitempty"` +} + +func (m *MsgAbortStuckCCTX) Reset() { *m = MsgAbortStuckCCTX{} } +func (m *MsgAbortStuckCCTX) String() string { return proto.CompactTextString(m) } +func (*MsgAbortStuckCCTX) ProtoMessage() {} +func (*MsgAbortStuckCCTX) Descriptor() ([]byte, []int) { + return fileDescriptor_81d6d611190b7635, []int{20} +} +func (m *MsgAbortStuckCCTX) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgAbortStuckCCTX) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgAbortStuckCCTX.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 *MsgAbortStuckCCTX) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgAbortStuckCCTX.Merge(m, src) +} +func (m *MsgAbortStuckCCTX) XXX_Size() int { + return m.Size() +} +func (m *MsgAbortStuckCCTX) XXX_DiscardUnknown() { + xxx_messageInfo_MsgAbortStuckCCTX.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgAbortStuckCCTX proto.InternalMessageInfo + +func (m *MsgAbortStuckCCTX) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgAbortStuckCCTX) GetCctxIndex() string { + if m != nil { + return m.CctxIndex + } + return "" +} + +type MsgAbortStuckCCTXResponse struct { +} + +func (m *MsgAbortStuckCCTXResponse) Reset() { *m = MsgAbortStuckCCTXResponse{} } +func (m *MsgAbortStuckCCTXResponse) String() string { return proto.CompactTextString(m) } +func (*MsgAbortStuckCCTXResponse) ProtoMessage() {} +func (*MsgAbortStuckCCTXResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_81d6d611190b7635, []int{21} +} +func (m *MsgAbortStuckCCTXResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgAbortStuckCCTXResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgAbortStuckCCTXResponse.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 *MsgAbortStuckCCTXResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgAbortStuckCCTXResponse.Merge(m, src) +} +func (m *MsgAbortStuckCCTXResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgAbortStuckCCTXResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgAbortStuckCCTXResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgAbortStuckCCTXResponse proto.InternalMessageInfo + func init() { proto.RegisterType((*MsgCreateTSSVoter)(nil), "zetachain.zetacore.crosschain.MsgCreateTSSVoter") proto.RegisterType((*MsgCreateTSSVoterResponse)(nil), "zetachain.zetacore.crosschain.MsgCreateTSSVoterResponse") @@ -1283,100 +1371,105 @@ func init() { proto.RegisterType((*MsgVoteOnObservedOutboundTxResponse)(nil), "zetachain.zetacore.crosschain.MsgVoteOnObservedOutboundTxResponse") proto.RegisterType((*MsgVoteOnObservedInboundTx)(nil), "zetachain.zetacore.crosschain.MsgVoteOnObservedInboundTx") proto.RegisterType((*MsgVoteOnObservedInboundTxResponse)(nil), "zetachain.zetacore.crosschain.MsgVoteOnObservedInboundTxResponse") + proto.RegisterType((*MsgAbortStuckCCTX)(nil), "zetachain.zetacore.crosschain.MsgAbortStuckCCTX") + proto.RegisterType((*MsgAbortStuckCCTXResponse)(nil), "zetachain.zetacore.crosschain.MsgAbortStuckCCTXResponse") } func init() { proto.RegisterFile("crosschain/tx.proto", fileDescriptor_81d6d611190b7635) } var fileDescriptor_81d6d611190b7635 = []byte{ - // 1407 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x6d, 0x4f, 0x1b, 0xc7, - 0x13, 0xe7, 0xfe, 0x80, 0xb1, 0x07, 0x0c, 0xe4, 0x20, 0x89, 0x73, 0x04, 0x43, 0x8e, 0x7f, 0x52, - 0x54, 0x09, 0x3b, 0x21, 0xaa, 0x9a, 0xa4, 0xad, 0xd4, 0x80, 0x12, 0x42, 0x5b, 0x42, 0x74, 0x71, - 0x5a, 0x29, 0x6f, 0x4e, 0xe7, 0xbb, 0xe5, 0x7c, 0xc2, 0xb7, 0x6b, 0xdd, 0xae, 0x91, 0x8d, 0x2a, - 0x55, 0x8a, 0xd4, 0xf7, 0x55, 0x55, 0xa9, 0x55, 0xbf, 0x40, 0xbf, 0x4a, 0x5e, 0x46, 0x7d, 0xd5, - 0x54, 0x6a, 0x54, 0x85, 0x4f, 0xd0, 0x7e, 0x82, 0x6a, 0x1f, 0xee, 0xf0, 0x19, 0xfc, 0x00, 0x51, - 0x5e, 0xdd, 0xce, 0xec, 0xce, 0xec, 0xcc, 0x6f, 0x66, 0x76, 0xf6, 0x16, 0xe6, 0xdc, 0x88, 0x50, - 0xea, 0xd6, 0x9c, 0x00, 0x97, 0x59, 0xab, 0xd4, 0x88, 0x08, 0x23, 0xfa, 0xe2, 0x21, 0x62, 0x8e, - 0xe0, 0x95, 0xc4, 0x88, 0x44, 0xa8, 0x74, 0xbc, 0xce, 0x98, 0x73, 0x49, 0x18, 0x12, 0x5c, 0x96, - 0x1f, 0x29, 0x63, 0xcc, 0xfb, 0xc4, 0x27, 0x62, 0x58, 0xe6, 0x23, 0xc9, 0x35, 0x7f, 0xd3, 0xe0, - 0xc2, 0x0e, 0xf5, 0x37, 0x23, 0xe4, 0x30, 0x54, 0x79, 0xfa, 0xf4, 0x6b, 0xc2, 0x50, 0xa4, 0x17, - 0x60, 0xc2, 0xe5, 0x1c, 0x12, 0x15, 0xb4, 0x65, 0x6d, 0x35, 0x67, 0xc5, 0xa4, 0xbe, 0x08, 0xc0, - 0x28, 0xb5, 0x1b, 0xcd, 0xea, 0x3e, 0x6a, 0x17, 0xfe, 0x27, 0x26, 0x73, 0x8c, 0xd2, 0x27, 0x82, - 0xa1, 0x7f, 0x08, 0xb3, 0xfb, 0xa8, 0xbd, 0x85, 0xf0, 0x73, 0xc4, 0x9c, 0x47, 0x28, 0xf0, 0x6b, - 0xac, 0x30, 0xba, 0xac, 0xad, 0x8e, 0x5a, 0x27, 0xf8, 0xfa, 0x1a, 0x64, 0x28, 0x73, 0x58, 0x93, - 0x16, 0xc6, 0x96, 0xb5, 0xd5, 0xe9, 0xf5, 0x8b, 0x25, 0x65, 0xaf, 0x85, 0x5c, 0x14, 0x1c, 0xa0, - 0xa7, 0x62, 0xd2, 0x52, 0x8b, 0xcc, 0x05, 0xb8, 0x72, 0xc2, 0x50, 0x0b, 0xd1, 0x06, 0xc1, 0x14, - 0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4, 0xd7, 0x6d, 0xe3, 0xc1, 0x15, 0xc0, - 0xeb, 0x0d, 0x61, 0x0f, 0x45, 0x2a, 0xfd, 0x15, 0xc5, 0xdd, 0x91, 0x23, 0xbb, 0xab, 0x35, 0xe5, - 0x25, 0x7b, 0x53, 0x15, 0xba, 0x01, 0x59, 0x05, 0x71, 0xa4, 0xce, 0xdd, 0x84, 0xd6, 0xaf, 0xc3, - 0x74, 0x3c, 0x56, 0xb0, 0x8d, 0x4b, 0x15, 0x31, 0x57, 0x22, 0x77, 0x7c, 0x79, 0xca, 0xbc, 0xd3, - 0xe5, 0x89, 0x7b, 0x19, 0x22, 0x4a, 0x1d, 0x5f, 0x42, 0x9f, 0xb3, 0x62, 0x52, 0xbf, 0x0a, 0xc0, - 0x21, 0x57, 0x15, 0x9c, 0x93, 0x76, 0x06, 0x58, 0x15, 0xee, 0x0d, 0x98, 0x09, 0xb0, 0xad, 0xce, - 0x7f, 0x59, 0xad, 0xb2, 0xe4, 0xf2, 0x01, 0xee, 0x2c, 0xd1, 0x54, 0x13, 0x9d, 0x14, 0x2b, 0x92, - 0x26, 0x9a, 0x8e, 0xeb, 0xd4, 0xc0, 0x6b, 0xcc, 0x02, 0xe4, 0x58, 0xcb, 0x26, 0x51, 0xe0, 0x07, - 0xb8, 0x90, 0x97, 0x06, 0xb1, 0xd6, 0xae, 0xa0, 0xf9, 0xe9, 0xe9, 0x50, 0x8a, 0x58, 0x61, 0x5a, - 0x4c, 0x48, 0x82, 0xa7, 0x20, 0x3a, 0x40, 0x98, 0xa9, 0x3e, 0x34, 0x23, 0x0c, 0x00, 0xc1, 0x92, - 0xad, 0xe8, 0xff, 0x60, 0xf6, 0xce, 0x81, 0x38, 0x55, 0xd6, 0xff, 0x02, 0x18, 0xdd, 0xa1, 0xbe, - 0xfe, 0xbd, 0x06, 0x17, 0x4e, 0x76, 0xe4, 0xdb, 0xa5, 0xbe, 0xff, 0x09, 0xa5, 0xd3, 0x7a, 0x9d, - 0xf1, 0x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38, 0xf2, 0xfc, 0x56, 0x47, 0x43, 0xe3, 0x3a, 0xd7, 0xe4, - 0x13, 0x4d, 0xac, 0xbe, 0xdc, 0x2a, 0x77, 0x3e, 0xdc, 0xf0, 0xfe, 0x56, 0xcd, 0x88, 0x27, 0x97, - 0xdb, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0x47, 0x0c, 0x03, 0xae, 0xd3, 0x11, 0x00, 0x00, + // 1449 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x6d, 0x4f, 0xdb, 0xd6, + 0x17, 0xc7, 0x7f, 0x20, 0x24, 0x07, 0x02, 0xd4, 0xd0, 0x36, 0x35, 0x25, 0x50, 0xf3, 0x6f, 0x87, + 0x26, 0x91, 0xb4, 0x54, 0xd3, 0xda, 0x6e, 0x93, 0x06, 0x51, 0x4b, 0xd9, 0x4a, 0xa9, 0x4c, 0xba, + 0x4d, 0x7d, 0x63, 0x39, 0xf6, 0xc5, 0xb1, 0x88, 0x7d, 0x23, 0xdf, 0x6b, 0x94, 0xa0, 0x49, 0x93, + 0x2a, 0xed, 0xfd, 0x34, 0x4d, 0xda, 0xb4, 0x2f, 0xb0, 0xaf, 0xd2, 0x97, 0xd5, 0x5e, 0xad, 0x9b, + 0x54, 0x4d, 0xed, 0x27, 0xd8, 0x3e, 0xc1, 0x74, 0x1f, 0x6c, 0xe2, 0x40, 0x1e, 0xa0, 0xea, 0xab, + 0xdc, 0x73, 0xee, 0x3d, 0x4f, 0xbf, 0x73, 0xce, 0x3d, 0x37, 0x86, 0x39, 0x3b, 0xc4, 0x84, 0xd8, + 0x75, 0xcb, 0x0b, 0xca, 0xb4, 0x55, 0x6a, 0x86, 0x98, 0x62, 0x75, 0xf1, 0x08, 0x51, 0x8b, 0xf3, + 0x4a, 0x7c, 0x85, 0x43, 0x54, 0x3a, 0x3e, 0xa7, 0xcd, 0xd9, 0xd8, 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, 0x13, 0x3c, 0xfa, 0x0a, 0x5c, 0xeb, 0x69, 0x27, 0xa9, 0xee, 0x5f, 0x14, 0x98, 0xdd, 0x21, + 0xee, 0x96, 0x45, 0x9e, 0x84, 0x9e, 0x8d, 0x06, 0x5d, 0xec, 0xfd, 0x9d, 0x68, 0x32, 0x15, 0xb1, + 0x13, 0x9c, 0x50, 0xaf, 0xc1, 0x94, 0x40, 0x39, 0x88, 0xfc, 0x1a, 0x0a, 0x79, 0xa2, 0xc6, 0x8c, + 0x49, 0xce, 0x7b, 0xcc, 0x59, 0xbc, 0xb8, 0xa3, 0x66, 0xb3, 0xd1, 0x4e, 0x8a, 0x9b, 0x53, 0xba, + 0x06, 0x85, 0x6e, 0xcf, 0x12, 0xb7, 0x5f, 0x8d, 0xf3, 0xa6, 0x65, 0xcc, 0xdd, 0x60, 0xb7, 0x46, + 0x50, 0x78, 0x88, 0x9c, 0xdd, 0x88, 0xd6, 0x70, 0x14, 0x38, 0xd5, 0x56, 0x9f, 0x08, 0x16, 0x80, + 0x57, 0xa9, 0xc8, 0xba, 0x28, 0xdb, 0x2c, 0x63, 0xf0, 0xa4, 0x97, 0x60, 0x0e, 0x4b, 0x65, 0x26, + 0x66, 0x70, 0x75, 0xde, 0x5e, 0x17, 0xf0, 0xb1, 0x9d, 0xaa, 0x38, 0xff, 0x29, 0x68, 0x5d, 0xe7, + 0x45, 0x01, 0x89, 0x91, 0x26, 0x62, 0x2d, 0xa4, 0xc4, 0x36, 0x8f, 0xf7, 0xd5, 0x8f, 0xe0, 0x72, + 0x97, 0x34, 0x6b, 0xd8, 0x88, 0x20, 0xa7, 0x00, 0x5c, 0x74, 0x3e, 0x25, 0xba, 0x65, 0x91, 0xa7, + 0x04, 0x39, 0xea, 0x11, 0xe8, 0x5d, 0x62, 0x68, 0x7f, 0x1f, 0xd9, 0xd4, 0x3b, 0x44, 0x5c, 0x81, + 0xc8, 0xc2, 0x24, 0x9f, 0x4a, 0x25, 0x39, 0x95, 0x6e, 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6, 0x73, 0x4d, 0x7c, 0x8b, 0x8a, 0xd5, 0x97, 0x5b, 0xe5, + 0xce, 0x2f, 0x54, 0x6c, 0x90, 0xd7, 0x32, 0xfc, 0xdb, 0xd2, 0xed, 0xff, 0x02, 0x00, 0x00, 0xff, + 0xff, 0x1e, 0x53, 0x7a, 0xa6, 0xbc, 0x12, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1401,6 +1494,7 @@ type MsgClient interface { UpdateTssAddress(ctx context.Context, in *MsgUpdateTssAddress, opts ...grpc.CallOption) (*MsgUpdateTssAddressResponse, error) MigrateTssFunds(ctx context.Context, in *MsgMigrateTssFunds, opts ...grpc.CallOption) (*MsgMigrateTssFundsResponse, error) CreateTSSVoter(ctx context.Context, in *MsgCreateTSSVoter, opts ...grpc.CallOption) (*MsgCreateTSSVoterResponse, error) + AbortStuckCCTX(ctx context.Context, in *MsgAbortStuckCCTX, opts ...grpc.CallOption) (*MsgAbortStuckCCTXResponse, error) } type msgClient struct { @@ -1501,6 +1595,15 @@ func (c *msgClient) CreateTSSVoter(ctx context.Context, in *MsgCreateTSSVoter, o return out, nil } +func (c *msgClient) AbortStuckCCTX(ctx context.Context, in *MsgAbortStuckCCTX, opts ...grpc.CallOption) (*MsgAbortStuckCCTXResponse, error) { + out := new(MsgAbortStuckCCTXResponse) + err := c.cc.Invoke(ctx, "/zetachain.zetacore.crosschain.Msg/AbortStuckCCTX", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // MsgServer is the server API for Msg service. type MsgServer interface { AddToOutTxTracker(context.Context, *MsgAddToOutTxTracker) (*MsgAddToOutTxTrackerResponse, error) @@ -1513,6 +1616,7 @@ type MsgServer interface { UpdateTssAddress(context.Context, *MsgUpdateTssAddress) (*MsgUpdateTssAddressResponse, error) MigrateTssFunds(context.Context, *MsgMigrateTssFunds) (*MsgMigrateTssFundsResponse, error) CreateTSSVoter(context.Context, *MsgCreateTSSVoter) (*MsgCreateTSSVoterResponse, error) + AbortStuckCCTX(context.Context, *MsgAbortStuckCCTX) (*MsgAbortStuckCCTXResponse, error) } // UnimplementedMsgServer can be embedded to have forward compatible implementations. @@ -1549,6 +1653,9 @@ func (*UnimplementedMsgServer) MigrateTssFunds(ctx context.Context, req *MsgMigr func (*UnimplementedMsgServer) CreateTSSVoter(ctx context.Context, req *MsgCreateTSSVoter) (*MsgCreateTSSVoterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateTSSVoter not implemented") } +func (*UnimplementedMsgServer) AbortStuckCCTX(ctx context.Context, req *MsgAbortStuckCCTX) (*MsgAbortStuckCCTXResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AbortStuckCCTX not implemented") +} func RegisterMsgServer(s grpc1.Server, srv MsgServer) { s.RegisterService(&_Msg_serviceDesc, srv) @@ -1734,6 +1841,24 @@ func _Msg_CreateTSSVoter_Handler(srv interface{}, ctx context.Context, dec func( return interceptor(ctx, in, info, handler) } +func _Msg_AbortStuckCCTX_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgAbortStuckCCTX) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).AbortStuckCCTX(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/zetachain.zetacore.crosschain.Msg/AbortStuckCCTX", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).AbortStuckCCTX(ctx, req.(*MsgAbortStuckCCTX)) + } + return interceptor(ctx, in, info, handler) +} + var _Msg_serviceDesc = grpc.ServiceDesc{ ServiceName: "zetachain.zetacore.crosschain.Msg", HandlerType: (*MsgServer)(nil), @@ -1778,6 +1903,10 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ MethodName: "CreateTSSVoter", Handler: _Msg_CreateTSSVoter_Handler, }, + { + MethodName: "AbortStuckCCTX", + Handler: _Msg_AbortStuckCCTX_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "crosschain/tx.proto", @@ -2677,6 +2806,66 @@ func (m *MsgVoteOnObservedInboundTxResponse) MarshalToSizedBuffer(dAtA []byte) ( return len(dAtA) - i, nil } +func (m *MsgAbortStuckCCTX) 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 *MsgAbortStuckCCTX) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgAbortStuckCCTX) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.CctxIndex) > 0 { + i -= len(m.CctxIndex) + copy(dAtA[i:], m.CctxIndex) + i = encodeVarintTx(dAtA, i, uint64(len(m.CctxIndex))) + i-- + dAtA[i] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgAbortStuckCCTXResponse) 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 *MsgAbortStuckCCTXResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgAbortStuckCCTXResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + func encodeVarintTx(dAtA []byte, offset int, v uint64) int { offset -= sovTx(v) base := offset @@ -3097,6 +3286,32 @@ func (m *MsgVoteOnObservedInboundTxResponse) Size() (n int) { return n } +func (m *MsgAbortStuckCCTX) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.CctxIndex) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgAbortStuckCCTXResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + func sovTx(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -5861,6 +6076,170 @@ func (m *MsgVoteOnObservedInboundTxResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *MsgAbortStuckCCTX) 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: MsgAbortStuckCCTX: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgAbortStuckCCTX: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CctxIndex", 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.CctxIndex = 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 *MsgAbortStuckCCTXResponse) 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: MsgAbortStuckCCTXResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgAbortStuckCCTXResponse: 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 skipTx(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0