Package sg.dex.starfish.keeper
Class DexTransactionManager
java.lang.Object
org.web3j.tx.TransactionManager
sg.dex.starfish.keeper.DexTransactionManager
public class DexTransactionManager
extends org.web3j.tx.TransactionManager
-
Field Summary
Fields Modifier and Type Field Description protected org.web3j.utils.TxHashVerifier
txHashVerifier
-
Constructor Summary
Constructors Constructor Description DexTransactionManager(org.web3j.protocol.Web3j web3j, org.web3j.crypto.Credentials credentials, int attempts, long sleepDuration)
-
Method Summary
Modifier and Type Method Description protected BigInteger
getEstimatedGas(String to, String data)
protected BigInteger
getNonce()
org.web3j.protocol.core.methods.response.EthSendTransaction
sendTransaction(BigInteger gasPrice, BigInteger gasLimit, String to, String data, BigInteger value)
String
sign(org.web3j.crypto.RawTransaction rawTransaction)
org.web3j.protocol.core.methods.response.EthSendTransaction
signAndSend(org.web3j.crypto.RawTransaction rawTransaction)
-
Field Details
-
txHashVerifier
protected org.web3j.utils.TxHashVerifier txHashVerifier
-
-
Constructor Details
-
DexTransactionManager
public DexTransactionManager(org.web3j.protocol.Web3j web3j, org.web3j.crypto.Credentials credentials, int attempts, long sleepDuration)
-
-
Method Details
-
getNonce
- Throws:
IOException
-
getEstimatedGas
- Throws:
IOException
-
sendTransaction
public org.web3j.protocol.core.methods.response.EthSendTransaction sendTransaction(BigInteger gasPrice, BigInteger gasLimit, String to, String data, BigInteger value) throws IOException- Specified by:
sendTransaction
in classorg.web3j.tx.TransactionManager
- Throws:
IOException
-
sign
-
signAndSend
public org.web3j.protocol.core.methods.response.EthSendTransaction signAndSend(org.web3j.crypto.RawTransaction rawTransaction) throws IOException- Throws:
IOException
-