Skip to content

Commit

Permalink
prep for qena42
Browse files Browse the repository at this point in the history
  • Loading branch information
drchrispinnock committed Oct 13, 2024
1 parent 9978fbb commit 101227f
Show file tree
Hide file tree
Showing 4 changed files with 764 additions and 2 deletions.
37 changes: 35 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,39 @@ new TezosFaucet(
)
*/

/*
// Ooooo Qena 42 (I'm mean Oooo Vienna)
//
const qena42net_chain = new TezosChain(
{
category: protocolCategory,
humanName: "Qena42net",
description: "Test Chain for the Qena Protocol Proposal",
activationBucket: activationBucket,
helmValuesFile: "networks/qena42net/values.yaml",
bakingPrivateKey: private_teztnets_baking_key,
bootstrapPeers: ["qena42net.tzinit.org"],
rpcUrls: [],
indexers: [],
chartRepoVersion: "7.0.9",
},
provider
)
new TezosFaucet(
qenanet_chain.name,
{
namespace: qena42net_chain.namespace,
humanName: "Qena42net",
helmValuesFile: "networks/qena42net/faucet_values.yaml",
faucetPrivateKey: faucetPrivateKey,
faucetRecaptchaSiteKey: faucetRecaptchaSiteKey,
faucetRecaptchaSecretKey: faucetRecaptchaSecretKey,
chartRepoVersion: "7.0.9",
},
provider
)
*/

// Ooooo Qena (I'm mean Oooo Vienna)
//
const qenanet_chain = new TezosChain(
Expand Down Expand Up @@ -348,7 +381,7 @@ const ghostnetNetwork = {

export const networks = {
...getNetworks([qenanet_chain, weeklynet_chain, pariscnet_chain]),
// ...getNetworks([quebecnet_chain, qenanet_chain, weeklynet_chain, pariscnet_chain]),
// ...getNetworks([quebecnet_chain, qena42net_chain, qenanet_chain, weeklynet_chain, pariscnet_chain]),
// ...getNetworks([qenanet_chain, pariscnet_chain]),
...{ ghostnet: ghostnetNetwork },
}
Expand Down Expand Up @@ -414,7 +447,7 @@ const mainnetMetadata = {
export const teztnets = {
// ...getTeztnets([qenanet_chain, pariscnet_chain]),
...getTeztnets([qenanet_chain, weeklynet_chain, pariscnet_chain]),
// ...getTeztnets([quebecnet_chain, qenanet_chain, weeklynet_chain, pariscnet_chain]),
// ...getTeztnets([quebecnet_chain, qena42net_chain, qenanet_chain, weeklynet_chain, pariscnet_chain]),
...{ ghostnet: ghostnetTeztnet, mainnet: mainnetMetadata },
}

Expand Down
59 changes: 59 additions & 0 deletions networks/qena42net/faucet_values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
images:
tezosFaucet: ghcr.io/tacoinfra/tezos-faucet:3.0.1
tezosFaucetBackend: ghcr.io/tacoinfra/tezos-faucet-backend:3.0.0


# Frontend app configuration. You can optionally deploy only the faucet backend.
enableUI: true
config:
application:
name: "Tezos Qena 42 Faucet"
googleCaptchaSiteKey: "" # filled in by pulumi
backendUrl: "" # filled in by pulumi
githubRepo: https://github.com/tacoinfra/tezos-faucet
network:
name: custom
rpcUrl: "" # filled in by pulumi
faucetAddress: tz1a4GT7THHaGDiTxgXoatDWcZfJ5j29z5RC

# Value the server sets for the "Access-Control-Allow-Origin" header for CORS.
authorizedHost: "" # filled in by pulumi
# RPC url for the faucet backend. Default value assumes tezos-k8s created an RPC
# service in the same namespace. If not set, defaults to `config.network.rpcUrl`.
backendRpcUrl: http://tezos-node-rpc:8732
# If the backend requires CAPTCHA tokens to be submitted.
enableCaptcha: true

# Faucet won't dispense to an address if its balance exceeds this.
maxBalance: 48000

# The minimum Tez allowed per request.
minTez: 1
# The maximum Tez allowed per request.
maxTez: 40000

disableChallenges: true
# Minimum number of challenges required for the minimum Tez request.
minChallenges: 1
# Maximum number of challenges required for the maximum Tez request.
# 1100 challenges should take ~20m.
maxChallenges: 1100
# Maximum number of challenges required for the maximum Tez request when a
# captcha is used.
# 53 challenges should take ~4m.
maxChallengesWithCaptcha: 53
# How many bytes the challenge string should be.
challengeSize: 2048
# Difficulty level for challenges.
difficulty: 4

redis:
url: redis://redis-master:6379

ingress:
enabled: true
annotations:
"kubernetes.io/ingress.class": "nginx"
"cert-manager.io/cluster-issuer": "letsencrypt-prod"
host: "" # faucet fqdn, filled in by pulumi
tls: [] # filled in by pulumi
Loading

0 comments on commit 101227f

Please sign in to comment.