diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 09880b1..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: test - -on: workflow_dispatch - -env: - FOUNDRY_PROFILE: ci - -jobs: - check: - strategy: - fail-fast: true - - name: Foundry project - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - submodules: recursive - - - name: Install Foundry - uses: foundry-rs/foundry-toolchain@v1 - with: - version: nightly - - - name: Run Forge build - run: | - forge --version - forge build --sizes - id: build - - - name: Run Forge tests - run: | - forge test -vvv - id: test diff --git a/interfaces/IPairFunctions.sol b/interfaces/IPairFunctions.sol new file mode 100644 index 0000000..a4317fc --- /dev/null +++ b/interfaces/IPairFunctions.sol @@ -0,0 +1,6 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later +pragma solidity ^0.8.13; + +interface IPairFunctions { + function price() external returns (uint256); +} \ No newline at end of file diff --git a/script/Counter.s.sol b/script/Counter.s.sol deleted file mode 100644 index 0e546ab..0000000 --- a/script/Counter.s.sol +++ /dev/null @@ -1,12 +0,0 @@ -// SPDX-License-Identifier: UNLICENSED -pragma solidity ^0.8.13; - -import "forge-std/Script.sol"; - -contract CounterScript is Script { - function setUp() public {} - - function run() public { - vm.broadcast(); - } -} diff --git a/src/Counter.sol b/src/Counter.sol deleted file mode 100644 index aded799..0000000 --- a/src/Counter.sol +++ /dev/null @@ -1,14 +0,0 @@ -// SPDX-License-Identifier: UNLICENSED -pragma solidity ^0.8.13; - -contract Counter { - uint256 public number; - - function setNumber(uint256 newNumber) public { - number = newNumber; - } - - function increment() public { - number++; - } -} diff --git a/src/uniswap-v2/UniswapV2Executor.sol b/src/uniswap-v2/UniswapV2Executor.sol new file mode 100644 index 0000000..3b44e48 --- /dev/null +++ b/src/uniswap-v2/UniswapV2Executor.sol @@ -0,0 +1,2 @@ +// SPDX-License-Identifier: UNLICENSED +pragma solidity ^0.8.13; \ No newline at end of file diff --git a/src/uniswap-v2/UniswapV2PairFunctions.sol b/src/uniswap-v2/UniswapV2PairFunctions.sol new file mode 100644 index 0000000..0d2a23e --- /dev/null +++ b/src/uniswap-v2/UniswapV2PairFunctions.sol @@ -0,0 +1,2 @@ +// SPDX-License-Identifier: UNLICENSED +pragma solidity ^0.8.13;