PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@bitgo/sdk-coin-hbar/node_modules/@hashgraph/sdk/lib
Просмотр файла: PrngTransaction.d.ts
/**
* @typedef {import("@hashgraph/proto").proto.ITransaction} HashgraphProto.proto.ITransaction
* @typedef {import("@hashgraph/proto").proto.Transaction} HashgraphProto.proto.Transaction
* @typedef {import("@hashgraph/proto").proto.ISignedTransaction} HashgraphProto.proto.ISignedTransaction
* @typedef {import("@hashgraph/proto").proto.SignedTransaction} HashgraphProto.proto.SignedTransaction
* @typedef {import("@hashgraph/proto").proto.IUtilPrngTransactionBody } HashgraphProto.proto.IUtilPrngTransactionBody
* @typedef {import("@hashgraph/proto").proto.UtilPrngTransactionBody} HashgraphProto.proto.UtilPrngTransactionBody
* @typedef {import("@hashgraph/proto").proto.ITransactionResponse} HashgraphProto.proto.TransactionResponse
* @typedef {import("@hashgraph/proto").proto.TransactionBody} HashgraphProto.proto.TransactionBody
* @typedef {import("@hashgraph/proto").proto.ITransactionBody} HashgraphProto.proto.ITransactionBody
* @typedef {import("./account/AccountId.js").default} AccountId
* @typedef {import("./transaction/TransactionId.js").default} TransactionId
*/
/**
* @typedef {import("./client/Client.js").default<*, *>} Client
* @typedef {import("./channel/Channel.js").default} Channel
*/
/**
* Gets a pseudorandom 32-bit number. Not cryptographically secure. See HIP-351 https://hips.hedera.com/hip/hip-351
*/
export default class PrngTransaction extends Transaction {
/**
* @internal
* @param {HashgraphProto.proto.ITransaction[]} transactions
* @param {HashgraphProto.proto.ISignedTransaction[]} signedTransactions
* @param {TransactionId[]} transactionIds
* @param {AccountId[]} nodeIds
* @param {HashgraphProto.proto.ITransactionBody[]} bodies
* @returns {PrngTransaction}
*/
static _fromProtobuf(transactions: HashgraphProto.proto.ITransaction[], signedTransactions: HashgraphProto.proto.ISignedTransaction[], transactionIds: TransactionId[], nodeIds: AccountId[], bodies: HashgraphProto.proto.ITransactionBody[]): PrngTransaction;
/**
* @param {object} props
* @param {?number } [props.range]
*/
constructor(props?: {
range?: number | null | undefined;
});
/**
* @private
* @type {?number}
*/
private _range;
/**
* @param {number} newRange
* @returns {this}
*/
setRange(newRange: number): this;
get range(): number | null;
/**
* @override
* @protected
* @returns {HashgraphProto.proto.IUtilPrngTransactionBody}
*/
protected override _makeTransactionData(): HashgraphProto.proto.IUtilPrngTransactionBody;
}
export namespace HashgraphProto {
namespace proto {
type ITransaction = import("@hashgraph/proto").proto.ITransaction;
type Transaction = import("@hashgraph/proto").proto.Transaction;
type ISignedTransaction = import("@hashgraph/proto").proto.ISignedTransaction;
type SignedTransaction = import("@hashgraph/proto").proto.SignedTransaction;
type IUtilPrngTransactionBody = import("@hashgraph/proto").proto.IUtilPrngTransactionBody;
type UtilPrngTransactionBody = import("@hashgraph/proto").proto.UtilPrngTransactionBody;
type TransactionResponse = import("@hashgraph/proto").proto.ITransactionResponse;
type TransactionBody = import("@hashgraph/proto").proto.TransactionBody;
type ITransactionBody = import("@hashgraph/proto").proto.ITransactionBody;
}
}
export type AccountId = import("./account/AccountId.js").default;
export type TransactionId = import("./transaction/TransactionId.js").default;
export type Client = import("./client/Client.js").default<any, any>;
export type Channel = import("./channel/Channel.js").default;
import Transaction from "./transaction/Transaction.js";
Выполнить команду
Для локальной разработки. Не используйте в интернете!