-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into change-packages
- Loading branch information
Showing
23 changed files
with
840 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Echidna Periphery | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- staged | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
UnitAsserts: | ||
strategy: | ||
matrix: | ||
testName: | ||
- TickLensEchidnaTest | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
cache: 'npm' | ||
|
||
- name: Install dependencies | ||
run: npm run ci-install | ||
|
||
- name: Compile contracts | ||
run: npm run compile | ||
working-directory: ./src/periphery | ||
|
||
- name: Run ${{ matrix.testName }} | ||
uses: crytic/echidna-action@v2 | ||
with: | ||
solc-version: 0.8.20 | ||
files: ./src/periphery/ | ||
contract: ${{ matrix.testName }} | ||
crytic-args: --hardhat-ignore-compile | ||
solc-args: --evm-version paris | ||
config: ./src/periphery/contracts/test/echidna/echidna.config.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
|
||
# TickStructure | ||
|
||
|
||
Algebra tick structure abstract contract | ||
|
||
Encapsulates the logic of interaction with the data structure with ticks | ||
|
||
*Developer note: Ticks are stored as a doubly linked list. A three-level bitmap tree is used to search through the list* | ||
|
||
|
||
## Variables | ||
### uint32 tickTreeRoot | ||
|
||
The root of tick search tree | ||
|
||
*Developer note: Each bit corresponds to one node in the second layer of tick tree: '1' if node has at least one active bit. | ||
**important security note: caller should check reentrancy lock to prevent read-only reentrancy*** | ||
|
||
### mapping(int16 => uint256) tickTreeSecondLayer | ||
|
||
The second layer of tick search tree | ||
|
||
*Developer note: Each bit in node corresponds to one node in the leafs layer (`tickTable`) of tick tree: '1' if leaf has at least one active bit. | ||
**important security note: caller should check reentrancy lock to prevent read-only reentrancy*** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ cache/ | |
crytic-export/ | ||
node_modules/ | ||
typechain/ | ||
.env | ||
.env | ||
**/hardhat-dependency-compiler |
Oops, something went wrong.