PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@bitgo/sdk-coin-polyx/dist/src/lib
Просмотр файла: transferBuilder.d.ts
import { Transaction } from './transaction';
import { TxMethod } from './iface';
import { PolyxBaseBuilder } from './baseBuilder';
import { DecodedSignedTx, DecodedSigningPayload, UnsignedTransaction } from '@substrate/txwrapper-core';
import { BaseCoin as CoinConfig } from '@bitgo/statics';
import { BaseAddress, TransactionType } from '@bitgo/sdk-core';
export declare class TransferBuilder extends PolyxBaseBuilder<TxMethod, Transaction> {
protected _amount: string;
protected _to: string;
protected _memo: string;
constructor(_coinConfig: Readonly<CoinConfig>);
protected get transactionType(): TransactionType;
/**
* Construct an unsigned `transferWithMemo` transaction using the provided details.
*
* @returns {UnsignedTransaction} The constructed unsigned transferWithMemo transaction.
*/
protected buildTransaction(): UnsignedTransaction;
/**
*
* The amount for transfer transaction.
*
* @param {string} amount
* @returns {TransferBuilder} This transfer builder.
*/
amount(amount: string): this;
/**
*
* The destination address for transfer transaction.
*
* @param {string} dest
* @returns {TransferBuilder} This transfer builder.
*/
to({ address }: BaseAddress): this;
/**
* The memo to attach to the transfer transaction.
* Pads the memo on the left with zeros to ensure it is 32 characters long.
*
* @param {string} memo The memo string to include.
* @returns {TransferBuilder} This transfer builder.
*/
memo(memo: string): this;
/** @inheritdoc */
validateDecodedTransaction(decodedTxn: DecodedSigningPayload | DecodedSignedTx, rawTransaction?: string): void;
/** @inheritdoc */
protected fromImplementation(rawTransaction: string): Transaction;
/**
* Construct a transaction to transfer funds with an attached memo.
*
* @param {Interface.TransferWithMemoArgs} args Arguments to be passed to the transferWithMemo method
* @param {Interface.CreateBaseTxInfo} info Base txn info required to construct the transfer transaction
* @returns {UnsignedTransaction} An unsigned transferWithMemo transaction
*/
private TransferWithMemo;
}
//# sourceMappingURL=transferBuilder.d.ts.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!