diff --git a/src/proposal.ts b/src/proposal.ts index 103e805..2b5c0c7 100644 --- a/src/proposal.ts +++ b/src/proposal.ts @@ -27,10 +27,15 @@ export type ParamsInterchainqueriesInfo = { tx_query_removal_limit: number; }; +export type WhitelistedHook = { + code_id: number; + denom_creator: string; +}; export type ParamsTokenfactoryInfo = { denom_creation_fee: any; denom_creation_gas_consume: number; fee_collector_address: string; + whitelisted_hooks: WhitelistedHook[]; }; export type ParamsFeeburnerInfo = { @@ -312,7 +317,7 @@ export const updateInterchainqueriesParamsProposal = ( }, }); -export const updateTokenfacoryParamsProposal = ( +export const updateTokenfactoryParamsProposal = ( info: ParamsTokenfactoryInfo, ): any => ({ custom: { @@ -326,6 +331,7 @@ export const updateTokenfacoryParamsProposal = ( denom_creation_fee: info.denom_creation_fee, denom_creation_gas_consume: info.denom_creation_gas_consume, fee_collector_address: info.fee_collector_address, + whitelisted_hooks: info.whitelisted_hooks, }, }), }, @@ -366,7 +372,7 @@ export const updateTransferParamsProposal = ( signer: ADMIN_MODULE_ADDRESS, params: { send_enabled: info.send_enabled, - receive_enabled: info.receive_enabled + receive_enabled: info.receive_enabled, }, }), }, diff --git a/src/tokenfactory.ts b/src/tokenfactory.ts index 16b7023..b4025cc 100644 --- a/src/tokenfactory.ts +++ b/src/tokenfactory.ts @@ -36,8 +36,8 @@ export const msgMintDenom = async ( }); const res = await cmNeutron.execTx( { - gas_limit: Long.fromString('200000'), - amount: [{ denom: cmNeutron.chain.denom, amount: '1000' }], + gas_limit: Long.fromString('500000'), + amount: [{ denom: cmNeutron.chain.denom, amount: '2000' }], }, [packAnyMsg('/osmosis.tokenfactory.v1beta1.MsgMint', msgMint)], 10,