use of com.hedera.mirror.test.e2e.acceptance.response.NetworkTransactionResponse in project hedera-mirror-node by hashgraph.
the class TokenClient method updateTokenFeeSchedule.
public NetworkTransactionResponse updateTokenFeeSchedule(TokenId tokenId, ExpandedAccountId expandedAccountId, List<CustomFee> customFees) {
TokenFeeScheduleUpdateTransaction transaction = new TokenFeeScheduleUpdateTransaction().setCustomFees(customFees).setMaxTransactionFee(sdkClient.getMaxTransactionFee()).setTokenId(tokenId).setTransactionMemo(getMemo("Update token fee schedule"));
NetworkTransactionResponse response = executeTransactionAndRetrieveReceipt(transaction, KeyList.of(expandedAccountId.getPrivateKey()));
log.debug("Updated custom fees schedule for token {}", tokenId);
return response;
}
use of com.hedera.mirror.test.e2e.acceptance.response.NetworkTransactionResponse in project hedera-mirror-node by hashgraph.
the class TokenClient method unfreeze.
public NetworkTransactionResponse unfreeze(TokenId tokenId, AccountId accountId) {
TokenUnfreezeTransaction tokenUnfreezeTransaction = new TokenUnfreezeTransaction().setAccountId(accountId).setMaxTransactionFee(sdkClient.getMaxTransactionFee()).setTokenId(tokenId).setTransactionMemo(getMemo("Unfreeze token account"));
NetworkTransactionResponse response = executeTransactionAndRetrieveReceipt(tokenUnfreezeTransaction);
log.debug("Unfreeze account {} with token {}", accountId, tokenId);
return response;
}
use of com.hedera.mirror.test.e2e.acceptance.response.NetworkTransactionResponse in project hedera-mirror-node by hashgraph.
the class TokenClient method burnFungible.
public NetworkTransactionResponse burnFungible(TokenId tokenId, long amount) {
log.debug("Burn {} tokens from {}", amount, tokenId);
TokenBurnTransaction tokenBurnTransaction = getTokenBurnTransaction(tokenId).setAmount(amount).setTransactionMemo(getMemo("Token burn"));
NetworkTransactionResponse networkTransactionResponse = executeTransactionAndRetrieveReceipt(tokenBurnTransaction);
log.debug("Burned {} extra tokens for token {}", amount, tokenId);
return networkTransactionResponse;
}
use of com.hedera.mirror.test.e2e.acceptance.response.NetworkTransactionResponse in project hedera-mirror-node by hashgraph.
the class TokenClient method wipeFungible.
public NetworkTransactionResponse wipeFungible(TokenId tokenId, long amount, ExpandedAccountId expandedAccountId) {
log.debug("Wipe {} tokens from {}", amount, tokenId);
TokenWipeTransaction transaction = getTokenWipeTransaction(tokenId, expandedAccountId).setAmount(amount);
NetworkTransactionResponse networkTransactionResponse = executeTransactionAndRetrieveReceipt(transaction);
log.debug("Wiped {} tokens from account {}", amount, expandedAccountId.getAccountId());
return networkTransactionResponse;
}
use of com.hedera.mirror.test.e2e.acceptance.response.NetworkTransactionResponse in project hedera-mirror-node by hashgraph.
the class TokenClient method grantKyc.
public NetworkTransactionResponse grantKyc(TokenId tokenId, AccountId accountId) {
log.debug("Grant account {} with KYC for token {}", accountId, tokenId);
TokenGrantKycTransaction tokenGrantKycTransaction = new TokenGrantKycTransaction().setAccountId(accountId).setTokenId(tokenId).setMaxTransactionFee(sdkClient.getMaxTransactionFee()).setTransactionMemo(getMemo("Grant kyc for token"));
NetworkTransactionResponse networkTransactionResponse = executeTransactionAndRetrieveReceipt(tokenGrantKycTransaction);
log.debug("Granted Kyc for account {} with token {}", accountId, tokenId);
return networkTransactionResponse;
}
Aggregations