Skip to main content

EscrowComputeExecutionTemplate

@nevermined-io/sdk - v3.0.40 / EscrowComputeExecutionTemplate

Class: EscrowComputeExecutionTemplate

Hierarchy

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new EscrowComputeExecutionTemplate(contractName): EscrowComputeExecutionTemplate

Parameters

NameType
contractNamestring

Returns

EscrowComputeExecutionTemplate

Inherited from

BaseTemplate.constructor

Defined in

src/keeper/contracts/templates/AgreementTemplate.abstract.ts:51

Properties

address

address: `0x${string}`

Inherited from

BaseTemplate.address

Defined in

src/keeper/contracts/ContractBase.ts:22


contract

contract: any

Inherited from

BaseTemplate.contract

Defined in

src/keeper/contracts/ContractBase.ts:19


contractName

Readonly contractName: string

Inherited from

BaseTemplate.contractName

Defined in

src/keeper/contracts/ContractBase.ts:18


events

events: ContractEvent | SubgraphEvent

Inherited from

BaseTemplate.events

Defined in

src/keeper/contracts/ContractBase.ts:20


version

version: string

Inherited from

BaseTemplate.version

Defined in

src/keeper/contracts/ContractBase.ts:21

Accessors

artifactsFolder

get artifactsFolder(): undefined | string

Returns

undefined | string

Inherited from

BaseTemplate.artifactsFolder

Defined in

src/Instantiable.abstract.ts:137


circuitsFolder

get circuitsFolder(): undefined | string

Returns

undefined | string

Inherited from

BaseTemplate.circuitsFolder

Defined in

src/Instantiable.abstract.ts:141


client

get client(): Web3Clients

Returns

Web3Clients

Inherited from

BaseTemplate.client

Defined in

src/Instantiable.abstract.ts:89


config

get config(): NeverminedOptions

Returns

NeverminedOptions

Inherited from

BaseTemplate.config

Defined in

src/Instantiable.abstract.ts:120


instanceConfig

get instanceConfig(): InstantiableConfig

Returns

InstantiableConfig

Inherited from

BaseTemplate.instanceConfig

Defined in

src/Instantiable.abstract.ts:145


instantiableConfig

get instantiableConfig(): undefined | InstantiableConfig

Returns

undefined | InstantiableConfig

Inherited from

BaseTemplate.instantiableConfig

Defined in

src/Instantiable.abstract.ts:113


logger

get logger(): Logger

Returns

Logger

Inherited from

BaseTemplate.logger

Defined in

src/Instantiable.abstract.ts:128


nevermined

get nevermined(): Nevermined

Returns

Nevermined

Inherited from

BaseTemplate.nevermined

Defined in

src/Instantiable.abstract.ts:81


publicClient

get publicClient(): Object

Returns

Object

