UNPKG

@hashgraph/sdk

Version:
111 lines (110 loc) 4.94 kB
/** * @typedef {object} ProtoSignaturePair * @property {(Uint8Array | null)=} pubKeyPrefix * @property {(Uint8Array | null)=} ed25519 */ /** * @typedef {object} ProtoSigMap * @property {(ProtoSignaturePair[] | null)=} sigPair */ /** * @typedef {object} ProtoSignedTransaction * @property {(Uint8Array | null)=} bodyBytes * @property {(ProtoSigMap | null)=} sigMap */ /** * @namespace proto * @typedef {import("@hiero-ledger/proto").proto.ITransaction} HieroProto.proto.ITransaction * @typedef {import("@hiero-ledger/proto").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction * @typedef {import("@hiero-ledger/proto").proto.TransactionBody} HieroProto.proto.TransactionBody * @typedef {import("@hiero-ledger/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody * @typedef {import("@hiero-ledger/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse * @typedef {import("@hiero-ledger/proto").proto.IScheduleSignTransactionBody} HieroProto.proto.IScheduleSignTransactionBody * @typedef {import("@hiero-ledger/proto").proto.IAccountID} HieroProto.proto.IAccountID * @typedef {import("@hiero-ledger/proto").proto.ISignatureMap} HieroProto.proto.ISignatureMap */ /** * @typedef {import("bignumber.js").default} BigNumber * @typedef {import("@hiero-ledger/cryptography").Key} Key * @typedef {import("../channel/Channel.js").default} Channel * @typedef {import("../client/Client.js").default<*, *>} Client * @typedef {import("../Timestamp.js").default} Timestamp * @typedef {import("../transaction/TransactionId.js").default} TransactionId * @typedef {import("../account/AccountId.js").default} AccountId * @typedef {import("@hiero-ledger/cryptography").PublicKey} PublicKey */ /** * Create a new Hedera™ crypto-currency account. */ export default class ScheduleSignTransaction extends Transaction { /** * @internal * @param {HieroProto.proto.ITransaction[]} transactions * @param {HieroProto.proto.ISignedTransaction[]} signedTransactions * @param {TransactionId[]} transactionIds * @param {AccountId[]} nodeIds * @param {HieroProto.proto.ITransactionBody[]} bodies * @returns {ScheduleSignTransaction} */ static _fromProtobuf(transactions: HieroProto.proto.ITransaction[], signedTransactions: HieroProto.proto.ISignedTransaction[], transactionIds: TransactionId[], nodeIds: AccountId[], bodies: HieroProto.proto.ITransactionBody[]): ScheduleSignTransaction; /** * @param {object} [props] * @param {ScheduleId | string} [props.scheduleId] */ constructor(props?: { scheduleId?: string | ScheduleId | undefined; }); /** * @private * @type {?ScheduleId} */ private _scheduleId; /** * @returns {?ScheduleId} */ get scheduleId(): ScheduleId | null; /** * @param {ScheduleId | string} scheduleId * @returns {this} */ setScheduleId(scheduleId: ScheduleId | string): this; /** * @override * @protected * @returns {HieroProto.proto.IScheduleSignTransactionBody} */ protected override _makeTransactionData(): HieroProto.proto.IScheduleSignTransactionBody; } export type ProtoSignaturePair = { pubKeyPrefix?: (Uint8Array | null) | undefined; ed25519?: (Uint8Array | null) | undefined; }; export type ProtoSigMap = { sigPair?: (ProtoSignaturePair[] | null) | undefined; }; export type ProtoSignedTransaction = { bodyBytes?: (Uint8Array | null) | undefined; sigMap?: (ProtoSigMap | null) | undefined; }; export namespace HieroProto { namespace proto { type ITransaction = import("@hiero-ledger/proto").proto.ITransaction; type ISignedTransaction = import("@hiero-ledger/proto").proto.ISignedTransaction; type TransactionBody = import("@hiero-ledger/proto").proto.TransactionBody; type ITransactionBody = import("@hiero-ledger/proto").proto.ITransactionBody; type ITransactionResponse = import("@hiero-ledger/proto").proto.ITransactionResponse; type IScheduleSignTransactionBody = import("@hiero-ledger/proto").proto.IScheduleSignTransactionBody; type IAccountID = import("@hiero-ledger/proto").proto.IAccountID; type ISignatureMap = import("@hiero-ledger/proto").proto.ISignatureMap; } } export type BigNumber = import("bignumber.js").default; export type Key = import("@hiero-ledger/cryptography").Key; export type Channel = import("../channel/Channel.js").default; export type Client = import("../client/Client.js").default<any, any>; export type Timestamp = import("../Timestamp.js").default; export type TransactionId = import("../transaction/TransactionId.js").default; export type AccountId = import("../account/AccountId.js").default; export type PublicKey = import("@hiero-ledger/cryptography").PublicKey; import Transaction from "../transaction/Transaction.js"; import ScheduleId from "./ScheduleId.js";