Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
grebois committed May 20, 2024
1 parent 76c97b4 commit 4ca0c4c
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 5 deletions.
66 changes: 66 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Deploy Documentation

on:
push:
branches:
- development
- feat/doc
# paths:
# - 'pkg/seawater/**'

#on:
# push:
# branches:
# - development
# pull_request:
# branches:
# - development

jobs:
# build:
# runs-on: ubuntu-latest
#
# steps:
# - name: Checkout repository
# uses: actions/checkout@v3
# with:
# submodules: recursive
#
# - name: Setup Foundry toolchain
# uses: foundry-rs/foundry-toolchain@v1
#
# - name: Generate documentation
# run: |
# cd pkg
# forge doc

deploy:
# if: github.event_name == 'push' && github.ref == 'refs/heads/development'
runs-on: ubuntu-latest
needs: build

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive

- name: Setup Foundry toolchain
uses: foundry-rs/foundry-toolchain@v1

- name: Generate documentation
run: |
cd pkg
forge doc
- name: Deploy to GitHub Pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd pkg/docs-out
git init
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git add .
git commit -m 'Deploy documentation'
git push --force --quiet "https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git" HEAD:gh-pages
Empty file.
11 changes: 6 additions & 5 deletions pkg/interfaces/ISeawaterEvents.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ interface ISeawaterEvents {

/// @notice emitted when a position is burned
/// @param id the id of the position being burned
//// @param owner the user the owned the position
/// @param owner the user the owned the position
event BurnPosition(
uint256 indexed id,
address indexed owner
Expand All @@ -29,7 +29,7 @@ interface ISeawaterEvents {
/// @notice emitted when a position changes owners
/// @param from the original owner of the position
/// @param to the new owner of the position
/// @param id the id of the position being transfered
/// @param id the id of the position being transferred
event TransferPosition(
address indexed from,
address indexed to,
Expand All @@ -45,9 +45,9 @@ interface ISeawaterEvents {
);

/// @notice emitted when a liquidity provider collects the fees associated with a position
/// @param id the id of the position who's liquidity is being collected
/// @param id the id of the position whose liquidity is being collected
/// @param pool the address of the pool the position is associated with
/// @param to the receipient of the fees
/// @param to the recipient of the fees
/// @param amount0 the amount of token0 being collected
/// @param amount1 the amount of token1 being collected
event CollectFees(
Expand All @@ -63,7 +63,8 @@ interface ISeawaterEvents {
/// @notice emitted when a new pool is created
/// @param token the token0 the pool is associated with (where token1 is a fluid token)
/// @param fee the fee being used for this pool
/// @param price the starting price for this pool
/// @param decimals the decimals for the token
/// @param tickSpacing the tick spacing for the pool
event NewPool(
address indexed token,
uint32 indexed fee,
Expand Down

0 comments on commit 4ca0c4c

Please sign in to comment.