Skip to content

Module: @fuel-ts/program

Classes

Interfaces

Type Aliases

CallConfig

Ƭ CallConfig<T>: Object

Represents configuration for calling a contract function.

Type parameters

NameTypeDescription
TunknownType of the function's arguments.

Type declaration

NameType
argsT
callParameters?CallParams
externalAbisRecord<string, JsonAbi>
forward?CoinQuantity
funcFunctionFragment
programAbstractProgram
txParameters?TxParams

Defined in

types.ts:53


CallParams

Ƭ CallParams: Partial<{ forward: CoinQuantityLike ; gasLimit: BigNumberish }>

Represents call parameters for a contract call.

Defined in

types.ts:31


ContractCall

Ƭ ContractCall: Object

Represents a contract call.

Type declaration

NameType
amount?BigNumberish
assetId?BytesLike
contractIdAbstractAddress
dataBytesLike
externalContractsAbis?Record<string, JsonAbi>
fnSelectorBytesUint8Array
gas?BigNumberish

Defined in

types.ts:18


DryRunResult

Ƭ DryRunResult<TReturn>: Object

Type parameters

Name
TReturn

Type declaration

NameType
callResultCallResult
functionScopesInvocationScopeLike[]
gasUsedBN
isMultiCallboolean
valueTReturn

Defined in

types.ts:119


FunctionResult

Ƭ FunctionResult<TReturn>: Object

Type parameters

Name
TReturn

Type declaration

NameType
functionScopesInvocationScopeLike[]
gasUsedBN
isMultiCallboolean
logsany[]
programAbstractProgram
transactionIdstring
transactionResponseTransactionResponse
transactionResultTransactionResult<Script>
valueTReturn

Defined in

types.ts:106


InvocationScopeLike

Ƭ InvocationScopeLike<T>: Object

Represents a like object of InvocationScope with a method to get its call configuration.

Type parameters

NameTypeDescription
TunknownType of the function's arguments.

Type declaration

NameType
getCallConfig() => CallConfig<T>

Defined in

types.ts:91


TransactionCostOptions

Ƭ TransactionCostOptions: Partial<{ fundTransaction: boolean }>

Represents options for calculating the transaction cost.

Defined in

types.ts:102


TxParams

Ƭ TxParams: Partial<{ gasLimit: BigNumberish ; maturity?: number ; maxFee?: BigNumberish ; tip: BigNumberish ; variableOutputs: number ; witnessLimit?: BigNumberish }>

Represents transaction parameters for a contract call.

Defined in

types.ts:39