Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update T coverage-pools dependency #639

Merged
merged 3 commits into from
Nov 22, 2023

Conversation

michalinacienciala
Copy link
Contributor

@michalinacienciala michalinacienciala commented Oct 4, 2023

In the package.json there are two different versions of coverage-pools used. This is done to allow using contracts from two different cov pool versions on the mainnet (needed for computations of the TVL-related fields) - one relates to KEEP token cov pool (<2.0.0) and one to to T token one (>=2.0.0). On the testnet environmet we currently don't have the T token cov pool deployed. The latest goerli- tagged version of the cov-pools package (1.1.0-goerli.0) contains KEEP-token related contracts. We want to stick to this version (we'll need to update it once we switch to Sepolia). For the @threshold-network/coverage-pools ideally we'd want to use a T token related pool, which if deployed for given environment, should be present in the latest goerli/sepolia package. If the T-related pool is not yet deployed for given environment, KEEP-related cov-pool contracts will be used in all TVL computations (which differs from the mainnet behavior, but is acceptable on the test env).

Ref: #613

In the `package.json` there are two different versions of `coverage-pools` used.
This is done to allow using contracts from two different cov pool versions on
the mainnet (needed for computations of the TVL-related fields) - one relates to
KEEP token cov pool (<2.0.0) and one to to T token one (>=2.0.0).
On the testnet environmet we currently don't have the T token cov pool deployed.
The latest `goerli`- tagged version of the cov-pools package (`1.1.0-goerli.0`)
contains KEEP-token related contracts. We want to stick to this version (we'll
need to update it once we switch to Sepolia). For the
`@threshold-network/coverage-pools` ideally we'd want to use a T token related
pool, which if deployed for given environment, should be present in the latest
`goerli`/`sepolia` package. If the T-related pool is not yet deployed for given
environment, KEEP-related cov-pool contracts will be used in all TVL
computations (which differs from the mainnet behavior, but is acceptable on the
test env).
@michalinacienciala michalinacienciala self-assigned this Oct 4, 2023
@michalinacienciala michalinacienciala added the ☁️ infrastructure CI, Infrastructure, Workflows label Oct 4, 2023
Copy link

Copy link
Contributor

@michalsmiarowski michalsmiarowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left one comment to look at before the merge

.github/workflows/reusable-build-and-publish.yml Outdated Show resolved Hide resolved
Copy link

In commit 29853e3 we've removed
`@keep-network/ecdsa, ` dependency, we no longer need to set the version of the
corresponding package. We also no longer have a dependency to
`@keep-network/tbtc-v2` and don't need to deploy new packages after changes of
`@keep-network/tbtc-v2.ts`, so we don't need to set versions there as well.
@michalinacienciala michalinacienciala force-pushed the update-t-cov-pools-dependency branch from d11e9df to ce23262 Compare November 22, 2023 12:19
Copy link

@michalsmiarowski michalsmiarowski self-requested a review November 22, 2023 12:47
Copy link
Contributor

@michalsmiarowski michalsmiarowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🔥

@michalsmiarowski michalsmiarowski merged commit 6d8b382 into main Nov 22, 2023
5 checks passed
@michalsmiarowski michalsmiarowski deleted the update-t-cov-pools-dependency branch November 22, 2023 13:13
@michalsmiarowski michalsmiarowski added this to the v1.14.0 milestone Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
☁️ infrastructure CI, Infrastructure, Workflows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants