public class TestBlockchain
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static org.ethereum.crypto.ECKey |
ACCOUNT_0 |
static org.ethereum.crypto.ECKey |
ACCOUNT_1 |
static org.ethereum.crypto.ECKey |
ACCOUNT_2 |
static org.ethereum.crypto.ECKey |
ACCOUNT_3 |
static org.ethereum.crypto.ECKey |
ACCOUNT_4 |
static org.ethereum.crypto.ECKey |
ACCOUNT_5 |
static org.ethereum.crypto.ECKey |
ACCOUNT_6 |
static org.ethereum.crypto.ECKey |
ACCOUNT_7 |
static org.ethereum.crypto.ECKey |
ACCOUNT_8 |
static org.ethereum.crypto.ECKey |
ACCOUNT_9 |
static org.web3j.crypto.Credentials |
CREDENTIAL_0 |
static org.web3j.crypto.Credentials |
CREDENTIAL_1 |
static org.web3j.crypto.Credentials |
CREDENTIAL_2 |
static org.web3j.crypto.Credentials |
CREDENTIAL_3 |
static org.web3j.crypto.Credentials |
CREDENTIAL_4 |
static org.web3j.crypto.Credentials |
CREDENTIAL_5 |
static org.web3j.crypto.Credentials |
CREDENTIAL_6 |
static org.web3j.crypto.Credentials |
CREDENTIAL_7 |
static org.web3j.crypto.Credentials |
CREDENTIAL_8 |
static org.web3j.crypto.Credentials |
CREDENTIAL_9 |
static java.lang.String |
DEFAULT_PATH |
static java.lang.Integer |
DEFAULT_PORT |
static java.math.BigInteger |
GAS_LIMIT |
static java.math.BigInteger |
GAS_PRICE |
| Constructor and Description |
|---|
TestBlockchain() |
| Modifier and Type | Method and Description |
|---|---|
java.math.BigInteger |
balance(org.web3j.crypto.Credentials credential) |
java.math.BigInteger |
balance(java.lang.String address) |
java.util.List<Event> |
call(org.web3j.crypto.Credentials credential,
DeployedContract contract,
java.math.BigInteger weiValue,
org.web3j.abi.datatypes.Function function) |
java.util.List<Event> |
call(org.web3j.crypto.Credentials credential,
DeployedContract contract,
java.math.BigInteger weiValue,
java.lang.String name,
java.lang.Object... parameters) |
java.util.List<Event> |
call(DeployedContract contract,
java.lang.String name,
java.lang.Object... parameters) |
java.util.List<org.web3j.abi.datatypes.Type> |
callConstant(org.web3j.crypto.Credentials credential,
java.lang.String contractAddress,
org.web3j.abi.datatypes.Function function) |
java.util.List<org.web3j.abi.datatypes.Type> |
callConstant(DeployedContract contract,
java.lang.String name,
java.lang.Object... parameters) |
static java.util.Map<java.lang.String,Contract> |
compile(java.io.File... contracts) |
static java.util.Map<java.lang.String,Contract> |
compile(java.io.File source) |
static java.util.Map<java.lang.String,Contract> |
compile(java.lang.String contractSrc) |
static java.util.Map<java.lang.String,Contract> |
compile(java.lang.String contractSrc,
java.util.Map<java.lang.String,java.lang.String> dependencies) |
static org.web3j.crypto.Credentials |
create(org.ethereum.crypto.ECKey ecKey) |
DeployedContract |
deploy(org.web3j.crypto.Credentials credential,
Contract contract) |
DeployedContract |
deploy(org.web3j.crypto.Credentials credential,
Contract contract,
java.math.BigInteger value) |
java.util.List<DeployedContract> |
deploy(org.web3j.crypto.Credentials credential,
Contract contract,
java.math.BigInteger value,
java.util.Map<java.lang.String,Contract> dependencies) |
java.util.List<DeployedContract> |
deploy(org.web3j.crypto.Credentials credential,
Contract contract,
java.math.BigInteger value,
java.util.Map<java.lang.String,Contract> dependencies,
java.util.List<DeployedContract> retVal) |
DeployedContract |
deploy(org.web3j.crypto.Credentials credential,
Contract contract,
java.util.Map<java.lang.String,Contract> dependencies) |
DeployedContract |
deploy(org.web3j.crypto.Credentials credential,
java.lang.String contractName,
java.util.Map<java.lang.String,Contract> contracts) |
static void |
main(java.lang.String[] args) |
java.math.BigInteger |
nonce(org.web3j.crypto.Credentials credentials) |
void |
reset() |
static TestBlockchain |
run() |
static TestBlockchain |
run(int port,
java.lang.String path) |
TestBlockchain |
start() |
TestBlockchain |
start(int port) |
TestBlockchain |
start(int port,
java.lang.String path) |
TestBlockchain |
start(int port,
org.web3j.protocol.Web3j web3j,
java.lang.String path) |
TestBlockchain |
stop() |
org.web3j.protocol.Web3j |
web3j() |
public static final org.ethereum.crypto.ECKey ACCOUNT_0
public static final org.ethereum.crypto.ECKey ACCOUNT_1
public static final org.ethereum.crypto.ECKey ACCOUNT_2
public static final org.ethereum.crypto.ECKey ACCOUNT_3
public static final org.ethereum.crypto.ECKey ACCOUNT_4
public static final org.ethereum.crypto.ECKey ACCOUNT_5
public static final org.ethereum.crypto.ECKey ACCOUNT_6
public static final org.ethereum.crypto.ECKey ACCOUNT_7
public static final org.ethereum.crypto.ECKey ACCOUNT_8
public static final org.ethereum.crypto.ECKey ACCOUNT_9
public static final org.web3j.crypto.Credentials CREDENTIAL_0
public static final org.web3j.crypto.Credentials CREDENTIAL_1
public static final org.web3j.crypto.Credentials CREDENTIAL_2
public static final org.web3j.crypto.Credentials CREDENTIAL_3
public static final org.web3j.crypto.Credentials CREDENTIAL_4
public static final org.web3j.crypto.Credentials CREDENTIAL_5
public static final org.web3j.crypto.Credentials CREDENTIAL_6
public static final org.web3j.crypto.Credentials CREDENTIAL_7
public static final org.web3j.crypto.Credentials CREDENTIAL_8
public static final org.web3j.crypto.Credentials CREDENTIAL_9
public static final java.lang.Integer DEFAULT_PORT
public static final java.lang.String DEFAULT_PATH
public static final java.math.BigInteger GAS_PRICE
public static final java.math.BigInteger GAS_LIMIT
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exceptionpublic static TestBlockchain run() throws java.lang.Exception
java.lang.Exceptionpublic static TestBlockchain run(int port, java.lang.String path) throws java.lang.Exception
java.lang.Exceptionpublic TestBlockchain start() throws java.lang.Exception
java.lang.Exceptionpublic TestBlockchain start(int port) throws java.lang.Exception
java.lang.Exceptionpublic TestBlockchain start(int port, java.lang.String path) throws java.lang.Exception
java.lang.Exceptionpublic TestBlockchain start(int port, org.web3j.protocol.Web3j web3j, java.lang.String path) throws java.lang.Exception
java.lang.Exceptionpublic void reset()
public TestBlockchain stop() throws java.lang.Exception
java.lang.Exceptionpublic org.web3j.protocol.Web3j web3j()
public java.math.BigInteger balance(org.web3j.crypto.Credentials credential)
throws java.io.IOException,
java.util.concurrent.ExecutionException,
java.lang.InterruptedException
java.io.IOExceptionjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedExceptionpublic java.math.BigInteger balance(java.lang.String address)
throws java.io.IOException,
java.util.concurrent.ExecutionException,
java.lang.InterruptedException
java.io.IOExceptionjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedExceptionpublic java.math.BigInteger nonce(org.web3j.crypto.Credentials credentials)
throws java.io.IOException,
java.util.concurrent.ExecutionException,
java.lang.InterruptedException
java.io.IOExceptionjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedExceptionpublic static org.web3j.crypto.Credentials create(org.ethereum.crypto.ECKey ecKey)
public java.util.List<org.web3j.abi.datatypes.Type> callConstant(DeployedContract contract, java.lang.String name, java.lang.Object... parameters) throws java.io.IOException, java.lang.reflect.InvocationTargetException, java.lang.NoSuchMethodException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.util.concurrent.ExecutionException, java.lang.InterruptedException
java.io.IOExceptionjava.lang.reflect.InvocationTargetExceptionjava.lang.NoSuchMethodExceptionjava.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedExceptionpublic java.util.List<org.web3j.abi.datatypes.Type> callConstant(org.web3j.crypto.Credentials credential,
java.lang.String contractAddress,
org.web3j.abi.datatypes.Function function)
throws java.io.IOException,
java.util.concurrent.ExecutionException,
java.lang.InterruptedException
java.io.IOExceptionjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedExceptionpublic java.util.List<Event> call(DeployedContract contract, java.lang.String name, java.lang.Object... parameters) throws java.lang.reflect.InvocationTargetException, java.lang.NoSuchMethodException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedException
java.lang.reflect.InvocationTargetExceptionjava.lang.NoSuchMethodExceptionjava.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionjava.io.IOExceptionjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedExceptionpublic java.util.List<Event> call(org.web3j.crypto.Credentials credential, DeployedContract contract, java.math.BigInteger weiValue, java.lang.String name, java.lang.Object... parameters) throws java.lang.reflect.InvocationTargetException, java.lang.NoSuchMethodException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedException
java.lang.reflect.InvocationTargetExceptionjava.lang.NoSuchMethodExceptionjava.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionjava.io.IOExceptionjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedExceptionpublic java.util.List<Event> call(org.web3j.crypto.Credentials credential, DeployedContract contract, java.math.BigInteger weiValue, org.web3j.abi.datatypes.Function function) throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedException
java.io.IOExceptionjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedExceptionpublic DeployedContract deploy(org.web3j.crypto.Credentials credential, Contract contract) throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedException
java.io.IOExceptionjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedExceptionpublic DeployedContract deploy(org.web3j.crypto.Credentials credential, java.lang.String contractName, java.util.Map<java.lang.String,Contract> contracts) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.io.IOException
java.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionjava.io.IOExceptionpublic DeployedContract deploy(org.web3j.crypto.Credentials credential, Contract contract, java.util.Map<java.lang.String,Contract> dependencies) throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedException
java.io.IOExceptionjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedExceptionpublic java.util.List<DeployedContract> deploy(org.web3j.crypto.Credentials credential, Contract contract, java.math.BigInteger value, java.util.Map<java.lang.String,Contract> dependencies) throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedException
java.io.IOExceptionjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedExceptionpublic java.util.List<DeployedContract> deploy(org.web3j.crypto.Credentials credential, Contract contract, java.math.BigInteger value, java.util.Map<java.lang.String,Contract> dependencies, java.util.List<DeployedContract> retVal) throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedException
java.io.IOExceptionjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedExceptionpublic DeployedContract deploy(org.web3j.crypto.Credentials credential, Contract contract, java.math.BigInteger value) throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedException
java.io.IOExceptionjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedExceptionpublic static java.util.Map<java.lang.String,Contract> compile(java.io.File source) throws java.io.IOException
java.io.IOExceptionpublic static java.util.Map<java.lang.String,Contract> compile(java.io.File... contracts) throws java.io.IOException
java.io.IOExceptionpublic static java.util.Map<java.lang.String,Contract> compile(java.lang.String contractSrc, java.util.Map<java.lang.String,java.lang.String> dependencies) throws java.io.IOException
java.io.IOExceptionpublic static java.util.Map<java.lang.String,Contract> compile(java.lang.String contractSrc) throws java.io.IOException
java.io.IOException