Search in sources :

Example 11 with HederaAccountCustomizer

use of com.hedera.services.ledger.accounts.HederaAccountCustomizer in project hedera-services by hashgraph.

the class BackedSystemAccountsCreatorTest method withExpectedBalance.

private MerkleAccount withExpectedBalance(long balance) throws NegativeAccountBalanceException {
    MerkleAccount hAccount = new HederaAccountCustomizer().isReceiverSigRequired(false).proxy(EntityId.MISSING_ENTITY_ID).isDeleted(false).expiry(expiry).memo("").isSmartContract(false).key(genesisKey).autoRenewPeriod(expiry).customizing(new MerkleAccount());
    hAccount.setBalance(balance);
    return hAccount;
}
Also used : MerkleAccount(com.hedera.services.state.merkle.MerkleAccount) HederaAccountCustomizer(com.hedera.services.ledger.accounts.HederaAccountCustomizer)

Aggregations

HederaAccountCustomizer (com.hedera.services.ledger.accounts.HederaAccountCustomizer)11 MerkleAccount (com.hedera.services.state.merkle.MerkleAccount)4 Test (org.junit.jupiter.api.Test)4 JContractIDKey (com.hedera.services.legacy.core.jproto.JContractIDKey)2 JKey (com.hedera.services.legacy.core.jproto.JKey)2 AccountID (com.hederahashgraph.api.proto.java.AccountID)2 ContractID (com.hederahashgraph.api.proto.java.ContractID)2 TransactionReceipt (com.hederahashgraph.api.proto.java.TransactionReceipt)2 TransactionRecord (com.hederahashgraph.api.proto.java.TransactionRecord)2 RequestBuilder.getTransactionReceipt (com.hederahashgraph.builder.RequestBuilder.getTransactionReceipt)2 RequestBuilder.getTransactionRecord (com.hederahashgraph.builder.RequestBuilder.getTransactionRecord)2 ByteString (com.google.protobuf.ByteString)1 JKeyList (com.hedera.services.legacy.core.jproto.JKeyList)1 MerkleToken (com.hedera.services.state.merkle.MerkleToken)1 EntityId (com.hedera.services.state.submerkle.EntityId)1 ExpirableTxnRecord (com.hedera.services.state.submerkle.ExpirableTxnRecord)1 FcTokenAllowance (com.hedera.services.state.submerkle.FcTokenAllowance)1 FcTokenAllowanceId (com.hedera.services.state.submerkle.FcTokenAllowanceId)1 EntityNum (com.hedera.services.utils.EntityNum)1 SystemDeleteTransactionBody (com.hederahashgraph.api.proto.java.SystemDeleteTransactionBody)1