import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; import { Period, PeriodAmino, PeriodSDKType } from "./vesting"; import { BinaryWriter } from "../../../binary"; import { isSet } from "../../../helpers"; /** * MsgCreateVestingAccount defines a message that enables creating a vesting * account. */ export interface MsgCreateVestingAccount { fromAddress: string; toAddress: string; amount: Coin[]; /** end of vesting as unix time (in seconds). */ endTime: bigint; delayed: boolean; /** start of vesting as unix time (in seconds). */ startTime: bigint; } export interface MsgCreateVestingAccountProtoMsg { typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount"; value: Uint8Array; } /** * MsgCreateVestingAccount defines a message that enables creating a vesting * account. */ export interface MsgCreateVestingAccountAmino { from_address?: string; to_address?: string; amount?: CoinAmino[]; /** end of vesting as unix time (in seconds). */ end_time?: string; delayed?: boolean; /** start of vesting as unix time (in seconds). */ start_time?: string; } export interface MsgCreateVestingAccountAminoMsg { type: "cosmos-sdk/MsgCreateVestingAccount"; value: MsgCreateVestingAccountAmino; } /** * MsgCreateVestingAccount defines a message that enables creating a vesting * account. */ export interface MsgCreateVestingAccountSDKType { from_address: string; to_address: string; amount: CoinSDKType[]; end_time: bigint; delayed: boolean; start_time: bigint; } /** MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. */ export interface MsgCreateVestingAccountResponse {} export interface MsgCreateVestingAccountResponseProtoMsg { typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse"; value: Uint8Array; } /** MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. */ export interface MsgCreateVestingAccountResponseAmino {} export interface MsgCreateVestingAccountResponseAminoMsg { type: "cosmos-sdk/MsgCreateVestingAccountResponse"; value: MsgCreateVestingAccountResponseAmino; } /** MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. */ export interface MsgCreateVestingAccountResponseSDKType {} /** * MsgCreatePermanentLockedAccount defines a message that enables creating a permanent * locked account. * * Since: cosmos-sdk 0.46 */ export interface MsgCreatePermanentLockedAccount { fromAddress: string; toAddress: string; amount: Coin[]; } export interface MsgCreatePermanentLockedAccountProtoMsg { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount"; value: Uint8Array; } /** * MsgCreatePermanentLockedAccount defines a message that enables creating a permanent * locked account. * * Since: cosmos-sdk 0.46 */ export interface MsgCreatePermanentLockedAccountAmino { from_address?: string; to_address?: string; amount?: CoinAmino[]; } export interface MsgCreatePermanentLockedAccountAminoMsg { type: "cosmos-sdk/MsgCreatePermanentLockedAccount"; value: MsgCreatePermanentLockedAccountAmino; } /** * MsgCreatePermanentLockedAccount defines a message that enables creating a permanent * locked account. * * Since: cosmos-sdk 0.46 */ export interface MsgCreatePermanentLockedAccountSDKType { from_address: string; to_address: string; amount: CoinSDKType[]; } /** * MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type. * * Since: cosmos-sdk 0.46 */ export interface MsgCreatePermanentLockedAccountResponse {} export interface MsgCreatePermanentLockedAccountResponseProtoMsg { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse"; value: Uint8Array; } /** * MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type. * * Since: cosmos-sdk 0.46 */ export interface MsgCreatePermanentLockedAccountResponseAmino {} export interface MsgCreatePermanentLockedAccountResponseAminoMsg { type: "cosmos-sdk/MsgCreatePermanentLockedAccountResponse"; value: MsgCreatePermanentLockedAccountResponseAmino; } /** * MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type. * * Since: cosmos-sdk 0.46 */ export interface MsgCreatePermanentLockedAccountResponseSDKType {} /** * MsgCreateVestingAccount defines a message that enables creating a vesting * account. * * Since: cosmos-sdk 0.46 */ export interface MsgCreatePeriodicVestingAccount { fromAddress: string; toAddress: string; /** start of vesting as unix time (in seconds). */ startTime: bigint; vestingPeriods: Period[]; } export interface MsgCreatePeriodicVestingAccountProtoMsg { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount"; value: Uint8Array; } /** * MsgCreateVestingAccount defines a message that enables creating a vesting * account. * * Since: cosmos-sdk 0.46 */ export interface MsgCreatePeriodicVestingAccountAmino { from_address?: string; to_address?: string; /** start of vesting as unix time (in seconds). */ start_time?: string; vesting_periods?: PeriodAmino[]; } export interface MsgCreatePeriodicVestingAccountAminoMsg { type: "cosmos-sdk/MsgCreatePeriodicVestingAccount"; value: MsgCreatePeriodicVestingAccountAmino; } /** * MsgCreateVestingAccount defines a message that enables creating a vesting * account. * * Since: cosmos-sdk 0.46 */ export interface MsgCreatePeriodicVestingAccountSDKType { from_address: string; to_address: string; start_time: bigint; vesting_periods: PeriodSDKType[]; } /** * MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount * response type. * * Since: cosmos-sdk 0.46 */ export interface MsgCreatePeriodicVestingAccountResponse {} export interface MsgCreatePeriodicVestingAccountResponseProtoMsg { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse"; value: Uint8Array; } /** * MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount * response type. * * Since: cosmos-sdk 0.46 */ export interface MsgCreatePeriodicVestingAccountResponseAmino {} export interface MsgCreatePeriodicVestingAccountResponseAminoMsg { type: "cosmos-sdk/MsgCreatePeriodicVestingAccountResponse"; value: MsgCreatePeriodicVestingAccountResponseAmino; } /** * MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount * response type. * * Since: cosmos-sdk 0.46 */ export interface MsgCreatePeriodicVestingAccountResponseSDKType {} function createBaseMsgCreateVestingAccount(): MsgCreateVestingAccount { return { fromAddress: "", toAddress: "", amount: [], endTime: BigInt(0), delayed: false, startTime: BigInt(0) }; } export const MsgCreateVestingAccount = { typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", encode(message: MsgCreateVestingAccount, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { if (message.fromAddress !== "") { writer.uint32(10).string(message.fromAddress); } if (message.toAddress !== "") { writer.uint32(18).string(message.toAddress); } for (const v of message.amount) { Coin.encode(v!, writer.uint32(26).fork()).ldelim(); } if (message.endTime !== BigInt(0)) { writer.uint32(32).int64(message.endTime); } if (message.delayed === true) { writer.uint32(40).bool(message.delayed); } if (message.startTime !== BigInt(0)) { writer.uint32(48).int64(message.startTime); } return writer; }, fromJSON(object: any): MsgCreateVestingAccount { return { fromAddress: isSet(object.fromAddress) ? String(object.fromAddress) : "", toAddress: isSet(object.toAddress) ? String(object.toAddress) : "", amount: Array.isArray(object?.amount) ? object.amount.map((e: any) => Coin.fromJSON(e)) : [], endTime: isSet(object.endTime) ? BigInt(object.endTime.toString()) : BigInt(0), delayed: isSet(object.delayed) ? Boolean(object.delayed) : false, startTime: isSet(object.startTime) ? BigInt(object.startTime.toString()) : BigInt(0) }; }, fromPartial(object: Partial): MsgCreateVestingAccount { const message = createBaseMsgCreateVestingAccount(); message.fromAddress = object.fromAddress ?? ""; message.toAddress = object.toAddress ?? ""; message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; message.endTime = object.endTime !== undefined && object.endTime !== null ? BigInt(object.endTime.toString()) : BigInt(0); message.delayed = object.delayed ?? false; message.startTime = object.startTime !== undefined && object.startTime !== null ? BigInt(object.startTime.toString()) : BigInt(0); return message; }, fromAmino(object: MsgCreateVestingAccountAmino): MsgCreateVestingAccount { const message = createBaseMsgCreateVestingAccount(); if (object.from_address !== undefined && object.from_address !== null) { message.fromAddress = object.from_address; } if (object.to_address !== undefined && object.to_address !== null) { message.toAddress = object.to_address; } message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; if (object.end_time !== undefined && object.end_time !== null) { message.endTime = BigInt(object.end_time); } if (object.delayed !== undefined && object.delayed !== null) { message.delayed = object.delayed; } if (object.start_time !== undefined && object.start_time !== null) { message.startTime = BigInt(object.start_time); } return message; }, toAmino(message: MsgCreateVestingAccount): MsgCreateVestingAccountAmino { const obj: any = {}; obj.from_address = message.fromAddress === "" ? undefined : message.fromAddress; obj.to_address = message.toAddress === "" ? undefined : message.toAddress; if (message.amount) { obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); } else { obj.amount = message.amount; } obj.end_time = message.endTime !== BigInt(0) ? message.endTime.toString() : undefined; obj.delayed = message.delayed === false ? undefined : message.delayed; obj.start_time = message.startTime !== BigInt(0) ? message.startTime.toString() : undefined; return obj; }, fromAminoMsg(object: MsgCreateVestingAccountAminoMsg): MsgCreateVestingAccount { return MsgCreateVestingAccount.fromAmino(object.value); }, toAminoMsg(message: MsgCreateVestingAccount): MsgCreateVestingAccountAminoMsg { return { type: "cosmos-sdk/MsgCreateVestingAccount", value: MsgCreateVestingAccount.toAmino(message) }; }, fromProtoMsg(message: MsgCreateVestingAccountProtoMsg): MsgCreateVestingAccount { return MsgCreateVestingAccount.decode(message.value); }, toProto(message: MsgCreateVestingAccount): Uint8Array { return MsgCreateVestingAccount.encode(message).finish(); }, toProtoMsg(message: MsgCreateVestingAccount): MsgCreateVestingAccountProtoMsg { return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", value: MsgCreateVestingAccount.encode(message).finish() }; } }; function createBaseMsgCreateVestingAccountResponse(): MsgCreateVestingAccountResponse { return {}; } export const MsgCreateVestingAccountResponse = { typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse", encode(_: MsgCreateVestingAccountResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { return writer; }, fromJSON(_: any): MsgCreateVestingAccountResponse { return {}; }, fromPartial(_: Partial): MsgCreateVestingAccountResponse { const message = createBaseMsgCreateVestingAccountResponse(); return message; }, fromAmino(_: MsgCreateVestingAccountResponseAmino): MsgCreateVestingAccountResponse { const message = createBaseMsgCreateVestingAccountResponse(); return message; }, toAmino(_: MsgCreateVestingAccountResponse): MsgCreateVestingAccountResponseAmino { const obj: any = {}; return obj; }, fromAminoMsg(object: MsgCreateVestingAccountResponseAminoMsg): MsgCreateVestingAccountResponse { return MsgCreateVestingAccountResponse.fromAmino(object.value); }, toAminoMsg(message: MsgCreateVestingAccountResponse): MsgCreateVestingAccountResponseAminoMsg { return { type: "cosmos-sdk/MsgCreateVestingAccountResponse", value: MsgCreateVestingAccountResponse.toAmino(message) }; }, fromProtoMsg(message: MsgCreateVestingAccountResponseProtoMsg): MsgCreateVestingAccountResponse { return MsgCreateVestingAccountResponse.decode(message.value); }, toProto(message: MsgCreateVestingAccountResponse): Uint8Array { return MsgCreateVestingAccountResponse.encode(message).finish(); }, toProtoMsg(message: MsgCreateVestingAccountResponse): MsgCreateVestingAccountResponseProtoMsg { return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse", value: MsgCreateVestingAccountResponse.encode(message).finish() }; } }; function createBaseMsgCreatePermanentLockedAccount(): MsgCreatePermanentLockedAccount { return { fromAddress: "", toAddress: "", amount: [] }; } export const MsgCreatePermanentLockedAccount = { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", encode(message: MsgCreatePermanentLockedAccount, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { if (message.fromAddress !== "") { writer.uint32(10).string(message.fromAddress); } if (message.toAddress !== "") { writer.uint32(18).string(message.toAddress); } for (const v of message.amount) { Coin.encode(v!, writer.uint32(26).fork()).ldelim(); } return writer; }, fromJSON(object: any): MsgCreatePermanentLockedAccount { return { fromAddress: isSet(object.fromAddress) ? String(object.fromAddress) : "", toAddress: isSet(object.toAddress) ? String(object.toAddress) : "", amount: Array.isArray(object?.amount) ? object.amount.map((e: any) => Coin.fromJSON(e)) : [] }; }, fromPartial(object: Partial): MsgCreatePermanentLockedAccount { const message = createBaseMsgCreatePermanentLockedAccount(); message.fromAddress = object.fromAddress ?? ""; message.toAddress = object.toAddress ?? ""; message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; return message; }, fromAmino(object: MsgCreatePermanentLockedAccountAmino): MsgCreatePermanentLockedAccount { const message = createBaseMsgCreatePermanentLockedAccount(); if (object.from_address !== undefined && object.from_address !== null) { message.fromAddress = object.from_address; } if (object.to_address !== undefined && object.to_address !== null) { message.toAddress = object.to_address; } message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; return message; }, toAmino(message: MsgCreatePermanentLockedAccount): MsgCreatePermanentLockedAccountAmino { const obj: any = {}; obj.from_address = message.fromAddress === "" ? undefined : message.fromAddress; obj.to_address = message.toAddress === "" ? undefined : message.toAddress; if (message.amount) { obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); } else { obj.amount = message.amount; } return obj; }, fromAminoMsg(object: MsgCreatePermanentLockedAccountAminoMsg): MsgCreatePermanentLockedAccount { return MsgCreatePermanentLockedAccount.fromAmino(object.value); }, toAminoMsg(message: MsgCreatePermanentLockedAccount): MsgCreatePermanentLockedAccountAminoMsg { return { type: "cosmos-sdk/MsgCreatePermanentLockedAccount", value: MsgCreatePermanentLockedAccount.toAmino(message) }; }, fromProtoMsg(message: MsgCreatePermanentLockedAccountProtoMsg): MsgCreatePermanentLockedAccount { return MsgCreatePermanentLockedAccount.decode(message.value); }, toProto(message: MsgCreatePermanentLockedAccount): Uint8Array { return MsgCreatePermanentLockedAccount.encode(message).finish(); }, toProtoMsg(message: MsgCreatePermanentLockedAccount): MsgCreatePermanentLockedAccountProtoMsg { return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", value: MsgCreatePermanentLockedAccount.encode(message).finish() }; } }; function createBaseMsgCreatePermanentLockedAccountResponse(): MsgCreatePermanentLockedAccountResponse { return {}; } export const MsgCreatePermanentLockedAccountResponse = { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse", encode(_: MsgCreatePermanentLockedAccountResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { return writer; }, fromJSON(_: any): MsgCreatePermanentLockedAccountResponse { return {}; }, fromPartial(_: Partial): MsgCreatePermanentLockedAccountResponse { const message = createBaseMsgCreatePermanentLockedAccountResponse(); return message; }, fromAmino(_: MsgCreatePermanentLockedAccountResponseAmino): MsgCreatePermanentLockedAccountResponse { const message = createBaseMsgCreatePermanentLockedAccountResponse(); return message; }, toAmino(_: MsgCreatePermanentLockedAccountResponse): MsgCreatePermanentLockedAccountResponseAmino { const obj: any = {}; return obj; }, fromAminoMsg(object: MsgCreatePermanentLockedAccountResponseAminoMsg): MsgCreatePermanentLockedAccountResponse { return MsgCreatePermanentLockedAccountResponse.fromAmino(object.value); }, toAminoMsg(message: MsgCreatePermanentLockedAccountResponse): MsgCreatePermanentLockedAccountResponseAminoMsg { return { type: "cosmos-sdk/MsgCreatePermanentLockedAccountResponse", value: MsgCreatePermanentLockedAccountResponse.toAmino(message) }; }, fromProtoMsg(message: MsgCreatePermanentLockedAccountResponseProtoMsg): MsgCreatePermanentLockedAccountResponse { return MsgCreatePermanentLockedAccountResponse.decode(message.value); }, toProto(message: MsgCreatePermanentLockedAccountResponse): Uint8Array { return MsgCreatePermanentLockedAccountResponse.encode(message).finish(); }, toProtoMsg(message: MsgCreatePermanentLockedAccountResponse): MsgCreatePermanentLockedAccountResponseProtoMsg { return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse", value: MsgCreatePermanentLockedAccountResponse.encode(message).finish() }; } }; function createBaseMsgCreatePeriodicVestingAccount(): MsgCreatePeriodicVestingAccount { return { fromAddress: "", toAddress: "", startTime: BigInt(0), vestingPeriods: [] }; } export const MsgCreatePeriodicVestingAccount = { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", encode(message: MsgCreatePeriodicVestingAccount, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { if (message.fromAddress !== "") { writer.uint32(10).string(message.fromAddress); } if (message.toAddress !== "") { writer.uint32(18).string(message.toAddress); } if (message.startTime !== BigInt(0)) { writer.uint32(24).int64(message.startTime); } for (const v of message.vestingPeriods) { Period.encode(v!, writer.uint32(34).fork()).ldelim(); } return writer; }, fromJSON(object: any): MsgCreatePeriodicVestingAccount { return { fromAddress: isSet(object.fromAddress) ? String(object.fromAddress) : "", toAddress: isSet(object.toAddress) ? String(object.toAddress) : "", startTime: isSet(object.startTime) ? BigInt(object.startTime.toString()) : BigInt(0), vestingPeriods: Array.isArray(object?.vestingPeriods) ? object.vestingPeriods.map((e: any) => Period.fromJSON(e)) : [] }; }, fromPartial(object: Partial): MsgCreatePeriodicVestingAccount { const message = createBaseMsgCreatePeriodicVestingAccount(); message.fromAddress = object.fromAddress ?? ""; message.toAddress = object.toAddress ?? ""; message.startTime = object.startTime !== undefined && object.startTime !== null ? BigInt(object.startTime.toString()) : BigInt(0); message.vestingPeriods = object.vestingPeriods?.map(e => Period.fromPartial(e)) || []; return message; }, fromAmino(object: MsgCreatePeriodicVestingAccountAmino): MsgCreatePeriodicVestingAccount { const message = createBaseMsgCreatePeriodicVestingAccount(); if (object.from_address !== undefined && object.from_address !== null) { message.fromAddress = object.from_address; } if (object.to_address !== undefined && object.to_address !== null) { message.toAddress = object.to_address; } if (object.start_time !== undefined && object.start_time !== null) { message.startTime = BigInt(object.start_time); } message.vestingPeriods = object.vesting_periods?.map(e => Period.fromAmino(e)) || []; return message; }, toAmino(message: MsgCreatePeriodicVestingAccount): MsgCreatePeriodicVestingAccountAmino { const obj: any = {}; obj.from_address = message.fromAddress === "" ? undefined : message.fromAddress; obj.to_address = message.toAddress === "" ? undefined : message.toAddress; obj.start_time = message.startTime !== BigInt(0) ? message.startTime.toString() : undefined; if (message.vestingPeriods) { obj.vesting_periods = message.vestingPeriods.map(e => e ? Period.toAmino(e) : undefined); } else { obj.vesting_periods = message.vestingPeriods; } return obj; }, fromAminoMsg(object: MsgCreatePeriodicVestingAccountAminoMsg): MsgCreatePeriodicVestingAccount { return MsgCreatePeriodicVestingAccount.fromAmino(object.value); }, toAminoMsg(message: MsgCreatePeriodicVestingAccount): MsgCreatePeriodicVestingAccountAminoMsg { return { type: "cosmos-sdk/MsgCreatePeriodicVestingAccount", value: MsgCreatePeriodicVestingAccount.toAmino(message) }; }, fromProtoMsg(message: MsgCreatePeriodicVestingAccountProtoMsg): MsgCreatePeriodicVestingAccount { return MsgCreatePeriodicVestingAccount.decode(message.value); }, toProto(message: MsgCreatePeriodicVestingAccount): Uint8Array { return MsgCreatePeriodicVestingAccount.encode(message).finish(); }, toProtoMsg(message: MsgCreatePeriodicVestingAccount): MsgCreatePeriodicVestingAccountProtoMsg { return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", value: MsgCreatePeriodicVestingAccount.encode(message).finish() }; } }; function createBaseMsgCreatePeriodicVestingAccountResponse(): MsgCreatePeriodicVestingAccountResponse { return {}; } export const MsgCreatePeriodicVestingAccountResponse = { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse", encode(_: MsgCreatePeriodicVestingAccountResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { return writer; }, fromJSON(_: any): MsgCreatePeriodicVestingAccountResponse { return {}; }, fromPartial(_: Partial): MsgCreatePeriodicVestingAccountResponse { const message = createBaseMsgCreatePeriodicVestingAccountResponse(); return message; }, fromAmino(_: MsgCreatePeriodicVestingAccountResponseAmino): MsgCreatePeriodicVestingAccountResponse { const message = createBaseMsgCreatePeriodicVestingAccountResponse(); return message; }, toAmino(_: MsgCreatePeriodicVestingAccountResponse): MsgCreatePeriodicVestingAccountResponseAmino { const obj: any = {}; return obj; }, fromAminoMsg(object: MsgCreatePeriodicVestingAccountResponseAminoMsg): MsgCreatePeriodicVestingAccountResponse { return MsgCreatePeriodicVestingAccountResponse.fromAmino(object.value); }, toAminoMsg(message: MsgCreatePeriodicVestingAccountResponse): MsgCreatePeriodicVestingAccountResponseAminoMsg { return { type: "cosmos-sdk/MsgCreatePeriodicVestingAccountResponse", value: MsgCreatePeriodicVestingAccountResponse.toAmino(message) }; }, fromProtoMsg(message: MsgCreatePeriodicVestingAccountResponseProtoMsg): MsgCreatePeriodicVestingAccountResponse { return MsgCreatePeriodicVestingAccountResponse.decode(message.value); }, toProto(message: MsgCreatePeriodicVestingAccountResponse): Uint8Array { return MsgCreatePeriodicVestingAccountResponse.encode(message).finish(); }, toProtoMsg(message: MsgCreatePeriodicVestingAccountResponse): MsgCreatePeriodicVestingAccountResponseProtoMsg { return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse", value: MsgCreatePeriodicVestingAccountResponse.encode(message).finish() }; } };