huginn_callisto_network_agent 0.1.88 → 0.1.90
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 556c08ea2738c547d0c1ab649836aa178f0513ea965c4ab4d5631462a37a361a
|
4
|
+
data.tar.gz: aea02a509078a300e53fd69714459d753d876adeeea2d6e61d0710bf9cc6f39a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94414f14d202ebc7496c7585377d1f8b9a476095e8b97b48d05262fe003bfb5674a361772bfe4b933e474155496aa3a383f6bb63a90219f2be0ec602788e34fc
|
7
|
+
data.tar.gz: 30532eb693def0457fd385d19d0ed49dd8019a616e1f98bb0f543477ca09d69aaae3bb1ef0efacd0726d2ad2fb208e2c9b7ea7a944d38bf53dedba629c79e630
|
@@ -62,7 +62,7 @@ module Agents
|
|
62
62
|
form_configurable :emit_events, type: :boolean
|
63
63
|
form_configurable :expected_receive_period_in_days, type: :string
|
64
64
|
form_configurable :changes_only, type: :boolean
|
65
|
-
form_configurable :type, type: :array, values: ['get_balance', 'net_peerCount', 'net_version', 'eth_protocolVersion', 'eth_gasPrice', 'eth_getTransactionCount', 'stake_reward_clo', 'get_tokens_balance', 'eth_getBlockByNumber', 'soy_farming_soy_clo_pending_rewards', 'soy_farming_soy_cloe_pending_rewards', 'stake_reward_soy', 'soy_farming_soy_btt_pending_rewards', 'soy_cs_pending_rewards', 'clo_sendtx', 'get_tx_by_address_with_filter', 'start_cs_clo', 'withdraw_cs_clo', 'get_tx_stats', 'callosha_slots', '2bears_check_order_by_id', 'get_abi_json', 'dao_auto_claim' 'dao_check_missing_vote']
|
65
|
+
form_configurable :type, type: :array, values: ['get_balance', 'net_peerCount', 'net_version', 'eth_protocolVersion', 'eth_gasPrice', 'eth_getTransactionCount', 'stake_reward_clo', 'get_tokens_balance', 'eth_getBlockByNumber', 'soy_farming_soy_clo_pending_rewards', 'soy_farming_soy_cloe_pending_rewards', 'stake_reward_soy', 'soy_farming_soy_btt_pending_rewards', 'soy_cs_pending_rewards', 'clo_sendtx', 'get_tx_by_address_with_filter', 'start_cs_clo', 'withdraw_cs_clo', 'get_tx_stats', 'callosha_slots', '2bears_check_order_by_id', 'get_abi_json', 'dao_auto_claim', 'dao_check_missing_vote']
|
66
66
|
form_configurable :wallet, type: :string
|
67
67
|
form_configurable :rpc_server, type: :string
|
68
68
|
form_configurable :wallet_password, type: :string
|
@@ -198,7 +198,7 @@ module Agents
|
|
198
198
|
def owner_finder(address=interpolated['wallet'])
|
199
199
|
|
200
200
|
db = SQLite3::Database.new(interpolated['sql_db'])
|
201
|
-
result = db.get_first_row('SELECT name FROM directory WHERE address = ?', address)
|
201
|
+
result = db.get_first_row('SELECT name FROM directory WHERE address = ?', [address])
|
202
202
|
db.close
|
203
203
|
|
204
204
|
if result
|
@@ -217,14 +217,14 @@ module Agents
|
|
217
217
|
def function_finder(contract_address=interpolated['wallet'],bytes_signature)
|
218
218
|
|
219
219
|
db = SQLite3::Database.new(interpolated['sql_db'])
|
220
|
-
result = db.get_first_row('SELECT text_signature FROM signatures WHERE bytes_signature = ? AND contract_address = ?', bytes_signature, contract_address)
|
220
|
+
result = db.get_first_row('SELECT text_signature FROM signatures WHERE bytes_signature = ? AND contract_address = ?', [bytes_signature, contract_address])
|
221
221
|
db.close
|
222
222
|
|
223
223
|
if result
|
224
224
|
return result[0].split('(').first
|
225
225
|
else
|
226
226
|
db = SQLite3::Database.new(interpolated['sql_db'])
|
227
|
-
result = db.get_first_row('SELECT text_signature FROM signatures WHERE bytes_signature = ?', bytes_signature)
|
227
|
+
result = db.get_first_row('SELECT text_signature FROM signatures WHERE bytes_signature = ?', [bytes_signature])
|
228
228
|
db.close
|
229
229
|
if result
|
230
230
|
return result[0].split('(').first
|