public class ERC20
extends org.web3j.tx.Contract
Auto generated code.
Do not modify!
Please use the web3j command line tools, or the org.web3j.codegen.SolidityFunctionWrapperGenerator in the codegen module to update.
Generated with web3j version 4.1.1.
Modifier and Type | Class and Description |
---|---|
static class |
ERC20.ApprovalEventResponse |
static class |
ERC20.TransferEventResponse |
Modifier and Type | Field and Description |
---|---|
static org.web3j.abi.datatypes.Event |
APPROVAL_EVENT |
static java.lang.String |
FUNC_ALLOWANCE |
static java.lang.String |
FUNC_APPROVE |
static java.lang.String |
FUNC_BALANCEOF |
static java.lang.String |
FUNC_DECIMALS |
static java.lang.String |
FUNC_NAME |
static java.lang.String |
FUNC_SYMBOL |
static java.lang.String |
FUNC_TOTALSUPPLY |
static java.lang.String |
FUNC_TRANSFER |
static java.lang.String |
FUNC_TRANSFERFROM |
static org.web3j.abi.datatypes.Event |
TRANSFER_EVENT |
Modifier | Constructor and Description |
---|---|
protected |
ERC20(java.lang.String contractAddress,
org.web3j.protocol.Web3j web3j,
org.web3j.crypto.Credentials credentials,
java.math.BigInteger gasPrice,
java.math.BigInteger gasLimit)
Deprecated.
|
protected |
ERC20(java.lang.String contractAddress,
org.web3j.protocol.Web3j web3j,
org.web3j.crypto.Credentials credentials,
org.web3j.tx.gas.ContractGasProvider contractGasProvider) |
protected |
ERC20(java.lang.String contractAddress,
org.web3j.protocol.Web3j web3j,
org.web3j.tx.TransactionManager transactionManager,
java.math.BigInteger gasPrice,
java.math.BigInteger gasLimit)
Deprecated.
|
protected |
ERC20(java.lang.String contractAddress,
org.web3j.protocol.Web3j web3j,
org.web3j.tx.TransactionManager transactionManager,
org.web3j.tx.gas.ContractGasProvider contractGasProvider) |
Modifier and Type | Method and Description |
---|---|
org.web3j.protocol.core.RemoteCall<java.math.BigInteger> |
allowance(java.lang.String _owner,
java.lang.String _spender) |
io.reactivex.Flowable<ERC20.ApprovalEventResponse> |
approvalEventFlowable(org.web3j.protocol.core.DefaultBlockParameter startBlock,
org.web3j.protocol.core.DefaultBlockParameter endBlock) |
io.reactivex.Flowable<ERC20.ApprovalEventResponse> |
approvalEventFlowable(org.web3j.protocol.core.methods.request.EthFilter filter) |
org.web3j.protocol.core.RemoteCall<org.web3j.protocol.core.methods.response.TransactionReceipt> |
approve(java.lang.String _spender,
java.math.BigInteger _value) |
org.web3j.protocol.core.RemoteCall<java.math.BigInteger> |
balanceOf(java.lang.String _owner) |
org.web3j.protocol.core.RemoteCall<java.math.BigInteger> |
decimals() |
java.util.List<ERC20.ApprovalEventResponse> |
getApprovalEvents(org.web3j.protocol.core.methods.response.TransactionReceipt transactionReceipt) |
java.util.List<ERC20.TransferEventResponse> |
getTransferEvents(org.web3j.protocol.core.methods.response.TransactionReceipt transactionReceipt) |
static ERC20 |
load(java.lang.String contractAddress,
org.web3j.protocol.Web3j web3j,
org.web3j.crypto.Credentials credentials,
java.math.BigInteger gasPrice,
java.math.BigInteger gasLimit)
Deprecated.
|
static ERC20 |
load(java.lang.String contractAddress,
org.web3j.protocol.Web3j web3j,
org.web3j.crypto.Credentials credentials,
org.web3j.tx.gas.ContractGasProvider contractGasProvider) |
static ERC20 |
load(java.lang.String contractAddress,
org.web3j.protocol.Web3j web3j,
org.web3j.tx.TransactionManager transactionManager,
java.math.BigInteger gasPrice,
java.math.BigInteger gasLimit)
Deprecated.
|
static ERC20 |
load(java.lang.String contractAddress,
org.web3j.protocol.Web3j web3j,
org.web3j.tx.TransactionManager transactionManager,
org.web3j.tx.gas.ContractGasProvider contractGasProvider) |
org.web3j.protocol.core.RemoteCall<java.lang.String> |
name() |
org.web3j.protocol.core.RemoteCall<java.lang.String> |
symbol() |
org.web3j.protocol.core.RemoteCall<java.math.BigInteger> |
totalSupply() |
org.web3j.protocol.core.RemoteCall<org.web3j.protocol.core.methods.response.TransactionReceipt> |
transfer(java.lang.String _to,
java.math.BigInteger _value) |
io.reactivex.Flowable<ERC20.TransferEventResponse> |
transferEventFlowable(org.web3j.protocol.core.DefaultBlockParameter startBlock,
org.web3j.protocol.core.DefaultBlockParameter endBlock) |
io.reactivex.Flowable<ERC20.TransferEventResponse> |
transferEventFlowable(org.web3j.protocol.core.methods.request.EthFilter filter) |
org.web3j.protocol.core.RemoteCall<org.web3j.protocol.core.methods.response.TransactionReceipt> |
transferFrom(java.lang.String _from,
java.lang.String _to,
java.math.BigInteger _value) |
convertToNative, deploy, deploy, deploy, deploy, deployRemoteCall, deployRemoteCall, deployRemoteCall, deployRemoteCall, deployRemoteCall, deployRemoteCall, deployRemoteCall, deployRemoteCall, executeCallMultipleValueReturn, executeCallSingleValueReturn, executeCallSingleValueReturn, executeRemoteCallMultipleValueReturn, executeRemoteCallSingleValueReturn, executeRemoteCallSingleValueReturn, executeRemoteCallTransaction, executeRemoteCallTransaction, executeTransaction, extractEventParameters, extractEventParameters, extractEventParametersWithLog, extractEventParametersWithLog, getContractAddress, getContractBinary, getDeployedAddress, getGasPrice, getStaticDeployedAddress, getTransactionReceipt, isValid, resolveContractAddress, setContractAddress, setDefaultBlockParameter, setDeployedAddress, setGasPrice, setGasProvider, setTransactionReceipt, staticExtractEventParameters, staticExtractEventParametersWithLog
public static final java.lang.String FUNC_NAME
public static final java.lang.String FUNC_APPROVE
public static final java.lang.String FUNC_TOTALSUPPLY
public static final java.lang.String FUNC_TRANSFERFROM
public static final java.lang.String FUNC_DECIMALS
public static final java.lang.String FUNC_BALANCEOF
public static final java.lang.String FUNC_SYMBOL
public static final java.lang.String FUNC_TRANSFER
public static final java.lang.String FUNC_ALLOWANCE
public static final org.web3j.abi.datatypes.Event TRANSFER_EVENT
public static final org.web3j.abi.datatypes.Event APPROVAL_EVENT
@Deprecated protected ERC20(java.lang.String contractAddress, org.web3j.protocol.Web3j web3j, org.web3j.crypto.Credentials credentials, java.math.BigInteger gasPrice, java.math.BigInteger gasLimit)
protected ERC20(java.lang.String contractAddress, org.web3j.protocol.Web3j web3j, org.web3j.crypto.Credentials credentials, org.web3j.tx.gas.ContractGasProvider contractGasProvider)
@Deprecated protected ERC20(java.lang.String contractAddress, org.web3j.protocol.Web3j web3j, org.web3j.tx.TransactionManager transactionManager, java.math.BigInteger gasPrice, java.math.BigInteger gasLimit)
protected ERC20(java.lang.String contractAddress, org.web3j.protocol.Web3j web3j, org.web3j.tx.TransactionManager transactionManager, org.web3j.tx.gas.ContractGasProvider contractGasProvider)
public org.web3j.protocol.core.RemoteCall<java.lang.String> name()
public org.web3j.protocol.core.RemoteCall<org.web3j.protocol.core.methods.response.TransactionReceipt> approve(java.lang.String _spender, java.math.BigInteger _value)
public org.web3j.protocol.core.RemoteCall<java.math.BigInteger> totalSupply()
public org.web3j.protocol.core.RemoteCall<org.web3j.protocol.core.methods.response.TransactionReceipt> transferFrom(java.lang.String _from, java.lang.String _to, java.math.BigInteger _value)
public org.web3j.protocol.core.RemoteCall<java.math.BigInteger> decimals()
public org.web3j.protocol.core.RemoteCall<java.math.BigInteger> balanceOf(java.lang.String _owner)
public org.web3j.protocol.core.RemoteCall<java.lang.String> symbol()
public org.web3j.protocol.core.RemoteCall<org.web3j.protocol.core.methods.response.TransactionReceipt> transfer(java.lang.String _to, java.math.BigInteger _value)
public org.web3j.protocol.core.RemoteCall<java.math.BigInteger> allowance(java.lang.String _owner, java.lang.String _spender)
public java.util.List<ERC20.TransferEventResponse> getTransferEvents(org.web3j.protocol.core.methods.response.TransactionReceipt transactionReceipt)
public io.reactivex.Flowable<ERC20.TransferEventResponse> transferEventFlowable(org.web3j.protocol.core.methods.request.EthFilter filter)
public io.reactivex.Flowable<ERC20.TransferEventResponse> transferEventFlowable(org.web3j.protocol.core.DefaultBlockParameter startBlock, org.web3j.protocol.core.DefaultBlockParameter endBlock)
public java.util.List<ERC20.ApprovalEventResponse> getApprovalEvents(org.web3j.protocol.core.methods.response.TransactionReceipt transactionReceipt)
public io.reactivex.Flowable<ERC20.ApprovalEventResponse> approvalEventFlowable(org.web3j.protocol.core.methods.request.EthFilter filter)
public io.reactivex.Flowable<ERC20.ApprovalEventResponse> approvalEventFlowable(org.web3j.protocol.core.DefaultBlockParameter startBlock, org.web3j.protocol.core.DefaultBlockParameter endBlock)
@Deprecated public static ERC20 load(java.lang.String contractAddress, org.web3j.protocol.Web3j web3j, org.web3j.crypto.Credentials credentials, java.math.BigInteger gasPrice, java.math.BigInteger gasLimit)
@Deprecated public static ERC20 load(java.lang.String contractAddress, org.web3j.protocol.Web3j web3j, org.web3j.tx.TransactionManager transactionManager, java.math.BigInteger gasPrice, java.math.BigInteger gasLimit)
public static ERC20 load(java.lang.String contractAddress, org.web3j.protocol.Web3j web3j, org.web3j.crypto.Credentials credentials, org.web3j.tx.gas.ContractGasProvider contractGasProvider)
public static ERC20 load(java.lang.String contractAddress, org.web3j.protocol.Web3j web3j, org.web3j.tx.TransactionManager transactionManager, org.web3j.tx.gas.ContractGasProvider contractGasProvider)