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(ic-nervous-system-agent): Add submit_proposal helper #3451

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

anchpop
Copy link
Contributor

@anchpop anchpop commented Jan 14, 2025

Submitting proposals is a common pattern within the nervous system integration tests, and we will soon be doing it even more within the SNS CLI. So it makes sense to have a helper function for it in ic-nervous-system-agent.

There is one nuance to this. ic_agent::Agent stores the identity of the sender within it. But pocketic functions take the sender as an argument. Previously, in ic-nervous-system-agent, we just assumed the sender would always be the anonymous principal, but obviously this won't work for submitting proposals. So this PR also introduces a way to specify the sender for pocketic through the new PocketIcAgent type.

@anchpop anchpop requested a review from a team as a code owner January 14, 2025 21:03
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

If this pull request affects the behavior of any canister owned by
the Governance team, remember to update the corresponding
unreleased_changes.md file(s).

To acknowldge this reminder (and unblock the PR), dismiss this
code review by going to the bottom of the pull request page, and
supply one of the following reasons:

  1. Done.

  2. No canister behavior changes.

@anchpop anchpop changed the title Add submit_proposal to ic-nervous-system-agent feat(ic-nervous-system-agent): Add submit_proposal to ic-nervous-system-agent Jan 14, 2025
@anchpop anchpop dismissed github-actions[bot]’s stale review January 14, 2025 21:03

No canister behavior changes

@github-actions github-actions bot added the feat label Jan 14, 2025
@anchpop anchpop changed the title feat(ic-nervous-system-agent): Add submit_proposal to ic-nervous-system-agent feat(ic-nervous-system-agent): Add submit_proposal helper Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant