[CI Skip] 0.31.1
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
|
||||
|
||||
# Functions
|
||||
|
||||
<a id="frommetadata"></a>
|
||||
|
||||
## fromMetadata
|
||||
|
||||
▸ **fromMetadata**(metadata: *`Metadata`*): [Extrinsics](../interfaces/_types_d_.extrinsics.md)
|
||||
|
||||
*Defined in [fromMetadata.ts:19](https://github.com/polkadot-js/api/blob/4344f33/packages/type-extrinsics/src/fromMetadata.ts#L19)*
|
||||
|
||||
Extend a storage object with the storage modules & module functions present in the metadata.
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type | Description |
|
||||
| ------ | ------ | ------ |
|
||||
| metadata | `Metadata` | The metadata to extend the storage object against. |
|
||||
|
||||
**Returns:** [Extrinsics](../interfaces/_types_d_.extrinsics.md)
|
||||
|
||||
___
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
|
||||
|
||||
# Functions
|
||||
|
||||
<a id="createdescriptor"></a>
|
||||
|
||||
## createDescriptor
|
||||
|
||||
▸ **createDescriptor**(section: *`string`*, method: *`string`*, index: *`number`*, meta: *`FunctionMetadata`*): [ExtrinsicFunction](../interfaces/_types_d_.extrinsicfunction.md)
|
||||
|
||||
*Defined in [utils/createUnchecked.ts:16](https://github.com/polkadot-js/api/blob/4344f33/packages/type-extrinsics/src/utils/createUnchecked.ts#L16)*
|
||||
|
||||
From the metadata of a function in the module's storage, generate the function that will return the an UncheckExtrinsic.
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type | Description |
|
||||
| ------ | ------ | ------ |
|
||||
| section | `string` |
|
||||
| method | `string` |
|
||||
| index | `number` | Index of the module section in the modules array. |
|
||||
| meta | `FunctionMetadata` |
|
||||
|
||||
**Returns:** [ExtrinsicFunction](../interfaces/_types_d_.extrinsicfunction.md)
|
||||
|
||||
___
|
||||
|
||||
Reference in New Issue
Block a user