Skip to content
This repository was archived by the owner on Dec 7, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions contracts/dance/SeedDance.sol
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// SPDX-License-Identifier: CAL
pragma solidity ^0.8.18;

import "../math/LibFixedPointMath.sol";

/// Represents a minimum and maximum duration for the dance in a structure that
/// can fit in a single slot. uint32 representation for timestamps is inline
/// with the rest of the rain protocol.
Expand Down Expand Up @@ -187,7 +185,6 @@ library LibCommitment {
/// would be very likely to be hashed into something else that the miner cannot
/// control or predict.
contract SeedDance {
using LibFixedPointMath for uint256;
using LibCommitment for Commitment;

/// The dance has started.
Expand Down
2 changes: 1 addition & 1 deletion contracts/factory/CloneFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pragma solidity =0.8.19;

import "rain.interface.factory/ICloneableV1.sol";
import "rain.interface.factory/ICloneFactoryV1.sol";
import "../interpreter/deploy/DeployerDiscoverableMetaV1.sol";
import "rain.interface.interpreter/deployerDiscoverable/DeployerDiscoverableMetaV1.sol";
import {ClonesUpgradeable as Clones} from "@openzeppelin/contracts-upgradeable/proxy/ClonesUpgradeable.sol";

/// Thrown when an implementation is the zero address which is always a mistake.
Expand Down
2 changes: 1 addition & 1 deletion contracts/flow/FlowCommon.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import "rain.interface.interpreter/IInterpreterV1.sol";
import "rain.interface.interpreter/LibEncodedDispatch.sol";
import "rain.interface.interpreter/LibContext.sol";
import "rain.lib.interpreter/LibInterpreterState.sol";
import "../interpreter/deploy/DeployerDiscoverableMetaV1.sol";
import "rain.interface.interpreter/deployerDiscoverable/DeployerDiscoverableMetaV1.sol";
import "rain.interface.interpreter/LibEvaluable.sol";

import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
Expand Down
4 changes: 2 additions & 2 deletions contracts/flow/erc20/FlowERC20.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import "rain.interface.interpreter/LibEncodedDispatch.sol";
import "rain.interface.factory/ICloneableV1.sol";
import "rain.interface.flow/IFlowERC20V3.sol";
import "sol.lib.memory/LibStackSentinel.sol";
import "rain.math.fixedpoint/FixedPointDecimalArithmeticOpenZeppelin.sol";

import {AllStandardOps} from "../../interpreter/ops/AllStandardOps.sol";
import "../libraries/LibFlow.sol";
import "../../math/LibFixedPointMath.sol";
import "../FlowCommon.sol";

bytes32 constant CALLER_META_HASH = bytes32(
Expand Down Expand Up @@ -43,7 +43,7 @@ contract FlowERC20 is
using LibUint256Array for uint256;
using LibUint256Array for uint256[];
using LibUint256Matrix for uint256[];
using LibFixedPointMath for uint256;
using FixedPointDecimalArithmeticOpenZeppelin for uint256;

bool private evalHandleTransfer;
Evaluable internal evaluable;
Expand Down
4 changes: 2 additions & 2 deletions contracts/flow/erc721/FlowERC721.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import "sol.lib.memory/LibStackSentinel.sol";
import "rain.interface.interpreter/LibEncodedDispatch.sol";
import "rain.interface.factory/ICloneableV1.sol";
import "rain.interface.flow/IFlowERC721V3.sol";
import "rain.math.fixedpoint/FixedPointDecimalArithmeticOpenZeppelin.sol";

import {AllStandardOps} from "../../interpreter/ops/AllStandardOps.sol";
import "../libraries/LibFlow.sol";
import "../../math/LibFixedPointMath.sol";
import "../FlowCommon.sol";

/// Thrown when burner of tokens is not the owner of tokens.
Expand Down Expand Up @@ -49,7 +49,7 @@ contract FlowERC721 is
using LibUint256Array for uint256;
using LibUint256Array for uint256[];
using LibUint256Matrix for uint256[];
using LibFixedPointMath for uint256;
using FixedPointDecimalArithmeticOpenZeppelin for uint256;
using LibStackSentinel for Pointer;

bool private evalHandleTransfer;
Expand Down
28 changes: 0 additions & 28 deletions contracts/interpreter/deploy/DeployerDiscoverableMetaV1.sol

This file was deleted.

25 changes: 0 additions & 25 deletions contracts/interpreter/deploy/LibDeployerDiscoverable.sol

This file was deleted.

7 changes: 3 additions & 4 deletions contracts/lobby/Lobby.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,17 @@ import "rain.interface.interpreter/LibEncodedDispatch.sol";
import "sol.lib.memory/LibStackPointer.sol";
import "rain.interface.interpreter/LibContext.sol";
import "rain.interface.interpreter/IInterpreterCallerV2.sol";
import "../interpreter/deploy/DeployerDiscoverableMetaV1.sol";
import "rain.interface.interpreter/deployerDiscoverable/DeployerDiscoverableMetaV1.sol";
import "rain.interface.interpreter/LibEvaluable.sol";
import "rain.math.saturating/SaturatingMath.sol";
import "../math/LibFixedPointMath.sol";
import "rain.math.fixedpoint/FixedPointDecimalArithmeticOpenZeppelin.sol";
import "rain.interface.factory/ICloneableV1.sol";
import "sol.lib.memory/LibUint256Matrix.sol";

import "../phased/Phased.sol";
import {ReentrancyGuardUpgradeable as ReentrancyGuard} from "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
import {IERC20Upgradeable as IERC20} from "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
import {SafeERC20Upgradeable as SafeERC20} from "@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol";
import {MathUpgradeable as Math} from "@openzeppelin/contracts-upgradeable/utils/math/MathUpgradeable.sol";

/// Thrown when a result hash already exists but the lobby is attempting to move
/// to complete from pending.
Expand Down Expand Up @@ -143,7 +142,7 @@ contract Lobby is
using LibStackPointer for Pointer;
using Math for uint256;
using SaturatingMath for uint256;
using LibFixedPointMath for uint256;
using FixedPointDecimalArithmeticOpenZeppelin for uint256;

event Initialize(address sender, LobbyConfig config);

Expand Down
82 changes: 0 additions & 82 deletions contracts/math/LibFixedPointMath.sol

This file was deleted.

18 changes: 0 additions & 18 deletions contracts/orderbook/LibOrder.sol

This file was deleted.

107 changes: 0 additions & 107 deletions contracts/orderbook/LibOrderBook.sol

This file was deleted.

Loading