@@ -27,22 +27,40 @@ job "staking-rewards-controller-stage" {
2727 }
2828
2929 vault {
30- policies = [" valid-ator-stage" ]
30+ policies = [" staking-rewards-stage" ]
31+ }
32+
33+ env {
34+ BUMP = " "
35+ IS_LIVE = " true"
36+ VERSION = " [[.commit_sha]]"
37+ BUNDLER_GATEWAY = " https://ar.anyone.tech"
38+ BUNDLER_NODE = " https://ar.anyone.tech/bundler"
39+ CPU_COUNT = " 2"
40+ CONSUL_HOST = " ${ NOMAD_IP_http } "
41+ CONSUL_PORT = " 8500"
42+ SERVICE_NAME = " staking-rewards-controller-stage"
43+ ROUND_PERIOD_SECONDS = " 900"
44+ DO_CLEAN = " false"
45+ PORT = " ${ NOMAD_PORT_http } "
46+ NO_COLOR = " 1"
47+ MIN_HEALTHY_CONSENSUS_WEIGHT = " 50"
3148 }
3249
3350 template {
3451 data = << EOH
35- {{with secret "kv/valid-ator/stage"}}
36- STAKING_REWARDS_CONTROLLER_KEY="{{.Data.data.DISTRIBUTION_OPERATOR_KEY}}"
37-
38- BUNDLER_NETWORK="{{.Data.data.IRYS_NETWORK}}"
39- BUNDLER_CONTROLLER_KEY="{{.Data.data.DISTRIBUTION_OPERATOR_KEY}}"
40-
41- JSON_RPC="{{.Data.data.JSON_RPC}}"
42- CONSUL_TOKEN="{{.Data.data.CONSUL_TOKEN_RELAY_REWARDS}}"
52+ {{with secret "kv/staking-rewards/stage"}}
53+ STAKING_REWARDS_CONTROLLER_KEY="{{.Data.data.STAKING_REWARDS_CONTROLLER_KEY}}"
54+ REWARDS_POOL_KEY="{{.Data.data.STAKING_REWARDS_CONTROLLER_KEY}}"
55+ BUNDLER_NETWORK="{{.Data.data.BUNDLER_NETWORK}}"
56+ BUNDLER_CONTROLLER_KEY="{{.Data.data.STAKING_REWARDS_CONTROLLER_KEY}}"
57+ EVM_JSON_RPC="{{.Data.data.EVM_JSON_RPC}}"
58+ CONSUL_TOKEN_CONTROLLER_CLUSTER="{{.Data.data.CONSUL_TOKEN_CONTROLLER_CLUSTER}}"
4359 {{end}}
60+
4461 OPERATOR_REGISTRY_PROCESS_ID="[[ consulKey "smart-contracts/stage/operator-registry-address" ]]"
4562 TOKEN_CONTRACT_ADDRESS="[[ consulKey "ator-token/sepolia/stage/address" ]]"
63+ HODLER_CONTRACT_ADDRESS="[[ consulKey "hodler/sepolia/stage/address" ]]"
4664 {{- range service "validator-stage-mongo" }}
4765 MONGO_URI="mongodb://{{ .Address }}:{{ .Port }}/staking-rewards-controller-stage-testnet"
4866 {{- end }}
@@ -54,27 +72,12 @@ job "staking-rewards-controller-stage" {
5472 {{- range service "onionoo-war-live" }}
5573 ONIONOO_DETAILS_URI="http://{{ .Address }}:{{ .Port }}/details"
5674 {{- end }}
75+ ONIONOO_REQUEST_TIMEOUT="60000"
76+ ONIONOO_REQUEST_MAX_REDIRECTS="3"
5777 EOH
5878 destination = " secrets/file.env"
5979 env = true
6080 }
61-
62- env {
63- BUMP = " redeploy-rewards-3"
64- IS_LIVE = " true"
65- VERSION = " [[.commit_sha]]"
66- BUNDLER_GATEWAY = " https://ar.anyone.tech"
67- BUNDLER_NODE = " https://ar.anyone.tech/bundler"
68- CPU_COUNT = " 2"
69- CONSUL_HOST = " ${ NOMAD_IP_http } "
70- CONSUL_PORT = " 8500"
71- SERVICE_NAME = " staking-rewards-controller-stage"
72- ROUND_PERIOD_SECONDS = " 900"
73- DO_CLEAN = " false"
74- PORT = " ${ NOMAD_PORT_http } "
75- NO_COLOR = " 1"
76- MIN_HEALTHY_CONSENSUS_WEIGHT = " 50"
77- }
7881
7982 resources {
8083 cpu = 2048
0 commit comments