babylonlabs-io / babylonlabs-io/staking-api-service

Simply the service start process

Open
#232 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
14
Forks
12
PR merge metrics
No merged PRs in 30d

Description

We are still passing global parameters and the finality provider list into the service as required configuration for starting up the API service.

However, this is no longer necessary since we no longer publish new versions of the global parameters. Instead, we can hardcode the global parameters and finality provider list for all environments within the service and use an environment config value to select the appropriate set.

This approach will simplify the build process and service startup script. Since our service is also hosted by others, this change will make deployment more convenient.

Contributor guide

Open the contributing guide

Research direction

Start with the API service startup script and its configuration path to identify where global parameters and the finality provider list are currently passed in. Trace the environment selection flow; done means each environment's values are selected from service configuration and startup no longer requires those lists as parameters.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, backend
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.