PHP WebShell

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

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

import { BaseCoin as CoinConfig } from '@bitgo/statics';
import { UnsignedTransaction, DecodedSignedTx, DecodedSigningPayload } from '@substrate/txwrapper-core';
import { TransactionType, BaseAddress } from '@bitgo/sdk-core';
import { Transaction, TransactionBuilder } from '@bitgo/abstract-substrate';
export declare class UnstakeBuilder extends TransactionBuilder {
    protected _amount: string;
    protected _hotkey: string;
    protected _netuid: string;
    constructor(_coinConfig: Readonly<CoinConfig>);
    /**
     * Construct a transaction to unstake
     *
     * @returns {UnsignedTransaction} an unsigned unstake TAO transaction
     *
     * @see https://polkadot.js.org/docs/substrate/extrinsics/#staking
     */
    protected buildTransaction(): UnsignedTransaction;
    /** @inheritdoc */
    protected get transactionType(): TransactionType;
    /**
     * The amount to unstake.
     *
     * @param {string} amount to unstake
     * @returns {UnstakeBuilder} This unstaking builder.
     *
     * @see https://wiki.polkadot.network/docs/learn-nominator#required-minimum-stake
     */
    amount(amount: string): this;
    /**
     * The controller of the staked amount.
     *
     * @param {string} hotkey address of validator
     * @returns {UnstakeBuilder} This unstaking builder.
     *
     * @see https://wiki.polkadot.network/docs/learn-staking#accounts
     */
    hotkey({ address }: BaseAddress): this;
    /**
     * Netuid of the subnet (root network is 0)
     * @param {string} netuid
     * @returns {UnstakeBuilder} This unstaking builder
     */
    netuid(netuid: string): this;
    /** @inheritdoc */
    protected fromImplementation(rawTransaction: string): Transaction;
    /** @inheritdoc */
    validateTransaction(_: Transaction): void;
    /**
     * Helper method to validate whether unstake params have the correct type and format
     * @param {string} amountUnstaked amount to unstake
     * @param {string} hotkey hotkey address of the validator
     * @param {string} netuid netuid of the subnet
     */
    private validateFields;
    /** @inheritdoc */
    validateDecodedTransaction(decodedTxn: DecodedSigningPayload | DecodedSignedTx, rawTransaction: string): void;
    /**
     * Construct a transaction to unstake
     *
     * @param {Interface.RemoveStakeArgs} RemoveStake arguments to be passed to the addStake method
     * @param {Interface.CreateBaseTxInfo} Base txn info required to construct the removeStake txn
     * @returns {UnsignedTransaction} an unsigned unstake TAO transaction
     */
    private removeStake;
}
//# sourceMappingURL=unstakeBuilder.d.ts.map

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


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