From 027f7cedef2f3e4981df09dcc8bda1a8447aa658 Mon Sep 17 00:00:00 2001 From: Danilo Pantani Date: Fri, 22 Nov 2024 15:05:56 -0300 Subject: [PATCH] change namespace --- .github/workflows/release-docker.yml | 2 +- README.md | 36 ++++++++++++++-------------- cmd/faucet.go | 4 ++-- cmd/root.go | 3 ++- go.mod | 2 +- internal/environ/env_test.go | 2 +- main.go | 2 +- 7 files changed, 26 insertions(+), 25 deletions(-) diff --git a/.github/workflows/release-docker.yml b/.github/workflows/release-docker.yml index 1b809ee..d668353 100644 --- a/.github/workflows/release-docker.yml +++ b/.github/workflows/release-docker.yml @@ -29,4 +29,4 @@ jobs: with: push: true platforms: linux/amd64,linux/arm64 - tags: ghcr.io/tendermint/faucet:latest,ghcr.io/tendermint/faucet:${{ steps.get_version.outputs.version-without-v }} + tags: ghcr.io/ignite/faucet:latest,ghcr.io/ignite/faucet:${{ steps.get_version.outputs.version-without-v }} diff --git a/README.md b/README.md index ff259ec..bb99afa 100644 --- a/README.md +++ b/README.md @@ -29,12 +29,12 @@ $ curl https://get.starport.network/faucet! | bash ### Use docker image -Use docker image `ghcr.io/tendermint/faucet`. You can use it in a Kubernetes pod with +Use docker image `ghcr.io/ignite/faucet`. You can use it in a Kubernetes pod with [shareProcessNamespace](https://kubernetes.io/docs/tasks/configure-pod-container/share-process-namespace/#configure-a-pod) or mount the chain binary using docker: ```bash -$ docker run -it -v ~/go/bin/gaiad:/usr/local/bin/gaiad ghcr.io/tendermint/faucet +$ docker run -it -v ~/go/bin/gaiad:/usr/local/bin/gaiad ghcr.io/ignite/faucet ``` ### From Source @@ -58,22 +58,22 @@ $ make install You can configure the faucet either using command line flags or environment variables. The following table shows the available configuration options and respective defaults: -| flag | env | description | default | -|------------------|------------------|-------------------------------------------------------------- |-----------| -| port | PORT | tcp port where faucet will be listening for requests | 8000 | -| account-name | ACCOUNT_NAME | name of the account to be used by the faucet | faucet | -| mnemonic | MNEMONIC | mnemonic for restoring an account | | -| keyring-password | KEYRING_PASSWORD | password for accessing keyring | | -| denoms | DENOMS | denomination of the coins sent by default (comma separated) | uatom | -| credit-amount | CREDIT_AMOUNT | amount to credit in each request | 10000000 | -| max-credit | MAX_CREDIT | maximum credit per account | 100000000 | -| fee-amount | FEE_AMOUNT | fee to pay along with the transaction | 0 | -| sdk-version | SDK_VERSION | version of sdk (launchpad or stargate) | stargate | -| node | NODE | address of tendermint RPC endpoint for this chain | | -| keyring-backend | KEYRING_BACKEND | keyring backend to be used | | -| coin-type | COIN_TYPE | registered coin type number for HD derivation (BIP-0044) | 118 | -| home | HOME | replaces the default home used by the chain | | -| | | | | +| flag | env | description | default | +|------------------|------------------|------------------------------------------------------------- |-----------| +| port | PORT | tcp port where faucet will be listening for requests | 8000 | +| account-name | ACCOUNT_NAME | name of the account to be used by the faucet | faucet | +| mnemonic | MNEMONIC | mnemonic for restoring an account | | +| keyring-password | KEYRING_PASSWORD | password for accessing keyring | | +| denoms | DENOMS | denomination of the coins sent by default (comma separated) | uatom | +| credit-amount | CREDIT_AMOUNT | amount to credit in each request | 10000000 | +| max-credit | MAX_CREDIT | maximum credit per account | 100000000 | +| fee-amount | FEE_AMOUNT | fee to pay along with the transaction | 0 | +| sdk-version | SDK_VERSION | version of sdk (launchpad or stargate) | stargate | +| node | NODE | address of RPC endpoint for this chain | | +| keyring-backend | KEYRING_BACKEND | keyring backend to be used | | +| coin-type | COIN_TYPE | registered coin type number for HD derivation (BIP-0044) | 118 | +| home | HOME | replaces the default home used by the chain | | +| | | | | ### [gaia](https://github.com/cosmos/gaia) example diff --git a/cmd/faucet.go b/cmd/faucet.go index 4e827c4..cc3f01d 100644 --- a/cmd/faucet.go +++ b/cmd/faucet.go @@ -14,7 +14,7 @@ import ( "github.com/ignite/cli/v28/ignite/pkg/errors" "github.com/spf13/cobra" - "github.com/tendermint/faucet/internal/environ" + "github.com/ignite/faucet/internal/environ" ) const ( @@ -98,7 +98,7 @@ func faucetFlags(cmd *cobra.Command) { cmd.Flags().String( flagNode, environ.GetString("NODE", ""), - "address of tendermint RPC endpoint for this chain", + "address of RPC endpoint for this chain", ) cmd.Flags().String( flagCoinType, diff --git a/cmd/root.go b/cmd/root.go index a16975e..e514c2f 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -7,7 +7,8 @@ import ( "time" "github.com/spf13/cobra" - "github.com/tendermint/faucet/version" + + "github.com/ignite/faucet/version" ) const checkVersionTimeout = time.Millisecond * 600 diff --git a/go.mod b/go.mod index 8bed550..03b5bf4 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/tendermint/faucet +module github.com/ignite/faucet go 1.23.1 diff --git a/internal/environ/env_test.go b/internal/environ/env_test.go index 8655cf0..56b0027 100644 --- a/internal/environ/env_test.go +++ b/internal/environ/env_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/tendermint/faucet/internal/environ" + "github.com/ignite/faucet/internal/environ" ) func TestEnviron(t *testing.T) { diff --git a/main.go b/main.go index fd898e7..bb43a97 100644 --- a/main.go +++ b/main.go @@ -4,7 +4,7 @@ import ( "fmt" "os" - "github.com/tendermint/faucet/cmd" + "github.com/ignite/faucet/cmd" ) func main() {