oxheadalpha / teztnets

https://teztnets.xyz
21 stars 26 forks source link
blockchain dailynet ghostnet kubernetes mondaynet testnet tezos

Teztnets

Infrastructure-as-code repo to activate and bootstrap Tezos testnets in a repeatable, automated way.

See teztnets.com for the list of active Teztnets.

Features

Based on tezos-k8s

tezos-k8s is a framework to deploy Tezos nodes or chains using Kubernetes and Helm.

See the tezos-k8s documentation

Faucet support

We support the beacon-compatible Tezos Faucet.

Injection of contracts at genesis

A collection of raw Michelson contracts can be optionally deployed in any Teztnet at genesis.

Injection of Smart Rollups at genesis

Rollups can be injected at genesis of your test chain. Teztnets supports extraction of the EVM Rollup from the Octez container, and its injection at a predetermined address.

Bootstrap baker and bootstrap p2p endpoint

Upon deployment of a Teztnet, a genesis baker will run and its p2p and rpc endpoints will be exposed externally. Example:

--network endpoint for Tezos node

Tezos nodes supports downloading of network specification from a json endpoint: octez-node config init --network https://teztnets.com/<TEZTNET NAME>

The Teztnet platform creates and exposes such endpoints.

Automate on Teztnets

You are encouraged to build automation to ensure your Tezos project keeps running with the future versions of Tezos shell and/or protocol.

This endpoint lists the current active testnets: https://teztnets.com/teztnets.json

Add new Teztnets or modify existing Teztnets

Each Teztnet is defined within a subdirectory of the /networks directory in this repository. The Teztnet directory must contain the following files:

Helm chart values.yaml

The Helm chart values.yaml lets you customize your chain in many ways:

Look in any Teztnet directory's values.yaml file in /networks for reference as to how to configure your own Teztnet.

The default Helm values.yaml has details on every possible way to customize your teztnet.

Teztnets.com website

The website is created with Jekyll from Markdown files generated from Jinja templates based on Pulumi outputs.

To build the website locally, from the top-level dir of the repo:

  1. run pulumi stack output networks > networks.json
  2. run pulumi stack output teztnets > teztnets.json
  3. run python teztnets_xyz_page/release.py
  4. cd target/release
  5. run bundle install
  6. run bundle exec jekyll serve

The website will be rendered on localhost:4000.