@Override public void onContractSubscriptionEvent(ContractSubscription.Event event) { if(event instanceof ContractSubscription.ApprovedEvent) { MutableEnvironment me = event.getEnvironment(); // recreate subscription: Contract newStoredItem = ((ContractSubscription.ApprovedEvent)event).getNewRevision(); putTrackingContract(newStoredItem); saveTrackingContractsToState(); // and save new updateSubscriptions(me); } else if(event instanceof ContractSubscription.RevokedEvent) { } }
slotContract.putTrackingContract(simpleContract);
slotContract.putTrackingContract(contractServer); Contract stepaU = InnerContractsService.createFreshU(100000000, new HashSet<>(Arrays.asList(TestKeys.publicKey(0)))); itemResult = testSpace.client.register(stepaU.getPackedTransaction(), 5000);
slotContract.putTrackingContract(contractServer); Contract stepaU = InnerContractsService.createFreshU(100000000, new HashSet<>(Arrays.asList(TestKeys.publicKey(0)))); itemResult = testSpace.client.register(stepaU.getPackedTransaction(), 5000);
slotContract.putTrackingContract(trackingContract); slotContract.seal(); paymentContract = getApprovedUContract();
slotContract.putTrackingContract(simpleContract); slotContract.seal();
slotContract.putTrackingContract(simpleContract); slotContract.seal(); slotContract.check();
slotContract.putTrackingContract(simpleContract); slotContract.seal(); refilledSlotContract.putTrackingContract(simpleContract2); refilledSlotContract.setNodeInfoProvider(nodeInfoProvider); refilledSlotContract.seal();
slotContract.putTrackingContract(simpleContract); slotContract.seal(); slotContract.check(); refilledSlotContract.putTrackingContract(simpleContract2); refilledSlotContract.setNodeInfoProvider(nodeInfoProvider); refilledSlotContract.seal();
slotContract.putTrackingContract(simpleContract); slotContract2.putTrackingContract(simpleContract);
slotContract.putTrackingContract(simpleContract); slotContract.seal(); newSlotContract.putTrackingContract(otherContract); newSlotContract.setNodeInfoProvider(nodeInfoProvider); newSlotContract.seal();
slotContract.putTrackingContract(simpleContract);
((SlotContract)smartContract).putTrackingContract(simpleContract); ((SlotContract)smartContract).setNodeInfoProvider(nodeInfoProvider); ((SlotContract)smartContract).setKeepRevisions(2); ((SlotContract)smartContract).putTrackingContract(simpleContract2); smartContract.seal(); smartContract.check(); ((SlotContract)smartContract).putTrackingContract(simpleContract3); smartContract.seal(); smartContract.check();
((SlotContract)smartContract).putTrackingContract(simpleContract); ((SlotContract)smartContract).setNodeInfoProvider(nodeInfoProvider); smartContract.addNewItems(paymentDecreased);
slotContract.putTrackingContract(simpleContract);
slotContract.putTrackingContract(simpleContract); slotContract.seal(); refilledSlotContract.putTrackingContract(simpleContract2); refilledSlotContract.setNodeInfoProvider(nodeInfoProvider); refilledSlotContract.seal();
slotContract.putTrackingContract(simpleContract); slotContract.seal(); slotContract.check(); refilledSlotContract.putTrackingContract(simpleContract2); refilledSlotContract.setNodeInfoProvider(nodeInfoProvider); refilledSlotContract.seal();
((SlotContract)smartContract).putTrackingContract(simpleContract); ((SlotContract)smartContract).setNodeInfoProvider(nodeInfoProvider); smartContract.addNewItems(paymentDecreased);
((SlotContract)smartContract).putTrackingContract(simpleContract); ((SlotContract)smartContract).setNodeInfoProvider(nodeInfoProvider); smartContract.addNewItems(paymentDecreased);
slotContract.putTrackingContract(simpleContract); slotContract.seal(); slotContract.check(); refilledSlotContract.putTrackingContract(simpleContract2); refilledSlotContract.setNodeInfoProvider(nodeInfoProvider); refilledSlotContract.seal();