diff --git a/src/helpers/cosmos.ts b/src/helpers/cosmos.ts index 84d7d053..f56ed166 100644 --- a/src/helpers/cosmos.ts +++ b/src/helpers/cosmos.ts @@ -27,7 +27,7 @@ import { CurrentPlanResponse, PinnedCodesResponse, IcaHostParamsResponse, - GlobalFeeMinGasPrices, + GlobalfeeParamsResponse, } from './types'; import { DEBUG_SUBMIT_TX, getContractBinary } from './env'; const adminmodule = AdminProto.adminmodule.adminmodule; @@ -65,12 +65,6 @@ export type TotalBurnedNeutronsAmountResponse = { }; }; -type GlobalfeeParams = { - minimum_gas_prices: ICoin[]; - bypass_min_fee_msg_types: string[]; - max_total_bypass_min_fee_msg_gas_usage: string; -}; - cosmosclient.codec.register( '/neutron.interchainqueries.MsgRemoveInterchainQueryRequest', neutron.interchainqueries.MsgRemoveInterchainQueryRequest, @@ -396,7 +390,7 @@ export class CosmosWrapper { } } - async queryGlobalfeeParams(): Promise { + async queryGlobalfeeParams(): Promise { const req = await axios.get( `${this.sdk.url}/gaia/globalfee/v1beta1/params`, ); diff --git a/src/helpers/types.ts b/src/helpers/types.ts index 47c64645..d0f1e4fb 100644 --- a/src/helpers/types.ts +++ b/src/helpers/types.ts @@ -266,10 +266,13 @@ export type IcaHostParamsResponse = { }; }; -export type GlobalFeeMinGasPrices = { +export type GlobalfeeParams = { minimum_gas_prices: cosmos.base.v1beta1.ICoin[]; + bypass_min_fee_msg_types: string[]; + max_total_bypass_min_fee_msg_gas_usage: string; }; + export type ContractAdminResponse = { contract_info: { admin: string;