Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: move unused modules #75

Closed
wants to merge 1 commit into from
Closed
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
5 changes: 5 additions & 0 deletions docs/src/content/modules/dispute/bonded_dispute_module.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Bonded Dispute Module

## This is an example module
The contracts included in the examples folder have not been thoroughly tested nor audited.
This are meant to use as example or inspiration for new modules.
==DO NOT USE IN A PRODUCTIVE ENVIRONMENT==
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using a callout here would make the text look different compared to the sentence before and after.

Suggested change
==DO NOT USE IN A PRODUCTIVE ENVIRONMENT==
> [!CAUTION]
> The contracts included in the examples folder have not been thoroughly tested nor audited and are meant to be examples or source of inspiration for new modules. Do not use them in a production environment.


See [IBondedDisputeModule.sol](/solidity/interfaces/modules/dispute/IBondedDisputeModule.sol/interface.IBondedDisputeModule.md) for more details.

## 1. Introduction
Expand Down
5 changes: 5 additions & 0 deletions docs/src/content/modules/dispute/circuit_resolver_module.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Circuit Resolver Module

## This is an example module
The contracts included in the examples folder have not been thoroughly tested nor audited.
This are meant to use as example or inspiration for new modules.
==DO NOT USE IN A PRODUCTIVE ENVIRONMENT==

See [ICircuitResolverModule.sol](/solidity/interfaces/modules/dispute/ICircuitResolverModule.sol/interface.ICircuitResolverModule.md) for more details.

## 1. Introduction
Expand Down
5 changes: 5 additions & 0 deletions docs/src/content/modules/dispute/root_verification_module.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Root Verification Module

## This is an example module
The contracts included in the examples folder have not been thoroughly tested nor audited.
This are meant to use as example or inspiration for new modules.
==DO NOT USE IN A PRODUCTIVE ENVIRONMENT==

See [IRootVerificationModule.sol](/solidity/interfaces/modules/dispute/IRootVerificationModule.sol/interface.IRootVerificationModule.md) for more details.

## 1. Introduction
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Multiple Callbacks Module

## This is an example module
The contracts included in the examples folder have not been thoroughly tested nor audited.
This are meant to use as example or inspiration for new modules.
==DO NOT USE IN A PRODUCTIVE ENVIRONMENT==

See [IMultipleCallbacksModule.sol](/solidity/interfaces/modules/finality/IMultipleCallbacksModule.sol/interface.IMultipleCallbacksModule.md) for more details.

## 1. Introduction
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Contract Call Request Module

## This is an example module
The contracts included in the examples folder have not been thoroughly tested nor audited.
This are meant to use as example or inspiration for new modules.
==DO NOT USE IN A PRODUCTIVE ENVIRONMENT==

See [IContractCallRequestModule.sol](/solidity/interfaces/modules/request/IContractCallRequestModule.sol/interface.IContractCallRequestModule.md) for more details.

## 1. Introduction
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Sparse Merkle Tree Request Module

## This is an example module
The contracts included in the examples folder have not been thoroughly tested nor audited.
This are meant to use as example or inspiration for new modules.
==DO NOT USE IN A PRODUCTIVE ENVIRONMENT==

See [ISparseMerkleTreeRequestModule.sol](/solidity/interfaces/modules/request/ISparseMerkleTreeRequestModule.sol/interface.ISparseMerkleTreeRequestModule.md) for more details.

## 1. Introduction
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Bond Escalation Resolution Module

## This is an example module
The contracts included in the examples folder have not been thoroughly tested nor audited.
This are meant to use as example or inspiration for new modules.
==DO NOT USE IN A PRODUCTIVE ENVIRONMENT==

See [IBondEscalationResolutionModule.sol](/solidity/interfaces/modules/resolution/IBondEscalationResolutionModule.sol/interface.IBondEscalationResolutionModule.md) for more details.

## 1. Introduction
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# ERC20 Resolution Module

## This is an example module
The contracts included in the examples folder have not been thoroughly tested nor audited.
This are meant to use as example or inspiration for new modules.
==DO NOT USE IN A PRODUCTIVE ENVIRONMENT==

See [IERC20ResolutionModule.sol](/solidity/interfaces/modules/resolution/IERC20ResolutionModule.sol/interface.IERC20ResolutionModule.md) for more details.

## 1. Introduction
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Private ERC20 Resolution Module

## This is an example module
The contracts included in the examples folder have not been thoroughly tested nor audited.
This are meant to use as example or inspiration for new modules.
==DO NOT USE IN A PRODUCTIVE ENVIRONMENT==

See [IPrivateERC20ResolutionModule.sol](/solidity/interfaces/modules/resolution/IPrivateERC20ResolutionModule.sol/interface.IPrivateERC20ResolutionModule.md) for more details.

