Skip to content

Commit

Permalink
docs: remove ".md" from hyperlink
Browse files Browse the repository at this point in the history
style: run forge fmt
  • Loading branch information
andreivladbrg committed Dec 7, 2023
1 parent 9d59e6e commit 4cb7860
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 33 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ docs, as well as these [diagrams](https://docs.sablier.com/contracts/v2/referenc
## Deployments

The list of all deployment addresses can be found [here](https://docs.sablier.com). For guidance on the deploy scripts,
see the [Deployments wiki](https://github.com/sablier-labs/v2-core/wiki/Deployments.md).
see the [Deployments wiki](https://github.com/sablier-labs/v2-core/wiki/Deployments).

It is worth noting that not every file in this repository is included in the current deployments. For instance, the
`SablierV2FlashLoan` abstract is not inherited by any contract on the `main` branch, but we have kept it in version
Expand Down
14 changes: 5 additions & 9 deletions script/DeployDeterministicCore.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,11 @@ contract DeployDeterministicCore is BaseScript {
)
{
bytes32 salt = bytes32(abi.encodePacked(create2Salt));
comptroller = new SablierV2Comptroller{ salt: salt}(initialAdmin);
nftDescriptor = new SablierV2NFTDescriptor{ salt: salt}();
comptroller = new SablierV2Comptroller{ salt: salt }(initialAdmin);
nftDescriptor = new SablierV2NFTDescriptor{ salt: salt }();
// forgefmt: disable-next-line
lockupDynamic = new SablierV2LockupDynamic{ salt: salt}(
initialAdmin,
comptroller,
nftDescriptor,
maxSegmentCount
);
lockupLinear = new SablierV2LockupLinear{ salt: salt}(initialAdmin, comptroller, nftDescriptor);
lockupDynamic =
new SablierV2LockupDynamic{ salt: salt }(initialAdmin, comptroller, nftDescriptor, maxSegmentCount);
lockupLinear = new SablierV2LockupLinear{ salt: salt }(initialAdmin, comptroller, nftDescriptor);
}
}
12 changes: 4 additions & 8 deletions script/DeployDeterministicCore2.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,10 @@ contract DeployDeterministicCore2 is BaseScript {
)
{
bytes32 salt = bytes32(abi.encodePacked(create2Salt));
comptroller = new SablierV2Comptroller{ salt: salt}(initialAdmin);
comptroller = new SablierV2Comptroller{ salt: salt }(initialAdmin);
// forgefmt: disable-next-line
lockupDynamic = new SablierV2LockupDynamic{ salt: salt}(
initialAdmin,
comptroller,
nftDescriptor,
maxSegmentCount
);
lockupLinear = new SablierV2LockupLinear{ salt: salt}(initialAdmin, comptroller, nftDescriptor);
lockupDynamic =
new SablierV2LockupDynamic{ salt: salt }(initialAdmin, comptroller, nftDescriptor, maxSegmentCount);
lockupLinear = new SablierV2LockupLinear{ salt: salt }(initialAdmin, comptroller, nftDescriptor);
}
}
5 changes: 1 addition & 4 deletions script/DeployDeterministicLockupDynamic.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ contract DeployDeterministicLockupDynamic is BaseScript {
returns (SablierV2LockupDynamic lockupDynamic)
{
lockupDynamic = new SablierV2LockupDynamic{ salt: bytes32(abi.encodePacked(create2Salt)) }(
initialAdmin,
initialComptroller,
initialNFTDescriptor,
maxSegmentCount
initialAdmin, initialComptroller, initialNFTDescriptor, maxSegmentCount
);
}
}
4 changes: 1 addition & 3 deletions script/DeployDeterministicLockupLinear.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ contract DeployDeterministicLockupLinear is BaseScript {
returns (SablierV2LockupLinear lockupLinear)
{
lockupLinear = new SablierV2LockupLinear{ salt: bytes32(abi.encodePacked(create2Salt)) }(
initialAdmin,
initialComptroller,
initialNFTDescriptor
initialAdmin, initialComptroller, initialNFTDescriptor
);
}
}
8 changes: 2 additions & 6 deletions script/DeployLockupDynamic.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@ contract DeployLockupDynamic is BaseScript {
broadcast
returns (SablierV2LockupDynamic lockupDynamic)
{
lockupDynamic = new SablierV2LockupDynamic(
initialAdmin,
initialComptroller,
initialNFTDescriptor,
maxSegmentCount
);
lockupDynamic =
new SablierV2LockupDynamic(initialAdmin, initialComptroller, initialNFTDescriptor, maxSegmentCount);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ contract SafeAssetSymbol_Integration_Concrete_Test is NFTDescriptor_Integration_
}

function test_SafeAssetSymbol_LongSymbol() external whenERC20Contract givenSymbolString {
ERC20 asset =
new ERC20({ name_: "Token", symbol_: "This symbol is has more than 30 characters and it should be ignored" });
ERC20 asset = new ERC20({
name_: "Token",
symbol_: "This symbol is has more than 30 characters and it should be ignored"
});
string memory actualSymbol = nftDescriptorMock.safeAssetSymbol_(address(asset));
string memory expectedSymbol = "Long Symbol";
assertEq(actualSymbol, expectedSymbol, "symbol");
Expand Down

0 comments on commit 4cb7860

Please sign in to comment.