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

Rename create functions to match V2 core #264

Merged
merged 4 commits into from
Jan 26, 2024

Conversation

smol-ninja
Copy link
Member

@smol-ninja smol-ninja commented Jan 23, 2024

Closes #263

Requirements for passing ALL tests

@andreivladbrg
Copy link
Member

i think this PR is going to be on hold, since we release a new NPM version

@PaulRBerg should we have NPM releases more often which should be marked as "beta" e.g. 1.1.3-b?

@PaulRBerg
Copy link
Member

Good point about the NPM version, @andreivladbrg.

should we have NPM releases more often which should be marked as "beta" e.g. 1.1.3-b?

Nope. We can simply install V2 Core from GitHub:

"@sablier/v2-core": "github:sablier-labs/v2-core#staging"

@andreivladbrg
Copy link
Member

Nope. We can simply install V2 Core from GitHub:

correct, forgot that it now works because of the bun install CLI ran before, it used to not work due to pre-pack

@smol-ninja
Copy link
Member Author

We can simply install V2 Core from GitHub

Yup. That's how I tested it locally but didn't push it as I wasn't sure how we maintain separate packages for staging and main.

@smol-ninja smol-ninja force-pushed the refactor/rename-create-functions branch from 884ef26 to 8e15c32 Compare January 23, 2024 11:17
@andreivladbrg
Copy link
Member

andreivladbrg commented Jan 24, 2024

@smol-ninja merged the core PR on staging and updated the precompiles, you can update this PR too

regarding the fork tests, you can temporarily deploy the core contracts and comment this line:

loadDependencies();

@smol-ninja
Copy link
Member Author

you can temporarily deploy the core contracts and comment this line:

@andreivladbrg Sorry but I didn't get what you meant by this. Do you mean deploying the staging branch on the mainnet? And how does commenting on that line help?

@andreivladbrg
Copy link
Member

Sorry but I didn't get what you meant by this. Do you mean deploying the staging branch on the mainnet? And how does commenting on that line help?

ah, no no, poor wording on my side

we just need to do the same thing as in the Integration_Test contract:

function deployDependencies() private {
(comptroller, lockupDynamic, lockupLinear,) = new V2CorePrecompiles().deployCore(users.admin);
}

@smol-ninja
Copy link
Member Author

@andreivladbrg can you please have a last look at this and suggest or approve changes?

Copy link
Member

@andreivladbrg andreivladbrg left a comment

Choose a reason for hiding this comment

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

LGTM

just one small miss:

function expectCallToCreateWithRangeLL(LockupLinear.CreateWithTimestamps memory params) internal {

@smol-ninja smol-ninja merged commit 0d99298 into staging Jan 26, 2024
6 of 7 checks passed
@smol-ninja smol-ninja deleted the refactor/rename-create-functions branch January 26, 2024 12:05
andreivladbrg added a commit that referenced this pull request Feb 13, 2024
* refactor: rename create functions to match v2-core

* build: install v2 core from staging branch

* test: deploy v2-core dependencies for fork testing

* test: update function name

---------

Co-authored-by: andreivladbrg <andreivladbrg@gmail.com>
andreivladbrg added a commit that referenced this pull request Feb 15, 2024
* refactor: rename create functions to match v2-core

* build: install v2 core from staging branch

* test: deploy v2-core dependencies for fork testing

* test: update function name

---------

Co-authored-by: andreivladbrg <andreivladbrg@gmail.com>
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.

3 participants