-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathwrangler.toml
More file actions
157 lines (125 loc) · 5.38 KB
/
wrangler.toml
File metadata and controls
157 lines (125 loc) · 5.38 KB
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
###############################################################
### 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 = "2024-09-23"
compatibility_flags = ["nodejs_compat_v2"]
# 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", preview_id = "7ef26e427ef3487d9ad8497653f3065b" }
]
# 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"
# Mainnet GraphQL API endpoint for target network. Must be sourced from a BigDipper instance.
GRAPHQL_API = "https://explorer-gql.cheqd.io/v1/graphql"
# Testnet GraphQL API endpoint for target network. Must be sourced from a BigDipper instance.
TESTNET_GRAPHQL_API = "https://testnet-gql.cheqd.io/v1/graphql"
# Number of groups circulating supply watchlist is split into
CIRCULATING_SUPPLY_GROUPS = "24"
# Market monitoring API endpoint
ENVIRONMENT = "production"
# The necessary secrets are:
# - WEBHOOK_URL
# Run `echo <VALUE> | wrangler secret put <NAME>` for each of these
[triggers]
crons = [ "0 * * * *" ]
# Hyperdrive configuration
[[hyperdrive]]
binding = "HYPERDRIVE"
id = "e0f74fa3cda64fbaa011da21b7c4c6c7"
# Placement configuration for the Worker
[placement]
mode = "smart"
###############################################################
### 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", TESTNET_GRAPHQL_API = "https://testnet-gql.cheqd.io/v1/graphql" }
# 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 * * * *" ]
# Hyperdrive configuration
[[env.staging.hyperdrive]]
binding = "HYPERDRIVE"
id = "eae4fd023cf2476d8ac00a8fd2eca217"
###############################################################
### 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"