From dbaf0de641d8eb9951fb9bef401c8271f82a9f60 Mon Sep 17 00:00:00 2001 From: Vladimir Demidov Date: Thu, 13 Nov 2025 11:34:05 +0100 Subject: [PATCH 1/7] alchemy subgraph to goldsky move --- .env.example | 8 ++++++++ subgraph/package.json | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 8cd77948..5d664045 100644 --- a/.env.example +++ b/.env.example @@ -12,6 +12,14 @@ PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 ALCHEMY_KEY= THEGRAPH_API_TOKEN= SATSUMA_DEPLOY_KEY= +# You can find the IPFS hash by querying your Alchemy subgraph endpoint: +# query { +# _meta { +# deployment +# } +# } +# +IPFS_HASH= #these are deterministic when deployed in that order on a fresh node with hardhat (anvil) seed IPNFT_ADDRESS=0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512 diff --git a/subgraph/package.json b/subgraph/package.json index 69610956..568f3440 100644 --- a/subgraph/package.json +++ b/subgraph/package.json @@ -8,8 +8,8 @@ "build:sepolia": "graph codegen && graph build --network sepolia", "build:mainnet": "graph codegen && graph build --network mainnet", "deploy:local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 moleculeprotocol/ipnft-subgraph", - "deploy:sepolia": "env-cmd -x -f ../.env graph deploy ip-nft-sepolia --version-label 1.3.2 --node https://subgraphs.alchemy.com/api/subgraphs/deploy --ipfs https://ipfs.satsuma.xyz --deploy-key \\$SATSUMA_DEPLOY_KEY", - "deploy:mainnet": "env-cmd -x -f ../.env graph deploy ip-nft-mainnet --version-label 1.3.2 --node https://subgraphs.alchemy.com/api/subgraphs/deploy --ipfs https://ipfs.satsuma.xyz --deploy-key \\$SATSUMA_DEPLOY_KEY", + "deploy:sepolia": "env-cmd -x -f ../.env goldsky subgraph deploy ip-nft-sepolia/v1.3.2 --from-ipfs-hash \\$IPFS_HASH --ipfs-gateway https://ipfs.satsuma.xyz --deploy-key \\$SATSUMA_DEPLOY_KEY", + "deploy:mainnet": "env-cmd -x -f ../.env goldsky subgraph deploy ip-nft-mainnet/v1.3.2 --from-ipfs-hash \\$IPFS_HASH --ipfs-gateway https://ipfs.satsuma.xyz --deploy-key \\$SATSUMA_DEPLOY_KEY", "create:local": "graph create --node http://localhost:8020/ moleculeprotocol/ipnft-subgraph", "remove:local": "graph remove --node http://localhost:8020/ moleculeprotocol/ipnft-subgraph", "test": "graph test" From fd3645daaae53533f89fa79f2efcdbc65dc40f41 Mon Sep 17 00:00:00 2001 From: Vladimir Demidov Date: Thu, 13 Nov 2025 12:11:42 +0100 Subject: [PATCH 2/7] subgraph name fix --- subgraph/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subgraph/package.json b/subgraph/package.json index 568f3440..74e082f8 100644 --- a/subgraph/package.json +++ b/subgraph/package.json @@ -8,8 +8,8 @@ "build:sepolia": "graph codegen && graph build --network sepolia", "build:mainnet": "graph codegen && graph build --network mainnet", "deploy:local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 moleculeprotocol/ipnft-subgraph", - "deploy:sepolia": "env-cmd -x -f ../.env goldsky subgraph deploy ip-nft-sepolia/v1.3.2 --from-ipfs-hash \\$IPFS_HASH --ipfs-gateway https://ipfs.satsuma.xyz --deploy-key \\$SATSUMA_DEPLOY_KEY", - "deploy:mainnet": "env-cmd -x -f ../.env goldsky subgraph deploy ip-nft-mainnet/v1.3.2 --from-ipfs-hash \\$IPFS_HASH --ipfs-gateway https://ipfs.satsuma.xyz --deploy-key \\$SATSUMA_DEPLOY_KEY", + "deploy:sepolia": "env-cmd -x -f ../.env goldsky subgraph deploy ip-nft-sepolia/1.3.2 --from-ipfs-hash \\$IPFS_HASH --ipfs-gateway https://ipfs.satsuma.xyz --deploy-key \\$SATSUMA_DEPLOY_KEY", + "deploy:mainnet": "env-cmd -x -f ../.env goldsky subgraph deploy ip-nft-mainnet/1.3.2 --from-ipfs-hash \\$IPFS_HASH --ipfs-gateway https://ipfs.satsuma.xyz --deploy-key \\$SATSUMA_DEPLOY_KEY", "create:local": "graph create --node http://localhost:8020/ moleculeprotocol/ipnft-subgraph", "remove:local": "graph remove --node http://localhost:8020/ moleculeprotocol/ipnft-subgraph", "test": "graph test" From cfb247d969578cc96bf5f07546b27e78d64acd78 Mon Sep 17 00:00:00 2001 From: Vladimir Demidov Date: Thu, 13 Nov 2025 12:50:06 +0100 Subject: [PATCH 3/7] adjust url --- subgraph/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subgraph/package.json b/subgraph/package.json index 74e082f8..0dd315fc 100644 --- a/subgraph/package.json +++ b/subgraph/package.json @@ -8,8 +8,8 @@ "build:sepolia": "graph codegen && graph build --network sepolia", "build:mainnet": "graph codegen && graph build --network mainnet", "deploy:local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 moleculeprotocol/ipnft-subgraph", - "deploy:sepolia": "env-cmd -x -f ../.env goldsky subgraph deploy ip-nft-sepolia/1.3.2 --from-ipfs-hash \\$IPFS_HASH --ipfs-gateway https://ipfs.satsuma.xyz --deploy-key \\$SATSUMA_DEPLOY_KEY", - "deploy:mainnet": "env-cmd -x -f ../.env goldsky subgraph deploy ip-nft-mainnet/1.3.2 --from-ipfs-hash \\$IPFS_HASH --ipfs-gateway https://ipfs.satsuma.xyz --deploy-key \\$SATSUMA_DEPLOY_KEY", + "deploy:sepolia": "env-cmd -x -f ../.env goldsky subgraph deploy ip-nft-sepolia/1.3.3 --from-ipfs-hash \\$IPFS_HASH --ipfs-gateway https://ipfs.satsuma.xyz", + "deploy:mainnet": "env-cmd -x -f ../.env goldsky subgraph deploy ip-nft-mainnet/1.3.3 --from-ipfs-hash \\$IPFS_HASH --ipfs-gateway https://ipfs.satsuma.xyz", "create:local": "graph create --node http://localhost:8020/ moleculeprotocol/ipnft-subgraph", "remove:local": "graph remove --node http://localhost:8020/ moleculeprotocol/ipnft-subgraph", "test": "graph test" From cdcc613531e1132118b4a9b4ebb7a1e030ed3845 Mon Sep 17 00:00:00 2001 From: Nour KAROUI Date: Thu, 13 Nov 2025 13:01:48 +0100 Subject: [PATCH 4/7] remove --from-ipfs-hash in the deployment script in package.json --- subgraph/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subgraph/package.json b/subgraph/package.json index 0dd315fc..b7097104 100644 --- a/subgraph/package.json +++ b/subgraph/package.json @@ -8,8 +8,8 @@ "build:sepolia": "graph codegen && graph build --network sepolia", "build:mainnet": "graph codegen && graph build --network mainnet", "deploy:local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 moleculeprotocol/ipnft-subgraph", - "deploy:sepolia": "env-cmd -x -f ../.env goldsky subgraph deploy ip-nft-sepolia/1.3.3 --from-ipfs-hash \\$IPFS_HASH --ipfs-gateway https://ipfs.satsuma.xyz", - "deploy:mainnet": "env-cmd -x -f ../.env goldsky subgraph deploy ip-nft-mainnet/1.3.3 --from-ipfs-hash \\$IPFS_HASH --ipfs-gateway https://ipfs.satsuma.xyz", + "deploy:sepolia": "env-cmd -x -f ../.env goldsky subgraph deploy ip-nft-sepolia/1.3.2 --ipfs-gateway https://ipfs.satsuma.xyz", + "deploy:mainnet": "env-cmd -x -f ../.env goldsky subgraph deploy ip-nft-mainnet/1.3.2 --ipfs-gateway https://ipfs.satsuma.xyz", "create:local": "graph create --node http://localhost:8020/ moleculeprotocol/ipnft-subgraph", "remove:local": "graph remove --node http://localhost:8020/ moleculeprotocol/ipnft-subgraph", "test": "graph test" From 9e812bcbb41ad898be5c5e8274f222e323c10551 Mon Sep 17 00:00:00 2001 From: Vladimir Demidov Date: Thu, 13 Nov 2025 15:08:28 +0100 Subject: [PATCH 5/7] remove hash head --- .env.example | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.env.example b/.env.example index 5d664045..8cd77948 100644 --- a/.env.example +++ b/.env.example @@ -12,14 +12,6 @@ PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 ALCHEMY_KEY= THEGRAPH_API_TOKEN= SATSUMA_DEPLOY_KEY= -# You can find the IPFS hash by querying your Alchemy subgraph endpoint: -# query { -# _meta { -# deployment -# } -# } -# -IPFS_HASH= #these are deterministic when deployed in that order on a fresh node with hardhat (anvil) seed IPNFT_ADDRESS=0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512 From 67bf4824c23e645f41a4904ae6b089ec836e34b6 Mon Sep 17 00:00:00 2001 From: Nour KAROUI Date: Thu, 13 Nov 2025 15:11:01 +0100 Subject: [PATCH 6/7] remove SATSUMA DEPLOY KEY and THE GRAPH DEPLOY KEY from .env.example --- .env.example | 2 -- 1 file changed, 2 deletions(-) diff --git a/.env.example b/.env.example index 8cd77948..ba6081c8 100644 --- a/.env.example +++ b/.env.example @@ -10,8 +10,6 @@ PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 #optional: ALCHEMY_KEY= -THEGRAPH_API_TOKEN= -SATSUMA_DEPLOY_KEY= #these are deterministic when deployed in that order on a fresh node with hardhat (anvil) seed IPNFT_ADDRESS=0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512 From e1aa5f3960fd3cf2fd21501e72faa66777aeaa8b Mon Sep 17 00:00:00 2001 From: Nour KAROUI Date: Thu, 13 Nov 2025 15:13:27 +0100 Subject: [PATCH 7/7] remove env-cmd as dev dependency --- subgraph/package.json | 7 ++----- subgraph/yarn.lock | 15 +-------------- 2 files changed, 3 insertions(+), 19 deletions(-) diff --git a/subgraph/package.json b/subgraph/package.json index b7097104..aa76dd4c 100644 --- a/subgraph/package.json +++ b/subgraph/package.json @@ -8,8 +8,8 @@ "build:sepolia": "graph codegen && graph build --network sepolia", "build:mainnet": "graph codegen && graph build --network mainnet", "deploy:local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 moleculeprotocol/ipnft-subgraph", - "deploy:sepolia": "env-cmd -x -f ../.env goldsky subgraph deploy ip-nft-sepolia/1.3.2 --ipfs-gateway https://ipfs.satsuma.xyz", - "deploy:mainnet": "env-cmd -x -f ../.env goldsky subgraph deploy ip-nft-mainnet/1.3.2 --ipfs-gateway https://ipfs.satsuma.xyz", + "deploy:sepolia": "goldsky subgraph deploy ip-nft-sepolia/1.3.2 --ipfs-gateway https://ipfs.satsuma.xyz", + "deploy:mainnet": "goldsky subgraph deploy ip-nft-mainnet/1.3.2 --ipfs-gateway https://ipfs.satsuma.xyz", "create:local": "graph create --node http://localhost:8020/ moleculeprotocol/ipnft-subgraph", "remove:local": "graph remove --node http://localhost:8020/ moleculeprotocol/ipnft-subgraph", "test": "graph test" @@ -19,8 +19,5 @@ "@graphprotocol/graph-ts": "^0.35.1", "dotenv": "^16.0.3", "matchstick-as": "0.5.2" - }, - "devDependencies": { - "env-cmd": "^10.1.0" } } diff --git a/subgraph/yarn.lock b/subgraph/yarn.lock index deeb563a..56f7e88f 100644 --- a/subgraph/yarn.lock +++ b/subgraph/yarn.lock @@ -1182,11 +1182,6 @@ commander@^2.20.3: resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== -commander@^4.0.0: - version "4.1.1" - resolved "https://registry.yarnpkg.com/commander/-/commander-4.1.1.tgz#9fd602bd936294e9e9ef46a3f4d6964044b18068" - integrity sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA== - concat-map@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" @@ -1246,7 +1241,7 @@ create-require@^1.1.0: resolved "https://registry.yarnpkg.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ== -cross-spawn@7.0.3, cross-spawn@^7.0.0, cross-spawn@^7.0.3: +cross-spawn@7.0.3, cross-spawn@^7.0.3: version "7.0.3" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== @@ -1414,14 +1409,6 @@ enquirer@2.3.6: dependencies: ansi-colors "^4.1.1" -env-cmd@^10.1.0: - version "10.1.0" - resolved "https://registry.yarnpkg.com/env-cmd/-/env-cmd-10.1.0.tgz#c7f5d3b550c9519f137fdac4dd8fb6866a8c8c4b" - integrity sha512-mMdWTT9XKN7yNth/6N6g2GuKuJTsKMDHlQFUDacb/heQRRWOTIZ42t1rMHnQu4jYxU1ajdTeJM+9eEETlqToMA== - dependencies: - commander "^4.0.0" - cross-spawn "^7.0.0" - err-code@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/err-code/-/err-code-3.0.1.tgz#a444c7b992705f2b120ee320b09972eef331c920"