Skip to content

Commit

Permalink
dev: clean (#709)
Browse files Browse the repository at this point in the history
* remove hive utils

* make split_u256 generic

* cleaning manifest

* clean balance of future

* clean block

* clean call

* clean tx

* clean events

* clean CI push to main

* extra cleaning on models

* client cleaning

* helper try_from_u8_iterator

* remove unused deps

* answer comments

* renaming macros
  • Loading branch information
greged93 authored Jan 12, 2024
1 parent 0cfad71 commit 5caa5d0
Show file tree
Hide file tree
Showing 35 changed files with 231 additions and 2,219 deletions.
64 changes: 0 additions & 64 deletions .github/workflows/kakarot_rpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,67 +108,3 @@ jobs:
- name: Inspect image
run: |
docker buildx imagetools inspect ${{ env.REGISTRY_IMAGE }}:latest
build-hive:
runs-on: ubuntu-latest
# Latest Kakarot RPC image is required to build Hive RPC image
needs:
- merge
steps:
- uses: actions/checkout@v3
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Retrieve cached dependencies
uses: Swatinem/rust-cache@v2
# foundry
- name: install foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
# Python setup
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Load cached Poetry installation
id: cached-poetry
uses: actions/cache@v3
with:
path: ~/.local
key: poetry-${{ runner.os }}
- name: Install Poetry
if: steps.cached-poetry.outputs.cache-hit != 'true'
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
- run: cd lib/kakarot && poetry config installer.modern-installation false
- name: Dump Genesis
run: ./scripts/make_with_env.sh dump-genesis
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: ${{ env.REGISTRY_IMAGE }}-hive:latest
context: .
file: crates/hive-utils/Dockerfile
platforms: linux/amd64,linux/arm64
4 changes: 0 additions & 4 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ jobs:
name: Spell check
uses: ./.github/workflows/spell_check.yml

benchmark:
name: Erc20 benchmark
uses: ./.github/workflows/benchmark.yml

build:
name: Build binaries
uses: ./.github/workflows/kakarot_rpc.yml
Loading

0 comments on commit 5caa5d0

Please sign in to comment.