Skip to content

Instantly share code, notes, and snippets.

@ddorgan
ddorgan / gist:1aa7d5e55d509e10495caf5991dacba8
Created November 29, 2022 16:05
rococo-local-raw.json
This file has been truncated, but you can view the full file.
{
"name": "Rococo Local Testnet",
"id": "rococo_local_testnet",
"chainType": "Local",
"bootNodes": [],
"telemetryEndpoints": null,
"protocolId": "dot",
"properties": null,
"forkBlocks": null,
"badBlocks": null,
all:
vars:
node_app_name: mychain-collator
node_binary_version: v0.9.29
node_chain: rococo-local
node_user: polkadot
children:
validators:
vars:
node_binary: https://github.com/paritytech/polkadot/releases/download/{{ node_binary_version }}/polkadot
@ddorgan
ddorgan / local-key-insert.sh
Created June 19, 2020 21:03
Insert keys to substrate/polkadot keystore
#!/bin/bash
KEY_SEED="//xx"
ED_SEED=$(subkey -e inspect "$KEY_SEED" | grep "Secret seed" | awk {'print $3'})
SR_SEED=$(subkey -s inspect "$KEY_SEED" | grep "Secret seed" | awk {'print $3'})
ED_PUB_KEY=$(subkey -e inspect "$KEY_SEED" | grep Public | awk {'print $4'})
SR_PUB_KEY=$(subkey -s inspect "$KEY_SEED" | grep Public | awk {'print $4'})
RPC_ENDPOINT=localhost:9933
@ddorgan
ddorgan / westend-non-raw.json
Last active January 24, 2020 19:21
final westend config
This file has been truncated, but you can view the full file.
{
"name": "Westend",
"id": "westend",
"bootNodes": [
"/ip4/104.155.79.90/tcp/30333/p2p/QmZ4HcUygvbrPaABU9MfjqFsSPUKwmH6LyXBFYX2xSXGo2",
"/ip4/104.155.79.90/tcp/30334/ws/p2p/QmZ4HcUygvbrPaABU9MfjqFsSPUKwmH6LyXBFYX2xSXGo2",
"/ip4/35.205.142.129/tcp/30333/p2p/QmaynNd1C321UowxH8a8MVBe6R8FUYQmaU6Sm4wnvdTyuq",
"/ip4/35.205.142.129/tcp/30334/ws/p2p/QmaynNd1C321UowxH8a8MVBe6R8FUYQmaU6Sm4wnvdTyuq",
"/ip4/34.73.55.183/tcp/30333/p2p/QmerZUpaWoJ1eqcwfcwGVtLmySUKZs5EZBusse5DGopcLU",
"/ip4/34.73.55.183/tcp/30334/ws/p2p/QmerZUpaWoJ1eqcwfcwGVtLmySUKZs5EZBusse5DGopcLU",
#!/bin/bash
KEY_SEED="xxxxxxxxxxxxxxxxxxx"
IMON_PUB_KEY="yyyyyyyyyyyyyyyyyyyyyyyyyyyy"
RPC_ENDPOINT=localhost:9933
for KEY_TYPE in $(echo gran babe ) ; do
curl -H "Content-Type: application/json" \
--data '{ "jsonrpc":"2.0", "method":"author_insertKey", "params":["'"${KEY_TYPE}"'", "'"${KEY_SEED}"'"],"id":1 }' \
"${RPC_ENDPOINT}"
variable "region" { default = "europe-west1" }
variable "zones" { default = [ "europe-west1-b", "europe-west1-c" ] }
variable "project" { default = "parity-prod" }
resource "google_compute_instance" "substrate10" {
name = "substrate10"
machine_type = "n1-standard-2"
# parity-mgmt/terraform
# substrate10.tf
variable "region" { default = "europe-west1" }
variable "zones" { default = [ "europe-west1-b", "europe-west1-c" ] }
variable "project" { default = "parity-prod" }
resource "google_compute_instance" "substrate10" {
name = "substrate10"
# READ THE CONFIG DOCUMENTATION AT:
# https://github.com/paritytech/parity-bridge/#configuration
# ACTION REQUIRED: set to your authority address
address = "0x00a329c0648769A73afAc7F9381E08FB43dBEA72"
estimated_gas_cost_of_withdraw = "200000"
# limits total balance on `main` and therefore total ether that could get lost
# if the bridge is faulty or compromised in any way!