Skip to content

feat: POC -- Implement locking mechanism to ensure sequential transaction processing per sender address for eth_sendRawTransaction #10423

feat: POC -- Implement locking mechanism to ensure sequential transaction processing per sender address for eth_sendRawTransaction

feat: POC -- Implement locking mechanism to ensure sequential transaction processing per sender address for eth_sendRawTransaction #10423

Workflow file for this run

name: Subgraph Tests
on:
pull_request:
branches: [main, release/**]
push:
branches: [main, release/**]
tags: [v*]
concurrency:
group: pr-checks-${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: read
jobs:
subgraph-workflow:
runs-on: hiero-smart-contracts-linux-medium
permissions:
contents: write
defaults:
run:
working-directory: ./tools/subgraph-example/
steps:
- name: Harden Runner
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
with:
egress-policy: audit
- name: Setup node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 22
- name: Checkout repo
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Install dependencies
run: npm ci
- name: Create .env file
run: cp .env.example .env
- name: Run local node
run: npx hedera start -d
timeout-minutes: 5
- name: Compile contracts
run: npx hardhat compile
- name: Deploy and interact with contracts
run: npx hardhat prepare
- name: Generate types
run: npm run graph-codegen
- name: Start local graph-node
env:
IPFS_PROFILE: test
run: npm run graph-local -- --detach
- name: Sleep for 20 seconds
run: sleep 20s
shell: bash
- name: Create subgraph
run: npm run create-local
- name: Deploy subgraph
run: npm run deploy-local -- --network local --version-label 0.0.1
- name: Sleep for 10 seconds (allow time to index past events following new sub-graph deployment)
run: sleep 10s
shell: bash
- name: Run the tests
run: npx hardhat test