Exemplo n.º 1
0
 @Override
 public SolidityContract createExistingContractFromSrc(
     String soliditySrc, String contractName, byte[] contractAddress) {
   SolidityContractImpl contract = createContract(soliditySrc, contractName);
   contract.setAddress(contractAddress);
   return contract;
 }
Exemplo 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;
 }
Exemplo n.º 3
0
 @Override
 public SolidityContract createExistingContractFromABI(String ABI, byte[] contractAddress) {
   SolidityContractImpl contract = new SolidityContractImpl(ABI);
   contract.setAddress(contractAddress);
   return contract;
 }