Search in sources :

Example 1 with MockGlobalDynamicProps

use of com.hedera.services.config.MockGlobalDynamicProps in project hedera-services by hashgraph.

the class TxnRateFeeMultiplierSourceTest method setUp.

@BeforeEach
void setUp() {
    mockProps = new MockGlobalDynamicProps();
    subject = new TxnRateFeeMultiplierSource(mockProps, throttling);
}
Also used : MockGlobalDynamicProps(com.hedera.services.config.MockGlobalDynamicProps) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 2 with MockGlobalDynamicProps

use of com.hedera.services.config.MockGlobalDynamicProps in project hedera-services by hashgraph.

the class HederaLedgerLiveTest method setup.

@BeforeEach
void setup() {
    commonSetup();
    accountsLedger = new TransactionalLedger<>(AccountProperty.class, MerkleAccount::new, new HashMapBackingAccounts(), new ChangeSummaryManager<>());
    accountsLedger.setCommitInterceptor(accountsCommitInterceptor);
    nftsLedger = new TransactionalLedger<>(NftProperty.class, MerkleUniqueToken::new, new HashMapBackingNfts(), new ChangeSummaryManager<>());
    nftsLedger.setCommitInterceptor(uniqueTokensCommitInterceptor);
    tokenRelsLedger = new TransactionalLedger<>(TokenRelProperty.class, MerkleTokenRelStatus::new, new HashMapBackingTokenRels(), new ChangeSummaryManager<>());
    tokenRelsLedger.setKeyToString(BackingTokenRels::readableTokenRel);
    tokenRelsLedger.setCommitInterceptor(tokenRelsCommitInterceptor);
    tokenStore = new HederaTokenStore(ids, TestContextValidator.TEST_VALIDATOR, liveSideEffects, new MockGlobalDynamicProps(), tokenRelsLedger, nftsLedger, new HashMapBackingTokens());
    subject = new HederaLedger(tokenStore, ids, creator, validator, liveSideEffects, historian, dynamicProps, accountsLedger, transferLogic, autoCreationLogic);
    subject.setMutableEntityAccess(mock(MutableEntityAccess.class));
}
Also used : HashMapBackingTokenRels(com.hedera.services.ledger.backing.HashMapBackingTokenRels) NftProperty(com.hedera.services.ledger.properties.NftProperty) BackingTokenRels(com.hedera.services.ledger.backing.BackingTokenRels) HashMapBackingTokenRels(com.hedera.services.ledger.backing.HashMapBackingTokenRels) AccountProperty(com.hedera.services.ledger.properties.AccountProperty) TokenRelProperty(com.hedera.services.ledger.properties.TokenRelProperty) HashMapBackingNfts(com.hedera.services.ledger.backing.HashMapBackingNfts) HederaTokenStore(com.hedera.services.store.tokens.HederaTokenStore) ChangeSummaryManager(com.hedera.services.ledger.properties.ChangeSummaryManager) HashMapBackingTokens(com.hedera.services.ledger.backing.HashMapBackingTokens) MockGlobalDynamicProps(com.hedera.services.config.MockGlobalDynamicProps) HashMapBackingAccounts(com.hedera.services.ledger.backing.HashMapBackingAccounts) MutableEntityAccess(com.hedera.services.store.contracts.MutableEntityAccess) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

MockGlobalDynamicProps (com.hedera.services.config.MockGlobalDynamicProps)2 BeforeEach (org.junit.jupiter.api.BeforeEach)2 BackingTokenRels (com.hedera.services.ledger.backing.BackingTokenRels)1 HashMapBackingAccounts (com.hedera.services.ledger.backing.HashMapBackingAccounts)1 HashMapBackingNfts (com.hedera.services.ledger.backing.HashMapBackingNfts)1 HashMapBackingTokenRels (com.hedera.services.ledger.backing.HashMapBackingTokenRels)1 HashMapBackingTokens (com.hedera.services.ledger.backing.HashMapBackingTokens)1 AccountProperty (com.hedera.services.ledger.properties.AccountProperty)1 ChangeSummaryManager (com.hedera.services.ledger.properties.ChangeSummaryManager)1 NftProperty (com.hedera.services.ledger.properties.NftProperty)1 TokenRelProperty (com.hedera.services.ledger.properties.TokenRelProperty)1 MutableEntityAccess (com.hedera.services.store.contracts.MutableEntityAccess)1 HederaTokenStore (com.hedera.services.store.tokens.HederaTokenStore)1