NameTypeDescription
accountundefinedThe Account of the Client.
batch?{ multicall?: boolean | { batchSize?: number ; wait?: number } }Flags for batch settings.
batch.multicall?boolean | { batchSize?: number ; wait?: number }Toggle to enable eth_call multicall aggregation.
cacheTimenumberTime (in ms) that cached data will remain in memory.
call(parameters: CallParameters\<undefined | Chain>) => Promise\<CallReturnType>-
ccipRead?false | { request?: (parameters: CcipRequestParameters) => Promise\<`0x${string}`> }CCIP Read configuration.
chainundefined | ChainChain for the client.
createBlockFilter() => Promise\<{ id: `0x${string}` ; request: EIP1193RequestFn\<readonly [{ Method: "eth_getFilterChanges" ; Parameters: [filterId: `0x${string}`] ; ReturnType: `0x${string}`[] | RpcLog[] }, { Method: "eth_getFilterLogs" ; Parameters: [filterId: `0x${string}`] ; ReturnType: RpcLog[] }, { Method: "eth_uninstallFilter" ; Parameters: [filterId: `0x${string}`] ; ReturnType: boolean }]> ; type: "block" }>-
createContractEventFilter\<TAbi, TEventName, TArgs, TStrict, TFromBlock, TToBlock>(args: CreateContractEventFilterParameters\<TAbi, TEventName, TArgs, TStrict, TFromBlock, TToBlock>) => Promise\<CreateContractEventFilterReturnType\<TAbi, TEventName, TArgs, TStrict, TFromBlock, TToBlock>>-
createEventFilter\<TAbiEvent, TAbiEvents, TStrict, TFromBlock, TToBlock, _EventName, _Args>(args?: CreateEventFilterParameters\<TAbiEvent, TAbiEvents, TStrict, TFromBlock, TToBlock, _EventName, _Args>) => Promise\<{ [K in string | number | symbol]: Filter\<"event", TAbiEvents, _EventName, _Args, TStrict, TFromBlock, TToBlock>[K] }>-
createPendingTransactionFilter() => Promise\<{ id: `0x${string}` ; request: EIP1193RequestFn\<readonly [{ Method: "eth_getFilterChanges" ; Parameters: [filterId: `0x${string}`] ; ReturnType: `0x${string}`[] | RpcLog[] }, { Method: "eth_getFilterLogs" ; Parameters: [filterId: `0x${string}`] ; ReturnType: RpcLog[] }, { Method: "eth_uninstallFilter" ; Parameters: [filterId: `0x${string}`] ; ReturnType: boolean }]> ; type: "transaction" }>-
estimateContractGas\<TChain, abi, functionName, args>(args: EstimateContractGasParameters\<abi, functionName, args, TChain>) => Promise\<bigint>-
estimateFeesPerGas\<TChainOverride, TType>(args?: EstimateFeesPerGasParameters\<undefined | Chain, TChainOverride, TType>) => Promise\<EstimateFeesPerGasReturnType>-
estimateGas(args: EstimateGasParameters\<undefined | Chain>) => Promise\<bigint>-
estimateMaxPriorityFeePerGas\<TChainOverride>(args?: { chain: null | TChainOverride }) => Promise\<bigint>-
extend\<client>(fn: (client: Client\<Transport, undefined | Chain, undefined, PublicRpcSchema, PublicActions\<Transport, undefined | Chain>>) => client) => Client\<Transport, undefined | Chain, undefined, PublicRpcSchema, { [K in string | number | symbol]: client[K] } & PublicActions\<Transport, undefined | Chain>>-
getBalance(args: GetBalanceParameters) => Promise\<bigint>-
getBlobBaseFee() => Promise\<bigint>-
getBlock\<TIncludeTransactions, TBlockTag>(args?: GetBlockParameters\<TIncludeTransactions, TBlockTag>) => Promise\<{ baseFeePerGas: null | bigint ; blobGasUsed: bigint ; difficulty: bigint ; excessBlobGas: bigint ; extraData: `0x${string}` ; gasLimit: bigint ; gasUsed: bigint ; hash: TBlockTag extends "pending" ? null : `0x${string}` ; logsBloom: TBlockTag extends "pending" ? null : `0x${string}` ; miner: `0x${string}` ; mixHash: `0x${string}` ; nonce: TBlockTag extends "pending" ? null : `0x${string}` ; number: TBlockTag extends "pending" ? null : bigint ; parentHash: `0x${string}` ; receiptsRoot: `0x${string}` ; sealFields: `0x${string}`[] ; sha3Uncles: `0x${string}` ; size: bigint ; stateRoot: `0x${string}` ; timestamp: bigint ; totalDifficulty: null | bigint ; transactions: TIncludeTransactions extends true ? ({ accessList?: undefined ; blobVersionedHashes?: undefined ; blockHash: TBlockTag extends "pending" ? true : false extends true ? null : `0x${string}` ; blockNumber: TBlockTag extends "pending" ? true : false extends true ? null : bigint ; chainId?: number ; from: `0x${string}` ; gas: bigint ; gasPrice: bigint ; hash: `0x${string}` ; input: `0x${string}` ; maxFeePerBlobGas?: undefined ; maxFeePerGas?: undefined ; maxPriorityFeePerGas?: undefined ; nonce: number ; r: `0x${string}` ; s: `0x${string}` ; to: null | `0x${string}` ; transactionIndex: TBlockTag extends "pending" ? true : false extends true ? null : number ; type: "legacy" ; typeHex: null | `0x${string}` ; v: bigint ; value: bigint ; yParity?: undefined } | { accessList: AccessList ; blobVersionedHashes?: undefined ; blockHash: TBlockTag extends "pending" ? true : false extends true ? null : `0x${string}` ; blockNumber: TBlockTag extends "pending" ? true : false extends true ? null : bigint ; chainId: number ; from: `0x${string}` ; gas: bigint ; gasPrice: bigint ; hash: `0x${string}` ; input: `0x${string}` ; maxFeePerBlobGas?: undefined ; maxFeePerGas?: undefined ; maxPriorityFeePerGas?: undefined ; nonce: number ; r: `0x${string}` ; s: `0x${string}` ; to: null | `0x${string}` ; transactionIndex: TBlockTag extends "pending" ? true : false extends true ? null : number ; type: "eip2930" ; typeHex: null | `0x${string}` ; v: bigint ; value: bigint ; yParity: number } | { accessList: AccessList ; blobVersionedHashes?: undefined ; blockHash: TBlockTag extends "pending" ? true : false extends true ? null : `0x${string}` ; blockNumber: TBlockTag extends "pending" ? true : false extends true ? null : bigint ; chainId: number ; from: `0x${string}` ; gas: bigint ; gasPrice?: undefined ; hash: `0x${string}` ; input: `0x${string}` ; maxFeePerBlobGas?: undefined ; maxFeePerGas: bigint ; maxPriorityFeePerGas: bigint ; nonce: number ; r: `0x${string}` ; s: `0x${string}` ; to: null | `0x${string}` ; transactionIndex: TBlockTag extends "pending" ? true : false extends true ? null : number ; type: "eip1559" ; typeHex: null | `0x${string}` ; v: bigint ; value: bigint ; yParity: number } | { accessList: AccessList ; blobVersionedHashes: `0x${string}`[] ; blockHash: TBlockTag extends "pending" ? true : false extends true ? null : `0x${string}` ; blockNumber: TBlockTag extends "pending" ? true : false extends true ? null : bigint ; chainId: number ; from: `0x${string}` ; gas: bigint ; gasPrice?: undefined ; hash: `0x${string}` ; input: `0x${string}` ; maxFeePerBlobGas: bigint ; maxFeePerGas: bigint ; maxPriorityFeePerGas: bigint ; nonce: number ; r: `0x${string}` ; s: `0x${string}` ; to: null | `0x${string}` ; transactionIndex: TBlockTag extends "pending" ? true : false extends true ? null : number ; type: "eip4844" ; typeHex: null | `0x${string}` ; v: bigint ; value: bigint ; yParity: number })[] : `0x${string}`[] ; transactionsRoot: `0x${string}` ; uncles: `0x${string}`[] ; withdrawals?: Withdrawal[] ; withdrawalsRoot?: `0x${string}` }>-
getBlockNumber(args?: GetBlockNumberParameters) => Promise\<bigint>-
getBlockTransactionCount(args?: GetBlockTransactionCountParameters) => Promise\<number>-
getBytecode(args: GetBytecodeParameters) => Promise\<GetBytecodeReturnType>-
getChainId() => Promise\<number>-
getContractEvents\<abi, eventName, strict, fromBlock, toBlock>(args: GetContractEventsParameters\<abi, eventName, strict, fromBlock, toBlock>) => Promise\<GetContractEventsReturnType\<abi, eventName, strict, fromBlock, toBlock>>-
getEnsAddress(args: { blockNumber?: bigint ; blockTag?: BlockTag ; coinType?: number ; gatewayUrls?: string[] ; name: string ; strict?: boolean ; universalResolverAddress?: `0x${string}` }) => Promise\<GetEnsAddressReturnType>-
getEnsAvatar(args: { assetGatewayUrls?: AssetGatewayUrls ; blockNumber?: bigint ; blockTag?: BlockTag ; gatewayUrls?: string[] ; name: string ; strict?: boolean ; universalResolverAddress?: `0x${string}` }) => Promise\<GetEnsAvatarReturnType>-
getEnsName(args: { address: `0x${string}` ; blockNumber?: bigint ; blockTag?: BlockTag ; gatewayUrls?: string[] ; strict?: boolean ; universalResolverAddress?: `0x${string}` }) => Promise\<GetEnsNameReturnType>-
getEnsResolver(args: { blockNumber?: bigint ; blockTag?: BlockTag ; name: string ; universalResolverAddress?: `0x${string}` }) => Promise\<`0x${string}`>-
getEnsText(args: { blockNumber?: bigint ; blockTag?: BlockTag ; gatewayUrls?: string[] ; key: string ; name: string ; strict?: boolean ; universalResolverAddress?: `0x${string}` }) => Promise\<GetEnsTextReturnType>-
getFeeHistory(args: GetFeeHistoryParameters) => Promise\<GetFeeHistoryReturnType>-
getFilterChanges\<TFilterType, TAbi, TEventName, TStrict, TFromBlock, TToBlock>(args: GetFilterChangesParameters\<TFilterType, TAbi, TEventName, TStrict, TFromBlock, TToBlock>) => Promise\<GetFilterChangesReturnType\<TFilterType, TAbi, TEventName, TStrict, TFromBlock, TToBlock>>-
getFilterLogs\<TAbi, TEventName, TStrict, TFromBlock, TToBlock>(args: GetFilterLogsParameters\<TAbi, TEventName, TStrict, TFromBlock, TToBlock>) => Promise\<GetFilterLogsReturnType\<TAbi, TEventName, TStrict, TFromBlock, TToBlock>>-
getGasPrice() => Promise\<bigint>-
getLogs\<TAbiEvent, TAbiEvents, TStrict, TFromBlock, TToBlock>(args?: GetLogsParameters\<TAbiEvent, TAbiEvents, TStrict, TFromBlock, TToBlock>) => Promise\<GetLogsReturnType\<TAbiEvent, TAbiEvents, TStrict, TFromBlock, TToBlock>>-
getProof(args: GetProofParameters) => Promise\<GetProofReturnType>-
getStorageAt(args: GetStorageAtParameters) => Promise\<GetStorageAtReturnType>-
getTransaction\<TBlockTag>(args: GetTransactionParameters\<TBlockTag>) => Promise\<{ accessList?: undefined ; blobVersionedHashes?: undefined ; blockHash: TBlockTag extends "pending" ? true : false extends true ? null : `0x${string}` ; blockNumber: TBlockTag extends "pending" ? true : false extends true ? null : bigint ; chainId?: number ; from: `0x${string}` ; gas: bigint ; gasPrice: bigint ; hash: `0x${string}` ; input: `0x${string}` ; maxFeePerBlobGas?: undefined ; maxFeePerGas?: undefined ; maxPriorityFeePerGas?: undefined ; nonce: number ; r: `0x${string}` ; s: `0x${string}` ; to: null | `0x${string}` ; transactionIndex: TBlockTag extends "pending" ? true : false extends true ? null : number ; type: "legacy" ; typeHex: null | `0x${string}` ; v: bigint ; value: bigint ; yParity?: undefined } | { accessList: AccessList ; blobVersionedHashes?: undefined ; blockHash: TBlockTag extends "pending" ? true : false extends true ? null : `0x${string}` ; blockNumber: TBlockTag extends "pending" ? true : false extends true ? null : bigint ; chainId: number ; from: `0x${string}` ; gas: bigint ; gasPrice: bigint ; hash: `0x${string}` ; input: `0x${string}` ; maxFeePerBlobGas?: undefined ; maxFeePerGas?: undefined ; maxPriorityFeePerGas?: undefined ; nonce: number ; r: `0x${string}` ; s: `0x${string}` ; to: null | `0x${string}` ; transactionIndex: TBlockTag extends "pending" ? true : false extends true ? null : number ; type: "eip2930" ; typeHex: null | `0x${string}` ; v: bigint ; value: bigint ; yParity: number } | { accessList: AccessList ; blobVersionedHashes?: undefined ; blockHash: TBlockTag extends "pending" ? true : false extends true ? null : `0x${string}` ; blockNumber: TBlockTag extends "pending" ? true : false extends true ? null : bigint ; chainId: number ; from: `0x${string}` ; gas: bigint ; gasPrice?: undefined ; hash: `0x${string}` ; input: `0x${string}` ; maxFeePerBlobGas?: undefined ; maxFeePerGas: bigint ; maxPriorityFeePerGas: bigint ; nonce: number ; r: `0x${string}` ; s: `0x${string}` ; to: null | `0x${string}` ; transactionIndex: TBlockTag extends "pending" ? true : false extends true ? null : number ; type: "eip1559" ; typeHex: null | `0x${string}` ; v: bigint ; value: bigint ; yParity: number } | { accessList: AccessList ; blobVersionedHashes: `0x${string}`[] ; blockHash: TBlockTag extends "pending" ? true : false extends true ? null : `0x${string}` ; blockNumber: TBlockTag extends "pending" ? true : false extends true ? null : bigint ; chainId: number ; from: `0x${string}` ; gas: bigint ; gasPrice?: undefined ; hash: `0x${string}` ; input: `0x${string}` ; maxFeePerBlobGas: bigint ; maxFeePerGas: bigint ; maxPriorityFeePerGas: bigint ; nonce: number ; r: `0x${string}` ; s: `0x${string}` ; to: null | `0x${string}` ; transactionIndex: TBlockTag extends "pending" ? true : false extends true ? null : number ; type: "eip4844" ; typeHex: null | `0x${string}` ; v: bigint ; value: bigint ; yParity: number }>-
getTransactionConfirmations(args: GetTransactionConfirmationsParameters\<undefined | Chain>) => Promise\<bigint>-
getTransactionCount(args: GetTransactionCountParameters) => Promise\<number>-
getTransactionReceipt(args: GetTransactionReceiptParameters) => Promise\<TransactionReceipt>-
keystringA key for the client.
multicall\<contracts, allowFailure>(args: MulticallParameters\<contracts, allowFailure>) => Promise\<MulticallReturnType\<contracts, allowFailure>>-
namestringA name for the client.
pollingIntervalnumberFrequency (in ms) for polling enabled actions & events. Defaults to 4_000 milliseconds.
prepareTransactionRequest\<TRequest, TChainOverride, TAccountOverride>(args: PrepareTransactionRequestParameters\<undefined | Chain, undefined | Account, TChainOverride, TAccountOverride, TRequest>) => Promise\<{ [K in string | number | symbol]: (UnionRequiredBy\<Extract\<UnionOmit\<(...), (...)> & ((...) extends (...) ? (...) : (...)) & ((...) extends (...) ? (...) : (...)), IsNever\<(...)> extends true ? unknown : ExactPartial\<(...)>> & Object, ParameterTypeToParameters\<TRequest["parameters"] extends readonly PrepareTransactionRequestParameterType[] ? any[any][number] : "type" | "gas" | "nonce" | "blobVersionedHashes" | "chainId" | "fees">> & (unknown extends TRequest["kzg"] ? Object : Pick\<TRequest, "kzg">))[K] }>-
readContract\<abi, functionName, args>(args: ReadContractParameters\<abi, functionName, args>) => Promise\<ReadContractReturnType\<abi, functionName, args>>-
requestEIP1193RequestFn\<PublicRpcSchema>Request function wrapped with friendly error handling
sendRawTransaction(args: SendRawTransactionParameters) => Promise\<`0x${string}`>-
simulateContract\<abi, functionName, args, chainOverride, accountOverride>(args: SimulateContractParameters\<abi, functionName, args, undefined | Chain, chainOverride, accountOverride>) => Promise\<SimulateContractReturnType\<abi, functionName, args, undefined | Chain, undefined | Account, chainOverride, accountOverride>>-
transportTransportConfig\<string, EIP1193RequestFn> & Record\<string, any>The RPC transport
typestringThe type of client.
uidstringA unique ID for the client.
uninstallFilter(args: UninstallFilterParameters) => Promise\<boolean>-
verifyMessage(args: VerifyMessageParameters) => Promise\<boolean>-
verifyTypedData(args: VerifyTypedDataParameters) => Promise\<boolean>-
waitForTransactionReceipt(args: WaitForTransactionReceiptParameters\<undefined | Chain>) => Promise\<TransactionReceipt>-
watchBlockNumber(args: WatchBlockNumberParameters) => WatchBlockNumberReturnType-
watchBlocks\<TIncludeTransactions, TBlockTag>(args: WatchBlocksParameters\<Transport, undefined | Chain, TIncludeTransactions, TBlockTag>) => WatchBlocksReturnType-
watchContractEvent\<TAbi, TEventName, TStrict>(args: WatchContractEventParameters\<TAbi, TEventName, TStrict, Transport>) => WatchContractEventReturnType-
watchEvent\<TAbiEvent, TAbiEvents, TStrict>(args: WatchEventParameters\<TAbiEvent, TAbiEvents, TStrict, Transport>) => WatchEventReturnType-
watchPendingTransactions(args: WatchPendingTransactionsParameters\<Transport>) => WatchPendingTransactionsReturnType-

