Skip to content

Commit

Permalink
chore: un-deprecated urls
Browse files Browse the repository at this point in the history
  • Loading branch information
petertonysmith94 committed Jan 21, 2025
1 parent 387e8c0 commit a1bb3bf
Show file tree
Hide file tree
Showing 15 changed files with 186 additions and 235 deletions.
13 changes: 0 additions & 13 deletions internal/utils/CHANGELOG.md

This file was deleted.

1 change: 0 additions & 1 deletion internal/utils/README.md

This file was deleted.

26 changes: 0 additions & 26 deletions internal/utils/package.json

This file was deleted.

1 change: 0 additions & 1 deletion internal/utils/src/index.ts

This file was deleted.

7 changes: 0 additions & 7 deletions internal/utils/tsconfig.json

This file was deleted.

3 changes: 0 additions & 3 deletions internal/utils/tsup.config.ts

This file was deleted.

9 changes: 8 additions & 1 deletion packages/account/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
"require": "./dist/index.js",
"import": "./dist/index.mjs"
},
"./configs": {
"types": "./dist/configs.d.ts",
"require": "./dist/configs.js",
"import": "./dist/configs.mjs"
},
"./test-utils": {
"types": "./dist/test-utils.d.ts",
"require": "./dist/test-utils.js",
Expand All @@ -23,6 +28,9 @@
},
"typesVersions": {
"*": {
"configs": [
"./dist/configs.d.ts"
],
"test-utils": [
"./dist/test-utils.d.ts"
]
Expand Down Expand Up @@ -66,7 +74,6 @@
"@graphql-codegen/typescript": "4.0.9",
"@graphql-codegen/typescript-generic-sdk": "4.0.1",
"@graphql-codegen/typescript-operations": "4.2.3",
"@internal/utils": "workspace:*",
"@types/ramda": "0.30.2",
"get-graphql-schema": "2.1.2",
"type-fest": "4.26.1"
Expand Down
17 changes: 17 additions & 0 deletions packages/account/src/configs.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { DEVNET_NETWORK_URL, TESTNET_NETWORK_URL } from './configs';

/**
* @group node
* @group browser
*/
describe('Configs', () => {
it('exports DEVNET_NETWORK_URL', async () => {
const configs = await import('./configs');
expect(configs.DEVNET_NETWORK_URL).toBe(DEVNET_NETWORK_URL);
});

it('exports TESTNET_NETWORK_URL', async () => {
const configs = await import('./configs');
expect(configs.TESTNET_NETWORK_URL).toBe(TESTNET_NETWORK_URL);
});
});
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
/**
* Devnet network URL
*/
export const DEVNET_NETWORK_URL = 'https://devnet.fuel.network/v1/graphql';

/**
* Testnet network URL
*/
export const TESTNET_NETWORK_URL = 'https://testnet.fuel.network/v1/graphql';
2 changes: 1 addition & 1 deletion packages/account/test/fuel-wallet-connector.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import { expectToThrowFuelError } from '@fuel-ts/errors/test-utils';
import type { BN } from '@fuel-ts/math';
import { bn } from '@fuel-ts/math';
import type { BytesLike } from '@fuel-ts/utils';
import { TESTNET_NETWORK_URL } from '@internal/utils';
import { EventEmitter } from 'events';

import type { AccountSendTxParams, Network, ProviderOptions, SelectNetworkArguments } from '../src';
import { TESTNET_NETWORK_URL } from '../src/configs';
import { Fuel } from '../src/connectors/fuel';
import { FuelConnectorEventType } from '../src/connectors/types';
import { Provider, ScriptTransactionRequest, TransactionStatus } from '../src/providers';
Expand Down
1 change: 1 addition & 0 deletions packages/account/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const configs: Options = {
...tsupDefaults,
entry: {
index: 'src/index.ts',
configs: 'src/configs.ts',
'test-utils': 'src/test-utils.ts',
},
// eslint-disable-next-line @typescript-eslint/require-await
Expand Down
3 changes: 1 addition & 2 deletions packages/fuel-gauge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"@fuel-ts/account": "workspace:*",
"@fuel-ts/errors": "workspace:*",
"@fuel-ts/merkle": "workspace:*",
"@fuel-ts/utils": "workspace:*",
"@internal/utils": "workspace:*"
"@fuel-ts/utils": "workspace:*"
}
}
2 changes: 1 addition & 1 deletion packages/fuel-gauge/src/e2e-script.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable no-console */
import { DEVNET_NETWORK_URL, TESTNET_NETWORK_URL } from '@internal/utils';
import { DEVNET_NETWORK_URL, TESTNET_NETWORK_URL } from '@fuel-ts/account';
import { WalletUnlocked, Provider, TransactionType, CHAIN_IDS, rawAssets, assets, bn } from 'fuels';

import { ScriptMainArgBool } from '../test/typegen';
Expand Down
1 change: 1 addition & 0 deletions packages/fuels/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ export * from '@fuel-ts/transactions';
export * from '@fuel-ts/utils';
export * from '@fuel-ts/account';
export * from '@fuel-ts/transactions/configs';
export * from '@fuel-ts/account/configs';
export * from '@fuel-ts/recipes';
Loading

0 comments on commit a1bb3bf

Please sign in to comment.