Skip to content

feat(cosmwasm): add execute-contract command#1327

Open
AttissNgo wants to merge 4 commits into
mainfrom
feat/add-execute-contract-message-command
Open

feat(cosmwasm): add execute-contract command#1327
AttissNgo wants to merge 4 commits into
mainfrom
feat/add-execute-contract-message-command

Conversation

@AttissNgo

@AttissNgo AttissNgo commented Dec 24, 2025

Copy link
Copy Markdown
Contributor

Adds a CLI command to execute messages by governance (replaces the deleted executeByGovernance from submit-proposal.js)


Note

Adds governance execution CLI and updates docs

  • Introduces execute-contract command in cosmwasm/contract.ts that validates inputs (contractName, msg, title, description) and calls executeByGovernance; wired into the CLI with appropriate amplifier/proposal options
  • Minor refactors around execution helpers; no changes to existing flows beyond adding the new command
  • Updates releases/cosmwasm/2025-11-...Role-Transfers-Release-v1.0.0.md to replace submit-proposal.js executeByGovernance usage with contract.ts execute-contract, adjust scripts accordingly, and fix table/list formatting

Written by Cursor Bugbot for commit 246b3b5. This will update automatically on new commits. Configure here.

@AttissNgo AttissNgo requested a review from a team as a code owner December 24, 2025 17:51
Comment thread cosmwasm/contract.ts Outdated
Comment thread cosmwasm/contract.ts Outdated

@kulikthebird kulikthebird left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left one comment

Comment thread cosmwasm/contract.ts
printInfo('Migration completed. Transaction hash', transactionHash);
};

const executeContractViaGovernance = async (

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a plan to add a direct execution for a contract, too? Currently other methods has --governance option to send proposal instead of sending direct msg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants