aboutsummaryrefslogtreecommitdiffstats
path: root/ethrpc/packages.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-08-18 16:17:45 +0800
committerobscuren <geffobscura@gmail.com>2014-08-18 16:17:45 +0800
commitb0ae61c6521003d7861d89944e1d426e939535bb (patch)
treeb3b332f939df52963341a5f05d4327b76b50009f /ethrpc/packages.go
parent793e666f36e512bceb0d92d0a8dfe1d7c508c0e2 (diff)
downloaddexon-b0ae61c6521003d7861d89944e1d426e939535bb.tar
dexon-b0ae61c6521003d7861d89944e1d426e939535bb.tar.gz
dexon-b0ae61c6521003d7861d89944e1d426e939535bb.tar.bz2
dexon-b0ae61c6521003d7861d89944e1d426e939535bb.tar.lz
dexon-b0ae61c6521003d7861d89944e1d426e939535bb.tar.xz
dexon-b0ae61c6521003d7861d89944e1d426e939535bb.tar.zst
dexon-b0ae61c6521003d7861d89944e1d426e939535bb.zip
Removed the "Get" part
Diffstat (limited to 'ethrpc/packages.go')
-rw-r--r--ethrpc/packages.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/ethrpc/packages.go b/ethrpc/packages.go
index bd7528415..f2e57fa49 100644
--- a/ethrpc/packages.go
+++ b/ethrpc/packages.go
@@ -74,7 +74,7 @@ func (p *EthereumApi) GetBlock(args *GetBlockArgs, reply *string) error {
return err
}
- block := p.pipe.GetBlockByHash(args.Hash)
+ block := p.pipe.BlockByHash(args.Hash)
*reply = NewSuccessRes(block)
return nil
}
@@ -129,7 +129,7 @@ func (p *EthereumApi) Transact(args *NewTxArgs, reply *string) error {
if err != nil {
return err
}
- result, _ := p.pipe.Transact(p.pipe.GetKey().PrivateKey, args.Recipient, args.Value, args.Gas, args.GasPrice, args.Body)
+ result, _ := p.pipe.Transact(p.pipe.Key().PrivateKey, args.Recipient, args.Value, args.Gas, args.GasPrice, args.Body)
*reply = NewSuccessRes(result)
return nil
}
@@ -140,13 +140,13 @@ func (p *EthereumApi) Create(args *NewTxArgs, reply *string) error {
return err
}
- result, _ := p.pipe.Transact(p.pipe.GetKey().PrivateKey, "", args.Value, args.Gas, args.GasPrice, args.Body)
+ result, _ := p.pipe.Transact(p.pipe.Key().PrivateKey, "", args.Value, args.Gas, args.GasPrice, args.Body)
*reply = NewSuccessRes(result)
return nil
}
func (p *EthereumApi) GetKey(args interface{}, reply *string) error {
- *reply = NewSuccessRes(p.pipe.GetKey())
+ *reply = NewSuccessRes(p.pipe.Key())
return nil
}
@@ -212,7 +212,7 @@ type GetPeerCountRes struct {
}
func (p *EthereumApi) GetPeerCount(args *interface{}, reply *string) error {
- *reply = NewSuccessRes(GetPeerCountRes{PeerCount: p.pipe.GetPeerCount()})
+ *reply = NewSuccessRes(GetPeerCountRes{PeerCount: p.pipe.PeerCount()})
return nil
}
@@ -221,7 +221,7 @@ type GetListeningRes struct {
}
func (p *EthereumApi) GetIsListening(args *interface{}, reply *string) error {
- *reply = NewSuccessRes(GetListeningRes{IsListening: p.pipe.GetIsListening()})
+ *reply = NewSuccessRes(GetListeningRes{IsListening: p.pipe.IsListening()})
return nil
}
@@ -230,7 +230,7 @@ type GetCoinbaseRes struct {
}
func (p *EthereumApi) GetCoinbase(args *interface{}, reply *string) error {
- *reply = NewSuccessRes(GetCoinbaseRes{Coinbase: p.pipe.GetCoinBase()})
+ *reply = NewSuccessRes(GetCoinbaseRes{Coinbase: p.pipe.CoinBase()})
return nil
}
@@ -239,7 +239,7 @@ type GetMiningRes struct {
}
func (p *EthereumApi) GetIsMining(args *interface{}, reply *string) error {
- *reply = NewSuccessRes(GetMiningRes{IsMining: p.pipe.GetIsMining()})
+ *reply = NewSuccessRes(GetMiningRes{IsMining: p.pipe.IsMining()})
return nil
}
@@ -248,7 +248,7 @@ func (p *EthereumApi) GetTxCountAt(args *GetTxCountArgs, reply *string) error {
if err != nil {
return err
}
- state := p.pipe.GetTxCountAt(args.Address)
+ state := p.pipe.TxCountAt(args.Address)
*reply = NewSuccessRes(GetTxCountRes{Nonce: state})
return nil
}