web3 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated_web3_methods.rb +349 -291
  3. metadata +45 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 63c7ce53e8c9e4f4d82e0eac0befdb315a0efe85
4
- data.tar.gz: eaf548ce0b2a526e5f88bda39d1c32ab38193b3f
3
+ metadata.gz: 5e013a80a256500c122bf6e6c6a403abeb5d27a9
4
+ data.tar.gz: 77790b0d919fb7ec0e361bb7d04175e025e0f48d
5
5
  SHA512:
6
- metadata.gz: 74c4dc5fcb2b1177344ca5b65cab9b8fe5f9a6a430db01313e56ad1f500eb805ff32ad7a574079574dd4ce5b4c26729a920e5c62c8816f0c36811b08a0470fa1
7
- data.tar.gz: 5dd86bc88a83b06effbb724a450c10d930e2e66127268bb070d1eafe20c6b3954eb418ccf11bc9231d856afd43c0e6a5c9010351edc0629d3fe6a4a1c6029374
6
+ metadata.gz: f8b8444cace05bfb205c72e816f97970209fb6631f220d703f8da30578980023782e63aeb815f5b3f266916d737b90a27bdbb02492783f21d7c19cfb6fd96ca4
7
+ data.tar.gz: b5343cc8314464066bafcf2cba73c63ba22a00d0b91b4aa92158502a7d3ec52b622c7a2038b1de778db8e019cec86c890178059b78aae90ecf15459740909855
@@ -1,291 +1,349 @@
1
- module GeneratedWeb3Methods
2
-
3
- def web3_clientVersion()
4
- response = do_request("web3_clientVersion")
5
- response["result"]
6
- end
7
-
8
- def web3_sha3(data)
9
- response = do_request("web3_sha3",[data])
10
- response["result"]
11
- end
12
-
13
- def net_version()
14
- response = do_request("net_version")
15
- response["result"]
16
- end
17
-
18
- def net_peerCount()
19
- response = do_request("net_peerCount")
20
- to_decimal response["result"]
21
- end
22
-
23
- def net_listening()
24
- response = do_request("net_listening")
25
- response["result"]
26
- end
27
-
28
- def eth_protocolVersion()
29
- raise NotImplementedError.new "JSON-RPC call to eth_protocolVersion is not currently supported"
30
- end
31
-
32
- def eth_syncing()
33
- response = do_request("eth_syncing")
34
- response["result"]
35
- end
36
-
37
- def eth_coinbase()
38
- response = do_request("eth_coinbase")
39
- response["result"]
40
- end
41
-
42
- def eth_mining()
43
- response = do_request("eth_mining")
44
- response["result"]
45
- end
46
-
47
- def eth_hashrate()
48
- response = do_request("eth_hashrate")
49
- to_decimal response["result"]
50
- end
51
-
52
- def eth_gasPrice()
53
- response = do_request("eth_gasPrice")
54
- to_decimal response["result"]
55
- end
56
-
57
- def eth_accounts()
58
- response = do_request("eth_accounts")
59
- response["result"]
60
- end
61
-
62
- def eth_blockNumber()
63
- response = do_request("eth_blockNumber")
64
- to_decimal response["result"]
65
- end
66
-
67
- def eth_getBalance(address, block = "latest")
68
- response = do_request("eth_getBalance",[address, block])
69
- to_decimal response["result"]
70
- end
71
-
72
- def eth_getStorageAt(storage_address, position, block = "latest")
73
- response = do_request("eth_getStorageAt",[storage_address, to_hex(position), block])
74
- response["result"]
75
- end
76
-
77
- def eth_getTransactionCount(address, block = "latest")
78
- response = do_request("eth_getTransactionCount",[address, block])
79
- to_decimal response["result"]
80
- end
81
-
82
- def eth_getBlockTransactionCountByHash(data)
83
- response = do_request("eth_getBlockTransactionCountByHash",[data])
84
- to_decimal response["result"]
85
- end
86
-
87
- def eth_getBlockTransactionCountByNumber(block = "latest")
88
- response = do_request("eth_getBlockTransactionCountByNumber",[block])
89
- to_decimal response["result"]
90
- end
91
-
92
- def eth_getUncleCountByBlockHash(data)
93
- response = do_request("eth_getUncleCountByBlockHash",[data])
94
- to_decimal response["result"]
95
- end
96
-
97
- def eth_getUncleCountByBlockNumber(data)
98
- response = do_request("eth_getUncleCountByBlockNumber",[data])
99
- to_decimal response["result"]
100
- end
101
-
102
- def eth_getCode(address, block = "latest")
103
- response = do_request("eth_getCode",[address, block])
104
- response["result"]
105
- end
106
-
107
- def eth_sign(address, data)
108
- response = do_request("eth_sign",[address, data])
109
- response["result"]
110
- end
111
-
112
- def eth_sendTransaction(trans_object)
113
- response = do_request("eth_sendTransaction",[trans_object])
114
- response["result"]
115
- end
116
-
117
- def eth_sendRawTransaction(data)
118
- response = do_request("eth_sendRawTransaction",[data])
119
- response["result"]
120
- end
121
-
122
- def eth_call(trans_object,block)
123
- response = do_request("eth_call",[trans_object, block])
124
- response["result"]
125
- end
126
-
127
- def eth_estimateGas(trans_object,block)
128
- response = do_request("eth_estimateGas",[trans_object, block])
129
- response["result"]
130
- end
131
-
132
- def eth_getBlockByHash(hash, full_transactions = true)
133
- response = do_request("eth_getBlockByHash",[hash, full_transactions])
134
- response["result"]
135
- end
136
-
137
- def eth_getBlockByNumber(number, full_transactions = true)
138
- response = do_request("eth_getBlockByNumber",[number, full_transactions])
139
- response["result"]
140
- end
141
-
142
- def eth_getTransactionByHash(hash)
143
- response = do_request("eth_getTransactionByHash",[hash])
144
- response["result"]
145
- end
146
-
147
- def eth_getTransactionByBlockHashAndIndex(hash, index)
148
- response = do_request("eth_getTransactionByBlockHashAndIndex",[hash, index])
149
- response["result"]
150
- end
151
-
152
- def eth_getTransactionByBlockNumberAndIndex(number, index)
153
- response = do_request("eth_getTransactionByBlockNumberAndIndex",[number, index])
154
- response["result"]
155
- end
156
-
157
- def eth_getTransactionReceipt(hash)
158
- response = do_request("eth_getTransactionReceipt",[hash])
159
- response["result"]
160
- end
161
-
162
- def eth_getUncleByBlockHashAndIndex(hash, index)
163
- response = do_request("eth_getUncleByBlockHashAndIndex",[hash, index])
164
- response["result"]
165
- end
166
-
167
- def eth_getUncleByBlockNumberAndIndex(number, index)
168
- response = do_request("eth_getUncleByBlockNumberAndIndex",[number, index])
169
- response["result"]
170
- end
171
-
172
- def eth_getCompilers()
173
- response = do_request("eth_getCompilers")
174
- response["result"]
175
- end
176
-
177
- def eth_compileLLL(code)
178
- response = do_request("eth_compileLLL",[code])
179
- response["result"]
180
- end
181
-
182
- def eth_compileSolidity(code)
183
- response = do_request("eth_compileSolidity",[code])
184
- response["result"]
185
- end
186
-
187
- def eth_compileSerpent(code)
188
- response = do_request("eth_compileSerpent",[code])
189
- response["result"]
190
- end
191
-
192
- def eth_newFilter(fromBlock, toBlock, address, topics)
193
- response = do_request("$CODE",[fromBlock, toBlock, address, topics])
194
- to_decimal response["result"]
195
- end
196
-
197
- def eth_newBlockFilter()
198
- response = do_request("eth_newBlockFilter")
199
- to_decimal response["result"]
200
- end
201
-
202
- def eth_newPendingTransactionFilter()
203
- response = do_request("eth_newPendingTransactionFilter")
204
- to_decimal response["result"]
205
- end
206
-
207
- def eth_uninstallFilter(id)
208
- response = do_request("eth_uninstallFilter",[id])
209
- response["result"]
210
- end
211
-
212
- def eth_getFilterChanges(id)
213
- response = do_request("eth_getFilterChanges",[id])
214
- response["result"]
215
- end
216
-
217
- def eth_getFilterLogs(id)
218
- response = do_request("eth_getFilterLogs",[id])
219
- response["result"]
220
- end
221
-
222
- def eth_getLogs(filter_obj)
223
- response = do_request("eth_getLogs",[filter_obj])
224
- response["result"]
225
- end
226
-
227
- def eth_getWork()
228
- response = do_request("eth_getWork")
229
- response["result"]
230
- end
231
-
232
- def eth_submitWork(nonce, powHash, mixDigest)
233
- response = do_request("eth_submitWork",[nonce, powHash, mixDigest])
234
- response["result"]
235
- end
236
-
237
- def eth_submitHashrate(hashrate, id)
238
- response = do_request("eth_submitHashrate",[hashrate, id])
239
- response["result"]
240
- end
241
-
242
- def shh_version()
243
- response = do_request("shh_version")
244
- response["result"]
245
- end
246
-
247
- def shh_post(post_object)
248
- response = do_request("shh_post",[post_object])
249
- response["result"]
250
- end
251
-
252
- def shh_newIdentity()
253
- response = do_request("shh_newIdentity")
254
- response["result"]
255
- end
256
-
257
- def shh_hasIdentity(address)
258
- response = do_request("shh_hasIdentity",[address])
259
- response["result"]
260
- end
261
-
262
- def shh_newGroup()
263
- response = do_request("shh_newGroup")
264
- response["result"]
265
- end
266
-
267
- def shh_addToGroup(address)
268
- response = do_request("shh_addToGroup",[address])
269
- response["result"]
270
- end
271
-
272
- def shh_newFilter(filter_object)
273
- response = do_request("shh_newFilter",[filter_object])
274
- to_decimal response["result"]
275
- end
276
-
277
- def shh_uninstallFilter(id)
278
- response = do_request("shh_uninstallFilter",[id])
279
- response["result"]
280
- end
281
-
282
- def shh_getFilterChanges(id)
283
- response = do_request("shh_getFilterChanges",[id])
284
- response["result"]
285
- end
286
-
287
- def shh_getMessages(id)
288
- response = do_request("shh_getMessages",[id])
289
- response["result"]
290
- end
291
- end
1
+ module GeneratedWeb3Methods
2
+
3
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#web3_clientversion
4
+ def web3_clientVersion()
5
+ response = do_request("web3_clientVersion")
6
+ response["result"]
7
+ end
8
+
9
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#web3_sha3
10
+ def web3_sha3(data)
11
+ response = do_request("web3_sha3",[data])
12
+ response["result"]
13
+ end
14
+
15
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#net_version
16
+ def net_version()
17
+ response = do_request("net_version")
18
+ response["result"]
19
+ end
20
+
21
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#net_peercount
22
+ def net_peerCount()
23
+ response = do_request("net_peerCount")
24
+ to_decimal response["result"]
25
+ end
26
+
27
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#net_listening
28
+ def net_listening()
29
+ response = do_request("net_listening")
30
+ response["result"]
31
+ end
32
+
33
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_protocolversion
34
+ def eth_protocolVersion()
35
+ raise NotImplementedError.new "JSON-RPC call to eth_protocolVersion is not currently supported"
36
+ end
37
+
38
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_syncing
39
+ def eth_syncing()
40
+ response = do_request("eth_syncing")
41
+ response["result"]
42
+ end
43
+
44
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_coinbase
45
+ def eth_coinbase()
46
+ response = do_request("eth_coinbase")
47
+ response["result"]
48
+ end
49
+
50
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_mining
51
+ def eth_mining()
52
+ response = do_request("eth_mining")
53
+ response["result"]
54
+ end
55
+
56
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_hashrate
57
+ def eth_hashrate()
58
+ response = do_request("eth_hashrate")
59
+ to_decimal response["result"]
60
+ end
61
+
62
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_gasprice
63
+ def eth_gasPrice()
64
+ response = do_request("eth_gasPrice")
65
+ to_decimal response["result"]
66
+ end
67
+
68
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_accounts
69
+ def eth_accounts()
70
+ response = do_request("eth_accounts")
71
+ response["result"]
72
+ end
73
+
74
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_blocknumber
75
+ def eth_blockNumber()
76
+ response = do_request("eth_blockNumber")
77
+ to_decimal response["result"]
78
+ end
79
+
80
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_getbalance
81
+ def eth_getBalance(address, block = "latest")
82
+ response = do_request("eth_getBalance",[address, block])
83
+ to_decimal response["result"]
84
+ end
85
+
86
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_getstorageat
87
+ def eth_getStorageAt(storage_address, position, block = "latest")
88
+ response = do_request("eth_getStorageAt",[storage_address, to_hex(position), block])
89
+ response["result"]
90
+ end
91
+
92
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_gettransactioncount
93
+ def eth_getTransactionCount(address, block = "latest")
94
+ response = do_request("eth_getTransactionCount",[address, block])
95
+ to_decimal response["result"]
96
+ end
97
+
98
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_getblocktransactioncountbyhash
99
+ def eth_getBlockTransactionCountByHash(data)
100
+ response = do_request("eth_getBlockTransactionCountByHash",[data])
101
+ to_decimal response["result"]
102
+ end
103
+
104
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_getblocktransactioncountbynumber
105
+ def eth_getBlockTransactionCountByNumber(block = "latest")
106
+ response = do_request("eth_getBlockTransactionCountByNumber",[block])
107
+ to_decimal response["result"]
108
+ end
109
+
110
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_getunclecountbyblockhash
111
+ def eth_getUncleCountByBlockHash(data)
112
+ response = do_request("eth_getUncleCountByBlockHash",[data])
113
+ to_decimal response["result"]
114
+ end
115
+
116
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_getunclecountbyblocknumber
117
+ def eth_getUncleCountByBlockNumber(data)
118
+ response = do_request("eth_getUncleCountByBlockNumber",[data])
119
+ to_decimal response["result"]
120
+ end
121
+
122
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_getcode
123
+ def eth_getCode(address, block = "latest")
124
+ response = do_request("eth_getCode",[address, block])
125
+ response["result"]
126
+ end
127
+
128
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_sign
129
+ def eth_sign(address, data)
130
+ response = do_request("eth_sign",[address, data])
131
+ response["result"]
132
+ end
133
+
134
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_sendtransaction
135
+ def eth_sendTransaction(trans_object)
136
+ response = do_request("eth_sendTransaction",[trans_object])
137
+ response["result"]
138
+ end
139
+
140
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_sendrawtransaction
141
+ def eth_sendRawTransaction(data)
142
+ response = do_request("eth_sendRawTransaction",[data])
143
+ response["result"]
144
+ end
145
+
146
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_call
147
+ def eth_call(trans_object,block)
148
+ response = do_request("eth_call",[trans_object, block])
149
+ response["result"]
150
+ end
151
+
152
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_estimategas
153
+ def eth_estimateGas(trans_object,block)
154
+ response = do_request("eth_estimateGas",[trans_object, block])
155
+ response["result"]
156
+ end
157
+
158
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_getblockbyhash
159
+ def eth_getBlockByHash(hash, full_transactions = true)
160
+ response = do_request("eth_getBlockByHash",[hash, full_transactions])
161
+ response["result"]
162
+ end
163
+
164
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_getblockbynumber
165
+ def eth_getBlockByNumber(number, full_transactions = true)
166
+ response = do_request("eth_getBlockByNumber",[number, full_transactions])
167
+ response["result"]
168
+ end
169
+
170
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_gettransactionbyhash
171
+ def eth_getTransactionByHash(hash)
172
+ response = do_request("eth_getTransactionByHash",[hash])
173
+ response["result"]
174
+ end
175
+
176
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_gettransactionbyblockhashandindex
177
+ def eth_getTransactionByBlockHashAndIndex(hash, index)
178
+ response = do_request("eth_getTransactionByBlockHashAndIndex",[hash, index])
179
+ response["result"]
180
+ end
181
+
182
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_gettransactionbyblocknumberandindex
183
+ def eth_getTransactionByBlockNumberAndIndex(number, index)
184
+ response = do_request("eth_getTransactionByBlockNumberAndIndex",[number, index])
185
+ response["result"]
186
+ end
187
+
188
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_gettransactionreceipt
189
+ def eth_getTransactionReceipt(hash)
190
+ response = do_request("eth_getTransactionReceipt",[hash])
191
+ response["result"]
192
+ end
193
+
194
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_getunclebyblockhashandindex
195
+ def eth_getUncleByBlockHashAndIndex(hash, index)
196
+ response = do_request("eth_getUncleByBlockHashAndIndex",[hash, index])
197
+ response["result"]
198
+ end
199
+
200
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_getunclebyblocknumberandindex
201
+ def eth_getUncleByBlockNumberAndIndex(number, index)
202
+ response = do_request("eth_getUncleByBlockNumberAndIndex",[number, index])
203
+ response["result"]
204
+ end
205
+
206
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_getcompilers
207
+ def eth_getCompilers()
208
+ response = do_request("eth_getCompilers")
209
+ response["result"]
210
+ end
211
+
212
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_compilelll
213
+ def eth_compileLLL(code)
214
+ response = do_request("eth_compileLLL",[code])
215
+ response["result"]
216
+ end
217
+
218
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_compilesolidity
219
+ def eth_compileSolidity(code)
220
+ response = do_request("eth_compileSolidity",[code])
221
+ response["result"]
222
+ end
223
+
224
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_compileserpent
225
+ def eth_compileSerpent(code)
226
+ response = do_request("eth_compileSerpent",[code])
227
+ response["result"]
228
+ end
229
+
230
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_newfilter
231
+ def eth_newFilter(fromBlock, toBlock, address, topics)
232
+ response = do_request("$CODE",[fromBlock, toBlock, address, topics])
233
+ to_decimal response["result"]
234
+ end
235
+
236
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_newblockfilter
237
+ def eth_newBlockFilter()
238
+ response = do_request("eth_newBlockFilter")
239
+ to_decimal response["result"]
240
+ end
241
+
242
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_newpendingtransactionfilter
243
+ def eth_newPendingTransactionFilter()
244
+ response = do_request("eth_newPendingTransactionFilter")
245
+ to_decimal response["result"]
246
+ end
247
+
248
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_uninstallfilter
249
+ def eth_uninstallFilter(id)
250
+ response = do_request("eth_uninstallFilter",[id])
251
+ response["result"]
252
+ end
253
+
254
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_getfilterchanges
255
+ def eth_getFilterChanges(id)
256
+ response = do_request("eth_getFilterChanges",[id])
257
+ response["result"]
258
+ end
259
+
260
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_getfilterlogs
261
+ def eth_getFilterLogs(id)
262
+ response = do_request("eth_getFilterLogs",[id])
263
+ response["result"]
264
+ end
265
+
266
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_getlogs
267
+ def eth_getLogs(filter_obj)
268
+ response = do_request("eth_getLogs",[filter_obj])
269
+ response["result"]
270
+ end
271
+
272
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_getwork
273
+ def eth_getWork()
274
+ response = do_request("eth_getWork")
275
+ response["result"]
276
+ end
277
+
278
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_submitwork
279
+ def eth_submitWork(nonce, powHash, mixDigest)
280
+ response = do_request("eth_submitWork",[nonce, powHash, mixDigest])
281
+ response["result"]
282
+ end
283
+
284
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_submithashrate
285
+ def eth_submitHashrate(hashrate, id)
286
+ response = do_request("eth_submitHashrate",[hashrate, id])
287
+ response["result"]
288
+ end
289
+
290
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#shh_version
291
+ def shh_version()
292
+ response = do_request("shh_version")
293
+ response["result"]
294
+ end
295
+
296
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#shh_post
297
+ def shh_post(post_object)
298
+ response = do_request("shh_post",[post_object])
299
+ response["result"]
300
+ end
301
+
302
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#shh_newidentity
303
+ def shh_newIdentity()
304
+ response = do_request("shh_newIdentity")
305
+ response["result"]
306
+ end
307
+
308
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#shh_hasidentity
309
+ def shh_hasIdentity(address)
310
+ response = do_request("shh_hasIdentity",[address])
311
+ response["result"]
312
+ end
313
+
314
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#shh_newgroup
315
+ def shh_newGroup()
316
+ response = do_request("shh_newGroup")
317
+ response["result"]
318
+ end
319
+
320
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#shh_addtogroup
321
+ def shh_addToGroup(address)
322
+ response = do_request("shh_addToGroup",[address])
323
+ response["result"]
324
+ end
325
+
326
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#shh_newfilter
327
+ def shh_newFilter(filter_object)
328
+ response = do_request("shh_newFilter",[filter_object])
329
+ to_decimal response["result"]
330
+ end
331
+
332
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#shh_uninstallfilter
333
+ def shh_uninstallFilter(id)
334
+ response = do_request("shh_uninstallFilter",[id])
335
+ response["result"]
336
+ end
337
+
338
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#shh_getfilterchanges
339
+ def shh_getFilterChanges(id)
340
+ response = do_request("shh_getFilterChanges",[id])
341
+ response["result"]
342
+ end
343
+
344
+ # See https://github.com/ethereum/wiki/wiki/JSON-RPC#shh_getmessages
345
+ def shh_getMessages(id)
346
+ response = do_request("shh_getMessages",[id])
347
+ response["result"]
348
+ end
349
+ end
metadata CHANGED
@@ -1,15 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: web3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Spike Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-26 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2017-03-27 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: hanna-nouveau
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: httparty
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.14'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.14'
41
+ - !ruby/object:Gem::Dependency
42
+ name: json
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '2'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '2'
13
55
  description: A client library for connecting to an Ethereum Web3 JSON RPC service
14
56
  email: spikewilliams@gmail.com
15
57
  executables: []