Service changes
This page documents the changes made to off-chain services supporting the Linear Finance platform.
ℹ️ Note
Most code changes were made assuming this list of collateral tokens. Due to legacy reasons (mainly the lack of proper templating setup), some repositories hard-code the list of collateral tokens.
Therefore, if you plan to deploy a different list of collateral tokens, you will need to make further changes.
Repositories changed
Changes for each repository are submitted under a new dev/multi_collateral branch.
The section only lists the repositories being updated. Check out the patch branches for the actual code changes.
Subgraphs
ℹ️ Note
The patch submitted for
linear-subgraphsis based on commit0d76432, as the now-latest commit218f16awasn't available at the time the patch was authored. The new team needs to port the patch upon the latest commit.
Workers
Docker services
Merging and releasing
All the code changes are submitted on a dev/multi_collateral branch under each affected repository. They're not submitted to master as they're considered unreviewed. Once reviewed and approved by the team, the changes shall be merged into master and have Docker images built for them.
ℹ️ Note
Strictly speaking, Docker images are not needed for workers to be deployed to production, but they're still needed for running the development environment.
Even prior to the upgrade, GitHub Actions workflows have already been configured on all the affected repositories to automatically build Docker images upon the creation of new Git tags with format v*.*.*. Therefore, once merged, the team only needs to tag the new merged master branches to have the images built.
As for the actual version used in v*.*.*, any version greater than the existing Git tags can be used and is up to the team. However, it's recommended to use follow the new versions assumed by the dev environment changes.
ℹ️ Note
If versions other than those assumed in dev environment changes are used, you would need to modify the versions referenced in
Linear-finance/linear-devto have a functional development environment.