// @generated by protoc-gen-es v1.3.1 with parameter "target=ts" // @generated from file cosmos/bank/v1beta1/genesis.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 { Metadata, Params, SendEnabled } from "./bank_pb.js"; import { Coin } from "../../base/v1beta1/coin_pb.js"; /** * GenesisState defines the bank module's genesis state. * * @generated from message cosmos.bank.v1beta1.GenesisState */ export class GenesisState extends Message { /** * params defines all the parameters of the module. * * @generated from field: cosmos.bank.v1beta1.Params params = 1; */ params?: Params; /** * balances is an array containing the balances of all the accounts. * * @generated from field: repeated cosmos.bank.v1beta1.Balance balances = 2; */ balances: Balance[] = []; /** * supply represents the total supply. If it is left empty, then supply will be calculated based on the provided * balances. Otherwise, it will be used to validate that the sum of the balances equals this amount. * * @generated from field: repeated cosmos.base.v1beta1.Coin supply = 3; */ supply: Coin[] = []; /** * denom_metadata defines the metadata of the different coins. * * @generated from field: repeated cosmos.bank.v1beta1.Metadata denom_metadata = 4; */ denomMetadata: Metadata[] = []; /** * send_enabled defines the denoms where send is enabled or disabled. * * Since: cosmos-sdk 0.47 * * @generated from field: repeated cosmos.bank.v1beta1.SendEnabled send_enabled = 5; */ sendEnabled: SendEnabled[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.bank.v1beta1.GenesisState"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "params", kind: "message", T: Params }, { no: 2, name: "balances", kind: "message", T: Balance, repeated: true }, { no: 3, name: "supply", kind: "message", T: Coin, repeated: true }, { no: 4, name: "denom_metadata", kind: "message", T: Metadata, repeated: true }, { no: 5, name: "send_enabled", kind: "message", T: SendEnabled, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { return new GenesisState().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { return new GenesisState().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GenesisState { return new GenesisState().fromJsonString(jsonString, options); } static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { return proto3.util.equals(GenesisState, a, b); } } /** * Balance defines an account address and balance pair used in the bank module's * genesis state. * * @generated from message cosmos.bank.v1beta1.Balance */ export class Balance extends Message { /** * address is the address of the balance holder. * * @generated from field: string address = 1; */ address = ""; /** * coins defines the different coins this balance holds. * * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 2; */ coins: Coin[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.bank.v1beta1.Balance"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "coins", kind: "message", T: Coin, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Balance { return new Balance().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): Balance { return new Balance().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): Balance { return new Balance().fromJsonString(jsonString, options); } static equals(a: Balance | PlainMessage | undefined, b: Balance | PlainMessage | undefined): boolean { return proto3.util.equals(Balance, a, b); } }