use of com.github.rosklyar.client.transaction.domain.NemAnnounceResult in project nem-library by rosklyar.
the class SecureTransactionClient method removeCosignatoriesFromMultisigAccount.
@Override
public NemAnnounceResult removeCosignatoriesFromMultisigAccount(String privateKey, List<String> cosignatories, int relativeChange, String multisigPublicKey, int timeToLiveInSeconds) {
Signer signer = new DefaultSigner(privateKey);
int currentTime = nodeClient.extendedInfo().nisInfo.currentTime;
List<Modification> modifications = cosignatories.stream().map(cosignatory -> new Modification(REMOVE_COSIGNATORY.type, cosignatory)).collect(toList());
return modifyMultisigAccountTransaction(signer, modifications, relativeChange, multisigPublicKey, currentTime, timeToLiveInSeconds);
}
use of com.github.rosklyar.client.transaction.domain.NemAnnounceResult in project nem-library by rosklyar.
the class TransactionClientTest method createMultisigAccount.
@Test
void createMultisigAccount() {
NemAnnounceResult nemAnnounceResult = transactionClient.createMultisigAccount("1ff5c6eaabedc8c95510635cabf75837e72da536127742f32873a7cc096ca74b", newArrayList("7f38d345234f7cdb12acc6f0a0251804362686d66a321f83568f704feef7adae", "6bbc0fe4e79fe1324f6877c573fdcba8d312883af87fec7e436b2e3894ad8545"), 2, 3600);
assertEquals(1, nemAnnounceResult.code);
}
use of com.github.rosklyar.client.transaction.domain.NemAnnounceResult in project nem-library by rosklyar.
the class TransactionClientTest method changeMosaicSupply.
@Test
void changeMosaicSupply() {
NemAnnounceResult nemAnnounceResult = transactionClient.changeMosaicSupply("fcf0dadc958510dca65651df81aa22c82b2bfe5b29bf8dfb92816bc5f1f11a54", new MosaicId("library", "somecoin1"), SupplyType.INCREASE, 1000000, 3600);
assertEquals(1, nemAnnounceResult.code);
}
use of com.github.rosklyar.client.transaction.domain.NemAnnounceResult in project nem-library by rosklyar.
the class TransactionClientTest method addCosignatoryToMultisigAccount.
@Test
void addCosignatoryToMultisigAccount() {
NemAnnounceResult nemAnnounceResult = transactionClient.addCosignatoriesToMultisigAccount("2ee2a08ad2ebc1371330c9977d15e52f482aa514554e085bec5ed076e8b11581", newArrayList("caf46cc7e7c6a91c782b4a74d4c28fcf872e8a111d2662fc0d3080e1bb32b3f5"), 1, "d9728f3002d6292d54aa2e5c75f1e72bb7f7b800645c46e91171935285e77747", 3600);
assertEquals(1, nemAnnounceResult.code);
assertNotNull(nemAnnounceResult.innerTransactionHash.data);
NemAnnounceResult cosigningResult = transactionClient.cosignTransaction("fcf0dadc958510dca65651df81aa22c82b2bfe5b29bf8dfb92816bc5f1f11a54", nemAnnounceResult.innerTransactionHash.data, "TD4F657BT4MDBAJXMOZR37MN5T2CRXQW66MPSONE", 3600);
assertEquals(1, cosigningResult.code);
}
use of com.github.rosklyar.client.transaction.domain.NemAnnounceResult in project nem-library by rosklyar.
the class TransactionClientTest method multisigImportanceTransfer.
@Test
void multisigImportanceTransfer() {
NemAnnounceResult nemAnnounceResult = transactionClient.multisigImportanceTransfer("2ee2a08ad2ebc1371330c9977d15e52f482aa514554e085bec5ed076e8b11581", ACTIVATE, "82bfa081e42631c0edc1f16b7a5b0534a5b2e4b88cbce709c623a70192e93b7a", "d9728f3002d6292d54aa2e5c75f1e72bb7f7b800645c46e91171935285e77747", 3600);
assertEquals(1, nemAnnounceResult.code);
}
Aggregations