Skip to content

Commit

Permalink
Considering fuels umbrella when validating imports
Browse files Browse the repository at this point in the history
  • Loading branch information
arboleya committed Jun 28, 2023
1 parent bfff8e0 commit af8ec90
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
3 changes: 2 additions & 1 deletion internal/check-imports/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"@fuel-ts/versions": "workspace:*",
"@fuel-ts/wallet-manager": "workspace:*",
"@fuel-ts/wallet": "workspace:*",
"@fuel-ts/wordlists": "workspace:*"
"@fuel-ts/wordlists": "workspace:*",
"fuels": "workspace:^"
}
}
3 changes: 2 additions & 1 deletion internal/check-imports/src/imports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import * as asm from '@fuel-ts/asm';
import * as contract from '@fuel-ts/contract';
// forc-bin
// fuels-gauge
// fuels
import * as hasher from '@fuel-ts/hasher';
import * as hdwallet from '@fuel-ts/hdwallet';
import * as interfaces from '@fuel-ts/interfaces';
Expand All @@ -25,6 +24,7 @@ import * as versions from '@fuel-ts/versions';
import * as wallet from '@fuel-ts/wallet';
import * as walletManager from '@fuel-ts/wallet-manager';
import * as wordlists from '@fuel-ts/wordlists';
import * as fuels from 'fuels';

const { log } = console;

Expand All @@ -34,6 +34,7 @@ log([
address,
asm,
contract,
fuels,
hasher,
hdwallet,
interfaces,
Expand Down
6 changes: 6 additions & 0 deletions internal/check-imports/src/references.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import { WalletManager } from '@fuel-ts/wallet-manager';
import { FUEL_NETWORK_URL } from '@fuel-ts/wallet/configs';
import { generateTestWallet, seedTestWallet } from '@fuel-ts/wallet/test-utils';
import { english, Language } from '@fuel-ts/wordlists';
import { ScriptRequest } from 'fuels';

const { log } = console;

Expand Down Expand Up @@ -64,6 +65,11 @@ log(VM_REGISTER_COUNT); // pnpm add add @fuel-ts/asm
*/
log(ContractFactory);

/**
* fuels (reading class re-exported by umbrella)
*/
log(ScriptRequest);

/**
* hasher
*/
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit af8ec90

Please sign in to comment.