Skip to content

Commit

Permalink
fix: exports and imports (#495)
Browse files Browse the repository at this point in the history
  • Loading branch information
luizstacio authored Sep 8, 2022
1 parent 7ad3d79 commit f3c7273
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 11 deletions.
8 changes: 8 additions & 0 deletions .changeset/thirty-planes-laugh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@fuel-ts/abi-coder": minor
"@fuel-ts/contract": minor
"@fuel-ts/transactions": minor
"typechain-target-fuels": minor
---

Fix exports and imports
1 change: 1 addition & 0 deletions packages/abi-coder/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export { default as NumberCoder } from './coders/number';
export { default as StringCoder } from './coders/string';
export { default as StructCoder } from './coders/struct';
export { default as TupleCoder } from './coders/tuple';
export { default as U64Coder } from './coders/u64';
export * from './utilities';
export * from './fragments/fragment';
export { default as FunctionFragment } from './fragments/function-fragment';
Expand Down
2 changes: 2 additions & 0 deletions packages/contract/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export * from './types';
export { default as ContractFactory } from './contracts/contract-factory';
export { default as Contract } from './contracts/contract';
export { FunctionInvocationScope } from './contracts/functions/invocation-scope';
export { MultiCallInvocationScope } from './contracts/functions/multicall-scope';
export * as ContractUtils from './util';
3 changes: 1 addition & 2 deletions packages/contract/src/scripts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
import type { BytesLike } from '@ethersproject/bytes';
import { arrayify, concat } from '@ethersproject/bytes';
import type { ArrayCoder, StructCoder } from '@fuel-ts/abi-coder';
import { AbiCoder } from '@fuel-ts/abi-coder';
import U64Coder from '@fuel-ts/abi-coder/src/coders/u64';
import { AbiCoder, U64Coder } from '@fuel-ts/abi-coder';
import type { AbstractAddress } from '@fuel-ts/interfaces';
import type { BigNumberish } from '@fuel-ts/math';
import { bn, toNumber } from '@fuel-ts/math';
Expand Down
3 changes: 1 addition & 2 deletions packages/transactions/src/coders/input.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/* eslint-disable max-classes-per-file */

import { concat } from '@ethersproject/bytes';
import { Coder, B256Coder, NumberCoder } from '@fuel-ts/abi-coder';
import U64Coder from '@fuel-ts/abi-coder/src/coders/u64';
import { Coder, U64Coder, B256Coder, NumberCoder } from '@fuel-ts/abi-coder';
import type { BN } from '@fuel-ts/math';

import { ByteArrayCoder } from './byte-array';
Expand Down
3 changes: 1 addition & 2 deletions packages/transactions/src/coders/output.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* eslint-disable max-classes-per-file */
import { concat } from '@ethersproject/bytes';
import { Coder, B256Coder, NumberCoder } from '@fuel-ts/abi-coder';
import U64Coder from '@fuel-ts/abi-coder/src/coders/u64';
import { Coder, U64Coder, B256Coder, NumberCoder } from '@fuel-ts/abi-coder';
import type { BN } from '@fuel-ts/math';

export enum OutputType /* u8 */ {
Expand Down
3 changes: 1 addition & 2 deletions packages/transactions/src/coders/receipt.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/* eslint-disable max-classes-per-file */

import { concat } from '@ethersproject/bytes';
import { Coder, B256Coder, NumberCoder } from '@fuel-ts/abi-coder';
import U64Coder from '@fuel-ts/abi-coder/src/coders/u64';
import { Coder, U64Coder, B256Coder, NumberCoder } from '@fuel-ts/abi-coder';
import type { BN } from '@fuel-ts/math';

export enum ReceiptType /* u8 */ {
Expand Down
3 changes: 1 addition & 2 deletions packages/transactions/src/coders/transaction.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/* eslint-disable max-classes-per-file */

import { concat } from '@ethersproject/bytes';
import { Coder, ArrayCoder, B256Coder, NumberCoder } from '@fuel-ts/abi-coder';
import U64Coder from '@fuel-ts/abi-coder/src/coders/u64';
import { Coder, ArrayCoder, U64Coder, B256Coder, NumberCoder } from '@fuel-ts/abi-coder';
import type { BN } from '@fuel-ts/math';

import { ByteArrayCoder } from './byte-array';
Expand Down
2 changes: 1 addition & 1 deletion packages/typechain-target-fuels/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"static"
],
"scripts": {
"build": "tsup --dts",
"build": "tsup --dts && pnpm build:example",
"build:example": "fuelchain --target=. --out-dir=example/types 'example/**.json'"
},
"license": "Apache-2.0",
Expand Down

1 comment on commit f3c7273

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements 89.96% 3215/3574
🟡 Branches 70.3% 594/845
🟢 Functions 87.28% 645/739
🟢 Lines 89.8% 3082/3432

Test suite run success

486 tests passing in 44 suites.

Report generated by 🧪jest coverage report action from f3c7273

Please sign in to comment.