import { Grant, GrantAmino } from "./authz"; import { Any, AnyAmino } from "../../../google/protobuf/any"; import { BinaryReader, BinaryWriter } from "../../../binary"; import { TxRpc } from "../../../types"; export declare const protobufPackage = "cosmos.authz.v1beta1"; /** * MsgGrant is a request type for Grant method. It declares authorization to the grantee * on behalf of the granter with the provided expiration time. */ export interface MsgGrant { granter: string; grantee: string; grant: Grant | undefined; } export 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. */ export interface MsgGrantAmino { granter?: string; grantee?: string; grant: GrantAmino | undefined; } export interface MsgGrantAminoMsg { type: "cosmos-sdk/MsgGrant"; value: MsgGrantAmino; } /** MsgGrantResponse defines the Msg/MsgGrant response type. */ export interface MsgGrantResponse { } export interface MsgGrantResponseProtoMsg { typeUrl: "/cosmos.authz.v1beta1.MsgGrantResponse"; value: Uint8Array; } /** MsgGrantResponse defines the Msg/MsgGrant response type. */ export interface MsgGrantResponseAmino { } export 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. */ export 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[]; } export interface MsgExecProtoMsg { typeUrl: "/cosmos.authz.v1beta1.MsgExec"; value: Uint8Array; } /** * 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. */ export 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[]; } export interface MsgExecAminoMsg { type: "cosmos-sdk/MsgExec"; value: MsgExecAmino; } /** MsgExecResponse defines the Msg/MsgExecResponse response type. */ export interface MsgExecResponse { results: Uint8Array[]; } export interface MsgExecResponseProtoMsg { typeUrl: "/cosmos.authz.v1beta1.MsgExecResponse"; value: Uint8Array; } /** MsgExecResponse defines the Msg/MsgExecResponse response type. */ export interface MsgExecResponseAmino { results?: string[]; } export 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. */ export interface MsgRevoke { granter: string; grantee: string; msgTypeUrl: string; } export 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. */ export interface MsgRevokeAmino { granter?: string; grantee?: string; msg_type_url?: string; } export interface MsgRevokeAminoMsg { type: "cosmos-sdk/MsgRevoke"; value: MsgRevokeAmino; } /** MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. */ export interface MsgRevokeResponse { } export interface MsgRevokeResponseProtoMsg { typeUrl: "/cosmos.authz.v1beta1.MsgRevokeResponse"; value: Uint8Array; } /** MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. */ export interface MsgRevokeResponseAmino { } export interface MsgRevokeResponseAminoMsg { type: "cosmos-sdk/MsgRevokeResponse"; value: MsgRevokeResponseAmino; } /** * MsgPruneExpiredGrants prunes the expired grants. * * Since cosmos-sdk 0.50.x-atomone */ export interface MsgPruneExpiredGrants { pruner: string; } export interface MsgPruneExpiredGrantsProtoMsg { typeUrl: "/cosmos.authz.v1beta1.MsgPruneExpiredGrants"; value: Uint8Array; } /** * MsgPruneExpiredGrants prunes the expired grants. * * Since cosmos-sdk 0.50.x-atomone */ export interface MsgPruneExpiredGrantsAmino { pruner?: string; } export interface MsgPruneExpiredGrantsAminoMsg { type: "cosmos-sdk/MsgPruneExpiredGrants"; value: MsgPruneExpiredGrantsAmino; } /** * MsgPruneExpiredGrantsResponse defines the Msg/MsgPruneExpiredGrantsResponse response type. * * Since cosmos-sdk 0.50.x-atomone */ export interface MsgPruneExpiredGrantsResponse { } export interface MsgPruneExpiredGrantsResponseProtoMsg { typeUrl: "/cosmos.authz.v1beta1.MsgPruneExpiredGrantsResponse"; value: Uint8Array; } /** * MsgPruneExpiredGrantsResponse defines the Msg/MsgPruneExpiredGrantsResponse response type. * * Since cosmos-sdk 0.50.x-atomone */ export interface MsgPruneExpiredGrantsResponseAmino { } export interface MsgPruneExpiredGrantsResponseAminoMsg { type: "cosmos-sdk/MsgPruneExpiredGrantsResponse"; value: MsgPruneExpiredGrantsResponseAmino; } export declare const MsgGrant: { typeUrl: string; encode(message: MsgGrant, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgGrant; fromJSON(object: any): MsgGrant; toJSON(message: MsgGrant): unknown; fromPartial(object: Partial): 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; }; export declare const MsgGrantResponse: { typeUrl: string; encode(_: MsgGrantResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgGrantResponse; fromJSON(_: any): MsgGrantResponse; toJSON(_: MsgGrantResponse): unknown; fromPartial(_: Partial): 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; }; export declare const MsgExec: { typeUrl: string; encode(message: MsgExec, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgExec; fromJSON(object: any): MsgExec; toJSON(message: MsgExec): unknown; fromPartial(object: Partial): 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; }; export declare const MsgExecResponse: { typeUrl: string; encode(message: MsgExecResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgExecResponse; fromJSON(object: any): MsgExecResponse; toJSON(message: MsgExecResponse): unknown; fromPartial(object: Partial): 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; }; export declare const MsgRevoke: { typeUrl: string; encode(message: MsgRevoke, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgRevoke; fromJSON(object: any): MsgRevoke; toJSON(message: MsgRevoke): unknown; fromPartial(object: Partial): 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; }; export declare const MsgRevokeResponse: { typeUrl: string; encode(_: MsgRevokeResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgRevokeResponse; fromJSON(_: any): MsgRevokeResponse; toJSON(_: MsgRevokeResponse): unknown; fromPartial(_: Partial): 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; }; export declare const MsgPruneExpiredGrants: { typeUrl: string; encode(message: MsgPruneExpiredGrants, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgPruneExpiredGrants; fromJSON(object: any): MsgPruneExpiredGrants; toJSON(message: MsgPruneExpiredGrants): unknown; fromPartial(object: Partial): MsgPruneExpiredGrants; fromAmino(object: MsgPruneExpiredGrantsAmino): MsgPruneExpiredGrants; toAmino(message: MsgPruneExpiredGrants): MsgPruneExpiredGrantsAmino; fromAminoMsg(object: MsgPruneExpiredGrantsAminoMsg): MsgPruneExpiredGrants; toAminoMsg(message: MsgPruneExpiredGrants): MsgPruneExpiredGrantsAminoMsg; fromProtoMsg(message: MsgPruneExpiredGrantsProtoMsg): MsgPruneExpiredGrants; toProto(message: MsgPruneExpiredGrants): Uint8Array; toProtoMsg(message: MsgPruneExpiredGrants): MsgPruneExpiredGrantsProtoMsg; }; export declare const MsgPruneExpiredGrantsResponse: { typeUrl: string; encode(_: MsgPruneExpiredGrantsResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgPruneExpiredGrantsResponse; fromJSON(_: any): MsgPruneExpiredGrantsResponse; toJSON(_: MsgPruneExpiredGrantsResponse): unknown; fromPartial(_: Partial): MsgPruneExpiredGrantsResponse; fromAmino(_: MsgPruneExpiredGrantsResponseAmino): MsgPruneExpiredGrantsResponse; toAmino(_: MsgPruneExpiredGrantsResponse): MsgPruneExpiredGrantsResponseAmino; fromAminoMsg(object: MsgPruneExpiredGrantsResponseAminoMsg): MsgPruneExpiredGrantsResponse; toAminoMsg(message: MsgPruneExpiredGrantsResponse): MsgPruneExpiredGrantsResponseAminoMsg; fromProtoMsg(message: MsgPruneExpiredGrantsResponseProtoMsg): MsgPruneExpiredGrantsResponse; toProto(message: MsgPruneExpiredGrantsResponse): Uint8Array; toProtoMsg(message: MsgPruneExpiredGrantsResponse): MsgPruneExpiredGrantsResponseProtoMsg; }; /** Msg defines the authz Msg service. */ export interface Msg { /** * Grant grants the provided authorization to the grantee on the granter's * account with the provided expiration time. If there is already a grant * for the given (granter, grantee, Authorization) triple, then the grant * will be overwritten. */ Grant(request: MsgGrant): Promise; /** * Exec 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. */ Exec(request: MsgExec): Promise; /** * Revoke revokes any authorization corresponding to the provided method name on the * granter's account that has been granted to the grantee. */ Revoke(request: MsgRevoke): Promise; /** * PruneExpiredGrants prunes the expired grants. Currently up to 75 at a time. * * Since cosmos-sdk 0.50.x-atomone */ PruneExpiredGrants(request: MsgPruneExpiredGrants): Promise; } export declare class MsgClientImpl implements Msg { private readonly rpc; constructor(rpc: TxRpc); Grant(request: MsgGrant): Promise; Exec(request: MsgExec): Promise; Revoke(request: MsgRevoke): Promise; PruneExpiredGrants(request: MsgPruneExpiredGrants): Promise; }