From b6aa581760a099e2b8d60277e0cae2c9e3a594d8 Mon Sep 17 00:00:00 2001 From: scx1332 Date: Tue, 30 Sep 2025 15:03:21 +0100 Subject: [PATCH 01/10] Synchronize branches (#1190) Co-authored-by: Seweryn --- tests/docker/docker-compose.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/docker/docker-compose.yml b/tests/docker/docker-compose.yml index e3f4cacda..66c9ad5f1 100644 --- a/tests/docker/docker-compose.yml +++ b/tests/docker/docker-compose.yml @@ -71,6 +71,7 @@ services: - YAGNA_APPKEY=try_golem - PAYMENT_NETWORK=${PAYMENT_NETWORK} - YA_NET_BIND_URL=udp://0.0.0.0:0 + - HOLESKY_MAX_FEE_PER_GAS=51 # - YA_NET_RELAY_HOST=63.34.24.27:7477 healthcheck: test: ["CMD-SHELL", "curl -s -o /dev/null -w '%{http_code}' http://localhost:7465 | grep -q 401"] From 6d8bffa899014d83618ef060bd759503c927a5ed Mon Sep 17 00:00:00 2001 From: Seweryn Date: Fri, 3 Oct 2025 13:07:47 +0200 Subject: [PATCH 02/10] sync master to beta (#1197) * Holesky -> Hoodi (#1192) * Holesky -> Hoodi * update yagna versions * update supported node versions * fix yagna versions * no need for regular checks for release * Update viem to newest version * Test * Update yagna version * Restore previous tests * Fix communication to centralnet * Temporary disabled release actions needed for deployment. They need to be fixed later, after the version is published * Feat: Hoodi. Fix: Hoodi * feat: release version please --------- Co-authored-by: scx1332 --- .github/actions/prepare-tests/action.yml | 2 +- .github/workflows/ci.yml | 2 +- .github/workflows/release.yml | 62 ++----- README.md | 8 +- .../quickstarts/quickstart/requestor.mjs | 4 +- examples/package.json | 2 +- .../rental-model/advanced/deposit/config.ts | 6 +- .../rental-model/advanced/deposit/funder.ts | 12 +- .../rental-model/advanced/deposit/observer.ts | 6 +- examples/rental-model/basic/events.ts | 2 +- examples/web/hello.html | 2 +- examples/web/transfer-data.html | 2 +- package-lock.json | 160 +++++++++++------- src/golem-network/golem-network.ts | 2 +- src/market/agreement/agreement.test.ts | 4 +- src/market/market.module.test.ts | 16 +- src/market/proposal/proposal-properties.ts | 2 +- src/market/scan/scanned-offer.test.ts | 6 +- src/market/scan/scanned-offer.ts | 2 +- src/payment/allocation.test.ts | 2 +- src/payment/invoice.spec.ts | 8 +- src/payment/payment.module.ts | 4 +- src/shared/utils/env.ts | 2 +- tests/docker/docker-compose.yml | 13 +- 24 files changed, 164 insertions(+), 167 deletions(-) diff --git a/.github/actions/prepare-tests/action.yml b/.github/actions/prepare-tests/action.yml index 22a38f172..141fa7159 100644 --- a/.github/actions/prepare-tests/action.yml +++ b/.github/actions/prepare-tests/action.yml @@ -44,7 +44,7 @@ runs: run: | sleep 10 echo "Going to fund the requestor" - docker exec -t docker-requestor-1 /bin/sh -c "/golem-js/tests/docker/fundRequestor.sh" + docker exec -e HOODI_MAX_FEE_PER_GAS=51 -t docker-requestor-1 /bin/sh -c "/golem-js/tests/docker/fundRequestor.sh" echo "Successfully funded the requestor" - name: Install and build the SDK in the docker container diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6fd56925f..53703662d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: matrix: # Make sure you're addressing it to the minor version, as sometimes macos was picking 20.9 while others 20.10 # and that caused issues with rollup - node-version: [18.20.x, 20.18.x, 22.x] + node-version: [22.x, 24.x] os: [ubuntu-latest, windows-latest, macos-latest] runs-on: ${{ matrix.os }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 466012624..a6fcc2282 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,25 +15,25 @@ on: workflow_dispatch: inputs: payment_network: - description: "Payment network (holesky, goerli, mainnet, mumbai, polygon, rinkeby)" + description: "Payment network (hoodi, amoy, polygon)" required: false - default: "holesky" + default: "hoodi" provider_version: description: "Provider version (e.g., v0.15.0 or pre-rel-v0.15.1)" required: false - default: "v0.15.2" + default: "pre-rel-v0.17.1-hoodi3" requestor_version: description: "Requestor version (e.g., v0.15.0 or pre-rel-v0.15.1)" required: false - default: "v0.15.2" + default: "pre-rel-v0.17.1-hoodi3" provider_wasi_version: description: "Provider WASI version (e.g., v0.2.2)" required: false default: "v0.2.2" provider_vm_version: - description: "Provider VM version (e.g., v0.3.0)" + description: "Provider VM version (e.g., v0.5.3)" required: false - default: "v0.3.0" + default: "v0.5.3" log_level: description: "The log level to force on golem-js pino-logger" required: false @@ -44,55 +44,16 @@ permissions: contents: read # for checkout env: - PROVIDER_VERSION: ${{ github.event.inputs.provider_version || 'v0.15.2' }} - REQUESTOR_VERSION: ${{ github.event.inputs.requestor_version || 'v0.15.2' }} + PROVIDER_VERSION: ${{ github.event.inputs.provider_version || 'pre-rel-v0.17.1-hoodi3' }} + REQUESTOR_VERSION: ${{ github.event.inputs.requestor_version || 'pre-rel-v0.17.1-hoodi3' }} PROVIDER_WASI_VERSION: ${{ github.event.inputs.provider_wasi_version || 'v0.2.2' }} - PROVIDER_VM_VERSION: ${{ github.event.inputs.provider_vm_version || 'v0.3.0' }} - PAYMENT_NETWORK: ${{ github.event.inputs.payment_network || 'holesky' }} + PROVIDER_VM_VERSION: ${{ github.event.inputs.provider_vm_version || 'v0.5.3' }} + PAYMENT_NETWORK: ${{ github.event.inputs.payment_network || 'hoodi' }} GOLEM_PINO_LOG_LEVEL: ${{ github.event.inputs.log_level || 'info' }} jobs: - regular-checks: - name: Build and unit-test on supported platforms and NodeJS versions - strategy: - matrix: - # Make sure you're addressing it to the minor version, as sometimes macos was picking 20.9 while others 20.10 - # and that caused issues with rollup - node-version: [18.20.x, 20.18.x, 22.x] - os: [ubuntu-latest, windows-latest, macos-latest] - - runs-on: ${{ matrix.os }} - timeout-minutes: 10 - - steps: - - uses: actions/checkout@v4 - - - name: Setup NodeJS ${{ matrix.node-version }} - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} - - - name: Perform regular checks - run: | - npm ci - npm run format:check - npm run lint - npm run test:unit - npm run build - npm install --prefix examples - npm run --prefix examples lint:ts - npm run test:import - - - name: Upload unit test reports - uses: actions/upload-artifact@v4 - if: always() - with: - name: unit-test-report-${{matrix.os}}-node-${{matrix.node-version}} - path: reports/unit-report.xml - run-e2e-tests: name: Run E2E tests - needs: regular-checks runs-on: goth2 steps: - uses: actions/checkout@v4 @@ -118,7 +79,6 @@ jobs: run-examples-tests: name: Run Examples tests - needs: regular-checks runs-on: goth2 steps: - uses: actions/checkout@v4 @@ -137,7 +97,6 @@ jobs: run-cypress-tests: name: Run Cypress tests - needs: regular-checks runs-on: goth2 steps: - uses: actions/checkout@v4 @@ -167,7 +126,6 @@ jobs: release: name: Release the SDK to NPM and GitHub - needs: [run-e2e-tests, run-examples-tests, run-cypress-tests] runs-on: ubuntu-latest permissions: contents: write # to be able to publish a GitHub release diff --git a/README.md b/README.md index 49d4fc865..b21ec35b1 100644 --- a/README.md +++ b/README.md @@ -92,7 +92,7 @@ yarn add @golem-sdk/golem-js ## Supported environments The SDK is designed to work with LTS versions of Node (starting from 18) -and with browsers. The minimum supported `yagna` version is `0.15.2`. +and with browsers. The minimum supported `yagna` version is `pre-rel-0.17.1-hoodi3`. ## Getting started with Golem Network @@ -117,13 +117,13 @@ network. ```bash # IN SEPARATE TERMINAL (if not daemonized) # Initialize your requestor -yagna payment init --sender --network holesky +yagna payment init --sender --network hoodi # Request funds on the test network -yagna payment fund --network holesky +yagna payment fund --network hoodi # Check the status of the funds -yagna payment status --network holesky +yagna payment status --network hoodi ``` ### Obtain an `app-key` to use with SDK diff --git a/examples/docs-examples/quickstarts/quickstart/requestor.mjs b/examples/docs-examples/quickstarts/quickstart/requestor.mjs index fc3f9ccd3..d58d80304 100644 --- a/examples/docs-examples/quickstarts/quickstart/requestor.mjs +++ b/examples/docs-examples/quickstarts/quickstart/requestor.mjs @@ -27,9 +27,9 @@ const order = { }), api: { key: "try_golem" }, // Optional: select payment network. - // Testnets: holesky (default), sepolia, rinkeby, amoy + // Testnets: hoodi (default), sepolia, rinkeby, amoy // Mainnets: mainnet, polygon - // payment: { network: "holesky" }, + // payment: { network: "hoodi" }, }); try { diff --git a/examples/package.json b/examples/package.json index ee25576ca..b9877d19e 100644 --- a/examples/package.json +++ b/examples/package.json @@ -40,7 +40,7 @@ "commander": "^12.0.0", "express": "^4.21.1", "tsx": "^4.19.1", - "viem": "^2.21.1" + "viem": "^2.37.11" }, "devDependencies": { "@types/node": "20", diff --git a/examples/rental-model/advanced/deposit/config.ts b/examples/rental-model/advanced/deposit/config.ts index 62ae6cd3b..30344d984 100644 --- a/examples/rental-model/advanced/deposit/config.ts +++ b/examples/rental-model/advanced/deposit/config.ts @@ -4,11 +4,11 @@ export default { privateKey: "0x00", nonceSpace: 1000000, }, - rpcUrl: "https://holesky.rpc-node.dev.golem.network", + rpcUrl: "https://hoodi.rpc-node.dev.golem.network", lockPaymentContract: { - holeskyAddress: "0x63704675f72A47a7a183112700Cb48d4B0A94332", + hoodiAddress: "0x472ef33B51f65FB2aDa50ffeB0e4A72e9ac22f52", }, glmContract: { - holeskyAddress: "0x8888888815bf4DB87e57B609A50f938311EEd068", + hoodiAddress: "0x55555555555556AcFf9C332Ed151758858bd7a26", }, }; diff --git a/examples/rental-model/advanced/deposit/funder.ts b/examples/rental-model/advanced/deposit/funder.ts index 61baa0b40..0a1620add 100644 --- a/examples/rental-model/advanced/deposit/funder.ts +++ b/examples/rental-model/advanced/deposit/funder.ts @@ -1,6 +1,6 @@ import { Address, createPublicClient, createWalletClient, formatEther, Hex, http, parseEther } from "viem"; import { privateKeyToAccount } from "viem/accounts"; -import { holesky } from "viem/chains"; +import { hoodi } from "viem/chains"; import chalk from "chalk"; import { readFile } from "fs/promises"; import config from "./config.js"; @@ -13,22 +13,22 @@ const nonce = Math.floor(Math.random() * config.funder.nonceSpace); // walletClient for writeContract functions const walletClient = createWalletClient({ account: funderAccount, - chain: holesky, + chain: hoodi, transport: http(config.rpcUrl), }); // publicClient for readContract functions const publicClient = createPublicClient({ - chain: holesky, + chain: hoodi, transport: http(config.rpcUrl), }); const LOCK_CONTRACT = { - address: config.lockPaymentContract.holeskyAddress, + address: config.lockPaymentContract.hoodiAddress, abi: abiLock, }; const GLM_CONTRACT = { - address: config.glmContract.holeskyAddress, + address: config.glmContract.hoodiAddress, abi: abiGlm, }; @@ -112,7 +112,7 @@ async function createDeposit({ address, budget, fee, expirationSec }: DepositPar return { id: "0x" + depositId.toString(16), amount: depositDetails.amount, - contract: config.lockPaymentContract.holeskyAddress, + contract: config.lockPaymentContract.hoodiAddress, }; } diff --git a/examples/rental-model/advanced/deposit/observer.ts b/examples/rental-model/advanced/deposit/observer.ts index 2af2d3871..d47175a9d 100644 --- a/examples/rental-model/advanced/deposit/observer.ts +++ b/examples/rental-model/advanced/deposit/observer.ts @@ -1,13 +1,13 @@ import { Address, createPublicClient, decodeFunctionData, Hex, http, Log, parseAbi } from "viem"; import config from "./config.js"; -import { holesky } from "viem/chains"; +import { hoodi } from "viem/chains"; import { readFile } from "fs/promises"; import chalk from "chalk"; const abiLock = JSON.parse(await readFile("./contracts/lockAbi.json", "utf8")); const publicClient = createPublicClient({ - chain: holesky, + chain: hoodi, transport: http(config.rpcUrl), }); @@ -55,7 +55,7 @@ async function startWatchingContractTransactions(address: string) { "event DepositTerminated(uint256 indexed id, address spender)", "event DepositTransfer(uint256 indexed id, address spender, address recipient, uint128 amount)", ]), - address:
config.lockPaymentContract.holeskyAddress, + address:
config.lockPaymentContract.hoodiAddress, }); return { stopWatchingContractTransactions: unwatch, diff --git a/examples/rental-model/basic/events.ts b/examples/rental-model/basic/events.ts index 9c6462d35..925183067 100644 --- a/examples/rental-model/basic/events.ts +++ b/examples/rental-model/basic/events.ts @@ -11,7 +11,7 @@ import { pinoPrettyLogger } from "@golem-sdk/pino-logger"; }), payment: { driver: "erc20", - network: "holesky", + network: "hoodi", }, }); diff --git a/examples/web/hello.html b/examples/web/hello.html index 3167094ba..d1f0a8ee9 100644 --- a/examples/web/hello.html +++ b/examples/web/hello.html @@ -36,7 +36,7 @@

