-
Notifications
You must be signed in to change notification settings - Fork 1
/
wrangler.toml
140 lines (111 loc) · 4.88 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
###############################################################
### SECTION 1: General Configuration ###
###############################################################
# Worker name
name = "data-api"
# 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"
###############################################################
### SECTION 2: Production Environment ###
###############################################################
# Deploy to NAME.SUBDOMAIN.workers.dev?
# @default `true`
workers_dev = true
# Route to publish the Worker
route = { pattern = "data-api.cheqd.io/*", zone_id = "afe3b66243382f27140e6feeaae848b5" }
# KV Namespaces accessible from the Worker
# Details: https://developers.cloudflare.com/workers/learning/how-kv-works
# @default `[]`
kv_namespaces = [
{ binding = "CIRCULATING_SUPPLY_WATCHLIST", id = "270dbd79fa434edf9174fac7d5bc1bdf" }
]
# Map of environment variables to set when deploying the Worker
# Not inherited. @default `{}`
[vars]
# Token lowest denom exponent. 1 CHEQ = 10^9 ncheq
TOKEN_EXPONENT = "9"
# Standard Cosmosd SDK REST API endpoint for a node on target network
REST_API = "https://api.cheqd.net"
# REST API pagination limit
REST_API_PAGINATION_LIMIT = "50"
# GraphQL API endpoint for target network. Must be sourced from a BigDipper instance.
GRAPHQL_API = "https://explorer-gql.cheqd.io/v1/graphql"
# Number of groups circulating supply watchlist is split into
CIRCULATING_SUPPLY_GROUPS = "24"
# Market monitoring API endpoint
MARKET_MONITORING_API = "https://market-monitoring.cheqd.net"
# The necessary secrets are:
# - WEBHOOK_URL
# Run `echo <VALUE> | wrangler secret put <NAME>` for each of these
[triggers]
crons = [ "0 * * * *" ]
###############################################################
### 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 `8787`
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 = "data-api-staging.cheqd.io/*", zone_id = "afe3b66243382f27140e6feeaae848b5" }
# Map of environment variables to set when deploying the Worker
# Not inherited. @default `{}`
vars = { ENVIRONMENT = "staging", TOKEN_EXPONENT = "9", REST_API = "https://api.cheqd.net", REST_API_PAGINATION_LIMIT = "50", GRAPHQL_API = "https://explorer-gql.cheqd.io/v1/graphql", CIRCULATING_SUPPLY_GROUPS = "24", MARKET_MONITORING_API = "https://market-monitoring-staging.cheqd.net" }
# The necessary secrets are:
# - WEBHOOK_URL
# Run `echo <VALUE> | wrangler secret put <NAME>` for each of these
# KV Namespaces accessible from the Worker
# Details: https://developers.cloudflare.com/workers/learning/how-kv-works
# @default `[]`
kv_namespaces = [
{ binding = "CIRCULATING_SUPPLY_WATCHLIST", id = "83699afe22654413ae141bb70d37554d" }
]
# Cron triggers for staging worker
[env.staging.triggers]
crons = [ "0 * * * *" ]
###############################################################
### 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"
# Add polyfills for node builtin modules and globals?
# node_compat = "false"