Skip to content

Commit

Permalink
fix: change expiration ts to number
Browse files Browse the repository at this point in the history
  • Loading branch information
JGiter committed Aug 2, 2023
1 parent 6db25b7 commit 1b1135c
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 38 deletions.
8 changes: 4 additions & 4 deletions docs/api/classes/modules_signer.SignerService.md
Expand Up @@ -353,14 +353,14 @@ ___

Add event handler for certain events

**`Requires`**

to be called after the connection to wallet was initialized

#### Returns

`void`

**`Requires`**

to be called after the connection to wallet was initialized

___

### on
Expand Down
16 changes: 8 additions & 8 deletions docs/api/classes/modules_staking.StakingFactoryService.md
Expand Up @@ -35,28 +35,28 @@ Intended for staking pool

**allServices**(): `Promise`<[`Service`](../modules/modules_staking.md#service)[]\>

**`Description`**

Returns all services for which pools are launched

#### Returns

`Promise`<[`Service`](../modules/modules_staking.md#service)[]\>

**`Description`**

Returns all services for which pools are launched

___

### getPool

**getPool**(): `Promise`<[`StakingPoolService`](modules_staking.StakingPoolService.md)\>

**`Description`**

Returns pool launched for energyweb org

#### Returns

`Promise`<[`StakingPoolService`](modules_staking.StakingPoolService.md)\>

**`Description`**

Returns pool launched for energyweb org

___

### create
Expand Down
28 changes: 14 additions & 14 deletions docs/api/classes/modules_staking.StakingPoolService.md
Expand Up @@ -127,8 +127,6 @@ ___

**partialWithdraw**(`value`): `Promise`<`ContractReceipt`\>

**`Description`**

#### Parameters

| Name | Type |
Expand All @@ -139,20 +137,14 @@ ___

`Promise`<`ContractReceipt`\>

**`Description`**

___

### putStake

**putStake**(`stake`): `Promise`<`void`\>

**`Description`**

Locks stake and starts accumulating reward

**`Emits`**

StakingPool.StakePut

#### Parameters

| Name | Type |
Expand All @@ -163,16 +155,24 @@ StakingPool.StakePut

`Promise`<`void`\>

**`Description`**

Locks stake and starts accumulating reward

**`Emits`**

StakingPool.StakePut

___

### withdraw

**withdraw**(): `Promise`<`void`\>

**`Description`**

pays back stake with accumulated reward.

#### Returns

`Promise`<`void`\>

**`Description`**

pays back stake with accumulated reward.
Expand Up @@ -50,10 +50,6 @@ verifiableCredentialsService.createRoleVC(...);

**continueExchange**(`«destructured»`): `Promise`<`undefined` \| `VerifiablePresentation` \| `VpRequest`\>

**`Description`**

Sends credentials requested by issuer and returns either issued credentials or next credentials request

#### Parameters

| Name | Type |
Expand All @@ -66,6 +62,10 @@ Sends credentials requested by issuer and returns either issued credentials or n

issued credentials or request of additional credentials

**`Description`**

Sends credentials requested by issuer and returns either issued credentials or next credentials request

___

### createCredential
Expand Down
2 changes: 1 addition & 1 deletion docs/api/interfaces/modules_claims.Claim.md
Expand Up @@ -60,7 +60,7 @@ ___

### expirationTimestamp

`Optional` **expirationTimestamp**: `string`
`Optional` **expirationTimestamp**: `number`

___

Expand Down
10 changes: 5 additions & 5 deletions docs/api/modules/modules_signer.md
Expand Up @@ -106,11 +106,6 @@ ___

**fromGnosis**(`safeAppSdk`): `Promise`<[`SignerService`](../classes/modules_signer.SignerService.md)\>

**`Description`**

Intended for use in Volta Gnosis web interface(https://volta.gnosis-safe.io/).
Dapp should provide SafeAppSdk injected by Gnosis interface

#### Parameters

| Name | Type |
Expand All @@ -121,6 +116,11 @@ Dapp should provide SafeAppSdk injected by Gnosis interface

`Promise`<[`SignerService`](../classes/modules_signer.SignerService.md)\>

**`Description`**

Intended for use in Volta Gnosis web interface(https://volta.gnosis-safe.io/).
Dapp should provide SafeAppSdk injected by Gnosis interface

___

### fromKms
Expand Down
2 changes: 1 addition & 1 deletion src/modules/claims/claims.service.ts
Expand Up @@ -793,7 +793,7 @@ export class ClaimsService {
throw new Error(ERROR_MESSAGES.PUBLISH_NOT_ISSUED_CLAIM);
}
const expirationTimestamp = claimDataForClaimType.expirationTimestamp
? Math.floor(+claimDataForClaimType.expirationTimestamp / 1000)
? Math.floor(claimDataForClaimType.expirationTimestamp / 1000)
: undefined;

await this.registerOnchain({
Expand Down
2 changes: 1 addition & 1 deletion src/modules/claims/claims.types.ts
Expand Up @@ -69,7 +69,7 @@ export interface Claim {
createdAt: string;
redirectUri?: string;
vp?: VerifiablePresentation;
expirationTimestamp?: string;
expirationTimestamp?: number;
}

export const readyToBeRegisteredOnchain = (
Expand Down

0 comments on commit 1b1135c

Please sign in to comment.