import { Params, ParamsAmino, Metadata, MetadataAmino, SendEnabled, SendEnabledAmino } from "./bank"; import { Coin, CoinAmino } from "../../base/v1beta1/coin"; import { BinaryReader, BinaryWriter } from "../../../binary"; import { DeepPartial } from "../../../helpers"; /** * GenesisState defines the bank module's genesis state. * @name GenesisState * @package cosmos.bank.v1beta1 * @see proto type: cosmos.bank.v1beta1.GenesisState */ export interface GenesisState { /** * params defines all the parameters of the module. */ params: Params; /** * balances is an array containing the balances of all the accounts. */ 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. */ supply: Coin[]; /** * denom_metadata defines the metadata of the different coins. */ denomMetadata: Metadata[]; /** * send_enabled defines the denoms where send is enabled or disabled. */ sendEnabled: SendEnabled[]; } export interface GenesisStateProtoMsg { typeUrl: "/cosmos.bank.v1beta1.GenesisState"; value: Uint8Array; } /** * GenesisState defines the bank module's genesis state. * @name GenesisStateAmino * @package cosmos.bank.v1beta1 * @see proto type: cosmos.bank.v1beta1.GenesisState */ export interface GenesisStateAmino { /** * params defines all the parameters of the module. */ params: ParamsAmino; /** * balances is an array containing the balances of all the accounts. */ balances: BalanceAmino[]; /** * 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. */ supply: CoinAmino[]; /** * denom_metadata defines the metadata of the different coins. */ denom_metadata: MetadataAmino[]; /** * send_enabled defines the denoms where send is enabled or disabled. */ send_enabled: SendEnabledAmino[]; } export interface GenesisStateAminoMsg { type: "cosmos-sdk/GenesisState"; value: GenesisStateAmino; } /** * Balance defines an account address and balance pair used in the bank module's * genesis state. * @name Balance * @package cosmos.bank.v1beta1 * @see proto type: cosmos.bank.v1beta1.Balance */ export interface Balance { /** * address is the address of the balance holder. */ address: string; /** * coins defines the different coins this balance holds. */ coins: Coin[]; } export interface BalanceProtoMsg { typeUrl: "/cosmos.bank.v1beta1.Balance"; value: Uint8Array; } /** * Balance defines an account address and balance pair used in the bank module's * genesis state. * @name BalanceAmino * @package cosmos.bank.v1beta1 * @see proto type: cosmos.bank.v1beta1.Balance */ export interface BalanceAmino { /** * address is the address of the balance holder. */ address: string; /** * coins defines the different coins this balance holds. */ coins: CoinAmino[]; } export interface BalanceAminoMsg { type: "cosmos-sdk/Balance"; value: BalanceAmino; } /** * GenesisState defines the bank module's genesis state. * @name GenesisState * @package cosmos.bank.v1beta1 * @see proto type: cosmos.bank.v1beta1.GenesisState */ export declare const GenesisState: { typeUrl: string; aminoType: string; is(o: any): o is GenesisState; isAmino(o: any): o is GenesisStateAmino; encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; fromPartial(object: DeepPartial): GenesisState; fromAmino(object: GenesisStateAmino): GenesisState; toAmino(message: GenesisState): GenesisStateAmino; fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; toAminoMsg(message: GenesisState): GenesisStateAminoMsg; fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; toProto(message: GenesisState): Uint8Array; toProtoMsg(message: GenesisState): GenesisStateProtoMsg; registerTypeUrl(): void; }; /** * Balance defines an account address and balance pair used in the bank module's * genesis state. * @name Balance * @package cosmos.bank.v1beta1 * @see proto type: cosmos.bank.v1beta1.Balance */ export declare const Balance: { typeUrl: string; aminoType: string; is(o: any): o is Balance; isAmino(o: any): o is BalanceAmino; encode(message: Balance, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): Balance; fromPartial(object: DeepPartial): Balance; fromAmino(object: BalanceAmino): Balance; toAmino(message: Balance): BalanceAmino; fromAminoMsg(object: BalanceAminoMsg): Balance; toAminoMsg(message: Balance): BalanceAminoMsg; fromProtoMsg(message: BalanceProtoMsg): Balance; toProto(message: Balance): Uint8Array; toProtoMsg(message: Balance): BalanceProtoMsg; registerTypeUrl(): void; };