import { Grant, GrantSDKType } from "./authz"; import { Any, AnySDKType } from "../../../google/protobuf/any"; import * as _m0 from "protobufjs/minimal"; import { Rpc } from "../../../helpers"; 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; } /** * 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 MsgGrantSDKType { granter: string; grantee: string; grant?: GrantSDKType; } /** MsgExecResponse defines the Msg/MsgExecResponse response type. */ export interface MsgExecResponse { results: Uint8Array[]; } /** MsgExecResponse defines the Msg/MsgExecResponse response type. */ export interface MsgExecResponseSDKType { results: 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 MsgExec { grantee: string; /** * Authorization Msg requests to execute. Each msg must implement Authorization interface * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg)) * triple and validate it. */ msgs: Any[]; } /** * 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 MsgExecSDKType { grantee: string; msgs: AnySDKType[]; } /** MsgGrantResponse defines the Msg/MsgGrant response type. */ export interface MsgGrantResponse { } /** MsgGrantResponse defines the Msg/MsgGrant response type. */ export interface MsgGrantResponseSDKType { } /** * 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; } /** * 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 MsgRevokeSDKType { granter: string; grantee: string; msg_type_url: string; } /** MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. */ export interface MsgRevokeResponse { } /** MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. */ export interface MsgRevokeResponseSDKType { } export declare const MsgGrant: { encode(message: MsgGrant, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgGrant; fromJSON(object: any): MsgGrant; toJSON(message: MsgGrant): unknown; fromPartial, never>) | undefined; expiration?: ({ seconds?: string | number | import("long").Long | undefined; nanos?: number | undefined; } & { seconds?: string | number | (import("long").Long & { high: number; low: number; unsigned: boolean; add: (addend: string | number | import("long").Long) => import("long").Long; and: (other: string | number | import("long").Long) => import("long").Long; compare: (other: string | number | import("long").Long) => number; comp: (other: string | number | import("long").Long) => number; divide: (divisor: string | number | import("long").Long) => import("long").Long; div: (divisor: string | number | import("long").Long) => import("long").Long; equals: (other: string | number | import("long").Long) => boolean; eq: (other: string | number | import("long").Long) => boolean; getHighBits: () => number; getHighBitsUnsigned: () => number; getLowBits: () => number; getLowBitsUnsigned: () => number; getNumBitsAbs: () => number; greaterThan: (other: string | number | import("long").Long) => boolean; gt: (other: string | number | import("long").Long) => boolean; greaterThanOrEqual: (other: string | number | import("long").Long) => boolean; gte: (other: string | number | import("long").Long) => boolean; isEven: () => boolean; isNegative: () => boolean; isOdd: () => boolean; isPositive: () => boolean; isZero: () => boolean; lessThan: (other: string | number | import("long").Long) => boolean; lt: (other: string | number | import("long").Long) => boolean; lessThanOrEqual: (other: string | number | import("long").Long) => boolean; lte: (other: string | number | import("long").Long) => boolean; modulo: (other: string | number | import("long").Long) => import("long").Long; mod: (other: string | number | import("long").Long) => import("long").Long; multiply: (multiplier: string | number | import("long").Long) => import("long").Long; mul: (multiplier: string | number | import("long").Long) => import("long").Long; negate: () => import("long").Long; neg: () => import("long").Long; not: () => import("long").Long; notEquals: (other: string | number | import("long").Long) => boolean; neq: (other: string | number | import("long").Long) => boolean; or: (other: string | number | import("long").Long) => import("long").Long; shiftLeft: (numBits: number | import("long").Long) => import("long").Long; shl: (numBits: number | import("long").Long) => import("long").Long; shiftRight: (numBits: number | import("long").Long) => import("long").Long; shr: (numBits: number | import("long").Long) => import("long").Long; shiftRightUnsigned: (numBits: number | import("long").Long) => import("long").Long; shru: (numBits: number | import("long").Long) => import("long").Long; subtract: (subtrahend: string | number | import("long").Long) => import("long").Long; sub: (subtrahend: string | number | import("long").Long) => import("long").Long; toInt: () => number; toNumber: () => number; toBytes: (le?: boolean | undefined) => number[]; toBytesLE: () => number[]; toBytesBE: () => number[]; toSigned: () => import("long").Long; toString: (radix?: number | undefined) => string; toUnsigned: () => import("long").Long; xor: (other: string | number | import("long").Long) => import("long").Long; } & Record, never>) | undefined; nanos?: number | undefined; } & Record, never>) | undefined; } & Record, never>) | undefined; } & Record, never>>(object: I): MsgGrant; fromSDK(object: MsgGrantSDKType): MsgGrant; toSDK(message: MsgGrant): MsgGrantSDKType; }; export declare const MsgExecResponse: { encode(message: MsgExecResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgExecResponse; fromJSON(object: any): MsgExecResponse; toJSON(message: MsgExecResponse): unknown; fromPartial, never>) | undefined; } & Record, never>>(object: I): MsgExecResponse; fromSDK(object: MsgExecResponseSDKType): MsgExecResponse; toSDK(message: MsgExecResponse): MsgExecResponseSDKType; }; export declare const MsgExec: { encode(message: MsgExec, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgExec; fromJSON(object: any): MsgExec; toJSON(message: MsgExec): unknown; fromPartial, never>)[] & Record, never>) | undefined; } & Record, never>>(object: I): MsgExec; fromSDK(object: MsgExecSDKType): MsgExec; toSDK(message: MsgExec): MsgExecSDKType; }; export declare const MsgGrantResponse: { encode(_: MsgGrantResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgGrantResponse; fromJSON(_: any): MsgGrantResponse; toJSON(_: MsgGrantResponse): unknown; fromPartial, never>>(_: I): MsgGrantResponse; fromSDK(_: MsgGrantResponseSDKType): MsgGrantResponse; toSDK(_: MsgGrantResponse): MsgGrantResponseSDKType; }; export declare const MsgRevoke: { encode(message: MsgRevoke, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgRevoke; fromJSON(object: any): MsgRevoke; toJSON(message: MsgRevoke): unknown; fromPartial, never>>(object: I): MsgRevoke; fromSDK(object: MsgRevokeSDKType): MsgRevoke; toSDK(message: MsgRevoke): MsgRevokeSDKType; }; export declare const MsgRevokeResponse: { encode(_: MsgRevokeResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgRevokeResponse; fromJSON(_: any): MsgRevokeResponse; toJSON(_: MsgRevokeResponse): unknown; fromPartial, never>>(_: I): MsgRevokeResponse; fromSDK(_: MsgRevokeResponseSDKType): MsgRevokeResponse; toSDK(_: MsgRevokeResponse): MsgRevokeResponseSDKType; }; /** 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; } export declare class MsgClientImpl implements Msg { private readonly rpc; constructor(rpc: Rpc); Grant(request: MsgGrant): Promise; Exec(request: MsgExec): Promise; Revoke(request: MsgRevoke): Promise; }