Skip to content

testnet with TEE support script#1803

Closed
barakeinav1 wants to merge 8 commits intomainfrom
barak/testnet_automation_v1
Closed

testnet with TEE support script#1803
barakeinav1 wants to merge 8 commits intomainfrom
barak/testnet_automation_v1

Conversation

@barakeinav1
Copy link
Copy Markdown
Contributor

@barakeinav1 barakeinav1 commented Jan 19, 2026

related #1792

related to https://github.com/near/mpc-private/issues/102

This PR adds a new, fully automated and resumable deployment script for running and scaling an MPC testnet using TEE-backed nodes on testnet.

The main script orchestrates account creation, contract deployment, node provisioning, key collection, and on-chain voting. It is phase-gated, retry-safe, and designed to be re-run after partial failures without restarting from scratch.

deployment/testnet/scripts/scale_testnet_tee.sh
End-to-end deployment and scaling script.
Handles preflight checks, NEAR account management, node deployment via tee_launcher, contract initialization, and scaling via vote_new_parameters.

deployment/testnet/scripts/node.env.tpl
Per-node environment template used by the launcher (image, ports, accounts, networking).

deployment/testnet/scripts/node.conf.tpl
Per-node runtime configuration template.

deployment/testnet/scripts/how_to_run.md
Documentation covering required variables, phase model, resume semantics, and common workflows (fresh deploy, resume, scaling).

sweep_to_treasury.sh / sweep_to_treasury_RPC.sh - collecting some near to a main account to avoid used the faucet account too much. (a temporary W/A)

@barakeinav1 barakeinav1 marked this pull request as draft January 19, 2026 17:11
@netrome
Copy link
Copy Markdown
Collaborator

netrome commented Feb 20, 2026

Closing this as stale, although we might want to brush this up and merge something similar.

@netrome netrome closed this Feb 20, 2026
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