import Long from "long"; import _m0 from "protobufjs/minimal"; /** * DenomAuthorityMetadata specifies metadata foraddresses that have specific * capabilities over a token factory denom. Right now there is only one Admin * permission, but is planned to be extended to the future. */ export interface DenomAuthorityMetadata { /** * Admin: Bech32 address of the admin for the tokefactory denom. Can be empty * for no admin. */ admin: string; } /** * ModuleParams defines the parameters for the tokenfactory module. * * ### On Denom Creation Costs * * We'd like for fees to be paid by the user/signer of a ransaction, but in many * casess, token creation is abstracted away behind a smart contract. Setting a * nonzero `denom_creation_fee` would force each contract to handle collecting * and paying a fees for denom (factory/{contract-addr}/{subdenom}) creation on * behalf of the end user. * * For IBC token transfers, it's unclear who should pay the fee—the contract, * the relayer, or the original sender? * > "Charging fees will mess up composability, the same way Terra transfer tax * caused all kinds of headaches for contract devs." - @ethanfrey * * ### Recommended Solution * * Have the end user (signer) pay fees directly in the form of higher gas costs. * This way, contracts won't need to handle collecting or paying fees. And for * IBC, the gas costs are already paid by the original sender and can be * estimated by the relayer. It's easier to tune gas costs to make spam * prohibitively expensive since there are per-transaction and per-block gas * limits. * * See https://github.com/CosmWasm/token-factory/issues/11 for the initial * discussion of the issue with @ethanfrey and @valardragon. */ export interface ModuleParams { /** * Adds gas consumption to the execution of `MsgCreateDenom` as a method of * spam prevention. Defaults to 10 NIBI. */ denomCreationGasConsume: Long; } /** * TFDenom is a token factory (TF) denom. The canonical representation is * "tf/{creator}/{subdenom}", its unique denomination in the x/bank module. */ export interface TFDenom { /** Creator: Bech32 address of the creator of the denom. */ creator: string; /** * Subdenom: Unique suffix of a token factory denom. A subdenom is specific * to a given creator. It is the name given during a token factory "Mint". */ subdenom: string; } /** GenesisState for the Token Factory module. */ export interface GenesisState { params?: ModuleParams; factoryDenoms: GenesisDenom[]; } /** GenesisDenom defines a tokenfactory denoms in the genesis state. */ export interface GenesisDenom { denom: string; authorityMetadata?: DenomAuthorityMetadata; } export declare const DenomAuthorityMetadata: { encode(message: DenomAuthorityMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DenomAuthorityMetadata; fromJSON(object: any): DenomAuthorityMetadata; toJSON(message: DenomAuthorityMetadata): unknown; create, I>>(base?: I): DenomAuthorityMetadata; fromPartial, I>>(object: I): DenomAuthorityMetadata; }; export declare const ModuleParams: { encode(message: ModuleParams, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ModuleParams; fromJSON(object: any): ModuleParams; toJSON(message: ModuleParams): unknown; create, I>>(base?: I): ModuleParams; fromPartial, I>>(object: I): ModuleParams; }; export declare const TFDenom: { encode(message: TFDenom, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): TFDenom; fromJSON(object: any): TFDenom; toJSON(message: TFDenom): unknown; create, I>>(base?: I): TFDenom; fromPartial, I>>(object: I): TFDenom; }; export declare const GenesisState: { encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState; fromJSON(object: any): GenesisState; toJSON(message: GenesisState): unknown; create, I>>(base?: I): GenesisState; fromPartial, I>>(object: I): GenesisState; }; export declare const GenesisDenom: { encode(message: GenesisDenom, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GenesisDenom; fromJSON(object: any): GenesisDenom; toJSON(message: GenesisDenom): unknown; create, I>>(base?: I): GenesisDenom; fromPartial, I>>(object: I): GenesisDenom; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; type DeepPartial = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; type KeysOfUnion = T extends T ? keyof T : never; type Exact = P extends Builtin ? P : P & { [K in keyof P]: Exact; } & { [K in Exclude>]: never; }; export {}; //# sourceMappingURL=state.d.ts.map