generated from cheqd/.github
-
Notifications
You must be signed in to change notification settings - Fork 1
/
wrangler.toml
120 lines (97 loc) · 4.18 KB
/
wrangler.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
###############################################################
### SECTION 1: General Configuration ###
###############################################################
# Worker name
name = "validator-status"
# Entrypoint/path to the file that will be executed
main = "src/index.ts"
# Date in yyyy-mm-dd to determine which version of Workers runtime to use
# Details: https://developers.cloudflare.com/workers/platform/compatibility-dates/
compatibility_date = "2022-05-24"
# Usage model for the Worker
# Details: https://developers.cloudflare.com/workers/platform/limits
usage_model = "bundled"
# Add polyfills for node builtin modules and globals?
node_compat = true
###############################################################
### SECTION 2: Production Environment ###
###############################################################
# Deploy to NAME.SUBDOMAIN.workers.dev for testing?
# @default `true`
workers_dev = true
# Route to publish the Worker
route = { pattern = "validator-status.cheqd.net/*", zone_id = "88e06eefedbbd140a12ac3dd1b21a7af" }
# Map of environment variables to set when deploying the Worker
# Not inherited. @default `{}`
[vars]
# GraphQL API endpoint for target network. Must be sourced from a BigDipper instance.
COSMOS_API = "https://api.cheqd.net/cosmos"
GRAPHQL_API = "https://explorer-gql.cheqd.io/v1/graphql"
DEGRADED_THRESHOLD = "90"
# KV Namespaces accessible from the Worker
# Details: https://developers.cloudflare.com/workers/learning/how-kv-works
# @default `[]`
[[kv_namespaces]]
binding = "VALIDATOR_CONDITION"
id = "9401dc1e382e4fe7ac21d7d43eef247d"
[triggers]
crons = ["0 0/4 * * *"]
###############################################################
### SECTION 3: Local Development ###
###############################################################
# Configuration options for local development via Wrangler
[dev]
# IP address for the local dev server to listen on
# @default `localhost`
ip = "localhost"
# Port for the local dev server to listen on
# @default `3000`
port = 8787
# Protocol that local wrangler dev server listens to requests on
# @default `http`
local_protocol = "http"
###############################################################
### SECTION 4: Staging Environment ###
###############################################################
[env.staging]
# Deploy to NAME.SUBDOMAIN.workers.dev?
# @default `true`
workers_dev = true
# Route to publish the Worker
route = { pattern = "validator-status-staging.cheqd.net/*", zone_id = "88e06eefedbbd140a12ac3dd1b21a7af" }
# Map of environment variables to set when deploying the Worker
# Not inherited. @default `{}`
vars = { COSMOS_API = "https://api.cheqd.net/cosmos", GRAPHQL_API = "https://explorer-gql.cheqd.io/v1/graphql", DEGRADED_THRESHOLD = "98" }
# KV Namespaces accessible from the Worker
# Details: https://developers.cloudflare.com/workers/learning/how-kv-works
# @default `[]`
[[env.staging.kv_namespaces]]
binding = "VALIDATOR_CONDITION"
id = "7e778d1c2a61419c9ab4b10b4f436255"
# Cron triggers for staging worker
[env.staging.triggers]
crons = ["0 9 * * *"]
###############################################################
### OPTIONAL: Build Configuration ###
###############################################################
# NOTE: THIS IS A TOP-LEVEL CONFIGURATION AND NEEDS TO BE MOVED IF USED
# Optional custom build step when using Wrangler CLI for build
# Details: https://developers.cloudflare.com/workers/wrangler/custom-builds/
# @default {}
# [build]
# # Custom build command. On Linux and macOS, the command is executed in
# # the `sh` shell and the `cmd` shell for Windows.
# # The `&&` and `||` shell operators may be used.
# command = ""
# # The directory in which the command is executed.
# cwd = "./src"
# # The directory to watch for changes while using `wrangler dev`,
# # defaults to the current working directory
# watch_dir = ""
# List of data files that the Worker should be bound to. This is
# the legacy way of binding to a data file. ES module Workers should
# do proper module imports.
#[data_blobs]
# DATA = ""
# Minify before uploading?
# minify = "false"