use of io.nem.symbol.sdk.api.RepositoryFactory in project nem2-sdk-java by nemtech.
the class MerkleLoaderIntegrationTest method mosaics.
public List<Arguments> mosaics() {
RepositoryFactory repositoryFactory = getRepositoryFactory(DEFAULT_REPOSITORY_TYPE);
MosaicRepository repository = repositoryFactory.createMosaicRepository();
return getArguments(repository, new MosaicSearchCriteria().order(ORDER_BY));
}
use of io.nem.symbol.sdk.api.RepositoryFactory in project nem2-sdk-java by nemtech.
the class MerkleLoaderIntegrationTest method mosaicRestriction.
public List<Arguments> mosaicRestriction() {
RepositoryFactory repositoryFactory = getRepositoryFactory(DEFAULT_REPOSITORY_TYPE);
RestrictionMosaicRepository repository = repositoryFactory.createRestrictionMosaicRepository();
return getArguments(repository, new MosaicRestrictionSearchCriteria());
}
use of io.nem.symbol.sdk.api.RepositoryFactory in project nem2-sdk-java by nemtech.
the class MerkleLoaderIntegrationTest method secretLocks.
public List<Arguments> secretLocks() {
RepositoryFactory repositoryFactory = getRepositoryFactory(DEFAULT_REPOSITORY_TYPE);
SecretLockRepository repository = repositoryFactory.createSecretLockRepository();
return getArguments(repository, new SecretLockSearchCriteria().order(ORDER_BY));
}
use of io.nem.symbol.sdk.api.RepositoryFactory in project nem2-sdk-java by nemtech.
the class MerkleLoaderIntegrationTest method multisigMerkles.
@Test
void multisigMerkles() {
RepositoryFactory repositoryFactory = getRepositoryFactory(DEFAULT_REPOSITORY_TYPE);
MultisigAccountInfo state = get(repositoryFactory.createMultisigRepository().getMultisigAccountInfo(Address.createFromRawAddress("TCFAEINOWAAPSGT2OCBCZYMH2Q3PGHQPEYTIUKI")));
StateProofServiceImpl service = new StateProofServiceImpl(repositoryFactory);
StateMerkleProof<MultisigAccountInfo> proof = get(service.multisig(state));
Assertions.assertTrue(proof.isValid(), "Invalid proof " + proof.getState().getAccountAddress().plain());
}
use of io.nem.symbol.sdk.api.RepositoryFactory in project nem2-sdk-java by nemtech.
the class MerkleLoaderIntegrationTest method accounts.
public List<Arguments> accounts() {
RepositoryFactory repositoryFactory = getRepositoryFactory(DEFAULT_REPOSITORY_TYPE);
AccountRepository repository = repositoryFactory.createAccountRepository();
return getArguments(repository, new AccountSearchCriteria().order(ORDER_BY));
}
Aggregations