@bandprotocol/bandchain.js
Version:
TypeScript library for Cosmos SDK and BandChain
109 lines (108 loc) • 4.26 kB
TypeScript
import { Params, ParamsAmino, ParamsSDKType, Metadata, MetadataAmino, MetadataSDKType } from "./bank";
import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin";
import { BinaryReader, BinaryWriter } from "../../../binary";
/** GenesisState defines the bank module's genesis state. */
export interface GenesisState {
/** params defines all the paramaters 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 differents coins. */
denomMetadata: Metadata[];
}
export interface GenesisStateProtoMsg {
typeUrl: "/cosmos.bank.v1beta1.GenesisState";
value: Uint8Array;
}
/** GenesisState defines the bank module's genesis state. */
export interface GenesisStateAmino {
/** params defines all the paramaters 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 differents coins. */
denom_metadata?: MetadataAmino[];
}
export interface GenesisStateAminoMsg {
type: "cosmos-sdk/GenesisState";
value: GenesisStateAmino;
}
/** GenesisState defines the bank module's genesis state. */
export interface GenesisStateSDKType {
params: ParamsSDKType;
balances: BalanceSDKType[];
supply: CoinSDKType[];
denom_metadata: MetadataSDKType[];
}
/**
* Balance defines an account address and balance pair used in the bank module's
* genesis state.
*/
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.
*/
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;
}
/**
* Balance defines an account address and balance pair used in the bank module's
* genesis state.
*/
export interface BalanceSDKType {
address: string;
coins: CoinSDKType[];
}
export declare const GenesisState: {
typeUrl: string;
encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): GenesisState;
fromPartial(object: Partial<GenesisState>): 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;
};
export declare const Balance: {
typeUrl: string;
encode(message: Balance, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): Balance;
fromPartial(object: Partial<Balance>): 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;
};