Skip to content

Conversation

@mrice32
Copy link
Contributor

@mrice32 mrice32 commented Feb 29, 2024

This PR will remove hardhat from the standard import path. This means that ts/js code that does:

import ... from "@across-protocol/contracts-v2"

will not need a hardhat config and will not spin up a local hardhat node by default. I've verified that the files in utils don't seem to be used in sdk-v2 or relayer-v2.

I think this was accidentally moved into our production exports in a larger change: #272.

Signed-off-by: Matt Rice <matthewcrice32@gmail.com>
@mrice32 mrice32 marked this pull request as draft February 29, 2024 22:50
@mrice32 mrice32 requested a review from nicholaspai February 29, 2024 23:32
@mrice32 mrice32 marked this pull request as ready for review February 29, 2024 23:32
Copy link
Contributor

@james-a-morris james-a-morris left a comment

Choose a reason for hiding this comment

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

+1 Thoughts on deploying three packages to NPM?

  1. @across-protocol/contracts-v2/contracts (just contracts + typechain)
  2. @across-protocol/contracts-v2/test-suite (just the utils that need hardhat)
  3. @across-protocol/contracts-v2 (amalgam of 1 & 2)

We'd mostly import (1) but 2 could be useful as a dev resource.

@mrice32 mrice32 merged commit a4d2e20 into master Mar 1, 2024
@mrice32 mrice32 deleted the remove_hardhat branch March 1, 2024 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants