PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@bitgo/sdk-coin-hbar/node_modules/@hashgraph/sdk/lib/token
Просмотр файла: TokenCreateTransaction.d.ts
/**
* @namespace proto
* @typedef {import("@hashgraph/proto").proto.ITransaction} HashgraphProto.proto.ITransaction
* @typedef {import("@hashgraph/proto").proto.ISignedTransaction} HashgraphProto.proto.ISignedTransaction
* @typedef {import("@hashgraph/proto").proto.TransactionBody} HashgraphProto.proto.TransactionBody
* @typedef {import("@hashgraph/proto").proto.ITransactionBody} HashgraphProto.proto.ITransactionBody
* @typedef {import("@hashgraph/proto").proto.ITransactionResponse} HashgraphProto.proto.ITransactionResponse
* @typedef {import("@hashgraph/proto").proto.ITokenCreateTransactionBody} HashgraphProto.proto.ITokenCreateTransactionBody
* @typedef {import("@hashgraph/proto").proto.ITokenID} HashgraphProto.proto.ITokenID
*/
/**
* @typedef {import("bignumber.js").default} BigNumber
* @typedef {import("../channel/Channel.js").default} Channel
* @typedef {import("../client/Client.js").default<*, *>} Client
* @typedef {import("../transaction/TransactionId.js").default} TransactionId
* @typedef {import("./CustomFee.js").default} CustomFee
*/
/**
* Create a new Hedera™ crypto-currency token.
*/
export default class TokenCreateTransaction 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 {TokenCreateTransaction}
*/
static _fromProtobuf(transactions: HashgraphProto.proto.ITransaction[], signedTransactions: HashgraphProto.proto.ISignedTransaction[], transactionIds: TransactionId[], nodeIds: AccountId[], bodies: HashgraphProto.proto.ITransactionBody[]): TokenCreateTransaction;
/**
* @param {object} [props]
* @param {string} [props.tokenName]
* @param {string} [props.tokenSymbol]
* @param {Long | number} [props.decimals]
* @param {Long | number} [props.initialSupply]
* @param {AccountId | string} [props.treasuryAccountId]
* @param {Key} [props.adminKey]
* @param {Key} [props.kycKey]
* @param {Key} [props.freezeKey]
* @param {Key} [props.pauseKey]
* @param {Key} [props.wipeKey]
* @param {Key} [props.supplyKey]
* @param {Key} [props.feeScheduleKey]
* @param {boolean} [props.freezeDefault]
* @param {AccountId | string} [props.autoRenewAccountId]
* @param {Timestamp | Date} [props.expirationTime]
* @param {Duration | Long | number} [props.autoRenewPeriod]
* @param {string} [props.tokenMemo]
* @param {CustomFee[]} [props.customFees]
* @param {TokenType} [props.tokenType]
* @param {TokenSupplyType} [props.supplyType]
* @param {Long | number} [props.maxSupply]
*/
constructor(props?: {
tokenName?: string | undefined;
tokenSymbol?: string | undefined;
decimals?: number | Long.Long | undefined;
initialSupply?: number | Long.Long | undefined;
treasuryAccountId?: string | AccountId | undefined;
adminKey?: Key | undefined;
kycKey?: Key | undefined;
freezeKey?: Key | undefined;
pauseKey?: Key | undefined;
wipeKey?: Key | undefined;
supplyKey?: Key | undefined;
feeScheduleKey?: Key | undefined;
freezeDefault?: boolean | undefined;
autoRenewAccountId?: string | AccountId | undefined;
expirationTime?: Date | Timestamp | undefined;
autoRenewPeriod?: number | Long.Long | Duration | undefined;
tokenMemo?: string | undefined;
customFees?: import("./CustomFee.js").default[] | undefined;
tokenType?: TokenType | undefined;
supplyType?: TokenSupplyType | undefined;
maxSupply?: number | Long.Long | undefined;
} | undefined);
/**
* @private
* @type {?string}
*/
private _tokenName;
/**
* @private
* @type {?string}
*/
private _tokenSymbol;
/**
* @private
* @type {?Long}
*/
private _decimals;
/**
* @private
* @type {?Long}
*/
private _initialSupply;
/**
* @private
* @type {?AccountId}
*/
private _treasuryAccountId;
/**
* @private
* @type {?Key}
*/
private _adminKey;
/**
* @private
* @type {?Key}
*/
private _kycKey;
/**
* @private
* @type {?Key}
*/
private _freezeKey;
/**
* @private
* @type {?Key}
*/
private _pauseKey;
/**
* @private
* @type {?Key}
*/
private _wipeKey;
/**
* @private
* @type {?Key}
*/
private _supplyKey;
/**
* @private
* @type {?Key}
*/
private _feeScheduleKey;
/**
* @private
* @type {?boolean}
*/
private _freezeDefault;
/**
* @private
* @type {?AccountId}
*/
private _autoRenewAccountId;
/**
* @private
* @type {?Timestamp}
*/
private _expirationTime;
/**
* @private
* @type {?Duration}
*/
private _autoRenewPeriod;
/**
* @private
* @type {?string}
*/
private _tokenMemo;
/**
* @private
* @type {CustomFee[]}
*/
private _customFees;
/**
* @private
* @type {?TokenType}
*/
private _tokenType;
/**
* @private
* @type {?TokenSupplyType}
*/
private _supplyType;
/**
* @private
* @type {?Long}
*/
private _maxSupply;
/**
* @returns {?string}
*/
get tokenName(): string | null;
/**
* @param {string} name
* @returns {this}
*/
setTokenName(name: string): this;
/**
* @returns {?string}
*/
get tokenSymbol(): string | null;
/**
* @param {string} symbol
* @returns {this}
*/
setTokenSymbol(symbol: string): this;
/**
* @returns {?Long}
*/
get decimals(): Long.Long | null;
/**
* @param {Long | number} decimals
* @returns {this}
*/
setDecimals(decimals: Long | number): this;
/**
* @returns {?Long}
*/
get initialSupply(): Long.Long | null;
/**
* @param {Long | number} initialSupply
* @returns {this}
*/
setInitialSupply(initialSupply: Long | number): this;
/**
* @returns {?AccountId}
*/
get treasuryAccountId(): AccountId | null;
/**
* @param {AccountId | string} id
* @returns {this}
*/
setTreasuryAccountId(id: AccountId | string): this;
/**
* @returns {?Key}
*/
get adminKey(): Key | null;
/**
* @param {Key} key
* @returns {this}
*/
setAdminKey(key: Key): this;
/**
* @returns {?Key}
*/
get kycKey(): Key | null;
/**
* @param {Key} key
* @returns {this}
*/
setKycKey(key: Key): this;
/**
* @returns {?Key}
*/
get freezeKey(): Key | null;
/**
* @param {Key} key
* @returns {this}
*/
setFreezeKey(key: Key): this;
/**
* @returns {?Key}
*/
get pauseKey(): Key | null;
/**
* @param {Key} key
* @returns {this}
*/
setPauseKey(key: Key): this;
/**
* @returns {?Key}
*/
get wipeKey(): Key | null;
/**
* @param {Key} key
* @returns {this}
*/
setWipeKey(key: Key): this;
/**
* @returns {?Key}
*/
get supplyKey(): Key | null;
/**
* @param {Key} key
* @returns {this}
*/
setSupplyKey(key: Key): this;
/**
* @returns {?Key}
*/
get feeScheduleKey(): Key | null;
/**
* @param {Key} key
* @returns {this}
*/
setFeeScheduleKey(key: Key): this;
/**
* @returns {?boolean}
*/
get freezeDefault(): boolean | null;
/**
* @param {boolean} freeze
* @returns {this}
*/
setFreezeDefault(freeze: boolean): this;
/**
* @returns {?Timestamp}
*/
get expirationTime(): Timestamp | null;
/**
* @param {Timestamp | Date} time
* @returns {this}
*/
setExpirationTime(time: Timestamp | Date): this;
/**
* @returns {?AccountId}
*/
get autoRenewAccountId(): AccountId | null;
/**
* @param {AccountId | string} id
* @returns {this}
*/
setAutoRenewAccountId(id: AccountId | string): this;
/**
* @returns {?Duration}
*/
get autoRenewPeriod(): Duration | null;
/**
* Set the auto renew period for this token.
*
* @param {Duration | Long | number} autoRenewPeriod
* @returns {this}
*/
setAutoRenewPeriod(autoRenewPeriod: Duration | Long | number): this;
/**
* @returns {?string}
*/
get tokenMemo(): string | null;
/**
* @param {string} memo
* @returns {this}
*/
setTokenMemo(memo: string): this;
/**
* @returns {CustomFee[]}
*/
get customFees(): import("./CustomFee.js").default[];
/**
* @param {CustomFee[]} customFees
* @returns {this}
*/
setCustomFees(customFees: CustomFee[]): this;
/**
* @returns {?TokenType}
*/
get tokenType(): TokenType | null;
/**
* @param {TokenType} tokenType
* @returns {this}
*/
setTokenType(tokenType: TokenType): this;
/**
* @returns {?TokenSupplyType}
*/
get supplyType(): TokenSupplyType | null;
/**
* @param {TokenSupplyType} supplyType
* @returns {this}
*/
setSupplyType(supplyType: TokenSupplyType): this;
/**
* @returns {?Long}
*/
get maxSupply(): Long.Long | null;
/**
* @param {Long | number} maxSupply
* @returns {this}
*/
setMaxSupply(maxSupply: Long | number): this;
/**
* @override
* @param {AccountId} accountId
*/
override _freezeWithAccountId(accountId: AccountId): void;
/**
* @param {?import("../client/Client.js").default<Channel, *>} client
* @returns {this}
*/
freezeWith(client: import("../client/Client.js").default<Channel, any> | null): this;
/**
* @override
* @protected
* @returns {HashgraphProto.proto.ITokenCreateTransactionBody}
*/
protected override _makeTransactionData(): HashgraphProto.proto.ITokenCreateTransactionBody;
}
export namespace HashgraphProto {
namespace proto {
type ITransaction = import("@hashgraph/proto").proto.ITransaction;
type ISignedTransaction = import("@hashgraph/proto").proto.ISignedTransaction;
type TransactionBody = import("@hashgraph/proto").proto.TransactionBody;
type ITransactionBody = import("@hashgraph/proto").proto.ITransactionBody;
type ITransactionResponse = import("@hashgraph/proto").proto.ITransactionResponse;
type ITokenCreateTransactionBody = import("@hashgraph/proto").proto.ITokenCreateTransactionBody;
type ITokenID = import("@hashgraph/proto").proto.ITokenID;
}
}
export type BigNumber = import("bignumber.js").default;
export type Channel = import("../channel/Channel.js").default;
export type Client = import("../client/Client.js").default<any, any>;
export type TransactionId = import("../transaction/TransactionId.js").default;
export type CustomFee = import("./CustomFee.js").default;
import Transaction from "../transaction/Transaction.js";
import Long from "long";
import AccountId from "../account/AccountId.js";
import Key from "../Key.js";
import Timestamp from "../Timestamp.js";
import Duration from "../Duration.js";
import TokenType from "./TokenType.js";
import TokenSupplyType from "./TokenSupplyType.js";
Выполнить команду
Для локальной разработки. Не используйте в интернете!