PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/avalanche/dist/apis/platformvm

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

/**
 * @packageDocumentation
 * @module API-PlatformVM-ValidationTx
 */
import BN from "bn.js";
import { TransferableOutput } from "../platformvm/outputs";
import { TransferableInput } from "../platformvm/inputs";
import { Buffer } from "buffer/";
import { ParseableOutput } from "./outputs";
import { SerializedEncoding } from "../../utils/serialization";
import { WeightedValidatorTx } from "./addvalidatortx";
/**
 * Class representing an unsigned AddDelegatorTx transaction.
 */
export declare class AddDelegatorTx extends WeightedValidatorTx {
    protected _typeName: string;
    protected _typeID: number;
    serialize(encoding?: SerializedEncoding): object;
    deserialize(fields: object, encoding?: SerializedEncoding): void;
    protected stakeOuts: TransferableOutput[];
    protected rewardOwners: ParseableOutput;
    /**
     * Returns the id of the [[AddDelegatorTx]]
     */
    getTxType(): number;
    /**
     * Returns a {@link https://github.com/indutny/bn.js/|BN} for the stake amount.
     */
    getStakeAmount(): BN;
    /**
     * Returns a {@link https://github.com/feross/buffer|Buffer} for the stake amount.
     */
    getStakeAmountBuffer(): Buffer;
    /**
     * Returns the array of outputs being staked.
     */
    getStakeOuts(): TransferableOutput[];
    /**
     * Should match stakeAmount. Used in sanity checking.
     */
    getStakeOutsTotal(): BN;
    /**
     * Returns a {@link https://github.com/feross/buffer|Buffer} for the reward address.
     */
    getRewardOwners(): ParseableOutput;
    getTotalOuts(): TransferableOutput[];
    fromBuffer(bytes: Buffer, offset?: number): number;
    /**
     * Returns a {@link https://github.com/feross/buffer|Buffer} representation of the [[AddDelegatorTx]].
     */
    toBuffer(): Buffer;
    clone(): this;
    create(...args: any[]): this;
    /**
     * Class representing an unsigned AddDelegatorTx transaction.
     *
     * @param networkID Optional. Networkid, [[DefaultNetworkID]]
     * @param blockchainID Optional. Blockchainid, default Buffer.alloc(32, 16)
     * @param outs Optional. Array of the [[TransferableOutput]]s
     * @param ins Optional. Array of the [[TransferableInput]]s
     * @param memo Optional. {@link https://github.com/feross/buffer|Buffer} for the memo field
     * @param nodeID Optional. The node ID of the validator being added.
     * @param startTime Optional. The Unix time when the validator starts validating the Primary Network.
     * @param endTime Optional. The Unix time when the validator stops validating the Primary Network (and staked AVAX is returned).
     * @param stakeAmount Optional. The amount of nAVAX the validator is staking.
     * @param stakeOuts Optional. The outputs used in paying the stake.
     * @param rewardOwners Optional. The [[ParseableOutput]] containing a [[SECPOwnerOutput]] for the rewards.
     */
    constructor(networkID?: number, blockchainID?: Buffer, outs?: TransferableOutput[], ins?: TransferableInput[], memo?: Buffer, nodeID?: Buffer, startTime?: BN, endTime?: BN, stakeAmount?: BN, stakeOuts?: TransferableOutput[], rewardOwners?: ParseableOutput);
}
//# sourceMappingURL=adddelegatortx.d.ts.map

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


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