import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { DeepPartial } from "../../../helpers.js"; import { Any, AnyAmino, AnyProtoMsg } from "../../../google/protobuf/any.js"; import { Grant, GrantAmino } from "./authz.js"; //#region src/cosmos/authz/v1beta1/tx.d.ts /** * MsgGrant is a request type for Grant method. It declares authorization to the grantee * on behalf of the granter with the provided expiration time. * @name MsgGrant * @package cosmos.authz.v1beta1 * @see proto type: cosmos.authz.v1beta1.MsgGrant */ interface MsgGrant { granter: string; grantee: string; grant: Grant; } interface MsgGrantProtoMsg { typeUrl: "/cosmos.authz.v1beta1.MsgGrant"; value: Uint8Array; } /** * MsgGrant is a request type for Grant method. It declares authorization to the grantee * on behalf of the granter with the provided expiration time. * @name MsgGrantAmino * @package cosmos.authz.v1beta1 * @see proto type: cosmos.authz.v1beta1.MsgGrant */ interface MsgGrantAmino { granter: string; grantee: string; grant: GrantAmino; } interface MsgGrantAminoMsg { type: "cosmos-sdk/MsgGrant"; value: MsgGrantAmino; } /** * MsgGrantResponse defines the Msg/MsgGrant response type. * @name MsgGrantResponse * @package cosmos.authz.v1beta1 * @see proto type: cosmos.authz.v1beta1.MsgGrantResponse */ interface MsgGrantResponse {} interface MsgGrantResponseProtoMsg { typeUrl: "/cosmos.authz.v1beta1.MsgGrantResponse"; value: Uint8Array; } /** * MsgGrantResponse defines the Msg/MsgGrant response type. * @name MsgGrantResponseAmino * @package cosmos.authz.v1beta1 * @see proto type: cosmos.authz.v1beta1.MsgGrantResponse */ interface MsgGrantResponseAmino {} interface MsgGrantResponseAminoMsg { type: "cosmos-sdk/MsgGrantResponse"; value: MsgGrantResponseAmino; } /** * MsgExec attempts to execute the provided messages using * authorizations granted to the grantee. Each message should have only * one signer corresponding to the granter of the authorization. * @name MsgExec * @package cosmos.authz.v1beta1 * @see proto type: cosmos.authz.v1beta1.MsgExec */ interface MsgExec { grantee: string; /** * Execute Msg. * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg)) * triple and validate it. */ msgs: (Any)[] | Any[]; } interface MsgExecProtoMsg { typeUrl: "/cosmos.authz.v1beta1.MsgExec"; value: Uint8Array; } type MsgExecEncoded = Omit & { /** * Execute Msg. * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg)) * triple and validate it. */ msgs: (AnyProtoMsg)[]; }; /** * MsgExec attempts to execute the provided messages using * authorizations granted to the grantee. Each message should have only * one signer corresponding to the granter of the authorization. * @name MsgExecAmino * @package cosmos.authz.v1beta1 * @see proto type: cosmos.authz.v1beta1.MsgExec */ interface MsgExecAmino { grantee: string; /** * Execute Msg. * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg)) * triple and validate it. */ msgs: AnyAmino[]; } interface MsgExecAminoMsg { type: "cosmos-sdk/MsgExec"; value: MsgExecAmino; } /** * MsgExecResponse defines the Msg/MsgExecResponse response type. * @name MsgExecResponse * @package cosmos.authz.v1beta1 * @see proto type: cosmos.authz.v1beta1.MsgExecResponse */ interface MsgExecResponse { results: Uint8Array[]; } interface MsgExecResponseProtoMsg { typeUrl: "/cosmos.authz.v1beta1.MsgExecResponse"; value: Uint8Array; } /** * MsgExecResponse defines the Msg/MsgExecResponse response type. * @name MsgExecResponseAmino * @package cosmos.authz.v1beta1 * @see proto type: cosmos.authz.v1beta1.MsgExecResponse */ interface MsgExecResponseAmino { results: string[]; } interface MsgExecResponseAminoMsg { type: "cosmos-sdk/MsgExecResponse"; value: MsgExecResponseAmino; } /** * MsgRevoke revokes any authorization with the provided sdk.Msg type on the * granter's account with that has been granted to the grantee. * @name MsgRevoke * @package cosmos.authz.v1beta1 * @see proto type: cosmos.authz.v1beta1.MsgRevoke */ interface MsgRevoke { granter: string; grantee: string; msgTypeUrl: string; } interface MsgRevokeProtoMsg { typeUrl: "/cosmos.authz.v1beta1.MsgRevoke"; value: Uint8Array; } /** * MsgRevoke revokes any authorization with the provided sdk.Msg type on the * granter's account with that has been granted to the grantee. * @name MsgRevokeAmino * @package cosmos.authz.v1beta1 * @see proto type: cosmos.authz.v1beta1.MsgRevoke */ interface MsgRevokeAmino { granter: string; grantee: string; msg_type_url: string; } interface MsgRevokeAminoMsg { type: "cosmos-sdk/MsgRevoke"; value: MsgRevokeAmino; } /** * MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. * @name MsgRevokeResponse * @package cosmos.authz.v1beta1 * @see proto type: cosmos.authz.v1beta1.MsgRevokeResponse */ interface MsgRevokeResponse {} interface MsgRevokeResponseProtoMsg { typeUrl: "/cosmos.authz.v1beta1.MsgRevokeResponse"; value: Uint8Array; } /** * MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. * @name MsgRevokeResponseAmino * @package cosmos.authz.v1beta1 * @see proto type: cosmos.authz.v1beta1.MsgRevokeResponse */ interface MsgRevokeResponseAmino {} interface MsgRevokeResponseAminoMsg { type: "cosmos-sdk/MsgRevokeResponse"; value: MsgRevokeResponseAmino; } /** * MsgGrant is a request type for Grant method. It declares authorization to the grantee * on behalf of the granter with the provided expiration time. * @name MsgGrant * @package cosmos.authz.v1beta1 * @see proto type: cosmos.authz.v1beta1.MsgGrant */ declare const MsgGrant: { typeUrl: string; aminoType: string; is(o: any): o is MsgGrant; isAmino(o: any): o is MsgGrantAmino; encode(message: MsgGrant, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgGrant; fromPartial(object: DeepPartial): MsgGrant; fromAmino(object: MsgGrantAmino): MsgGrant; toAmino(message: MsgGrant): MsgGrantAmino; fromAminoMsg(object: MsgGrantAminoMsg): MsgGrant; toAminoMsg(message: MsgGrant): MsgGrantAminoMsg; fromProtoMsg(message: MsgGrantProtoMsg): MsgGrant; toProto(message: MsgGrant): Uint8Array; toProtoMsg(message: MsgGrant): MsgGrantProtoMsg; registerTypeUrl(): void; }; /** * MsgGrantResponse defines the Msg/MsgGrant response type. * @name MsgGrantResponse * @package cosmos.authz.v1beta1 * @see proto type: cosmos.authz.v1beta1.MsgGrantResponse */ declare const MsgGrantResponse: { typeUrl: string; aminoType: string; is(o: any): o is MsgGrantResponse; isAmino(o: any): o is MsgGrantResponseAmino; encode(_: MsgGrantResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgGrantResponse; fromPartial(_: DeepPartial): MsgGrantResponse; fromAmino(_: MsgGrantResponseAmino): MsgGrantResponse; toAmino(_: MsgGrantResponse): MsgGrantResponseAmino; fromAminoMsg(object: MsgGrantResponseAminoMsg): MsgGrantResponse; toAminoMsg(message: MsgGrantResponse): MsgGrantResponseAminoMsg; fromProtoMsg(message: MsgGrantResponseProtoMsg): MsgGrantResponse; toProto(message: MsgGrantResponse): Uint8Array; toProtoMsg(message: MsgGrantResponse): MsgGrantResponseProtoMsg; registerTypeUrl(): void; }; /** * MsgExec attempts to execute the provided messages using * authorizations granted to the grantee. Each message should have only * one signer corresponding to the granter of the authorization. * @name MsgExec * @package cosmos.authz.v1beta1 * @see proto type: cosmos.authz.v1beta1.MsgExec */ declare const MsgExec: { typeUrl: string; aminoType: string; is(o: any): o is MsgExec; isAmino(o: any): o is MsgExecAmino; encode(message: MsgExec, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgExec; fromPartial(object: DeepPartial): MsgExec; fromAmino(object: MsgExecAmino): MsgExec; toAmino(message: MsgExec): MsgExecAmino; fromAminoMsg(object: MsgExecAminoMsg): MsgExec; toAminoMsg(message: MsgExec): MsgExecAminoMsg; fromProtoMsg(message: MsgExecProtoMsg): MsgExec; toProto(message: MsgExec): Uint8Array; toProtoMsg(message: MsgExec): MsgExecProtoMsg; registerTypeUrl(): void; }; /** * MsgExecResponse defines the Msg/MsgExecResponse response type. * @name MsgExecResponse * @package cosmos.authz.v1beta1 * @see proto type: cosmos.authz.v1beta1.MsgExecResponse */ declare const MsgExecResponse: { typeUrl: string; aminoType: string; is(o: any): o is MsgExecResponse; isAmino(o: any): o is MsgExecResponseAmino; encode(message: MsgExecResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgExecResponse; fromPartial(object: DeepPartial): MsgExecResponse; fromAmino(object: MsgExecResponseAmino): MsgExecResponse; toAmino(message: MsgExecResponse): MsgExecResponseAmino; fromAminoMsg(object: MsgExecResponseAminoMsg): MsgExecResponse; toAminoMsg(message: MsgExecResponse): MsgExecResponseAminoMsg; fromProtoMsg(message: MsgExecResponseProtoMsg): MsgExecResponse; toProto(message: MsgExecResponse): Uint8Array; toProtoMsg(message: MsgExecResponse): MsgExecResponseProtoMsg; registerTypeUrl(): void; }; /** * MsgRevoke revokes any authorization with the provided sdk.Msg type on the * granter's account with that has been granted to the grantee. * @name MsgRevoke * @package cosmos.authz.v1beta1 * @see proto type: cosmos.authz.v1beta1.MsgRevoke */ declare const MsgRevoke: { typeUrl: string; aminoType: string; is(o: any): o is MsgRevoke; isAmino(o: any): o is MsgRevokeAmino; encode(message: MsgRevoke, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgRevoke; fromPartial(object: DeepPartial): MsgRevoke; fromAmino(object: MsgRevokeAmino): MsgRevoke; toAmino(message: MsgRevoke): MsgRevokeAmino; fromAminoMsg(object: MsgRevokeAminoMsg): MsgRevoke; toAminoMsg(message: MsgRevoke): MsgRevokeAminoMsg; fromProtoMsg(message: MsgRevokeProtoMsg): MsgRevoke; toProto(message: MsgRevoke): Uint8Array; toProtoMsg(message: MsgRevoke): MsgRevokeProtoMsg; registerTypeUrl(): void; }; /** * MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. * @name MsgRevokeResponse * @package cosmos.authz.v1beta1 * @see proto type: cosmos.authz.v1beta1.MsgRevokeResponse */ declare const MsgRevokeResponse: { typeUrl: string; aminoType: string; is(o: any): o is MsgRevokeResponse; isAmino(o: any): o is MsgRevokeResponseAmino; encode(_: MsgRevokeResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgRevokeResponse; fromPartial(_: DeepPartial): MsgRevokeResponse; fromAmino(_: MsgRevokeResponseAmino): MsgRevokeResponse; toAmino(_: MsgRevokeResponse): MsgRevokeResponseAmino; fromAminoMsg(object: MsgRevokeResponseAminoMsg): MsgRevokeResponse; toAminoMsg(message: MsgRevokeResponse): MsgRevokeResponseAminoMsg; fromProtoMsg(message: MsgRevokeResponseProtoMsg): MsgRevokeResponse; toProto(message: MsgRevokeResponse): Uint8Array; toProtoMsg(message: MsgRevokeResponse): MsgRevokeResponseProtoMsg; registerTypeUrl(): void; }; //#endregion export { MsgExec, MsgExecAmino, MsgExecAminoMsg, MsgExecEncoded, MsgExecProtoMsg, MsgExecResponse, MsgExecResponseAmino, MsgExecResponseAminoMsg, MsgExecResponseProtoMsg, MsgGrant, MsgGrantAmino, MsgGrantAminoMsg, MsgGrantProtoMsg, MsgGrantResponse, MsgGrantResponseAmino, MsgGrantResponseAminoMsg, MsgGrantResponseProtoMsg, MsgRevoke, MsgRevokeAmino, MsgRevokeAminoMsg, MsgRevokeProtoMsg, MsgRevokeResponse, MsgRevokeResponseAmino, MsgRevokeResponseAminoMsg, MsgRevokeResponseProtoMsg };