-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 🎸 identities rotatePrimaryKey/attestPrimaryKeyRotation (#251)
* feat: 🎸 identities rotatePrimaryKey * feat: 🎸 identities attestPrimaryKeyRotation
- Loading branch information
Showing
8 changed files
with
232 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* istanbul ignore file */ | ||
|
||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'; | ||
import { IsDate, IsOptional, IsString } from 'class-validator'; | ||
|
||
import { TransactionBaseDto } from '~/common/dto/transaction-base-dto'; | ||
import { getNextYearISO } from '~/common/utils'; | ||
|
||
export class RotatePrimaryKeyParamsDto extends TransactionBaseDto { | ||
@ApiProperty({ | ||
description: 'Account address which will become the primary key', | ||
example: '5grwXxxXxxXxxXxxXxxXxxXxxXxxXxxXxxXxxXxxXxxXxxXx', | ||
}) | ||
@IsString() | ||
readonly targetAccount: string; | ||
|
||
@ApiPropertyOptional({ | ||
description: 'Date at which the Identity will expire', | ||
example: getNextYearISO(), | ||
type: 'string', | ||
}) | ||
@IsOptional() | ||
@IsDate() | ||
readonly expiry?: Date; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters