import { Params, ParamsAmino } from "./params"; import { BinaryReader, BinaryWriter } from "../../../binary"; export declare const protobufPackage = "cosmos.dynamicfee.v1"; /** GenesisState defines the dynamicfee module's genesis state. */ export interface GenesisState { /** * Params are the parameters for the dynamicfee module. These parameters * can be utilized to implement both the base EIP-1559 dynamic fee pricing * and the AIMD EIP-1559 dynamic fee pricing. */ params: Params | undefined; /** State contains the current state of the AIMD dynamic fee pricer. */ state: State | undefined; } export interface GenesisStateProtoMsg { typeUrl: "/cosmos.dynamicfee.v1.GenesisState"; value: Uint8Array; } /** GenesisState defines the dynamicfee module's genesis state. */ export interface GenesisStateAmino { /** * Params are the parameters for the dynamicfee module. These parameters * can be utilized to implement both the base EIP-1559 dynamic fee pricing * and the AIMD EIP-1559 dynamic fee pricing. */ params?: ParamsAmino | undefined; /** State contains the current state of the AIMD dynamic fee pricer. */ state?: StateAmino | undefined; } export interface GenesisStateAminoMsg { type: "cosmos-sdk/GenesisState"; value: GenesisStateAmino; } /** * State is utilized to track the current state of the dynamic fee pricer. * This includes the current base fee, learning rate, and block gas within the * specified AIMD window. */ export interface State { /** * BaseGasPrice is the current base fee. This is denominated in the fee per * gas unit. */ baseGasPrice: string; /** LearningRate is the current learning rate. */ learningRate: string; /** * Window contains a list of the last blocks' gas values. This is used * to calculate the next base fee. This stores the number of units of gas * consumed per block. */ window: bigint[]; /** Index is the index of the current block in the block gas window. */ index: bigint; } export interface StateProtoMsg { typeUrl: "/cosmos.dynamicfee.v1.State"; value: Uint8Array; } /** * State is utilized to track the current state of the dynamic fee pricer. * This includes the current base fee, learning rate, and block gas within the * specified AIMD window. */ export interface StateAmino { /** * BaseGasPrice is the current base fee. This is denominated in the fee per * gas unit. */ base_gas_price?: string; /** LearningRate is the current learning rate. */ learning_rate?: string; /** * Window contains a list of the last blocks' gas values. This is used * to calculate the next base fee. This stores the number of units of gas * consumed per block. */ window?: string[]; /** Index is the index of the current block in the block gas window. */ index?: string; } export interface StateAminoMsg { type: "cosmos-sdk/State"; value: StateAmino; } export declare const GenesisState: { typeUrl: string; encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; fromJSON(object: any): GenesisState; toJSON(message: GenesisState): unknown; fromPartial(object: Partial): 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 State: { typeUrl: string; encode(message: State, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): State; fromJSON(object: any): State; toJSON(message: State): unknown; fromPartial(object: Partial): State; fromAmino(object: StateAmino): State; toAmino(message: State): StateAmino; fromAminoMsg(object: StateAminoMsg): State; toAminoMsg(message: State): StateAminoMsg; fromProtoMsg(message: StateProtoMsg): State; toProto(message: State): Uint8Array; toProtoMsg(message: State): StateProtoMsg; };