From 00d4840501223d0002d299082defdf8552b78ac0 Mon Sep 17 00:00:00 2001 From: Denis Angell Date: Wed, 15 Feb 2023 14:24:53 -0500 Subject: [PATCH] fixup! remove faucet --- packages/xrpl/src/Wallet/defaultFaucets.ts | 6 ----- .../xrpl/test/integration/fundWallet.test.ts | 8 ------- packages/xrpl/test/wallet/fundWallet.test.ts | 22 ------------------- 3 files changed, 36 deletions(-) diff --git a/packages/xrpl/src/Wallet/defaultFaucets.ts b/packages/xrpl/src/Wallet/defaultFaucets.ts index e7778221..f0645bc9 100644 --- a/packages/xrpl/src/Wallet/defaultFaucets.ts +++ b/packages/xrpl/src/Wallet/defaultFaucets.ts @@ -17,7 +17,6 @@ export enum FaucetNetwork { AMMDevnet = 'ammfaucet.devnet.rippletest.net', NFTDevnet = 'faucet-nft.ripple.com', HooksV2Testnet = 'hooks-testnet-v2.xrpl-labs.com', - Vala = 'vala.faucet.transia.co', } export const FaucetNetworkPaths: Record = { @@ -26,7 +25,6 @@ export const FaucetNetworkPaths: Record = { [FaucetNetwork.AMMDevnet]: '/accounts', [FaucetNetwork.NFTDevnet]: '/accounts', [FaucetNetwork.HooksV2Testnet]: '/accounts', - [FaucetNetwork.Vala]: '/accounts', } /** @@ -61,10 +59,6 @@ export function getFaucetHost(client: Client): FaucetNetwork | undefined { return FaucetNetwork.NFTDevnet } - if (connectionUrl.includes('vala')) { - return FaucetNetwork.Vala - } - throw new XRPLFaucetError('Faucet URL is not defined or inferrable.') } diff --git a/packages/xrpl/test/integration/fundWallet.test.ts b/packages/xrpl/test/integration/fundWallet.test.ts index 58ef3ff2..340e0b0e 100644 --- a/packages/xrpl/test/integration/fundWallet.test.ts +++ b/packages/xrpl/test/integration/fundWallet.test.ts @@ -90,14 +90,6 @@ describe('fundWallet', function () { TIMEOUT, ) - it( - 'can generate and fund wallets on Vala devnet', - async function () { - await generate_faucet_wallet_and_fund_again('wss://vala.ws.transia.co') - }, - TIMEOUT, - ) - it( 'can generate wallet on hooks v2 testnet', async function () { diff --git a/packages/xrpl/test/wallet/fundWallet.test.ts b/packages/xrpl/test/wallet/fundWallet.test.ts index 50a3b104..c95a27b5 100644 --- a/packages/xrpl/test/wallet/fundWallet.test.ts +++ b/packages/xrpl/test/wallet/fundWallet.test.ts @@ -65,17 +65,6 @@ describe('Get Faucet host ', function () { ) }) - it('returns the Vala host', function () { - const expectedFaucet = FaucetNetwork.Vala - // @ts-expect-error Intentionally modifying private data for test - testContext.client.connection.url = FaucetNetwork.Vala - - assert.strictEqual( - getFaucetHost(testContext.client as Client), - expectedFaucet, - ) - }) - it('returns the correct faucetPath for Devnet host', function () { const expectedFaucetPath = FaucetNetworkPaths[FaucetNetwork.Devnet] // @ts-expect-error Intentionally modifying private data for test @@ -98,17 +87,6 @@ describe('Get Faucet host ', function () { ) }) - it('returns the correct faucetPath for Vala host', function () { - const expectedFaucetPath = FaucetNetworkPaths[FaucetNetwork.Vala] - // @ts-expect-error Intentionally modifying private data for test - testContext.client.connection.url = FaucetNetwork.Vala - - assert.strictEqual( - getDefaultFaucetPath(getFaucetHost(testContext.client as Client)), - expectedFaucetPath, - ) - }) - it('returns the correct faucetPath for undefined host', function () { const expectedFaucetPath = '/accounts'