use of org.eclipse.winery.accountability.blockchain.ethereum.generated.Authorization in project winery by eclipse.
the class ContractDeployer method deployAuthorization.
/**
* Deploys the authorization smart contract.
*
* @return Address of the smart Contract that was deployed
*/
public String deployAuthorization() throws Exception {
final StaticGasProvider provider = new DefaultGasProvider();
Authorization authorization = Authorization.deploy(web3j, credentials, provider).send();
LOGGER.debug("Provenance SC Address: " + authorization.getContractAddress());
return authorization.getContractAddress();
}
use of org.eclipse.winery.accountability.blockchain.ethereum.generated.Authorization in project winery by eclipse.
the class SmartContractProvider method buildAuthorizationSmartContract.
public static Authorization buildAuthorizationSmartContract(final Web3j web3j, final Credentials credentials, String smartContractAddress) throws BlockchainException {
final Authorization contract = Authorization.load(smartContractAddress, web3j, credentials, DefaultGasProvider.GAS_PRICE, DefaultGasProvider.GAS_LIMIT);
validateSmartContract(contract, smartContractAddress);
return contract;
}
Aggregations