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

feat(alloy): Migrate pool lens to use Alloy #2

Merged
merged 6 commits into from
Jul 20, 2024
Merged
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
28 changes: 1 addition & 27 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,6 @@ env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

jobs:
npm_publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
scope: '@aperture_finance'

- name: Install dependencies 📦
run: yarn install --frozen-lockfile

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Generate Typechain types and build
run: yarn build

- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

cargo_publish:
runs-on: ubuntu-latest
steps:
Expand All @@ -57,7 +31,7 @@ jobs:
version: nightly

- name: Generate contract Rust bindings
run: forge bind -b src/bindings/ --module --overwrite
run: yarn bind

- name: Publish to crates.io
run: cargo publish --allow-dirty
11 changes: 6 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

env:
CARGO_TERM_COLOR: always
INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }}

jobs:
lint:
Expand Down Expand Up @@ -35,7 +36,7 @@ jobs:
version: nightly

- name: Generate contract Rust bindings
run: forge bind -b src/bindings/ --module --overwrite
run: yarn bind

- name: Cache Cargo registry
uses: actions/cache@v4
Expand All @@ -44,7 +45,7 @@ jobs:
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.toml') }}
restore-keys: |
${{ runner.os }}-cargo-registry-

Expand Down Expand Up @@ -82,7 +83,7 @@ jobs:
version: nightly

- name: Generate contract Rust bindings
run: forge bind -b src/bindings/ --module --overwrite
run: yarn bind

- name: Cache Cargo registry
uses: actions/cache@v4
Expand All @@ -91,12 +92,12 @@ jobs:
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.toml') }}
restore-keys: |
${{ runner.os }}-cargo-registry-

- name: Build
run: cargo build

- name: Run tests
run: cargo test
run: cargo test --lib -- --test-threads=1
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ dist

# vuepress v2.x temp and cache directory
.temp
.cache

# Docusaurus cache and generated files
.docusaurus
Expand Down Expand Up @@ -145,5 +144,5 @@ typechain


# Added by cargo

Cargo.lock
/target
Loading