-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#NOISSUE - add support for custodial wallet proxy generation for CELO…
… and MATIC
- Loading branch information
Samuel Sramko
committed
Oct 22, 2021
1 parent
f144266
commit 0940a3f
Showing
6 changed files
with
163 additions
and
21 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
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,34 @@ | ||
import {Type} from 'class-transformer'; | ||
import {IsIn, IsNotEmpty, IsNumber, IsOptional, Length, Max, Min} from 'class-validator'; | ||
import {Currency} from './Currency'; | ||
import {Fee} from './Fee'; | ||
import {PrivateKeyOrSignatureId} from './PrivateKeyOrSignatureId'; | ||
|
||
export class GenerateCustodialAddressBatch extends PrivateKeyOrSignatureId { | ||
|
||
@IsNotEmpty() | ||
@IsIn([Currency.MATIC, Currency.CELO]) | ||
public chain: Currency; | ||
|
||
@IsNumber() | ||
@IsNotEmpty() | ||
@Min(0) | ||
@Max(270) | ||
public batchCount: number; | ||
|
||
@IsNotEmpty() | ||
@Length(34, 43) | ||
public owner: string; | ||
|
||
@IsOptional() | ||
@Min(0) | ||
public nonce?: number; | ||
|
||
@IsOptional() | ||
@Type(() => Fee) | ||
public fee?: Fee; | ||
|
||
@IsOptional() | ||
@IsIn([Currency.CELO, Currency.CUSD, Currency.CEUR]) | ||
public feeCurrency?: Currency; | ||
} |
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