Skip to content

Commit

Permalink
Add archive eth2 endpoint for backend (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsudmi authored Jan 18, 2022
1 parent 4a6e086 commit bc394ae
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/backend/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: backend
version: 2.0.9
appVersion: v2.0.3
appVersion: v2.0.4
kubeVersion: "^1.18.0-0"
description: The StakeWise backend application.
type: application
Expand Down
1 change: 0 additions & 1 deletion charts/backend/templates/common-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ data:
# https://github.com/notifiers/notifiers/issues/328
USERNAME: user
NETWORK: {{ .Values.commonConf.network | quote }}
ORACLES_SYNC_PERIOD_SECONDS: {{ .Values.commonConf.oraclesSyncPeriodSeconds | quote }}
VALIDATOR_MAX_PENALTY_COUNT: {{ .Values.commonConf.validatorMaxPenaltyCount | quote }}
UNPAID_VALIDATORS_EXIT_DELAY: {{ .Values.commonConf.unpaidValidatorsExitDelay | quote }}
WEBSITE_NAME: {{ .Values.commonConf.websiteName | quote }}
Expand Down
1 change: 1 addition & 0 deletions charts/backend/templates/polling-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ data:
IPFS_FETCH_ENDPOINTS: {{ .Values.polling.conf.ipfsFetchEndpoints }}
ETH1_ENDPOINT: {{ .Values.polling.conf.eth1Endpoint | quote }}
ETH2_ENDPOINT: {{ .Values.polling.conf.eth2Endpoint | quote }}
ETH2_ARCHIVE_ENDPOINT: {{ .Values.polling.conf.eth2ArchiveEndpoint | quote }}
POLL_PAYMENTS_PERIOD: {{ .Values.polling.conf.pollPaymentsPeriod | quote }}
POLL_ORACLES_PERIOD: {{ .Values.polling.conf.pollOraclesPeriod | quote }}
POLL_SETTINGS_PERIOD: {{ .Values.polling.conf.pollSettingsPeriod | quote }}
Expand Down
15 changes: 12 additions & 3 deletions charts/backend/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ commonConf:
secretKey: ""
network: "mainnet"

oraclesSyncPeriodSeconds: "86400"
validatorMaxPenaltyCount: "5"
unpaidValidatorsExitDelay: "864000"

websiteName: "StakeWise"
poolPage: "https://app.stakewise.io"
soloPage: "https://solo.stakewise.io"
soloPage: "https://app.stakewise.io/solo"

djangoLogLevel: "INFO"

Expand All @@ -36,7 +35,7 @@ securityContext:

image:
repository: "europe-west4-docker.pkg.dev/stakewiselabs/private/backend"
tag: "v2.0.3"
tag: "v2.0.4"
pullPolicy: IfNotPresent
pullSecrets: [ ]

Expand Down Expand Up @@ -289,13 +288,23 @@ polling:
cpu: 50m
memory: 100Mi

- command: "poll_stakers_rewards"
terminationGracePeriodSeconds: 180
resources:
requests:
cpu: 50m
memory: 100Mi

conf:
# Endpoints
ipfsFetchEndpoints: "/dns/ipfs.infura.io/tcp/5001/https,https://gateway.pinata.cloud,http://cloudflare-ipfs.com,https://ipfs.io"
eth1Endpoint: ""
# NB! only prysm client currently works
eth2Endpoint: ""

# Needed for syncing validator balance snapshots
eth2ArchiveEndpoint: ""

# polling periods
pollPaymentsPeriod: "15"
pollOraclesPeriod: "15"
Expand Down

0 comments on commit bc394ae

Please sign in to comment.