PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@bitgo/sdk-coin-sol/dist/src/lib

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

import { SolStakingTypeEnum } from '@bitgo/public-types';
import { BaseCoin as CoinConfig } from '@bitgo/statics';
import { TransactionType } from '@bitgo/sdk-core';
import { Transaction } from './transaction';
import { TransactionBuilder } from './transactionBuilder';
import { StakingActivateExtraParams } from './iface';
export declare class StakingActivateBuilder extends TransactionBuilder {
    protected _amount: string;
    protected _stakingAddress: string;
    protected _validator: string;
    protected _stakingType: SolStakingTypeEnum;
    protected _extraParams?: StakingActivateExtraParams;
    constructor(_coinConfig: Readonly<CoinConfig>);
    protected get transactionType(): TransactionType;
    /** @inheritdoc */
    initBuilder(tx: Transaction): void;
    /**
     * The amount to stake expressed in Lamports, 1 SOL = 1_000_000_000 lamports.
     *
     * @param {string} amount expressed in Lamports.
     * @returns {StakeBuilder} This staking builder.
     *
     */
    amount(amount: string): this;
    /**
     * The address of the staking account.
     *
     * @param {string} stakingAddress public address of the staking account.
     * @returns {StakingActivateBuilder} This staking builder.
     *
     * @see https://docs.solana.com/staking/stake-accounts#account-address
     */
    stakingAddress(stakingAddress: string): this;
    /**
     * Set validator address to delegate funds to.
     *
     * @param {string} validator Validator address to delegate funds to.
     * @returns {StakingActivateBuilder} This staking builder.
     *
     */
    validator(validator: string): this;
    /**
     * Set staking type.
     *
     * @param {SolStakingType} stakingType a staking type.
     * @returns {StakingActivateBuilder} This staking builder.
     */
    stakingType(stakingType: SolStakingTypeEnum): this;
    /**
     * Set parameters specific to a staking type.
     *
     * @param {StakingActivateExtraParams} extraParams parameters specific to a staking type.
     * @returns {StakingActivateBuilder} This staking builder.
     */
    extraParams(extraParams?: StakingActivateExtraParams): this;
    /** @inheritdoc */
    protected buildImplementation(): Promise<Transaction>;
}
//# sourceMappingURL=stakingActivateBuilder.d.ts.map

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


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