IAnchorFactory
Variables
AnchorInfo
Stores the descriptive information of an anchor. It can be fetched via fetchInfo
.
Params
Name | Type | Description |
---|---|---|
| uint8 | The version of the anchor contract |
| address | The address of the anchor |
| address | The committee of the anchor |
| address | The initial deployer of the anchor |
Events
AnchorDeployed
Emitted when a new anchor deployed.
Params
Name | Type | Description |
---|---|---|
| address | The deployer of the anchor |
| uint32 | The unique identification of the anchor |
| address | The address of the anchor |
| address | The committee of the anchor |
Functions
messenger
Returns the messenger address on the local blockchain. Any anchor deployed through this AnchorFactory will be initially connected to this messenger.
Return Values
Type | Description |
---|---|
address | The address of the messenger |
totalAnchors
Returns the total number of anchors which have been deployed.
Return Values
Type | Description |
---|---|
uint32 | The total number of anchors which have been deployed via the AnchorFactory |
fetchId
Returns the unique identification of the input anchor. Each identification is unique on the local blockchain and can be passed as a key to fetch the description information of the corresponding anchor.
Params
Name | Type | Description |
---|---|---|
| address | The address for which the unique identification will be fetched |
Return Values
Type | Description |
---|---|
uint32 | The unique identification of the input anchor |
fetchInfo
Returns the description information of the anchor with the input identification.
Params
Name | Type | Description |
---|---|---|
| uint32 | The unique identification for which the description information will be fetched |
Last updated