Skip to content

Commit

Permalink
refactor: batch function
Browse files Browse the repository at this point in the history
  • Loading branch information
smol-ninja committed Dec 31, 2024
1 parent b5df197 commit ab3f0eb
Show file tree
Hide file tree
Showing 9 changed files with 42 additions and 217 deletions.
Binary file modified bun.lockb
Binary file not shown.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
},
"dependencies": {
"@openzeppelin/contracts": "5.0.2",
"@prb/math": "4.1.0"
"@prb/math": "4.1.0",
"@sablier/lockup": "github:sablier-labs/v2-core#f890214"
},
"devDependencies": {
"forge-std": "github:foundry-rs/forge-std#v1.8.2",
Expand Down
5 changes: 3 additions & 2 deletions remappings.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@openzeppelin/contracts/=node_modules/@openzeppelin/contracts/
@prb/math/=node_modules/@prb/math/
forge-std/=node_modules/forge-std/
solady/=node_modules/solady/
@sablier/lockup/=node_modules/@sablier/lockup/
forge-std/=node_modules/forge-std/
solady/=node_modules/solady/
2 changes: 1 addition & 1 deletion src/SablierFlow.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import { ERC721 } from "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import { SafeCast } from "@openzeppelin/contracts/utils/math/SafeCast.sol";
import { ud21x18, UD21x18 } from "@prb/math/src/UD21x18.sol";
import { UD60x18, ZERO } from "@prb/math/src/UD60x18.sol";
import { Batch } from "@sablier/lockup/src/abstracts/Batch.sol";

import { Batch } from "./abstracts/Batch.sol";
import { NoDelegateCall } from "./abstracts/NoDelegateCall.sol";
import { SablierFlowBase } from "./abstracts/SablierFlowBase.sol";
import { IFlowNFTDescriptor } from "./interfaces/IFlowNFTDescriptor.sol";
Expand Down
26 changes: 0 additions & 26 deletions src/abstracts/Batch.sol

This file was deleted.

9 changes: 0 additions & 9 deletions src/interfaces/IBatch.sol

This file was deleted.

2 changes: 1 addition & 1 deletion src/interfaces/ISablierFlow.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ pragma solidity >=0.8.22;

import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { UD21x18 } from "@prb/math/src/UD21x18.sol";
import { IBatch } from "@sablier/lockup/src/interfaces/IBatch.sol";

import { Broker, Flow } from "./../types/DataTypes.sol";
import { IBatch } from "./IBatch.sol";
import { ISablierFlowBase } from "./ISablierFlowBase.sol";

/// @title ISablierFlow
Expand Down
1 change: 0 additions & 1 deletion tests/fork/Fork.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ pragma solidity >=0.8.22;

import { IERC20Metadata } from "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { ISablierFlow } from "src/interfaces/ISablierFlow.sol";
import { SablierFlow } from "src/SablierFlow.sol";

import { Base_Test } from "../Base.t.sol";
Expand Down
Loading

0 comments on commit ab3f0eb

Please sign in to comment.