Class: DidModule
Hierarchy
BaseModule
↳
DidModule
Constructors
constructor
• new DidModule()
Overrides
BaseModule.constructor
Defined in
packages/klayr-did-module/dist/module.d.ts:20
Properties
_didEndpoint
• Private
_didEndpoint: any
Defined in
packages/klayr-did-module/dist/module.d.ts:15
_didMethod
• Private
_didMethod: any
Defined in
packages/klayr-did-module/dist/module.d.ts:16
autoCreateAddressDID
• Private
autoCreateAddressDID: any
Defined in
packages/klayr-did-module/dist/module.d.ts:14
chainspace
• Private
chainspace: any
Defined in
packages/klayr-did-module/dist/module.d.ts:13
commands
• commands: (AddControllersCommand
| AddKeysCommand
| AddServiceEndpointCommand
| CreateCommand
| DeactivateCommand
| RemoveControllersCommand
| RemoveKeysCommand
| RemoveServiceEndpointCommand
)[]
Overrides
BaseModule.commands
Defined in
packages/klayr-did-module/dist/module.d.ts:19
endpoint
• endpoint: DidEndpoint
Overrides
BaseModule.endpoint
Defined in
packages/klayr-did-module/dist/module.d.ts:17
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/dist/module.d.ts:18
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/dist/module.d.ts:23
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/dist/module.d.ts:22
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/dist/module.d.ts:21
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