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

Add "Expand OpenChat onto a new subnet" as a new proposal type #7084

Merged
merged 3 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/integration_tests/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ mod message_activity_tests;
mod notification_tests;
mod p2p_swap_tests;
mod pin_number_tests;
mod platform_moderator_tests;
// mod platform_moderator_tests;
mod poll_tests;
mod prize_message_tests;
mod register_user_tests;
Expand Down
21 changes: 21 additions & 0 deletions scripts/proposals/expand_onto_subnet.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

# Extract the args or use defaults
SUBNET_ID=$1
SUBNET_ID_SHORT=${SUBNET_ID:0:5}
SUMMARY="This proposal will instruct the Registry canister to expand OpenChat onto subnet [$SUBNET_ID_SHORT](https://dashboard.internetcomputer.org/subnet/$SUBNET_ID), allowing it to scale to many more users, groups and communities."

# Build the title
TITLE="Expand OpenChat onto a new subnet"

# Set current directory to the scripts root
SCRIPT=$(readlink -f "$0")
SCRIPT_DIR=$(dirname "$SCRIPT")
cd $SCRIPT_DIR/..

# add_canister args
ARGS="(record { subnet_id=principal \"$SUBNET_ID\" })"
FUNCTION_ID=7002

# Submit the proposal
./make_custom_function_proposal.sh $FUNCTION_ID "$TITLE" "$SUMMARY" "" "$ARGS"
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FUNCTION_NAME="Expand OpenChat onto a new subnet"
FUNCTION_DESC="This will instruct the Registry to expand OpenChat onto a new subnet, allowing it to scale to many more users, groups and communities"
URL="https://github.com/open-chat-labs/open-chat/blob/master/backend/canisters/registry/impl/src/updates/expand_onto_subnet.rs"
Loading