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);
}
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));
}
Aggregations