Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: icq MaxKvQueryKeysCount and MaxTransactionsFilters gov gated #NTRN-364 #50

Merged
merged 13 commits into from
Sep 2, 2024
19 changes: 17 additions & 2 deletions src/dao.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1387,13 +1387,28 @@ export class DaoMember {
chainManagerAddress: string,
title: string,
description: string,
message: ParamsInterchainqueriesInfo,
params: ParamsInterchainqueriesInfo,
amount: string,
): Promise<number> {
const message = chainManagerWrapper(chainManagerAddress, {
custom: {
submit_admin_proposal: {
admin_proposal: {
proposal_execute_message: {
message: JSON.stringify({
'@type': '/neutron.interchainqueries.MsgUpdateParams',
authority: ADMIN_MODULE_ADDRESS,
params,
}),
},
},
},
},
});
return await this.submitSingleChoiceProposal(
title,
description,
[chainManagerWrapper(chainManagerAddress, message)],
[message],
amount,
);
}
Expand Down
4 changes: 3 additions & 1 deletion src/proposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ export type ParamsInterchaintxsInfo = {

export type ParamsInterchainqueriesInfo = {
query_submit_timeout: number;
query_deposit: null;
query_deposit: Coin[];
tx_query_removal_limit: number;
max_kv_query_keys_count: number;
max_transactions_filters: number;
};

export type WhitelistedHook = {
Expand Down