use of com.icodici.universa.contract.services.NMutableEnvironment in project universa by UniversaBlockchain.
the class Node method getFullEnvironment.
/**
* Get environment and follower contract by environment identifier.
*
* @param environmentId is environment subscription
*
* @return {@link Binder} with environment and follower contract
*/
public Binder getFullEnvironment(long environmentId) {
NImmutableEnvironment ime = getEnvironment(environmentId);
ime.setNameCache(nameCache);
NSmartContract contract = ime.getContract();
contract.setNodeInfoProvider(nodeInfoProvider);
NMutableEnvironment me = ime.getMutable();
if (me == null)
return Binder.EMPTY;
return Binder.of("follower", contract, "environment", me);
}
Aggregations