mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
slightly changed block format
- small change in block format - added config in blockchain explorer - bugfixes
This commit is contained in:
parent
7f3a22a217
commit
090e0c16eb
82 changed files with 1852 additions and 391 deletions
|
@ -258,6 +258,77 @@ class HttpQueryViewLastBlock : public HttpQueryCommon {
|
|||
ton::BlockIdExt res_block_id_;
|
||||
};
|
||||
|
||||
class HttpQueryConfig : public HttpQueryCommon {
|
||||
public:
|
||||
HttpQueryConfig(std::string prefix, ton::BlockIdExt block_id, std::vector<td::int32> params,
|
||||
td::Promise<MHD_Response *> promise);
|
||||
HttpQueryConfig(std::map<std::string, std::string> opts, std::string prefix, td::Promise<MHD_Response *> promise);
|
||||
|
||||
void finish_query();
|
||||
|
||||
void start_up() override;
|
||||
void got_block(td::BufferSlice result);
|
||||
void send_main_query();
|
||||
void got_result(td::BufferSlice result);
|
||||
|
||||
private:
|
||||
ton::BlockIdExt block_id_;
|
||||
std::vector<td::int32> params_;
|
||||
|
||||
td::BufferSlice state_proof_;
|
||||
td::BufferSlice config_proof_;
|
||||
};
|
||||
|
||||
class HttpQuerySendForm : public HttpQueryCommon {
|
||||
public:
|
||||
HttpQuerySendForm(std::string prefix, td::Promise<MHD_Response *> promise);
|
||||
HttpQuerySendForm(std::map<std::string, std::string> opts, std::string prefix, td::Promise<MHD_Response *> promise);
|
||||
|
||||
void start_up() override;
|
||||
void finish_query();
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
class HttpQuerySend : public HttpQueryCommon {
|
||||
public:
|
||||
HttpQuerySend(std::string prefix, td::BufferSlice data, td::Promise<MHD_Response *> promise);
|
||||
HttpQuerySend(std::map<std::string, std::string> opts, std::string prefix, td::Promise<MHD_Response *> promise);
|
||||
|
||||
void finish_query();
|
||||
|
||||
void start_up() override;
|
||||
void got_result(td::BufferSlice result);
|
||||
|
||||
private:
|
||||
td::BufferSlice data_;
|
||||
td::int32 status_;
|
||||
};
|
||||
|
||||
class HttpQueryRunMethod : public HttpQueryCommon {
|
||||
public:
|
||||
HttpQueryRunMethod(ton::BlockIdExt block_id, block::StdAddress addr, std::string method_name,
|
||||
std::vector<vm::StackEntry> params, std::string prefix, td::Promise<MHD_Response *> promise);
|
||||
HttpQueryRunMethod(std::map<std::string, std::string> opts, std::string prefix, td::Promise<MHD_Response *> promise);
|
||||
|
||||
void finish_query();
|
||||
|
||||
void start_up_query() override;
|
||||
void got_account(td::BufferSlice result);
|
||||
|
||||
private:
|
||||
ton::BlockIdExt block_id_;
|
||||
block::StdAddress addr_;
|
||||
|
||||
std::string method_name_;
|
||||
std::vector<vm::StackEntry> params_;
|
||||
|
||||
td::BufferSlice data_;
|
||||
td::BufferSlice proof_;
|
||||
td::BufferSlice shard_proof_;
|
||||
ton::BlockIdExt res_block_id_;
|
||||
};
|
||||
|
||||
class HttpQueryStatus : public HttpQueryCommon {
|
||||
public:
|
||||
HttpQueryStatus(std::string prefix, td::Promise<MHD_Response *> promise);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue