mirror of
https://github.com/0x1d/drift-keeper.git
synced 2025-12-14 10:26:49 +01:00
* Introduce instances list to scale bots and add config templating * Use env var for wallet address if not provided as path param * Expose SOL price as metric * Update docs * Add auto-swap * Add Panopticon * implement backoff stategy in autoswap * Add retry logic for withdraw and swap * bump drift-sdk, update ctl.sh and docs * Update filler bot, add tx metrics * Add user-metrics * Update build and dashboard
89 lines
2.5 KiB
HCL
89 lines
2.5 KiB
HCL
variable "do_token" {
|
|
description = "DigitalOcean access token"
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "linode_token" {
|
|
description = "Linode access token"
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "bot" {
|
|
description = "Bot configuration"
|
|
type = object({
|
|
wallet_address = string
|
|
rpc_endpoint = string
|
|
ws_endpoint = string
|
|
keeper_private_key = string
|
|
jito_private_key = string
|
|
docker_image = string
|
|
docker_image_wallet_tracker = string
|
|
})
|
|
}
|
|
|
|
variable "monitoring" {
|
|
description = "Monitoring configuration"
|
|
default = {
|
|
grafana_user = "admin"
|
|
grafana_password = "grafana"
|
|
prometheus_password = "prompass"
|
|
}
|
|
type = object({
|
|
grafana_user = string
|
|
grafana_password = string
|
|
prometheus_password = string
|
|
})
|
|
}
|
|
|
|
variable "linode_instances" {
|
|
description = "List of server configurations for Linode"
|
|
default = [
|
|
{
|
|
label = "DK-LN-AMS"
|
|
group = "keeper"
|
|
image = "linode/ubuntu23.10"
|
|
region = "nl-ams"
|
|
type = "g6-nanode-1"
|
|
ntp_server = "ntp.amsterdam.jito.wtf"
|
|
jito_block_engine_url = "amsterdam.mainnet.block-engine.jito.wtf"
|
|
use_jito = true
|
|
},
|
|
{
|
|
label = "DK-LN-OSA"
|
|
group = "keeper"
|
|
image = "linode/ubuntu23.10"
|
|
region = "jp-osa"
|
|
type = "g6-nanode-1"
|
|
ntp_server = "ntp.tokyo.jito.wtf"
|
|
jito_block_engine_url = "tokyo.mainnet.block-engine.jito.wtf"
|
|
use_jito = true
|
|
},
|
|
]
|
|
}
|
|
|
|
variable "digitalocean_instances" {
|
|
description = "List of server configurations for DigitalOcean"
|
|
default = [
|
|
{
|
|
label = "DK-DO-FRA"
|
|
image = "ubuntu-23-10-x64"
|
|
region = "fra1"
|
|
type = "s-1vcpu-1gb"
|
|
ntp_server = "ntp.frankfurt.jito.wtf"
|
|
jito_block_engine_url = "frankfurt.mainnet.block-engine.jito.wtf"
|
|
use_jito = true
|
|
},
|
|
{
|
|
label = "DK-DO-NYC"
|
|
image = "ubuntu-23-10-x64"
|
|
region = "nyc1"
|
|
type = "s-1vcpu-1gb"
|
|
ntp_server = "ntp.ny.jito.wtf"
|
|
jito_block_engine_url = "ny.mainnet.block-engine.jito.wtf"
|
|
use_jito = true
|
|
}
|
|
]
|
|
}
|