UNPKG

@tatumio/celo-connector

Version:

Celo Connector for Tatum API

15 lines (11 loc) 323 B
import {IsNotEmpty, IsNumberString, Matches} from 'class-validator'; export class Fee { @IsNotEmpty() @IsNumberString() @Matches(/^[+]?((\d+(\.\d*)?)|(\.\d+))$/) public gasLimit: string; @IsNotEmpty() @IsNumberString() @Matches(/^[+]?((\d+(\.\d*)?)|(\.\d+))$/) public gasPrice: string; }