PHP WebShell

Текущая директория: /opt/BitGoJS/modules/sdk-coin-algo/src/lib

Просмотр файла: errors.ts

import { BuildTransactionError } from '@bitgo/sdk-core';

export class InsufficientFeeError extends BuildTransactionError {
  constructor(providedFee: number, minimum: number) {
    super(
      `The provided fee of '${providedFee}' microalgos cannot be less than the ` +
        `minimum fee of '${minimum}' microalgos`
    );
    this.name = InsufficientFeeError.name;
  }
}

export class AddressValidationError extends BuildTransactionError {
  constructor(malformedAddress: string) {
    super(`The address '${malformedAddress}' is not a well-formed algorand address`);
    this.name = AddressValidationError.name;
  }
}
export class KeyDilutionError extends BuildTransactionError {
  constructor(incorrectValue: number) {
    super(
      `The keyDilution value '${incorrectValue}' must be less than or equal to the square root of the voteKey validity range.`
    );
    this.name = KeyDilutionError.name;
  }
}

Выполнить команду


Для локальной разработки. Не используйте в интернете!