Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions src/sdk/main/include/TokenCreateTransaction.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class TokenCreateTransaction : public Transaction<TokenCreateTransaction>
*
* @param name The desired name for the new token.
* @return A reference to this TokenCreateTransaction with the newly-set token name.
* @throws IllegalStateException If this TokenCreateTransaction is frozen.
*/
TokenCreateTransaction& setTokenName(std::string_view name);

Expand All @@ -74,6 +75,7 @@ class TokenCreateTransaction : public Transaction<TokenCreateTransaction>
*
* @param symbol The desired symbol for the new token.
* @return A reference to this TokenCreateTransaction with the newly-set token symbol.
* @throws IllegalStateException If this TokenCreateTransaction is frozen.
*/
TokenCreateTransaction& setTokenSymbol(std::string_view symbol);

Expand All @@ -83,6 +85,7 @@ class TokenCreateTransaction : public Transaction<TokenCreateTransaction>
*
* @param decimals The desired number of decimals for the new token.
* @return A reference to this TokenCreateTransaction with the newly-set number of decimals.
* @throws IllegalStateException If this TokenCreateTransaction is frozen.
*/
TokenCreateTransaction& setDecimals(uint32_t decimals);

Expand All @@ -92,6 +95,7 @@ class TokenCreateTransaction : public Transaction<TokenCreateTransaction>
*
* @param amount The desired initial supply of the new token.
* @return A reference to this TokenCreateTransaction with the newly-set initial supply.
* @throws IllegalStateException If this TokenCreateTransaction is frozen.
*/
TokenCreateTransaction& setInitialSupply(const uint64_t& amount);

Expand All @@ -100,6 +104,7 @@ class TokenCreateTransaction : public Transaction<TokenCreateTransaction>
*
* @param accountId The ID of the desired treasury account for the new token.
* @return A reference to this TokenCreateTransaction with the newly-set treasury account ID.
* @throws IllegalStateException If this TokenCreateTransaction is frozen.
*/
TokenCreateTransaction& setTreasuryAccountId(const AccountId& accountId);

Expand All @@ -108,6 +113,7 @@ class TokenCreateTransaction : public Transaction<TokenCreateTransaction>
*
* @param key The desired admin key for the new token.
* @return A reference to this TokenCreateTransaction with the newly-set admin key.
* @throws IllegalStateException If this TokenCreateTransaction is frozen.
*/
TokenCreateTransaction& setAdminKey(const std::shared_ptr<Key>& key);

Expand All @@ -116,6 +122,7 @@ class TokenCreateTransaction : public Transaction<TokenCreateTransaction>
*
* @param key The desired KYC key for the new token.
* @return A reference to this TokenCreateTransaction with the newly-set KYC key.
* @throws IllegalStateException If this TokenCreateTransaction is frozen.
*/
TokenCreateTransaction& setKycKey(const std::shared_ptr<Key>& key);

Expand All @@ -124,6 +131,7 @@ class TokenCreateTransaction : public Transaction<TokenCreateTransaction>
*
* @param key The desired freeze key for the new token.
* @return A reference to this TokenCreateTransaction with the newly-set freeze key.
* @throws IllegalStateException If this TokenCreateTransaction is frozen.
*/
TokenCreateTransaction& setFreezeKey(const std::shared_ptr<Key>& key);

Expand All @@ -132,6 +140,7 @@ class TokenCreateTransaction : public Transaction<TokenCreateTransaction>
*
* @param key The desired wipe key for the new token.
* @return A reference to this TokenCreateTransaction with the newly-set wipe key.
* @throws IllegalStateException If this TokenCreateTransaction is frozen.
*/
TokenCreateTransaction& setWipeKey(const std::shared_ptr<Key>& key);

Expand All @@ -140,6 +149,7 @@ class TokenCreateTransaction : public Transaction<TokenCreateTransaction>
*
* @param key The desired supply key for the new token.
* @return A reference to this TokenCreateTransaction with the newly-set supply key.
* @throws IllegalStateException If this TokenCreateTransaction is frozen.
*/
TokenCreateTransaction& setSupplyKey(const std::shared_ptr<Key>& key);

Expand All @@ -148,6 +158,7 @@ class TokenCreateTransaction : public Transaction<TokenCreateTransaction>
*
* @param freeze The desired default freeze status for the new token.
* @return A reference to this TokenCreateTransaction with the newly-set default freeze status.
* @throws IllegalStateException If this TokenCreateTransaction is frozen.
*/
TokenCreateTransaction& setFreezeDefault(bool freeze);

Expand All @@ -162,6 +173,7 @@ class TokenCreateTransaction : public Transaction<TokenCreateTransaction>
*
* @param expiration The desired expiration time for the new token.
* @return A reference to this TokenCreateTransaction with the newly-set default expiration time.
* @throws IllegalStateException If this TokenCreateTransaction is frozen.
*/
TokenCreateTransaction& setExpirationTime(const std::chrono::system_clock::time_point& expiration);

