diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 013a3f0..b768476 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,7 +3,6 @@ name: Build on: push: branches: - - main pull_request: workflow_dispatch: diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 7f1eec3..684b371 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -8,7 +8,6 @@ name: Docker on: push: branches: - - "main" pull_request: workflow_dispatch: @@ -40,12 +39,9 @@ jobs: # Install the cosign tool except on PR # https://github.com/sigstore/cosign-installer - #- name: Install cosign - # if: github.event_name != 'pull_request' - # uses: sigstore/cosign-installer@v3 - # with: - # cosign-release: 'v1.13.1' - + - name: Install cosign + if: github.event_name != 'pull_request' + uses: sigstore/cosign-installer@v3 # Workaround: https://github.com/docker/build-push-action/issues/461 - name: Setup Docker buildx @@ -67,8 +63,6 @@ jobs: id: meta uses: docker/metadata-action@v5 with: - tags: | - type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }} images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} # Build and push Docker image with Buildx (don't push on PR) diff --git a/src/rpc_cache_handler/mod.rs b/src/rpc_cache_handler/mod.rs index f169c85..b877dec 100644 --- a/src/rpc_cache_handler/mod.rs +++ b/src/rpc_cache_handler/mod.rs @@ -2,25 +2,25 @@ use anyhow::Result; use serde_json::Value; mod common; -mod debug_trace_block_by_hash; -mod debug_trace_block_by_number; -mod debug_trace_call; -mod debug_trace_transaction; -mod eth_call; -mod eth_chainid; -mod eth_estimate_gas; -mod eth_get_balance; +// mod debug_trace_block_by_hash; +// mod debug_trace_block_by_number; +// mod debug_trace_call; +// mod debug_trace_transaction; +// mod eth_call; +// mod eth_chainid; +// mod eth_estimate_gas; +// mod eth_get_balance; mod eth_get_block_by_hash; mod eth_get_block_by_number; -mod eth_get_block_receipts; -mod eth_get_code; +//mod eth_get_block_receipts; +//mod eth_get_code; mod eth_get_logs; -mod eth_get_storage_at; -mod eth_get_transaction_by_block_hash_and_index; -mod eth_get_transaction_by_block_number_and_index; -mod eth_get_transaction_by_hash; -mod eth_get_transaction_count; -mod eth_get_transaction_receipt; +//mod eth_get_storage_at; +//mod eth_get_transaction_by_block_hash_and_index; +//mod eth_get_transaction_by_block_number_and_index; +//mod eth_get_transaction_by_hash; +//mod eth_get_transaction_count; +//mod eth_get_transaction_receipt; pub trait RpcCacheHandler: Send + Sync { fn method_name(&self) -> &'static str; @@ -43,24 +43,24 @@ where pub fn factories() -> Vec { vec![ - get_factory::(), - get_factory::(), - get_factory::(), - get_factory::(), - get_factory::(), - get_factory::(), - get_factory::(), - get_factory::(), + //get_factory::(), + //get_factory::(), + //get_factory::(), + //get_factory::(), + //get_factory::(), + //get_factory::(), + //get_factory::(), + //get_factory::(), get_factory::(), get_factory::(), - get_factory::(), - get_factory::(), + //get_factory::(), + //get_factory::(), get_factory::(), - get_factory::(), - get_factory::(), - get_factory::(), - get_factory::(), - get_factory::(), - get_factory::(), + //get_factory::(), + //get_factory::(), + //get_factory::(), + //get_factory::(), + //get_factory::(), + //get_factory::(), ] }