DocsReference@proto-kit/protocolClassesBridgingSettlementContractModule

@proto-kit/protocolDocs


Documentation / @proto-kit/protocol / BridgingSettlementContractModule

Class: BridgingSettlementContractModule

This module type is used to define a contract module that can be used to construct and inject smart contract instances. It defines a method contractFactory, whose arguments can be configured via the Argument generic. It returns a smart contract class that is a subclass of SmartContract and implements a certain interface as specified by the ContractType generic.

Extends

Constructors

new BridgingSettlementContractModule()

new BridgingSettlementContractModule(hooks, blockProver, dispatchContractModule, bridgeContractModule, childVerificationKeyService, argsRegistry): BridgingSettlementContractModule

Parameters

hooks: ProvableSettlementHook<unknown>[]

blockProver: BlockProvable

dispatchContractModule: DispatchContractProtocolModule

bridgeContractModule: BridgeContractProtocolModule

childVerificationKeyService: ChildVerificationKeyService

argsRegistry: ContractArgsRegistry

Returns

BridgingSettlementContractModule

Overrides

ContractModule.constructor

Defined in

packages/protocol/src/settlement/contracts/BridgingSettlementContractModule.ts:37

Properties

currentConfig

protected currentConfig: undefined | SettlementContractConfig

Store the config separately, so that we can apply additional checks when retrieving it via the getter

Inherited from

ContractModule.currentConfig

Defined in

packages/common/dist/config/ConfigurableModule.d.ts:17

Accessors

config

Get Signature

get config(): Config

Returns

Config

Set Signature

set config(config): void

Parameters

config: Config

Returns

void

Inherited from

ContractModule.config

Defined in

packages/common/dist/config/ConfigurableModule.d.ts:18

Methods

compile()

compile(registry): Promise<undefined | ArtifactRecord>

Parameters

registry: CompileRegistry

Returns

Promise<undefined | ArtifactRecord>

Overrides

ContractModule.compile

Defined in

packages/protocol/src/settlement/contracts/BridgingSettlementContractModule.ts:83


contractFactory()

contractFactory(): SmartContractClassFromInterface<BridgingSettlementContractType>

Returns

SmartContractClassFromInterface<BridgingSettlementContractType>

Overrides

ContractModule.contractFactory

Defined in

packages/protocol/src/settlement/contracts/BridgingSettlementContractModule.ts:52


create()

create(childContainerProvider): void

Parameters

childContainerProvider: ChildContainerProvider

Returns

void

Inherited from

ContractModule.create

Defined in

packages/common/dist/config/ConfigurableModule.d.ts:20