From fb93a841e7431e94172ac60854858d9c4dad1766 Mon Sep 17 00:00:00 2001 From: Julian Gruber Date: Mon, 2 Oct 2023 14:06:38 +0200 Subject: [PATCH] switch to f4 address --- .github/workflows/ci.yml | 2 +- README.md | 10 ++++++---- commands/station.js | 4 ++++ test/util.js | 3 +-- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0dc8caae..6da21f41 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -81,7 +81,7 @@ jobs: docker run \ --name station \ --detach \ - --env FIL_WALLET_ADDRESS=f1abjxfbp274xpdqcpuaykwkfb43omjotacm2p3za \ + --env FIL_WALLET_ADDRESS=f410fhgyuvi4k35wnqkvtdpewptt2oihbchvy5bdlmxy \ $IMAGEID env: IMAGEID: ${{ steps.docker_build.outputs.imageid }} diff --git a/README.md b/README.md index 6e4633d3..973df2f1 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ $ npm install -g @filecoin-station/core ## Usage ```bash -$ FIL_WALLET_ADDRESS=f1... station +$ FIL_WALLET_ADDRESS=f410/0x... station ``` ## Common Configuration @@ -70,10 +70,12 @@ the configuration options described in [Common Configuration](#common-configuration): - `FIL_WALLET_ADDRESS` _(string; required)_: Address of the Filecoin wallet that - will receive rewards. The value must be a mainnet address starting with `f1`. + will receive rewards. The value must be a mainnet address starting with `f410` + or `0x`. If you just want to give `core` a quick spin, you can use the address - `f1abjxfbp274xpdqcpuaykwkfb43omjotacm2p3za`. Please note that any earnings + `f410fhgyuvi4k35wnqkvtdpewptt2oihbchvy5bdlmxy` or respectively + `0x39b14aa38adf6cd82aB31BC967Ce7a720E111Eb8`. Please note that any earnings sent there will be lost. This command outputs metrics and activity events: @@ -148,7 +150,7 @@ Deploy Station with [Docker](https://www.docker.com/). Please replace $ docker run \ --name station \ --detach \ - --env FIL_WALLET_ADDRESS=f1abjxfbp274xpdqcpuaykwkfb43omjotacm2p3za \ + --env FIL_WALLET_ADDRESS=f410fhgyuvi4k35wnqkvtdpewptt2oihbchvy5bdlmxy \ ghcr.io/filecoin-station/core ``` diff --git a/commands/station.js b/commands/station.js index c7e05b4f..9a767f2e 100644 --- a/commands/station.js +++ b/commands/station.js @@ -20,6 +20,10 @@ export const station = async ({ json, experimental }) => { console.error('FIL_WALLET_ADDRESS required') process.exit(1) } + if (!FIL_WALLET_ADDRESS.startsWith('f410') && !FIL_WALLET_ADDRESS.startsWith('0x')) { + console.error('FIL_WALLET_ADDRESS must start with f410 or 0x') + process.exit(1) + } startPingLoop().unref() for (const moduleName of moduleNames) { diff --git a/test/util.js b/test/util.js index ed05fbf4..ca7956e3 100644 --- a/test/util.js +++ b/test/util.js @@ -1,7 +1,6 @@ import { fileURLToPath } from 'node:url' -// From https://lotus.filecoin.io/lotus/manage/manage-fil/ -export const FIL_WALLET_ADDRESS = 'f1abjxfbp274xpdqcpuaykwkfb43omjotacm2p3za' +export const FIL_WALLET_ADDRESS = 'f410fhgyuvi4k35wnqkvtdpewptt2oihbchvy5bdlmxy' export const station = fileURLToPath( new URL('../bin/station.js', import.meta.url)