mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
updated smartcontract code
- updated smartcontract code - fixed bug in liteserver listening socket - updated documentation
This commit is contained in:
parent
38c3e39066
commit
b978e27b2f
63 changed files with 3185 additions and 81 deletions
|
@ -29,6 +29,8 @@
|
|||
|
||||
#include "td/actor/actor.h"
|
||||
|
||||
#include "td/utils/CancellationToken.h"
|
||||
|
||||
#include <map>
|
||||
|
||||
namespace tonlib {
|
||||
|
@ -66,6 +68,8 @@ class TonlibClient : public td::actor::Actor {
|
|||
td::actor::ActorOwn<LastBlock> raw_last_block_;
|
||||
ExtClient client_;
|
||||
|
||||
td::CancellationTokenSource source_;
|
||||
|
||||
std::map<td::int64, td::actor::ActorOwn<>> actors_;
|
||||
td::int64 actor_id_{1};
|
||||
|
||||
|
@ -92,7 +96,9 @@ class TonlibClient : public td::actor::Actor {
|
|||
}
|
||||
|
||||
void update_last_block_state(LastBlockState state, td::uint32 config_generation_);
|
||||
void update_sync_state(LastBlockSyncState state, td::uint32 config_generation);
|
||||
void on_result(td::uint64 id, object_ptr<tonlib_api::Object> response);
|
||||
void on_update(object_ptr<tonlib_api::Object> response);
|
||||
static bool is_static_request(td::int32 id);
|
||||
static bool is_uninited_request(td::int32 id);
|
||||
template <class T>
|
||||
|
@ -159,6 +165,8 @@ class TonlibClient : public td::actor::Actor {
|
|||
td::Status do_request(tonlib_api::generic_sendGrams& request,
|
||||
td::Promise<object_ptr<tonlib_api::sendGramsResult>>&& promise);
|
||||
|
||||
td::Status do_request(tonlib_api::sync& request, td::Promise<object_ptr<tonlib_api::ok>>&& promise);
|
||||
|
||||
td::Status do_request(const tonlib_api::createNewKey& request, td::Promise<object_ptr<tonlib_api::key>>&& promise);
|
||||
td::Status do_request(const tonlib_api::exportKey& request,
|
||||
td::Promise<object_ptr<tonlib_api::exportedKey>>&& promise);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue