ClientTransactionManager.smali
.class public Lorg/web3j/tx/ClientTransactionManager;
.super Lorg/web3j/tx/TransactionManager;
.source "ClientTransactionManager.java"
# instance fields
.field private final fromAddress:Ljava/lang/String;
.field private final web3j:Lorg/web3j/protocol/Web3j;
# direct methods
.method public constructor <init>(Lorg/web3j/protocol/Web3j;Ljava/lang/String;)V
.registers 3
.prologue
.line 23
invoke-direct {p0, p1}, Lorg/web3j/tx/TransactionManager;-><init>(Lorg/web3j/protocol/Web3j;)V
.line 24
iput-object p1, p0, Lorg/web3j/tx/ClientTransactionManager;->web3j:Lorg/web3j/protocol/Web3j;
.line 25
iput-object p2, p0, Lorg/web3j/tx/ClientTransactionManager;->fromAddress:Ljava/lang/String;
.line 26
return-void
.end method
.method public constructor <init>(Lorg/web3j/protocol/Web3j;Ljava/lang/String;II)V
.registers 7
.prologue
.line 30
int-to-long v0, p4
invoke-direct {p0, p1, p3, v0, v1}, Lorg/web3j/tx/TransactionManager;-><init>(Lorg/web3j/protocol/Web3j;IJ)V
.line 31
iput-object p1, p0, Lorg/web3j/tx/ClientTransactionManager;->web3j:Lorg/web3j/protocol/Web3j;
.line 32
iput-object p2, p0, Lorg/web3j/tx/ClientTransactionManager;->fromAddress:Ljava/lang/String;
.line 33
return-void
.end method
.method public constructor <init>(Lorg/web3j/protocol/Web3j;Ljava/lang/String;Lorg/web3j/tx/response/TransactionReceiptProcessor;)V
.registers 4
.prologue
.line 38
invoke-direct {p0, p3}, Lorg/web3j/tx/TransactionManager;-><init>(Lorg/web3j/tx/response/TransactionReceiptProcessor;)V
.line 39
iput-object p1, p0, Lorg/web3j/tx/ClientTransactionManager;->web3j:Lorg/web3j/protocol/Web3j;
.line 40
iput-object p2, p0, Lorg/web3j/tx/ClientTransactionManager;->fromAddress:Ljava/lang/String;
.line 41
return-void
.end method
# virtual methods
.method public getFromAddress()Ljava/lang/String;
.registers 2
.prologue
.line 58
iget-object v0, p0, Lorg/web3j/tx/ClientTransactionManager;->fromAddress:Ljava/lang/String;
return-object v0
.end method
.method public sendTransaction(Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/lang/String;Ljava/lang/String;Ljava/math/BigInteger;)Lorg/web3j/protocol/core/methods/response/EthSendTransaction;
.registers 14
.prologue
.line 49
new-instance v0, Lorg/web3j/protocol/core/methods/request/Transaction;
iget-object v1, p0, Lorg/web3j/tx/ClientTransactionManager;->fromAddress:Ljava/lang/String;
const/4 v2, 0x0
move-object v3, p1
move-object v4, p2
move-object v5, p3
move-object v6, p5
move-object v7, p4
invoke-direct/range {v0 .. v7}, Lorg/web3j/protocol/core/methods/request/Transaction;-><init>(Ljava/lang/String;Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/lang/String;Ljava/math/BigInteger;Ljava/lang/String;)V
.line 52
iget-object v1, p0, Lorg/web3j/tx/ClientTransactionManager;->web3j:Lorg/web3j/protocol/Web3j;
invoke-interface {v1, v0}, Lorg/web3j/protocol/Web3j;->ethSendTransaction(Lorg/web3j/protocol/core/methods/request/Transaction;)Lorg/web3j/protocol/core/Request;
move-result-object v0
invoke-virtual {v0}, Lorg/web3j/protocol/core/Request;->send()Lorg/web3j/protocol/core/Response;
move-result-object v0
check-cast v0, Lorg/web3j/protocol/core/methods/response/EthSendTransaction;
return-object v0
.end method