Skip to content

Commit

Permalink
teztnets.xyz to .com, beacon module update
Browse files Browse the repository at this point in the history
  • Loading branch information
craigbuckler committed Jan 18, 2024
1 parent d50c5aa commit fe43011
Show file tree
Hide file tree
Showing 4 changed files with 2,322 additions and 615 deletions.
2 changes: 1 addition & 1 deletion getTez/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ You can then use the `getTez` function to interact with the Tezos faucet. The fu

- `address`: The address to send Tez to. This can be a raw Tezos public key hash or a local address's alias.
- `amount`: The amount of Tez to request.
- `network`: The faucet's network name. Must match a network name with a faucet listed at https://teztnets.xyz. Ignored if `faucetUrl` is set.
- `network`: The faucet's network name. Must match a network name with a faucet listed at https://teztnets.com. Ignored if `faucetUrl` is set.
- `faucetUrl`: The custom faucet URL. Ignores `network`.
- `clientDir`: (Optional) Specifies a custom client directory path to look up an address alias. If not set, it will default to `$HOME/.tezos-client/` or `$TEZOS_CLIENT_DIR` if the `TEZOS_CLIENT_DIR` environment variable is set.

Expand Down
6 changes: 3 additions & 3 deletions getTez/getTez.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Options:
-h, --help Display help information.
-a, --amount <value> The amount of Tez to request.
-n, --network <value> Set the faucet's network name. Must match a
network name with a faucet listed at https://teztnets.xyz.
network name with a faucet listed at https://teztnets.com.
Ignored if --faucet-url is set.
-f, --faucet-url <value> Set the custom faucet URL. Ignores --network.
-d, --client-dir <value> Custom client directory path to look up an address alias.
Expand Down Expand Up @@ -89,7 +89,7 @@ type GetTezArgs = {
/** Custom client directory path to look up address alias. */
clientDir?: string
/** Set the faucet's network name. Must match a network name with a faucet
* listed at https://teztnets.xyz. Ignored if `faucetUrl` is set. */
* listed at https://teztnets.com. Ignored if `faucetUrl` is set. */
network?: string
/** Set the custom faucet URL. Ignores `network`. */
faucetUrl?: string
Expand Down Expand Up @@ -194,7 +194,7 @@ const validateArgs = async (args: GetTezArgs): Promise<ValidatedArgs> => {
}

if (!args.faucetUrl) {
const teztnetsUrl = "https://teztnets.xyz/teztnets.json"
const teztnetsUrl = "https://teztnets.com/teztnets.json"
const response = await fetch(teztnetsUrl, {
signal: AbortSignal.timeout(10_000),
})
Expand Down
Loading

0 comments on commit fe43011

Please sign in to comment.