Skip to content

Commit

Permalink
refactor: drop v2 from the names
Browse files Browse the repository at this point in the history
  • Loading branch information
smol-ninja committed May 13, 2024
1 parent 6678282 commit b8afb04
Show file tree
Hide file tree
Showing 31 changed files with 210 additions and 218 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Sablier V2 Open-Ended
## Sablier Open-Ended

This repository contains the smart contracts for the EOES (EVM open-ended streams) concept. By open-ended, we mean that
the streams have no fixed duration and no deposit amount at stream creation. This concept is primarily beneficial for
Expand Down Expand Up @@ -142,7 +142,7 @@ _withdrawable amount ≤ streamed amount_

_sum of withdrawn amounts ≤ sum of deposits_

_sum of stream balances normilized to asset decimals ≤ asset.balanceOf(SablierV2OpenEnded)_
_sum of stream balances normilized to asset decimals ≤ asset.balanceOf(SablierOpenEnded)_

_lastTimeUpdate ≤ block.timestamp;_

Expand Down
Binary file modified bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sablier/v2-open-ended",
"description": "Open ended smart contracts of the Sablier V2 token streaming protocol",
"name": "@sablier/open-ended",
"description": "Open ended smart contracts of the Sablier token streaming protocol",
"license": "BUSL-1.1",
"version": "1.0.0",
"author": {
Expand Down
6 changes: 3 additions & 3 deletions precompiles/Precompiles.sol

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions script/DeployDeterministicOpenEnded.s.sol
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.8.22 <0.9.0;

import { SablierV2OpenEnded } from "src/SablierV2OpenEnded.sol";
import { SablierOpenEnded } from "src/SablierOpenEnded.sol";

import { BaseScript } from "./Base.s.sol";

/// @notice Deploys {SablierV2OpenEnded} at a deterministic address across chains.
/// @notice Deploys {SablierOpenEnded} at a deterministic address across chains.
/// @dev Reverts if the contract has already been deployed.
contract DeployDeterministicOpenEnded is BaseScript {
function run() public broadcast returns (SablierV2OpenEnded openEnded) {
openEnded = new SablierV2OpenEnded{ salt: constructCreate2Salt() }();
function run() public broadcast returns (SablierOpenEnded openEnded) {
openEnded = new SablierOpenEnded{ salt: constructCreate2Salt() }();
}
}
8 changes: 4 additions & 4 deletions script/DeployOpenEnded.s.sol
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.8.22 <0.9.0;

import { SablierV2OpenEnded } from "src/SablierV2OpenEnded.sol";
import { SablierOpenEnded } from "src/SablierOpenEnded.sol";

import { BaseScript } from "./Base.s.sol";

/// @notice Deploys {SablierV2OpenEnded}.
/// @notice Deploys {SablierOpenEnded}.
contract DeployOpenEnded is BaseScript {
function run() public broadcast returns (SablierV2OpenEnded openEnded) {
openEnded = new SablierV2OpenEnded();
function run() public broadcast returns (SablierOpenEnded openEnded) {
openEnded = new SablierOpenEnded();
}
}
6 changes: 3 additions & 3 deletions shell/prepare-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ mkdir $artifacts \
FOUNDRY_PROFILE=optimized forge build

# Copy the production artifacts
cp out-optimized/SablierV2OpenEnded.sol/SablierV2OpenEnded.json $artifacts
cp out-optimized/SablierOpenEnded.sol/SablierOpenEnded.json $artifacts

interfaces=./artifacts/interfaces
cp out-optimized/ISablierV2OpenEnded.sol/ISablierV2OpenEnded.json $interfaces
cp out-optimized/ISablierV2OpenEndedState.sol/ISablierV2OpenEndedState.json $interfaces
cp out-optimized/ISablierOpenEnded.sol/ISablierOpenEnded.json $interfaces
cp out-optimized/ISablierOpenEndedState.sol/ISablierOpenEndedState.json $interfaces

erc20=./artifacts/interfaces/erc20
cp out-optimized/IERC20.sol/IERC20.json $erc20
Expand Down
4 changes: 2 additions & 2 deletions shell/update-precompiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ set -euo pipefail
FOUNDRY_PROFILE=optimized forge build

# Retrieve the raw bytecodes, removing the "0x" prefix
open_ended=$(cat out-optimized/SablierV2OpenEnded.sol/SablierV2OpenEnded.json | jq -r '.bytecode.object' | cut -c 3-)
open_ended=$(cat out-optimized/SablierOpenEnded.sol/SablierOpenEnded.json | jq -r '.bytecode.object' | cut -c 3-)

precompiles_path="precompiles/Precompiles.sol"
if [ ! -f $precompiles_path ]; then
Expand All @@ -24,4 +24,4 @@ fi
sd "(BYTECODE_OPEN_ENDED =)[^;]+;" "\$1 hex\"$open_ended\";" $precompiles_path

# Reformat the code with Forge
forge fmt $precompiles_path
forge fmt $precompiles_path
Loading

0 comments on commit b8afb04

Please sign in to comment.