-
Notifications
You must be signed in to change notification settings - Fork 102
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
Improve beefy tests #901
Improve beefy tests #901
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## proxy-contracts #901 +/- ##
==================================================
Coverage ? 68.43%
==================================================
Files ? 42
Lines ? 1774
Branches ? 72
==================================================
Hits ? 1214
Misses ? 541
Partials ? 19
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Gas consumed increased as we change test more close to real workflow(e.g. add
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Let's merge this in.
I added comments about the next task, once you've merged in.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Next steps - to implement in a new ticket - let's move this script and helpers.ts
to a new package under core/packages
. We can call the package test-helpers
or something like that.
The goal is to remove javascript stuff from the contracts project.
import { ValidatorSet, createRandomSubset, readSetBits } from "./helpers" | ||
import { BigNumber, ethers } from "ethers" | ||
import fs from "fs" | ||
import type { BeefyClient } from "../types/BeefyClient" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should add a new package under core/packages
with our contract bindings. Can call the package directory contract-types
, and the package name @snowbridge/contract-types
.
You'll need to include this script command in the new package:
"build:types": "typechain --target ethers-v5 'out/**/!(*.t|test).sol/!(*.abi).json' --out-dir types", |
Then this dependency should change to:
import type { BeefyClient } from "@snowbridge/contract-types"
Resolves: SNO-576