PHP WebShell
Текущая директория: /opt/BitGoJS/modules/sdk-coin-sol/dist/src/lib
Просмотр файла: stakingDelegateBuilder.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 StakingDelegateBuilder extends TransactionBuilder {
protected _stakingAddress: string;
protected _stakingAddresses: string[];
protected _validator: string;
constructor(_coinConfig: Readonly<CoinConfig>);
protected get transactionType(): TransactionType;
/** @inheritdoc */
initBuilder(tx: Transaction): void;
/**
* The address of the staking account.
*
* @param {string} stakingAddress public address of the staking account.
* @returns {StakingDelegateBuilder} This staking delegate builder.
*
* @see https://docs.solana.com/staking/stake-accounts#account-address
*/
stakingAddress(stakingAddress: string): this;
/**
* The staking addresses of the staking account.
*
* @param {string[]} stakingAddresses public address of the staking accounts
* @returns {StakingDelegateBuilder} This staking delegate builder.
*
* @see https://docs.solana.com/staking/stake-accounts#account-address
*/
stakingAddresses(stakingAddresses: string[]): this;
/**
* Set validator address to delegate funds to.
*
* @param {string} validator Validator address to delegate funds to.
* @returns {StakingDelegateBuilder} This staking builder.
*
*/
validator(validator: string): this;
/** @inheritdoc */
protected buildImplementation(): Promise<Transaction>;
}
//# sourceMappingURL=stakingDelegateBuilder.d.ts.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!