Inherited from

BaseTemplate.publicClient

Defined in

src/Instantiable.abstract.ts:97


walletClient

get walletClient(): Object

Returns

Object

NameTypeDescription
accountundefined | AccountThe Account of the Client.
addChain(args: AddChainParameters) => Promise\<void>-
batch?{ multicall?: boolean | { batchSize?: number ; wait?: number } }Flags for batch settings.
batch.multicall?boolean | { batchSize?: number ; wait?: number }Toggle to enable eth_call multicall aggregation.
cacheTimenumberTime (in ms) that cached data will remain in memory.
ccipRead?false | { request?: (parameters: CcipRequestParameters) => Promise\<`0x${string}`> }CCIP Read configuration.
chainundefined | ChainChain for the client.
deployContract\<abi, chainOverride>(args: DeployContractParameters\<abi, undefined | Chain, undefined | Account, chainOverride>) => Promise\<`0x${string}`>-
extend\<client>(fn: (client: Client\<Transport, undefined | Chain, undefined | Account, WalletRpcSchema, WalletActions\<undefined | Chain, undefined | Account>>) => client) => Client\<Transport, undefined | Chain, undefined | Account, WalletRpcSchema, { [K in string | number | symbol]: client[K] } & WalletActions\<undefined | Chain, undefined | Account>>-
getAddresses() => Promise\<GetAddressesReturnType>-
getChainId() => Promise\<number>-
getPermissions() => Promise\<GetPermissionsReturnType>-
keystringA key for the client.
namestringA name for the client.
pollingIntervalnumberFrequency (in ms) for polling enabled actions & events. Defaults to 4_000 milliseconds.
prepareTransactionRequest\<TRequest, TChainOverride, TAccountOverride>(args: PrepareTransactionRequestParameters\<undefined | Chain, undefined | Account, TChainOverride, TAccountOverride, TRequest>) => Promise\<{ [K in string | number | symbol]: (UnionRequiredBy\<Extract\<UnionOmit\<(...), (...)> & ((...) extends (...) ? (...) : (...)) & ((...) extends (...) ? (...) : (...)), IsNever\<(...)> extends true ? unknown : ExactPartial\<(...)>> & Object, ParameterTypeToParameters\<TRequest["parameters"] extends readonly PrepareTransactionRequestParameterType[] ? any[any][number] : "type" | "gas" | "nonce" | "blobVersionedHashes" | "chainId" | "fees">> & (unknown extends TRequest["kzg"] ? Object : Pick\<TRequest, "kzg">))[K] }>-
requestEIP1193RequestFn\<WalletRpcSchema>Request function wrapped with friendly error handling
requestAddresses() => Promise\<RequestAddressesReturnType>-
requestPermissions(args: { eth_accounts: Record\<string, any> }) => Promise\<RequestPermissionsReturnType>-
sendRawTransaction(args: SendRawTransactionParameters) => Promise\<`0x${string}`>-
sendTransaction\<TRequest, TChainOverride>(args: SendTransactionParameters\<undefined | Chain, undefined | Account, TChainOverride, TRequest>) => Promise\<`0x${string}`>-
signMessage(args: SignMessageParameters\<undefined | Account>) => Promise\<`0x${string}`>-
signTransaction\<TChainOverride>(args: SignTransactionParameters\<undefined | Chain, undefined | Account, TChainOverride>) => Promise\<`0x02${string}` | `0x01${string}` | `0x03${string}` | TransactionSerializedLegacy>-
signTypedData\<TTypedData, TPrimaryType>(args: SignTypedDataParameters\<TTypedData, TPrimaryType, undefined | Account>) => Promise\<`0x${string}`>-
switchChain(args: SwitchChainParameters) => Promise\<void>-
transportTransportConfig\<string, EIP1193RequestFn> & Record\<string, any>The RPC transport
typestringThe type of client.
uidstringA unique ID for the client.
watchAsset(args: WatchAssetParams) => Promise\<boolean>-
writeContract\<abi, functionName, args, TChainOverride>(args: WriteContractParameters\<abi, functionName, args, undefined | Chain, undefined | Account, TChainOverride>) => Promise\<`0x${string}`>-

