From 4539e56aa0931681ee090fe29720723ffc3cf1ab Mon Sep 17 00:00:00 2001 From: flopez7 Date: Mon, 16 Mar 2026 13:59:24 +0100 Subject: [PATCH] update factory and kvstore addresses in constants and localhost config --- .../sdk/typescript/human-protocol-sdk/src/constants.ts | 4 ++-- packages/subgraph/human-protocol/config/localhost.json | 4 ++-- scripts/fortune-all-local.sh | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/sdk/typescript/human-protocol-sdk/src/constants.ts b/packages/sdk/typescript/human-protocol-sdk/src/constants.ts index 48b21a0885..4147cd421e 100644 --- a/packages/sdk/typescript/human-protocol-sdk/src/constants.ts +++ b/packages/sdk/typescript/human-protocol-sdk/src/constants.ts @@ -145,10 +145,10 @@ export const NETWORKS: { chainId: ChainId.LOCALHOST, title: 'Localhost', scanUrl: '', - factoryAddress: '0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9', + factoryAddress: '0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9', hmtAddress: '0x5FbDB2315678afecb367f032d93F642f64180aa3', stakingAddress: '0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512', - kvstoreAddress: '0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9', + kvstoreAddress: '0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0', subgraphUrl: 'http://localhost:8000/subgraphs/name/humanprotocol/localhost', subgraphUrlApiKey: '', oldSubgraphUrl: '', diff --git a/packages/subgraph/human-protocol/config/localhost.json b/packages/subgraph/human-protocol/config/localhost.json index 9998836d75..88c726b104 100644 --- a/packages/subgraph/human-protocol/config/localhost.json +++ b/packages/subgraph/human-protocol/config/localhost.json @@ -2,7 +2,7 @@ "network": "localhost", "description": "Human subgraph on localhost", "EscrowFactory": { - "address": "0xcf7ed3acca5a467e9e704c703e8d87f634fb0fc9", + "address": "0xdc64a140aa3e981100a9beca4e685f962f0cf6c9", "startBlock": 5, "abi": "../../../node_modules/@human-protocol/core/abis/EscrowFactory.json" }, @@ -18,7 +18,7 @@ "abi": "../../../node_modules/@human-protocol/core/abis/Staking.json" }, "KVStore": { - "address": "0xdc64a140aa3e981100a9beca4e685f962f0cf6c9", + "address": "0x9fe46736679d2d9a65f0992f2272de9f3c7fa6e0", "startBlock": 6, "abi": "../../../node_modules/@human-protocol/core/abis/KVStore.json" } diff --git a/scripts/fortune-all-local.sh b/scripts/fortune-all-local.sh index 9a4dca59e6..8a5e6bc26d 100755 --- a/scripts/fortune-all-local.sh +++ b/scripts/fortune-all-local.sh @@ -15,7 +15,7 @@ check_core_folders() { deploy_subgraph() { echo "Waiting for graph node to be healthy..." retries=0 - while ! yarn workspace @tools/subgraph health-local:node + while ! yarn workspace @tools/subgraph-human-protocol health-local:node do ((retries++)) if [ "$retries" -ge 10 ]; then @@ -26,9 +26,9 @@ deploy_subgraph() { echo "Deploying subgraph..." - NETWORK=localhost yarn workspace @tools/subgraph generate - yarn workspace @tools/subgraph create-local - yarn workspace @tools/subgraph deploy-local + NETWORK=localhost yarn workspace @tools/subgraph-human-protocol generate + yarn workspace @tools/subgraph-human-protocol create-local + yarn workspace @tools/subgraph-human-protocol deploy-local } setup_oracles() {