Initial commit

Lays out directory structure start specifing core interfaces.
This commit is contained in:
kayibal
2023-10-31 10:15:20 +00:00
parent 749bfdddaf
commit 51312525c1
6 changed files with 10 additions and 60 deletions

View File

@@ -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

View File

@@ -0,0 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity ^0.8.13;
interface IPairFunctions {
function price() external returns (uint256);
}

View File

@@ -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();
}
}

View File

@@ -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++;
}
}

View File

@@ -0,0 +1,2 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

View File

@@ -0,0 +1,2 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;