Inherited from

BaseTemplate.walletClient

Defined in

src/Instantiable.abstract.ts:105

Methods

accept

accept(_params): Promise\<boolean>

Parameters

NameType
_paramsValidationParams

Returns

Promise\<boolean>

Inherited from

BaseTemplate.accept

Defined in

src/keeper/contracts/templates/BaseTemplate.abstract.ts:114


agreementId

agreementId(agreementIdSeed, creator): Promise\<string>

Parameters

NameType
agreementIdSeedstring
creatorstring

Returns

Promise\<string>

Inherited from

BaseTemplate.agreementId

Defined in

src/keeper/contracts/templates/AgreementTemplate.abstract.ts:202


call

call\<T>(functionName, args, from?): Promise\<T>

Type parameters

Name
T

Parameters

NameType
functionNamestring
argsany[]
from?string

Returns

Promise\<T>

Inherited from

BaseTemplate.call

Defined in

src/keeper/contracts/ContractBase.ts:92


conditions

conditions(): [ComputeExecutionCondition, LockPaymentCondition, EscrowPaymentCondition]

Returns

[ComputeExecutionCondition, LockPaymentCondition, EscrowPaymentCondition]

Overrides

BaseTemplate.conditions

Defined in

src/keeper/contracts/templates/EscrowComputeExecutionTemplate.ts:125


