PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@bitgo/sdk-coin-polyx/dist/src/lib
Просмотр файла: tokenTransferBuilder.d.ts
import { TransactionType } from '@bitgo/sdk-core';
import { BaseCoin as CoinConfig } from '@bitgo/statics';
import { PolyxBaseBuilder } from './baseBuilder';
import { TxMethod } from './iface';
import { Transaction } from './transaction';
import { DecodedSignedTx, DecodedSigningPayload, UnsignedTransaction } from '@substrate/txwrapper-core';
export declare class TokenTransferBuilder extends PolyxBaseBuilder<TxMethod, Transaction> {
protected _assetId: string;
protected _amount: string;
protected _memo: string;
protected _fromDID: string;
protected _toDID: string;
constructor(_coinConfig: Readonly<CoinConfig>);
protected get transactionType(): TransactionType;
protected buildTransaction(): UnsignedTransaction;
/**
* Sets the amount to transfer.
*
* @param {string} amount - The amount to transfer.
* @returns {this} The current instance of the builder.
*/
assetId(assetId: string): this;
/**
* Sets the amount to transfer.
*
* @param {string} amount - The amount to transfer.
* @returns {this} The current instance of the builder.
*/
amount(amount: string): this;
/**
* Sets the memo for the transaction.
* Pads the memo on the left with zeros to ensure it is 32 characters long.
*
* @param {string} memo - The memo for the transaction.
* @returns {this} The current instance of the builder.
*/
memo(memo: string): this;
/**
* Sets the sender DID.
*
* @param {string} fromDID - The sender DID.
* @returns {this} The current instance of the builder.
*/
fromDID(fromDID: string): this;
/**
* Sets the receiver DID.
*
* @param {string} toDID - The receiver DID.
* @returns {this} The current instance of the builder.
*/
toDID(toDID: string): this;
/** @inheritdoc */
protected fromImplementation(rawTransaction: string): Transaction;
/** @inheritdoc */
validateDecodedTransaction(decodedTxn: DecodedSigningPayload | DecodedSignedTx, rawTransaction?: string): void;
private addAndAffirmWithMediators;
}
//# sourceMappingURL=tokenTransferBuilder.d.ts.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!