Skip to content

Commit

Permalink
cleanup 2
Browse files Browse the repository at this point in the history
  • Loading branch information
NeverHappened committed Aug 3, 2023
1 parent c16b7e3 commit 04a1c0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
10 changes: 2 additions & 8 deletions src/helpers/cosmos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {
CurrentPlanResponse,
PinnedCodesResponse,
IcaHostParamsResponse,
GlobalFeeMinGasPrices,
GlobalfeeParamsResponse,
} from './types';
import { DEBUG_SUBMIT_TX, getContractBinary } from './env';
const adminmodule = AdminProto.adminmodule.adminmodule;
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -396,7 +390,7 @@ export class CosmosWrapper {
}
}

async queryGlobalfeeParams(): Promise<GlobalfeeParams> {
async queryGlobalfeeParams(): Promise<GlobalfeeParamsResponse> {
const req = await axios.get(
`${this.sdk.url}/gaia/globalfee/v1beta1/params`,
);
Expand Down
5 changes: 4 additions & 1 deletion src/helpers/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};


Check failure on line 275 in src/helpers/types.ts

View workflow job for this annotation

GitHub Actions / Actions - lint

Delete `⏎`
export type ContractAdminResponse = {
contract_info: {
admin: string;
Expand Down

0 comments on commit 04a1c0d

Please sign in to comment.