diff --git a/.changeset/brown-snakes-brush.md b/.changeset/brown-snakes-brush.md new file mode 100644 index 00000000000..fd2467cc19e --- /dev/null +++ b/.changeset/brown-snakes-brush.md @@ -0,0 +1,5 @@ +--- +"@fuel-ts/contract": minor +--- + +Add exports on contract package diff --git a/packages/contract/src/contracts/functions/invocation-results.ts b/packages/contract/src/contracts/functions/invocation-results.ts index cf62fb692b6..64465ba2ec5 100644 --- a/packages/contract/src/contracts/functions/invocation-results.ts +++ b/packages/contract/src/contracts/functions/invocation-results.ts @@ -16,7 +16,7 @@ function getGasUsage(callResult: CallResult) { return scriptResult?.gasUsed || bn(0); } -class InvocationResult { +export class InvocationResult { readonly functionScopes: Array; readonly isMultiCall: boolean; readonly gasUsed: BN; diff --git a/packages/contract/src/index.ts b/packages/contract/src/index.ts index 04eb602ce79..22948c5459b 100644 --- a/packages/contract/src/index.ts +++ b/packages/contract/src/index.ts @@ -3,4 +3,8 @@ 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 { + InvocationResult, + FunctionInvocationResult, +} from './contracts/functions/invocation-results'; export * as ContractUtils from './util';