PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@bitgo/sdk-coin-polyx/dist/src/lib
Просмотр файла: batchStakingBuilder.d.ts
import { Transaction } from './transaction';
import { PolyxBaseBuilder } from './baseBuilder';
import { DecodedSignedTx, DecodedSigningPayload, UnsignedTransaction } from '@substrate/txwrapper-core';
import { BaseCoin as CoinConfig } from '@bitgo/statics';
import { BaseAddress, TransactionType } from '@bitgo/sdk-core';
import { BondArgs, NominateArgs } from './iface';
export declare class BatchStakingBuilder extends PolyxBaseBuilder {
protected _amount: string;
protected _controller: string;
protected _payee: string | {
Account: string;
};
protected _validators: string[];
constructor(_coinConfig: Readonly<CoinConfig>);
protected get transactionType(): TransactionType;
/**
* Build a batch transaction that combines bond and nominate operations
* Both operations are required and always atomic (using batchAll)
*/
protected buildTransaction(): UnsignedTransaction;
/**
* Set the staking amount for bond
*/
amount(amount: string): this;
/**
* Get the staking amount
*/
getAmount(): string;
/**
* Set the controller account for bond
*/
controller(controller: BaseAddress): this;
/**
* Get the controller address
*/
getController(): string;
/**
* Set the rewards destination for bond ('Staked', 'Stash','Controller', or { Account: string })
*/
payee(payee: string | {
Account: string;
}): this;
/**
* Get the payee
*/
getPayee(): string | {
Account: string;
};
/**
* Set the validators to nominate
*/
validators(validators: string[]): this;
/**
* Get the validators to nominate
*/
getValidators(): string[];
/** @inheritdoc */
validateDecodedTransaction(decodedTxn: DecodedSigningPayload | DecodedSignedTx): void;
/**
* Validate bond arguments
*/
private validateBondArgs;
/**
* Validate nominate arguments
*/
private validateNominateArgs;
/** @inheritdoc */
protected fromImplementation(rawTransaction: string): Transaction;
/** @inheritdoc */
validateTransaction(tx: Transaction): void;
/**
* Validate the builder fields
*/
private validateFields;
testValidateFields(): void;
testValidateBondArgs(args: BondArgs): void;
testValidateNominateArgs(args: NominateArgs): void;
}
//# sourceMappingURL=batchStakingBuilder.d.ts.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!