Ejemplo n.º 1
0
 @Override
 public SolidityContract createExistingContractFromSrc(
     String soliditySrc, String contractName, byte[] contractAddress) {
   SolidityContractImpl contract = createContract(soliditySrc, contractName);
   contract.setAddress(contractAddress);
   return contract;
 }
Ejemplo n.º 2
0
 @Override
 public SolidityContract submitNewContract(String soliditySrc, String contractName) {
   SolidityContractImpl contract = createContract(soliditySrc, contractName);
   submitNewTx(
       new PendingTx(
           new byte[0], BigInteger.ZERO, Hex.decode(contract.getBinary()), contract, null));
   return contract;
 }
Ejemplo n.º 3
0
 @Override
 public SolidityContract createExistingContractFromABI(String ABI, byte[] contractAddress) {
   SolidityContractImpl contract = new SolidityContractImpl(ABI);
   contract.setAddress(contractAddress);
   return contract;
 }