Skip to content

Commit

Permalink
tests: use relative path in utils contracts (#1169)
Browse files Browse the repository at this point in the history
* tests: use relative path in Utility contracts

* docs: update changelog and bump npm version

* test: use 2.0.1 in BaseScript.t.sol

* test: rename DeployOptimized.sol to DeployOptimized.t.sol

* docs: update changelog

* docs: update changelog

Co-authored-by: Andrei Vlad Birgaoanu <[email protected]>

---------

Co-authored-by: Andrei Vlad Birgaoanu <[email protected]>
  • Loading branch information
smol-ninja and andreivladbrg committed Feb 5, 2025
1 parent 2b129a5 commit 27ced05
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 5 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file.

The format is based on [Common Changelog](https://common-changelog.org/).

[2.0.1]: https://github.com/sablier-labs/lockup/compare/v2.0.0...v2.0.1
[2.0.0]: https://github.com/sablier-labs/lockup/compare/v1.2.0...v2.0.0
[1.2.0]: https://github.com/sablier-labs/lockup/compare/v1.1.2...v1.2.0
[1.1.2]: https://github.com/sablier-labs/lockup/compare/v1.1.1...v1.1.2
Expand All @@ -13,6 +14,17 @@ The format is based on [Common Changelog](https://common-changelog.org/).
[1.0.1]: https://github.com/sablier-labs/lockup/compare/v1.0.0...v1.0.1
[1.0.0]: https://github.com/sablier-labs/lockup/releases/tag/v1.0.0

## [2.0.1] - 2025-02-05

### Changed

- Use relative path to import source contracts in test utils files
([#1169](https://github.com/sablier-labs/lockup/pull/1169))

### Removed

- Remove `DeployOptimized.sol` from npm package ([#1169](https://github.com/sablier-labs/lockup/pull/1169))

## [2.0.0] - 2025-01-28

### Changed
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@sablier/lockup",
"description": "Core smart contracts of the Lockup token distribution protocol",
"license": "BUSL-1.1",
"version": "2.0.0",
"version": "2.0.1",
"author": {
"name": "Sablier Labs Ltd",
"url": "https://sablier.com"
Expand Down
2 changes: 1 addition & 1 deletion tests/Base.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { ContractWithoutReceive, ContractWithReceive } from "./mocks/Receive.sol
import { Assertions } from "./utils/Assertions.sol";
import { Calculations } from "./utils/Calculations.sol";
import { Defaults } from "./utils/Defaults.sol";
import { DeployOptimized } from "./utils/DeployOptimized.sol";
import { DeployOptimized } from "./utils/DeployOptimized.t.sol";
import { Modifiers } from "./utils/Modifiers.sol";
import { Users } from "./utils/Types.sol";

Expand Down
2 changes: 1 addition & 1 deletion tests/utils/BaseScript.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ contract BaseScript_Test is StdAssertions {

function test_ConstructCreate2Salt() public view {
string memory chainId = block.chainid.toString();
string memory version = "2.0.0";
string memory version = "2.0.1";
string memory salt = string.concat("ChainID ", chainId, ", Version ", version);

bytes32 actualSalt = baseScript.constructCreate2Salt();
Expand Down
2 changes: 1 addition & 1 deletion tests/utils/BatchLockupBuilder.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.8.22;

import { BatchLockup, Lockup, LockupDynamic, LockupLinear, LockupTranched } from "src/types/DataTypes.sol";
import { BatchLockup, Lockup, LockupDynamic, LockupLinear, LockupTranched } from "../../src/types/DataTypes.sol";

library BatchLockupBuilder {
/// @notice Generates an array containing `batchSize` copies of `batchSingle`.
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/utils/Modifiers.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.8.22;

import { ISablierLockup } from "src/interfaces/ISablierLockup.sol";
import { ISablierLockup } from "../../src/interfaces/ISablierLockup.sol";

import { Defaults } from "./Defaults.sol";
import { Fuzzers } from "./Fuzzers.sol";
Expand Down

0 comments on commit 27ced05

Please sign in to comment.