mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
updated tonlib, new fullnode queries
This commit is contained in:
parent
87ccb27b70
commit
a1e352d894
40 changed files with 1188 additions and 175 deletions
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
namespace tonlib {
|
||||
class LastBlock;
|
||||
struct LastBlockInfo;
|
||||
struct LastBlockState;
|
||||
struct ExtClientRef {
|
||||
td::actor::ActorId<ton::adnl::AdnlExtClient> andl_ext_client_;
|
||||
td::actor::ActorId<LastBlock> last_block_actor_;
|
||||
|
|
@ -50,7 +50,7 @@ class ExtClient {
|
|||
return client_;
|
||||
}
|
||||
|
||||
void with_last_block(td::Promise<LastBlockInfo> promise);
|
||||
void with_last_block(td::Promise<LastBlockState> promise);
|
||||
|
||||
template <class QueryT>
|
||||
void send_query(QueryT query, td::Promise<typename QueryT::ReturnType> promise) {
|
||||
|
|
@ -75,7 +75,7 @@ class ExtClient {
|
|||
private:
|
||||
ExtClientRef client_;
|
||||
td::Container<td::Promise<td::BufferSlice>> queries_;
|
||||
td::Container<td::Promise<LastBlockInfo>> last_block_queries_;
|
||||
td::Container<td::Promise<LastBlockState>> last_block_queries_;
|
||||
|
||||
void send_raw_query(td::BufferSlice query, td::Promise<td::BufferSlice> promise);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue