mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-02 17:31:39 +00:00
@@ -0,0 +1,192 @@
|
||||
# Sonr Starship Network Configurations
|
||||
|
||||
This directory contains Starship configurations for deploying Sonr blockchain networks in Kubernetes environments.
|
||||
|
||||
## Networks
|
||||
|
||||
### 🛠️ Devnet (`chains/devnet/`)
|
||||
|
||||
**Single-node development network for testing and development**
|
||||
|
||||
- **Purpose**: Local development and testing
|
||||
- **Validators**: 1 node
|
||||
- **Chain ID**: `sonr-1`
|
||||
- **Features**: Basic faucet, explorer, minimal resources
|
||||
- **Use case**: Development, debugging, feature testing
|
||||
|
||||
### 🌐 Testnet (`chains/testnet/`)
|
||||
|
||||
**Multi-node production-ready testnet**
|
||||
|
||||
- **Purpose**: Public testnet for user testing and staging
|
||||
- **Validators**: 4 nodes
|
||||
- **Chain ID**: `sonr-1`
|
||||
- **Features**: Production faucet, explorer, ingress, SSL certificates
|
||||
- **Use case**: User testing, staging, pre-production validation
|
||||
- **Domain**: `*.sonr.land` with Cloudflare SSL
|
||||
|
||||
## Prerequisites
|
||||
|
||||
### Install Devbox
|
||||
|
||||
```bash
|
||||
curl -fsSL https://get.jetify.com/devbox | bash
|
||||
```
|
||||
|
||||
### Install Required Tools
|
||||
|
||||
Devbox will automatically install:
|
||||
|
||||
- `starship` - Kubernetes deployment tool
|
||||
- `kubectl` - Kubernetes CLI
|
||||
- `helm` - Kubernetes package manager
|
||||
|
||||
## Quick Start
|
||||
|
||||
### Start Devnet (Single Node)
|
||||
|
||||
```bash
|
||||
# Start devnet (default)
|
||||
make start
|
||||
|
||||
# Or explicitly
|
||||
make start NETWORK=devnet
|
||||
```
|
||||
|
||||
### Start Testnet (4 Nodes + Production Features)
|
||||
|
||||
```bash
|
||||
make start NETWORK=testnet
|
||||
```
|
||||
|
||||
### Stop Networks
|
||||
|
||||
```bash
|
||||
# Stop current network
|
||||
make stop
|
||||
|
||||
# Stop specific network
|
||||
make stop NETWORK=testnet
|
||||
```
|
||||
|
||||
### Restart Networks
|
||||
|
||||
```bash
|
||||
# Restart current network
|
||||
make restart
|
||||
|
||||
# Restart specific network
|
||||
make restart NETWORK=testnet
|
||||
```
|
||||
|
||||
## Network Configuration Details
|
||||
|
||||
### Devnet Configuration
|
||||
|
||||
- **Image**: `ghcr.io/sonr-io/snrd:latest`
|
||||
- **Validators**: 1
|
||||
- **Resources**: Minimal (for local development)
|
||||
- **Faucet**: Basic CosmJS faucet
|
||||
- **Explorer**: Ping Pub on port 8080
|
||||
|
||||
### Testnet Configuration
|
||||
|
||||
- **Image**: `ghcr.io/sonr-io/snrd:latest`
|
||||
- **Validators**: 4 (production consensus)
|
||||
- **Resources**: 2 CPU, 4GB RAM per validator
|
||||
- **Faucet**: Production CosmJS faucet (5 concurrency, 1GB RAM)
|
||||
- **Explorer**: Ping Pub on port 8080
|
||||
- **Ingress**: Nginx with `*.sonr.land` domain and Cloudflare SSL
|
||||
- **Security**: Pod security contexts for Kubernetes permissions
|
||||
|
||||
## Chain Parameters
|
||||
|
||||
Both networks use Sonr's custom configuration:
|
||||
|
||||
- **Base Denom**: `snr`
|
||||
- **Micro Denom**: `usnr` (primary)
|
||||
- **Account Allocation**: `100000000000000000000000000000000usnr` (massive amounts for custom DefaultPowerReduction)
|
||||
- **Minimum Validator Stake**: Meets Sonr's custom `DefaultPowerReduction` of ~275 billion
|
||||
|
||||
## Port Mapping
|
||||
|
||||
When networks are running, the following ports are forwarded:
|
||||
|
||||
- **RPC**: `26657` - Tendermint RPC
|
||||
- **REST**: `1317` - Cosmos REST API
|
||||
- **gRPC**: `9090` - Cosmos gRPC
|
||||
- **Faucet**: `8001` (devnet) / `8001` (testnet)
|
||||
- **Explorer**: `8080` - Ping Pub interface
|
||||
|
||||
## Scripts
|
||||
|
||||
Both networks include custom initialization scripts:
|
||||
|
||||
- `scripts/create-genesis.sh` - Creates genesis with proper validator amounts
|
||||
- `scripts/update-genesis.sh` - Updates genesis parameters for Sonr modules
|
||||
|
||||
## Development Workflow
|
||||
|
||||
### Local Development
|
||||
|
||||
```bash
|
||||
# Start devnet for development
|
||||
make start
|
||||
|
||||
# Access services
|
||||
curl http://localhost:26657/status
|
||||
curl http://localhost:1317/cosmos/base/tendermint/v1beta1/node_info
|
||||
open http://localhost:8080 # Explorer
|
||||
```
|
||||
|
||||
### Testing with Testnet
|
||||
|
||||
```bash
|
||||
# Start production-like testnet
|
||||
make start NETWORK=testnet
|
||||
|
||||
# Test with multiple validators
|
||||
# Access via same ports or ingress (if configured)
|
||||
```
|
||||
|
||||
### Clean Up
|
||||
|
||||
```bash
|
||||
# Stop network
|
||||
make stop
|
||||
|
||||
# Or stop specific network
|
||||
make stop NETWORK=testnet
|
||||
```
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
### Check Network Status
|
||||
|
||||
```bash
|
||||
kubectl get pods
|
||||
kubectl logs devnet-genesis-0 # or testnet-genesis-0
|
||||
```
|
||||
|
||||
### Common Issues
|
||||
|
||||
1. **Permission Errors**: Both configs include `podSecurityContext` to handle volume permissions
|
||||
2. **Validator Start Issues**: Large coin amounts ensure validators meet minimum delegation requirements
|
||||
3. **Resource Constraints**: Testnet requires more resources than devnet
|
||||
|
||||
## Extending
|
||||
|
||||
To add a new network:
|
||||
|
||||
1. Create `chains/newnetwork/` directory
|
||||
2. Add `config.yaml` with Starship configuration
|
||||
3. Add `devbox.json` with required tools
|
||||
4. Create custom scripts in `scripts/` if needed
|
||||
5. Use `make start NETWORK=newnetwork`
|
||||
|
||||
## Documentation
|
||||
|
||||
- [Starship Documentation](https://docs.cosmology.zone/starship)
|
||||
- [Cosmos SDK Documentation](https://docs.cosmos.network)
|
||||
- [Sonr Documentation](https://sonr.dev)
|
||||
|
||||
@@ -0,0 +1,481 @@
|
||||
{
|
||||
"name": "sonr-e2e-test",
|
||||
"type": "starship",
|
||||
"chains": [
|
||||
{
|
||||
"name": "sonr-1",
|
||||
"chain_id": "sonrtest_1-1",
|
||||
"docker_image": {
|
||||
"repository": "sonr",
|
||||
"version": "local",
|
||||
"uid-gid": ""
|
||||
},
|
||||
"gas_prices": "0.0usnr",
|
||||
"gas_adjustment": 2,
|
||||
"genesis": {
|
||||
"modify": [
|
||||
{
|
||||
"key": "app_state.gov.deposit_params.min_deposit.0.denom",
|
||||
"value": "usnr"
|
||||
},
|
||||
{
|
||||
"key": "app_state.gov.deposit_params.min_deposit.0.amount",
|
||||
"value": "10000000"
|
||||
},
|
||||
{
|
||||
"key": "app_state.gov.deposit_params.max_deposit_period",
|
||||
"value": "300s"
|
||||
},
|
||||
{
|
||||
"key": "app_state.gov.voting_params.voting_period",
|
||||
"value": "300s"
|
||||
},
|
||||
{
|
||||
"key": "app_state.gov.tally_params.quorum",
|
||||
"value": "0.334"
|
||||
},
|
||||
{
|
||||
"key": "app_state.gov.tally_params.threshold",
|
||||
"value": "0.5"
|
||||
},
|
||||
{
|
||||
"key": "app_state.gov.tally_params.veto_threshold",
|
||||
"value": "0.334"
|
||||
},
|
||||
{
|
||||
"key": "app_state.mint.minter.inflation",
|
||||
"value": "0.130000000000000000"
|
||||
},
|
||||
{
|
||||
"key": "app_state.mint.minter.annual_provisions",
|
||||
"value": "0.000000000000000000"
|
||||
},
|
||||
{
|
||||
"key": "app_state.mint.params.inflation_rate_change",
|
||||
"value": "0.130000000000000000"
|
||||
},
|
||||
{
|
||||
"key": "app_state.mint.params.inflation_max",
|
||||
"value": "0.200000000000000000"
|
||||
},
|
||||
{
|
||||
"key": "app_state.mint.params.inflation_min",
|
||||
"value": "0.070000000000000000"
|
||||
},
|
||||
{
|
||||
"key": "app_state.mint.params.goal_bonded",
|
||||
"value": "0.670000000000000000"
|
||||
},
|
||||
{
|
||||
"key": "app_state.mint.params.blocks_per_year",
|
||||
"value": "6311520"
|
||||
},
|
||||
{
|
||||
"key": "app_state.staking.params.unbonding_time",
|
||||
"value": "1814400s"
|
||||
},
|
||||
{
|
||||
"key": "app_state.slashing.params.downtime_jail_duration",
|
||||
"value": "600s"
|
||||
},
|
||||
{
|
||||
"key": "app_state.slashing.params.signed_blocks_window",
|
||||
"value": "100"
|
||||
},
|
||||
{
|
||||
"key": "app_state.slashing.params.min_signed_per_window",
|
||||
"value": "0.500000000000000000"
|
||||
},
|
||||
{
|
||||
"key": "app_state.bank.denom_metadata",
|
||||
"value": [
|
||||
{
|
||||
"name": "SNR",
|
||||
"symbol": "SNR",
|
||||
"base": "usnr",
|
||||
"display": "snr",
|
||||
"description": "The native staking token of the Sonr network",
|
||||
"denom_units": [
|
||||
{
|
||||
"denom": "usnr",
|
||||
"exponent": 0,
|
||||
"aliases": ["microsnr"]
|
||||
},
|
||||
{
|
||||
"denom": "msnr",
|
||||
"exponent": 3,
|
||||
"aliases": ["millisnr"]
|
||||
},
|
||||
{
|
||||
"denom": "snr",
|
||||
"exponent": 6,
|
||||
"aliases": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "TEST",
|
||||
"symbol": "TEST",
|
||||
"base": "test",
|
||||
"display": "test",
|
||||
"description": "Test token for E2E testing",
|
||||
"denom_units": [
|
||||
{
|
||||
"denom": "test",
|
||||
"exponent": 0,
|
||||
"aliases": []
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"accounts": [
|
||||
{
|
||||
"name": "validator",
|
||||
"amount": "100000000000usnr,1000000000test",
|
||||
"address": "idx1fcqk3crpnyvyhtd4jepsnx5eat5ehc920epq29",
|
||||
"mnemonic": "notice oak worry limit wrap speak medal online prefer cluster roof addict wrist behave treat actual wasp year salad speed social layer crew genius"
|
||||
},
|
||||
{
|
||||
"name": "acc0",
|
||||
"amount": "10000000000usnr,100000000test",
|
||||
"address": "idx13a6zjh96w9z9y2defkktdc6vn4r5h3s7jwxuam",
|
||||
"mnemonic": "decorate bright ozone fork gallery riot bus exhaust worth way bone indoor calm squirrel merry zero scheme cotton until shop any excess stage laundry"
|
||||
},
|
||||
{
|
||||
"name": "acc1",
|
||||
"amount": "10000000000usnr,100000000test",
|
||||
"address": "idx1xehj0xc24k2c740jslfyd4d6mt8c4dczgntqhg",
|
||||
"mnemonic": "wealth flavor believe regret funny network recall kiss grape useless pepper cram hint member few certain unveil rather brick bargain curious require crowd raise"
|
||||
},
|
||||
{
|
||||
"name": "faucet",
|
||||
"amount": "50000000000usnr,500000000test",
|
||||
"address": "idx1qw78v0s5p3h9ypqz2z9q5z38q3q5q3q5q3q5",
|
||||
"mnemonic": "poverty insane bread margin sample eager anchor cloth goddess piano require exclude ignore gate tornado puzzle bronze strike promote truly wild belt sadness"
|
||||
},
|
||||
{
|
||||
"name": "user0",
|
||||
"amount": "1000000usnr,100000test",
|
||||
"address": "idx1jyq30438zx0g4urancle25r6tk5td6pgeytpfu",
|
||||
"mnemonic": "love group axis climb enlist evoke cactus sentence mule virtual dose river pepper path chapter ridge merry glow parent swear famous milk two raw"
|
||||
},
|
||||
{
|
||||
"name": "user1",
|
||||
"amount": "1000000usnr,100000test",
|
||||
"address": "idx1wz5qn36kdakkqunkvwuuvpr2l4amd7y0m3qdq6",
|
||||
"mnemonic": "sight buffalo monitor immune awake proof keen help connect steak attack trophy try day know wheel soon gesture switch poverty imitate weird bargain resist"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_file_overrides": [
|
||||
{
|
||||
"file": "config/app.toml",
|
||||
"paths": {
|
||||
"api.enable": true,
|
||||
"api.enabled-unsafe-cors": true,
|
||||
"api.address": "tcp://0.0.0.0:1317",
|
||||
"grpc.enable": true,
|
||||
"grpc.address": "0.0.0.0:9090"
|
||||
}
|
||||
},
|
||||
{
|
||||
"file": "config/config.toml",
|
||||
"paths": {
|
||||
"rpc.laddr": "tcp://0.0.0.0:26657",
|
||||
"rpc.cors_allowed_origins": ["*"],
|
||||
"p2p.laddr": "tcp://0.0.0.0:26656",
|
||||
"consensus.timeout_propose": "1s",
|
||||
"consensus.timeout_propose_delta": "500ms",
|
||||
"consensus.timeout_prevote": "1s",
|
||||
"consensus.timeout_prevote_delta": "500ms",
|
||||
"consensus.timeout_precommit": "1s",
|
||||
"consensus.timeout_precommit_delta": "500ms",
|
||||
"consensus.timeout_commit": "1s"
|
||||
}
|
||||
}
|
||||
],
|
||||
"number_vals": 2,
|
||||
"number_node": 1,
|
||||
"chain_type": "cosmos",
|
||||
"coin_type": 60,
|
||||
"binary": "snrd",
|
||||
"bech32_prefix": "idx",
|
||||
"denom": "usnr",
|
||||
"trusting_period": "336h",
|
||||
"debugging": false,
|
||||
"block_time": "1000ms",
|
||||
"host_port_override": {
|
||||
"1317": "1317",
|
||||
"9090": "9090",
|
||||
"26656": "26656",
|
||||
"26657": "26657"
|
||||
},
|
||||
"ics_version_override": {}
|
||||
},
|
||||
{
|
||||
"name": "sonr-2",
|
||||
"chain_id": "sonrtest_2-1",
|
||||
"docker_image": {
|
||||
"repository": "sonr",
|
||||
"version": "local",
|
||||
"uid-gid": ""
|
||||
},
|
||||
"gas_prices": "0.0usnr",
|
||||
"gas_adjustment": 2,
|
||||
"genesis": {
|
||||
"modify": [
|
||||
{
|
||||
"key": "app_state.gov.deposit_params.min_deposit.0.denom",
|
||||
"value": "usnr"
|
||||
},
|
||||
{
|
||||
"key": "app_state.gov.deposit_params.min_deposit.0.amount",
|
||||
"value": "10000000"
|
||||
},
|
||||
{
|
||||
"key": "app_state.gov.deposit_params.max_deposit_period",
|
||||
"value": "300s"
|
||||
},
|
||||
{
|
||||
"key": "app_state.gov.voting_params.voting_period",
|
||||
"value": "300s"
|
||||
},
|
||||
{
|
||||
"key": "app_state.slashing.params.downtime_jail_duration",
|
||||
"value": "600s"
|
||||
},
|
||||
{
|
||||
"key": "app_state.bank.denom_metadata",
|
||||
"value": [
|
||||
{
|
||||
"name": "SNR",
|
||||
"symbol": "SNR",
|
||||
"base": "usnr",
|
||||
"display": "snr",
|
||||
"description": "The native staking token of the Sonr network",
|
||||
"denom_units": [
|
||||
{
|
||||
"denom": "usnr",
|
||||
"exponent": 0,
|
||||
"aliases": ["microsnr"]
|
||||
},
|
||||
{
|
||||
"denom": "msnr",
|
||||
"exponent": 3,
|
||||
"aliases": ["millisnr"]
|
||||
},
|
||||
{
|
||||
"denom": "snr",
|
||||
"exponent": 6,
|
||||
"aliases": []
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"accounts": [
|
||||
{
|
||||
"name": "validator",
|
||||
"amount": "100000000000usnr",
|
||||
"address": "idx1qtqrz96sjxzqx3czeyc8jz3fhxpk9h3t5gzz26",
|
||||
"mnemonic": "figure web rescue rice quantum sustain alert citizen woman cable wasp eyebrow monster teach hockey giant monitor hero oblige picnic ball never lamp"
|
||||
},
|
||||
{
|
||||
"name": "acc0",
|
||||
"amount": "10000000000usnr",
|
||||
"address": "idx1gsl7qnwxpxsqeax4p2zeqruqshgd4jccwzstks",
|
||||
"mnemonic": "pig pistol model float oven opinion pledge hammer spike knock resemble finger casual canoe earth pink school hope seed put steel memory view welcome"
|
||||
},
|
||||
{
|
||||
"name": "acc1",
|
||||
"amount": "10000000000usnr",
|
||||
"address": "idx185g8yc7k0g4frv4q5mhqrcujgswnch0uu7dkgk",
|
||||
"mnemonic": "random sustain abstract wisdom quiz must awkward waste throw found either raven fruit where mansion universe smooth slush clip skill drum filter mountain rug"
|
||||
},
|
||||
{
|
||||
"name": "faucet",
|
||||
"amount": "50000000000usnr",
|
||||
"address": "idx1jtq4ndm9zxqpx5vxyh4zfhq5xdxh5xh5xh5",
|
||||
"mnemonic": "cannon forest slice lazy hungry trial antenna purchase debate foster raccoon wing custom tone beach purchase rookie captain dutch clutch grid salute dune"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_file_overrides": [
|
||||
{
|
||||
"file": "config/app.toml",
|
||||
"paths": {
|
||||
"api.enable": true,
|
||||
"api.enabled-unsafe-cors": true,
|
||||
"api.address": "tcp://0.0.0.0:1318",
|
||||
"grpc.enable": true,
|
||||
"grpc.address": "0.0.0.0:9091"
|
||||
}
|
||||
},
|
||||
{
|
||||
"file": "config/config.toml",
|
||||
"paths": {
|
||||
"rpc.laddr": "tcp://0.0.0.0:26658",
|
||||
"rpc.cors_allowed_origins": ["*"],
|
||||
"p2p.laddr": "tcp://0.0.0.0:26659",
|
||||
"consensus.timeout_propose": "1s",
|
||||
"consensus.timeout_prevote": "1s",
|
||||
"consensus.timeout_precommit": "1s",
|
||||
"consensus.timeout_commit": "1s"
|
||||
}
|
||||
}
|
||||
],
|
||||
"number_vals": 2,
|
||||
"number_node": 1,
|
||||
"chain_type": "cosmos",
|
||||
"coin_type": 60,
|
||||
"binary": "snrd",
|
||||
"bech32_prefix": "idx",
|
||||
"denom": "usnr",
|
||||
"trusting_period": "336h",
|
||||
"debugging": false,
|
||||
"block_time": "1000ms",
|
||||
"host_port_override": {
|
||||
"1318": "1318",
|
||||
"9091": "9091",
|
||||
"26658": "26658",
|
||||
"26659": "26659"
|
||||
},
|
||||
"ics_version_override": {}
|
||||
}
|
||||
],
|
||||
"relayers": [
|
||||
{
|
||||
"name": "hermes",
|
||||
"type": "hermes",
|
||||
"replicas": 1,
|
||||
"docker_image": {
|
||||
"repository": "ghcr.io/cosmology-tech/starship/hermes",
|
||||
"version": "v1.8.0"
|
||||
},
|
||||
"chains": ["sonrtest_1-1", "sonrtest_2-1"],
|
||||
"config": {
|
||||
"global": {
|
||||
"log_level": "info"
|
||||
},
|
||||
"mode": {
|
||||
"clients": {
|
||||
"enabled": true,
|
||||
"refresh": true,
|
||||
"misbehaviour": true
|
||||
},
|
||||
"connections": {
|
||||
"enabled": true
|
||||
},
|
||||
"channels": {
|
||||
"enabled": true
|
||||
},
|
||||
"packets": {
|
||||
"enabled": true,
|
||||
"clear_interval": 100,
|
||||
"clear_on_start": true,
|
||||
"tx_confirmation": true
|
||||
}
|
||||
},
|
||||
"telemetry": {
|
||||
"enabled": false
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"services": [
|
||||
{
|
||||
"name": "faucet",
|
||||
"type": "faucet",
|
||||
"replicas": 1,
|
||||
"docker_image": {
|
||||
"repository": "ghcr.io/cosmology-tech/starship/faucet",
|
||||
"version": "latest"
|
||||
},
|
||||
"ports": {
|
||||
"rest": 8000
|
||||
},
|
||||
"config": {
|
||||
"chains": [
|
||||
{
|
||||
"chain_id": "sonrtest_1-1",
|
||||
"denom": "usnr",
|
||||
"rpc_endpoint": "http://sonr-1-validator-0:26657",
|
||||
"grpc_endpoint": "sonr-1-validator-0:9090",
|
||||
"faucet_address": "idx1qw78v0s5p3h9ypqz2z9q5z38q3q5q3q5q3q5",
|
||||
"faucet_mnemonic": "poverty insane bread margin sample eager anchor cloth goddess piano require exclude ignore gate tornado puzzle bronze strike promote truly wild belt sadness",
|
||||
"credit_amount": "10000000",
|
||||
"max_credit": "100000000"
|
||||
},
|
||||
{
|
||||
"chain_id": "sonrtest_2-1",
|
||||
"denom": "usnr",
|
||||
"rpc_endpoint": "http://sonr-2-validator-0:26658",
|
||||
"grpc_endpoint": "sonr-2-validator-0:9091",
|
||||
"faucet_address": "idx1jtq4ndm9zxqpx5vxyh4zfhq5xdxh5xh5xh5",
|
||||
"faucet_mnemonic": "cannon forest slice lazy hungry trial antenna purchase debate foster raccoon wing custom tone beach purchase rookie captain dutch clutch grid salute dune",
|
||||
"credit_amount": "10000000",
|
||||
"max_credit": "100000000"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "registry",
|
||||
"type": "registry",
|
||||
"replicas": 1,
|
||||
"docker_image": {
|
||||
"repository": "ghcr.io/cosmology-tech/starship/registry",
|
||||
"version": "latest"
|
||||
},
|
||||
"ports": {
|
||||
"rest": 8081
|
||||
},
|
||||
"config": {
|
||||
"chains": [
|
||||
{
|
||||
"chain_id": "sonrtest_1-1",
|
||||
"resources": {
|
||||
"rest": "http://sonr-1-validator-0:1317",
|
||||
"rpc": "http://sonr-1-validator-0:26657",
|
||||
"grpc": "sonr-1-validator-0:9090"
|
||||
}
|
||||
},
|
||||
{
|
||||
"chain_id": "sonrtest_2-1",
|
||||
"resources": {
|
||||
"rest": "http://sonr-2-validator-0:1318",
|
||||
"rpc": "http://sonr-2-validator-0:26658",
|
||||
"grpc": "sonr-2-validator-0:9091"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "explorer",
|
||||
"type": "explorer",
|
||||
"replicas": 1,
|
||||
"docker_image": {
|
||||
"repository": "ghcr.io/cosmology-tech/starship/explorer",
|
||||
"version": "latest"
|
||||
},
|
||||
"ports": {
|
||||
"rest": 8080
|
||||
},
|
||||
"config": {
|
||||
"chains": ["sonrtest_1-1", "sonrtest_2-1"]
|
||||
}
|
||||
}
|
||||
],
|
||||
"ibc_paths": ["sonrtest_1-1_sonrtest_2-1"],
|
||||
"port_ranges": {
|
||||
"exposer": [30000, 31000],
|
||||
"rest": [1317, 1320],
|
||||
"grpc": [9090, 9100],
|
||||
"rpc": [26657, 26670],
|
||||
"p2p": [26656, 26670]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"display": {
|
||||
"name": "Sonr",
|
||||
"description": "Sonr is a peer-to-peer identity and asset management system powered by the Cosmos SDK, combining DID documents, WebAuthn, and IPFS for secure, portable decentralized identity.",
|
||||
"links": {
|
||||
"logo": "https://raw.githubusercontent.com/sonr-io/sonr/main/logo.png",
|
||||
"discord": "https://discord.gg/sonr",
|
||||
"email": "hello@sonr.io",
|
||||
"github": "https://github.com/sonr-io/sonr",
|
||||
"telegram": "https://t.me/sonr",
|
||||
"twitter": "https://twitter.com/sonr_io",
|
||||
"website": "https://sonr.io",
|
||||
"whitepaper": "https://whitepaper.sonr.io"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/cosmos/chain-registry/master/chain.schema.json",
|
||||
"chain_name": "sonr",
|
||||
"chain_type": "eip155",
|
||||
"status": "upcoming",
|
||||
"website": "https://sonr.io",
|
||||
"network_type": "testnet",
|
||||
"pretty_name": "Sonr",
|
||||
"chain_id": "sonr-testnet-1",
|
||||
"bech32_prefix": "idx",
|
||||
"daemon_name": "snrd",
|
||||
"node_home": "$HOME/.sonr",
|
||||
"key_algos": ["ethsecp256k1"],
|
||||
"slip44": 60,
|
||||
"fees": {
|
||||
"fee_tokens": [
|
||||
{
|
||||
"denom": "usnr",
|
||||
"fixed_min_gas_price": 0,
|
||||
"low_gas_price": 0,
|
||||
"average_gas_price": 0.025,
|
||||
"high_gas_price": 0.04
|
||||
}
|
||||
]
|
||||
},
|
||||
"staking": {
|
||||
"staking_tokens": [
|
||||
{
|
||||
"denom": "usnr"
|
||||
}
|
||||
],
|
||||
"lock_duration": {
|
||||
"time": "1814400s"
|
||||
}
|
||||
},
|
||||
"codebase": {
|
||||
"git_repo": "https://github.com/sonr-io/sonr",
|
||||
"recommended_version": "v1.0.0",
|
||||
"compatible_versions": ["v0.9.0"],
|
||||
"cosmos_sdk_version": "0.50",
|
||||
"consensus": {
|
||||
"type": "tendermint",
|
||||
"version": "0.38"
|
||||
},
|
||||
"cosmwasm_version": "",
|
||||
"cosmwasm_enabled": true,
|
||||
"ibc_go_version": "8",
|
||||
"ics_enabled": ["ics20-1"],
|
||||
"genesis": {
|
||||
"name": "v1",
|
||||
"genesis_url": "https://github.com/sonr-io/sonr/networks/raw/main/genesis.json"
|
||||
},
|
||||
"versions": [
|
||||
{
|
||||
"name": "v1.0.0",
|
||||
"tag": "v1.0.0",
|
||||
"height": 0,
|
||||
"next_version_name": "v2",
|
||||
"consensus": {}
|
||||
}
|
||||
]
|
||||
},
|
||||
"images": [
|
||||
{
|
||||
"png": "https://raw.githubusercontent.com/sonr-io/sonr/main/logo.png",
|
||||
"theme": {
|
||||
"primary_color_hex": "#1E40AF"
|
||||
}
|
||||
}
|
||||
],
|
||||
"peers": {},
|
||||
"apis": {
|
||||
"rpc": [
|
||||
{
|
||||
"address": "http://127.0.0.1:26657",
|
||||
"provider": "localhost"
|
||||
}
|
||||
],
|
||||
"rest": [
|
||||
{
|
||||
"address": "http://127.0.0.1:1317",
|
||||
"provider": "localhost"
|
||||
}
|
||||
]
|
||||
},
|
||||
"explorers": [
|
||||
{
|
||||
"kind": "cosmos",
|
||||
"url": "https://explorer.sonr.io",
|
||||
"tx_page": "https://explorer.sonr.io/tx/${txHash}",
|
||||
"account_page": "https://explorer.sonr.io/account/${accountAddress}"
|
||||
}
|
||||
],
|
||||
"keywords": ["cosmos", "sonr"]
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"$schema": "https://github.com/cosmos/chain-registry/blob/master/assetlist.schema.json",
|
||||
"chain_name": "sonr",
|
||||
"assets": [
|
||||
{
|
||||
"description": "The native token of Sonr",
|
||||
"denom_units": [
|
||||
{
|
||||
"denom": "usnr",
|
||||
"exponent": 0
|
||||
},
|
||||
{
|
||||
"denom": "snr",
|
||||
"exponent": 6
|
||||
}
|
||||
],
|
||||
"base": "usnr",
|
||||
"name": "Sonr",
|
||||
"display": "snr",
|
||||
"symbol": "SNR",
|
||||
"logo_URIs": {
|
||||
"png": "https://raw.githubusercontent.com/sonr-io/sonr/main/logo.png",
|
||||
"svg": "https://raw.githubusercontent.com/sonr-io/sonr/main/logo.svg"
|
||||
},
|
||||
"images": [
|
||||
{
|
||||
"png": "https://raw.githubusercontent.com/sonr-io/sonr/main/logo.png",
|
||||
"svg": "https://raw.githubusercontent.com/sonr-io/sonr/main/logo.svg",
|
||||
"theme": {
|
||||
"primary_color_hex": "#1E40AF"
|
||||
}
|
||||
}
|
||||
],
|
||||
"socials": {
|
||||
"website": "https://sonr.io",
|
||||
"twitter": "https://x.com/sonr_io"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Executable
+186
@@ -0,0 +1,186 @@
|
||||
{
|
||||
"chains": [
|
||||
{
|
||||
"name": "sonr",
|
||||
"chain_id": "sonr-testnet-1",
|
||||
"docker_image": {
|
||||
"repository": "sonr",
|
||||
"version": "local",
|
||||
"uid-gid": ""
|
||||
},
|
||||
"gas_prices": "0.0snr",
|
||||
"gas_adjustment": 2,
|
||||
"genesis": {
|
||||
"modify": [
|
||||
{
|
||||
"key": "app_state.gov.deposit_params.min_deposit.0.denom",
|
||||
"value": "usnr"
|
||||
},
|
||||
{
|
||||
"key": "app_state.gov.deposit_params.min_deposit.0.amount",
|
||||
"value": "10000000000"
|
||||
},
|
||||
{
|
||||
"key": "app_state.gov.deposit_params.max_deposit_period",
|
||||
"value": "604800s"
|
||||
},
|
||||
{
|
||||
"key": "app_state.gov.voting_params.voting_period",
|
||||
"value": "1209600s"
|
||||
},
|
||||
{
|
||||
"key": "app_state.gov.tally_params.quorum",
|
||||
"value": "0.40"
|
||||
},
|
||||
{
|
||||
"key": "app_state.gov.tally_params.threshold",
|
||||
"value": "0.51"
|
||||
},
|
||||
{
|
||||
"key": "app_state.gov.tally_params.veto_threshold",
|
||||
"value": "0.334"
|
||||
}
|
||||
],
|
||||
"accounts": [
|
||||
{
|
||||
"name": "acc0",
|
||||
"amount": "25000000000%DENOM%",
|
||||
"address": "idx13a6zjh96w9z9y2defkktdc6vn4r5h3s7jwxuam",
|
||||
"mnemonic": "decorate bright ozone fork gallery riot bus exhaust worth way bone indoor calm squirrel merry zero scheme cotton until shop any excess stage laundry"
|
||||
},
|
||||
{
|
||||
"name": "acc1",
|
||||
"amount": "24000000000%DENOM%",
|
||||
"address": "idx1xehj0xc24k2c740jslfyd4d6mt8c4dczgntqhg",
|
||||
"mnemonic": "wealth flavor believe regret funny network recall kiss grape useless pepper cram hint member few certain unveil rather brick bargain curious require crowd raise"
|
||||
},
|
||||
{
|
||||
"name": "user0",
|
||||
"amount": "100000%DENOM%",
|
||||
"address": "idx1jyq30438zx0g4urancle25r6tk5td6pgeytpfu",
|
||||
"mnemonic": "love group axis climb enlist evoke cactus sentence mule virtual dose river pepper path chapter ridge merry glow parent swear famous milk two raw"
|
||||
},
|
||||
{
|
||||
"name": "user1",
|
||||
"amount": "100000%DENOM%",
|
||||
"address": "idx1wz5qn36kdakkqunkvwuuvpr2l4amd7y0m3qdq6",
|
||||
"mnemonic": "sight buffalo monitor immune awake proof keen help connect steak attack trophy try day know wheel soon gesture switch poverty imitate weird bargain resist"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_file_overrides": [
|
||||
{
|
||||
"file": "config/app.toml",
|
||||
"paths": {
|
||||
"api.enabled-unsafe-cors": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"file": "config/config.toml",
|
||||
"paths": {
|
||||
"rpc.cors_allowed_origins": ["*"]
|
||||
}
|
||||
}
|
||||
],
|
||||
"ibc_paths": ["sonr-testnet-1_sonr-testnet-2"],
|
||||
"number_vals": 1,
|
||||
"number_node": 0,
|
||||
"chain_type": "cosmos",
|
||||
"coin_type": 60,
|
||||
"binary": "snrd",
|
||||
"bech32_prefix": "idx",
|
||||
"denom": "snr",
|
||||
"trusting_period": "336h",
|
||||
"debugging": false,
|
||||
"block_time": "2000ms",
|
||||
"host_port_override": {
|
||||
"1317": "1317",
|
||||
"9090": "9090",
|
||||
"26656": "26656",
|
||||
"26657": "26657"
|
||||
},
|
||||
"ics_version_override": {}
|
||||
},
|
||||
{
|
||||
"name": "sonr",
|
||||
"chain_id": "sonr-testnet-2",
|
||||
"docker_image": {
|
||||
"repository": "sonr",
|
||||
"version": "local",
|
||||
"uid-gid": ""
|
||||
},
|
||||
"gas_prices": "0.0snr",
|
||||
"gas_adjustment": 2,
|
||||
"genesis": {
|
||||
"modify": [
|
||||
{
|
||||
"key": "app_state.gov.deposit_params.min_deposit.0.denom",
|
||||
"value": "usnr"
|
||||
},
|
||||
{
|
||||
"key": "app_state.gov.deposit_params.min_deposit.0.amount",
|
||||
"value": "10000000000"
|
||||
},
|
||||
{
|
||||
"key": "app_state.gov.deposit_params.max_deposit_period",
|
||||
"value": "604800s"
|
||||
},
|
||||
{
|
||||
"key": "app_state.gov.voting_params.voting_period",
|
||||
"value": "1209600s"
|
||||
},
|
||||
{
|
||||
"key": "app_state.gov.tally_params.quorum",
|
||||
"value": "0.40"
|
||||
},
|
||||
{
|
||||
"key": "app_state.gov.tally_params.threshold",
|
||||
"value": "0.51"
|
||||
},
|
||||
{
|
||||
"key": "app_state.gov.tally_params.veto_threshold",
|
||||
"value": "0.334"
|
||||
}
|
||||
],
|
||||
"accounts": [
|
||||
{
|
||||
"name": "acc0",
|
||||
"amount": "25000000000%DENOM%",
|
||||
"address": "idx13a6zjh96w9z9y2defkktdc6vn4r5h3s7jwxuam",
|
||||
"mnemonic": "decorate bright ozone fork gallery riot bus exhaust worth way bone indoor calm squirrel merry zero scheme cotton until shop any excess stage laundry"
|
||||
},
|
||||
{
|
||||
"name": "acc1",
|
||||
"amount": "24000000000%DENOM%",
|
||||
"address": "idx1xehj0xc24k2c740jslfyd4d6mt8c4dczgntqhg",
|
||||
"mnemonic": "wealth flavor believe regret funny network recall kiss grape useless pepper cram hint member few certain unveil rather brick bargain curious require crowd raise"
|
||||
},
|
||||
{
|
||||
"name": "user0",
|
||||
"amount": "100000%DENOM%",
|
||||
"address": "idx1gsl7qnwxpxsqeax4p2zeqruqshgd4jccwzstks",
|
||||
"mnemonic": "pig pistol model float oven opinion pledge hammer spike knock resemble finger casual canoe earth pink school hope seed put steel memory view welcome"
|
||||
},
|
||||
{
|
||||
"name": "user1",
|
||||
"amount": "100000%DENOM%",
|
||||
"address": "idx185g8yc7k0g4frv4q5mhqrcujgswnch0uu7dkgk",
|
||||
"mnemonic": "random sustain abstract wisdom quiz must awkward waste throw found either raven fruit where mansion universe smooth slush clip skill drum filter mountain rug"
|
||||
}
|
||||
]
|
||||
},
|
||||
"ibc_paths": ["sonr-testnet-1_sonr-testnet-2"],
|
||||
"number_vals": 1,
|
||||
"number_node": 0,
|
||||
"chain_type": "cosmos",
|
||||
"coin_type": 60,
|
||||
"binary": "snrd",
|
||||
"bech32_prefix": "idx",
|
||||
"denom": "snr",
|
||||
"trusting_period": "336h",
|
||||
"debugging": false,
|
||||
"block_time": "2000ms",
|
||||
"ics_version_override": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
Executable
+104
@@ -0,0 +1,104 @@
|
||||
{
|
||||
"chains": [
|
||||
{
|
||||
"name": "sonr",
|
||||
"chain_id": "sonr-testnet-1",
|
||||
"docker_image": {
|
||||
"repository": "sonr",
|
||||
"version": "local",
|
||||
"uid-gid": ""
|
||||
},
|
||||
"gas_prices": "0.0snr",
|
||||
"gas_adjustment": 2,
|
||||
"genesis": {
|
||||
"modify": [
|
||||
{
|
||||
"key": "app_state.gov.deposit_params.min_deposit.0.denom",
|
||||
"value": "usnr"
|
||||
},
|
||||
{
|
||||
"key": "app_state.gov.deposit_params.min_deposit.0.amount",
|
||||
"value": "10000000000"
|
||||
},
|
||||
{
|
||||
"key": "app_state.gov.deposit_params.max_deposit_period",
|
||||
"value": "604800s"
|
||||
},
|
||||
{
|
||||
"key": "app_state.gov.voting_params.voting_period",
|
||||
"value": "1209600s"
|
||||
},
|
||||
{
|
||||
"key": "app_state.gov.tally_params.quorum",
|
||||
"value": "0.40"
|
||||
},
|
||||
{
|
||||
"key": "app_state.gov.tally_params.threshold",
|
||||
"value": "0.51"
|
||||
},
|
||||
{
|
||||
"key": "app_state.gov.tally_params.veto_threshold",
|
||||
"value": "0.334"
|
||||
}
|
||||
],
|
||||
"accounts": [
|
||||
{
|
||||
"name": "acc0",
|
||||
"amount": "25000000000%DENOM%",
|
||||
"address": "idx13a6zjh96w9z9y2defkktdc6vn4r5h3s7jwxuam",
|
||||
"mnemonic": "decorate bright ozone fork gallery riot bus exhaust worth way bone indoor calm squirrel merry zero scheme cotton until shop any excess stage laundry"
|
||||
},
|
||||
{
|
||||
"name": "acc1",
|
||||
"amount": "24000000000%DENOM%",
|
||||
"address": "idx1xehj0xc24k2c740jslfyd4d6mt8c4dczgntqhg",
|
||||
"mnemonic": "wealth flavor believe regret funny network recall kiss grape useless pepper cram hint member few certain unveil rather brick bargain curious require crowd raise"
|
||||
},
|
||||
{
|
||||
"name": "user0",
|
||||
"amount": "100000%DENOM%",
|
||||
"address": "idx1jyq30438zx0g4urancle25r6tk5td6pgeytpfu",
|
||||
"mnemonic": "love group axis climb enlist evoke cactus sentence mule virtual dose river pepper path chapter ridge merry glow parent swear famous milk two raw"
|
||||
},
|
||||
{
|
||||
"name": "user1",
|
||||
"amount": "100000%DENOM%",
|
||||
"address": "idx1wz5qn36kdakkqunkvwuuvpr2l4amd7y0m3qdq6",
|
||||
"mnemonic": "sight buffalo monitor immune awake proof keen help connect steak attack trophy try day know wheel soon gesture switch poverty imitate weird bargain resist"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_file_overrides": [
|
||||
{
|
||||
"file": "config/app.toml",
|
||||
"paths": {
|
||||
"api.enabled-unsafe-cors": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"file": "config/config.toml",
|
||||
"paths": {
|
||||
"rpc.cors_allowed_origins": ["*"]
|
||||
}
|
||||
}
|
||||
],
|
||||
"number_vals": 1,
|
||||
"number_node": 0,
|
||||
"chain_type": "cosmos",
|
||||
"coin_type": 60,
|
||||
"binary": "snrd",
|
||||
"bech32_prefix": "idx",
|
||||
"denom": "snr",
|
||||
"trusting_period": "336h",
|
||||
"debugging": false,
|
||||
"block_time": "2000ms",
|
||||
"host_port_override": {
|
||||
"1317": "1317",
|
||||
"9090": "9090",
|
||||
"26656": "26656",
|
||||
"26657": "26657"
|
||||
},
|
||||
"ics_version_override": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user