import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { DeepPartial } from "../../../helpers.js"; import { Any, AnyAmino, AnyProtoMsg } from "../../../google/protobuf/any.js"; import { AllowedMsgAllowance, AllowedMsgAllowanceProtoMsg, BasicAllowance, BasicAllowanceProtoMsg, PeriodicAllowance, PeriodicAllowanceProtoMsg } from "./feegrant.js"; //#region src/cosmos/feegrant/v1beta1/tx.d.ts /** * MsgGrantAllowance adds permission for Grantee to spend up to Allowance * of fees from the account of Granter. * @name MsgGrantAllowance * @package cosmos.feegrant.v1beta1 * @see proto type: cosmos.feegrant.v1beta1.MsgGrantAllowance */ interface MsgGrantAllowance { /** * granter is the address of the user granting an allowance of their funds. */ granter: string; /** * grantee is the address of the user being granted an allowance of another user's funds. */ grantee: string; /** * allowance can be any of basic, periodic, allowed fee allowance. */ allowance?: BasicAllowance | PeriodicAllowance | AllowedMsgAllowance | Any | undefined; } interface MsgGrantAllowanceProtoMsg { typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance"; value: Uint8Array; } type MsgGrantAllowanceEncoded = Omit & { /** * allowance can be any of basic, periodic, allowed fee allowance. */ allowance?: BasicAllowanceProtoMsg | PeriodicAllowanceProtoMsg | AllowedMsgAllowanceProtoMsg | AnyProtoMsg | undefined; }; /** * MsgGrantAllowance adds permission for Grantee to spend up to Allowance * of fees from the account of Granter. * @name MsgGrantAllowanceAmino * @package cosmos.feegrant.v1beta1 * @see proto type: cosmos.feegrant.v1beta1.MsgGrantAllowance */ interface MsgGrantAllowanceAmino { /** * granter is the address of the user granting an allowance of their funds. */ granter: string; /** * grantee is the address of the user being granted an allowance of another user's funds. */ grantee: string; /** * allowance can be any of basic, periodic, allowed fee allowance. */ allowance?: AnyAmino; } interface MsgGrantAllowanceAminoMsg { type: "cosmos-sdk/MsgGrantAllowance"; value: MsgGrantAllowanceAmino; } /** * MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. * @name MsgGrantAllowanceResponse * @package cosmos.feegrant.v1beta1 * @see proto type: cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse */ interface MsgGrantAllowanceResponse {} interface MsgGrantAllowanceResponseProtoMsg { typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse"; value: Uint8Array; } /** * MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. * @name MsgGrantAllowanceResponseAmino * @package cosmos.feegrant.v1beta1 * @see proto type: cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse */ interface MsgGrantAllowanceResponseAmino {} interface MsgGrantAllowanceResponseAminoMsg { type: "cosmos-sdk/MsgGrantAllowanceResponse"; value: MsgGrantAllowanceResponseAmino; } /** * MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. * @name MsgRevokeAllowance * @package cosmos.feegrant.v1beta1 * @see proto type: cosmos.feegrant.v1beta1.MsgRevokeAllowance */ interface MsgRevokeAllowance { /** * granter is the address of the user granting an allowance of their funds. */ granter: string; /** * grantee is the address of the user being granted an allowance of another user's funds. */ grantee: string; } interface MsgRevokeAllowanceProtoMsg { typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance"; value: Uint8Array; } /** * MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. * @name MsgRevokeAllowanceAmino * @package cosmos.feegrant.v1beta1 * @see proto type: cosmos.feegrant.v1beta1.MsgRevokeAllowance */ interface MsgRevokeAllowanceAmino { /** * granter is the address of the user granting an allowance of their funds. */ granter: string; /** * grantee is the address of the user being granted an allowance of another user's funds. */ grantee: string; } interface MsgRevokeAllowanceAminoMsg { type: "cosmos-sdk/MsgRevokeAllowance"; value: MsgRevokeAllowanceAmino; } /** * MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. * @name MsgRevokeAllowanceResponse * @package cosmos.feegrant.v1beta1 * @see proto type: cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse */ interface MsgRevokeAllowanceResponse {} interface MsgRevokeAllowanceResponseProtoMsg { typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse"; value: Uint8Array; } /** * MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. * @name MsgRevokeAllowanceResponseAmino * @package cosmos.feegrant.v1beta1 * @see proto type: cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse */ interface MsgRevokeAllowanceResponseAmino {} interface MsgRevokeAllowanceResponseAminoMsg { type: "cosmos-sdk/MsgRevokeAllowanceResponse"; value: MsgRevokeAllowanceResponseAmino; } /** * MsgPruneAllowances prunes expired fee allowances. * @name MsgPruneAllowances * @package cosmos.feegrant.v1beta1 * @see proto type: cosmos.feegrant.v1beta1.MsgPruneAllowances */ interface MsgPruneAllowances { /** * pruner is the address of the user pruning expired allowances. */ pruner: string; } interface MsgPruneAllowancesProtoMsg { typeUrl: "/cosmos.feegrant.v1beta1.MsgPruneAllowances"; value: Uint8Array; } /** * MsgPruneAllowances prunes expired fee allowances. * @name MsgPruneAllowancesAmino * @package cosmos.feegrant.v1beta1 * @see proto type: cosmos.feegrant.v1beta1.MsgPruneAllowances */ interface MsgPruneAllowancesAmino { /** * pruner is the address of the user pruning expired allowances. */ pruner: string; } interface MsgPruneAllowancesAminoMsg { type: "cosmos-sdk/MsgPruneAllowances"; value: MsgPruneAllowancesAmino; } /** * MsgPruneAllowancesResponse defines the Msg/PruneAllowancesResponse response type. * @name MsgPruneAllowancesResponse * @package cosmos.feegrant.v1beta1 * @see proto type: cosmos.feegrant.v1beta1.MsgPruneAllowancesResponse */ interface MsgPruneAllowancesResponse {} interface MsgPruneAllowancesResponseProtoMsg { typeUrl: "/cosmos.feegrant.v1beta1.MsgPruneAllowancesResponse"; value: Uint8Array; } /** * MsgPruneAllowancesResponse defines the Msg/PruneAllowancesResponse response type. * @name MsgPruneAllowancesResponseAmino * @package cosmos.feegrant.v1beta1 * @see proto type: cosmos.feegrant.v1beta1.MsgPruneAllowancesResponse */ interface MsgPruneAllowancesResponseAmino {} interface MsgPruneAllowancesResponseAminoMsg { type: "cosmos-sdk/MsgPruneAllowancesResponse"; value: MsgPruneAllowancesResponseAmino; } /** * MsgGrantAllowance adds permission for Grantee to spend up to Allowance * of fees from the account of Granter. * @name MsgGrantAllowance * @package cosmos.feegrant.v1beta1 * @see proto type: cosmos.feegrant.v1beta1.MsgGrantAllowance */ declare const MsgGrantAllowance: { typeUrl: string; aminoType: string; is(o: any): o is MsgGrantAllowance; isAmino(o: any): o is MsgGrantAllowanceAmino; encode(message: MsgGrantAllowance, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgGrantAllowance; fromPartial(object: DeepPartial): MsgGrantAllowance; fromAmino(object: MsgGrantAllowanceAmino): MsgGrantAllowance; toAmino(message: MsgGrantAllowance): MsgGrantAllowanceAmino; fromAminoMsg(object: MsgGrantAllowanceAminoMsg): MsgGrantAllowance; toAminoMsg(message: MsgGrantAllowance): MsgGrantAllowanceAminoMsg; fromProtoMsg(message: MsgGrantAllowanceProtoMsg): MsgGrantAllowance; toProto(message: MsgGrantAllowance): Uint8Array; toProtoMsg(message: MsgGrantAllowance): MsgGrantAllowanceProtoMsg; registerTypeUrl(): void; }; /** * MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. * @name MsgGrantAllowanceResponse * @package cosmos.feegrant.v1beta1 * @see proto type: cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse */ declare const MsgGrantAllowanceResponse: { typeUrl: string; aminoType: string; is(o: any): o is MsgGrantAllowanceResponse; isAmino(o: any): o is MsgGrantAllowanceResponseAmino; encode(_: MsgGrantAllowanceResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgGrantAllowanceResponse; fromPartial(_: DeepPartial): MsgGrantAllowanceResponse; fromAmino(_: MsgGrantAllowanceResponseAmino): MsgGrantAllowanceResponse; toAmino(_: MsgGrantAllowanceResponse): MsgGrantAllowanceResponseAmino; fromAminoMsg(object: MsgGrantAllowanceResponseAminoMsg): MsgGrantAllowanceResponse; toAminoMsg(message: MsgGrantAllowanceResponse): MsgGrantAllowanceResponseAminoMsg; fromProtoMsg(message: MsgGrantAllowanceResponseProtoMsg): MsgGrantAllowanceResponse; toProto(message: MsgGrantAllowanceResponse): Uint8Array; toProtoMsg(message: MsgGrantAllowanceResponse): MsgGrantAllowanceResponseProtoMsg; registerTypeUrl(): void; }; /** * MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. * @name MsgRevokeAllowance * @package cosmos.feegrant.v1beta1 * @see proto type: cosmos.feegrant.v1beta1.MsgRevokeAllowance */ declare const MsgRevokeAllowance: { typeUrl: string; aminoType: string; is(o: any): o is MsgRevokeAllowance; isAmino(o: any): o is MsgRevokeAllowanceAmino; encode(message: MsgRevokeAllowance, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgRevokeAllowance; fromPartial(object: DeepPartial): MsgRevokeAllowance; fromAmino(object: MsgRevokeAllowanceAmino): MsgRevokeAllowance; toAmino(message: MsgRevokeAllowance): MsgRevokeAllowanceAmino; fromAminoMsg(object: MsgRevokeAllowanceAminoMsg): MsgRevokeAllowance; toAminoMsg(message: MsgRevokeAllowance): MsgRevokeAllowanceAminoMsg; fromProtoMsg(message: MsgRevokeAllowanceProtoMsg): MsgRevokeAllowance; toProto(message: MsgRevokeAllowance): Uint8Array; toProtoMsg(message: MsgRevokeAllowance): MsgRevokeAllowanceProtoMsg; registerTypeUrl(): void; }; /** * MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. * @name MsgRevokeAllowanceResponse * @package cosmos.feegrant.v1beta1 * @see proto type: cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse */ declare const MsgRevokeAllowanceResponse: { typeUrl: string; aminoType: string; is(o: any): o is MsgRevokeAllowanceResponse; isAmino(o: any): o is MsgRevokeAllowanceResponseAmino; encode(_: MsgRevokeAllowanceResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgRevokeAllowanceResponse; fromPartial(_: DeepPartial): MsgRevokeAllowanceResponse; fromAmino(_: MsgRevokeAllowanceResponseAmino): MsgRevokeAllowanceResponse; toAmino(_: MsgRevokeAllowanceResponse): MsgRevokeAllowanceResponseAmino; fromAminoMsg(object: MsgRevokeAllowanceResponseAminoMsg): MsgRevokeAllowanceResponse; toAminoMsg(message: MsgRevokeAllowanceResponse): MsgRevokeAllowanceResponseAminoMsg; fromProtoMsg(message: MsgRevokeAllowanceResponseProtoMsg): MsgRevokeAllowanceResponse; toProto(message: MsgRevokeAllowanceResponse): Uint8Array; toProtoMsg(message: MsgRevokeAllowanceResponse): MsgRevokeAllowanceResponseProtoMsg; registerTypeUrl(): void; }; /** * MsgPruneAllowances prunes expired fee allowances. * @name MsgPruneAllowances * @package cosmos.feegrant.v1beta1 * @see proto type: cosmos.feegrant.v1beta1.MsgPruneAllowances */ declare const MsgPruneAllowances: { typeUrl: string; aminoType: string; is(o: any): o is MsgPruneAllowances; isAmino(o: any): o is MsgPruneAllowancesAmino; encode(message: MsgPruneAllowances, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgPruneAllowances; fromPartial(object: DeepPartial): MsgPruneAllowances; fromAmino(object: MsgPruneAllowancesAmino): MsgPruneAllowances; toAmino(message: MsgPruneAllowances): MsgPruneAllowancesAmino; fromAminoMsg(object: MsgPruneAllowancesAminoMsg): MsgPruneAllowances; toAminoMsg(message: MsgPruneAllowances): MsgPruneAllowancesAminoMsg; fromProtoMsg(message: MsgPruneAllowancesProtoMsg): MsgPruneAllowances; toProto(message: MsgPruneAllowances): Uint8Array; toProtoMsg(message: MsgPruneAllowances): MsgPruneAllowancesProtoMsg; registerTypeUrl(): void; }; /** * MsgPruneAllowancesResponse defines the Msg/PruneAllowancesResponse response type. * @name MsgPruneAllowancesResponse * @package cosmos.feegrant.v1beta1 * @see proto type: cosmos.feegrant.v1beta1.MsgPruneAllowancesResponse */ declare const MsgPruneAllowancesResponse: { typeUrl: string; aminoType: string; is(o: any): o is MsgPruneAllowancesResponse; isAmino(o: any): o is MsgPruneAllowancesResponseAmino; encode(_: MsgPruneAllowancesResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgPruneAllowancesResponse; fromPartial(_: DeepPartial): MsgPruneAllowancesResponse; fromAmino(_: MsgPruneAllowancesResponseAmino): MsgPruneAllowancesResponse; toAmino(_: MsgPruneAllowancesResponse): MsgPruneAllowancesResponseAmino; fromAminoMsg(object: MsgPruneAllowancesResponseAminoMsg): MsgPruneAllowancesResponse; toAminoMsg(message: MsgPruneAllowancesResponse): MsgPruneAllowancesResponseAminoMsg; fromProtoMsg(message: MsgPruneAllowancesResponseProtoMsg): MsgPruneAllowancesResponse; toProto(message: MsgPruneAllowancesResponse): Uint8Array; toProtoMsg(message: MsgPruneAllowancesResponse): MsgPruneAllowancesResponseProtoMsg; registerTypeUrl(): void; }; //#endregion export { MsgGrantAllowance, MsgGrantAllowanceAmino, MsgGrantAllowanceAminoMsg, MsgGrantAllowanceEncoded, MsgGrantAllowanceProtoMsg, MsgGrantAllowanceResponse, MsgGrantAllowanceResponseAmino, MsgGrantAllowanceResponseAminoMsg, MsgGrantAllowanceResponseProtoMsg, MsgPruneAllowances, MsgPruneAllowancesAmino, MsgPruneAllowancesAminoMsg, MsgPruneAllowancesProtoMsg, MsgPruneAllowancesResponse, MsgPruneAllowancesResponseAmino, MsgPruneAllowancesResponseAminoMsg, MsgPruneAllowancesResponseProtoMsg, MsgRevokeAllowance, MsgRevokeAllowanceAmino, MsgRevokeAllowanceAminoMsg, MsgRevokeAllowanceProtoMsg, MsgRevokeAllowanceResponse, MsgRevokeAllowanceResponseAmino, MsgRevokeAllowanceResponseAminoMsg, MsgRevokeAllowanceResponseProtoMsg };