Skip to content

Commit cf95357

Browse files
authored
Merge pull request #4 from semasping/master
new commands and bugfix New commands in database api: get_active_votes, get_content_replies, get_current_median_history_price [bugfix] get_accounts need array
2 parents feebdac + c89d5a3 commit cf95357

4 files changed

+49
-1
lines changed

Commands/DataBase/GetAccountCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ class GetAccountCommand extends CommandAbstract
1111

1212
/** @var array */
1313
protected $queryDataMap = [
14-
'0' => ['string'], //authors
14+
'0' => ['array'], //authors
1515
];
1616
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
4+
namespace GrapheneNodeClient\Commands\DataBase;
5+
6+
7+
class GetActiveVotesCommand extends CommandAbstract
8+
{
9+
/** @var string */
10+
protected $method = 'get_active_votes';
11+
12+
/** @var array */
13+
protected $queryDataMap = [
14+
'0' => ['string'], //author
15+
'1' => ['string'], //permlink
16+
];
17+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
4+
namespace GrapheneNodeClient\Commands\DataBase;
5+
6+
7+
class GetContentRepliesCommand extends CommandAbstract
8+
{
9+
/** @var string */
10+
protected $method = 'get_content_replies';
11+
12+
/** @var array */
13+
protected $queryDataMap = [
14+
'0' => ['string'], //author
15+
'1' => ['string'], //permlink
16+
];
17+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
4+
namespace GrapheneNodeClient\Commands\DataBase;
5+
6+
7+
class GetCurrentMedianHistoryPriceCommand extends CommandAbstract
8+
{
9+
/** @var string */
10+
protected $method = 'get_current_median_history_price';
11+
12+
/** @var array */
13+
protected $queryDataMap = [];
14+
}

0 commit comments

Comments
 (0)