interchainjs
Version:
InterchainJS is a JavaScript library for interacting with Cosmos SDK based blockchains.
67 lines (66 loc) • 2.63 kB
TypeScript
import { Coin, CoinAmino } from "../../base/v1beta1/coin";
import { BinaryReader, BinaryWriter } from "../../../binary";
import { DeepPartial } from "../../../helpers";
/**
* SendAuthorization allows the grantee to spend up to spend_limit coins from
* the granter's account.
* @name SendAuthorization
* @package cosmos.bank.v1beta1
* @see proto type: cosmos.bank.v1beta1.SendAuthorization
*/
export interface SendAuthorization {
$typeUrl?: "/cosmos.bank.v1beta1.SendAuthorization";
spendLimit: Coin[];
/**
* allow_list specifies an optional list of addresses to whom the grantee can send tokens on behalf of the
* granter. If omitted, any recipient is allowed.
*/
allowList: string[];
}
export interface SendAuthorizationProtoMsg {
typeUrl: "/cosmos.bank.v1beta1.SendAuthorization";
value: Uint8Array;
}
/**
* SendAuthorization allows the grantee to spend up to spend_limit coins from
* the granter's account.
* @name SendAuthorizationAmino
* @package cosmos.bank.v1beta1
* @see proto type: cosmos.bank.v1beta1.SendAuthorization
*/
export interface SendAuthorizationAmino {
spend_limit: CoinAmino[];
/**
* allow_list specifies an optional list of addresses to whom the grantee can send tokens on behalf of the
* granter. If omitted, any recipient is allowed.
*/
allow_list: string[];
}
export interface SendAuthorizationAminoMsg {
type: "cosmos-sdk/SendAuthorization";
value: SendAuthorizationAmino;
}
/**
* SendAuthorization allows the grantee to spend up to spend_limit coins from
* the granter's account.
* @name SendAuthorization
* @package cosmos.bank.v1beta1
* @see proto type: cosmos.bank.v1beta1.SendAuthorization
*/
export declare const SendAuthorization: {
typeUrl: string;
aminoType: string;
is(o: any): o is SendAuthorization;
isAmino(o: any): o is SendAuthorizationAmino;
encode(message: SendAuthorization, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): SendAuthorization;
fromPartial(object: DeepPartial<SendAuthorization>): SendAuthorization;
fromAmino(object: SendAuthorizationAmino): SendAuthorization;
toAmino(message: SendAuthorization): SendAuthorizationAmino;
fromAminoMsg(object: SendAuthorizationAminoMsg): SendAuthorization;
toAminoMsg(message: SendAuthorization): SendAuthorizationAminoMsg;
fromProtoMsg(message: SendAuthorizationProtoMsg): SendAuthorization;
toProto(message: SendAuthorization): Uint8Array;
toProtoMsg(message: SendAuthorization): SendAuthorizationProtoMsg;
registerTypeUrl(): void;
};