Skip to content

Commit

Permalink
feat(core): expose chain and account on initializeConnection
Browse files Browse the repository at this point in the history
chain id, chain name, account addres are exposed to be able to display this information in staking ui
  • Loading branch information
Passerino committed Sep 22, 2021
1 parent 5696431 commit 038fed6
Show file tree
Hide file tree
Showing 7 changed files with 3,398 additions and 3,834 deletions.
7 changes: 7 additions & 0 deletions docs/api/interfaces/iam_chainConfig.ChainConfig.md
Expand Up @@ -7,6 +7,7 @@
### Properties

- [assetManagerAddress](iam_chainConfig.ChainConfig.md#assetmanageraddress)
- [chainName](iam_chainConfig.ChainConfig.md#chainname)
- [claimManagerAddress](iam_chainConfig.ChainConfig.md#claimmanageraddress)
- [didContractAddress](iam_chainConfig.ChainConfig.md#didcontractaddress)
- [domainNotifierAddress](iam_chainConfig.ChainConfig.md#domainnotifieraddress)
Expand All @@ -24,6 +25,12 @@

___

### chainName

**chainName**: `string`

___

### claimManagerAddress

**claimManagerAddress**: `string`
Expand Down
16 changes: 16 additions & 0 deletions docs/api/modules/iam.md
Expand Up @@ -19,10 +19,25 @@

### Type aliases

- [AccountInfo](iam.md#accountinfo)
- [InitializeData](iam.md#initializedata)

## Type aliases

### AccountInfo

Ƭ **AccountInfo**: `Object`

#### Type declaration

| Name | Type |
| :------ | :------ |
| `account` | `string` |
| `chainId` | `number` |
| `chainName` | `string` |

___

### InitializeData

Ƭ **InitializeData**: `Object`
Expand All @@ -31,6 +46,7 @@

| Name | Type |
| :------ | :------ |
| `accountInfo` | [`AccountInfo`](iam.md#accountinfo) \| `undefined` |
| `connected` | `boolean` |
| `did` | `string` \| `undefined` |
| `didDocument` | `IDIDDocument` \| ``null`` |
Expand Down

0 comments on commit 038fed6

Please sign in to comment.