Options

- +
diff --git a/examples/web/transfer-data.html b/examples/web/transfer-data.html index f5abf62df..b5f441e9f 100644 --- a/examples/web/transfer-data.html +++ b/examples/web/transfer-data.html @@ -36,7 +36,7 @@

Options

- +
diff --git a/package-lock.json b/package-lock.json index 17dd53b44..26be81ec5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -99,7 +99,7 @@ "commander": "^12.0.0", "express": "^4.21.1", "tsx": "^4.19.1", - "viem": "^2.21.1" + "viem": "^2.37.11" }, "devDependencies": { "@types/node": "20", @@ -135,9 +135,10 @@ "dev": true }, "node_modules/@adraffy/ens-normalize": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.11.0.tgz", - "integrity": "sha512-/3DDPKHqqIqxUULp8yP4zODUY1i+2xvVWsv8A79xGWdCAG+8sb0hRh0Rk2QyOJUnnbyPUAZYcpBuRe3nS2OIUg==" + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.11.1.tgz", + "integrity": "sha512-nhCBV3quEgesuf7c7KYfperqSS14T8bYuvJ8PcLJp6znkZpFc0AuW4qBtr8eKVyPPe/8RSr7sglCWPU5eaxwKQ==", + "license": "MIT" }, "node_modules/@ampproject/remapping": { "version": "2.3.0", @@ -2479,12 +2480,25 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, + "node_modules/@noble/ciphers": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@noble/ciphers/-/ciphers-1.3.0.tgz", + "integrity": "sha512-2I0gnIVPtfnMw9ee9h1dJG7tp81+8Ob3OJb3Mv37rx5L40/b0i7djjCVvGOVqc9AEIQyvyu1i6ypKdFw8R8gQw==", + "license": "MIT", + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, "node_modules/@noble/curves": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.6.0.tgz", - "integrity": "sha512-TlaHRXDehJuRNR9TfZDNQ45mMEd5dwUwmicsafcIX4SsNiqnCHKjE/1alYPd/lDRVhxdhUAlv8uEhMCI5zjIJQ==", + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.9.1.tgz", + "integrity": "sha512-k11yZxZg+t+gWvBbIswW0yoJlu8cHOC7dhunwOzoWH/mXGBiYyR4YY6hAEK/3EUs4UpB8la1RfdRpeGsFHkWsA==", + "license": "MIT", "dependencies": { - "@noble/hashes": "1.5.0" + "@noble/hashes": "1.8.0" }, "engines": { "node": "^14.21.3 || >=16" @@ -2494,9 +2508,10 @@ } }, "node_modules/@noble/hashes": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.5.0.tgz", - "integrity": "sha512-1j6kQFb7QRru7eKN3ZDvRcP13rugwdxZqCjbiAVZfIJwgj2A65UmT4TgARXGlXgnRkORLTDTrO19ZErt7+QXgA==", + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz", + "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==", + "license": "MIT", "engines": { "node": "^14.21.3 || >=16" }, @@ -3277,33 +3292,36 @@ ] }, "node_modules/@scure/base": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.9.tgz", - "integrity": "sha512-8YKhl8GHiNI/pU2VMaofa2Tor7PJRAjwQLBBuilkJ9L5+13yVbC7JO/wS7piioAvPSwR3JKM1IJ/u4xQzbcXKg==", + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.2.6.tgz", + "integrity": "sha512-g/nm5FgUa//MCj1gV09zTJTaM6KBAHqLN907YVQqf7zC49+DcO4B1so4ZX07Ef10Twr6nuqYEH9GEggFXA4Fmg==", + "license": "MIT", "funding": { "url": "https://paulmillr.com/funding/" } }, "node_modules/@scure/bip32": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.5.0.tgz", - "integrity": "sha512-8EnFYkqEQdnkuGBVpCzKxyIwDCBLDVj3oiX0EKUFre/tOjL/Hqba1D6n/8RcmaQy4f95qQFrO2A8Sr6ybh4NRw==", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.7.0.tgz", + "integrity": "sha512-E4FFX/N3f4B80AKWp5dP6ow+flD1LQZo/w8UnLGYZO674jS6YnYeepycOOksv+vLPSpgN35wgKgy+ybfTb2SMw==", + "license": "MIT", "dependencies": { - "@noble/curves": "~1.6.0", - "@noble/hashes": "~1.5.0", - "@scure/base": "~1.1.7" + "@noble/curves": "~1.9.0", + "@noble/hashes": "~1.8.0", + "@scure/base": "~1.2.5" }, "funding": { "url": "https://paulmillr.com/funding/" } }, "node_modules/@scure/bip39": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.4.0.tgz", - "integrity": "sha512-BEEm6p8IueV/ZTfQLp/0vhw4NPnT9oWf5+28nvmeUICjP99f4vr2d+qc7AVGDDtwRep6ifR43Yed9ERVmiITzw==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.6.0.tgz", + "integrity": "sha512-+lF0BbLiJNwVlev4eKelw1WWLaiKXw7sSl8T6FvBlWkdX+94aGJ4o8XjUdlyhTCjd8c+B3KT3JfS8P0bLRNU6A==", + "license": "MIT", "dependencies": { - "@noble/hashes": "~1.5.0", - "@scure/base": "~1.1.8" + "@noble/hashes": "~1.8.0", + "@scure/base": "~1.2.5" }, "funding": { "url": "https://paulmillr.com/funding/" @@ -4736,15 +4754,16 @@ "dev": true }, "node_modules/abitype": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/abitype/-/abitype-1.0.6.tgz", - "integrity": "sha512-MMSqYh4+C/aVqI2RQaWqbvI4Kxo5cQV40WQ4QFtDnNzCkqChm8MuENhElmynZlO0qUy/ObkEUaXtKqYnx1Kp3A==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/abitype/-/abitype-1.1.0.tgz", + "integrity": "sha512-6Vh4HcRxNMLA0puzPjM5GBgT4aAcFGKZzSgAXvuZ27shJP6NEpielTuqbBmZILR5/xd0PizkBGy5hReKz9jl5A==", + "license": "MIT", "funding": { "url": "https://github.com/sponsors/wevm" }, "peerDependencies": { "typescript": ">=5.0.4", - "zod": "^3 >=3.22.0" + "zod": "^3.22.0 || ^4.0.0" }, "peerDependenciesMeta": { "typescript": { @@ -9635,15 +9654,16 @@ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" }, "node_modules/isows": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/isows/-/isows-1.0.6.tgz", - "integrity": "sha512-lPHCayd40oW98/I0uvgaHKWCSvkzY27LjWLbtzOm64yQ+G3Q5npjjbdppU65iZXkK1Zt+kH9pfegli0AYfwYYw==", + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/isows/-/isows-1.0.7.tgz", + "integrity": "sha512-I1fSfDCZL5P0v33sVqeTDSpcstAg/N+wF5HS033mogOVIp4B+oHC7oOCsA3axAbBSGTJ8QubbNmnIRN/h8U7hg==", "funding": [ { "type": "github", "url": "https://github.com/sponsors/wevm" } ], + "license": "MIT", "peerDependencies": { "ws": "*" } @@ -16223,6 +16243,36 @@ "integrity": "sha512-o6E5qJV5zkAbIDNhGSIlyOhScKXgQrSRMilfph0clDfM0nEnBOlKlH4sWDmG95BW/CvwNz0vmm7dJVtU2KlMiA==", "dev": true }, + "node_modules/ox": { + "version": "0.9.6", + "resolved": "https://registry.npmjs.org/ox/-/ox-0.9.6.tgz", + "integrity": "sha512-8SuCbHPvv2eZLYXrNmC0EC12rdzXQLdhnOMlHDW2wiCPLxBrOOJwX5L5E61by+UjTPOryqQiRSnjIKCI+GykKg==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wevm" + } + ], + "license": "MIT", + "dependencies": { + "@adraffy/ens-normalize": "^1.11.0", + "@noble/ciphers": "^1.3.0", + "@noble/curves": "1.9.1", + "@noble/hashes": "^1.8.0", + "@scure/bip32": "^1.7.0", + "@scure/bip39": "^1.6.0", + "abitype": "^1.0.9", + "eventemitter3": "5.0.1" + }, + "peerDependencies": { + "typescript": ">=5.4.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, "node_modules/p-each-series": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/p-each-series/-/p-each-series-3.0.0.tgz", @@ -20473,25 +20523,25 @@ } }, "node_modules/viem": { - "version": "2.21.25", - "resolved": "https://registry.npmjs.org/viem/-/viem-2.21.25.tgz", - "integrity": "sha512-fQbFLVW5RjC1MwjelmzzDygmc2qMfY17NruAIIdYeiB8diQfhqsczU5zdGw/jTbmNXbKoYnSdgqMb8MFZcbZ1w==", + "version": "2.37.11", + "resolved": "https://registry.npmjs.org/viem/-/viem-2.37.11.tgz", + "integrity": "sha512-JEwUftUmJin3RUSbluKj2yR6M7Ye0AxqowhyTz396RkPlg1wwImkHocKtuvkzEa51EdSGsOCHf/qxAfqSowRTQ==", "funding": [ { "type": "github", "url": "https://github.com/sponsors/wevm" } ], + "license": "MIT", "dependencies": { - "@adraffy/ens-normalize": "1.11.0", - "@noble/curves": "1.6.0", - "@noble/hashes": "1.5.0", - "@scure/bip32": "1.5.0", - "@scure/bip39": "1.4.0", - "abitype": "1.0.6", - "isows": "1.0.6", - "webauthn-p256": "0.0.10", - "ws": "8.18.0" + "@noble/curves": "1.9.1", + "@noble/hashes": "1.8.0", + "@scure/bip32": "1.7.0", + "@scure/bip39": "1.6.0", + "abitype": "1.1.0", + "isows": "1.0.7", + "ox": "0.9.6", + "ws": "8.18.3" }, "peerDependencies": { "typescript": ">=5.0.4" @@ -20537,21 +20587,6 @@ "node": ">=10.13.0" } }, - "node_modules/webauthn-p256": { - "version": "0.0.10", - "resolved": "https://registry.npmjs.org/webauthn-p256/-/webauthn-p256-0.0.10.tgz", - "integrity": "sha512-EeYD+gmIT80YkSIDb2iWq0lq2zbHo1CxHlQTeJ+KkCILWpVy3zASH3ByD4bopzfk0uCwXxLqKGLqp2W4O28VFA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/wevm" - } - ], - "dependencies": { - "@noble/curves": "^1.4.0", - "@noble/hashes": "^1.4.0" - } - }, "node_modules/webpack": { "version": "5.95.0", "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.95.0.tgz", @@ -20803,9 +20838,10 @@ } }, "node_modules/ws": { - "version": "8.18.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz", - "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==", + "version": "8.18.3", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.3.tgz", + "integrity": "sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==", + "license": "MIT", "engines": { "node": ">=10.0.0" }, diff --git a/src/golem-network/golem-network.ts b/src/golem-network/golem-network.ts index 9f0398cad..048b056d9 100644 --- a/src/golem-network/golem-network.ts +++ b/src/golem-network/golem-network.ts @@ -104,7 +104,7 @@ export interface GolemNetworkOptions { * Set payment-related options. * * This is where you can specify the network, payment driver and more. - * By default, the network is set to the `holesky` test network. + * By default, the network is set to the `hoodi` test network. */ payment?: Partial; diff --git a/src/market/agreement/agreement.test.ts b/src/market/agreement/agreement.test.ts index 7b04c7759..53db1b764 100644 --- a/src/market/agreement/agreement.test.ts +++ b/src/market/agreement/agreement.test.ts @@ -15,7 +15,7 @@ const agreementData: MarketApi.AgreementDTO = { providerId: "provider-id", properties: { "golem.node.id.name": "provider-name", - "golem.com.payment.platform.erc20-holesky-tglm.address": "0xProviderWallet", + "golem.com.payment.platform.erc20-hoodi-tglm.address": "0xProviderWallet", }, constraints: "", timestamp: "2024-01-01T00:00:00.000Z", @@ -32,7 +32,7 @@ const demand = new Demand( constraints: [], properties: [], }, - "erc20-holesky-tglm", + "erc20-hoodi-tglm", ), ); diff --git a/src/market/market.module.test.ts b/src/market/market.module.test.ts index 96de7f687..4af1d72b7 100644 --- a/src/market/market.module.test.ts +++ b/src/market/market.module.test.ts @@ -57,13 +57,13 @@ describe("Market module", () => { it("should build a demand", async () => { const allocation = { id: "allocation-id", - paymentPlatform: "erc20-holesky-tglm", + paymentPlatform: "erc20-hoodi-tglm", } as Allocation; when(mockMarketApiAdapter.getPaymentRelatedDemandDecorations("allocation-id")).thenResolve({ properties: [ { - key: "golem.com.payment.platform.erc20-holesky-tglm.address", + key: "golem.com.payment.platform.erc20-hoodi-tglm.address", value: "0x123", }, { @@ -72,7 +72,7 @@ describe("Market module", () => { }, ], constraints: [ - "(golem.com.payment.platform.erc20-holesky-tglm.address=*)", + "(golem.com.payment.platform.erc20-hoodi-tglm.address=*)", "(golem.com.payment.protocol.version>1)", ], }); @@ -108,7 +108,7 @@ describe("Market module", () => { "(golem.inf.storage.gib>=2)", "(golem.inf.cpu.cores>=1)", "(golem.inf.cpu.threads>=1)", - "(golem.com.payment.platform.erc20-holesky-tglm.address=*)", + "(golem.com.payment.platform.erc20-hoodi-tglm.address=*)", "(golem.com.payment.protocol.version>1)", ]; @@ -146,7 +146,7 @@ describe("Market module", () => { value: 42, }, { - key: "golem.com.payment.platform.erc20-holesky-tglm.address", + key: "golem.com.payment.platform.erc20-hoodi-tglm.address", value: "0x123", }, { @@ -276,7 +276,7 @@ describe("Market module", () => { properties: [], constraints: [], }, - "erc20-holesky-tglm", + "erc20-hoodi-tglm", ); const providerInfo: ProviderInfo = { @@ -364,7 +364,7 @@ describe("Market module", () => { properties: [], constraints: [], }, - "erc20-holesky-tglm", + "erc20-hoodi-tglm", ); const providerInfo: ProviderInfo = { @@ -436,7 +436,7 @@ describe("Market module", () => { properties: [], constraints: [], }, - "erc20-holesky-tglm", + "erc20-hoodi-tglm", ); const mockProposal = mock(OfferProposal); diff --git a/src/market/proposal/proposal-properties.ts b/src/market/proposal/proposal-properties.ts index 837c60686..17f4a4bf9 100644 --- a/src/market/proposal/proposal-properties.ts +++ b/src/market/proposal/proposal-properties.ts @@ -78,7 +78,7 @@ export type StandardCommercialProps = { /** @example "erc20-polygon-glm" */ "golem.com.payment.chosen-platform": string; "golem.com.payment.platform.erc20-polygon-glm.address"?: string; - "golem.com.payment.platform.erc20-holesky-tglm.address"?: string; + "golem.com.payment.platform.erc20-hoodi-tglm.address"?: string; "golem.com.payment.platform.erc20-mumbai-tglm.address"?: string; "golem.com.payment.protocol.version": number; /** @example payu */ diff --git a/src/market/scan/scanned-offer.test.ts b/src/market/scan/scanned-offer.test.ts index 0dc07099f..ac726cfd1 100644 --- a/src/market/scan/scanned-offer.test.ts +++ b/src/market/scan/scanned-offer.test.ts @@ -6,7 +6,7 @@ describe("Scanned Offer", () => { offerId: "example-id", properties: { "golem.com.payment.platform.erc20-polygon-glm.address": "0xPolygonAddress", - "golem.com.payment.platform.erc20-holesky-tglm.address": "0xHoleskyAddress", + "golem.com.payment.platform.erc20-hoodi-tglm.address": "0xHoodiAddress", "golem.com.payment.platform.nonsense": "0xNonsense", "some.other.prop": "with-a-value", }, @@ -16,7 +16,7 @@ describe("Scanned Offer", () => { }); expect(offer.paymentPlatformAddresses["erc20-polygon-glm"]).toEqual("0xPolygonAddress"); - expect(offer.paymentPlatformAddresses["erc20-holesky-tglm"]).toEqual("0xHoleskyAddress"); + expect(offer.paymentPlatformAddresses["erc20-hoodi-tglm"]).toEqual("0xHoodiAddress"); expect(Object.entries(offer.paymentPlatformAddresses).length).toEqual(2); }); @@ -34,7 +34,7 @@ describe("Scanned Offer", () => { offerId: "example-id", properties: { "golem.com.payment.platform.erc20-polygon-glm.address": "0xPolygonAddress", - "golem.com.payment.platform.erc20-holesky-tglm.address": "0xHoleskyAddress", + "golem.com.payment.platform.erc20-hoodi-tglm.address": "0xHoodiAddress", "golem.com.payment.platform.nonsense": "0xNonsense", "golem.com.usage.vector": ["golem.usage.cpu_sec", "golem.usage.duration_sec"], "golem.com.pricing.model.linear.coeffs": [cpuPerSec, envPerSec, startPrice], diff --git a/src/market/scan/scanned-offer.ts b/src/market/scan/scanned-offer.ts index 6721a6baf..75603b578 100644 --- a/src/market/scan/scanned-offer.ts +++ b/src/market/scan/scanned-offer.ts @@ -144,7 +144,7 @@ export class ScannedOffer { * ```json * { * "erc20-polygon-glm": "0x8737beea5668595fda9d50e85cae9cad10b4c980", - * "erc20-holesky-tglm:" "0x8737beea5668595fda9d50e85cae9cad10b4c980", + * "erc20-hoodi-tglm:" "0x8737beea5668595fda9d50e85cae9cad10b4c980", * } * ``` */ diff --git a/src/payment/allocation.test.ts b/src/payment/allocation.test.ts index 3b73f6ca4..46c984372 100644 --- a/src/payment/allocation.test.ts +++ b/src/payment/allocation.test.ts @@ -21,7 +21,7 @@ describe("Allocation", () => { it("should create allocation", async () => { const allocation = new Allocation({ address: "0xSomeAddress", - paymentPlatform: "erc20-holesky-tglm", + paymentPlatform: "erc20-hoodi-tglm", allocationId: "allocation-id", makeDeposit: false, remainingAmount: "1.0", diff --git a/src/payment/invoice.spec.ts b/src/payment/invoice.spec.ts index fc76fb856..3020f3ea3 100644 --- a/src/payment/invoice.spec.ts +++ b/src/payment/invoice.spec.ts @@ -15,7 +15,7 @@ describe("Invoice", () => { payeeAddr: "0xPAYEE", payerAddr: "0xPAYER", recipientId: "recipient-id", - paymentPlatform: "holesky", + paymentPlatform: "hoodi", timestamp: "2023-01-01T00:00:00.000Z", agreementId: "agreement-id", status: "RECEIVED", @@ -37,7 +37,7 @@ describe("Invoice", () => { payeeAddr: "0xPAYEE", payerAddr: "0xPAYER", recipientId: "recipient-id", - paymentPlatform: "holesky", + paymentPlatform: "hoodi", timestamp: "2023-01-01T00:00:00.000Z", agreementId: "agreement-id", status: "RECEIVED", @@ -60,7 +60,7 @@ describe("Invoice", () => { payeeAddr: "0xPAYEE", payerAddr: "0xPAYER", recipientId: "recipient-id", - paymentPlatform: "holesky", + paymentPlatform: "hoodi", timestamp: "2023-01-01T00:00:00.000Z", agreementId: "agreement-id", status: "RECEIVED", @@ -78,7 +78,7 @@ describe("Invoice", () => { payeeAddr: "0xPAYEE", payerAddr: "0xPAYER", recipientId: "recipient-id", - paymentPlatform: "holesky", + paymentPlatform: "hoodi", timestamp: "2023-01-01T00:00:00.000Z", agreementId: "agreement-id", status: "RECEIVED", diff --git a/src/payment/payment.module.ts b/src/payment/payment.module.ts index b49220b48..35afb5e01 100644 --- a/src/payment/payment.module.ts +++ b/src/payment/payment.module.ts @@ -20,8 +20,8 @@ import { GolemInternalError } from "../shared/error/golem-error"; export interface PaymentModuleOptions { /** * Network used to facilitate the payment. - * (for example: "mainnet", "holesky") - * @default holesky + * (for example: "mainnet", "hoodi") + * @default hoodi */ network?: string; /** diff --git a/src/shared/utils/env.ts b/src/shared/utils/env.ts index 368993f8a..e2686b5ad 100644 --- a/src/shared/utils/env.ts +++ b/src/shared/utils/env.ts @@ -19,7 +19,7 @@ export function getRepoUrl(): string { } export function getPaymentNetwork(): string { - return isNode ? (process.env.PAYMENT_NETWORK ?? "holesky") : "holesky"; + return isNode ? (process.env.PAYMENT_NETWORK ?? "hoodi") : "hoodi"; } export function isDevMode(): boolean { diff --git a/tests/docker/docker-compose.yml b/tests/docker/docker-compose.yml index 66c9ad5f1..19c5e1e80 100644 --- a/tests/docker/docker-compose.yml +++ b/tests/docker/docker-compose.yml @@ -24,8 +24,9 @@ services: - YA_NET_BROADCAST_SIZE=10 - NODE_NAME=provider-1 - SUBNET=${YAGNA_SUBNET:-golemjstest} - - YA_NET_BIND_URL=udp://0.0.0.0:0 - # - YA_NET_RELAY_HOST=63.34.24.27:7477 + - YA_NET_TYPE=central + - CENTRAL_NET_HOST=polygongas.org:7999 + provider-2: build: context: . @@ -47,10 +48,11 @@ services: start_period: 40s environment: - MIN_AGREEMENT_EXPIRATION=30s - - YA_NET_BROADCAST_SIZE=10 - NODE_NAME=provider-2 - SUBNET=${YAGNA_SUBNET:-golemjstest} - YA_NET_BIND_URL=udp://0.0.0.0:0 + - YA_NET_TYPE=central + - CENTRAL_NET_HOST=polygongas.org:7999 # - YA_NET_RELAY_HOST=63.34.24.27:7477 requestor: build: @@ -70,8 +72,9 @@ services: - YAGNA_SUBNET=${YAGNA_SUBNET:-golemjstest} - YAGNA_APPKEY=try_golem - PAYMENT_NETWORK=${PAYMENT_NETWORK} - - YA_NET_BIND_URL=udp://0.0.0.0:0 - - HOLESKY_MAX_FEE_PER_GAS=51 + - HOODI_MAX_FEE_PER_GAS=51 + - YA_NET_TYPE=central + - CENTRAL_NET_HOST=polygongas.org:7999 # - YA_NET_RELAY_HOST=63.34.24.27:7477 healthcheck: test: ["CMD-SHELL", "curl -s -o /dev/null -w '%{http_code}' http://localhost:7465 | grep -q 401"] From 4436ae860e2036d45598e0b87cd5204da59f1d20 Mon Sep 17 00:00:00 2001 From: scx1332 Date: Fri, 3 Oct 2025 13:16:30 +0200 Subject: [PATCH 03/10] Change version to v0.17.4 --- .github/workflows/release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a6fcc2282..b8824afc9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,11 +21,11 @@ on: provider_version: description: "Provider version (e.g., v0.15.0 or pre-rel-v0.15.1)" required: false - default: "pre-rel-v0.17.1-hoodi3" + default: "v0.17.4" requestor_version: description: "Requestor version (e.g., v0.15.0 or pre-rel-v0.15.1)" required: false - default: "pre-rel-v0.17.1-hoodi3" + default: "v0.17.4" provider_wasi_version: description: "Provider WASI version (e.g., v0.2.2)" required: false @@ -44,8 +44,8 @@ permissions: contents: read # for checkout env: - PROVIDER_VERSION: ${{ github.event.inputs.provider_version || 'pre-rel-v0.17.1-hoodi3' }} - REQUESTOR_VERSION: ${{ github.event.inputs.requestor_version || 'pre-rel-v0.17.1-hoodi3' }} + PROVIDER_VERSION: ${{ github.event.inputs.provider_version || 'v0.17.4' }} + REQUESTOR_VERSION: ${{ github.event.inputs.requestor_version || 'v0.17.4' }} PROVIDER_WASI_VERSION: ${{ github.event.inputs.provider_wasi_version || 'v0.2.2' }} PROVIDER_VM_VERSION: ${{ github.event.inputs.provider_vm_version || 'v0.5.3' }} PAYMENT_NETWORK: ${{ github.event.inputs.payment_network || 'hoodi' }} From d63c356a16771725a8f94bd236283c1f30454706 Mon Sep 17 00:00:00 2001 From: scx1332 Date: Fri, 3 Oct 2025 13:18:03 +0200 Subject: [PATCH 04/10] Fix test needed --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b8824afc9..6bcd0a144 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -126,6 +126,7 @@ jobs: release: name: Release the SDK to NPM and GitHub + needs: [run-e2e-tests, run-examples-tests, run-cypress-tests] runs-on: ubuntu-latest permissions: contents: write # to be able to publish a GitHub release From 43ae8c17e7121fc6b1075d6c037b3d777229fbc6 Mon Sep 17 00:00:00 2001 From: scx1332 Date: Fri, 3 Oct 2025 13:23:45 +0200 Subject: [PATCH 05/10] Reverted settings to hybrid config --- tests/docker/docker-compose.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/tests/docker/docker-compose.yml b/tests/docker/docker-compose.yml index 19c5e1e80..e3f4cacda 100644 --- a/tests/docker/docker-compose.yml +++ b/tests/docker/docker-compose.yml @@ -24,9 +24,8 @@ services: - YA_NET_BROADCAST_SIZE=10 - NODE_NAME=provider-1 - SUBNET=${YAGNA_SUBNET:-golemjstest} - - YA_NET_TYPE=central - - CENTRAL_NET_HOST=polygongas.org:7999 - + - YA_NET_BIND_URL=udp://0.0.0.0:0 + # - YA_NET_RELAY_HOST=63.34.24.27:7477 provider-2: build: context: . @@ -48,11 +47,10 @@ services: start_period: 40s environment: - MIN_AGREEMENT_EXPIRATION=30s + - YA_NET_BROADCAST_SIZE=10 - NODE_NAME=provider-2 - SUBNET=${YAGNA_SUBNET:-golemjstest} - YA_NET_BIND_URL=udp://0.0.0.0:0 - - YA_NET_TYPE=central - - CENTRAL_NET_HOST=polygongas.org:7999 # - YA_NET_RELAY_HOST=63.34.24.27:7477 requestor: build: @@ -72,9 +70,7 @@ services: - YAGNA_SUBNET=${YAGNA_SUBNET:-golemjstest} - YAGNA_APPKEY=try_golem - PAYMENT_NETWORK=${PAYMENT_NETWORK} - - HOODI_MAX_FEE_PER_GAS=51 - - YA_NET_TYPE=central - - CENTRAL_NET_HOST=polygongas.org:7999 + - YA_NET_BIND_URL=udp://0.0.0.0:0 # - YA_NET_RELAY_HOST=63.34.24.27:7477 healthcheck: test: ["CMD-SHELL", "curl -s -o /dev/null -w '%{http_code}' http://localhost:7465 | grep -q 401"] From 41593d9a1bcac6a2a24a2d984f190105f9113845 Mon Sep 17 00:00:00 2001 From: scx1332 Date: Fri, 3 Oct 2025 14:11:08 +0200 Subject: [PATCH 06/10] Test on private hybrid network --- tests/docker/docker-compose.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/docker/docker-compose.yml b/tests/docker/docker-compose.yml index e3f4cacda..adedca3ad 100644 --- a/tests/docker/docker-compose.yml +++ b/tests/docker/docker-compose.yml @@ -25,7 +25,7 @@ services: - NODE_NAME=provider-1 - SUBNET=${YAGNA_SUBNET:-golemjstest} - YA_NET_BIND_URL=udp://0.0.0.0:0 - # - YA_NET_RELAY_HOST=63.34.24.27:7477 + - YA_NET_RELAY_HOST=polygongas.org:7477 provider-2: build: context: . @@ -51,7 +51,7 @@ services: - NODE_NAME=provider-2 - SUBNET=${YAGNA_SUBNET:-golemjstest} - YA_NET_BIND_URL=udp://0.0.0.0:0 - # - YA_NET_RELAY_HOST=63.34.24.27:7477 + - YA_NET_RELAY_HOST=polygongas.org:7477 requestor: build: context: . @@ -71,7 +71,7 @@ services: - YAGNA_APPKEY=try_golem - PAYMENT_NETWORK=${PAYMENT_NETWORK} - YA_NET_BIND_URL=udp://0.0.0.0:0 - # - YA_NET_RELAY_HOST=63.34.24.27:7477 + - YA_NET_RELAY_HOST=polygongas.org:7477 healthcheck: test: ["CMD-SHELL", "curl -s -o /dev/null -w '%{http_code}' http://localhost:7465 | grep -q 401"] interval: 10s From 1dc0f638da4fe9b1284f0808ffa36db9daeef15b Mon Sep 17 00:00:00 2001 From: scx1332 Date: Fri, 3 Oct 2025 14:41:36 +0200 Subject: [PATCH 07/10] Add defaults --- tests/docker/Provider.Dockerfile | 2 +- tests/docker/Requestor.Dockerfile | 2 +- tests/docker/docker-compose.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/docker/Provider.Dockerfile b/tests/docker/Provider.Dockerfile index cbcd4dede..37e0534a1 100644 --- a/tests/docker/Provider.Dockerfile +++ b/tests/docker/Provider.Dockerfile @@ -1,5 +1,5 @@ ARG UBUNTU_VERSION=22.04 -ARG YA_CORE_PROVIDER_VERSION=v0.15.2 +ARG YA_CORE_PROVIDER_VERSION=v0.17.4 ARG YA_WASI_VERSION=v0.2.2 ARG YA_VM_VERSION=v0.3.0 diff --git a/tests/docker/Requestor.Dockerfile b/tests/docker/Requestor.Dockerfile index 7ae6646fa..7ad620d69 100644 --- a/tests/docker/Requestor.Dockerfile +++ b/tests/docker/Requestor.Dockerfile @@ -1,5 +1,5 @@ ARG UBUNTU_VERSION=22.04 -ARG YA_CORE_REQUESTOR_VERSION=v0.15.2 +ARG YA_CORE_REQUESTOR_VERSION=v0.17.4 FROM node:22 ARG YA_CORE_REQUESTOR_VERSION diff --git a/tests/docker/docker-compose.yml b/tests/docker/docker-compose.yml index adedca3ad..c32953866 100644 --- a/tests/docker/docker-compose.yml +++ b/tests/docker/docker-compose.yml @@ -69,7 +69,7 @@ services: - GSB_URL=tcp://0.0.0.0:7464 - YAGNA_SUBNET=${YAGNA_SUBNET:-golemjstest} - YAGNA_APPKEY=try_golem - - PAYMENT_NETWORK=${PAYMENT_NETWORK} + - PAYMENT_NETWORK=${PAYMENT_NETWORK:-hoodi} - YA_NET_BIND_URL=udp://0.0.0.0:0 - YA_NET_RELAY_HOST=polygongas.org:7477 healthcheck: From b3afb5dd0917b9737b442856265b7af5fde7b749 Mon Sep 17 00:00:00 2001 From: scx1332 Date: Fri, 3 Oct 2025 14:42:54 +0200 Subject: [PATCH 08/10] Update vm version --- tests/docker/Provider.Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/docker/Provider.Dockerfile b/tests/docker/Provider.Dockerfile index 37e0534a1..ddee0ab7d 100644 --- a/tests/docker/Provider.Dockerfile +++ b/tests/docker/Provider.Dockerfile @@ -1,7 +1,7 @@ ARG UBUNTU_VERSION=22.04 ARG YA_CORE_PROVIDER_VERSION=v0.17.4 ARG YA_WASI_VERSION=v0.2.2 -ARG YA_VM_VERSION=v0.3.0 +ARG YA_VM_VERSION=v0.5.3 FROM ubuntu:${UBUNTU_VERSION} ARG YA_CORE_PROVIDER_VERSION From 3611b615a6f3aba709c5aba864d10d6786c128b3 Mon Sep 17 00:00:00 2001 From: scx1332 Date: Fri, 3 Oct 2025 14:47:46 +0200 Subject: [PATCH 09/10] Fix run script - golemsp --- tests/docker/Provider.Dockerfile | 2 +- tests/docker/docker-compose.yml | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/docker/Provider.Dockerfile b/tests/docker/Provider.Dockerfile index ddee0ab7d..05f98d885 100644 --- a/tests/docker/Provider.Dockerfile +++ b/tests/docker/Provider.Dockerfile @@ -38,4 +38,4 @@ RUN apt-get update -q \ && rm -Rf ${YA_DIR_INSTALLER} COPY ./configureProvider.py /configureProvider.py -CMD ["bash", "-c", "python3 /configureProvider.py && ya-provider rule set outbound everyone --mode whitelist && ya-provider whitelist add -p ipfs.io && golemsp run --payment-network testnet " ] +CMD ["bash", "-c", "python3 /configureProvider.py && ya-provider rule set outbound everyone --mode whitelist && ya-provider whitelist add -p ipfs.io && golemsp run --no-interactive --payment-network testnet " ] diff --git a/tests/docker/docker-compose.yml b/tests/docker/docker-compose.yml index c32953866..8e75ae604 100644 --- a/tests/docker/docker-compose.yml +++ b/tests/docker/docker-compose.yml @@ -25,7 +25,6 @@ services: - NODE_NAME=provider-1 - SUBNET=${YAGNA_SUBNET:-golemjstest} - YA_NET_BIND_URL=udp://0.0.0.0:0 - - YA_NET_RELAY_HOST=polygongas.org:7477 provider-2: build: context: . @@ -51,7 +50,6 @@ services: - NODE_NAME=provider-2 - SUBNET=${YAGNA_SUBNET:-golemjstest} - YA_NET_BIND_URL=udp://0.0.0.0:0 - - YA_NET_RELAY_HOST=polygongas.org:7477 requestor: build: context: . @@ -71,7 +69,6 @@ services: - YAGNA_APPKEY=try_golem - PAYMENT_NETWORK=${PAYMENT_NETWORK:-hoodi} - YA_NET_BIND_URL=udp://0.0.0.0:0 - - YA_NET_RELAY_HOST=polygongas.org:7477 healthcheck: test: ["CMD-SHELL", "curl -s -o /dev/null -w '%{http_code}' http://localhost:7465 | grep -q 401"] interval: 10s From 92fbaaa416d36f17042d9beb6849afc4ab50f80f Mon Sep 17 00:00:00 2001 From: Seweryn Date: Fri, 3 Oct 2025 15:07:49 +0200 Subject: [PATCH 10/10] docs: update recommended network (#1201) * docs: update recommended network * docs: update recommended yagna version in README --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b21ec35b1..939762079 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,6 @@ - [Contributing](#contributing) - [Discord](#discord) - [See also](#see-also) - ## Features @@ -91,8 +90,8 @@ yarn add @golem-sdk/golem-js ## Supported environments -The SDK is designed to work with LTS versions of Node (starting from 18) -and with browsers. The minimum supported `yagna` version is `pre-rel-0.17.1-hoodi3`. +The SDK is designed to work with LTS versions of Node (20.x and above). +and with browsers. The minimum supported `yagna` version is `0.15.2`, but if you want to use the `hoodi` testnet (since `holesky` is no longer available), you should use at least version `0.17.4`. ## Getting started with Golem Network