createAgreement

createAgreement(agreementId, did, conditionIds, timeLocks, timeOuts, extraArgs, from, txParams?): Promise\<any>

Parameters

NameType
agreementIdstring
didstring
conditionIdsstring[]
timeLocksnumber[]
timeOutsnumber[]
extraArgsany[]
fromNvmAccount
txParams?TxParameters

Returns

Promise\<any>

Inherited from

BaseTemplate.createAgreement

Defined in

src/keeper/contracts/templates/AgreementTemplate.abstract.ts:73


createAgreementAndPay

createAgreementAndPay(agreementId, did, conditionIds, timeLocks, timeOuts, accessConsumer, condIdx, rewardAddress, tokenAddress, amounts, receivers, from, txParams?): Promise\<any>

Parameters

NameType
agreementIdstring
didstring
conditionIdsstring[]
timeLocksnumber[]
timeOutsnumber[]
accessConsumerstring
condIdxnumber
rewardAddressstring
tokenAddressstring
amountsbigint[]
receiversstring[]
fromNvmAccount
txParams?TxParameters

Returns

Promise\<any>

Inherited from

BaseTemplate.createAgreementAndPay

Defined in

src/keeper/contracts/templates/AgreementTemplate.abstract.ts:98


createAgreementFromDDO

createAgreementFromDDO(agreementIdSeed, ddo, parameters, consumer, timeOuts?, txParams?): Promise\<string>

