Skip to content

Commit

Permalink
Merge pull request #223 from energywebfoundation/feature/ICL-57_upgra…
Browse files Browse the repository at this point in the history
…de_ethers_to_v5

feature/upgrade ethers to v5
  • Loading branch information
JGiter committed Aug 26, 2021
2 parents b4d179b + cd3d5b0 commit 2cd356f
Show file tree
Hide file tree
Showing 28 changed files with 44,343 additions and 23,122 deletions.
63 changes: 62 additions & 1 deletion docs/api/classes/signer_Owner.Owner.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,15 @@
- [privateKey](signer_Owner.Owner.md#privatekey)
- [provider](signer_Owner.Owner.md#provider)
- [publicKey](signer_Owner.Owner.md#publickey)
- [signer](signer_Owner.Owner.md#signer)

### Methods

- [connect](signer_Owner.Owner.md#connect)
- [getAddress](signer_Owner.Owner.md#getaddress)
- [sendTransaction](signer_Owner.Owner.md#sendtransaction)
- [signMessage](signer_Owner.Owner.md#signmessage)
- [signTransaction](signer_Owner.Owner.md#signtransaction)

## Constructors

Expand Down Expand Up @@ -83,8 +86,42 @@ ___

IdentityOwner.publicKey

___

### signer

**signer**: `Signer`

#### Implementation of

IdentityOwner.signer

## Methods

### connect

**connect**(`provider`): `Signer`

#### Parameters

| Name | Type |
| :------ | :------ |
| `provider` | `Provider` |

#### Returns

`Signer`

#### Implementation of

IdentityOwner.connect

#### Overrides

Signer.connect

___

### getAddress

**getAddress**(): `Promise`<`string`\>
Expand Down Expand Up @@ -135,7 +172,7 @@ ___

| Name | Type |
| :------ | :------ |
| `message` | `Arrayish` |
| `message` | `string` \| `Bytes` |

#### Returns

Expand All @@ -148,3 +185,27 @@ IdentityOwner.signMessage
#### Overrides

Signer.signMessage

___

### signTransaction

**signTransaction**(`transaction`): `Promise`<`string`\>

#### Parameters

| Name | Type |
| :------ | :------ |
| `transaction` | `Deferrable`<`TransactionRequest`\> |

#### Returns

`Promise`<`string`\>

#### Implementation of

IdentityOwner.signTransaction

#### Overrides

Signer.signTransaction
21 changes: 14 additions & 7 deletions docs/api/enums/errors_ErrorMessages.ERROR_MESSAGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,17 @@
- [METAMASK\_EXTENSION\_NOT\_AVAILABLE](errors_ErrorMessages.ERROR_MESSAGES.md#metamask_extension_not_available)
- [NATS\_NOT\_CONNECTED](errors_ErrorMessages.ERROR_MESSAGES.md#nats_not_connected)
- [NOT\_CONNECTED\_TO\_VOLTA](errors_ErrorMessages.ERROR_MESSAGES.md#not_connected_to_volta)
- [NO\_PRIVATE\_KEY](errors_ErrorMessages.ERROR_MESSAGES.md#no_private_key)
- [NO\_PROVIDER](errors_ErrorMessages.ERROR_MESSAGES.md#no_provider)
- [NO\_RPC\_URL](errors_ErrorMessages.ERROR_MESSAGES.md#no_rpc_url)
- [ONCHAIN\_ROLE\_VERSION\_NOT\_SPECIFIED](errors_ErrorMessages.ERROR_MESSAGES.md#onchain_role_version_not_specified)
- [ORG\_WITH\_APPS](errors_ErrorMessages.ERROR_MESSAGES.md#org_with_apps)
- [ORG\_WITH\_ROLES](errors_ErrorMessages.ERROR_MESSAGES.md#org_with_roles)
- [PRIVATE\_KEY\_NOT\_PROVIDED](errors_ErrorMessages.ERROR_MESSAGES.md#private_key_not_provided)
- [PROVIDER\_NOT\_INITIALIZED](errors_ErrorMessages.ERROR_MESSAGES.md#provider_not_initialized)
- [PUBLIC\_KEY\_NOT\_RECOVERED](errors_ErrorMessages.ERROR_MESSAGES.md#public_key_not_recovered)
- [ROLE\_NOT\_EXISTS](errors_ErrorMessages.ERROR_MESSAGES.md#role_not_exists)
- [ROLE\_PREREQUISITES\_NOT\_MET](errors_ErrorMessages.ERROR_MESSAGES.md#role_prerequisites_not_met)
- [RPC\_URL\_NOT\_PROVIDED](errors_ErrorMessages.ERROR_MESSAGES.md#rpc_url_not_provided)
- [SIGNER\_NOT\_INITIALIZED](errors_ErrorMessages.ERROR_MESSAGES.md#signer_not_initialized)
- [STAKE\_WAS\_NOT\_PUT](errors_ErrorMessages.ERROR_MESSAGES.md#stake_was_not_put)
- [UNABLE\_TO\_OBTAIN\_PUBLIC\_KEY](errors_ErrorMessages.ERROR_MESSAGES.md#unable_to_obtain_public_key)
Expand Down Expand Up @@ -131,12 +132,6 @@ ___

___

### NO\_PRIVATE\_KEY

**NO\_PRIVATE\_KEY** = `"Initialization of signer not possible in nodejs env without private key"`

___

### NO\_PROVIDER

**NO\_PROVIDER** = `"Initialization of singer failed due to no provider"`
Expand Down Expand Up @@ -167,6 +162,12 @@ ___

___

### PRIVATE\_KEY\_NOT\_PROVIDED

**PRIVATE\_KEY\_NOT\_PROVIDED** = `"IAM can not be initialized in Node.js environment without private key"`

___

### PROVIDER\_NOT\_INITIALIZED

**PROVIDER\_NOT\_INITIALIZED** = `"Provider not initialized"`
Expand All @@ -191,6 +192,12 @@ ___

___

### RPC\_URL\_NOT\_PROVIDED

**RPC\_URL\_NOT\_PROVIDED** = `"IAM can not be initialized in Node.js environment without rpc url"`

___

### SIGNER\_NOT\_INITIALIZED

**SIGNER\_NOT\_INITIALIZED** = `"Signer not initialized"`
Expand Down
22 changes: 22 additions & 0 deletions docs/api/enums/utils_detectEnvironment.ExecutionEnvironment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Enumeration: ExecutionEnvironment

[utils/detectEnvironment](../modules/utils_detectEnvironment.md).ExecutionEnvironment

## Table of contents

### Enumeration members

- [BROWSER](utils_detectEnvironment.ExecutionEnvironment.md#browser)
- [NODE](utils_detectEnvironment.ExecutionEnvironment.md#node)

## Enumeration members

### BROWSER

**BROWSER** = `"ExecutionEnvironment:Browser"`

___

### NODE

**NODE** = `"ExecutionEnvironment:Node"`
2 changes: 1 addition & 1 deletion docs/api/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
- [utils/ENS\_hash](modules/utils_ENS_hash.md)
- [utils/change\_resolver](modules/utils_change_resolver.md)
- [utils/constants](modules/utils_constants.md)
- [utils/detectEnvironment](modules/utils_detectEnvironment.md)
- [utils/did](modules/utils_did.md)
- [utils/enrollment](modules/utils_enrollment.md)
- [utils/getPublicKeyAndIdentityToken](modules/utils_getPublicKeyAndIdentityToken.md)
- [utils/isBrowser](modules/utils_isBrowser.md)
- [walletconnect/ControllableWalletConnect](modules/walletconnect_ControllableWalletConnect.md)
- [walletconnect/WalletConnectService](modules/walletconnect_WalletConnectService.md)
6 changes: 3 additions & 3 deletions docs/api/modules/staking.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ ___

| Name | Type |
| :------ | :------ |
| `amount` | `utils.BigNumber` |
| `depositEnd` | `utils.BigNumber` |
| `depositStart` | `utils.BigNumber` |
| `amount` | `BigNumber` |
| `depositEnd` | `BigNumber` |
| `depositStart` | `BigNumber` |
| `status` | [`StakeStatus`](../enums/staking.StakeStatus.md) |
21 changes: 21 additions & 0 deletions docs/api/modules/utils_detectEnvironment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Module: utils/detectEnvironment

## Table of contents

### Enumerations

- [ExecutionEnvironment](../enums/utils_detectEnvironment.ExecutionEnvironment.md)

### Functions

- [detectExecutionEnvironment](utils_detectEnvironment.md#detectexecutionenvironment)

## Functions

### detectExecutionEnvironment

`Const` **detectExecutionEnvironment**(): [`ExecutionEnvironment`](../enums/utils_detectEnvironment.ExecutionEnvironment.md)

#### Returns

[`ExecutionEnvironment`](../enums/utils_detectEnvironment.ExecutionEnvironment.md)
17 changes: 0 additions & 17 deletions docs/api/modules/utils_isBrowser.md

This file was deleted.

0 comments on commit 2cd356f

Please sign in to comment.