Class: DidModule
Hierarchy
BaseModule
↳
DidModule
Constructors
constructor
• new DidModule()
Overrides
BaseModule.constructor
Defined in
packages/klayr-did-module/src/module.ts:49
Properties
_didEndpoint
• Private
_didEndpoint: DidEndpoint
Defined in
packages/klayr-did-module/src/module.ts:32
_didMethod
• Private
_didMethod: DidMethod
Defined in
packages/klayr-did-module/src/module.ts:33
autoCreateAddressDID
• Private
autoCreateAddressDID: boolean
= false
Defined in
packages/klayr-did-module/src/module.ts:30
chainspace
• Private
chainspace: string
= ''
Defined in
packages/klayr-did-module/src/module.ts:29
commands
• commands: (AddControllersCommand
| AddKeysCommand
| AddServiceEndpointCommand
| CreateCommand
| DeactivateCommand
| RemoveControllersCommand
| RemoveKeysCommand
| RemoveServiceEndpointCommand
)[]
Overrides
BaseModule.commands
Defined in
packages/klayr-did-module/src/module.ts:38
endpoint
• endpoint: DidEndpoint
Overrides
BaseModule.endpoint
Defined in
packages/klayr-did-module/src/module.ts:35
events
• events: NamedRegistry
Inherited from
BaseModule.events
Defined in
node_modules/klayr-framework/dist-node/modules/base_module.d.ts:41
method
• method: DidMethod
Overrides
BaseModule.method
Defined in
packages/klayr-did-module/src/module.ts:36
offchainStores
• offchainStores: NamedRegistry
Inherited from
BaseModule.offchainStores
Defined in
node_modules/klayr-framework/dist-node/modules/base_module.d.ts:43
stores
• stores: NamedRegistry
Inherited from
BaseModule.stores
Defined in
node_modules/klayr-framework/dist-node/modules/base_module.d.ts:42
Accessors
name
• get
name(): string
Returns
string
Inherited from
BaseModule.name
Defined in
node_modules/klayr-framework/dist-node/modules/base_module.d.ts:44
Methods
afterCommandExecute
▸ Optional
afterCommandExecute(context
): Promise
<void
>
Parameters
Name | Type |
---|---|
context | TransactionExecuteContext |
Returns
Promise
<void
>
Inherited from
BaseModule.afterCommandExecute
Defined in
node_modules/klayr-framework/dist-node/modules/base_module.d.ts:52
afterTransactionsExecute
▸ Optional
afterTransactionsExecute(context
): Promise
<void
>
Parameters
Name | Type |
---|---|
context | BlockAfterExecuteContext |
Returns
Promise
<void
>
Inherited from
BaseModule.afterTransactionsExecute
Defined in
node_modules/klayr-framework/dist-node/modules/base_module.d.ts:56
baseMetadata
▸ Protected
baseMetadata(): Object
Returns
Object
Name | Type |
---|---|
assets | never [] |
commands | { name : string ; params : Schema }[] |
endpoints | never [] |
events | { data : Schema ; name : string }[] |
stores | { data : Schema ; key : string }[] |
Inherited from
BaseModule.baseMetadata
Defined in
node_modules/klayr-framework/dist-node/modules/base_module.d.ts:58
beforeCommandExecute
▸ beforeCommandExecute(_context
): Promise
<void
>
Parameters
Name | Type |
---|---|
_context | TransactionExecuteContext |
Returns
Promise
<void
>
Overrides
BaseModule.beforeCommandExecute
Defined in
packages/klayr-did-module/src/module.ts:90
beforeTransactionsExecute
▸ Optional
beforeTransactionsExecute(context
): Promise
<void
>
Parameters
Name | Type |
---|---|
context | BlockExecuteContext |
Returns
Promise
<void
>
Inherited from
BaseModule.beforeTransactionsExecute
Defined in
node_modules/klayr-framework/dist-node/modules/base_module.d.ts:55
finalizeGenesisState
▸ Optional
finalizeGenesisState(context
): Promise
<void
>
Parameters
Name | Type |
---|---|
context | GenesisBlockExecuteContext |
Returns
Promise
<void
>
Inherited from
BaseModule.finalizeGenesisState
Defined in
node_modules/klayr-framework/dist-node/modules/base_module.d.ts:54
init
▸ init(args
): Promise
<void
>
Parameters
Name | Type |
---|---|
args | ModuleInitArgs |
Returns
Promise
<void
>
Overrides
BaseModule.init
Defined in
packages/klayr-did-module/src/module.ts:75
initGenesisState
▸ Optional
initGenesisState(context
): Promise
<void
>
Parameters
Name | Type |
---|---|
context | GenesisBlockExecuteContext |
Returns
Promise
<void
>
Inherited from
BaseModule.initGenesisState
Defined in
node_modules/klayr-framework/dist-node/modules/base_module.d.ts:53
insertAssets
▸ Optional
insertAssets(context
): Promise
<void
>
Parameters
Name | Type |
---|---|
context | InsertAssetContext |
Returns
Promise
<void
>
Inherited from
BaseModule.insertAssets
Defined in
node_modules/klayr-framework/dist-node/modules/base_module.d.ts:48
metadata
▸ metadata(): ModuleMetadata
Returns
ModuleMetadata
Overrides
BaseModule.metadata
Defined in
packages/klayr-did-module/src/module.ts:66
verifyAssets
▸ Optional
verifyAssets(context
): Promise
<void
>
Parameters
Name | Type |
---|---|
context | BlockVerifyContext |
Returns
Promise
<void
>
Inherited from
BaseModule.verifyAssets
Defined in
node_modules/klayr-framework/dist-node/modules/base_module.d.ts:49
verifyTransaction
▸ Optional
verifyTransaction(context
): Promise
<VerificationResult
>
Parameters
Name | Type |
---|---|
context | TransactionVerifyContext |
Returns
Promise
<VerificationResult
>
Inherited from
BaseModule.verifyTransaction
Defined in
node_modules/klayr-framework/dist-node/modules/base_module.d.ts:50