aboutsummaryrefslogtreecommitdiffstats
path: root/mobile
diff options
context:
space:
mode:
authorNicolas Guillaume <gunicolas@sqli.com>2017-05-22 23:12:36 +0800
committerNicolas Guillaume <gunicolas@sqli.com>2017-05-22 23:12:36 +0800
commitda636c53d6ebb2588b2a7b8b2cdaeecd06d7dcf0 (patch)
tree96c8b393eadc898acd3346215603d1da28966512 /mobile
parent2a41e76b39f8279400e42f3e0dc45f55457e2cff (diff)
downloadgo-tangerine-da636c53d6ebb2588b2a7b8b2cdaeecd06d7dcf0.tar
go-tangerine-da636c53d6ebb2588b2a7b8b2cdaeecd06d7dcf0.tar.gz
go-tangerine-da636c53d6ebb2588b2a7b8b2cdaeecd06d7dcf0.tar.bz2
go-tangerine-da636c53d6ebb2588b2a7b8b2cdaeecd06d7dcf0.tar.lz
go-tangerine-da636c53d6ebb2588b2a7b8b2cdaeecd06d7dcf0.tar.xz
go-tangerine-da636c53d6ebb2588b2a7b8b2cdaeecd06d7dcf0.tar.zst
go-tangerine-da636c53d6ebb2588b2a7b8b2cdaeecd06d7dcf0.zip
mobile: Allows mobile clients to create custom FilterQueries
Diffstat (limited to 'mobile')
-rw-r--r--mobile/ethereum.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/mobile/ethereum.go b/mobile/ethereum.go
index 94f707a87..68dc672db 100644
--- a/mobile/ethereum.go
+++ b/mobile/ethereum.go
@@ -123,3 +123,8 @@ func (fq *FilterQuery) GetFromBlock() *BigInt { return &BigInt{fq.query.FromB
func (fq *FilterQuery) GetToBlock() *BigInt { return &BigInt{fq.query.ToBlock} }
func (fq *FilterQuery) GetAddresses() *Addresses { return &Addresses{fq.query.Addresses} }
func (fq *FilterQuery) GetTopics() *Topics { return &Topics{fq.query.Topics} }
+
+func (fq *FilterQuery) SetFromBlock(fromBlock *BigInt) { fq.query.FromBlock = fromBlock.bigint }
+func (fq *FilterQuery) SetToBlock(toBlock *BigInt) { fq.query.ToBlock = toBlock.bigint }
+func (fq *FilterQuery) SetAddresses(addresses *Addresses) { fq.query.Addresses = addresses.addresses }
+func (fq *FilterQuery) SetTopics(topics *Topics) { fq.query.Topics = topics.topics }