Skip to content

Commit

Permalink
All fixes from bitshares/bitshares-fc#120 except strings
Browse files Browse the repository at this point in the history
  • Loading branch information
MatusKysel committed May 13, 2019
1 parent 78f8427 commit 81e9349
Show file tree
Hide file tree
Showing 35 changed files with 36 additions and 1,216 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

#include <fc/optional.hpp>
#include <fc/variant.hpp>
#include <fc/vector.hpp>

namespace sophiatx { namespace plugins { namespace multiparty_messaging {

Expand All @@ -30,7 +29,7 @@ class api_group_object {

string description;

vector < account_name_type > members;
std::vector < account_name_type > members;
account_name_type admin;

fc::sha256 group_key;
Expand All @@ -49,8 +48,8 @@ class api_message_object {
account_name_type group_name;
uint32_t sequence;
account_name_type sender;
vector < account_name_type > recipients;
vector<char> data;
std::vector < account_name_type > recipients;
std::vector<char> data;
bool system_message = false;
};

Expand Down Expand Up @@ -82,7 +81,7 @@ struct list_messages_args{
typedef vector<api_message_object> list_messages_return;

struct create_group_args{
vector<account_name_type> members;
std::vector<account_name_type> members;
string description;
account_name_type admin;
};
Expand All @@ -94,7 +93,7 @@ struct create_group_return{

struct add_group_participants_args{
account_name_type group_name;
vector<account_name_type> new_members;
std::vector<account_name_type> new_members;
account_name_type admin;
bool check_members;
};
Expand All @@ -103,7 +102,7 @@ typedef std::map<account_name_type, group_meta> add_group_participants_return;

struct delete_group_participants_args{
account_name_type group_name;
vector<account_name_type> deleted_members;
std::vector<account_name_type> deleted_members;
account_name_type admin;
bool check_members;
};
Expand All @@ -128,7 +127,7 @@ typedef std::map<account_name_type, group_meta> disband_group_return;
struct send_group_message_args{
account_name_type group_name;
account_name_type sender;
vector<char> data;
std::vector<char> data;
};

typedef std::map<account_name_type, group_meta> send_group_message_return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#include <fc/optional.hpp>
#include <fc/variant.hpp>
#include <fc/vector.hpp>

namespace sophiatx { namespace plugins { namespace track_and_trace_plugin {

Expand All @@ -32,7 +31,7 @@ struct get_holdings_args

struct get_holdings_return
{
vector<tracked_object_name_type> serials;
std::vector<tracked_object_name_type> serials;
};

struct get_transfer_requests_args
Expand All @@ -42,7 +41,7 @@ struct get_transfer_requests_args

struct get_transfer_requests_return
{
vector<tracked_object_name_type> serials;
std::vector<tracked_object_name_type> serials;
};

struct get_item_details_args
Expand Down Expand Up @@ -77,7 +76,7 @@ struct tracked_object_history_item{

struct get_tracked_object_history_return
{
vector<tracked_object_history_item> history_items;
std::vector<tracked_object_history_item> history_items;
};

class track_and_trace_api
Expand Down
1 change: 0 additions & 1 deletion libraries/fc/include/fc/crypto/equihash.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once
#include <fc/crypto/sha256.hpp>
#include <fc/vector.hpp>

namespace fc { namespace equihash {

Expand Down
10 changes: 5 additions & 5 deletions libraries/fc/include/fc/crypto/sha1.hpp
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
#pragma once
#include <fc/fwd.hpp>
#include <fc/string.hpp>
#include <string>

namespace fc{

class sha1
{
public:
sha1();
explicit sha1( const string& hex_str );
explicit sha1( const std::string& hex_str );

string str()const;
operator string()const;
std::string str()const;
operator std::string()const;

char* data()const;
size_t data_size()const { return 20; }

static sha1 hash( const char* d, uint32_t dlen );
static sha1 hash( const string& );
static sha1 hash( const std::string& );

template<typename T>
static sha1 hash( const T& t )
Expand Down
10 changes: 5 additions & 5 deletions libraries/fc/include/fc/crypto/sha224.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <unordered_map>
#include <fc/fwd.hpp>
#include <fc/io/raw_fwd.hpp>
#include <fc/string.hpp>


namespace fc
{
Expand All @@ -11,16 +11,16 @@ class sha224
{
public:
sha224();
explicit sha224( const string& hex_str );
explicit sha224( const std::string& hex_str );

string str()const;
operator string()const;
std::string str()const;
operator std::string()const;

char* data()const;
size_t data_size()const { return 224 / 8; }

static sha224 hash( const char* d, uint32_t dlen );
static sha224 hash( const string& );
static sha224 hash( const std::string& );

template<typename T>
static sha224 hash( const T& t )
Expand Down
24 changes: 0 additions & 24 deletions libraries/fc/include/fc/io/raw_unpack_file.hpp

This file was deleted.

26 changes: 0 additions & 26 deletions libraries/fc/include/fc/make_fused.hpp

This file was deleted.

2 changes: 1 addition & 1 deletion libraries/fc/include/fc/network/http/connection.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once
#include <fc/vector.hpp>
#include <fc/string.hpp>
#include <memory>
#include <vector>

namespace fc {
namespace ip { class endpoint; }
Expand Down
1 change: 0 additions & 1 deletion libraries/fc/include/fc/network/resolve.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#pragma once
#include <fc/vector.hpp>
#include <fc/network/ip.hpp>

namespace fc
Expand Down
2 changes: 1 addition & 1 deletion libraries/fc/include/fc/network/tcp_socket.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ namespace fc {
friend class tcp_server;
class impl;
#ifdef _WIN64
fc::fwd<impl,0x81> my;
fc::fwd<impl,0x88> my;
#else
fc::fwd<impl,0x54> my;
#endif
Expand Down
14 changes: 0 additions & 14 deletions libraries/fc/include/fc/noncopyable.hpp

This file was deleted.

1 change: 1 addition & 0 deletions libraries/fc/include/fc/reflect/typename.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <deque>
#include <map>
#include <vector>
#include <string>

#include <fc/string.hpp>
#include <fc/optional.hpp>
Expand Down
Loading

0 comments on commit 81e9349

Please sign in to comment.