// @generated by protoc-gen-es v1.3.1 with parameter "target=ts" // @generated from file cosmos/bank/v1beta1/authz.proto (package cosmos.bank.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; import { Coin } from "../../base/v1beta1/coin_pb.js"; /** * SendAuthorization allows the grantee to spend up to spend_limit coins from * the granter's account. * * Since: cosmos-sdk 0.43 * * @generated from message cosmos.bank.v1beta1.SendAuthorization */ export class SendAuthorization extends Message { /** * @generated from field: repeated cosmos.base.v1beta1.Coin spend_limit = 1; */ 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. * * Since: cosmos-sdk 0.47 * * @generated from field: repeated string allow_list = 2; */ allowList: string[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.bank.v1beta1.SendAuthorization"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "spend_limit", kind: "message", T: Coin, repeated: true }, { no: 2, name: "allow_list", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SendAuthorization { return new SendAuthorization().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SendAuthorization { return new SendAuthorization().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SendAuthorization { return new SendAuthorization().fromJsonString(jsonString, options); } static equals(a: SendAuthorization | PlainMessage | undefined, b: SendAuthorization | PlainMessage | undefined): boolean { return proto3.util.equals(SendAuthorization, a, b); } }