Create a new agreement using the data of a DDO.

Parameters

NameTypeDescription
agreementIdSeedstring-
ddoDDODDO.
parametersEscrowComputeExecutionParams
consumerNvmAccount-
timeOuts?number[]-
txParams?TxParameters-

Returns

Promise\<string>

true if the call was successful.

Inherited from

BaseTemplate.createAgreementFromDDO

Defined in

src/keeper/contracts/templates/AgreementTemplate.abstract.ts:211


createAgreementWithPaymentFromDDO

createAgreementWithPaymentFromDDO(agreementIdSeed, ddo, serviceReference, parameters, consumer, from, txParams?, observer?): Promise\<string>

Parameters

NameType
agreementIdSeedstring
ddoDDO
serviceReferencenumber | ServiceType
parametersEscrowComputeExecutionParams
consumerNvmAccount
fromNvmAccount
txParams?TxParameters
observer?(orderProgressStep: OrderProgressStep) => void

Returns

Promise\<string>

Inherited from

BaseTemplate.createAgreementWithPaymentFromDDO

Defined in

src/keeper/contracts/templates/AgreementTemplate.abstract.ts:240


createService

createService(publisher, metadata, serviceAttributes, nftAttributes?, priceData?): ServiceCompute

Parameters

NameType
publisherNvmAccount
metadataMetaData
serviceAttributesServiceAttributes
nftAttributes?NFTAttributes
priceData?PricedMetadataInformation

Returns

ServiceCompute

Inherited from

BaseTemplate.createService

Defined in

src/keeper/contracts/templates/BaseTemplate.abstract.ts:48


description

description(): string

Returns

string

Overrides

BaseTemplate.description

Defined in

src/keeper/contracts/templates/EscrowComputeExecutionTemplate.ts:38


extraGen

extraGen(_params): Promise\<any>

Parameters

NameType
_paramsValidationParams

Returns

Promise\<any>

Inherited from

BaseTemplate.extraGen

Defined in

src/keeper/contracts/templates/BaseTemplate.abstract.ts:110


getAgreementCreatedEvent

getAgreementCreatedEvent(agreementId): Promise\<any[]>

Generates and returns the agreement creation event.

Parameters

NameTypeDescription
agreementIdstringAgreement ID.

Returns

Promise\<any[]>

Agreement created event.

Inherited from

BaseTemplate.getAgreementCreatedEvent

Defined in

src/keeper/contracts/templates/AgreementTemplate.abstract.ts:450


getAgreementData

getAgreementData(agreementId): Promise\<{ accessConsumer: string ; accessProvider: string ; did: string }>

Parameters

NameType
agreementIdstring

Returns

Promise\<{ accessConsumer: string ; accessProvider: string ; did: string }>

Inherited from

BaseTemplate.getAgreementData

Defined in

src/keeper/contracts/templates/BaseTemplate.abstract.ts:29


getAgreementIdsFromDDO

getAgreementIdsFromDDO(agreementId, ddo, creator, params): Promise\<string[]>

Get agreement conditions IDs.

Parameters

NameTypeDescription
agreementIdstringAgreement ID.
ddoDDODDO.
creatorstring-
paramsEscrowComputeExecutionParams-

Returns

Promise\<string[]>

The condition IDs.

Inherited from

BaseTemplate.getAgreementIdsFromDDO

Defined in

src/keeper/contracts/templates/AgreementTemplate.abstract.ts:169


getAgreementStatus

getAgreementStatus(agreementId): Promise\<false | AgreementConditionsStatus>

Returns the status of the conditions.

Parameters

NameTypeDescription
agreementIdstringAgreement ID.

Returns

Promise\<false | AgreementConditionsStatus>

The conditions status.

Inherited from

BaseTemplate.getAgreementStatus

Defined in

src/keeper/contracts/templates/AgreementTemplate.abstract.ts:331


getAgreementsForDID

getAgreementsForDID(did): Promise\<string[]>

Parameters

NameType
didstring

Returns

Promise\<string[]>

Inherited from

BaseTemplate.getAgreementsForDID

Defined in

src/keeper/contracts/templates/AgreementTemplate.abstract.ts:476


getConditionTypes

getConditionTypes(): Promise\<string[]>

Conditions address list.

Returns

Promise\<string[]>

A list of condition addresses.

Inherited from

BaseTemplate.getConditionTypes

Defined in

src/keeper/contracts/templates/AgreementTemplate.abstract.ts:137


getConditions

getConditions(): Promise\<ConditionSmall[]>

List of condition contracts.

Returns

Promise\<ConditionSmall[]>

A list of condition contracts.

Inherited from

BaseTemplate.getConditions

Defined in

src/keeper/contracts/templates/AgreementTemplate.abstract.ts:148


getFromAddress

getFromAddress(from?): Promise\<string>

Parameters

NameType
from?string

