PHP WebShell
Текущая директория: /opt/BitGoJS/modules/sdk-coin-sol/dist/src/lib
Просмотр файла: stakingActivateBuilder.d.ts
import { BaseCoin as CoinConfig } from '@bitgo/statics';
import { TransactionType } from '@bitgo/sdk-core';
import { Transaction } from './transaction';
import { TransactionBuilder } from './transactionBuilder';
export declare class StakingActivateBuilder extends TransactionBuilder {
protected _amount: string;
protected _stakingAddress: string;
protected _validator: string;
protected _isMarinade: boolean;
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 isMarinade flag
* @param {boolean} flag - true if the transaction is for Marinade, false by default if not set
* @returns {StakingActivateBuilder} This staking builder
*/
isMarinade(flag: boolean): this;
/** @inheritdoc */
protected buildImplementation(): Promise<Transaction>;
}
//# sourceMappingURL=stakingActivateBuilder.d.ts.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!