Expand All @@ -170,6 +182,7 @@ class TokenCreateTransaction : public Transaction<TokenCreateTransaction>
*
* @param accountId The ID of the desired auto-renew account for the new token.
* @return A reference to this TokenCreateTransaction with the newly-set auto-renew account ID.
* @throws IllegalStateException If this TokenCreateTransaction is frozen.
*/
TokenCreateTransaction& setAutoRenewAccountId(const AccountId& accountId);

Expand All @@ -181,6 +194,7 @@ class TokenCreateTransaction : public Transaction<TokenCreateTransaction>
*
* @param period The desired auto-renew period for the new token.
* @return A reference to this TokenCreateTransaction with the newly-set auto-renew period.
* @throws IllegalStateException If this TokenCreateTransaction is frozen.
*/
TokenCreateTransaction& setAutoRenewPeriod(const std::chrono::system_clock::duration& period);

Expand All @@ -189,6 +203,7 @@ class TokenCreateTransaction : public Transaction<TokenCreateTransaction>
*
* @param memo The desired memo for the new token.
* @return A reference to this TokenCreateTransaction with the newly-set memo.
* @throws IllegalStateException If this TokenCreateTransaction is frozen.
*/
TokenCreateTransaction& setTokenMemo(std::string_view memo);

Expand All @@ -197,6 +212,7 @@ class TokenCreateTransaction : public Transaction<TokenCreateTransaction>
*
* @param type The desired type for the new token.
* @return A reference to this TokenCreateTransaction with the newly-set token type.
* @throws IllegalStateException If this TokenCreateTransaction is frozen.
*/
TokenCreateTransaction& setTokenType(TokenType type);

Expand All @@ -205,6 +221,7 @@ class TokenCreateTransaction : public Transaction<TokenCreateTransaction>
*
* @param type The desired supply type for the new token.
* @return A reference to this TokenCreateTransaction with the newly-set supply type.
* @throws IllegalStateException If this TokenCreateTransaction is frozen.
*/
TokenCreateTransaction& setSupplyType(TokenSupplyType type);

Expand All @@ -213,6 +230,7 @@ class TokenCreateTransaction : public Transaction<TokenCreateTransaction>
*
* @param max The desired maximum supply for the new token.
* @return A reference to this TokenCreateTransaction with the newly-set maximum supply.
* @throws IllegalStateException If this TokenCreateTransaction is frozen.
*/
TokenCreateTransaction& setMaxSupply(const uint64_t& max);

Expand All @@ -221,6 +239,7 @@ class TokenCreateTransaction : public Transaction<TokenCreateTransaction>
*
* @param key The desired fee schedule key for the new token.
* @return A reference to this TokenCreateTransaction with the newly-set fee schedule key.
* @throws IllegalStateException If this TokenCreateTransaction is frozen.
*/
TokenCreateTransaction& setFeeScheduleKey(const std::shared_ptr<Key>& key);

Expand All @@ -230,6 +249,7 @@ class TokenCreateTransaction : public Transaction<TokenCreateTransaction>
* @param fees The desired custom fees to be assessed during a TransferTransaction that transfers units of the new
* token.
* @return A reference to this TokenCreateTransaction with the newly-set fee custom fees.
* @throws IllegalStateException If this TokenCreateTransaction is frozen.
*/
TokenCreateTransaction& setCustomFees(const std::vector<std::shared_ptr<CustomFee>>& fees);

Expand All @@ -238,6 +258,7 @@ class TokenCreateTransaction : public Transaction<TokenCreateTransaction>
*
* @param key The desired pause key for the new token.
* @return A reference to this TokenCreateTransaction with the newly-set pause key.
* @throws IllegalStateException If this TokenCreateTransaction is frozen.
*/
TokenCreateTransaction& setPauseKey(const std::shared_ptr<Key>& key);

Expand All @@ -246,6 +267,7 @@ class TokenCreateTransaction : public Transaction<TokenCreateTransaction>
*
* @param metadata The desired metadata for the new token.
* @return A reference to this TokenCreateTransaction with the newly-set metadata.
* @throws IllegalStateException If this TokenCreateTransaction is frozen.
*/
TokenCreateTransaction& setMetadata(const std::vector<std::byte>& metadata);

Expand All @@ -254,6 +276,7 @@ class TokenCreateTransaction : public Transaction<TokenCreateTransaction>
*
* @param key The desired metadata key for the new token.
* @return A reference to this TokenCreateTransaction with the newly-set metadata key.
* @throws IllegalStateException If this TokenCreateTransaction is frozen.
*/
TokenCreateTransaction& setMetadataKey(const std::shared_ptr<Key>& metadataKey);

Expand Down
Loading