Returns

Promise\<string>

Inherited from

BaseTemplate.getFromAddress

Defined in

src/keeper/contracts/ContractBase.ts:68


getServiceAgreementTemplate

getServiceAgreementTemplate(): Object

Returns

Object

NameType
conditionDependency{ escrowPaymentCondition: string[] ; lockPayment: never[] = []; serviceExecution: never[] = [] }
conditionDependency.escrowPaymentConditionstring[]
conditionDependency.lockPaymentnever[]
conditionDependency.serviceExecutionnever[]
conditions{ contractName: string = 'LockPaymentCondition'; events: { actorType: string = 'publisher'; handler: { functionName: string = 'fulfillAccessCondition'; moduleName: string = 'lockPaymentCondition'; version: string = '0.1' } ; name: string = 'Fulfilled' }[] ; functionName: string = 'fulfill'; name: string = 'lockPayment'; parameters: ({ name: string = '_did'; type: string = 'bytes32'; value: string = '' } | { name: string = '_amounts'; type: string = 'uint256[]'; value: never[] = [] })[] ; timelock: number = 0; timeout: number = 0 }[]
contractNamestring
events{ actorType: string = 'consumer'; handler: { functionName: string = 'fulfillLockPaymentCondition'; moduleName: string = 'serviceExecutionTemplate'; version: string = '0.1' } ; name: string = 'AgreementCreated' }[]
fulfillmentOrderstring[]

Overrides

BaseTemplate.getServiceAgreementTemplate

Defined in

src/keeper/contracts/templates/EscrowComputeExecutionTemplate.ts:89


getServiceAgreementTemplateConditionByRef

getServiceAgreementTemplateConditionByRef(ref): Promise\<undefined | ConditionSmall>

Parameters

NameType
refstring

Returns

Promise\<undefined | ConditionSmall>

Inherited from

BaseTemplate.getServiceAgreementTemplateConditionByRef

Defined in

src/keeper/contracts/templates/AgreementTemplate.abstract.ts:314


getServiceAgreementTemplateConditions

getServiceAgreementTemplateConditions(): ServiceAgreementTemplateCondition[]

Returns

ServiceAgreementTemplateCondition[]

Inherited from

BaseTemplate.getServiceAgreementTemplateConditions

Defined in

src/keeper/contracts/templates/AgreementTemplate.abstract.ts:309


getServiceAgreementTemplateDependencies

getServiceAgreementTemplateDependencies(): Promise\<{ [condition: string]: string[]; }>

Returns

Promise\<{ [condition: string]: string[]; }>

Inherited from

BaseTemplate.getServiceAgreementTemplateDependencies

Defined in

src/keeper/contracts/templates/AgreementTemplate.abstract.ts:321


getTransactionLogs

getTransactionLogs(txReceipt, eventName): ParseEventLogsReturnType\<any, string, false, string>

Parameters

NameType
txReceiptTransactionReceipt
eventNamestring

Returns

ParseEventLogsReturnType\<any, string, false, string>

Inherited from

BaseTemplate.getTransactionLogs

Defined in

src/keeper/contracts/ContractBase.ts:76


init

init(config, optional?, contractAddress?): Promise\<void>

Parameters

NameTypeDefault value
configInstantiableConfigundefined
optionalbooleanfalse
contractAddress?stringundefined

Returns

Promise\<void>

Inherited from

BaseTemplate.init

Defined in

src/keeper/contracts/ContractBase.ts:29


instanceFromDDO

instanceFromDDO(agreementIdSeed, ddo, creator, parameters): Promise\<AgreementInstance\<EscrowComputeExecutionParams>>

Parameters

NameType
agreementIdSeedstring
ddoDDO
creatorstring
parametersEscrowComputeExecutionParams

Returns

Promise\<AgreementInstance\<EscrowComputeExecutionParams>>

Overrides

BaseTemplate.instanceFromDDO

Defined in

src/keeper/contracts/templates/EscrowComputeExecutionTemplate.ts:131


lockConditionIndex

lockConditionIndex(): number

Returns

number

Inherited from

BaseTemplate.lockConditionIndex

Defined in

src/keeper/contracts/templates/AgreementTemplate.abstract.ts:57


lockTokens

lockTokens(tokenAddress, amounts, from, txParams?): Promise\<void>

Parameters

NameType
tokenAddressany
amountsany
fromNvmAccount
txParams?TxParameters

Returns

Promise\<void>

Inherited from

BaseTemplate.lockTokens

Defined in

src/keeper/contracts/templates/AgreementTemplate.abstract.ts:382


name

name(): string

Returns

string

Overrides

BaseTemplate.name

Defined in

src/keeper/contracts/templates/EscrowComputeExecutionTemplate.ts:35


params

params(consumer): EscrowComputeExecutionParams

Parameters

NameType
consumerNvmAccount

Returns

EscrowComputeExecutionParams

Overrides

BaseTemplate.params

Defined in

src/keeper/contracts/templates/EscrowComputeExecutionTemplate.ts:121


paramsGen

paramsGen(params): Promise\<EscrowComputeExecutionParams>

Specialize params

Parameters

NameTypeDescription
paramsValidationParamsGeneric parameters

Returns

Promise\<EscrowComputeExecutionParams>

Overrides

BaseTemplate.paramsGen

Defined in

src/keeper/contracts/templates/EscrowComputeExecutionTemplate.ts:21


paymentData

paymentData(service): Promise\<PaymentData>

Parameters

NameType
serviceServiceCommon

Returns

Promise\<PaymentData>

