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:50


CallParams

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

Represents call parameters for a contract call.

Defined in

types.ts:28


ContractCall

Ƭ ContractCall: Object

Represents a contract call.

Type declaration

NameType
amount?BigNumberish
assetId?BytesLike
contractIdAbstractAddress
dataBytesLike
encoding?EncodingVersion
fnSelectorstring
fnSelectorBytesUint8Array
gas?BigNumberish
isInputDataPointerboolean
isOutputDataHeapboolean
outputEncodedLengthnumber

Defined in

types.ts:11


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:83


TransactionCostOptions

Ƭ TransactionCostOptions: Partial<{ fundTransaction: boolean ; gasPrice: BigNumberish }>

Represents options for calculating the transaction cost.

Defined in

types.ts:94


TxParams

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

Represents transaction parameters for a contract call.

Defined in

types.ts:36