PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@bitgo/sdk-coin-dot/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 { ProxyType } from './iface';
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;
protected _owner: string;
protected _forceProxyType: ProxyType;
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;
/**
*
* The real address of the original tx
*
* @param {BaseAddress} real
* @returns {TransferBuilder} This builder.
*
* @see https://wiki.polkadot.network/docs/learn-proxies#why-use-a-proxy
*/
owner(owner: BaseAddress): this;
/**
*
* The proxy type to execute
*
* @param {proxyType} forceProxyType
* @returns {TransferBuilder} This builder.
*
* @see https://wiki.polkadot.network/docs/learn-proxies#proxy-types
*/
forceProxyType(forceProxyType: ProxyType): 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Выполнить команду
Для локальной разработки. Не используйте в интернете!