UNPKG

@firmachain/firma-js

Version:

The Official FirmaChain Javascript SDK written in Typescript

36 lines (35 loc) 1.53 kB
/// <reference types="long" /> import { Any } from "../google/protobuf/any"; import { BinaryWriter } from "cosmjs-types/binary"; export interface MsgGrantAllowance { granter: string; grantee: string; allowance: Any | undefined; } export interface MsgRevokeAllowance { granter: string; grantee: string; } export declare const MsgGrantAllowance: { encode(message: MsgGrantAllowance, writer?: BinaryWriter): BinaryWriter; fromPartial(object: DeepPartial<MsgGrantAllowance>): MsgGrantAllowance; }; export declare const MsgRevokeAllowance: { encode(message: MsgRevokeAllowance, writer?: BinaryWriter): BinaryWriter; fromPartial(object: DeepPartial<MsgRevokeAllowance>): MsgRevokeAllowance; }; /** AllowedMsgAllowance creates allowance only for specified message types. */ export interface AllowedMsgAllowance { /** allowance can be any of basic and filtered fee allowance. */ allowance: Any | undefined; /** allowed_messages are the messages for which the grantee has the access. */ allowedMessages: string[]; } export declare const AllowedMsgAllowance: { encode(message: AllowedMsgAllowance, writer?: BinaryWriter): BinaryWriter; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long; export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]>; } : Partial<T>; export {};