## 1. Introduction
Expand Down
4 changes: 4 additions & 0 deletions solidity/contracts/examples/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
> [!CAUTION]
> Do not use the contracts in the example folder for production.

The contracts included in the examples folder have not been thoroughly tested nor audited. This are meant to use as example or inspiration for new modules. Do not use them in a production environment.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@ pragma solidity ^0.8.19;
import {IModule, Module} from '@defi-wonderland/prophet-core/solidity/contracts/Module.sol';
import {IOracle} from '@defi-wonderland/prophet-core/solidity/interfaces/IOracle.sol';

import {IBondedDisputeModule} from '../../../interfaces/modules/dispute/IBondedDisputeModule.sol';
import {IBondedDisputeModule} from '../../../../interfaces/examples/modules/dispute/IBondedDisputeModule.sol';

// ==========================================WARNING========================================= //
// The contracts included in the examples folder have not been thoroughly tested nor audited. //
// This are meant to use as example or inspiration for new modules. //
// DO NOT USE IN A PRODUCTIVE ENVIRONMENT. //
// ==========================================WARNING========================================= //
contract BondedDisputeModule is Module, IBondedDisputeModule {
constructor(IOracle _oracle) Module(_oracle) {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@ pragma solidity ^0.8.19;
import {IModule, Module} from '@defi-wonderland/prophet-core/solidity/contracts/Module.sol';
import {IOracle} from '@defi-wonderland/prophet-core/solidity/interfaces/IOracle.sol';

import {IProphetVerifier} from '../../../interfaces/IProphetVerifier.sol';
import {ICircuitResolverModule} from '../../../interfaces/modules/dispute/ICircuitResolverModule.sol';

import {IProphetVerifier} from '../../../../interfaces/IProphetVerifier.sol';
import {ICircuitResolverModule} from '../../../../interfaces/examples/modules/dispute/ICircuitResolverModule.sol';

// ==========================================WARNING========================================= //
// The contracts included in the examples folder have not been thoroughly tested nor audited. //
// This are meant to use as example or inspiration for new modules. //
// DO NOT USE IN A PRODUCTIVE ENVIRONMENT. //
// ==========================================WARNING========================================= //
contract CircuitResolverModule is Module, ICircuitResolverModule {
/// @notice Keeps track of the correct responses to requests
mapping(bytes32 _requestId => bytes _correctResponse) internal _correctResponses;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@ pragma solidity ^0.8.19;
import {IModule, Module} from '@defi-wonderland/prophet-core/solidity/contracts/Module.sol';
import {IOracle} from '@defi-wonderland/prophet-core/solidity/interfaces/IOracle.sol';

import {IRootVerificationModule} from '../../../interfaces/modules/dispute/IRootVerificationModule.sol';
import {MerkleLib} from '../../libraries/MerkleLib.sol';

import {IRootVerificationModule} from '../../../../interfaces/examples/modules/dispute/IRootVerificationModule.sol';
import {MerkleLib} from '../../../libraries/MerkleLib.sol';

// ==========================================WARNING========================================= //
// The contracts included in the examples folder have not been thoroughly tested nor audited. //
// This are meant to use as example or inspiration for new modules. //
// DO NOT USE IN A PRODUCTIVE ENVIRONMENT. //
// ==========================================WARNING========================================= //
contract RootVerificationModule is Module, IRootVerificationModule {
using MerkleLib for MerkleLib.Tree;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@ pragma solidity ^0.8.19;
import {IModule, Module} from '@defi-wonderland/prophet-core/solidity/contracts/Module.sol';
import {IOracle} from '@defi-wonderland/prophet-core/solidity/interfaces/IOracle.sol';

import {IProphetCallback} from '../../../interfaces/IProphetCallback.sol';
import {IMultipleCallbacksModule} from '../../../interfaces/modules/finality/IMultipleCallbacksModule.sol';
import {IProphetCallback} from '../../../../interfaces/IProphetCallback.sol';
import {IMultipleCallbacksModule} from '../../../../interfaces/examples/modules/finality/IMultipleCallbacksModule.sol';

// ==========================================WARNING========================================= //
// The contracts included in the examples folder have not been thoroughly tested nor audited. //
// This are meant to use as example or inspiration for new modules. //
// DO NOT USE IN A PRODUCTIVE ENVIRONMENT. //
// ==========================================WARNING========================================= //
contract MultipleCallbacksModule is Module, IMultipleCallbacksModule {
constructor(IOracle _oracle) Module(_oracle) {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@ pragma solidity ^0.8.19;
import {IModule, Module} from '@defi-wonderland/prophet-core/solidity/contracts/Module.sol';
import {IOracle} from '@defi-wonderland/prophet-core/solidity/interfaces/IOracle.sol';

import {IContractCallRequestModule} from '../../../interfaces/modules/request/IContractCallRequestModule.sol';
import {IContractCallRequestModule} from
'../../../../interfaces/examples/modules/request/IContractCallRequestModule.sol';

// ==========================================WARNING========================================= //
// The contracts included in the examples folder have not been thoroughly tested nor audited. //
// This are meant to use as example or inspiration for new modules. //
// DO NOT USE IN A PRODUCTIVE ENVIRONMENT. //
// ==========================================WARNING========================================= //
contract ContractCallRequestModule is Module, IContractCallRequestModule {
constructor(IOracle _oracle) Module(_oracle) {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@ pragma solidity ^0.8.19;
import {IModule, Module} from '@defi-wonderland/prophet-core/solidity/contracts/Module.sol';
import {IOracle} from '@defi-wonderland/prophet-core/solidity/interfaces/IOracle.sol';

import {ISparseMerkleTreeRequestModule} from '../../../interfaces/modules/request/ISparseMerkleTreeRequestModule.sol';
import {ISparseMerkleTreeRequestModule} from
'../../../../interfaces/examples/modules/request/ISparseMerkleTreeRequestModule.sol';

// ==========================================WARNING========================================= //
// The contracts included in the examples folder have not been thoroughly tested nor audited. //
// This are meant to use as example or inspiration for new modules. //
// DO NOT USE IN A PRODUCTIVE ENVIRONMENT. //
// ==========================================WARNING========================================= //
contract SparseMerkleTreeRequestModule is Module, ISparseMerkleTreeRequestModule {
constructor(IOracle _oracle) Module(_oracle) {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

// solhint-disable-next-line no-unused-import

import {IERC20} from '@openzeppelin/contracts/token/ERC20/IERC20.sol';

Check warning on line 6 in solidity/contracts/examples/modules/resolution/BondEscalationResolutionModule.sol

View workflow job for this annotation

GitHub Actions / Run Linters (16.x)

imported name IERC20 is not used
import {SafeERC20} from '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';
import {FixedPointMathLib} from 'solmate/src/utils/FixedPointMathLib.sol';

Expand All @@ -15,8 +15,13 @@
'@defi-wonderland/prophet-core/solidity/interfaces/modules/resolution/IResolutionModule.sol';

import {IBondEscalationResolutionModule} from
'../../../interfaces/modules/resolution/IBondEscalationResolutionModule.sol';
'../../../../interfaces/examples/modules/resolution/IBondEscalationResolutionModule.sol';

// ==========================================WARNING========================================= //
// The contracts included in the examples folder have not been thoroughly tested nor audited. //
// This are meant to use as example or inspiration for new modules. //
// DO NOT USE IN A PRODUCTIVE ENVIRONMENT. //
// ==========================================WARNING========================================= //
contract BondEscalationResolutionModule is Module, IBondEscalationResolutionModule {
using SafeERC20 for IERC20;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ import {EnumerableSet} from '@openzeppelin/contracts/utils/structs/EnumerableSet
import {IModule, Module} from '@defi-wonderland/prophet-core/solidity/contracts/Module.sol';
import {IOracle} from '@defi-wonderland/prophet-core/solidity/interfaces/IOracle.sol';

import {IERC20ResolutionModule} from '../../../interfaces/modules/resolution/IERC20ResolutionModule.sol';
// ==========================================WARNING========================================= //
// The contracts included in the examples folder have not been thoroughly tested nor audited. //
// This are meant to use as example or inspiration for new modules. //
// DO NOT USE IN A PRODUCTIVE ENVIRONMENT. //
// ==========================================WARNING========================================= //
import {IERC20ResolutionModule} from '../../../../interfaces/examples/modules/resolution/IERC20ResolutionModule.sol';

contract ERC20ResolutionModule is Module, IERC20ResolutionModule {
using SafeERC20 for IERC20;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,14 @@ import {EnumerableSet} from '@openzeppelin/contracts/utils/structs/EnumerableSet
import {IModule, Module} from '@defi-wonderland/prophet-core/solidity/contracts/Module.sol';
import {IOracle} from '@defi-wonderland/prophet-core/solidity/interfaces/IOracle.sol';

import {IPrivateERC20ResolutionModule} from '../../../interfaces/modules/resolution/IPrivateERC20ResolutionModule.sol';

import {IPrivateERC20ResolutionModule} from
'../../../../interfaces/examples/modules/resolution/IPrivateERC20ResolutionModule.sol';

// ==========================================WARNING========================================= //
// The contracts included in the examples folder have not been thoroughly tested nor audited. //
// This are meant to use as example or inspiration for new modules. //
// DO NOT USE IN A PRODUCTIVE ENVIRONMENT. //
// ==========================================WARNING========================================= //
contract PrivateERC20ResolutionModule is Module, IPrivateERC20ResolutionModule {
using SafeERC20 for IERC20;
using EnumerableSet for EnumerableSet.AddressSet;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ import {IOracle} from '@defi-wonderland/prophet-core/solidity/interfaces/IOracle
import {IDisputeModule} from '@defi-wonderland/prophet-core/solidity/interfaces/modules/dispute/IDisputeModule.sol';
import {IERC20} from '@openzeppelin/contracts/token/ERC20/IERC20.sol';

import {IAccountingExtension} from '../../extensions/IAccountingExtension.sol';
import {IAccountingExtension} from '../../../extensions/IAccountingExtension.sol';

// ==========================================WARNING========================================= //
// The contracts included in the examples folder have not been thoroughly tested nor audited. //
// This are meant to use as example or inspiration for new modules. //
// DO NOT USE IN A PRODUCTIVE ENVIRONMENT. //
// ==========================================WARNING========================================= //
/*
* @title BondedDisputeModule
* @notice Module allowing users to dispute a proposed response
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ import {IOracle} from '@defi-wonderland/prophet-core/solidity/interfaces/IOracle
import {IDisputeModule} from '@defi-wonderland/prophet-core/solidity/interfaces/modules/dispute/IDisputeModule.sol';
import {IERC20} from '@openzeppelin/contracts/token/ERC20/IERC20.sol';

import {IAccountingExtension} from '../../extensions/IAccountingExtension.sol';
import {IAccountingExtension} from '../../../extensions/IAccountingExtension.sol';

// ==========================================WARNING========================================= //
// The contracts included in the examples folder have not been thoroughly tested nor audited. //
// This are meant to use as example or inspiration for new modules. //
// DO NOT USE IN A PRODUCTIVE ENVIRONMENT. //
// ==========================================WARNING========================================= //
/**
* @title CircuitResolverModule
* @notice Module allowing users to dispute a proposed response by bonding tokens.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@ import {IOracle} from '@defi-wonderland/prophet-core/solidity/interfaces/IOracle
import {IDisputeModule} from '@defi-wonderland/prophet-core/solidity/interfaces/modules/dispute/IDisputeModule.sol';
import {IERC20} from '@openzeppelin/contracts/token/ERC20/IERC20.sol';

import {ITreeVerifier} from '../../ITreeVerifier.sol';
import {IAccountingExtension} from '../../extensions/IAccountingExtension.sol';
import {ITreeVerifier} from '../../../ITreeVerifier.sol';
import {IAccountingExtension} from '../../../extensions/IAccountingExtension.sol';

// ==========================================WARNING========================================= //
// The contracts included in the examples folder have not been thoroughly tested nor audited. //
// This are meant to use as example or inspiration for new modules. //
// DO NOT USE IN A PRODUCTIVE ENVIRONMENT. //
// ==========================================WARNING========================================= //
/*
* @title RootVerificationModule
* @notice Dispute module allowing disputers to calculate the correct root for a given request and propose it as a response.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ pragma solidity ^0.8.19;
import {IOracle} from '@defi-wonderland/prophet-core/solidity/interfaces/IOracle.sol';
import {IFinalityModule} from '@defi-wonderland/prophet-core/solidity/interfaces/modules/finality/IFinalityModule.sol';

// ==========================================WARNING========================================= //
// The contracts included in the examples folder have not been thoroughly tested nor audited. //
// This are meant to use as example or inspiration for new modules. //
// DO NOT USE IN A PRODUCTIVE ENVIRONMENT. //
// ==========================================WARNING========================================= //
/**
* @title MultipleCallbackModule
* @notice Module allowing users to make multiple calls to different contracts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ import {IOracle} from '@defi-wonderland/prophet-core/solidity/interfaces/IOracle
import {IRequestModule} from '@defi-wonderland/prophet-core/solidity/interfaces/modules/request/IRequestModule.sol';
import {IERC20} from '@openzeppelin/contracts/token/ERC20/IERC20.sol';

import {IAccountingExtension} from '../../../interfaces/extensions/IAccountingExtension.sol';
import {IAccountingExtension} from '../../../../interfaces/extensions/IAccountingExtension.sol';

// ==========================================WARNING========================================= //
// The contracts included in the examples folder have not been thoroughly tested nor audited. //
// This are meant to use as example or inspiration for new modules. //
// DO NOT USE IN A PRODUCTIVE ENVIRONMENT. //
// ==========================================WARNING========================================= //
/**
* @title ContractCallRequestModule
* @notice Request module for making contract calls
Expand Down
Loading
Loading