From 0d7f29f1f77df8dd2ee730ca4bcac7047500a88b Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Thu, 20 Jun 2024 03:08:02 -0400 Subject: [PATCH 1/5] add whitelisted_denoms to updateTokenfactoryParamsProposal --- src/proposal.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/proposal.ts b/src/proposal.ts index 103e805..b291869 100644 --- a/src/proposal.ts +++ b/src/proposal.ts @@ -27,10 +27,15 @@ export type ParamsInterchainqueriesInfo = { tx_query_removal_limit: number; }; +export type WhitelistedDenom = { + code_id: number; + denom_creator: string; +}; export type ParamsTokenfactoryInfo = { denom_creation_fee: any; denom_creation_gas_consume: number; fee_collector_address: string; + whitelisted_denoms: WhitelistedDenom[]; }; 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_denoms: info.whitelisted_denoms, }, }), }, @@ -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, }, }), }, From d01b8196d36ed11d22be6d933df9ef2ba2175f82 Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Thu, 20 Jun 2024 19:55:05 -0400 Subject: [PATCH 2/5] fix typo --- src/proposal.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/proposal.ts b/src/proposal.ts index b291869..2b5c0c7 100644 --- a/src/proposal.ts +++ b/src/proposal.ts @@ -27,7 +27,7 @@ export type ParamsInterchainqueriesInfo = { tx_query_removal_limit: number; }; -export type WhitelistedDenom = { +export type WhitelistedHook = { code_id: number; denom_creator: string; }; @@ -35,7 +35,7 @@ export type ParamsTokenfactoryInfo = { denom_creation_fee: any; denom_creation_gas_consume: number; fee_collector_address: string; - whitelisted_denoms: WhitelistedDenom[]; + whitelisted_hooks: WhitelistedHook[]; }; export type ParamsFeeburnerInfo = { @@ -331,7 +331,7 @@ export const updateTokenfactoryParamsProposal = ( denom_creation_fee: info.denom_creation_fee, denom_creation_gas_consume: info.denom_creation_gas_consume, fee_collector_address: info.fee_collector_address, - whitelisted_denoms: info.whitelisted_denoms, + whitelisted_hooks: info.whitelisted_hooks, }, }), }, From 31730ea4456a95530c4b2967719fc1cfc7cba13e Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Thu, 20 Jun 2024 20:42:12 -0400 Subject: [PATCH 3/5] pass whitelisted_hooks as `any` --- src/proposal.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proposal.ts b/src/proposal.ts index 2b5c0c7..af4596b 100644 --- a/src/proposal.ts +++ b/src/proposal.ts @@ -35,7 +35,7 @@ export type ParamsTokenfactoryInfo = { denom_creation_fee: any; denom_creation_gas_consume: number; fee_collector_address: string; - whitelisted_hooks: WhitelistedHook[]; + whitelisted_hooks: any; }; export type ParamsFeeburnerInfo = { From 891da6c41e0801fa8e5422d166c835df5f41eef8 Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Tue, 25 Jun 2024 17:15:00 -0400 Subject: [PATCH 4/5] review fix: Use explicit type for whitelisted_hooks --- src/proposal.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proposal.ts b/src/proposal.ts index af4596b..2b5c0c7 100644 --- a/src/proposal.ts +++ b/src/proposal.ts @@ -35,7 +35,7 @@ export type ParamsTokenfactoryInfo = { denom_creation_fee: any; denom_creation_gas_consume: number; fee_collector_address: string; - whitelisted_hooks: any; + whitelisted_hooks: WhitelistedHook[]; }; export type ParamsFeeburnerInfo = { From bcad3b0dc674ad54a63556863515e6832cebed5d Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Tue, 2 Jul 2024 10:38:15 -0400 Subject: [PATCH 5/5] increase gas for tokenfactory mint --- src/tokenfactory.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,