PHP WebShell
Текущая директория: /opt/BitGoJS/modules/abstract-substrate/dist/src/lib
Просмотр файла: nativeTransferBuilder.d.ts
import { BaseAddress, TransactionType } from '@bitgo/sdk-core';
import { BaseCoin as CoinConfig } from '@bitgo/statics';
import { DecodedSignedTx, DecodedSigningPayload, UnsignedTransaction } from '@substrate/txwrapper-core';
import { Transaction } from './transaction';
import { TransactionBuilder } from './transactionBuilder';
export declare abstract class NativeTransferBuilder extends TransactionBuilder {
protected _sweepFreeBalance: boolean;
protected _keepAddressAlive: boolean;
protected _amount: string;
protected _to: string;
constructor(_coinConfig: Readonly<CoinConfig>);
/**
*
* Dispatch the given call from an account that the sender is authorised for through add_proxy.
*
* @returns {UnsignedTransaction} an unsigned Dot transaction
*
* @see https://polkadot.js.org/docs/substrate/extrinsics/#proxy
*/
protected buildTransaction(): UnsignedTransaction;
protected get transactionType(): TransactionType;
/**
*
* Set this to be a sweep transaction, using TransferAll with keepAlive set to true by default.
* If keepAlive is false, the entire address will be swept (including the 1 DOT minimum).
*
* @param {boolean} keepAlive - keep the address alive after this sweep
* @returns {TransferBuilder} This transfer builder.
*
* @see https://github.com/paritytech/txwrapper-core/blob/main/docs/modules/txwrapper_substrate_src.methods.balances.md#transferall
*/
sweep(keepAlive?: boolean): this;
/**
*
* The amount for transfer transaction.
*
* @param {string} amount
* @returns {TransferBuilder} This transfer builder.
*
* @see https://wiki.polkadot.network/docs/build-protocol-info
*/
amount(amount: string): this;
/**
*
* The destination address for transfer transaction.
*
* @param {string} dest
* @returns {TransferBuilder} This transfer builder.
*
* @see https://wiki.polkadot.network/docs/build-protocol-info
*/
to({ address }: BaseAddress): this;
/** @inheritdoc */
validateDecodedTransaction(decodedTxn: DecodedSigningPayload | DecodedSignedTx, rawTransaction: string): void;
/** @inheritdoc */
protected fromImplementation(rawTransaction: string): Transaction;
/** @inheritdoc */
validateTransaction(_: Transaction): void;
private validateFields;
}
//# sourceMappingURL=nativeTransferBuilder.d.ts.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!