Inherited from

BaseTemplate.paymentData

Defined in

src/keeper/contracts/templates/AgreementTemplate.abstract.ts:61


printAgreementStatus

printAgreementStatus(agreementId): Promise\<void>

Prints the agreement status.

Parameters

NameTypeDescription
agreementIdstringAgreement ID.

Returns

Promise\<void>

Inherited from

BaseTemplate.printAgreementStatus

Defined in

src/keeper/contracts/templates/AgreementTemplate.abstract.ts:418


process

process(params, from, txparams?): Promise\<void>

Parameters

NameType
paramsValidationParams
fromNvmAccount
txparams?TxParameters

Returns

Promise\<void>

Inherited from

BaseTemplate.process

Defined in

src/keeper/contracts/templates/BaseTemplate.abstract.ts:126


providerConfig

providerConfig(): Promise\<{ description: string = ''; environment: { cluster: { type: string = 'Kubernetes'; url: string = 'http://10.0.0.17/xxx' } ; supportedContainers: { checksum: string = 'sha256:cb57ecfa6ebbefd8ffc7f75c0f00e57a7fa739578a429b6f72a0df19315deadc'; image: string = 'tensorflow/tensorflow'; tag: string = 'latest' }[] ; supportedServers: { cpu: string = '16'; disk: string = '160gb'; gpu: string = '0'; maxExecutionTime: number = 86400; memory: string = '128gb'; price: string = '50'; serverId: string = '1'; serverType: string = 'xlsize' }[] } ; type: string = 'Azure' }>

Returns

Promise\<{ description: string = ''; environment: { cluster: { type: string = 'Kubernetes'; url: string = 'http://10.0.0.17/xxx' } ; supportedContainers: { checksum: string = 'sha256:cb57ecfa6ebbefd8ffc7f75c0f00e57a7fa739578a429b6f72a0df19315deadc'; image: string = 'tensorflow/tensorflow'; tag: string = 'latest' }[] ; supportedServers: { cpu: string = '16'; disk: string = '160gb'; gpu: string = '0'; maxExecutionTime: number = 86400; memory: string = '128gb'; price: string = '50'; serverId: string = '1'; serverType: string = 'xlsize' }[] } ; type: string = 'Azure' }>

Defined in

src/keeper/contracts/templates/EscrowComputeExecutionTemplate.ts:42


send

send(functionName, from, args, params?): Promise\<any>

Parameters

NameType
functionNamestring
fromNvmAccount
argsany[]
paramsTxParameters

Returns

Promise\<any>

Inherited from

BaseTemplate.send

Defined in

src/keeper/contracts/ContractBase.ts:128


sendFrom

sendFrom(functionName, args, from, value?): Promise\<any>

Parameters

NameType
functionNamestring
argsany[]
fromNvmAccount
value?TxParameters

Returns

Promise\<any>

Inherited from

BaseTemplate.sendFrom

Defined in

src/keeper/contracts/ContractBase.ts:109


service

service(): ServiceType

Returns

ServiceType

Overrides

BaseTemplate.service

Defined in

src/keeper/contracts/templates/EscrowComputeExecutionTemplate.ts:117


serviceEndpoint

serviceEndpoint(): string

Returns

string

Inherited from

BaseTemplate.serviceEndpoint

Defined in

src/keeper/contracts/templates/BaseTemplate.abstract.ts:44


setInstanceConfig

setInstanceConfig(config): void

Parameters

NameType
configInstantiableConfig

Returns

void

Inherited from

BaseTemplate.setInstanceConfig

Defined in

src/Instantiable.abstract.ts:163


someLog

someLog(logs): undefined

Parameters

NameType
logsany[]

Returns

undefined

Inherited from

BaseTemplate.someLog

Defined in

src/keeper/contracts/ContractBase.ts:85


standardContext

standardContext(ddo, creator, serviceIndex?): ConditionContext

Parameters

NameType
ddoDDO
creatorstring
serviceIndex?number

Returns

ConditionContext

Inherited from

BaseTemplate.standardContext

Defined in

src/keeper/contracts/templates/AgreementTemplate.abstract.ts:189


track

track(_params, _from, _txparams?): Promise\<boolean>

Parameters

NameType
_paramsValidationParams
_fromNvmAccount
_txparams?TxParameters

Returns

Promise\<boolean>

Inherited from

BaseTemplate.track

Defined in

src/keeper/contracts/templates/BaseTemplate.abstract.ts:118


validateAgreement

validateAgreement(agreement_id, did, params, from, extra?, txparams?): Promise\<void>

Parameters

NameType
agreement_idstring
didstring
paramsEscrowComputeExecutionParams
fromNvmAccount
extraany
txparams?TxParameters

Returns

Promise\<void>

Inherited from

BaseTemplate.validateAgreement

Defined in

src/keeper/contracts/templates/BaseTemplate.abstract.ts:141


getInstance

getInstance(config): Promise\<EscrowComputeExecutionTemplate>

Parameters

NameType
configInstantiableConfig

Returns

Promise\<EscrowComputeExecutionTemplate>

Overrides

BaseTemplate.getInstance

Defined in

src/keeper/contracts/templates/EscrowComputeExecutionTemplate.ts:26


setInstanceConfig

setInstanceConfig\<T>(instance, instantiableConfig): void

Type parameters

NameType
Textends Instantiable

Parameters

NameType
instanceT
instantiableConfigInstantiableConfig

Returns

void

Inherited from

BaseTemplate.setInstanceConfig

Defined in

src/Instantiable.abstract.ts:154