PHP WebShell

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

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

import { TransferBuilder as EthTransferBuilder } from '@bitgo/sdk-coin-eth';

/** RBTC transfer builder */
export class TransferBuilder extends EthTransferBuilder {
  /**
   * Get the prefix used in generating an operation hash for sending tokens
   * See https://github.com/BitGo/eth-multisig-v2/blob/master/contracts/coins/RskWalletSimple.sol
   *
   * @returns the string prefix
   */
  protected getTokenOperationHashPrefix(): string {
    return 'RSK-ERC20';
  }

  /**
   * Get the prefix used in generating an operation hash for sending native coins
   * See https://github.com/BitGo/eth-multisig-v2/blob/master/contracts/coins/RskWalletSimple.sol
   *
   * @returns the string prefix
   */
  protected getNativeOperationHashPrefix(): string {
    return 'RSK';
  }
}

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


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